Learn R Programming

henna (version 0.7.5)

reorderDF: Sort a data frame by the first column and convert the second to a factor

Description

This function sort a data frame by the first column and convert the second to a factor.

Usage

reorderDF(df)

Value

An object of class gg.

Arguments

df

A data frame.

Examples

Run this code
df <- data.frame(a = c(2, 4, 1, 3, 6),
b = c(2, 8, 3, 19, 3))
reorderDF(df)

Run the code above in your browser using DataLab