similar to: is.numeric()

Displaying 20 results from an estimated 20000 matches similar to: "is.numeric()"

2002 Feb 13
3
pnorm, relative accuracy in the tails
Dear R people The function below should be decreasing, convex, and tend to zero when x tends to infinity. curve((1-pnorm(x))/dnorm(x),from=0, to=9) >From the plot we see that for x between 8.0 and 8.3 the function is fluctuating. As far as I understand, this is due to the function pnorm() not being sufficiently accurate in the tails. I am using pnorm() in a way that has probably not been
2002 May 06
3
function sort.list()
Derar R-people I have troubles understanding what the function sort.list() is doing. On the homepage it says that it returns a permutation which rearranges a vector into ascending or descending order (like order() but on a vector instead of a sequence). > sort.list(c(0, 2, 10, 11, 4)) [1] 1 2 5 3 4 which does not make sense to me. In fact I am getting the same (non-sensical) result using
2001 Nov 09
1
One package calling C-code from another package.
Dear R people We have two packages, where the first package (geoR) is required by the second (geoRglmm). Both packages have functions calling C-code via .C(). We would like to call C-functions included in the first package from within the C-code in the second package. Is this possible? An appropriate header file was included in the src directory of the second package but this alone did not
2002 Jul 30
1
Optim() returns wrong maximum
Dear R-devel During the last half a year I have several times encountered the following problem with optim() when using method= "L-BFGS-B". The function return a value which is clearly not the maximum (seen from printing the value each time the function is called). Some output is shown below. A few things I have observed (as I remember it): a. The problem seems to occur when the
2002 Feb 23
4
bug in options() - help page (PR#1323)
Dear R-developers There is a discrepancy between the variables found by typing names(options()) and the variables described on the help page for the function ``options''. The following variables are in names(options()) but not described on the help page : "error.messages" "repositories" "show.coef.Pvalues" "help.try.all.packages"
2001 Nov 21
2
contour as a generic function?
After "image" and "persp" would it be interesting to als have contour as a generic function? Cheers Paulo Justiniano Ribeiro Jr Dept Maths & Stats - Fylde College Lancaster University Lancaster LA1 4YF - U.K. e-mail: Paulo.Ribeiro@est.ufpr.br http://www.maths.lancs.ac.uk/~ribeiro -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2004 Mar 05
4
Command Line Expressions
Hi, Is it possible to run R in command line to evalute R expressions and return results to stdout, something like >R CMD -e "R.version$minor" then you got return >"8.1" Or do a simple calculation >R CMD -e "sin(1.2)" >0.932039 Thanks. -- Pingping Zheng Department of Mathematics and Statistics Fylde College Lancaster University Lancaster LA1 4YF
2005 Mar 18
4
passing arguments to FUN in lapply
Suppose I have a nx2 matrix of data, X, the following code generate density estimation for each column and plot them denlist <- apply(X, 2, density) par(mfrow=c(1,2)) lapply(denlist, plot) Does anyone know how to change the main title of each density plot to "var 1", "var 2" by passing optional argument "main"? I've tried lapply(denlist, plot,
2003 Aug 05
1
levelplot and points
Hi all, I face the following problem. I have two variables x,y. I have also calculated the surface z. When I am drawing the surface with function >levelplot (in library lattice) everything is OK. I have the legend etc ... Then I am trying to plot x,y on the same graph. So I am doing : >points(x,y) But, the points are not in the correct position. They are a little bit shifted to the
2000 Nov 09
0
creating dll file
> Date: Thu, 9 Nov 2000 15:00:20 +0000 (GMT) > From: "Paulo J. Ribeiro Jr" <p.ribeiro at lancaster.ac.uk> > I'm trying to create a dll file for the windows distribution of a package. > > I've tried mingw32 and cygwin with the commands given below and it seems > that there is a problem related with C random() function. > (-mno-cygwin only included
2000 Dec 04
1
interp equivalent
Hi I'm looking to a function in R equivalent to S-PLUS' "interp". Is there any implementation in R? If not, is there any similar interpolation function such that at the data points the interpolated values concides with the data? Thanks in advance P.J. Paulo Justiniano Ribeiro Jr Dept Maths & Stats - Fylde College Lancaster University Lancaster LA1 4YF - U.K.
2003 Nov 24
1
R-1.8.0 package directory permissions?
Hello, I maintain a self-made R package under my own home directory "~/.R/library" on our university computer net (SunOS 5.8 system). After updating R to 1.8.0, I found other people cannot access my package any more. They got this error message: Error in library(tb, lib.loc = "/home/fs.hpc/43/zhengp1/.R/library") : This is not a valid package -- no DESCRIPTION exists I set
2000 Jun 02
1
test for a formulae
I'd like to check within a whether an argument is a formulae of the type ~X or similar. What's the right way to do so? I'm using: is.language(obj) but not sure this is right Thanks in advance P.J. Paulo Justiniano Ribeiro Jr Dept Maths & Stats - Fylde College Lancaster University Lancaster LA1 4YF - U.K. e-mail: paulojus at est.ufpr.br http://www.maths.lancs.ac.uk/~ribeiro
2001 Dec 21
0
Installing Packages (fwd)
This depends whether you want to compile the packages yourself (here you need the extra tools) or just install the pre-compiled versions (here you don't need them). I would guess that most of the Windows users just do the latter and the installation is then straighforward by using the option "Packages" on the top menu. You can donload/install from CRAN or from a local zip file.
2003 Oct 20
1
presentation of spatial-temporal point processes
Hello all, Would anybody tell me how to present spatial-temoral point processes in R, for example, I'd like to plot the spatial points in the sequence of their time domain? Cheers -- Pingping Zheng Department of Mathematics and Statistics Fylde College Lancaster University Lancaster LA1 4YF UK
2001 Jun 10
1
documentation and \sloppy (PR#976)
Hi When preparing documentation using Rd2dvi sometimes we get "overflow" on some lines. The consequence is that in the documentation there are some lines where words are not hyphenated or moved. The final document has some lines with more columns than the rest of the text. This happens when we use \code{} (which probably calls the \tt in latex). I've been checking the documentation
2001 Jun 05
1
error in make install-info (PR#969)
Hi I'm installing R with the standard commands: ./configure make make check make dvi to create DVI versions make pdf to create PDF versions make info to create info files make install make install-dvi make install-info make install-pdf Everything works fine apart from "make
2003 Feb 01
0
AIC.default (PR#2518)
There is a bug in AIC.default and AIC.lm, as illustrated below. (I've only checked this under 1.6.1, and can't easily check if it has already been reported since the site is down.) > lm1 <- lm(y ~ x, list(x=1:10, y=jitter(1:10))) > lm2 <- lm(y ~ x, list(x=1:10, y=jitter(1:10))) > AIC(lm1, lm2) df AIC lm1 3 -18.662493 lm2 3 -7.265906 > AIC(lm1, lm2, k = 2)
2001 Oct 18
0
uniform generator (default)
Recieving digests. > RNGkind(NULL) [1] "Marsaglia-Multicarry" "Kinderman-Ramage" I would appreciate it if anybody has any comments on the following. Please do not comment on the R functions themselves, since they merely mimic a (bivariate simplification of a) C routine called from S. In particular, I would like to know if anything is available with regard to the
2002 Jun 18
5
insert number in vector
Hello R-users, I need to create a vector inserting an 1 after each value of another vector. For example: vec1<-c(2,3,4) I need to create a vector with the values 2,1,3,1,4 Does anyone know how create this vector without loops (vec1 could have 1000 elements) Thank you, Juan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read