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 lig...@statistik.tu-dortmund.de wrote: On 10.06.2014 16:32, Aidan Corcoran wrote: thanks Uwe. I have tried a few mirrors, it makes no difference. I don't

[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

Re: [R] r internet connection is very slow

2014-06-10 Thread Aidan Corcoran
on a 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 install packages it is extremely slow. I typed install.packages

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

2012-02-10 Thread Aidan Corcoran
/ 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$Date - as.Date(g$Date) Hadley On Fri, Jan 6, 2012 at 9:12 AM, Aidan Corcoran aidan.corcora...@gmail.com wrote: Dear all

[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, 2L, 2L, 2L, 3L,

Re: [R] running texi2dvi without running bibtex

2011-12-08 Thread Aidan Corcoran
(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 murdoch.dun...@gmail.com wrote: On 07/12/2011 12:24 PM, Aidan Corcoran wrote: Hi Duncan, thanks for your help. Unfortunately

[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 would

[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

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

2011-12-07 Thread Aidan Corcoran
a more flexible way too; I'd be interested to see it. Unfortunately I don't think sprintf() has a way to insert a thousands separator, or that would be a one-step solution. Sarah On Wed, Dec 7, 2011 at 6:05 AM, Aidan Corcoran aidan.corcora...@gmail.com wrote:  Dear all,  I'm trying to remove

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

2011-12-07 Thread Aidan Corcoran
] 10,000. 5.3     1.1 sub(\\.$, , intermediate) [1] 10,000 5.3    1.1 Sarah On Wed, Dec 7, 2011 at 8:20 AM, Aidan Corcoran aidan.corcora...@gmail.com wrote: Hi Sarah, apologies for the excess. A smaller example: f-structure(list(c(GDP per capita (LCU), Ratio to EZ GDP Per Cap ), `2005

Re: [R] running texi2dvi without running bibtex

2011-12-07 Thread Aidan Corcoran
: 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 possible). The context is that I have an R program that does some calculations

[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),

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

2011-11-16 Thread Aidan Corcoran
= 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, Dennis On Wed, Nov 16, 2011 at 1:55 AM, Aidan Corcoran aidan.corcora

[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, AI FP Equity,