write_NIRparams: Write NIR parameters file to disk

View source: R/write.R

write_NIRparamsR Documentation

Write NIR parameters file to disk

Description

Write NIR parameters file to disk

Usage

write_NIRparams(
  file = "",
  wd = ".",
  surface = "",
  reads = "",
  nir_variables = "",
  subset_file = "",
  individual_id = "",
  individual_list = NULL,
  surface_id = "",
  group_id = "",
  nir_id = "X"
)

Arguments

file

Dataset name.

wd

Location of working directory. If not provided, current working directory will be used one.

surface

Which leaf surface (abaxial, adaxial, both).

reads

Do all the reads will be taken into account (all, mean)?

nir_variables

Which NIR variables will be used (all, subset).

subset_file

Location of NIR variable subset file, in case option selected in 'nir_variables' was 'subset'.

individual_id

Which variable name corresponds to the individual?

individual_list

Location of a file containing list of specimens to subset data when building datasets with 'build_NIRdataset' function.

surface_id

Which variable name corresponds to the leaf surface?

group_id

Which variable name corresponds to the group category?

nir_id

A string that can be used to grep column names containing NIR data. Default value is ''X', which precedes all columns with NIR data.

Value

A message that indicates the file has been saved to disk.

Examples

## Not run: 
write_NIRparams(file = "teste", wd = ".",
 reads = "mean", surface = "abaxial",
  nir_variables = "all", surface_id = "face",
   individual_id = "especimenid",
   individual_list = NULL, group_id = "SP1",
    nir_id = "X")
read_NIRparams("teste-NIR.txt")
readLines("teste-NIR.txt")

## End(Not run)

ricoperdiz/NIRtools documentation built on Oct. 24, 2023, 1:30 a.m.