Globally solution during all the session
options(digits=16)
> x
[1] 1.00042589212565
or locally just for x:
sprintf("%.16f", x)
[1] "1.0004258921256499"
More Related Contents:
- Select the row with the maximum value in each group
- How to create a consecutive group number
- R memory management / cannot allocate vector of size n Mb
- Finding ALL duplicate rows, including “elements with smaller subscripts”
- Error in if/while (condition) {: missing Value where TRUE/FALSE needed
- Using ggplot2, can I insert a break in the axis?
- Change R default library path using .libPaths in Rprofile.site fails to work
- Convert date-time string to class Date
- Installing older version of R package
- How to subset matrix to one column, maintain matrix data type, maintain row/column names?
- Why can’t R’s ifelse statements return vectors?
- Sample random rows in dataframe
- Subset / filter rows in a data frame based on a condition in a column
- Why do R objects not print in a function or a “for” loop?
- A comprehensive survey of the types of things in R; ‘mode’ and ‘class’ and ‘typeof’ are insufficient
- What does %>% function mean in R?
- How do I install a package that has been archived from CRAN?
- How to order data by value within ggplot facets
- rank and order in R
- What’s the biggest R-gotcha you’ve run across?
- Logical operators (AND, OR) with NA, TRUE and FALSE
- R: How to handle times without dates?
- Why is `vapply` safer than `sapply`?
- Convert a dataframe to a vector (by rows)
- Read SAS sas7bdat data into R
- What is the difference between = and == in R?
- Variable name restrictions in R
- Different legend-keys inside same legend in ggplot2
- Plot two graphs in a same plot
- Convert a vector into a list, each element in the vector as an element in the list