search for: jinr

Displaying 20 results from an estimated 39 matches for "jinr".

Did you mean: jin
2004 Jan 21
2
derivative of atan(x) and similar functions
Dear R experts. 'D()' function recognizes some of the analitical functions, such as sin, cos, etc. But I'd like to take analytical derivatives from asin, atan etc. functions. Are there any R packages providing that features? Thanks. -- Timur.
2003 Aug 01
2
'format' problem
Dear R experts, format(12345678, digits = 2) gives [1] "1.2e+07" while format(1234567, digits = 2) gives [1] "1234567" but I'd like the last number to be represented as "1.2e+06" string too. Where am I wrong? Thanks, Timur.
2003 Jan 17
1
Arguments of R- and C-side of internal functions
Dear R experts, I looked at the body of, say, `optim' function and found the call to the `.Internal', C optim function. It looks like this: .Internal(optim(par, fn1, gr1, method, con, lower, upper)) On the other hand, the C prototype of optim is: SEXP do_optim(SEXP call, SEXP op, SEXP args, SEXP rho); So, I guess that all the list of parameters passing in R are assigned to
2003 Nov 12
1
problem with x11 and PS devices on different machines
Dear R help, I run R at home and the work, I have Debian Linux on both machines and the same 'r-base-core' deb packages installed. So I tried to run the same R script, which plots graph in x11 device and then dump it to eps file (x11 and eps you'll find attached). On the home machine there are some stranges in x11 plot as well as in eps file. On the work machine all the ok, despite
2003 Feb 10
1
Zero rows/cols in the hessian matrix
Dear R experts! I try to minimize a function with external C fitting function. I get the hessian matrix. Here it is: [,1] [,2] [,3] [,4] [1,] 1.8816631 0 0.8859803 0 [2,] 0.0000000 0 0.0000000 0 [3,] 0.8859803 0 0.4859983 0 [4,] 0.0000000 0 0.0000000 0 Second and fourth rows/columns have zero values only. That's OK, because that ones related
2005 Aug 16
2
Registration with Asterisk server
Dear Asterisk community, sorry if I'm so stupid, but I couldn't register myself with Asterisk. I created the [sip-incoming] context in the sip.conf: [sip-incoming] type = peer username = elzhov port = 5062 ; my kphone listens port 5062 host = 127.0.0.1 Then run Asterisk, and checked peers that are known for Asterisk: *CLI> sip show peers Name/username
2002 Dec 06
2
Fitting 2D vs. 2D data with nls()
Dear R-experts! I have y(x) data, dim(y) == dim(x) == c(2000, 2) I'd like to fit them with nls: fit.result <- nls ( y ~ f(x, p1, p2, p3), start = list(p1 = ... , p2 = .. , p3 = ..) ) Actually I want to fit y[,1] ~ x[,1] and y[,2] ~ x[,2] *simulaneously*, with the same parameters set {p1, p2, p3}. I tried to feed R tha above formula, R errors with:
2004 Mar 15
8
Simple numeric "as.is" question
I am reading a list of numbers from my clipboard, and have been successful, except I can't make a histogram as R doesn't recognize my variable as numeric. I know I need to use "as.is", but the specifics escape me. I have used x<-read.table("clipboard", header=F) to import from a txt file. How do make this numeric? Thanks, J.
2003 Oct 30
2
'nls' and its arguments
Dear R experts! I'd to fit data by 'nls' with me-supplied function 'fcn'. 1) I'd like 'fcn' to accept arbitrary arguments, i.e. I defined it as f(...) {<body>}. (Ok, that's not actually impotant). 2) Second, I would NOT like to supply every parameter in the formula. To illustrate this, let's look at the last example of 'nls' help
2002 Sep 21
1
Bug list summary (automatic post)
...02 22:35:02 +0200 (MET DST) * PR# 1899 * Subject: interaction.plot() legend too narrow when mfcol > 2 From: Martin Maechler <maechler@stat.math.ethz.ch> Date: Tue, 13 Aug 2002 09:36:15 +0200 * PR# 1933 * Subject: dev2eps() prints ticks with wrong length! From: Timur Elzhov <Timur.Elzhov@jinr.ru> Date: Fri, 23 Aug 2002 17:22:15 +0400 --dev.copy problem * PR# 1972 * Subject: lattice install From: robert.king@newcastle.edu.au Date: Mon, 2 Sep 2002 04:55:41 +0200 (MET DST) --Perhaps lattice should require(grid) and print a clearer message? Directory: In-Out * PR# 1688 * Subject: Mayb...
1998 Oct 15
1
Problem to map home dir
..., you may # need to patch your C library. # FLAGSM = -DDNIX -I/usr/include/bsd # LIBSM = -ln # This is for Cray, Unicos 8.0 # contributed by velo@sesun3.epfl.ch (Martin Ouwehand) # FLAGSM = -DCRAY -U__STDC__ -DQUOTAS # LIBSM = # This is for Convex # contributed by Victor Balashov <balashov@cv.jinr.dubna.su> # and Ulrich Hahn <ulrich.hahn@zdv.uni-tuebingen.de> # FLAGSM= -DCONVEX -DSHADOW_PWD # LIBSM= # This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series # contributed by jeffrey@itm.org # FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP # LIBSM = -lsocket -lnsl # This is for QNX 4.22...
2002 Aug 21
1
Bug list summary (automatic post)
================================================= This is an automated summary of the status of the R-bugs repository. Note that this may be neither complete nor perfectly correct at any given instance: Not all bugs are reported, and some reported bugs may have been fixed, but the repository not yet updated. Some bug fixes are difficult to verify because they pertain to specific hardware or
2004 Oct 08
0
R interface for MINPACK least squares optimization library
Hello guys. I've built and uploaded to CRAN an R interface to MINPACK Fortran library, which solves non-linear least squares problem by modification of the Levenberg-Marquardt algorithm. The package includes one R function, which passes all the necessary control parameters to the appropriate Fortran functions. The package location is
2002 Jun 19
1
simple plot with magnified cex.axis & cex.label
Hello! I've tried to make subj. Here is code: x <- 1:5 y <- 1:5 par ( cex.lab = 3.6, cex.axis = 3.6 ) plot ( x, y, ylab = "Any title" ) I've got ugly picture, where 1) x-axis labels & x-axis itself overlapped, 2) y-axis title does not not fit within bounding box. The _same_ effect in "postscript" device. Is this a bug? Could I
2002 Jul 01
1
Fitting a batch of histograms
Hello. I've several histograms accumulated all together in one time. Can I fit them simultaneously, too, using the same set of parameters for all histograms? -- Thank you very much, Timur. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2002 Aug 01
0
dev.copy2eps() problem
Hello experts! I've tried to make single plot, but with changed ticks length, and then copy them to file by dev.copy2eps(). Here is the code: x11 ( , 5, 5) par (tcl = +5) plot (0) # wow! I see the ugly plot with great # ticks on the graph viewport! cool :) dev.copy2eps (file = "out.eps") Well, I had a look at "out.ps" and ..
2002 Dec 11
0
nlm() vs. nls()
Dear R-experts! I've been using nls() for a while for fitting my data, approx 10,000 points long. Now, I have to use low-level minimizing functions to get more control on fitting process, so I tried nlm(). And, the fitting process became *much* more slower! The question is: why? why nls() works faster? Thank you very much! Timur.
2002 Dec 20
1
GetRNGstate() crashes with 'Segmentation fault'
Dear R-masters, I tried to compile this simpel C-code: //----------------- #include<R.h> int main() { GetRNGstate(); return 0; } //----------------- Compiling: ~> gcc -o a a.c -I/usr/lib/R/include/ -L/usr/lib/R/bin/ -lR ~> ldd a libR.so => /usr/lib/libR.so (0x40018000) libc.so.6 => /lib/libc.so.6 (0x401a8000) libblas.so.2 =>
2003 Jan 13
1
Evaluating expressions from within C code
Dear R experts! I want to evaluate expressions from within C code. For instance, I want this code: /* ============ -- C code -- ============== */ #include <R.h> #include <Rinternals.h> SEXP foo(SEXP expr, SEXP rho) { SEXP x; PROTECT(x = allocVector(REALSXP, 1)); REAL(x)[0] = 1; UNPROTECT(1); return
2003 Jan 16
1
Calling R function from within C code
Dear R experts, I'd like to call R function from within C code. I looked through the 'R exts' manual, found examples with lang2(R_fcall, list), and tried it, but it seemed to create the call, which can accept only a single argument of 'list' type, when I need to create the call of R functions with arbitrary numbers of arguments. How can I do it? Thanks a lot. -- WBR,