Re: [R] Trying to extract an algorithm from a function

2011-01-01 Thread Erich Neuwirth
vars:::predict.vec2var vars:::predict.varest On 12/29/2010 9:31 PM, CALEF ALEJANDRO RODRIGUEZ CUEVAS wrote: Hi, I'm using package vars and I'm trying to extract the algorithm that function predict contained in that package in order to understand how does it work. When I type function VAR

Re: [R] Sweave for big data analysis

2011-01-01 Thread Liviu Andronic
(slightly off-topic) Hello On Sat, Jan 1, 2011 at 12:20 AM, Yihui Xie x...@yihui.name wrote: I still recommend the pgfSweave package (as usual) -- you can cache both data objects (using cacheSweave) and graphics (using pgf). Do these packages re-implement Sweave, or just use it as a

Re: [R] RGtk2 compilation problem

2011-01-01 Thread Michael Lawrence
Please watch for 2.20.5 and let me know if it helps. Not really sure what is going on here, but someone else has reported the same issue. Thanks, Michael On Wed, Dec 29, 2010 at 6:44 AM, Shige Song shiges...@gmail.com wrote: Dear All, I am trying to compileinstall the package RGtk2 on my

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2011-01-01 Thread Adam Carr
Neglected to reply to all. Sorry. - Forwarded Message From: Adam Carr adamlc...@yahoo.com To: David Winsemius dwinsem...@comcast.net Sent: Sat, January 1, 2011 8:58:26 AM Subject: Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics Hello David: Thanks

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread Ben Bolker
Berwin A Turlach berwin at maths.uwa.edu.au writes: G'day H.T. On Sat, 1 Jan 2011 00:41:10 -0500 (EST) H. T. Reynolds htr at udel.edu wrote: When I create a factor with labels in the order I want, write the data as a text file, and then retrieve them, the factor levels are no

Re: [R] RExcel doesn't get active dataset

2011-01-01 Thread Erich Neuwirth
Please subscribe to the rcom mailing list at rcom.univie.ac.at RExcel questions are handled on that list. On 12/20/2010 9:24 PM, jryan.dani...@gmail.com wrote: Hey everyone When I try to 'get active dataframe' from the context menu in excel using Rcmdr menus in excel, only the header and

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread David Winsemius
On Jan 1, 2011, at 12:41 AM, H. T. Reynolds wrote: Hello (and Happy New Year), When I create a factor with labels in the order I want, write the data as a text file, Why? What is the reason for this process. and then retrieve them, the factor levels are no longer in the proper order.

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2011-01-01 Thread David Winsemius
I thought Hadley's response was more definitive, but I did go on to test my alternate character strategy in ggplot and it did succeed. Whether you could get coloring or sixing that was appropriate I cannot say, since I figured the non-dingbatting option was more general. -- David On Jan 1,

Re: [R] Sweave for big data analysis

