Is this a list of data.frames or what? Please have a look at one or both of these for some ideas of how to ask a question and provide information on the problem. The better you can describe what you have and what you need the better people can help. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html
John Kane Kingston ON Canada > -----Original Message----- > From: soe.xi...@gmail.com > Sent: Tue, 19 May 2015 23:37:13 +0700 > To: r-help@r-project.org > Subject: [R] Count unchanged class attribute > > Maybe someone can help me. > Suppose I have data-set like this: > > Netto Bruto class > 1 10 1000 yes > 2 100 20 yes > > > Netto Bruto class > 1 101 1000 yes > 2 100 210 no > > > Netto Bruto class > 1 10 10 yes > 2 12 28 yes > 3 100 20 yes > > Netto Bruto class > 1 120 200 no > 2 400 20 yes > > > Netto Bruto class > 1 110 12000 yes > 2 1100 120 yes > 3 120 100 yes > 4 1140 125 yes > > How to calculate the number of classes has changed. > The expected result is > - class changed 2 > - class unchanged 3 > > > Thank you so much. > Soe Xiyan > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.