[R] shinyFiles update shinySaveButton filename varaible from server

2021-06-03 Thread nevil amos
Is it possible to update the filename variable the shinySaveButton from the server? I want to provide a default filename based on a series of choices that the user has made in the app ( here I have just made a random string to serve the purpose. how do I feed output$defaultname so that shinySa

[R] impute.transcan missing original variables

2021-06-03 Thread maicel
I’m trying to select only one dataframe, after performing an imputation with aregImpute and impute.transcan. However, I cannot get back a variable that was kept out of the imputation model. Can somebody tell me how to do it? If we illustrate this problem using the following reproducible exampl

[R] [R-pkgs] monobin: Monotonic Binning for Credit Rating Models

2021-06-03 Thread Andrija Djurovic
Dear R users, I am happy to announce that my package monobin is now available on CRAN. The package contains functions that perform monotonic binning of numeric risk factor in credit rating models (PD, LGD, EAD) development. All functions handle both binary and continuous target variable. Function

Re: [R] replace NA into - for specific column

2021-06-03 Thread konstantinos christodoulou
Hi Kai, You can also try this: proband_crc2 %>% mutate(MMR = replace(MMR, MMR =="NA", "-")) Thanks, Kostas On Wed, Jun 2, 2021 at 11:59 AM Jim Lemon wrote: > Hi Kai, > Maybe this will help: > > proband_crc2<-data.frame(MMR=rep(c(NA,"+"),3)) > proband_crc2 > proband_crc2$MMR[is.na(proband_cr

[R] Question about sjPlot lines and scale

2021-06-03 Thread Luis Fernando García
Dear all, I am wanting to improve a plot made with the package sjPlot. When plotting this model Plot produced looks like this https://docs.google.com/presentation/d/1Pqm6BcJXdSQ6U1zmv5FV7gBcn1afHHv7rlQHe6j59_c/edit?usp=sharing, especially red and green lines. I just have two concerns with this