Re: [R] grid.newpage()

2008-09-25 Thread Paulo Cardoso
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Paulo Cardoso > Sent: quinta-feira, 25 de Setembro de 2008 15:50 > To: 'r' > Subject: [R] grid.newpage() > > Hi, > > I'm trying to customize a window with 2 graphs. >

[R] grid.newpage()

2008-09-25 Thread Paulo Cardoso
Hi, I'm trying to customize a window with 2 graphs. I'm able to do the first one with something like this general example par(mfrow=c(1,2),cex.axis=0.85,cex.lab=0.80,mai=c(1.3,1,0.5,0),las=3) bplot<-barplot(bar.values,names.arg=cf.names,width=0.5,ylab="% Area held") abline(h=0.3,lty=3,col="red")

[R] hexbin object to vector (shapefile)

2008-09-24 Thread Paulo Cardoso
Is it possible to convert an hexbin object like hexbin(rep(1:100,each=100),rep(1:100,100),xbins=10) and convert it to a vectorial (shp) format? Paulo - This electronic mail

[R] spatstat - tabulate point pattern

2008-09-19 Thread Paulo Cardoso
Hi, Is it possible to tabulate (count) points generated by spatstat ppp() using any regular Grid created with owin()? The idea is to count No of points in each grid cell. Any other method available? Paulo __ R-help@r-project.org mailing list https://st

Re: [R] character position

2008-09-18 Thread Paulo Cardoso
Thank you all. Works fine. > -Original Message- > From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] > Sent: quinta-feira, 18 de Setembro de 2008 12:14 > To: Paulo Cardoso > Cc: jim holtman; r > Subject: Re: [R] character position > > Try: > > sub("

Re: [R] character position

2008-09-18 Thread Paulo Cardoso
essage- > From: jim holtman [mailto:[EMAIL PROTECTED] > Sent: quinta-feira, 18 de Setembro de 2008 9:58 > To: Paulo Cardoso > Cc: r > Subject: Re: [R] character position > > If it always occurs after 'are', this will work: > > > x <- 'There are 20 s

[R] character position

2008-09-18 Thread Paulo Cardoso
Hi, I'm not being able to capture a position of a 'string' in a character string. In this example: 'There are 20 species in this grid' I would like to capture the string (number) after 'are' and before 'species'. Consider they do not change. I wouldn't like to use substr because stop position ma

Re: [R] how to match or merge data.frames in this case...

2008-09-03 Thread Paulo Cardoso
Perfect, with a minor extension to get the desired result: mergeddata <- merge(dataframe.1, dataframe.2,by=c("id1","id2"),all.x=T) mergeddata$boundary.x[mergeddata$boundary.y==0] <- 0 Thank you Vikas > -Original Message- > From: Vikas Rawal [mailto:[EMAIL PROTECTED] > Sent: quinta-feira,

[R] how to match or merge data.frames in this case...

2008-09-03 Thread Paulo Cardoso
Hi, I'm trying to match two data frames in order to replace the boundary values in a dataframe.1 with values in dataframe.2 ONLY where the pair id1 id2 matches between the two data frames. Eg. > dataframe.1 ... id1 id2 boundary 3307 1095 1108 438.691 3308 1095 1109 438.691 3309 1095 1121 4

[R] create folders

2008-09-03 Thread Paulo Cardoso
Hi, Is it possible to code R to create folders or subfolders in a Windows SO? In this case I would like to create a set of subfolders (/gis, /input, /output, /tables, /vectorial) under a specified folder. Paulo __ R-help@r-project.org mailing list https:

Re: [R] read XML

2008-07-30 Thread Paulo Cardoso
quot;class")= chr "XMLNode" ..- attr(*, "class")= chr "XMLNode" - attr(*, "class")= chr "XMLNode" And I need the first two components of elements:List of 4. >From those components I need to manipulate xmax and xmin and write a new xml

[R] read XML

2008-07-30 Thread Paulo Cardoso
I have a xml exported by Manifold GIS but I'm not being able to import it into R using XLM package. The file have this structure: - Layout 2 1 1 - Any idea? Thanks. Paulo Cardoso [[alternative HTML version de

Re: [R] Using stop ( ) from a Text Editor

2008-07-28 Thread Paulo Cardoso
r information. Yes. TINN will send the entire lines just like a clipboard paste into R console Thanks for your comments. I think that source() is the way as mentioned by Jim Holtman. Please give-me some time to clarify my problem with my concrete example. Paulo Cardoso -Original Message- From:

[R] Using stop ( ) from a Text Editor

2008-07-28 Thread Paulo Cardoso
When using stop clause with a condition, its documented that "If a condition object is supplied it should be the only argument, and further arguments will be ignored, with a warning". This will not be the case when running codes from Winedit or TINN? When I do something like: if(length(content[c

[R] spatial statistics and matrix algebra

2008-07-07 Thread Paulo Cardoso
Can R perform matrix algebra between ascii converted Esri grids? Possible yes. The question is a little more complex (from my point of view and inexperience): I'm interested in perform cost surface and distance surface analysis avoiding ArcGIS tools. Maybe R can deal with grid formatted as matrice

Re: [R] sprintf()

2008-06-09 Thread Paulo Cardoso
Yes works, Thank you Henrique. I’m so basic with R! Paulo From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 9 de Junho de 2008 17:37 To: Paulo Cardoso Cc: r-help@r-project.org Subject: Re: [R] sprintf() Try: sprintf("%E00", pi) On Mon, Jun 9, 2008

[R] sprintf()

2008-06-09 Thread Paulo Cardoso
Hi, I'm not being able to represent the result of sprintf("%E", pi) [1] "3.141593E+00" Into this: "3.141593E+" Thanks in advance Paulo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gu

[R] Spatial Overlay - SQL - Geoprocessing

2008-05-23 Thread Paulo Cardoso
Can we by any change perform in R something similar geoprocessing or, more advanced, Spatial SQL over vectorial data? Paulo [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] win.graph() with more than one Lattice plot

2008-05-15 Thread Paulo Cardoso
MAIL PROTECTED] Sent: quarta-feira, 14 de Maio de 2008 23:21 To: Paulo Cardoso Cc: [EMAIL PROTECTED] Subject: Re: [R] win.graph() with more than one Lattice plot Paulo you can use the layout command if you use the plot command or using lattice viewports and grid.layout. I have not use layout

[R] win.graph() with more than one Lattice plot

2008-05-14 Thread Paulo Cardoso
Is is possible to accomodate more than a single independent (not resulting from arranjment of layout=c()) lattice graphs in a single win.graph() device? Thanks in advance, PS Maybe duplicated Paulo De: [EMAIL PROTECTED] em nome de Roland Rau Enviada: qua 14-05

[R] calling a C program from R

2008-05-04 Thread Paulo Cardoso
Is it possible to call a program (an .exe wrote in C) from R Gui? I'm interested in interact with inputs for this program and analyze outputs with R. The program itself calls a input.dat file with a number of needed parameters. Based on this input file it produces a number of files resuming the p