Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data set Capture.txt consists of 34 different peromyscus maniculatus (deer mice) specimen that were captured over six trapping occasions. The sex, age-group, and weight

The data set Capture.txt consists of 34 different peromyscus maniculatus (deer mice) specimen that were captured over six trapping occasions. The sex, age-group, and weight in grams are recorded, along with whether or not each specimen was captured during a specified trapping occasion (Cap1 through Cap6).

Load the Capture.txt data set into R. Create two variables:

NumCap: A variable indicating how many times each specimen was captured.

Often: Given a value of "yes" if the specimen was captured at least 4 time and a value of "no" otherwise.

Alter the AgeGroup variable so that any specimen in the semi-adult group is classified as adult. Print the data set so that only the Sex, AgeGroup, Weight, NumCap, and Often variables are displayed. Report the resulting output.

text file Capture:-

Sex AgeGroup Weight Cap1 Cap2 Cap3 Cap4 Cap5 Cap6 male young 12 yes yes yes yes yes yes female young 15 yes no no yes yes yes male young 15 yes yes no no yes yes male young 15 yes yes no yes yes yes male young 13 yes yes yes yes yes yes male young 13 no yes yes no yes no female young 5 no yes no yes no yes female adult 20 no yes no no no yes male young 12 no yes no no yes yes female young 6 no no yes no no no male adult 21 yes yes no yes yes yes male young 11 yes yes yes yes yes no male semi-adult 15 yes yes yes no no yes male young 14 yes yes yes yes yes yes male young 13 yes yes no yes yes yes female adult 22 yes yes yes no yes yes male young 14 yes yes yes yes yes yes male young 11 yes no yes yes yes no female young 10 yes no no yes no no female adult 23 no yes no no yes no female young 7 no yes yes no no yes male young 8 no yes no no no yes male adult 19 no yes no yes no yes female adult 22 no no yes yes yes yes female young 10 no no yes no yes yes female young 14 no no yes yes yes yes female adult 19 no no yes no no no female adult 20 no no no yes no no male semi-adult 16 no no no yes yes yes female young 11 no no no yes yes no male adult 24 no no no no yes no male young 9 no no no no no yes male semi-adult 16 no no no no no yes female adult 19 no no no no no yes

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

=+how might their legitimacy be improved?

Answered: 1 week ago