Skip to content
Prev 389263 / 398506 Next

how to remove factors from whole dataframe?

Hi Luigi,
try this
library(taRifx)
df_noFact <- remove.factors(df)
str(df_noFact)
'data.frame': 5 obs. of  3 variables:
 $ region : chr  "A" "B" "C" "D" ...
 $ sales  : num  13 16 22 27 34
 $ country: chr  "a" "b" "c" "d" ...
I hope this helps
Fabio

Il giorno dom 19 set 2021 alle ore 12:04 Luigi Marongiu <
marongiu.luigi at gmail.com> ha scritto: