Learn R Programming

BSDA (version 1.01)

Presiden: Ages at inauguration and death of U.S. presidents

Description

Data for Exercise 1.126

Usage

Presiden

Arguments

Format

A data frame with 43 observations on the following 5 variables.

firs

a factor with levels A. B. C. D. F. G. G. W. H. J. L. M. R. T. U. W. Z.

Presiden

a factor with levels Adams Arthur Buchanan Bush Carter Cleveland Clinton Coolidge Eisenhower Fillmore Ford Garfield Grant Harding Harrison Hayes Hoover Jackson Jefferson Johnson Kennedy Lincoln Madison McKinley Monroe Nixon Pierce Polk Reagan Roosevelt Taft Taylor Truman Tyler VanBuren Washington Wilson

Birt

a factor with levels ARK CAL CONN GA IA ILL KY MASS MO NC NEB NH NJ NY OH PA SC TEX VA VT

Inaugage

a numeric vector

Deathage

a numeric vector

Examples

Run this code
# NOT RUN {
str(Presiden)
attach(Presiden)
table(Birt)
pie(table(Birt))
stripchart(x=list(Inaugage,Deathage),method="stack",
group.names=c("Inaugural Age","Death Age"),col=c("green","brown"),pch=19)
detach(Presiden) 
# }

Run the code above in your browser using DataLab