Description Usage Arguments Examples

Reorder factors levels by first appearance or frequency

1 2 3 | ```
fct_inorder(f, ordered = NA)
fct_infreq(f, ordered = NA)
``` |

`f` |
A factor |

`ordered` |
A logical which determines the "ordered" status of the
output factor. |

1 2 3 4 5 6 | ```
f <- factor(c("b", "b", "a", "c", "c", "c"))
f
fct_inorder(f)
fct_infreq(f)
fct_inorder(f, ordered = TRUE)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.