dna.attributes: Get actor attributes

Description Usage Arguments Details Author(s) See Also Examples

View source: R/rDNA.R

Description

Transfer the attributes of persons or organizations to R.

Usage

1
dna.attributes(infile, organizations = TRUE, verbose = TRUE)

Arguments

infile

The input .dna file as a string (i.e., enclosed in quotation marks). If the file is not in the current working directory, specify the path together with the file name. Include the file suffix. Example: sample.dna.

organizations

If TRUE, the attributes of organizations will be returned. If FALSE, the attributes of persons will be returned.

verbose

If true, details about the data import and its progress will be printed. If false, these information will be suppressed.

Details

Pulls the attributes of persons or organizations as a matrix into R. The matrix has three columns: type (the type of actor), alias (the alias/description variable in DNA), note (the notes field) and color (the RGB color used in DNA).

Author(s)

Philip Leifeld (http://www.philipleifeld.com)

See Also

rDNA dna.init dna.network dna.categories

Examples

1
2
3
4
5
6
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")
attributes <- dna.attributes("sample.dna", organizations = TRUE)

rDNA documentation built on May 30, 2017, 12:15 a.m.