powered by
A random sample of 500 observations from the 2000 U.S. Census Data.
data(census)
A data frame with 500 observations on the following 8 variables.
censusYear
Census Year.
stateFIPScode
Name of state.
totalFamilyIncome
Total family income (in U.S. dollars).
age
Age.
sex
Sex with levels Female and Male.
Female
Male
raceGeneral
Race with levels American Indian or Alaska Native, Black, Chinese, Japanese, Other Asian or Pacific Islander, Two major races, White and Other.
American Indian or Alaska Native
Black
Chinese
Japanese
Other Asian or Pacific Islander
Two major races
White
Other
maritalStatus
Marital status with levels Divorced, Married/spouse absent, Married/spouse present, Never married/single, Separated and Widowed.
Divorced
Married/spouse absent
Married/spouse present
Never married/single
Separated
Widowed
totalPersonalIncome
Total personal income (in U.S. dollars).
# NOT RUN { data(census) str(census) these <- census[,3] > 0 # income greater than 0 histPlot(log(census$totalFamilyIncome[these]), xlab="log(total family income)") # }
Run the code above in your browser using DataLab