Re: [Rd] Task View for Marketing

2009-12-04 Thread Achim Zeileis
Charlotte: I was wondering if a task view for marketing would be a good idea Maybe, do you want to volunteer to maintain it? I realise that it would have some overlap with other task views. Social science, cluster and multivariate are the most obvious ones. Yes. I'm not sure how a new

[Rd] Task View for Marketing

2009-12-04 Thread Charlotte Maia
Hi I was wondering if a task view for marketing would be a good idea I realise that it would have some overlap with other task views. Social science, cluster and multivariate are the most obvious ones. There seem to be a lot of packages (quite in your face, if I may say so) for finance and e

Re: [Rd] combine UserDefinedDatabase and regular environments

2009-12-04 Thread Michael Lawrence
On Wed, Dec 2, 2009 at 11:11 PM, Romain Francois wrote: > On 12/03/2009 12:17 AM, Michael Lawrence wrote: > >> >> >> On Thu, Nov 19, 2009 at 10:54 AM, Romain Francois >> mailto:romain.franc...@dbmail.com>> wrote: >> >>On 11/19/2009 06:14 PM, Michael Lawrence wrote: >> >> >> >>On Thu,

Re: [Rd] boxplot: auto sizing for ylim variable

2009-12-04 Thread Uwe Ligges
violet lock wrote: Sorry, I though I had reposted the question- I was trying to create a barplot- I just solved it by looping and setting the program to graph as subset of the data. The size is a parameter so the user can reset it if needed bargraph <- function(table) { barplot(table, main=

Re: [Rd] raster support in graphics devices

2009-12-04 Thread hadley wickham
> Its not just the time.  Its also the nuisance of having to manage files that > I never needed in the first place. In general, it's much easier to create output from a R object than create an R object from output. It's good programming practice to minimise the number of functions with side-effec

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Romain Francois
On 12/04/2009 03:19 PM, Gabor Grothendieck wrote: Thanks. I am looking for the data to be just as if I had read in the png file (or wmf file or whatever). Hi, You are after the binary payload of the rendered graph as a png file. So you are going to have to go through a png file. It would

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Its not just the time. Its also the nuisance of having to manage files that I never needed in the first place. On Fri, Dec 4, 2009 at 11:01 AM, Romain Francois wrote: > On 12/04/2009 03:19 PM, Gabor Grothendieck wrote: > >> >> Thanks. >> >> I am looking for the data to be just as if I had read

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Right. On Fri, Dec 4, 2009 at 10:53 AM, hadley wickham wrote: > > Just to explain a bit more I am thinking about something like this: > > > > con <- graphicsConnection() # I've just made this up > > png(con) > > plot(1:10) > > dev.off() > > raw.img <- readBin(con, "raw", size = 1, n = 1)

Re: [Rd] raster support in graphics devices

2009-12-04 Thread hadley wickham
> Just to explain a bit more I am thinking about something like this: > > con <- graphicsConnection() # I've just made this up > png(con) > plot(1:10) > dev.off() > raw.img <- readBin(con, "raw", size = 1, n = 1) It seems to me what you actually want is for graphics devices to support conn

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Just to explain a bit more I am thinking about something like this: con <- graphicsConnection() # I've just made this up png(con) plot(1:10) dev.off() raw.img <- readBin(con, "raw", size = 1, n = 1) On Fri, Dec 4, 2009 at 8:28 AM, Gabor Grothendieck wrote: > Currently I have an applicat

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Thanks. I am looking for the data to be just as if I had read in the png file (or wmf file or whatever). grid.cap seems to give a bitmap and then would require some sort of processing to get the png or wmf, etc. form. Also note that I need it for classic graphics and not just grid graphics. Wha

Re: [Rd] raster support in graphics devices

2009-12-04 Thread baptiste auguie
Hi, You can use grid.cap, x11() plot(1:10) g = grid.cap() dev.off() str(g) # chr [1:672, 1:671] "white" "white" "white" "white" "white" ... but as far as I understand in ?grid.cap and the underlying code there is no "capGrob" equivalent that wouldn't require opening a new device before capturing

Re: [Rd] raster support in graphics devices

2009-12-04 Thread Gabor Grothendieck
Currently I have an application that saves the current graphics image (that was created with classic graphics or grid graphics) to a file and then reads the file back in using readBin: png("my.png") plot(1:10) dev.off() raw.img <- readBin("my.png", "raw", size = 1, n = 1) (I am doing this

Re: [Rd] (PR#14103) read.csv confused by newline characters in

2009-12-04 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-536455723-1259929222=:18586 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: I

Re: [Rd] (PR#14103) read.csv confused by newline characters in header

2009-12-04 Thread Prof Brian Ripley
It's not to do with pushback per se. The works as one might expect, e.g. f <- file("test.txt", "r") pushBack('"A1\nA2"', f) pushBackLength(f) scan(f, "", quote='"') gives "A1\nA2" on a single line, then whatever was in test.txt. Rather, the issue is if (header) { readLines

[Rd] tm and e1071 question

2009-12-04 Thread Jeszenszky Peter
Dear Developers, I would like to use the svm function of the e1071 package for text classification tasks. Preprocessing can be carried out by using the excellent tm text mining package. TermDocumentMatrix and DocumentTermMatrix objects of the package tm are currently implemented based on the spa

Re: [Rd] Tabs in R source code

2009-12-04 Thread Martin Maechler
> "S" == Sharpie > on Thu, 3 Dec 2009 19:44:59 -0800 (PST) writes: S> pengyu.ut wrote: >> >> http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html >> >> Here is the R style, which does not recommend using tabs. Although it >> might take some