similar to: Chron object in time series plot

Displaying 20 results from an estimated 200 matches similar to: "Chron object in time series plot"

2010 Oct 01
1
[Help]:How to use "loop" to achieve this aim?
Hello, Everyone, how to use "loop" to make the process automatic and fast? When compute each sample, the script type in R almost the same, just the input and output file's name is changed(chr1 change to chr2, chr3,chr4...). The first sample's script like this: >chr1=MEDIPS.readAlignedSeqences(BSgenome="hg19", file="chr1",numrows= )
2009 Feb 02
1
Broke ggplot...
It appears I broke ggplot in my script, but that maybe it is because the caffeine has worn off or maybe it is late in the day.   I thought I was beginning to understand ggplot, but I have encountered a silly little issue.   For some reason the following does not produce a histogram with fill due to the Person's characteristics: (Note that VADeaths_flat_df$Data works fine...)    
2005 Nov 04
1
[Bug 1110] memory leak in bufaux.c, function: buffer_put_bignum_ret
http://bugzilla.mindrot.org/show_bug.cgi?id=1110 Summary: memory leak in bufaux.c, function: buffer_put_bignum_ret Product: Portable OpenSSH Version: 4.2p1 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: bitbucket at mindrot.org
2010 Nov 23
2
Plot two zoo object with different indexes
Dear R community, I have the following two zoo objects: MONTHLY CPI > plot(z) > par("usr") [1] 1977.76333 2011.15333 70.39856 227.03744 > z=zooreg(cpius$Value,as.yearmon("1979-11"),frequency=12) > str(z) ?zooreg? series from Nov 1979 to Oct 2010 Data: num [1:372] 76.2 77 77.8 78.5 79.5 80.3 81.1 82 82 82.6 ... Index: Class 'yearmon' num [1:372]
2009 Apr 15
2
From daily series to monthly and viceversa
I have the following daily exchange rate series (from january 1st 1996 to december 31st 2008) and I want to obtain them monthly series from it. I've read about the 'zoo' library but I'm not getting it how to do it. These are the data (left column day-month-year, right column the index) 31/12/1993 1,12509 03/01/1994 1,12509 04/01/1994 1,12558 05/01/1994 1,1258 06/01/1994 1,12596
2010 Jan 26
2
Large dataset importing, columns merging and splitting
Dear All, I have a large data set that looks like this: CVX 20070201 9 30 51 73.25 81400 0 CVX 20070201 9 30 51 73.25 100 0 CVX 20070201 9 30 51 73.25 100 0 CVX 20070201 9 30 51 73.25 300 0 First, I would like to import it by merging column 3 4 and 5, since that is the timestamp. Then, I would like to aggregate the data by splitting them in bins of 5 minutes size, therefore from 93000 up to
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
Two additions to MEMDISK to support OS drivers. The "safe hook" structure ("Safe Master Boot Record INT 13h Hook Routines") is a means for an OS driver to follow a chain of INT 13h hooks, examining the hooks'' vendors and assuming responsibility for hook functionality along the way. For MEMDISK, we guarantee an additional field which holds the physical address for the
2010 Oct 13
1
Pasting function arguments and strings
Dear R community, I am struggling a bit with a probably fairly simple task. I need to use some already existing functions as argument for a new function that I am going to create. 'dataset' is an argument, and it comprises objects named 'mean_test', 'sd_test', 'kurt_test' and so on. 'arg1' tells what object I want (mean, sd, kurt) while 'arg2' tells
2011 Mar 01
3
inefficient ifelse() ?
dear R experts--- t <- 1:30 f <- function(t) { cat("f for", t, "\n"); return(2*t) } g <- function(t) { cat("g for", t, "\n"); return(3*t) } s <- ifelse( t%%2==0, g(t), f(t)) shows that the ifelse function actually evaluates both f() and g() for all values first, and presumably then just picks left or right results based on t%%2.
2007 Dec 18
6
All anchored series from a vector?
>From: Johannes Graumann <johannes_graumann at web.de> >Date: 2007/12/18 Tue PM 04:40:37 CST >To: r-help at stat.math.ethz.ch >Subject: [R] All anchored series from a vector? lapply(1:length(myvector) function(.length) { c(myvector[1}:myvector[.length]) }) but test it because i didn't. >Hi all, > >What may be a smart, efficient way to get the following result:
2007 Oct 24
1
X Axis labeling with class zoo
I'm using zoo to plot multiple data series, however, I am having trouble adjusting the x-axis labeling on a multiple series plot. For example, if I create a zoo object that consists of a date series and a numerical series and then plot it, I can adjust the x axis labeling using axis.Date(1, at=seq(as.Date("1984/01/31"), as.Date("2005/10/31"), by="2
2004 Oct 04
2
Identifying time series
Hello, I am currently attempting to introduce R at my company and am trying to import time series data from a text file into R to graph. The format of the text file is in date, data (e.g., 20040929 3.361). My problem is that I do not know how to get R to recognize the first column as a business date series. Or at the very least, I am unable to find a function that will grap the second column
2000 Jul 13
0
chron printing and plotting
g'day R guru's. Could someone help me out with 2 'chron' questions please (I've been using the 'date' package but I need time handling)? The doco doesn't cover everything and I'm too green to understand all the code. When my chron object is printed using 'print' the output is not in the format requested by the default attributes. What am I doing
2001 Mar 20
1
segmentation fault with chron.times()
I am running a simple R program, its skeleton is enclosed below. The program reads about 80 files with about 5000 lines with coloumns of data. After an unpredictable and variable number of loops for run to run, it exits with segmentation fault or alternatively with the error Error in names<-.default(*tmp*, value = fnames) : Unimplemented feature in duplicate Removing the call to
2010 Jan 26
0
newb question: chron and hist()
Hi all, I'm just getting started in R so bear with my newbness. I am trying to create a very simple histogram of logins by time, with data coming in from a MYSQL query. the raw data looks like this: "id" "user_id" "experience_given" "created_at" "ip_aton" "1" XXXXXXX 2445626 0 "2010-01-21 00:00:01" 1123632036 "2"
2010 Jan 14
0
chron, xts and zoo
dear r folks i am a bit puzzled about how to use chron as an index xts and why it differs from zoo. in this example, why can i index zoo but not xts x<-1:23 time.of.day <- times(paste(x,":0:0",sep=""),format="h:m:s") day <- dates("4/8/90") period <- chron(dates=day,times=time.of.day) xts(1:23,period) zoo(1:23,period) i suspect it might be to
2009 May 04
1
how to remove ( ) ? when using write.csv(chron.object)
Hello all, I don' like to have ( ) around my datetime, when send the csv file to somebody. How to remove it? >library(chron) >mydate <- c("2009-05-03","2009-06-07") >mytime <- c("10:30:00","10:20:00") >mydatetime <- chron(dates=mydate,times=mytime,format=c("y-m-d","h:m:s")) >write.csv(mydatetime)  
1999 Apr 28
0
chron and julian
Another beginner's question. Still trying trying to read and and plot a simple tds-value vs time. input file: onedat date time tds 1997-12-29 13:35:00 411 > onedat<-read.table("onedat",header=T) attach(onedat) > x<-chron(dates=as.vector(date),times=as.vector(time), format=c("y-md","h:m:s")) > x [1] (97-12-29 13:35:00) See my problem? Chron
1998 Apr 06
2
problems with chron library
I have installed the chron library, but it does not seem to work: > chron("04/06/98") Error in .C(NAME = "to_lower", strings = as.character(str), nstrings = as.integer(n)) : C/Fortran function not in load table > chron(17894) Error in .C(NAME = "to_lower", strings = as.character(str), nstrings = as.integer(n)) : C/Fortran function not in load table > I am
1999 Dec 07
1
chron yy/mm/dd
I'm not too familiar with chron, but I don't think it should drop the month and day in the second example following example: > chron(20000, format="y/m/d") [1] 124/10/04 > chron(20000, format="yy/m/d") [1] 2024 Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read