Hi,
I am trying to extract a subset of a ddf(local disk based).
library("datadr")
write.table(mtcars, "mtcars.csv", sep = ",", row.names = FALSE)
lc <- localDiskConn(file.path(getwd(), "test"), autoYes = TRUE)
drRead.table("mtcars.csv"
, header = TRUE
, sep = ","
, output = lc
, rowsPerBlock = 7)
mtcars_ddf <- ddf(lc, update = TRUE)
drSubset(mtcars_ddf, gear == 2)
The last line throws an error:
* Testing 'subset' on a subset
Error in names(tmp) <- c("key", "value") :
'names' attribute [2] must be the same length as the vector [1]
Same error if the last line is replaced by: drSubset(mtcars_ddf, c(rep(TRUE, 10), rep(FALSE, 22)))
Is this the intended usage of drSubset or am I missing something?
Hi,
I am trying to extract a subset of a ddf(local disk based).
The last line throws an error:
Same error if the last line is replaced by:
drSubset(mtcars_ddf, c(rep(TRUE, 10), rep(FALSE, 22)))Is this the intended usage of
drSubsetor am I missing something?