[R] Newbie help on dim

2005-09-01 Thread Christian Prinoth
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@stat.math.ethz.ch mailing list

Re: [R] Newbie help on dim

2005-09-01 Thread Dimitris Rizopoulos
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

Re: [R] Newbie help on dim

2005-09-01 Thread Andy Bunn
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christian Prinoth Sent: Thursday, September 01, 2005 8:01 AM To: r-help@stat.math.ethz.ch 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

Re: [R] Newbie help on dim

2005-09-01 Thread Uwe Ligges
Christian Prinoth wrote: Hi, if I do Z-rnorm(50) Followed by Dim(Z) I get NULL. Is this correct? Shouldn't I get 50 instead? No, because Z has no dim attribute. ?dim tells you: For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is

Re: [R] Newbie help on dim

2005-09-01 Thread Chuck Cleland
Should the Value: section of the help page read: For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is NULL for a vector of mode integer. NOTE: for not or in the second sentence. Uwe Ligges wrote: Christian Prinoth wrote: Hi, if I do

Re: [R] Newbie help on dim

2005-09-01 Thread Uwe Ligges
Chuck Cleland wrote: Should the Value: section of the help page read: For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is NULL for a vector of mode integer. NOTE: for not or in the second sentence. NO!!! The help page is correct! The

Re: [R] Newbie help on dim

2005-09-01 Thread Achim Zeileis
On Thu, 01 Sep 2005 08:25:14 -0400 Chuck Cleland wrote: Should the Value: section of the help page read: For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is NULL for a vector of mode integer. This statement is true, but less general than

Re: [R] Newbie help on dim

2005-09-01 Thread Uwe Ligges
Achim Zeileis wrote: On Thu, 01 Sep 2005 08:25:14 -0400 Chuck Cleland wrote: Should the Value: section of the help page read: For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is NULL for a vector of mode integer. This statement is

Re: [R] Newbie help on dim

2005-09-01 Thread Achim Zeileis
On Thu, 01 Sep 2005 14:44:53 +0200 Uwe Ligges wrote: Achim Zeileis wrote: On Thu, 01 Sep 2005 08:25:14 -0400 Chuck Cleland wrote: Should the Value: section of the help page read: For an array (and hence in particular, for a matrix) dim retrieves thedim attribute of the object. It