Minor point and probably not relevant to the speed issue, but df() is
the density function for the F distribution, so I have (recently)
stopped using it for referring to data.frames.
Sean
On 30 October 2013 23:32, Gabriel Becker wrote:
> Hadley,
>
> As far as I can tell from a quick look, it is
Hadley,
As far as I can tell from a quick look, it is because implicit printing
uses a different mechanism which does a fair bit more work.
>From comments in print.c in the R sources:
* print.default() -> do_printdefault (with call tree below)
*
* auto-printing -> PrintValueEnv
*
On Wed, Oct 30, 2013 at 6:22 PM, Hadley Wickham wrote:
> Hi all,
>
> Can anyone help me understand why an implicit print (i.e. just typing
> df at the console), is so much slower than an explicit print (i.e.
> print(df)) in the example below? I see the difference in both Rstudio
> and in a termin
Hi all,
Can anyone help me understand why an implicit print (i.e. just typing
df at the console), is so much slower than an explicit print (i.e.
print(df)) in the example below? I see the difference in both Rstudio
and in a terminal.
# Construct large df as quickly as possible
dummy <- 1:18e6
df