read_benchmarkgroups | R Documentation |
This will read in a table of benchmark group membership formatted like the Evaluation Information spreadsheet in the Data Explorer Excel workbook (wide, one variable per benchmark group with "X"
designating membership and NA
indicating no membership). Returns a tall version as a data frame with the unique identifier variables intact and
read_benchmarkgroups(
path = getwd(),
filename = NULL,
id_var = c("TerrADat Primary Key/LMF Plot Key"),
sheet = "Evaluation Information",
ignore_var = c("GlobalID")
)
path |
Character string. The path to the folder containing the file |
filename |
Character string. The full filename plus extension for the file containing the benchmark groups, if it is not part of the string provided as |
id_var |
Vector of character strings. One or more character strings corresponding to the variable(s) that contain the unique identifiers for the data frame. Because the assumption is that this function will be used on the Data Explorer Excel workbook, defaults to |
sheet |
Optional character string. A character string corresponding to the name of the spreadsheet to read from an Excel workbook if that's the target filetype. Ignored if the target file is a |
ignore_var |
Vector of character strings. One or One or more character strings corresponding to the variable(s) that contain NEITHER the unique identifiers NOR benchmark group membership in the data frame. Because the assumption is that this function will be used on the Data Explorer Excel workbook, defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.