[R] help in R calling C function

2004-06-27 Thread Lei Liu
Hi there, I want to call a C function in R. I have some experience on it, but this time I need to call another C function in the main C function. As a simple example, I use the following C code: #include stdio.h #include math.h #include stdlib.h #include time.h void main(double *alpha) {

[R] subset drop unused levels

2004-06-27 Thread Søren Merser
hi there tried to use subset with drop=TRUE, but all the 'old' levels are preserved, i.e. when calling e.g. ftable a lot of zeros are displayed x-subset(LREG, (kir=='AA' | kir=='BB') (type=='t1' | otype=='t2'), drop=TRUE, select=c(event, kir, type)) ftable(x) i explicit have to call factor

Re: [R] subset drop unused levels

2004-06-27 Thread Peter Dalgaard
Søren Merser [EMAIL PROTECTED] writes: hi there tried to use subset with drop=TRUE, but all the 'old' levels are preserved, i.e. when calling e.g. ftable a lot of zeros are displayed x-subset(LREG, (kir=='AA' | kir=='BB') (type=='t1' | otype=='t2'), drop=TRUE, select=c(event, kir,

Re: [R] help in R calling C function

2004-06-27 Thread Uwe Ligges
Lei Liu wrote: Hi there, I want to call a C function in R. I have some experience on it, but this time I need to call another C function in the main C function. As a simple example, I use the following C code: #include stdio.h #include math.h #include stdlib.h #include time.h void main(double

Re: [R] Sphericity test

2004-06-27 Thread Sven Hartenstein
Eduardo Dutra de Armas [EMAIL PROTECTED] writes: Does anybody know if there are functions or packages in R for sphericity tests like Bartlett's or Mauchly's? help(bartlett.test) Sven __ [EMAIL PROTECTED] mailing list

[R] Re: help in R calling C function (Lei Liu)

2004-06-27 Thread Zhu Wang
Message: 4 Date: Sun, 27 Jun 2004 03:18:43 -0400 From: Lei Liu [EMAIL PROTECTED] Subject: [R] help in R calling C function To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed Hi there, I want to call a C function in R. I have

Re: [R] Re: help in R calling C function (Lei Liu)

2004-06-27 Thread Uwe Ligges
Zhu Wang wrote: Message: 4 Date: Sun, 27 Jun 2004 03:18:43 -0400 From: Lei Liu [EMAIL PROTECTED] Subject: [R] help in R calling C function To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed Hi there, I want to call a C function in R. I

[R] back transformation from avas

2004-06-27 Thread Anne
Hello R helpers! I'm using the avas function form package acepack (called from areg.boot package Hmisc) to estimate automatically transformations of predictors (in this case monotonous) and response. Well, it seems to work quite well, but I have 3 basic questions: - which set of basis

[R] Answer to help in R calling C function

2004-06-27 Thread Lei Liu
Hi there, Thank you all for your timely response. I find the right way to do it. There is a good example in Dr. Burns website: http://www.burns-stat.com/pages/Spoetry/Spoetry.pdf Page 174. So this is the right way to do: #include stdio.h #include math.h #include stdlib.h #include time.h double

Re: [R] back transformation from avas

2004-06-27 Thread Frank E Harrell Jr
Anne wrote: Hello R helpers! I'm using the avas function form package acepack (called from areg.boot package Hmisc) to estimate automatically transformations of predictors (in this case monotonous) and response. Well, it seems to work quite well, but I have 3 basic questions: - which set of

Re: [R] Installing on Windows packages build on Unix

2004-06-27 Thread Harolddd
Giovanni Petris wrote: Hello, I wanted to share with a colleague a few R functions that I wrote. To this purpose, I created a small package on my machine (Unix) and emailed it to her. Now she is having troubles installing the package on her Windows machine. It seems that on her side,

Re: [R] Installing on Windows packages build on Unix

2004-06-27 Thread Prof Brian Ripley
On Sun, 27 Jun 2004, Harolddd wrote: Giovanni Petris wrote: I wanted to share with a colleague a few R functions that I wrote. To this purpose, I created a small package on my machine (Unix) and emailed it to her. Now she is having troubles installing the package on her Windows

Re: [R] Installing on Windows packages build on Unix

2004-06-27 Thread Peter Dalgaard
Harolddd [EMAIL PROTECTED] writes: Giovanni Petris wrote: Hello, I wanted to share with a colleague a few R functions that I wrote. To this purpose, I created a small package on my machine (Unix) and emailed it to her. Now she is having troubles installing the package on her

Re: [R] Installing on Windows packages build on Unix

2004-06-27 Thread Peter Dalgaard
Peter Dalgaard [EMAIL PROTECTED] writes: Harolddd [EMAIL PROTECTED] writes: Giovanni Petris wrote: ... on her Windows machine. It seems that on her side, install.packages looks for a zip file - while I have created a tar.gz file. I tried to build the package with the --use-zip

[R] direction of axes of plot

2004-06-27 Thread XIAO LIU
R users: I want X-Y plotting with axes in reverse direction such as (0, -1, -2, -3, ). How can I do it? Thanks in advance Xiao __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] direction of axes of plot

2004-06-27 Thread Marc Schwartz
On Sun, 2004-06-27 at 18:24, XIAO LIU wrote: R users: I want X-Y plotting with axes in reverse direction such as (0, -1, -2, -3, ). How can I do it? Thanks in advance Xiao If I am understanding what you want, the following should give you an example: # Create x and y with

Re: [R] direction of axes of plot

2004-06-27 Thread Ross Ihaka
XIAO LIU wrote: R users: I want X-Y plotting with axes in reverse direction such as (0, -1, -2, -3, ). How can I do it? Thanks in advance Use the xlim and ylim arguments to plot. x = -(1:10) y = rnorm(10) # Standard plot plot(x, y) # Reversed x-axis

[R] R via ssh login on OS X?

2004-06-27 Thread James Howison
I have an ssh only login to a G5 on which I am hoping to run some analyses. The situation is complicated by the fact that the computer's owner is away for the summer (and thus also only has shell login). R is installed and there is a symlink to /usr/local/bin/R but when I try to launch it I