Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_comonth_from_NASIS_db

Extract component month data from a local NASIS Database


Description

Extract component month data from a local NASIS Database.

Usage

get_comonth_from_NASIS_db(
  SS = TRUE,
  fill = FALSE,
  stringsAsFactors = default.stringsAsFactors(),
  dsn = NULL
)

Arguments

SS

get data from the currently loaded Selected Set in NASIS or from the entire local database (default: TRUE)

fill

should missing "month" rows in the comonth table be filled with NA (FALSE)

stringsAsFactors

logical: should character vectors be converted to factors? This argument is passed to the uncode() function. It does not convert those vectors that have set outside of uncode() (i.e. hard coded). The 'factory-fresh' default is TRUE, but this can be changed by setting options(stringsAsFactors = FALSE)

dsn

Optional: path to local SQLite database containing NASIS table structure; default: NULL

Details

This function currently works only on Windows.

Value

A list with the results.

Author(s)

Stephen Roecker

See Also

Examples

if(local_NASIS_defined()) {
  # query text note data
  cm <- try(get_comonth_from_NASIS_db())

  # show structure of component month data
  str(cm)
}

soilDB

Soil Database Interface

v2.6.1
GPL (>= 3)
Authors
Dylan Beaudette [aut], Jay Skovlin [aut], Stephen Roecker [aut], Andrew Brown [aut, cre]
Initial release
2021-04-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.