Re: [R] separate and gather functions

2019-08-14 Thread reichmanj
That's even easier -Original Message- From: Ista Zahn Sent: Tuesday, August 13, 2019 8:22 AM To: reichm...@sbcglobal.net Cc: William Dunlap ; r-help@r-project.org Subject: Re: [R] separate and gather functions How about > library(tidyr) > separate_rows(d, Col2) Col1

Re: [R] separate and gather functions

2019-08-13 Thread Eric Berger
al > variables. Thank you > > > > > > > > Jeff > > > > > > > > From: William Dunlap > > Sent: Monday, August 12, 2019 6:46 PM > > To: Jeff Reichman > > Cc: r-help@r-project.org > > Subject: Re: [R] separate and gather functions

Re: [R] separate and gather functions

2019-08-13 Thread Ista Zahn
:06 PM wrote: > > William > > > > Yes that works a little better as I don’t have to create notional variables. > Thank you > > > > Jeff > > > > From: William Dunlap > Sent: Monday, August 12, 2019 6:46 PM > To: Jeff Reichman > Cc: r-help@r-

Re: [R] separate and gather functions

2019-08-12 Thread reichmanj
William Yes that works a little better as I don’t have to create notional variables. Thank you Jeff From: William Dunlap Sent: Monday, August 12, 2019 6:46 PM To: Jeff Reichman Cc: r-help@r-project.org Subject: Re: [R] separate and gather functions This one uses only core R

Re: [R] separate and gather functions

2019-08-12 Thread William Dunlap via R-help
This one uses only core R functions. Does that count toward "elegance"? > # your data, I assume, in a form one can copy and paste into R > d <- data.frame(stringsAsFactors = FALSE, Col1 = c("Agency A", "Agency B", "Agency C"), Col2 = c("Function1, Function2, Function3, Function4",

[R] separate and gather functions

2019-08-12 Thread reichmanj
R-Help Forum I have a data set from which I have extracted two columns Column 1 is a listing of Federal agencies and Column 2 lists functions like this Col1 Col2 Agency A Function1, Function2, Function3, Function4 Agency B Function2, Function