Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# in r programming # 1) Create an object of S3 class cow containing : An identification Number for the cow The cow breed A

# in r programming #

1) Create an object of S3 class cow containing :

An identification Number for the cow

The cow breed

A dataframe of the cow age (months), milk yield in first lactation (kg), milk yield in second lactation (kg)

2) Create a:

summary() method reporting mean and SD for the lactations of the cow

print() method reporting cow, cow breed, and age in months

3) Repeat 1) and 2) but creating an S4 class

4) Create an S4 class called cowM which inherits the S4 cow class and contains a dataframe with

mastitis in first lactation (presence absence)

mastitis in second lactation (presence absence)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

9. How can wikis be used to facilitate knowledge management?

Answered: 1 week ago

Question

What are the classifications of Bank?

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago