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
{{ message }}
Repository navigation
sd of one row comes out as zero through dplyr (instead of NA) #201
sd of one row comes out as zero through dplyr (instead of NA). Below is a short example (and long documentation of the environment).
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
library('RSQLite')
packageVersion('dplyr')
# [1] '0.5.0'
packageVersion('RSQLite')
# [1] '1.1.2'my_db<-dplyr::src_sqlite(":memory:", create=TRUE)
d<-data.frame(x=1)
dplyr::summarise_all(d, dplyr::funs(sd))
# x# 1 NAdbData<-dplyr::copy_to(my_db, d, create=TRUE)
dplyr::summarise_all(dbData, dplyr::funs(sd))
# Source: query [?? x 1]# Database: sqlite 3.11.1 [:memory:]## x# <dbl># 1 0
version# _ # platform x86_64-apple-darwin13.4.0 # arch x86_64 # os darwin13.4.0 # system x86_64, darwin13.4.0 # status # major 3 # minor 3.2 # year 2016 # month 10 # day 31 # svn rev 71607 # language R # version.string R version 3.3.2 (2016-10-31)# nickname Sincere Pumpkin Patch
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
krlmlr commentedon Feb 23, 2017
Thanks. This looks like an RSQLite problem to me. Would you mind resubmitting there?
krlmlr commentedon Feb 23, 2017
Wrong repo, I was confused by the reprex ;-)
krlmlr commentedon Feb 23, 2017
This looks like a problem in
extension-functions.c, line 1612 should be changed. Same for line 1625 for the variance.Merge branch 'b-#201-sd'. Closes #201.
Merge tag 'v1.1-13'
Merge tag 'v2.0'
github-actions commentedon Dec 8, 2020
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.