Re: [R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Eric Berger
Hi Martin, Why not just do the following? In your editor after you create the script save it to a file, say "foo.R". Then in your R session you give the command > source("foo.R") HTH, Eric On Sun, Feb 4, 2018 at 6:33 AM, Bert Gunter wrote: > Obvious suggestion: use a

Re: [R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Bert Gunter
Obvious suggestion: use a more capable IDE instead of Textmate2 with copy/paste. RStudio is very popular now, but there are many others . Search on e.g. "R IDE For MAC" to see some alternatives. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along

Re: [R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Jeff Newmiller
This sounds like a problem with your editor or the OS clipboard support rather than R. You might get a response here, but R-sig-mac seems more appropriate to me for such discussion. -- Sent from my phone. Please excuse my brevity. On February 3, 2018 4:23:54 PM PST, Martin Batholdy via R-help

[R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Martin Batholdy via R-help
Dear R-users, This question might not be restricted to R, but I hope that some might have experienced similar problems and could help me. When using R, I usually work with a text-editor (textmate2) in which I prepare the script. To execute code, I then copy and paste it to an R-session running

Re: [R] find unique and summerize

2018-02-03 Thread Rui Barradas
Hello, As for the first question, instead of writing a xlsx file, maybe it is easier to write a csv file and then open it with Excel. tbl2 <- addmargins(tbl1) write.csv(tbl2, "tt1.csv") As for the second question, the following does it. inx <- apply(tbl1, 1, function(x) all(x != 0)) tbl1b

[R] Speeding up npreg

2018-02-03 Thread Michael Haenlein
Dear all, I am using npreg from the np library to run a Kernel regression. My dataset is relatively large and has about 3000 observations. The dependent variable is continuous and I have a total of six independent variables -- two continuous, two ordinal and two categorical. The model converges

Re: [R] find unique and summerize

2018-02-03 Thread Val
Thank you so much Rui. 1. How do I export this table to excel file? I used this tbl1 <- table(Country, IDNum) tbl2=addmargins(tbl1) write.xlsx(tbl2,"tt1.xlsx"),sheetName="summary", row.names=FALSE) The above did not give me that table. 2. I want select those unique Ids that do

Re: [R-es] Avro.-

2018-02-03 Thread José Luis Cañadas
Quizá algún paquete de cloudyr te sirva. https://github.com/cloudyr El vie., 2 feb. 2018 16:57, Freddy Omar López Quintero < freddy.lopez.quint...@gmail.com> escribió: > Hola. > > Espero que estén bien. > > Les cuento. Tengo acceso a unos datos .avro en un s3 de amazon pero estoy > desconcertado