Learn R Programming

rDNA (version 1.31)

dna.categories: Get list of categories

Description

Transfer a vector of all categories in a DNA file to R.

Usage

dna.categories(infile, 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.
verbose
If true, details about the data import and its progress will be printed. If false, these information will be suppressed.

Details

Puts all categories found in a .dna file in a list and imports them as a vector into R.

See Also

rDNA dna.init dna.network dna.attributes

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")
categories <- dna.categories("sample.dna")

Run the code above in your browser using DataLab