Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
Thanks. What editor do you use? I'm working in a Mac, if that makes a difference. From: Gerrit Draisma Date: Tuesday, February 9, 2021 at 5:10 PM To: Parkhurst, David F. Cc: r-help@r-project.org Subject: Re: [R] Need help using lattice Ha David, I do not know. It must be that your AprtoDec o

Re: [R] Need help using lattice

2021-02-09 Thread Gerrit Draisma
Ha David, I do not know. It must be that your AprtoDec object is different from month.abb. Anyhow it should contain the labels for all twelve months! If I copy your command in an interactive session I just get the message that AprtoDec is not defined. I understand that you type the commands inte

Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
When I enter your line: df <- expand.grid(site=c("een","twee","drie","vier","vijf"),   month=factor(3:12,levels=1:12,    labels=month.abb, ordered=TRUE)) I get + signs in front of month and label, as expected, and it follows with < When I convert that to

Re: [R] 3 x 2 mixed factorial design - which model is correct

2021-02-09 Thread Bert Gunter
Please note, per the posting guide linked below: "*Questions about statistics:* The R mailing lists are primarily intended for questions and discussion about the R software. However, questions about statistical methodology are sometimes posted. If the question is well-asked and of interest to some

Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
Thank you. From: Gerrit Draisma Date: Tuesday, February 9, 2021 at 6:14 AM To: Parkhurst, David F. Cc: r-help@r-project.org Subject: Re: [R] Need help using lattice Ha David, Thanks for your reply. For your last question, you have to change month into an ordered factor variable: library(lattic

[R] 3 x 2 mixed factorial design - which model is correct

2021-02-09 Thread Katerina Pappa (PGR)
Hello everyone, I was hoping you could help with a few R-related questions. I have a 3 x 2 mixed factorial design. This is a longitudinal design, where two groups of participants were assessed over three time points. Factor Time has 3 levels (time 1, 2 and 3) Factor Group has 2 levels (groups 1

Re: [R] readline in function call with space in prompt.

2021-02-09 Thread Karl Ropkins
Not on a machine with latest R at moment so not ruling out something there, but it is working fine for me. Karl R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041) -- Message: 9 Date: Tue, 9 Feb 2021 10:2

Re: [R] Need help using lattice

2021-02-09 Thread Gerrit Draisma
Ha David, Thanks for your reply. For your last question, you have to change month into an ordered factor variable: library(lattice) df <- expand.grid(site=c("een","twee","drie","vier","vijf"), month=factor(3:12,levels=1:12, labels=month.abb, ordere

Re: [R] readline in function call with space in prompt.

2021-02-09 Thread Michael Dewey
The function test as defined below by Jeremie works as I would have expected for me on Windows so I am unable to replicate the problem there. R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041) Matrix products: default locale: [1]

Re: [R] readline in function call with space in prompt.

2021-02-09 Thread Martin Maechler
> Jeremie Juste > on Mon, 08 Feb 2021 14:28:33 +0100 writes: > Hello, > I have noticed a behavior that I don't understand. When I call the > following function from the prompt. > test <- function(){ > a <- readline("selection: ") > a > } >> test()