Re: [R] Column width in R terminal ?

2015-10-14 Thread Sarah Goslee
You should probably start by investigating what system("echo $COLUMNS", intern = TRUE) returns on your system. That works for me on linux. Sarah On Wed, Oct 14, 2015 at 10:27 AM, ce wrote: > > Thanks it works but I resize my terminals often. So I put in .Rprofile the >

Re: [R] Column width in R terminal ?

2015-10-14 Thread ce
This is perfect, automatically sets width even if I resize when in R . thanks a lot. -Original Message- From: "Joss Wright" [j...@pseudonymity.net] Date: 10/14/2015 10:32 AM To: "ce" CC: r-help@r-project.org Subject: Re: [R] Column width in R terminal ? On Wed,

Re: [R] how to do away for loop using functionals?

2015-10-14 Thread William Dunlap
> df=as.data.frame(cbind( sort(rnorm(mean=15,sd=10, n)),runif(n), rbinom(n, 1, 0.4) , g )) This is a lousy way to make a data.frame - the cbind forces all columns to be the same type and forces them into one vector then as.data.frame splits them up into separate columns again. You also get weird

Re: [R] Column width in R terminal ?

2015-10-14 Thread ce
Thanks it works but I resize my terminals often. So I put in .Rprofile the line: options(width=system("echo $COLUMNS",intern =TRUE)) but I get error : Error in options(width = system("echo $COLUMNS", intern = TRUE)) : invalid 'width' parameter, allowed 10...1 command works fine in R

Re: [R] Column width in R terminal ?

2015-10-14 Thread Joss Wright
On Wed, Oct 14, 2015 at 09:52:48AM -0400, ce wrote: > I use regular R in xterm terminal in KDE Gui . Even though I have a > big terminal and LINES and COLUMNS parameters are set, R shows data > frames and lists only 80 characters per line, then the rest on the > next line. How I can set it to

