Skip to content
Prev 279623 / 398506 Next

help wrapping findInterval into a function

Can't this be fixed by switching with to within? E.g.,

x = data.frame(a = 1:3, b = 4:6)

AddRowSums <- function(df) within(df, d <- a + b)

x <- AddRowSums(x)

print(x)

Michael
On Wed, Dec 7, 2011 at 12:07 AM, David Winsemius <dwinsemius at comcast.net> wrote: