Question: 53 1. Load the gapminder data using the code above. Using the gapminder data in the lesson, do the following: 54 1) use filterto select

 53 1. Load the gapminder data using the code above. Using

53 1. Load the gapminder data using the code above. Using the gapminder data in the lesson, do the following: 54 1) use "filterto select all countries with the following arguments: 55 a) life expectancy larger than 75 years. 56 b) New Zealand and Belgium and years greater than 2000. 57 ii) use arrange and slice to select the countries with the top 20 GDP per capital gdpPercapuse the pipe '%% operator to string multiple functions. 58 iii) use mutate to create a new variable called "gdpPer cap_1ifeExp which is the quotient of 'gdpper cap and lifeExpand display the output. NOTE: you may want to assign an object name to this mutated variable, otherwise it will be temporary and you cannot call upon it later in other functions such as Olins part iv, otherwise simply copy the code line for mutating again N iv) use summarise to find the standadard deviation sd) value of the variable 'goppercap_lifeExp created in part (fit), User Lib 60 V) use "group_by' to group the countries by continent; and summarise -asse to compute the average or mean of the life expectancy "lifeexp within each continent. Use the pipes operator to string multiple functions. 61 62 bused 63 64 Code chunk 65- bro 66 Toad the necessary packages broom 67 7brary (mosaic 6 library Coply 69 14brary gapminder 70 59 bac 53 1. Load the gapminder data using the code above. Using the gapminder data in the lesson, do the following: 54 1) use "filterto select all countries with the following arguments: 55 a) life expectancy larger than 75 years. 56 b) New Zealand and Belgium and years greater than 2000. 57 ii) use arrange and slice to select the countries with the top 20 GDP per capital gdpPercapuse the pipe '%% operator to string multiple functions. 58 iii) use mutate to create a new variable called "gdpPer cap_1ifeExp which is the quotient of 'gdpper cap and lifeExpand display the output. NOTE: you may want to assign an object name to this mutated variable, otherwise it will be temporary and you cannot call upon it later in other functions such as Olins part iv, otherwise simply copy the code line for mutating again N iv) use summarise to find the standadard deviation sd) value of the variable 'goppercap_lifeExp created in part (fit), User Lib 60 V) use "group_by' to group the countries by continent; and summarise -asse to compute the average or mean of the life expectancy "lifeexp within each continent. Use the pipes operator to string multiple functions. 61 62 bused 63 64 Code chunk 65- bro 66 Toad the necessary packages broom 67 7brary (mosaic 6 library Coply 69 14brary gapminder 70 59 bac

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!