Displaying 20 results from an estimated 600 matches similar to: "matrix calculation"
2009 Jun 23
2
Long to wide format without time variable
Hi all,
I am trying to convert a data set of physician death codings (each individual's cause of death is coded by multiple physicians) from long to wide format, but the "reshape" function doesn't seem to work because it requires a "time" variable to identify the sequence among the repeated observations within individuals. My data set has no order, and different
2011 Mar 11
3
Large dataset operations
Hello all,
I'm new to R and trying to figure out how to perform calculations on a large dataset (300 000 datapoints). I have already made some code to do this but it is awfully slow. What I want to do is add a new column for each "rep_ " column where I have taken each value and divide it by the mean of all values where "PlateNo" is the same. My data is in the following
2009 May 22
2
Step by step: Making an R package with Fortran 95
To all. I need your help. The big question is: How do I make an R library
with Fortran 95 files? You may assume that I am a pretty decent programmer
in both R and Fortran. I lay out a scenario and need your help!
I know how to make an ordinary R package and have dabbled with R + Fortran
95 *.dll linking. I do not have a great handle on the whole Makevars file
and whatever else I might need
2004 Aug 20
3
How generate "A01", "A02", ..., "A99"?
Hi,
Anyone can tell me how to generate "A01", "A02", ..., "A99"?
paste("A", 1:99, sep="") generates "A1", "A2",..., "A99". This is not what I want.
Thanks for the help.
-MY
[[alternative HTML version deleted]]
2018 Sep 10
2
Byte-wide stores aren't coalesced if interspersed with other stores
Hi,
I have, in postres, a piece of IR that, after inlining and constant
propagation boils (when cooked on really high heat) down to (also
attached for your convenience):
source_filename = "pg"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
define void @evalexpr_0_0(i8* align 8 noalias, i32* align 8 noalias) {
2007 Nov 21
1
ave and sd
Dear list,
I'm still trying to calculate the sd for V2 for
each group in V1 if V3 is '0':
> x
V1 V2 V3
1 A01 2.40 0
2 A01 3.40 1
3 A01 2.80 0
4 A02 3.20 0
5 A02 4.20 0
6 A03 2.98 1
7 A03 2.31 0
8 A04 4.20 0
# Work
x$vmean <- ave(x$V2, x$V1, x$V3 == 0, FUN = mean)
# Work
x$vsd2 <- ave(x$V2, x$V1, FUN = sd)
# Doesn't work
x$vsd <- ave(x$V2, x$V1, x$V3
2018 Sep 11
2
Byte-wide stores aren't coalesced if interspersed with other stores
Andres:
FWIW, codegen will do the merge if you turn on global alias analysis for it
"-combiner-global-alias-analysis". That said, we should be able to do this
merging earlier.
-Nirav
On Mon, Sep 10, 2018 at 8:33 PM, Andres Freund via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
> On 2018-09-10 13:42:21 -0700, Andres Freund wrote:
> > I have, in postres,
2014 Jan 06
1
Dovecot quoting problem?
Hello Timo,
I think the following commit makes problems:
http://hg.dovecot.org/dovecot-2.2/rev/68a8b650578e
# Doesn't work
A01 LIST "" ~/Mail/Gesendet
# OK with quoted mailbox
A02 LIST "" "~/Mail/Gesendet"
Details:
imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
2007 Sep 20
1
convert data from
Hi,
I am trying to convert a data frame from:
X1 X2
A 1 2
B 3 4
C 5 6
to:
A01 1
A02 2
B01 3
B02 4
C01 5
C02 6.
How can I do it in R?
I appreciate your help.
Zheng
---------------------------------
[[alternative HTML version deleted]]
2012 Feb 09
1
get the first character element from a list
test<-c("20120111_181515_001_CCL54D_A01_S02_APL932_PL11_DL_20120111.CEL",
"20120111_181516_002_CCL54D_A02_S08_APL932_PL11_DL_20120111.CEL")
> test
[1] "20120111_181515_001_CCL54D_A01_S02_APL932_PL11_DL_20120111.CEL"
[2] "20120111_181516_002_CCL54D_A02_S08_APL932_PL11_DL_20120111.CEL"
fields1<-strsplit(test, "_")
> fields1
[[1]]
[1]
2007 Dec 14
2
Conflating categories
Hi,
I think this is a pretty basic question. I still couldn#t find the answer to
it, though.
I have some data loaded into R, which looks like this:
> data()
...
38358 Advice Article
38359 Advice Article
38360 GeneralInfo List
38361 GeneralInfo Article
38362 Purchase Paragraphs
38363 Purchase List
38364 Purchase Paragraphs
...
I now
2012 Apr 14
2
Calculate t.test for a matrix
Hello everyone,
I have a data frame (tt), see below (I only show 2 genes, actually I have a
lot):
group gene1 gene2 Control 28.9776 9.9355
Control 28.9499 10.0997 Control 29.5468 14.2995 Control 29.5246 13.9561
Test1 29.1864 9.7718 Test1 29.2048 10.0388 Test1 34.9563 11.9509 Test1
34.9464 11.8909 Test2 36.9566 14.5316 Test2 37.1309 14.5188 Test2 36.1017
2004 Dec 17
1
Cygwin and index code
As I can currently only work with windows (eek) I thought I'd try
dovecot there. I already sent a patch to make dovecot compile under
cygwin, but it still doesn't really work, here's part of a session that
I started while my maildir was totally empty (only cur/new/tmp in ~/Maildir)
$ ./imap.exe
* PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND
UNSELECT LITERAL+
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
Dear R-help,
I am creating a two lattice plots (a densityplot() and xyplot()) that
have the same x-axes and then 'printing' them onto the same page, one
above the other (see end of email for an example to generate the graph).
With different labels on the y-axis for each plot the left spacing is
different, and the x-axes don't align vertically. Although I can
manually modify the
2006 Apr 07
4
setIs and method dispatch in S4 classes
Dear all,
I have a question regarding setIs and method dispatch in S4 classes:
Consider the following example:
#####################################################
## A02 "contains" A01 by setIs:
setClass("A01", representation(a="numeric",b="numeric"))
setClass("A02", representation(a="numeric",d="numeric"))
2010 Apr 13
1
Lapack, determinant, multivariate normal density, solution to linear system, C language
r-devel list,
I have recently written an R package that solves a linear least squares
problem, and computes the multivariate normal density function. The bulk
of the code is written in C, with interfacing code to the BLAS and
Lapack libraries. The motivation here is speed. I ran into a problem
computing the determinant of a symmetric matrix in packed storage.
Apparently, there are no explicit
2003 Sep 15
2
Unable to access the mailbox or folders !!
Hi all,
I have installed dovecot on redhat linux with
ldap backend. I can login using ldap account in to my
webmail (squirrelmail) .But when I login to the
webmail , I cant see any inbox or anything . Just some
error messages like this ,
ERROR:
ERROR : Connection dropped by imap-server.
Query: LIST "" "Sent"
ERROR : Could not complete request.
Query: SELECT
2009 May 29
1
frequence of patterns in a vector
Dear R users,
Suppose I have a vector that consists of characters like ABC, A02, RCA,
etc., and there are about 700 of possible characters. For example,
x <- c("ABC", "ABC", "ABC", "A02", "ABC", "RCA", "ABC", "ABC")
I'd like to get a frequency matrix that looks something like this:
ABC 6
A02 1
RCA 1
I
2009 Aug 07
1
Bug in nlm, found using sem; failure in several flavors (PR#13883)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--1660387551-150661043-1249684349=:2997
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Hi Jeff,
=09As mentioned in my message, I *did* replicate on another platform.=20
One platform was
2014 Mar 15
5
Using a Sieve script to handle delivery to public mailboxes
Hello everyone,
I'm setting up a Postfix+Dovecot stack with virtual domains and public
mailboxes.
I set up a shared mailbox "office at mydomain.com" as described in the
Dovecot Wiki [1], that is:
- I created the directory "/var/mail/mydomain.com/public/" and inside
it I created the ".office" mailbox;
- I added an appropriate ACL to allow the account