I am new to R programming but have dived into a medium sized modelling software
development project.
Having come from a Java OO background I have a couple of questions about S4
objects.
Is there a way to make S4 slots (and methods) private and hence force the use
of accessor methods?
Is t
In R 2.8.0/Windows:
> lag(1)
[1] 1
attr(,"tsp")
[1] 0 0 1
Though this has the 'tsp' attribute, it is of class "integer", and hence not
a "time-series object" as defined by ? ts: "time-series objects... are
vector [sic] or matrices with class of '"ts"' (and additional attributes)".
? lag further
It looks like the 'seq' variable to 'for' can be altered from
within the loop, leading to incorrect answers. E.g., in
the following I'd expect 'sum' to be 1+2=3, but R 2.10.0
(svn 48686) gives 44.5.
> x = c(1,2); sum = 0; for (i in x) { x[i+1] = i + 42.5; sum = sum +
i }; sum
[1] 44.5
or,
Hi list,
This looks similar to the problem reported here
https://stat.ethz.ch/pipermail/r-devel/2006-April/037199.html
by Henrik Bengtsson a long time ago. It is very sporadic and
non-reproducible.
Henrik, do you remember if your code was using reg.finalizer()?
I tend to suspect it but I'm not
Uwe Ligges wrote:
>
>
> asto...@esica.com wrote:
>> Full_Name: Allan Stokes
>> Version: 2.8.1
>> OS: XP
>> Submission from: (NULL) (24.108.0.245)
>>
>>
>> I've just spent a hellish six hours trying to create my own R package
>> with a
>> bare bones "hello world" R function inside. I was able
Uwe Ligges wrote:
asto...@esica.com wrote:
Full_Name: Allan Stokes
Version: 2.8.1
OS: XP
Submission from: (NULL) (24.108.0.245)
I've just spent a hellish six hours trying to create my own R package
with a
bare bones "hello world" R function inside. I was able to create a
package.tar.gz
Martin Maechler wrote:
>> "PS" == Petr Savicky
>> on Sun, 31 May 2009 10:29:41 +0200 writes:
>>
>
> []
>
> PS> I appreciate the current version, which contains static
> PS> const char* dropTrailing0(char *s, char cdec) ...
> PS> mkChar(dropTrail
> "PS" == Petr Savicky
> on Sun, 31 May 2009 10:29:41 +0200 writes:
[]
PS> I appreciate the current version, which contains static
PS> const char* dropTrailing0(char *s, char cdec) ...
PS> mkChar(dropTrailing0((char *)EncodeReal(x, w, d, e,
PS> OutDec), ..
Hi,
The following idea only partially answers your question
I have successfully written a GUI using the tcl/tk package that ships
with standard R. It is then possible (in Windows) to create a shortcut
icon that runs the following command:
C:\R\R-2.8.1\bin\R.exe --vanilla -e library(Sup
> "AB" == Alex Bokov
> on Mon, 01 Jun 2009 00:24:58 -0500 writes:
AB> Hi. This is my first post to this list, I seem to be
AB> graduating to from the r-help list. :-)
well
AB> I'm trying to wrap my R package in a GUI such that when
AB> the user launches the app,
Dear Christian,
your question does not at all belong to R-devel.
Please use R-help instead,
but you should probably first read the posting guide,
(and from that see that you should *not* send HTML-ified
postings).
Regards, Martin Maechler
> "CM" == Christian Morgenstern
> on Mon, 1
Full_Name: Vaidotas Zemlys
Version: 2.9.0
OS: Ubuntu 8.10
Submission from: (NULL) (213.197.173.50)
Hi,
This is the same bug as bug #9845. Encodings CP1257 and ISOLatin7 are used for
Lithuanian and Latvian languages. They differ only by certain symbols such as
quotation marks. Instead of umacron
Hi,
i did a mistake with my first post.
I have to reshape data from this matrix:
idx1 x2 x3x4day1 day2 day3 day4 day5 day6 day7
day8 day9
10.1290.7970.2310.6154 4 1 1 1 1
3 3 3
20.4200.376
This seems to be as documented. From ?lm
All of 'weights', 'subset' and 'offset' are evaluated in the same
way as variables in 'formula', that is first in 'data' and then in
the environment of 'formula'.
We don't have a reproducible example and so do not know where rFormula
was
Full_Name: Alberto Gaidys
Version: 2.9.0
OS: Mac OS X 10.5.7
Submission from: (NULL) (201.81.185.155)
When calling LM or GLM from within a function, R gives a message error that it
can't find the specified weights object "Erro em eval(expr, envir, enclos) :
objeto 'W' não encontrado" (Error in ev
Jay,
I really appreciate all your help help.
I posted to Nabble an R file and input CSV files more accurately demonstrating
what I am seeing and the output I desire to achieve when I difference two
dataframes.
http://n2.nabble.com/Support-SetDiff-Discussion-Items...-td2999739.html
It m
Full_Name: Allan Stokes
Version: 2.8.1
OS: XP
Submission from: (NULL) (24.108.0.245)
I've just spent a hellish six hours trying to create my own R package with a
bare bones "hello world" R function inside. I was able to create a
package.tar.gz file eventually with much perseverance.
My remain
17 matches
Mail list logo