R Dataset / Package DAAG / cities

Documentation

On this Picostat.com statistics page, you will find information about the cities data set which pertains to Populations of Major Canadian Cities (1992-96). The cities data set is found in the DAAG R package. You can load the cities data set in R by issuing the following command at the console data("cities"). This will load the data into a variable called cities. If R says the cities data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the cities R data set. The size of this file is about 638 bytes.


Populations of Major Canadian Cities (1992-96)

Description

Population estimates for several Canadian cities.

Usage

cities

Format

This data frame contains the following columns:

CITY

a factor, consisting of the city names

REGION

a factor with 5 levels (ATL=Atlantic, ON=Ontario, QC=Quebec, PR=Prairies, WEST=Alberta and British Columbia) representing the location of the cities

POP1992

a numeric vector giving population in 1000's for 1992

POP1993

a numeric vector giving population in 1000's for 1993

POP1994

a numeric vector giving population in 1000's for 1994

POP1995

a numeric vector giving population in 1000's for 1995

POP1996

a numeric vector giving population in 1000's for 1996

Source

Statistics Canada

Examples

cities$have <- factor((cities$REGION=="ON")|(cities$REGION=="WEST"))
plot(POP1996~POP1992, data=cities, col=as.integer(cities$have))
--

Dataset imported from https://www.r-project.org.

Title Authored on Content type
R Dataset / Package psych / bfi March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - scotus_healthcare August 9, 2020 - 2:38 PM Dataset
R Dataset / Package psych / withinBetween March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Kids198 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Wages1 March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-95374.csv 638 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0