Hi to all
I would to determinate whether bits is a binary code and I would to find 
out the which bit is set to 1

bits <-"00110110"
I found to detect whether there are only numbers
all.digits(bits)
but is there any function to detect whether there are only 0 and 1 in 
the string

And how could I get the f.e the third "bit" from the right hand side

With regards Carmen

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to