prepare_SCCdata: Prepares individual cows' data for SCC analysis

Description Usage Arguments Value

Description

Used inside monitor_SCCUdderHealth.

Usage

1
prepare_SCCdata(inddata, Months = c(1:12))

Arguments

inddata

A dataframe provided as $einzeltiere by prepare_PCstart.

Months

An integer vector giving the months for which the data should be prepared: 1 is the most recent month, 2 the second most recent month, ... (default = 1:12).

Value

A data frame with one row for each individual cow’s test day with its SCC a this day and the two preceeding test days, and an indicator for the point in lactation of the test: 'F' for the first test in a first lactation, 'T' for a first test in a following lactation and 'L' for all other test days. The lactation number and days in milk are also provided.


VZoche-Golob/UdderHealthMonitor documentation built on May 9, 2019, 9:42 p.m.