Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colsn not found in .data. #26

Open
venkatamaguluri opened this issue Aug 1, 2023 · 2 comments
Open

colsn not found in .data. #26

venkatamaguluri opened this issue Aug 1, 2023 · 2 comments

Comments

@venkatamaguluri
Copy link

charvar <-function(vars){
adsl2$cols<-adsl2[[vars]]
adsl2$colsn<-adsl2[[paste0(vars,"N")]]
dummy<-adsl2 %>% distinct(., cols, colsn) %>% rename(Name = cols, sortvar = colsn) %>% data.frame()
p=xtabs(~cols+TRT01P,data = adsl2)
dat<-data.frame(Name=rownames(p),rbind(p),row.names = NULL) %>%
mutate_if(is.numeric,function(x) paste0(x, " (",round(x*100/sum(x),2),"%)")) %>%
murtate(category=vars,Name=as.character(Name)) %>%
left_join(dummy,by="Name")

}

what is the problem in my code. it's not showing cols n colsn in data

@mtandp
Copy link
Contributor

mtandp commented Aug 2, 2023 via email

@mtandp
Copy link
Contributor

mtandp commented Aug 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants