Sorts an fcm in alphabetical order of the features.
A fcm object whose features have been alphabetically sorted.
fcm_sort in that this function sorts the fcm by
the feature labels, not the counts of the features.
1 2 3 4 5 6 7 8 9 10 11
# with tri = FALSE fcmat1 <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = FALSE) rownames(fcmat1) <- colnames(fcmat1) <- "Z" fcmat1 fcm_sort(fcmat1) # with tri = TRUE fcmat2 <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = TRUE) rownames(fcmat2) <- colnames(fcmat2) <- "Z" fcmat2 fcm_sort(fcmat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.