Displaying 20 results from an estimated 10000 matches similar to: "Handling of arrays"
2007 Feb 01
2
Index mapping on arrays
Dear R-community,
I have some trouble with index mappings for arrays. If, for example,
I have the array
R> A <- array(1:9, c(3,3,2))
and two index mappings both of same size
R> x <- c(2, 3)
R> y <- c(1, 2)
Now I want to access the elements (A[1, x[i], y[i]])_i of A, i.e.
A[1, x[1], y[1]] = A[1, 2, 1] and A[1, x[2], y[2]] = A[1, 3, 2].
If I use
R> A[1, x, y]
I would get
2007 Apr 24
1
information extraction
Dear R-experts,
I imported successful a workspace from Matlab. The information is stored
in the variable data. If I use the command "length(data)" I get back a
number which corresponds to the number of variables which were imported.
Here it is 82. Now I only want to know the names of the imported
variables to modify my program. Can anyone help me?
My knowledge which I tested yet to
2006 Mar 22
1
calculate difference of consecutive cells in vector
Hi
in dataframe I want to subtract the "next" value in the list from the former
one to get this:
name var1 output
a 9 506
b 515 512
c 1027 453
so I subtract: table$var1[2]-table$var1[1] and write it into table$output[1]
etc..
I did this with:
for (i in 1:(length(table$var1)){
table$output[i] <- table$var1[i+1]-table$var1[i] }
it works
2005 Feb 23
2
[LLVMdev] Python bindings for LLVM API
Hi,
I would like to share my experimental LLVM API Python bindings with the LLVM
enthusiasts. I have created Boost.Python wrappers largely for the VMCore
interface and other selected interfaces (e.g. ExecutionEngine). The
bindings provide direct runtime access to the LLVM bytecode and JIT
execution features from Python.
The bindings are complete enough so that one can e.g. run the Fibonacci
2005 Feb 24
0
[LLVMdev] Python bindings for LLVM API
Jarno,
This looks like it could be very valuable - thanks for making it
available. Just out of curiosity, do you have any specific uses in
mind for which you created these bindings?
--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/
On Feb 23, 2005, at 5:21 PM, Jarno Seppänen wrote:
> Hi,
>
> I would like to share my experimental LLVM API Python bindings with
>
2007 Apr 05
8
package for Matlab
Hallo,
does a package for Matlab exist in R?
If yes, where can I find it and how can I install it under R?
Thanks, Corinna
2006 Sep 02
3
Dividing objects in classes using function sample()
Hello everyone,
I've a problem and dont know how to solve. This is my first posting and it would be fantastic if you could help me.
I want to divide n objects in k classes and need an output with all (n+1)(n+2)/2 possibilities.
For example n=4, k=3:
That would be:
4 0 0
3 1 0
3 0 1
2 2 0
2 1 1
2 0 2
1 3 0
1 2 1
1 1 2
1 0 3
0 3 1
0 2 2
0 1 3
2007 Mar 22
1
Mailing list beserk - next thing
Hi there!
As there seems to be a problem with mailman, I unsubscribed yesterday
evening. But I still get Mail - this morning about 700!!! Is there anything I
can do about this? I don? t want to get flooded anymore. I sure will
resubscribe as soon as the problem is fixed, but as for now, this is not
acceptable!!!
Greets,
Dennis
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
2007 Mar 24
1
frequency tables and sorting by rowSum
Dear list,
I have some trouble generating a frequency table over a number of vectors.
Creating these tables over simple numbers is no problem with table()
> table(c(1,1,1,3,4,5))
1 3 4 5
3 1 1 1
, but how can i for example turn:
0 1 0
0 0 1
0 1 0
1 0 0
0 1 0
1 0 0
into
0 0 1 1
1 0 0 2
0 1 0 3
My second problem is, sorting rows and columns of a matrix by the rowSums/colSums.
I did it
2006 Mar 06
1
./configure doesn't work
I tried to get a new configure skript with autoconf and then run it but it
didn't work:
ludwig@Ludwigsnb:~/wine$ autoconf
ludwig@Ludwigsnb:~/wine$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking for C compiler default output file name... configure:
2006 May 20
0
No subject
#short example version of input file with 2 runs and 5 time steps (instead
of 17 runs and 500 time steps)
run t cover
1 1 0.234306
1 2 0.188896
1 3 0.198193
1 4 0.213959
1 5 0.184952
2 1 0.189316
2 2 0.185631
2 3 0.20211
2 4 0.216064
2 5 0.216064
#calculate the correlation of lag 1 over 17 replicates
a<-0
for (i in 1:17)
{
c<-ts( cover[run==i] )
d<-acf( c, lag=1, plot=F)
a<-a+d$acf[2]
2007 Apr 11
2
list of features and question to technology
Hey there,
I am wondering if there is any list available giving me a list of feature of icecast (maybe also in comparision with shoutcast).
Moreover, I was thinking if and how the following scenario is solved: suppose I'd like to stream 1000 different songs at one time, i.e. 1000 user will listen to different mp3s hosted by my streaming server. Are in this scenario all 1000 songs (at
2006 Jul 10
3
10^x instead 10EX on plot axes. How?
Hi,
I'm drawing a very simple plot with both axes logarithmic (default base 10).
Example:
vec=c(1,10,100,1000,10000,100000,1000000,10000000)
plot(vec,vec,log="xy")
The axes on the plot now show the technical notation like 1E+3 but I would prefer to have it the notation 10 ^3 i.e. with the exponent here 3 superscript (raised).
Any help very much appreciated!
Best Regards
Tom
--
2007 Apr 19
2
element search
Dear R-experts,
I have got an excel file as attached. I imported it successful with the
commands:
library(RODBC)
channel <- odbcConnectExcel("data2.xls")
tables <- sqlTables(channel) # list the names of the spreadsheets
name1 <- tables[1, "TABLE_NAME"] # get the name of the 1st spreadsheet
plan1 <- sqlQuery(channel, sprintf("select * from [%s]",
2007 Feb 16
1
Fwd: Re: user add script, machine add script
Hello to all,
after noone bother my subject. I think I'm all alone making mistakes
on this thing. But I should really know if it is possible to mange
the administration of samba in an comfortable way. After all the years I
worked with it I never did manage it to be in an sufficent manner.
Is there a plan in the future to have a central administration within the samba package?
--------
2012 Jan 24
2
reshape dataframe to array (pivot table)
Hello,
I would like to reshape a dataframe into an array. This is kind a similar task as Excel performs with a Pivot table. To illustrate it:
LOC <- factor(c(1,2,2,3,1,1))
SPEC1 <- c(0,0,23,0,12,11)
SPEC2 <- c(1,2,0,0,0,4)
df <- data.frame(LOC,SPEC1,SPEC2) # original dataframe
a <-
2004 Feb 23
0
Package "ref" implements references and referenceable data.frames for the S-language
Repeatedly people have asked how to pass arguments by reference in R.
Now package "ref" is on CRAN, which provides two referencing methods:
Functions ref(), deref() and friends conveniently allow to pass parameters
"by reference" instead of "by value". This can be useful in memory critical
applications but requires a more careful programming style to track the
2004 Feb 23
0
Package "ref" implements references and referenceable data.frames for the S-language
Repeatedly people have asked how to pass arguments by reference in R.
Now package "ref" is on CRAN, which provides two referencing methods:
Functions ref(), deref() and friends conveniently allow to pass parameters
"by reference" instead of "by value". This can be useful in memory critical
applications but requires a more careful programming style to track the
2004 Feb 09
0
I thank you for the spam i got returned
Hello,
first i want to express very much hate to all of you, and i hope you die
soon. that is because of all the spam i get into my mailbox since i wrote you.
therefore, i like you to apologise, and hang yourself right away, or be
hanged.
greets,
me
--
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
2007 Apr 10
2
Matlab import
Dear R-Experts,
here again a question concerning matlab. With the command "matrixM=[1 2
3;4 5 6]" a matrix under Matlab was constructed. It was than stored with
the command "save('matrixM.txt','matrixM')".
Now I tried to import the data in R with the help of the command
"Z=matrix(scan("Z:/Software/R-Programme/matrixM.txt"))"
An error