paste(rev(as.integer(intToBits(12))), collapse="")
does the job
paste
with the collapse
parameter collapses the vector into a string. You have to use rev
to get the correct byte order though.
as.integer
removes the extra zeros
More Related Contents:
- Extract rows based on only one column using R [closed]
- ggplot with 2 y axes on each side and different scales
- Counting unique / distinct values by group in a data frame
- How to name variables on the fly?
- cbind a dataframe with an empty dataframe – cbind.fill?
- Plot a legend outside of the plotting area in base graphics?
- Concatenate a vector of strings/character
- Easy way to convert long to wide format with counts [duplicate]
- What does %>% mean in R [duplicate]
- Split text string in a data.table columns
- Converting two columns of a data frame to a named vector
- Collapsing data frame by selecting one row per group
- R command for setting working directory to source file location in Rstudio
- ggplot2 pie and donut chart on same plot
- R help page as object
- Install Rtools on R version 3.0.2
- how to change the color in geom_point or lines in ggplot [duplicate]
- Convert a character vector of mixed numbers, fractions, and integers to numeric
- Options for caching / memoization / hashing in R
- R – when trying to install package: InternetOpenUrl failed
- R – Markdown avoiding package loading messages
- Simplified dput() in R
- How to append a whole dataframe to a CSV in R
- Linking Intel’s Math Kernel Library (MKL) to R on Windows
- Different Robust Standard Errors of Logit Regression in Stata and R
- dynamically add function to r6 class instance
- How to grep a word exactly
- Difference between Boolean operators && and & and between || and | in R
- Image not showing in Shiny app R
- Make a rectangular legend, with rows and columns labeled, in grid