> z <- 0:9 > digit <- as.character(z) > digit [1] "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" > d <- as.integer(digit) > d [1] 0 1 2 3 4 5 6 7 8 9 >
> e <- numeric() > e numeric(0) > e[3] <- 17 > e [1] NA NA 17 > alpha <- 1:10 > alpha <- alpha[2 * 1:5] > alpha [1] 2 4 6 8 10 > length(alpha) <- 3 > alpha [1] 2 4 6 >
> attr(z, "dim") <- c(10, 10)
> winter > unclass(winter)