search for: odomet

Displaying 7 results from an estimated 7 matches for "odomet".

Did you mean: odom
1997 Aug 25
0
R-alpha: `missing' BB functions
Here are the functions documented in the Blue Book that I found missing in R (ignoring the ones which are obviously outdated). aggregate allocated amatch axes chull clorder cutree cycle date debugger dget discr faces interp l1fit labclust lag loglin monthplot mstree mulbar napsack odometer persp plclust plotfit rep.int restore rreg sabl sablplot set.seed smooth sort.list Stable stars starsymb storage subtree symbols tempfile tslines tsmatrix tsplot tspoints twoway unlink usa xor In some detail: aggregate cycle lag smooth tslines tsmatrix tsplot tspoints: Obviously useful for...
2005 Mar 28
2
Generating list of vector coordinates
Hi. Can anyone suggest a simple way to obtain in R a list of vector coordinates of the following form? The code below is Mathematica. In[5]:= Flatten[Table[{i,j,k},{i,3},{j,4},{k,5}], 2] Out[5]= {{1,1,1},{1,1,2},{1,1,3},{1,1,4},{1,1,5},{1,2,1},{1,2,2},{1,2,3},{1 ,2,4},{1,2, 5},{1,3,1},{1,3,2},{1,3,3},{1,3,4},{1,3,5},{1,4,1},{1,4,2},{1,4,3}, {1,4,
2004 Apr 02
2
"(de)linearizing" array indices
Hi, I have a dynamic programming problem with many state variables, let's call them l, n, m, etc. The transition probabilities are originally given in an array form, eg transtition[l,m,n,ll,mm,nn] give the probability of going from l,m,n to ll,mm,nn. However, the numerical solution is best handled when I "flatten" the L x M x N state space into a single one (call it S), ie a
2009 Sep 01
2
Function for all 2^N subsets of N
Greetings all! I have been searching the Site for a function, say "subsets", such that for instance subsets(10) would return a (say) matrix of indices to the 2^10 subsets of N items -- perhaps in the form of 2^10 rows each of which is 10 entries each either TRUE or FALSE. Or 1 or 0. Or ... I can of course write my own, using good old looping technology or similar, but it would be
2008 Apr 21
4
matrix problem
Hi Everyone, I am running into a problem with matrices. I use R version 2.4.1 and an older version. The problem is this: m<-matrix(ncol=3,nrow=4) m[,1:3]<-runif(n=4) That does what I expect; it fills up the rows of the matrix with the data vector > m [,1] [,2] [,3] [1,] 0.2083071 0.2083071 0.2083071 [2,] 0.5865763 0.5865763 0.5865763 [3,] 0.7901782 0.7901782
2011 Aug 06
4
row*matrix
Hi all, I'm learning R. I'm used to Matlab and am having the following issue: I define a column vector and matrix and then multiply them. The result is not what I expect: v2 <- c(0,1,0) M <- cbind(c(1,4,7),c(2,5,8),c(3,6,9)) M*v2 [,1] [,2] [,3] [1,] 0 0 0 [2,] 4 5 6 [3,] 0 0 0 I expect the result to be a column, specifically the 2nd column of M.
2003 Sep 10
4
recording and taking mean of a set of matrices
I'm looking for a good form in which to store matrix results of a simulation. I am doing a simulation study. Each simulation generates some data and then analyzes it. I want to record the results of many simulations and analyze them. Say r has the results of one simulation, and I care about r$coefficients, a vector of coefficients, and r$var, the estimated covariance matrix. I'll do