-
Notifications
You must be signed in to change notification settings - Fork 12
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
rename "data" generic? #37
Comments
I noticed this once I'd sent the pull request, and I agree... I think actually I favour getting rid of it altogether: originally I put it in to give access to the data slot, but as I mentioned in #32, it's not actually necessary that users access that entire data.frame rather than just either the matrices or the metadata |
Throughout, moved towards using methods to access data rather than through the slots directly. Incorporated code from @patrickbarks regarding subset, replace, merge
I really liked Anyone opposed to me reverting the slot names to |
closed by #43 |
I noted that #32 introduces a
data
generic to extract the metadata w/ list column from theCompadreData
structure. However,data()
is also a function fromutils
used to load packages' internal data sets (e.g.data(mtcars)
).I don't think it would cause any actual problems to have the method named as such, but it may be confusing for users interpreting code that employs it because it doesn't really do the same thing as the
utils
function and that is often used in teaching materials (e.g. vignettes, online tutorials, etc). maybe calling itextract_data
or something is safer?The text was updated successfully, but these errors were encountered: