[R] Simple question on replace a matrix row

David Winsemius dwinsemius at comcast.net
Sat Jan 30 00:31:15 CET 2010


On Jan 29, 2010, at 6:14 PM, anna wrote:

>
> Bill this is exactly what is happening, by using lapply I am having  
> a list
> and not a numeric vector, I want a numeric vector, is there a way to  
> convert
> that list to a numeric vector?

You could see if substituting sapply would yield a matrix. It will if  
the inputs are appropriate.


>
> -----
> Anna Lippel
> -- 
> View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1440742.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list