Re: [R] in object of class formula

2011-02-04 Thread Prof Brian Ripley
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

[R] in object of class formula

2011-02-04 Thread Aviad Klein
# 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