dna.timeseries(infile, persons = FALSE, time.unit = "month", ignore.duplicates = "article", separate.actors = TRUE, start.date = "first", stop.date = "last", include.persons = "all", include.organizations = "all", include.categories = "all", invert.persons = FALSE, invert.organizations = FALSE, invert.categories = FALSE, agreement = "combined", verbose = TRUE)sample.dna. false, organizations are exported.month, statement frequencies are computed per month. If set to year, the number of statements per year is computed. The value total causes DNA to aggregate all frequencies per actor into one column.article). Other options are month (i.e., duplicate statements are omitted if they occur in the same month) and off (i.e., all duplicates are retained).true, there will be one actor per row in the resulting matrix. If false, the frequencies of all actors will be aggregated into a single row.dd.mm.yyyy, where dd is the two-digit day, mm the two-digit month and yyyy the four-digit year. Alternatively, the value first will use the first date found in the .dna file.dd.mm.yyyy, where dd is the two-digit day, mm the two-digit month and yyyy the four-digit year. Alternatively, the value last will use the last date found in the .dna file.c("person 1", "person 2"). Note that the names must appear exactly as they are used on the dataset. Alternatively, the string value all will include all persons in the .dna file.c("organization 1", "organization 2"). Note that the names must appear exactly as they are used on the dataset. Alternatively, the string value all will include all organizations in the .dna file.c("category 1", "category 2"). Note that the concept names must appear exactly as they are used on the dataset. Alternatively, the value all will include all categories in the .dna file.TRUE, the persons specified in the include.persons argument will be excluded, not included. All other persons will be included.TRUE, the organizations specified in the include.organizations argument will be excluded, not included. All other organizations will be included.TRUE, the categories specified in the include.categories argument will be excluded, not included. All other categories will be included.combined, yes or no. If yes, only positive statements will be counted. If no, only negative statements will be counted. If combined, all kinds of statements are counted.true, details about the data import and its progress will be printed. If false, these information will be suppressed.rDNA
dna.init
dna.network
dna.categories
download.file("http://www.philipleifeld.de/cms/upload/Downloads/dna-1.31.jar",
destfile = "dna-1.31.jar", mode = "wb")
download.file("http://www.philipleifeld.de/cms/upload/Downloads/sample.dna",
destfile = "sample.dna", mode = "wb")
dna.init("dna-1.31.jar")
time.series <- dna.timeseries("sample.dna")
Run the code above in your browser using DataLab