Re: [R] require help

2017-12-27 Thread PIKAL Petr
ilto:r-help-boun...@r-project.org] On Behalf Of yadav neog > Sent: Wednesday, December 27, 2017 8:05 PM > To: dnew...@dcn.davis.ca.us; R mailing list > Subject: [R] require help > > Respected sir, > hoping that you are well.sir, i am trying to run Tado-Yamamoto causality test >

Re: [R] require help

2017-12-27 Thread R. Mark Sharp
Yadav, We need some information that is missing in order to help you. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 75

[R] require help

2017-12-27 Thread yadav neog
Respected sir, hoping that you are well.sir, i am trying to run Tado-Yamamoto causality test with my data. I have three variables. but in running wal.test in R, I have faced problems (especially in 'terms' arguments). my results have shown as... Error in L %*% V : non-conformable arguments -- kin

Re: [R] require help

2017-09-22 Thread Joshua Ulrich
On Fri, Sep 22, 2017 at 7:28 AM, yadav neog wrote: > thankx to everyone for your valuable suggestions. one query regarding the > GARCH model. > I have applied the GARCH model for the same data that I send you all . and > my results coming like > > Error in .sgarchfit(spec = spec, data = data, out.

Re: [R] require help

2017-09-22 Thread yadav neog
thankx to everyone for your valuable suggestions. one query regarding the GARCH model. I have applied the GARCH model for the same data that I send you all . and my results coming like Error in .sgarchfit(spec = spec, data = data, out.sample = out.sample, : ugarchfit-->error: function requires a

Re: [R] require help

2017-09-21 Thread Gabor Grothendieck
Assuming the input data.frame, DF, is of the form shown reproducibly in the Note below, to convert the series to zoo or ts: library(zoo) # convert to zoo z <- read.zoo(DF) # convert to ts as.ts(z) # Note: DF <- structure(list(year = c(1980, 1981, 1982, 1983, 1984), cnsm = c(174, 175, 175, 17

Re: [R] require help

2017-09-16 Thread yadav neog
oky.. thank you very much to all of you On Sat, Sep 16, 2017 at 2:06 PM, Eric Berger wrote: > You can just use the same code that I provided before but now use your > dataset. Like this > > df <- read.csv(file="data2.csv",header=TRUE) > dates <- as.Date(paste(df$year,"-01-01",sep="")) > myXts <

Re: [R] require help

2017-09-16 Thread Eric Berger
You can just use the same code that I provided before but now use your dataset. Like this df <- read.csv(file="data2.csv",header=TRUE) dates <- as.Date(paste(df$year,"-01-01",sep="")) myXts <- xts(df,order.by=dates) head(myXts) #The last command "head(myXts)" shows you the first few rows of the x

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 11:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. > kindly help me. > also using zoo and xts packages. but they take only monthly observations. > >

Re: [R] require help

2017-09-15 Thread yadav neog
thanks, eric../ actually I have the data which have not specify the months. therefore i bound to declare is in yearly data. i also attached a sample data set that may be helpful for you to providing suggestions. thank you On Fri, Sep 15, 2017 at 5:23 PM, Ismail SEZEN wrote: > > > On 15 Sep 2017,

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 16:35, Berend Hasselman wrote: > >> >> On 15 Sep 2017, at 11:38, yadav neog wrote: >> >> hello to all. I am working on macroeconomic data series of India, which in >> a yearly basis. I am unable to convert my data frame into time series. >> kindly help me. >> also using z

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 11:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. > kindly help me. > also using zoo and xts packages. but they take only monthly observations. > >

Re: [R] require help

2017-09-15 Thread Ismail SEZEN
> On 15 Sep 2017, at 12:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. Do you really need to convert your data to time series/xts/zoo? I don’t know you try what kind

Re: [R] require help

2017-09-15 Thread Eric Berger
You did not provide the data frame so I will first create one and then use it to create an xts library(xts) df <- data.frame( year=1980:2009, cnsm=sample(170:180,30,replace=TRUE), incm=rnorm(30,53,1), wlth=rnorm(30,60,1)) dates <- as.Date(paste(df$year,"-01-01",sep="")) myXts <-

[R] require help

2017-09-15 Thread yadav neog
hello to all. I am working on macroeconomic data series of India, which in a yearly basis. I am unable to convert my data frame into time series. kindly help me. also using zoo and xts packages. but they take only monthly observations. 'data.frame': 30 obs. of 4 variables: $ year: int 1980 1981

Re: [R] require vs library ( Some basic time series questions)

2016-11-17 Thread Jeff Newmiller
Perhaps more people write end-user-ready applications in R than I am aware of and my bias is too strong. For working at the console I prefer not to have my scripts installing packages on their own (one possible alternative execution path), and it is too much trouble to implement multiple routes

Re: [R] require vs library ( Some basic time series questions)

2016-11-17 Thread Paul Gilbert
On 11/17/2016 04:49 PM, Jeff Newmiller wrote: require(tfplot) tfplot(x.ts) Would just like to point out that require() should not be treated as interchangeable with library(). The former returns a logical status indicating success or failure, while the latter throws an error if it falls. You

Re: [R] require vs library ( Some basic time series questions)

2016-11-17 Thread Jeff Newmiller
> require(tfplot) > tfplot(x.ts) Would just like to point out that require() should not be treated as interchangeable with library(). The former returns a logical status indicating success or failure, while the latter throws an error if it falls. You should reserve use of require() for cases w

Re: [R] require() but for source()d files

2014-08-25 Thread Ivan Calandra
Thank you Henrik, that's exactly what I'm looking for! Ivan -- Ivan Calandra University of Franche-Comté Laboratoire Chrono-Environnement Bureau ATER -107L 16, Route de Gray 25030 Besançon Cedex, France ivan.calan...@univ-fcomte.fr +33 (0) 381 66 20 60 http://chrono-environnement.univ-fcomte.fr/s

Re: [R] require() but for source()d files

2014-08-21 Thread Henrik Bengtsson
On Aug 21, 2014 7:40 AM, "Ivan Calandra" wrote: > > Dear useRs, > > I'm looking for something like require() but which will work on source()d files. > > I have a .R file with lots of functions and I'm writing a new function (say, 'foo') that depends on the functions from this file. > > Until now,

[R] require() but for source()d files

2014-08-21 Thread Ivan Calandra
Dear useRs, I'm looking for something like require() but which will work on source()d files. I have a .R file with lots of functions and I'm writing a new function (say, 'foo') that depends on the functions from this file. Until now, I have always source()d the .R file before running 'foo'.

Re: [R] require R code for calculating nagelkerke pseudo r2

2012-05-08 Thread Ben Bolker
ramakanth reddy gmail.com> writes: > I want to perform nagelkerke pseudo r2 test ... > can someone tell me is there any r function or package available for doing > it. > and also the sample input data how it should be. How about library(sos) findFn("nagelkerke") ? _

[R] require R code for calculating nagelkerke pseudo r2

2012-05-08 Thread ramakanth reddy
Hello, I want to perform nagelkerke pseudo r2 test ... can someone tell me is there any r function or package available for doing it. and also the sample input data how it should be. Regards GRR [[alternative HTML version deleted]] __ R-help

[R] require(dataset) for example.

2011-08-19 Thread Ken Hutchison
Dear R Users Any idea if there exists any one dimensional Cox Process datasets in R? 'Spatstat' is very comprehensive but doesn't seem to have any examples of 1D (time series) Doubly Stochastic Poisson Process data. (I am aware it can be simulated) Thank you,

Re: [R] Require

2011-01-12 Thread Gene Leynes
I read the help first, and read it again now, but I still don't see why the warning was generated. The help seems to state clearly that the user can suppress warnings "most often, no errors/warnings are printed if package loading fails." If the package doesn't exist, then it would fail to loa

Re: [R] Require

2011-01-12 Thread Matthew Vernon
Gene Leynes writes: > I think that the "quietly" argument in "require" isn't working > > > require('JumboShrimp', quietly=TRUE) > Warning in library(package, lib.loc = lib.loc, character.only = TRUE, > logical.return = TRUE, : > there is no package called 'JumboShrimp' > > Isn't quietly mean

Re: [R] Require

2011-01-12 Thread Uwe Ligges
On 12.01.2011 18:53, Gene Leynes wrote: I think that the "quietly" argument in "require" isn't working require('JumboShrimp', quietly=TRUE) Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called 'JumboShrimp' ?require

[R] Require

2011-01-12 Thread Gene Leynes
I think that the "quietly" argument in "require" isn't working > require('JumboShrimp', quietly=TRUE) Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called 'JumboShrimp' > By the way, the behavior is the same with options(warn

Re: [R] 'require' equivalent for local functions

2009-03-23 Thread JiHO
Thanks very much to everyone. I think I will use a combination of both techniques. On 2009-March-22 , at 20:08 , Duncan Murdoch wrote: That's pretty hard to make bulletproof. Why not just put those functions in a package, and use that package? I know it will be impossible to make bullet

Re: [R] 'require' equivalent for local functions

2009-03-22 Thread Ken-JP
I agree with Duncan. I used to do exactly what you did - source()ing data files inside a wrapper not unlike C #define wrappers, but it became a headache with more files and the files began looking more cluttered. It has taken me several days to learn about how create a package properly, along wi

Re: [R] 'require' equivalent for local functions

2009-03-22 Thread Duncan Murdoch
On 22/03/2009 5:05 PM, JiHO wrote: Hello everyone, I often create some local "libraries" of functions (.R files with only functions in them) that I latter call. In scripts that call a function from such library, I would like to be able to test whether the function is already known in the n

Re: [R] 'require' equivalent for local functions

2009-03-22 Thread Wacek Kusnierczyk
JiHO wrote: > Hello everyone, > > I often create some local "libraries" of functions (.R files with only > functions in them) that I latter call. In scripts that call a function > from such library, I would like to be able to test whether the > function is already known in the namespace and, only i

Re: [R] 'require' equivalent for local functions

2009-03-22 Thread Gabor Grothendieck
Try this: if (!exists("myfun", mode = "function")) source("myfile.R") Also check the other arguments of exists in case you want to restrict the search. On Sun, Mar 22, 2009 at 5:05 PM, JiHO wrote: > Hello everyone, > > I often create some local "libraries" of functions (.R files with only > fun

[R] 'require' equivalent for local functions

2009-03-22 Thread JiHO
Hello everyone, I often create some local "libraries" of functions (.R files with only functions in them) that I latter call. In scripts that call a function from such library, I would like to be able to test whether the function is already known in the namespace and, only if it is not, s

Re: [R] require() is not giving TRUE / FALSE statements ?

2009-03-10 Thread Wacek Kusnierczyk
Duncan Murdoch wrote: > On 10/03/2009 4:40 PM, Wacek Kusnierczyk wrote: >> Duncan Murdoch wrote: >>> On 10/03/2009 4:15 PM, Wolfgang Raffelsberger wrote: Dear list, ?require says : "... |require| is designed for use inside other functions; it returns |FALSE| and gives a war

Re: [R] require() is not giving TRUE / FALSE statements ?

2009-03-10 Thread Duncan Murdoch
On 10/03/2009 4:40 PM, Wacek Kusnierczyk wrote: Duncan Murdoch wrote: On 10/03/2009 4:15 PM, Wolfgang Raffelsberger wrote: Dear list, ?require says : "... |require| is designed for use inside other functions; it returns |FALSE| and gives a warning (rather than an error as |library()| does by d

Re: [R] require() is not giving TRUE / FALSE statements ?

2009-03-10 Thread Wacek Kusnierczyk
Duncan Murdoch wrote: > On 10/03/2009 4:15 PM, Wolfgang Raffelsberger wrote: >> Dear list, >> >> ?require says : >> "... |require| is designed for use inside other functions; it returns >> |FALSE| and gives a warning (rather than an error as |library()| does >> by default) if the package does not e

Re: [R] require() is not giving TRUE / FALSE statements ?

2009-03-10 Thread Duncan Murdoch
On 10/03/2009 4:15 PM, Wolfgang Raffelsberger wrote: Dear list, ?require says : "... |require| is designed for use inside other functions; it returns |FALSE| and gives a warning (rather than an error as |library()| does by default) if the package does not exist ..." However when I run the fo

[R] require() is not giving TRUE / FALSE statements ?

2009-03-10 Thread Wolfgang Raffelsberger
Dear list, ?require says : "... |require| is designed for use inside other functions; it returns |FALSE| and gives a warning (rather than an error as |library()| does by default) if the package does not exist ..." However when I run the following code I don't get any TRUE / FALSE statements