Below is a sample Data Frame
var_1 <- c(2,5,6,7,9)
var_2 <- c(1,"NA",3,6,1)
var_3 <- c(9,4,6,"NA","NA")
varDF <- data.frame(var_1,var_2, var_3)
How do I get the count of observations in a particular column? e.g column var_1
I'd like the output to be 5 & and var_2
to be 4 (Because it has skipped the NA)