Re: [R] Importing BSQ/BIP/BIL files into R

2004-02-13 Thread Roger Bivand
On Thu, 12 Feb 2004, Jonathan Greenberg wrote: I was hoping I could get some help with an import question. I work with remote sensing imagery which commonly comes in binary form in various interleaving formats (byte interleaved by line, by pixel, etc..). These files are 2d spatial x B bands

[R] Parallel programming with R

2004-02-13 Thread Isabel
Hello, I am trying to do some parallel programming with R. I programmed with C and MPI before. I heard that there is a package called Rmpi and one called snow. What is the difference? I know the administrator installed snow in our system so I wonder if this mean there is Rmpi in it. I believe

[R] Windows dll compilation (mingw32): how to find R.h and other head er files when sketching short functions

2004-02-13 Thread Paul Hewson
Sorry, this seems like a particularly stupid question, but here goes. It relates to some sketching work I'm doing under Windoze. I can only get my C code to find R.h and friends if I shift these header files files and folders into the analogous mingw32 folders. This seems a rather clumsy way

Re: [R] Windows dll compilation (mingw32): how to find R.h and other head er files when sketching short functions

2004-02-13 Thread Peter Dalgaard
Paul Hewson [EMAIL PROTECTED] writes: Sorry, this seems like a particularly stupid question, but here goes. It relates to some sketching work I'm doing under Windoze. I can only get my C code to find R.h and friends if I shift these header files files and folders into the analogous

Re: [R] calling R from a shell script and have it display graphics

2004-02-13 Thread Michael A. Miller
Don == Don MacQueen [EMAIL PROTECTED] writes: I don't know about the simpler part, but you could use the tcltk package to put up a window that prompts the user to continue. Here's a function that does that. I use to prompt the user to choose among printing the current device

RE: [R] Windows dll compilation (mingw32): how to find R.h and ot her head er files when sketching short functions

2004-02-13 Thread Liaw, Andy
I thought Rcmd SHLIB mycode.c should take care of that, no? Andy From: Paul Hewson Sorry, this seems like a particularly stupid question, but here goes. It relates to some sketching work I'm doing under Windoze. I can only get my C code to find R.h and friends if I shift these

[R] lattice: showing panels for factor levels with no values

2004-02-13 Thread Dieter Menne
Wolfram Fischer wrote ( Is there an option to show empty panels for Grand Rapids in ``my.barley''? Deepayan No, unused factor levels are dropped. I'll see if adding an option for this is feasible. Dieter Menne: See also http://maths.newcastle.edu.au/~rking/R/help/01c/2820.html Deepayan, at

[R] R installation and reg-test

2004-02-13 Thread Pierre-Andre Cornillon
Hello I have encountered some problem in R 1-8-1 installation. The compilation run smoothly (make) but the (make) check step fails at the reg-tests-1.R step It is said that (at the end of reg-tests-1.Rout.fail) library(mva) ## cmdscale ## failed in versions = 1.4.0 : data(eurodist) cm1 -

RE: [R] Readbin and file position

2004-02-13 Thread Wiener, Matthew
The seek command will allow you to skip to a particular byte position in the file. You can define the position you want relative to your current position, or to the start of the file. Hope this helps, Matt Wiener -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [R] Almost Ideal Demand System

2004-02-13 Thread Arne Henningsen
Hi Wayne, I did some demand analsis with R and the systemfit package. For me it worked very well. Therefore, I want to prepare a new package for R that contains the functions to estimate the (LA-)AIDS, calculates the demand elasticities and so on. However, it will take me some time until this

Re: [R] Parallel programming with R

2004-02-13 Thread Douglas Bates
Isabel [EMAIL PROTECTED] writes: I am trying to do some parallel programming with R. I programmed with C and MPI before. I heard that there is a package called Rmpi and one called snow. What is the difference? Frequently that type of question is answered in the documentation for the two

[R] Problems loading dataset in Rcmdr

2004-02-13 Thread CG Pettersson
Hello all! I´ve been using Rcmdr for some time, as a quick way of producing graphics and basic statistics. I run R1.8.1, OS W2000. Two days ago the dataset loader stopped working. Normally, the button No active dataset is clickable to give you the opportunity to choose dataset to load in the

[R] generic/method .. find.package

2004-02-13 Thread Matt Pocernich
Hello, I get the following error running R CMD check on a simple package. This package just contains 3 functions and does not call any other packages. Do you have any idea what might be the issue, or what I might check? Thanks, Matt * checking generic/method consistency ... WARNING Error in

[R] Frailty Model - parameter inferences

2004-02-13 Thread Benilton Carvalho
Hi, I've been trying to find how to extract the inference info about \theta ... Is there any easy way to do it? Thanks, Benilton _ Create your own personal Web page with the info you use most, at My MSN.

Re: [R] lattice: showing panels for factor levels with no values

2004-02-13 Thread Deepayan Sarkar
On Friday 13 February 2004 07:18, Dieter Menne wrote: [...] Dieter Menne: See also http://maths.newcastle.edu.au/~rking/R/help/01c/2820.html Deepayan, at that time I received an e-mail (not in the archives) from you saying that this feature was already in the code, but not yet active

[R] Problems with R CMD INSTALL on SUSE-LINUX 9.0

2004-02-13 Thread Joerg Polzehl
Dear Colleagues, I've recently upgraded to SUSE-LINUX 9.0 and R 1.8.1 (using the RPM-'s from CRAN). I've checked that all required LINUX-Packages as listet in the README.html in /bin/linux/SUSE are installed. I've then tried to INSTALL and check a package. Installation with R CMD

