Browsing to Find Files

The R function for this is file.choose(). Here it is in action with read.table:

data<-read.table(file.choose(),header=T)

Once you click on your selected file this is read into the dataframe called data.

Get The R Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.