Re: [R] make elements of a list into functions

2015-03-24 Thread Uwe Ligges
On 25.03.2015 00:38, Kruti Pandya wrote: Hi I have a list called g as follows and I want to make elements of g into functions so that I can evaluate them at randomly generated data point say c(0,0,0). For example, change g[[1]] (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x[3]) to function(x)

[R] make elements of a list into functions

2015-03-24 Thread Kruti Pandya
Hi I have a list called g as follows and I want to make elements of g into functions so that I can evaluate them at randomly generated data point say c(0,0,0). For example, change g[[1]] (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x[3]) to function(x) (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x