Skip to content

adatalab/dairyCattle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dairyCattle

Overview

A system for modeling and visualization the nutrient requirement of dairy cattle.

Installation

 # The development version from GitHub:
 # install.packages("remotes")
 remotes::install_github("adatalab/dairyCattle")

Usage

read_cattle

read_cattle imports the cattle data downloaded from Dairy Cattle Improvement Center (http://www.dcic.co.kr) into R.

 library(dairyCattle)
 read_cattle(path = "검정성적.xls", drop.zero = FALSE, add = FALSE)

read_cattle_all

This function read the multiple xls files in the working directory.

 setwd("Users/please/setting/the/working/directory")
 read_cattle_all()

dim_my

A function for plotting the milk yield of the herd.

df <- read_cattle(path = "검정성적.xls", drop.zero = TRUE, add = TRUE)
dim_my(data = df, grid = FALSE, line = TRUE, density = FALSE, text = FALSE)

dim_my(data = df, grid = TRUE, line = TRUE, density = FALSE, text = FALSE)

dim_my(data = df, grid = TRUE, line = TRUE, density = TRUE, text = FALSE)

mun_mp

A function for plotting the MUN-MP analysis.

mun_mp(data = df, grid = FALSE, line = TRUE, density = TRUE, text = FALSE)

mun_mp(data = df, grid = TRUE)

library(gganimate)

mun_mp(data = df, grid = TRUE, line = TRUE, density = TRUE, text = FALSE) +
  labs(title = 'Date: {frame_time}', x = 'MUN', y = 'Milk protein') +
  transition_time(검정일) +
  ease_aes('linear')

mun_mp_tbl

A function for classification of the MUN-MP groups. It returns list of classified herd.

mun_mp_tbl(data = df, dataframe = TRUE)

fat_prot

A function for plotting the milk fat-protein analysis.

fat_prot(data = df, grid = FALSE, line = TRUE, density = TRUE, text = FALSE)

parturition

A function for time schedule for parturition of herd.

parturition(df)

Example Result

Embedded dataset

dairy_example

Notification

개발중인 패키지입니다.

Getting helps

Email: [email protected]

About

A tool for modeling the nutrient requirement of dairy cattle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages