Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.3. Challenge 43MChallenge In the Rscript window, perform the following actions: Create a vector, v1, with values (121,131,134,128) - this vector will represent the number

image text in transcribed

4.3. Challenge 43MChallenge In the Rscript window, perform the following actions: Create a vector, v1, with values (121,131,134,128) - this vector will represent the number of females in high school, grades 9-12 Create a vector, v2, with values (152,137,129,142) this vector will represent the number of males in high school, grades 9-12 Create the matrix, matCol, using vectors v1 and v2 as source by column (hint, cbind). Print the matrix, matCol. Oops! It's not in the order we want, so now: Transpose the matrix, matCol into matRow. Print the matrix, matRow. Add labels to rows ('F','M') and columns (9th 10th, 11th, 12th'). Print the matrix, matCol. Save the file as (exactly) Challenge 43M.R . Check it! NOTE: Make sure that your single quotes are straight, not curved (in case you are cutting and pasting). If you paste into R Studio, and they appear curved, replace them all inside R Studio (and they will be straight)

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

What are four purposes for cost allocation?

Answered: 1 week ago

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago