ffbase
ffbase copied to clipboard
save.ffdf produces an error " NA were not saved, because not found" if you are using it in a list
Hello, I organize my ffdf files in llists but the ffdf.save function returns and error if I pass it an ffdf object that is within a list. NA were not saved, because not found
here is an example myList <- list(test = 1, test2 = 2) myList$test <- as.ffdf(data.frame(dummy1 = c(1,2), dummy2 = c(1,2))) save.ffdf(myList$test)
This is because of the line: names <- as.character(substitute(list(...)))[-1L]
The thing is, this function actually work in this case. It just return a warning message with an error. Can you figure out a way to get rid of this?
Thanks, Patrick
you could write a wrapper around save.ffdf e.g. save.ffdflist and load.ffdflist to do this