Displaying 20 results from an estimated 8000 matches similar to: "Ops.data.frame fails with second arg a list (PR#1889)"
2019 May 01
3
anyNA() performance on vectors of POSIXct
Inside of the anyNA() function, it will use the legacy any(is.na()) code if
x is an OBJECT(). If x is a vector of POSIXct, it will be an OBJECT(), but
it is also TYPEOF(x) == REALSXP. Therefore, it will skip the faster
ITERATE_BY_REGION, which is typically 5x faster in my testing.
Is the OBJECT() condition really necessary, or could it be moved after the
switch() for the individual TYPEOF(x)
2006 Oct 15
1
Feature request: names(someEnv) same as ls(someEnv)
Hi,
I would be nice if names() returned the equivalent of ls() for
environments.
--- a/src/main/attrib.c
+++ b/src/main/attrib.c
@@ -687,6 +687,8 @@ SEXP attribute_hidden do_names(SEXP call
s = CAR(args);
if (isVector(s) || isList(s) || isLanguage(s))
return getAttrib(s, R_NamesSymbol);
+ if (isEnvironment(s))
+ return R_lsInternal(s, 0);
return R_NilValue;
}
2008 Jan 04
1
Evaluating R expressions from C
I am currently puzzled by a passage in the R Extensions manual, section 5.10:
SEXP lapply(SEXP list, SEXP expr, SEXP rho)
{
R_len_t i, n = length(list);
SEXP ans;
if(!isNewList(list)) error("`list' must be a list");
if(!isEnvironment(rho)) error("`rho' should be an environment");
PROTECT(ans = allocVector(VECSXP, n));
2019 Feb 02
1
Runnable R packages
I see some value in Duncan?s proposal to implement this as an extra package
instead of a change to base R, if only to see if the idea has legs. I?m
minded to do so myself using your suggestion, but is there a particular
reason why you recommend using the remotes package instead of devtools? The
latter seems to have the same functions I would need, and I believe it is
more widely installed that
2002 Dec 04
2
difftime arithmetic (PR#2345)
Full_Name: Barry Rowlingson
Version: 1.6.0
OS: RH8 i386
Submission from: (NULL) (148.88.136.205)
Strange things happen if I premultiply a difftime() object with a number.
Example:
> d1 <- difftime(Sys.time(),Sys.time())
> d2 <- 1 * difftime(Sys.time(),Sys.time())
> d3 <- difftime(Sys.time(),Sys.time()) * 1
> d1
Time difference of 0 secs
- thats fine
> d2
[1] 0
2002 Aug 09
0
summary.data.frame with compound elements problem (PR#1891)
Full_Name: Barry Rowlingson
Version: 1.5.0
OS: x86 linux
Submission from: (NULL) (130.95.16.114)
Elements of a dataframe may be a matrix or another dataframe. In
this case the summary() method can do bad things:
> x <- data.frame(1:10)
> x$z <- data.frame(x=1:10,y=1:10)
> summary(x)
X1.10 z
Min. : 1.00 NULL:Min. : 1.00
1st Qu.: 3.25
2018 Jul 26
2
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, 26 Jul 2018, G?bor Cs?rdi wrote:
> On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson
> <b.rowlingson at lancaster.ac.uk> wrote:
>>
>> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
>>> I am trying to control a background R session, connected via a fifo /
>>> named pipe.
>>
>> Is the fifo
2010 Mar 08
2
Monetary support to the R-project (Was: Re: Executable for Production Use)
On Mon, Mar 8, 2010 at 8:46 PM, Barry Rowlingson
<b.rowlingson at lancaster.ac.uk> wrote:
> On Mon, Mar 8, 2010 at 6:44 PM, Ma Ismail - NewYork-MEAG-NY
> <ima at meag-ny.com> wrote:
>> Hi,
>>
>> A few of the developers on our Quant team are using R for data calculation and to generate a
[snip]
> ?I've noticed a lot of financial corporates getting into R
2019 May 21
0
anyNA() performance on vectors of POSIXct
>>>>> Harvey Smith
>>>>> on Wed, 1 May 2019 03:20:55 -0400 writes:
> Inside of the anyNA() function, it will use the legacy any(is.na()) code if
> x is an OBJECT(). If x is a vector of POSIXct, it will be an OBJECT(), but
> it is also TYPEOF(x) == REALSXP. Therefore, it will skip the faster
> ITERATE_BY_REGION, which is typically 5x
2004 Oct 14
1
FW: Maps and plotting
Thanks for the help on the translucent dots. What would be the best
method for creating a map of the facility? I looked into map* in the
libraries and didn't find anything on creating the maps, just using
them.
Thanks again...
Shawn Way, PE
Engineering Manager
sway at tanox.com
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Thursday, October
2019 Jan 31
2
Runnable R packages
Would you care to share how your package installs its own dependencies? I
assume this is done during the call to `main()`? (Last time I checked, R
CMD INSTALL would not install a package's dependencies...)
On Thu, Jan 31, 2019 at 4:38 PM Barry Rowlingson <
b.rowlingson at lancaster.ac.uk> wrote:
>
>
> On Thu, Jan 31, 2019 at 3:14 PM David Lindelof <lindelof at ieee.org>
2002 Nov 04
1
longjmp - was: seemingly random "nesting of readline input" w arnings
Barry,
Would you mind providing the necessary patch for this behavior?
Thanks,
Greg
> -----Original Message-----
> From: Barry Rowlingson [mailto:B.Rowlingson@lancaster.ac.uk]
> Sent: Monday, November 04, 2002 8:04 AM
> To: r-devel@stat.math.ethz.ch
> Subject: Re: longjmp - was: seemingly random "nesting of
> readline input"
> warnings
>
>
> Luke
2000 Dec 15
1
R on Redhat 7 / glibc problem (PR#768)
Full_Name: Barry Rowlingson
Version: 1.2.0
OS: Redhat 7.0/i386
Submission from: (NULL) (148.88.0.11)
Compiling R 1.2.0 from source on a RH7.0 machine I get:
../unix/libunix.a(sys-unix.o): In function `R_getProcTime':
/root/R-1.2.0/src/unix/sys-unix.c:153: undefined reference to `__sysconf'
/root/R-1.2.0/src/unix/sys-unix.c:154: undefined reference to `__sysconf'
- it installed
2010 Jan 24
1
R-forge getting the wrong package
After accusing someone of typing 'install.packages("weather")' instead
of 'install.packages("webmaps")', I discovered that R-forge really is
currently returning the wrong source tarball for packages after
'Repitools' in the alphabet.
The data returned from available.package in install.packages goes out
of sync at 'Repitools':
RemoteREngine
2005 Oct 20
1
image() with all NAs fails (PR#8228)
Full_Name: Barry Rowlingson
Version: 2.2.0
OS: Linux
Submission from: (NULL) (194.80.32.8)
The image function with a matrix of all NA values fails with:
> xyz=list(x=1:3,y=1:4,z=matrix(NA,3,4))
> image(xyz)
Error in image.default(xyz) : invalid z limits
In addition: Warning messages:
1: no finite arguments to min; returning Inf
2: no finite arguments to max; returning -Inf
Image can
1997 Aug 15
1
R-alpha: (minor?) S-R inconsistency: NULL =~= list() -- useful is.ALL function
In S,
NULL
and
list()
are not the same.
In R they are (I think).
---------------------------------------------------
At least,
is.list(NULL) #-> 'F' in S; 'TRUE' in R
Yes: I had an instance where this broke correct S code:
match(c("xlab","ylab"), names(list(...)))
when '...' is empty,
gives an error in R,
but gives
c(NA,NA)
in S.
2008 Aug 11
3
tkentry that exits after RETURN?
I can set up an entry widget (thanks to an old
post by Barry Rowlingson) that gets a password and
exits when the user clicks on the "OK" button.
Anyone have any clever ideas for returning/
destroying the window when the user types a carriage
return/ENTER in the text window? I've messed around
a little with validate, validatecommand, but don't
see any obvious way to do it ...
2000 Dec 18
1
demo(is.things) fails (PR#772)
Full_Name: Barry Rowlingson
Version: R-1.2.0
OS: RH7/i386
Submission from: (NULL) (148.88.0.11)
demo(is.things) fails with:
> is.ALL(NULL)
Error in as.POSIXct.default(x) : Don't know how to convert `x' to class
"POSIXct"
In addition: Warning message:
is.nan() applied to non-(list or vector) in: fn(obj)
- this seems to be because it is calling:
> is.na.POSIXlt(NULL)
2018 Jul 18
1
base::mean not consistent about NA/NaN
Yes, the performance overhead of fixing this at R level would be too
large and it would complicate the code significantly. The result of
binary operations involving NA and NaN is hardware dependent (the
propagation of NaN payload) - on some hardware, it actually works the
way we would like - NA is returned - but on some hardware you get NaN or
sometimes NA and sometimes NaN. Also there are C
2024 Mar 04
1
[External] Re: capture "->"
Dear Barry,
In general, I believe users are already accustomed with the classical
arrows "->" and "<-" which are used as such in quoted expressions.
But I agree that "-.>" is a very neat trick, thanks a lot. A small dot,
what a difference.
All the best,
Dmitri
On Mon, Mar 4, 2024 at 11:40?AM Barry Rowlingson <
b.rowlingson at lancaster.ac.uk> wrote: