Displaying 20 results from an estimated 6000 matches similar to: "Looking for a quick way to combine rows in a matrix"
2009 Mar 25
1
Hopefully a simple question
What am I missing here? Both of my column headers in the 'FREQ' table are found in the 'genotype'; however, they aren't being recognized.
> colnames(FREQ)
[1] "X17362526" "X17362627"
> colnames(genotype)
[1] "X17362311" "X17362316" "X17362346" "X17362420" "X17362421" "X17362422"
2009 Apr 21
3
Deleting rows or cols that do not meet cut off
How can I delete both rows and columns that do not meet a particular cut off value.
Example:
> d <- rbind(c(0, 1, 6, 4),
+ c(2, 5, 7, 5),
+ c(3, 6, 1, 6),
+ c(4, 4, 4, 4))
> f <- as.matrix(d)
> f
[,1] [,2] [,3] [,4]
[1,] 0 1 6 4
[2,] 2 5 7 5
[3,] 3 6 1 6
[4,] 4 4 4 4
I would like to delete all
2010 Apr 17
2
Interacting with dendrogram plots, locator() or click()
I would like to explore dendrogam plots interactively. For example, click on a node and return information about all of the children of that node.
Is there a high level wrapper for locator() or click() that will return the nearest dendrogram node on a plot?
If not, is there a way to obtain the [x,y] coordinates of all the nodes on a plot?
Thanks,
David
David J. States, M.D., Ph.D.
Professor
2009 Apr 07
1
Pulling data into a model
I'm creating an ANOVA model. Is there a way to pull in consecutive columns of variables for the test?
Example: aov1<-aov(y~x1+x2+REG[,2:num], data=REG)
I'm not looking for interaction effects, I just want to create a model for the first few columns of variables (exact number and names will vary) and a few other predetermined variables (in the example I named them x1 and x2).
Thanks
2011 Feb 14
1
conditional value assignment
Dear R-Help,
I am trying to compute a new variable, let's call it "target cannon orientation (tco)" based conditionally on old variables, "TargetColor," "CannonOriB," and "CannonOriR." For every case in the data set, if TargetColor is "B" then I want tco to equal the value for that case of CannonOirB, else CannonOriR. I've tried writing
2006 Nov 17
2
Getting R and .Rdata together again
Somehow, I've managed to have my .Rdata files become `disassociated'
from the R program. I am running Windows XP Pro. I have re-installed R
2.4 in an attempt to have it re-associate itself with .Rdata files, but
to no avail. .Rdata files are now associated with a file compression
program or alternatively with Rgui.exe. .Rdata files are represented by
the blue R, but double-clicking on
2007 May 21
4
How to compare linear models with intercept and those without intercept using minimizing adjs R^2 strategy
Dear R-list,
I apologize for my many emails but I think I know how to desctribe my
problem differently and more clearly.
My question is how to compare linear models with intercept and those without
intercept using maximizing adjusted R^2 strategy.
Now I do it like the following:
> library(leaps)
> n=20
> x=matrix(rnorm(n*3),ncol=3)
> b=c(1,2,0)
> intercept=1
>
2006 Oct 20
2
Forest plot
Has anyone developed a function to generate a forest plot, the one used
a lot in meta-analysis?
Joseph F. Lucke, PhD
Biostatistician
Center for Clinical Research and Evidence-based Medicine
Department of Pediatrics
School of Medicine
University of Texas Health Science Center at Houston
Voice: 713-500-5651
Email: Joseph.F.Lucke@uth.tmc.edu
Postal Mail: PO Box 20708, Houston, TX 77225-0708
2012 Nov 28
4
How to disable ipv6
Hi all,
I'm pretty new to CentOS. I am working with a newly set-up server:
[cbearden at host ~]$ lsb_release -a
LSB Version:
:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
I'm trying to solve this problem (X11 forwarding)
2008 Jan 24
3
features boxplot
Hallo,
I just made a boxplot with the following command:
boxplot(vsnrg$M~col(vsnrg$M))
When I now look at the plot. On the x-axis I just find numbers 1-6
because I have 6 datasets plotted. Now I want to add there the
corresponding names which can be found in colnames(qrg). How can I
realize this the online help does not help me.
Thanks Corinna
2011 Apr 07
2
replace an expression with its value, or read macros
I know my subject line seems odd, but I want to replace an expression—such as a variable—with its value. For example, I want to paste() some strings together, assign the result to a variable s, then use the value of s as a variable to hold another value. Something like this:
import_subjects <- function (start, iterations) {
for (i in 1:iterations) { # iterate from start to end
s <-
2011 Nov 30
1
install "multtest" and "preprocessCore" packages in Bioconductor library
Hi Nguyen,
> Subject: [R] install "multtest" and "preprocessCore" packages in
> Bioconductor library
> Date: Wed, 30 Nov 2011 09:57:36 -0800
> From: UyenThao Nguyen <unguyen at tethysbio.com>
> To: r-help <r-help at r-project.org>
> CC: uth.nguyen at ucdavis.edu <uth.nguyen at ucdavis.edu>
>
> Hi All,
>
> I've tried to
2007 May 25
1
normality tests [Broadcast]
The normality of the residuals is important in the inference procedures for the classical linear regression model, and normality is very important in correlation analysis (second moment)...
Washington S. Silva
> Thank you all for your replies.... they have been more useful... well
> in my case I have chosen to do some parametric tests (more precisely
> correlation and linear regressions
2017 Sep 19
3
Inexplicable missing permissions issue
Greetings all.
I've been having great difficulty getting Dovecot working. I'm getting
stuck with using mbox directories outside of /home. Dovecot keeps giving
me this message:
imap(ncrosby): Namespace '': stat(/var/logmail/mbox/ncrosby) failed: Permis
sion denied (euid=1001(ncrosby) egid=1001(ncrosby) missing +w perm: /var/lo
gmail/mbox/ncrosby
2010 Sep 17
1
How to compare, match two columns from diferent dataframe and assign values from one datafram to the other
Dear R experts,
I'm new to R. It seems to be a simple question but I just can't find a way to do it. Please help me.
I have two data sets x and y as shown in the following. I want to compare the first two columns in x and y, find the matched ones and assign the relative value from column 2 of y to generate the third column of x. Any help wil be appreciated. Thanks.
> x
[,1]
2010 Jul 16
2
Deleting a variable number of characters from a string
I have a text processing problem I'm hoping someone can help me solve. This issue it this.
I have a character string in which I need to delete a variable number of characters from the string. The string itself contains the number of characters to be deleted. The number of characters to be deleted is proceeded by either a "+" or a "-".
A toy example:
Suppose I have
2008 Jun 04
2
Creating a "simple" Radar/Spider Plot from Statgraphics
I'm new to R - and trying to create a plot similiar to the spider plot at
http://www.statgraphics.com/eda.htm#radar .
I can't figure out several things... most of which I would think would be
straightforward....
How can I change the lines for each series plotted instead of creating a
filled area?
How can I get the labels for each of the radial axes at the outside of the
plot
2008 Jul 22
2
VM creation failure using passthrough with latest unstable
I have pulled a recent (today''s) clone of staging/xen-unstable.hg and I
get a failure when trying to create a domain with xend/xm. The failure I
get is:
Error: (''<domain GUID>'', ''VM_metrics'')
I have traced the problem down to where the pci = [ ''02:00.0'' ]
parameter (which is the value in my case) from my configuration
2009 Feb 23
8
[PATCH] Included reserved memory regions in dom0 iommu mappings
This adds a boolean boot parameter to xen to allow reserved memory
regions to be added to the iommu mappings for dom0. The parameter
is "iommu_include_reserved" and is off by default. A warning is
also traced when incorrect RMRR to system memory map values are
detected. This is being added to address some incorrect BIOS''s that
do not report correctly the requied reserved memory
2008 Sep 01
1
ordered factor and table
dear friends - I have an ordered factor, ID, in a data.frame, labs, and
make a table,
aa <- with(labs,table(val >150,ID)) - and now the order in the table is
according to the alphabetic order in ID, and not as I want it. I have
tried adding
[order(unique(labs$ID)] but it doesn't help.
I have R 2.7.1 on WinXP.
Best wishes
Troels
--
Troels Ring - -
Department of nephrology - -