fcm() works on a text object, but not on a corpus. When I try to apply to a corpus object created with quanteda I get the following error:
Error in UseMethod("fcm") : no applicable method for 'fcm' applied to an object of class "c('corpus', 'list')"
txts <- c("a a a b b c", "a a c e", "a c e f g")
myCorpus <- corpus(txts)
fcm(myCorpus, context = "document")
fcm()works on a text object, but not on a corpus. When I try to apply to a corpus object created with quanteda I get the following error:Error in UseMethod("fcm") : no applicable method for 'fcm' applied to an object of class "c('corpus', 'list')"