Re: [R] Perfect prediction of AR1 series using package dlm, posted on stack exchange

2017-05-05 Thread Ashim Kapoor
Dear Peter, Many thanks, Ashim. On Thu, May 4, 2017 at 4:54 PM, peter dalgaard wrote: > I am not an expert on dlm, but it seems to me that you are getting perfect > _filtering_ not _prediction_. If you cast an AR model as a state space > model, there is no measurement error on the state values,

Re: [R] Problems installing IsoriX package in R

2017-05-05 Thread Jeff Newmiller
If by "this problem" you mean the error "no package named x" then yes. It means you need to find the "proxy" package or find an updated version of the package that required the "proxy" package. Since it is on CRAN [1], it might be as simple as installing the package, or your preferred mirror mi

[R] Problems installing IsoriX package in R

2017-05-05 Thread Victoria Dominguez Almela
Hi everyone! I am trying to build an isoscape using R, but I am having issues when comes to install the IsoriX package. The next message comes through: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called �proxy� Has anyone faced t

Re: [R] Formatting column displays

2017-05-05 Thread Bruce Ratner PhD
Thanks, Bill. Bruce __ > On May 5, 2017, at 5:54 PM, William Dunlap wrote: > > Use Google: a search for "R Reporter package" shows that the package is named > "ReporteRs". > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > >> On Fri, May 5, 2017 at 2:50 PM, BR_email wrot

