Sorts an fcm in alphabetical order of the features.

fcm_sort(x)

Arguments

x

fcm object

Value

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.

Examples

# with tri = FALSE myfcm <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = FALSE)
#> Error in get(".SigLength", envir = env): object '.SigLength' not found
rownames(myfcm)[3] <- colnames(myfcm)[3] <- "Z"
#> Error in colnames(myfcm)[3] <- "Z": object 'myfcm' not found
myfcm
#> Error in eval(expr, envir, enclos): object 'myfcm' not found
fcm_sort(myfcm)
#> Error in fcm_sort(myfcm): object 'myfcm' not found
# with tri = TRUE myfcm <- fcm(tokens(c("A X Y C B A", "X Y C A B B")), tri = TRUE)
#> Error in get(".SigLength", envir = env): object '.SigLength' not found
rownames(myfcm)[3] <- colnames(myfcm)[3] <- "Z"
#> Error in colnames(myfcm)[3] <- "Z": object 'myfcm' not found
myfcm
#> Error in eval(expr, envir, enclos): object 'myfcm' not found
fcm_sort(myfcm)
#> Error in fcm_sort(myfcm): object 'myfcm' not found