[Rd] Subscripting Matrices

2014-08-06 Thread Terrence Ireland
There seems to be a result type difference when subscripting a 6 x 1 matrix as compared to a 3 x 2 matrix that is caused by the ncol = 1 compared to ncol > 1. > ThinMatrix <- matrix(1:6,ncol=1) > ThinMatrix [,1] [1,]1 [2,]2 [3,]3 [4,]4 [5,]5 [6,]6 > FatMatrix <- mat

[Rd] Scope question concerning calls within a user defined function

2009-05-06 Thread Terrence Ireland
The following is a simple example with a poor solution that shows my difficulties with scope. The function /logit.test /has 3 arguments: /model.start,/ an initial model; /model.finish/, an all-inclusive model, /my.data/, a dataset, in this case trivial. There are 2 function calls in l/ogit.t