Displaying 1 result from an estimated 1 matches for "2column".
Did you mean:
column
2010 Apr 23
2
Problem with parsing a dataset - help earnestly sought
...ave tried a convoluted
method by identifying "AGE" as the character string identifying 3 element
fields per below, but faced problems with unlist, given the empty fields.
age.present <- grepl("AGE",data[,2])
data.3column <- strsplit(data[age.present,2],";")
data.2column <- strsplit(data[!age.present,2],";")
data$cancer.status[age.present] <- unlist(data.3column)
[(1:sum(age.present)*3)-2]
...
Your advice is earnestly sought.
Thanks.
Min-Han
[[alternative HTML version deleted]]