Re: [R] Help with Regular expression

2018-01-05 Thread Arun Kumar Saha
Hi Bogaso, I see your ultimate goal is to extract the Date-time part from your expression, then below should help : > as.POSIXlt(gsub("[^0-9a-zA-Z]", "", "\":\"03-JAN-2018 16:00:00\""), format = "%d%b%Y%H%M%OS") [1] "2018-01-03 16:00:00 GMT" _

[R] Document Term Matrix

2018-01-05 Thread Elahe chalabi via R-help
Hi, Does anyone know what is maximal term length in Document Term Matrix? <> Non-/sparse entries: 8081/210709 Sparsity : 96% Maximal term length: 12 Weighting : term frequency (tf) Thanks for any help! Elahe __ R-help@r-project.org

[R] Calculating the correlations of nested random effects in lme4

2018-01-05 Thread Dominik Ćepulić
I postulate the following model AC <- glmer(Accuracy ~ RT*Group + (1+RT|Group:subject) + (1+RT|Group:Trial), data = da, family = binomial, verbose = T) Here I predict Accuracy from RT, Group (which has values 0 or 1) and the interaction of Group and RT (those are the fixed effects). I also e