Displaying 20 results from an estimated 10000 matches similar to: "splitting columns into groups"
2002 Dec 13
2
A beginner's problems with plotting
Hi,
How would I go about plotting all 8 columns of a data.frame on a simple line
graph. i.e. eight lines and sets of points, differentiated by line pattern or
colour)?
An what further arguments would I need to invoke a log scale on the y-axis of
that same plot (normal x-axis)?
Cheers, Jeremy
2003 Jan 17
2
barplot plotting problem
Hi,
Is there any equivalent of type="n" when constructing barplots which will
still construct the axes (plot=F, as it says doesn' plot anything at all).
Alternatively I tried setting col="white" and border="white" but the border
command does not seem to be operational. True??
Any other ideas? What I'm actually trying to do is construct vertical
abline()'s
2005 Apr 05
1
summing columns using partial labels
I have a dataset of the form
Year tosk.fai tosk.isd tosk.gr ....... tosk.total hysa.fai
hysa.isd ...
and so on. I want to sum all the columns using the first four letters in
the columns label(e.g. 'tosk', 'hysa' etc.). How can you do that? Also,
the sums should be without the '.total'column (e.g. 'tosk.total') as
this serves as a check that
2011 Jun 22
3
Help Needed on Merging Columns by Summation
Dear Sirs/Madam,
I am a beginner to R, and I am currently working on a data matrix which looks like this:
> head(oligo)
ko:K00001 ko:K00003 ko:K00005 ko:K00008 ko:K00009 ko:K00010 ko:K00012
AAA 370 631 365 67 164 455 491
KAA 603 1208 170 157 68
2010 Jan 15
1
How to calculate the row wise means for grouped columns in matrix?
Hi all,
I want to calculate the row wise mean of groups of columns in a matrix M. All columns belonging to the same group have the same column name. My idea is to create a new vector V containing these column names, but after first removing the duplicates. Then I would calculate the means using for instance rowMean() and by comparing the column names of M with the vector V, getting the indices
2006 Dec 03
1
passing an argument to a function which is also to be a dataframe column name
any suggestions on the following gratefully welcome,
I have a dataframe, which I am subsetting via labels
atpi[, creativity]
where (for example)
atpi = as.data.frame(matrix(1:50, ncol = 5, nrow = 10))
names(atpi) = c("Q1", "Q2", "Q3", "Q4", "Q5")
and
creativity = c("Q1", "Q3", "Q4")
I want to add an extra column
2010 Nov 28
4
how to divide each column in a matrix by its colSums?
Hi,
I have a matrix, say
m=matrix(c(
983,679,134,
383,416,84,
2892,2625,570
),nrow=3
)
i can find its row/col sum by
rowSums(m)
colSums(m)
How do I divide each row/column by its rowSum/colSums and still return in
the matrix form?
(i.e. the new rowSums/colSums =1)
Thanks.
Casper
--
View this message in context:
2011 Jan 07
2
Summing over specific columns in a matrix
Hi,
I would like to sum some specific columns in my matrix- for example, my
matrix looks like this:
[,1] [,2] [,3] [,4] [,5]
[1,] 1 NA NA NA NA
[2,] 2 1 NA 1 NA
[3,] 3 2 1 2 1
[4,] 4 3 2 3 2
[5,] NA NA NA 4 3
[6,] NA NA NA 5 NA
I would like to find the sum of the first two columns, the second two
columns and
2006 Mar 06
3
Problem Accessing Samba Server from Windows
Hi,
I'm having a problem accessing my samba server from Windows. The problem
occurs every time I try to browse to it on either XP or 2003 Server. The
error message I get is: "\\Zeus is not accessible. You might not have
permission to use this network resource. Contact the administrator of
this server to find out if you have access permissions. The account is
not authorized to log in
2005 Feb 04
9
callback on busy
Hello everybody,
I would like to implement "callback" function.
When I call a person and his extension is busy I can press, for example, 5
and get a callback when his phone is not busy anymore.
When I create a call file and copy it to spool call folder
asterisk makes a call. One problem is that when extension is still busy
my phone rings and I get busy tone of the person who I am
2011 Mar 25
2
two minor bugs in rowsum()
(a) In R 2.12.2 rowsum can overflow if given an integer input:
> rowsum(c(2e9L, 2e9L), c("a", "a"))
[,1]
a -294967296
> 2^32 + .Last.value
[,1]
a 4e+09
Should it be changed to coerce its x argument to numeric
(double precision) so it always returns a numeric output?
(b) When rowsum is given an x containing both NaN and NA it
appears to use the last
2008 Mar 25
2
help with rowsum/aggregate type functions
Hi--
This is a question with a trivial and obvious answer, I'm sure, but I can't seem to find it in the help files and books that I have handy. I have a dataframe consisting of two columns, "Gene_Name," a list of gene symbols, and "Number," a numeric measure of how frequently a tag representing that gene showed up in a SAGE library. Several of the genes are
Assigning NULL to large variables is much faster than rm() - any reason why I should still use rm()?
2013 May 25
2
Assigning NULL to large variables is much faster than rm() - any reason why I should still use rm()?
Hi,
in my packages/functions/code I tend to remove large temporary
variables as soon as possible, e.g. large intermediate vectors used in
iterations. I sometimes also have the habit of doing this to make it
explicit in the source code when a temporary object is no longer
needed. However, I did notice that this can add a noticeable overhead
when the rest of the iteration step does not take that
2005 Jul 20
2
Force SIP peers to Re-Autheticate
hi all,
is there any way to force all sip peers to re-authenticate themselves?
thanks,
Paradise Dove
2004 Aug 18
3
downloading the R program
I am trying to download the R program, but am having trouble. I have
read through the instructions, but do not seem to be able to do it
properly. Can you tell me the step-by-step instructions?
Joanne L. Butler, Post-doctoral Fellow
Equity and Technology Research Project
c/o Department of Sociology
Acadia University
Wolfville, N.S. B4P 2R6
phone (902) 585-1535
fax (902) 585-1769
2003 Aug 13
2
rowsum() may return a vector instead of a matrix (PR#3737)
If all rows are in the same "group", rowsum() returns a vector instead of a
(1xN) matrix, contrary to documentation:
R> print(z <- rowsum(matrix(1:12, 3,4), rep("x",3)))
[1] 6 15 24 33
R> dim(z)
NULL
It worked correctly in version 1.4.0 but was broken by version 1.6.1. I'm
currently using 1.7.1 under Solaris 2.8.
--please do not edit the information
2013 Aug 17
5
[Bug 10092] New: Hang when remote dest's disk is full
https://bugzilla.samba.org/show_bug.cgi?id=10092
Summary: Hang when remote dest's disk is full
Product: rsync
Version: 3.0.9
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: list0570 at paradise.net.nz
2016 Sep 15
2
row names of 'rowsum()'
'rowsum()' seems to add row names to the resulting matrix, corresponding to
the respective 'group' values. This is very handy, but it is not
documented. Should the documentation mention it so it could be relied upon
as part of API?
Cheers,
Ott
--
Ott Toomet
Visiting Researcher
School of Information
Mary Gates Hall, Suite 310
University of Washington
Seattle, WA 98195
2005 Jun 20
6
tapply
hi,
i have another question on tapply:
i have a dataset z like this:
5540 389100307391 2600
5541 389100307391 2600
5542 389100307391 2600
5543 389100307391 2600
5544 389100307391 2600
5546 381300302513 NA
5547 387000307470 NA
5548 387000307470 NA
5549 387000307470 NA
5550 387000307470 NA
5551 387000307470 NA
5552 387000307470
2001 Mar 07
3
Explorer & MS Office hang
I'm running samba 2.0.7 on Solaris 2.6. We've have terrific success for well over a year with samba until about a week ago I started receiving reports that users could not open MS Office docs saved on a samba share. The samba logs are full of information about oplocks like this:
[2001/03/07 10:14:04, 0] smbd/oplock.c:request_oplock_break(1204)
request_oplock_break: no response