How to read csv file in R? -


http://www.aihw.gov.au/acim-books/ , 'lung cancer'

the above link takes xls file, table data of people lung cancer. read data in r.

i have saved above data 'lung cancer.csv' in desktop.

how do this?

i've got:

data <- read.csv(file="lung cancer.csv",header=true,sep=",") 

but says

in addition: warning message: in file(file, "rt") :   cannot open file 'lung cancer.csv': no such file or directory 

you should use absolute path of .csv file. eg. desktop:\r\lung_cancer.csv also use double\ instead of \ or use / .


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -