I have a function written as:
setlower <- function(df) { for(j in seq_along(df)){ data.table::set(df, j=j, value=stringi::stri_trans_tolower(df[[j]]))