Re: [R] currency conversion function?

2009-10-16 Thread Liviu Andronic
On 10/15/09, Jeff Ryan jeff.a.r...@gmail.com wrote: getFX(EUR/USD,from=2009-04-01) Indeed, with the date correctly specified, the function no longer generates errors. There is one issue though (similar to the one in the code posted by Henrique): getFX(EUR/PEN,from=2009-10-16) [1] EURPEN

Re: [R] how to install JGR manually?

2009-10-16 Thread Liviu Andronic
(cc'ing JGR specific list) Hello On 10/15/09, Carl Witthoft c...@witthoft.com wrote: Here's the problem: on Windows, the 'jgr.exe' tool starts up by checking for a connecting to the 'net in order to grab the support packages. Well, we have machines at work that are not and never will be

Re: [R] how to install JGR manually?

2009-10-16 Thread Liviu Andronic
On 10/16/09, c...@witthoft.com c...@witthoft.com wrote: It doesn't get that far. I launch jgr.exe and it announces that it can't connect to the internet, and shuts itself down. In R, does the following work? require(JGR) JGR() Liviu __

[R] currency conversion function?

2009-10-14 Thread Liviu Andronic
Dear all Is there any R function that would perform currency conversion using up-to-date exchange rates? I would be looking for a function that allows to download recent exchange rates (say, from Yahoo!) and then use these in converting currencies (say, USD to EUR). I am not sure whether

Re: [R] currency conversion function?

2009-10-14 Thread Liviu Andronic
Hello On 10/14/09, Henrique Dallazuanna www...@gmail.com wrote: foo('BRL', 'USD', '2009-10-14') Nice function, thank you. Two issues, though: - it seems to provide reverse output. Example: ## how many dollars do you get from one euro? foo('EUR', 'USD', '2009-10-14') [1] 0.67544 ## however,

Re: [R] Running R scripts from a GUI interface

2009-10-10 Thread Liviu Andronic
On 10/10/09, Gabor Grothendieck ggrothendi...@gmail.com wrote: There are many approaches to GUIs in R but for something quick, which I gather is your main aim here, have a look at the fgui package and also the very similar ggenericwidget function in the gWidgets package. There is also rpanel

Re: [R] R on Linux, and R on Windows , any difference in maturity+stability?

2009-10-06 Thread Liviu Andronic
On 10/6/09, Robert Wilkins iwriteco...@gmail.com wrote: Will R have more glitches on one operating system as opposed to another, Probably not. or is it pretty much the same? Depending on the complexity of the code, it is pretty much the same. I recently had a (relatively simple) group

Re: [R] Text editors for Sweave (rnw) files

2009-10-06 Thread Liviu Andronic
On 10/6/09, Gregory Gentlemen gregory_gentle...@yahoo.ca wrote: Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for

Re: [R] trouble with html() in Hmisc

2009-10-03 Thread Liviu Andronic
Hello On 10/3/09, Mark Difford mark_diff...@yahoo.co.uk wrote: This has nothing to do with Hmisc or hevea. Although I have LyX installed, I don't quite understand where LyX comes into play. The R code in the original e-mail takes a table-like object and transforms it into LaTeX; then html()

Re: [R] trouble with html() in Hmisc

2009-10-03 Thread Liviu Andronic
(I am also cc-ing the author of Hmisc) Hello Thank you for clearing this up. One more concern, though. On 10/3/09, Mark Difford mark_diff...@yahoo.co.uk wrote: Does this mean that Hmisc produces LyX code (as opposed to LaTeX code)? No. Sorry for confusing you: it means that html does not know

[R] trouble with html() in Hmisc

2009-10-02 Thread Liviu Andronic
Dear all On my system html() conversion of a `latex()' object fails. Follows a dummy example: require(Hmisc) data(Angell) .object - cor(Angell[,1:2], use=complete.obs) tmp - latex(.object, cdec=c(2,2), title=) class(tmp) [1] latex html(tmp) /tmp/RtmprfPwzw/file7e72f7a7.tex:9: Warning:

Re: [R] correlation help

2009-09-21 Thread Liviu Andronic
On 9/21/09, William Revelle li...@revelle.net wrote: correlations) use either the rcorr function in the Hmisc package or the corr.test function in the psych package. Also, check the graphical interfaces in Rcmdr and Deducer. Liviu __

Re: [R] acf gives correlations 1

2009-09-14 Thread Liviu Andronic
Hello On Mon, Sep 14, 2009 at 2:53 PM, Steve Jones st...@squaregoldfish.co.uk wrote: Looks like I'll have to compute the acf myself. Shame, but such is life. Wouldn't na.omit be an option? Liviu __ R-help@r-project.org mailing list

Re: [R] Teaching material for children...

2009-09-14 Thread Liviu Andronic
Hello On Mon, Sep 14, 2009 at 2:17 PM, Vince Fulco vful...@gmail.com wrote: Wondering if anyone is aware of resources appropriate for home schooled pre-teen/teen relatives? There is http://r-tutor.com/, but it is for college students/beginners in stats. It would make sense to repost the

Re: [R] Plea: No long unbroken lines, please!

2009-09-14 Thread Liviu Andronic
Hello On 9/14/09, Ted Harding ted.hard...@manchester.ac.uk wrote: This has been sent by software which inserted no line-breaks. As a result, each paragraph is viewed (by my browser, Firefox) as one very long line, not wrapped. In particular, the third Slightly off-topic, but in such cases

Re: [R] For sending my R package as part of R-project

2009-09-11 Thread Liviu Andronic
Hello On Fri, Sep 11, 2009 at 4:40 PM, Lio, Yuhlong yuhlong@usd.edu wrote: The reviewers and editor suggest the R package for the sampling plans of the paper be part of R-project. Please let me know what I should do to make the R package available for R-project group. I would suggest

Re: [R] [Hmisc] Latex to pdf

2009-09-06 Thread Liviu Andronic
On 9/6/09, Jeroen Ooms j.c.l.o...@uu.nl wrote: I would like to print some tables and figures to a PDF device on a CentOS 5 vps. However, I cannot seem to get the latex function from Hmisc working. I There is also xtable() for transferring tables to LaTeX. Liviu

Re: [R] Computer Modern Fonts in R graphic

2009-08-31 Thread Liviu Andronic
Hello And sorry for the brief highjacking. On 8/31/09, Charlie Sharpsteen ch...@sharpsteen.net wrote: The tikzDevice translates R graphics instructions into a LaTeX-friendly format that can be included directly into documents where the font used in the figure will match that used in the

Re: [R] Best R text editors?

2009-08-30 Thread Liviu Andronic
Hello, On 8/30/09, Uli Kleinwechter ulikleinwech...@yahoo.com.mx wrote: contributing to your poll: Also Emacs+ESS on Linux. Could someone give a brief and subjective overview of ESS. I notice that many people use it, and many describe it as the tool for the power user. As far as I'm concerned,

Re: [R] Best R text editors?

2009-08-30 Thread Liviu Andronic
On 8/30/09, Grzes gregori...@gmail.com wrote: I'm using PLD Linux and in my opinion, if you looking for very easy editor - Geany!!! It'll be fantastic ;) Yeah, Geany is very simple and comfortable. But there is no direct link to R, and not being able to evaluate code on the fly is a

Re: [R] Best R text editors?

2009-08-28 Thread Liviu Andronic
On 8/27/09, Jonathan Greenberg greenb...@ucdavis.edu wrote: Quick informal poll: what is everyone's favorite text editor for working with R? I'd like to hear from people who are using editors that have some level of direct R interface (e.g. Tinn-R, Komodo+SciViews). Thanks! JGR

Re: [R] Best R text editors?

2009-08-28 Thread Liviu Andronic
On 8/28/09, Stefan Grosse singularit...@gmx.net wrote: (JGR useless here since it consumes 100% CPU at least with Fedora Linux) The quick fix is to access Help About after the splash screen disappears at start-up. This works on Debian and Ubuntu. Liviu

Re: [R] Creating a simple line graph

2009-08-27 Thread Liviu Andronic
Hello On 8/27/09, Josh Roll j_r...@hotmail.com wrote: I am having trouble getting both graphs on the same page. Its separating them, especially when i write them to a pdf. I need visual comparison capabilities. Do i need to include the two data sets in the same plot to make this

Re: [R] teaching R

2009-08-27 Thread Liviu Andronic
On 8/27/09, Andreas Stefik stef...@gmail.com wrote: Along this same note, are there any editors that have good code completion (intellisense) capabilities for R? I'll be teaching R to undergraduates this semester and I imagine having code completion would be helpful. Personally I find JGR a

[R] faulty formatting of toLatex(sessionInfo())

2009-08-26 Thread Liviu Andronic
Dear all I am writing an Sweave document and have encountered formatting issues with the locale part of toLatex(sessionInfo()). The fact that there is no spaces between the various locale variables means that LaTeX cannot easily find an appropriate place to break the lines, and some will get

Re: [R] teaching R

2009-08-26 Thread Liviu Andronic
Hello On 8/26/09, Michael Nestrud m...@ataraxis.org wrote: Any advice / what works / what doesn't work is appreciated for those that have tried this before me. It could prove helpful to forward similar questions to r-sig-teaching. Also, there was a recent discussion on the topic [1]. Liviu

Re: [R] faulty formatting of toLatex(sessionInfo())

2009-08-26 Thread Liviu Andronic
On 8/26/09, Frank E Harrell Jr f.harr...@vanderbilt.edu wrote: G. Jay Kerns wrote: There was a closely related discussion last April: https://stat.ethz.ch/pipermail/r-devel/2009-April/053094.html and IIRC this was fixed for R version 2.10. If you still have trouble just do s -

[R] set pdf.options() encoding to UTF-8

2009-08-26 Thread Liviu Andronic
Dear all Can anyone point to a list of valid pdf.options() encodings? I checked ?pdf and ?postscript, but they do not quite answer my questions. I would like to try UTF-8 instead of the default ISOLatin1.enc for Sweave plots (I have issues with Greek characters in labels). Thank you Liviu --

Re: [R] Simulating data (stupid question)

2009-08-25 Thread Liviu Andronic
Hello Your attachement didn't seem to get through. You can simulate data using rnorm() or any of the r*() functions [1]. You can also use it to add noise to a custom function that you use to generate your specific data. Liviu [1] http://www.statmethods.net/management/functions.html On 8/25/09,

Re: [R] Creating a simple line graph

2009-08-25 Thread Liviu Andronic
Hello I couldn't quite understand exactly what graph you are looking for, so I'd be unable to provide code. Couple of pointers, though. - Put your data into a data frame and look at Rcmdr Graphs menu. It can do many types of them, and it should give you enough examples to get started with. - Try

Re: [R] [] for R

2009-08-25 Thread Liviu Andronic
On 8/24/09, kfcnhl zhengchenj...@hotmail.com wrote: I am assuming the variable out is the output parameter. However, I don't understand what is out[1+xi*xx0]? Can someone explain this to me? http://www.statmethods.net/management/subset.html Liviu

Re: [R] Horisontal line in xtable

2009-08-25 Thread Liviu Andronic
Late answer, but still.. On 6/17/09, christiaan pauw cjp...@gmail.com wrote: I want a horisontal line that separates the results from the sample information i.e. a horisontal line on the bottom of the line second from last ?print.xtable hline.after: When 'type=latex', a vector of numbers

[R] xtable longtable with caption on top

2009-08-25 Thread Liviu Andronic
Dear all I would like to export a matrix to a LaTeX longtable environment that would have its caption on top of the table. However xtable() seems to bar me from doing this: print(xtable(mtcars[1:10,c(1,2)], caption=CARS), + tabular.environment=longtable, caption.placement=top + , floating=F) %

[R] expanding 1:12 months to Jan:Dec

2009-08-20 Thread Liviu Andronic
Dear R users I would like to do some spreadsheet style expansion of dates. For example, I would need to obtain a vector of months. I approached in an obviously wrong way: paste(01:12) [1] 1 2 3 4 5 6 7 8 9 10 11 12 as.Date(paste(01:12), %m) [1] NA NA NA NA NA NA NA NA NA NA NA NA to

[R] globally set digits=3 in Sweave

2009-08-20 Thread Liviu Andronic
Dear all I would like to globally set options(digits = 4) in an Sweave document. I've read this thread [1] where it was suggested to set the above option and pass every printed number through format(). Aanother way to do so would be to round(expr, 4). However I would like to set the digits option

Re: [R] globally set digits=3 in Sweave

2009-08-20 Thread Liviu Andronic
On 8/20/09, Duncan Murdoch murd...@stats.uwo.ca wrote: Why not put echo=FALSE= options(digits=4) @ somewhere near the top of your document? I did so, but it has no practical effect on \Sexpr{} (which I'm interested in, and failed to mention in the original e-mail). With echo=FALSE=

Re: [R] trouble with Rcmdr

2009-08-19 Thread Liviu Andronic
Hello, On 8/18/09, Erin Hodgess erinm.hodg...@gmail.com wrote: I used it on Saturday, and it worked fine. When I used it today, the window did not appear. This is version 2.9.1 on Ubuntu Jaunty Jackalope. Did you make any system updates between Sat and today? Liviu

Re: [R] visualizzazione colonne

2009-08-19 Thread Liviu Andronic
On 8/19/09, Greg Snow greg.s...@imail.org wrote: Add ?View (note the capitol V) to the list. There is also showData() in library(relimp), and object.browser() from within JGR. The Data Viewer in Deducer is also an option, but may currently be slow for large data frames. Liviu

Re: [R] three dimensions barchart

2009-08-19 Thread Liviu Andronic
On 8/20/09, Yichih Hsieh yichih.hs...@gmail.com wrote: All help high appreciated. Try library(fortunes) fortune(3-D) fortune(Excel) Issue the last two commands several times. Liviu __ R-help@r-project.org mailing list

Re: [R] reading in MS Word files

2009-08-18 Thread Liviu Andronic
Hello, On 8/17/09, Mark Kimpel mwkim...@gmail.com wrote: I am familiar with packages that read and write Excel files on both Windows and Linux platforms. Do any packages provide similar functionality for MS Word files? I have a lot of text processing to do and the text is embedded in ~200

[R] bootstrapped correlation confint lower than -1 ?

2009-08-16 Thread Liviu Andronic
Dear R users, Does the results below make any sense? Can the the interval of the correlation coefficient be between *-1.0185* and -0.8265 at 95% confidence level? Liviu library(boot) data(mtcars) with(mtcars, cor.test(mpg, wt, met=spearman)) Spearman's rank correlation rho data:

Re: [R] bootstrapped correlation confint lower than -1 ?

2009-08-16 Thread Liviu Andronic
Hello, On 8/16/09, Robert A LaBudde r...@lcfltd.com wrote: The basic interval (which you are using by default) is just the usually normal distribution interval with the standard error estimated from the resampling distribution. It has all the benefits and problems of assuming a normal

Re: [R] sweave and R. Searching for a document that will get me started

2009-08-07 Thread Liviu Andronic
Hello, On Fri, Aug 7, 2009 at 9:26 AM, David Hajagedhajag...@gmail.com wrote: The hard task is to learn LaTeX. You can get around learning (much of) LaTeX by using Sweave with LyX. You will find information in the r-help and lyx ML archives, and on Google. Liviu

Re: [R] plotting huge data

2009-08-07 Thread Liviu Andronic
Hello, On Fri, Aug 7, 2009 at 8:28 AM, gauravbhattigaurav15...@hotmail.com wrote: I have a data frame with 25000 rows containing two columns Time and Distance. When I plot a simple distance versus time plot, the plot is very confusing showing no general trend because of the large data. Is

Re: [R] Deleting Data Sets in R Commander

2009-08-06 Thread Liviu Andronic
Hello, On Thu, Aug 6, 2009 at 1:38 AM, Lavida Chavezchavez.lav...@gmail.com wrote: Hi. I have been making sample data sets to learn how to use R Commander, and now I have several useless data sets that are cluttering up the place where data sets are stored in R Commander. I want to get rid of

Re: [R] How to stop an R script when running JGR on a Linux/SuSE system

2009-08-02 Thread Liviu Andronic
Hello, On 8/2/09, Bernd Kreuss prof7...@googlemail.com wrote: I would even make the changes on my own (i probably would already have done it) and supply patches if i only could find any hint on how to build JGR from sources. (where to place the source files, what command to start the

Re: [R] How to stop an R script when running JGR on a Linux/SuSE system

2009-08-01 Thread Liviu Andronic
Hello, On 7/31/09, mau...@alice.it mau...@alice.it wrote: When I need to stop a running R script on Windows or Mac I just use the esc key which kills the current script and returns the control to R interpreter. But when I run R from JGR the esc is useless as well as the other available

Re: [R] storing output in html or pdf table format.

2009-07-28 Thread Liviu Andronic
Hello, On 7/28/09, Albert EINstEIN sateeshvar...@gmail.com wrote: clarification on output in R. I have generated summary statistics output for dataset (E.g. sales) in output window. Now i want to store that output in a html or pdf in a table format. if possible can any one provide code for

Re: [R] [Rd] How to create a permanent dataset in R.

2009-07-27 Thread Liviu Andronic
On 7/27/09, Albert EINstEIN sateeshvar...@gmail.com wrote: can we create our own packages in R. It would be very helpful for us, if you provide any information regarding this. Yes. See this [1]. Liviu [1] http://cran.r-project.org/doc/manuals/R-exts.pdf

Re: [R] [Rd] How to create a permanent dataset in R.

2009-07-24 Thread Liviu Andronic
(redirecting to r-help; it seems more appropriate for such a question) Hello, On Fri, Jul 24, 2009 at 8:11 AM, Albert EINstEINsateeshvar...@gmail.com wrote: Actually, we know that If we create a dataset in R ,after closing the session the dataset automatically is closed. I tried for creating

Re: [R] How to list R object properties save workspace?

2009-07-22 Thread Liviu Andronic
Hello, On Wed, Jul 22, 2009 at 1:22 PM, Matej Kovacicmatej.kova...@owca.info wrote: I know how to list all objects (with ls()), but how to list all properties of them? For instance, I found function object.size(), but I would also like to know whether one object is a dataset or just one

Re: [R] (-8)^(1/3) == NaN?

2009-07-19 Thread Liviu Andronic
On Sun, Jul 19, 2009 at 7:33 PM, jim holtmanjholt...@gmail.com wrote: -8^1/3 is parsed as -(8^1)/3 = -2.6 However the following is evaluated as one would expect: 8^(1/3) [1] 2 -8^(1/3) [1] -2 Perhaps it is parsed in this way: -(8^(1/3)) [1] -2 Liviu

Re: [R] (-8)^(1/3) == NaN?

2009-07-19 Thread Liviu Andronic
On Sun, Jul 19, 2009 at 12:28 AM, jim holtmanjholt...@gmail.com wrote: First of all, read FAQ 7.31 to understand that 1/3 is not representable in floating point.  Also a^b is actually exp(log(a) * b) and log(-8) is not valid (NaN). If this is so, why would the following evaluate as expected?

Re: [R] spreadsheet-style autoupdating

2009-07-16 Thread Liviu Andronic
Hello Steve, On Thu, Jul 16, 2009 at 2:28 AM, S Ellisons.elli...@lgc.co.uk wrote: Auto-updating sounds hard in R for a 'regular' data frame. You could perhaps define an entirely new class of object and define data entry/indexing methods so that, say, they sought functions in an attribute

Re: [R] Is it possible to use EGARCH and GJR in R?

2009-07-15 Thread Liviu Andronic
Hello, On 7/15/09, Andriy Fetsun fet...@googlemail.com wrote: Could you please help me with EGARCH and GJR? Do you mean JGR [1]? If so, install it and try running your code in it. Unless you bump into very specific issues, it should work. Liviu [1]

[R] spreadsheet-style autoupdating

2009-07-15 Thread Liviu Andronic
Dear all, I am curious whether one can automatically update, say, a column in R, similar to how spreadsheets (Excel, etc.) do? In my specific case I have two columns with logical data, which individually convey different information, although ultimately for a common purpose (flagging for removal).

Re: [R] spreadsheet-style autoupdating

2009-07-15 Thread Liviu Andronic
Hello Patrick, On 7/15/09, Patrick Burns pbu...@pburns.seanet.com wrote: How about something along the lines of: apply(twocolumns, 1, any) This efficiently solves the first part of my question. I will probably content myself with issuing this command each time I update one of the twocolumns;

Re: [R] save the result into a word file

2009-07-03 Thread Liviu Andronic
Hello, On Fri, Jul 3, 2009 at 2:15 PM, Allan Engelhardtall...@cybaea.com wrote: 1. Cut-and-paste from the R console.  (Cut-and-paste has got to be the best computer invention ever.) First option is probably interesting when using in Word a monospace font for R results. For tables, you can also

Re: [R] productivity tools in R?

2009-07-02 Thread Liviu Andronic
Hello, On 7/1/09, Michael comtech@gmail.com wrote: More pointers about using R for efficiency in development are highly apprecaited! This is more from the point of view of the beginner; something that I wrote recently on r-sig-teaching: skip I will mention a recent discussion [1] on

Re: [R] productivity tools in R?

2009-07-02 Thread Liviu Andronic
On 7/2/09, Warren Young war...@etr-usa.com wrote: reason it has to be that way. Maybe someone will port some of the Mac GUI's features over to the Windows version. Or in the mean-time someone would try JGR to see whether it gets farther than the Windows Rgui. Liviu

Re: [R] productivity tools in R?

2009-07-02 Thread Liviu Andronic
On 7/2/09, Mark Knecht markkne...@gmail.com wrote: For kicks I tried JGR yesterday. In the Rgui console, or sourcing, my code runs fine. In JGR it crashed with messages about stack imbalances. Perhaps report the exact issue to stats-rosuda-de...@listserv.uni-augsburg.de; the JGR devels may

Re: [R] conditional coloring of output text in console or in GUI

2009-06-30 Thread Liviu Andronic
Hello, On 6/30/09, Christopher W. Ryan cr...@binghamton.edu wrote: suppose I have some logical vector x - as.logical(c(0,0,0,1,0,0,1,1,0)) x How would I make the words TRUE appear on the screen in a different color from the words FALSE? I believe xterm256 would help with this, and

Re: [R] garchFit in fGarch fitted values are all the same

2009-06-30 Thread Liviu Andronic
Hello, On 7/1/09, Ron Burns rrbu...@cox.net wrote: In trying to fit garch models in above environment. I am getting reasonable fitted coefficients, but the fitobj...@fitted are all the same. This is true even for the help page example: There is a better chance of getting good answers if

Re: [R] Saving RGL Graphs

2009-06-29 Thread Liviu Andronic
Hello, On Mon, Jun 29, 2009 at 6:49 AM, Patrick Gedeonpatg...@gmail.com wrote: I have created several 3d scatter plots using the rgl package. I wish to save each of them so that I can later open them in R and view/rotate them. What is the command to do this? Wouldn't it suffice to keep in a

Re: [R] Stata file Import and Analysis in R

2009-06-29 Thread Liviu Andronic
Hello, On Mon, Jun 29, 2009 at 2:58 PM, saurav pathakpathak.sau...@gmail.com wrote: I have a  stata data set (.dta file) of size 600 MB, I need to import it in If you're new to R, you can use library(Rcmdr) menus to import the stata data set. Be sure to have at least as much RAM as the size of

Re: [R] Optimization and Linear Programming in R

2009-06-26 Thread Liviu Andronic
Hello, On 6/26/09, chris.wil...@csiro.au chris.wil...@csiro.au wrote: We are looking for a solver that can deal with this nonlinear integer programming problem. We looked at a number of packages on the CRAN Task View: Optimization and Mathematical Programming, however, we have not been

Re: [R] Heteroskedasticity and Autocorrelation in SemiPar package

2009-06-26 Thread Liviu Andronic
On Fri, Jun 26, 2009 at 10:11 PM, Susan Chensuen...@yahoo.com wrote: Does anyone know how to report heteroskedasticity and autocorrelation-consistent standard errors when using the spm command in SemiPar package? Suppose the original command is sp1-spm(y~x1+x2+f(x3), random=~1,group=id)

Re: [R] Forecast GARCH model

2009-06-23 Thread Liviu Andronic
Hello, There was a recent discussion [R] Predict GARCH [1]. Liviu [1] http://www.nabble.com/Predict-GARCH-td23962363.html#a23962363 On Tue, Jun 23, 2009 at 1:02 PM, Ana Ramosaritara...@gmail.com wrote: Hi, I've fitted a GARCH(1,1) for the residuals of my time serie (X). X is an ARMA(1,1)

Re: [R] [Rd] Floating point precision / guard digits? (PR#13771)

2009-06-22 Thread Liviu Andronic
(re-posting to the appropriate list) On 6/20/09, Dr. D. P. Kreil dpkr...@gmail.com wrote: you can suggest an online resource to help me use the right vocabulary and better understand the fundamental concepts, I am of course There is in R the accuracy [1] package. It has a vignette (and

[R] Sweave and xtable floating issues -- SOLVED

2009-06-19 Thread Liviu Andronic
Dear all, I've recently made in LyX a report using Sweave and run into troubles with xtable() generated LaTeX tables. One example, xtable() commands inside floats (table, box (minipage), etc.) will make the LaTeX compilation fail. Another, if four-five xtable() commands are run in a sequence, at

Re: [R] R function found in two packages !

2009-06-18 Thread Liviu Andronic
On 6/18/09, Martial Sankar martial100...@hotmail.com wrote: Is there a mean to automatically choose one version of the 'rbind' function ? By default, R chose the 'rbind' from {base}, i would lke to use the one from {IRanges}... I am usually solving these issues with: base::rbind() or

Re: [R] Trouble with optim on a specific problem

2009-06-16 Thread Liviu Andronic
Hello, On 6/16/09, Stu @ AGS s...@agstechnet.com wrote: Error in optim(c(0.66, 0.999, 0.064), pe, NULL, method = L-BFGS-B) : objective function in optim evaluates to length 6 not 1 skip pe - function(c) c[1]*x1*x2^c[2]*x3^c[3] I would suspect a matrix multiplication issue. In order to

Re: [R] Trouble with optim on a specific problem

2009-06-16 Thread Liviu Andronic
Hello, On 6/16/09, Stu @ AGS s...@agstechnet.com wrote: Thanks for your response! No, my basic equation does not use matrices at all. It takes scalar values and returns a scalar. Not quite. Taking the example above, if you run the following: with(observs , {1*x1*x2^2*x3^3}) [1] 0.000e+00

Re: [R] coxph and robust variance estimation

2009-06-15 Thread Liviu Andronic
On 6/15/09, Sven Knüppel sven.knuep...@gmx.de wrote: My question is, how can I use robust estimation for the analysis of deviance? Did you check the Robust Task View and the packages listed in it? Perhaps some would do what you need. Liviu __

Re: [R] Predict GARCH

2009-06-10 Thread Liviu Andronic
Hello, On 6/10/09, Daniel Mail d20...@live.com.pt wrote: i was trying to predict values for a garch, so i did: predict(fitgarch,n.ahead = 20) but this doesn't work. Someone can tell me how to get the 20 values ahead of a garch model. You didn't specify what function you used to obtain

Re: [R] Difficulties with the simpest table

2009-06-10 Thread Liviu Andronic
Hello Dmitry, On 6/10/09, Dmitry Gospodaryov gospodar...@rambler.ru wrote: I have the data arranged in table (in Excel, or Notepad): x y 0 100 2 100 4 80 6 40 8 0 I need to transfer these data in R

Re: [R] SECOND MESSAGE: Re: Question about R an SPSS

2009-06-09 Thread Liviu Andronic
On Tue, Jun 9, 2009 at 2:47 AM, DIEGO CHAVEZdiego.cha...@andinanet.net wrote:  I am reading about the functional features of R statistical software, because I want to compare these progarm with the basic module of SPSS software.  I would like to know  if the  R  version 2.9.0 application  

Re: [R] alternative to built-in data editor

2009-06-06 Thread Liviu Andronic
On Thu, May 28, 2009 at 8:52 AM, Dieter Mennedieter.me...@menne-biomed.de wrote: I have never seen the data editor. It's fix(), very similar to View(), but not crashing. Although showData() in relimp (the same used by Rcmdr) is often enough for viewing data, fix() is somewhat rudimentary. Isn't

Re: [R] alternative to built-in data editor

2009-06-06 Thread Liviu Andronic
On 6/6/09, Liviu Andronic landronim...@gmail.com wrote: (cross-platform) alternative to fixing data in a spreadsheet-style environment in R (those on Windows can try RExcel)? Perhaps built on other toolkits? Oh, there is one, in JGR. Issue object.browser() to browse all workspace objects

Re: [R] variance does not equal serial covariance of lag zero?

2009-06-02 Thread Liviu Andronic
On Tue, Jun 2, 2009 at 3:34 PM, Thomas Lumley tlum...@u.washington.edu wrote: The answers differ by a factor of 19/20, ie, (n-1)/n, so it is presumably the choice of denominator for the variance that differs. Same issue is present in ccf(): cov() != ccf(lag.max=0, type=covariance). Liviu

Re: [R] (OT) Does pearson correlation assume bivariate normality of the data?

2009-05-29 Thread Liviu Andronic
Thanks all for the on- and off-list responses. For a relevant discussion see the normality tests thread [1], and specifically another excellent overview by Thomas on the robustness of the t-test [2]. Best, Liviu [1] http://thread.gmane.org/gmane.comp.lang.r.general/86180 [2]

[R] (OT) Does pearson correlation assume bivariate normality of the data?

2009-05-26 Thread Liviu Andronic
Dear all, The other day I was reading this post [1] that slightly surprised me: To reject the null of no correlation, an hypothsis test based on the normal distribution. If normality is not the base assumption your working from then p-values, significance tests and conf. intervals dont mean much

Re: [R] How to draw a R plot in Java frame ?

2009-05-16 Thread Liviu Andronic
On Sat, May 16, 2009 at 9:18 PM, Obi Wan wan_...@ymail.com wrote: I am new to R and would like to display a R plot inside my Java app. Is there a possibility to do that? If so, what library do I need? Perhaps library(JavaGD) is an option. It is currently used in JGR. Liviu

[R] replace % with \%

2009-05-15 Thread Liviu Andronic
Dear all, I'm trying to gsub() % with \% with no obvious success. temp1 - c(mean, sd, 0%, 25%, 50%, 75%, 100%) temp1 [1] mean sd 0% 25% 50% 75% 100% gsub(%, \%, temp1, fixed=TRUE) [1] mean sd 0% 25% 50% 75% 100% Warning messages: 1: '\%' is an unrecognized escape in a

Re: [R] replace % with \%

2009-05-15 Thread Liviu Andronic
, 2009 at 5:13 PM, Patrick Burns pbu...@pburns.seanet.com wrote: See 'The R Inferno' page 46. Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of The R Inferno and A Guide for the Unwilling S User) Liviu Andronic wrote: Dear all, I'm trying to gsub

[R] search R vignettes

2009-04-29 Thread Liviu Andronic
Dear all, To list all vignettes installed on my system, I would issue `vignette(all = TRUE)'. But how can one search for a topic in all vignettes available on CRAN? One method was suggested here [1]---search on Google: `smth filetype:pdf site:cran.r-project.org/doc/vignettes'---, but it does not

Re: [R] joined R-today

2009-04-21 Thread Liviu Andronic
On Tue, Apr 21, 2009 at 11:57 AM, Bala subramanian bala.biophys...@gmail.com wrote: Dear Simon, I installed the ncdf package in the way you suggested but still i got the same error i got before. I haves pasted below the installation log and errors. Does ncdf depend on netcdf [1]? If so,

Re: [R] Building GUI for custom R application

2009-04-14 Thread Liviu Andronic
On Tue, Apr 14, 2009 at 9:46 PM, mah harwood...@gmail.com wrote: If the desired end-state is a regression model and the appropriate diagnostics, the Rcmdr package contains the necessary tools.  Rcmdr is available for many Linux distribuitons as well as for Windows, and it is able to do much

Re: [R] Cross-platforms solution to export R graphs

2009-04-11 Thread Liviu Andronic
On Sat, Apr 11, 2009 at 3:20 PM, Philippe Grosjean phgrosj...@sciviews.org wrote: format (PDF) to another one (SVG). In Inkscape, you use File - Open... for the first step, and File - Save as... for the second. Since it is a vector format, your graph should not look pixelised. Yes, this is

Re: [R] Cross-platforms solution to export R graphs

2009-04-10 Thread Liviu Andronic
Hello, On Thu, Apr 9, 2009 at 3:04 PM, Philippe Grosjean phgrosj...@sciviews.org wrote: Cross-platforms solution to export R graphs There is playwith, and latticist, which seem cross-platform (binaries available for both MacWin). rattle uses latticist. Rcmdr can be used for saving graphs.

Re: [R] Cross-platforms solution to export R graphs

2009-04-10 Thread Liviu Andronic
On Thu, Apr 9, 2009 at 3:04 PM, Philippe Grosjean phgrosj...@sciviews.org wrote: The page is at: http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export. The article suggests to use Inksacpe for PDF - SVG conversion. I've recently experimented this, but it seems that the graph

[R] JGR and system()

2009-03-16 Thread Liviu Andronic
Dear all, JGR seems unable to report the results of system() commands. In a command-line R session: system(pwd) /home/liviu system(acpitool) AC adapter : on-line Thermal zone 1 : ok, 67 C system(asdf) sh: asdf: command not found In JGR: system(pwd) system(ls -F) system(acpitool)

Re: [R] everybody loves R...

2009-02-19 Thread Liviu Andronic
On Thu, Feb 19, 2009 at 5:29 PM, Gábor Csárdi csa...@rmki.kfki.hu wrote: I don't want to be mean, I really like wikidot, but isn't it a better solution to use the R wiki instead? http://wiki.r-project.org/rwiki/doku.php Or even to contribute to existing well-structured sites such as Quick-R

Re: [R] How do I get my IT department to bless R?

2009-01-30 Thread Liviu Andronic
On 1/30/09, Warren Young war...@etr-usa.com wrote: Could you please share a link to the NY Times article? http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html Also do not miss the follow-up blog from the author, plus the the related comments [1]. Liviu [1]

Re: [R] How do I get my IT department to bless R?

2009-01-30 Thread Liviu Andronic
On 1/30/09, Neil Shephard nsheph...@gmail.com wrote: If they expect you to use Excel for statistics then its worth letting them know that this would be a very bad idea as there are many short-comings, some of which I've referenced at..

Re: [R] read a xls file

2009-01-18 Thread Liviu Andronic
Hello, On 1/18/09, Michele Santacatterina miksa...@gmail.com wrote: i have a xls file. I will read it in r, what library-command i use for this?? This has been discussed recently. Please search the archives for `excel'. Liviu -- Do you know how to read?

Re: [R] reading data from Excel Spread sheet

2009-01-17 Thread Liviu Andronic
On 1/16/09, venkata kirankumar kiran4u2...@gmail.com wrote: can any one suggest how to read data from Excel Spread sheet Perhaps easiest alternative for Excel users: RExcel [1]. I would suggest to use this bundle installer [2]. When in Excel with RExcel loaded, select your data in Excel and

Re: [R] VaR-Monte carlo Simulation, Historic simulation, Variance-Covariance Simulation

2009-01-08 Thread Liviu Andronic
On 1/8/09, Maithili Shiva maithili_sh...@yahoo.com wrote: Is there any fucntion in R that will help me calculate Value at Risk (VaR) using Monte carlo Simulation , Historic simulation and Variance - Covariance Simulation. There are some un-published Crystal Ball functions for R [1], which

Re: [R] ref card for data manipulation?

2008-12-12 Thread Liviu Andronic
On Thu, Dec 11, 2008 at 1:38 PM, Vitalie Spinu vitosm...@rambler.ru wrote: Tom Short's card is an excellent one but it does not cover high level packages like plyr, reshape, DoBy, and a few base data.manip functions are not there as well. I'm not sure whether this can (partially) fill the gap,

Re: [R] xtable html links

2008-12-06 Thread Liviu Andronic
On Fri, Dec 5, 2008 at 9:43 PM, Tim Smith [EMAIL PROTECTED] wrote: I was trying to get hyperlinks using xtable, but couldn't get the hyperlinks to function properly. For example, if I use Perhaps hwriter [1] could be of use. Check its home page. Liviu [1]

<    1   2   3   4   5   6   >