similar to: question for loop on matrix row level.

Displaying 20 results from an estimated 10000 matches similar to: "question for loop on matrix row level."

2004 May 08
3
Indexing column of a matrix with infix $
I'm using 1.9.0 on Windoze 2k and I created a numeric matrix and used colnames() to give it some column names, but if I try to select a column using matrixname$validname I get a null return but if I use matrixname[,4] it works fine. Looking at the help I think this is because a matrix is not a recursive structure and I think it's saying I shouldn't be surprised nor attempt this.
2010 Jun 02
3
writing a matrix in a file
Hi, I want to write a matrix (n*m) in a file (Text file) such that the file will be as Result file (below). I use the below command but it write all numbers in one column, > write(paste(matrixname),file="test.txt",append=TRUE) how can I do this? Result file: 5 5 -1 -1 -1 -1 8 8 2 7 6 5 6 6 8 2 7 5 Matrix: [,1] [,2] [,3] [,4] [,5]
2002 Oct 28
3
create an object list in a loop
Hi! Probably I perform this question because I did'nt still understand the R-philosophy. I have to build many matrix, with different dimensions, and I would to assign them a same 'prefix' name, i.e. "aval", but, obviuosly different suffix, something like: for (i in 1:n) { aval%i% <- matrix(scan(data....),nrow=nr[i],ncol=nc[i] ... } where "%i%"
2010 Oct 04
2
print-show-display a matrix
Hello. I want to print the value a matrix has. The matrix's size is not too big (100*100 cells). I tried print(matrixname) but as it does not fit very well on my screen R splits it into several small matrixes that do overflow my screen. IS it possible somehow to display this matrix as one (even if this needs to go fullscreen) . There might be some function for that like plot cells or
2007 Sep 11
1
storing text and decimal values in a matrix form
Hi, I would like to store some text and decimal values in the following form: name dec.val dec.val ... dec.val name dec.val dec.val ... dec.val ... name dec. val dec.val ... dec.val To do so, I created a matrix of the necessary size (x row per y cols) with the command matrixname <- matrix(0,x,y) and proceeded to fill in the matrix with information drawn from a data frame. The
2003 Aug 20
2
question about simulation.
I am running a 1000 simulations, it works for 2 simulations. However, I get the following error message whenever I run it more than 3 times: "The instruction at '0*11044080' referenced memory at "o*3ff00000". The memory could not be "written". and, I can also get something like "exception: access violation (0*c0000005). Address:0*11044080". Anybody
2008 Aug 20
1
read.csv : double quoted numbers
Hello; I am new user of R; so pardon me. I am reading a .txt file that has around 50+ numeric columns with '\t' as separator. I am using read.csv function along with colClasses but that fails to recognize double quoted numeric values. (My numeric values are something like "1,001.23"; "1,008,000.456".) Basically read.csv fails with - "scan() expected 'a
2020 May 19
2
LV: predication
Invitation accepted, I am happy to help out with reviews, like I did with the previous VP patches. And of course agreed that things should be well defined, and that we shouldn't paint ourselves in a corner, but I don't think that this is the case. And it's not that I am in a rush, but I don't think this change needs to be predicated on a big change landing first like the LV
2020 May 19
3
LV: predication
Hi Simon, Thanks for reposting the example, and looking at it more carefully, I think it is very similar to my first proposal. This was met with some resistance here because it dumps loop information in the vector preheader. Doing it this early, we want to emit this in the vectoriser, puts a restriction on (future) optimisations that transform vector loops to honour/update/support this intrinsic
2008 Sep 02
1
R Newbie: quantmod and zoo: Warning in rbind.zoo(...) : column names differ
Hello; I am trying following but getting a warning message : Warning in rbind.zoo(...) : column names differ, no matter whatever I do. Also I do not want to specify column names manually, since I am just writing a wrapper function around getSymbols to get chunks of data from various sources - oanda, dividends etc. I tried giving col.names = T/F, header = T/F and skip = 1 but no help. I think
2018 Mar 08
3
add single points to a level plot
Hi all, I'm trying to add single points with known coordinates to a level plot, but could not find the proper answer. I got to know that layer() function is good for this, but I don't know which package is related to this function. The source is here: https://stackoverflow.com/questions/28597149/add-xy-points-to-raster-map-generated-by-levelplot but my question is a little different as I
2020 May 18
2
LV: predication
Hi, I abandoned that approach and followed Eli's suggestion, see somewhere earlier in this thread, and emit an intrinsic that represents/calculates the active mask. I've just uploaded a new revision for D79100 that implements this. Cheers. ________________________________ From: Simon Moll <Simon.Moll at EMEA.NEC.COM> Sent: 18 May 2020 13:32 To: Sjoerd Meijer <Sjoerd.Meijer at
2018 Mar 08
0
add single points to a level plot
Hi all, I ran the code: > s <- stack(replicate(2, raster(matrix(runif(100), 10)))) > xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)), + z1=runif(10), z2=runif(10)) > levelplot(s, margin=FALSE, at=seq(0, 1, 0.05)) + + layer(sp.points(xy, pch=ifelse(pts$z1 < 0.5, 2, 3), cex=2, col=1), columns=1) + + layer(sp.points(xy, pch=ifelse(pts$z2 < 0.5, 2,
2020 May 18
2
LV: predication
> You have similar problems with https://reviews.llvm.org/D79100 The new revision D79100<https://reviews.llvm.org/D79100> solves your comment 1), and I don't think your comments2) and 3) apply as there are no vendor specific intrinsics involved at all here. Just to quickly discuss the optimisation pipeline, D79100<https://reviews.llvm.org/D79100> is a small extension for the
2012 Nov 06
1
series temporales
hola! quisiera saber si existe algún paquete en R para detectar cambios en la media de una serie temporal, o en su defecto cambios en la pendiente de una serie temporal. Visualmente puedo detectar ciertos años de "cambio", pero me gustaría tener un aval estadístico. Gracias! [[alternative HTML version deleted]]
2012 Jan 17
1
arules "killed"
Hi, I recently got a bizarre message when running arules. It just said "Killed" and quit. Anyone know why this might have happened? I am running R on an AWS quad xl ubuntu instance. Here is some information, including dataset size and the parameters: parameter specification: confidence minval smax arem aval originalSupport support minlen maxlen 0.0003581251 0.1 1 none
2018 Mar 08
1
add single points to a level plot
You need to load the package 'rasterVis' > library(rasterVis) HTH, Eric On Thu, Mar 8, 2018 at 5:11 PM, lily li <chocold12 at gmail.com> wrote: > Hi all, > > I ran the code: > > s <- stack(replicate(2, raster(matrix(runif(100), 10)))) > > xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)), > + z1=runif(10), z2=runif(10))
2011 Mar 09
2
No response after click the "show Rules" button on Tab "Associate".
Hi, I am using Rattle 2.6.4 with R 2.12.2 on win64, is this a bug ? Following is the content after execute the associate analysis process: Summary of the Apriori Association Rules: Number of Rules: 23351 Summary of the Measures of Interestingness: support confidence lift Min. :0.1250 Min. :1 Min. :2.667 1st Qu.:0.1250 1st Qu.:1 1st Qu.:2.667 Median :0.1250
2009 Mar 28
4
Wineasio in Mono = No Stereo
Hello all, I can't get stereo with wineasio, even the new verison of wineasio which I have compiled > 1.7.4. when I open an app with wine, I do see the connections in Qjack connections, but It is not in stereo Ardour can verify this, and both left and right connection are connected from wine to jack, I have googled for this answer to no aval and I have asked numerious times on IRC in
2017 Nov 18
2
Is llvm capable of doing loop interchange optimization?
Hello, I've been playing around with the really simple example of not cache friendly loop like this: #define N 100 void foo(int** __restrict__ a, int** __restrict__ b) { for (int i = 0; i < N; ++i) for (int j = 0; j < N; ++j) a[j][i] += b[j][i]; } link to compiler explorer: