[R] Accessing specific data.frame columns within function

2016-02-04 Thread Clark Kogan
Hello, I am trying to write a function that adds a few columns to a data.frame. The function uses the columns in a specific way. For instance, it might take a^2 + c to produce a column d. Or it might do more complex manipulations that I don't think I need to discuss here. I want to keep x as a dat

[R] Specifying unique random effects for different groups

2012-08-14 Thread Clark Kogan
) How would I modify the above code so that the first 13 individuals, or those with schedulenumber=1 do not have the random effect "b"? Thanks!! Clark Kogan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE