From p.dalgaard at biostat.ku.dk  Fri Sep 17 20:37:50 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Fri Sep 17 20:39:03 2004
Subject: [Rd] Function some()
In-Reply-To: <loom.20040917T192748-719@post.gmane.org>
References: <20040917171038.YRUK7925.tomts25-srv.bellnexxia.net@JohnDesktop8300>
	<loom.20040917T192748-719@post.gmane.org>
Message-ID: <x2d60k4u81.fsf@biostat.ku.dk>

Gabor Grothendieck <ggrothendieck@myway.com> writes:

>    data(iris) 
>    data(state)
> 
> # Now we have:
> 
>    head(sample(iris))                  # data frame
>    head(sample(data.frame(state.x77))) # matrix 
>    head(sample(letters))               # vector

Nope. Think again:

> names(sample(iris))
[1] "Species"      "Sepal.Width"  "Sepal.Length" "Petal.Length"
"Petal.Width"
> names(sample(iris))
[1] "Sepal.Length" "Species"      "Petal.Width"  "Petal.Length"
"Sepal.Width"

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] Function some()
Peter Dalgaard