[R] arrow on contour line

2024-01-10 Thread Deepankar Basu
Hello, I am drawing contour lines for a function of 2 variables at one level of the value of the function and want to include a small arrow in any direction of increase of the function. Is there some way to do that? Below is an example that creates the contour lines. How do I add one small arrow

Re: [R] variable name question

2011-10-09 Thread Deepankar Basu
Thanks for both comments. Indeed the sep = "" is needed. On Sun, Oct 9, 2011 at 9:43 PM, Rolf Turner wrote: > On 10/10/11 04:53, R. Michael Weylandt wrote: > > > > Try this: >> >> for (i in 1990:2009) { >> varName = paste("pci", i, collapse = "") >> assign(varName, log(get(varName)) >>

[R] variable name question

2011-10-09 Thread deepankar
in R? Thanks a lot in advance. Deepankar __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] variable name question

2011-10-09 Thread Deepankar Basu
in R? Thanks a lot in advance. Deepankar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

[R] data management question

2008-05-08 Thread Deepankar Basu
NA But this gives me an NA value for the unit C, which I thought I had already left out. How do I ensure that the computation (in the last step) is limited to only the units I have selected in the first step? Deepankar __ R-help@r-project.org mailing

Re: [R] speeding up likelihood computation

2007-12-03 Thread Deepankar Basu
rework this part of the code will, I think, improve overall efficiency. Thanks in advance for your time. Deepankar On Sun, 2007-12-02 at 20:54 -0500, jim holtman wrote: > One thing that I would suggest that you do is to use Rprof on a subset > of the data that runs for 10-15 minutes and s

Re: [R] speeding up likelihood computation

2007-12-03 Thread Deepankar Basu
0 as.data.frame 0.02 0.0 0.00 0.0 $sampling.time [1] 565.42 > Deepankar On Sun, 2007-12-02 at 20:54 -0500, jim holtman wrote: > One thing that I would suggest that you do is to use Rprof on a subset > of the data that runs for 10-15 minutes and see where so

[R] speeding up likelihood computation

2007-12-02 Thread DEEPANKAR BASU
. Thanks. Deepankar - begin code --- LLK1 <- function(paramets, data.frame, ...) { # DEFINING THE LOGLIKELIHOOD FUNCTION # paramets IS A 1x27 VECTOR OF PARAMETERS OVER WHICH THE FUNCTION WILL BE MAXIMISED # data.frame IS A DATA FRAME. THE DATA FRAME CONTA

Re: [R] C++ and R interface

2007-11-06 Thread Deepankar Basu
Thanks for the help. On Tue, 2007-11-06 at 14:48 -0200, Alberto Monteiro wrote: > Deepankar Basu wrote: > > > > I am trying to do an ML estimation in R. My likelihood function has > > several nested loops and so it takes a lot of time (days when I use the > > genetic

[R] C++ and R interface

2007-11-06 Thread Deepankar Basu
++ and calling it from within R when using *optim()*. I found that one can call C functions (once they have been compiled) from within R with > dyn.load("file.so") and > .C("function", ...) Can the same be done for C++ code? Deepankar _

Re: [R] finding birth position

2007-10-26 Thread Deepankar Basu
Thanks a lot for all the comments and suggestions. It has helped me solve the problem. I find the "wide" to "long" transformation of the data especially helpful. I used this in STATA but was not aware that I could do the same in R. Deepankar On Fri, 2007-10-26 at 08:44

[R] finding birth position

2007-10-25 Thread Deepankar Basu
1 NA NA Thanks in advance. Deepankar __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reprodu

[R] how to loop over a group of variables?

2007-10-24 Thread DEEPANKAR BASU
' for computation } How can this be done in R? Deepankar __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, mi