For fine control over formatting of numbers, try formatC()
res <- structure(c(9.50863385275955e-05, 4.05702267762077e-06),
.Names = c("CC/CC", "TT/CC"))
formatC(res, format="f", digits=8)
More Related Contents:
- Formatting Decimal places in R
- Round up from .5
- Check if the number is integer
- Keeping trailing zeros
- How to round up to the nearest 10 (or 100 or X)?
- R round to nearest .5 or .1
- Extreme numerical values in floating-point precision in R
- R issue with rounding milliseconds
- Round a POSIX date (POSIXct) with base R functionality
- Capitalize the first letter of both words in a two word string
- Creating arbitrary panes in ggplot2
- Getting path of an R script
- Difference: “Compile PDF” button in RStudio vs. knit() and knit2pdf()
- Rotating x axis labels in R for barplot
- How do I convert a factor into date format?
- Pass a vector of variable names to arrange() in dplyr
- How subset a data frame by a factor and repeat a plot for each subset?
- change background and text of strips associated to multiple panels in R / lattice
- percentage on y lab in a faceted ggplot barchart?
- agrep: only return best match(es)
- How to produce different geom_vline in different facets in R?
- heatmap with values (ggplot2)
- How to choose variable to display in tooltip when using ggplotly?
- Conditional binary join and update by reference using the data.table package
- predict.lm() with an unknown factor level in test data
- R: xtable and dates
- Using R to read out excel-colorinfo
- Existing function for seeing if a row exists in a data frame?
- Convert comma separated string to integer in R
- Interpolating timeseries