[R] set.seed

2006-06-14 Thread Xiaohua Dai
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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/lis

Re: [R] Help with circular statistics

2006-06-28 Thread Xiaohua Dai
Hi, rvm is used to generate pseudo-random numbers from a von Mises distribution Usage: rvm(n, mean, k) Maybe this is the code you want: require(CircStats) require(circular) data <- circular(c(0.41, 5.02, 2.41, 1.57, 4.03, 6.14, 5.46, 0.79, 1.55, 1.18, 5.54, 4.21, 4.47, 0.28, 1.70, 5.31, 0.68

[R] How to use a for loop to generate two sequences

2006-06-29 Thread Xiaohua Dai
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 __ R-help@stat.math.ethz.ch mailing

Re: [R] How to use a for loop to generate two sequences

2006-06-29 Thread Xiaohua Dai
y the list will have 'test1', 'test2', ... as the > component names: > > L <- sapply(paste("test", 1:1000, sep = ""), get, simplify = FALSE) > > and then > > names(L) > > gives the vector of names. > > > Also note that >

Re: [R] Were to find appropriate functions for a given task in R

2006-04-26 Thread Xiaohua Dai
Hi Albert, Maybe you can summarize what you find during your teaching and put them on one website. Everyone gives a piece of firewood, then we can build up a strong fire. Thanks Xiaohua On 4/26/06, Albert Sorribas <[EMAIL PROTECTED]> wrote: > > Thanks for the indications. All these suggestio

Re: [R] copying previously installed libraries to R 2.3.0

2006-04-28 Thread Xiaohua Dai
copydir.bat wont work for libraries such as clim.pact, haplo.stats, hier.part, pls.pcr, R.matlab, R.oo. It will truncate new directories as clim, haplo, hier, pls, R. On 4/26/06, Thomas Harte <[EMAIL PROTECTED]> wrote: > > hi all, > > is there a new mechanism in R 2.3.0 for copying libraries from,

Re: [R] how to choose some points randomly?

2006-05-01 Thread Xiaohua Dai
donot know how to choose some random points > from 1-5000. > Thanks! > > > On 5/1/06, Xiaohua Dai <[EMAIL PROTECTED]> wrote: > > > > If I donot misundertand your question, you can lable all your trees ( > > e.g. 1-5000) and then randomly choose some numbers fro

Re: [R] Repeat dataframe

2006-05-01 Thread Xiaohua Dai
Maybe the function "merge" is what you need. Xiaohua On 5/1/06, Kenneth Cabrera <[EMAIL PROTECTED]> wrote: > > Hi R list: > > How can I "repeat" a data frame n times (with n>1000), > and obtain a new data frame where all the n data frames > are binded by rows? > > Thank you for your help > > Kenne

Re: [R] Repeat dataframe

2006-05-01 Thread Xiaohua Dai
Sorry, I give a wrong answer. X On 5/1/06, Xiaohua Dai <[EMAIL PROTECTED]> wrote: > > Maybe the function "merge" is what you need. Xiaohua > > > On 5/1/06, Kenneth Cabrera <[EMAIL PROTECTED]> wrote: > > > > Hi R list: > > > > How can I

Re: [R] transposing a big data file

2006-05-10 Thread Xiaohua Dai
I think that's a 5 X 5 matrix. However, it is very difficult to read words in Caps. On 5/10/06, Uwe Ligges <[EMAIL PROTECTED]> wrote: > yohannes alazar wrote: > > > I HAVE A VERY BIG DATA OF 67 COLMS AND 25000 ROWS > > AND WOULD LIKE TO TRANSPOSE IT THE R HELP WAS NOT ENOUGH INFORMATION > > BECOUS

[R] package update problem

2006-05-11 Thread Xiaohua Dai
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()

[R] outline polygons of point clumps

2006-05-12 Thread Xiaohua Dai
Dear all, How to generate one outline polygon for each point clump? Are there any present functions in ArcView, ArcGIS, R or some freewares? I just had a quick look at the package adehabitat and did not find the function. To my knowledge, I could do it as follows: 1) make a grid map of my study a

Re: [R] [ESRI-L] outline polygons of point clumps

2006-05-12 Thread Xiaohua Dai
ri.com/ > > For example: > http://arcscripts.esri.com/details.asp?dbid=14535 > or > http://arcscripts.esri.com/details.asp?dbid=12084 > > Bob > > > -Original Message- > From: ESRI-L [mailto:[EMAIL PROTECTED] On Behalf Of Xiaohua Dai > Sent: Friday, May 12, 2006 2:33 AM &g

Re: [R] build R with Visual Studio

2006-06-06 Thread Xiaohua Dai
Hi, R.ll is in my C:\Program Files\R\R-2.3.0\bin. My OS is Win XP. On 6/6/06, Jennifer Lai <[EMAIL PROTECTED]> wrote: > Hi, >Has anyone had success in building R source with Visual Studio? I > followed the instructions in README.packages, but failed on the very > first step, where it's look