Datalink: Data
Code:
ccfsisims <- read.csv(file = \"F:/Purdue University/RA_Position/PhD_ResearchandDissert/PhD_Draft/GTAP-CGE/GTAP_NewAggDatabase/Ne
when you load ccfsisims
do str(ccfsisims )
...(get in the habit of doing this)
you will see that pSVIPM
is a factor. So as.numeric
will simply change the factors to numbers in the order the levels appear.
Because if you look at your csv you have #DIV/0!
characters in there.
try it yourself:
> length(ccfsisims$pSVIPM[ccfsisims$pSVIPM == "#DIV/0!"])
[1] 350