search for: redimension

Displaying 10 results from an estimated 10 matches for "redimension".

2006 Nov 21
2
keeping dim() for array
...he following: pip = array(1:6, dim = c(3,2)) dim(pip) [1] 3 2 pup = pip[1,] dim(pup) NULL I bet there is a *good* reason why one row of an array is *dimensionless*, but it's highly inconvenient for my purpose, i.e. to use apply() after an array goes through a number of logical steps and is redimensioned, sometimes to one single row. How do I keep dim(pup) to 1 2? Since pup is at the end of a number of if(), it does not necessarily end up as one row only, so t(as.matrix(pup)) is the *wrong* answer. Best, Federico -- Federico C. F. Calboli Department of Epidemiology and Public Health Imperi...
2011 Aug 28
2
converting matrix in array
Hi everyone, have a small problem trying to converting a dataset in matrix form to an array. Specifically: data include 3D measurement -x,y,z of 59 points in 36 objects. They are stored as a matrix (x) of 2124 rows and 3 columns. What I want to do is to extract each subject's dataset using an array (b). Accordingly, I tried the following command: b<-array(a,c(59,3,36)). The problem is
2007 Jul 25
11
taskbaricon
Salut alex, j''ai un petit souci. quand j''utilise "demotaskbaricon" avec traducteur-wxruby, que j''ouvre mon application(donc l''icone apparaƮt dans la barre de lancement rapide) et que je ferme mon application, l''icone disparaƮt tout de suite. Mais quand je l''utilise avec l''exemple Wizard et que je ferme mon application
2004 Apr 12
0
Windows startup question
...9;vcd': The following object(s) are masked from package:base : print.summary.table summary.table Error in dim(votes) <- c(10, 7, 9, 2) : cannot do complex assignments in base namespace So it seems the first 2 lines are executed, the vector votes exists, but cannot be redimensioned as an array. Can i make what I would like fully functional? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2006 Sep 04
1
Coercing elements of a matrix from integer to double
...ecision, by vectorizing the matrix and then remaking it. Alternatively, I can redefine one element as double which then redefines them all. Both methods are quick, so I guess I shouldn't complain, but I would have thought there'd be something more obvious. Have I missed it? Here's my redimensioning example: ## Matrix M... M <- 1:2e6 ; dim(Mi) <- c(1e3,2e3) dim(M) class(M) ## ...has integer elements, e.g., class(M[1,1]) ## The as.double() command changes ## these to double-precision, but it ## also strips away dimensions... Md <- as.double(Mi) dim(Md) class(Md) ## ...so I have...
2008 Jan 31
2
permutates and/or samples a matrix
Hi, sample(x) only permutates and/or samples from a vector, which I can't use for a matrix. Please help. Thanks Stanley [[alternative HTML version deleted]]
2013 Jan 04
2
Working with Matrix
Hello again, Let say I have 2 matrices which equal number of columns but different number of rows like: Mat1 <- matrix(1:20, 4, 5) Mat2 <- matrix(1:25, 5, 5) Now for each column 1-to-5 I need to fetch the corresponding columns of these 2 matrices and add the corresponding elements (ignoring NA values if any). Therefore for the 1st column I need to do: (1+1), (2+2),...,(4+4), (NA+5) and
2011 Dec 27
2
How to create a matrix with 3 dimensions from several 2 dimensional matrice?
Hi every one, How is it possible to create a matrix with 3 dimensions from several 2 dimensional matrice? Is it possible that each of "elementary/building block" matrices could be called by its corresponding original name? Thanks alot. -- View this message in context:
2012 Aug 16
3
r data structures
hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for lists or dataframes. can i consider lists and frames to be of fixed dimension 2? thanks, jay s
2002 Oct 13
2
HOW to resize existing graphics window??
Sorry for newbie question, but i havent find the way to resize existing graphics window from r console. Of course, i can do it by dragging window borders and i can set up size of the device (window) if i call windows(width,height) but is it really impossible to resize existing window?? how i can do this? i am using R 1.6.0 on Microsoft Windows 2000 OS Thanks for your help