similar to: How to generate for one vector matrix

Displaying 20 results from an estimated 1100 matches similar to: "How to generate for one vector matrix"

2005 Jul 06
2
How to sample x-y coordinates from GIS files
Hi Gurus! I have a job that is to get randomly samples from point-based GIS data (sp called shape GIS files) under the total sum resctricted. For example, I would like to take random smaples under the 1000 persons in each city. The randomly sampled persons should not be over 1000 any case. Thank you in advance, -- Kum-Hoe Hwang, Ph.D. Phone : 82-31-250-3283 Email : phdhwang@gmail.com
2005 Jun 21
1
How to plot circular data in the directions of 0, 0.5pi, pi and 1.5pi
Hi R users, I use plot.circular(rad, stack=T,bins=4) and could just obtain the four stacks in the directions of 45, 135, 225 and 315 degrees. But I want them in 0, 90, 180 and 270 degrees. Is there any parameter or any other function to make it? Thanks for helping a R beginner. -- Xiaohua Dai, Dr. -------------------------------------------------------------------------------- Centre for
2005 Jun 30
3
[OT] gmail filter for R-help and R-devel lists
This is slightly off-topic but I would be interested in whether anyone has succeeded in creating a filter expression for Google's gmail system that will select messages sent through the R-help and R-devel lists. It seems as if it should be easy to select on '[R]' or '[Rd]' in the subject line but I haven't been able to work out the exact syntax that would do this and not
2005 Oct 17
2
how to find indices of particular array elements
Dear R helpers, I have a largish matrix (1300 x 1300) and I wish to find the row and column numbers that identify particular elements whose values I know in advance (for example, the row and column numbers for the maximum value of the matrix). I have looked in the help manual and found the functions 'row' and 'col' for finding the indices of a matrix. But, I can't figure out
2006 May 12
1
[ESRI-L] outline polygons of point clumps
Sorry, I did not make my question clear. Since I have a point theme with many points, some of them may clump together. the problems here are: 1. how to find clumps in a point theme? 2. the convex-hull extension I found only deal with all the points in a theme at each time? how to make each convex hull around each point clump automatically? Thanks. Xiaohua On 5/12/06, Bob Booth <bbooth
2005 Jul 13
5
maps drawing
Hello, is there a package in R that would allow map drawing: coastlines, country/state boundaries, maybe topography, rivers etc? Thanks for any guidance, Mark
2005 Sep 12
1
help for linear-circular correlation
Hi R-profs, Maybe my question is a little off topic. Could any one tell me how to calculate a linear-circular correlation coefficient and its p-values? I had a quick look at circular and CircStats packages and did not find the related function. Thanks for any kindly help. Xiaohua -- Xiaohua Dai, Dr. Centre for Systems Research, Durban Institute of Technology P.O.Box 953, Durban 4000, South
2005 Aug 03
1
help for cell2nb and queencell in spdep package
Dear Dr. Bivand and R-users, I have a 5 by 5 grid, say, location[1:5,1:5], and I want to know the indices of 8 neighbours of each cell. For example, for location[2,2], its neighbour coordinates are [1,1:3], [2,1], [2,3] and [3,1:3]. Sometimes I also need to remove edge effects (torus = TRUE). I have tried "cell2nb" function in your spdep package. Here's my example: > neigh
2005 Oct 21
3
make three plot to one plot
Dear all, I want to make three plot below to only one plot together with legend, how can I do that? I have tried with matplot function but I did not succeed. Thanks for your help. Sincerelly, Jan Sabee test.five.x <- c(0.02,0.05,0.07,0.09,0.10,0.12,0.13,0.14,0.16,0.17,0.20,0.21,0.34,0.40) test.five.y <- c(18,12,17,12,3,15,1,5,1,1,3,10,15,10) plot(test.five.x, test.five.y,
2005 Oct 18
4
Ways to speed up R code?
Hi R-users: Yesterday I ran a R code for 9 hours and it did not show any sign to stop. Then I interrupted it and found it had completed 82.5%. This morning I decided to wait for another 11 hours to see what will happen. Wait a minute, I heard that transforming data.frame to matrix will make R code faster. Then I made the modification in my R code. Oooh, the new code finished within 30 minutes!!
2005 May 02
1
Take each one cell
Are there any way to take > x <- c("0", "large", "medium", "small") > x [1] "0" "large" "medium" "small" > like x="0" x="large" x="medium" x="small" Best regards Jan Sabee
2005 Mar 23
1
more classes to one class in one dataset
I have a big database which more classes in class variable. I want to make each class to one dataset, for example: x1 x2 x3 x4 class a b a c c M1 c b b c c M4 c c a c c M2 c a c a a M2 c c a a a M1 c a b c a M3 c c a b c M3 c a c a b M2 c c a b a M1 How can I make, like: x1 x2 x3 x4 class a b a c c M1 c c a a a M1 c
2005 Apr 19
1
How to make combination data
Dear R-user, I have a data like this below, age <- c("young","mid","old") married <- c("no","yes") income <- c("low","high","medium") gender <- c("female","male") I want to make some of combination data like these, age.income.dat <- expand.grid(age,
2005 Mar 29
1
Mosaicplot with different colors
This dataset below is one sample answer the questioner from our customer. > testbank <- read.table("testbank.txt", header=T) > testbank age married income gender ownhouse class 1 20-30 no high female yes 1st 2 30-40 no high female yes 1st 3 40-50 no low female yes 1st 4 50-60 no high female yes 1st 5 60-70
2006 Jun 29
2
How to use a for loop to generate two sequences
Hi R users, Hope the question is not too simple: How to use a for loop to generate two lists as below: testlist <- list(test1, test2, ..., test1000) stringlist <- list("test1","test2",...,"test1000") Thanks Xiaohua
2006 Feb 15
1
Multiple comparison for circular data
Hi All, Does anyone know how to compare the means of several circular-data samplings? Any related websites, references and softwares? Thanks Xiaohua -- Xiaohua Dai, Dr. [[alternative HTML version deleted]]
2006 May 11
1
package update problem
Hi all, >From late April, everytime when I update my packages, the package "gap" is always on the list of "packages to be updated". I try to download and install the gap zip file from CRAN. However, the same problem still remains. No such problem for other packages. > Sys.info() sysname release
2006 Jun 14
1
set.seed
Hi R users, Sorry for a simple question: I found different people use different i in set.seed(i), are there any rules to choose an i or one can choose as he likes? Thanks Xiaohua
2010 Jul 11
1
Durban Watson statistics
I would like to do the Durban-Watson test on a time series of log returns. 2 questions: 1) If I am just trying to find out if there is serial correlation, what do I do for the residuals? there is no model, so do I just use the log returns (time series) itself? 2) what is the code in R to accomplish this? Regards [[alternative HTML version deleted]]
2005 Jun 30
5
答复: fail in adding library in new version.
Dear Gabor, Thank your for helping me so much! I have loaded R the newest version 2.1.1. Then I setup it in the path of D:\program files\R\ 1. unpack tools.zip into c:\cygwin 2. install Active perl in c:\Perl 3. install the mingw32 in c:\mingwin 4. add "c:\cygwin; c:\mingwin\bin" in "Control Panel -> System -> Advanced -> Environment Variables -> Path ->