getDataFrame <- function( filename, dir ){
if( exists(filename) ){
# The dataframe has already been read, and it is laying around. No need to re-read.
dat <- get(filename)
} else {
# The dat is not laying around. Read it.
dat <- read.csv(paste0(dir,'/',filename))
}
dat
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.