Re: [R] ANOVA stuffs_How to save each result from FOR command?

2010-10-19 Thread Liviu Andronic
Hello On Tue, Oct 19, 2010 at 12:16 PM, BumSeok Jeong bumseok.je...@gmail.com wrote: Dear R experts, I'm new in R and a beginner in terms of statistics. It should be simple question, but definitely difficult to solve it by myself. I'd like to see main effect of group(gender: sample size is

[R] preferred x-delimited data format for R?

2010-10-20 Thread Liviu Andronic
Dear all What is the preferred spreadsheet-like x-delimited data format for use with R? Should I prefer tab-, comma-, space- or some_other_delimitor-seprated data? I'm asking this because I've been once bitten by CSV data containing ` ' ' (apostrophe) symbols that R couldn't easily digest.

Re: [R] R step-by-step execution

2010-10-22 Thread Liviu Andronic
Hello On Fri, Oct 22, 2010 at 11:33 AM, Alaios ala...@yahoo.com wrote: I wouldl ike to ask you if R supports step by step execution.  I have written some nested loops and  I would like to check on every  step what are the values of some variables. fortune('browser') My solution when I

[R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
Dear all I would like to start R with Rcmdr from the cli, without tweaking Rprofile.site. This has been discussed in the past [1], but I don't see a solution that (1) could be used with any working directory and (2) would avoid starting Rcmdr on every R start-up. Personally I tried the following,

Re: [R] Feedback on you manual

2010-10-23 Thread Liviu Andronic
(off-topic) Dear Patrick On Sat, Oct 23, 2010 at 10:57 AM, Patrick Burns pbu...@pburns.seanet.com wrote: Perhaps 'Some hints for the R beginner' http://www.burns-stat.com/pages/Tutor/hints_R_begin.html Do you provide a PDF version of this human-friendly introduction to R? :) Regards Liviu

Re: [R] help

2010-10-23 Thread Liviu Andronic
Hello On Sat, Oct 23, 2010 at 10:43 AM, Mastaki Kambale jkmast...@hotmail.com wrote: Dears R I am a self taught novice user of R. I begin to understand its philosophy and some basics like objects, vectors, arrays, lists etc...I still am not able to manipulate variables (objects!) in

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
On Sat, Oct 23, 2010 at 2:07 PM, Henrique Dallazuanna www...@gmail.com wrote: You've tried removing the quotes around require? Yes, but it fails: l...@liv-laptop:~$ R --interactive -e require(Rcmdr) bash: syntax error near unexpected token `(' l...@liv-laptop:~$ R -e require(Rcmdr) --interactive

Re: [R] help

2010-10-23 Thread Liviu Andronic
On Sat, Oct 23, 2010 at 4:37 PM, David Winsemius dwinsem...@comcast.net wrote: That wasn't what I understood him to be asking, but rather how to create new variables within existing dataframes. My suggestion would be to work with the examples on the help(with) and help(transform) pages. Oh,

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
On Sat, Oct 23, 2010 at 5:30 PM, Henrique Dallazuanna www...@gmail.com wrote: In windows it work's fine After further experimentation, it does work when I escape the parentheses. However, both l...@liv-laptop:~$ R --interactive -e require\(Rcmdr\) and l...@liv-laptop:~$ R -e require\(Rcmdr\)

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
On Sat, Oct 23, 2010 at 6:43 PM, Lee Hachadoorian lee.hachadooria...@gmail.com wrote: sh -c 'R_DEFAULT_PACKAGES=$R_DEFAULT_PACKAGES Rcmdr R $@' Oh, nice! Thanks a lot, it works like a charm. Regards Liviu __ R-help@r-project.org mailing list

Re: [R] command to start R and Rcmdr?

2010-10-23 Thread Liviu Andronic
On Sat, Oct 23, 2010 at 6:43 PM, Lee Hachadoorian lee.hachadooria...@gmail.com wrote: sh -c 'R_DEFAULT_PACKAGES=$R_DEFAULT_PACKAGES Rcmdr R $@' This is pulled directly from the launcher that Ubuntu creates when it installs Rcmdr from the repository. It seems that the CRAN Rcmdr also ships an

Re: [R] Feedback on you manual

2010-10-24 Thread Liviu Andronic
On Sun, Oct 24, 2010 at 10:33 AM, Patrick Burns pbu...@pburns.seanet.com wrote: If you look at 'Introduction' through the eyes of a complete novice, it is really, really scary. Ditto. I had no programming background prior to learning R, and after half a minute glancing through the 'Intro to R'

Re: [R] preferred x-delimited data format for R?

2010-10-24 Thread Liviu Andronic
On Wed, Oct 20, 2010 at 5:30 PM, Nutter, Benjamin nutt...@ccf.org wrote: I run into that problem frequently. I can usually circumvent it by using the  quote = \ Argument.  The default is quote = \'  which uses the double and single quote as quoting symbols.  If you change it to \ it will read

Re: [R] Importing CSV File

2010-10-24 Thread Liviu Andronic
On Mon, Oct 25, 2010 at 12:26 AM, Jason Kwok jayk...@gmail.com wrote: Thanks for the response Erik. In this case, I would like to keep the row name as the month.  How would I do that? You can do this in Rcmdr. First Data Import From text file (or select your data.frame as active data set),

Re: [R] Best IDE for R

2010-10-27 Thread Liviu Andronic
On Wed, Oct 27, 2010 at 4:05 PM, Lee Hachadoorian lee.hachadooria...@gmail.com wrote: For an R-enabled text editor, I would suggest Tinn-R for Windows or RGedit (a gedit plugin) for Linux/Gnome-desktop. Since both are just text editors, they will work with whatever version R you have installed

Re: [R] Best IDE for R

2010-10-27 Thread Liviu Andronic
. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 Is the room still a room when its empty? Does the room, the thing itself have purpose? Or do we, what's the word... imbue it.     - Jubal Early, Firefly From: Liviu Andronic landronim

Re: [R] Best IDE for R

2010-10-27 Thread Liviu Andronic
On Wed, Oct 27, 2010 at 9:21 PM, steven mosher mosherste...@gmail.com wrote: Thanks for the pointer, After looking at the many folders of R code I have I decided it was time to start working in an IDE and also getting my stuff under version control ( for my own sanity) I'll have a look at

Re: [R] one function with 2 returnh points

2010-10-30 Thread Liviu Andronic
On Sat, Oct 30, 2010 at 11:09 AM, Alaios ala...@yahoo.com wrote: Hello everyone. I have written quite a big function that at the end correctly returns the values I want. I found a rare exception that I want to cover also. The easier for me would be to write something like that function(){

Re: [R] Using changing names in loop in R

2010-11-06 Thread Liviu Andronic
On Sat, Nov 6, 2010 at 5:22 PM, Tuatara franziskabro...@gmail.com wrote: Hello everybody, I have usually solved this problem by repeating lines of codes instead of a loop, but it's such a waste of time, I thought I should really learn how to do it with loops: Would the following construct

[R] error on R CMD rtags

2010-11-10 Thread Liviu Andronic
Dear all I'm getting a strange error when trying to use rtags() to generate tags in Emacs format. r...@liv-laptop:/usr/lib/R# R CMD rtags -o /usr/local/build/ETAGS --no-Rd --no-c library/ Tagging R files under library/; writing to /usr/local/build/ETAGS (overwriting)... [..] Error: '\.' is an

Re: [R] Factor analysis

2010-11-12 Thread Liviu Andronic
Hello On Sat, Nov 13, 2010 at 7:57 AM, Brima adamsteve2...@yahoo.com wrote: Hi all, This could be very basic. I want to do exploratory factor analysis but I don't have the data, rather I have the correlation matrix. How do I do this with just the correlation matrix? I know for principal

Re: [R] Factor analysis

2010-11-13 Thread Liviu Andronic
On Sat, Nov 13, 2010 at 2:07 PM, Brima adamsteve2...@yahoo.com wrote: Thanks very much. However, I got an error message when I tried. What I did is that I created a correlation matrix named dat which is the only data I have and tried using the below fa- factanal(covmat = dat, factors=2,

Re: [R] Variable Editor

2010-11-17 Thread Liviu Andronic
On Wed, Nov 17, 2010 at 1:11 PM, Alaios ala...@yahoo.com wrote: Hello everoyne, If you have ever used matlab you should know the variable editor. You click over the value of a variable in the workspace and it opens like a excel sheet. Do you know if there is something like that in R . This

Re: [R] help on IDE

2010-11-17 Thread Liviu Andronic
On Wed, Nov 17, 2010 at 7:41 PM, Partha Sinha pnsinh...@gmail.com wrote: I am new comer in R.There r few IDE like Tinn R,VIM etc.I mean How to use them? Do I need to install R and then install them to use or they can work alone? Also does one install packages on R or IDEs? Can I call/use the

Re: [R] Calculating correlation

2010-11-23 Thread Liviu Andronic
Hello On Tue, Nov 23, 2010 at 7:57 AM, gireesh bogu girishb...@gmail.com wrote: Hi guys I have an input file with multiple columns and and rows. Is it possible to calculate correlation of certain value of certain No (For example x of S1 = 112) with all other values (for example start with x

Re: [R] Where is gdata?

2010-11-28 Thread Liviu Andronic
On Sun, Nov 28, 2010 at 12:44 PM, Stephen Liu sati...@yahoo.com wrote: library(gdata) gdata Error: object 'gdata' not found gdata() Error: could not find function gdata Please advise what mistake I have committed.  TIA Try help(package=gdata) Regards Liviu B.R. Stephen L        

Re: [R] How to remove a package.

2010-11-28 Thread Liviu Andronic
On Sun, Nov 28, 2010 at 4:58 PM, Stephen Liu sati...@yahoo.com wrote: data() displays Data sets in package ‘AER’: But; library(Ecdat) data() displays Data sets in package ‘datasets’: a large datasets including those in package Ecdat?  NOt only Ecdat separately. Read ?data. Try

Re: [R] Where is gdata?

2010-11-28 Thread Liviu Andronic
On Mon, Nov 29, 2010 at 7:01 AM, Stephen Liu sati...@yahoo.com wrote: ?read.xls I must run ??read.xls Not if you library(gdata) first. Then ?read.xls should work. Regards Liviu __ R-help@r-project.org mailing list

Re: [R] Where is gdata?

2010-11-28 Thread Liviu Andronic
regards Liviu      Spencer On 11/28/2010 10:40 PM, Liviu Andronic wrote: On Mon, Nov 29, 2010 at 7:01 AM, Stephen Liusati...@yahoo.com  wrote: ?read.xls I must run ??read.xls Not if you library(gdata) first. Then ?read.xls should work. Regards Liviu

[R] pca analysis: extract rotated scores?

2010-11-30 Thread Liviu Andronic
Dear all I'm unable to find an example of extracting the rotated scores of a principal components analysis. I can do this easily for the un-rotated version. data(mtcars) .PC - princomp(~am+carb+cyl+disp+drat+gear+hp+mpg, cor=TRUE, data=mtcars) unclass(loadings(.PC)) # component loadings

Re: [R] pca analysis: extract rotated scores?

2010-11-30 Thread Liviu Andronic
(pca$loadings))) # same scores as from ?principal #for differeneces between ?princomp and ?principal scores #see last paragraph of Details in ?principal On Tue, Nov 30, 2010 at 10:22 AM, Liviu Andronic landronim...@gmail.com wrote: Dear all I'm unable to find an example of extracting

Re: [R] Statistical mailing list

2010-07-29 Thread Liviu Andronic
On Wed, 28 Jul 2010 22:36:08 -0400 Ralf B ralf.bie...@gmail.com wrote: I am looking for a mailing list for general statistical questions that are not R related. Do you have any suggestions for lists that are busy and helpful and/or lists that you use and recommend? Maybe StackExchange [1]?

Re: [R] a Chebyshev ....really important

2010-07-30 Thread Liviu Andronic
On Thu, 29 Jul 2010 19:01:52 -0400 hussain abu-saaq hussain...@hotmail.com wrote: Hi. i have one question. is there any command to use a Chebyshev in R. i need them to fit the data and get a Chebyshev polynomial. thank you. Please try

Re: [R] Linux Editor

2010-08-02 Thread Liviu Andronic
On Mon, 2 Aug 2010 08:48:54 -0700 seeliger.c...@epamail.epa.gov wrote: Is there anything comparable to the mac version of R with its built in console, editor, etc?? Aside from ESS/EMACS, you might try JGR, Tinn-R and Eclipse with StatET. The later has the most features and is the best IDE,

Re: [R] remove extreme values or winsorize – loop - dataframe

2010-08-03 Thread Liviu Andronic
On Tue, 3 Aug 2010 10:00:08 +1000 Glen Barnett glnbr...@gmail.com wrote: This might help some: RSiteSearch(winsorize) Or require(sos) findFn(winsorize) Liviu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] retrieve name of an object?

2010-08-04 Thread Liviu Andronic
Dear all Is there an easier way to retrieve the name of an object? For example, tmp - 1:10 as.character(quote(tmp)) [1] tmp as.character(quote(mtcars$cyl)) [1] $ mtcars cyl as.character(quote(mtcars$cyl))[3] [1] cyl The last call more than anything seems a hack. Is there a better

Re: [R] retrieve name of an object?

2010-08-04 Thread Liviu Andronic
Dear Duncan On Wed, 04 Aug 2010 08:33:49 -0400 Duncan Murdoch murdoch.dun...@gmail.com wrote: As other have pointed out, in a function you can use substitute(arg) to retrieve the expression passed as arg, and deparse(substitute(arg)) to turn it into a string that's suitable for using as a

Re: [R] PageUp/Down in gnome-terminal

2010-08-05 Thread Liviu Andronic
On Thu, 05 Aug 2010 08:56:30 +0200 Olga Lyashevska o...@herenstraat.nl wrote: I am using gnome-terminal to run R, and I noticed that standard PageUp/Down do not work but they do work for other programs within the same terminal window (e.g. irssi). Scroll bar does not work either. Try

Re: [R] Output (graphics and table/text)

2010-08-05 Thread Liviu Andronic
On Wed, 4 Aug 2010 18:02:41 -0400 Ralf B ralf.bie...@gmail.com wrote: b) the output is actually presented as a little table without the need to use a LaTeX solution? If it's not imperative to have the ks.test output in the graphic, why not copy/paste and use some monospace font? Liviu

Re: [R] PageUp/Down in gnome-terminal

2010-08-05 Thread Liviu Andronic
On Thu, 05 Aug 2010 11:13:00 +0200 Olga Lyashevska o...@herenstraat.nl wrote: shift+pagep/pagedown doesnt work either. xfce is a desktop environment similar to gnome or kde, right? Yes, with less dependencies and less hungry on resources. I do not have any desktop environment (running R on a

[R] several figures from one Sweave chunk?

2010-08-05 Thread Liviu Andronic
Dear all It seems that it is not possible [1] to generate several graphs in a loop within an Sweave document. For example, fig=TRUE for (i in 1:4) plot(rnorm(100)+i) @ will not work. Since this limitation dates from old times (at least 2005), I was curious whether workarounds other than

Re: [R] r sig for tcl/tk?

2010-08-06 Thread Liviu Andronic
On Fri, 6 Aug 2010 14:51:59 -0500 Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: Is there an R sig for Tcl/Tk, please? There is r-sig-gui that should fit most tcltk questions. Liviu __ R-help@r-project.org mailing list

[R] brew equivalent of R CMD Sweave

2010-08-06 Thread Liviu Andronic
Dear all Is there an equivalent of R CMD Sweave for brew [1] documents? Something in the lines of R CMD brew? Can R be configured to parse brew documents from the commandline, without opening an interactive R session and issuing the following? require(brew) brew(featurefull.brew) I would like to

Re: [R] brew equivalent of R CMD Sweave

2010-08-06 Thread Liviu Andronic
Dear Duncan On Fri, 06 Aug 2010 18:46:55 -0400 Duncan Murdoch murdoch.dun...@gmail.com wrote: You can run a single R command from the command line using the -e option, so R -e brew::brew('featurefull.brew') (or some variation on that, depending on how your shell handles quotes) will run

Re: [R] several figures from one Sweave chunk? [solved]

2010-08-07 Thread Liviu Andronic
(on-list) Hello Cameron On Fri, 6 Aug 2010 19:02:22 +0100 Liviu Andronic landronim...@gmail.com wrote: On Fri, 6 Aug 2010 11:30:59 -0600 Cameron Bracken cameron.brac...@gmail.com wrote: There is no real good way to deal with this in Sweave. Sweave does not actually know anything about

Re: [R] Problem with installing a package in R!

2010-08-08 Thread Liviu Andronic
On Sun, 8 Aug 2010 13:55:28 -0700 (PDT) gagea gagzar...@yahoo.com wrote: ERROR: failed to lock directory ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9’ for modifying Try removing ‘/home/ubuntu/R/i486-pc-linux-gnu-library/2.9/00LOCK’ Are you installing from user? Perhaps try from root. Liviu

Re: [R] Type 3 sum of squares

2010-08-16 Thread Liviu Andronic
Hello On Mon, 16 Aug 2010 11:17:41 -0700 Dennis Fisher fis...@plessthan.com wrote: Colleagues, R 2.11.1, OS X. Please forgive my ignorance of some issues related to ANOVA. This has already been discussed at length on this list. You might try searching the archives and using Rseek.

Re: [R] R reports

2010-08-21 Thread Liviu Andronic
On Sat, Aug 21, 2010 at 3:32 PM, Donald Paul Winston satchwins...@yahoo.com wrote: Good grief. Adding a report function is not going to make R less flexible. Don't you want to use a tool that's relevant to the rest of the world? That world is much bigger then your world. This is ridiculous.

Re: [R] Fitting a GARCH model in R

2010-08-23 Thread Liviu Andronic
Hello You can find functions related to GARCH by searching on Rseek.org or by running in R: install.packages('sos', dep=T) require(sos) findFn('garch') Regards Liviu On Mon, Aug 23, 2010 at 5:59 AM, Aditya Damani adicoo...@gmail.com wrote: Hi, I want to fit a mean and variance model jointly.

Re: [R] easiest way to write an R dataframe to excel?

2010-08-23 Thread Liviu Andronic
On Mon, Aug 23, 2010 at 10:50 PM, Eva Nordstrom eva.nordst...@yahoo.com wrote: I am using R 2.11.1 in a Microsoft Windows 7 environment. I tried using WriteXLS, but get the message In system(cmd) : perl not found What is the easiest way to write an R dataframe to Excel?  (I am familiar

Re: [R] Sweave.sty

2010-08-24 Thread Liviu Andronic
On Tue, Aug 24, 2010 at 10:40 PM, r.ookie r.oo...@live.com wrote: Does anyone know where I can download the latest version of Sweave.sty? I have looked all over the site http://www.stat.umn.edu/~charlie/Sweave/ with no luck. Not exactly an answer, Frank Harrell once published a fork of

Re: [R] apply over parallel lists and their elements

2010-09-12 Thread Liviu Andronic
On Sun, Sep 12, 2010 at 9:40 AM, Sebastian Gibb li...@sebastiangibb.de wrote: But I want to do a sapply over the values vectors. Try multivariate apply. For more on loops and the apply family check [1]. You might also want to check the plyr package and its documentation. Liviu [1]

Re: [R] apply over parallel lists and their elements

2010-09-13 Thread Liviu Andronic
Hello On Sun, Sep 12, 2010 at 5:37 PM, Sebastian Gibb li...@sebastiangibb.de wrote: Hello, thanks for your answer. mapply fits to my needs. One thing that seems strange is that if you use tree[[1]]$node$values - 1:10 tree[[2]]$node$values - 3:12 you still get mapply(mean,

Re: [R] apply over parallel lists and their elements

2010-09-14 Thread Liviu Andronic
On Tue, Sep 14, 2010 at 12:44 AM, David Winsemius dwinsem...@comcast.net wrote: The second argument to mean is trim. I am not sure what mean(1, 3) is supposed to do but what it return is 1. Thanks for the info. On this particular point I find the documentation confusing. In ?mapply : '‘mapply’

Re: [R] Object oriented programming in R.

2010-09-14 Thread Liviu Andronic
On Tue, Sep 14, 2010 at 12:55 PM, Alaios ala...@yahoo.com wrote: Thank you very much. I checked the tutorials that on that list but still I do not know how to create many objects of the same type. Can you please help me with that? Is this what you need? for(i in 1:100){

Re: [R] Combined plot: Scatter + density plot

2010-09-21 Thread Liviu Andronic
On Tue, Sep 21, 2010 at 8:34 AM, Ralf B ralf.bie...@gmail.com wrote: in order to save space for a publication, it would be nice to have a combined scatter and density plot similar to what is shows on Not quite the same thing, but I like the scatterplots in Rcmdr, which feature boxplots instead

Re: [R] Good documentation about Sweave

2010-09-26 Thread Liviu Andronic
Hello On Sun, Sep 26, 2010 at 3:41 PM, statquant2 statqu...@gmail.com wrote: I am looking for a good and detailed documentation about Sweave... but can't find anything more that 15 pages asking Google... Any hint on that point ? In the search below the third link is the user manual, which

Re: [R] Use R in Visual Basic Environment

2010-09-29 Thread Liviu Andronic
Hello On Tue, Sep 28, 2010 at 1:39 PM, Soumen Pal soumen.4...@gmail.com wrote: I need your kind help regarding the following: I wish to know is there any way to use R in Visual Basic environment. I want to develop a VB application where R can be embedded (R will work as a back end

Re: [R] How many R packages are not free?

2010-10-02 Thread Liviu Andronic
On Sat, Oct 2, 2010 at 12:58 AM, Paul Miller pjmiller...@yahoo.com wrote: Does anyone have any information about this? Looking at cran2deb [1] you can get an idea of the CRAN packages that may qualify for Debian's restrictive notion of 'free'. Regards Liviu [1]

Re: [R] R editor in ubuntu!

2010-10-05 Thread Liviu Andronic
On Tue, Oct 5, 2010 at 5:43 PM, Christopher W Ryan cr...@binghamton.edu wrote: As an alternative to emacs-ess, you could try gedit with the R plugin. Another alternative is to use Geany [1]. It would save you the trouble of learning Emacs, and I find it better designed for code editing than

Re: [R] R editor in ubuntu!

2010-10-05 Thread Liviu Andronic
On Tue, Oct 5, 2010 at 4:52 PM, Mehdi Zarrei gagzar...@yahoo.com wrote: I am looking for an editor to be able to execute commands into R in Linux ubuntu. Is there any suggestion? There is a wiki page on the subject [1]. Everyone: Please contribute your favorite editor to that list. Regards

Re: [R] Installing JGR

2010-10-06 Thread Liviu Andronic
Hello It would be better to address JGR-related questions to stats-rosuda-de...@listserv.uni-augsburg.de. Regards Liviu On Wed, Oct 6, 2010 at 1:27 AM, lord12 trexi...@yahoo.com wrote: When I installed rJava, and try to run the examples from JRI on eclipse, these: import

Re: [R] Hausman test for endogeneity

2010-10-09 Thread Liviu Andronic
Hello On Sat, Oct 9, 2010 at 2:37 PM, Holger Steinmetz holger.steinm...@web.de wrote: can anybody point me in the right direction on how to conduct a hausman test for endogeneity in simultanous equation models? Try install.packages('sos') require(sos) findFn('hausman') Here I get these

[R] same random numbers in different sessions

2010-10-09 Thread Liviu Andronic
Dear all I'm using Xubuntu Lucid and I keep getting the same random numbers whenever I start a new session of R. For example, I keep getting sample(1:1000, 1) [1] 87 or rnorm(1:10) [1] -1.3618103 0.4241701 1.0720076 0.2208145 -0.5375314 -0.4846588 [7] 0.7576768 0.6527407 -0.6868786

Re: [R] same random numbers in different sessions

2010-10-10 Thread Liviu Andronic
Dear all Thanks for all the pointers. On Sat, Oct 9, 2010 at 11:39 PM, Daniel Nordlund djnordl...@frontier.com wrote: Could you be reloading a workspace at start-up that is setting the seed?   What happens if you start R using the --vanilla option? It seems that this is the culprit. For some

Re: [R] same random numbers in different sessions

2010-10-10 Thread Liviu Andronic
Hello On Sun, Oct 10, 2010 at 1:16 AM, jim holtman jholt...@gmail.com wrote: You need to set the set.seed yourself.  There are some simulation where I do want the same numbers generated and can use the set.seed to set it to a know value.  If you want something random each time, then use the

Re: [R] how can i do anova

2010-10-11 Thread Liviu Andronic
Hello On Mon, Oct 11, 2010 at 5:33 PM, Mauluda Akhtar maulud...@gmail.com wrote:  Hi, I've a table like the following. I want to do ANOVA. Could you please tell me how can i do it. I want to show whether the elements (3 for each column) of a column are significantly different or not. Just

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

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] 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

[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] currency conversion function?

2009-10-16 Thread Liviu Andronic
On 10/15/09, Henrique Dallazuanna www...@gmail.com wrote: foo - function(from, to, date){ url - http://www.oanda.com/convert/classic?script=..%2Fconvert%2Fclassiclanguage=envalue=1; params -

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 __

Re: [R] ozone data

2009-10-17 Thread Liviu Andronic
On 10/17/09, Julius Tesoro jutes...@yahoo.com wrote: I am looking at the plyr package and I am intrigued at how data(i.e. ozone, baseball) is loaded without having to type data(ozone). Are they automatically loaded when i call library(plyr)? I want to do the same thing when I make my

Re: [R] ozone data

2009-10-17 Thread Liviu Andronic
On 10/17/09, Julius Tesoro jutes...@yahoo.com wrote: wow thanks but how do i load data just by typing ozone on the console? It would probably suffice to include the dataset as an object in your package, and then `data(ozone)' should bring it up as soon as your package is loaded. Look at the

[R] Easy way to `iris[,-Petal.Length]' subsetting?

2009-10-17 Thread Liviu Andronic
Dear all What is the easy way to drop a variable by using its name (and not its number)? Example: data(iris) head(iris) Sepal.Length Sepal.Width Petal.Length Petal.Width Species 1 5.1 3.5 1.4 0.2 setosa 2 4.9 3.0 1.4 0.2

[R] access elements of summary.aov?

2009-10-19 Thread Liviu Andronic
Dear all How do I access individual elements of a summary.aov object? data(iris) AnovaModel.1 - aov(Sepal.Length ~ Species, data=iris) tmp - summary(AnovaModel.1) tmp Df Sum Sq Mean Sq F value Pr(F) Species 2 63.231.6 119 2e-16 *** Residuals 147 39.0 0.3

Re: [R] access elements of summary.aov?

2009-10-19 Thread Liviu Andronic
On 10/19/09, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: It is a 'List of 1', so you want tmp[[1]] which you can access as a data frame. As the help file says Thank you. I forgot how to access elements of lists. Regards Liviu __

Re: [R] help regarding creating package for GUI

2009-10-22 Thread Liviu Andronic
On 10/22/09, Peter Ehlers ehl...@ucalgary.ca wrote: But as to your query: perhaps you could get some ideas from the Greg Snow's TeachingDemos package. Also, check the related Rcmdr plug-in [1]. Liviu [1] http://cran.r-project.org/web/packages/RcmdrPlugin.TeachingDemos/index.html

Re: [R] function

2009-10-26 Thread Liviu Andronic
On 10/26/09, Val valkr...@gmail.com wrote: Is there a function in R that handle nonparametric model for survival analysis (Cox or Weibull)? http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4q=survival+analysissa=Search+functions%2C+lists%2C+and+morecof=FORID%3A11 Liviu

Re: [R] basic statistics to csv

2009-10-26 Thread Liviu Andronic
Hello On 10/26/09, lanc...@fns.uniba.sk lanc...@fns.uniba.sk wrote: nsu - numSummary(x[,c(a, b, c)], statistics=c(mean, sd, quantiles), quantiles=c(0,.25,.5,.75,1)) write.csv(nsu, file = numsummary.csv) I get the ERROR: cannot coerce class numSummary into a data.frame message. Try

Re: [R] write to RTF format - possible?

2009-10-29 Thread Liviu Andronic
Hello On 10/28/09, Mark Heckmann mark.heckm...@gmx.de wrote: To write a .txt file I use write.table() Is there a way to write to a .rtf file as well? With odfWeave [1] you can create OOo documents, from which the conversion to .rtf would be trivial. If you wan to export a table, then you

Re: [R] how to test for stationarity in time series?

2009-10-30 Thread Liviu Andronic
On 10/30/09, Luna Laurent luna.laurent@gmail.com wrote: Could anybody tell me how to test for stationarity in time series? http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4q=stationarity+time-seriessa=Search+functions%2C+lists%2C+and+morecof=FORID%3A11 Liviu

[R] identify which commands have generated graphics?

2009-10-30 Thread Liviu Andronic
Dear all Is it possible to programmatically detect which commands have generated a graphic to the x11() graphics device? When in front of the computer, it is easy to see that after a command---say, plot(1:10)---a graphics window opens/activates and displays a graphic. But is there a way to detect

Re: [R] Robust ANOVA or alternative test?

2009-11-02 Thread Liviu Andronic
Hello On 11/2/09, jinyan fan fanjin...@yahoo.com wrote: to address this issue, either by some sort of Robust ANOVA procedure, or by some alternative tests? Thanks a lot. I cannot address this specific question, but you may want to address robustness-related queries to r-sig-robust, and

Re: [R] HEEELP!!!!

2009-11-10 Thread Liviu Andronic
Hello On 11/10/09, Ana María Prieto prieto.anama...@gmail.com wrote: When copying the script in the R console, it seems that there is a problem with the ~ symbol. this symbol is not in the keyboard, so I select it from spetial characters, For what language is your keyboard designed? If

[R] starting html help for a package?

2009-11-12 Thread Liviu Andronic
Dear all Shouldn't this start the html help for the chosen package? help(package=boot, help_type = html) Instead, the text version is displayed in less (I believe). However, I have no issues to start the html help with the following. help.start() starting httpd help server ... done If

Re: [R] starting html help for a package?

2009-11-13 Thread Liviu Andronic
On 11/12/09, Duncan Murdoch murd...@stats.uwo.ca wrote: help(package=boot, help_type = html) The page displayed there was never an HTML page. In the future it probably should be, but it hasn't been implemented yet. At the moment is there a way to call the html help for a package, that is

[R] starting pdf help for a package? (was starting html help for a package?)

2009-11-13 Thread Liviu Andronic
Dear all A sequel to my previous post. On Fri, Nov 13, 2009 at 11:33 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: At some point in the future the package?info page will be able to be generated automatically, and I imagine it will end up containing the package info you saw.   It would make

Re: [R] JGR GUI for R-2.10.0 Help Print

2009-11-16 Thread Liviu Andronic
Hello On 11/15/09, Bob Meglen bmeg...@comcast.net wrote: I have updated R 2.9.1 to 2.10.0. and JGR GUI 1.7. I am running Windows XP. I can't seem to get the JGR Print or Help functions to work. The system locks and requires me to stop the process. In the past I have preferred the opreation

Re: [R] Odp: ^ operator

2009-11-16 Thread Liviu Andronic
On 11/16/09, Ted Harding ted.hard...@manchester.ac.uk wrote: Not in this case (see below), though of course in general - takes precedence over ^, so, for example, in the expression -2^(1/3) the - is applied first, giving (-2); and then ^ is applied next, giving (-2)^(1/3). There is a

Re: [R] any feedback on XL Solutions Courses for R?

2010-04-30 Thread Liviu Andronic
On 4/30/10, Dimitri Liakhovitski ld7...@gmail.com wrote: I can only provide feedback on one and only course I participated in. It was 3 years ago. It was for R beginners. And I guess, we did not get lucky - the person who was sent was not a good instructor. Our boss at the company I was

Re: [R] Off Topic: teenie weenie numbers -- Was: Precision level

2010-05-02 Thread Liviu Andronic
On 3/26/10, Bert Gunter gunter.ber...@gene.com wrote: represented) is important for numerical calculations, what is the smallest number that anyone has actually seen describing physical phenomena in science? There was a recent article in The Economist (The force is weak with this one, Apr

Re: [R] OLS Regression diagnostic measures check list - what to consider?

2010-05-05 Thread Liviu Andronic
On 5/5/10, Tal Galili tal.gal...@gmail.com wrote: Although this is a great list, I am wondering if there is any newer methods that are overlooked, or important consideration to take into account that are not described in that page. Two on-line resources would be REGRESSION DIAGNOSTICS by

  1   2   3   4   5   6   >