Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using R Langauge 3. Complete the following tasks. Save the commands in a history file called question3.txt. There is a matrix and a vector in

Using R Langauge

3. Complete the following tasks. Save the commands in a history file called question3.txt. There is a matrix and a vector in the binary file objects.Rdata (found on D2L). Load these objects from the file. Determine the names of these objects and display their contents. With the vector object:

With the matrix object: o Create separate variables that contain the maximum, the minimum, the mean and the sum of the original vector. o Using row and column names (instead of indices) determine the mean of the middle row and the mean of the middle column o Create a new vector object called subV1 that contains all of the values the first two rows of the matrix. o Create a new matrix object called subMatrix1 that contains the 9am and 9pm data in separate rows. Dont worry about the column and row headers in the matrix. You can use multiple commands to get this done but it will be more impressive if you can do it in one!

objects.Rdata

R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

[Previously saved workspace restored]

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

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions

Question

describe the main employment rights as stated in the law

Answered: 1 week ago