I have the df:
df_1 <- data.frame(
x = replicate(
n = 10, expr = runif(n = 30, min = 20, max = 100)
)
)
This works:
df_1 |>
(`$`)("x.1")
But:
df_1 |>
(`$`)("x.1", "x.2")
or
df_1 |>
(`$`)("x.1", "x.2", "x.3)
Doesn't work. I tried use %in%, [, [[ and c(), but nothing.