Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save duttashi/a2c8cb04533344d6d6536f207ce66cea to your computer and use it in GitHub Desktop.
Save duttashi/a2c8cb04533344d6d6536f207ce66cea to your computer and use it in GitHub Desktop.
# load required libraries
library(tidyverse)
# READ DATA IN MEMORY
df_train<- read.csv("kaggle_fake_job_prediction/data/fake_job_postings.csv",
header=T, na.strings=c(" ","NA"), stringsAsFactors = FALSE, strip.white = TRUE)
# create copy
df<- df_train
df<- df %>%
mutate_if(is.character, funs(factor(.)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment