[R] how to control the label position on panels of trellise plot

2009-10-29 Thread zrl
Hi, I am wondering how to control the label position on panels of trellise plot. I have 6 panels, I want to all x label positions at the bottom of each panel. How should I do that? Similar, how should I control y label positions of each panel? Thanks. [[alternative HTML version deleted]]

[R] error in mixed effect model when use "maximum likelihood"

2009-09-04 Thread zrl
Dear List, I tried to fit a mixed effect model. data are like this: groupid time t control 10 4.3 control 20 3.7 control 30 4.0 control 40 3.6 control 50 4.1 control 60 3.8 .. control 45 5.1 control 55 4.5

Re: [R] unix like commands in R?

2009-08-28 Thread zrl
Thank you Ted. I did try page(file,method="print"), it did behave as "less". I will try the code to modify the profile as well to see how it goes. Thank you very much. On Mon, Aug 24, 2009 at 5:32 PM, Ted Harding wrote: > On 24-Aug-09 21:56:06, zrl wrote: > > Dear

Re: [R] how to explain the interaction terms regarding "treatmentcontrast" of lm model

2009-08-28 Thread zrl
> -Ursprüngliche Nachricht- > Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im > Auftrag von zrl > Gesendet: Friday, August 28, 2009 6:49 PM > An: r-help > Betreff: [R] how to explain the interaction terms regarding > "treatmentcontrast&q

[R] how to explain the interaction terms regarding "treatment contrast" of lm model

2009-08-28 Thread zrl
Dear list, I am confused on how to explain the interaction term in the context of "treatment contrast". for example, I have an data frame as below: sub group val 1a group1 3.685625 2a group1 3.407445 3a group1 4.040920 4a group1 2.890875 5b group1 3.853280 6b group1

[R] unix like commands in R?

2009-08-24 Thread zrl
Dear List: I am trying to find a command in R which is like the unix command "less" or "more" to show the data in a object of R. did anyone can help me on this? Is there a collection of such unix-like commands in R? Thanks. -ZRL [[alternative

Re: [R] how to load packages from different location

2009-07-28 Thread zrl
Very helpful, thank you Phil. -ZRL On Tue, Jul 28, 2009 at 6:06 PM, Phil Spector wrote: > I'm attaching some slides that address this issue. > I hope you find them useful. > > - Phil Spector > S

[R] how to load packages from different location

2009-07-28 Thread zrl
Dear list: I know this may be an old question. I know how to install the packages to a different directory, for example, /home/zrl/tmp and I know how to load it >library("genefilter",lib.loc="/home/zrl/tmp") but I found some package(for example package A) will have to l

[R] allocation/initialization of arrays/lists

2009-07-05 Thread zrl
list (which one is better?) with "n" elements} #"for" loop for assigning a subset of a large data frame to the elements of the array or list (which on is better?) for (i in 1: n){ array[i] <- df[df$V1==A[i],] } Thanks. ZRL [[alte