Re: [R] Directly copying data from RStudio to MS Excel

2021-06-06 Thread Jeff Newmiller
No idea. a) This mailing list is about the R Language, not the RStudio editor. b) I find that the power of R lies in the ability to give it a script of commands and have to loop through many tasks. Copying and pasting is a manual intervention that prevents bulk calculations in most cases. c)

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-06 Thread Rolf Turner
On Sun, 6 Jun 2021 04:34:02 -0700 William Michels via R-help wrote: > ... But of course, a more simple approach than I previously > posted would be below (although less idiomatic than your answer): > > > object <- 1:100 > > index <- ifelse(object %% 2 == 1, TRUE, FALSE) > > object[index] >

Re: [R-es] Instalación de R en varias máquinas

2021-06-06 Thread miguel.angel.rodriguez.muinos
Hola Patricio. Puedes copiar la carpeta donde hayas instalado R y llevarla a las máquinas que quieras. Funcionará sin problemas porque R instala todo en el mismo sitio. No copia librerías en otras partes del sistema. Así es como lo portabilizo yo para BioStatFLOSS. Un saludo, Miguel.

[R] Directly copying data from RStudio to MS Excel

2021-06-06 Thread Ahmad Raza
Dear Experts, I am trying to copy data tables from RStudio to MS Excel. In Macbook, its working effortlessly. I can just press CMD+A, copy and directly paste onto excel sheet. All text, table and format are preserved. However, its not working on Windows 10 MS Office 365 Excel. First, simple paste

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-06 Thread David Carlson
If the loop is necessary: num <- vector() for (i in 1:100) { if(i %% 2 != 0) num <- c(num, i) } num Or modify your code to this to get each odd number printed on a separate row: for (i in 1:100) { if(i %% 2 != 0) print(i) } David L Carlson On Sun, Jun 6, 2021 at 3:21 PM David Carlson

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-06 Thread David Carlson
There is really no need for a loop: num <- 1:100 num[ifelse(num %% 2 == 1, TRUE, FALSE)] [1] 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 [26] 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 David L Carlson On Sat, Jun 5, 2021 at 2:05

Re: [R-es] Instalación de R en varias máquinas

2021-06-06 Thread Javier Marcuzzi
Estimados , Hay un programa, del mismo Microsoft, para administrar computadoras, no recuerdo el nombre, pero en muchas empresas hay cientos de computadoras, todo se puede administrar desde una. En todos casos, R se debe instalar manualmente, luego instale una librería, y podría intentar copiar la

Re: [R] Help for Use of R software

2021-06-06 Thread Sorkin, John
Simon, I suggest you look at the web page https://cran.r-project.org/web/packages/SampleSize4ClinicalTrials/SampleSize4ClinicalTrials.pdf The package SampleSize4Clinical Trials appears to be exactly what you want. I believe it can produce a sample size estimate comparing two proportions for

Re: [R] Help for Use of R software

2021-06-06 Thread David Winsemius
I get the sense that you need further background on statistical testing issues and suggest this resource: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3510268/ -- David Winsemius, MD, MPH On 6/6/21 10:06 AM, Lee Simon wrote: Dear Sir/Madam, May I seek for your kind help for the use of R

Re: [R] Help for Use of R software

2021-06-06 Thread David Winsemius
A google-search of the term brings up as its first hit a link to a page on the rdocumentation.org website that indicates that theTrialSize package(version1.4) has a function named "TwoSampleProportion.NIS". If you executed

[R] Help for Use of R software

2021-06-06 Thread Lee Simon
Dear Sir/Madam, May I seek for your kind help for the use of R software for conducting two-proportional z-test which is test for non-inferiority? What function will the R software provide for doing such test with 95%CI and P-value calculated. Thank you very much! With kindest regards, Simon

[R] Help for Use of R software

2021-06-06 Thread Lee Simon
Dear Sir/Madam, May I seek for your kind help for the use of R software for conducting two-proportional z-test which is test for non-inferiority? I have found one saying using function (TwoSampleProportion.NIS(alpha, beta, p1, p2, k, delta, margin) but the software said there is not such

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-06 Thread William Michels via R-help
Dear Bert, First off, I want to thank you for the many hundreds (if not thousands) of excellent posts I've read from you on this mailing list over the years. And you are absolutely correct that when using the `%%` modulo operator, your code is the most compact and the most idiomatic. That being

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

2021-06-06 Thread Thomas Bulka
Am Sa., 5. Juni 2021 um 11:47 Uhr schrieb Micha Silver : > It's not clear what you're asking. The time strings already have the > timezone offset specified. If you get rid of the "T" character in the > strings, then you can use regular datetime formatting specifiers to > convert to R datetime