search for: redimensioning

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

Did you mean: dimensioning
2006 Nov 21
2
keeping dim() for array
Hi All, I noticed the 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?
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
I would like to be able to double click on an R source file and by that start R and have the file sourced in R. I am using WinXP Pro. So I created an association for file type R and tye following Run action: "C:\Program Files\R\rw1090beta\bin\Rgui.exe" R_PROFILE=%1 I have an R file with the following lines at the beginning. library(vcd) votes<-array(0,10*7*9*2)
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 to...
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