similar to: character position

Displaying 20 results from an estimated 10000 matches similar to: "character position"

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 <-
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
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 25
1
grid.newpage()
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") abline(h=0.1,lty=3,col="blue")
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
2007 Mar 19
3
character to numeric conversion
Hi. Is there a straightforward way to convert a character string containing comma-delimited numbers to a numeric vector? In my application, I use system(executable.string, intern=TRUE) which returns a string like "[0.E-38, 2.096751179214927596171268230, 3.678944959657480671183123052, 4.976528845643001020345216157, 6.072390165503099343887569007, 7.007958550337542210168866070,
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
2007 Mar 04
1
Problem using callNextMethod() in S4
Dear all, Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I have problems using function callNextMethod() in method initialize. I am loading the following code as file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "character", "VIRTUAL"),
2009 Aug 04
1
asc class object - how to get positions (coordinates) for a given raster ID?
In a raster asc object, I'd like to take the positions (x and y coordinates) for a given "pixel" ID. Any idea about how to do this? _______________ Paulo E. Cardoso [[alternative HTML version deleted]]
2010 May 04
1
Glusterfs and Xen - mount option
Hi, I've installed Gluster Storage Platform on two servers (mirror) and mounted the volume on a client. I had to mount it using "mount -t glusterfs <MANAGEMENT_SERVER>:<VOLUMENAME-ON-WEBGUI>-tcp <MOUNTPOINT>" because I didn't had a vol file and couldn't generate one with volgen because we don't have shell access to the gluster server right? How can
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]]
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]]
2018 May 25
2
TukeyHSD for multiple response
Dear all, I'm testing the effect of species and sex in my sample by using the principal component scores of a PCA analysis. I have 30 PCs and I tried to see if there is any significant difference from males to females, given that there is a significant effect of phylogeny (factor with several species). I didi it like this: Y<-PCA$pc.scores[,1:30] fit <- manova(Y ~ sp*sex)
2007 Aug 26
2
Character position command
This is a very simple question, so I apologize I couldn't find it online: I want to shorten the string 'apples.pears' to 'apples'. string='apples.pears' string1=substr(string,0,x) For x above, I would like to have a command like charAt(string,"."), i.e. the position of the period in the word, but I can't seem to find a charAt command in R. Thank you.
2014 Nov 25
1
Test
Sds, Paulo Henrique Cardoso Administrador de Redes - T.I. NHS Sistemas Eletr?nicos Ltda Av. Juscelino Kubitschek de Oliveira, 5270 Cidade Industrial, Curitiba - PR Fone/Fax: (41) 2141-9246/9247 www.nhs.com.br IMPORTANTE: Esta mensagem, incluindo quaisquer anexos, ? endere?ada exclusivamente ao seu destinat?rio e poder? conter informa??es confidenciais. A revis?o, distribui??o,
2018 May 26
0
TukeyHSD for multiple response
Hi Sergio Doing those tests 30 times is going to give you a huge Type I error rate, even if there was a function that did that. There is a reason why TukeyHSD doesn't make it easy. In general, if there are useful comparisons among the species, you are better off setting up and testing contrasts than doing all-pairwise Tukey tests. Also, the PCA scores are ordered in terms of variance
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?
2007 Aug 01
1
New R package sqldf
sqldf is an R package for running SQL select statements on one or more R data frames. It is optimized for convenience making it useful for ad hoc queries against R data frames. Given an SQL select statement whose tables are the names of R data frames it: - sets up the database (by default it transparently sets up an in memory SQLite database using RSQLite; however, MySQL via RMySQL, can be
2007 Aug 01
1
New R package sqldf
sqldf is an R package for running SQL select statements on one or more R data frames. It is optimized for convenience making it useful for ad hoc queries against R data frames. Given an SQL select statement whose tables are the names of R data frames it: - sets up the database (by default it transparently sets up an in memory SQLite database using RSQLite; however, MySQL via RMySQL, can be
2009 Aug 02
1
Alternatives to rbind()
I'm not sure if there are better methods to create objects such as dataframes with other than rbind function. II usually combine a data.frames created at each loop with a rbind(), specially when I don't know the dimension of the data.frame that will be created. Binding the new to an existing data.frame seems to be the easiest way to build an object that assemble data in a loop.