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

How to transform a unique identifier's position over a time from multiple row to a single row?

$
0
0

I need help with a unique query, I couldn't find any solutions as yet. But that could be because I didn't know how to word what I am looking. Below is a sample dataset

name, position, start_date, end_date
ABC, Contractor, 09/02/2017, 07/01/2018
ABC, Associate Consultant, 08/01/2018, 31/12/2018
ABC, Consultant, 01/01/2019, 31/05/2019

Essentially ABC is a person who has had different positions over time. I want to transform this dataset so as to place ABC in a single row, and track their position over time. . Attached is an image that displays the solution I am looking for

I'd appreciate any help here!

Best, Rohit


Viewing all articles
Browse latest Browse all 201867

Trending Articles



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