The following command will help you to import Excel file into R. I really spent good time so I do not want to repeat it for you!.:-)
install.packages("foreign") ## Installed this package to import Stata ##
library (foreign) ## this is for storing the package
dsak <- read.dta ("C:/Users/User/Desktop/test.dta") ## here dsak is just a random name. <- is assignment and then put the name of data file and show the directory.
Dear Friends,
The following command will help you to import Excel file into R. I really spent good time so I do not want to repeat it for you!.:-)
install.packages("foreign") ## Installed this package to import Stata ## library (foreign) ## this is for storing the package dsak <- read.dta ("C:/Users/User/Desktop/test.dta") ## here dsak is just a random name. <- is assignment and then put the name of data file and show the directory.
Hope it would help! Sincerely, Mujahed