search for: pecardoso

Displaying 15 results from an estimated 15 matches for "pecardoso".

2009 Aug 02
1
Out of memory - RDGAL CPLRealloc()
I got this error message. Error in .local(.Object, ...) : GDAL Error 2: CPLRealloc(): Out of memory allocating 16 bytes I was trying to read 1388 jpg images (993x993) with rgdal in a loop, to store data in a data.frame. It fails to read the 1338 image. Isn't R recycling the object? I'm running this process in a Server machine with Win XP x64, Xeon processor, 4GB Ram. R is
2008 Sep 18
3
character position
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 may change. Thanks Paulo
2008 Sep 25
1
grid.newpage()
...ding any attachment hereof, contains information that is private and confidential, and it is only for the use of the person and at the e-mail address above indicated. If you have received this electronic mail transmission in error, please destroy it and notify me immediately through e-mail address: pecardoso at netcabo.pt
2008 May 24
1
Spatial Overlay - SQL - Geoprocessing
Can we by any change perform in R something similar geoprocessing or, more advanced, Spatial SQL over vectorial data? Paulo [[alternative HTML version deleted]]
2008 Sep 04
1
how to match or merge data.frames in this case...
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 438.691 3310 1096 1109 438.691 ... 3345 1108 1120 438.691 3346 1108 1121 438.691 3347 1108
2008 Sep 24
0
hexbin object to vector (shapefile)
...ding any attachment hereof, contains information that is private and confidential, and it is only for the use of the person and at the e-mail address above indicated. If you have received this electronic mail transmission in error, please destroy it and notify me immediately through e-mail address: pecardoso at netcabo.pt
2008 Jul 30
1
read XML
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: <?xml version="1.0" encoding="UTF-8" ?> - <layout> <name>Layout 2</name> <pagesByX>1</pagesByX> <pagesByY>1</pagesByY> - <elements> <legend
2009 Mar 27
3
color vectors other than gray()
I'm trying to create a graph where different cells of a grid (a shapefile) will be painted with a color share scale, where the most easy way is to use gray(). Can I somehow get a vector (gradient) of colors, a vector of colors with other methods but gray()? I'm doing this until now quad_N_sp <-
2009 Jul 09
2
How to Populate List
...t by its index (Sergey Goriatchev)   173. Re: r bug (?) display of data (Peter Dalgaard)   174. Re: r bug (?) display of data (Uwe Ligges) ---------------------------------------------------------------------- Message: 1 Date: Wed, 8 Jul 2009 10:59:08 +0100 From: "Paulo E. Cardoso" <pecardoso@netcabo.pt> Subject: [R]  system() how to make a program run a specific file To: <r-help@r-project.org> Cc: r-help@stat.math.ethz.ch Message-ID:     <!&!AAAAAAAAAAAYAAAAAAAAAK2N38q7o51Ejb8q0JfvLrBiggAAEAAAALpNHGSDjehOuS+QkkOFWe4BAAAAAA==@netcabo.pt>     Content-Type: text/plain...
2009 Jun 30
1
Skip loop combination when one factor's level is missing
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. Is there a way to avoid or skip combinations of factors in such nested loops? I think that
2009 Jul 08
1
system() how to make a program run a specific file
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 [[alternative HTML version deleted]]
2009 Jul 10
2
while( ) to get a vector until the sum of elements are <= X ?
I have a vector of values X = seq(1:10) I want to get another vector V of with sample (with replacement) of X but with a constrain: V will have as much elements as those necessary to V sum exactly 10. If the N-th value of V make the sum greater than 10, it's is subtracted with the difference to achieve the constrain. I don't know how to achieve this. with a while?
2009 Jul 15
1
Quotes - useFancyQuotes
I need to get the exact sentence, with the quotes: OPTIONS COORDSYS("Surface1" AS COMPONENT); but this: options(useFancyQuotes = F) paste("OPTIONS COORDSYS(", dQuote("Surface 1"), "AS COMPONENT);" ) give me this: [1] "OPTIONS COORDSYS( \"Surface 1\" AS COMPONENT);" And it's not readable as SpatialSQL code by
2008 May 04
1
calling a C program from R
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 parameterized analysis. I'm actually already able to read these outputs with R, and produce a
2009 Mar 27
2
print table (data.frame) to pdf
How can I print a data.frame to a PDF with pdf()...dev.off() ____________ Paulo E. Cardoso [[alternative HTML version deleted]]