What r function is used to encode a vector as a category


Assignment

1. How many levels does fdata contain in the following R code?

i. data = c(1 , 2,2,3,1,2 , 3,3 ,1, 2,3,3 , 1)

ii. 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 function is used to encode a vector as a category?

5. What is a rug plot used for in a density plot?

6. An online retailer wants to study the purchase behaviors of its customers. Figure below 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?

7. How many sections does a box-and-whisker divide the data into? What are these sections?

8. What attributes are correlated according to Figure 3-18? How would you describe their relationships?

9. Compare and contrast five clustering algorithms, assigned by the instructor or selected by the student.

10. Using the ruspini dataset provided with the cluster package in R, perform a k-means analysis.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: What r function is used to encode a vector as a category
Reference No:- TGS03010054

Expected delivery within 24 Hours