# Three examples for doing the same computations
mydata$sum <- br="" mydata="" x1="" x2="">
mydata$mean <- br="" mydata="" x1="" x2="">
attach(mydata)
mydata$sum <- br="" x1="" x2="">
mydata$mean <- br="" x1="" x2="">
detach(mydata)
mydata <- br="" mydata="" transform="">
sum = x1 + x2,
mean = (x1 + x2)/2
) ->->->->->
Source for the above code.
1 comment:
Easter Eggs and Bunny Coloring Pages
IPL 2016 Timetable
Post a Comment