Data data been read with read.csv. It shows chr data NOT fct data. What to do? Advise please.
$ Id “H-1”, “H-2”, “H-3”, “H-4”, “H-5”, “H-6”, “H… $ OverallQual 7, 5, 4, 7, 3, 5, 8, 5, 7, 5, 6, 4, 7, 5, 5,… $ OverallCond 5, 6, 5, 5, 3, 6, 5, 6, 5, 8, 3, 4, 5, 5, 5,… $ GarageCars 2, 1, 0, 2, 2, 1, 3, 2, 2, 1, 2, 1, 2, 0, 1,… $ LotArea 8450, 7420, 9320, 6762, 10206, 5400, 11957, … $ MSSubClass 60, 190, 20, 20, 20, 30, 20, 90, 120, 80, 20… $ MSZoning “RL”, “RL”, “RL”, “RL”, “RL”, “RL”, “RL”, “R… $ Street “Pave”, “Pave”, “Pave”, “Pave”, “Pave”, “Pav… $ LotShape “Reg”, “Reg”, “IR1”, “Reg”, “Reg”, “Reg”, “I… $ LandContour “Lvl”, “Lvl”, “Lvl”, “Lvl”, “Lvl”, “Lvl”, “L… $ Utilities “AllPub”, “AllPub”, “AllPub”, “AllPub”, “All… $ LotConfig “Inside”, “Corner”, “Inside”, “Inside”, “Cor… $ LandSlope “Gtl”, “Gtl”, “Gtl”, “Gtl”, “Gtl”, “Gtl”, “G… $ Neighborhood “CollgCr”, “BrkSide”, “NAmes”, “CollgCr”, “E… $ HouseStyle “2Story”, “1.5Unf”, “1Story”, “1Story”, “1St… $ YearBuilt “After 2000”, “Before 1950”, “1950 to 1980”,… $ RoofStyle “Gable”, “Gable”, “Gable”, “Gable”, “Hip”, “… $ ExterQual “Gd”, “TA”, “TA”, “Gd”, “TA”, “TA”, “Gd”, “T… $ CentralAir “Y”, “Y”, “Y”, “Y”, “N”, “Y”, “Y”, “Y”, “Y”,… $ SaleCondition “Normal”, “Normal”, “Normal”, “Normal”, “Nor… $ SalePrice 208500, 118000, 128950, 206000, 82000, 86000… > View(mydata) > View(mydata) >
You must be logged in to post a comment.
Remember Me
Not a member yet? Register now
I accept the Terms of Service
Are you a member? Login now
1 Comments
Data data been read with read.csv. It shows chr data NOT fct data. What to do?
Advise please.
$ Id “H-1”, “H-2”, “H-3”, “H-4”, “H-5”, “H-6”, “H…
$ OverallQual 7, 5, 4, 7, 3, 5, 8, 5, 7, 5, 6, 4, 7, 5, 5,…
$ OverallCond 5, 6, 5, 5, 3, 6, 5, 6, 5, 8, 3, 4, 5, 5, 5,…
$ GarageCars 2, 1, 0, 2, 2, 1, 3, 2, 2, 1, 2, 1, 2, 0, 1,…
$ LotArea 8450, 7420, 9320, 6762, 10206, 5400, 11957, …
$ MSSubClass 60, 190, 20, 20, 20, 30, 20, 90, 120, 80, 20…
$ MSZoning “RL”, “RL”, “RL”, “RL”, “RL”, “RL”, “RL”, “R…
$ Street “Pave”, “Pave”, “Pave”, “Pave”, “Pave”, “Pav…
$ LotShape “Reg”, “Reg”, “IR1”, “Reg”, “Reg”, “Reg”, “I…
$ LandContour “Lvl”, “Lvl”, “Lvl”, “Lvl”, “Lvl”, “Lvl”, “L…
$ Utilities “AllPub”, “AllPub”, “AllPub”, “AllPub”, “All…
$ LotConfig “Inside”, “Corner”, “Inside”, “Inside”, “Cor…
$ LandSlope “Gtl”, “Gtl”, “Gtl”, “Gtl”, “Gtl”, “Gtl”, “G…
$ Neighborhood “CollgCr”, “BrkSide”, “NAmes”, “CollgCr”, “E…
$ HouseStyle “2Story”, “1.5Unf”, “1Story”, “1Story”, “1St…
$ YearBuilt “After 2000”, “Before 1950”, “1950 to 1980”,…
$ RoofStyle “Gable”, “Gable”, “Gable”, “Gable”, “Hip”, “…
$ ExterQual “Gd”, “TA”, “TA”, “Gd”, “TA”, “TA”, “Gd”, “T…
$ CentralAir “Y”, “Y”, “Y”, “Y”, “N”, “Y”, “Y”, “Y”, “Y”,…
$ SaleCondition “Normal”, “Normal”, “Normal”, “Normal”, “Nor…
$ SalePrice 208500, 118000, 128950, 206000, 82000, 86000…
> View(mydata)
> View(mydata)
>