[BioC] v is for values()

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri May 11 21:48:11 CEST 2012

But honestly tho:

> back to emd() or dat() or some such then?

The difference between values and emd/dat is 3 characters -- is this
really going to make a difference? A one-letter accessor or bust! (or
use `$` already! :)

But also:

Are you accessing the values() alot, or changing/adding to them?

I should check, but do the with/within constructs work with DataFrame
objects, maybe going that route can help in the tedium?

For example, when you're accessing the elementMetadata() often:

with(values(gr), {
  ## do lots of stuff w/ the columns

or if you want to tack on a bunch of junk to the metadata:

values(gr) <- within(values(gr), {
  ## what
  ## ever
  ## return some augmented version of your values()

You know?


Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact

More information about the Bioconductor mailing list