Download this List Data into your working directory and load it to your RStudio with readRDS ("LDAT.rds"). The list contains built-in air quality data, a 9 by 9 matrix, and a character vector. Please use ?airquality for the variable information. (i) Output Wind variable from airquality data. (ii) Output a subset of the air quality data containing observations from September. (iii) Output the element in the 6th row and 8th column of the matrix. (iv) Extract the matrix's diagonal elements and use them to create a square matrix. You may fill the matrix either by row or column. (v) Add one more element, 4/13/1995, to date vector, ensuring that the dates remain in ascending order. Output the resulting vector.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter8: Working With Trendlines, Pivottables, Pivotcharts, And Slicers
Section: Chapter Questions
Problem 8EYW
icon
Related questions
Question

Using R language

Download this List Data into your working directory and load it to your RStudio with readRDS ("LDAT.rds").
The list contains built-in air quality data, a 9 by 9 matrix, and a character vector. Please use ?airquality
for the variable information.
(i) Output Wind variable from airquality data.
(ii) Output a subset of the air quality data containing observations from September.
(iii) Output the element in the 6th row and 8th column of the matrix.
(iv) Extract the matrix's diagonal elements and use them to create a square matrix. You may fill the
matrix either by row or column.
(v) Add one more element, 4/13/1995, to date vector, ensuring that the dates remain in ascending
order. Output the resulting vector.
Transcribed Image Text:Download this List Data into your working directory and load it to your RStudio with readRDS ("LDAT.rds"). The list contains built-in air quality data, a 9 by 9 matrix, and a character vector. Please use ?airquality for the variable information. (i) Output Wind variable from airquality data. (ii) Output a subset of the air quality data containing observations from September. (iii) Output the element in the 6th row and 8th column of the matrix. (iv) Extract the matrix's diagonal elements and use them to create a square matrix. You may fill the matrix either by row or column. (v) Add one more element, 4/13/1995, to date vector, ensuring that the dates remain in ascending order. Output the resulting vector.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT