The goal of this tutorial is to define stringsToFactors parameter to FALSE as default for the whole script.
# We can check the value of the parameter with the instruction
default.stringsAsFactors()
## [1] TRUE
# Set stringasfactors to false always
# This will change the default value for any function that contains this parameter
# For example read.csv
options(stringsAsFactors = FALSE)
# And we check if the change was effective
default.stringsAsFactors()
## [1] FALSE
In this tutorial we have learnt how to change the default value of stringsAsFactors to False. This could be useful if we are reading big tables and we want to avoid creating huge factor variables.