I have a CSV dataframe that looks like this:
SNPID,chr,position,coded_all,noncoded_all,beta,SE,pval
rs10,7,92221824,a,c,0.0176,0.0182,0.3333
rs1000000,12,125456933,a,g,0.0195,0.0076,0.009999
rs10000010,4,21227772,t,c,0.0077,0.0062,0.215
rs10000012,4,1347325,c,g,0.0098,0.0093,0.2901
The values in the pval
column range from 0-1, and many are in scientific notation. When I imported this into R using readr
with pval
as numeric
, the values in the pval
that were in scientific did not appeared only as numbers. For example 9.996e-003
appears only as 9.996
.
To get around this, I have imported the dataframe with p-val
as character and I coerced it to numeric using as.numeric
. This still caused the same problem. Is there any other way around this?