SciencesPo (version 1.3.8)

values: List the Values of a Variable

Description

List the values of a variable from the global environment or a data frame.

Usage

values(x, data = .data, ...)

Arguments

x
Variable for which to construct the histogram and density plots.
data
Data frame that contains the variable of interest, default is .data.
...
Other parameter values for as defined processed by print, including digits.

Examples

Run this code
.data <- data.frame(AgeGroup=factor(
 1:9,
 labels= c("Younger than 16", "16-24",
           "25-34", "35-44", "45-54",
           "55-64", "65-74",
           "Older than 74", "(blank)"),
 ordered=TRUE),
 No=c(34, 2079, 2585, 1593,
      1274, 802, 291, 78, 13),
 Yes=c(18, 1970, 4035, 2328,
       1707, 924, 386, 68, 4))

values(Yes)

Run the code above in your browser using DataLab