Contact: aviboots(AT)netvision.net.il
42,709 questions
55,473 answers
573 users
vec1 <- c(TRUE, FALSE, TRUE, FALSE, TRUE, TRUE) vec2 <- as.integer(vec1) print(vec2) print(typeof(vec2)) # run: # # [1] 1 0 1 0 1 1 # [1] "integer" #