Skip to content

[<- for unitted_data.frames #22

@appling

Description

@appling

Some assignments to new columns work, others don't:

> library(unitted)
> df <- u(data.frame(x=1:3, y=4:6), c('a','b'))
> df$c <- TRUE
> df['d'] <- FALSE
Error in unitted(object, units, ...) : 
  Number of units must equal number of data.frame columns
> df[,'d'] <- FALSE
Error in unitted(object, units, ...) : 
  Number of units must equal number of data.frame columns
> df[['d']] <- TRUE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions