Displaying 20 results from an estimated 642 matches for "bgunter".
Did you mean:
gunter
2018 Feb 13
1
LSmeans and lsmeans
It is in the doBy package.
Thanks
From: Bert Gunter [mailto:bgunter.4567 at gmail.com]
Sent: Tuesday, February 13, 2018 4:32 PM
To: Pius Mwansa <pmwansa at shaw.ca>
Cc: R-help <r-help at r-project.org>
Subject: Re: [R] LSmeans and lsmeans
Always cc the list unless there is good reason to keep your reply private.
There is no LSmeans() function in t...
2018 Feb 13
0
LSmeans and lsmeans
...and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Feb 13, 2018 at 3:38 PM, Pius Mwansa <pmwansa at shaw.ca> wrote:
> It is in the doBy package.
>
>
>
> Thanks
>
>
>
> *From:* Bert Gunter [mailto:bgunter.4567 at gmail.com]
> *Sent:* Tuesday, February 13, 2018 4:32 PM
>
> *To:* Pius Mwansa <pmwansa at shaw.ca>
> *Cc:* R-help <r-help at r-project.org>
> *Subject:* Re: [R] LSmeans and lsmeans
>
>
>
> Always cc the list unless there is good reason to keep your rep...
2016 Apr 16
2
Mean of hexadecimal numbers
...need to convert back: ?as.hexmode
-- Bert
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 Sat, Apr 16, 2016 at 8:20 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> ?strtoi
>
> You'll have to remove the "#" first, e.g. via substring()
>
> -- Bert
>
>
> Bert Gunter
>
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
>...
2024 Jul 20
4
Using the pipe, |>, syntax with "names<-"
...- "foo"
can be piped as:
z <- z |>(\(x) "names<-"(x,value = "[<-"(names(x),2,'foo')))()
> z
a foo
1 1 a
2 2 b
3 3 c
This is even awfuller than before. So my query still stands.
-- Bert
On Sat, Jul 20, 2024 at 1:14?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> Nope, I still got it wrong: None of my approaches work. :(
>
> So my query remains: how to do it via piping with |> ?
>
> Bert
>
>
> On Sat, Jul 20, 2024 at 1:06?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
> >
> &g...
2016 Apr 16
0
Mean of hexadecimal numbers
...255
blue 0 64 0
> rgb2hsv(col2rgb(myColors))
One Two Three
h 0.08104575 0.3891798 0.1666667
s 1.00000000 1.0000000 1.0000000
v 1.00000000 0.7490196 1.0000000
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sat, Apr 16, 2016 at 8:27 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> ... and if you need to convert back: ?as.hexmode
>
>
> -- Bert
>
>
> 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...
2024 Jul 20
2
Using the pipe, |>, syntax with "names<-"
It should be written more like this:
```R
z <- data.frame(a = 1:3, b = letters[1:3])
z |> names() |> _[2] <- "foo"
z
```
Regards,
Iris
On Sat, Jul 20, 2024 at 4:47?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> With further fooling around, I realized that explicitly assigning my
> last "solution" 'works'; i.e.
>
> names(z)[2] <- "foo"
>
> can be piped as:
>
> z <- z |>(\(x) "names<-"(x,value = &q...
2018 Feb 13
1
LSmeans and lsmeans
...sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Feb 13, 2018 at 3:20 PM, Pius Mwansa <pmwansa at shaw.ca> wrote:
> They are in the lsmeans package.
>
>
>
> Pius
>
>
>
> *From:* Bert Gunter [mailto:bgunter.4567 at gmail.com]
> *Sent:* Tuesday, February 13, 2018 4:16 PM
> *To:* Pius Mwansa <pmwansa at shaw.ca>
> *Cc:* R-help <r-help at r-project.org>
> *Subject:* Re: [R] LSmeans and lsmeans
>
>
>
> In what packages?
>
> -- Bert
>
>
> Bert Gunter
>...
2017 Nov 10
0
Calculating frequencies of multiple values in 200 colomns
...an example. The values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calculated for the maf to be calculated correctly.
________________________________
From: Bert Gunter <bgunter.4567 at gmail.com>
Sent: 09 November 2017 23:51:35
To: Allaisone 1; R-help
Subject: Re: [R] Calculating frequencies of multiple values in 200 colomns
[[elided Hotmail spam]]
"For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate () would calculate the frequency o...
2024 Jul 21
1
Using the pipe, |>, syntax with "names<-"
If you object to names(x)[2]<- ... then use replace:
z |> list(x = _) |> within(replace(names(x), 2, "foo")) |> _$x
On Sun, Jul 21, 2024 at 11:10?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> hmmm...
> But note that you still used the nested assignment, names()[2] <-
> "foo", to circumvent R's pipe limitations, which is exactly what
> Iris's solution avoids. So I think I was overawed by your cleverness
> ;-)
>
&g...
2017 Oct 15
1
Populate one data frame with values from another dataframe for rows that match
...mail.com>?s solution was able to achieve that. Nonetheless, we do appreciate your solution.
Regards
------------------
Kevin Wamae
From: William Dunlap <wdunlap at tibco.com>
Date: Saturday, 14 October 2017 at 20:21
To: Kevin Wamae <KWamae at kemri-wellcome.org>
Cc: Bert Gunter <bgunter.4567 at gmail.com>, Rui Barradas <ruipbarradas at sapo.pt>, R-help <R-help at r-project.org>
Subject: Re: [R] Populate one data frame with values from another dataframe for rows that match
Your example used one distinct studyno in DF1 and one distinct pf_mcl in DF2. I think that ma...
2016 Apr 13
0
Decision Tree and Random Forrest
...ght the rules somehow on the collection of trees and give
> a probability. But if that doesnt make sense, then can you just tell me
> how to get the decsion rules with one tree and I will work from that.
>
> Mike
>
> Mike
>
> On Wed, Apr 13, 2016 at 4:30 PM, Bert Gunter <bgunter.4567 at gmail.com>
wrote:
>
>> I think you are missing the point of random forests. But if you just
>> want to predict using the forest, there is a predict() method that you
>> can use. Other than that, I certainly don't understand what you mean.
>> Maybe someone e...
2017 Nov 09
2
Calculating frequencies of multiple values in 200 colomns
...thout 3 . I
> need a way to calculate the frequencies of all of the 3 values so the
> calculation of maf will be correct as it will consider all the 3
> frequencies but not only 2 .
>
>
> Regards
>
> Allahisone
> ------------------------------
> *From:* Bert Gunter <bgunter.4567 at gmail.com>
> *Sent:* 09 November 2017 20:56:39
> *To:* Allaisone 1
> *Cc:* r-help at R-project.org
> *Subject:* Re: [R] Calculating frequencies of multiple values in 200
> colomns
>
> This is not a good way to do things! R has many powerful built in
> functions to...
2024 Jul 21
1
Using the pipe, |>, syntax with "names<-"
hmmm...
But note that you still used the nested assignment, names()[2] <-
"foo", to circumvent R's pipe limitations, which is exactly what
Iris's solution avoids. So I think I was overawed by your cleverness
;-)
Best,
Bert
On Sun, Jul 21, 2024 at 8:01?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> Wow!
> Yes, this is very clever -- way too clever for me -- and meets my
> criteria for a solution.
>
> I think it's also another piece of evidence of why piping in base R is
> not suited for complex/nested assignments, as discussed in Deepa...
2017 Nov 10
2
Calculating frequencies of multiple values in 200 colomns
...e values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calculated for the maf to be calculated correctly.
>
> ________________________________
> From: Bert Gunter <bgunter.4567 at gmail.com>
> Sent: 09 November 2017 23:51:35
> To: Allaisone 1; R-help
> Subject: Re: [R] Calculating frequencies of multiple values in 200 colomns
>
> [[elided Hotmail spam]]
>
> "For example, if I have the values : 1 , 2 , 3 in each column, applying Tabulate...
2016 Apr 19
2
Interquartile Range
...39;m getting another cup of coffee...
-- Bert
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 Tue, Apr 19, 2016 at 10:30 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> NO NO -- I am wrong! The paste() expression is of course evaluated.
> It's just that a character string is returned of the form "something -
> something".
>
> I apologize for the confusion.
>
> -- Bert
>
>
>
>
> Bert...
2024 Jul 21
3
Using the pipe, |>, syntax with "names<-"
...sion and then unboxing it.
>
> z <- data.frame(a = 1:3, b = letters[1:3])
> z |> list(x = _) |> within(names(x)[2] <- "foo") |> _$x
> ## a foo
> ## 1 1 a
> ## 2 2 b
> ## 3 3 c
>
> On Sat, Jul 20, 2024 at 4:07?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
> >
> > This post is likely pretty useless; it is motivated by a recent post
> > from "Val" that was elegantly answered using Tidyverse constructs, but
> > I wondered how to do it using base R only. Along the way, I ran into
> >...
2016 Apr 20
2
Interquartile Range
...imum of the density estimate. Of course, there is still the possibility
> of a multi-modal distribution and the nuances of which kernel is used,
> etc., etc.
>
> Food for thought.
>
> Regards,
>
> Marc Schwartz
>
>
> > On Apr 19, 2016, at 7:07 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> >
> > Well, instead of your functions try:
> >
> > Mode <- function(x) {
> > tabx <- table(x)
> > tabx[which.max(tabx)]
> > }
> >
> > and use R's IQR function instead of yours.
> >
> >...
2016 Apr 19
2
Interquartile Range
...Hope you enjoyed your coffee! I
> ended up just using the transform argument in the ddply function. It
> worked and it repeated, then I called a mode function in another call to
> ddply that summarised. Kinda hacky but oh well!
>
> On Tue, Apr 19, 2016 at 12:31 PM, Bert Gunter <bgunter.4567 at gmail.com>
> wrote:
>
>> ... and I'm getting another cup of coffee...
>>
>> -- Bert
>> Bert Gunter
>>
>> "The trouble with having an open mind is that people keep coming along
>> and sticking things into it."
>> -- Opus...
2016 Apr 19
0
Interquartile Range
...at clarification Bert! Hope you enjoyed your coffee! I
ended up just using the transform argument in the ddply function. It
worked and it repeated, then I called a mode function in another call to
ddply that summarised. Kinda hacky but oh well!
On Tue, Apr 19, 2016 at 12:31 PM, Bert Gunter <bgunter.4567 at gmail.com>
wrote:
> ... and I'm getting another cup of coffee...
>
> -- Bert
> 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...
2016 Apr 14
3
Decision Tree and Random Forrest
...ees and
> give
> > a probability. But if that doesnt make sense, then can you just tell me
> > how to get the decsion rules with one tree and I will work from that.
> >
> > Mike
> >
> > Mike
> >
> > On Wed, Apr 13, 2016 at 4:30 PM, Bert Gunter <bgunter.4567 at gmail.com
> <javascript:_e(%7B%7D,'cvml','bgunter.4567 at gmail.com');>> wrote:
> >
> >> I think you are missing the point of random forests. But if you just
> >> want to predict using the forest, there is a predict() method that you
>...