Saving your data

Before we do anything else, let's save this dataframe to disk, since we will be using it again in this chapter. Before saving the file, make sure you set your working directory to the data directory:

setwd("C:/PracticalPredictiveAnalytics/Data") 
save(df,file="pain_raw.Rda") 

Get Practical Predictive Analytics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.