similar to: Find duplicates and save their max value

Displaying 20 results from an estimated 300 matches similar to: "Find duplicates and save their max value"

2008 Dec 16
1
renaming factor-labels / add factors etc.
Hi, how can I change a defined factor-variable? Like adding levels, renaming existing levels or merge several levels of a factor to one level? For example; following factor-variable is given: x <- factor(c("xyz1", "abc1", "xyz2", "abc2")) How can I add the level fgh? And how can I merge "xyz1" and "xyz2" to one level? And
2005 Nov 11
1
conditional coloring of image labels
Hi all, I am interested in plotting a heatmap of a set of genes. I would like the text labels of these genes to be colored red rather than black if they meet certain statistical criteria (using an if statement). I'm not sure how to change individual color labels without changing them all. Can anyone provide some insight on how to do this? Thanks in advance, Jake
2014 Jun 16
2
Print files which would be transfered by rsync (when syncing two directories)
Hi together, after I read "very often" without even a tiny bit of a contradiction, I start to have the feeling I have a basic misunderstanding of rsync. Assume one want to get a list of files which would have been transfered by rsync if rsync was requested to sync directories X and Y and one does <code> X=`mktemp` echo "abc" > $X/1 echo "abc1" > $X/2
2002 Oct 18
4
code to turn T into TRUE
Does anyone have code that will methodically process R sourcecode, turning T's into TRUE and F's into FALSE? I got bored doing this by hand, after the first 30-odd functions-- there are hundreds left to do. I don't want to simply deparse everything, because that would destroy my beautiful formatting. The reason it's not trivial, is that comment lines, quotes, and split lines need
2005 Nov 11
0
Fwd: Re: conditional coloring of image labels
---------- Forwarded Message ---------- Subject: Re: [R] conditional coloring of image labels Date: Friday 11 November 2005 1:04 pm From: jim holtman <jholtman at gmail.com> To: Jake Michaelson <jjmichael at cc.usu.edu> Use 'mtext': genes=cbind(ABC1=c(3,4,4,5,6,3), ABC2=c(4,3,4,7,7,8), ABC3=c(8,7,8,6,3,2)) ###plot the image image(1:nrow(genes), 1:ncol(genes), genes, axes =
2010 Jan 31
2
Using apply function on duplicates in a data.frame
Dear R-Helpers, I have a data.frame (df) and the head of data.frame looks like ProbeUID ControlType ProbeName GeneName SystematicName 1665 1577 0 pSysX_50_22_1 pSysX_50 pSysX_50 5422 5147 0 pSysX_49_8_1 pSysX_49 pSysX_49 4042 3843 0 pSysX_51_18_1 pSysX_51 pSysX_51 3646 3466 0 sll1514_0_2 sll1514 sll1514
2007 Nov 01
1
loops & sampling
Hi, I'm new to R (and statistics) and my boss has thrown me in the deep-end with the following task: We want to evaluate the impact that sampling size has on our ability to create a robust model, or evaluate how robust the model is to sample size for the purpose of cross-validation i.e. in our current project we have collected a series of independent data at 250 locations, from which
2018 May 01
1
Re: Create qcow2 v3 volumes via libvirt
On Tue, May 1, 2018 at 10:45 AM, Daniel P. Berrangé <berrange@redhat.com> wrote: > On Tue, Jan 30, 2018 at 01:17:21PM +0100, Gionatan Danti wrote: > > Hi all, > > on a fully patched CentOS 7.4 x86-64, I see the following behavior: > > > > - when creating a new volumes using vol-create-as, the resulting file is > a > > qcow2 version 2 (compat=0.10) file.
2011 Jun 10
2
Sorting Data Frame Without Loop
Hello all! I am currently trying to sort a data frame in a particular way, but I am having some difficulties with this. Specifically I want to sort the below dataset in such a way that there is only one line per ProteinID and if there are multiple GeneID or GeneName entries for a single proteinID, that they be concatenated with a comma separating them. The way I have done it earlier worked fine
2006 Feb 20
2
glob2rx function not working
Dear R users, Inspired by previous list discussion of the glob2rxc function, I am attempting to create a new vector called TOTAL by summing all vectors whose names begin with ABC: TOTAL = sum(list = ls(pattern = glob2rx("ABC*"))) I'm running R 2.2.1 on Windows XP. Can anyone say what I'm missing? Thank you, Mark
2011 Aug 22
2
Extracting columns with specific string in their names
Hi, Let's say that I have a set of column names that begin with the string "Xyz". How do I extract these specific columns? I tried to do the following: dataframe1[,grep("Xyz",colnames(dataframe1))] But it does not work. What is wrong with my expression?
2008 Jul 14
2
[LLVMdev] Data dependence analysis
Hi Chris, Wojciech, Data Dependence Analysis is great. I am sure it would help the loop optimizations effort that Dr. Adve mentioned last month. After we have DDA we can implement software pipelining* (modulo scheduler). Chris, would you accept a software pipelining transformation as a pass or would you want it as part of the different backends ? Nadav Rotem *
2012 Mar 30
1
Help with the lumi R package
Hi all, My name is Amy, I am a masters student in Bioinformatics at North Carolina State University. I am working on a project and I am trying to use the lumi R package for microarray data analysis. I have shown the sample code here and have questions about modifying the sample code for my own data. lumi package in R, example.lumi, the sample data has 8000 features and 4 samples I have
2007 Jul 11
2
Previously saved workspace restored
hi there, i an beginner of R. some one have sent me a file (extension is .Rdata). i have installed R in my computer and i just double clicked the data. then it automatically opened R programme and displayed that [previously saved workspace restored]. the following message was displayed. Type 'demo()' for some demos, 'help()' for on-line help, or'help.start()' for an
2008 Jun 24
9
R help
Dear Sir/Madam, I found your email address and your correspondence with R-users. I hope you could help me with this question about the function "ur.ers" in the package of "urca". It is an improved unit root test (Elliott et al. 1996 Econometrica). Do you know how to extract the value of the test statistic from the output? The only thing I can get is the print-out of all
2005 Aug 02
0
iptables -m layer7 - doesn''t work
I''ve compiled my kernel (2.6.12.3) and iptables (1.3.3) and now -m layer7 option from iptables works (i don''t get any error when run the iptables command with -m layer7). The problem is that no packet is matched. For example iptables -A INPUT -p tcp -m layer7 --l7proto http -j ACCEPT doesn''t match http packets. The same for dns and ssh. So, what am I doing wrong? Is this
2002 Jun 20
3
Line plot with 3 points
Dear R-experts, I have a data file df as the following: genename variable at 1hr variable at 4 hr variable at 10 hr gene1 gene2 . . . gene5000 I would like to have a graph with X-axis as the time point (1hr, 4hr, 10hr), and Y-axis as the value of the variable. So, basically, I want to do a line with the three different values at 1hr , 4hr and 10hr for all the 5000 genes. My purpose is
2007 Jan 08
2
rsync - 2.6.8 ( broken pipe )
Wayne, While testing rsync 2.6.8, I often receive broken pipe error, even though there is no network problem, between Active and Standby nodes. Please clarify. 2007/01/09 02:11:36 [1076] rsync: connection unexpectedly closed (342821 bytes received so far) [receiver] 2007/01/09 02:11:36 [1076] rsync: writefd_unbuffered failed to write 84 bytes [generator]: Broken pipe (32) 2007/01/09
2018 Aug 22
4
Plans for buster
Knorrie and I just discussed our plans for sid and buster, on the phone. Here's my notes of the discussion. Plan is to upload Knorrie's 4.11 packages to experimental, to make them more public, while we fix the bugs in them. There's a list of Salsa issues and the BTS bugs list. This duplication is not ideal. We agreed that new things should go to the BTS. For now we'll keep
2018 Jan 30
4
Create qcow2 v3 volumes via libvirt
Hi all, on a fully patched CentOS 7.4 x86-64, I see the following behavior: - when creating a new volumes using vol-create-as, the resulting file is a qcow2 version 2 (compat=0.10) file. Example: [root@gdanti-lenovo vmimages]# virsh vol-create-as default zzz.qcow2 8589934592 --format=qcow2 --backing-vol /mnt/vmimages/centos6.img Vol zzz.qcow2 created [root@gdanti-lenovo vmimages]# file