[R] Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.

2024-04-18 Thread Deramus, Thomas Patrick
Hi experts. I have a tibble​ with a column containing a nested list (>>​ data type to be specific). Looks something like the following (but in R/Arrow​ format): ID Nestedvals 001 [[1]](1,0.1)[[2]](2,0.2)[[3]](3,0.3)[[4]](4,0.4)[[5]](5,0.5) 002 [[1]](1,0.1)[[2]](2,0.2)[[3]](3,0.3)[[4]](4,0.4)

[R] as.complex()

2024-03-25 Thread Thomas K
Needing a < , > comparison for imaginary numbers __ 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

Re: [R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
Good point, indeed it should have been read.xlsx. Mit freundlichen Gruessen / Cordialement / Best regards Thomas Subia Lean Six Sigma Senior Practitioner DRÄXLMAIER Group DAA Draexlmaier Automotive of America LLC 801 Challenger Street Livermore CA 94551 Ph: 925-978-8111 mailto:thomas.su

[R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
AM issue but with 16 GB RAM, I wasn't expecting this error message. Any guidance would be appreciated. Mit freundlichen Gruessen / Cordialement / Best regards Thomas Subia Lean Six Sigma Senior Practitioner DR�XLMAIER Group DAA Draexlmaier Automotive of America LLC mailto:tho

[R] annotate

2023-10-05 Thread Subia Thomas OI-US-LIV5
theme_cowplot()+ geom_hline(yintercept = 92)+ annotate(geom="text",x=above_92$eruptions,y=above_92$waiting+2,label=above_92$waiting) A bit of trial and error is required to figure out what number to add or subtract to above_92$waiting. Is there a more efficient way to do this? T

Re: [R] prop.trend.test

2023-09-07 Thread Thomas Subia via R-help
. If there are any other ways to do this, please let me know. Thomas Subia On Thursday, September 7, 2023 at 10:31:27 AM PDT, Rui Barradas wrote: Às 14:23 de 07/09/2023, Thomas Subia via R-help escreveu: > > Colleagues > >   Consider > smokers  <- c( 83, 90, 129, 70 ) &

[R] prop.trend.test

2023-09-07 Thread Thomas Subia via R-help
004132  # trend test for proportions indicates proportions aretrending.  How does one identify the direction of trending?  # prop.test indicates that the proportions are unequal but doeslittle to indicate trend direction. All the best, Thomas Subia [[alternative HTML version d

Re: [R] geom_smooth

2023-08-12 Thread Thomas Subia via R-help
Colleagues, Your suggestions are elegant and greatly appreciated. Thomas Subia On Friday, August 11, 2023 at 11:08:42 PM PDT, Berwin A Turlach wrote: G'day Thomas, On Sat, 12 Aug 2023 04:17:42 + (UTC) Thomas Subia via R-help wrote: > Here is my reproducible code for a gr

[R] geom_smooth

2023-08-11 Thread Thomas Subia via R-help
int()+   geom_smooth(se=TRUE,fill="blue",color="black",linetype="dashed")+   theme_cowplot() I'd like to add a black boundary around the shaded area. I suspect this can be done with geom_ribbon but I cannot figure this out. Some advice would be

Re: [R] plotly

2023-07-25 Thread Thomas Subia via R-help
an I save the plotly graph with a specific graph size?Using ggsave, one can define the height, width and unit of measure, is there something similar in plotly?Since I am creating the same gauge plot but with different data, I'd like all the resulting graphs to have the same size. I've googled

Re: [R] plotly

2023-07-22 Thread Thomas Subia via R-help
hy this occurs. Changing the statement to 56, results in the > gauge reading 60. I'm not sure what needs to be changed in the script or the > environment to stop rounding. > On Jul 22, 2023, at 10:43, Boris Steipe wrote: > > What do you mean "Rounded"? > Wha

Re: [R] plotly

2023-07-22 Thread Thomas Subia via R-help
Colleagues, Thanks for the update. My colleagues at work have run this script but the resulting graph output for value is rounded. How can one turn this annoying feature off? I've googled this but to no avail. [[alternative HTML version deleted]]

[R] plotly question

2023-07-21 Thread Thomas Subia via R-help
e indicator color from green to some other color? How can I change the typeface and font size of the speedometer tick mark font size? Thomas Subia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] prop.test question

2023-07-11 Thread Thomas Subia via R-help
-value = 0.004132 How can one determine the direction of the trend? Thomas Subia [[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 d

Re: [R] [External] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
Colleagues, Thanks for the help! Root cause of the problem was not to define z and x as factors!Now I know better. All the best, Thomas Subia On Monday, June 5, 2023 at 08:45:39 PM PDT, Richard M. Heiberger wrote: This works. > d$zz <- factor(d$z, levels=c("low",&q

[R] latticeExtra

2023-06-05 Thread Thomas Subia via R-help
at this error stems from read.table. This graph is easily done with Excel but I'd rather use R Any help would be appreciated. Thanks Thomas Subia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] Pairwise comparison test

2023-05-12 Thread Thomas Subia via R-help
3 1.000 1.000 - 4 0.119 0.093 0.124 Is there a way to generate a graph which illustrates the pairwise comparison of proportions? Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Thomas . Rose
Dear Upananda, I see a misplaced bracket in your code, and there is no need in aes() to call the dataframe explicitly. Does this work? ggplot(data = data_vol3, aes(x = index, y = usa)) + geom_line() Best wishes, Thomas Von: R-help im Auftrag von Upananda

Re: [R] Displaying Dichotomous Variables as fractions in gtsummary Tables

2023-03-27 Thread Deramus, Thomas Patrick
Will do. Thank you! -Original Message- From: Duncan Murdoch Sent: Monday, March 27, 2023 2:31 PM To: Deramus, Thomas Patrick ; r-help@r-project.org Subject: Re: [R] Displaying Dichotomous Variables as fractions in gtsummary Tables External Email - Use Caution I think

[R] Displaying Dichotomous Variables as fractions in gtsummary Tables

2023-03-27 Thread Deramus, Thomas Patrick
Hi R Experts. Apologies if this has been shared elsewhere, but I haven't been able to find a solid answer to this. I'm wanting to create a table in gtsummary that displays entries for "Yes" and "No" as fractions rather than a relative to the total (e.g. {n} / {N} in the documentation). I

Re: [R] wininet deprecation

2023-02-22 Thread Stadler Thomas
Hi Enrico, thanks for your suggestion. rgds Thomas -Ursprüngliche Nachricht- Von: Enrico Schumann Gesendet: Dienstag, 21. Februar 2023 12:31 An: gisbert.se...@wido.bv.aok.de; Stadler Thomas Cc: r-help@r-project.org Betreff: Re: [R] wininet deprecation On Tue, 21 Feb 2023, Selke

Re: [R] wininet deprecation

2023-02-22 Thread Stadler Thomas
Hi Gisbert, thanks for your suggestion. It seems I will have to look into local mirroring solutions after all. rgds Thomas -Ursprüngliche Nachricht- Von: Selke, Gisbert W. Gesendet: Dienstag, 21. Februar 2023 12:17 An: r-help@r-project.org Cc: Stadler Thomas Betreff: Re: [R

[R] wininet deprecation

2023-02-21 Thread Stadler Thomas
? Thanks. Thomas Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken. Ist diese E-Mail nicht an Sie adressiert, bitten wir Sie, uns zu informieren und die E-Mail zu loeschen. Da der E-Mail-Verkehr

Re: [R] Shadow Graphics Error in R Studio

2023-01-26 Thread Thomas Subia via R-help
://stackoverflow.com/questions/19513705/error-in-rstudiogd-shadow-graphics-device-error-r-error-4-r-code-execution Hope this helps! Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r

[R] Date order question

2023-01-04 Thread Thomas Subia
x=2.5, y=-.05, label="PT Not Done",size=5,fontface="bold")+ theme_cowplot() The plot has the wrong date order. What is desired is 12-29, 12-30 and 01-01. Some feedback would be appreciated. All the best, Thomas Subia "De quoi devenir chevre? Des donnees" _

Re: [R] pairwise.var.test

2022-10-30 Thread Thomas Subia via R-help
://support.minitab.com/en-us/minitab/20/media/pdfs/translate/Multiple_Comparisons_Method_Test_for_Equal_Variances.pdf I was hoping that R had something similar. I tried a Google search on this but to no avail. Thomas Subia On Sunday, October 30, 2022 at 03:44:54 PM PDT, Rui Barradas wrote: Às 21:47 de

[R] pairwise.var.test

2022-10-30 Thread Thomas Subia via R-help
group levels? I can do this using Minitab but I'd prefer using R for this. 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

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

2022-10-27 Thread Thomas Subia
transform the dataset into a normal distribution. I suspect that this is as close as you can get to an automatic distribution fitting. Hope this helps! Thomas Subia -Original Message- From: R-help On Behalf Of r-help-requ...@r-project.org Sent: Thursday, October 27, 2022 3:00 AM To

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-06 Thread Deramus, Thomas Patrick
, Thomas Patrick ; r-help@r-project.org Subject: Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call External Email - Use Caution On Thu, Oct 6, 2022 at 9:44 AM Bill Dunlap wrote: > > Here is how you could have made an example th

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-06 Thread Deramus, Thomas Patrick
Word Task Acquisition for Subject", WordFrame[i,1])) dev.off() } WordFrame[i,18] <- F WordFrame[i,16] <- 0 WordFrame[i,17] <- 0 } } ​ But as soon as I did that it worked! Thank you so much! From: Joshua Ulrich Sent: Wednesday, Octobe

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-06 Thread Deramus, Thomas Patrick
://docs.google.com/spreadsheets/d/1rPd8bv4WADCdEUhmem-u1-6HWUXKne7b/edit?usp=sharing=110307531005009211602=true=true From: Rolf Turner Sent: Wednesday, October 5, 2022 6:28 PM To: Deramus, Thomas Patrick Cc: r-help@r-project.org Subject: Re: [R] Getting "Error i

Re: [R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-06 Thread Deramus, Thomas Patrick
else { { pdf(file = "Word_Task_Acquisition.pdf") plout <- plot(original_series) lines(simplemovingaverage) title(paste("Word Task Acquisition for Subject")) dev.off() } } } From: Rolf Turner Sent

[R] Getting "Error in ect, plot.new has not been called yet" despite grouping plot call

2022-10-05 Thread Deramus, Thomas Patrick
HOME_URL="https://www.debian.org/; SUPPORT_URL="https://www.debian.org/support; BUG_REPORT_URL="https://bugs.debian.org/; No LSB modules are available. Distributor ID:   Debian Description:  Debian GNU/Linux 11 (bullseye) Release:11 Codename:   bullseye Icon name:

Re: [R] How long does it take to learn the R programming language?

2022-09-28 Thread Thomas Subia via R-help
. Hope this helps! 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-guide.html and provide commented, minimal

Re: [R] GIS in R

2022-09-01 Thread Thomas Adams
Hi Nick, First off, I would suggest going to: https://cran.r-project.org/web/views/Spatial.html also have a close look at https://journal.r-project.org/archive/2017/RJ-2017-067/RJ-2017-067.pdf And you might also consider the use of GRASS GIS, which interfaces with R pretty seamlessly:

Re: [R] I don't understand the result of `svyboxplot` function from the Survey package

2022-08-03 Thread Thomas Lumley
It's a bug resulting from the new svyquantile() implementation. It's fixed in the development version, which you can get from r-forge here: https://r-forge.r-project.org/R/?group_id=1788 -thomas Thomas Lumley Professor of Biostatistics From: Anthony

Re: [R] transformTukey

2021-12-15 Thread Thomas Subia
Thanks Ivan! This makes perfect sense now! All the best, Thomas Subia Statistician -Original Message- From: Ivan Krylov Sent: Wednesday, December 15, 2021 5:21 AM To: Thomas Subia via R-help Cc: Thomas Subia ; Thomas Subia Subject: Re: [R] transformTukey On Wed, 15 Dec 2021 05:11

[R] transformTukey

2021-12-15 Thread Thomas Subia via R-help
an 0. Data set is heavily right skewed > library(rcompanion) > trans_data <- transformTukey(data) Error in is.infinite(TRANS) : default method not implemented for type 'list' Why is this occurring? Thomas Subia __ R-help@r-proje

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Labone, Thomas
Two of the machines having the problem are AVX-512 capable (e.g., i7-7820X) but another one is an old Samsung Series 5 with an i5-3317U. I guess I will start with the folks at Linux Mint. Tom Thomas R. LaBone PhD student Department of Epidemiology and Biostatistics Arnold School of Public

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Labone, Thomas
attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.1.2 tools_4.1.2 Thomas R. LaBone PhD student Department of Epidemiology and Biostatistics Arnold School of Public Health University of Sout

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
ianMean 3rd Qu.Max. 0.2735 3.7658 5.9052 7.5113 9.4399 82.9531 > summary(Z) Min. 1st Qu. MedianMean 3rd Qu.Max. -3.8906 -0.6744 0. 0. 0.6744 3.8906 > summary(gm*gsd^Z) Min. 1st Qu. MedianMean 3rd Qu.Max. 0.3767 0.8204 0.9659 0.9947 1.1372

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
Thanks. Can someone point me to the procedure for switching from the Intel Math Library back to the standard math library so that I can see if the problem is associated with using MKL? Thomas R. LaBone PhD student Department of Epidemiology and Biostatistics Arnold School of Public Health

[R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
AME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.1.1 tools_4.1.1 Thomas R.

[R] (no subject)

2021-10-06 Thread Thomas Subia
Colleagues, Some co-workers are wondering about how secure R software is. Is there any documentation on this which I can forward to them? All the best, Thomas Subia Quality Engineer __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] . Re: Splitting a data column randomly into 3 groups

2021-09-04 Thread Thomas Subia via R-help
t; "K" Now from this reduced dataset, I can generate another random selection with any size I choose. One problem with this is that this is cumbersome when ones original dataset is large or when one wants to subgroup the original dataset into many different subgroup sizes

[R] uniroot

2021-08-27 Thread Thomas Subia via R-help
ure that is the case, nevertheless, it's worth asking the question. Some guidance would be appreciated. Thanks! 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 post

[R] Sin curve question

2021-07-24 Thread Thomas Subia via R-help
Colleagues, Here is my code which plots sin(x) vs x, for angles between 0 and 180 degrees. library(ggplot2) library(REdaS) copdat$degrees <- c(0,45,90,135,180) copdat$radians <- deg2rad(copdat$degrees) copdat$sin_x <- sin(copdat$radians) ggplot(copdat,aes(x=degrees,y=sin_x))+ geom_point(size

Re: [R] Conversion of String to Datetime: How to Keep Timezone Offset when Printing?

2021-06-06 Thread Thomas Bulka
ot;19/Jun/2021 08:45 EST" "20/Jul/2020 06:39 EST" "05/Jun/2021 07:33 EST" > > > Not sure if that helps at all... Hi Micha, thank you very much for your detailed reply. In fact, I probably have not been too clear about my intentions, but you somehow managed to tel

[R] Conversion of String to Datetime: How to Keep Timezone Offset when Printing?

2021-06-05 Thread Thomas Bulka
e offset when the data is printed? Please excuse any awkward phrasing; being pretty new to R, I probably did not phrase anything correctly. Thank you very much in advance! Thomas __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

[R] Spie charts

2021-03-29 Thread Thomas Subia via R-help
increases. Users in general have a harder time comparing radial distances.You're better off using a scatter plot for this. If however, you still want to create a radar chart, you may want to the fmsb package. Hope this helps! Thomas SubiaStatistician [[alternative HTML version deleted

Re: [R] forecast accuracy

2021-02-05 Thread Thomas Adams
Look at the 'verification' contributed package Tom On Fri, Feb 5, 2021 at 12:36 PM Faheem Jan via R-help wrote: > I am working in the functional time series, I obtain the one year ahead > forecast in the functional format, Know i want to forecast accuracy for > example mean absolute percentage

[R] readxl question

2020-08-21 Thread Thomas Subia via R-help
2,"BUBBLE_14_2.txt") After the text files have been created, I cut and paste each column of data to Excel. This has worked fine if the number of cells I am extracting from a file is small. If the number gets larger, this method is inefficient.

[R] readxl question

2020-08-21 Thread Thomas Subia via R-help
2,"BUBBLE_14_2.txt") After the text files have been created, I cut and paste the contents of each text file to Excel. This has worked fine if the number of cells I am extracting from a file is small. If the number gets larger, this method is inefficient.

[R] [R-pkgs] skedastic: Heteroskedasticity Diagnostics for Linear Regression Models

2020-08-20 Thread Thomas Farrar
=skedastic Github page: https://github.com/tjfarrar/skedastic Sincerely, Thomas [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages

Re: [R] National Weather Service Data

2020-07-03 Thread Thomas Adams
> and provide commented, minimal, self-contained, reproducible code. > -- Thomas E Adams, III 1724 Sage Lane Blacksburg, VA 24060 tea...@gmail.com (personal) t...@terrapredictions.org (work) 1 (513) 739-9512 (cell) [[alternative HTML version deleted]] _

Re: [R] COVID-19 datasets...

2020-05-07 Thread Thomas Petzoldt
On 07.05.2020 at 13:12 Deepayan Sarkar wrote: On Thu, May 7, 2020 at 4:16 PM Thomas Petzoldt wrote: On 07.05.2020 at 11:19 Deepayan Sarkar wrote: On Thu, May 7, 2020 at 12:58 AM Thomas Petzoldt wrote: Sorry if I'm joining a little bit late. I've put some related links and scripts together

Re: [R] COVID-19 datasets...

2020-05-07 Thread Thomas Petzoldt
On 07.05.2020 at 11:19 Deepayan Sarkar wrote: On Thu, May 7, 2020 at 12:58 AM Thomas Petzoldt wrote: Sorry if I'm joining a little bit late. I've put some related links and scripts together a few weeks ago. Then I stopped with this, because there is so much. The data format employed by John

Re: [R] COVID-19 datasets...

2020-05-06 Thread Thomas Petzoldt
, that organized it as a big JSON trees. Fortunately, both can be "tidied" with R, and represent good didactic examples for our students. Here yet another repo linking to the data: https://github.com/tpetzoldt/covid Thomas On 04.05.2020 at 20:48 James Spottiswoode wrote: Sure. COV

[R] Grouping Question

2020-03-21 Thread Thomas Subia via R-help
. Else Serial_test is a fail. I'm at a loss to figure out how to do this in R. Some guidance would be appreciated. All the best, Thomas Subia __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

[R] Annotate question

2020-02-19 Thread Thomas Subia
Colleagues, To add an annotation using ggplot, I've used annotate("text",x=17,y=2130,label="16 u"). However, this does not work when trying to annotate box plots by groups since groups are factors. Any advice would be appreciated. Thomas Subia ASQ CQE IMG Companies

Re: [R] readxl issue

2020-02-05 Thread Thomas Subia
attern="*.xls", full.names = TRUE) # Extract part average from cell c6 for all Excel files avgs <- lapply(files, read_excel, sheet="Flow Data", range=("c9")) # Write data to text file write.table(avgs ,"avgs.txt",sep="\t") I'm not sure where read_csv

[R] readxl issue

2020-02-05 Thread Thomas Subia
rst lines of the dates.txt file. "X43859" "X43859.1" "X43859.2" "X43859.3" "X43833" In Excel, this is what is recorded. 1/29/2020 1/29/2020 1/29/2020 1/29/2020 1/3/2020 It appears that readxl is adding additional characters which are signalin

Re: [R] R Dplyr hands on project

2020-01-30 Thread Thomas Subia
hoice graphs with whatever variables you choose without having to write any code. Parenthetically, after creating the graph, the add in will display the code which created your graph. Pairing equisse with Chang's book will enable you to learn how to create graphs using R more easily. Hope this helps!

[R] [R-pkgs] Introducing skedastic: Heteroskedasticity Diagnostics for Linear Regression Models

2020-01-13 Thread Thomas Farrar
very new test that appeared in the literature only in 2019. Feedback on bugs/issues is most welcome at https://github.com/tjfarrar/skedastic and reviews are welcome at crantastic: https://crantastic.org/packages/skedastic Sincerely, Thomas Farrar Cape Peninsula University of Technology; University

[R] Dataframe by Serial ID

2020-01-08 Thread Thomas Subia
Post.Date Pre.Hole Pre.flowPre.Date Any ideas on how to do this would be appreciated. Thomas Subia Statistician / Senior Quality Engineer IMG Companies  225 Mountain Vista Parkway Livermore, CA 94551 T. (925) 273-1106 F. (925) 273- E. tsu...@imgprecision.com

[R] Checking for similar file names in two different directories

2019-12-26 Thread Thomas Subia
here a way to have R extract parts common to both directories? Thomas Subia Statistician / Senior Quality Engineer ASQ CQE IMG Companies  225 Mountain Vista Parkway Livermore, CA 94551 T. (925) 273-1106 F. (925) 273- E. tsu...@imgprecision.com Precision Manufacturing for Emerging Technolog

[R] Readxl Question

2019-12-20 Thread Thomas Subia
;) flowdf <-as.data.frame(flow.datum) myflow <- list(flowdf) write.table(myflow,"myflow.txt",sep=",") The problem with the dates.txt and the serials.txt is that they need to associated with its 49 corresponding values in myflow.txt. The objective is to create a text file having

[R] readxl question

2019-12-05 Thread Thomas Subia
rial_df) myserials <- list(trans_serial) write.table(myserials,"myserials.txt",sep="\t") R Output "" "X96739.0027.1" "X96739.0041.1" "X96739.0044.1" Original Excel Content 96739-0027/1 96739-0041/1 96739-0044/1 How can I amend my script so

[R] Combining text files

2019-12-03 Thread Thomas Subia via R-help
. I was thinking about using bind_cols() to do this. Am I on the right track here? All the best, Thomas SubiaStatistician / Sr. Quality EngineerIMG Precision Inc. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] pdf_combine error message

