Displaying 1 result from an estimated 1 matches for "fnxx".
Did you mean:
fcxx
2003 Aug 27
3
seeking help with with()
...rs=Month)
print(by(x, by.vars, summary))
But this doesn't work (does not find x$Month; unlike other functions,
such as
subset(), the INDICES argument to "by" does not look for variables in
dataset
x. Is fully documented, but I forget every time). So I tried using
"with":
fnxx <- function(x, by.vars=Month)
print(with(x, by(x, by.vars, summary)))
Still fails to find object x$Month.
I DO have a working solution (below) - this post is just to ask: Can
anyone
explain what happened to the with()?
FYI solutions are to call like this:
fnx(airquality, airquality$Mont...