[Rd] state name abbreviations (PR#636)

jackman@stanford.edu jackman@stanford.edu
Wed, 16 Aug 2000 19:16:56 +0200 (MET DST)

Full_Name: Simon Jackman
Version: 1.0
OS: win32, linux
Submission from: (NULL) (

the abbreivated state names given in data(state) contain numerous errors. 
Hawaii, Iowa, Michigan and Nebraska are wrongly abbreviated. 

compare R with S-plus on this.
> version
platform Windows   
arch     x86       
os       Win32     
system   x86, Win32
major    1         
minor    1.0       
year     2000      
month    June      
day      15        
language R         
> data(state)
> state.abb
 [1] "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "FA" "GA" "HA" "ID" "IL" "IN" "IO"
[16] "KS" "KY" "LA" "ME" "MD" "MA" "MC" "MN" "MS" "MO" "MT" "NB" "NV" "NH" "NJ"
[31] "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "RI" "SC" "SD" "TN" "TX" "UT" "VT"
[46] "VA" "WA" "WV" "WI" "WY"

but, say on splus for linux:
S-PLUS : Copyright (c) 1988, 1999 MathSoft, Inc.
S : Copyright Lucent Technologies, Inc.
Version 5.1 Release 1 for Linux 2.0.31 : 1999 
Working data will be in .Data 
> state.abb
 [1] "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "FL" "GA" "HI" "ID" "IL" "IN" "IA"
[16] "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ"
[31] "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "RI" "SC" "SD" "TN" "TX" "UT" "VT"
[46] "VA" "WA" "WV" "WI" "WY"

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch