[R] GLM Help

2014-09-03 Thread Kathy Haapala
Hi all, I have a large set of data that looks something like this, although this data frame is much smaller and includes made up numbers to make my question easier. > x.df <- data.frame(Region = c("A", "A", "A", "A", "A", "B", "B", "B", "B", > "B", "B", "C", "C", "C", "C"), Group_ID = c(1:15), N

[R] Combining Rows from One Data Frame, Outputting into Another

2014-08-01 Thread Kathy Haapala
If I have a dataframe x.df as follows: > x.df <- data.frame(Year = c(2000, 2000, 2000, 2000, 2000, 2001, 2001, 2001, 2001, 2002), Group = c(1, 1, 1, 2, 2, 1, 2, 2, 3, 1), Eye_Color = c("blue", "blue", "brown", "green", "green", "blue", "brown", "blue", "blue", "blue")) > x.df Year Group Eye_Col