I think this one is simple but i still couldn't figure it out and i'm kind in a hurry with it.
Here's the deal:
I'm importing json files into R, and then i'd like to subset them.
Lets say i have this list called files
"files"
[[1]]
[[2]]
[[3]]
[[4]]
and inside these files i have other lists, wich are the same for the whole "files"
"files" (list 1 expanded)
[[1]]
>[response]
>[responseHeader]
[[2]]
[[3]]
[[4]]
and so on.
The thing is: i'd like to create a new list contaning subsets from the files lists.
For example, let's say that the files[[1]]$reponse$title has the title of the document.
I'd like to extract that title to that new df, so it would look like this:
files
[[title1]]
[[title2]]
[[title2]]
[[title4]]
I've tried sapply, lapply and everything but i couldn't figure out what's wrong.
EDIT: here's an print of the Rstudio Viewer from FILES