How to find subscript index number when we use strsplit() function in R. My output is
N712SW|2008 8
N772SW|2008 19
N428WN|2008 8
what will be my output if I split by tab first next split by |
I want to know subscript after using
split <- unlist(strsplit(line, "\t"))
key <- split[[1]]
deptDelay <- as.numeric(split[[2]])
if (!(identical(lastKey, "")) & (!(identical(lastKey, key)))) {
keySplit <- unlist(strsplit(lastKey, "\\|"))