2019-11-27 Thread Thomas Subia
to 500. I reran pdf_combine(files, output= "joined.pdf") and I didn't get a too many open files warning. Is there an R setting which I can change to allow more files to be read? All the best Thomas Subia Statistician / Sr. Quality Engineer IMG Companies 

Re: [R] Extract lines from pdf files

2019-11-20 Thread Thomas Subia via R-help
MAT",lines) # output for date looks like [1]   6  62 118 174 230 286 342 398 # These are exactly the line positions I need. Now that I've got the desired lines, I don't know how to extract the data from those lines. Any advice would be appreciated. All the best, Thomas Subia Statistician / Quality En

[R] Extract lines from pdf files

2019-11-19 Thread Thomas Subia via R-help
ome pointers would be appreciated. All the best. Thomas Subia Statistician / Senior Quality Engineer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

[R] Extracting specific lines from pdfs

2019-11-19 Thread Thomas Subia
o format this to display the original data? I'd like to extend this code to all of the pdf files in a directory and to generate a table of all the serial, flatness, parallel1 and parallel2 data. I'm not having a lot of success trying to build the script for this. Some pointers would be apprec

Re: [R] Help for pdf conversion

2019-11-02 Thread Thomas Subia
Jim, That works well! Thanks again for your help! Thomas Subia -Original Message- From: Jim Lemon Sent: Wednesday, October 30, 2019 11:14 PM To: Thomas Subia Cc: r-help@r-project.org Subject: Re: [R] Help for pdf conversion Hi Thomas, Perhaps you should be doing something like

