I want to create a loop which can filter data according to c("published" ,"pending","not designed") and then calculate the percentage distribution between text of Name column and create a list of summaries.
df <- data.frame(Name = c("ABC","DCA","GOL",NA,"MNA",NA,"VAN","KDA","JHA","MNA","LKO","HUN","GOL","DCA","JHA"),
Goal =c("published","pending","not designed","published","not designed","not designed","pending","pending","published","pending","not designed","pending","pending","pending","not designed"),
Target_1 = c(3734,2639,2604,NA,2793,2688,2403,7612,8653,8653,8765,3645,5976,4362,7593),
Target_2 = c(3322,2016,2310,NA,3236,3898,2309,5632,7846,5863,5936,4067,6876,6876,5582),
Target_3 = c(3785,2585,3750,NA,2781,3589,2830,6785,8636,7548,9065,7954,8576,9989,4892))