mydata=read.csv("filepath.csv")
example:
retinol=read.csv2("C:/Users/ke05/Documents/My Dropbox/Biostat course/EPHD 312/Spring 2017/Project 1/TPretinol.csv")
Stata 13 dataset
library("readstata13")
dataset_name<-read.dta13(“~/filepath/…/filename.dta”,
convert.factors = TRUE, generate.factors = FALSE, encoding = "UTF-8",
fromEncoding = NULL, convert.underscore = FALSE, missing.type = FALSE,
convert.dates = TRUE, replace.strl = TRUE, add.rownames = FALSE, nonint.factors
= TRUE)
dataset_name<-read.dta13(“~/filepath/…/filename.dta”)
*note: you can use either read.csv or read.csv2