Displaying 6 results from an estimated 6 matches for "data_object".
2007 Oct 18
0
Getting the through items from a has_many :through :uniq relationship
Getting the through items from a has_many :through :uniq relationship
In a nutshell, I have been using the has_many :through :uniq
relationship, and I want a DRY way to list the join model objects.
Currently, my objects include taxon objects, toxin objects,
data_object objects, and taxon_toxin_citation objects ("citation" is
another word for data_object). A taxon has many data objects, has many
taxon_toxin_citations, and has many toxins through
taxon_toxin_citations. As well as a taxon causing many toxins, a toxin
can be caused by many taxa. And there a...
2009 Oct 24
6
Working with ListCtrl and ListItem
...ame)
self.set_item(i,1,data.code)
self.set_item(i,2,data.description)
i = i + 1
end
end
I think it would be better to subclass Wx::ListItem and add instances
of this class to the List. Something like this (not tested):
class MyListItem < Wx::ListItem
def initialize(data_object, *args)
super(*args)
# here I need to add the column data, but I don''t know how
end
end
my_list.add_item(MyListItem.new(data_object))
But I have no idea how I can fill the columns in my ListItem-Object.
Any ideas how I can do this? I think it should work with
ListItem#se...
2011 Mar 21
5
Stucked with as.numeric function
Hi list,
I have problems with the as.numeric function. I have imported probabilities from external data, but they are classified as factors as str() shows. Therefore my goal is to convert the colum from factor to numeric level with keeping the decimals.
I have googled the problem for a while now and kept to several advices like
2011 Jul 11
4
Save generic plot to file (before rendering to device)
I am looking for a way to save a plot (graphics contents) to a file after the
plot has been calculated but before it has been rendered. More specifically,
assume that I made a plot that took a very long time to produce, I would
like to save this plot to a generic file that I can later, on a different
machine, render to either PDF, PNG, SVG using the usual R graphics devices,
without recalculating
2011 Jul 11
4
Save generic plot to file (before rendering to device)
I am looking for a way to save a plot (graphics contents) to a file after the
plot has been calculated but before it has been rendered. More specifically,
assume that I made a plot that took a very long time to produce, I would
like to save this plot to a generic file that I can later, on a different
machine, render to either PDF, PNG, SVG using the usual R graphics devices,
without recalculating
2011 Oct 11
1
plot methods for summary of rms objects
The integration of plot methods for various outputs from rms packages is
a great appreciated aspect of the rms package.
I particularly like to use:
plot(summary(model))
for my own purposes, but... for publication/presentation I need to
modify details like variable names, or the number of signficant digits
used in the figure annotations.
Is there a simple way to modify the plot inputs