BUSINESS DATA MINING
Problem 1. Explain what each of the following R functions do? You can run them in R and check theresults.(a) c(1, 17, −6, 3)(b) seq(1, 5, by=0.5)(c) seq(0, 10, length=5)(d) rep(0, 5)(e) rep(1:3, 4)(f) rep(4:6, 1:3)(g) sample(1:3)(h) sample(1:5, size=3, replace=FALSE)(i) sample(c(2,5,3), size=4, replace=TRUE)(j) sample(1:2, size=10, prob=c(1,3), replace=TRUE)(k) c(1, 2, 3) + c(4, 5, 6)(l) max(1:10)(m) […]
BUSINESS DATA MINING Read More »