Skip to content
Prev 1943 / 398506 Next

Newbie query - reading data into R

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
Whooops. I assumed that the input file had had the "City" header
removed when I saw that display. I honestly didn't believe that S-plus
could be that silly (it scans the variables, grabs the first
nonnumeric one that has no duplicated values and uses it for
rownames!):
..
..
Agreed. However, even after noticing the difference, I really don't
think that that bit of S-plus behaviour is worth cloning. 

(S-plus, after duplicating the Wellington line:)
City Number 
1       Napier    324
2     Auckland    657
3   Wellington    879
4   Wellington    879
5 Christchurch    904