Get text note data from a local NASIS Database
get_text_notes_from_NASIS_db(SS = TRUE, fixLineEndings = TRUE, dsn = NULL)
get data from the currently loaded Selected Set in NASIS or from
the entire local database (default: TRUE
)
convert line endings from \r\n
to \n
Optional: path to local SQLite database containing NASIS
table structure; default: NULL
A list
with the results.
# NOT RUN {
# }
# NOT RUN {
if(local_NASIS_defined()) {
# query text note data
t <- try(get_text_notes_from_NASIS_db())
# show contents text note data, includes: siteobs, site, pedon, horizon level text notes data.
str(t)
# view text categories for site text notes
if(!inherits(t, 'try-error')) {
table(t$site_text$textcat)
}
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab