[R] keeping seperate row.names

2008-07-17 Thread Patrick Richardson
I have microarray data with gene names in the first column, gene id in the second and the expression data in the remaining columns. When trying use read.table I get the error, . . . "more columns than column names". Is there any way to keep both columns of "names" without having to discard one.

[R] Extracting "row.names"

2008-06-23 Thread Patrick Richardson
List, I'm trying to extract the row names of a table I have read into R. > data <- read.table("mesodata.txt", header=TRUE, row.names=1) When I try to extract them using, > names <- data$row.names I get, > names NULL I've tried changing to a matrix, data frame, etc. and still get "NULL". I'

[R] ML Estimation Differences with R and SAS

2008-03-10 Thread Patrick Richardson
List, I'm working on fitting a logistic model for a well known dataset (which is given below in case anyone wants to try to reproduce). I used both R and SAS to fit the model and have some differences in the parameter estimates. I'm wondering if R calculates the ML estimates differently. I'm mak

[R] Help with Error Message

2007-11-05 Thread Patrick Richardson
Hoping someone can offer me some assistance. I'm trying to execute a script and I keep getting this error message about "Error: element 12 is empty". I'm wondering if my syntax is incorrect within legend.list. If anyone has any suggestions to sees something obvious that I am missing, I would grea

[R] Package Building help

2007-09-24 Thread Patrick Richardson
List, I've used package.skeleton to build my package and am trying to check it using R CMD check "." But can't seem to get anything to work. When I try to enter the R CMD command into R I get this message. R CMD check estpkg Error: syntax error, unexpected SYMBOL, expecting '\n' or ';' in