Importing data into R is really easy, provided it is in the right format. Make sure that you have looked at the section of this site on planning your data analysis!
Open R, and type this into the console (I have called the file 'datafile', but you can call it whatever your like, of course):
Open R, and type this into the console (I have called the file 'datafile', but you can call it whatever your like, of course):
When you click 'Return' on the keyboard, this will bring up a directory search box, where you can find the file you want to work with!
Next, you need to attach the data file so that R knows that you will be using it:
Next, you need to attach the data file so that R knows that you will be using it:
And that is it! You are ready to start your data analysis in R.