[R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Evan Cooch
So, am running 3.2.2 on a Centos 6.xx box. Code executes fine, but I'm having a heck of a time with graphics. I don't think this is related to R in the broad sense, but how it is interacting with graphics on the system. here is a description of the problem. 1\ something simple: test <-

[R] SQL Server "float" is not handled by RODBC -- Is there a workaround?

2015-10-14 Thread jim holtman
Here is the system I am using: = > sessionInfo() R version 3.2.2 (2015-08-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United

[R] Subscription request

2015-10-14 Thread Manish Sindagi
Hi, I have a few R programming related questions that i wanted to ask. Can you please accept my subscription request. Regards, Manish. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Subscription request

2015-10-14 Thread Ted Harding
On 14-Oct-2015 15:19:06 Manish Sindagi wrote: > Hi, > > I have a few R programming related questions that i wanted to ask. > Can you please accept my subscription request. > > Regards, > Manish. Visit the R-help info web page: https://stat.ethz.ch/mailman/listinfo/r-help Towards the bottom

Re: [R] how to do away for loop using functionals?

2015-10-14 Thread Michael Hannon
I've done a simple-minded transliteration of your code into code using nested lapply's. I doubt that it buys you much in terms of performance (or even clarity, which is really one of the main advantages of the `apply` family). > A [,1] [,2] [,3] [,4] [,5] [1,] 3.06097

Re: [R] 3D matrix columns messed up _ looking for your help

2015-10-14 Thread Jim Lemon
Hi Kristi, I'm only guessing here, but if I change the order of the levels of "site", it comes out the way you want. I don't think that this is a solution, but let me know if it helps. A<-structure(list(Tag = structure(c(1L, 1L, 1L), .Label = "a1", class = "factor"), site = structure(1:3,

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Thomas Adams
Evan, I have Ubuntu 14.04 and 15.10 at home and have not had problems, but I don't think I've been using R 3.2.2 — I'll try this evening. Tom On Wed, Oct 14, 2015 at 2:47 PM, Evan Cooch wrote: > Tom -- > > On 10/14/2015 3:35 PM, Thomas Adams wrote: > > Evan, > > Not that

Re: [R] algorithmic method quantile regression

2015-10-14 Thread Roger Koenker
Did you read item 1 in the quantreg FAQ()? url:www.econ.uiuc.edu/~rogerRoger Koenker emailrkoen...@uiuc.eduDepartment of Economics vox: 217-333-4558University of Illinois fax: 217-244-6678Urbana, IL 61801 > On Oct 14,

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Thomas Adams
Evan, Not that this helps you, but I am using a very similar platform and I am having the identical problem. My test simply comes from the first help(plot) example. I tried doing some things to 'correct' the problem and ended up mucking-up my Gnome environment. In the process, I was able to get

[R] algorithmic method quantile regression

2015-10-14 Thread T.Riedle
Greetings R Community, I am trying to run a quantile regression using the quantreg package. My regression includes 7 independent variables with approx. 800 daily observations each. Thus, I think that the Barrodale and Roberts algorithm should do the trick. However, the Frisch-Newton after

Re: [R] Last msg not sent to the list

2015-10-14 Thread marammagdysalem
Thanks a lot Ivan and Henrik. Maram Sent from my iPhone > On Oct 14, 2015, at 3:30 PM, Henrik Bengtsson > wrote: > > In addition, > > if you go to https://stat.ethz.ch/mailman/listinfo/r-help (which is in > the footer of every R-help message), you'll find a link

Re: [R] algorithmic method quantile regression

2015-10-14 Thread T.Riedle
The fn and br methods return the same results but the results provided by pfn differ. I do not find an explanation for this observation in the papers on quantile regression. Therefore my question. -Original Message- From: Roger Koenker [mailto:rkoen...@illinois.edu] Sent: 14 October

Re: [R] Fitting a curve to weibull distribution in R using nls

2015-10-14 Thread peter dalgaard
There's a number of issues with this: (a) your data appear to be binned counts, not measurements along a curve. (b) The function you are trying to fit is the Weibull _density_ This has integral 1, by definition, whereas any curve anywhere near your y's would have integral near sum(y)=127 (c)

Re: [R] Last msg not sent to the list

2015-10-14 Thread Ivan Calandra
Maram, I have received both of your e-mails on this topic, so they made it to the list. There is the option " Receive your own posts to the list?" on the membership configuration website (https://stat.ethz.ch/mailman/options/r-help/). If it is checked to "no", that would explain why you

Re: [R] Last msg not sent to the list

2015-10-14 Thread Henrik Bengtsson
In addition, if you go to https://stat.ethz.ch/mailman/listinfo/r-help (which is in the footer of every R-help message), you'll find a link to 'R-help Archives' (https://stat.ethz.ch/pipermail/r-help/). On that latter page, you'll see all messages that have been sent out to the list. That will

[R] Last msg not sent to the list

2015-10-14 Thread marammagdysalem
Dear All, My last mail entitled: "using the apply() family to evaluate nested functions with common arguments" to the r-help list didn't reach me though I've sent it 2 days ago. I've included my suggested code and asked about some details to make it work. In addition, I haven't received any

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Evan Cooch
On 10/14/2015 3:51 PM, Thomas Adams wrote: > Evan, > > I have Ubuntu 14.04 and 15.10 at home and have not had problems, but I > don't think I've been using R 3.2.2 — I'll try this evening. Indeed - it could be an R-version issue, and not so much the distro. I might, for chuckles, roll back to

Re: [R] double summation

2015-10-14 Thread David Winsemius
On Oct 14, 2015, at 1:29 PM, Sherouk Moawad via R-help wrote: > Σi=02 Σj=01(exp(xi+xj)), i>j if (i>0 and j>0) I want to write this > summation which has a condition on numerator(j0 and j>0I tried on this > code That comes across as only barely comprehensible. > sum(sapply(0:2,

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Evan Cooch
Tom -- On 10/14/2015 3:35 PM, Thomas Adams wrote: > Evan, > > Not that this helps you, but I am using a very similar platform and I > am having the identical problem. My test simply comes from the first > help(plot) example. I tried doing some things to 'correct' the problem > and ended up

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Evan Cooch
On 10/14/2015 4:00 PM, Evan Cooch wrote: > > > On 10/14/2015 3:51 PM, Thomas Adams wrote: >> Evan, >> >> I have Ubuntu 14.04 and 15.10 at home and have not had problems, but >> I don't think I've been using R 3.2.2 — I'll try this evening. > > Indeed - it could be an R-version issue, and not so

Re: [R] Fitting a curve to weibull distribution in R using nls

2015-10-14 Thread Therneau, Terry M., Ph.D.
On 10/14/2015 05:00 AM, r-help-requ...@r-project.org wrote: I am trying to fit this data to a weibull distribution: My y variable is:1 1 1 4 7 20 7 14 19 15 18 3 4 1 3 1 1 1 1 1 1 1 1 1 and x variable is:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Thomas Adams
Evan, I have R 3.2.2 installed on my Ubuntu 15.04 machine -- no problems with the graphics display. I have R 3.1.1 installed on my Ubuntu 14.04 machine, that, as expected I have not had any problems with... I tried to install 3.2.2 and 3.2.1 from source and got a very strange compile error, which

Re: [R] how to do away for loop using functionals?

2015-10-14 Thread Annie Hawk via R-help
Thank you Mike for looking into the problem and your helpful advice, really appreciate that.  Also, thank you Bill for pointing out the bad data.frame code.I modified the codes per your suggestions and run some time tests on n=2000 (increase # obs and groups as I actually have a much bigger

Re: [R] 'strange' R graphics problem | Linux...

2015-10-14 Thread Evan Cooch
A clue -- Working from home, I created an ssh tunnel into my CentOS box, and brought up the desktop remotely using VNC. Fire up R in a terminal, and *voila*, graphics work fine. So, if I'm sitting at the CentOS machine, R graphics choke and die. If I use a remote desktop approach, graphics

[R] Code translation from R to MATLAB

2015-10-14 Thread Ana Cristiuc
Dear Ted, I have found on Internet your very good comments on R vs MATLAB languages. I am a beginner in both languages, but unfortunately I have got a task to translate a huge code from R to MATLAB. Could you please recommend me some references or advices how to handle the problems

[R] double summation

2015-10-14 Thread Sherouk Moawad via R-help
Σi=02 Σj=01(exp(xi+xj)), i>j if (i>0 and j>0)  I want to write this summation which has a condition on numerator(j0 and j>0I tried on this code sum(sapply(0:2, function(i){sum(sapply(0:1, function(j){if (i>0>0){i>j}{exp(x[i]+x[j])}))}))But it didn't work Any help please

[R] Column width in R terminal ?

2015-10-14 Thread ce
Dear all, I use regular R in xterm terminal in KDE Gui . Even though I have a big terminal and LINES and COLUMNS parameters are set, R shows data frames and lists only 80 characters per line, then the rest on the next line. How I can set it to real terminal size so it shows all in one line?

Re: [R] Column width in R terminal ?

2015-10-14 Thread Sarah Goslee
See ?options in particular the width option. Sarah On Wed, Oct 14, 2015 at 9:52 AM, ce wrote: > > Dear all, > > I use regular R in xterm terminal in KDE Gui . Even though I have a big > terminal and LINES and COLUMNS parameters are set, R shows data frames and > lists

Re: [R] Fitting a curve to weibull distribution in R using nls

2015-10-14 Thread Aditya Bhatia
Thank you for the amazing response. You are right;I definitely have to study a bit more. I am just trying to copy the procedure in a paper so I didn't give it much thought. for point (a) : yes the data is binned counts; and my aim is to find out which curve best approximates these counts. I am

[R-es] Data Mining Group

2015-10-14 Thread Javier Rubén Marcuzzi
Estimados Estaba leyendo una publicación donde nombran y dan ejemplos sobre como conectar R a otros, expresado en otra forma, llegan datos a R y R envía a otros, donde estos otros son casi cualquier cosa, programa, web, etc. Porque básicamente R recibe la codificación en PMML, http://dmg.org/,

[R-es] Nueva publicación en blog en r-es.org

2015-10-14 Thread web
Nueva publicación en blog: Ofertas de trabajo, "Posición de Data Scientist en Reino Unido", por pedroc en 14/10/15 12:33h Ver el blog en: http://r-es.org/tiki-view_blog_post.php?blogId=2=108 Si no desea recibir estas notificaciones siga este enlace: http://r-es.org/tiki-user_watches.php?id=5

[R-es] potencia fracional de un número negativo

2015-10-14 Thread Alex J. Zambrano
Hola a tod@s. Realizando el calculo de encontrar la raíz quinta de -0.5, la cual dígito de la siguiente manera (-0.5)^(1/5) El resultado que me arroja R es NaN. Averiguando un poco entre las ayuda de las funciones aritméticas encuentro el siguiente comentario Users are sometimes surprised by