Nothing
#' matchColClasses
#'
#' @description
#' This function allows you to match the column classes of two data frames.
#' This function requires package base. This function does not require user input.
#' Source: https://stackoverflow.com/questions/49215193/r-error-cant-join-on-because-of-incompatible-types
#' @param df1 A data frame
#' @param df2 A data frame
#' @return df2 with corrected column classes
#' @keywords internal
matchColClasses <- function(df1, df2) {
sharedColNames <- names(df1)[names(df1) %in% names(df2)]
sharedColTypes <- sapply(df1[,sharedColNames], class)
for (n in sharedColNames) {
class(df2[, n]) <- sharedColTypes[n]
}
return(df2)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.