0% found this document useful (0 votes)
48 views1 page

DATA301 Lab01 ReqDescrition

The document provides instructions for several data analysis tasks using an R dataset on yearly requests: 1. Import yearly request data, export a histogram, add a column and export modified data. 2. Extract specified columns and build an empty character vector grouped by request amount. 3. Calculate summary and total request value. It also includes tasks to: 1. Create a vector from 1 to 50, calculate the total, and list elements between 10 and 40. 2. Create a new vector with elements twice the original vector values. 3. Generate normally distributed sample data with specified parameters and display it.

Uploaded by

khoa20033002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

DATA301 Lab01 ReqDescrition

The document provides instructions for several data analysis tasks using an R dataset on yearly requests: 1. Import yearly request data, export a histogram, add a column and export modified data. 2. Extract specified columns and build an empty character vector grouped by request amount. 3. Calculate summary and total request value. It also includes tasks to: 1. Create a vector from 1 to 50, calculate the total, and list elements between 10 and 40. 2. Create a new vector with elements twice the original vector values. 3. Generate normally distributed sample data with specified parameters and display it.

Uploaded by

khoa20033002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab 1 – Requirements

A. Given data in the yearly_request.csv, please complete the following tasks.

1. Import data in .csv file to requests data frame in R


2. Export the histogram of number of requests to jpeg file
3. Add a column per_request to dataset and exports the modified dataset to
“requests_modified.txt” file
4. Extract the second, third, and fourth column of the requests data frame
5. build an empty character vector of the same length as requests and group the customers
according to the request amount
6. Summary of requests
7. Calculate and show total of request value

The result report must be included in a document which has:

- All necessary commands used to do task

- And output screen of command result

B. Write commands

1. Create a vector v contain values from 1 to 50


2. Calculate the total value of all elements in v
3. List all elements which has value greater than 10 and less than 40
4. Create a new vector from vector v. Element value in the new vector is two times of element
value in v
5. Write the code to generate data (with norm = 60, mean = 0, sd = 0.6) and show this data like the below figure

You might also like