Skip to content

changing/adding multiple columns in a mutaframe #3

@heike

Description

@heike

Each one of the following commands works with a data.frae, but not with a mutaframe - ... could we change this?

library(plumbr)
qmtcars <- qdata(mtcars)

qmtcars[,c("x","y")] <- data.frame(rnorm(n=nrow(mtcars)), rnorm(n=nrow(mtcars)))
# Error in which(data != new) : 
#   error in evaluating the argument 'x' in selecting a method for function 'which': Error: (list) object cannot be coerced to type 'double'
qmtcars[,c("x","y")] <- list(rnorm(n=nrow(mtcars)), rnorm(n=nrow(mtcars)))
# Error in which(data != new) : 
#   error in evaluating the argument 'x' in selecting a method for function 'which': Error: (list) object cannot be coerced to type 'double'
qmtcars[c("x","y")] <- list(rnorm(n=nrow(mtcars)), rnorm(n=nrow(mtcars)))
# Error in which(data != new) : 
#   error in evaluating the argument 'x' in selecting a method for function 'which': Error: (list) object cannot be coerced to type 'double'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions