[R] Using plyr and segmented together - output problem

Hadley Wickham hadley at rice.edu
Wed May 12 18:43:27 CEST 2010

Hi Ken,

Could you please provide a small reproducible example?   There are
some hints on how to do so at http://gist.github.com/270442.


On Wed, May 12, 2010 at 11:22 AM, Ken Minns <ken at minns.ca> wrote:
> I am using the package segmented to fit a simple breakpoint regression to a
> large number of sets of x,y data. I have used ddply in the package plyr to
> allow me to run many data sets and gather the results into a data.frame.
> When I run it I get 3 rows inserted in the output data.frame for each set of
> data. The middle row contained the correct results (I cross-checked by
> running a single data set) while all but the degrees of freedom is correct
> in the other two rows. Help.
> ______________________________________________
> R-help at r-project.org mailing list
> 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, minimal, self-contained, reproducible code.

Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

More information about the R-help mailing list