Closed Blundys closed 3 years ago
Interesting... thanks for the report. I'll have a look into what's going on.
The group_by()
bug is fixed in the 0.6.1 release that I had to make to keep CRAN happy due to some failing tests on the CRAN server.
The bind_rows()
bug still exists and should be fixed in the next release.
Hello, This bug is still happening for me.
install.packages("bomrang")
library(dplyr)
library(devtools)
#install_github("https://github.com/ropensci/bomrang")
library(bomrang)
dat1 <- get_historical(stationid = sweep_for_stations()[1,1])
dat1 %>%
group_by(year) %>%
summarise(rain.mean = mean(rainfall,na.rm = TRUE))
class(dat1)
data.frame(dat1) %>%
group_by(year) %>%
summarise(rain.mean = mean(rainfall,na.rm = TRUE))
dat2 <- get_current_weather(station_name = sweep_for_stations()[1,3])
dat2 %>%
group_by(cloud) %>%
summarise(mean_temp = mean(air_temp, na.rm = TRUE))
data.frame(dat2) %>%
group_by(cloud) %>%
summarise(mean_temp = mean(air_temp, na.rm = TRUE))
I updated my version of R and now it is working
Hi, your vignette states that the bomrang_tbl class is designed to be compatible with dplyr functions but I have found that it causes many issues. I have included several examples below:
dplyr::group_by()
does not preform as expected, subsequent functions such asdplyr::summarise()
ordplyr::filter()
return results the same as if data was not groupeddplyr::bind_rows()
even simple functions such ashead
cause errors (although data can still be accessed)Created on 2019-11-13 by the reprex package (v0.3.0)