You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(bumbl)
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union#this works:
bumbl(bombus, t=week, mass~week)
#> # A tibble: 1 x 6#> colony tau logN0 logLam decay logNmax#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>#> 1 NA 6.20 7.52 0.0170 -0.0215 7.63#but this doesn't:
bumbl(rename(bombus, colony_test=colony), t=week, mass~week)
#> Error: Join columns must be present in data.#> x Problem with `colony`.
I think the best way to deal with this is to just require a colony ID column. If the user wants to run bumbl() on a single colony, they just need to make a dummy column.
Created on 2020-11-01 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: