Re: [R] Form using R

2010-03-13 Thread Erich Neuwirth
oject.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Comp

Re: [R] Creating named lists

2010-03-12 Thread Erich Neuwirth
posting guide http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >>> > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/

Re: [R] Executable for Production Use

2010-03-10 Thread Erich Neuwirth
_ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > &

Re: [R] rcom package

2010-03-09 Thread Erich Neuwirth
~~~ > > > > [[alternative HTML version deleted]] > > > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide

Re: [R] Working with combinations

2010-03-08 Thread Erich Neuwirth
akes it produces all of the combinations? > > > > From: Erich Neuwirth > To: Herm Walsh ; r-help > Sent: Sat, March 6, 2010 9:12:13 AM > Subject: Re: [R] Working with combinations > > currCombin <- c(1,2) #this is the first possible combination 2 out if 5. >

Re: [R] Working with combinations

2010-03-06 Thread Erich Neuwirth
r. For example, suppose I am looking for the 10 two element combinations > of 1:5. Can you give me some psuedocode that shows how to do this? > After putting the code below in a loop I do not see how to restrict the > output to containing only numbers from 1:5. > thanks very much. &

Re: [R] Working with combinations

2010-03-03 Thread Erich Neuwirth
inations(3,2,letters[1:3])[,1]=="a" > [1] TRUE TRUE FALSE > >> combinations(3,2,letters[1:3])[ combinations(3,2,letters[1:3])[,1]=="a", ] > [,1] [,2] > [1,] "a" "b" > [2,] "a" "c" > >

Re: [R] export tables to Excel files

2010-02-25 Thread Erich Neuwirth
www.talgalili.com> (Hebrew) | > www.biostatistics.co.il <http://www.biostatistics.co.il> (Hebrew) | > www.r-statistics.com <http://www.r-statistics.com> (English) > ------ > > > &g

Re: [R] export tables to Excel files

2010-02-23 Thread Erich Neuwirth
ode. >> > > [[alternative HTML version deleted]] > > ______ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >

Re: [R] RExcel + RCOM + Linux

2010-02-23 Thread Erich Neuwirth
//stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Di

Re: [R] how to open excel 2007 (.xlsx) file in R

2010-01-19 Thread Erich Neuwirth
RExcel mention in the link below can transfer data from Excel 2007 to R. But you have to be on Windows, and you probably have to have Excel 2007. it might work if you have Excel 2003 with the (free) compatibility package installed. On Jan 19, 2010, at 2:09 PM, Gabor Grothendieck wrote: > See > h

Re: [R] Tables to export to excel

2010-01-10 Thread Erich Neuwirth
se of Death Crossed by sex e then by group ages. > > Is it possible to have such crosstab sent to an excel file so I could > easilly report. > > Thanks in advance > > Caveman > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer

Re: [R] Literature analysis

2009-12-14 Thread Erich Neuwirth
The screenshot shows your error. Just have a look at the error message in the bottom part of the window. Your csv file has more columns than column names. On Dec 14, 2009, at 2:42 PM, Schwan wrote: > I have uploaded the csv file here: > > http://s000.tinyupload.com/?file_id=79349565739733953435

Re: [R] Excel-Export

2009-12-01 Thread Erich Neuwirth
project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464

[R] Rpad and R 2.10.0

2009-11-07 Thread Erich Neuwirth
2.9.2 gives clickable links in the browser. Furthermore, in both cases an empty graphics window opens. Has anybody else similar experiences? Can anybody offer advice? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our

[R] warnings details

2009-10-24 Thread Erich Neuwirth
. -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 __ R-help@r-project.org mailing list https

Re: [R] RCMD Rdconv debugging output

2009-10-14 Thread Erich Neuwirth
Thanks Duncan, this solved my problem. Here is another thingy I noticed \title{RExcel - Using \R from within Excel} produces RExcel - Using list() from within Excel So the \R macro cannot be used in titles. Is this intentional? Duncan Murdoch wrote: > On 10/14/2009 7:45 AM, Erich Neuwi

