similar to: Extracting part of an array

Displaying 20 results from an estimated 10000 matches similar to: "Extracting part of an array"

2003 Feb 14
3
Change array size
Hi, I would like to know if there is a way to change a vector of arbitrary size to make it fits the nearest upper size multiple of a power of 2. -- Cordialy ---------------------------------------- Emmanuel POIZOT Cnam/Intechmer Digue de Collignon 50110 Tourlaville T?l : (33)(0)2 33 88 73 42 Fax : (33)(0)2 33 88 73 39 -----------------------------------------
2012 Oct 04
4
Class for time series
Dear all, I have a time serie dataset such as the following with data acquired every 15 minutes: Date Heure Profondeur Temp?rature Salinit? Turbidit? Chloration 1 2012-07-06 08:47:22 -0.144 22.469 0.011 0.000 0 2 2012-07-06 09:02:21 -0.147 22.476 0.011 0.000 0 3 2012-07-06 09:17:21 -0.139 22.498 0.011 19.323 0 4 2012-07-06
2012 Oct 10
3
Generating random geographical coordinates
Dear all, I have two coordinates vectors, say X and Y of length n. I want to generate for each couple of coordinates X1,Y1 X2,Y2 X3,Y3....Xn,Yn a random coordinate which is located in a square define as X +/- dx and Y +/- dy. I saw the runif function which can generate for just one value at a time what I want : runif(1, X - dx, X + dx) for X and runif(1, Y - dy, Y + dy) for Y. I would like
2002 May 14
2
Raster management data
Hi, I'm a newbie in R world. I would like to develop an application that extract contour from objects of an image. - Is R able to manage raster data (i.e., images) ? - Is there a specific package in change of such management ? I'm specificaly interest in the Canny filter. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Emmanuel POIZOT CNAM/INTECHMER B.P. 324 50103 Cherbourg Cedex T?l : 33 (0)2 33
2001 Dec 20
2
Modifying a function
Hello, I'd writen a function in R composed of multiples lines. How can I do to modify or delete on of the line of my function ? -- Sincerely ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Emmanuel POIZOT ~ CNAM/INTECHMER ~ B.P. 324 ~ 50103 CHERBOURG CEDEX ~ T?l : (33) 233 887 342 ~ Fax : (33) 233 887 339 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2004 Sep 24
2
R from outside program
Hi all, I'm writing a program in C++ in witch there should be some graphical outputs. To do so, I would like to use R with the command : R --no-save < cmdfile.R , where I put the R graphic commands in the cmdfile.R file. I call R from my C++ code but as R seems to run in batch mode, there are no graphical outputs! How can I do to get the graphics outputs ? -- Sincerely
2009 Jul 13
1
Times series adjustment
Dear all, I want make correction depth of a bathymetric data set. To do so, I have the depth data set sample every second (a depth at each second) in one hand, and in the other hand, I have a tide variation level data set sample every 250 ms. The time register in each data sets (tide and bathymetric) is express in seconds followinf this format : hh:mm:ss.ss I would like to rectify the depth
2001 Dec 13
2
Problem to interpret wilcox.test
I've got two set of data : 22.45 21.56 20.48 19.59 21.52 = A and 22.15 21.98 20.42 20.58 19.61 = B I perform a wilcox.test on this two set wilcox.test(A, B) and I'd this answer: Wilcoxon rank sum test data: A and B W = 12, p-value = 1 alternative hypothesis: true mu is not equal to 0 Should I interpret that there is no difference between the two sets ? -- Cordialement
2003 Apr 08
1
Modeling the trend and eliminate it
Hi, I would like to eliminate the trend of a set localised (with x an y) data. I try to fit a linear model to the data: mod.01 <- lm(ff~x+y) I've got so a model. My question is how can I do to subtract the model from the initial f data ? -- Cordialement ---------------------------------------- Emmanuel POIZOT Cnam/Intechmer Digue de Collignon 50110 Tourlaville T?l : (33)(0)2 33 88 73 42
2005 Dec 16
1
autocorrelation test
Hi all, I would like to test the relevance of a vector field (i.e. if the vectors are organized or not). To do so, I would like to use an autocorrelation test, so that I have two questions: - is the Watson test applicable to that perpuse ? - is the kuiper test applicable to that purpuse ? Regards ------------------------------------------------ Emmanuel Poizot Cnam/Intechmer B.P. 324 50103
2005 Oct 24
2
Compilation package error
Dear all, I tried to install gstat package and add the following compilation error : ------------------------> * Installing *source* package 'gstat' ... creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether
2008 Jan 10
1
RODBC, postgresql on Linux
Dear all, I facing pbs using RODBC library. I'm working on a Linux (Ubuntu Gutsy) os, with R version 2.5.1. I've got Postgresql 8.2.5 installed with the odbc-postgresql package. I try to connect in a R session to a postgresql database using: odbcConnect(dsn="thedatabasename",uid="theuser",pwf="thepasswd",case="postgresql") I get a message error,
2001 Dec 03
1
Plotting in a traingle
Hello, I want to print points having value on 3 variables in a triangle (ternary diagram). How can I di this with R ? -- Cordialement ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Emmanuel POIZOT ~ CNAM/INTECHMER ~ B.P. 324 ~ 50103 CHERBOURG CEDEX ~ T?l : (33) 233 887 342 ~ Fax : (33) 233 887 339 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2002 Jul 16
1
Watson test
Hi, I develop a little pice of code to perform a watson test. I try to compare the result obtain with my code and those given by the R library CircStats and it's watson(x,alpha,dist) provided function. My trouble is that I've got a set of test data (with it's watson test result) and the result given by R's watson function is not the same. Is there anybody who knows witch function
2009 Jun 10
1
GeoXp package
Dear all, I would like to use GeoXp package under Ubuntu Jaunty. I did install the required package GeoXp, for which I had to install before rgdal package. So when done, I want to load the library (library(GepXp), I got the error when GeoXP want to load rgdal package: > library(sp) > library(rgdal) Error in fun(...) : GDAL Error 1: libgrass_I.so: Ne peut ouvrir le fichier
2005 May 16
2
callback problem
hello i am trying to make a callback solution. client will call callback number and call is terminated. now callback server will create a call for that client. actually i have a problem in this process. that server is creating call to client (UA) when previous call is not disconnected yet. UA---------->Asterisk(callbacknumber) callis answered UA<----------Asterisk(callbackserver) call is
2002 Apr 26
2
Can't install packages (PR#1486)
Hello, I install R under Mandrake Linux 8.2. R itself work fine, but I had an error to install packages, i.e. fields, geoR and geoRglm : $: R CMD INSTALL geoRglm_0.4-3.tar.gz Installing *source* package `geoRglm' ... libs gcc-3.0.1 -I/usr/lib/R/include -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -fno-fast-math
2002 Apr 26
2
Can't install packages (PR#1486)
Hello, I install R under Mandrake Linux 8.2. R itself work fine, but I had an error to install packages, i.e. fields, geoR and geoRglm : $: R CMD INSTALL geoRglm_0.4-3.tar.gz Installing *source* package `geoRglm' ... libs gcc-3.0.1 -I/usr/lib/R/include -I/usr/local/include -mieee-fp -D__NO_MATH_INLINES -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -fno-fast-math
2006 Sep 19
2
Linux configuration (Ubuntu)
Hello all, I have been a R user for about a year now, running on a MS Windows machine. I am in the process of making a complete switch to open-source. Linux is a new world to me. Ubuntu was my selection of the various distributions. Please pardon this very basic question (I was unable to locate an answer on R or Ubuntu). I used Synaptic to download the necessary files to run. However, I was
2011 Aug 18
1
Extracting Parts of Array (Index Comparison?)
Hi all, I have the following issue: head(A): C6 5 6.095243 6 12.622674 7 6.418493 8 11.726602 9 9.282112 25 9.625917 head(B): V1 2 30437 5 1102503 6 1102539 7 1103257 8 1103295 9 1104434 25 1100494 I would like to extract elements from B such that their left-most numbers will match those of A (5, 6, 7, 8, 9, 25). However, I am not sure