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
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
: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-
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
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-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
6 matches
Mail list logo