Quantcast
Channel: Gathering wide columns into multiple long columns using pivot_longer
Browsing all 4 articles
Browse latest View live

Gathering wide columns into multiple long columns using pivot_longer

@EJG wrote: I am trying to use pivot_longer to gather wide multiple columns with into multiple long columns rather than column by column. The dataset is wide and I want to transform it into a dataset...

View Article



Gathering wide columns into multiple long columns using pivot_longer

@jonspring wrote: It's not clear to me how the expected output relates to the input. Is it necessary that the hf value match the ac value? The output's rows all show matching values, but the input...

View Article

Gathering wide columns into multiple long columns using pivot_longer

@EJG wrote: Hello, Thank you for the reply. No, the hf values do not have to match the ac values. However, the values for hf_1, hf_2, hf_3, etc need to be pivoted into the hf_com column and not as a...

View Article

Gathering wide columns into multiple long columns using pivot_longer

@system wrote: This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. Read full topic

View Article
Browsing all 4 articles
Browse latest View live




Latest Images