I want to divide the percent into Korea and Taiwan separately.
I don't have any idea to calculate the percent with ddply
fucntion separately.
plot<-ddply(
data,
c("Country", "Here.is.usually.much.garbage.distributed."),
summarise,
n=length(Here.is.usually.much.garbage.distributed.),
percent=((n/sum(plot$n))*100)
)
Is there anyone who knows how to do it?