You are on page 1of 2

APSC254 – Lab 3 Report

Animish Gupta, (52627577) animish@student.ubc.ca

In the first lab, you installed R and R Studio in your computers and learned the basic
programming in R. As the assignment of the second lab, please write a code that does the
following tasks:

1. Add a comment at the first line of code and write your name there.
2. Load the “simout.csv” file to R studio with function “read.csv()”.
3. Use “summary()” to show the statistics of the generated signal.
4. Use “plot()” to show plot the generated signals, and attach the screenshot to the
report.
Please write the code in R Script and then copy and paste your code here:

#Please type your answer here.

#APSC 254 Lab 3 - Animish Gupta


simdata <- read.csv('simout.csv')
summary(simdata)
plot(simdata$X1, xlab = 'X-Axis', ylab = 'Y-Axis', type ='l', col='red')

You might also like