Displaying 20 results from an estimated 10000 matches similar to: "Subseting data frame based on column names"
2004 Aug 06
1
questions related to ploting in R
Dear all.
I need to draw a scatter plot of 23 chromosome copy numbers (y axes) against
chromosome and physical location within each chromosome in one plot. The
data matrix looks as below:
chr location copy_num
1 118345 1.320118
1 3776202 1.133879
1 4798845 0.989997
1 5350951 1.100967
. more data here
.
.
2 118345 2.459119
2 157739 1.915919
2 1530065 1.924372
2
2004 Aug 16
2
Does anybody runs R on the hp ML 370 or ML570 servers?
Dear all.
I am trying to buy a hp server to run R and to complete some other tasks
with limited bugets. The r-project.org site recommended that R will run on
hppa-hp-hpux. However this system is out of our buget and ML system from hp
is much cheaper. Is there anybody running R on ML370 or ML 570 systems? If
you can provide me with some other information related that will be
appreciated.
2006 Mar 22
1
a question related to clustering
Hello all,
I have a fundamental question to ask related to clustering. As you
know, when we do statistic analysis, such as t-test, or anova, we like
to log transform our data to make it normally distributed. My question
is shall we use signal intensity of affy chips to cluster or use log
transformed data. The Dendrogram profiles are certainly different when
comparing two type of the data.
2010 May 28
3
how to create automatically names for vectors in a loop?
Hi,
I want to generate a number of vectors and store them with different names, like this:
x=1
while (x<100)
{
vector#x# = rnorm(100)
x=x+1
}
where each vector has, at its hand, instead of #x# a number which goes from 1 to 99.
How can I do this?
Thanks
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest
2008 Jul 10
5
rounding
Hi,
Round(0.55,1)=0.5
Round(2.55,1)=2.6
Can this be right?
Thanks,
Ed
[[alternative HTML version deleted]]
2010 Feb 12
5
logical operations with lists
Sorry, maybe it's easy but I haven't found anything useful:
how can I obtain a list C that contains all the members in the list B that are not in list A? This are lists of nanes, not numbers!
Thank you
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest Researcher, LMP, NCI, NIH, Bethesda MD
Work: 301-451-8575
2010 Apr 22
6
simple question
Hi
how can I find, in a vector of characters, which is the most frequent one?
Thanks
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest Researcher, LMP, NCI, NIH, Bethesda MD
Work: 301-451-8575
Mobile: 301-204-5642
Email: zoppolig at mail.nih.gov
2010 Sep 03
6
how can I plot bar plots with all the bars (negative and positive) in the same direction????
Dear r-help mailing list,
this seems stupid, but I actually don't find the solution:
if I have a vector of numbers x of length n, ranging, say, from -3 to 4, if I do
barplot (x)
all the values below 0 go downwards, and all the positive values go upward. How can I make them all begin from the minimum pointing upwards?
Thanks!
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical
2010 Jan 31
1
permutation analysis with randomly chosen subsets of a matrix
Hello,
here is the problem:
I want to demonstrate that, on average, the Pearson's correlations of a specified subset of genes from a huge list (>18,000 columns) are higher than any randomly chosen subset of that list. I would therefore like to do a number of tests between that specified subset and randomly chosen ones from the "mother" list.
How could I do that? What would be
2010 Feb 13
3
how to do calculations in data matrices?
Please give me just a reference where I can find something useful.
In summary, I need to :
- find the median of each row of a matrix
- create a new matrix with each value in the first matrix divided by the median of its row
- if a value "a" in the second matrix is < 1, I need to substitute it with 1/a
I know that for some of you it must be overeasy, but I swear I googled for two
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Because functions get called and therefore, the calling sequence matters. It?s just protecting you from yourself, but as someone pointed out, there?s a way to silence such notes.
G
From: Herv? Pag?s <hpages.on.github at gmail.com>
Sent: Tuesday, February 6, 2024 2:40 PM
To: Izmirlian, Grant (NIH/NCI) [E] <izmirlig at mail.nih.gov>; Duncan Murdoch <murdoch.duncan at gmail.com>;
2010 Jan 29
2
question about transpose
Hi all,
if I transpose a matrix with t(data), the newly created colums do not appear to have the first row as header. How can I do to have all the newly created columns have their first row as a header?
Thanks
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest Researcher, LMP, NCI, NIH, Bethesda MD
Work: 301-451-8575
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Here's a dummy example that I think illustrates the problem:
toto <- function() {
if (runif(1) < 0.5)
function(a) a
else
function(a,b) a+b
}
> fcn <- toto()
> fcn(1,2)
[1] 3
> fcn <- toto()
> fcn(1,2)
[1] 3
> fcn <- toto()
> fcn(1,2)
Error in fcn(1, 2) : unused argument (2)
How can you use the returned function, if you get different arguments?
2024 Feb 06
2
NOTE: multiple local function definitions for ?fun? with different formal arguments
Thanks. Workarounds are interesting but... what's the point of the NOTE
in the first place?
H.
On 2/4/24 09:07, Duncan Murdoch wrote:
> On 04/02/2024 10:55 a.m., Izmirlian, Grant (NIH/NCI) [E] via R-devel
> wrote:
>> Well you can see that yeast is exactly weekday you have.? The way out
>> is to just not name the result
>
> I think something happened to your
2012 Apr 30
3
Usage line in .pdf version of manual is truncated
I am creating a package, and a rather long usage line for one function becomes truncated in the generated .pdf manual. Is there a way that I can prevent that truncation?
2004 Mar 08
2
memory problem
I am trying to upload into R 143 Affymetrix chips onto using R on the NIH
Nimbus server. I can load 10 chips without a problem, however, when I try
to load 143 I receive a error message: cannot create a vector of 523263 KB.
I have expanded the memory of R as follows: R --min-vsize=10M
--max-vsize=2500M --min-nsize=10M -max-nsize=50M (as specified in help in
R). After running this command the
2003 Feb 11
3
Tcl/Tk support is not available on this system.
I am trying to get R to run on a Red Hat 8 system, I am running R version
1.6.2 with Tcl/Tk version 8.3.5 installed. When I try to test R from the
data_sets directory I get the error message;
Error in firstlib(which.lib.loc, package) :
Tcl/Tk support is not available on this system
Error in fileBrowser(textToShow = "Choose one CDF file" , nSelect = 1, :
tcl/tk library not available
2010 May 23
3
"order" issue
Hi everybody, this is a real dummy thing.
I sorted a matrix based on a given column, and what I get is right, until it comes to columns of negative and positive values; than, "order" orders everything from max to min in the negative values, and then AGAIN from max to min in the positive values!!!
Why isn't everything order from max to min, and that's it?
Thank you!!!
Attached
2010 Jan 31
2
help on Venn's diagram
Hello!
I have this problem: I want to create a Venn's diagram with three lists of genes'names. The first is all the genome, the second a subset of it comprising all mitochondrial genes, and the third including all genes that correlate with a given gene.
This is what I do:
> library(gplots)
> A<-read.delim("F:/.../mito genes just names.txt")
>
2005 Aug 17
3
do glm with two data sets
I have two data sets:
File1.txt:
Name id1 id2 id3 ...
N1 0 1 0 ...
N2 0 1 1 ...
N3 1 1 -1 ...
...
File2.txt:
Group id1 id2 id3 ...
G1 1.22 1.34 2.44 ...
G2 2.33 2.56 2.56 ...
G3 1.56 1.99 1.46 ...
...
I like to do:
x1<-c(0,1,0,...)
y1<-c(1.22,1.34, 2.44, ...)