[R] Setting default graphics device & options

2013-05-26 Thread Vishal Belsare
Hi, Is it possible to : [1] set a default location to plot graphs in png format with specific dimensions & resolution. I want to plot to a directory which is a shared on the network (samba share), so as to view the plots from a different machine. [2] call dev.off() 'automagically' after a call t

[R] ApEn (Approximate Entropy), Total Corr, Information Interaction

2009-03-26 Thread Vishal Belsare
it. Many thanks in anticipation. Best, Vishal Belsare __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-cont

[R] Total Correlation / Multi-Information

2008-09-26 Thread Vishal Belsare
came across the entropy and minet package; intend to see how I could utilize those. Thanks much in anticipation. Best Regards, Vishal Belsare -- Firstly, I propose for myself the rule that the obviousness of a proposition does not free me from the obligation to continue searching for a proof of

[R] Representing 'Date' as 'Year - Quarter'

2008-05-31 Thread Vishal Belsare
eason why I am keen on this is that I can then shape my further sub-setting in a form like which(... date == "1998 Q2") or so instead of forcing myself to write "1998/06/30" which would indicate end of second quarter (I just think that is redundant). Thanks in anticipation. Best Reg

[R] n Realizations of a Stochastic Process assigned to dynamically generated variable names?

2008-05-25 Thread Vishal Belsare
o them. #begin tsn <- (10); for (i in 1:250) { tsn <- c(tsn, tsn[i] + rnorm(1, mean=0.01, sd=0.025)) }; plot.ts(tsn, lwd=2, col="maroon"); #end Thanks in anticipation. Best Regards Vishal Belsare __ R-h

[R] RODBC / odbcConnectExcel Issue

2008-04-04 Thread Vishal Belsare
Can someone throw light on the following problem I am having with RODBC? There's an Excel file I am trying to read from, it has one sheet named 'nameclass'. Thanks in anticipation. Vishal Belsare > library(RODBC) > con = odbcConnectExcel(file.choose()) > tbls

[R] zoo object

2008-01-14 Thread Vishal Belsare
.007681013 0.007817548 0.007847579 0.007867313 I want to insert values between each of the dates, and copy the previous value for those days. Any suggestions would be greatly appreciated. Thanks in anticipation. Regards, Vishal Belsare __ R-help@r-p

[R] Plotting Long Time Series

2008-01-10 Thread Vishal Belsare
I have some time series data which I am interested in plotting. The standard function for plotting ts, or zoo objects work fine, however, I am curious about plotting long time series with a dynamic aspect ratio. My point is this, say I have a time series of 4000 observations, so the image width is

Re: [R] diff in a dataframe

2008-01-10 Thread Vishal Belsare
0.05715841 0.3053816 > > > See the two zoo vignettes: > vignette("zoo") > vignette("zoo-quickref") > > > On Jan 10, 2008 2:16 AM, Vishal Belsare <[EMAIL PROTECTED]> wrote: > > I have a dataframe say: > > > > date price_g price_s >

[R] diff in a dataframe

2008-01-09 Thread Vishal Belsare
in a new dataframe. Thanks in anticipation. Vishal Belsare __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

Re: [R] try / tryCatch for download.file( ) within a for loop when URL does not exist

2007-10-16 Thread Vishal Belsare
ssages = FALSE) >#options(warn = -1) >err <- try(download.file(url, destfile = file, quiet = TRUE, > mode = "wb")) > if (class(err) == "try-error") next # skip this iteration on error >date <- as.POSIXlt(as.Date(date - 86400)) >

[R] try / tryCatch for download.file( ) within a for loop when URL does not exist

2007-10-16 Thread Vishal Belsare
sv.zip",sep="";) file <- paste("C:/",datestr,"_csv.zip",sep="") #options(show.error.messages = FALSE) #options(warn = -1) try(download.file(url, destfile = file, quiet = TRUE, mode = "wb"), finally = cat("OK:",url

[R] String concatenation, File Path Handling to pass to download.file( ) [backslash in DOS paths]

2007-10-15 Thread Vishal Belsare
om it. Also, I might end up making a list for dates extending to about 10 years in the past (~2600 working days), so I was more keen on not creating one long list. Vishal Belsare On 10/15/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > See ?seq.Date, e.g. > >now <- S

[R] String concatenation, File Path Handling to pass to download.file( ) [backslash in DOS paths]

2007-10-15 Thread Vishal Belsare
lse (date <- date-86400) #end script The above URLs would point to Bombay Stock Exchange's data files (if the script works). Thanks again. The code you already suggested would help me make the date sequence, but I am not sure how I could extract the mmddyy string from it. Also, I might en

[R] for loop if else conditional

2007-10-15 Thread Vishal Belsare
nt dates from present day to a day in the past, but omitting weekends. I am not doing something right, but can't figure out what. Help appreciated! Vishal Belsare -- "A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write

[R] for loop if else conditional

2007-10-15 Thread Vishal Belsare
to print dates from present day to a day in the past, but omitting weekends. I am not doing something right, but can't figure out what. Help appreciated! Vishal Belsare __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

[R] for loop if else conditional

2007-10-15 Thread Vishal Belsare
to print dates from present day to a day in the past, but omitting weekends. I am not doing something right, but can't figure out what. Help appreciated! Vishal Belsare __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-