natu
February 9, 2020, 2:15pm
1
I got tweets from twitter API and now trying to clean my corpus but first want to see it in plain text. Instead it shows me something like this when i run: inspect(mycorpus[1:3])
[[1]]
<>
Metadata: 7
Content: chars: 89
[[2]]
<>
Metadata: 7
Content: chars: 74
[[3]]
<>
Metadata: 7
Content: chars: 95
how can i read my all tweets text?
mycorpus is a list, and each element is itself a list containing a named element called content
to access the first
mycorpus[[1]]$content
and the other two
mycorpus[[2]]$content
mycorpus[[3]]$content
to print out all the contents :
lapply(mycorpus, function(x) x[["content"]])
1 Like
system
Closed
February 16, 2020, 3:00pm
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.