similar to: Searching a relativ maximum of a matrix

Displaying 20 results from an estimated 900 matches similar to: "Searching a relativ maximum of a matrix"

2012 Feb 01
6
While loop working with TRUE/FALSE?
Hi R users, is there any possibilty that a while loop is working like that: z <- c(0,1,2,3,4,5,6,7,8,9) r <- 7 while(w == T) { for ( i in 1:10 ){ w <- r == z[i] print(w) } } The loop should stop if w == TRUE best regards -- View this message in context:
2008 Oct 22
3
Substitute problem
hello R users, I didn't find a solution for a special problem. I have two dataframes. dataframe1: X value row col ID 1 8.973498062 5512625 3460000 1 2 11.656658570 5501625 3464000 2 3 11.121777570 5495625 3473000 3 4 9.310465964 5508625 3477000 4 5 8.883483845 5515625 3496000 5 dataframe2: X value
2008 Nov 10
2
Make one vector from matrix comparison
Hello R-users, I have a little problem. I compare each row of a matrix with each row of another matrix. testmat1 <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16), nrow=4) testmat2 <- matrix(c(1,2,3,5,5,6,7,8,9,10,11,12,13,14,15,16), nrow=4) Both matrix differs in the last row. Now I create a loop: for (i in (1:4)){ for (j in (1:4)){ b <- (c(setequal(testmat1[j,],testmat2[i,])))
2011 Nov 15
2
points() colored by value
Hi R users, I want to colored points by their value for example: x <- c(1,2,3,4) y <- c(1,2,3,4) z <- c(2,3,4,9) y and x are coordinates z is the value of the coordinates points(x,y,col= rainbow(z)) something like that But haven't found any solution at the moment. Thanks. Chris -- View this message in context:
2008 Sep 17
1
Re adout row and column of a matrix value
Hello R users, I want to readout the row and column postion from a certain matrix value into a csv file. I have only found this syntax "which(a == b, arr.ind = T)" so I get a = matrix [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1 1 2 2 2 1 1 2 [2,] 1 2 3 3 3 4 4 3 [3,] 3 3 3 5 5 6 5 4 [4,] 4 4 4 3
2008 Nov 25
1
add string to a list
hello R users, I didn't find a solution for a simple problem I think. I read 224 lines from a file input <- readLines(con,n=224) and now I create a string x <- "\004" which should be line 225 of input. So I have input and x and want to add x to input, so that it looks like this: [1] "string" [2] "string" . . . [224] "string" [225]
2011 Feb 03
2
substring and paste character with a for loop
Hello R users, I have a little problem with a for loop. Below there is an simple example of my problem. I want to delet the commas in the character string. Fore this reason I create a for loop to unpick the string and rebuild him without the commas. The problem is, that "paste" does not work in the loop as I expected. text <- "aaa,bbb,ccc,ddd" characterseq <-
2013 Apr 16
2
R process slow down after a amount of time
Hi R users, I have mentioned that R is getting slower if a process with a loop runs for a while. Is that normal? Let's say, I have a code which produce an output file after one loop run. Now after 10, 15 or 20 loop runs the time between the created files is stongly increasing. Is there maybe any data which fill some memory? Chris -- View this message in context:
2011 Sep 16
3
How to save row values from a matrix into one vector?
Dear R users, I guess, I have a quit simple problem, but I'm not getting the solution. I create a matrix like this: test <- matrix(seq(1,3,1),ncol=5,nrow=3) then I want to create one vector, consisting of every row of the matrix. My first idea was to do this with a for loop. op <- vector() for (o in 1:3){ op[o] <- as.vector(test.id[o,]) } The results should be like this: [1]
2008 Jul 23
2
Flip Matrix form file?
Hello, I have a problem to flip a 200x200 matrix, which is imported by a .asc file. I want to flip the matrix like in a created example below: > b <- matrix(1:9,3,3,byrow=T) > b [,1] [,2] [,3] [1,] 1 2 3 [2,] 4 5 6 [3,] 7 8 9 > b1 <- apply(t(b),1,rev) > b1 [,1] [,2] [,3] [1,] 7 8 9 [2,] 4 5 6 [3,] 1 2 3 but my
2004 May 03
2
tincd.exe -K (sorry if present twice)
Hello, can one specify the priv/pub key filepath without the -c switch. I need some more controll over where the keys get stored. tincd.exe, without the -n switch stores it's keys in a static path. Relativ pathes would help. thx, Axel
2009 Dec 31
1
readCitationFile encoding
Hi, does anybody know, how to enforce a certain encoding for readCitationFile()? Haven't found any usable documentation for this :( E.g.: basecit <- system.file("CITATION", package="base") source(basecit, echo=TRUE, encoding="8859-1") readCitationFile(basecit) BTW: 'make check' is a relativ long running task and if one changes a source file, all
2006 Feb 18
0
Move element into view
Hello, I am in fly-by mode as I am still more than busy, so I just dumb this one out for anyone interested. Adapt it for your needs if you like it. This effect is similar to ScrollTo, but scrolls the viewport vertically the minimal amount necessary to bring the element into view. Usage: new Effect.ScrollToFullView(element, {duration: 0.6, offset: 10}); Offset is the distance in pixel to the
2012 Jul 10
1
image.plot transparent?
Hi R users, I have a maybe strange problem. Normaly I do image.plot() with x,y coordinates and add=T and if I have some NA values in my data matrix z, the color will be transparent of these pixels. But now I have a disorted coordinate system and x,y are a matrix. It works also fine, but now NA values are white colored and not transparent anymore. It is problematic if I have a secondary
2011 Apr 06
1
Problem to convert date to number
Hi R users, I have a maybe small problem which I cannot solve by myself. I want to convert "chron" "dates" "times" (04/30/06 11:35:00) to a number with as.POSIXct. The Problem is that I can't choose different timezones. I always get "CEST" and not "UTC" what I need. date = as.POSIXct(y,tz="UTC") "2006-04-30 11:35:00
2008 Sep 09
1
Substitute Values in a Matrix?
Hi, I'm searching for a function to subistute Values in a Matrix to new Values. For example: old value new value 1.1 6 1.2 7 . . . . . . 1.9 14 2.0 15 and 2.1 15.5 2.2 16 . . . . 2.9 19.5 3.0 20 There is a difference
2007 Oct 25
2
Find duplicates and save their max value
Hi, maybe someone can help me with this: I have a matrix of genes and values: GeneName Value Abc1 10 Abc2 11 Bbc1 -5 Bbc31 2 Ccd 5 Ccd -2 Ccd 7 Dda 5 Dda 10 ..... ..... Zzz3 -1 I would like to
2023 Feb 28
2
add user failed check log
Good morning, On Tue, 2023-02-28 at 01:07 +0000, Coolvibes Reloaded wrote: > i'm trying to config the usr authentication > but when i goto add myself into the admin part > i get add user failed check log? > > so i did and i'm getting this > [...] > [2023-02-28 00:46:16] EROR auth_htpasswd/auth_htpasswd.c No filename > given in options for authenticator. >
2019 Jan 21
3
samba group root:"domain users" not found
getent group ROBINOOD\\'Domain Users' ROBINOOD\domain users:x:10513: but if i insert  winbind use default domain = yes in my smb.con and i tent ssh puma(local account) witch relatived password the system waits without getting the command prompt Il 21/01/2019 11:07, Rowland Penny via samba ha scritto: > On Mon, 21 Jan 2019 10:37:32 +0100getent group ROBINOOD\\'Domain Users'
2016 Jan 15
2
sieve - configuration problem
Hello List, first thanks for previous hints, you helped me a lot. Unfortunately i have new problem with sieve and executing multiple scripts sequentially. This is current conf which is complete working : #CONF1 plugin { sieve = ~/sieve/.dovecot.sieve sieve_plugins = sieve_extprograms sieve_extensions = +vnd.dovecot.pipe +vnd.dovecot.filter +vnd.dovecot.execute +editheader