Re: [R] Error in "rownames"

2015-07-22 Thread David Winsemius
On Jul 22, 2015, at 12:50 AM, JIALU YAO wrote: > Hello, > > When I type the code *rownames(gene_exp_matrix)<-levels(geneidfactor)*,the > error happens: Error in "rownames<-(*tmp*,value=character(0)):can not set > object to 'rownames'. > > I am using Mac OS X10.10.2. > > How can I fix this prob

Re: [R] Error in "rownames"

2015-07-22 Thread Sarah Goslee
Without a reproducible example that includes some sample data (fake is fine), the code you used, and some clear idea of what output you expect, it's impossible to figure out how to help you. Here are some suggestions for creating a good reproducible example: http://stackoverflow.com/questions/59632

[R] Error in "rownames"

2015-07-22 Thread JIALU YAO
Hello, When I type the code *rownames(gene_exp_matrix)<-levels(geneidfactor)*,the error happens: Error in "rownames<-(*tmp*,value=character(0)):can not set object to 'rownames'. I am using Mac OS X10.10.2. How can I fix this problem? Thank a lot. Yao -- View this message in context: http:/

Re: [R] error in rownames

2014-09-29 Thread Adams, Jean
Chris, I think your best bet is to find someone locally that is familiar with R, and show them this correspondence. They will be able to help you post your question so that you have the best chance of getting an answer. Or, perhaps, they will be able to answer the question themselves. Jean On

Re: [R] error in rownames

2014-09-26 Thread PIKAL Petr
Thursday, September 25, 2014 5:57 PM > To: Adams, Jean > Cc: R help > Subject: Re: [R] error in rownames > > Sorry to respond again so quickly, but is this what you meant? > > > y <- subset(training, select = c(ResponseSu))> x <- subset(training, > select = c(sinaspec

Re: [R] error in rownames

2014-09-25 Thread David Winsemius
Chris; You are posting in HTML. You have apparently not read the Posting Guide. This is a plain-text mailing list. Please do read it now: http://www.R-project.org/posting-guide.html The code scraped from you consoles comes through without any linebreaks. (It's pretty easy to configure gmail to

Re: [R] error in rownames

2014-09-25 Thread Chris Jackson-Jordan
Sorry to respond again so quickly, but is this what you meant? y <- subset(training, select = c(ResponseSu))> x <- subset(training, select = c(sinaspect, habitat, elevation, disttowat, disttoroad, slope, cosaspect))> type.rf <- yai(x=x, y=y, method="randomForest", rfMode="regression", ntree=20)>

Re: [R] error in rownames

2014-09-25 Thread Chris Jackson-Jordan
Thanks again for your help, I am obviously a novice programmer. That said, I think I am confused as to what you mean by reproducible code. Were the 20 lines of code not reproducible? Also, what do you mean by the help for Ascii Grid Impute. I'm not able to find it online or within the R platform. F

Re: [R] error in rownames

2014-09-25 Thread Adams, Jean
Chris, You are not making it easy for R help folks to help you. You need to supply *** reproducible *** code, so that folks can simply copy and paste directly from your e-mail to R and reproduce the error that you are getting. Do you need a guide to follow? See the first 60-some lines of code p

[R] error in rownames

2014-09-22 Thread Chris Jackson-Jordan
Dear fellow R users, I am trying to run the random forest and Yaimpute packages in R to impute a grid to project in a gis. However, after running the imputation I keep getting an error in the rownames. This sounds simple enough, but I cannot figure out what these rownames are reffering to. Any ide

Re: [R] Error in rownames

2014-09-19 Thread Adams, Jean
Chris, It's hard to troubleshoot without reproducible code. I suggest you post a simple example of code that we can run. For example, use dput(training[1:20, ]) to spit out the first 20 lines of the training data. Then simplify the rest of the code as much as possible. library(yaImpute) t

[R] Error in rownames

2014-09-19 Thread Chris Jackson-Jordan
Dear fellow R users, I am trying to run the random forest and Yaimpute packages in R to impute a grid to project in a gis. However, after running the imputation I keep getting an error in the rownames. This sounds simple enough, but I cannot figure out what these rownames are reffering to. Any ide