'gtsumamry package - Is it normal that it takes too much time to run?

I am currently running the tbl_uvregression on a dataset with 413,177 rows and 6 columns. When I try to run it, it says I do not have enough memory for it to work (I've expanded memory size limit to no avail).

I consequently narrowed it to a subset of the first 1000 rows, just to try it out, but it's taking an awfully long time to generate it (currently 30 mins +). Is this normal for such a large dataset? Or is there something wrong in the code?

The code example I'm using is as follows. (df = datframe)

univ_tab <- df %>% 
  dplyr::select(explanatory_vars, outcome) ## select variables of interest

univ_tab <- univ_tab[1:1000,]

univ_tab <- univ_tab %>%  
  tbl_uvregression(                         
    method = glm,                          
    y = outcome,                            
    method.args = list(family = binomial),  
    exponentiate = TRUE                     
  )


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source