Re: [R] Splitting Datasets

2011-03-27 Thread Steve Lianoglou
Hi, Answers inline: On Sun, Mar 27, 2011 at 8:50 PM, Wainscott, Robert LT 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 o

Re: [R] Splitting Datasets

2011-03-27 Thread Bert Gunter
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 -- Bert On Sun, Mar 27, 2011 at 5:50 PM, Wainscott, Robert LT wrote: > On R 2.12 for Mac OSX, I have a dataset with both nu

Re: [R] Splitting Datasets

2011-03-27 Thread Jack Tanner
Wainscott, Robert LT cvn74.navy.mil> writes: > I want to split dataset "ZIDL", into individual datasets based on the > string content of variable "Dept". There are many, many ways to do this, depending on what you're really after. Here's one: depts = levels(factor(zidl$dept)) for (i in 1:length

[R] Splitting Datasets

2011-03-27 Thread Wainscott, Robert LT
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 sam