(v0.7.1.9102) lintr

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-10-11 17:21:02 +02:00
1 parent 59af355a89
commit 00cdb498a0
65 files changed
+620 -812

No files matched your search

+2 -2
View File
@@ -203,10 +203,10 @@ dataset_UTF8_to_ASCII <- function(df) {
iconv(vect, from = "UTF-8", to = "ASCII//TRANSLIT")
}
df <- as.data.frame(df, stringsAsFactors = FALSE)
for (i in 1:NCOL(df)) {
for (i in seq_len(NCOL(df))) {
col <- df[, i]
if (is.list(col)) {
for (j in 1:length(col)) {
for (j in seq_len(length(col))) {
col[[j]] <- trans(col[[j]])
}
df[, i] <- list(col)