[R] subsetting a dataset

2012-06-24 Thread bdossman
Hi I am a beginner R user and need a little help with the subset function. I have a dataset with columns; TOWER,TAG.ID, DATETIME (POSIXct class) and I would like to subset my data by specific TAG.ID (e.g TAG.IDs 12:20 and 192:212). Is there an easy way to preform this operation? Thanks Bryant

[R] Loop Help

2012-05-19 Thread bdossman
Hi all, I am a beginner R user and need some help with a simple loop function. Currently, I have seven datasets (TOWER1,TOWER2...TOWER7) that are all in the same format (same # of col and headers). I am trying to add a new column (factor) to each dataset that simply identifies the dataset. Ultima