08.04.2015 Views

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

98 elec88<br />

Format<br />

elec88 is a list of 7 components.<br />

tab is a data frame with 94 rows (departments) and 9 variables (candidates)<br />

res is the global result of the election all-over the country.<br />

lab is a data frame with three variables: elec88$lab$dep a vector containing the names of the<br />

94 french departments, elec88$lab$reg a vector containing the names of the 21 French<br />

administraitve regions. and, elec88$lab$reg.fac a factor with 21 levels defining the<br />

French administraitve regions.<br />

area is the data frame of 3 variables returning the boundary lines of each department. <strong>The</strong> first<br />

variable is a factor. <strong>The</strong> levels of this one are the row.names of tab. <strong>The</strong> second and third<br />

variables return the coordinates (x,y) of the points of the boundary line.<br />

contour is a data frame with 4 variables (x1,y1,x2,y2)for the contour display of France<br />

xy is a data frame with two variables (x,y) giving the position of the center for each department<br />

neig is the neighbouring graph between departments, object of the class neig<br />

<strong>Source</strong><br />

Public data<br />

See Also<br />

This dataset is compatible with presid2002 and cnc2003<br />

Examples<br />

data(elec88)<br />

apply(elec88$tab, 2, mean)<br />

summary(elec88$res)<br />

par(mfrow = c(2,2))<br />

plot(elec88$area[,2:3], type = "n", asp = 1)<br />

lpoly

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!