In RStudio, click on the Workspace tab, and then on "Import Dataset" -> "From text file". A file browser will open up, locate the .csv (.txt) file and click Open. You'll see a dialog that gives you a few options on the import. Of particular importance is making sure if you have column names in your file, that Header is set to "Yes". The column names should be bolded in the Data Frame box. Click "Import".

STEP 2 ALTERNATIVE. Load your data into RStudio

Type the following on the Console window. First one is for csv the secind one is for txt files.

filename <- read.csv(file.choose(),header=TRUE)

filename <- read.table(file.choose(),header=TRUE)

Basically, there are two types of outputs that you may want to move around: text and graphics. By doing so you my include the results of your analysis on your assignments and reports. In the following instructions, it is assumed that you would like to insert your analysis into a Word document.

STEP 1: Carry out your analysis in R. Depneding on your analysis it will produce either a text (that will appear on Console) or graphic (that will appear under the Plots tab).