it my coding right?

This is what i need to do and my coding progress. Can someone tell me if this is correct according to the question?

Show the plot of the historical stock prices and describe statistically your data set and the time series plot of the daily arithmetic and geometric rate of returns.


getSymbols("TSLA", from ='2018-01-01',
to ="2019-12-31", warning=FALSE,


plot(TSLA.close, type='l')

It seems that you recently asked a question that originated from a class or workshop, and I wanted to make sure you were seeking help here in a way that maximizes the chances of getting good help (without violating our homework policies).

Our homework guide is here: FAQ: Homework Policy

How should one ask a homework question?

  1. Never copy-paste instructions from an assignment (even for online courses).
  2. Explicitly mention the course you are taking and use the #homework tag.
  3. Ask your question as a reproducible example (reprex), preferably prepared for posting using the reprex package.

What's the best way to ask a specific homework-related question?

We made a short guide for helping folks pose their R-coding questions here.