Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have this code right now: library(quantmod) getSymbols(Symbols=SPY, from=2012-01-01, to= 2013-12-31) SPY=data.frame(SPY) Data=matrix(SPY$SPY.Adjusted, ncol=10, byrow=T) df=data.frame(Data) next I am supposed to Calculate the mean and

I have this code right now:

library("quantmod")

getSymbols(Symbols="SPY", from="2012-01-01", to= "2013-12-31")

SPY=data.frame(SPY)

Data=matrix(SPY$SPY.Adjusted, ncol=10, byrow=T)

df=data.frame(Data)

next I am supposed to Calculate the mean and standard deviation of each column. Store the result in another data frame and print out this data frame in a nice table. I have been looking at this for hours and am very stuck. Thank you in advance!

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

Principles of Managerial Finance

Authors: Lawrence J. Gitman, Chad J. Zutter, Wajeeh Elali, Amer Al Roubaix

Arab World Edition

1408271583, 978-1408271582

More Books

Students also viewed these Finance questions

Question

Exude confidence, not arrogance.

Answered: 1 week ago

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago