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, which 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 containing 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