Hello,
You're right, I carelessly coded this.
which.max returns the index to the first maximum of a vector, while the
comparison of a vector with its max() returns an index to all vector
elements.
Às 23:27 de 03/12/21, Bert Gunter escreveu:
Perhaps you meant to point this out, but the
On Fri, 3 Dec 2021, Rich Shepard wrote:
they apparently do. For example, 99.9000 cubic feet per second is reached
99,900
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
On Fri, 3 Dec 2021, Bert Gunter wrote:
Perhaps you meant to point this out, but the cfs[which.max(cfs)] and
cfs == ... are not the same:
x <- rep(1:2,3)
x
[1] 1 2 1 2 1 2
x[which.max(x)]
[1] 2
x[x==max(x)]
[1] 2 2 2
So maybe your point is: which does the OP want (in case there are
Perhaps you meant to point this out, but the cfs[which.max(cfs)] and
cfs == ... are not the same:
> x <- rep(1:2,3)
> x
[1] 1 2 1 2 1 2
> x[which.max(x)]
[1] 2
> x[x==max(x)]
[1] 2 2 2
So maybe your point is: which does the OP want (in case there are
repeated maxes)? I suspect the == forms, but
On Fri, 3 Dec 2021, Rui Barradas wrote:
which.max(pdx_disc$cfs)
[1] 8054
This is the *index* for which cfs is the first maximum, not the maximum
value itself.
Rui,
Mea culpa! I completely forgot this.
Therefore, you probably want any of
filter(pdx_disc, cfs == cfs[8054])
Hello,
Inline.
Às 22:08 de 03/12/21, Rich Shepard escreveu:
On Fri, 3 Dec 2021, Rich Shepard wrote:
I find solutions when the data_frame is grouped, but none when it's not.
Thanks, Bert. ?which.max confirmed that's all I need to find the maximum
value.
Now I need to read more than ?filter
On Fri, 3 Dec 2021, Rich Shepard wrote:
I find solutions when the data_frame is grouped, but none when it's not.
Thanks, Bert. ?which.max confirmed that's all I need to find the maximum
value.
Now I need to read more than ?filter to learn why I'm not getting the
relevant row with:
On Fri, 3 Dec 2021, Jeff Newmiller wrote:
cfs is not a function. Don't put parentheses next to it. Use square
brackets for indexing.
Jeff,
Thanks.
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
cfs is not a function. Don't put parentheses next to it. Use square brackets
for indexing.
On December 3, 2021 12:55:34 PM PST, Rich Shepard
wrote:
>I find solutions when the data_frame is grouped, but none when it's not.
>
>The data:
># A tibble: 813,693 × 9
>site_nbr year mon day
which.max(dat$cfs), I presume.
see ?which.max
(as usual, true tidyverse questions belong on RStudio's help site, not here).
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
I find solutions when the data_frame is grouped, but none when it's not.
The data:
# A tibble: 813,693 × 9
site_nbr year mon dayhr min tz cfs sampdt
1 14211720 198810 1 010 PDT 16800 1988-10-01 00:10:00
2 14211720 198810 1 0
Two of the machines having the problem are AVX-512 capable (e.g., i7-7820X) but
another one is an old Samsung Series 5 with an i5-3317U. I guess I will start
with the folks at Linux Mint.
Tom
Thomas R. LaBone
PhD student
Department of Epidemiology and Biostatistics
Arnold School of Public
Thanks, Richard.
I am researching other library options for data inspection. I have many
csv files I am reviewing with different column names and data types.
Flexibility of a quick review of max and min is quite valuable at this
juncture.
I will implement your code recommendation next week
It might also be a BLAS+processor problem - I got bit pretty hard by
that, with an example here:
https://stat.ethz.ch/pipermail/r-help/2019-July/463477.html
With a key excerpt here:
On Thu, Jul 18, 2019 at 1:59 PM Ivan Krylov wrote:
> Yes, this might be bad. I have heard about OpenBLAS
Thanks for the feedback everyone. If you go to
https://github.com/csantill/RPerformanceWBLAS/blob/master/RPerformanceBLAS.md
you will find the Linux commands to change the default math library. When I
switch the BLAS library from MKL to the system default (see sessionInfo below),
everything
Hi Kai,
Check out https://www.bioconductor.org
or the help there at
https://www.bioconductor.org/help/
You can also post your question there.
Best,
Eric
On Fri, Dec 3, 2021 at 2:22 AM Kai Yang via R-help
wrote:
> Hello R team,we have a huge SOMAscan data set. This is an aptamer-based
>
16 matches
Mail list logo