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

2025-02-05 Thread peter dalgaard
h wrote: > > Thanks to Rui, Peter and Tanvir! Peter's seems to be the fastest of the 3 > suggestions so far on the little test case, but on the real data (where x > contains several thousand lines), Rui's seems best. > > Duncan > > On 2025-02-05 9:13 a.m.,

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

2025-02-05 Thread peter dalgaard
th) == 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-help@r-proje

Re: [R] Error when loading optimx package and a solution

2025-02-05 Thread peter dalgaard
alled package can be loaded from temporary location >> ** testing if installed package can be loaded from final location >> ** testing if installed package keeps a record of temporary installation path >> * DONE (optimx) >> Les packages source téléchargés sont dans >>

Re: [R] [tcltk] binding two functions to one event

2025-01-21 Thread peter dalgaard
t; evresp2 %d > > Both evresp1 and evresp2 got called but only evresp1 got the data right. > > How can I fix this? > >> sessionInfo > R version 4.3.0 (2023-04-21) > Platform: x86_64-pc-linux-gnu (64-bit) > Running under: Ubuntu 20.04.6 LTS > attached base packa

Re: [R] Query concerning working directory for file.choose()

2024-12-19 Thread peter dalgaard
-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] Mac ARM for lm() ?

2024-11-14 Thread peter dalgaard
s://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv:

[R] [Rd] R 4.4.2 is released

2024-10-31 Thread peter dalgaard
s://cran.r-project.org/src/base/R-4/R-4.4.2.tar.xz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. (The Mac binaries will be delayed for a couple of days because the maintainer is traveling.) For the R Core Team, Peter Dalgaard

Re: [R] OSX-specific Bug in randomForest

2024-10-24 Thread peter dalgaard
This is probably Apple Silicon specific, not OSX per se: > sum(rep(1 / 9, 9)) - 1 [1] 0 > On 23 Oct 2024, at 07:26 , Stevie Pederson > wrote: > > sum(rep(1 / 9, 9)) - 1 > # [1] 2.220446e-16 -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Schoo

[R] [Rd] R 4.4.2 scheduled for October 31

2024-10-11 Thread peter dalgaard
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Is there a sexy way ...?

2024-09-30 Thread peter dalgaard
_ >> 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. > &g

Re: [R] non-conformable arrays

2024-09-11 Thread peter dalgaard
f some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > /// > > <https://www.inbo.be> >

Re: [R] Calculation of VCV matrix of estimated coefficient

2024-09-06 Thread peter dalgaard
> ______ > 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-containe

Re: [R] "--" < 0

2024-06-25 Thread peter dalgaard
defined a bit more. > > --> does c("--", 0) give you a clue, now ? > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the p

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread peter dalgaard
gt; > Regarding .libPaths, I am asking for the call to `.libPaths()`, so I > understand there is no `new` in the call, as in the documentation I cited. > > Iago > > De: peter dalgaard > Enviat el: dilluns, 17 de juny de 2024 13:26 > Per a: Iago Giné Vázquez >

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread peter dalgaard
the current > way this help page is explained? > > Thank you for your help and time. > > Best regards, > > Iago > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] Column names of model.matrix's output with contrast.arg

2024-06-14 Thread peter dalgaard
-- > Christophe DUTANG > LJK, Ensimag, Grenoble INP, UGA, France > ILB research fellow > Web: http://dutangc.free.fr > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailma

[R] [Rd] R 4.4.1 is released

2024-06-14 Thread peter dalgaard
r it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. (The Mac binaries will be delayed for a couple of days because the maintainer is traveling.) For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the fresh

Re: [R] R code for overlapping variables -- count

2024-06-03 Thread peter dalgaard
f the three. > > Thank you so much, > Shadee > > [[alternative HTML version deleted]] > > __ > 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 http://www.

[R] [Rd] R 4.4.1 scheduled for June 14

2024-05-31 Thread peter dalgaard
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] R, RStudio, and a server for my iPad.

2024-05-21 Thread peter dalgaard
tps://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business

Re: [R] De-serialization vulnerability?

2024-05-02 Thread peter dalgaard
ww.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv

[R] [Rd] R 4.4.0 is released

2024-04-24 Thread Peter Dalgaard via R-announce
base/R-4/R-4.4.0.tar.gz https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.xz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the fresh

