This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
0
How do I consolidate a table in R?
Post Body
I have a table that looks like this -
id --- country -- vote
- 901 Afghanishtan YES
- 901 Canada NO
- 901 US NO
- 902 Afghanistan NO
- 902 Canada YES
- 902 US NO
You get the gist.
How do I get it to look like this
id Afghanistan Canada US
- 901 YES NO NO
- 902 NO YES NO
(sorry for the weird formatting, but I hope I could get my query across)
Author
u/Demobeast
Strong
9 years old ยท 170k karma
Account strength
100%
Age
9 years
Total karma
170k
Comment karma
46k
Signals
Verified email
Verified flair
Profile refreshed 1 year ago
Posts refreshed 3 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/RStudio/com...