powered by
dec2bin
dec2bin(vec, npos = NA)
binary <- dec2bin(zz <- sample(0:100, 10)) print(zz) print(binary)
Run the code above in your browser using DataLab