Learn R Programming

inegiR (version 2.0.0)

ordenar_porconteo: Order factors by count

Description

Wrapper for rapid ordering in a data.frame. This is a legacy function.

Usage

ordenar_porconteo(df, col)

Arguments

df

Data.frame

col

Columna with factor. (Bare, no parenthesis).

Value

data.frame

See Also

denue_varios_stats

Examples

Run this code
# NOT RUN {
df <- data.frame(factors=c("A","A","B","C","C","D","A","A"),
                 others=c(1,3,2,4,5,1,2,7))
#order by count
ByCount <- ordenar_porconteo(df, factors)

# }

Run the code above in your browser using DataLab