[R] [R-pkgs] new version of package:debug

2005-05-12 Thread Mark.Bravington
There is a new version of the 'debug' package (v1.1.0) available on CRAN. For existing users, the main changes are (i) some bug fixes, and (ii) it is now NAMESPACEd, so you can avoid naming conflicts with other packages. For new users, 'debug' is an alternative to 'trace' and 'browser', offering:

[R] [R-pkgs] new version of package:mvbutils

2005-05-12 Thread Mark.Bravington
There is a new version of the 'mvbutils' package (v1.1.1) available on CRAN. For existing users, the main new features are: (i) 'help' now works properly with with R2.0+ (!) (ii) 'mvbutils' is now NAMESPACEd, so you can avoid naming conflicts with other packages. (Many functions are no longer use

Re: [R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-12 Thread Uwe Ligges
I'd like to recommend to open the pdf() device (and to plot in) directly. There is no reason to use the windows() device in BATCH mode, if you want to produce PDF. Lapointe, Pierre wrote: First of all, I apologize for the triple post, but I did not see that the word wrap on the r-help list site

RE: [R] Converting a S-plus file.

2005-05-12 Thread Francisco J. Zagmutt
Hi Juan Pablo Take a look at the document under help->Manuals in pdf->R data import/export. There is a whole section there on how to import data from other statistical software. If you have a script file from S-Plus you can open it in any text editor (i.e. notepad) ¡Suerte! Francisco From: J

[R] Converting a S-plus file.

2005-05-12 Thread Juan Pablo Romero
Hello all. I've got a little file which is from S-Plus. The problem is I don't own a copy of said program, and R won't read it. I wonder if there's a caritative soul here who could export the file to some other format (csv, or even excel!) and send it back to me. Thanks in advance. Juan Pab

Re: [R] Using R to illustrate the Central Limit Theorem

2005-05-12 Thread Peter Dalgaard
"Kevin E. Thorpe" <[EMAIL PROTECTED]> writes: > rparab <- function(nn) { > u <- 2*runif(nn) - 1 > ifelse(u<0,-(abs(u)^(1/3)),u^(1/3)) > } > > It seems that in my version of R (2.0.1) on Linux, that calculating the cube > root of a negative number using ^(1/3) returns NaN. I looked at the help in

[R] R make error

2005-05-12 Thread Ambika Sundaresan
Hi: I tried to install the latest version of R (2-1.0)in an AIX machine . I was able to tar, and configure with no errors. However, when I said make, I got the following errors: gcc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry -Wl,-bexpall -Wl,-bI:../../../etc/R.exp -L/usr/local/lib -o R_X1

Re: [R] Using R to illustrate the Central Limit Theorem

2005-05-12 Thread Kevin E. Thorpe
This thread was very timely for me since I will be teaching an introductory biostats course in the fall, including a session on CLT. I have shamelessly taken Dr. Venables' slick piece of code and wrapped it in a function so that I can vary the maximum sample size at will. I then created functions b

Re: [R] Converting a number of minutes to a difftime

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Martin C. Martin wrote: I have a variable "m" that contains the number of minutes that something lasted, e.g. m <- 139 I'd like to convert it to a difftime, so I can add it to the POSIXct start time. But as.difftime seems to want a character string, with at most two charac

RE: [R] time zones, daylight saving etc.

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Prof Brian Ripley wrote: Yes, I did mention the OS was unstated, knowing that some had problems. I will try to investigate why this is not working on Windows for a future release. For the record, this is a POSIX-compliance failure. The POSIX standard says Local timezone

[R] Converting a number of minutes to a difftime

2005-05-12 Thread Martin C. Martin
Hi, I have a variable "m" that contains the number of minutes that something lasted, e.g. m <- 139 I'd like to convert it to a difftime, so I can add it to the POSIXct start time. But as.difftime seems to want a character string, with at most two characters for the minutes. All other conversi

Re: [R] Standardized logistic regression coefficients

2005-05-12 Thread Frank E Harrell Jr
Alexander Roth wrote: Hi everyone, how can I calculate standardized logistic regression coefficients using R? I used "glm" resp. "lrm" from the design-package in order to calculate logistic regression coefficients but I'm wondering if there's a possibility to get standardized logistic regression co

Re: [R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-12 Thread Prof Brian Ripley
Thank you, the word wrap did make it impossible. For me pdf(file="c:/CFTC.pdf",height=10,width=8,paper="letter") ## plotting dev.off() works in interactive mode or from a file. I don't understand why you are going via dev.print(), nor what exactly what is different about your invocation of `batc

[R] Multidimensional Scaling with pairwise Fst

2005-05-12 Thread Jeffrey DaCosta
I want to create a MDS plot with pairwise Fst values derived from a population genetics project. My Fst values are in a tab-delimited file (lower triangle only) that I view with Excel. When I use the cmdscale command I get the message: Error in cmdscale(x) : Distances must be result of dist or

[R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-12 Thread Lapointe, Pierre
First of all, I apologize for the triple post, but I did not see that the word wrap on the r-help list site would render my code unusable. So here it is again. Hoping that this time it will work if you cut and paste it in your Rgui. I have a program that works well in Rgui but that does not work

[R] Testing Plot e-mail

2005-05-12 Thread Stephen Robert Welsh
__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] glob2rx() {was: no bug in R2.1.0's list.files()}

2005-05-12 Thread Gabor Grothendieck
I think glob2rx is of sufficient interest and sufficiently small that it would be nice to have in the core of R without having to install and load sfsmisc. On 5/12/05, Martin Maechler <[EMAIL PROTECTED]> wrote: > > "BaRow" == Barry Rowlingson <[EMAIL PROTECTED]> > > on Thu, 12 May 200

Re: [R] load data with scientific notations

2005-05-12 Thread Luke Zhou
It works. thanks! -Luke On 5/12/05, Liaw, Andy <[EMAIL PROTECTED]> wrote: > Just read them like any other numbers; e.g.: > > > x <- scan(sep=",") > 1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003 > 5: [hit ctrl-d] > Read 4 items > > x > [1] 9164.254 6719.529 4883.449 3718.159 >

[R] a quick ? on using read.table()

2005-05-12 Thread Yong Wang
Dear all I have a data set like following *** name ticker price # how to specify attributes for differet colums a ta 1 a ta 1 a ta 1 name ticker price # the extra headline is a problem a ta 1 a ta 1 b2 b2 b

[R] glob2rx() {was: no bug in R2.1.0's list.files()}

2005-05-12 Thread Martin Maechler
> "BaRow" == Barry Rowlingson <[EMAIL PROTECTED]> > on Thu, 12 May 2005 11:05:43 +0100 writes: BaRow> Uwe Ligges wrote: >> Please read about regular expressions (!!!) and try to >> understand that ".txt" also finds "Not_a_txt_file.xls" >> BaRow> The confusi

Re: [R] modifications to text.tree function

2005-05-12 Thread Brian D Ripley
Is this from package tree? If so treeco is in the namespace but not exported. > library(tree) > ls(asNamespace("tree")) [1] "cv.tree""data.tree" "descendants" [4] "deviance.tree" "labels.tree""misclass.tree" [7] "model.frame.tree" "na.tree.replace""node.

RE: [R] load data with scientific notations

2005-05-12 Thread Liaw, Andy
Just read them like any other numbers; e.g.: > x <- scan(sep=",") 1: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003 5: [hit ctrl-d] Read 4 items > x [1] 9164.254 6719.529 4883.449 3718.159 Andy > From: Luke Zhou > > Hi, > > I have a data file whose values are scientific notati

[R] load data with scientific notations

2005-05-12 Thread Luke Zhou
Hi, I have a data file whose values are scientific notations, for example: 9.1642537e+003, 6.7195295e+003, 4.8834487e+003, 3.7181589e+003, ... How to load such data into R? Thanks, -Luke __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/

[R] Maximize volume of cloud

2005-05-12 Thread Stefaan Lhermitte
Dear R-ians, I have a datamatrix X of nrows (large) and 3 colums. The 3 columns represent the coordinates of a cloud in a 3 dimensional space. Now I want to find the extremes of my cloud by using the N-FINDR algoritm. This algorithm consists of maximizing the volume between tree points. Therefo

[R] RE: Batch mode problem: figure margins too large (aligned R code to the left)

2005-05-12 Thread Lapointe, Pierre
> Hello, I have a program that works well in Rgui but that does not work in > a batch file (Execution halted) > > Here's the code (it will work on you side, but you need internet access > through R as it will download a table from a US gov site) > > download.file("http://www.cftc.gov/files/dea/hi

[R] Batch mode problem: figure margins too large

2005-05-12 Thread Lapointe, Pierre
Hello, I have a program that works well in Rgui but that does not work in a batch file (Execution halted) Here's the code (it will work on you side, but you need internet access through R as it will download a table from a US gov site) download.file("http://www.cftc.gov/files/dea/history

[R] modifications to text.tree function

2005-05-12 Thread Alexander Sirotkin
Hi. I have to make some minor modifications to the text.tree function - I don't like the way it prints the split labels (they are too long in my case and overlap). I tried to make s simple modification to the text.tree function so that it will limit the number of significant digits in tree labels,

RE: [R] time zones, daylight saving etc.

2005-05-12 Thread Prof Brian Ripley
Yes, I did mention the OS was unstated, knowing that some had problems. I will try to investigate why this is not working on Windows for a future release. For Windows users something like .../RGui.exe TZ=GMT should do it. On Thu, 12 May 2005, Vadim Ogranovich wrote: Works for me on Linux: Sys.ti

RE: [R] time zones, daylight saving etc.

2005-05-12 Thread Vadim Ogranovich
Works for me on Linux: > Sys.time() [1] "2005-05-12 10:22:31 PDT" > Sys.putenv(TZ="GMT") > Sys.time() [1] "2005-05-12 17:22:37 GMT" I extensively use the reset of TZ to parse times. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gabor > Grothend

[R] Need help with vector designations in a Function

2005-05-12 Thread khobson
My function works fine if the X and Y exist in the T314 data. How can I code the macro to allow vector designations in the function different than X and Y? Maybe something to do with environment? rm(list=ls()) # Data from NCHRP Appendix A - http://trb.org/publications/nchrp/nchrp_w71.pdf T3

Re: [R] tempsum

2005-05-12 Thread Dimitris Rizopoulos
maybe you can find cumsum() helpful, e.g., cumsum(1:5) Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.

Re: [R] tempsum

2005-05-12 Thread Achim Zeileis
?cumsum Z On Thu, 12 May 2005 18:48:32 +0200 Lars wrote: > hi, > > i'd like to calculate a temperatursum, adding the value of each > element. let's say the data looks like this: > > x<-c(1,2,3,4,5) > what i want to do, is ploting not the sum in the end but all the > subresults, too, > so my v

[R] tempsum

2005-05-12 Thread Lars
hi, i'd like to calculate a temperatursum, adding the value of each element. let's say the data looks like this: x<-c(1,2,3,4,5) what i want to do, is ploting not the sum in the end but all the subresults, too, so my vector holds: x[i] [1] 1,3,6,10,15 here is what i tried, which seems to be right

Re: [R] acf problem ?

2005-05-12 Thread Sundar Dorai-Raj
Ernesto Jardim wrote on 5/12/2005 11:01 AM: Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? > acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ Hi, Ernesto, What is Recsim[1,]? I can reproduce this

Re: [R] acf problem ? SOLVED

2005-05-12 Thread Ernesto Jardim
Ernesto Jardim wrote: Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? > acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ __ R-help@stat.math.ethz.ch maili

Re: [R] acf problem ?

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Ernesto Jardim wrote: I'm getting the following error that do not make sense to me, what am Idoing wrong ? acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Inside the code lag.max <- min(lag.max, sampleT - 1) if (lag.max

Re: [R] Solaris 10 on amd and R-2.1.0

2005-05-12 Thread Vin Everett
On Thu, 2005-05-12 at 17:12 +0100, Prof Brian Ripley wrote: > On Thu, 12 May 2005, Vin Everett wrote: > > > I am having problems compiling R on a Solaris 10 opteron box we have on > > trial. > > > > checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - > > L/usr/local/lib -L/usr/lo

Re: [R] correlogram in spatial producing values outside [-1,1]

2005-05-12 Thread Prof Brian Ripley
It can happen. The covariance is produced from a set of pairs, and the variances from all the points. It usually indicates that too fine a binning has been used or that there is a trend in the data which has not been removed. On Thu, 12 May 2005, Kechi Nzerem wrote: I'm using the correlogram

Re: [R] Solaris 10 on amd and R-2.1.0

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Vin Everett wrote: I am having problems compiling R on a Solaris 10 opteron box we have on trial. checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i3

[R] Installing RMySQL on Mac OS X

2005-05-12 Thread Thomas Koepsell
I could really use some advice about installing the RMySQL package under R 2.1.0 on Mac OS 10.4. I get the following message from R when I try: --- Configuration error: Could not locate the library "libz" required by MySQ

[R] acf problem ?

2005-05-12 Thread Ernesto Jardim
Hi I'm getting the following error that do not make sense to me, what am Idoing wrong ? > acf(Recsim[1,], lag.max=1) Error in acf(Recsim[1, ], lag.max = 1) : 'lag.max' must be at least 1 Regards EJ __ R-help@stat.math.ethz.ch mailing list https://stat.e

[R] Princomp and calculations of original values

2005-05-12 Thread Stefaan Lhermitte
Dear R-ians, I am working with princomp and I now want to manually recalculate my original values. I want to do it to completely understand the procedure of principal components. I tried it with a test data set (2 dimensions) and I was able to calculate my original values (of a random point of

Re: [R] assigning to a list in a package environment

2005-05-12 Thread Gabor Grothendieck
I did not fully understand which environment you want but: 1. if this is written in your function: e <- environment() then e contains the current environment in the function 2. parent.env(e) is the lexical environment within which your function was defined. Also, if the function is ca

RE: [R] Multiple IF statements - is there a better alternative?

2005-05-12 Thread Brahm, David
Glen Jones <[EMAIL PROTECTED]> wrote: > if (InternalMean == 0) > Intresult = 1 > if (InternalMean > 0 & InternalMean < 1) > Intresult = .95 > [etc.] This looks like a job for "cut": R> i <- cut(InternalMean, c(-Inf,0,1,2,4,9,Inf), labels=F) R> Intresult <- c(1,.95,.85,.70,.50,0)[i] -- Da

Re: [R] assigning to a list in a package environment

2005-05-12 Thread Sean Davis
On May 12, 2005, at 10:09 AM, Gabor Grothendieck wrote: On 5/11/05, Sean Davis <[EMAIL PROTECTED]> wrote: I have a list in a package environment assign('refflat',list(),pos='package:locPkg') to which I would like to make assignments like: refflat[['a']] <- read.table('fileA.txt') refflat[['b']] <-

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Thomas Lumley
On Thu, 12 May 2005, Suresh Krishna wrote: Is that the entire story ? I tried this with yesterday's patched version (windows xp) and found: list.files(getwd(),"*.txt",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pattern' regular expression list.fi

Re: [R] problem with intervals in mixed model

2005-05-12 Thread Douglas Bates
Bill Shipley wrote: > Hello. I am analysing data from a mixed model perspective using the > lme() function. The fixed effects model is a quadratic (Y~X+X2) where > X2 is the square of X and the data have a 3-level structure. I fitted a > series of three models with the same fixed effects but dif

Re: [R] assigning to a list in a package environment

2005-05-12 Thread Gabor Grothendieck
On 5/11/05, Sean Davis <[EMAIL PROTECTED]> wrote: > I have a list in a package environment > > assign('refflat',list(),pos='package:locPkg') > > to which I would like to make assignments like: > > refflat[['a']] <- read.table('fileA.txt') > refflat[['b']] <- read.table('fileB.txt') > > I am doi

RE: [R] mget empty strings

2005-05-12 Thread Liaw, Andy
Here's one way to work around it: > nm <- c("x", "", "y") > x <- 10; y <- 20 > myObj <- structure(vector(mode="list", length=length(nm)), names=nm) > goodNames <- nm[nchar(nm) > 0] > myObj[goodNames] <- mget(goodNames, .GlobalEnv) > myObj $x [1] 10 [[2]] NULL $y [1] 20 Andy > From: Georg Otto

[R] Standardized logistic regression coefficients

2005-05-12 Thread Alexander Roth
Hi everyone, how can I calculate standardized logistic regression coefficients using R? I used "glm" resp. "lrm" from the design-package in order to calculate logistic regression coefficients but I'm wondering if there's a possibility to get standardized logistic regression coefficients? Thanks

Re: [R] mget empty strings

2005-05-12 Thread Uwe Ligges
Georg Otto wrote: Dear R community, I am a beginner to R and have a question concerning mget, about I could not find anything in the various documentation. I have a column in a dataframe x for which I want to get values in y: mget(x[,1], env=y, ifnotfound=NA) I receive an error mesage: Error in m

[R] mget empty strings

2005-05-12 Thread Georg Otto
Dear R community, I am a beginner to R and have a question concerning mget, about I could not find anything in the various documentation. I have a column in a dataframe x for which I want to get values in y: mget(x[,1], env=y, ifnotfound=NA) I receive an error mesage: Error in mget(x[, 1], env =

Re: [R] pls -- crossval vs plsr(..., CV=TRUE)

2005-05-12 Thread =?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=
martin peters writes: > $ library(pls) > $ data(NIR) > > $ testing.plsNOCV <- plsr(y ~ X, 6, data = NIR, method="kernelpls", > validation="none") > $ NIR.plsCV <- plsr(y ~ X, 6, data = NIR, CV=TRUE, method="kernelpls") > $ testing.plsCV <- crossval(testing.plsNOCV) > $ R2(NIR.plsCV) > (Intercept)

Re: [R] time zones, daylight saving etc.

2005-05-12 Thread Gabor Grothendieck
I have tried this but on Windows XP R 2.1.0 found I had to set it outside of R prior to starting R. 1. unsuccessful > Sys.time() [1] "2005-05-12 09:08:03 Eastern Daylight Time" > Sys.putenv(TZ="GMT") > Sys.time() # no change [1] "2005-05-12 09:08:12 Eastern Daylight Time" 2. OK C:\>set tz=GMT

RE: [R] Solaris 10 on amd and R-2.1.0

2005-05-12 Thread Phineas Campbell
This might solve your problem without helping. Having spent I bit of time trying to build R with the pkgadd version of GCC from Sunfreeware and not getting anywhere I downloaded the source for GCC 3.4.2 and built this, then used this to build R. Everything worked fine. HTH Phineas -Origina

Re: [R] inserting R code in a latex document

2005-05-12 Thread Frank E Harrell Jr
I have been trying to use the listings package in LaTeX to do this but have not been fully happy with the result. Here is what I'm trying: \lstloadlanguages{R} \lstset{language=R,basicstyle=\smaller[2],commentstyle=\rmfamily\smaller, showstringspaces=false,% xleftmargin=4ex,literate={<-}{{$\le

=?iso-8859-1?Q?R=E9f=2E_=3A_[R]_SVM_linear_kernel_and_SV?=

2005-05-12 Thread Gladys DRACON
Thank you for your answer, but my problem concerns the support vectors. Indeed the two classes are well separated and the hyperplane is linear but the support vectors aren't aligned in parallel to the hyperplane. And according to me, the support vectors (for each class) should be aligned along

[R] How to make label in multi plot

2005-05-12 Thread Muhammad Subianto
Dear R-Help, As a reference about multi plot, http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48725.html I want to know how can I make a label for each row. I mean like, - -- || ||

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Gabor Grothendieck
Note that sfsmisc::glob2rx is a handy function that will convert glob style wildcard expressions to regular expressions. On 5/12/05, Steve Roberts <[EMAIL PROTECTED]> wrote: > Yes I missed the NEWS entry - or rather didn't realise its significance. > So the "bug" was in the previous version and

[R] Solaris 10 on amd and R-2.1.0

2005-05-12 Thread Vin Everett
Hi I am having problems compiling R on a Solaris 10 opteron box we have on trial. checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- solaris2.10/3.3.2/../../.. -

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Steve Roberts
Yes I missed the NEWS entry - or rather didn't realise its significance. So the "bug" was in the previous version and my old code which worked but shouldn't have. Thanks for the replies - rapid and to the point as usual. Steve. Date sent: Thu, 12 May 2005 10:45:03 +0200 From:

Re: [R] Plot()

2005-05-12 Thread Uwe Ligges
Ute Visser wrote: Hello! I wonder why the x and the y expression are treated differently in the plot-function? In the example below I should get three times the same graph, shouldn't I? column<-c(0,1) par(mfrow = c(3,1)) plot((1-column)~column) plot(column~(1-column)) In right hand sides of formula

[R] SVM linear kernel and SV

2005-05-12 Thread David Meyer
Gladys, > > I've used svm() with a linear kernel and I'd like to plot the linear > > hyperplane and the support vectors. I use plot.svm() and, according to > me, I would have found aligned support vectors (because the hyperplane > is linear) for each class but it wasn't the case. Could you ex

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Barry Rowlingson
Uwe Ligges wrote: Please read about regular expressions (!!!) and try to understand that ".txt" also finds "Not_a_txt_file.xls" The confusion here is between regular expressions and wildcard expansion known as 'globbing'. The two things are very different, and use characters such as '*' '.

[R] Plot()

2005-05-12 Thread Ute Visser
Hello! I wonder why the x and the y expression are treated differently in the plot-function? In the example below I should get three times the same graph, shouldn't I? column<-c(0,1) par(mfrow = c(3,1)) plot((1-column)~column) plot(column~(1-column)) plot(column~as.vector(1-column)) Thanks for c

[R] SVM linear kernel and SV

2005-05-12 Thread Gladys DRACON
Dear all, I'm a trainee statistician in a company and we'd like to understand svm mechanism, at first with simple examples. I use e1071 package and I have several questions. I'm working with data extracted from cats data (from R). My dataset corresponds to a completely separable case with a bi

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Romain Francois
Le 12.05.2005 10:48, Suresh Krishna a écrit : Is that the entire story ? I tried this with yesterday's patched version (windows xp) and found: > list.files(getwd(),"*.txt",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pattern' regular expression >

[R] Problem with data frame when using xYplot?

2005-05-12 Thread Sander Oom
Dear all, I am trying to plot means and error bars using xYplot, but I get an error message from xYplot which I can not figure out: > Error in Summary.factor(..., na.rm = na.rm) : range not meaningful for factors The data frame (tmpNa) was created using aggregate. I have used dump to cre

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
Romain Francois wrote: Le 12.05.2005 10:30, Steve Roberts a écrit : R2.0.1 (MS Windows) list.files(myloc,"*.zip",full=T) [1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip" [2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip" R2.1.0: list.files(myloc,"*.zip",full=T) Error in list.files(path, pattern,

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
Suresh Krishna wrote: Is that the entire story ? I tried this with yesterday's patched version (windows xp) and found: > list.files(getwd(),"*.txt",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pattern' regular expression > list.files(getwd(),'.

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Suresh Krishna
oops, my fault. i missed typing the key '*' character in the second version. apologies !!! suresh Suresh Krishna wrote: Is that the entire story ? I tried this with yesterday's patched version (windows xp) and found: > list.files(getwd(),"*.txt",full=T) Error in list.files(path, pattern, all.fil

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Romain Francois
Le 12.05.2005 10:30, Steve Roberts a écrit : R2.0.1 (MS Windows) list.files(myloc,"*.zip",full=T) [1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip" [2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip" R2.1.0: list.files(myloc,"*.zip",full=T) Error in list.files(path, pattern, all.files, full.nam

[R] correlogram in spatial producing values outside [-1,1]

2005-05-12 Thread Kechi Nzerem
Dear all, I'm using the correlogram function in the spatial library to calculate spatial correlograms of radar data. However, I'm finding that the resulting values are often outside the range [-1,1], usually only at larger distances of separation. I'm not sure whether to be overly concerned abou

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Suresh Krishna
Is that the entire story ? I tried this with yesterday's patched version (windows xp) and found: > list.files(getwd(),"*.txt",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pattern' regular expression > list.files(getwd(),'.txt',full=T) [1] "C:/Doc

Re: [R] R2.1.0: Bug in list.files

2005-05-12 Thread Uwe Ligges
Steve Roberts wrote: R2.0.1 (MS Windows) list.files(myloc,"*.zip",full=T) [1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip" [2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip" R2.1.0: list.files(myloc,"*.zip",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pat

[R] R2.1.0: Bug in list.files

2005-05-12 Thread Steve Roberts
R2.0.1 (MS Windows) > list.files(myloc,"*.zip",full=T) [1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip" [2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip" R2.1.0: > list.files(myloc,"*.zip",full=T) Error in list.files(path, pattern, all.files, full.names, recursive) : invalid 'pattern' regular e

Re: [R] sqlQuery

2005-05-12 Thread Ernesto Jardim
Navarre Sabine (stu) wrote: Hello, (sqlQuery(channel, "select * from..")) I would like to know if it's possible to put a file name in the parameters of the function 'sqlQuery' instead of putting the query . If it's possible, what kind of extension for my file have I need? That's for your help S

[R] sqlQuery

2005-05-12 Thread Navarre Sabine \(stu\)
Hello, (sqlQuery(channel, "select * from..")) I would like to know if it's possible to put a file name in the parameters of the function 'sqlQuery' instead of putting the query . If it's possible, what kind of extension for my file have I need? That's for your help Sabine [[

Re: [R] Graphics file to disk

2005-05-12 Thread vincent
for example (works also with png and jpg) bmp("mypic.bmp"); plot(...); dev.off(); hih __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] [R-pkgs] Package adehabitat version 1.3

2005-05-12 Thread =?ISO-8859-1?Q?Cl=E9ment_Calenge?=
Dear all, I have just uploaded to CRAN the version 1.3 of the package 'adehabitat'. Significant changes are listed below: - Several functions allowing the conversion from and to classes of the package sp have been added. Maps of class "asc", "kasc", "area", as well as radio-monitoring of class "