[R] String question

Carmen Meier carmei3 at web.de
Wed Nov 29 15:06:08 CET 2006


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



More information about the R-help mailing list