Re: [R] x[0]: Can '0' be made an allowed index in R?

2024-04-23 Thread Peter Dalgaard via R-help
t. > Offset <- 30 > for (i in -29 to 120) { print(df[i+Offset])} > > > 2) use absolute values if all indices are negative. > for (i in -200 to -1) {print(df[abs(i)])} > > Tim > > > > -Original Message- > From: R-help On Behalf Of Peter Dal

Re: [R] x[0]: Can '0' be made an allowed index in R?

2024-04-22 Thread Peter Dalgaard via R-help
t; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+

Re: [R] missing() fails to detect missing

2024-04-18 Thread Peter Dalgaard via R-help
>> Thanks for any insights. >> Ross >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> P

Re: [R] Question regarding reservoir volume and water level

2024-04-09 Thread peter dalgaard
t; [1] 2480 >> >> >> Hope this helps, >> >> Rui Barradas >> >> >> -- >> Este e-mail foi analisado pelo software antivírus AVG para verificar a >> presença de vírus. >> http://www.avg.com/ >> >> ____

Re: [R] CEoptim problems

2024-04-09 Thread peter dalgaard
[29] Matrix_1.6-5 tools_4.3.3 gtable_0.3.3 survival_3.5-8 > > [33] ggplot2_3.4.2 > R> > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listi

Re: [R] Building Packages.

2024-03-21 Thread peter dalgaard
package must have the >> same objects >> apart from those only in the namespace, >> people would not even have access to R's true install.packages() >> but only see the RStudio fake^Hsubstitute.. >> We are still not happy with their decision. Also >> help(

[R] [Rd] R 4.4.0 scheduled for April 24

2024-03-19 Thread Peter Dalgaard via R-announce
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Problem when trying to install packages

2024-03-18 Thread peter dalgaard
moving 'C:/R_Libs/cluster' >>> Warning in install.packages : >>> installation of package ‘cluster’ had non-zero exit status >>> ERROR: dependency 'lattice' is not available for package 'hexbin' >>> * removing 'C:/R_L

[R] R 4.3.3 is released

2024-02-29 Thread Peter Dalgaard via R-announce
You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.gz https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.xz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Pete

Re: [R] converting MATLAB -> R | element-wise operation

2024-02-28 Thread peter dalgaard
>> 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 http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, rep

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-19 Thread peter dalgaard
the fact that RStudio >> hides R's own install.packages() from the user and uses its >> own, undocumented one ... this has been the case for quite a few years. >> I found out during teaching --- one of the few times, I use >> RStudio to use R.

[R] [Rd] R 4.3.3 scheduled for February 29

2024-02-16 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-14 Thread peter dalgaard
, Berwin. > > Indeed I've raised the fact that RStudio > hides R's own install.packages() from the user and uses its > own, undocumented one ... this has been the case for quite a few years. > I found out during teaching --- one of the few times, I use > RStudio to use R..

Re: [R] back tick names with predict function

2023-12-01 Thread peter dalgaard
names) so > that they are. " > > -- Bert > > __ > 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 http://www.R-project.org/

Re: [R] anyone having trouble accesing CRAN?

2023-11-20 Thread peter dalgaard
local.only = TRUE)) to access a mirror that works. > > -- > 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 http://www.R-project.org/posting-guide.htm

Re: [R] Bug in print for data frames?

2023-11-03 Thread peter dalgaard
ed your code, > you'd see this: > > library(tibble) > x <- tibble(A = 1, B = 2, C = 3) > y <- tibble(A = 1) > x$C <- y[1] > x > #> # A tibble: 1 × 3 > #> A B C$A > #> > #> 1 1 2 1 > >

Re: [R] weights vs. offset (negative binomial regression)

2023-11-02 Thread peter dalgaard
> mailing list >>-- To UNSUBSCRIBE and more, see >> > https://stat.ethz.ch/mailman/listinfo/r-help >><https://stat.ethz.ch/mailman/listinfo/r-help> >> > PLEASE do read the posting guide >>http://www.R-project.org/posting-guide.html >>

[R] [Rd] R 4.3.2 is released

2023-10-31 Thread Peter Dalgaard via R-help
r it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread peter dalgaard
and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > > > -- > Sarah Goslee (she/her) > http:/

