ID Date Day
11/1 Sunday
22/1 Tuesday/Holiday
3 Wednesday, March 1
·
·
·
I would like to treat data like this as a different variable if it includes holidays.
ph<-grep("holiday", data)
I got the line as , but I'm at a loss how to create a variable after this.
r
grep
has been able to get the column number, so
ph<-data [grep("holiday", data),]
Alternatively, use grepl
to return TRUE or FALSE
ph<-subset(data, grepl("holiday", data))
765 M2 Mac fails to install rbenv install 3.1.3 due to errors
768 GDB gets version error when attempting to debug with the Presense SDK (IDE)
845 Uncaught (inpromise) Error on Electron: An object could not be cloned
1225 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2025 OneMinuteCode. All rights reserved.