R-help On Behalf Of Admire Tarisirayi
> Chirume
> Sent: Monday, May 17, 2021 9:44 AM
> To: r-help@r-project.org
> Subject: [R] Wide to long format in R
>
> I need help on reshaping my data frame which is currently in wide format.
>
> I ran the following codes to create p
I believe you'll need to show us exactly what bop.df looks like, e.g. via
head(bop.df) .
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, May 17, 2021 at 7:
I need help on reshaping my data frame which is currently in wide format.
I ran the following codes to create panel ids based on the variable for
country names "*Country"; *
*bop.df$id<-as.numeric(as.factor(bop.df$Country))*
then ran the code below to reshape from wide to long format;
*reshape
3 matches
Mail list logo