Re: [R] Create new data frame with conditional sums

2023-10-24 Thread peter dalgaard
ham, NC 27710 >> FAX 919-681-7494 >> >> >>[[alternative HTML version deleted]] >> >> ______ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-h

[R] [Rd] R 4.3.2 scheduled for October 31

2023-10-13 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Odd result

2023-09-29 Thread peter dalgaard
Michael > > __ > 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 http://www.R-project.org/posting-guide.html > and provide commente

Re: [R] prop.trend.test question

2023-09-28 Thread peter dalgaard
the right track here? > > Thomas Subia > > __ > 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 http://www.R-project.org/posting-g

Re: [R] Print hypothesis warning- Car package

2023-09-18 Thread peter dalgaard
5 glue_1.6.2 colorspace_2.1-0 hms_1.1.3 >> scales_1.2.1 fansi_1.0.4 grid_4.3.1 [15] cellranger_1.1.0 abind_1.4-5 >> munsell_0.5.0 tibble_3.2.1 tzdb_0.4.0 lifecycle_1.0.3 compiler_4.3.1 >> [22] pkgconfig_2.0.3 rstudioapi_0.15.0 farver_2.1.1 R6_2.5.1 >> tidyselect_1.2.0 utf8

Re: [R] graph in R with grouping letters from the turkey test with agricolae package

2023-09-13 Thread peter dalgaard
Benjamin Bolker > Professor, Mathematics & Statistics and Biology, McMaster University > Director, School of Computational Science and Engineering > (Acting) Graduate chair, Mathematics & Statistics > > E-mail is sent at my convenience; I don't expect replies outside of wo

Re: [R] prop.trend.test

2023-09-12 Thread peter dalgaard
se as the LPM estimate of the regression slope. - Peter D. > On 8 Sep 2023, at 12:53 , Rui Barradas wrote: > > Às 10:06 de 08/09/2023, peter dalgaard escreveu: >> Yes, this was written a bit bone-headed (as I am allowed to say...) >> If you look at the code, you will s

Re: [R] prop.trend.test

2023-09-08 Thread peter dalgaard
op 2prop 3prop 4 > #> 0.9651163 0.9677419 0.9485294 0.8536585 > > smokers/patients > > #> [1] 0.9651163 0.9677419 0.9485294 0.8536585 > > plot(smokers/patients, type = "b") > > > > Hope this helps, > > Rui Barradas >

Re: [R] Why install.packages(repos = X) does not override the 'repos' R option?

2023-06-19 Thread peter dalgaard
> 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 http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard,

[R] [Rd] R 4.3.1 is released

2023-06-16 Thread Peter Dalgaard via R-help
r it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD

[R] [Rd] R 4.3.1 scheduled for June 16

2023-05-25 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[R] [Rd] R 4.3.0 is released

2023-04-21 Thread Peter Dalgaard via R-help
-4/R-4.3.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorru

[R] [Rd] R 4.3.0 scheduled for April 21

2023-03-21 Thread peter dalgaard
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[R] [Rd] R 4.2.3 is released

2023-03-15 Thread peter dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

[R] [Rd] R 4.2.3 scheduled for March 15

2023-03-01 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Problem of intercept?

2023-02-22 Thread peter dalgaard
"Coefficient")+ > coord_flip() > > > > > __ > 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 http://www.R-project.org/

Re: [R] MLE Estimation of Gamma Distribution Parameters for data with 'zeros'

2023-01-19 Thread peter dalgaard
/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > __ > 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 http://www.R-project.or

Re: [R] library(tseries) - spellng error in output

2022-12-15 Thread peter dalgaard
__ > 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 http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible cod

[R] [Rd] R 4.2.2 is released

2022-10-31 Thread Peter Dalgaard via R-help
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

Re: [R] How to convert category (or range/group) into continuous ?

2022-01-17 Thread peter dalgaard
ject.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > >

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-23 Thread peter dalgaard
ote: > > Thanks, Andrew. I didn't realise as.Date *only* read two formats, I > think I was tripped up by using %y instead of %Y, -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office:

[R] [Rd] R 4.1.2 is released

2021-11-01 Thread Peter Dalgaard
Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

