subject

Make sure you have the library ggplot2 installed. If not, install it by running the uncommented code below: ## install. packages("ggplot2") • Run the code below to access and prepare the data: ## Load the library library(ggplot2) ## Activate the mpg data. frame provided by ggplot2 data(mpg) ## New versions of ggplot provide a tibble and have all character variables, while ## older were data frames and had factors. Transform manufacturer to factor ## to show how most data. frames treat character variables. mpg <- as. data. frame(mpg) mpg$manufacturer <- factor(mpg$manufacturer) 1. Inspect the structure of mpg data. frame. Note the kind of data provided.
2. Run the summary function to learn more about the variables.
3. Get a subset of the data. frame including all cars that are not ford nor audi.
4. Determine if the manufacturer variable (that is a factor) in your subset has or not dropped the now removed manufacurers audi and ford.
5. Devise a strategy to assure that the above factor has dropped the levels that have no elements
6. Further subset the data making sure that only front drive midsize cars model 2008 with at least 20 highway or city miles per gallon are included.
7. Determine how many cars per manufacturer satisfy these constraints. Only show manufacturers with at least one vehicle.
8. Only show the manufacturer(s) with most cars (Note: your solution should also contemplate the possibility of a tie for the first place.)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
You know the right answer?
Make sure you have the library ggplot2 installed. If not, install it by running the uncommented code...
Questions
question
Arts, 11.11.2020 23:50
question
Spanish, 12.11.2020 01:00
question
Mathematics, 12.11.2020 01:00