Displaying 3 results from an estimated 3 matches for "object_2".
Did you mean:
object_r
2009 Sep 22
3
how to force R to evaluate variable?
Hi,
I want to construct a list as
Lst <- list(name_1=object_1, ..., name_m=object_m)
If name_1 is a variable with value "NAME1", how can I ask R to use
"NAME1" instead of 'name_1' as the name of the list element?
Thanks!
Yupu
[[alternative HTML version deleted]]
2010 Oct 20
1
is get() really what I want here?
# Let's say I have 5 objects, object_1, object_2, etc.
for (i in 1:5) {
assign(paste("object_",i, sep=""), i+500)
}
# Now, for whatever reason, I don't know the names of the objects I've
created, but I want to operate on them.
list<-ls(pattern="^obj")
#Is get best?
for (l in list) {
cat("\n&...
2006 Jan 27
17
Multiple Model Validation
Hey All !
I have a form which contains two models. I would like both models to be
validated, but have their validations aggregated on the page.
If I do:
<%= error_messages_for(:model1) %>
<%= error_messages_for(:model2) %>
It puts two big validation blocks on the page. I would like all the errors
from both models, but only in one validation box.
Is this possible ? All my attempts