[R] dimnames

Peter Dalgaard pdalgd at gmail.com
Wed Aug 18 21:18:23 CEST 2010


On 08/18/2010 06:20 PM, Joshua Wiley wrote:
> matrix(1:4, nrow = 4, ncol = 1, dimnames = list(NULL, "true value"))
> 

or even

cbind("true value"=1:4)


-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list