Displaying 2 results from an estimated 2 matches for "last_on".
Did you mean:
last_dn
2011 May 25
3
Accessing elements of a list
...rt
where I index the list to make a new vector containing only the last item
of each list
mylist = list(c(1,2,3),c("cat","dog"),c("x","y","z","zz")) # Create
list
last <- sapply(mylist,length) # Make vector with list lengths
last_only <- mylist[[1:length(mylist)]][last] # Crash and burn trying to
make new vector with last items!
How do I do this last step?
Dr. Seth W. Bigelow
Biologist, USDA-FS Pacific Southwest Research Station
1731 Research Park Drive, Davis California
sbigelow@fs.fed.us / ph. 530 759 1718
[[alt...
2006 Jun 26
3
syntax for observe_field( :with =>
Greetings!
What is up with the syntax of this thing? I mean, if the only thing I can send back using :with is the field being observed, then why in the world is the syntax so convoluted? For example, what I''ve been able to get working is:
<%= text_field_tag(''date'', illness_date, :size => 30) %></p>
<%= observe_field(''date'', :url