I create a list of dataframes with one column as character vector. But when I enclose those inside a list, all the columns get converted into character which I don't want. What is happening here?
A MWE is provided below
## Unwanted conversion to character
library(tidyverse)
df_fn_new<-function(n){
df<-data.frame(sample(n),sample(LETTERS,n),as.character(sample(50:100,n)))
}
df_new_list<-1:4 %>% map(~df_fn_new(5))
map(df_new_list,~apply(.x,2,is.numeric))