The number of named Atlantic storms for 9 consecutive years is: 7, 8, 14, 11, 12, 7, 6, 11, 13., We represent these as a vector x in R by making the assignment: x <- c(7, 8, 14, 11, 12, 7, 6, 11, 13) Define the variable w using the assignment w <- 2*x Define y by the assignment y <- cumsum(x) Define z with the assignment z <- c(x,Y,w) x, y, w and z are vectors. Answer the following using R code. a) What is the minimum value in the z vector? b) Calculate the sample mean of x. c) Calculate the sum of the squares of the elements in z.
The number of named Atlantic storms for 9 consecutive years is: 7, 8, 14, 11, 12, 7, 6, 11, 13., We represent these as a vector x in R by making the assignment: x <- c(7, 8, 14, 11, 12, 7, 6, 11, 13) Define the variable w using the assignment w <- 2*x Define y by the assignment y <- cumsum(x) Define z with the assignment z <- c(x,Y,w) x, y, w and z are vectors. Answer the following using R code. a) What is the minimum value in the z vector? b) Calculate the sample mean of x. c) Calculate the sum of the squares of the elements in z.
Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter8: Applications Of Trigonometry
Section8.4: The Dot Product
Problem 45E
Related questions
Question
4
Need the R script for the whole problem (do not copy from another post)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 6 steps
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning