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
Post a Comment