Re: [R] splitting a column of data into multiple columns

2019-07-01 Thread Glenn Doherty
A very elegant solution Jim. Here is a tidyverse solution. Janet, this is a different sample set (the same you sent in another post a couple days ago), but it will work with this data frame as well. ### RECREATING YOUR DATA FRAME scen<-c("1","1","2","2","3","3")

Re: [R] splitting a column of data into multiple columns

2019-06-28 Thread Jim Lemon
Hi Janet, This might help: jcdf<-read.table(text="scen trans evap flow 1 1.10.10.09 1 1.20.20.10 1 1.30.30.20 2 2.10.10.09 2 2.20.20.10 2 2.30.30.20 3 3.10.10.09 3 3.20.20.10 3

[R] splitting a column of data into multiple columns

2019-06-28 Thread Janet Choate
Hello R community, I have a data frame that has multiple observations in a single column that I would like to break into multiple columns. The data looks something like this: scen trans evap flow 1 1.10.10.09 1 1.20.20.10 1 1.30.30.20 2 2.10.1