How to check if a string contains numbers in R
|
> grepl(“[[:digit:]]”, yourstring) |
2
Kudos
2
Kudos
|
> grepl(“[[:digit:]]”, yourstring) |
If you are converting a column of Unix timestamps in a dataframe: > df$Your.Times <- as.POSIXct(df$Your.Times, origin = “1970-1-1”) [1] [POSIXct datetimes] … or … If you are converting a single Unix timestamp: > yourtime =... Continue →