Skip to contents

Convert character-type columns of a dataframe to factor-type

Usage

char_to_fac(df)

Arguments

df

A dataframe

Value

df_converted The dataframe with factor-type columns instead of char-type columns