LambDataNested: LambDataNested: The Weight of Lamb Carcasses

LambDataNestedR Documentation

LambDataNested: The Weight of Lamb Carcasses

Description

This is real data of the weight of 240 lamb carcasses measured at a slaughterhouse. The lamb carcasses are from a total of 30 farms, and from each farm eight lambs were observed. The sheep breed is registered for each lamb.

Usage

LambDataNested

Format

A data frame with 240 observations (rows) and 3 variables (columns).

Column name Data type Description Values
[,1] Farm character Lambs from 30 different farms ("Farm1"..."Farm30")
[,2] Breed character 5 different sheep breeds ("Kvit spaelsau"..."Gammalnorsk spaelsau")
[,3] Carcase_weight numeric Carcass weight in kg (8.2 - 30.4)

Source

This is real data from "Sauekontrollen", a database administered by Animalia AS. The data is provided by Lars Erik Gangsei.

Examples


# The structure of the object
str(LambDataNested)

# Encode Farm as factor and check the levels
LambDataNested$Farm <- factor(LambDataNested$Farm,
                              levels = unique(LambDataNested$Farm))
unique(LambDataNested$Farm)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.