I want to apply the same condition of subset
to different bases in R.
I thought for
would solve, but I did not succeed.
Follow the programming used:
for(i in c("mar16", "jun16", "set16", "dez16", "mar17")){
postos[i]<-subset(postos[i],postos[i]$SEGMENTO=="Bancos")
}
Can you use for
for this type of situation?