View source: R/check_sensors.R
| check_sensors | R Documentation |
This function checks whether a sensor data.frame is correctly formatted to be used as input for the ray-tracing model. It verifies the presence, type, and validity of mandatory variables describing the position and height of sensors within a forest stand.
check_sensors(sensors, verbose = TRUE)
sensors |
A data.frame with one row per sensor and the following columns:
|
verbose |
Logical; if TRUE, informative messages are printed. |
Invisibly returns TRUE if all checks pass.
sensors <- data.frame(
id_sensor = 1:3,
x = c(10, 20, 30),
y = c(5, 15, 25),
h_m = c(1.5, 2.0, 1.8)
)
check_sensors(sensors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.