Displaying 2 results from an estimated 2 matches for "nidx".
Did you mean:
idx
2012 Oct 10
2
Summary using by() returns character arrays in a list
I use by() to generate a summary statistics like so:
Lbys <- by(dat[Nidx], dat$LipTest, summary)
where Nidx is an index vector with names picking out the columns in the
data frame dat.
This returns a list of character arrays (see below for str() output) where
the columns are named correctly but the rownames are empty strings and the
values are strings prepended with t...
2012 Sep 02
1
Environment when NextMethod is used
...")
cat(f)
cat("\n\nTests with %in% operator ----------------------------")
# OK
cat('\n"x" %in% Names(y ~ x, data = dat) : ')
cat("x" %in% Names(y ~ x, data = dat))
# OK: Save boolean values to idx, then use f[idx]
cat('\nidx <- "x" %in% Names(y ~ x, data = dat); f[idx] : ')
cat({idx <- "x" %in% Names(y ~ x, data = dat); f[idx]})
# OK: Use the expression with S3 function Names directly inside of []
cat('\nf["x" %in% Names(y ~ x, data = dat)] : ')
cat(f...