Description Usage Arguments Value Examples
View source: R/segmentation_helper_functions.R
Converts an object of class data.frame
to a list where each element is
a separate animal ID. This function prepares the data for further analysis
and when mapping other functions onto the data for separate animal IDs.
1 | df_to_list(dat, ind)
|
dat |
A data frame containing the data for each animal ID. |
ind |
character. The name of the column storing the animal IDs. |
A list where each element stores the data for a separate animal ID.
1 2 3 4 5 | #load data
data(tracks)
#convert to list
dat.list<- df_to_list(dat = tracks, ind = "id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.