Displaying 4 results from an estimated 4 matches for "plus4".
Did you mean:
plus
2010 Aug 05
4
Reducing a list of functions by composition fails
Hi All,
I'd like to be able to specify the ordered composition of several
functions. So I defined compose:
compose <- function(f,g){
function(x){f(g(x))}
}
and some simple test functions:
plus2 <- function(x){x+2}
plus3 <- function(x){x+3}
plus4 <- function(x){x+4}
> (compose(plus2,compose(plus3,plus4)))(3)
[1] 12
Works fine. But trying to reduce a list of functions by compose fails:
> Reduce(compose,list(plus2,plus3,plus4),right=TRUE)(3)
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
As far...
2009 Nov 06
0
Nested objects not propagating from view
...uot;updated_at"
end
create_table "addresses", :force => true do |t|
t.string "street_address1"
t.string "street_address2"
t.string "city"
t.integer "state_id"
t.integer "zipcode"
t.integer "plus4"
t.datetime "created_at"
t.datetime "updated_at"
end
# relevant models
class User < ActiveRecord::Base
belongs_to :contact
has_many :properties
has_many :notes, :through => :properties
accepts_nested_attributes_for :contact, {
:allow_d...
1999 Jul 01
1
lme
...couldn't find function "restart"
without 'data' it doesn't run.
The code
plot(Orthodont.fit1)
generated the error message
Error: couldn't find function "xyplot"
I suppose that a graph such as appears in Pinheiro and Bates 1995 (lme and
nlme) and in S-PLUS4 : Guide to Statistics is generated by the plot method?
The code given in S-PLUS4 : Guide to Statistics page 285 does generate the
graph.
plot(age,distance,type="n",xlab="Age (years)",ylab="Distance (mm)")
points(age[Sex=="0"],distance[Sex=="0"],t...
2006 Aug 02
0
Need help with SOAP and .NET
...any>string</Company>
<Address>string</Address>
<Address2>string</Address2>
<Suite>string</Suite>
<City>string</City>
<State>string</State>
<Zip5>string</Zip5>
<Plus4>string</Plus4>
<Country>string</Country>
<Telephone>string</Telephone>
<FullName>string</FullName>
</Request>
</doSingleRecord>
</soap:Body>
</soap:Envelope>
--
View this message in context: ht...