as.data.frame.STOMobs | R Documentation |
Method to convert an object of class STOMobs into a data frame (and tibble). Information on sampling and predators are copied to each record of prey information.
## S3 method for class 'STOMobs'
as.data.frame(stom, add_empty = TRUE)
stom |
Stomach data set of class STOMobs. |
add_empty |
Insert prey "other" with prey weight (prey_w) =0 for samples with only empty stomachs. |
STOMobs object transformed to a "flat" data frame.
as_STOMobs
## Not run: a<-as.data.frame(stom); a; as_STOMobs(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.