Re: [R] Odd behavior of a function within apply

2022-08-08 Thread John Fox
Dear Erin, The problem is that the data frame gets coerced to a character matrix, and the only column with "" entries is the 9th (the second one you supplied): as.matrix(test1.df) X1_1_HZP1 X1_1_HBM1_mon X1_1_HBM1_yr 1 "48160" "December""2014" 2 "48198" "June""2018" 3

[R] Odd behavior of a function within apply

2022-08-08 Thread Erin Hodgess
Hello! I have the following data.frame dput(test1.df[1:10,8:10]) structure(list(X1_1_HZP1 = c(48160L, 48198L, 80027L, 48161L, NA, 48911L, NA, 48197L, 48021L, 11355L), X1_1_HBM1_mon = c("December", "June", "August", "", "", "August", "April", "February", "", "December"), X1_1_HBM1_yr = c(2014L,

[R-es] Tratamientos antagónicos o sinérgicos

2022-08-08 Thread Andrés Hirigoyen
Buenos dias. ¿Conocen algún paquete para comparar tratamientos (con un modelo mixto) y evaluar si son iguales, antagónicos o sinérgicos"? Desde ya gracias por la ayuda -- Scholar Andrés Researchgate Andrés