Displaying 20 results from an estimated 100 matches similar to: "use the value of variable to quote certain elements in matrix"
2017 Dec 13
3
inefficient for loop, is there a better way?
The code below is a small reproducible example of a much larger problem.
While the script below works, it is really slow on the true dataset with
many more rows and columns. I'm hoping to get the same result to examp,
but with significant time savings.
The example below is setting up a data.frame for an ensuing regression
analysis. The purpose of the script below is to appends columns to
2009 Dec 01
0
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
On Mon, Nov 30, 2009 at 7:22 PM, Javier Martinez <javier at jmartinez.org> wrote:
> Hello,
>
> I'm working in adding support for 64-bit integers to my target. I'm using
> LLVM to decompose the 64-bit integer operations by using 32-bit registers
> wherever possible and emulating support where not. When looking at the bit
> shift decomposition I saw what seems to be a
2009 Dec 01
4
[LLVMdev] Possible bug in ExpandShiftWithUnknownAmountBit
Hello,
I'm working in adding support for 64-bit integers to my target. I'm using
LLVM to decompose the 64-bit integer operations by using 32-bit registers
wherever possible and emulating support where not. When looking at the bit
shift decomposition I saw what seems to be a bug in the implementation. The
affected function is ExpandShiftWithUnknownAmountBit in
LegalizeIntegerTypes.cpp.
2012 Sep 02
2
[LLVMdev] branch on vector compare?
Hi all, llvm newbie here.
I'm trying to branch based on a vector compare. I've found a slow way (below)
which goes through memory. Is there some idiom I'm missing so that it would use
for instance movmsk for SSE or vcmpgt & cr6 for altivec?
Or do I need to resort to calling the intrinsic directly?
Thanks,
Stephen.
%16 = fcmp ogt <4 x float> %15, %cr
%17 =
2010 Jun 01
1
loop
Can any one help it will be very kind, loop statements
I have this table and some more records, I want to reshape it
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10
TP53 Dis1 Dis2 Dis3 Dis4 Dis5 Dis6
DCI New1 New2 New3 New4
FDI Hi2 H3 H4
GHD I1 I3 I4 I5 I6 I7 I8
I want my new table or matrix to be some thing like this
V1 V2 V3
Tp53 Dis1 Dis2
Tp53 Dis1 Dis3
Tp53 Dis1 Dis4
Tp53 Dis1 Dis5
Tp53 Dis1 Dis6
Tp53 Dis2
2013 Feb 15
1
Fitting pareto distribution / plotting observed & fitted dists
Some background: I have some data on structural dependencies in a base
of code artifacts. The dependency structure is reflected in terms of
relative node degrees, with each node representing some code unit (just
as an example).
This gives me real data of the following form (sorry for the longish
posting):
dat1 <-
c(0.00245098039215686, 0, 0, 0, 0, 0, 0, 0, 0.0563725490196078,
0, 0, 0,
2005 Jun 24
4
UTStarcom F1000 WiFi IP Phone Review
I bought a UTStarcom F1000 WiFi IP Phone from
http://www.luxoncomm.com and tested it with Asterisk.
This is a my first impression of the device.
The F1000 supports SIP. It looks and operates like
a cell phone, and connects to the Internet through
WiFi, so you can use it at any WiFi hotspot. I set up
a 802.11b wi-fi network with a Linksys BEFW11S4
Wireless-B broadband router with no security
2012 Sep 03
0
[LLVMdev] branch on vector compare?
Hi Stephen,
> Hi all, llvm newbie here.
welcome!
> I'm trying to branch based on a vector compare. I've found a slow way (below)
> which goes through memory. Is there some idiom I'm missing so that it would use
> for instance movmsk for SSE or vcmpgt & cr6 for altivec?
I don't think you are missing anything: LLVM IR has no support for horizontal
operations like
2006 Feb 15
2
Xen source [signed]
I just also wanted to mention that I have the current released
source tarballs downloaded and placed at
http://people.debian.org/~jbouse/xen/ at this time. As the only way to
get the source tarballs I've found is via bittorrent unless you want to
give your email address I'll continue to keep the the current tarball
located there.
That is one thing that I noticed about Ralph's
2008 Aug 11
3
Peoblem with nls and try
Hello,
I can`t figure out how can increase the velocity of the fitting data by nls.
I have a long data .csv
I want to read evry time the first colunm to the other colunm and analisy with thata tools
setwd("C:/dati")
a<-read.table("Normalizzazione.csv", sep=",", dec=".", header=F)
for (i in 1:dim(a[[2]]]) {
#preparazione dati da analizzare
2000 Aug 01
0
anova() on three or more objects behaves inconsistently (PR#621)
anova() on three or more objects behaves inconsistently in R.
In R anovalist.lm does a sequential ANOVA using pairwise F tests,
ignoring all the other objects, so the larger of the two models
provides the denominator.
In S anova.lmlist uses the denominator from the largest model (smallest
residual df) in the set, as does anova.glmlist in both.
I suggest that R's anovalist.lm is wrong (that
2012 Aug 03
2
how to identify values from a column of a dataframe, and insert them in other data.frame with the corresponding id?
Hello,
I’d like to do next, see if you could help me please:
I have a csv called “datuak” with a id called “calee_id” and a colunm called “poids”.
I have another csv called “datuak2” with the same id called “calee_id”, (although there are “calee_id” that are in “datuak” but not in “datuak2” and inverse), and a column called “kg_totales” in which the values are repeteated for each calee_id
2004 Dec 21
1
about colnames
Try
colnames(df)[4:6] <- c("x","y","z")
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of
xmeng at capitalbio.com
Sent: 21 December 2004 09:45
To: r-help at stat.math.ethz.ch
Subject: [R] about colnames
Hello sir:
If there's a data frame(with name "df"):
a b c d e f
2005 Mar 02
1
data.frame, data types, and apply
Dear all,
Here is an issue I often stumble on.
1- colunm types in data.frames.
-------------------------------
> d <- data.frame(x=as.character(c("a", "b", "c")), y=as.numeric(c(1, 2, 3)))
> d
x y
1 a 1
2 b 2
3 c 3
> is.numeric(d[1,2])
[1] TRUE
> is.numeric(d[1,1])
[1] FALSE
> apply(d, c(1,2), is.numeric)
x y
1 FALSE FALSE
2 FALSE
2005 May 26
1
aggregate and stack
Dear All,
I have tried to calculate tree mean growth but I think the structure I used below (growthresumo) is not the most elegant, even though it worked. The only problem I had in this first part was that I cannot use 'summary', just 'mean' (sorry but 'R' is pretty new for me).
>growthresumo <-
2005 Jun 20
1
RES: another aov results interpretation question
Dear All,
I created a script to calculate averages - two groups: "parcel" and
"date" - and, based on these averages, make a graph. The problem is that
'R' does not recognize the first column even if I try to insert one.
A brief example
Raw data:
Data <- sample(1:100, 30, replace = FALSE, prob = NULL)
Date <-
2013 Feb 28
11
new question
Hi,
directory<- "/home/arunksa111/data.new"
#first function
filelist<-function(directory,number,list1){
setwd(directory)
filelist1<-dir(directory)
direct<-dir(directory,pattern = paste("MSMS_",number,"PepInfo.txt",sep=""), full.names = FALSE, recursive = TRUE)
list1<-lapply(direct, function(x) read.table(x,header=TRUE, sep =
2015 Apr 14
5
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
Adding llvm-dev as that might be a more suitable audience for this
discussion.
(& I know Lang's been playing around with the same problem in the Orc JIT,
so adding him too)
Is there any basis/reason to believe that the .X suffix is a better, more
principled one than straight X? Is that documented somewhere as a thing the
demangling tools will ignore?
On Tue, Apr 14, 2015 at 12:06 PM,
2015 Apr 14
0
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
Hi David,
Thanks for adding Lang and other mailing lists.
Ø Is there any basis/reason to believe that the .X suffix is a better, more principled one
Ø than straight X? Is that documented somewhere as a thing the demangling tools
Ø will ignore?
I don’t know of any documentation but the existing demangling tools, such as c++filt on linux, already stop at ‘.’. So there is precedence.
Gcc
2011 Jan 04
0
Package animation update (v2.0-0)
Hi,
The animation package 2.0-0 is on CRAN now. This version is a
milestone of the animation package. It includes a new function
saveHTML() which uses a much more elegant interface and is consistent
in syntax with other save*() functions such as saveMovie(), saveSWF()
and saveLatex(). Lots of demos have been added to demonstrate the
flexibility of this package, e.g. now we can get the snapshots