Re: [R] [Rd] R 4.1.2 scheduled for November 1

2021-10-03 Thread peter dalgaard
Schedule should appear on developer.r-project.org when it gets updated from SVN. > On 3 Oct 2021, at 18:40 , peter dalgaard wrote: > > (Just a quick heads-up for developers.) > > Full schedule to be made available soon. > -- Peter Dalgaard, Professor, Center for Stat

[R] [Rd] R 4.1.2 scheduled for November 1

2021-10-03 Thread peter dalgaard
(Just a quick heads-up for developers.) Full schedule to be made available soon. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] How to globally convert NaN to NA in dataframe?

2021-09-03 Thread peter dalgaard
.nan.data.frame <- function(x) >>>>> do.call(cbind, lapply(x, is.nan)) >>>>> >>>>> data123[is.nan(data123)] <- 0 >>>>> ``` >>>>> replacing o with NA, but I got >>>>> ``` >>>>> str(

[R] [Rd] R 4.1.1 is released

2021-08-10 Thread Peter Dalgaard
Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = da5e7c699a83608d0f1e39c458d9fc56 MD

[R] [Rd] R 4.1.1 scheduled for August 10

2021-07-10 Thread Peter Dalgaard via R-help
Full schedule is available on developer.r-project.org. (This comes somewhat late this year, partly because we needed to squeeze in 4.0.5 before 4.1.0 could be released.) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg

Re: [R] checksums for R src file

2021-06-24 Thread peter dalgaard
commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com _

[R] [Rd] R 4.1.0 is released

2021-05-20 Thread Peter Dalgaard
You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.1.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for th

[R] [Rd] R 4.1.0 scheduled for May 18

2021-04-16 Thread Peter Dalgaard via R-help
Full schedule is available on developer.r-project.org. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[R] [Rd] R 4.0.5 is released

2021-03-31 Thread Peter Dalgaard
ct.org/src/base/R-4/R-4.0.5.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check tha

[R] [Rd] R 4.0.5 scheduled for March 31

2021-03-22 Thread Peter Dalgaard via R-help
Full schedule is available on https://developer.r-project.org (or https://svn.r-project.org/R-dev-web/trunk/index.html for the impatient). (This is a fast-track release, to resolve an issue with Asian character sets and another issue with R CMD build, before R 4.1.0) -- Peter Dalgaard

[R] [Rd] R 4.0.4 is released

2021-02-15 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

[R] [Rd] R 4.0.4 scheduled for February 15

2021-01-21 Thread Peter Dalgaard via R-help
Full schedule is available on https://developer.r-project.org (or https://svn.r-project.org/R-dev-web/trunk/index.html for the impatient). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-16 Thread peter dalgaard
hments except for PS, PDF, and some image and archive >> formats (others are automatically stripped off because they can contain >> malicious software). Files in other formats and larger ones should >> rather be put on the web and have only their URLs posted. This way a >> re

Re: [R] newdata for predict.lm() ??

2020-11-04 Thread peter dalgaard
; colnames(myNew) <- "h" > # ... same error again. > > Bottom line: how can I properly specify newdata? The documentation is opaque. > It seems the algorithm is trying to EXACTLY match the text of the RHS of the > formula, which is unlikely to result in a useful column name,

[R] [Rd] R 4.0.3 is released

2020-10-10 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

Re: [R] RStudio question

2020-10-08 Thread peter dalgaard
tp://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 O

Re: [R] understanding as.list(substitute(...()))

2020-10-06 Thread peter dalgaard
s.pairlist(alist(abc$de, fg[h], , i))" > dput(e[[2]]) as.pairlist(alist(abc$de, fg[h], , i)) > mode(e[[2]]) [1] "pairlist" > mode(e[[2]][[3]]) [1] "name" I.e. the list in e[2] contains the missing indicator (an empty name). (I'm slightly puzzled why we

[R] [Rd] R 4.0.3 scheduled for October 10

2020-10-05 Thread Peter Dalgaard via R-help
[Oops, this apparently got omitted during release scheduling] Full schedule is available on developer.r-project.org. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd

Re: [R] (no subject)

2020-10-01 Thread Peter Dalgaard
mented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-23 Thread Peter Dalgaard
> 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 http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible co

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread peter dalgaard
Paul > > > > El mié., 2 sept. 2020 a las 2:37, Martin Maechler > () escribió: > >>>>> peter dalgaard > >>>>> on Wed, 2 Sep 2020 08:41:09 +0200 writes: > > > Generically, nnet(a$y ~ a$x, a ...) should be nnet(y ~ x, >

Re: [R] Odd Results when generating predictions with nnet function

2020-09-01 Thread peter dalgaard
42, 18443, 18444, 18445, 18446, 18447, 18448, 18449, 18450, > 18451, 18452, 18453, 18454, 18455, 18456, 18457, 18458, 18459, > 18460, 18461, 18462, 18463, 18464, 18465, 18466, 18467, 18468, > 18469, 18470, 18471, 18472, 18473, 18474, 18475, 18476, 18477, > 18478, 18

Re: [R] Can I use "mcnemar.test" for 3*3 tables (or is there a bug in the command?)

2020-08-31 Thread peter dalgaard
tion is: >> was there marginal homogenity? if not, then that is an indicator that the >> general response to the experimental settings was different for the kids. > >> 1) can I use "mcnemar.test" for 3*3 (or more) tables ? > As Peter Dalgaard and j

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-29 Thread peter dalgaard
(x, y)) > weights <- c(rep(1, 50), rep(2, 50)) > fit <- glm(y~x, data, family=binomial(), weights/10) > res.dev <- residuals(fit, type="deviance") > res2 <- -0.5*res.dev^2 > cat("loglikelihood value", logLik(fit), sum(res2), "\n") >

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-29 Thread peter dalgaard
> On 25 Aug 2020, at 18:40 , peter dalgaard wrote: > > If you don't worry too much about an additive constant, then half the > negative squared deviance residuals should do. (Not quite sure how weights > factor in. Looks like they are accounted for.) > > -pd >

