return(i18n$t("This analysis requires at least two variables. The first can be of type\nfactor, numeric, or interval. The second must be of type numeric or interval.\nIf these variable types are not available please select another dataset.\n\n")%>%suggest_data("salary"))
return(i18n$t("This analysis requires at least two variables. The first can be of type\nfactor, numeric, or interval. The second must be of type numeric or interval.\nIf these variable types are not available please select another dataset.\n\n")%>%suggest_data("salary"))
i18n$t("This analysis requires two categorical variables. Both must have two or more levels.\nIf these variable types are not available please select another dataset.\n\n")%>%
i18n$t("This analysis requires two categorical variables. Both must have two or more levels.\nIf these variable types are not available please select another dataset.\n\n")%>%
suggest_data("newspaper")
suggest_data("newspaper")
}else{
}else{
"available"
"available"
}
}
})
})
.cross_tabs<-reactive({
.cross_tabs<-reactive({
cti<-ct_inputs()
cti<-ct_inputs()
cti$envir<-r_data
cti$envir<-r_data
do.call(cross_tabs,cti)
do.call(cross_tabs,cti)
})
})
.summary_cross_tabs<-reactive({
.summary_cross_tabs<-reactive({
if(ct_available()!="available"){
if(ct_available()!="available"){
return(ct_available())
return(ct_available())
}
}
summary(.cross_tabs(),check=input$ct_check)
summary(.cross_tabs(),check=input$ct_check)
})
})
.plot_cross_tabs<-reactive({
.plot_cross_tabs<-reactive({
if(ct_available()!="available"){
if(ct_available()!="available"){
return(ct_available())
return(ct_available())
}
}
validate(need(input$ct_check,i18n$t("Nothing to plot. Please select a plot type")))
validate(need(input$ct_check,i18n$t("Nothing to plot. Please select a plot type")))