[R] predict function

2004-02-13 Thread Thomas Jagoe
I am using R to do a loess normalisation procedure. In 1.5.1 I used the following commands to normalise the variable logratio, over a 2d surface (defined by coordinates x and y): array - read.table(121203B_QCnew.txt, header=T, sep=\t) array$logs555-log(array$s555)/log(2)

Re: [R] Calculate Closest 5 Cases?

2004-02-13 Thread Tom Blackwell
Danny - The flip answer is, it depends on the size of your computer. One can readily calculate the number of entries in the pairwise distance matrix that you would like to calculate, and ask whether it will fit inside the physical memory installed in your computer. It is 50,000 x 50,000 x 8

Re: [R] Problems with R CMD INSTALL on SUSE-LINUX 9.0

2004-02-13 Thread Uwe Ligges
Joerg Polzehl wrote: Dear Colleagues, I've recently upgraded to SUSE-LINUX 9.0 and R 1.8.1 (using the RPM-'s from CRAN). I've checked that all required LINUX-Packages as listet in the README.html in /bin/linux/SUSE are installed. I've then tried to INSTALL and check a package.

Re: [R] predict function

2004-02-13 Thread Douglas Grove
You can't use this anymore. The function predict() has a method for loess objects, but there is no longer an available function called predict.loess. So just replace predict.loess with predict. On Fri, 13 Feb 2004, Thomas Jagoe wrote: I am using R to do a loess normalisation procedure. In

Re: [R] calling R from a shell script and have it display graphics

2004-02-13 Thread David Brahm
Christophe Pallier [EMAIL PROTECTED] wrote: I would like to call R from a shell script and have it display a series of graphics. The graphics should remain visible until the user clicks or presses a key. One trick is to use locator(1), which waits for a mouse click on a plot. Here's a minimal

[R] How to plot a blank plot

2004-02-13 Thread Adrian Custer
Hello everyone, In plotting several graphics, I'd like to be able to plot a blank plot as in: par(mfrow=c(2,1)) plot(BLANK) hist(rgamma(10,6463.7,scale=0.015471),xlim=c(0,120),main=Emergence) I realize screen allows me to do this, but I figure the functionality must be there. Is there an

RE: [R] How to plot a blank plot

2004-02-13 Thread Liaw, Andy
Is plot.new() what you're looking for? Andy From: Adrian Custer Hello everyone, In plotting several graphics, I'd like to be able to plot a blank plot as in: par(mfrow=c(2,1)) plot(BLANK) hist(rgamma(10,6463.7,scale=0.015471),xlim=c(0,120),main= Emergence) I realize screen

Re: [R] How to plot a blank plot

2004-02-13 Thread Chuck Cleland
Adrian Custer wrote: In plotting several graphics, I'd like to be able to plot a blank plot as in: par(mfrow=c(2,1)) plot(BLANK) hist(rgamma(10,6463.7,scale=0.015471),xlim=c(0,120),main=Emergence) I realize screen allows me to do this, but I figure the functionality must be there. Is there an

Re: [R] How to plot a blank plot

2004-02-13 Thread Marc Schwartz
On Fri, 2004-02-13 at 14:11, Adrian Custer wrote: Hello everyone, In plotting several graphics, I'd like to be able to plot a blank plot as in: par(mfrow=c(2,1)) plot(BLANK) hist(rgamma(10,6463.7,scale=0.015471),xlim=c(0,120),main=Emergence) I realize screen allows me to do this,

[R] Re: Re: Find Closest 5 Cases?

2004-02-13 Thread dsheuman
Art (and group), I'm doing this as a form of missing value analysis. Approximately 30% of the cases are missing data for one variable. To impute values for those cases, I'd like to match those cases that are missing the variable to all other cases and then take an average of those to infill.

Re: [R] Calculate Closest 5 Cases?

