parseOutFile: Parse a data.frame imported from a SORTIE-ND OUT File.

Description Usage Arguments Note Examples

Description

This function takes the data.frame generated by getOutFile and reformats it so that Step, Subplot, and Species are the first 3 columns, followed by values for Absolute Densities and Basal Areas. By default, this function removes any columns labeled "NR" or "Total".

Usage

1
parseOutFile(df, removeSpp = c("Total"))

Arguments

df

The data.frame generated by getOutFile.

removeSpp

Optional, already set to remove "NR" and "Total" columns from reformatting, so you can deal with those separately or regenerate them yourself.

Note

This function cannot handle the relative density or basal areas statistics provided by SORTIE-ND, possibly because "rel" or some form of it is a protected word for the grep family of functions that I use.

Examples

1
2
#dat <- getOutFile("test.out")
#head(parseOutFile(dat))

ecology-rocks/SortieIO documentation built on May 15, 2019, 7:57 p.m.