3.2 Exercise:

Economic Order Quantity Model: \(Q= \sqrt{2DK/h}\)

3.3 Exercise:

  1. Define a vector with values (5, 2, 11, 19, 3, -9, 8, 20, 1). Calculate the sum, mean, and standard deviation.

  2. Re-order the vector from largest to smallest, and make it a new vector.

  3. Convert the vector to a 3*3 matrix ordered by column. What is the sum of first column? What is the number in column 2 row 3? What is the column sum?

  4. Use the following code to load the CustomerData to your R.

customer <- read.csv(file = "https://xiaoruizhu.github.io/Data-Mining-R/lecture/data/CustomerData.csv")

go to top