Re: [R] 4.5.0: Do NOT just copy library folder and update.packages()

2025-04-25 Thread Jeff Newmiller via R-help
Don't copy installed packages. There are also periodically changes in the compiler toolchain, and many packages have compiled code in them that can misbehave if you mix old compiled code and new compiled code. The kinds of errors you get can range from minor random answers to crashing R.

[R] 4.5.0: Do NOT just copy library folder and update.packages()

2025-04-25 Thread Peter Dalgaard via R-help
.5.0. One of them has tools in the 4.4 library and the other does not. I have no clue what the difference might be -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@c

Re: [R] How to find inverse of glm model?

2025-04-24 Thread Gregg Powell via R-help
nt"), lin)) : > > > NA/NaN/Inf in foreign function call (arg 5) > > > ``` > > > How can I properly set this regression model? > > > Thank you > > > > > On Wed, Apr 16, 2025 at 7:08 AM Luigi Marongiu marongiu.lu...@gmail.com > &g

Re: [R] Estimating regression with constraints in model coefficients

2025-04-24 Thread Gregg Powell via R-help
- Constraint functions: sum(β) = 1.60 and increasing cutpoints - Optimization via nloptr() Hopefully, you’ll be able to run it locally with only the VGAM, foreign, and nloptr packages. I’ll send the .R file along with the next email. A best attempt, anyway. r/ Gregg “Oh, what fun it is

Re: [R] How to find inverse of glm model?

2025-04-23 Thread Gregg Powell via R-help
& Statistics > > > University of Melbourne, VIC 3010 Australia > > > Tel: (+61) 0403 138 955 > > > Email: a...@unimelb.edu.au > > > Website: https://researchers.ms.unimelb.edu.au/~apro@unimelb/ > > > > > > I acknowledge the Traditional Ow

Re: [R] Estimating regression with constraints in model coefficients

2025-04-23 Thread Gregg Powell via R-help
lel with theory, if you'd like a working R example coded from scratch — with: • a custom likelihood for an ordinal (cumulative logit) model, • fixed thresholds / no intercept, • coefficient bounds, • and a sum constraint on β I’d be happy to attempt that using nloptr() or constrOptim(). You

Re: [R] Estimating regression with constraints in model coefficients

2025-04-21 Thread Jeff Newmiller via R-help
, Christofer Bogaso wrote: >Hi Gregg, > >I am sincerely thankful for this workout. > >Could you please suggest any text book on how to create log-likelihood >for an ordinal model like this? Most of my online search point me >directly to some R function etc, but a theoretical discus

Re: [R] Estimating regression with constraints in model coefficients

2025-04-21 Thread Gregg Powell via R-help
Christofer, Given the constraints you mentioned—bounded parameters, no intercept, and a sum constraint—you're outside the capabilities of most off-the-shelf ordinal logistic regression functions in R like vglm or polr. The most flexible recommendation at this point is to implement c

Re: [R] problem with my base_df function ?

2025-04-16 Thread varin sacha via R-help
the following error , at the following point in the code ..." ) On 2025-04-16 12:11 p.m., varin sacha via R-help wrote: > R-experts, > > The R script here below. > > How to solve my problem ? > > Best, > > > ## > # Load packa

[R] problem with my base_df function ?

2025-04-16 Thread varin sacha via R-help
R-experts, The R script here below. How to solve my problem ?  Best, ## # Load packages   install.packages("remotes") remotes::install_github("bd2kccd/r-causal")   # Install 'gssr' from 'ropensci' universe install.packag

Re: [R] How to find inverse of glm model?

2025-04-15 Thread Andrew Robinson via R-help
y of Melbourne, VIC 3010 Australia Tel: (+61) 0403 138 955 Email: a...@unimelb.edu.au Website: https://researchers.ms.unimelb.edu.au/~apro@unimelb/ I acknowledge the Traditional Owners of the land I inhabit, and pay my respects to their Elders. On 16 Apr 2025 at 1:01 AM +1000, Gregg Powell via R-

Re: [R] How to find inverse of glm model?

2025-04-15 Thread Gregg Powell via R-help
tted a glm model to some data; how can I find the inverse > function of this model? Since I don't know the y=f(x) implemented by > glm (this works under the hood), I can't define a f⁻¹(y). > Is there an R function that can find the inverse of a glm model? > Thank you. > > The

