### Problem 5 The dataset AllCountries includes information on the percent of pe
ID: 3597667 • Letter: #
Question
### Problem 5
The dataset AllCountries includes information on the percent of people in each country with access to internet, energy consumption and more.
The dataset AllCountries (http://www.lock5stat.com/datasets1e/AllCountries.csv) includes information on the percent of people in each country with access to internet, energy consumption and more.
a) Upload the dataset AllCountries from the textbook's website. Analyze the content of the dataset by using the command head and print the size (number of countries included) of the dataset.
```{r}
# Insert R code below this line
datafile=read.csv("C:/Users/desktop/AllCountries.csv")
```
```{r}
```
b) Find the developed country with the largest percent access to Internet
```{r}
```
c) Determine the countries with the largest and smallest land areas
```{r}
```
Explanation / Answer
a).
datafile=read.csv("C:/Users/desktop/AllCountries.csv")
head(datafile)
NROW(datafile$Country)
b).
developedCoutries = subset(datafile,Developed == 3)
MaximumInternetAccess = subset(developedCoutries, Internet == max(developedCoutries$Internet,na.rm = TRUE))
MaximumInternetAccess$Country
c).
LargestLandArea= subset(datafile,LandArea == max(datafile$LandArea,na.rm = TRUE))
SmallestLandArea = subset(datafile,LandArea == min(datafile$LandArea,na.rm = TRUE))
LargestLandArea$Country
SmallestLandArea$Country
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.