[R] Determining whether a function's return value is assigned

2007-06-30 Thread Paul Laub
Dear all, Does R offer a means by which a function can determine whether its return value is assigned? I am using R 2.4.1 for Windows. Suppose what I am looking for is called return.value.assigned. Then one might use it like this myfunction - function () { # Create bigobject here

[R] Importing Excel file with merged cells

2007-06-30 Thread stefan lhachimi
Dear all, I have a problem with importing an excel file into R. I can open the file easily (either saving it as a CSV or using RODBC). But the original file is using merged cell in its first column, which gives the name of the observation. (I am dealing with repeated measurements for the same

[R] Plots from categorial data

2007-06-30 Thread Christoph Krammer
Software zur Erkennung von Spam auf dem Rechner hypatia.math.ethz.ch hat die eingegangene E-mail als mögliche Spam-Nachricht identifiziert. Die ursprüngliche Nachricht wurde an diesen Bericht angehängt, so dass Sie sie anschauen können (falls es doch eine legitime E-Mail ist) oder

[R] Importing Excel file that has merged cells

2007-06-30 Thread stefan lhachimi
Dear all, I have a problem with importing an excel file into R. I can open the file easily (either saving it as a CSV or using RODBC). But the original file is using merged cell in its first column, which gives the name of the observation. (I am dealing with repeated measurements for the same

[R] Problem installing RGTK2 on ubuntu 7.04

2007-06-30 Thread Andrew Muller
Thanks for the help. I installed libgtk2.0-dev and RGtk2 is being installed as I write. Andrew Muller McMaster University/Economics __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Importing an Excel file that has merged cells

2007-06-30 Thread Lhachimi, Stefan
Dear all, I have a problem with importing an excel file into R. I can open the file easily (either saving it as a CSV or using RODBC). But the original file is using merged cell in its first column, which gives the name of the observation. (I am dealing with repeated measurements for the same

Re: [R] Importing an Excel file that has merged cells

2007-06-30 Thread jim holtman
I think this does what you want using the 'na.locf' function is zoo: x - read.csv('/tote.csv', header=FALSE, skip=4) # fill blanks in name column with NAs is.na(x$V2) - x$V2 == # load the 'zoo' library for the function na.locf require(zoo) x$V1 - na.locf(x$V1) # key x$V2 - na.locf(x$V2) # name

Re: [R] Determining whether a function's return value is assigned

2007-06-30 Thread Uwe Ligges
Paul Laub wrote: Dear all, Does R offer a means by which a function can determine whether its return value is assigned? I am using R 2.4.1 for Windows. Short answer: No. Long answer: You want to have a class for the object called bigobject below and a print/show method that provides the

[R] import data

2007-06-30 Thread eric zoukekang
Hello! I wonder if you might help me with informations about how to import data with a 2.4.1 R version without the menu Import data. Best regards. Eric Duplex ZOUKEKANG Ingénieur Zootechnicien Montpellier SupAgro Master2 AAA-PARC tel : +33(0)661432340 [EMAIL PROTECTED]

Re: [R] Importing an Excel file that has merged cells

2007-06-30 Thread stefan lhachimi
Hi Jim, it looks perfect! Thanx a lot! Have a nice weekend, Stefan On 6/30/07, jim holtman [EMAIL PROTECTED] wrote: I think this does what you want using the 'na.locf' function is zoo: x - read.csv('/tote.csv', header=FALSE, skip=4) # fill blanks in name column with NAs is.na(x$V2) - x$V2

[R] Standard Probability Distributions.

2007-06-30 Thread Marcus Vinicius
Dear all, What are the standard probability distributions available in R? I need some as Normal-Truncated, Half-Normal, Gamma, Chi-squared, Wishard, etc. Thanks. Marcus Vinicius [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

Re: [R] Dominant eigenvector displayed as third (Marco Visser)

2007-06-30 Thread RAVI VARADHAN
Yes, Spencer, your observation is correct, because the characeristic equation det(A - \lambda*I) is a sixth degree polynomial: \lambda^6 - 5 = 0. So the eigenvalues are the complex numbers (generally) that are located at equal angles on the circle of radius 5^(1/6), at angles 2*pi*k/6, where k

Re: [R] Standard Probability Distributions.

2007-06-30 Thread David Barron
Have a look in the stats package for the distributions that come with base R. There is a package called SuppDists that has some others, and no doubt there are others. Try RSiteSearch to look for specific distributions. On 30/06/07, Marcus Vinicius [EMAIL PROTECTED] wrote: Dear all, What are

Re: [R] import data

2007-06-30 Thread Christophe Pallier
ha On 6/30/07, eric zoukekang [EMAIL PROTECTED] wrote: Hello! I wonder if you might help me with informations about how to import data with a 2.4.1 R version without the menu Import data. Best regards. Eric Duplex ZOUKEKANG Ingénieur Zootechnicien Montpellier SupAgro Master2 AAA-PARC

Re: [R] import data

2007-06-30 Thread Christophe Pallier
Oops, sorry for the previous empty reply. You do not tell us which Operating System you are using, so I assume it must be Windows... You should check the R import/export Data available from the Help/Manuals menu (in French: Aide/Manuels...) Christophe On 6/30/07, Christophe Pallier [EMAIL

Re: [R] import data

2007-06-30 Thread Roland Rau
Hi Eric, eric zoukekang wrote: Hello! I wonder if you might help me with informations about how to import data with a 2.4.1 R version without the menu Import data. Best regards. the best information about importing data in R is contained in the manual R Data Import/Export which should be

[R] random numbers

2007-06-30 Thread Ross Boylan
Although this query was inspired by distributed random number generation, one of the questions (#2 below) is a single-machine issue. I call C++ code from R to generate simulated data. I'm doing this on a cluster, and use rmpi and rsprng. While rsprng randomizes R-level random numbers (e.g.,

[R] Programming Contests for R?

2007-06-30 Thread Roland Rau
Dear all, I just saw for the first time the 'Matlab Programming Contest' at http://www.mathworks.com/contest/overview.html Is there something comparable for R? Is someone interested in organizing such a thing? Of course, one can try to solve the Matlab Problems Sets in R, but I think it

Re: [R] Programming Contests for R?

2007-06-30 Thread Dirk Eddelbuettel
On 30 June 2007 at 15:31, Roland Rau wrote: | I just saw for the first time the 'Matlab Programming Contest' at | http://www.mathworks.com/contest/overview.html | | Is there something comparable for R? Is someone interested in organizing | such a thing? Well, AFAIK there will be some sort of

Re: [R] random numbers

2007-06-30 Thread Dirk Eddelbuettel
On 30 June 2007 at 12:12, Ross Boylan wrote: | I call C++ code from R to generate simulated data. I'm doing this on a | cluster, and use rmpi and rsprng. While rsprng randomizes R-level | random numbers (e.g., from runif), it has no effect on the C code, which | is completely SPRNG and MPI

Re: [R] random numbers

2007-06-30 Thread Ross Boylan
On Sat, 2007-06-30 at 14:50 -0500, Dirk Eddelbuettel wrote: On 30 June 2007 at 12:12, Ross Boylan wrote: | I call C++ code from R to generate simulated data. I'm doing this on a | cluster, and use rmpi and rsprng. While rsprng randomizes R-level | random numbers (e.g., from runif), it has no

[R] R CMD INSTALL in R 2.5.1 (2007-06-27)

2007-06-30 Thread Fredrik Lundgren
Hello, I'm moving from R 2.2.1 (Winows XP) to R 2.5.1 and have problems with installing myfuncs, which worked OK in 2.2.1 R CMD INSTALL myfuns # gives installing to '' -- Making package myfuncs adding build stamp to DESCRIPTION installing R files installing man

Re: [R] R CMD INSTALL in R 2.5.1 (2007-06-27)

2007-06-30 Thread Uwe Ligges
Fredrik Lundgren wrote: Hello, I'm moving from R 2.2.1 (Winows XP) to R 2.5.1 and have problems with installing myfuncs, which worked OK in 2.2.1 R CMD INSTALL myfuns # gives installing to '' Have you set an environment variable such as R_LIBS that is rather than a sensible

Re: [R] R CMD INSTALL in R 2.5.1 (2007-06-27)

2007-06-30 Thread Fredrik Lundgren
Sorry, my fault! I had # install myfuncs library(myfuncs) in the RProfile.site before I had myfuncs installed # library(myfuncs) fixed everything. I could now R CMD INSTALL as before - no problems Thanks for your help Fredrik - Original Message - From: Uwe Ligges [EMAIL

Re: [R] [R-SIG-Finance] Method dispatch in functions?

2007-06-30 Thread Carlos J. Gil Bellosta
Look at the UseMethod function. The help for the print method, a heavily overloaded function, can also help. Regards, Carlos J. Gil Bellosta http://www.datanalytics.com On Thu, 2007-06-28 at 09:05 -0700, John McHenry wrote: Hi, Could someone point me in the right direction for documentation

[R] speed and looping issues; calculations on big datasets

2007-06-30 Thread martin sikora
dear r users, i'm a little stuck with the following problem(s), hopefully somebody can offer some help: i have data organized in a binary matrix, which can become quite big like 60 rows x 10^5 columns (they represent SNP genotypes, for some background info). what i need to do is the

[R] MDS/NMDS: When and Why use or not use?

2007-06-30 Thread Milton Cezar Ribeiro
Dear all, I would like to know when I use NMDS stead PCA or CA analyses? Up to I know, I use PCA (or PCoA) for condense the great part of vaciance on the firsts axis, and CA (or DCA) when I would like to identify the structure/composition of data inside a matrix. But I have seem that

[R] How to save results from chisq.test or mantelhaen.test to file

2007-06-30 Thread adschai
Hi, I am new to these functions. I'm wondering if there is anyway to save the entire results (all attributes of the result object) from the chisq.test or mantelhaen.test functions? For example, from chisq.test function, you will have statistic, parameter, p.value, expected, etc. in the result