Re: [R] Adding page numbers to existing PDFs

2022-10-27 Thread Paul Murrell
Hi Below is a script that does the job for a very simple R plot, making use of R and a couple of free software tools (ghostscript and poppler). It may or may not help with your real problem (NOTE the WARNING) ... library(grImport) ## Multipage PDF created by R pdf("plot-in.pdf") plot(1) pl

Re: [R] compile report error

2022-10-27 Thread Ivan Krylov
В Wed, 26 Oct 2022 18:51:40 +0200 Gábor Malomsoki пишет: > Error in parse(text = x, keep.source = TRUE) : > :13:66: unexpected INCOMPLETE_STRING > 12: > 13: tomitettseg_GesNa$station_desc[tomitettseg_GesNa$station_desc == > "Dichtheits.- Durchflusspr > > i get this error message when i try to

Re: [R] intersection in data frame

2022-10-27 Thread Gábor Malomsoki
Dear all, i have tried all of your proposals, all of them was ok. Maybe dcast() with data table was faster. Thank you! Best regards Gabor Am Fr., 14. Okt. 2022 um 01:31 Uhr schrieb Dénes Tóth < toth.de...@kogentum.hu>: > Or if your data is really large, you can try data.table::dcast(). > > > l

Re: [R] compile report error

2022-10-27 Thread Gábor Malomsoki
Dear Rui, this is very strange, it seams that in your script there is no problem to compile the report, but in mine not, i just sent you the rows 10:15 from 141299 obs. It seams it does not like the punctuation marks in "Dichtheits.- Durchflussprüfung M8.1", so i used a gsub () then a sub () repla

[R] Automatic Distribution Fitting Using R

2022-10-27 Thread Paul Bernal
Dear friends, I previously asked if there was an R package that could automatically test several different probability distributions for a given dataset and give the best fit. I found that the package DistributionFitR does something along those lines with the function globalfit(), just in case an

Re: [R] R-help Digest, Vol 236, Issue 25

2022-10-27 Thread Thomas Subia
Paul wrote: " Is there any package besides fitdistrplus that does allow automatic distribution fitting?" Automatic distribution fitting can be done using Minitab. Minitab will try and fit your dataset against 14 distributions. It has the option of using a Box-Cox or a Johnson methods to transform

Re: [R] $ subset operator behavior in lapply

2022-10-27 Thread Jeff Newmiller
Your message is garbled. Please send plain text to the mailing list. On October 27, 2022 2:31:47 AM PDT, Hilmar Berger wrote: >Dear all, > >I'm a little bit surprised by the behavior of the $ operator when used >in lapply - any indication what might be wrong is appreciated. > >> xx = list(A=list(

Re: [R] $ subset operator behavior in lapply

2022-10-27 Thread Andrew Simmons
$ does not evaluate its second argument, it does something like as.character(substitute(name)). You should be using lapply(list, function(x) x$a) or lapply(list, `[[`, "a") On Thu, Oct 27, 2022, 12:29 Hilmar Berger wrote: > Dear all, > > I'm a little bit surprised by the behavior of the $ o

[R] $ subset operator behavior in lapply

2022-10-27 Thread Hilmar Berger
Dear all, I'm a little bit surprised by the behavior of the $ operator when used in lapply - any indication what might be wrong is appreciated. > xx = list(A=list(a=1:3, b=LETTERS[1:3]),"B"=list(a=7:9, b=LETTERS[7:9])) > > lapply(xx,`$`,"a") $A NULL $B NULL > `$`(xx[[1]],"a") [1] 1 2 3 > lapply

Re: [R] Color Nodes

2022-10-27 Thread Jeff Reichman
Thanks for the tip -Original Message- From: Eric Berger Sent: Thursday, October 27, 2022 2:49 AM To: reichm...@sbcglobal.net Cc: Rui Barradas ; R-help@r-project.org Subject: Re: [R] Color Nodes You may want to change the color of the vertex labels. e.g. plot(g, vertex.size = 20, vertex.

Re: [R] Color Nodes

2022-10-27 Thread Eric Berger
You may want to change the color of the vertex labels. e.g. plot(g, vertex.size = 20, vertex.label.dist = 0.5, vertex.color = V(g)$color, vertex.label.color="cyan") On Thu, Oct 27, 2022 at 1:52 AM Jeff Reichman wrote: > > Yes Rui that will work for my needs thank you > > -Original Mes