I have a table with 153 rows by 9 columns. My interest is the character string in the first column, I want to extract the fourth word and create a new list from this fourth
If you are not familiar with regular expressions, the function strsplit can help you :
strsplit
data <- c('Resistance_Test DevID (Ohms) 428', 'Diode_Test SUBLo (V) 353') unlist(lapply(strsplit(data, ' '), function(x) x[4])) [1] "428" "353"