Hello Ivy - chances are you have another package attached that also has a select
function and R thinks you are calling that. This is called masking and you will see a warning when loading the packages. Try using:
m2_x <- dplyr::select(m2, ends_with(".x"))
the package::function notation tells R to call the function function
from the package package
.