Learn R Programming

poliscidata (version 1.2.0)

sortC: Returns case-level information in order

Description

Returns case-level information in order

Usage

sortC(data, id, by, descending = TRUE)

Arguments

data

Dataset to be sorted

id

A variable in the dataset (data) that identfies individual cases, typically the name of states, countries, etc.

by

Variable the dataset should be sorted by

descending

Should the cases be sorted in descending order? By default, set to TRUE

Value

A data frame