Displaying 10 results from an estimated 10 matches similar to: "Problem with rowMeans()"
2011 Feb 10
2
Calculating rowMeans from different columns in each row?
Hello!
I have a dataset like this:
X1 X2 X3 X4 X5 X6 X7 X8
1 2 2 1 2 3 2 6
2 3 2 5 7 9 1 3
1 9 12 6 1 1 3 6
The columns X1-X6 contains ordinary numeric values.
X7 contains the number of the first column that the rowMeans should be calculated from and
X8 contains the last column
2012 Oct 12
1
Error in rowMeans function
Hello,
I am trying to create parcels for a CFA model. I am trying to average 6 sets of 3 variables each into parcels. I don't understand why I am getting an error message as follows:
Thanks for your help,
Catherine
atds1par <- rowMeans(semHW1dat1[, c("atds1", "atds2", "atds3")], na.rm=TRUE)
atds2par <- rowMeans(semHW1dat1[, c("atds4",
2009 Dec 24
1
Question to use R plot GO pie chart
Hi,
I have a list of IPI gene IDs. I want to find out whether there is a
package which can map the gene ontology to these IPIs, and plot the
pie chart to demonstrate the molecular function distributions.
The input is like the following gene IPI IDs:
IPI:IPI00008860.1|SWISS-PROT:Q9BXJ4-1|TREMBL:Q542Y2|ENSEMBL:ENSP00000231338;EN
2011 Apr 05
1
Inconsistency between rowMeans documentation and reality?
Dear List,
I'm not even sure this is an issue or not, but ?rowMeans has:
Value:
A numeric or complex array of suitable size, or a vector if the
result is one-dimensional. The ?dimnames? (or ?names? for a
vector result) are taken from the original array.
If there are no values in a range to be summed over (after
removing missing values with ?na.rm = TRUE?), that
2009 Oct 22
1
LDAP server, too many open files
I've setup an LDAP server with a slave server on Centos 5.3 X86_64,
replication works, most of the time client logins work fine but I'm
starting to get a error I can't seem to eliminate, it's starting to
cause login failures for users and I think it's causing other
application failures when they try to auth against ldap.
on the client side /var/log/messages shows
Oct
2010 May 12
1
paste two columns of a matrix by rows
Hello,
I'm trying to paste two columns of a matrix
GB_ACC GENE GENE_SYMBOL
NM_010657 NM_010657
NM_027162 NM_027162
NM_198863 NM_198863
NM_010727 NM_010727
These two column are a part of a 41,000 x 26 matrix.
I wanted these two column to be pasted into one (the firstone, GB_ACC). I
tried to do it with a for loop, but it takes ages to finish:
for( i in
2010 Nov 12
1
Virtual Network Interfaces showing all packets as dropped
Hey,
I am having the problem that when looking at my virtual network
interface stats all packets are shown as dropped (The guests all
do have a working internet connection though).
All the guests are running Debian Lenny with Kernel version
2.6.26-2-amd64 and running as HVM.
The host is running Debian Lenny with the stable-2.6.32.x git
kernel.
2009 Jul 30
1
rowSums, rowMean and rowCumSums?
Dear list,
Don't you think it could be useful to have in R base a function
rowCumSums, that compute cumulative sums for each row of a matrix?
My implementation of rowCumSums is
rowCumSums <- function(x) t(mapply(function(row)cumsum(x[row,]),
1:NROW(x)))
I'm sure it can be improved to have other arguments like na.rm or dims.
Is there any hope to have this function in R?
2007 Nov 25
2
rowMean, specify subset of columns within Dataframe?
I would like to calculate the mean of tree leader increment growth over 5
years (I1 through I5) where each tree is a row and each row has 5 columns.
So far I have achieved this using rowMeans when all columns are numeric type
and used in the calculation:
Data1 <- data.frame(cbind(I1 = 3, I2 = c(0,3:1, 2:5,NA), I3
=c(1:4,NA,5:2),I4=2,I5=3))
Data1
Data1$mean_5 <- rowMeans(Data1, na.rm =T)
2006 Feb 26
28
A Follow up to my fedora question: Favorite Flavor Of Linux?
Than my question is this? Now that I have switchtowerized and migrate
enabled my app I can start down a new path if need be on a different
OS as the base of the system. We have already tried CentOS and found
it to have more issues than those mentioned about fedora and through
it away faster than one could shake a stick at. Here are our
requirements for a stage/dev box and production: