Hi all,
Below error message coming when I run below r code:
my r code here:
etr2018 <- "/etr_2018_exc_blanks.Rdata"
PeerCodeList <- c('Idv_Ocptn_Cd') # occupation field name
load(etr2018)
# Create the PeerCode by pasting together the columns from PeerCodeList
etr2018$PeerCode <- do.call(paste, c(select(etr2018, one_of(PeerCodeList)), sep="-"))
Error message:
Error in UseMethod("select_") :
no applicable method for 'select_' applied to an object of class "character"
Anyone can help me to resolve that error. Much appreciated your help to resolve that error.
Note: At the beginning I included following library
Include
library(stringr)
library(nabor)
library(data.table)
library(dplyr)
source("main_v3.R")
Thanks and look forward to your tips/help.
Regards,
Moni