Re: [R] Drawing a sample based on certain condition

2025-04-15 Thread Jeff Newmiller via R-help
ng execution >time? Are you planning on looking at all t and T within a range? > >Tim > >-Original Message- >From: R-help On Behalf Of Bert Gunter >Sent: Monday, April 14, 2025 4:16 PM >To: Duncan Murdoch >Cc: r-help@r-project.org >Subject: Re: [R] Drawing a sa

Re: [R] An opinion question, please

2025-04-10 Thread Jeff Newmiller via R-help
remains handled as arguments and return values rather than as data in the object itself. The lm class in base R uses a "constructor computes and methods retrieve results" approach... which isn't quite as flexible as a transformer approach but still hides the gory details. My re

[R] Error in running get_acs()

2025-04-09 Thread Deana Kittaneh via R-help
Hi R team!     Since last Friday 04/04, my team and I have faced an error with running  the 'get_acs()' command from the tidycensus package. The code we ran and the error message we received are shown below. Our troubleshooting efforts showed that: 1. When we run the code with

Re: [R] Estimating regression with constraints in model coefficients

2025-04-08 Thread Gregg Powell via R-help
there are ways to implement constraints on parameter estimates in ordinal logistic regression in R. Here are a few approaches: The rms package (Regression Modeling Strategies) by Frank Harrell offers the lrm function which can handle constraints through its penalty parameter, though it&#

Re: [R] Request to Unsubscribe from R Forum Replies

2025-04-07 Thread David Winsemius via R-help
ote: > > Hello, > > I would like to request the removal of my email address from the R forum > reply/update list. I no longer wish to receive notifications or messages > related to forum discussions. > > Thank you for your attention and understanding. > > Best re

Re: [R] Setting up hypothesis tests with the infer library?

2025-04-05 Thread Kevin Zembower via R-help
all been simulations, bootstraps, randomized distributions, etc. Thank you, again, Rui and Michael, for your help for me. -Kevin On Sat, 2025-03-29 at 16:42 +, Rui Barradas wrote: > Às 16:09 de 29/03/2025, Kevin Zembower via R-help escreveu: > > Hello, all, > > > > We'r

Re: [R] Setting up hypothesis tests with the infer library?

2025-03-31 Thread Kevin Zembower via R-help
in my statistics class and how I was doing it in R. Thanks, all who contributed to this thread. Thanks, again, Neal, for your help. -Kevin On Sat, 2025-03-29 at 13:46 -0700, Neal Fultz wrote: > > > > I've been setting up problems like this with code similar to: > > ==

Re: [R] Setting up hypothesis tests with the infer library?

2025-03-29 Thread David Winsemius via R-help
> On Mar 29, 2025, at 9:59 AM, Kevin Zembower via R-help > wrote: > > Hi, Rui and Michael, thank you both for replying. > > Yeah, I'm not supposed to know about Chi-squared yet. So far, all of > our work with hypothesis tests has involved creating the sample dat

[R] Setting up hypothesis tests with the infer library?

2025-03-29 Thread Kevin Zembower via R-help
Hello, all, We're now starting to cover hypothesis tests in my Stats 101 course. As usual in courses using the Lock5 textbook, 3rd ed., the homework answers are calculated using their StatKey application. In addition (and for no extra credit), I'm trying to solve the problems using R. I

[R] 3 way crosstable not working

2025-03-25 Thread varin sacha via R-help
Dear R-experts, Here below a toy example not working. After some researches on the Net, still don't get it ! Many thanks for your precious help. # library(knitr) library(ggplot2) library(pollster) library(dplyr)   statut=c("married","not ma

Re: [R] PLOTTING ODE MODEL RESULTS USING PLOT.DESOLVE FROM THE DESOLVE PACKAGE

2025-03-25 Thread Jeff Newmiller via R-help
rvations. I checked the >vignettes but did not see this incorporated. > >Mariam. > > [[alternative HTML version deleted]] > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/ma

Re: [R] how to create model matrix of second order terms

