Hi everybody
anybody knows how to talk with R like shown in the Java-Code above?
Perhaps someone can help, or tell me its not possible.
/*
* Java_R.java
*
* Created on November 11, 2003, 5:36 PM
*/
import java.io.*;
/**
*
* @author markus
*/
public class Java_R {
/** Creates a new
I'm not sure what a calendar time series is, but it may be helpful
to consider it as an irregular time series, depending on what
analysis or display you are wanting to do. As you say, there are
packages (including 'its') for this purpose.
- Giles
-Original Message-
From: Brian
Hi Markus,
My Java is a bit rusty, but I think when reading from an input stream
like the one you've set up, Java blocks if there's no input, waiting
until there is some to return. I don't think the stream ends until the
R process closes. You should test ready() to see if there is more
Dear R-people!
I am using R 1.8.0, under Windows XP.
What I want to do is a date conversion of a character column of a data frame
and assign the result as a new column.
Simple example:
x - data.frame(a=c(yesterday,today,tomorrow), b=I(c(2003,
20031112, 20031113)))
# convert x$b from
Dear R help,
I run R at home and the work, I have Debian Linux on both machines and
the same 'r-base-core' deb packages installed. So I tried to run the
same R script, which plots graph in x11 device and then dump it to eps
file (x11 and eps you'll find attached). On the home machine there are
On Wed, 12 Nov 2003, RINNER Heinrich wrote:
I am using R 1.8.0, under Windows XP.
What I want to do is a date conversion of a character column of a data frame
and assign the result as a new column.
Simple example:
x - data.frame(a=c(yesterday,today,tomorrow), b=I(c(2003,
20031112
Hi,
I work with R and bioconductor only for 2 months, and I'm trying to
work with the marrayTools package from Yee Hwa Yang.
I follow recommandations but R answers me :
data - gpTools()
[1] 33
[1] Reading ./Pf742.gpr
Generating ...Error in exty[[i]] : subscript out of
Timur Elzhov [EMAIL PROTECTED] wrote:
I run R at home and the work, I have Debian Linux on both machines and
the same 'r-base-core' deb packages installed. So I tried to run the
same R script, which plots graph in x11 device and then dump it to eps
file (x11 and eps you'll find attached). On
John Christie [EMAIL PROTECTED] writes:
circ.plot in CircStats under R 1.8.0 yields incorrect plots (easily
compare hist() and rose.diag()). However, the code in circ.plot has
not changed. Has anyone tracked this down yet?
Could you supply a directly runnable example, please?
--
O__
On Wed, Nov 12, 2003 at 05:26:51PM +0700, Philippe Glaziou wrote:
I run R at home and the work, I have Debian Linux on both machines and
the same 'r-base-core' deb packages installed. So I tried to run the
same R script, which plots graph in x11 device and then dump it to eps
file (x11
Dear R-Listers,
We have just updated the version 1.1-2 of survrec package. As you can
remember this package deals with recurrent event data. Previous version
computes survival curves when the interocurrence times are iid or
correlated. The new version allows to calculate asymptotic standard
Hi all,
I am looking for a clever way to create the following graph using R:
I got information on the shares of some subgroups over time (summing up to 1 in each
year). The graph I want to create should display the development of the individual
shares over time by shading rectangulars for each
Timur Elzhov [EMAIL PROTECTED] wrote:
It could be that your X11 Modes differ between both machines,
with a different number of dots per inch.
I use the same resolution, 1024x768 on both machines. Anyway, I do
not think that xserver resolution is important for screenshot size
(in pixels) :)
Hi!
I got information on the shares of some subgroups over time (summing
up to 1 in each year). The graph I want to create should display the
development of the individual shares over time by shading rectangulars
for each share in a different color.
Maybe I'm missing the point but
I have a data frame (df) with colums x, y and z.
e.g. df - data.frame(x = sample(4), y = sample(4), z = sample(4))
I can extract column z by: df$z or df[3]
I can also extract columns x,y by: df[1:2] or by df[-3].
Is it possible to extract x,y columns in a symbolic fashion i.e.
by equivalent of
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
On Nov 12, 2003, at 7:04 AM, Peter Dalgaard wrote:
John Christie [EMAIL PROTECTED] writes:
circ.plot in CircStats under R 1.8.0 yields incorrect plots (easily
compare hist() and rose.diag()). However, the code in circ.plot has
not changed. Has anyone tracked this down yet?
Could you supply a
?match
?pmatch
On Wed, 12 Nov 2003 [EMAIL PROTECTED] wrote:
I have a data frame (df) with colums x, y and z.
e.g. df - data.frame(x = sample(4), y = sample(4), z = sample(4))
I can extract column z by: df$z or df[3]
I can also extract columns x,y by: df[1:2] or by df[-3].
Is it possible
Maybe you should take this up with package maintainers (who may or may
not be reading R-help) ... this sounds like a design/documentation issue
rather than a bug per se (although the distinction is not always clear).
To be honest, the underlying R code in CircStats doesn't seem terribly
At 07:50 12/11/2003 -0500, [EMAIL PROTECTED] wrote:
I have a data frame (df) with colums x, y and z.
e.g. df - data.frame(x = sample(4), y = sample(4), z = sample(4))
I can extract column z by: df$z or df[3]
I can also extract columns x,y by: df[1:2] or by df[-3].
Is it possible to extract x,y
[EMAIL PROTECTED] wrote:
I have a data frame (df) with colums x, y and z.
e.g. df - data.frame(x = sample(4), y = sample(4), z = sample(4))
I can extract column z by: df$z or df[3]
I can also extract columns x,y by: df[1:2] or by df[-3].
Is it possible to extract x,y columns in a symbolic
Hi,
I'm in this situation:
I what to generate N random numbers(integer) that are different from each
other.
One suggestion:
tabel - rep(NULL, N)
for (i in 1:N){
temp - as.integer(runif(1,1,max))
if(temp in tabel) {
repeat (?) (temp - as.integer(runif(i,i,max)))
until (?) ((temp
Uh oh! Time for my occasional reminder post to use subset(),
as in
subset(df, select = -z)
for this case.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 12 November 2003 12:51
To: R-help list
Subject: [R] column extraction by name ?
Security
How much processing takes place before you get to the lme call? Maybe R
has just used up the memory on something else. I think there is a fair
amount of memory leak, as I get similar problems with my program. I use
R 1.8.0. My program goes as follows.
1. Use RODBC to get a data.frame containing
Thanks to Patrick Burns, Giles Heywood, and Gabor Grothendiec for
responding to my question.
Gabor suggested something along the lines of
z - ts(rnorm(25),start=as.numeric(chron(01/25/99)))
and then get back the times like this:
chron(time(z))
To plot it:
plot(chron(time(z)),z)
Patrick
Hi,
Does anyone know whether it is possible to construct a colour for
plotting with an alpha value as well as simply specifying rgb values?
Crispin
This email is confidential and intended solely for the use o...{{dropped}}
Dear R-help folks,
Can someone guide me to a source where I can learn more about the / operator
in model formulae? I found a reference to it in Venables and Ripley's MASS,
p. 142, where it says, in reference to ANCOVA: Terms of the form a/x,
where a is a factor, are best thought of as
Dear R list,
I noticed the following 'problem' when changing the format of dates
created with seq.dates() (from the Chron library) using as.POSIXct()
(R 1.8.0 on OSX 10.2.8):
datesTest-seq.dates(from=10/01/1952, length=3, by=days);
datesTest
[1] 10/01/52 10/02/52 10/03/52
# Now changing the
I what to generate N random numbers(integer) that are different from each
other.
One suggestion:
tabel - rep(NULL, N)
for (i in 1:N){
temp - as.integer(runif(1,1,max))
if(temp in tabel) {
repeat (?) (temp - as.integer(runif(i,i,max)))
until (?) ((temp in tabel) ==FALSE)
Jesper - (off-list)
Jim MacDonald reports seeing different memory-management behavior
between Windows and Linux operating systems on the same, dual boot
machine. Unfortunately, this is happening at the operating system
level, so the R code cannot do anything about it. I have cc'ed
Jim on this
I am using Windows 2000.
Kind regards,
Jesper Frickmann
Statistician, Quality Control
Novozymes North America Inc.
Tel. +1 919 494 3266
Fax +1 919 494 3460
-Original Message-
From: Thomas W Blackwell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 10:43 AM
To: JFRI
Does not happen on Solaris or Linux, so looks like a MacOS X problem.
Here is some crosschecks:
unclass(datesTest)
[1] -6301 -6300 -6299
attr(,format)
[1] m/d/y
attr(,origin)
month day year
1 1 1970
unclass(as.POSIXct(datesTest))
[1] -544406400 -54432 -544233600
On Wed, 12
On Wed, Nov 12, 2003 at 07:14:01PM +0700, Philippe Glaziou wrote:
The width and height of a default R x11 plotting window are both
7 inches.
There will be a different number of dots within those 7x7 square
inches if the number of dots per inch is not similar. This could
be the case even
On Wed, 12 Nov 2003, JFRI (Jesper Frickman) wrote:
How much processing takes place before you get to the lme call? Maybe R
has just used up the memory on something else. I think there is a fair
amount of memory leak, as I get similar problems with my program. I use
Windows, right? I don't
I would like to just create my (point) labels [created by
text(x,y,labels)] in smaller font size, especially when I write out to
eps. all other point sizes should not change. is this possible? help
appreciated. regards, /iaw
__
[EMAIL PROTECTED]
Yes, but currently only alpha=0 and alpha=255 are supported by the
available devices that I know of (and I introduced this).
Adding alpha-level support is complicated for the devices people normally
use, although it would be trivial in PDF1.4.
On Wed, 12 Nov 2003, Crispin Miller wrote:
Does
On Wed, 12 Nov 2003, Landis, R Matthew wrote:
Dear R-help folks,
Can someone guide me to a source where I can learn more about the / operator
in model formulae? I found a reference to it in Venables and Ripley's MASS,
p. 142, where it says, in reference to ANCOVA: Terms of the form a/x,
Prof Brian Ripley [EMAIL PROTECTED] wrote:
Does not happen on Solaris or Linux, so looks like a MacOS X problem.
It does not happen on my Mac G4 box (R 1.8.0 on MacOSX 10.2.6).
--Philippe
Here is some crosschecks:
unclass(datesTest)
[1] -6301 -6300 -6299
attr(,format)
[1] m/d/y
I have just tried listing limsdata from the workspace and it is indeed
gone from .GlobalEnv. I also tried passing the environment to the
as.formula function, but it still doesn't work.
Kind regards,
Jesper Frickmann
Statistician, Quality Control
Novozymes North America Inc.
Tel. +1 919 494
You are being hit by a timezone problem. Its not really shifting
the days by one. Its working in the GMT timezone, not yours.
If you can accept a date format that chron supports then this is the
easiest solution since chron does not support timezones and so can't
give you such problems in
Prof Brian Ripley [EMAIL PROTECTED] writes:
The difference is between testing and crossing. In a / b the levels
of b are unrelated for different levels of a, whereas in a*b they are the
same levels.
...nesting and crossing, of course.
--
O__ Peter Dalgaard Blegdamsvej
On Wed, Nov 12, 2003 at 11:05:05AM -0500, ivo welch wrote:
I would like to just create my (point) labels [created by
text(x,y,labels)] in smaller font size, especially when I write out to
eps. all other point sizes should not change. is this possible? help
appreciated. regards, /iaw
HI,
I have been having trouble installing RMySQL under Redhat Linux 9.0. I
am using R 1.8.0 and MySQL 4.0.13. MySQL is install in /opt/mysql. I
try to install RMySQL using configure-args to specify the path of mysql
but it does not work. Does any body have any suggestions.
Thanks,
Arend van
As others already pointed out, the fast way is to use sample().
What I'd like to add is the following, which I learned from peeking at the C
code underneath sample(): To draw n samples without replacement from 1:N
(N=n), you only need a loop from 1 to n that used up n random numbers. The
Hi!
I would like to just create my (point) labels [created by
text(x,y,labels)] in smaller font size, especially when I write out to
eps. all other point sizes should not change. is this possible? help
I don't know how to define the point size exactly (since ps=something
Hello,
I have a few questions about matrix in R.
Can we make a matrix whose elements are list? I would like to save two
different values in each elements of matrix. If there is a package or
something which can deal with complex numbers, that will do it too. Also,
I am wondering whether there is
On Wed, 12 Nov 2003, Liaw, Andy wrote:
As others already pointed out, the fast way is to use sample().
What I'd like to add is the following, which I learned from peeking at the C
code underneath sample(): To draw n samples without replacement from 1:N
(N=n), you only need a loop from 1 to
Liaw, Andy [EMAIL PROTECTED] writes:
This is obviously not efficient in high-level languages like R, but in terms
of algorithm, it is a lot more efficient than check-and-reject. IMHO this
should be described in some book, but I have not seen any book describing
it.
I'm pretty sure I have -
Do you actually have the MySQL client libraries installed? They are in a
separate RPM, if you used RPMs, something like
MySQL-client-4.0.16-0.i386.rpm.
On 12 Nov 2003, Arend P. van der Veen wrote:
I have been having trouble installing RMySQL under Redhat Linux 9.0. I
am using R 1.8.0 and
Hello,
Thank you for your reply. I am missing an intermediate step as
plot( strptime( Time, format = %H:%M:%S), FreeMemory)
Error in strptime(Time, format = %H:%M:%S) :
invalid `x' argument
plot( strptime( c(Time), format = %H:%M:%S), FreeMemory)
Error in strptime(c(Time), format =
On Wed, 12 Nov 2003 12:00:06 -0500, Liaw, Andy [EMAIL PROTECTED]
wrote :
This is obviously not efficient in high-level languages like R, but in terms
of algorithm, it is a lot more efficient than check-and-reject. IMHO this
should be described in some book, but I have not seen any book
I compile MySQL from source and do have the client libraries installed
(I can run mysql from a terminal) However, I was able to compile RMySQL
by:
# export PKG_CPPFLAGS=-I/opt/mysql/include
# export PKG_LIBS=-L/opt/mysql/lib -lmysqlclient
# R CMD INSTALL RMySQL_0.5-2.tar.gz
Now I am having the
On Nov 12, 2003, at 9:28 AM, Ben Bolker wrote:
Maybe you should take this up with package maintainers (who may or
may
not be reading R-help) ... this sounds like a design/documentation
issue
rather than a bug per se (although the distinction is not always
clear).
To be honest, the underlying
Fiz um arquivo em tcltk para ser utilizado no Sistema R, porém estou
necessitanto neste arquivo de chamar uma função do R, então saberia me
informar como chamo uma função do R em um arquivo TclTk?
Alguém poderia me dá alguma sugestão quanto a utilizar a liguagem TclTk
(com o comando
Mikyoung -
All answers are yes, but IMHO you are trying to be
too clever with your data structure. Programming is
*much* easier if you keep things simple.
Specifically:
(1) The function matrix() will happily build you
a matrix of type list, with each element of the list
occupying one cell
Hello, Does anybody know how can i call a R function in a tcltk file? I made
a tcltk file, but I need call functions in R. i.e: in R I can put .Tcl(tcltk
statement). There are a same command to call R in a tcltk file?
I want to make a R Gui using tcltk language, do you recommend use a tcltk
On Wed, 2003-11-12 at 13:41, [EMAIL PROTECTED] wrote:
Hello, Does anybody know how can i call a R function in a tcltk file? I made
a tcltk file, but I need call functions in R. i.e: in R I can put .Tcl(tcltk
statement). There are a same command to call R in a tcltk file?
I want to make a
Hi Arend, I had the same problem on RH 9 as you, but the tip on
http://stat.bell-labs.com/RS-DBI/download/index.html at the bottom telling:
The following are some workarounds:
append the line
export(.valueClassTest)
to the file $R_HOME/src/library/methods/NAMESPACE where $R_HOME refers to
Hello,
i am using classes and want to force an validity check when an
object is created.
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major1
minor7.1
year 2003
month06
day 16
language R
Following piece of code works fine, just
Hi All,
I use R 1.8.0 and Bioconductor packages in Windows 2000 professional.
When I try to run one function, I will receive one dialog box with this
message:
Rgui.exe has generate errors and will be closed by Windows.
You will need to restart the program.
An error log is being created.
I look
Hi
The only other current possibility I know of is by producing grid
graphics output in SVG format. A simple example ...
library(grid)
# Get from http://www.stat.auckland.ac.nz/~paul/
library(gridSVG)
# Important
push.viewport(viewport(gp=gpar(col=black, fill=NA)))
grid.circle(x=0.4, r=0.3,
Thanks to all who responded to my posting.
At 11:39 AM -0500 11/12/03, Gabor Grothendieck wrote:
You are being hit by a timezone problem. Its not really shifting
the days by one. Its working in the GMT timezone, not yours.
If you can accept a date format that chron supports then this is the
Hi all,
I'm fitting a mixed-effects model that has two fixed factors and their
interaction. I'd like to obtain a dataframe of estimates and
standard errors for the estimates for each combination of the levels.
AB Yhat se
a1 b1
a1 b2
a1 b3
a2 b1
a2 b2
a2 b3
etc
I believe that I
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Ripley (1987) Stochastic Simulation, pp.80-1 for one. I am
pretty sure it is Knuth's book, although I don't have that to
hand. I attribute it to
Moses Oakford (1963).
Thanks to Brian, Peter and Duncan for the info. And I have both
Suppose you fit a linear model
model.1 ~ lm(v1 ~ ..., data=myframe)
and v2 is some other column of myframe typically not in the model. You
will often want to try
plot(v2, model.1$residuals)
but this will fail if there are NAs in the response v1 as
model.1$residuals has length equal to the
Is there any way to control the format of the axis label numbers on a
plot? More specifically, I have some plots that get axes with label
numbers in exponential format, and I'd like to change that to
non-exponential. Thanks!!
--
M. Edward (Ed) Borasky, MS, MNLP, NST, FBG, PGS PTA
[EMAIL
XLSolutions Corporation ([1]www.xlsolutions-corp.com/training.htm) is
proud
to announce December 2-day R/S-plus Fundamentals and Programming
Techniques.
Washington, DC - September 11-12
Boston, MA - September 11-12
Princeton, NJ
I believe this is the sort of things that the functions resid() and
predict(), in conjunction with na.exclude, are designed for. E.g.:
data - data.frame(x=c(1:5), y=c(1,3,2,NA,4))
m - lm(y~x, data=data, na.action=na.exclude)
predict(m)
12345
1.40
XLSolutions Corporation ([1]www.xlsolutions-corp.com/training.htm) is
proud
to announce December 2-day R/S-plus Fundamentals and Programming
Techniques.
Washington, DC - December 11-12
Boston, MA - December 11-12
Princeton, NJ
Look at xaxt and yaxt under ?par, as well as ?axis.
HTH,
Jim
James W. MacDonald
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623
M. Edward (Ed) Borasky [EMAIL PROTECTED] 11/12/03 17:56 PM
Is there
Dear Ed,
Take a look at the scipen option, new (I believe) in R 1.8.0, which can be
used to suppress scientific notation.
I hope that this helps,
John
At 02:45 PM 11/12/2003 -0800, M. Edward (Ed) Borasky wrote:
Is there any way to control the format of the axis label numbers on a
plot? More
Stefan Wagner wrote:
Hi all,
I am looking for a clever way to create the following graph using R:
I got information on the shares of some subgroups over time (summing
up to 1 in each year). The graph I want to create should display the
evelopment of the individual shares over time by shading
You could consider storing your data in 3d array.
If A and B are your matrices of first and second
numbers, respectively, with both being of the same
shape, then:
C - array(c(A,B), dim=c(dim(A),2))
gives you a 3d array. For example,
C[,,1] is A
C[,,2] is B
C[2,1,] is the the
73 matches
Mail list logo