'Unable to find an inherited method for function ‘select’ for signature ‘"data.frame"’
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.
dplyr::select(dv, LGA)
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?
Solution 1:[1]
This function dplyr::select solved my problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Javan Ochieng Okendo |
