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@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.

Reply via email to