I am creating a simple data frame of inputted values and I want the values to maintain the digits and decimal places I inputted. Instead, R is increasing decimal places for some of the inputted values.
Inputting values:
k = 100
lambda = 0.006
b = 1
a = 0.0005
Creating Data Frame:
parameter_df <- data.frame("Parameter" = c("a", "b", "k", "λ"),
"Value" = c(a, b, k, lambda))
Output:
a 0.0005
b 1.0000
k 100.0000
λ 0.0060
I would like the output to read the same as the inputted values
a 0.0005
b 1
k 100
λ 0.006