search for: bin2dec

Displaying 2 results from an estimated 2 matches for "bin2dec".

Did you mean: bin2c
2005 Nov 14
1
as.integer with base other than ten.
Is there an R function analogous to the C function strtol? I would like to convert a binary string into an integer. Cheers for advice Will -- __________________________________________________ William Astle Statistical Genetics, David Balding's Group. Imperial College, St Mary's Hospital Campus, 147 Norfolk Place, Paddington. London. W2 1PG
2007 Feb 15
1
convert to binary to decimal
Hello, we need to convert a logical vector to a (decimal) integer. Example: a=c(TRUE, FALSE, TRUE) (binary number 101) the function we are looking for should return dec2bin(a)=5 Is there a package for such a function or is it even implemented in the base package? We found the hexmode and octmode command, but not a binmode. We know how to program it ourselves however we are looking for a