I am a beginner in R and while trying to work the codes, have run into several problems. Hope to have someone to help me out.
I have installed the magrittr package in my R session and tried using the piping function. Below is the reprex, showing the code I used and the error message returned.
read.csv('./GreenHorizons/HRIS-January01-snapshot.csv')%>%
left_join(y = read.csv('./GreenHorizons/0101-Payroll-extract.csv'), by = 'emp_id')
#> Error in read.csv("./GreenHorizons/HRIS-January01-snapshot.csv") %>% left_join(y = read.csv("./GreenHorizons/0101-Payroll-extract.csv"), : could not find function "%>%"
Hello, you have to load first the packages that you will use with the library function, so in this case you need to add library(magrittr) at the start of your script
The strange thing is that the code works at first. When I close and reopen the file a day later, the same code no longer works. I have no idea why this happens.