Dear All,
I am a new user for splus, I have a question in reading data, my data is
separated by tab, the variables in header is separated by single space, I
use
>insur<-read.table("insurS1.dat", header=T)
>names(insur)
[1] "BIPPrem" "BIFreq" "BILoss" "PDPPrem" "PDFreq" "PDLoss"
[7] "PIPPrem" "PIFreq" "PILoss" "UMPPrem" "UMFreq" "UMLoss"
[13] "CLPPrem" "CLFreq" "CLLoss" "CMPPrem" "CMFreq" "CMLoss"
[19] "FAccM" "NFAccM" "FAccV" "NFAccV" "VDenM" "VDenV"
[25] "HospCost" "PhyCost" "Crime" "RepairP" "RepairL" "RepairT"
[31] "BILaw" "AttCap" "PopSqMI" "Income" "DispInc" "Limit65"
[37] "RateLaw" "LiabLaw" "SeatLaw"
We can see the object insur doesn't include the No. 40 variable "State", I
can not figure out what's going on there. Can anybody give me a help?
Thanks for your time.
Weidong Zhang
The data looks like:
BIPPrem BIFreq BILoss PDPPrem PDFreq PDLoss PIPPrem PIFreq PILoss UMPPrem
UMFreq UMLoss CLPPrem CLFreq CLLoss CMPPrem CMFreq CMLoss FAccM NFAccM FAccV
NFAccV VDenM VDenV HospCost PhyCost Crime RepairP RepairL RepairT BILaw
AttCap PopSqMI Income DispInc Limit65 RateLaw LiabLaw SeatLaw State
5.738000107e+001 8.100000024e-001 7.095500000e+003
4.909000015e+001 3.789999962e+000 1.296579956e+003 NA NA
NA 2.145999908e+001
2.300000042e-001 9.403599609e+003 1.179400024e+002
8.600000381e+000
1.371420044e+003 3.997000122e+001
8.630000114e+000 4.632799988e+002 2.609999895e+000
7.794999695e+001 2.700000107e-001 8.220000267e+000
4.244950000e+005
1.055100000e+004 1.830000000e+002 1.559999943e+000
2.839999914e+000
7.867000122e+002 5.155900269e+002 1.413670044e+003 5.699999809e+000
1.440000057e+000 8.129000092e+001 1.831800000e+004 1.006800000e+004
1.000000000e+000 2.000000000e+000 1.000000000e+000
0.000000000e+000 "Alabama"
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|