llrs / experDesign

Design experiments distributed in several batches
https://experDesign.llrs.dev
Other
10 stars 1 forks source link

Aggregate categories into one #36

Closed llrs closed 1 year ago

llrs commented 1 year ago

If multiple non numeric variables are used experDesign could simply paste them together and perform the calculations with it. It could be done in addition (not just replacing current state) as it might help detect cases when all x of X goes with y of Y:

df <- data.frame(class = rep(c("A", "B"), each = 2), hair = rep(c("brown", "black"), each = 2)
Z <- apply(df, 1, paste, collapse = "")

All A (x) goes with brown (y), Z could be used instead.

llrs commented 1 year ago

Now in the devel version together with some improved internal documentation. Keeping this open because it is not mentioned in the NEWS.