Source file ⇒ Assignment_2.Rmd
2-7.
year - categoricalmonth - categoricalday - categoricaldep_time - categoricalarr_time - categoricaldep_delay - quantitativearr_delay - quantitiativehour - categoricalminute - categoricalcarrier - categoricaltailnum - categoricalflight - categoricalorigin - categoricaldestination - categoricalair_time - quantitativedistance - quantitativeair_time is measured in minutes and distance is measured in miles.2-8.
a. Improper syntax for funtion argument
b. No assignment operator
c. Invalid object name
d. Unmatched quotes in character string
e. No mistake
2-10.
CountryData has 76 variables.
The variable tfat measures “mass of trunk fat” in the NCHS data table.
In WorldCities, there are 23018 cases:
The third variable in BabyNames is count.
The codes for the levels of the categorical variable party in RegisteredVoters is DEM=Democratic, LIB=Libertarian, REP=Republican, and UNA=Unaffiliated
3-4.
3-5.
brainwt variable is an animal’s brain weight in kilograms.vore variable are “carnivore”, “omnivore”, and “herbivore”.3-6.
count rather than the sum4-1.
italics
bold
The Data Set Inv has 2000 cases and 18 variables. Each case can be interpreted as a different item in the library inventory .Some of these variables include where the item is located, the author of the item, the number of times the item has been issued, and more.
The Data Set Bks has 3765 cases and 15 variables. Each case represents a book. These variables include the books author, publisher, publication date, and more.
## Source: local data frame [4 x 2]
##
## Current.Status n
## (chr) (int)
## 1 AVAILABLE 1866
## 2 MISSING 1
## 3 ON_LOAN 18
## 4 WITHDRAWN 115
## Source: local data frame [46 x 2]
##
## Issued.Count n
## (int) (int)
## 1 0 996
## 2 1 337
## 3 2 203
## 4 3 121
## 5 4 69
## 6 5 46
## 7 6 38
## 8 7 29
## 9 8 24
## 10 9 20
## .. ... ...