Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using R programming language # Given the following four vectors: a = c('Anabel', 'Zara', 'Katherine', 'Jacob', 'Emily', 'Beth', 'Anwar', 'Laura', 'Owino', 'Jonas') b = c(12.5,

Using R programming language

# Given the following four vectors: a = c('Anabel', 'Zara', 'Katherine', 'Jacob', 'Emily', 'Beth', 'Anwar', 'Laura', 'Owino', 'Jonas') b = c(12.5, 9, 16.5, 12, 9, 20, 14.5, 13.5, 8, 19) c = c(1, 3, 2, 3, 2, 3, 1, 1, 2, 1) d = c('yes', 'no', 'yes', 'no', 'no', 'yes', 'yes', 'no', 'no', 'yes')

# a. Join the variables to create a data frame #

# b. Re-Name the data frame with c('name', 'score', 'attempts', 'qualify') #

#c. Print the structure #

##d. Select Rows 1 to 3 and columns 1,3 and 4 #

#We want to show only students with scores above 10, write a subset() method to show that: #e. Select scores above 10 #

# Load the in-built Iris Dataset and print the first #8 rows

#f. Loading Iris3 Dataset #

# g. Print the first 8 rows #

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

what to do when demand drops in FInGame

Answered: 1 week ago