View source: R/snowprofileTests.R
snowprofileTests | R Documentation |
Create a snowprofileTests object.
snowprofileTests(
testsFrame = data.frame(type = as.character(NA), result = as.character(NA), score =
as.double(NA), fract_char = as.character(NA), depth = as.double(NA), comment =
as.character(NA)),
dropNAs = TRUE
)
testsFrame |
a data.frame listing snowpack stability tests. Rows correspond to individual tests and columns describe at least the
fields
|
dropNAs |
Should empty, non-mandatory columns be dropped from the final snowprofileTests object? |
For more information, see Canadian Avalanche Association. (2016). Observation Guidelines and Recording Standards for Weather, Snowpack, and Avalanches (OGRS). Revelstoke, BC, Canada.
snowprofileTests object
fherla
snowprofile, snowprofileLayers, snowprofileInstabilitySigns
## create a data.frame with test observations
(testsFrame <- data.frame(type = c("CT", "ST", "ECT"),
result = c("E-M", "M", "P"),
score = c(10, NA, 12),
fract_char = c("SP", NA, NA),
depth = c(40, 40, 40),
comment = c("some comment on first test", "", "")))
## create snowprofileTests object
tests <- snowprofileTests(testsFrame)
## create snowprofile object containing test results and check resulting object:
snowprofile(tests = tests)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.