How to check if a string contains numbers in R
|
> grepl(“[[:digit:]]”, yourstring) |
2
Kudos
2
Kudos
|
> grepl(“[[:digit:]]”, yourstring) |
To read directly from a .xlsx in the same directory as your R script: > data <- read.xlsx(“yourdata.xlsx”) … or … To read from a workspace directory containing a .xlsx file: > wdir = “C:/workspace/yourdirectory” > data <-... Continue →