Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using R, Create a function called PFunction that will take ARP(ARP is data frame) as input and store (on separate lines tab-delimited) the make, model,

Using R, Create a function called PFunction that will take ARP(ARP is data frame) as input and store (on separate lines tab-delimited) the make, model, and year of the cars that do more than 20 gallons in the city, in a file called PSubset.txt.

I have attached a picture of what the .csv file that i am trying to convert looks like

Please assist with the code thank you!

image text in transcribed

1 manufactimodel displ trans 4 auto(15) f 4 manual(mf 4 manual(mf 4 auto(av) f 6 auto(15) f 6 manual(mf 6 auto(av) f 4 manual( 4 auto(I5) 4 manual( 4 auto(s 6 auto(15) 6 manual( 6 auto(s 6 manual( 6 auto(15) 6 auto(s 8 auto(s 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 manual(mr 8 auto(14) r 8 manual(mr 8 auto(s6) r 8 manual(mr 8 auto(14) 8 auto(14) 8 auto(14) 8 auto(14) 4 auto(14) f class compact compact compact compact compact compact compact compact compact compact compact compact compact compact compact midsize midsize midsize suv suv suv suv suv 2seater 2seater 2seater 2seater 2seater suv suv suv suv midsize year rv 8 audi 9 audi 10 audi a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc quattrc quattrc quattrc 15 14 audi 16 audi 17 audi 18 audi 15 15 20 chevrolet c1500 sub 21 chevrolet c1500 sub 22 chevrolet c1500 sub 23 chevrolet c1500 sub 24 chevrolet c1500 sub 25 chevrolet corvette 26 chevrolet corvette 27 chevrolet corvette 28 chevrolet corvette 29 chevrolet corvette 30 chevrolet k1500 tah 31 chevrolet k1500 tah 32 chevrolet k1500 tah 33 chevrolet k1500 tah 34 chevrolet malibu 12 19 r 17 d 1 manufactimodel displ trans 4 auto(15) f 4 manual(mf 4 manual(mf 4 auto(av) f 6 auto(15) f 6 manual(mf 6 auto(av) f 4 manual( 4 auto(I5) 4 manual( 4 auto(s 6 auto(15) 6 manual( 6 auto(s 6 manual( 6 auto(15) 6 auto(s 8 auto(s 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 auto(14) r 8 manual(mr 8 auto(14) r 8 manual(mr 8 auto(s6) r 8 manual(mr 8 auto(14) 8 auto(14) 8 auto(14) 8 auto(14) 4 auto(14) f class compact compact compact compact compact compact compact compact compact compact compact compact compact compact compact midsize midsize midsize suv suv suv suv suv 2seater 2seater 2seater 2seater 2seater suv suv suv suv midsize year rv 8 audi 9 audi 10 audi a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc a4 quattrc quattrc quattrc quattrc 15 14 audi 16 audi 17 audi 18 audi 15 15 20 chevrolet c1500 sub 21 chevrolet c1500 sub 22 chevrolet c1500 sub 23 chevrolet c1500 sub 24 chevrolet c1500 sub 25 chevrolet corvette 26 chevrolet corvette 27 chevrolet corvette 28 chevrolet corvette 29 chevrolet corvette 30 chevrolet k1500 tah 31 chevrolet k1500 tah 32 chevrolet k1500 tah 33 chevrolet k1500 tah 34 chevrolet malibu 12 19 r 17 d

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

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

How and when will I measure my success?

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago