1
I am a bit aimless with a problem with my data frame. Below a table of an SQL server and one of the columns brings the numbers of each process. This value is a long numerical sequence that R converts to scientific notation. The problem is that when I change the column to text it brings the wrong number. How do I make R understand the correct number?
Here is a code to illustrate the problem: When I switch to text the result comes with the end 6 and not 7.
df <- data.frame(Processo = (25351001641201357))
df
> df
Processo
1 2.5351e+16
df1 <- as.character(df$Processo)
df1
> df1
[1] "25351001641201356"
Adding the result of the solution suggested, but which has not yet worked.
> options(scipen = 1e9)
> df <- data.frame(Processo = c(25351001641201357))
> df
Processo
1 25351001641201356
> as.character(format(df, scientific = FALSE))
[1] "25351001641201356"
I’m using Windows 10 Home Single Language 64bits Rstudio Version 1.4.1106
You can’t read how
character
?– Rui Barradas
It is that the table is provided by another sector of my work. I have no way to change the way the data arrive.
– RodGreg