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

Column descriptions interfere / get out-of-sync when adding/removing columns in matrixData #2

Open
jdrudolph opened this issue Jun 13, 2018 · 0 comments

Comments

@jdrudolph
Copy link
Collaborator

Keeping track of column descriptions is not really possible at the moment. The following code will fail.

df <- matrixData(main=data.frame(a=1:3, b=6:8), description=c('a', 'b'))
main(df)['c'] <- 9:11

The only workaround currently is deleting all descriptions

description(df) <- character(0)

Maybe converting description to a list would make it easier to keep track of the column name -> description mapping. This is low priority for now. A test with warning was added in ae49bbe to keep track of this issue.

@jdrudolph jdrudolph changed the title Column descriptions interfere / get out-of-sync when changing any columns in matrixData Column descriptions interfere / get out-of-sync when adding/removing any columns in matrixData Jun 13, 2018
@jdrudolph jdrudolph changed the title Column descriptions interfere / get out-of-sync when adding/removing any columns in matrixData Column descriptions interfere / get out-of-sync when adding/removing columns in matrixData Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant