search for: columndata

Displaying 2 results from an estimated 2 matches for "columndata".

2010 Apr 01
3
Using a string as a variable name - revisited
...'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 the wrong column. What it seems to be doing is converting the text "Aulacoseira_islandica" to a number (25, for some reason) and reading the count data from column number 25, instead of from the column labelled with Aulacoseira_islandica. If...
2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
...that each answer is its own category and so could be represented as a seperate column in the data set, but I'd like the option of reading in the data column, and converting it to a vector that has all row values (comma seperated or not) each have their own vector entry, so that the "table(columnData)" function does counts correctly. So some code: myData = read.delim(myDataFile, row.names=1,header=TRUE,skip=10); #works fine myColumn = myData[[question]]; #works fine, selects correct question column data myColumn data is now e.g.: 1 0 2 0,2 0 3 2...