Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started