Did you look at the help? ?formula has a whole section about why
formulas have environments and what they do.
On Fri, 4 Feb 2011, Aviad Klein wrote:
# Hi all,
# I've made a function to make a formula out of a data.frame without columns
which contain a constant value.
# The function "which.c
# Hi all,
# I've made a function to make a formula out of a data.frame without columns
which contain a constant value.
# The function "which.constant" returns the indices of colums with constant
values:
which.constant <- function(data.frame) { # counts the number of columns in a
data.frame which
2 matches
Mail list logo