Re: [R] How to create an R input

2023-08-30 Thread Jim Lemon
HI Jeff, This might give you a start. add_stuff<-function(x) { x<-xinc<-NA finished<-FALSE while(is.na(x)) x<-as.numeric(readline("What number do you want to start? ")) while(is.na(xinc) || !finished) { xinc<-as.numeric(readline("What number do you want to add? ")) if(is.numeric(xinc))

[R] How to create an R input

2023-08-30 Thread Jeff Reichman
R Help Trying to figure out how to create a simple program that will as the user from a value input and simply add 5 units to that value then ask the user for another value and add 45 units to it and on and on. Then how does one exit the loop of program? # Create a function called

[R] data.table question

2023-08-30 Thread Naresh Gurbuxani
I want to apply interpolation functions from one data.table to each row of another data.table. interp.dt <- data.table(scen = rep(c("a", "b"), c(3, 3)), term = c(1, 20, 60, 1, 32, 72), shock = c(10, 20, 30, 9, 12, 32)) interp.fn <- function(df, x) with(df, approx(term, shock, xout = x)$y)

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-30 Thread Jeff Newmiller
TL:DR there are at least three maybe four ways to address this depending on what you plan to do. I usually adjust PATH to add Rtools using .Rprofile. But if you do that then if you want to use the command line to invoke R then you need to set the PATH separately when you start the shell. For

Re: [R] Book Recommendation

2023-08-30 Thread Greg Snow
Stephen, I see lots of answers with packages and resources, but not book recommendations. I have used Introduction to Data Technologies by Paul Murrell (https://www.stat.auckland.ac.nz/~paul/ItDT/) to teach SQL and database design and would recommend looking at it as a possibility. On Mon, Aug

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-30 Thread Duncan Murdoch
On 30/08/2023 2:59 p.m., Ivan Krylov wrote: On Wed, 30 Aug 2023 16:31:20 + Christophe Bousquet wrote: So, yes, it seems possible for R to localize paths related to Rtools... But then, I really do not get where things go wrong... When installing packages containing code to compile, R

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-30 Thread Ivan Krylov
On Wed, 30 Aug 2023 16:31:20 + Christophe Bousquet wrote: > So, yes, it seems possible for R to localize paths related to > Rtools... But then, I really do not get where things go wrong... When installing packages containing code to compile, R eventually calls R CMD SHLIB. Same thing

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-30 Thread Ivan Krylov
В Wed, 30 Aug 2023 14:35:48 + Christophe Bousquet пишет: > I followed your instructions and, yes, Rtools43 bash told me at the > end "Hello world!". > > Do you think this is a good sign? And do you have any idea how I > could continue to solve the issue? It is a good sign. Your Rtools43

Re: [R] Book Recommendation

2023-08-30 Thread Stephen H. Dawson, DSL via R-help
Thanks, Hadley. I appreciate your helpful assistance. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 8/28/23 18:00, Hadley Wickham wrote: These days I'd recommend duckdb

Re: [R] Book Recommendation

2023-08-30 Thread Stephen H. Dawson, DSL via R-help
Thanks, Martin. I appreciate your helpful assistance. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 8/28/23 17:14, Martin Møller Skarbiniks Pedersen wrote: The SQLite is a good database to use.

Re: [R] Book Recommendation

2023-08-30 Thread Stephen H. Dawson, DSL via R-help
Thanks, Bill. I appreciate your helpful assistance. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 8/29/23 00:07, William Michels wrote: I'm a big fan of the sqldf package by Gabor Grothendieck:

Re: [R-es] Realizar anovas, por cada uno de los niveles de uno de los factores del ensayo

2023-08-30 Thread Juan Abasolo
Epa, tocayo! No me queda claro cómo los estás haciendo, pero de una u otra manera, si usás forcats::fct_infreq() , voy de memoria, se te van a ordenar según cuál de los valores tengás más veces repetidos. Y si no es ese el que querés, fijate dentro del paquete y vas a encontrar el que más te

Re: [R-es] Realizar anovas, por cada uno de los niveles de uno de los factores del ensayo

2023-08-30 Thread Relloso Barrio, Juan Bautista
Buenos días. Una consulta. Alguiensabe como puedo conseguir que los gráficos Box plot salgan ordenador por los valores dela variable de mayo a menor o de menor a mayor? Muchas gracias. Un saludo. Juan Bautista Relloso Barrio Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-30 Thread Ivan Krylov
On Tue, 29 Aug 2023 14:41:40 + Christophe Bousquet via R-help wrote: > (ii) the same issues keep coming back on my work laptop It may be worth asking the IT department at work, just in case there is a system to prevent unauthorised programs from running that interferes with Rtools. Are you