Displaying 7 results from an estimated 7 matches for "kchamberln".
Did you mean:
chamberlin
2020 Oct 14
0
which() vs. just logical selection in df
Inline.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Oct 14, 2020 at 3:23 PM 1/k^c <kchamberln at gmail.com> wrote:
Is which() invoking c-level code by chance, making it slightly faster
> on average?
>
You do not need to ask such questions. R is open source, so just look!
> which
function (x, arr.ind = FALSE, useNames = TRUE)
{
wh <- .Internal(which(x)) ## C code...
2020 Oct 14
2
which() vs. just logical selection in df
...'s considered best practice to keep it. What is
R inoking when which() isn't called explicitly? Is R invoking which()
eventually anyway?
Cheers!
Keith
> Message: 2
> Date: Mon, 12 Oct 2020 13:01:36 -0600
> From: Greg Snow <538280 at gmail.com>
> To: "1/k^c" <kchamberln at gmail.com>
> Cc: r-help <r-help at r-project.org>
> Subject: Re: [R] which() vs. just logical selection in df
> Message-ID:
> <CAFEqCdyUuHh5TZ7t5NJ8cs_4xB61mNeUgasncekD485eBNRK6Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
&...
2020 Oct 10
1
which() vs. just logical selection in df
Hi R-helpers,
Does anyone know why adding which() makes the select call more
efficient than just using logical selection in a dataframe? Doesn't
which() technically add another conversion/function call on top of the
logical selection? Here is a reproducible example with a slight
difference in timing.
# Surrogate data - the timing here isn't interesting
urltext <-
2010 Mar 06
3
r code to generate interaction columns
Hi,
is there a way to take a dataset and extract numeric columns and create interaction columns from it automatically?
For e.g. there are 5 columns of data: A,B,C,D,E.
CDE are numeric.
Can someone provide code to automatically create more columns such as:
1) C*D, C*E, C*D*E, (C+E)/(D+.01 (to avoid divide by zero), (D+E)/(C+.01 (to avoid divide by zero), (C+D)/(E+.01 (to avoid
2010 Feb 13
2
lm function in R
Hello,
I am trying to learn how to perform Multiple Regression Analysis in R. I
decided to take a simple example given in this PDF:
http://www.utdallas.edu/~herve/abdi-prc-pretty.pdf
I created a small CSV called, students.csv that contains the following data:
s1 14 4 1
s2 23 4 2
s3 30 7 2
s4 50 7 4
s5 39 10 3
s6 67 10 6
Col headers: Student id, Memory span(Y), age(X1), speech rate(X2)
Now
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...raduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
------------------------------
Message: 114
Date: Tue, 4 May 2010 22:01:37 -0600
From: "kMan" <kchamberln at gmail.com>
To: "'someone'" <vonhoffen at t-online.de>
Cc: r-help at r-project.org
Subject: Re: [R] Delete rows with duplicate field...
Message-ID: <01d701caec07$aab81f40$00285dc0$@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Dear someone,
J...
2010 Apr 26
0
New rwiki page for "large scale data"
Dear list,
There is a new rwiki (http://rwiki.sciviews.org) section for 'large scale
data' at http://rwiki.sciviews.org/doku.php?id=large_scale_data. This is a
massive topic of interest to many. I could use some help filling in the
content so that this can develop into a powerful resource for the
r-community. I hope you like it, and I hope you are willing to help make it
better.