2025-03-25 Thread Stephen Bond via R-help
025, Stephen Bond via R-help escreveu: > > Folks, > > > > I appreciate your effort, but maybe I was not explicit enough, so > > let > > me try again. > > > > The current setup for formulas does not allow for I(x^2) terms as > > explained

Re: [R] how to create model matrix of second order terms

2025-03-24 Thread Stephen Bond via R-help
entertain > others, and entertain herself." > > > > On Mon, Mar 24, 2025 at 12:22 AM Stephen Bond via R-help > wrote: > > I am sending to this forum as stackoverflow has devolved into sth > > pretty bad. > > Below code shows how to get what I want in a clu

[R] how to create model matrix of second order terms

2025-03-24 Thread Stephen Bond via R-help
tor crossings using formula a*b*c and then cross with the numerics, which is even more clumsy. Thanks everybody ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Failure to install any packages: "malformed"

2025-03-20 Thread Ivan Krylov via R-help
re") to see if anything is different, but it probably won't be. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.

[R] Why I wrote my MWE the way I did. [WAS:] Re: What don't I understand about sample()?

2025-03-17 Thread Kevin Zembower via R-help
ure that at some point in the 15 years that I've been aware of and using R, read.csv() would not do that. I didn't do a lot with R during the time that the tidyverse was developed and became popular; I had to learn it fresh just a few years ago, when I kind of came back to R. I

Re: [R] MacPorts install of data.table lacks openmp support

2025-03-17 Thread Ivan Krylov via R-help
Hello Naresh, If you don't get a good answer here, consider asking later at r-sig-...@r-project.org. В Sun, 16 Mar 2025 20:28:49 + Naresh Gurbuxani пишет: > I installed gfortran 14.2 using package available at > https://mac.r-project.org. Then I installed openmp support (17.0

Re: [R] What don't I understand about sample()?

2025-03-17 Thread Jeff Newmiller via R-help
The original question was about sample, a base R function. Dragging in tidyverse along the way could be regarded as complicating the question unnecessarily, but in some cases there can be undesirable or simply unexpected interactions between functions drawn from different packages. Such

Re: [R] What don't I understand about sample()?

2025-03-15 Thread Kevin Zembower via R-help
bly lazy in not determining which of the multiple functions in the tidyverse library loads read_csv(), and just using that one. Thanks, again, for helping me to further understand R and this problem. -Kevin On Sat, 2025-03-15 at 12:00 +0100, r-help-requ...@r-project.org wrote: > Not having t

[R] [SPAM | WERBUNG] Re: What don't I understand about sample()?

2025-03-15 Thread Kevin Zembower via R-help
oid the trouble of typing the variable into R to verify the contents. My work is all contained in a Rmarkdown file, that I finally export and file with my notes from class to help me study for exams. Thank you, again, for your generous help for me. -Kevin On Sat, 2025-03-15 at 12:00 +0100, r

Re: [R] What don't I understand about sample()?

2025-03-14 Thread Kevin Zembower via R-help
t;- apply(random.samples, 1, compute.diff.means)) === I think both of these methods give me the data I'm trying for. Any suggestions on my R coding techniques are welcome. Thank you all, again, for taking the time and effort to help me. Your help is greatly appreciated.

Re: [R] What don't I understand about sample()?

2025-03-14 Thread Jorgen Harmse via R-help
Date: Thu, 13 Mar 2025 21:00:26 + From: Kevin Zembower To: r-help@r-project.org Subject: [R] What don't I understand about sample()? Message-ID: <01000195914ef9c4-7adadf5d-0069-4794-af09-454452b71c3d-000...@email.amazonses.com> Content-Type: text/plain; charset="ut

Re: [R] R GUI randomly resizes. Is this a known bug?

2025-03-13 Thread Ivan Krylov via R-help
Best regards, Ivan ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] What don't I understand about sample()?

2025-03-13 Thread Kevin Zembower via R-help
t in class, along with its StatKey web application. I'm just trying to get more out of the class by also solving our problems using R, for which I'm not receiving any class credit. __________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mo

Re: [R] Number changed weirdly when converting to numeric

