Displaying 20 results from an estimated 1000 matches similar to: "Default argument value for "[""
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 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
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
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
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
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
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
2005 Dec 20
3
Overlaying lattice plots
Hillary, Richard M wrote:
> Morning chaps, I have a little question for your capable minds... Say
> I have an observed and predicted set of quants (in my case, length
> frequencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If
2005 Dec 20
3
Overlaying lattice plots
Hillary, Richard M wrote:
> Morning chaps, I have a little question for your capable minds... Say
> I have an observed and predicted set of quants (in my case, length
> frequencies by year and age/length), is there a way to use lattice
> plots to plot the observed and predicted data together, panel by panel?
> Obrigado/gracias (thankyou in Galego is?...)
> Rich
Hi Richard,
If
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
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
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 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().
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,
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
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]:
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the
method is
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the
method is
2003 Sep 05
1
Problem with S4 slots in C code (PR#4073)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C3738F.63DE3390
Content-Type: text/plain;
charset="iso-8859-1"
#I want to be able to create a new S4 class and read data into it using C
code
# Here is a very simple S4 object inheriting from "array", but with 5
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