Displaying 17 results from an estimated 17 matches for "start1".
Did you mean:
start
2010 Jun 24
1
?to calculate sth for groups defined between points in one variable (string), / value separating/ spliting variable into groups by i.e. between start, NA, NA, stop1, start2, NA, stop2
...4 5 6 7 8 9 10 11 12 13 14 15 16 17
c0<-rbind( 1, 2 , 3, 4, 5, 6, 7, 8, 9,10,11, 12,13,14,15,16,17 )
c0
c1<-rbind(10, 20 ,30,40, 50,10,60,20,30,40,50, 30,10, 0,NA,20,10.3444)
c1
c2<-rbind(NA,"Start1",NA,NA,"Stop1",NA,NA,NA,NA,NA,NA,"Start2",NA,NA,NA,NA,"Stop2")
c2
C.df<-data.frame(cbind(c0,c1,c2))
colnames(C.df)<-c("c0","c1","c2")
C.df
# preparation of form for explaining further needed result (next 3 lines are not needed...
2011 Jan 15
2
access to right time unit when checking for time execution
Hello,
I really wonder how to distinguish between secs and mins in the example
below.
In other terms, how can I access the time unit in variable d ?
start1 <- Sys.time();
stop1 <- Sys.time(); d <- stop1-start1; print(d);
v<-unlist(strsplit(as.character(d), split=" ")); print(v)
Time difference of 3.024054 secs
[1] "3.02405381202698"
stop1 <- Sys.time(); d <- stop1-start1; print(d);
v <- unlist(strsplit(as.cha...
2008 Jun 27
1
finding the suitable distribution
Dear R-users,
Attach with is my data..what i want to do is finding a suitable distribution for my data..I want to run a few test like the poisson and the exponential distribution. Please help me on how to find the p-value for poisson as well as the exponential distribution without knowing the parameter. Is it possible?? Thanks in advance.
love,
Anisah
-------------- next
2009 Nov 17
2
Lattice plot
Hi,
I was trying to get a graph in lattice with the following data frame (7 rows, 5 cols):
chr start1 end1 meth positive
1 1 10 20 1.5 y
2 2 12 18 -0.7 n
3 3 22 34 2.0 y
4 1 35 70 3.0 y
5 1 120 140 -1.3 n
6 1 180 190 0.2 y
7 2 220 300 0.4 y
I wanted the panels to be organized by 'chr' - w...
2012 Dec 28
2
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
> Suppose you have four lifetime operations on the same address in memory,
> with loads and stores all around them:
>
> start1--end1 .. start2--end2
>
> If you remove start1 then you have a bare pointer, the memory came from
> somewhere and you lose the optimization that loads before start1 become
> undef, but you don't miscompile.
This is assuming no looping after end1 or end2, right?
> If you remove...
2012 Dec 28
0
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
...be safe, right?
I really only invented them for a specific case, so I haven't thought
through all the cases where it may or may not be legal to add or delete
them. Here goes!
Suppose you have four lifetime operations on the same address in memory,
with loads and stores all around them:
start1--end1 .. start2--end2
If you remove start1 then you have a bare pointer, the memory came from
somewhere and you lose the optimization that loads before start1 become
undef, but you don't miscompile.
If you remove end1 then the code between start1 and start2 is in
trouble. We would miscompi...
2010 Jul 01
4
left end or right end
Dear all,
I am a biologist. I have two sets of distance P(start1, end1) and Q(start2,
end2).
The distance will be like this.
P ------------------------
Q ----------------------------------------
I want to know whether P falls closely to the right end or left end of Q.
P and Q are of different lengths for each data point. There are more than
10000 pai...
2012 Dec 27
5
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
>> Oh, I was reading "precedes/following" as having static (dominance)
>> meaning. That is, in the above example you could not delete the store
>> since it is not true that
>> llvm.lifetime.end dominates it.
>>
>> Nick, is this what you had in mind? If not, then we must delete a
>> matching llvm.lifetime.end, but it is not clear how we define
2012 Dec 28
0
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
On 12/28/2012 04:20 AM, Rafael EspĂndola wrote:
>> Suppose you have four lifetime operations on the same address in memory,
>> with loads and stores all around them:
>>
>> start1--end1 .. start2--end2
>>
>> If you remove start1 then you have a bare pointer, the memory came from
>> somewhere and you lose the optimization that loads before start1 become
>> undef, but you don't miscompile.
>
> This is assuming no looping after end1 or end2, ri...
2009 Mar 12
1
eps/pdf write help
..."")) .. it prints all pdf''s but they are empty
Can someone suggest which method shud I use for such.
Thanks
Mohan
Code:
for(i in 1:19) {
query <- d$V1[i];
print(query)
#pdf(paste(i,".pdf", sep=""));
x11();
plot(c2data[start1:count,],c3data[start1:count,],xlab="Buildings",
ylab="Sky", sub=i);
points(c2data[query,],c3data[query,], pch=20, col=''blue'');
grid();
dev.print()
dev.copy2eps();
dev.copy()
start1 <- count + 2;
#print(start1)
val <- val-...
2004 Oct 19
2
Sweave and Trellis in R 2.0.0patched (Windows)
...from `Sheet1$` where Test = 'TOC' and
(Valve='5010-05' or Valve='8030-V26' or Valve='1180-08' or
Valve='5040-08')")
odbcClose(channel)
srt <- order(as.POSIXct(data$'DateTime Sampled'))
data <- data[srt,]
data <- data[!is.na(data$Value),]
start1 <- strptime(c("6/1/2003"),format="%m/%d/%Y")
end1 <- strptime(c("5/1/2004"),format="%m/%d/%Y")
data.plot <- data[
data$'DateTime Sampled'>= start1
# & is.na(data$Exclude)
& data$...
2011 Jan 30
1
Extract subsets of different and unknown lengths from huge dataset
...e end of an event again is defined by at least 24
values being equal to 0. I want to subset the single events for the purpose
of examining the maximum value within each event.
I tried:
> xx1 <- read.table(pipe("cut -f2 corrected_data.txt"),header=T)
> nrow(xx1)
[1] 2500000
> start1 <- data.frame(start=rep("NA",length.out=nrow(xx1)))
> stop1 <- data.frame(stop=rep("NA",length.out=nrow(xx1)))
> max.xx1 <- data.frame(max.xx=rep("NA",length.out=nrow(xx1)))
> XXframe <- data.frame(XX=xx1, start=start1, stop=stop1, max.xx=max.xx1)...
2010 Apr 10
3
[PATCH 1/3] fbmem: fix aperture overlapping check
.../drivers/video/fbmem.c
index a15b44e..41f2e5e 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1468,15 +1468,25 @@ static int fb_check_foreignness(struct fb_info *fi)
return 0;
}
+/**
+ * ranges_overlap - check whether two ranges overlap (their intersection is not empty)
+ * @start1: start of the first range
+ * @size1: length of the first range
+ * @start2: start of the second range
+ * @size2: length of the second range
+ */
+#define ranges_overlap(start1, size1, start2, size2) ({ \
+ typeof(start1) __start1 = (start1); \
+ typeof(size1) __size1 = (size1); \
+ typeof(s...
2010 Apr 20
1
converting a zoo or an xts to a data frame
Dear R People:
I have the following code that I use to convert a monthly zoo object
to a data.frame, and it works perfectly:
library(tseries)
z <- get.hist.quote(instrument=inst1, start=start1,end=end1,
quote=quot1,comp = "m")
y <- as.ts(aggregate(z, as.yearmon, tail, 1))
y.df <- data.frame(y=y,time=time(y))
y.df$x <- ts(y.df[,1])
tsp(y.df$x) <- tsp(y.df[,2])
names(y.df) <- c("data","time","ts")
z.df <- data...
2009 Oct 20
3
Transparent Bands in R
Hello All,
My question is regarding the attached plot. I would like to have multiple
transparent green bands running the length (yaxis) of the plot the width of
which is determined by the green lines at y=0 in the plot. Can you suggest a
way to do it?
For those who can't or are unwilling to download the file the plot is at
http://www.twitpic.com/ma8w0
Thanks!
2010 Mar 26
4
Competing with SPSS and SAS: improving code that loops through rows (data manipulation)
...d for transformation -
has 3 levels; !!! in real life it will have up to 7 levels
constant2<-seq(.15,.45,.15) # constant 2 used for transformation -
has 3 levels; !!! in real life it will have up to 7 levels
# CODE THAT IS TOO SLOW (it uses parameters specified in the previous
code section):
start1<-Sys.time()
for(var in indexed.vars){ # looping through variables
for(c1 in 1:length(constant1)){ # looping through levels of constant1
for(c2 in 1:length(constant2)){ # looping through levels of constant2
d=log(0.5)/constant1[c1]
l=-log(1-constant2[c2])
name&l...
2003 Nov 13
0
2 AGI questions..
...);
?>
Thats it..
But I get this..
-- Executing AGI("SIP/2010-a826", "end1.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/end1.php
== Spawn extension (local, h, 1) exited non-zero on 'SIP/2010-a826'
My other script ends like this..
-- AGI Script start1.php completed, returning 0