my data have many columns with different names and want see all numeric values only in column name_id and store those values in z. 
I want z should contains only numeric values of column name_id of data, if any alphabet is there in column then it should not get store in z.
z <- unique(data$name_id)
z
#[1] 10 11 12 13 14 3  4  5  6  7  8  9 
#Levels: 10 11 12 13 14 3 4 5 6 7 8 9 a b c d e f
when i tried this
z <-  unique(as.numeric(data$name_id))
z
# [1]  1  2  3  4  5  6  7  8  9 10 11 12
output contains values only till 12 but column has values greater than 12 also
 
    