[R] warning in library(GRASS)

2007-08-07 Thread javier garcia-pintado
Hi, With your help I've found out that library(GRASS) is the responsible for several warnings I'm obtaining. I've got a loop (~100 runs) and for every loop, I'm carrying out several operations over a sequence of raster maps (12) read from the GRASS GIS. But for every map and loop I always use

[R] warnings()

2007-08-06 Thread javier garcia-pintado
Hi, Is there a way to know which library is giving a warning? Specifically, I'm getting a set of warnings: Too many open raster files Thanks and best wishes, -- Javier García-Pintado Institute of Earth Sciences Jaume Almera (CSIC) Lluis Sole Sabaris s/n, 08028 Barcelona Phone: +34 934095410

[R] chron() question

2007-06-18 Thread javier garcia-pintado
Hi all, I'm using chron and it seems to me that there is a strange behaviour when constructing chronological objects. An extract of my source data is: tdr.hhmm[4860:4870] [1] 22:22:00 22:42:00 23:02:00 23:22:00 23:42:00 00:02:00 [7] 00:22:00 00:42:00 01:02:00 01:22:00 01:42:00

[R] help with this indexing

2007-05-21 Thread javier garcia-pintado
Hi all, Let's say I have a long data frame and a short one, both with three colums: $east, $north, $value And I need to fill in the short$value, extracting the corresponding value from long$value, for coinciding $east and $north in both tables. I know the possibility: for (i in

Re: [R] indexing

2007-02-02 Thread javier garcia-pintado
12.0 NA NA 8.5 NA 7.5 12.0 12.0 12.0 -- Tony Plate javier garcia-pintado wrote: Hello, In a nutshell, I've got a data.frame like this: assignation - data.frame(value=c(6.5,7.5,8.5,12.0),class=c(1,3,5,2)) assignation value class 1 6.5 1 2 7.5 3 3 8.5 5 4

[R] indexing

2007-02-01 Thread javier garcia-pintado
Hello, In a nutshell, I've got a data.frame like this: assignation - data.frame(value=c(6.5,7.5,8.5,12.0),class=c(1,3,5,2)) assignation value class 1 6.5 1 2 7.5 3 3 8.5 5 4 12.0 2 and a long vector of classes like this: x - c(1,1,2,7,6,5,4,3,2,2,2...) And would

[R] indexing without looping

2007-02-01 Thread javier garcia-pintado
Hello, I've got a data.frame like this: assignation - data.frame(value=c(6.5,7.5,8.5,12.0),class=c(1,3,5,2)) assignation value class 1 6.5 1 2 7.5 3 3 8.5 5 4 12.0 2 and a long vector of classes like this: x - c(1,1,2,7,6,5,4,3,2,2,2...) And

[R] gstat package. singular attibute

2007-01-05 Thread javier garcia-pintado
Hello, I'm using the gstat package within R for an automated procedure that uses ordinary kriging. I can see that there is a logical (singular) atrtibute of some adjusted model semivariograms: .- attr(*, singular)= logi TRUE I cannot find documentation about the exact meaning and the

[R] xaxt=n for image()

2006-12-19 Thread javier garcia-pintado
Hi, The argument xaxt=n for removing the x axis from a image plot does not work for me. I'm really using a function called plot.grassmeta() in library GRASS that is a wrapper for image(), but it seems to me that the problem is not in plot.grassmeta() but in image(). If I'm right could you tell me

Re: [R] expression()

2006-12-13 Thread javier garcia-pintado
, this would be perfect for my plots, as I use them for papers to be published. Wishes, Javier -- Benilton Carvalho wrote: mtext(expression(beta[max]), side=1, line=2) is it what you want? b On Dec 12, 2006, at 10:59 AM, javier garcia-pintado wrote: Hi, I'm

[R] expression()

2006-12-12 Thread javier garcia-pintado
Hi, I'm trying to use expression() to write a text to a graphic in the margin. Using: mtext(expression(beta),side=1,line=2) writes a perfect beta greek character, but I need to add a subindex max, and I'm trying: mtext(paste(expression(beta),max),side=1,line=2) simply writes beta max in the

[R] which() over a matrix

2006-11-23 Thread javier garcia-pintado
Hello, A brief question that I am not able to resolve by my own, but I presume it's easy for you: I've used apply to find the values closer to 0 in each row of a matrix: closer.to.0 - apply(abs(myarray),MARGIN=1,min) My question is how could I use which (or another way) to obtain a vector that

[R] tcltk: help pop-up

2006-07-11 Thread javier garcia-pintado
Hi all; Please, does anyone have a piece of R-tcltk code that includes a help pop-up for any item and could send it as an example? thanks and best regards, Javier -- Javier García-Pintado Institute of Earth Sciences Jaume Almera (CSIC) Lluis Sole Sabaris s/n, 08028 Barcelona Phone: +34

[R] interacting with X11() device

2006-06-01 Thread javier garcia-pintado
Hello; I'm preparing a simple function that plots sequentially a number of time series for visual inspection, after some previous transformations. To allow the user to have time to see the series I'm using Sys.sleep(1.5) between calls to line(). But is it possible to add some mechanism that

[R] tcltk error when calling a dialog

2006-03-02 Thread javier garcia-pintado
Hello; I've got several radiobuttons in tcltk with the following sintaxis: tk2.rd - /tkradiobutton(/frame4,command=plotDialog1,text=New Q plot, value=2, variable=OUTPLOTtclVar/)/ All the buttons call the same function plotDialog1. With the objective of call a dialog to select some plotting

Re: [R] R script autoload at startup

2006-02-27 Thread javier garcia-pintado
the speed with which it works?), but there are documented R functions for you to add menu items, such as winMenuAdd. (I do wonder how you missed these in the searches for help, as all the terms I tried found the answers.) On Fri, 24 Feb 2006, javier garcia-pintado wrote: Yes. It would

[R] TclTk library loading (whole version) Linux

2006-02-27 Thread javier garcia-pintado
Hello; Well, I'm afraid this is the second related problem I report in two days (I'm sorry for this) I've programmed a tcltk interface for a model and it includes a comboBox. The comboBox widget comes with the BWidgets library of Tcl/Tk. It works all perfectly with the windows R GUI (with the

[R] R script autoload at startup

2006-02-24 Thread Javier Garcia-Pintado
Hello; I'm now using mainly R for windows, mainly because I'm writing a tcl/Tk interface for some people, and I've got two questions. I'm an absolute beginner with tctk or tcktk use under the R GUI. 1) Is it posible to create a shorcut that launchs the R GUI and automatically reads the source

Re: [R] R script autoload at startup

2006-02-24 Thread javier garcia-pintado
Samuelson escribió: Do you need the user to interact with the Rgui after the code has run? -Frank Javier Garcia-Pintado wrote: Hello; I'm now using mainly R for windows, mainly because I'm writing a tcl/Tk interface for some people, and I've got two questions. I'm an absolute beginner