You are on page 1of 6

Bauza, Vincent T

BSCOE 1-1

Assessments/Activities page 28

1. Use "faithful" data in Rstudio. Extract waiting variable and compute only the average of less than
or equal to 50 mns. of waiting time to next eruption.

2. Create an 8 x 5 matrix that contains a number from 1 to 40. Fill matrix by columns. Make sure
that the names of the rows are Apple, Banana, Orange, Grapes, Mango, Limes, Watermelons and
Apricots, and the names of the columns are Blue, Red, White, Green, and Yellow.

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
Extract row of Apple, Grapes and Apricots.

3. Create a factor, based on the information given. I asked 150 residents of Barangay Dela Paz to
rate their level of agreement about mass testing. Most of the respondents answered “Strongly
Agree” with frequency of 60. Fifty of them answered “Agree”, followed by “Disagree” and
Strongly Disagree” with frequency of 30 and 10, respectively.

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
4. Create a scatter plot using basic and enhance graphic of RStudio. Used “faithful” data in RStudio.
Take Note: xlab=”Eruption time (min)", ylab="Waiting time to next eruption (min)”)
main=“Eruptions of Old Faithful”

5. Let’s say you're a student taking seven classes. Here's a table containing your final grades for
each class:

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
Create a vector containing the final grades for each class using the variable name “final scores".

Create a vector of character data called “class names" containing your classes.

Assign the class name to each grade in your final scores vector

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
Extract elements from final scores vector to create two new vectors: “liberal arts": Containing your
writing and history final grades. “fine arts": Containing your art and music final grades.

Calculate the average of each new vector.

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
Calculate your grade point average from the “final scores" vector that we created earlier. Store the result
of your calculation in the variable “GPA".

Compare “final scores" to “GPA" to see whether the grade in each class is higher than the “GPA". Store
the logical output in a vector named “above average".

This study source was downloaded by 100000839282248 from CourseHero.com on 12-18-2021 09:27:29 GMT -06:00

https://www.coursehero.com/file/102889063/BSCOE1-1-EDAp28-Bauzadocx/
Powered by TCPDF (www.tcpdf.org)

You might also like