search for: somecondition

Displaying 2 results from an estimated 2 matches for "somecondition".

Did you mean: some_condition
2006 Aug 09
3
objects and environments
Dear list, I have two functions created in the same environment, fun1 and fun2. fun2 is called by fun1, but fun2 should use an object which is created in fun1 fun1 <- function(x) { ifelse(somecondition, bb <- "o", bb <- "*") ## mymatrix is created, then myresult <- apply(mymatrix, 1, fun2) } fun2 <- function(idx) { if (bb == "o) { # do something with idx } else { # do something else with idx } } What should I do to have "bb&...
2006 Aug 03
3
helpers: newbie problem
please help me with my code: im calling a helper, which has to return different links. --list.rhtml ... <% for message in @messages %> <tr> <td><%= message.author.send(''name'') %></td> <td><%= message.send(''date'').strftime("%d.%m.%y/%H.%M.%S") %></td> <td><%=