Displaying 20 results from an estimated 2000 matches similar to: "an extension to 'array'"
2003 Jul 09
2
Packages, generics, S3 and S4
My question has two parts.
The first is with regard to the frame or environment in which generic
functions are defined in packages. It seems as though they are defined
(i.e. exist as objects) in frame 1, even when defined in a package.
The following is a short example:
setClass("track",representation(x="numeric",y="numeric"))
plotTrack <- function(x,y,...)
2001 Nov 28
1
Assignment to a list in a function
Assignment to a list in a function does not behave as I would expect.
The following function illustrates the point
#----------------------------------------
temp _ function()
{
nf _ 2
ns _ 5
z _ vector("list",ns)
x _ matrix(NA,nrow=ns,ncol=nf)
for(j in 1:ns)
{
for(i in 1:nf)
{
x[,i] _ i+j*100
}
z[[j]] _ x
print(z[[j]])
}
z
}
2004 Feb 26
2
package 'stats' needs import directive for 1.9.0?
I maintain the Irregular Time Series (its) package on CRAN. I am currently
testing a release. Under 1.8.1 I am able to define a S4 generic 'start' as
follows:
if(!isGeneric("start")) {setGeneric("start", useAsDefault=start)}
Under 1.9.0, Rcmd check generates an error, as 'start' is not recognised.
If I use the NAMESPACE directive IMPORT, all is well:
2002 May 28
1
constrained regression
I want to do a linear regression where the coefficients
obey two linear constraints, and also are all non-negative.
What is the best way to do this? Computational speed is a
consideration as I must do it many times.
When this question was asked previously on the list, quadprog
was suggested - is this the best solution?
(I may have missed something obvious in the documentation,
but I have
2003 Jun 06
3
irregular time-series
I make quite a lot of use of irregular time-series, and had already spent a
bit of time writing an 'its' class when the 'irts' class was released via
the package 'tseries'.
I have experimented with the 'irts' class, and have some practical issues
with its use. In some applications of irregular time-series (in my case
these are financial and econometric) there are
2004 Oct 25
1
copyright issues when package maintainer changes
I will be taking over as maintainer of the its package from Giles Heywood.
The code was originally written while he was working at Commerzbank. I have
added the header below to the top of the R source file to indicate the
changes in the copyrights for the code. The package was originally released
under GPL2. I have no experience with copyright issues, and would
appreciate it if someone who does
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series).
It
implements irregular time-series as an S4 class, extending the matrix class,
and records the time-stamp of each row in the matrix using POSIX. Print,
plot,
extraction, append, and related functionality are available.
Feedback and suggestions are welcome.
Giles Heywood
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series).
It
implements irregular time-series as an S4 class, extending the matrix class,
and records the time-stamp of each row in the matrix using POSIX. Print,
plot,
extraction, append, and related functionality are available.
Feedback and suggestions are welcome.
Giles Heywood
2002 Oct 17
0
RE: R2HTML package for R 1.6
Does this help on our backtest reporting?
Regards,
Gordon Morrison
Global Head of Quantitative Research
> * + 44 20 7653 7642
> Mob: + 44 7867 801951
> fax: + 44 20 7645 7442
> * mailto:gordon.morrison at commerzbankib.com
> web: http://www.cbksec.com/research/quant
> * Commerzbank Securities
> 60 Gracechurch Street
> London EC3V 0HR, U.K.
>
2011 Feb 15
1
S4 problems
Hello everybody
[R-2.12.1]
I am having difficulty dealing with Oarray objects.
I have a generic function, call it foo(), and I wish
to define a method for Oarray objects.
I do not have or want a method for regular arrays [actually,
I want to coerce to an Oarray, and give a warning].
But setMethod() does not behave as desired, giving
an error message when I try to define a method for
Oarray
2003 Nov 04
2
Object saved from 1.7.1, loaded in 1.8.0
I am having difficulty using in 1.8.0 an object created under 1.7.1. The
following is a 'minimal example' of the issue. First the part in 1.7.1:
> require("methods")
[1] TRUE
> setClass("foo",representation("vector",label="character"))
[1] "foo"
> x <- new("foo",1:2,label=LETTERS[1:2])
>
2003 Jul 11
2
unz()
I am having problems getting the unz() function to work as a connection to
start reading a file...
z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r")
readLines(z,2)
yields the following problems:
> z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r")
Error in unz("c:/temp/stoxx.zip",
2009 Jan 18
1
Installations fail
Hi!
I've tried to install several games in Wine; however, many of them can't even be installed. They should work pretty well according to the AppDB, so it has to be a problem with my computer...
The problem comes up as soon as the program starts copying the files. The first few files are copied without any problems, however.
OS: Ubuntu 8.10
Wine version: 1.1.13 (I upgraded after it
2006 May 29
1
Myst IV Installer breakage
Hello!
The game "Myst IV - Revelation" by Cyan Worlds / Ubisoft installed fine
in earlier versions of wine (although it was and is not playable).
Recently I tried again, and the setup crashed just before the copying of
files would start.
I was able to isolate the patch that caused the regression (with git
bisect). Here is the commit message:
>commit
2010 Feb 15
7
Dragon NS 9 Standard Installation errors
Hi all, wondering if you can help me. Here is the problem
I was running kubuntu jaunty a while back and finally managed to install DNS Standard 9 with wine. I don't think I did anything too special , just ran the installation disk, It worked Okay, it has to be said.
It survived updates of wine, right up to 1.1.38, and an upgrade to kubuntu Karmic. However, I recently had a problem which
2006 Sep 18
0
Question on apply() with more information...
>From: =?ISO646-US?Q?Gunther_H=3Fning?= <gunther.hoening at ukmainz.de>
>Date: 2006/09/18 Mon AM 06:26:25 CDT
>To: 'Petr Pikal' <petr.pikal at precheza.cz>
>Cc: r-help at stat.math.ethz.ch
>Subject: Re: [R] Question on apply() with more information...
I think you want something like below but it
probably needs some fixing up because i don't recall
the syntax
2009 Apr 02
1
Re: Links 2003 & Grand Prix 4
WINE 1.1.18 has a regression from WINE 1.1.14. Once again, GP4 no longer installs from CD... the console outputs the following ole error repeatedly:
err:ole:xCall Failed to serialize param, hres 80040155
err:ole:deserialize_param Failed to read integer 4 byte
err:ole:TMStubImpl_Invoke Failed to deserialize param State, hres 80004005
err:rpc:I_RpcReceive we got fault packet with status 0x80004005
2004 Mar 30
1
seq.POSIXt() bug not fixed in R 1.8.1 (PR#4558)
I am still experiencing problems with seq.POSIXt() missing off the last day
of the series:
> seq(as.POSIXct("2004-03-25"),as.POSIXct("2004-03-31"),by="DSTdays")
[1] "2004-03-25 GMT Standard Time" "2004-03-26 GMT Standard Time"
"2004-03-27 GMT Standard Time"
[4] "2004-03-28 GMT Standard Time" "2004-03-29 GMT Daylight
2006 Jan 11
1
InstallShield Setup.exe hang
Hi
InstallShield(setup.exe) seems to be hang up just after extracting
files with fresh maked & installed wine 0.9.5 from source on fedora
core 4. Could you tell me work around or hint ?
I have to put the ole32.dll from MS WinXP original
into drive_c/windows/system32 ?
InstallShield output are as follows. I think Setup.exe extract
files(OK) and folk co-process(iKernel.exe;OK), then try to
2004 Mar 03
1
match.call(), S4
I get different results from match.call(), according to whether a function
is dispatched via S3 or S4. Specifically, when I use S4 dispatch in the
following example, the match.call() result is of length 1 less than I
expect. I need to add an extra comma to get the same results as in the S3
method.
--------example
setClass("foo",representation("matrix"))