Skip to content

Instantly share code, notes, and snippets.

@kstawiski
Created November 19, 2021 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kstawiski/f4c79f18f1a470157aca34ac500a4fba to your computer and use it in GitHub Desktop.
Save kstawiski/f4c79f18f1a470157aca34ac500a4fba to your computer and use it in GitHub Desktop.
Load Excel file and make character variables factors
library(readxl)
library(dplyr)
dane <- read_excel("dataset_uzupelniony.xlsx") %>% mutate_if(is.character,funs(factor(.)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment