[R] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Hi, I want to create my own RGUI, so I�m using tcltk for that. In a very simple example, I want to get the response of a function into a tktext, so I have done this: data<-c(2,3,5,2) tt<-tktoplevel text<-tktext(tt) tkpack(text) sum(data) How can I get the output of sum(data) in my tktext??

Re: [R] expression evaluation during recursion

2015-10-22 Thread david . kaethner
> You seem to have ignored my explanation. True, sorry. Thanks for sticking with me. Making sense now. > > Duncan Murdoch > >> >> >>> Am 22.10.2015 um 19:05 schrieb Duncan Murdoch >> >: >>> >>> On 22/10/2015 10:20

[R] quantile regression: error terms

2015-10-22 Thread T.Riedle
Greetings R Community, I am running quantile regressions using quantreg in R. I also plot the residuals in a QQplot which indicate fat tails. I would like to try using Student distribution, but I do not know if the R software allows it for my task in hand. In my opinion it is very likely that

Re: [R] expression evaluation during recursion

2015-10-22 Thread Duncan Murdoch
On 22/10/2015 2:44 PM, david.kaeth...@gmail.com wrote: Hi, I’m sure there’s a ton I don’t understand about environments, but I’m afraid your answer doesn’t make sense to me. If it’s on the search path, the „print(env)“ should yield something like: You never get to the search list.

Re: [R] expression evaluation during recursion

2015-10-22 Thread david . kaethner
Hi, I’m sure there’s a ton I don’t understand about environments, but I’m afraid your answer doesn’t make sense to me. If it’s on the search path, the „print(env)“ should yield something like: attr(,"name") [1] "package:pryr" attr(,"path") [1]

Re: [R] Error in Opening Project on R Studio

2015-10-22 Thread Duncan Murdoch
On 22/10/2015 10:18 AM, sdee...@iitk.ac.in wrote: > Good Evening everyone, > I am Deepak Singh, Student I.I.T. Kanpur, INDIA, was > working on a project on R Studio and now when I am > trying to open my project it is showing the attached > error. Can it be fixed? if 'Yes' then

Re: [R] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Thanks, but just one more question How can I catch the response and put it on a tktext? Imagien there is a function that the response is an error, how can i catch this error and manage it? Thanks! > From: pda...@gmail.com > Subject: Re: [R] Get the output of a function in R GUI > Date: Thu,

[R] Anina magija (r help)

2015-10-22 Thread Ana
"Anina magija" je čaj za mršavljenje. Napravljen je od bilja koje svakodnevno koristimo u ishrani i lečenju, po recepturi koju su generacije travarki prenosile sa kolena na koleno i koju je svaka naredna generacija obogatila novim dodatkom i boljim efektom.

Re: [R] Linear regression with a rounded response variable

2015-10-22 Thread Jim Lemon
Hi Ravi, And remember that the vanilla rounding procedure is biased upward. That is, an observation of 5 actually may have ranged from 4.5 to 5.4. Jim On Thu, Oct 22, 2015 at 7:15 AM, peter salzman wrote: > here is one thought: > > if you plug in your numbers into

[R] Need help in completing this R assignment

2015-10-22 Thread mehdiabdulla2
Sent from my T-Mobile 4G LTE Device __ 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,

Re: [R] Linear regression with a rounded response variable

2015-10-22 Thread Ravi Varadhan
Dear Peter, Charles, Gabor, Jim, Mark, Victor, Peter, and Harold, You have given me plenty of ammunition. Thank you very much for the useful answers. Gratefully, Ravi From: peter dalgaard Sent: Wednesday, October 21, 2015 8:11 PM To:

[R] SARIMA in rpy2

2015-10-22 Thread pietro chen
Hello, Am trying to estimate a seasonal Arima by calling the R forecast package in Rpy2: fit = forecast.Arima(x = h02, order = order, seasonal = seasonal) Strangely I get the estimates of the non-seasonal part, only, even if the model is specified as (3,0,1)x(0,1,2). Can anyone tell me where

[R] (no subject)

2015-10-22 Thread Xibiao YE
Hi, I am new to R and am trying to run some spatial analysis using SpatialEpi package. Here is part of my code: geo<-latlong2grid(cbind(MBPolygon@data$X,MBPolygon@data$Y)) population<-tapply(mydata$population,mydata$PHRAS4,sum) cases<-tapply(mydata$case, mydata$PHRAS4,sum)

[R] GARCH convergence error in for-loop

