read_rav2: Read in a single .rav2 file

Description Usage Arguments Details Value

Description

Read in a single .rav2 file

Usage

1
read_rav2(filename)

Arguments

filename

A character vector of length one. The name of the .rav2 file.

Details

The .rav2 file is a csv file. The first column is the variable name, the second column is the value for that variable, the third column is a description of the variable. If commas are included in either the value or descripton then the full column should be inside double quotes. If the value is a numeric vector of several values, the values should be separated by a space (not a comma) and not wrapped in quotes. Additional columns may be added after the description column. They could include additional comments and information. They will be represented, by variable, in the list named inputs.

Value

A list of two elements named inputs.vars and inputs. The element inputs.vars is a list of just the variables and their values. The element named inputs is a list with the variable names, values, and description. The length of each list (inputs.vars and inputs) is equal to the number of rows in the .rav2 file.


MichaelFolkes/VRAP2 documentation built on June 9, 2019, 6:27 p.m.