similar to: Subsetting using dimnames on S4 array-based class

Displaying 20 results from an estimated 6000 matches similar to: "Subsetting using dimnames on S4 array-based class"

2005 Feb 17
1
Subsetting using dimnames on S4 array-based class
Hello, I did send this message to r-help and got no reply, no I am resubmitting here in case this was a bit too specific for the other list. Many thanks, Iago From: Iago Mosqueira <imosqueira@suk.azti.es> To: r-help@stat.math.ethz.ch Subject: Subsetting using dimnames on S4 array-based class
2004 Jun 16
2
Loading 'akward' data file
Generally you'd use file() to open the file, then use readLines(), say inside a while() loop to read one `chunk' at a time. However, your example looks a bit strange. The possibility of empty line makes it a bit more complicated, by that last couple of lines seems to suggest that you could have a line of data follow by another line of data without variable label. If that's true, I
2005 Jun 14
1
operators as S4 methods
Dear all, I need to re-define some mathematical operators (+, *, /, etc) for an S4 class based on array. All references I have found (S Programming, Green Book) show how to define S3 methods for this (like in page 89 of S Programming for "-.polynomial"). What is the preferred S4 way for doing this? I hope I haven't missed some obvious piece of documentation. Many thanks, Iago
2006 Nov 20
1
Smallest R executable
Hello, I am trying to find out how can I generate the smallest R executable. R is to be run in a grid application, in batch mode, so I need a small exceutable, possibly getting rid of any interactive component. Should I look at the embedded version? Any other pointers? Many thanks, Iago Mosqueira -- Dr. Iago Mosqueira Marine Research Division AZTI Tecnalia Txatxarramendi Ugartea, z/g 48395
2004 Nov 29
1
\link{} to help pages in Debian
Hello, In my Debian 3.0 systems, packages are installed in two different places, namely /usr/lib/R/library and /usr/local/lib/R/site-library, depending on whether they come from debian packages or CRAN ones. Help pages for my own packages, installed in the second location, cannot find help pages from, for example, the base package via \link{}. I also tried specifying the package with
2003 Aug 21
2
mcmc
Hello, I am about to move all of my modelling work into R, and I have been investigating the present state of MCMC and Bayesian methods in R. Following a thread on the mailing list in 2000, I have looked at mcmcpack and Hydra. Three years down the line, is there anything new in this area? I have used both MCSim and WinBUGS in the past. The first one seems promising, but is too focused towards
2008 May 20
1
S4 generic for lowess
Hi, A lowess method is defined in our package for one of our S4 classes. To explicitely define the generic this is being used if (!isGeneric("lowess")) setGeneric("lowess", useAsDefault = lowess) This works fine for many other methods inherited from various R packages. In this case a warning is issued in R CMD check: * checking R code for possible problems ... NOTE
2007 Apr 19
2
setClass inside a function
Hello, I would like to create a function that gets passed a class name and then calls setClass, and a few other functions, inside. I have done this in the past with setmethod, creating accessors for all slots in a set of S4 classes. But setClass is choking when my function is called isnide a package, telling about an error in exists(cname, where). I assume this to be a problem with the
2011 Jun 01
1
Overloading S4 methods
Dear all, I am experiencing some problems with S4 method overloading. I have defined a generic for graphics:plot, using setGeneric("plot", useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method for signature c('myS4class', 'missing'). This works
2006 Oct 04
1
Default argument value for "["
Dear all, After installing R 2.4.0, a definition of "[" for an S4 class has stopped working as the default for drop in the generic, TRUE, appears to override the default in the method The method is defined for demonstration purposes as setMethod("[", signature(x="FLQuant"), function(x, i="missing", j="missing", k="missing",
2008 May 28
1
Cross-compilers for 2.7.0
Hello, Am I right in thinking the cross-compilations tools, kindly maintained by Prof Ripley, are still waiting to be updated for 2.7.0? Thanks, Iago -- Iago Mosqueira Cefas Systems Modelling Pakefield Rd. Lowestoft NR33 0HT U.K. +44 (0)1502 558003
2009 Feb 04
1
lattice key inside panel
Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than panel I am using draw.key(list(text=list(lab='catch'), lines=list(lwd=c(2)), text=list(lab='landings'), rectangles=list(col=rgb(0.1, 0.1, 0, 0.1)), x=0,
2004 Oct 19
1
Cross compiling in R-2.0.0
Hello, When compiling R-2.0.0 for cross-compiling, I get the following error when calling 'make R' ---------- Making package base ------------ adding build stamp to DESCRIPTION /bin/sh: line 1: --vanilla: command not found make[5]: *** [frontmatter] Erro 127 make[4]: *** [all] Erro 2 make[3]: *** [pkg-base] Erro 2 make[2]: *** [rpackage] Erro 2 make[1]: *** [all] Erro 2 make[1]:
2006 Mar 29
1
Bundle internal dependencies
Dear all, When creating a bundle with some internal dependencies (package B in bundle depends on package A), would having the same version installed suffice? Can I ignore the dependencie in package B's description? The test of package B fails when calling data() for an object in pacakge A, so I am not sure right now whether the whole dependencie is not being met or simple relates to data().
2007 Dec 20
2
SHLIB steps on a Makefile
Hi, I need to create a Makefile.win for a given package so as to fiddle slightly with the compilation process. My Makefile works fine in Linux but I am having trouble creating Makefile.win for MinGW. I first looked at the commands that Rcmd SHLIB appeared to be running and copied those onto the Makefile. But one step seems to be missing, the creation of the _res.rc file needed by windres
2005 Nov 22
0
install.packages in R 2.2.0
Dear all, I am having trouble with install.packages() when specifying a non-CRAN repository. The command below works in R 2.1.0 and R 2.1.1 compiled from source in Linux, bringing up the Tcl/Tk interface for selection, but in 2.2.0 I get > install.packages(repos='http://flr-project.org/R') Error in install.packages(repos = "http://flr-project.org/R") : argument
2004 Jun 21
2
Cross build Makefile
Hello, I am trying to use Yan and Rossini's Makefile for cross building Windows versions of R packages in Linux with R 1.9.0. When compiling R with the mingw tools I get an error about expm1 being undeclared when first found at src/main/arithmetic.c:1019 If I fiddle a bit with it later on I also get errors about log1p bein undeclared. Any idea what should I look for? I am using R 1.9.0 in
2004 Jun 21
2
Cross build Makefile
Hello, I am trying to use Yan and Rossini's Makefile for cross building Windows versions of R packages in Linux with R 1.9.0. When compiling R with the mingw tools I get an error about expm1 being undeclared when first found at src/main/arithmetic.c:1019 If I fiddle a bit with it later on I also get errors about log1p bein undeclared. Any idea what should I look for? I am using R 1.9.0 in
2002 Feb 08
2
glm with four variables
Hi, Sorry if this is a very basic question, but when I run this glm(formula = loge ~ lat + ne + dep, family = gaussian) summary shows the same formula but results only for the first two variables. What am I doing wrong? iago -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2008 Feb 05
1
Need for garbage collection after creating object
Hello, After experiencing some difficulties with large arrays, I was surprised to see the apparent need for class to gc() after creating fairly large arrays. For example, calling a<-array(2, dim=c(10,10,10,10,10,100)) makes the memory usage of a fresh session of R jump from 13.8 Mb to 166.4 Mb. A call to gc() brought it down to 90.8 Mb, > gc() used (Mb) gc trigger (Mb)