2025-03-09 Thread Jeff Newmiller via R-help
4-converter/). > >Seems that decimal-to-float conversion has a bug on arm64. Note that I get the >same result with > >> x <- -177253333.33343267441 > >so it's not specific to as.numeric(). > >Best, >Stephanie > > > > >> On 9 Ma

Re: [R] Number changed weirdly when converting to numeric

2025-03-09 Thread Jeff Newmiller via R-help
https://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f https://0.30004.com/ On March 9, 2025 10:12:47 AM PDT, Christofer Bogaso wrote: >Hi, > >I have below simple conversion > >> sprintf("%0.15f", as.numeric

Re: [R] Issue with littler vs. R and source()

2025-03-08 Thread Steve Martin via R-help
Hi John, Does it work if you run R CMD r -i FailBill.R? Steve Original Message On 3/7/25 10:45, J C Nash wrote: > I want to use littler (i.e. "r -i ") to run an R script so I can > set up a clickable icon for a program which uses package staplr. > Act

Re: [R] Failed to convert data to numeric

2025-03-03 Thread Ivan Krylov via R-help
418180 6.7775277 > 3.2080840 > > [7] 4.1932877 0.3782577 4.6589550 NA There's an invisible Unicode character in there, U+FEFF ZERO WIDTH NO-BREAK SPACE: > dat2 |> tail(1) |> tools::showNonASCII() 1: -9.8814740 Try as.numeric(gsub('\ufeff

Re: [R] [Tagged] Re: Failed to convert data to numeric

2025-03-03 Thread Jeff Newmiller via R-help
?tools::showNonASCII On March 3, 2025 12:09:22 AM PST, Ivan Krylov via R-help wrote: >В Mon, 3 Mar 2025 13:21:31 +0530 >Christofer Bogaso пишет: > >> Is there any way to remove all possible "Unicode character" that may >> be present in the array at once? >

Re: [R] Failed to convert data to numeric

2025-03-03 Thread Ivan Krylov via R-help
ps://regex101.com/>. -- Best regards, Ivan ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Code \255 no longer working to produce a short dash in base R PDF graphs

2025-02-21 Thread Paul Sherliker via R-help
Ivan Krylov wrote: >> text(1, 11, "baseline\255defined") >> text(1, 9, "done") >> graphics.off() >> >> They like that dash - but I never knew what it was called. >> >> Recently work updated my PC to the latest version of Wi

Re: [R] Problems with package nlme

2025-02-20 Thread Ivan Krylov via R-help
Dear Stephan Weinbruch, I'm afraid it's data(RatPupWeight, package = 'nlme'). -- Best regards, Ivan __________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Code \255 no longer working to produce a short dash in base R PDF graphs

2025-02-20 Thread Ivan Krylov via R-help
В Wed, 19 Feb 2025 11:36:15 + Paul Sherliker via R-help пишет: > text(1, 11, "baseline\255defined") > text(1, 9, "done") > graphics.off() > > They like that dash - but I never knew what it was called. > > Recently work updated my PC to the late

[R] Code \255 no longer working to produce a short dash in base R PDF graphs

2025-02-20 Thread Paul Sherliker via R-help
quot;myfile.pdf") plot(1, 10) text(1, 11, "baseline\255defined") text(1, 9, "done") graphics.off() They like that dash - but I never knew what it was called. Recently work updated my PC to the latest version of Windows, and, perforce, I updated to the latest version of R (4.4.

Re: [R] install.packages and package dependencies

2025-02-13 Thread Achim Zeileis via R-help
Apparently not just to Roger...sorry for spamming the entire list! In any case, I hope really do hope that this helps to resolve the issue. Ari, let us know if we can help with anything else. Best wishes, Achim On Thu, 13 Feb 2025, Achim Zeileis via R-help wrote: Roger, just to you

Re: [R] install.packages and package dependencies

2025-02-13 Thread Achim Zeileis via R-help
Roger, just to you: Thanks for taking the time! I hope that Ari follows your recommendation, fingers crossed. Best wishes, Achim On Thu, 13 Feb 2025, Roger Bivand via R-help wrote: Ari, There were multiple errors in the acs package. If CRAN states that the maintainer abandoned it, that

Re: [R] install.packages and package dependencies

