I was trying to give a null data frame a name,
word_list = NULL
corpusfreq <- data.frame(word_list)
names(corpusfreq) <- c("Word")
but R keeps giving me the error that
"Error in names(corpusfreq) <- c("Word") :
'names' attribute [1] must be the same length as the vector [0]"
I have looked at several similar questions but none of them addressed my question.
Thanks.