-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make db@data printable #39
Comments
I think we should try the tibble approach. It seems to me to be the most straightforward, and preserves the relationship between the metadata and the matrices (which was the main advantage/reason behind putting them in the data frame in the first instance. |
I think it can all be done within the
|
closed by #43 and subsequent updates |
Picking up from #32, I think
print(db@data)
throwing an error is an issue that should be solved, even if we don't want users to access thedata
slot that way. Presumably many users will usedb@data$
to create derived columns. I think some users will realizedb@data
is just adata.frame
, and that's where all the important stuff is, and then be confused when normal data frame stuff fails (this is exactly what happened to me). The options that I can think of (there may well be others):db@data
a tibbledb@data$mat
back to it's own slot (db@mat
)print
method fordb@data
CompadreM
class and revertdb@data$mat
to a list of lists (that wayprint(db@data)
won't throw an error, though the printing won't be pretty)I think option 1 or 2 are the least worst.
The text was updated successfully, but these errors were encountered: