Я работаю с 50x30 файлом. В Rstudio я получаю следующее сообщение об ошибке:
Error in Corpus.str[[i]] : subscript out of bounds when running this line of code: ### run topic models on all dataframes in list ####
all_topics <- llply(.data=all, .fun=nouns_adj_only_n_grams_topics, k=3,seed=2000)
#### Generate most likely terms from all topic models ####
all_terms <- rep( list(list()), 6 )
names(all_terms) <- names(all_topics)
for(i in 1:length(all_terms)){
all_terms[[i]] <- llply(all_topics[[i]], .fun=function(x){terms(x=x,thresh=0.01)})
}
Строка я в сценарии пользовательских функций - вот этот код: для (я в 1: длина (Corpus.str)) {Corpus.noun [[я]] <- nouns_adj_only (б = Corpus.str [[я]]) }
Образец набора данных ниже:
Любые идеи, почему ошибка происходит?