[R] Help for pdf conversion

2019-10-30 Thread Thomas Subia
=TRUE,col.names =FALSE) and examine the output, my output does not match cat(txt[1]). I suspect that sep= "\t",row.names =TRUE,col.names =FALSE) might be the error. How can one output the contents of cat(txt[1]) and retain its format? Thomas Subia [[alternative HTML version delet

[R] Problem loading packages in R 3.6.1

2019-09-18 Thread Thomas Knox
I have recently installed R 3.6.1 on my MacBook running Mac OS Mojave 10.14.5 in order to run a custom package called MH1823 (probability of detection). This package requires me to load the following packages from CRAN, tcltk, tcltk2, survival and xlsx. I have installed survival, xlsx and

Re: [R] gen.geneaslogy

2019-08-08 Thread Thomas Bolger
f family structure flexibility, though it could be > appropriate for genetics studies.) > > On August 8, 2019 7:11:50 AM PDT, Thomas Bolger wrote: > >Hi > > > >I have just started to do some analysis of genealogies and seem to be > >doing > >something wr

[R] gen.geneaslogy

2019-08-08 Thread Thomas Bolger
01711 2 > # > # > genex<-gen.genealogy(gen.df) Error in gen.genealogy(gen.df) : Invalid 'gen' parameter: identical individual number for both 'father' and 'mother' > # > -- Thomas Bolger Emeritus Full Professor of Zoology UCD School of Biology and Enviro

[R] Fw: Sample size required to estimate population variance Solution

2019-07-09 Thread Thomas Subia
be found using the equations in the article. All the best, Thomas Subia Quality Engineer / Statistician Fresenius Medical Care North America From: tgs...@yahoo.com Sent: Tuesday, July 9, 2019 8:01 AM To: Thomas Subia Subject: [EXTERNAL EMAIL] Fw: [R] Sample size required to estimate population

Re: [R] Sample size required to estimate population variance

2019-07-04 Thread Thomas Subia via R-help
whether the pwr package does that. On Thursday, July 4, 2019, 4:31:44 PM PDT, John wrote: On Tue, 2 Jul 2019 22:23:18 + (UTC) Thomas Subia via R-help wrote: > Colleagues, > Can anyone suggest a package or code which might help me calculate > the minimum sample size

[R] Sample size required to estimate population variance

2019-07-02 Thread Thomas Subia via R-help
Colleagues, Can anyone suggest a package or code which might help me calculate the minimum sample size required to estimate the population variance? I can do this in Minitab but I'd rather do this in R. Thomas Subia [[alternative HTML version deleted

[R] Post Hoc for Homogeneity of variance

2019-06-03 Thread Thomas Subia via R-help
Colleagues, When using Levene's test, I can identify if there are any differences in variance between factors. This is straight forward Is there a way to do a post hoc test to identify variance differences between factors? This is not so straight forward. All the best Thomas Subia

[R] Choropleth map over an outline of Florida's 67 counties

2019-05-30 Thread Thomas MacFarland
be Florida_map2, where the choropleth map of # incidents is placed over the map that outlines Florida's 67 # counties. # May 30, 2019 02:25 PM # -- Thomas W. MacFarland, Ed.D. Senior Research Associate; Institutional Effectiveness and Associat

[R] High p-value

2019-03-20 Thread Thomas Subia via R-help
t they differ by some other location shift (and the one-sided alternative "greater" is that A is shifted to the right of B). You observed that the medians are different. While the medians may be different, the test is dependent on ranks not media

[R] About wilcox test

2019-03-12 Thread Thomas Subia via R-help
a data set would be helpful for someone to investigate this further. Thomas SubiaStatisticianIMG Precision [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] CRAN Task View: Optimization and Mathematical Programming

2019-02-06 Thread Thomas Adams
Did you Google "R stat water resources optimization" or "r stats optimization"? It seems that applying some of the references below with R packages in the optimization task view probably gets you where you want to go. https://cran.r-project.org/web/packages/reservoir/reservoir.pdf

[R] read_xl question

2019-01-23 Thread Thomas Subia via R-help
t;Flow Data",range=("b9:c10"))   How can I do this for all my Excel files in the directory?   I can get the list of Excel files using: files =list.files(pattern="*.xls") But I’m not sure where to go from here. Some guidance would be appreciated.   All the best  Thomas

[R] Use ggplot to create a state map with counties and county names as labels

2018-09-21 Thread Thomas MacFarland
ies of Importance to the Study") + geom_polygon(data = ky_county, fill = NA, color = "black") + geom_polygon(color = "black", fill = NA) + geom_polygon(data = multiple_county_ky, fill = "red", color = "white") + theme_void() # But how can I add the

[R] A slightly unorthodox matrix product.

2018-08-04 Thread Thomas Jagger
vectors internally associated with each matrix, finally, we generate our 3D array by adding the dimensions attribute, a vector of 3 elements. This method should be fairly fast since we are using internal R matrix addressing, and not multiple function calls required by lapply (). I hope this hel

Re: [R] Dataverse (reading files with .tab and .7z suffixes)

2018-05-13 Thread Thomas Levine
Ilio Fornasero writes: > Yet, I am at this point. > > > > > ## 01. Finding the dataverse server and making a search > Sys.setenv("DATAVERSE_SERVER" =3D "dataverse.harvard.edu") > dataverse_search(".Hunger") > > > ## 02. Loading the dataset (in this example, I have chosen the word ".Hunge= > r" to

[R] Dataverse (reading files with .tab and .7z suffixes)

2018-05-13 Thread Thomas Levine
Ilio Fornasero writes: > I am trying to find a way to retrieve data from Harvard Dataverse website. > I usually don't have problem in web-scraping data but the problem here is > that there are a bunch of data formats such as .tab, .7z and so and > I just can't find a way to retrieve the data I am

Re: [R] R-help Digest, Vol 183, Issue 13

2018-05-13 Thread Thomas Levine
Ilio Fornasero writes: > Hello. > > I am trying to find a way to retrieve data from Harvard Dataverse website. > I usually don't have problem in web-scraping data but the problem here is > that there are a bunch of data formats such as .tab, .7z and so and I just > can't find a way to retrieve

Re: [R] R help

2018-03-31 Thread Thomas Mailund
The condition is true all the way until you index outside the vector... Cheers On 31 Mar 2018, 17.29 +0200, Henri Moolman , wrote: > Could you please provide help with something from R that I find rather > puzzling? In the small program below x[1]=1, . . . , x[5]=5. R

[R] Problem with my function using as.POSIXct

2018-03-28 Thread Thomas Adams
Hello all: I wrote a function: my.bastimeToSynoptic <- function(x) { f<-unlist(strsplit(as.character(x), " ")) hr<-unlist(strsplit(f[2], ":")) if(as.numeric(hr[1])<6) { synoptic<-"00" } else { synoptic<-as.integer(as.numeric(hr[1])/6)*6 }

Re: [R] restricted cubic spline in FGR function

2018-03-24 Thread Thomas Alexander Gerds
<amalraj.r...@abdn.ac.uk> writes: > Dear Thomas, > >I want to use evaluate effect of Age using restricted cubic form in the > FGR function as > Fgr.crr <- FGR(Hist(time, event) ~ rcs(Age_years), data=dat) > > It provides error. " Error in parse(text = termtext,

Re: [R] selectFGR - variable selection in fine gray model for competing risks

2018-03-19 Thread Thomas Alexander Gerds
this. However, I copy this email to Rob van Kruijsdijk who wrote the function ... maybe he wants to fix. you can always fix this yourself by copying the functions selectFGR, predictEventProb.selectFGR. Best Thomas "Raja, Dr. Edwin Amalraj" <amalraj.r...@abdn.ac.uk> writes: >

Re: [R] Parallel assignments and goto

2018-02-27 Thread Thomas Mailund
mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Tue, Feb 27, 2018 at 6:51 AM, Thomas Mailund <thomas.mail...@gmail.com> > > wrote: > > > Interestingly,

Re: [R] Parallel assignments and goto

2018-02-27 Thread Thomas Mailund
76.3949 977.6235 1042.5035 2889.779   100       factorial_tr_manual(1000) 110.215 116.919  130.2337 118.7350  122.7495   255.062   100  factorial_tr_automatic_1(1000) 179.897 183.437  212.8879 187.8250  195.7670   979.352   100  factorial_tr_automatic_2(1000) 508.353 534.328  601.9643 560.7830  

Re: [R] Parallel assignments and goto

2018-02-26 Thread Thomas Mailund
limit > llength_tr(make_llist(1000)) [1] 1000 I should be able to make the function go faster if I had a faster way of handling the variable assignments, but inside “with”, I’m not sure how to do that… Any suggestions? Cheers On 11 Feb 2018, 16.48 +0100, Thomas Mailund <thomas.mail...@gmai

Re: [R] Parallel assignments and goto

2018-02-11 Thread Thomas Mailund
. It might be doable with JIT or something like that, but my goal is less ambitious. Using local, though, might be an approach. I will play around with that tomorrow. Cheers On 11 Feb 2018, 18.19 +0100, David Winsemius <dwinsem...@comcast.net>, wrote: > > > On Feb 11, 2018, at 7:48 AM,

  1   2   3   4   5   6   7   8   9   10   >