Re: [R] Splitting Datasets

From: Bert Gunter <gunter.berton_at_gene.com>
Date: Sun, 27 Mar 2011 20:41:04 -0700

Please start by read ing An Introduction to R. You need to understand R data structures and how it works AS A LANGUAGE. Forget about Minitab (while you are in R).

?tapply

On Sun, Mar 27, 2011 at 5:50 PM, Wainscott, Robert LT <robert.wainscott_at_cvn74.navy.mil> wrote:
> On R 2.12 for Mac OSX, I have a dataset with both numerical and
> character values.
>
>
>
> I want to split dataset "ZIDL", into individual datasets based on the
> string content of variable "Dept".
>
>
>
> I can create one subset dataset at a time using a script I found on the
> net, but rather than run the same function 17 times, can R look at the
> "Dept" variable and create subset datasheets of the main datasheet (one
> for each department) with a single command?
>
>
>
> In Minitab, this would be the "Split Worksheet" function.
>
>
>
> I am horrible at scripting, but trying to learn fast.

>
>
>
> Thanks in advance,
>
>
>
> Robert
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



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. Received on Mon 28 Mar 2011 - 03:42:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Mar 2011 - 03:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive