[R] get a dataframe subset based on time interval

2009-06-25 Thread Paulo E. Cardoso
Hi, I have a big dataframe with a POSIXct column and I'd like to extract a subset contained in a given time interval, from Date 1 to Date 2. Paulo E. Cardoso __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] Skip loop combination when one factor's level is missing

2009-06-30 Thread Paulo E. Cardoso
Hi, In a symmetric design one may have a data.frame with, say, two factors (two columns), each one with n levels. In a nested loop, to run a expression combining levels of each factors, to produce a new data.frame, if one level is absent, the loop is interrupted; one gets a empty object.

[R] system() how to make a program run a specific file

2009-07-08 Thread Paulo E. Cardoso
I'd like to know how to call a program to run or open a specific file. something like this: system('"C:\\Program Files (x86)\\IrfanView\\i_view32.exe"','-A:\\ teste.jpg') is not working. any help will be appreciated Paulo E. Cardoso

Re: [R] system() how to make a program run a specific file

2009-07-08 Thread Paulo E. Cardoso
After all it's very easy: system(paste('"C:\\Program Files (x86)\\IrfanView\\i_view32.exe"','A:\\test.jpg')) Paulo E. Cardoso > -Mensagem original- > De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > E

[R] system() how to make a program run a specific file - RUN and Output directory issues

2009-07-08 Thread Paulo E. Cardoso
I have a particular case where the program I'm calling needs a additional instructions, to click a RUN button and set a output directory. Could these options be controlled with system() function? Paulo E. Cardoso > -Mensagem original- > De: r-help-boun...@r-

[R] while( ) to get a vector until the sum of elements are <= X ?

2009-07-10 Thread Paulo E. Cardoso
h the difference to achieve the constrain. I don't know how to achieve this. with a while? ____ Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] how to export image (TIF, BMP or JPG) from SpatialGridDataFrame or SpatialPixelDataFrame

2009-07-10 Thread Paulo E. Cardoso
I'm trying to export a SPDF to a image. The original file, when imported into R (JPG with rGDAL) have dimension = 997x997. When I save as bmp the image(spdf), i get a 672x672 image. Paulo E. Cardoso __ R-help@r-project.org mailing

[R] paste (" " x " ")

2009-07-14 Thread Paulo E. Cardoso
maybe a very basic question but I need to parse an SQL code into a GIS from a ODBC conn. The code includes a specific sentence OPTIONS COORDSYS("Latitude / Longitude"); and I need the " " pasted into the string. They cannot disappear. how to do this? ______

[R] Quotes - useFancyQuotes

2009-07-15 Thread Paulo E. Cardoso
ORDSYS( \"Surface 1\" AS COMPONENT);" And it's not readable as SpatialSQL code by GIS How to deal with this problem? ____ Paulo E. Cardoso Paulo E. Cardoso [[alternative HTML version deleted]]

[R] Convert RGB-sRBG

2009-06-23 Thread Paulo E. Cardoso
Hi, How can I convert from 8-bit RGB color to [0-1] interval (sRGB) and vice-versa? Thanks in advance Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] Test for Temporal autocorrelation in GPS obtained points

2009-06-24 Thread Paulo E. Cardoso
given correlation value. I don't know if time can be used with as x-variable in moran.test(). Thanks in advance ____ Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.

[R] color vectors other than gray()

2009-03-27 Thread Paulo E. Cardoso
;,cex=0.6) plot(blocos,ol="grey40",fg=NA,add=T) I'd like to replace the grey shade by other colors. Thanks in advance Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mai

Re: [R] color vectors other than gray()

2009-03-27 Thread Paulo E. Cardoso
ng level accordingly to the abundance value (level). I don't know how to proceed. ________ Paulo E. Cardoso -Mensagem original- De: baptiste auguie [mailto:ba...@exeter.ac.uk] Enviada: sexta-feira, 27 de Março de 2009 13:30 Para: Paulo E. Cardoso Cc: r-h...@stat.math.ethz

Re: [R] color vectors other than gray()

2009-03-27 Thread Paulo E. Cardoso
)#! Legenda text(245300,130500,"Nº Indivíduos",cex=0.6) plot(blocos,ol="grey40",fg=NA,add=T) Paulo E. Cardoso -----Mensagem original- De: baptiste auguie [mailto:ba...@exeter.ac.uk] Enviada: sexta-feira, 27 de Março de 2009 14:50 Para: Paulo E. Cardoso Cc

Re: [R] color vectors other than gray()

2009-03-27 Thread Paulo E. Cardoso
Petr, I'd like to be able to change the ramp to other than grey shades. Please see my previous message with some data. Paulo E. Cardoso -Mensagem original- De: Petr PIKAL [mailto:petr.pi...@precheza.cz] Enviada: sexta-feira, 27 de Março de 2009 15:12 Para: Pa

[R] print table (data.frame) to pdf

2009-03-27 Thread Paulo E. Cardoso
How can I print a data.frame to a PDF with pdf()...dev.off() Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] plot Geotiff

2009-03-31 Thread Paulo E. Cardoso
Is there a way to plot Geotiff, combining it with spatial (vector) data? Paulo E. Cardoso [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] how to control lattice plot parameters

2009-04-15 Thread Paulo E. Cardoso
rey","blue","green")) ) ) A few controls are not responding and I don't know how to: 1) control cex for xlab and ylab 2) control position of legend 3) control lty for each group level 4) control plot groups colors 5) match lege

[R] Extract Time in POSIXct

2009-03-20 Thread Paulo E. Cardoso
Assunto: Extract Time in POSIXct I have a dataframe with a column [hora] with this format: hora: POSIXct, format: "1899-12-30 14:30:00" It was obtained reading a access2007 database table. Can I extract the time from each entry, keeping the POSIXct format? ______