Description Usage Arguments Author(s) See Also Examples
Checks if the provided data frame is conforming to the format that is used by 'psyosphere' and returns a warning
or stop
if necessary.
1 |
tracks |
psyo. The data frame that is to be check if it confirms to the |
id |
numeric. An error with |
p_id |
numeric. An error with |
time |
numeric. An error with |
lon |
numeric. An error with |
lat |
numeric. An error with |
Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run: \dontrun{
# Produce a warning ------------------------------------------------------------
data(psyo)
psyo$time <- NULL # remove time column
e <- val_psyo(psyo); if (e != "") {stop(e)}
# Produce a stop ---------------------------------------------------------------
data(psyo)
psyo$time <- NULL # remove time column
e <- val_psyo(psyo, time = 2); if (e != "") {stop(e)}
# Produce a stop without setting "force" ---------------------------------------
data(psyo)
psyo$lon <- NULL # remove time column
e <- val_psyo(psyo); if (e != "") {stop(e)}
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.