[R] Newbie help on dim

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.be
Thu Sep 1 14:11:47 CEST 2005


yes it is correct! look at ?dim() for more info. In this case you need 
length(), i.e.,

Z <- rnorm(50)
length(Z)


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "Christian Prinoth" <Christian.Prinoth at epsilonsgr.it>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, September 01, 2005 2:00 PM
Subject: [R] Newbie help on dim


> Hi, if I do
>
> Z<-rnorm(50)
> Followed by
> Dim(Z)
> I get NULL. Is this correct? Shouldn't I get 50 instead?
>
> TIA
> Chris
>
> DISCLAIMER:\ L'utilizzo non autorizzato del presente 
> messagg...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list