Finding datasets for South African Heart Disease

I've been working with R recently and have been looking for interesting data sets, for example:

http://statweb.stanford.edu/~tibs/ElemStatLearn/data.html

The following command is documented but fails because R can't track through 2 302 status codes and a "301 Moved Permanently":

> read.table("http://www-stat.stanford.edu/~tibs/ElemStatLearn/datasets/SAheart.data", sep=",",head=T,row.names=1)
Error in file(file, "rt") : cannot open the connection


This worked:

> read.table("http://statweb.stanford.edu/~tibs/ElemStatLearn/datasets/SAheart.data", sep=",",head=T,row.names=1)

Even better:

http://cran.r-project.org/web/packages/ElemStatLearn/ElemStatLearn.pdf

> install.packages("ElemStatLearn")
> help(package="ElemStatLearn")
> library( package = ElemStatLearn )
> str(SAheart)
> summary(SAheart)
> data(SAheart)
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12620111

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today