waldronlab / MultiAssayExperiment

Bioconductor package for management of multi-assay data
https://waldronlab.io/MultiAssayExperiment/
69 stars 32 forks source link

subsetByColData() #192

Closed lwaldron closed 3 years ago

lwaldron commented 7 years ago

A growing preference for endomorphic verbs was mentioned to me at the microbiome workshop in Boston that Marcel, Lucas, and I are at. (we currently have subsetByRow, subsetByColumn, and subsetByAssay). This one would have a usage something like:

subsetByColData(myMultiAssayExperiment, sex=="M")

that would be equivalent to:

myMultiAssayExperiment[, myMultiAssayExperiment$sex=="M", ]

Thoughts? Worthwhile?

ttriche commented 7 years ago

it's clearer what the first idiom is doing than the second, so yes, probably worthwhile

--t

On Thu, Feb 16, 2017 at 11:39 AM, Levi Waldron notifications@github.com wrote:

A growing preference for endomorphic verbs was mentioned to me at the microbiome workshop in Boston that Marcel, Lucas, and I are at. (we currently have subsetByRow, subsetByColumn, and subsetByAssay). This one would have a usage something like:

subsetBypData(myMultiAssayExperiment, sex=="M")

that would be equivalent to:

myMultiAssayExperiment[, myMultiAssayExperiment$sex=="M", ]

Thoughts? Worthwhile?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/waldronlab/MultiAssayExperiment/issues/192, or mute the thread https://github.com/notifications/unsubscribe-auth/AAARIsMhYHtp7obbRBe_mdDt9ddCi7b4ks5rdKXtgaJpZM4MDc-J .

lwaldron commented 5 years ago

Close again after adding to cheatsheet.

LiNk-NY commented 3 years ago

Done.