makeLong: Put zootechnical data in suitable format

Description Usage Arguments Value Examples

View source: R/makeLong.R

Description

Put zootechnical data in suitable format

Usage

1
2
3
4
5
6
7
makeLong(
  data,
  n_fasenW,
  vars = c("g", "dg", "dvo", "vc"),
  VARfasenames = c("Weight", "Daily_gain", "Daily_feed_intake",
    "Feed_conversion_ratio")
)

Arguments

data

data.table of zootechnical data

n_fasenW

numeric number of phases in the trial

vars

character vector of variable names for zootechnical parameters in data

VARfasenames

character vector of names to be used for these parameters in reshaped data.frame

Value

data.table with zootechnical parameters in long format over phases

Examples

1
groeidataLong <- makeLong(groeidata,2)

DataZhukov/animalTrial documentation built on Dec. 17, 2021, 4:08 p.m.