similar to: Re adout row and column of a matrix value

Displaying 20 results from an estimated 2000 matches similar to: "Re adout row and column of a matrix value"

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:
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 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:
2008 Sep 21
1
Searching a relativ maximum of a matrix
Hello R users, is there a possibility to get the relativ maximum of a matrix? To get the absolut maximum I use max(matrix) For example: The absolut maximum of this matrix is 6[3,6], but the relativ maximum is 6[3,6] and 4[7,6], because both values are the highest value in comparison to their eight neighbours values. [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1 1 2 2 2
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
2006 May 11
2
Rendering
I want to do something like this: <%= link_to "Attack!", :action => "attack", :id => session[:user].id, :op_id => users.id, :update => "attk-div",:postion => "top" %> But, What should I user link_to will redirect on click so what action do I do? -- Posted via http://www.ruby-forum.com/.
2014 Sep 02
1
Verbose readout
Hello, This is my first post to this mailing list. I have disks set up: disk 1: windows 8.1 pro (entire disk) disk 2: openSUSE 13.1 - 1 partition, storage on partition 2 disk 3: Fedora 20 - 1 partition, storage on partition 2 disk 4: CentOS 7 (entire disk) My grub2 screen is located on disk 2 and has openSUSE logo and screen. All operating systems start from this grub screen just fine. When I
2009 Oct 19
1
Reposting various problems with two-way anova, lme, etc.
Hi, I posted the message below last week, but no answers, so I'm giving it another attempt in case somebody who would be able to help might have missed it and it has now dropped off the end of the list of mails. I am fairly new to R and still trying to figure out how it all works, and I have run into a few issues. I apologize in advance if my questions are a bit basic, I'm also no
2014 Jun 09
6
[Bug 79820] New: Strange readout on fan1_input when pwm1_min < 33
https://bugs.freedesktop.org/show_bug.cgi?id=79820 Priority: medium Bug ID: 79820 Assignee: nouveau at lists.freedesktop.org Summary: Strange readout on fan1_input when pwm1_min < 33 QA Contact: xorg-team at lists.x.org Severity: normal Classification: Unclassified OS: Linux (All) Reporter:
2006 Aug 11
1
Group By
Hi, I have a table similar structure below. id name position page 1 name1 1 1 2 name2 2 1 3 name3 3 1 4 name4 1 1 5 name5 1 1 6 name6 1 2 What i want is to select all the items for a given page number grouped by pos and displayed in a view using a loop like: display position number, number of records for
2010 Dec 17
1
Change legend position in s.value {ade4}
How do I change the postion of the legend in s.value {ade4} from the defaul , bootom left? thanks Nevil Amos
2007 Sep 28
1
drag and drop reset
I have a draggable, and I place it on a droppable. How do I make the draggable go back to its original postion? Thanks. -Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
2007 Jul 17
3
drive to standby after idle timeout?
I'd like to to put the hard drives in standby mode during periods of no activity. I'm just running a file server plus a couple small things on a Qube 3 from home, although the web stuff will increase it's still minimal. On my NetBSD systems I can use atactl to do this via: mount -u -o async,noatime,nodevmtime / mount -u -o async,noatime /usr atactl wd0 setidle 5 [wait a time]
2009 Oct 22
1
Public Folders
Hi All I'm trying to implement public folders. My dovecot -n readout is at the bottom. I created a maildir called resumes in /home/public Its contents are: mail# ls -la /home/public/resumes total 6 drwx------ 3 vmail vmail 512 Oct 22 08:58 . drwx------ 4 vmail vmail 512 Oct 22 08:47 .. drwx------ 5 vmail vmail 512 Oct 22 08:58 Maildir -rw------- 1 vmail vmail 0 Oct 21 18:30
2012 Jan 19
1
Legend problem in line charts
Hi all, Small problem in generating the line charts. Question: Legend for the first graph is coming wrong., for second graph correctly. Please fix the legend postion at the down of graph. Plesae give me the solution. Thank you Devarayalu Orange1 <- structure(list(REFID = c(7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9), ARM = c(1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2,