(v1.4.0.9017) stringsAsFactors definitions

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-11-11 16:49:27 +01:00
1 parent 68ac39aa7f
commit 01d9522434
26 files changed
+201 -114

No files matched your search

+2 -1
View File
@@ -186,7 +186,8 @@ resistance_predict <- function(x,
# remove rows with NAs
df <- subset(df, !is.na(df[, col_ab, drop = TRUE]))
df$year <- year(df[, col_date, drop = TRUE])
df <- as.data.frame(rbind(table(df[, c("year", col_ab)])), stringsAsFactors = FALSE)
df <- as.data.frame(rbind(table(df[, c("year", col_ab)])),
stringsAsFactors = FALSE)
df$year <- as.integer(rownames(df))
rownames(df) <- NULL