2025-02-13 Thread Roger Bivand via R-help
rst. This was discussed in 2019 in https://blog.r-project.org/2019/11/09/when-you-think-class.-think-again/index.html 3) The first lines of configure and cleanup were #! /bin/bash - see https://cran.r-project.org/doc/manuals/r-devel/R-ints.html#index-_005fR_005fCHECK_005fBASHISMS_005f for why this isn&

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-13 Thread H B via R-help
Hi Jeff, you are obviously right and I would usually load packages before, but in this case it was a saved R object that I had not created, and therefore did not know what to expect. I was prepared to get an error message, but not getting an error or at least a warning and then getting the

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-13 Thread H B via R-help
can get two different results when trying to access the  same object in the same  way,  without any error or warning message. Thanks again! Best regards Hilmar On 12.02.25 14:09, Ivan Krylov wrote: В Tue, 11 Feb 2025 13:51:48 +0100 H B via R-help пишет: > class(d) [1] "dgCMatr

[R] Reverse dependency checking

2025-02-13 Thread Lenth, Russell V via R-help
Dear R-Help, When I submit an update to one of my packages, I decided to try to avoid having to fix errors that sometimes occur in CRAN's reverse-dependency checks by performing the same checks ahead of time. From what I can tell, the way to do this is to use tools::check_packages_i

Re: [R] install.packages and package dependencies

2025-02-13 Thread Achim Zeileis via R-help
On Thu, 13 Feb 2025, arilamst...@gmail.com wrote: Duncan and Berwin, Thank you for your help. I really wanted confirmation from someone more experienced than me that I wasn't missing something. It looks like there is no way to do this in one line in base R, and that's fine. For

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-12 Thread Ivan Krylov via R-help
В Tue, 11 Feb 2025 13:51:48 +0100 H B via R-help пишет: > > class(d) > [1] "dgCMatrix" > attr(,"package") > [1] "Matrix" > > dim(d) > Loading required package: Matrix > NULL Here's what happens here: 1. .Primitive("dim&q

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-11 Thread Jeff Newmiller via R-help
Why aren't you loading the package before you load the object that assumes the relevant methods for that object are available? On February 11, 2025 4:51:48 AM PST, H B via R-help wrote: >Dear all, > >I just stumbled on this behavior - not sure if this is expected: > >R ve

[R] Unexpected result after auto-attaching of the Matrix package

