Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having a period (.) in a table column name prevents merge and and ffdfdply from working #38

Open
thequackdaddy opened this issue Jul 17, 2014 · 2 comments

Comments

@thequackdaddy
Copy link

I'm running an ffdfdply operation. Something like this...

TrainingData<-ffdfdply(x=TrainingData,split=TrainingData$id,
FUN=function(x) {x$Predicted<-predict(Model,newdata=x, type="vector")
x$Segment<-predict(Model2, newdata=x)
x})

Turns out that I have periods (.) in my column names. That makes ffdfdply (and some other things like merge.ffdf) error out and give this message.

Error: is.null(names(x)) is not TRUE
@jwijffels
Copy link
Collaborator

Do you have a reproducible example of this?

@edwindj
Copy link
Owner

edwindj commented Sep 26, 2014

As a side note: working on ffbase2 (see http://github.com/edwindj/ffbase2).
Your code would translate to:

TrainingData <-
  TrainingData %>%
  group_by(id) %>%
  do( Predicted = predict(Model, newdata=., type="vector")
    , Segment  = predict(Model2, newdata=.)
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants