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

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

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