classify_wetdry {STICr} | R Documentation |
classify_wetdry
Description
This is a function to classify STIC data into a binary "wet" and "dry" column. Data can be classified according to any classification variable defined by the user. User can choose one of two methods for classification: either an absolute numerical threshold or as a chosen percentage of the maximum value of the classification variable.
Usage
classify_wetdry(stic_data, classify_var, threshold, method)
Arguments
stic_data |
A data frame with STIC data, such as that produced by apply_calibration or tidy_hobo_data. |
classify_var |
Name of the column in data frame you want to use for classification. When |
threshold |
This is the user-defined threshold for determining wet versus dry based on the designated classification variable. If using the |
method |
User chooses which classification method used to generate the binary data. |
Value
The same data frame as input, but with a new column called "wetdry"
.
Examples
classified_df <-
classify_wetdry(calibrated_stic_data,
classify_var = "SpC", method = "absolute", threshold = 200
)
head(classified_df)