Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit assumption of colony ID column name in bumbl() #45

Closed
Aariq opened this issue Nov 1, 2020 · 1 comment
Closed

Implicit assumption of colony ID column name in bumbl() #45

Aariq opened this issue Nov 1, 2020 · 1 comment
Labels
bug Something isn't working Priority: High
Milestone

Comments

@Aariq
Copy link
Owner

Aariq commented Nov 1, 2020

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`.

Created on 2020-11-01 by the reprex package (v0.3.0)

@Aariq Aariq added bug Something isn't working Priority: High labels Nov 1, 2020
@Aariq Aariq added this to the v1.0.0 milestone Nov 30, 2020
@Aariq
Copy link
Owner Author

Aariq commented Dec 2, 2020

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.

@Aariq Aariq closed this as completed in 7d91b2d Dec 2, 2020
Aariq added a commit that referenced this issue Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: High
Projects
None yet
Development

No branches or pull requests

1 participant