I am trying to adjust a gt table employtable1 and create a stub with the various Job roles. For some reason I'm getting an error when running the command and I'm not too sure why or how to fix it. I'm sure it's a fairly simple fix and I'm a novice with R, but would appreciate any help in solving this. I have attached a link with a picture of the current table output and variable names below.
This is what the output looks like with the error as well.
> employtable1
> employtable1 <-
+ employtable1 %>%
+ gt(rowname_col = "job") %>%
+ tab_stubhead(label = "Employment Status")
Error in UseMethod("group_vars") :
no applicable method for 'group_vars' applied to an object of class "c('gt_tbl', 'list')"
Thanks in advance for your help!