2011-01-01 Thread Yihui Xie
AFAIK, these packages often extend a part of the Sweave driver, which consists of several components, e.g. only modify the 'RweaveLatexRuncode' part in RweaveLatex function () { list(setup = RweaveLatexSetup, runcode = RweaveLatexRuncode, writedoc = RweaveLatexWritedoc, finish =

[R] How to make this script ask again

2011-01-01 Thread ADias
Hi, as an example I have made this script to give the user the answer if a number is odd or even: { cat(Please, enter a number (Zero ends)) n-scan(n=1) if(n==0)break i-(The number is odd) p-(The number is even) if (n%%2==0) p else i } If you run this script it will only work once, I mean,

[R] robust standard error of an estimator

2011-01-01 Thread Charlène Cosandier
Hi, I have ove the robust standard error of an estimator but I don't know how to do this. The code for my regression is the following: reg-lm(fsn~lctot) But then what do I need to do? -- Charlène Lisa Cosandier [[alternative HTML version deleted]]

Re: [R] python-like dictionary for R

2011-01-01 Thread Petr Savicky
On Fri, Dec 31, 2010 at 04:07:07PM -0800, Martin Morgan wrote: [...] Better to use an environment (and live with reference semantics) e - new.env(parent=emptyenv()); t0 - Sys.time() for (i in seq_len(1e6)) { key - as.character(i) e[[key]] - i if (0 == i %% 1)

Re: [R] robust standard error of an estimator

2011-01-01 Thread Andrew Miles
It depends on what you mean by robust. Robust to what? I recommend looking at the sandwich package which gives heteroskedasticity and autocorrelation robust variance/covariance matrices. For instance, you could do the following to get your OLS estimates with heteroskedasticity consistent

Re: [R] Retrieving Factors with Levels Ordered

2011-01-01 Thread H. T. Reynolds
Thanks to one and all. I now have a better understanding of the situation. Original message Date: Sat, 1 Jan 2011 11:03:59 -0500 From: David Winsemius dwinsem...@comcast.net Subject: Re: [R] Retrieving Factors with Levels Ordered To: h...@udel.edu Cc: r-help@r-project.org On Jan

[R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
Dear all, Please, I have a doubt regarding symbol plotting with data originating from a table. Please, see below: I have a tab delimited file called table1.txt with 4 columns: yposanimal var1var2 5 cat gina = lady gina \u2264 lady 7 dog bill = tonybill

Re: [R] How to make this script ask again

2011-01-01 Thread David Winsemius
On Jan 1, 2011, at 12:11 PM, ADias wrote: Hi, as an example I have made this script to give the user the answer if a number is odd or even: { cat(Please, enter a number (Zero ends)) n-scan(n=1) if(n==0)break i-(The number is odd) p-(The number is even) if (n%%2==0) p else i } If you run

Re: [R] How to make this script ask again

2011-01-01 Thread jim holtman
your example works fine for me: repeat { + cat(Please, enter a number (Zero ends)) + n-scan(n=1) + if(n==0)break + i-(The number is odd) + p-(The number is even) + if (n%%2==0) + p else i + } Please, enter a number (Zero ends)1: 1 Read 1 item Please, enter a number (Zero ends)1: 2 Read 1 item

Re: [R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread Victor F Seabra
sorry, I guess the table was a little confusing, I've quoted each cell to facilitate reading and attached a copy of the database file. ypos animal var1 var2 5 cat gina = lady gina \u2264 lady 7 dog bill = tony bill \u2265 tony 9 fish dude = bro dude \u2264 bro By the way,

Re: [R] robust standard error of an estimator

2011-01-01 Thread Frank Harrell
Is the (non-clustered) sandwich estimator really robust to autocorrelation? Thanks Frank - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/robust-standard-error-of-an-estimator-tp3170257p3170363.html Sent from

[R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Dear all, Please, I have a doubt regarding symbols plotting when the data originates from a table (i.e. is not manually fed into the text function) Please, see below: I have a tab delimited file called table1.txt with 4 columns. (I wasn't sure on how to attach the table to

[R] forming function arguments from strings

2011-01-01 Thread Mark Sharp
I am wanting to change arguments to a function dynamically. For example, in making a call to qplot, I want to dynamically define all of the arguments so that I can create the plot dependent on user input. I have played with eval() a bit, but have had no success. Mark Sharp

Re: [R] forming function arguments from strings

2011-01-01 Thread Uwe Ligges
On 01.01.2011 18:56, Mark Sharp wrote: I am wanting to change arguments to a function dynamically. For example, in making a call to qplot, I want to dynamically define all of the arguments so that I can create the plot dependent on user input. I have played with eval() a bit, but have had

Re: [R] Plot symbols: How to plot (and save) a graphic symbols originating from a table

2011-01-01 Thread David Winsemius
On Jan 1, 2011, at 2:15 PM, Victor F Seabra wrote: Dear all, Please, I have a doubt regarding symbol plotting with data originating from a table. I would say it has very little to do with the data structure and everything to do with the encodings, font conventions of console output, and

Re: [R] forming function arguments from strings

2011-01-01 Thread baptiste auguie
See aes_string(), perhaps. baptiste On 1 January 2011 18:56, Mark Sharp msh...@sfbr.org wrote: I am wanting to change arguments to a function dynamically. For example, in making a call to qplot, I want to dynamically define all of the arguments so that I can create the plot dependent on

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Thanks for your quick response, I'm using Vista and everything in my system is in English It's not just the way I view it, it's really \ \ u2264 since I can delete one of the \ and then it becomes \  u  2264, which is further replaced by the fix(table1) statement, was just to manually go

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Victor F Seabra
Please, you need to read.table to R as my problems start there If you want you can download the txt file at the link below https://docs.google.com/leaf?id=0BweZgDxYn9BkNmY1NThmMDEtOWUxZS00MzE0LTk0NTQ tYzdlODMxODgxYzJhhl=en thanks, Victor

[R] exit and save data from the terminal where command is frozen

2011-01-01 Thread Brian Kidd
Hello, Is there any way to stop an R execution in a terminal where the previous command appears to have caused the code to hang? I basically need to get back to the prompt. Note that control-c doesn't restore the prompt and running top -o cpu from another terminal shows R at 99% CPU usage.

Re: [R] exit and save data from the terminal where command is frozen

2011-01-01 Thread Duncan Murdoch
On 01/01/2011 3:42 PM, Brian Kidd wrote: Hello, Is there any way to stop an R execution in a terminal where the previous command appears to have caused the code to hang? I basically need to get back to the prompt. Note that control-c doesn't restore the prompt and running top -o cpu from

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2011-01-01 Thread Adam Carr
Hello Hadley: Thanks for the reply. My apologies for overlooking an easy fix. The symbols on the exported document look fine. Adam    From: Hadley Wickham had...@rice.edu Cc: r-help@r-project.org Sent: Thu, December 30, 2010 7:51:09 PM Subject: Re: [R]

Re: [R] pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics

2011-01-01 Thread Adam Carr
I am ashamed to admit that I missed the nondingbat option. I too tried the alternative character approach and it seemed to work fine. I am using a rather straightforward set of colors and, as far as I could tell anyway, the colors appeared to be reproduced correctly. Thanks again for taking to

[R] problem with read.table

2011-01-01 Thread Victor F Seabra
Dear all, Please, when I use the command: table1-read.table(table1.txt, header=TRUE, sep=\t) cells that contain \ u 2264 (corresponding to = sign) get imported as \ \ u2264. which causes the need to manually edit each cell using the fix command. Is there a way to fix that?

Re: [R] Plot symbols: How to plot (and save) a graphic with symbols originating from a table

2011-01-01 Thread Gabor Grothendieck
On Sat, Jan 1, 2011 at 3:00 PM, Victor F Seabra vsea...@uol.com.br wrote:   Dear all,   Please, I have a doubt regarding symbols plotting   when the data originates from a table   (i.e. is not manually fed into the text function)   Please, see below:   I have a tab delimited file called

[R] problem with postscript command

2011-01-01 Thread Victor F Seabra
please, when i use the command postscript, the symbol =(less than or equal to) is replaced by ... (ellipsis) how can I fix that? postscript(plot1.ps, width = 22, height = 11.5,pointsize=24,paper=special,bg=transparent) plot(NULL,xlim=c(1,10),ylim=c(1,10)) text(5,5,\u2264)

Re: [R] problem with postscript command

2011-01-01 Thread Ben Bolker
Victor F Seabra vseabra at uol.com.br writes: please, when i use the command postscript, the symbol =(less than or equal to) is replaced by ... (ellipsis) how can I fix that? postscript(plot1.ps, width = 22, height = 11.5,pointsize=24,paper=special,bg=transparent)

[R] Problem with uploading library

2011-01-01 Thread gaja
Hello. I'm new on that forum, so I would use some help... I'm programing with R program, have some exercise to do. So here it goes. 1. I have to upload two libraryes sp and maptools 2. This command is troubling me : towns - readShapeSpatial(OB/OB.shp) 3. When I'm pressing f5, there is an

[R] Example in Applied Spatial Analysis with R giving error

2011-01-01 Thread markdx
Example from page 29, Chapter 2.3 from Applied Spatial Analysis with R I am new to R...just trying to replicate the example from the book. m - matrix(c(0,0,1,1), ncol = 2, dimnames = list(NULL, + c (min, max))) Error in +c(min, max) : invalid argument to unary operator Thoughts? -- View

Re: [R] problem with read.table

2011-01-01 Thread Victor F Seabra
This was already solved in another post: [1]Plot symbols: How to plot (and save) a graphic with symbols originating from a table Sorry about that, the first post was too big as I was making more than 1 question, so I decided to break it down

[R] Windows 7, R and org-babel issue

2011-01-01 Thread Axolotl9250
Hi, I'm hoping somebody can help me with this I'm a little stuck, I've followed the method as closely to the Linux way to get org mode exporting to pdf through latex my work with R. I have emacs extracted and installed to Program Files, and ran addpm, I have Rterm in my path, and I extracted ESS

[R] Clusteranalysis Chi-square test and SingleLinkage

2011-01-01 Thread Thorsten Biegner
Hi The short version of my questions is this: How can I run a chi-square test over a matrix (table) to get the distanaces between rows and then run a SingleLinkage (or other fusion algorithm over the resulting table? The long-version of my question: My data consists of different

Re: [R] Example in quot; Applied Spatial Analysis with Rquot; giving error

2011-01-01 Thread Ben Bolker
markdx mrkdennehy at gmail.com writes: Example from page 29, Chapter 2.3 from Applied Spatial Analysis with R I am new to R...just trying to replicate the example from the book. m - matrix(c(0,0,1,1), ncol = 2, dimnames = list(NULL, + c (min, max))) Error in +c(min, max) : invalid

Re: [R] Problem with uploading library

2011-01-01 Thread Jim Lemon
On 01/02/2011 12:54 PM, Joshua Wiley wrote: Dear Gaja, If sp and maptools are not already installed, you'll need to do that. It is often recommended that you update your existing packages before installing new ones. Once that is done (or if you have already), then you just need to load the

Re: [R] How to make this script ask again

2011-01-01 Thread ADias
thank you for the answers, problem solved Regards, ADias. -- View this message in context: http://r.789695.n4.nabble.com/How-to-make-this-script-ask-again-tp3170243p3170611.html Sent from the R help mailing list archive at Nabble.com. __

[R] The Percentile of a User-Defined pdf

2011-01-01 Thread Nissim Kaufmann
I would like to give a probability distribution function of a function of (x,y) on the half-plane y0, and a constant 0c1 and I would like to know the c percentile of the marginal distribution of x. I have tried along the lines of the following but I keep getting errors: # SIMPLIFIED PROBLEM #

Re: [R] Problem with uploading library

2011-01-01 Thread Jim Lemon
On 01/02/2011 04:18 PM, Joshua Wiley wrote: ... This makes me wonder if you could somehow have it return any or all layers? One of the first things I did was look for a function that would return all the information I needed to know. I thought that ogrInfo might do the trick, but it doesn't.