Database Reference
In-Depth Information
Exercises
1. How many levels does fdata contain in the following R code?
data = c(1,2,2,3,1,2,3,3,1,2,3,3,1)
fdata = factor(data)
2. Two vectors, v1 and v2 , are created with the following R code:
v1 <- 1:5
v2 <- 6:2
What are the results of cbind(v1,v2) and rbind(v1,v2) ?
3. What R command(s) would you use to remove null values from a dataset?
4. What R command can be used to install an additional R package?
5. What R function is used to encode a vector as a category?
6. What is a rug plot used for in a density plot?
7. An online retailer wants to study the purchase behaviors of its customers.
Figure 3.27 shows the density plot of the purchase sizes (in dollars). What
would be your recommendation to enhance the plot to detect more
structures that otherwise might be missed?
Search WWH ::




Custom Search