[R] Two additive effets in random of lme

2004-07-09 Thread Papy Gaston
how I can put two additive effects in random of lme ? Thanks __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] Problem with the grep function

2004-07-09 Thread Marc Mamin
Hi, you can use regular expression with grep. For example: exactmatch-function(s,l){return(grep(paste('^',s,'$',sep=''),l))} t-c('a','ab','abc','c','ca','ab') exactmatch('ab',t) [1] 2 6 HTH Marc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Petr

[R] dyn.load() for windows

2004-07-09 Thread Utsav Boobna
Hi, I compiled several C program files on Borland C++ compiler to get one dll output (as instructed in the file readme.package). Now when I try to load this *.dll to R using dyn.load(), then the machine gives the error message *.dll is not a valid windows data,. The out put of R is I am

Re: [R] dyn.load() for windows

2004-07-09 Thread Duncan Murdoch
On Fri, 9 Jul 2004 01:58:27 -0700 (PDT), Utsav Boobna [EMAIL PROTECTED] wrote: Hi, I compiled several C program files on Borland C++ compiler to get one dll output (as instructed in the file readme.package). Now when I try to load this *.dll to R using dyn.load(), then the machine gives the

Re: [R] dyn.load() for windows

2004-07-09 Thread Utsav Boobna
Hi I am using Borland C++ compiler 5.5 and R 1.7.1 got the dll using c:\ bcc32 -u- -6 -O2 -osample.dll -WDE sample.c Then in R I used dyn.load(sample.dll) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library C:/sample.dll: LoadLibrary

[R] Re: combined graph in R

2004-07-09 Thread bavorak
Hello, I could not yet create combined graph in R. To avoid misunderstands, three examples (originally created in Quattro pro) have been attached. At first, I don't know how to create graph composed of bars and areas in the same picture as it is shown in the balance graph (h2plc02.gif). I

Re: [R] Re: combined graph in R

2004-07-09 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: Hello, I could not yet create combined graph in R. To avoid misunderstands, three examples (originally created in Quattro pro) have been attached. Only one graph seems to have made it through to the mailing list. You should avoid posting things with attachments. My

[R] Simple 'frequency' function?

2004-07-09 Thread Dan Bolser
Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x - cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22) # Define the frequency function frequency - function(x){ max - max(x) j - c() for(i in 1:max){

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Uwe Ligges
Dan Bolser wrote: Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x - cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22) # Define the frequency function frequency - function(x){ max - max(x) j - c() for(i in

Re: [R] Two additive effets in random of lme

2004-07-09 Thread Douglas Bates
Papy Gaston wrote: how I can put two additive effects in random of lme ? It is best to use the version of lme from the lme4 package to do this. In that version you can use a formula for random like random = ~ 1 | rows + columns The most general form of the random specification is as a named list

[R] packages data-sets name spaces

2004-07-09 Thread Meinhard Ploner
From: Prof Brian Ripley [EMAIL PROTECTED] Date: June 17, 2004 12:15:01 PM CEST To: Meinhard Ploner [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [R] packages data-sets On Thu, 17 Jun 2004, Meinhard Ploner wrote: It's possible to create a package with functions and data, from which the use

[R] Viewport parameters

2004-07-09 Thread Simon Woodhead
Hello all, In the Grid addon package from Paul Murrell is there a way of finding the parameter settings for the viewport you are in? I understand in Lattice there is a function trellis.get.par(), is there something similar for Grid? Cheers Simon Woodhead

[R] creating plots by batch

2004-07-09 Thread Anne
Hello RHelpers! I'm very ashamed but I'm creating quite a lot of plots in a big loop...each times the program ask me : Hit Return to see next plot: How do I avoid that? Many, many thanks as always Anne Anne Piotet Tel: +41 79 359 83

Re: [R] creating plots by batch

2004-07-09 Thread Rolf Turner
You wrote: Hello RHelpers! I'm very ashamed but I'm creating quite a lot of plots in a big loop...each times the program ask me : Hit Return to see next plot: How do I avoid that? In the file from which your batch job is running (or perhaps in your .Rprofile, or somewhere like that)

Re: [R] dyn.load() for windows

2004-07-09 Thread Duncan Murdoch
On Fri, 9 Jul 2004 03:29:55 -0700 (PDT), Utsav Boobna [EMAIL PROTECTED] wrote : Hi I am using Borland C++ compiler 5.5 and R 1.7.1 got the dll using c:\ bcc32 -u- -6 -O2 -osample.dll -WDE sample.c I don't know the bcc32 command line options. Can you examine the sample.dll file (using e.g.

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Dan Bolser
On Fri, 9 Jul 2004, Uwe Ligges wrote: Dan Bolser wrote: Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x - cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22) # Define the frequency function frequency -

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Dan Bolser
On Fri, 9 Jul 2004, Uwe Ligges wrote: Dan Bolser wrote: Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x - cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22) # Define the frequency function frequency -

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Marc Schwartz
On Fri, 2004-07-09 at 10:43, Dan Bolser wrote: On Fri, 9 Jul 2004, Uwe Ligges wrote: Dan Bolser wrote: Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x - cbind(1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6,7,22)

