我的项目中出现了这个错误代码。
奇怪的是,我使用的这段代码今天早些时候还能完美运行。然而,自从我安装了R的更新后,我现在运行它时得到了这个消息。
df1 <- df %>% select(Month, Longitude, Latitude, Type)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘select’ for signature ‘"spec_tbl_df"’
这段代码只是用来创建一个新的数据框架,其中只有选定的列。
任何帮助将是非常感激的