Re: [R] r internet connection is very slow

2014-06-11 Thread Aidan Corcoran
Appreciate your thoughts on this Uwe. If I make any progress with it I will post back. On Wed, Jun 11, 2014 at 1:43 AM, Uwe Ligges wrote: > > > On 10.06.2014 16:32, Aidan Corcoran wrote: > >> thanks Uwe. I have tried a few mirrors, it makes no difference. >> I don

Re: [R] r internet connection is very slow

2014-06-10 Thread Aidan Corcoran
very slow drive (such as a network > connected location). > > Best, > Uwe Ligges > > > > On 10.06.2014 15:52, Aidan Corcoran wrote: > >> Dear all, >> >> I have a fresh install of R on a virtual desktop running Win 7 64 bit and >> when I try to inst

[R] r internet connection is very slow

2014-06-10 Thread Aidan Corcoran
Dear all, I have a fresh install of R on a virtual desktop running Win 7 64 bit and when I try to install packages it is extremely slow. I typed install.packages("ggplot2",dependencies=TRUE) and it takes about 1 minute for the mirror select box to open. After that I waited about 20 minutes for t

Re: [R] ggplot using scale_x_date gives Error in seq.int(r1$year, to$year, by)

2012-02-10 Thread Aidan Corcoran
t; "2012-01-06" "2011-12-23" ... >  $ variable: Factor w/ 3 levels "Price","Yield",..: 1 1 1 2 2 2 3 3 3 >  $ value   : num  86.78 86.04 86.44 9.74 9.54 ... > > You haven't turned the Date variable into an actual date yet.  Try: &g

[R] ggplot using scale_x_date gives Error in seq.int(r1$year, to$year, by)

2012-01-06 Thread Aidan Corcoran
Dear all, ggplot gives me an error when trying to plot time series data using a date variable as the x axis. g<-structure(list(Date = c("2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06"), variable = structure(c(1L, 1L, 1L,

Re: [R] running texi2dvi without running bibtex

2011-12-08 Thread Aidan Corcoran
is system("pdflatex onepager.tex") (I didn't know about this system command before you mentioned it). thanks for your help! Aidan On Wed, Dec 7, 2011 at 8:07 PM, Duncan Murdoch wrote: > On 07/12/2011 12:24 PM, Aidan Corcoran wrote: >> >> Hi Duncan, >> >>

Re: [R] running texi2dvi without running bibtex

2011-12-07 Thread Aidan Corcoran
PM, Duncan Murdoch wrote: > On 07/12/2011 6:47 AM, Aidan Corcoran wrote: >> >> Dear all, >> >> I was hoping someone may know a way of running texi2dvi while ignoring >> bibtex errors, or any other work around (such as not running bibtex at >> all, if possibl

Re: [R] removing specified length of text after a period in dataframe of char's

2011-12-07 Thread Aidan Corcoran
;> intermediate <- apply(testdata, 1, function(x)sub(paste("(^.*\\.\\d{", x[2], >> "})(\\d*)", sep=""), "\\1", x[1])) >> intermediate > [1] "10,000." "5.3"     "1.1" >> sub("\\.$", "", i

Re: [R] removing specified length of text after a period in dataframe of char's

2011-12-07 Thread Aidan Corcoran
ot;})(\\d*)", >> sep=""), "\\1", x[1])) > [1] "2"   "5.3" "1.1" > > Also note that the second method will not add zeros to pad out the > end. If you need that, I'd consider rearranging the order of your > steps so t

[R] running texi2dvi without running bibtex

2011-12-07 Thread Aidan Corcoran
Dear all, I was hoping someone may know a way of running texi2dvi while ignoring bibtex errors, or any other work around (such as not running bibtex at all, if possible). The context is that I have an R program that does some calculations and writes a table into various folders, one per country f

[R] removing specified length of text after a period in dataframe of char's

2011-12-07 Thread Aidan Corcoran
Dear all, I'm trying to remove some text after the period (a decimal point) in the data frame 'hi', below. This is one step in formatting a table. So I would like e.g. "2.0" to become "2" and "5.3" to be "5.3", where the variable digordered contains the number of digits after the decimal that I

Re: [R] geom_bar with missing data in package ggplot

2011-11-16 Thread Aidan Corcoran
s = c('red', 'blue')) + >    geom_text(aes(x = as.Date('2001-3-31'), y = 1, label = 'NA'), >               size = 6) + >    opts(legend.position = c(0.87, 0.88), >         legend.background = theme_rect(fill = 'white')) > > HTH, >

[R] geom_bar with missing data in package ggplot

2011-11-16 Thread Aidan Corcoran
Dear all, I was hoping someone could help with a ggplot question. I would like to generate a faceted bar chart, but missing data are causing problems. g<-structure(list(Date = structure(c(11322, 11687, 12052, 11322, 11687, 12052, 11322, 11687, 12052, 11322, 11687, 12052), class = "Date"), var

[R] error using ddply to generate means

2011-10-01 Thread Aidan Corcoran
Dear list, I encounter an error when I try to use ddply to generate means as follows: fun3<-structure(list(sector = structure(list(gics_sector_name = c("Financials", "Financials", "Materials", "Materials")), .Names = "gics_sector_name", row.names = structure(c("UBSN VX Equity", "LLOY LN Equity",