I was creating a dataset. I used cbind() func for new columns but new columns type is chr. I tried to convert with as.numeric() but this code converting all variables to NA.