Learn R Programming

rDNA (version 1.31)

dna.attributes: Get actor attributes

Description

Transfer the attributes of persons or organizations to R.

Usage

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).

See Also

rDNA dna.init dna.network dna.categories

Examples

Run this code
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)

Run the code above in your browser using DataLab