Skip to content
Prev 318691 / 398503 Next

urgent: question concerning data manipulation

There?s more than one way to skin a cat, here is another

mm<-model.matrix(~personId+law+0,testdata)
merge(testdata,aggregate(mm[,-1],list(personId=mm[,"personId"]),max))

cheers

Am 04.03.2013 16:44, schrieb David Studer: