he numerator and the denominator should be divided by
> their corresponding degrees of freedom.
>
Yes. Fixed for 2.4.0.
I didn't add a denominator non-centrality parameter, since we don't have
code for qf, pf, or df for the doubly non-central distribution.
-thomas
_
ather than references then create
a list with the environment as an element and put the attributes on the
list.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
On Wed, 5 Jul 2006, Gabor Grothendieck wrote:
> On 7/5/06, Thomas Lumley <[EMAIL PROTECTED]> wrote:
>> On Tue, 4 Jul 2006, Gabor Grothendieck wrote:
>>
>> > In the code below, e is an environment which we copy to f and then
>> > add attributes to e.
On Wed, 5 Jul 2006, Gabor Grothendieck wrote:
> On 7/5/06, Thomas Lumley <[EMAIL PROTECTED]> wrote:
>> On Wed, 5 Jul 2006, Gabor Grothendieck wrote:
>>
>> > On 7/5/06, Thomas Lumley <[EMAIL PROTECTED]> wrote:
>> >> On Tue, 4 Jul 2006, Gabor Grothe
!is.list(X)) X <- as.list(X)
That looks reasonable.
> More generally, perhaps as.vector might not duplicate when mode(x) == mode ?
>
This isn't a trivial change, because mode(x)==mode does not guarantee
that as.vector(x, mode) has no effect. For example, with mode="numer
On Tue, 11 Jul 2006, Prof Brian Ripley wrote:
> On Fri, 7 Jul 2006, Thomas Lumley wrote:
>
>> On Fri, 7 Jul 2006, Martin Morgan wrote:
>>
>>> sapply calls lapply as
>>>
>>>answer <- lapply(as.list(X), FUN, ...)
>>>
>>> whi
iables
that it should not have any access to by normal rules. The example of
safe use modifies only a newly created, anonymous numeric vector.
-thomas
>
> tmp.c: void tmp(double *x) { x[0]=1; return; }
>
>> f <- function(x) x
>> x <- 0
>> .C("tmp"
ep="~"))
I can run terms(fn(500)) with no problems. This is a 15500 character
string, and produces a terms object over a megabyte in size. This suggests
that it isn't a string problem, unless you really want formulas larger
than this.
-thomas
Thomas Lumley
27;na.rm' is FALSE
>
Yes, I think it's a bug.
summary.mlm() produces an object that is a list of objects of class
"summary.lm", but these objects get their $resid component from the
residuals() function and so NAs in their $resid component where a
"summary.lm" produced by summary.lm() would not.
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
at will be called when the object is garbage collected, so you
can call the destructor from there.
AFAICT the only documentation for this is on the developer page, where
there is a link to
http://www.stat.uiowa.edu/~luke/R/simpleref.html
I thought I remembered seeing something else, but I can'
-value illusion that R maintains, in two ways. The first
is that objects that have shared structure can be modified, the
second is that you can create shared structure without R knowing: if you
change "element" subsequently then lst1 and lst2 may change.
-thomas
>
> SEXP
be ignored (version
2.3.1, Mac OS X)
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
gt;
>
> Certainly fixed by 2.3.1:
>
In fact, fixed in 1.2.0, in December 2000.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
way to do the
same thing on glibc versions that don't provide it.
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
v.
For sums you should look at rowsum(). It uses a hash table in C and last
time I looked was faster than using split(). It returns a vector of the
same length as the input, but that would easily be fixed.
The same approach would work for min, max, range, count, mean, but not for
arbitrary
yPackage.so. Try
nm myPackage.so | grep fifrt
to list all the symbols containing "fifrt". It should now be clear
whether fifrt is there. This will narrow down the problem.
-thomas
> --
> View this message in context:
> http://www.nabble.com/C-Entry-Poi
of int = 4, which is permitted by the
C standard, but distinctly unusual.
If so, you could delete
or #ifdef out the
case sizeof(short):
lines to remove the duplication.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washi
do not own a Windows box and was unable to
> test/debug the build in any way on that platform.
>
Not really. CRAN does check packages on Linux, Mac OSX and Windows, but
there isn't a mechanism for users (or R-developers) to do this on systems
they don't have.
sn't been done (which
doesn't mean that it shouldn't be done).
Providing the ability to write assignment functions that don't duplicate
is a more urgent problem.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] Univers
fferent
from the R loop. If you modify m or end inside the loop the number of
iterations of the C loop changes but the number of iterations of the R
loop doesn't. R's for() loop just isn't the same as C's.
-thomas
Thomas Lumley Assoc. Pr
f its memory with another variable. However, R
does provide external pointer objects as a way to pass objects by
reference without breaking the behaviour of the rest of the language. It's
more work to use them but cleaner.
-thomas
Thomas Lumley Assoc. Professor,
ot; + 2 + 2
2 + 2 + " = two + two"
would be correct?
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
om it
without making their application to exit too. I wonder if it's
possible to include this possibility in future versions of R. Or do I
see this wrong and are there other (easier) solutions to achieve what
I want? Thanks in advance for your comments/reactions.
Thomas
_
about this already:
https://stat.ethz.ch/pipermail/r-devel/2006-April/037219.html). I
tried to use the R-devel version to make use of the Rf_endEmbeddedR
method, but the error also occurs in this version. Could this be a
bug?
Thomas
2006/8/31, Prof Brian Ripley <[EMAIL PROTECTED]>:
> Anot
It looks like a failure to
duplicate. A workaround would be not to modify list elements or database
columns that don't exist ;).
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Tue, 5 Sep 2006, Thomas Lumley wrote:
>
> The partial matching is fairly deeply built in to complex assignment,
> because as evalseq works through the nested calls on the LHS the code
> being called doesn't know it is in an assignment call.
The problem in
> D = list(ABC
gle element?
No.
> I can get the
> desired single element match using the convoluted syntax D["ABC"]
> [[1]] and perform partial replacement operations on a new column.
> However, it would be nice to have single element access operator that
> does exact matching.
It wo
uld be appropriate for a [<- method,
which changes the values, but not for a [ method that just extracts a
subset.
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
int are the same so one integer will suffice)
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
s the debugger whenever the function f() is called. This
lets you get in before the error.
There is a section on debugging in the "Writing R Extensions" manual (in
sufficiently recent versions of R).
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Full_Name: Thomas Friedrichsmeier
Version: 2.4.0
OS: GNU/Linux
Submission from: (NULL) (84.61.116.51)
Since R 2.4.0, operator "::" also returns objects in the package environment, if
the package does not have a namespace. This is a very welcome addition.
Additional wish:
If a pac
al bug in the subject line you have just
filed a new bug report for it.
-thomas
> ... you are assuming
> a certain evaluation order of the 4 "$" operators in
> " D$ABC[D$M] = D$V[D$M] " as in:
>
> temp1 <- D$M # 2nd and
is sort of recursive parsing and modification is done by the bquote()
function, so you could look there.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
R-devel@r-pr
expecting to be x80 and convert that to UTF-8.
I'm surprised that one of your UTF-8 machines worked -- I don't think it
should.
-thomas
> ...
>> parse(text='"\\xFF"')
> Error: invalid multibyte string
>
> However,
>
> cat("\x7F\n\x80\
platforms:
>> > >
>> > >> parse(text='"\\x7F"')
>> > > expression("\177")
>> > >> parse(text='"\\x80"')
>> > > Error: invalid multibyte string
and that error *is* correct behaviour -- you can't parse() something that
isn't a valid character string.
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
tive binding.
Once again, more details on request. Of course an easier solution would be
very welcome, but it seems to work pretty well.
Regards
Thomas
pgp2KPMwPd6Ta.pgp
Description: PGP signature
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ontext() may fail in the context of embedding the
X11 window. The patch simply checks the return value of XFindContext() for a
non-zero (i.e. error) value, and in that case drops out of the function.
Does this seem like a valid fix? Should I provide more info?
Dear R developers,
On Tuesday 07 November 2006 15:26, Thomas Friedrichsmeier wrote:
> I've been experimenting with embedding R X11 windows into another
> application using KDE's QXEmbed on linux. Attempting to do so will crash R
> (with R 2.4.0, trunk, and I know the bug has b
pointer.
It seems a lot of extra code for very little extra generality. If someone
submitted a patch that also carefully documented that there was no
slowdown for .C/.Fortran and no loss of ANSI C conformance it might be
considered, but I can't predict any great enthusiasm for it.
rning about incompatible pointer types, but
the more important issue is that you need to return pointers to n
different blocks of memory that are not going to go away after your
function finishes.
-thomas
>
>
> for (i=0; i
> for (a=0; a
t the relationship involved is not,
strictly speaking, inheritance. They would be quite right. However,
unless someone wants to rewrite glm and lm for S4 classes I think that
battle is lost.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROT
posal was just to allow predict.lm and summary.lm to be used in cases
where they already give the right sort of results and in addition to tidy
up the duplication of variance-matrix code.
-thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
tive
then CRAN and Bioconductor are available for sampling....
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
[EMAIL PROTECTED] University of Washington, Seattle
__
R-devel@r-project.org mailing list
https://s
.
Regards
Thomas Friedrichsmeier
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
'tan', 'sinh', 'cosh', 'sqrt', 'pnorm', 'dnorm',
'asin', 'acos', 'atan', 'gamma' and 'lgamma'. (Note that only the
standard normal distribution is considered.)
-thomas
length(a <- 1:5) <- 4
is rewritten as
(a<-1:5) <- "length<-"(a<-1:5, 5)
and then as
a <- "<-<-"(a, "length<-"(a<-1:5, 5))
which gives the error you report -- there is no function "<-<-".
You might th
make sure the next release of
RKWard will be compilable with R 2.5.0, I'd like to make sure, whether or not
the change is here to stay.
Regards
Thomas Friedrichsmeier
pgpkvniKL3of2.pgp
Description: PGP signature
__
R-devel@r-project.org mailing
DLLdo1() and
friends, which could then be simplified to use this function, internally.
Regards
Thomas Friedrichsmeier
/* print mode: 0: print if visible. 1: always print 2: never print */
SEXP R_DLLGenericEplDo1 (unsigned char *buffer, ParseStatus *parse_status,
Rboolean set_last_sym_value,
.
I can open a bug report if you wish, but I would require a bugzilla account for
that. Otherwise you’re also welcome to take it from here.
With best wishes
Thomas Lin Pedersen
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
> On 22 Jan 2018, at 16.21, Martin Maechler wrote:
>
>>>>>> Thomas Lin Pedersen mailto:thomas...@gmail.com>>
>>>>>>on Mon, 22 Jan 2018 14:32:27 +0100 writes:
>
>> Hi I’ve just spend a bit of time debugging an error
>> arising
eference to the `? NumericConstants` man page and/or a
cross-reference to the `? ':'` or `? seq` man pages, which describe how
particularities of how integer sequences can be (reliably) constructed.
Again, just a suggestion.
-Thomas
Thomas J. Leeper
___
As long as we're on this point about not many users knowing about "L"
notation, I'm going bump my earlier suggestion that it be at least
mentioned in the `? integer` documentation page:
https://stat.ethz.ch/pipermail/r-devel/2018-May/076203.html
Cheers,
-Thomas
> Fro
{} block, it appears to me that it would be better if cleanEx() did a
cleaning of the environment along with a single gc call prior to performing any
checks on the end state. Is this something you would consider?
best
Thomas Lin Pedersen
[[alternative HTML version
print() method isn’t updated? Or,
better, update the print() method to display this as well?
Best,
Thomas
[1]
https://twitter.com/amandayagan/status/1098314654470819840?s=21
--
Thomas J. Leeper
http://www.thomasleeper.com
[[alternative HTML version deleted
print() method unchanged and simply
returning the SE as an additional element should affect almost nothing.
I’m all for continuity and conservative development, but we also should aim
to make R as useful and usable as possible. This seems like a nice simple
way to do that.
Best,
Thomas
On Thu, 21
That seems great to me. Thank you very much!
-Thomas
On Sat, Feb 23, 2019 at 11:14 AM Martin Maechler
wrote:
>
> >>>>> peter dalgaard
> >>>>> on Fri, 22 Feb 2019 12:38:14 +0100 writes:
>
> > It's not a problem per se to put additio
It's disappointing that many packages do not have a NEWS file. Perhaps
CRAN should require NEWS or CHANGELOG, as long as the system is being
reformed to potentially accommodate markdown anyway.
-Thomas
Thomas J. Leeper
http://www.thomasleeper.com
On Fri, Jun 5, 2015 at 12:00 PM,
pect
other new package authors might be in the same place (i.e., just not
aware that such a file is helpful for end users).
Thomas J. Leeper
http://www.thomasleeper.com
On Fri, Jun 5, 2015 at 6:32 PM, Duncan Murdoch wrote:
> On 05/06/2015 8:16 AM, Thomas J. Leeper wrote:
>>
>> It
s, new = 2) :
variable lengths differ (found for '(new)')
But, maybe that's something for the "Details" section? (Or it's a bug
- I don't really know.)
Thanks in advance for your consideration.
Best,
-Thomas
Thomas J. Leeper
http://www.thomasleeper.com
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
`variables` to the wrong structure (making a
three-column data frame instead of a two-column data frame) and
therefore misnames the resulting columns. I unfortunately don't know
the most sensible/general way to solve this, otherwise I would submit
a patch. Anyone know how to fix this last line?
Best,
-Thomas
Thomas J. Leeper
http://www.thomasleeper.com
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ible? Or, make tests that require internet access into a
distinct `check-internet` or similar?
As an additional reference, the same conditional statement appears to
also be used in these other tests:
https://svn.r-project.org/R/trunk/tests/CRANtools.R
https://svn.r-project.org/R/trunk/tests/libcurl.R
Thanks, Gabe and Gabor.
In my case it causes a non-zero status and fails the check-devel step.
I’ll definitely fall back to modifying the code but it doesn’t seem like
this is exactly the intended behavior of the tests.
-Thomas
El El lun, 5 oct 2020 a las 19:42, Gabriel Becker
escribió
"
Should the plot.window documentation be corrected to say "r" is the
default or am I missing something?
Thanks,
-Thomas
Thomas J. Leeper
http://www.thomasleeper.com
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
s to the widget instead of the
console. Following this design, instead of writing to the widget, you
could write all of that to some kind of formatted log file.
The package is on CRAN and you can take quick look at the source code
on GitHub: https://github.com/leeper/rite/blob/master/R/rit
lowercase digits 'a' through 'f', respectively. If two URIs
differ only in the case of hexadecimal digits used in percent-encoded
octets, they are equivalent. For consistency, URI producers and
normalizers should use **uppercase** hexadecimal dig
ve.
Thanks for your help! And sorry if there's an obvious answer to this that I
am oblivious to.
-Thomas
--
Thomas J. Leeper
PhD Candidate, ABD
Department of Political Science
Northwestern University
lee...@u.northwestern.edu
http://www.thomasleeper.com
Great! I will look into .onAttach, .onLoad, and packageStartupMessage.
Thanks so much!
-Thomas
On Sat, Apr 7, 2012 at 4:27 PM, Thomas J. Leeper wrote:
> I'm currently working on a new package for R that interfaces with an API.
> Most of the package's functionality requires us
re a better way to tell formula not to copy unrelated stuff
into the associated environment?
3) why does object.size not show the size of the environments that
formulas can carry along?
Regards
Thomas
--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University o
Dear Duncan
thank you for taking the time to answer my questions! It will be quite
some work to delete all the objects generated inside the function
... but if there is no other way to avoid a large environment then this
is what I will do.
Cheers
Thomas
Duncan Murdoch writes:
> On 13-04-1
g/tmp/x.rda
can you solve this as well?
thanks!
thomas
Duncan Murdoch writes:
> On 13-04-18 11:39 AM, Thomas Alexander Gerds wrote:
>> Dear Duncan
>> thank you for taking the time to answer my questions! It will be
>> quite some work to delete all the objects generated ins
et is invisibly sitting in
the saved file.
Duncan Murdoch writes:
> On 13-04-19 2:57 PM, Thomas Alexander Gerds wrote:
>> hmm. I have tested a bit more, and found this perhaps more difficult
>> solve situation. even though I delete x, since x is part of the
>> output of th
Is there a solution that keeps the original interaction.plot and lets me
define a interaction.plot for objects of my S4-Class?
Thank you for your time
Thomas Roth
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
frame for class test
setMethod("as.data.frame", "test", function(x, row.names = NULL,
optional = FALSE)
{
return(x...@data)
}
)
as.data.frame(temp) #works
lm(eruptions ~ waiting, data = temp) #doesn't work
#Thank you for any hints
#Thomas Roth
#from the lm help
the compiler expects.
I checked, and it appears that at least ifort uses the same convention
as gfortran 8/9 regarding character argument passing.
Regards
Thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
or(i in 2:3) print(i) # output [1] "set"
#NULL
#NULL
print(i) # output NULL
print(x) # output NULL
i <- 4 # output "set"
print(i) # ouput [1] 4
print(x) # ouput [1] 4
Reg
Possibly just a symptom of the earlier behavior, but I'll amend my
example, below, with an even more disturbing observation:
Am Sat, 23 May 2020 13:19:24 +0200
schrieb Thomas Friedrichsmeier via R-devel :
[...]
> Consider the code below:
>
> makeActiveBinding("i",
d confidence intervals for model
+ estimates.
}
\section{Using time series}{
Considerable care is needed when using \code{lm} with time series.
De : Martin Maechler [mailto:maech...@stat.math.ethz.ch]
Envoyé : vendredi 17 janvier 2025 17:04
À : SOEIRO Thomas
Cc : r-devel@r-project.o
70 -0.07210825 0.5165527
4tensionH 0. 0.03100435 0.03900286 0.6276638
Thank you.
Best regards,
Thomas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
profiling to be done...
term estimate std.error statisticp.value conf.low conf.high
1 (Intercept) 1.076887 0.1226144 0.6041221 0.54849393 0.8468381 1.369429
2 woolB 1.076887 0.1226144 0.6041221 0.54849393 0.8468381 1.369429
3tensionM 1.248849 0.1501714 1.479790
401 - 479 of 479 matches
Mail list logo