[R] Mixed model ANOVA with a nested design

2004-07-09 Thread Lars Peters
Dear all, I've got a big problem. I try to analyse my data using R with a mixed model ANOVA without useful results and success. My data are as follows: 3 factors (Treatment, Site, Subsite) with 'Subsite' as random factor and nested into 'Site'. I want to analyse the effects of the three main

[R] Queueing models

2004-07-09 Thread Coburn Watson
Hello R-Help, Is anyone aware of an R package which which handles queueing models (M/M/1, etc)? Basically I was looking for a package which applies Little's law and other methods to analysis of continuous state Markov processes (to calculate predicted time spent in queue based on workload).

[R] analytic solution for equation

2004-07-09 Thread Stephane Dray
Hello, I have search on R website but do not find any solution. I would like to know if R has some functionalities to produce analytical results of equation. or more generally if it contains some functions to simplify equation. For example: I would like to obtain x1 from: x1+x2=8 (x1=8-x2)

[R] Problem with bwplot

2004-07-09 Thread Ernesto Jardim
Hi, I'm ploting some box-and-whisker plots with bwplot but I'm not getting any box-and-whiskers ... just dots. I'm using lattice 0.9-16 with R 1.9.1. Try library(lattice) rnorm(60)-vec1 rep(1:3,20)-vec2 rep(LETTERS[1:2],30)-vec3 bwplot(vec1~vec2|vec3) Thanks EJ

RE: [R] Problem with bwplot

2004-07-09 Thread Austin, Matt
Try factor(vec2) in your bwplot() call. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ernesto Jardim Sent: Friday, July 09, 2004 9:41 AM To: Mailing List R Subject: [R] Problem with bwplot Hi, I'm ploting some box-and-whisker plots with bwplot but I'm

Re: [R] Problem with bwplot

2004-07-09 Thread Chuck Cleland
Do you want this? bwplot(as.factor(vec2) ~ vec1 | as.factor(vec3)) Ernesto Jardim wrote: I'm ploting some box-and-whisker plots with bwplot but I'm not getting any box-and-whiskers ... just dots. I'm using lattice 0.9-16 with R 1.9.1. Try library(lattice) rnorm(60)-vec1 rep(1:3,20)-vec2

Re: [R] analytic solution for equation

2004-07-09 Thread Adaikalavan Ramasamy
What would be the purpose of a function/software to rewrite x1 in terms of x2 ? Perhaps you could explain further how it might be of some use. There is uniroot(), polyroot(), optimize(), nlm(), solve() and many others that you want to look into. On Fri, 2004-07-09 at 17:07, Stephane Dray wrote:

RE: [R] Problem with bwplot

2004-07-09 Thread Ernesto Jardim
Yes, It works. Thanks EJ PS: It's inconsistent with boxplot, which works without making vec2 a factor. On Fri, 2004-07-09 at 17:36, Austin, Matt wrote: Try factor(vec2) in your bwplot() call. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of

[R] using R libraries in S

2004-07-09 Thread Peter Wilkinson
Is it possible to use R libraries in S? Peter __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Example using Rdqags

2004-07-09 Thread Victoria Landsman
Dear all, I'd like to use the Rmath library for calling R functions in C code. I have no any experience in this. I am trying to read the Writing R extensions manual but with no success. I searched the Web and archives but did not find appropriate example. To be specific, I am looking for an

Re: [R] Problem with bwplot

2004-07-09 Thread Deepayan Sarkar
On Friday 09 July 2004 12:05, Ernesto Jardim wrote: Yes, It works. Thanks EJ PS: It's inconsistent with boxplot, which works without making vec2 a factor. Yes, and that's a design decision. In particular, it's controlled by the horizontal argument in panel.bwplot, which comes into

RE: [R] Problem with bwplot

2004-07-09 Thread Liaw, Andy
From: Ernesto Jardim Yes, It works. Thanks EJ PS: It's inconsistent with boxplot, which works without making vec2 a factor. I think the problem is in the flexibility of bwplot. If `horizontal' is not set explicitly, it tries to guess by testing whether `y' or `x' is factor. It

RE: [R] Example using Rdqags

2004-07-09 Thread Liaw, Andy
This is not a direct answer to your question, but if all you want to do is integrate a function numerically, you don't need to be doing it through R. You should be able to find codes that you can use directly, such as quadpack or even GSL. You may want to search on GAMS (Guide to Available

