convert_asnipe | R Documentation |
Converts raw RFID data into a format for easy use by either the
asnipe::gmmevents()
or the
asnipe::get_associations_points_tw()
functions included in the
asnipe package for calculating group membership.
convert_asnipe(r, fun = "gmmevents", by_day = TRUE, time_scale = "secs")
r |
Dataframe. Raw RFID dataset. Must have at least columns
|
fun |
Which asipe function should the data be formated for?
|
by_day |
Logical. The |
time_scale |
Character. The |
If fun = "gmmevents"
, a data frame with three columns, time
, identity
, and location
. Time is converted to the number of seconds or minutes (etc., taken from time_scale
) since the first observation.
If fun = "get_associations_points_tw"
, a data frame with four columns: Date
, Time
, ID
, Location
. Date is converted to count starting with 1 as the first day, time is converted to the number of seconds since the first observation.
asnipe package and it's functions: gmmevents and get_associations_points_tw. https://cran.r-project.org/package=asnipe
a <- convert_asnipe(finches, fun = "gmmevents") ## Not run: library(asnipe) gmmevents(a$time, a$identity, a$location) ## End(Not run) a <- convert_asnipe(finches, fun = "get_associations_points_tw") ## Not run: library(asnipe) get_associations_points_bw(a) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.