Hi,
I would like to convert a variable from character to a factor.
poziomy <- paste0("P_", seq(1:11))
data <- data.frame(sample = rep(poziomy, each = 9))
data$sample <- dplyr::factor(data$sample, levels = poziomy)
I got a following error:
Error: 'factor' is not an exported object from 'namespace:dplyr'
How is this possible and what do I do wrong ? Dplyr version is 1.0.8., Rx64 v. 4.1.1.