I need an an elegant way in R to take a urlencoded string such as:
test.aspx?title=Pancreas%20Cancer&startYear=2000&dataCSV=461%2C520%2C559%2C627%2C1065%2C1217%2C1323%2C1512%2C2160%2C2554%2C2707%2C3000%2C3495%2C4163%2C4927%2C5237%2C4785%2C5559%2C6490%2C7559%2C5106%2C6358%2C6824%2C7980%2C4873%2C6715%2C7038%2C8156%2C4863%2C6460%2C7244%2C9161%2C5237%2C6176%2C6531%2C9068%2C5628%2C5983%2C5871%2C7951%2C6060%2C6089%2C5520%2C6627%2C5722%2C6099%2C5586%2C5822%2C4185%2C4909%2C5053%2C5273%2C5227%2C6077%2C6681%2C7977%2C
And get a list back that uses the keys sent in the URL the values sent:
list ( title = "Pancreas Cancer",
startYear = 2000,
dataCSV = matrix ( c(461, 520....etc), nrows = X, byrow = TRUE)
);
Is there anyway to do this easily in R?
httr?utils::URLdecode()will get you started.