[R] library( ) and verbose=

2004-07-09 Thread Frank E Harrell Jr
The Hmisc package has in its .First.lib function a verbose argument, which I thought was the way to allow users to suppress certain messages, by issuing library(Hmisc, verbose=FALSE). But I see that library( ) does not pass verbose to .First.lib. The default for verbose in Hmisc is TRUE

Re: [R] analytic solution for equation

2004-07-09 Thread Gabor Grothendieck
Stephane Dray dray at biomserv.univ-lyon1.fr writes: : : Hello, : I have search on R website but do not find any solution. : I would like to know if R has some functionalities to produce analytical results : of equation. or more generally if it contains some functions to simplify equation. : :

[R] cor.test p-value ties

2004-07-09 Thread Jason . L . Higbee
R: I got a warning message when running the cor.test function using both Spearman and Kendall rank correlations saying that the p-value may be incorrect due to ties in the data. My data has 35 obs and one series has 6 pairs of ties. Does anyone know if this would likely have a great effect

[R] Can R read data from stdin?

2004-07-09 Thread Hayashi Soichi - shayas
Is there anyway I can write a script which feed input datasource from stdin and let R process it (maybe frequency report) then output the report to stdout? I can't seem to find much info on documentation or FAQ on this topic. Thanks! Soichi Hayashi

Re: [R] Can R read data from stdin?

2004-07-09 Thread Tony Plate
The easiest way would probably be to do the hack of creating a temporary file to hold stdin, then call R to process that file. That would be easy to do in a shell script. If this really won't suffice, this older message might lead to something useful: Rd] R scripting patches for R-1.8.0 Neil

Re: [R] Can R read data from stdin?

2004-07-09 Thread Aaron J. Mackey
I think the original poster wanted to read data from stdin, not execute an entire script from stdin; this works on many UNIX-like systems: d - read.table(/dev/stdin, header=F); Otherwise, for code, you can simply pipe (or redirect) to R from the shell: % R --vanilla --slave input outfile

RE: [R] Mixed model ANOVA with a nested design

2004-07-09 Thread F Z
Try the book Mixed-effects model in S and S-PLus by Pinheiro and Bates. They have pretty good examples of code and analysis techniques to tackle your data. Francisco From: Lars Peters [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [R] Mixed model ANOVA with a nested design Date: Fri, 9 Jul

RE: [R] cor.test p-value ties

2004-07-09 Thread Ted Harding
On 09-Jul-04 [EMAIL PROTECTED] wrote: I got a warning message when running the cor.test function using both Spearman and Kendall rank correlations saying that the p-value may be incorrect due to ties in the data. My data has 35 obs and one series has 6 pairs of ties. Does anyone know if this

Re: [R] Viewport parameters

2004-07-09 Thread hadley wickham
How about current.viewport()? (str(current.viewport()) to see the data it contains) Hadley __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

RE: [R] Can R read data from stdin?

2004-07-09 Thread Hayashi Soichi - shayas
Thanks! That's what I was wanted to know. Also, is there a similar way I can do read.table from a pipe? For example, if there is a command that I am running to generate the datasource, I want to read that data as it comes.. Thanks... -Original Message- From: Aaron J. Mackey

Re: [R] Can R read data from stdin?

2004-07-09 Thread Aaron J. Mackey
On Jul 9, 2004, at 5:41 PM, Hayashi Soichi - shayas wrote: Also, is there a similar way I can do read.table from a pipe? % command | R CMD BATCH --vanilla --slave input.R output Where input.R is R code that contains a line similar to: d - read.table(/dev/stdin)

Re: [R] Simple 'frequency' function?

2004-07-09 Thread Dan Bolser
On Fri, 9 Jul 2004, Marc Schwartz wrote: On Fri, 2004-07-09 at 10:43, Dan Bolser wrote: On Fri, 9 Jul 2004, Uwe Ligges wrote: Dan Bolser wrote: Hi, I have designed the following function to extract count frequencies from an array of integers. For example... # Tipical array x -

RE: [R] k nearest neighbor prediction

2004-07-09 Thread Taemyong Choi
EMV package is a package for k nearest neighbours prediction. Goodluck ^^ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Jones Sent: Friday, July 09, 2004 12:07 AM To: [EMAIL PROTECTED] Subject: [R] k nearest neighbor prediction Hi there fellow

[R] Exact Maximum Likelihood Package

2004-07-09 Thread Luis David Garcia
Dear R users, I am a mathematics postdoc at UC Berkeley. I have written a package in a Computational Algebra System named Singular http://www.singular.uni-kl.de to compute the Maximum Likelihood of a given probability distribution over several discrete random variables. This package gives