Last chance! 50% off unlimited learning
Sale ends in
Sorts an fcm in alphabetical order of the features.
fcm_sort(x)
fcm object
A fcm object whose features have been alphabetically sorted.
Differs from fcm_sort
in that this function sorts the fcm by
the feature labels, not the counts of the features.
# NOT RUN {
# with tri = FALSE
myfcm <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = FALSE)
rownames(myfcm)[3] <- colnames(myfcm)[3] <- "Z"
myfcm
fcm_sort(myfcm)
# with tri = TRUE
myfcm <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = TRUE)
rownames(myfcm)[3] <- colnames(myfcm)[3] <- "Z"
myfcm
fcm_sort(myfcm)
# }
Run the code above in your browser using DataLab