search for: aulacoseira_islandica

Displaying 1 result from an estimated 1 matches for "aulacoseira_islandica".

2010 Apr 01
3
Using a string as a variable name - revisited
...ing a string to indicate a column with the same name. I am making "foo" a string taken from a list of names. It matches the row where "item" = 5, and picks the corresponding "taxon" > foo <- list$taxon[match(5,list$item)] Let's say this returns foo as "Aulacoseira_islandica". I have another matrix "counts" with column headers corresponding to the taxon list. But, when I try to access the data in the Aulacoseira_islandica column, it instead uses the data from another column. For instance... > columndata <- counts[[foo]] ...returns the data from t...