Displaying 20 results from an estimated 20000 matches similar to: "using objects from different workspaces"
2003 Oct 21
5
do.call() and aperm()
Hi everyone
I've been playing with do.call() but I'm having problems understanding it.
I have a list of "n" elements, each one of which is "d" dimensional
[actually an n-by-n-by ... by-n array]. Neither n nor d is known in
advance. I want to bind the elements together in a higher-dimensional
array.
Toy example follows with d=n=3.
f <-
2011 Jun 13
1
Composing two n-dimensional arrays into one n+1-dimensional array
If I have 2 n-dimensional arrays, how do I compose them into a n+1-dimension
array?
Is there a standard R function that's something like the following, but that
gives clean errors, handles all the edge cases, etc.
abind <- function(a,b) structure( c(a,b), dim = c(dim(a), 2) )
m1 <- array(1:6,c(2,3))
m2 <- m1 + 10
abind(m1,m2)
==>
, , 1
[,1] [,2] [,3]
[1,] 1 3 5
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:
2004 Aug 20
3
Loss of rownames and colnames
Hi,
I am working on some microarray data, and have some problems with
writing iterations.
In essence, the problem is that objects with three dimensions don't
have rownames and colnames. These colnames and rownames would
otherwise still be there in 2 dimensional objects.
I need to generate multiple iterations of a 2 means-clustering
algorithm, and these objects thus probably need 3
2010 Mar 02
2
Binding a matrix to a matrix
Hello I have a 2x10x200 matrix and I would like to bind to it another 2x10
matrix in order to end up with an 2x10x2001 matrix, which command should i
use in order to do this? Thank you
Felipe Parra
[[alternative HTML version deleted]]
2011 Jan 20
1
syntax for a list of components from a list
I'm attempting to generalise a function that reads individual list components, in this case they are matrices, and converts them into 3 dimensional array. I can input each matrix individually, but want to do it for about 1,000 of them ...
This works
array2 <- abind(list1[[1]],list1[[2]],list1[[3]],along=3)
This doesn't
array2 <- abind(list1[[1:3]],along=3)
This doesn't either
2009 Oct 18
2
rbind to array members
Hi,
I would like to add rows to arbitrary tables within a 3dimensional array.
I can directly add data to an existing row of a table:
> x <- array(0,c(1,3,2))> x[,,1] <- c(1,2,3)
And I can even add a row to the table and assign to another object.
> y <- rbind(x[,,1], c(4,5,6))
and 'y' is what I want it to be:> y?? ? [,1] [,2] [,3][1,] ? ?1 ? ?2 ? 3[2,] ? ?4 ? ?5 ? 6
but
2006 Apr 05
5
List to Array
Hi,
this is probably the easiest thing to do but I manage
not finding the answer:
I have a list with matrices of exact same format and
headers. Now I would like to transform the list into
an normal array. What is the proper way to do this?
as.array changes the entire format and right now I
only found the method of creating a new array, going
through the entire list and copy the matrix in each
2005 Nov 24
2
Fwd: Matrix rotation
Ok I warned you that I'd been drinking! What I really meant was
something to go from:
[,1] [,2]
[1,] 1 2
[2,] 4 3
to
[,1] [,2]
[1,] 4 1
[2,] 3 2
to
[,1] [,2]
[1,] 3 4
[2,] 2 1
to
[,1] [,2]
[1,] 2 3
[2,] 1 4
Sorry for being a muppet, B
Begin forwarded message:
> From: Benjamin Lloyd-Hughes
2012 Mar 23
2
Help with R package forecast
When I type library() to see what is installed the following list in RED
comes up.
Packages in library '/home/jason/R/i686-pc-linux-gnu-library/2.13':
abind Combine multi-dimensional arrays
aplpack Another Plot PACKage: stem.leaf, bagplot,
faces, spin3R, and some slider functions
biglm bounded memory linear and
2009 Sep 03
5
abind, but on lists?
I'm trying to massage some data from Matlab into R. The matlab file
has a "struct array" which when imported into R using the R.matlab
package, becomes an R list with 3+ dimensions, the first of which
corresponds to the structure fields, with corresponding row names, and
the second and third+ dimensions correspond to the dimensions of the
original struct array (as matlab
2013 Feb 07
1
compare objects in two different workspaces
Hi list,
Is there a easy way to compare objects in two different workspace files (i.e. .RData files) in R?? I can use some generic file compare softwares (e.g. BeyondCompare) to binary comparison, but when it says they're different you can't tell where the difference are from.
Thanks!
Tao
2006 Sep 08
2
Multiple matrix multiplication with two 3-dimensional arrays
Hi,
I need to do several matrix multiplications with
the corresponding matrices forming two
3-dimentional arrays. To illustrate my problem,
let's say I have the following 3-dimensional arrays:
array1 <- array(1:30,dim=c(3,2,5))
array2 <- array(1:20,dim=c(2,2,5))
I know that I can get what I want with the following computation :
result <- array(dim=c(dim(array1)[1],
2009 Dec 21
2
[PATCH 1/2] Unreference state/buffer objects on context/screen destruction
- unreference state objects so that buffer objects are unreferenced and
eventually destroyed
- free channel at screen's destruction
Index: nv50/nv50_screen.c
===================================================================
--- nv50/nv50_screen.c (wersja 32083)
+++ nv50/nv50_screen.c (kopia robocza)
@@ -162,7 +162,22 @@
nv50_screen_destroy(struct pipe_screen *pscreen)
{
struct
2007 Aug 22
6
Synchronzing workspaces
How do people go about synchronizing multiple workspaces on different
workstations? I tend to wind up with projects spread around the various
machines I work on. I find that placing the directories on a server and
reading them remotely tends to slow things down.
thanks,
Eric
--
Eric Turkheimer, PhD
Department of Psychology
University of Virginia
PO Box 400400
Charlottesville, VA 22904-4400
2010 Nov 24
1
adding blocks to arrays
I have a four-dimensional array. I have a three-dimensional array I
want to add to it. My particular problem is conceptually very simple
because the new array is just going to go into the end of the 4D array;
i.e. will be added into the final index. I think I have seen an R
command that can do this in one shot, but for the life of me, I can't
find it again. Am I making this up, or is there
2009 Jun 12
2
Slicing an array
Hi all,
I've been trying to work out how to slice an array of arbitrary
dimension. I found a message showing how to stick two arrays together,
but so far have been unable to transform that into what I need. Assume
that I have a four dimensional array for example:
array4d
, , 1, 1
[,1] [,2]
[1,] 3 6
[2,] 1 1
, , 2, 1
[,1] [,2]
[1,] 4 7
[2,] 8 7
, , 1, 2
2005 Jul 19
3
extracting row means from a list
Hello: I'm reading in a series of text files (100 files that are each 2000
rows by 6 columns). I wish to combine the columns (6) of each file (100) and
get the row mean. I'd like to end up with a data.frame of 2000 rows by 6
columns.
foo <- list()
for(i in 1:10){
# The real data are read in from a series of numbered text files
foo[[i]] <- data.frame(x1 = rnorm(100), x2 =
2017 Jan 04
1
7.3: Gnome workspaces mirrored
An user is using 2 displays and configured Gnome to "Static Workspaces
only on primary display on" using gnome-tweak-tool
Till 7.2 it was working as expected. After upgrading to 7.3 the content
on the primary screen gets mirrored to all workspaces.
When switching to "Static Workspaces only on primary display off"
everything is working as expected on 7.3, too.
Any ideas?
2017 Jun 07
1
Unable to map more than 4 workspaces to keyboard shortcuts on C7.
Hi,
I have a new install of c7 with the gnome desktop. I run it with 12 workspaces.
Normally I create the shortcuts so that ctrl+f1 maps to workspace 1 ctrl+f2
maps to f2, etc. When I goto applications -> settings -> keyboard -> shortcuts
-> navigation, I only have the ability to define "Switch to workspace" 1
through 4. There does not appear to be a way to map keyboard