Re: [R] plot.window arguments being ignored?

2009-11-07 Thread Viknesh
Hi Dan, I think it's because lines() is meant for you to add lines to a plot. Hence it does not make R redraw the plot. If you wish to set the limits of the y-axis (or x-axis for that matter), you should do it in the plot function call, and then call lines() without the "ylim=ry" part. So your fi

Re: [R] How to see any R package code?

2009-11-07 Thread Viknesh
You have a couple of options: 1) typing the name of the function will list the source within your R console. For example: > ls will list the source code for the ls() function. So once you load your package, you can simply enter the name of the function whose source you wish to see and you will see

Re: [R] kendall.global

2009-10-20 Thread Viknesh
Hi, I seem to be able to run it without any problems: > kendall.global(mite.small) $Concordance_analysis Group.1 W 0.44160305 F 2.37252221 Prob.F 0.04403791 Chi2 15.89770992 Prob.perm 0.0450 attr(,"class") [1] "kendall.global" It seems to be .Rando

Re: [R] plot dates in x-axis

2009-10-13 Thread Viknesh
Hi, here is a code snippet that will help you achieve what you want. With it, you can format the Date object to display any aspect of the Date on the x-axis, like dd-mm, dd-, or day, etc. See the help on strftime() for the formatting key. d1 <- "10/10/2009" d2 <- "10/11/2009" d3 <- "10/12/

Re: [R] finding the minimum value

2009-09-07 Thread Viknesh
Sorry there was a typo in the code. This should work: > tmp <- rep(0, times=1000) > for (i in 1:1000) tmp[i] <- get(paste('B', i, sep=''")) > mean(tmp) Viknesh wrote: > > Hi, > > If I correctly understand what you want to do, then this migh

Re: [R] finding the minimum value

2009-09-07 Thread Viknesh
Hi, If I correctly understand what you want to do, then this might work: > tmp <- rep(0, times=1000) > for (i in 1:1000) tmp[i] <- get(paste('B', i, sep='')) > mean(tmp) HTH, Vik maram salem wrote: > > Hi all, > I'm using a certainĀ  procedure to calculate the value of some > variable(Bayes r