Hello every one,
I tried to run this code (with no success):
chanel_code=c( "BA","CS","DM","DS","EN","IA","MG","PS","TM")
for (i in chanel_code) {
assign(paste("prospect_",i,sep="", collapse = NULL,recycle0 = FALSE),(aggregate(na_adss_score ~ month_year + na_appl_status, paste("new_account_",i, sep="",collapse = NULL, recycle0 = FALSE),mean) %>%
mutate(aggregate(na_pcn_no ~ month_year + na_appl_status, paste("new_account_",i, sep="",collapse = NULL, recycle0 = FALSE), length))))
}
-
*
Error in eval(predvars, data, env) :
argument 'envir' incorrect de type 'character'
would you mind please helping me.
thanks in advance