val_psyo {psyosphere} | R Documentation |
Checks if the provided data frame is conforming to the format that is used by psyosphere and returns a warning
or stop
if necessary.
val_psyo(tracks, id = 1, p_id = 1, time = 1, lon = 2, lat = 2)
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.
# Produce a warning ------------------------------------------------------------ data(psyo) psyo$time <- NULL # remove time column # e <- val_psyo(psyo); if (e != "") {stop(e)} # remove first "#" to make example work # Produce a stop --------------------------------------------------------------- data(psyo) psyo$time <- NULL # remove time column # e <- val_psyo(psyo, time = 2); if (e != "") {stop(e)} # remove first "#" to make example work # Produce a stop without setting "force" --------------------------------------- data(psyo) psyo$lon <- NULL # remove time column # e <- val_psyo(psyo); if (e != "") {stop(e)} # remove first "#" to make example work