[R] Using apply() with functions I wrote

2014-07-24 Thread Pfeiffer, Steven
Hello! Does apply() not work with customized functions? Here is a simple example: AddSeven-function(n){n+7} AddSeven(3) [1] 10 M-matrix(nrow=2,ncol=2,data=c(1,2,3,4),byrow=TRUE) M [,1] [,2] [1,]12 [2,]34

Re: [R] Using apply() with functions I wrote

2014-07-24 Thread Pfeiffer, Steven
24, 2014 at 10:07 AM, Pfeiffer, Steven pfeif...@miamioh.edu wrote: Hello! Does apply() not work with customized functions? Here is a simple example: AddSeven-function(n){n+7} AddSeven(3) [1] 10 M-matrix(nrow=2,ncol=2,data=c(1,2,3,4),byrow=TRUE) M

[R] lme function cannot find object

2013-06-05 Thread Pfeiffer, Steven
Hello, I have been using the function lme() from package 'nlme' for several months now without any problems. Suddenly, it cannot find a factor in my data. Is this a new bug of some kind? My code and output are below. Thanks for your help! -Steve Pfeiffer require(xlsx) require(nlme)

[R] How to change background and text colors in script window?

2013-03-22 Thread Pfeiffer, Steven (pfeiffss)
Hello, Does anyone know how to change background and text colors in script windows in R? (I have changed the console's background and text colors by using EditGUI preferences, but that doesn't seem to work for script windows.) I am using R 2.15.1 (32-bit) for Windows, and am using Windows 7.

[R] nested, unbalanced anova

2013-01-05 Thread Pfeiffer, Steven
Hello, For an experiment, I selected plots of land within a forest either with honeysuckle or without honeysuckle. Thus, my main factor is fixed, with 2 levels: honeysuckle present(n=11) and honeysuckle absent(n=8). Within each plot of land, I have a trenched subplot and an untrenched subplot.