[R] irregular splits in dataframe
Noia Raindrops
noia.raindrops at gmail.com
Tue Aug 21 12:16:31 CEST 2012
How about this?
read.table(text = "Granitic Hills 16-20 PZ
Loamy Upland 16-20 PZ
Sandy Loam Upland 12-16 PZ / Sandy Loam, Deep 12-16 PZ
Loamy Upland 12-16 PZ / Sandy Loam Upland 12-16 PZ
Loamy Upland 16-20 PZ", header = FALSE, sep = "/", fill = TRUE, na.strings = "", strip.white = TRUE)
## V1 V2
## 1 Granitic Hills 16-20 PZ <NA>
## 2 Loamy Upland 16-20 PZ <NA>
## 3 Sandy Loam Upland 12-16 PZ Sandy Loam, Deep 12-16 PZ
## 4 Loamy Upland 12-16 PZ Sandy Loam Upland 12-16 PZ
## 5 Loamy Upland 16-20 PZ <NA>
--
Noia Raindrops
noia.raindrops at gmail.com
More information about the R-help
mailing list