Displaying 2 results from an estimated 2 matches for "listtabl".
Did you mean:
listtable
2006 Aug 08
1
How to convert list elements to data.frames or vectors?
Dear R mailing-list comunity!
I'm currently trying to implement an R method. I have two sets of data
that I convert into a data.frame each. These data.frames I'd like to
append to a list:
# generate a list
listTable<-list()
# add one set of data
x<-1000 ;y<-1 ;listTable[[length(listTable) + 1]] <-
data.frame(matrix(rnorm(x*y), nrow=y)); rm(x); rm(y)
# add another set of data (same command)
x<-1000 ;y<-1 ;listTable[[length(listTable) + 1]] <-
data.frame(matrix(rnorm(x*y), nrow=y)); rm(x)...
2006 Feb 20
4
Obtaining the ID of a newly saved model object
...aved so that it can be used in the view. Something like...
@newmaterial = Material.find(@material.id)
is what I was thinking, but that doesn''t work as @material still has no id.
The method finishes with a rendering of a table (this is an AJAX called method)
render_partial ''listtable'', :layout => false
end
I want to grab the newly created object so I can hightlight and display it in the view, but I don''t know how to retrieve it again!
Any and all ideas are most appreciated.
Chris.