Learn R Programming

metacoder (version 0.3.5)

get_sort_var: Get a vector from a vector/list/table to be used in mapping

Description

Get a vector from a vector/list/table to be used in mapping

Usage

get_sort_var(data, var)

Arguments

data

A vector/list/table

var

What to get. * For tables, the names of columns can be used. * `"index"` : This means to use the index of rows/items * `"name"` : This means to use row/item names. * `"value"` : This means to use the values in vectors or lists. Lists