Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Tidying Dataset

$
0
0

Been struggling with tidying a dataset. Brief description: Each row represents one person, and then the columns repeat with "Date", "ScoreA", "ScoreB", etc. for all the dates that we have scores for. Hoping to get it to where all of the dates are in one column, and the corresponding scores are in adjacent columns. Have tried various combinations of simple pivot_longer or pivot_wider, with no success so far. A sample file is located at

https://github.com/tueland/R_help.git

Thanks for the help!


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>