0

I'm using tidyverse package and select function as follow:

df %>%
  select(Adapt_ID, Age, BMIall) %>%
  view()

I'm not sure why I'm getting the following error message

Error in select(., Adapt_ID, Age, BMIall) : unused arguments (Adapt_ID, Age, BMIall)

I suspect that the select function might exist in other packages so I use the following:

df %>%
  tidy:: select(Adapt_ID, Age, BMIall) %>%
  view()

I got the same error message.

I'm not sure what is the issue. Please help if you can.

Ronak Shah
  • 377,200
  • 20
  • 156
  • 213
Mr.M
  • 111
  • 1
  • 9

1 Answers1

2

This is most probably due to the fact that you have another package (probably MASS) with the same function name. select is from dplyr so you can use -

library(dplyr) 
df %>% dplyr::select(Adapt_ID, Age, BMIall) %>% view()
Ronak Shah
  • 377,200
  • 20
  • 156
  • 213