I have 3 factor sets with 5 sentences in it. Now I want to have 1 list with all 15 sentences underneath each other. I guess the problem is I do not know for what function I am searching.
dataset1_sample <- sample(dataset1$twt_txt, 5)
dataset2_sample <- sample(dataset2$twt_txt, 5)
dataset3_sample <- sample(dataset3$twt_txt, 5)
dataset1_sample
[1] These
[2] Are
[3] My
[4] Test
[5] Words
9741 Levels: ''A lot of text'' That I do not understand why it is all in here.
class(dataset1_sample) = factor
Now I want a list of these three samples. I tried
listoflists <- list(list(dataset1_sample),list(dataset2_sample))
Which is partially correct because it does add them under one name. It just does not put them underneath each other.
test <- cbind(dataset1_sample, dataset2_sample)
This gives me the number of the locations of the sentences in the original dataset. I guess I can use them to select them again in a new list but I assume there should be an easier way.