Displaying 8 results from an estimated 8 matches for "flquant".
Did you mean:
flquants
2003 Sep 05
1
Problem with S4 slots in C code (PR#4073)
...want to be able to create a new S4 class and read data into it using C
code
# Here is a very simple S4 object inheriting from "array", but with 5
specified dimensions
#(the validity stuff has been stripped out to make it short as I don't think
it is the problem here)
setClass("FLQuant",
representation("array"),
prototype=(array(1, dim=c(1,1,1,1,1), dimnames=list(age="0",
year="0", sex="combined", season="all", area="all")))
)
# In R, I can create a new "FLQuant" object:
> fl <- new("FLQuant&...
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the...
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the...
2005 Dec 20
3
Overlaying lattice plots
...requencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If you want to plot both datasets on the same plot just make use of the
xyplot for FLQuants, something like
flqs <- FLQuants(list(pred=pred.quant, res=res.quant))
xyplot(data~age, data=flqs)
now tune it the way you want and change the formula to fit your needs.
Regards
EJ
ps: I'm cc'ing this to the mailing lists, I find it usefull for others.
2005 Dec 20
3
Overlaying lattice plots
...requencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If you want to plot both datasets on the same plot just make use of the
xyplot for FLQuants, something like
flqs <- FLQuants(list(pred=pred.quant, res=res.quant))
xyplot(data~age, data=flqs)
now tune it the way you want and change the formula to fit your needs.
Regards
EJ
ps: I'm cc'ing this to the mailing lists, I find it usefull for others.
2005 Oct 14
1
extending lattice to S4 classes
Hi,
I'm writing methods for a package called FLCore (see
http://flr-project.org/) in particular for a class called "FLQuant"
which extends array.
Previously I was able to write methods based on the class of "data" but
now I can not do it due to the single parameter "x". Is there a way to
do this ?
Regards
EJ
2006 Oct 04
1
Default argument value for "["
Dear all,
After installing R 2.4.0, a definition of "[" for an S4 class has
stopped working as the default for drop in the generic, TRUE, appears to
override the default in the method
The method is defined for demonstration purposes as
setMethod("[", signature(x="FLQuant"),
function(x, i="missing", j="missing", k="missing", l="missing",
m="missing", ..., drop=FALSE) {
print(drop)
}
)
When called as
new('FLQuant')[1,]
drop is TRUE, instead of FALSE. Am I missing something? Has there been a
chan...
2007 Jul 03
1
How to get the names of the classes exported by a specific package.
Hi,
I'm writing some functions to generate Rd files for a S4 package. I want
to have 2 character vectors with the names of the S4 classes and the
methods exported by a package. To get the info about methods I'm using
"getGenerics(where="package:FLCore")" however I can not find a similar
process to get the S4 classes. Are there functions to access this
information