[R] Error in "rownames"

Sarah Goslee sarah.goslee at gmail.com
Wed Jul 22 17:44:48 CEST 2015


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/5963269/how-to-make-a-great-r-reproducible-example



On Wed, Jul 22, 2015 at 3:50 AM, JIALU YAO <YAOJIALU at foxmail.com> 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 problem?
>
> Thank a lot.
>
> Yao
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-in-rownames-tp4710183.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list