Hello! I'm super new to RStudio and I have some troubles.
I've got a dataset and I need to change many columns format from int to factor. All these columns start with "gg_". So not to go one by one I want to use across function.
So I'm trying to do it like that:
levels = c(0,1),
labels = c("’No’", "’Yes’"))
And I've got some erros:
..2 = as.factor.
..2 must be a vector, not a function.
Could you help me how to fix it? I used mutate several times defore but every time with a certain column names and everything was fine. Here I'm missing something.