[R] Problem w/ SJava package

2003-10-23 Thread Humphreys, Darryl
Hello,

Seems like it is almost working properly. I was able to run examples calling
R from Java successfully for the java code below. However, some commands,
such as objects when not commented out, give me the following error? If
you could point me to the correct place to find a solution, I would much
appreciate it. I am new to the R community and not sure where is the
appropriate place to look for this kind of help. I am running this on linux.

Thanks,
Darryl



Loading RInterpreter library

R : Copyright 2002, The R Development Core Team
Version 1.6.1  (2002-11-01)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type `license()' or `licence()' for distribution details.

R is a collaborative project with many contributors.
Type `contributors()' for more information.

Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.

done w/ evaluator constructor

Unexpected Signal : 11 occurred at PC=0x4039A074
Function=(null)+0x4039A074
Library=/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.


Current Java thread:
at org.omegahat.R.Java.REvaluator.call(Native Method)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:137)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:127)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:118)
at SJ.init(SJ.java:26)
at SJ.main(SJ.java:39)

Dynamic libraries:
08048000-0804e000 r-xp  00:17 1402717
/opt/sunjdk/1.4.1_01-b01/bin/java
0804e000-0804f000 rw-p 5000 00:17 1402717
/opt/sunjdk/1.4.1_01-b01/bin/java
4000-40016000 r-xp  08:01 97248  /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 08:01 97248  /lib/ld-2.2.4.so
40018000-4001b000 r--s  00:17 1352683
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/dnsns.jar
4001b000-4001c000 r--p  08:01 97167
/usr/lib/locale/en_US/LC_TIME
4001e000-4002b000 r-xp  08:01 210597 /lib/i686/libpthread-0.9.so
4002b000-4002f000 rw-p c000 08:01 210597 /lib/i686/libpthread-0.9.so
4004f000-40052000 r-xp  08:01 97261  /lib/libdl-2.2.4.so
40052000-40053000 rw-p 2000 08:01 97261  /lib/libdl-2.2.4.so
40053000-40186000 r-xp  08:01 210593 /lib/i686/libc-2.2.4.so
40186000-4018b000 rw-p 00132000 08:01 210593 /lib/i686/libc-2.2.4.so
4018f000-404a7000 r-xp  00:17 526106
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so
404a7000-4065b000 rw-p 00317000 00:17 526106
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so
4066b000-4067e000 r-xp  08:01 97266  /lib/libnsl-2.2.4.so
4067e000-4067f000 rw-p 00012000 08:01 97266  /lib/libnsl-2.2.4.so
40681000-406a3000 r-xp  08:01 210595 /lib/i686/libm-2.2.4.so
406a3000-406a4000 rw-p 00021000 08:01 210595 /lib/i686/libm-2.2.4.so
406a4000-406ad000 r-xp  00:17 526100
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/native_threads/libhpi.so
406ad000-406ae000 rw-p 8000 00:17 526100
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/native_threads/libhpi.so
406af000-406bf000 r-xp  00:17 526110
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libverify.so
406bf000-406c1000 rw-p f000 00:17 526110
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libverify.so
406c1000-406e2000 r-xp  00:17 526111
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libjava.so
406e2000-406e4000 rw-p 0002 00:17 526111
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libjava.so
406e4000-406f9000 r-xp  00:17 2151585
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libzip.so
406f9000-406fb000 rw-p 00014000 00:17 2151585
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libzip.so
406fb000-41dc9000 r--s  00:17 2635968
/opt/sunjdk/1.4.1_01-b01/jre/lib/rt.jar
41e0c000-41e23000 r--s  00:17 1352686
/opt/sunjdk/1.4.1_01-b01/jre/lib/sunrsasign.jar
41e23000-41e94000 r--s  00:17 1352694
/opt/sunjdk/1.4.1_01-b01/jre/lib/jsse.jar
41e94000-41ea7000 r--s  00:17 1352687
/opt/sunjdk/1.4.1_01-b01/jre/lib/jce.jar
41ea7000-42163000 r--s  00:17 1437648
/opt/sunjdk/1.4.1_01-b01/jre/lib/charsets.jar
4c413000-4c43e000 r--p  08:01 16337
/usr/lib/locale/en_US/LC_CTYPE
4c43e000-4c448000 r-xp  08:01 97282  /lib/libnss_files-2.2.4.so
4c448000-4c449000 rw-p 9000 08:01 97282  /lib/libnss_files-2.2.4.so
4c449000-4c453000 r-xp  08:01 97287  /lib/libnss_nis-2.2.4.so
4c453000-4c454000 rw-p 9000 08:01 97287  /lib/libnss_nis-2.2.4.so
4c658000-4c675000 r--s  00:17 1352682
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/sunjce_provider.jar
4c675000-4c714000 r--s  00:17 1352684
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/localedata.jar
4c714000-4c722000 r--s  00:17 1352685
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/ldapsec.jar
4c722000

RE: [R] lm with an arbitrary number of terms

2003-04-03 Thread Darryl
How about the following?

lm(as.formula(paste(y~,paste(names(data.frame),
collapse=+),sep=),cbind(data.frame,y))

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard Nixon
Sent: 02 April 2003 19:50
To: [EMAIL PROTECTED]
Subject: [R] lm with an arbitrary number of terms


Hello folks,

Any ideas how to do this?

data.frame is a data frame with column names x1,...,xn
y is a response variable of length dim(data.frame)[1]

I want to write a function

function(y, data.frame){
lm(y~x1+...+xn)
}

This would be easy if n was always the same.
If n is arbitrary how could I feed the x1+...+xn terms into
lm(response~terms)?

Thanks
Richard

--
Dr. Richard Nixon
MRC Biostatistics Unit, Cambridge, UK
http://www.mrc-bsu.cam.ac.uk/personal/richard
Tel: +44 (0)1223 330382, Fax: +44 (0)1223 33038

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] Question on Plotting

2003-03-30 Thread Darryl



I believe there are several packages that 
can do this. I have found the errorbars function in Frank Harrell's Hmisc 

package (http://hesweb1.med.virginia.edu/biostat/s/Hmisc.html) 
to be quite good. 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  JeremySent: 30 March 2003 10:13To: 
  [EMAIL PROTECTED]Subject: [R] Question on 
  Plotting
  I am looking to 
  plot confidence and prediction interval bandsfor a specfic set of 
  data. What R commands would i use to plot this 
data?
Blank Bkgrd.gif__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] fontsize

2003-03-23 Thread Darryl
?contour suggests labcex is the right parameter.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Branimir K.
Hackenberger
Sent: 24 March 2003 00:19
To: [EMAIL PROTECTED]
Subject: [R] fontsize



Hi all !

How to change fontsize of contour labels (function: contour(), package:
base)

Thanks!


Branimir

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: [R] Simple question about export

2003-03-12 Thread Darryl
If that is what you tried, then you didn't supply the object to the
write.table function.
e.g. if your data.frame is called mydata in R you need

write.table(mydata,c:/foo/data.dat)

The file is ascii. Note also that you either have to use forward slashes (as
above) or double backslashes

write.table(mydata,c:\\foo\\data.dat)

R doesn't do the expected thing with single backslashes as you wrote it.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Michael Miettinen
Sent: 12 March 2003 15:13
To: [EMAIL PROTECTED]
Subject: [R] Simple question about export


Hi,

Sorry about making this stupid question, but I did not
find the answer from documentation.

I managed to read my spss .sav file into the R, no
problem.  Next I would like to write this data to a
file in ascii-format. I tried to use write.table and I
got no error messages, but no file either. What is the
right way to make it?

At least write.table(c:\foo\data.dat) does not
work..

Thanks in advance!

Michael

=
[EMAIL PROTECTED]
+358 40 849 1140

__

Yahoo! Web Hosting - establish your business online

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


RE: BSOD with ESS[R] under win2000

2003-03-05 Thread Darryl Greig
It's certainly a difficult problem to isolate - as you say it may well
be connected to some other combination of application / drivers. I shall
investigate emacs help as a next step. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 10:08 AM
To: Darryl Greig
Cc: R-Help (E-mail)
Subject: Re: BSOD with ESS[R] under win2000


Was there anything to indicate that this was a problem in R (and not emacs 
nor Windows, especially a Windows driver)?

Those of us who never experience it will not be familiar with `BSOD': it
is I presume the blue screen shown by a fatal error in Windows internals.
I think I have seen just once under XP (in 2 year's usage).  If so it 
contains information about the cause.

BTW, as the rw-FAQ Q2.11 indicates, this is not the right list for ESS
users' questions, but my guess would be that this is not a problem in 
either R or ESS.

On Wed, 5 Mar 2003, Darryl Greig wrote:

 I have had a visit from our windows buddy the BSOD twice in one day when
 running
 R1.6.2 under ESS5.1.24 on a win2000 platform. I wasn't doing anything
 special, just
 moving or resizing the emacs window, although I did have 4 or 5 emacs
 windows
 open at the time. Has anyone else observed this problem?

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


BSOD with ESS[R] under win2000

2003-03-04 Thread Darryl Greig
I have had a visit from our windows buddy the BSOD twice in one day when
running
R1.6.2 under ESS5.1.24 on a win2000 platform. I wasn't doing anything
special, just
moving or resizing the emacs window, although I did have 4 or 5 emacs
windows
open at the time. Has anyone else observed this problem?

Thanks, Darryl.

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] model.frame.default problem in function definition

2003-03-02 Thread Darryl Greig
Could someone point me in the right direction for the following issue:

A function is defined as follows:

tfun - function(dat)
  {
fmla - as.formula(y~x+z)
dat2 - dat
mdl - lm(fmla,dat2)
mdl - step(mdl)
  }

Then the following code

dat - data.frame(x=1:10,z=1:10,y=(1:10)^2+10*(1:10))
tfun(dat)

generates the output

Start:  AIC= 43.67
 y ~ x + z

Error in model.frame.default(formula = y ~ z, data = dat2,
drop.unused.levels = TRUE) :
Object dat2 not found

Any help or pointers gratefully accepted.

Thanks,
Darryl Greig ([EMAIL PROTECTED])

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help