Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write R code to upload the quantmod package and use the Google stock price starting from September 2021 until the latest you can get.
1. Write R code to upload the quantmod package and use the Google stock price starting from September 2021 until the latest you can get.
a.Produce time plot of the Google stockprice.
b.Produce forecast using exponential smoothing function.
c.Report the accuracy of the forecast model.
2. Illustrate principal components analysis with the help of R function/code snippet to get information about standard deviation, and eigenvectors and plot the percentage variation.
3. A specific user would like to organize a shiny app into two separate files:ui.R,consisting of the user interface elements of the app, andserver .R, contains the logic of the app, including code for loading and handling data. The code snippet for each of these files is given below. With appropriate justification, briefly describe the flow of the interface.
App 1: ui.R
library(shiny)
fluidPage(
titlePanel("Data science FTW!"), sidebarLayout(
sidebarPanel(
h3("Sidebar Text")
),
mainPanel(
h3("Main Panel Text")
)
)
)
App 1: server.R
library(shiny)
function(input, output){
}
4. Illustrate the following functionalities in R Markdown with suitable examples.
i. Yamlfrontmatter
ii. LoadingtheRmarkdownpackage
iii. RenderyourRmarkdownintoawebpage iv. DocumentviewinHTML
v. PDFcreation
5. Write a function to add a base layer to your interactive map and to sequentially add features to your map with appropriate syntax.
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