Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 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" #