Last data update: 2014.03.03

R: Egyptian Skulls
skullsR Documentation

Egyptian Skulls

Description

Measurements made on Egyptian skulls from five epochs.

Usage

data("skulls")

Format

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

epoch

the epoch the skull as assigned to, a factor with levels c4000BC c3300BC, c1850BC, c200BC, and cAD150, where the years are only given approximately, of course.

mb

maximum breaths of the skull.

bh

basibregmatic heights of the skull.

bl

basialiveolar length of the skull.

nh

nasal heights of the skull.

Details

The question is whether the measurements change over time. Non-constant measurements of the skulls over time would indicate interbreeding with immigrant populations.

Source

D. J. Hand, F. Daly, A. D. Lunn, K. J. McConway and E. Ostrowski (1994). A Handbook of Small Datasets, Chapman and Hall/CRC, London.

Examples


  data("skulls", package = "HSAUR")
  means <- tapply(1:nrow(skulls), skulls$epoch, function(i)
               apply(skulls[i,colnames(skulls)[-1]], 2, mean))
  means <- matrix(unlist(means), nrow = length(means), byrow = TRUE)
  colnames(means) <- colnames(skulls)[-1]
  rownames(means) <- levels(skulls$epoch)
  pairs(means,
      panel = function(x, y) {
          text(x, y, levels(skulls$epoch))
      })

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HSAUR)
Loading required package: tools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HSAUR/skulls.Rd_%03d_medium.png", width=480, height=480)
> ### Name: skulls
> ### Title: Egyptian Skulls
> ### Aliases: skulls
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
>   data("skulls", package = "HSAUR")
>   means <- tapply(1:nrow(skulls), skulls$epoch, function(i)
+                apply(skulls[i,colnames(skulls)[-1]], 2, mean))
>   means <- matrix(unlist(means), nrow = length(means), byrow = TRUE)
>   colnames(means) <- colnames(skulls)[-1]
>   rownames(means) <- levels(skulls$epoch)
>   pairs(means,
+       panel = function(x, y) {
+           text(x, y, levels(skulls$epoch))
+       })
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>