Re: [R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-05 Thread John C Frain
As far as I can recall this is and always was a "feature" of MS Windows. Filenames with embedded spaces must be within double quotes. Single quotes can not be used. I understand that single quotes had or may still have some meaning in "for" statements in a batch file. I have never had occasion to

Re: [R] Formatting column displays

2017-05-05 Thread William Dunlap via R-help
Use Google: a search for "R Reporter package" shows that the package is named "ReporteRs". Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, May 5, 2017 at 2:50 PM, BR_email wrote: > Jeff: > I cannot install the ReporteR package. Is there a work-around, or is the > error message correct? > T

Re: [R] Formatting column displays

2017-05-05 Thread BR_email
Jeff: I cannot install the ReporteR package. Is there a work-around, or is the error message correct? Thanks. Bruce R> install.packages("ReporteR") Installing package into ‘C:/Users/BruceRatner/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘Re

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Bert Gunter
Haven't followed this closely, but ?Startup and links therein might be useful (esp .First). Bert On May 5, 2017 11:47 AM, "David Winsemius" wrote: > On May 5, 2017, at 7:48 AM, Michael Dewey wrote: > > Dear Ralf > > You can manually save it with > savehistory(insertyour preferred filenameher

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread David Winsemius
> On May 5, 2017, at 7:48 AM, Michael Dewey wrote: > > Dear Ralf > > You can manually save it with > savehistory(insertyour preferred filenamehere.r) > > or does that not do what you hoped? Or you can exit to your system browser and copy of the desired sections of the .Rhistory file that you

Re: [R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-05 Thread Bos, Roger
Dominik, Folders with spaces can be very tricky sometimes. In my case single quotes didn't work, but double quotes did (see my example below). Adding the full path to your PATH variable with eliminate the need to specify the full path, making it much easier. Thanks, Roger Microsoft Window

Re: [R] Formatting column displays

2017-05-05 Thread Bruce Ratner PhD
Ulrike: Thanks for the afterthought. I'll let you know if I'm successful. Thanks, again. Bruce __ > On May 5, 2017, at 10:55 AM, Ulrik Stervbo wrote: > > Hi Bruce, > > while working with data I would not touch the formatting of the columns. If > knowing the units is importan

Re: [R] Formatting column displays

2017-05-05 Thread Ulrik Stervbo
Hi Bruce, while working with data I would not touch the formatting of the columns. If knowing the units is important, you can add it to the column name rather than the values of the columns. For presentation purposes - where everything is turned into strings - it is a different story. Once you ar

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Michael Dewey
Dear Ralf You can manually save it with savehistory(insertyour preferred filenamehere.r) or does that not do what you hoped? On 05/05/2017 14:44, Ralf Goertz wrote: Am Fri, 05 May 2017 06:30:01 -0700 schrieb Jeff Newmiller : The answer most people seem to use is to avoid depending on functio

Re: [R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-05 Thread Richard M. Heiberger
Try the 8.3 version of the path name. dir /w if I remember correctly. "Program files" will become progra~1 On Fri, May 5, 2017 at 06:46 Michael Dewey wrote: > Dear Dominik > > Try this > Open a command window > Type PATH > Does the path to where R has stored its executables appear on the P

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
Read ?history. Seems somewhat platform dependent, but they ARE different. -- Sent from my phone. Please excuse my brevity. On May 5, 2017 7:23:14 AM PDT, Ralf Goertz wrote: >Am Fri, 05 May 2017 07:14:36 -0700 >schrieb Jeff Newmiller : > >> R normally prompts you to save .RData, but it just aut

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Am Fri, 05 May 2017 07:14:36 -0700 schrieb Jeff Newmiller : > R normally prompts you to save .RData, but it just automatically > saves .Rhistory... the two are unrelated. Not here. If I say "n" to the prompted question "Save workspace image? [y/n/c]: " my history doesn't get saved. Version: R

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
R normally prompts you to save .RData, but it just automatically saves .Rhistory... the two are unrelated. -- Sent from my phone. Please excuse my brevity. On May 5, 2017 6:44:50 AM PDT, Ralf Goertz wrote: >Am Fri, 05 May 2017 06:30:01 -0700 >schrieb Jeff Newmiller : > >> The answer most peopl

Re: [R] Non-Linear Regression Help

2017-05-05 Thread J C Nash
If you insist on using nls() for anything that you don't understand extremely well, you will end up with frustration. nls() uses the same method K F Gauss used (with good understanding of the details) over 200 years ago. The Gauss-Newton approach inside works very well and efficiently for problems

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Am Fri, 05 May 2017 06:30:01 -0700 schrieb Jeff Newmiller : > The answer most people seem to use is to avoid depending on functions > in RData files, and in particular avoiding ever saving the > "automatic" ".RData" files at all. (Some people avoid using any RData > files, but the automatic loadin

Re: [R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Jeff Newmiller
The answer most people seem to use is to avoid depending on functions in RData files, and in particular avoiding ever saving the "automatic" ".RData" files at all. (Some people avoid using any RData files, but the automatic loading of functions by ".RData" files is a particularly pernicious sour

Re: [R] Formatting column displays

2017-05-05 Thread Bruce Ratner PhD
Jeff: Thanks for reply. I will follow your lead. Thanks. Bruce __ > On May 5, 2017, at 9:15 AM, Jeff Newmiller wrote: > > Data frames are primarily data storage objects, not data display objects. You > can create a separate version of your data frame with formatted text strings

Re: [R] Formatting column displays

2017-05-05 Thread Bruce Ratner PhD
Ulrik: Thanks for reply. I obviously new to R, so I feel if the output on the console looks right I'm half way through my problem. I know it's not WYSIWYG, but it's a quasi start. Thanks. Bruce __ > On May 5, 2017, at 8:56 AM, Ulrik Stervbo wrote: > > Hi Bruce, > > display as

Re: [R] Formatting column displays

2017-05-05 Thread Jeff Newmiller
Data frames are primarily data storage objects, not data display objects. You can create a separate version of your data frame with formatted text strings, but what you usually really want is to handle column alignment as well and that really has to be addressed as part of your data output proce

Re: [R] Formatting column displays

2017-05-05 Thread Ulrik Stervbo
Hi Bruce, display as in the console or as a table for presentation? For the latter, look at sprintf: sprintf("%,1f", 1) sprintf("%.2f", 2.5678) sprintf("$%.3f", 2.5678) HTH Ulrik On Fri, 5 May 2017 at 14:08 Bruce Ratner PhD wrote: > R-helpers: > I need some references for formatting the disp

[R] Formatting column displays

2017-05-05 Thread Bruce Ratner PhD
R-helpers: I need some references for formatting the display of my data frame columns. Any guidance will be appreciated. Bruce ~~ I have a date frame with one column as an integer for which I want a comma display, one column consisting of dollar amounts, one column for which I want a display to

Re: [R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-05 Thread Michael Dewey
Dear Dominik Try this Open a command window Type PATH Does the path to where R has stored its executables appear on the PATH? Either way get back to us with more details. On 05/05/2017 11:01, Duncan Murdoch wrote: On 04/05/2017 4:08 PM, Dominik Szewczyk wrote: I cannot run R.EXE or RSCRIPT.EX

Re: [R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-05 Thread Duncan Murdoch
On 04/05/2017 4:08 PM, Dominik Szewczyk wrote: I cannot run R.EXE or RSCRIPT.EXE. It produces this error: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. I have attempted to put quotes around the full path including the executable and also r

Re: [R] Non-Linear Regression Help

2017-05-05 Thread PIKAL Petr
Hi I am not an expert in nonlinear regression, but your data seems to be rather weird. Last five points has almost linear relationship, the first one is several times higher. If there is no error in your data, I doubt that you can model it by power equation. Cheers Petr > -Original Mess

Re: [R] How do I use R to build a dictionary of proper nouns?

2017-05-05 Thread Boris Steipe
Did you try using the table() function, possibly in combination with sort() or rank()? Consider: myNouns <- c("proper", "nouns", "domain", "ontology", "dictionary", "dictionary", "corpus", "patent", "files", "proper", "nouns", "word", "frequency", "file", "preprocess",

[R] loading edited functions already in saved workspace automatically

2017-05-05 Thread Ralf Goertz
Hi, In short: Is it possible to have the previously saved workspace restored and nevertheless load a function already existing in this workspace via .Rprofile anyway? In detail: I use different directories for different projects. In all those projects I use a function which I therefore try to get