2025-02-11 Thread H B via R-help
Dear all, I just stumbled on this behavior - not sure if this is expected: R version 4.4.2 (2024-10-31) -- "Pile of Leaves" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu > library(Matrix) > sparseMatrix(i=1:10, j=1:10, x=rnorm

Re: [R] pairs plot

2025-02-07 Thread Ranjan Maitra via R-help
Bert, Thanks very much! Oops! I can not believe I completely missed this! Best wishes, Ranjan On Thu Feb06'25 08:15:45AM, Bert Gunter wrote: > From: Bert Gunter > Date: Thu, 6 Feb 2025 08:15:45 -0800 > To: Ranjan Maitra > Cc: R-Help > Subject: Re: [R] pairs plot

[R] pairs plot

2025-02-06 Thread Ranjan Maitra via R-help
or: object 'panel.hist' not found I know that this used to work in the past so I wonder if this was changed and the documentation was not corrected. Anyway, what is the current way of doing this? Many thanks and best wishes, Ranjan __________ R-help@r

Re: [R] Looking for simple line-splitting code

2025-02-05 Thread Mohammad Tanvir Ahamed via R-help
:   lines <- strsplit(x, "\n")   lines[sapply(lines, length) == 0] <- list("")   lines <- unlist(lines) Surely there's a simpler way to do this?  I'd like to use just base functions, no other packages. Duncan Murdoch __

[R] Error when loading optimx package and a solution

2025-02-05 Thread Marc Girondot via R-help
Dear R-help members Since this morning (5/2/2025), I get an error when I try to load optimx package. I solve it and I send my solution but if someone has a better idea or understand what's happened, I will be most happy to know. MacOSX 15.3 R 4.4.2 nlopt installed using brew install

Re: [R] R CMD check says no visible binding for global variable

2025-01-29 Thread Jorgen Harmse via R-help
Hi Naresh Gurbuxani, There are already several answers dealing with the specific code that you wrote, but my reaction is to step back a little. R CMD � starts an R session but takes standard input from a file. (In Unix-like systems you might even be able to make an R script into an executable

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-21 Thread Ivan Krylov via R-help
e underlying issue is that somehow the code gave a function call instead of a data.frame or a matrix as an argument to write.table: write.table(quote(any_function())) It may help to run the script with options(error = recover) set or make use of other debugging tips in the free book R Inferno <h

Re: [R] [External] Re: Parser For Line Number Tracing

2025-01-19 Thread luke-tierney--- via R-help
On Sun, 19 Jan 2025, Ivo Welch wrote: Hi Duncan — Wonderful. Thank you. Bug or no bug, I think it would be a huge improvement for user-friendliness if R printed the last line by default *every time* a script dies. Most computer languages do so. Should I file it as a request for improvement

Re: [R] Test For Difference of Betas By Group in car

2025-01-19 Thread David Winsemius via R-help
— >> David >> Sent from my iPhone >> >>>> On Jan 19, 2025, at 10:00 AM, Sparks, John via R-help >>>> wrote: >>> >>> Hello R-Helpers, >>> >>> I was looking into how to test whether the beta coefficient from a >>&

Re: [R] Test For Difference of Betas By Group in car

2025-01-18 Thread David Winsemius via R-help
Sent from my iPhone > On Jan 19, 2025, at 1:57 PM, David Winsemius wrote: > > I don’t understand why you don’t include the full text of the error. > > — > David > Sent from my iPhone > >> On Jan 19, 2025, at 10:00 AM, Sparks, John via R-help >> wrot

Re: [R] Test For Difference of Betas By Group in car

2025-01-18 Thread David Winsemius via R-help
I don’t understand why you don’t include the full text of the error. — David Sent from my iPhone > On Jan 19, 2025, at 10:00 AM, Sparks, John via R-help > wrote: > > Hello R-Helpers, > > I was looking into how to test whether the beta coefficient from a regression >

[R] Test For Difference of Betas By Group in car

2025-01-18 Thread Sparks, John via R-help
Hello R-Helpers, I was looking into how to test whether the beta coefficient from a regression would be the same for two different groups contained in the dataset for the regression. When I put that question into google, AI returned a very nice looking answer (and a couple of variations on it

Re: [R] Parser For Line Number Tracing

2025-01-18 Thread Jeff Newmiller via R-help
you already have problems you have not admitted to... such things (large top-level scripts) are monsters that will swallow you whole at the slightest change in R, packages, or data. [1] https://rstudio-education.github.io/hopr/debug.html On January 18, 2025 3:41:18 PM PST, Ivo Welch wrote: &g

Re: [R] Installing R and RStudio - Contact Software Manufacturer Error URGENT

2025-01-15 Thread Marc Schwartz via R-help
Hi Eliana, It is not clear which application is causing the error. As you are running macOS 13.3 (Ventura) and that you are trying to install both R and RStudio (two separate applications from two different entities), please confirm that you downloaded the correct version of R for your Mac

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
В Tue, 14 Jan 2025 14:23:54 + "Huseni, Sadamhusen" пишет: > ###***Session information from Linux version 8 > R version 4.4.1 (2024-06-14) > Platform: x86_64-redhat-linux-gnu > Running under: Red Hat Enterprise Linux 8.10 (Ootpa) > > Matrix products: defau

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
gt; library(lubridate) > library(tis) > library(tsoutliers) Could you identify and share the parts of the script that launch the computation in parallel? -- Best regards, Ivan ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Extracting specific arguments from "..."

2025-01-07 Thread Jorgen Harmse via R-help
Interesting discussion. A few things occurred to me. Apologies to Iris Simmons: I mixed up his answer with Bert's question. Bert raises questions about promises, and I think they are related to John Sorkin's question. A big difference between R and most other languages is that

Re: [R] Extracting specific arguments from "..."

2025-01-06 Thread Jeff Newmiller via R-help
function a string to label the new item with. I must say playing around with ... seems tediously unpleasant to me... to each their own though. I prefer to let R handle that... if I want to tweak a variable being passed I just declare the parameter explicitly and pass it along explicitly. As long as

Re: [R] Extracting specific arguments from "..."

2025-01-06 Thread Jeff Newmiller via R-help
It is a pretty tricky topic, but IMO Advanced R [1] steps you through it systematically... you just have to be prepared to follow along in R with the examples as you read it. In particular, the chapter on Functions goes through this. The subtleties of how base R gives you control over these

Re: [R] Extracting specific arguments from "..."

2025-01-06 Thread Jorgen Harmse via R-help
to extract the expression without evaluating it? g <- function(...) { pos <- match('a',...names()) if (is.na(pos)) stop("a is missing.") (function(a,...) substitute(a)) (...) } Regards, Jorgen Harmse. Message: 8 Date: Sun, 5 Jan 2025 11:17:02 -0800 From

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Sparks, John via R-help
s to parse the result. The programming in R to get the initial data is html <- read_html("https://fmpcloud.io/api/v4/historical-price-full/ABI/2005-01-04?apikey=1af241eb87c43cfa7e124419cb180d7e";) Any (additional) guidance would be appreciated. --John Sparks __

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Ivan Krylov via R-help
В Sun, 5 Jan 2025 20:03:11 + "Sparks, John via R-help" пишет: > > mystring > {xml_nodeset (1)} > [1] {\n "symbol": "ABI",\n "open": 21.04,\n "high": 21.05,\n > "low": 20.06,\n "close": 20.2,\n &quo

[R] Help Parsing String? From HTML

2025-01-05 Thread Sparks, John via R-help
more experience at html parsing than me who can see a way to solve this in minutes. Any guidance would be appreciated. --John Sparks [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see htt

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
I don't see atr_df appearing in my current directory. Also, I assume that the input data frame is named ohlc? Or am I missing something. Thanks, --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-projec

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
Thanks! Appears helpful and the quick turnaround is very much appreciated. I'll do some testing now. --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-project.org Subject: Re: Using library(TTR) Calculate A

[R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
, 417.79, 415.49, 412.87, 417, 418.79, 427.99, 422.99, 423.46, 430.98, 431.2, 437.42, 442.62, 443.57, 446.02, 443.33, 448.99, 449.56, 447.27, 451.59, 454.46, 437.39, 437.03, 436.6, 435.25, 439.33, 438.11, 430.53, 424.83, 421.5, 418.58, 423.35), adjClose = c(222.48, 227.23, 226.96, 224.23, 224.23, 22

Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivan Krylov via R-help
ally, using a parallel "socket cluster" (but not "fork cluster") would have avoided the problem by starting a fresh process from scratch, without any inherited locks. It may also be possible to disable the use of parallel threads in your BLAS/LAPACK, but the exact procedure depen

Re: [R] Citation for stock price data from Quantmod

2024-12-30 Thread Jeff Newmiller via R-help
searchers should rerun the analysis several times to provide a range or >field of possible/probable results. > >-Original Message- >From: Jeff Newmiller >Sent: Monday, December 30, 2024 7:52 PM >To: r-help@r-project.org; Ebert,Timothy Aaron ; Erin Hodgess >; r-help@r

Re: [R] Citation for stock price data from Quantmod

2024-12-30 Thread Jeff Newmiller via R-help
you wrote, and using >those methods recover the data independently from you and finish all other >steps in the analysis. I should not have to guess. > >Tim > >-Original Message- >From: R-help On Behalf Of Erin Hodgess >Sent: Monday, December 30, 2024 12:17 AM >T

Re: [R] get.symbols doesn' work

2024-12-18 Thread Phil Smith via R-help
On Wednesday, December 18th, 2024 at 11:00 AM, Bert Gunter wrote: > > > Please look at what you wrote. > get.symbols vs. getSymbols. > > -- Bert > > On Wed, Dec 18, 2024 at 7:56 AM Phil Smith via R-help > r-help@r-project.org wrote: > > > Hello r-

[R] get.symbols doesn' work

2024-12-18 Thread Phil Smith via R-help
Hello r-project: I want to load and use the tiny quant libary. Hello R-project: get.symbols doesn't work this morning. I use this code: # # # install.packages(c("quantmod", "TTR", "xts", "zoo" , "t

Re: [R] Mutate issue help needed

2024-12-17 Thread Jeff Newmiller via R-help
as mutate (data, * > >The star is the character... > >(Data is the line above being piped) > >Why have the comments been *'d?. Is that the source error or a posting >error here? > >On Tue, 17 Dec 2024, 14:57 Ivan Krylov via R-help, >wrote: > >>

Re: [R] Mutate issue help needed

2024-12-17 Thread Ivan Krylov via R-help
ode from your messages, I would recommend composing in plain text: https://stat.ethz.ch/pipermail/r-help/2024-December/480371.html -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/li

[R] rerddap v1.2.0

2024-12-16 Thread Roy Mendelssohn - NOAA Federal via R-help
the moral universe is long, but it bends toward justice" -MLK Jr. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Weird Behavior of mean

2024-12-13 Thread Jeff Newmiller via R-help
This was documented in [1] forever ago. I would not miss it if a future version of R chose to remove those variables. [1] The R Inferno, 8.1.32 On December 13, 2024 11:21:13 AM PST, ivo welch wrote: >isn't this still a little R buglet? I have overwritten T (even if my >schuld [fran

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Marc Schwartz via R-help
Hi, In addition to the replies that you have already received, it is reasonable to question why you wish to download a version of R that is over 5 years old. Version 3.6.1 was released in July of 2019. If you are concerned about security, which is going to be a scenario specific discussion

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Jeff Newmiller via R-help
R is a programming language. If you program it to communicate, it will. Also, it is designed to work with user-contributed packages of code... the process of downloading the packages is communication, and the downloaded packages may communicate if you invoke them (that is often why they are

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Ivan Krylov via R-help
Dear Edward Woo, Welcome to R-help! В Fri, 13 Dec 2024 14:24:18 + Edward Woo via R-help пишет: > need an email confirming that r does not include any electronic > communication functionality within the program Could you please provide a definition of electronic communication functio

[R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Edward Woo via R-help
Hi, I am trying to download R version 3.6.1 onto my company computer and need an email confirming that r does not include any electronic communication functionality within the program. Thank you very much! Best, Edward Woo Edward Woo Municipals Securities Group Jefferies LLC 520 Madison

Re: [R] Cores hang when calling mcapply

2024-12-12 Thread Gregg Powell via R-help
ess more memory and time-efficient. Remaining parallelization overhead is likely a necessary step given the size of the datasets you're working with and the complexity of the initial cleaning. Anyway, happy the suggestion moved you closer to the results you were looking for. I don't often

Re: [R] SQL and R

2024-12-11 Thread Jeff Newmiller via R-help
is, what exactly is SQL used for? That is, whatever can be done by > SQL, like subsetting and filtering of data sets, can also be done by R. > What's, then, the advantage of SQL? It is OK if you tag this question as > offtopic, but I could'nt find any info on the web. Can yo

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Gregg Powell via R-help
How is the server configured to handle memory distribution for individual users. I see it has over 700GB of total system memory, but how much can be assigned it each individual user? AAgain - just curious, and wondering how much memory was assigned to your instance when you were running R

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Gregg Powell via R-help
imit reached?) > Error: cons memory exhausted (limit reached?) > Error: cons memory exhausted (limit reached?) > > > > From: Gregg Powell > Sent: Tuesday, December 10, 2024 7:52 PM > To: Deramus, Thomas Patrick > Cc: r-help@r-project.org > Subject: Re: [R]

Re: [R] Cores hang when calling mcapply

2024-12-10 Thread Gregg Powell via R-help
compressed representation, then combine results at the end. It's probbaly better to move away from `pivot_wider()` on a massive scale and attempt a data.table-based approach, which is often more memory-efficient and faster for large-scale operations in R. An alternate way would be data.table’s `

Re: [R] Cores hang when calling mcapply

2024-12-10 Thread Jeff Newmiller via R-help
for that memory block and you get an explosion of memory use. [1] <https://stat.ethz.ch/mailman/listinfo/r-sig-hpc> On December 10, 2024 4:20:28 PM PST, "Deramus, Thomas Patrick" wrote: >Hi R users. > >Apologies for the lack of concrete examples because the dataset is l

  1   2   3   4   5   6   7   8   9   10   >