so smotenew is a reactive manipulate of new1....
and where has new1 come from ?
note: because smotenew is reactive then the brackets were correct
rov <- reactive({
smotenew()
})
so smotenew is a reactive manipulate of new1....
and where has new1 come from ?
note: because smotenew is reactive then the brackets were correct
rov <- reactive({
smotenew()
})
i have made some changes like subsetting merging cleaning and other some operations on data set
new1<-reactive({
local_cli3<-mergemi2()
local_cli3$a[which(is.na( local_cli3$a))]<-mean( local_cli3$age_at_index,na.rm=TRUE)
local_cli3
})
output$new<-renderPrint({
str(new1())
#SMOTE
smotenew<-reactive({
smotenew2<-new1()
smotenew2$id <- as.factor(smotenew2$id)
smotenew2
})
output$smote_data<-renderPrint({
str(smotenew())
})
#oversampling using UBL package
rov <- reactive({
smotenew
})
rob <- reactive({
RandOverClassif(id ~ ., rov(), C.perc = "balance")
})
output$resampled_dt <- renderDataTable({
rob()
})
})
i have performed some operations and stored in new1.
its bad practice generally, unless you're doing something special, to embed reactives definitions within render* functions, the default should be that they are on the same heirarchy i.e. living in your server code. you've got renderprints inside of renderprints...
I'd start with that problem.
if possible can you please help me to solve this error?
@nirgrahamuk has already done far more than necessary to help you, while you have done very little to help them help you. If you want any more help, you need to provide a reprex so it's possible to see exactly what you are doing. I'd strongly recommend that you read https://mastering-shiny.org/action-workflow.html#reprex before asking for help again.
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.