search for: polc1410

Displaying 20 results from an estimated 25 matches for "polc1410".

2024 Sep 29
1
Is there a sexy way ...?
...and I have continued on my own and located functions I see as useful in the stringi and stringr packages to make my silly version ever less silly! LOL! -----Original Message----- From: Rolf Turner <rolfturner at posteo.net> Sent: Saturday, September 28, 2024 10:11 PM To: CALUM POLWART <polc1410 at gmail.com> Cc: avi.e.gross at gmail.com; Lennart Kasserra <lennart.kasserra at gmail.com>; r-help at r-project.org Subject: Re: [R] Is there a sexy way ...? On Sat, 28 Sep 2024 10:26:31 +0100 CALUM POLWART <polc1410 at gmail.com> wrote: > Avi > > I fear this was all...
2024 Sep 29
1
Is there a sexy way ...?
On Sat, 28 Sep 2024 10:26:31 +0100 CALUM POLWART <polc1410 at gmail.com> wrote: > Avi > > I fear this was all a huge social experiment. > > Testing if a post titled "sexy way" would increase engagement... <SNIP> I conjecture that this conjecture was tongue-in-cheek. Be that as it were ??, let me assure everyone that...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...or Error in `dplyr::summarize()`: ! Can't supply both `.by` and `.groups`. Run `rlang::last_trace()` to see where the error occurred. Ding From: Rui Barradas <ruipbarradas at sapo.pt> Sent: Wednesday, June 12, 2024 11:29 AM To: Yuan Chun Ding <ycding at coh.org>; CALUM POLWART <polc1410 at gmail.com> Cc: r-help at r-project.org Subject: Re: [R] my R code worked well when running the first 1000 lines of R code Hello, Inline. ?s 19:?03 de 12/06/2024, Yuan Chun Ding via R-help escreveu: > I am sorry that I know I should provide a dataset that allows to replicate my problem. &g...
2024 Feb 12
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
...was probably an implementation compromise and I've changed that in R-devel. Thanks for the report. More implementation details in the bugzilla report: https://bugs.r-project.org/show_bug.cgi?id=18666 Best Tomas > Iago > > ________________________________ > De: CALUM POLWART <polc1410 at gmail.com> > Enviat el: divendres, 9 de febrer de 2024 18:28 > Per a: Duncan Murdoch <murdoch.duncan at gmail.com> > A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at r-project.org> > Tema: Re: [R] Avoiding Delete key function as ...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...nnot really be answered. Hope this helps, Rui Barradas but still not resolved the problem. > > > > I will restart from the first line my code, it will work again and then I will track down. > > > > Thank you, > > Ding > > > From: CALUM POLWART <polc1410 at gmail.com> > Sent: Wednesday, June 12, 2024 10:52 AM > To: Yuan Chun Ding <ycding at coh.org> > Cc: r-help at r-project.org > Subject: Re: [R] my R code worked well when running the first 1000 lines of R code > > I sometimes think people on this list are quite rude to...
2023 Nov 04
2
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
I might have factored the gender. I'm not sure it would in any way be quicker. But might be to some extent easier to develop variations of. And is sort of what factors should be doing... # make dummy data gender <- c("Male", "Female", "Male", "Female") WC <- c(70,60,75,65) TG <- c(0.9, 1.1, 1.2, 1.0) myDf <- data.frame( gender, WC, TG ) #
2024 Aug 09
3
If loop
...(I usually return, but return can only return one object and I think you want two or more" You can return any number of objects by putting them in a list and returning the list. Use of "<<-" is rarely a good idea in R. -- Bert On Fri, Aug 9, 2024 at 1:53?AM CALUM POLWART <polc1410 at gmail.com> wrote: > > OK. The fact it's in a function is making things clearer. > > Are you trying to update the values of an object from within the function, > and have them available outside the function. I don't speak functional > programming articulately enough b...
2023 Nov 05
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...programs implicitly do such a factor conversion if needed. An example might be aspects of the ggplot program where you may get a mysterious order of presentation in the graph unless you create a factor with the order you wish to have used and avoid it making one invisibly. From: CALUM POLWART <polc1410 at gmail.com> Sent: Saturday, November 4, 2023 7:14 PM To: avi.e.gross at gmail.com Cc: Jorgen Harmse <JHarmse at roku.com>; r-help at r-project.org; mkzaman.m at gmail.com Subject: Re: [R] I need to create new variables based on two numeric variables and one dichotomize conditional categ...
2024 Feb 09
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
Duncan, do you think it's worth to comment this in R-devel list? Iago ________________________________ De: CALUM POLWART <polc1410 at gmail.com> Enviat el: divendres, 9 de febrer de 2024 18:28 Per a: Duncan Murdoch <murdoch.duncan at gmail.com> A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at r-project.org> Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rt...
2024 Aug 09
2
If loop
OK. The fact it's in a function is making things clearer. Are you trying to update the values of an object from within the function, and have them available outside the function. I don't speak functional programming articulately enough but basically v <- 1 funA <- function() { v <- v+1 } funA() cat (v) # 1 You either return the v from the function so funB <- function() {
2024 Sep 26
1
Problem with converting grib file to excel
...for me the dataset file did not come through. I will look at it > if it can be made available. It does look like the finial step of reading > the data into raster failed, so then did the rest of th commands. > > -Roy > > > > On Sep 25, 2024, at 3:24 PM, CALUM POLWART <polc1410 at gmail.com> wrote: > > > > Noticeable lack of silence in the group on this one. > > > > I've not got time to test currently. But my experience of geo location > > files - they often had more than 2 dimensional data. In other words you > > might have a bo...
2024 Sep 26
1
Problem with converting grib file to excel
...ataset file did not come through. I will look at it if it can be made available. It does look like the finial step of reading the data into raster failed, so then did the rest of th commands. >> >> -Roy >> >> >> > On Sep 25, 2024, at 3:24 PM, CALUM POLWART <polc1410 at gmail.com <mailto:polc1410 at gmail.com>> wrote: >> > >> > Noticeable lack of silence in the group on this one. >> > >> > I've not got time to test currently. But my experience of geo location >> > files - they often had more than 2 dim...
2024 Sep 26
1
Problem with converting grib file to excel
...t; >> if it can be made available. It does look like the finial step of > reading > >> the data into raster failed, so then did the rest of th commands. > >> > >> -Roy > >> > >> > >> > On Sep 25, 2024, at 3:24 PM, CALUM POLWART <polc1410 at gmail.com> > wrote: > >> > > >> > Noticeable lack of silence in the group on this one. > >> > > >> > I've not got time to test currently. But my experience of geo location > >> > files - they often had more than 2 dimensional...
2024 Sep 28
2
Is there a sexy way ...?
Avi I fear this was all a huge social experiment. Testing if a post titled "sexy way" would increase engagement... On Sat, 28 Sep 2024, 07:21 , <avi.e.gross at gmail.com> wrote: > I see a book coming: > "666 ways to do the same thing in R ranked by sexiness." > > Kidding aside, if you look under the covers of some of the functions we > are
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...so providing me suggestion. For conflicting issue, What I tried was to add dplyr::pivot_longer or tidyr:: pivot_longer, but still not resolved the problem. I will restart from the first line my code, it will work again and then I will track down. Thank you, Ding From: CALUM POLWART <polc1410 at gmail.com> Sent: Wednesday, June 12, 2024 10:52 AM To: Yuan Chun Ding <ycding at coh.org> Cc: r-help at r-project.org Subject: Re: [R] my R code worked well when running the first 1000 lines of R code I sometimes think people on this list are quite rude to posters. I'm afraid I'...
2024 Jul 21
0
Using the pipe, |>, syntax with "names<-"
Thanks, Calum. That was exactly what Duncan Murdoch proposed earlier in this thread, except, of course, he had to explicitly write the function first. -- Bert On Sun, Jul 21, 2024 at 8:12?AM CALUM POLWART <polc1410 at gmail.com> wrote: > > The tidy solution is rename > > literally: > > z |> rename(foo = 2) > > Or you could do it with other functions > > z |> select ( 1, foo = 2) > > Or > > z |> mutate( foo = 2 ) |> # untested (always worry that makes th...
2024 Sep 25
1
Problem with converting grib file to excel
At least for me the dataset file did not come through. I will look at it if it can be made available. It does look like the finial step of reading the data into raster failed, so then did the rest of th commands. -Roy > On Sep 25, 2024, at 3:24 PM, CALUM POLWART <polc1410 at gmail.com> wrote: > > Noticeable lack of silence in the group on this one. > > I've not got time to test currently. But my experience of geo location > files - they often had more than 2 dimensional data. In other words you > might have a boundary of a region as an obj...
2024 Sep 17
1
(no subject)
Hmmm... typos and thinkos ? Maybe: mean_narm<- function(x) { m <- mean(x, na.rm = T) if (is.nan (m)) NA else m } -- Bert On Mon, Sep 16, 2024 at 4:40?PM CALUM POLWART <polc1410 at gmail.com> wrote: > > Rui's solution is good. > > Bert's suggestion is also good! > > For Berts suggestion you'd make the list bit > > list(mean = mean_narm) > > But prior to that define a function: > > mean_narm<- function(x) { > > m &...
2024 Feb 09
1
Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
I don't use term, but I've just tested it and this is reproducable. Is it a bug? Not sure. If you hit c after getting the message it will cancel the q() request. On Fri, 9 Feb 2024, 17:21 Duncan Murdoch, <murdoch.duncan at gmail.com> wrote: > That looks to me like a bug, but I don't use Windows any more, so I > won't offer to try to fix it for you. In fact I
2024 Sep 26
1
Problem with converting grib file to excel
...not come through. I will look at it >> if it can be made available. It does look like the finial step of reading >> the data into raster failed, so then did the rest of th commands. >> >> -Roy >> >> >> > On Sep 25, 2024, at 3:24 PM, CALUM POLWART <polc1410 at gmail.com> wrote: >> > >> > Noticeable lack of silence in the group on this one. >> > >> > I've not got time to test currently. But my experience of geo location >> > files - they often had more than 2 dimensional data. In other words you >&...