similar to: Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”

Displaying 20 results from an estimated 700 matches similar to: "Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”"

2011 Nov 06
1
Combining some duplicated rows & summing one of their column
Dear list, I have this dataframe: > names(events) [1] "EID" "X" "Y" "trip" "tow" "catch" "effort" "depth" [9] "season" Where some of my unique ID "EID" appears more than once in 162 cases. > length(events$EID)-length(unique(events$EID)) [1] 162 I would like to combined
2012 Mar 09
2
Create a list object in a loop
Dear all, I'm trying to create a list of point patterns ppp.object {spatstat} in a loop. My dataset looks like this: > names(OT1);head(OT1);dim(OT1) [1] "EID" "latitude" "longitude" "month" "year" "CPUE" "TSUM" [8] "fTSUM" EID latitude longitude
2011 Nov 01
2
Removal/selecting specific rows in a dataframe conditional on 2 columns
Dear list, After reading different mails, blogs, and tried a few different codes without any success, I am asking your help! I have the following data frame where each row represent a survey unit with the following variables: > names(RV09) [1] "record.t" "trip" "set" "month" "stratum" "NAFO" [7]
2011 Dec 04
1
Polishing my geom_bar for publication
Dear list, I am new with ggplot2 and I have spend quiet some time putting together the following code to create the attached plot. However there's still a few things that I'm having trouble with! I would be grateful if someone can tell me how to fix (1) the colour of my bars into grey scales (2) removing the y-axis (species name) on the right figure to avoid duplication, and (3) fix the
2012 Mar 14
3
Export a plot/figure to excel or word?
Hi all, I have created forest plots using the package "meta" that I submitted as pdf for publication. I just received an email from the editor asking me if I could send these files in an Excel or MS Word format such that they can treat them as tables with box plots. I am not sure if I can do this... Is this possible? I've tried the capture.output command, but I get a blank MS Word
2011 Apr 14
1
Tony Hawk's Pro Skater 2 - keyboard input seems to hang?
Hello, I installed wine from the Ubuntu Lucid repositories (wine-1.2.2) and successfully installed THPS2. But after I launch the game, I cannot navigate leftwards in the menu. In other menus the selected item scrolls down (like when a button on a console controller is stuck). With some trouble I can get into a skate session, which runs perfectly, but my skate character keeps on turning left
2009 Jan 27
2
working with tables -- was Re: Mode (statistics) in R?
Ok, so I'm slowly figuring out what a factor is, and was able to follow the related thread about finding a mode by using constructs like my_mode = as.numeric(names(table(x))[which.max(table(x))]) Now, suppose I want to keep looking for other modes? For example, Rgames> sample(seq(1,10),50,replace=TRUE)->bag Rgames> bag [1] 2 8 8 10 7 3 2 9 8 3 8 9 6 6 10 10 7 1
2006 Jan 10
1
Eid Mubarak
Dear All, For those who celebrate Eid. I would like to wish you a very Happy Eid Mubarak. For those who do not know what it is, Its a Prayer in memory of Ishmael son of Abraham, when he attempted to sacrifice his beloved son on request by god. Muslim's celebrate it with a sacrifice of a goat every year. I belive Christians & Jew's belive in the same. Peace and Harmony to all.
2011 Dec 01
1
strange row numbering after rbind-ing a list
"Not that it really matters, but" Can someone explain how the row numbers get assigned in the following sequence? It looks like something funky happens when rbind() coerces 'bar' into a dataframe. In either sequence of rbind below, once you get past the first two rows, the row numbers count normally. Rgames> (foo<-data.frame(x=5,y=4,r=3)) x y r 1 5 4 3 Rgames>
2012 Mar 26
1
Error in par(pin = p) : invalid value
Dear list, I am getting an error message with "pin" and I am not quiet sure how to fix it. library(maps) op<-par(mar=c(1,1,1,1)) map(xlim=c(-40,-45),ylim=c(60,65), boundary=T, fill=T, col='gray95') >Error in par(pin = p) : invalid value specified for graphical parameter "pin" par("pin") > par("pin") [1] 8.188889 8.188889 I saved an
2006 Feb 23
4
form_remote_tag params not passed .. PLEASE help!
This problem is driving me nuts Here is my code for the view: <div class="signW"> <div class="sign"> coming soon! <br/> <div class="stxt"> Email address: </div> <div id="result"> </div> <%= form_remote_tag(:update => ''result'', :url => { :controller =>
2003 Sep 10
2
coef names in lm
Dear all, I am interested in finding out how to change the names of coefficients in the lm function. I have a design matrix which I called "design" where each variate has its own name. However when I issue the command: lm.1<-lm(response~design-1, weights=some.weights) and follow it with: summary(lm.1) it seems to paste as a character the names of the variates with design i.e I
2004 Sep 23
2
gsub
Hi A while back I used gsub to do the following temp<-"000US00231" gsub("something here", "", temp) "00231" I think it involved the `meta characters' somehow. I do not know how to do this anymore. I know strsplit will also work but I remember gsub was much faster. In essence the question is how to delete all characters before a particular
2011 Sep 13
1
stupid lm() question
I feel bad even asking, but: Rgames> data(OrchardSprays) Rgames> model<-lm(decrease~.,data=OrchardSprays) Rgames> model Call: lm(formula = decrease ~ ., data = OrchardSprays) Coefficients: (Intercept) rowpos colpos treatmentB treatmentC 22.705 -2.784 -1.234 3.000 20.625 treatmentD treatmentE treatmentF treatmentG treatmentH
2015 Jan 15
4
[LLVMdev] Registration for Euro LLVM 2015 now open
We are happy to announce that Euro LLVM 2015 is now open for registration. https://www.eventbrite.com/edit?eid=15350278095 Details at: http://llvm.org/devmtg/2015-04/ We would reccomend registering early as places are limited. Andy Thomason, Goldsmiths. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
2008 Oct 13
1
Blowing up portions of a graph
Hi, I have a really large graph and would like to zoom in on portions of the graph and post them as blocks below the graph.Is there an add on package to do this? -- Rajesh.J ------------------------------------------------------------ "I skate to where the puck is going to be, not where it has been." - Wayne Gretzky -------------------------------------------------------------
2011 Nov 18
3
tip: large plots
Hi all, I'm working with a bunch of large graphs, and stumbled across something useful. Probably many of you know this, but I didn't and so others might benefit. Using pch="." speeds up plotting considerably over using symbols. > x <- runif(1000000) > y <- runif(1000000) > system.time(plot(x, y, pch=".")) user system elapsed 1.042 0.030 1.077
2006 May 24
1
DUNDi in 1.2.7.1
Hi few weeks ago I read about redundancy (HA) of asterisk boxes using DNS, DUNDi, so I decided to give it a try. OS FreeBSD 6.1-RELEASE, asterisk 1.2.7.1 on one peer I get: lk110*CLI> dundi show peers EID Host Model AvgTime Status 00:11:43:3d:69:e6 195.28.109.37 (S) Symmetric Unavail OK (1 ms) 1 dundi peers [1 online, 0 offline, 0
2012 Apr 06
3
filling the matrix row by row in the order from lower to larger elements
Hello, everybody! I have a matrix "input" (see example below) - with all unique entries that are actually unique ranks (i.e., start with 1, no ties). I want to assign a value of 100 to the first row of the column that contains the minimum (i.e., value of 1). Then, I want to assign a value of 100 to the second row of the column that contains the value of 2, etc. The results I am looking
2015 Dec 14
3
libreoffice 4.4 or 5 in CentOS 6
Op 14-dec.-2015 22:02 schreef Frank Cox <theatre at melvilletheatre.com>: > > On Mon, 14 Dec 2015 21:43:54 +0100 > Patrick Bervoets wrote: > > > I need the ability to make signed PDFs in LibreOffice, so I tried LO 5 and LO > > 4.4 rpms from LO.org but they are useless (menu and toolbar are black). > > Anyone been able to use a higher version of LO? >