search for: optionalfunct

Displaying 6 results from an estimated 6 matches for "optionalfunct".

2012 Nov 13
2
Is function(x){x}(5) a valid expression?
I was surprised to notice that statements like: h = function(...){list(...)}(x=4) do not throw syntax errors. R claims that 'h' is now a function, but I can't seem to call it. > h = function(x){list(x)}(4) > is(h) [1] "function" "OptionalFunction" "PossibleMethod" > h() Error in list(x) : 'x' is missing > h(4) Error in h(4) : attempt to apply non-function > What's going on? Jamie Olson [[alternative HTML version deleted]]
2006 Apr 09
2
type converters not being saved to workspace
...quot;, to = "name" from = "ANY", to = "numeric" from = "ANY", to = "single" from = "ANY", to = "ts" from = "ANY", to = "vector" from = "ANY", to = "NULL" from = "NULL", to = "OptionalFunction" >
2006 Apr 09
2
type converters not being saved to workspace
...quot;, to = "name" from = "ANY", to = "numeric" from = "ANY", to = "single" from = "ANY", to = "ts" from = "ANY", to = "vector" from = "ANY", to = "NULL" from = "NULL", to = "OptionalFunction" >
2005 Nov 14
1
Tidiest way of modifying S4 classes?
...something I'm missing in connecting that information into knowledge of how I go about making a new method or slot or whatever is sensible in this case. What does one make of this: > getClass(class(kinship:::plot.pedigree)) No Slots, prototype of class "function" Extends: "OptionalFunction", "PossibleMethod" Known Subclasses: Class "MethodDefinition", from data part Class "genericFunction", from data part Class "functionWithTrace", from data part Class "derivedDefaultMethod", by class "MethodDefinition" Class &quot...
2004 Sep 27
0
new version of package "distr" available
...ctor-valued parameters. * -Classes "Parameter" , "Distribution" , "UnivariateDistribution" are no longer VIRTUAL -"AbscontParameter" and "DiscreteParameter" are replaced by "Parameter" -Type of slots d,p,q and param is changed to "OptionalFunction" and "OptionalParameter" respectively ----------------------------------------------------------------------------------------- Short Description of "distr": "distr" is to provide a conceptual treatment of random variables (r.v.'s) by means of S4--classes...
2004 Sep 27
0
new version of package "distr" available
...ctor-valued parameters. * -Classes "Parameter" , "Distribution" , "UnivariateDistribution" are no longer VIRTUAL -"AbscontParameter" and "DiscreteParameter" are replaced by "Parameter" -Type of slots d,p,q and param is changed to "OptionalFunction" and "OptionalParameter" respectively ----------------------------------------------------------------------------------------- Short Description of "distr": "distr" is to provide a conceptual treatment of random variables (r.v.'s) by means of S4--classes...