Re: [R] Importing data using Foreign

2020-08-26 Thread peter dalgaard
wrote: > Good point! :-) > > > On Wed, Aug 26, 2020 at 5:55 PM peter dalgaard wrote: > Offhand, I suspect that the NAs are in the 8th column. > > > On 26 Aug 2020, at 10:57 , Elham Daadmehr wrote: > > > > Hi all, > > > > I have a simple pr

Re: [R] Importing data using Foreign

2020-08-26 Thread peter dalgaard
d more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Busines

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-25 Thread peter dalgaard
- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhag

Re: [R] Best settings for RStudio video recording?

2020-08-14 Thread peter dalgaard
osting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- 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] Best settings for RStudio video recording?

2020-08-14 Thread peter dalgaard
;>> ______ >>>> 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 >>>> http://www.R-project.org/po

Re: [R] optim with upper and lower bounds

2020-08-11 Thread peter dalgaard
y will overcome youth and skill." > "From those who have been given much, much will be expected" > "the arc of the moral universe is long, but it bends toward justice" -MLK Jr. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] A Question about MLE in R

2020-07-22 Thread peter dalgaard
ML version deleted]] > > __ > 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 http://www.R-project.org/posting-guide.html > and provide com

Re: [R] A WSL question with allocation

2020-07-21 Thread peter dalgaard
> 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 http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. --

Re: [R] How to use mle2 function?

2020-07-01 Thread peter dalgaard
te probability of attack >>>>> pred = a/(1+a*h*n) >>>>> # calc NLL >>>>> -sum(dbinom(k, prob = pred, size = n, log = TRUE)) >>>>> } >>>>> ``` >>>>> then I get the same error: >>>>> ``` &g

Re: [R] how to extract specific subscript of a matrix

2020-06-27 Thread peter dalgaard
elp@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. --

[R] R 4.0.2 is released

2020-06-22 Thread Peter Dalgaard via R-help
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

Re: [R] Error in "plot(aov.object)" after upgradation to R-4.0.0 and R-4.0.1 for given R-Script-Example

2020-06-21 Thread peter dalgaard
istics and Social Science (L) > Indira Gandhi Krishi Vishwavidyalaya, Raipur-492 012, > Chhattisgarh, India > Mobile: +918770625795 > Email: akhileshsingh.i...@gmail.com > > [[alternative HTML version deleted]] > > _

  1   2   3   4   5   6   7   8   9   10   >