snowprofileTests {sarp.snowprofile} | R Documentation |
Constructor for a snowprofileTests object
Description
Create a snowprofileTests object.
Usage
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
)
Arguments
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? |
Details
For more information, see Canadian Avalanche Association. (2016). Observation Guidelines and Recording Standards for Weather, Snowpack, and Avalanches (OGRS). Revelstoke, BC, Canada.
Value
snowprofileTests object
Author(s)
fherla
See Also
snowprofile, snowprofileLayers, snowprofileInstabilitySigns
Examples
## 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)