search for: harmse

Displaying 20 results from an estimated 21 matches for "harmse".

Did you mean: harms
2023 Nov 03
1
[EXTERNAL] RE: I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...hat will halve the number of multiplications. If you?re looking for such optimisations then you can also consider ifelse(G=='male', 65L, 58L). That will definitely use less time & memory if WC is integer, but the trade-offs are more complicated if WC is floating point. Regards, Jorgen Harmse. From: avi.e.gross at gmail.com <avi.e.gross at gmail.com> Date: Friday, November 3, 2023 at 16:12 To: Jorgen Harmse <JHarmse at roku.com>, r-help at r-project.org <r-help at r-project.org>, mkzaman.m at gmail.com <mkzaman.m at gmail.com> Subject: [EXTERNAL] RE: [R] I nee...
2023 Nov 03
2
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...df, ifelse(G=='male', (WC-65)*TG, (WC-58)*TG)) since WC and TG are not conditional, would this be a slight improvement? df$LAP <- with(df, TG*(WC - ifelse(G=='male', 65, 58))) -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Jorgen Harmse via R-help Sent: Friday, November 3, 2023 11:56 AM To: 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 category variables. df$LAP <- with(df, ifelse(G=='male', (WC-65)*TG, (WC-...
2024 Apr 08
1
duplicated() on zero-column data frames returns empty
...to issue a warning that the change is coming in a future version.) The protection for old code could be just a warning that can be turned off with a call to options. The new documentation should be more explicit. Regards, Jorgen. From: Mark Webster <markwebster204 at yahoo.co.uk> To: Jorgen Harmse <jharmse at roku.com>, Ivan Krylov <ikrylov at disroot.org> Cc: "r-help at r-project.org" <r-help at r-project.org> Subject: Re: [R] duplicated() on zero-column data frames returns empty Message-ID: <603481690.9150754.1712522666289 at mail.yahoo.com> Conten...
2023 Nov 03
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
df$LAP <- with(df, ifelse(G=='male', (WC-65)*TG, (WC-58)*TG)) That will do both calculations and merge the two vectors appropriately. It will use extra memory, but it should be much faster than a 'for' loop. Regards, Jorgen Harmse. ------------------------------ Message: 8 Date: Fri, 3 Nov 2023 11:10:49 +1030 From: "Md. Kamruzzaman" <mkzaman.m at gmail.com> To: r-help at r-project.org Subject: [R] I need to create new variables based on two numeric variables and one dichotomize conditional category...
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 May 13
1
duplicated() on zero-column data frames returns empty
>?If you would like to try your hand at developing a patch and make a > case for it at R-devel or the Bugzilla, the resources at > <https://contributor.r-project.org/> can be helpful. I am attempting to get admitted onto the Bugzilla at the moment for the data frame cases, fingers crossed! Best Regards,Mark Webster [[alternative HTML version deleted]]
2018 Aug 03
0
glm Argument-Evaluation Does Not Match Documentation.
...rom `data` whose parent is `environment(formula)`.) Side effects of evaluating the arguments will usually NOT occur in the caller's frame." I think this is correct, but what really happens is inside other functions with unusual argument evaluation, so I'm not certain. Regards, Jorgen Harmse Sam?s Club Technology Phone 512.633.2226 jorgen.harmse at samsclub.com This e-mail and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this e-mail in error, destroy it immediately. Wal-Mart Con...
2024 Mar 20
1
Building Packages.
I have a source file with oxygen-style comments (and description & licence files), and I?m trying to build a package. oxygen & devtools seem to work, and the tarball exists, but install.packages balks. Does anyone know what?s happening? Regards, Jorgen Harmse. > roxygenise(package.dir,clean=TRUE) Setting `RoxygenNote` to "7.3.1" ? roxygen2 requires "Encoding: UTF-8" ? Current encoding is NA ? Loading jhBase Warning: ?? Conflicts ????????????????????????????????????????????????????????????????????????????????????????????????...
2023 Nov 06
0
I need to create new variables based on two numeric variables and one dichotomize conditional category
...ts or confusing argument names.") return(L[[1L]]) } if (missing(yes1)) { if (length(L <- list(...)) != 0L) stop("Wrong number of arguments or confusing argument names.") return(test1) } return( ifelse(test1, yes1, ifelses(...)) ) } Regards, Jorgen Harmse (not Jordan). ------------------------------ Message: 10 Date: Sat, 4 Nov 2023 01:08:03 -0400 From: <avi.e.gross at gmail.com> To: "'Jorgen Harmse'" <JHarmse at roku.com> Cc: <r-help at r-project.org> Subject: Re: [R] [EXTERNAL] RE: I need to create new variabl...
2024 Mar 20
1
Building Packages.
...the utils > package. > > Duncan Murdoch > >> >> Duncan Murdoch >> >>> >>> ????? Ben Bolker >>> >>> On 2024-03-20 12:13 p.m., Ivan Krylov via R-help wrote: >>>> ? Wed, 20 Mar 2024 16:02:27 +0000 >>>> Jorgen Harmse via R-help <r-help at r-project.org> ?????: >>>> >>>>>> install.packages(tar,type='source',repos=NULL) >>>>> >>>>> Error in library(jhBase) : there is no package called ?jhBase? >>>>> >>>>> Execu...
2024 Mar 20
2
Building Packages.
...t that RStudio replaces the install.packages object in the utils package. Duncan Murdoch > > Duncan Murdoch > >> >> Ben Bolker >> >> On 2024-03-20 12:13 p.m., Ivan Krylov via R-help wrote: >>> ? Wed, 20 Mar 2024 16:02:27 +0000 >>> Jorgen Harmse via R-help <r-help at r-project.org> ?????: >>> >>>>> install.packages(tar,type='source',repos=NULL) >>>> >>>> Error in library(jhBase) : there is no package called ?jhBase? >>>> >>>> Execution halted >>>...
2023 Nov 05
1
I need to create new variables based on two numeric variables and one dichotomize conditional category variables.
...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 category variables. I might have factored the gender. I'm not sure it would in any way be quicker. But...
2024 Mar 21
1
Building Packages.
...;> >>> >>> Duncan Murdoch >>> >>>> >>>> ????? Ben Bolker >>>> >>>> On 2024-03-20 12:13 p.m., Ivan Krylov via R-help wrote: >>>>> ? Wed, 20 Mar 2024 16:02:27 +0000 Jorgen Harmse via >>>>> R-help <r-help at r-project.org> ?????: >>>>> >>>>>>> install.packages(tar,type='source',repos=NULL) >>>>>> >>>>> Error in library(jhBase) : there is no package called &...
2024 Mar 21
1
Building Packages.
...valid use or is it something that just happens to work on the utils version if not patched? -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Duncan Murdoch Sent: Thursday, March 21, 2024 5:53 AM To: peter dalgaard <pdalgd at gmail.com> Cc: Jorgen Harmse <JHarmse at roku.com>; r-help at r-project.org; Martin Maechler <maechler at stat.math.ethz.ch> Subject: Re: [R] Building Packages. Yes, you're right. The version found in the search list entry for "package:utils" is the RStudio one; the ones found with two or three co...
2024 Mar 21
1
Building Packages.
> Turns out that RStudio replaces the install.packages object in the utils > package. > Duncan Murdoch So RStudio unlocks the bindings and alters the exported environment? That seems like another reason to stick to the terminal interface. >> Thank you. tools:::.install_packages works. > I'm glad it works, but it shouldn't be necessary to use (and is not > part of
2024 Apr 07
1
duplicated() on zero-column data frames returns empty
? Fri, 5 Apr 2024 16:08:13 +0000 Jorgen Harmse <JHarmse at roku.com> ?????: > if duplicated really treated a row name as part of the row then > any(duplicated(data.frame(?))) would always be FALSE. My expectation > is that if key1 is a subset of key2 then all(duplicated(df[key1]) >= > duplicated(df[key2])) should always be...
2024 May 12
1
duplicated() on zero-column data frames returns empty
(Sorry for only getting back to this more than a month later.) ? Mon, 8 Apr 2024 17:03:00 +0000 Jorgen Harmse <JHarmse at roku.com> ?????: > What is the policy for changing something that is wrong? There is a > trade-off between breaking old code that worked around a problem and > breaking new code written by people who make reasonable assumptions. First of all, quantify the breakage. Does...
2024 May 21
0
Listing folders on One Drive
...recursive=TRUE, include.dirs=TRUE)) path could be the OneDrive directory or Scotland (and is not needed if you're already in the directory you want). Then rownames(subset(fi, isdir)) will contain all the directories. Maybe you want to use grep or other machinery to thin it out. Regards, Jorgen Harmse.? ---------------------------------------------------------------------- Message: 1 Date: Mon, 20 May 2024 14:36:58 +0100 From: Nick Wray <nickmwray at gmail.com <mailto:nickmwray at gmail.com>> To: r-help at r-project.org <mailto:r-help at r-project.org> Subject: [R] Listing f...
2024 Mar 21
1
Building Packages.
...s to work on the utils version if not > patched? > > > > -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Duncan Murdoch > Sent: Thursday, March 21, 2024 5:53 AM > To: peter dalgaard <pdalgd at gmail.com> > Cc: Jorgen Harmse <JHarmse at roku.com>; r-help at r-project.org; Martin Maechler > <maechler at stat.math.ethz.ch> > Subject: Re: [R] Building Packages. > > Yes, you're right. The version found in the search list entry for > "package:utils" is the RStudio one; the ones fou...
2024 Apr 05
1
duplicated() on zero-column data frames returns empty
(I do not know how to make Outlook send plain text, so I avoid apostrophes.) For what it is worth, I agree with Mark Webster. The discussion by Ivan Krylov is interesting, but if duplicated really treated a row name as part of the row then any(duplicated(data.frame(?))) would always be FALSE. My expectation is that if key1 is a subset of key2 then all(duplicated(df[key1]) >=