I'm trying to select columns from a data frame by the following code.
library(dplyr) dv %>% select(LGA) select(dv, LGA)
Both of them will fail with the error
Unable to find an inherited method for function ‘select’ for signature ‘"data.frame"’
But the following code will be fine.
Is this a function confliction in packages?
All libraries imported are as the following.
library(jsonlite) library(geojsonio) library(dplyr) library(ggmap) library(geojson) library(leaflet) library(mapview) library(RColorBrewer) library(scales)
I'm new to R, so super confused how you guys deal with problems like this?