I have some survey data that came in via a Google Form. Google generates a spreadsheet of the responses, but what I need to do is split this data into individual responses, so that a human could read it as though it was an interview published on a blog or something.
So let's say I've got something like this:
1st Question 2nd Question 3rd Question
"Response1 q1" "Response1 q2" "Response1 q3"
"Response2 q1" "Response2 q2" "Response2 q3"
"Response3 q1" "Response3 q2" "Response3 q3"
Where the first row (the column headers) are the questions, and each row is filled with responses to those questions. What I want to produce is something like this:
1st Question
-------
Response1 q1
2nd Question
-------
Response1 q2
3rd Question
-------
Response1 q3
Essentially, for each respondent, I want to make 1 individual file showing their question responses in a linear fashion.
I've given you the specifics of the problem I'm trying to solve in case there's a shortcut for my particular case but, in general, if you've got a data.frame in R that, for whatever reason, you need to traverse row-by-row and then column-by-column, how would one accomplish that short of just writing some for loops?