dna.categories: Get list of categories

Description Usage Arguments Details Author(s) See Also Examples

View source: R/rDNA.R

Description

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

Usage

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

Author(s)

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

See Also

rDNA dna.init dna.network dna.attributes

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

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