I'm trying to knit an RStudio notebook but i'm getting the following error:
"Error in UseMethod("mutate_") : no applicable method for 'mutate_' applied to an object of class "function" Calls: ... mutate -> log_mutate -> .fun -> mutate.default -> mutate_"
with the following lines:
data <- data %>%
mutate(
variable = factor(variable,ordered = FALSE)
)
The funniest thing is that the R code works just fine and does the expected. Only the knitting doesn't work.
Any thoughts? Thanks in advance!