2004-02-13 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: I've only begun investigating R as a substitute for SPSS. I have a need to identify for each CASE the closest (or most similar) 5 other CASES (not including itself as it is automatically the closest). I have a fairly large matrix (5 cases by 50 vars). In

RE: [R] How to plot a blank plot

2004-02-13 Thread Adrian Custer
No, the opposite. plot.new() will allow me to plot again in the same location. I want to skip the current location and plot on the next (bottom) split. I want my plots on the bottom half of the page so the top half can have my notes. --adrian On Fri, 2004-02-13 at 12:21, Liaw, Andy wrote: Is

[R] Re: Find Closest 5 Cases?

2004-02-13 Thread Art Kendall
Dealing with missing data can be very complex. A lot depends on the actual research area under study. Giving reasonable suggestions would take a lot more understanding of the context in which the question is being asked, the nature of the data, and the review procedures the results would

[R] profiling C code

2004-02-13 Thread Dan Davison
I'd like to profile some C code that I'm calling using .Call(). Could someone point me towards some instructions for doing this, or suggest a way to go about it (other than creating an independent C program from my code?)? Thanks a lot, Dan

Re: [R] How to plot a blank plot

2004-02-13 Thread Don MacQueen
And although frame() is obviously the better way, if you really wanted to know what to put inside plot(), this will do it: plot(1, type='n', xaxt='n', yaxt='n', xlab='', ylab='', bty='n') -Don At 12:41 PM -0800 2/13/04, Adrian Custer wrote: frame() it is! I suspected there would be

Re: [R] Calculate Closest 5 Cases?

2004-02-13 Thread Albyn Jones
A quick and dirty clustering method (I think its due to Hartigan, at least I recall first seeing it in his book on clustering) is to pick a random set of seed cases, and then make one pass through the data, assigning each case to the seed closest to it. Then you can compute your distance matrices

Re: [R] Re: Re: Find Closest 5 Cases?

2004-02-13 Thread Chuck Cleland
[EMAIL PROTECTED] wrote: I'm doing this as a form of missing value analysis. Approximately 30% of the cases are missing data for one variable. To impute values for those cases, I'd like to match those cases that are missing the variable to all other cases and then take an average of those to

Re: [R] Re: Re: Find Closest 5 Cases?

2004-02-13 Thread Sean Davis
Danny, In the bioconductor suite (www.bioconductor.org) in the pamr package there is a program called pamr.knnimpute that will probably at least close to what you would like to do. Sean -- Sean Davis, M.D., Ph.D. Clinical Fellow National Institutes of Health National Cancer Institute National

Re: [R] Problems loading dataset in Rcmdr

2004-02-13 Thread John Fox
Dear CG, These symptoms seem very odd to me, particularly since everything was working well until two days ago. Is it possible that you have a saved workspace that is being loaded each time you run R? I don't believe that a saved workspace will be removed by an uninstall and reinstall of R

Re: [R] AGREP

2004-02-13 Thread Michael Friendly
The problem of calculating levenshtein distances between strings reminds me of what I faced years ago when writing an APL system to control interactive memory experiments, where subjects typed words they could remember from a given list. To handle typos, I used the generalized outer product

[R] Problems getting R to work from Java under Windows

2004-02-13 Thread Danny Rosenthal
Hi: I have been trying to get R to work from Java in a Windows XP environment. I have spent a significant amount of time looking at how other people resolved my issue but have not found anything so far. Specifically when I try to start up the interpreter, such as through the JavaRCall example,

[R] Digital Image Processing

2004-02-13 Thread Robert W. Baer, Ph.D.
I have seen several posts (but few answers) in R-help search as to whether there are any packages that use R to process digital images. There are several categories related to the general type of problem that are useful to know about: -- Any existing packages for taking a digital image format

Re: [R] Almost Ideal Demand System

2004-02-13 Thread Masaei Sato
Hi Arne, I think that the R is a powerful programming language for an econometric analysis. But the R is less used in economics as compared with other fields. So, if you will release your package, those who are working/studying in the field of applied economics will surely get profit. I'm

[R] How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?

2004-02-13 Thread Barnet Wagman
I'm trying to get R and ESS to work with Xemacs on a newly installed SuSE 9.0 system. Is some setup required beyond installing the rpms? I've installed the Xemacs packages from SuSE xemacs-info-21.4.13-35 xemacs-packages-el-20030629-37 xemacs-21.4.13-35 xemacs-el-21.4.13-35

Re: [R] PLEASE IGNORE PREVIOUS: How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?

2004-02-13 Thread A.J. Rossini
You need something like (require 'ess-site) in your .xemacs/init.el file.I'd suggest posting to the ESS-help list, though. Barnet Wagman [EMAIL PROTECTED] writes: Please ignore (and excuse) my previous message - it is incomplete. I'm trying to get R and ESS to work with Xemacs on a