We're back. Kind of. Clearing out the cobwebs. Much stuff broken. Much stuff coming. More details to come. So much spam.

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

  1. 901 Afghanishtan YES
  2. 901 Canada NO
  3. 901 US NO
  4. 902 Afghanistan NO
  5. 902 Canada YES
  6. 902 US NO

You get the gist.

How do I get it to look like this

id Afghanistan Canada US

  1. 901 YES NO NO
  2. 902 NO YES NO

(sorry for the weird formatting, but I hope I could get my query across)

Author
Demobeast

9 years old ยท 170k karma

Account strength 100%
Age
9 years
Total karma
170k
Comment karma
46k
Signals Verified email Verified flair
View profile
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