Re: [R] New var

2017-06-04 Thread David R Forrest
Sent from my iPhone > On Jun 4, 2017, at 1:36 PM, David L Carlson wrote: > > Since the number of choices is small (6), how about this? > > Starting with Jeff's initial DFM: > > DFM <- structure(list(obs = 1:6, start = structure(c(16467, 14710, 13152, > 13787, 15126, 12696), class = "Date"),

Re: [R] Regression expression to delete one or more spaces at end of string

2016-08-02 Thread David R Forrest
Double the [[]] and add a + for one-or-more characters: sub("[[:blank:]]+$", "", COLNAMES) > On Aug 2, 2016, at 12:46 PM, Dennis Fisher wrote: > > R 3.3.1 > OS X > > Colleagues, > > I have encountered an unexpected regex problem > > I have read an Excel file into R using the readxl packa

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread David R Forrest
Please specify your goal in the oracle/psql analytical functions you know or specify what you mean by nonlinear correlation Sent from my iPhone > On Apr 9, 2016, at 6:09 AM, Muhammad Bilal > wrote: > > No its not. I am doing all these experiments for my own learning purpose. I > am Oracle S

Re: [R] How numerical data is stored inside ts time series objects

2015-04-22 Thread David R Forrest
> On Apr 21, 2015, at 9:39 PM, Paul wrote: ... > I rummaged around the help files for str, summary, dput, args. This > seems like a more complicated language than Matlab, VBA, or even C++'s > STL of old (which was pretty thoroughly documented). A function like > str() returns an object descript

[R] Mac Yosemite R.app console typing / autorepeat performance

2015-01-13 Thread David R Forrest
I am having issues with performance in the R.app console on Mac Yosemite / OS X 10.10.1. 1) While editing commands on the command line, left or right arrow gradually slows within a session from usable rates to rates like 2/second or slower. 2) Autorepeat works differently for different charac

Re: [R] SQL vs R

2014-05-06 Thread David R Forrest
It sounds as if your underlying MySQL database is too slow for your purposes. Whatever you layer on top of it will be constrained by the underlying database. To speed up the process significantly, you may need to do work on the database backend part of the process. Dave On May 6, 2014, at 7

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-14 Thread David R Forrest
Hi Bander, I'm pushing this discussion back to the list, because I'm not sure of the shape/rate parameters for rpareto and rexp and how they'd be applied across this mix of typo'd papers. # Reed Equation 6 http://www.math.uvic.ca/faculty/reed/dPlN.3.pdf exponentiated per end of sec 3: rdpln<-f

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-13 Thread David R Forrest
...Additionally...your set of parameters match none of the curves in figure 4. I think the ordering of the parameters as listed on the graphs is different than in the text of the article. The 'v' parameter controls the location of the 'elbow' and should be near log(x) in each graph, while the '

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-13 Thread David R Forrest
Looks like there are typos in equation 8 of http://cs.stanford.edu/people/jure/pubs/dpln-kdd08.pdf (expo2 doesn't depend on 'v') or equation 9 of http://www.math.uvic.ca/faculty/reed/dPlN.3.pdf ('a' is not specified). Dave On Nov 13, 2013, at 11:43 AM, "b. alzahrani" wrote: > > Hi > > I

Re: [R] Double Pareto Log Normal Distribution

2013-11-12 Thread David R Forrest
http://www.math.uvic.ca/faculty/reed/dPlN.3.pdf is the original ref and has the equations. library(VGAM) for *pareto() and library(stats) for *lnorm() should get you most of the way there. On Nov 12, 2013, at 10:47 AM, "b. alzahrani" wrote: > Hi guys > I would like to generate random number