[R] RCMD Rdconv debugging output

2009-10-14 Thread Erich Neuwirth
I am trying (on Windows XP, with R 2.10.0beta) to use RCMD Rdconv -t html myfile.Rd > myfile.html to convert some Rd files to html. I get a message that there are warning. How can I tell Rdconv to show me these warnings? -- Erich Neuwirth, University of Vienna Faculty of Computer Scie

Re: [R] RExcel

2009-10-07 Thread Erich Neuwirth
Please post this kind of questions to the rcom mailing list. You can subscribe at rcom.univie.ac.at __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide

Re: [R] launching two RGUI computations from two different Excel workbooks

2009-10-01 Thread Erich Neuwirth
Please send questions like this to the rcom mailing list. You can subscribe at rcom.univie.ac.at. On Sep 28, 2009, at 1:34 PM, sowh...@o2.pl wrote: Hello, I have the following problem: I have excel workbooks connected with R through RExcel package. Data are being loaded from excel, then th

Re: [R] Evaluating expresssions as parameter values

2009-10-01 Thread Erich Neuwirth
Let us walk through my problem step by step: 1. print(xyplot(yield ~ variety | site,groups=year,data=barley)) 2. print(xyplot(as.formula("yield ~ variety | site"),groups=year,data=barley)) The above two statements work, the next one does not work 3. print(xyplot(as.formula("yield ~ variety |

Re: [R] Evaluating expresssions as parameter values

2009-09-22 Thread Erich Neuwirth
t(g) } f("yield ~ variety | site", data = barley, groups = "year") On Tue, Sep 22, 2009 at 4:20 PM, Erich Neuwirth wrote: Thank you, this works for my example. On Sep 22, 2009, at 9:17 PM, Gabor Grothendieck wrote: f <- function(fo, data, groups) { g <- do.call("

Re: [R] Evaluating expresssions as parameter values

2009-09-22 Thread Erich Neuwirth
Thank you, this works for my example. On Sep 22, 2009, at 9:17 PM, Gabor Grothendieck wrote: > > f <- function(fo, data, groups) { > g <- do.call("xyplot", list(as.formula(fo), groups = as.name > (groups), data)) > print(g) > } But xyplot allows expressions for the groups parameter a

[R] Evaluating expresssions as parameter values

2009-09-22 Thread Erich Neuwirth
I need to play games with an expression similar to the following one: print(xyplot(DepVar ~ Group|Covar, groups=Othergroup, data=mydf, pch = 18 ,main="Testcase",auto.key = TRUE)) The problem is that the formula argument (the first argument) an the groups argument are passed over from a

Re: [R] Use of R in Schools

2009-09-19 Thread Erich Neuwirth
gt; and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 ___

Re: [R] Sorting

2009-09-13 Thread Erich Neuwirth
; [18,] "jul" "1993" > [19,] "jun" "1993" > [20,] "mar" "1993" > [21,] "may" "1993" > [22,] "nov" "1993" > [23,] "oct" "1993" > [24,] "sep" "

Re: [R] Google's R Style Guide

2009-08-28 Thread Erich Neuwirth
But if the closing curly brace marks the end of the if part of an if else statement, the else keyword has to be on the same line as the closing brace. The code will not work if the else is on the next line AFAIK. On Aug 28, 2009, at 6:11 PM, hadley wickham wrote: An opening curly brace should

Re: [R] teaching R

2009-08-27 Thread Erich Neuwirth
SE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Wor

Re: [R] [Fwd: Re: Video demo of using svSocket with data.table]

2009-08-27 Thread Erich Neuwirth
ry illustrative. So now, >>> imagine the debugging flexibility for long running tasks, and/or >>> combination of svSocket with browser()... But that's another story, >>> because svSocket does not work nicely with browser() for the moment. >>> >>> All th

Re: [R] A matrix calculation

2009-08-23 Thread Erich Neuwirth
as.vector(t(mat[7:1,])) On Aug 23, 2009, at 9:35 PM, David Winsemius wrote: There is another "matrix" strategy that succeeds, although it is clearly less economical that the transpose approach: matrix(mat[7:1, ], ncol=nrow(mat), byrow=TRUE) # will transpose the matrix I offer this only

Re: [R] Rounding to the nearest 5

2009-08-17 Thread Erich Neuwirth
t.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Compu

Re: [R] Automatic datasets creation from multiple data sheets in a single excel file

2009-08-01 Thread Erich Neuwirth
> > For reading individual worksheets, there is lots of code around. > > And a site search for "read excel worksheet" returns quite a few references. > > Dieter > > > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer S

Re: [R] ?max (so far...)

2009-07-13 Thread Erich Neuwirth
roject.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Erich Neuwirth Didactic Center for Computer Science and Institute for Scientific

Re: [R] another matrix problem

2009-07-11 Thread Erich Neuwirth
help. Bill __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Erich Neuwirth Didactic Center for Computer Science a

Re: [R] Creating Excel-Charts via RDCOMClient

2009-06-27 Thread Erich Neuwirth
gt; RDCOMClient. (A clipboard solution which I developed some month ago are very > slow when using large data matrices.) > > So, could anyone help me solving the problem? > > Thanks, > > Michael Wolf > Von-Schonebeck-Ring 18 > D-48161 Muenster > > ___

Re: [R] Excel Export in a beauty way

2009-06-03 Thread Erich Neuwirth
, reproducible code. -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 __ R-help@r-project.org mailing

Re: [R] IP-Address

2009-05-29 Thread Erich Neuwirth
___ > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R

Re: [R] Re ad & name multiple excel sheets using RODBC

2009-05-28 Thread Erich Neuwirth
gt;> is rather fast, but has some limitations in the non-commercial version. >> what limitations, i.e. features do you miss? >> >> > > Reading of named ranges. > > Dieter > -- Erich Neuwirth, University of Vienna Faculty of Computer Science

Re: [R] Help with RExcel (running code)

2009-05-03 Thread Erich Neuwirth
> Thanks! > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, se

Re: [R] Tinn-R (Version 2.2.0.2) dose not support R 2.9.0 very well

2009-04-18 Thread Erich Neuwirth
blem can help me. >> >> Thanks for your attention! >> [[alternative HTML version deleted]] >> >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the pos

Re: [R] naming vectors/ matrices in R

2009-03-31 Thread Erich Neuwirth
> In e[1] =A[, 1] : > number of items to replace is not a multiple of replacement length > > It thinks I am trying to replace the first element of e with the first > column of A. > > is there any other way in which I can achieve this? > > Thanks in advance > >

Re: [R] 'for Loop'

2009-03-31 Thread Erich Neuwirth
; and provide commented, minimal, self-contained, reproducible code. > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 _

Re: [R] subset and "or" operator

2009-03-23 Thread Erich Neuwirth
ww.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > V

Re: [R] How to get commands history as a character vector instead of displaying them?

2009-03-23 Thread Erich Neuwirth
t; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > > > > No virus found in this incoming message. > Che

Re: [R] portable R editor

2009-03-03 Thread Erich Neuwirth
nal tools to >>> create new files from templates. >>> >>> >>> Michael Bibo >>> Queensland Health >>> >>> __ >>> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman

Re: [R] Dates and times from Excel

2009-02-23 Thread Erich Neuwirth
the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > > > > No virus found in this incoming message. > Ch

Re: [R] general inverse solver?

2009-02-10 Thread Erich Neuwirth
lman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Gro

Re: [R] reading .odf spreadsheet into R

2009-02-03 Thread Erich Neuwirth
G - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.17/1931 - Release Date: 2/2/2009 > 7:21 PM > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.

Re: [R] run query using rexcel runrfile and rodbc sql query

2009-02-01 Thread Erich Neuwirth
queries in this manner? > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible

Re: [R] How to get solution of following polynomial?

2009-01-11 Thread Erich Neuwirth
; > > -------- > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.5/1886 - Release Date: 1/10/2

Re: [R] R and Excel

2009-01-08 Thread Erich Neuwirth
( which can be the same machine ) > to compute. > > > Here is the question- > > What is the remote server is Amazon EC2 which has upscalaing and > downscaling facillity for RAM and CPU... > > Will it work ? > > is there a Saa

Re: [R] R and Excel

2009-01-08 Thread Erich Neuwirth
>> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >

Re: [R] levels update

2008-12-05 Thread Erich Neuwirth
ontained, reproducible code. > > > -------- > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.

Re: [R] Updating from an Old to a New version of R

2008-11-11 Thread Erich Neuwirth
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > -

[R] Question about --internet2 on Windows

2008-09-26 Thread Erich Neuwirth
Is there a way tell R that it should use --internet2 from within a running R process? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459

Re: [R] Conversion to Binary (base2)

2008-09-25 Thread Erich Neuwirth
cked by AVG - http://www.avg.com > Version: 8.0.169 / Virus Database: 270.7.2/1689 - Release Date: 9/24/2008 > 6:51 PM > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at

Re: [R] xls to csv conversion via WinXP's context menu?

2008-09-10 Thread Erich Neuwirth
transfer data between R and Excel from within Excel. It works in Excel version 2002, 2003 and 2007, so it also allows transfer of xlsx and xlsm files. It does much more, e.g. it also allows you to call R functions in spreadsheet cell formulas. More information on rcom.univie.ac.at. Erich Neuwirth

Re: [R] viewing data in something similar to 'R Data Editor'

2008-08-02 Thread Erich Neuwirth
On Windows, this could be done with rcom and Excel. rcom can use Excel as a server and put matrices into Excel ranges. The code you run in R could have a statement resending matrices so the current version is displayed. I could set up more conveniently what yo want if RGui had a way of automat

Re: [R] inverse cumsum

2008-06-18 Thread Erich Neuwirth
- XFMail -- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducibl

Re: [R] R help

2008-04-28 Thread Erich Neuwirth
e.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Erich Neuw

Re: [R] Re ad From EXCEL

2008-04-20 Thread Erich Neuwirth
ou could help me. Thank you very much. -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 __ R-

[R] [R-pkgs] RExcelInstaller

2008-04-18 Thread Erich Neuwirth
), turning R Commander's menus into Excel menus. It comes with a comprehensive set of example worksheet illustrating different usage scenarios. This R package installs the Excel add-in for Excel versions from 2000 to 2007. It only works on MS Windows (XP and Vista) -- Erich Neuwirth, Unive

Re: [R] apply on large arrays

2008-02-14 Thread Erich Neuwirth
Home Phone: +61 7 3286 7700 > mailto:[EMAIL PROTECTED] > http://www.cmis.csiro.au/bill.venables/ > > -Original Message- > From: Erich Neuwirth [mailto:[EMAIL PROTECTED] > Sent: Thursday, 14 February 2008 5:08 PM > To: Venables, Bill (CMIS, Cleveland) >

[R] apply on large arrays

2008-02-13 Thread Erich Neuwirth
tion(x)ifelse(sum(x)==1,1,0)) tab3<-apply(tab2,1,sum) Computing tab2 is very slow. Is there a faster and/or more elegant way of doing this? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac

Re: [R] RE xcel Macro Mode

2007-11-09 Thread Erich Neuwirth
} > ... > }") > > Could anyone give me some advice? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Pho

[R] iplots question

2007-10-15 Thread Erich Neuwirth
Are there parameters to set position and size of the windows created by the commands in iplots? I could not find them. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project

Re: [R] kurtosis

2007-09-28 Thread Erich Neuwirth
According to the docs package e1071 has kurtosis. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-containe

Re: [R] Am I misunderstanding the ifelse construction?

2007-09-25 Thread Erich Neuwirth
ir == "-", -gc_content , gc_content) > works. You need not assign gc_content a new value in each comparison, > because then your "result" depends only on the last value of "dir", > which happened to be "-", so you got -0.5 for all gc_content. > >

<    1   2