# convertDataFrame.R
#
# Purpose: Convert the initial data frame to make values consistent to allow for
# easier analyzation.
#
# Author: Jedid Ahn (jahn@research.baycrest.org)
#
# Date: 2019-07-04
#
# ========================================================================================
convertDataFrame <- function(df){
# Step 1: Get any column names that are blank, and convert all to "NO_TITLE".
selection <- colnames(df) == ""
colnames(df)[ selection ] <- "NO_TITLE"
# Step 2: Get any cells that contain the value "NA", and convert all to "".
selection <- (is.na(df))
df[ selection ] <- ""
return (df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.