BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

Bug from %>% fix #120

Closed FrancescaMancini closed 5 years ago

FrancescaMancini commented 5 years ago

I found a bug in formatOccData. The .data argument to group_by and summarise is missing.

https://github.com/BiologicalRecordsCentre/sparta/blob/d121a723d9cb2da2925767f55a39143ad216a895/R/formatOccData.r#L126

This is causing the error

Error in UseMethod("group_by_") : 
  no applicable method for 'group_by_' applied to an object of class "factor"