Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new object called tmp that includes the first 3 and last 3 records of the BullTroutRML2 data set. 1. Display the era column

Create a new object called “tmp” that includes the first 3 and last 3 records of the BullTroutRML2 data set.
1. Display the “era” column (variable) in the new “tmp” object
2. Create a pchs vector with the argument values for + and x.
3. Create a cols vector with the two elements “red” and “gray60”
4. Convert the tmp era values to numeric values.
5. Initialize the cols vector with the tmp era valuesI have this so far: I don't know how to convert to numerical values, no 16, and then also no.17tmp <- data.frame(rbind(head(BullTroutRML2,3),tail(BullTroutRML2, 3)))
tmp
tmp %>% select("era")
pch <-c("+", "*")
pch
plot(1:2, xlim = c(0,500), ylim = c(0,15), pch=pch)
cols <-c ("red", "gray60")
data$era ==

Step by Step Solution

3.38 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

The codes areIn Bold First to create a new ... 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

Linear Algebra

Authors: Jim Hefferon

1st Edition

978-0982406212, 0982406215

More Books

Students also viewed these Electrical Engineering questions