[R] how to load data frame where numeric will be numeric instead of character

Ana Marija @okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Mon Jun 1 22:37:54 CEST 2020


Hello,

I have a dataframe like this:

  Chr        BP           Marker      MAF A1 A2 Direction   pValue    N
1  10 100000625 10:100000625:A:G 0.416562  G  A         - 0.558228 1594
2  10 100000645 10:100000645:A:C 0.215182  C  A         - 0.880622 1594
...

which I load with:
NEU <- read.table("gokind.neuropathy.fin", header=T,stringsAsFactors=FALSE)

and every column is numeric. How to say have all numeric ones stay numeric
like: Chr, BP, MAF, pValue, N

Thanks
Ana

	[[alternative HTML version deleted]]



More information about the R-help mailing list