Displaying 1 result from an estimated 1 matches for "prsnr".
2007 Mar 24
2
Two Problems while trying to aggregate a dataframe
...in this mailing list a hint for aggregate (though I did not
understand most of that mail).
So I made some efforts with aggregate() and it seems to lead the right way:
[code]
> atest <- read.csv2 ("aggregatetest.csv")
> str(atest)
`data.frame': 10 obs. of 4 variables:
$ PrsNr : int 1 2 2 3 4 5 6 6 6 7
$ Namen : Factor w/ 7 levels "Holla","Mabba",..: 1 2 2 4 5 6 7 7 7 3
$ Betrag1: num 1.99 2.34 5.23 4.23 2.23 2.77 3.83 2.76 6.32 2.88
$ Betrag2: num 3.44 5.32 5.21 9.12 7.32 8.32 6.99 4.45 5.34 3.81
> atest
PrsNr Namen Betrag1 Betrag2
1...