2015-10-22 Thread Hannah L. Linder
Hello, I am using the rugarch package to fit to simulated data. I am fitting the same garch model to 1000 simulated data sets (all very similar with slightly different error). Within each data set I am using 10-fold CV, so I am fitting the model to 10 training sets. When I run the code (shown

Re: [R] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Thanks, but it does�nt do what I want. What I wnat is to insert it into a tktext. Jes�s Date: Thu, 22 Oct 2015 10:06:20 +0100 Subject: Re: [R] Get the output of a function in R GUI From: kmezh...@gmail.com To: j.para.fernan...@hotmail.com CC: r-help@r-project.org Hi, require(tcltk)

Re: [R] Get the output of a function in R GUI

2015-10-22 Thread peter dalgaard
On 22 Oct 2015, at 10:49 , Jesús Para Fernández wrote: > Hi, > > I want to create my own RGUI, so I�m using tcltk for that. > > In a very simple example, I want to get the response of a function into a > tktext, so I have done this: > data<-c(2,3,5,2) >

Re: [R] Get the output of a function in R GUI

2015-10-22 Thread Karim Mezhoud
Hi, require(tcltk) data<-c(2,3,5,2) PressedOK <- function() { tkmessageBox(message=sum(data)) } tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=PressedOK) tkgrid(OK.but) tkfocus(tt) Please take a look in examples:

Re: [R] Control of x-axis variable ordering in ggplot

2015-10-22 Thread Jeff Newmiller
The ggplot function has no display behaviour. You have to couple it with a geom function to define how the data will be displayed. Read ?geom_line and ?geom_poly. --- Jeff NewmillerThe .

[R] Control of x-axis variable ordering in ggplot

2015-10-22 Thread sbihorel
Hi, Given a certain data.frame, the lattice xyplot function will plot the data as.is and join the data point in the order of the data frame. It is my (probably flawed) understanding that, using the same data frame, ggplot orders the data by increasing order of the x-axis variable. Can one

Re: [R] Announcement - The Use Of Nabble For Posting To R-Help Will

2015-10-22 Thread Jesús Para Fernández
Nice [[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 do read the posting guide

Re: [R] Linear regression with a rounded response variable

2015-10-22 Thread Doran, Harold
> Yes, and I think that the suggestion in another post to look at censored > regression is more in the right direction. I think this is right and perhaps the best (or at least better) pathway to pursue than considering this within the framework of measurement error (ME). Of course there *is*

Re: [R] Bollinger Band quantmod

2015-10-22 Thread Joshua Ulrich
On Mon, Oct 19, 2015 at 4:04 PM, bgnumis bgnum wrote: > Hi all, > > When I plot Bollinger bands with > > chartSeries( > IBEX,theme="white", > TA = c(addBBands(50,2)) > > ) > > There is a "no" shadow area that it is used to obtain the levels. How can I > plot with charSeries

Re: [R] Update dataframe based on some conditions

2015-10-22 Thread david . kaethner
Hi, what I find a little confusing about your example: If there are several positions with a REF of, say, 999, why do you not just add them up to a single position? Because if you have the same position in several rows, than REF is not a unique identifier for that position. You would need the

[R] expression evaluation during recursion

2015-10-22 Thread david . kaethner
Hello, I’m trying to solve an exercise, where I want to walk through the search path recursively (http://adv-r.had.co.nz/Environments.html ). I’m puzzled by a certain behavior and hope somebody can give me an explanation. This code works: listenv <-

[R] Codes of Conduct at R Conferences

2015-10-22 Thread Martyn Plummer
The useR! conferences in 2014 and 2015 both had codes of conduct in order to ensure an experience free from harassment for all participants. After a request from some members of the R community, the R Foundation has decided to endorse this practice. Future conferences supported by the R Foundation

Re: [R] Scope of Axes

2015-10-22 Thread S Ellison
> fhist<-hist(Simulation,plot=FALSE) > par(mar=c(6,0,6,6)) > barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray") i) Unlike hist(), barplot() does not plot at histogram bin boundaries - you'll have noticed that you did not specify locations for the bars and in fact can not do so

[R] Error in Opening Project on R Studio

2015-10-22 Thread sdeepak
Good Evening everyone, I am Deepak Singh, Student I.I.T. Kanpur, INDIA, was working on a project on R Studio and now when I am trying to open my project it is showing the attached error. Can it be fixed? if 'Yes' then how can I do fix it ? Please help. Thank You! Deepak Singh

Re: [R] expression evaluation during recursion

2015-10-22 Thread Duncan Murdoch
On 22/10/2015 10:20 AM, david.kaeth...@gmail.com wrote: > Hello, > > I’m trying to solve an exercise, where I want to walk through the search path > recursively (http://adv-r.had.co.nz/Environments.html > ). > > I’m puzzled by a certain behavior and

[R] spatial adjustment using checks

2015-10-22 Thread DIGHE, NILESH [AG/2362]
Hi, I have yield data for several varieties and a randomly placed check (1 in every 8 column or "cols") in a field test arranged in a rows*cols grid format (see image attached). Both "rows" & "cols" are variables in the data set. I like to adjust "yield" variable for each row listed as