add x variables to df , add df$x variables to x
df$x1 <- x1 x1 <- df$x1
df$x2 <- x2 x2 <- df$x2
... ...
df$x24 <- x24 x24 <- df$x24
formula_add <- c(paste(paste0("x", 1:24), collapse = " <- "))
formula_add
I have gotten this far.
[1] "x1 <- x2 <- x3 <- x4 <- x5 <- x6 <- x7 <- x8 <- x9 <- x10 <- x11 <- x12 <- x13 <- x14 <- x15 <- x16 <- x17 <- x18 <- x19 <- x20 <- x21 <- x22 <- x23 <- x24"
Can anyone help with this large # of variables data set? I don't know how to attach a small portion of it. Its ready. How to do? Thanks. MM