Displaying 3 results from an estimated 3 matches for "anythingelse".
2005 Dec 06
1
array of lists? is this the best way to do it?
...lists, or structures the most elegant way?
There have been questions in the past but none too recently...I want to know if the following looks OK to you guys or if there is a better way to create an array of lists:
# PREAMBLE ... JUST TO GET THINGS GOING
makeList<- function(data, anythingElse) {
rval <- list( data = data,
anythingElse = anythingElse
)
class(rval) <- "myListOfArbitraryThings"
return(rval)
}
# make up some arbitrary data
payload<- list( as.matrix(cbind(1,1:3)),
10:15,
data.frame(cbind(x=1, y=1:10), fac=sample(LETTERS[1:3], 10...
2006 Aug 10
0
routing wierdness
...gt; "index"
map.connect ":controller/:action/:id"
however, the 2nd route never matches, but the 3rd one does.
in other words, if someone attempts to go to
mysite.myhost.com/admin, i want them routed to admin/main controller,
index action
if someone goes to
mysite.myhost.com/anythingelse, route them to main controller, index action
but for some reason
mysite.myhost.com/admin IS NOTmatched against the 2nd route but IS
matched against the 3rd route.
am i missing something here?
Chris
2003 Oct 30
3
Change in 'solve' for r-patched
...s
chol2inv(qr.R(qr(X)))
- if, despite all of the above, you feel you must calculate X'X it is
best done as
crossprod(X)
and not as
t(X) %*% X
Similarly, X'y is best calculated as crossprod(X, y). In general
you should use crossprod in place of "t(anything) %*% anythingelse"