1 2 3 3 4 5 ## log function x.vec <- c(1, 2, 3, 4, 5) log(x = x.vec) # take log for all elements in vector x.vec ## [1] 0.0000000 0.6931472 1.0986123 ...
確定! 回上一頁