doctorates {nutshell}R Documentation

Doctorates Awarded in the United States, 2001-2006

Description

This data set contains information on the number of doctorate degrees awarded in the United Sates between 2001 and 2006.

Usage

data(doctorates)

Format

A data frame with 6 observations on the following 7 variables.

year
a numeric vector
engineering
a numeric vector
science
a numeric vector
education
a numeric vector
health
a numeric vector
humanities
a numeric vector
other
a numeric vector

Details

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Source

This data is from the Statistical Abstract of the United States. You can download the data from http://www.census.gov/compendia/statab/tables/09s0785.xls

Examples

data(doctorates)
# make this into a matrix:
doctorates.m <- as.matrix(doctorates[2:7])
rownames(doctorates.m) > doctorates.m
barplot(doctorates.m,beside=TRUE,horiz=TRUE,legend=TRUE,cex.names=.75)
barplot(t(doctorates.m),legend=TRUE,ylim=c(0,66000))

[Package nutshell version 1.0 Index]