convert_activity | R Documentation |
Converts raw RFID data into a format for easy use by the
activity::fitact()
function included in the activity
package for modelling activity levels and daily activity patterns.
convert_activity(r)
r |
Dataframe. Raw RFID dataset. Must have at least columns
|
A list of vectors corresponding to each individual. See examples for specific application.
activity package and it's function fitact. https://cran.r-project.org/package=activity
# Format for use by activity package i <- convert_activity(finches_lg) ## Not run: # Use activity package: library(activity) # Calculate daily activity pattern for a single individual a <- fitact(i[[1]], sample = "none") plot(a) # Calculate daily activity pattern for all individuals a <- lapply(i, fitact, sample = "none") plot(a[[3]]) plot(a[["06200004F8"]]) # etc. ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.