Hi, I have a data frame that looks something like this:
id day k 656 -1 566 663 -1 680 673 -1 773 675 -1 761 704 -1 685 714 -1 636 717 -1 421 719 -1 645 727 -1 761 731 -1 663 11 735 -1 603 12 738 -1 865 13 742 -1 594 14 744 -1 601 15 747 -1 816 16 749 -1 802 17 753 -1 811 18 761 -1 585 19 768 -1 644 20 771 -1 649 21 772 -1 679 22 788 -1 467 23 799 -1 572 24 81 -1 446 25 656 2 298 26 663 2 273 27 673 2 837 28 675 2 830 29 704 2 297 30 714 2 255 31 717 2 197 32 719 2 756 33 727 2 844 34 731 2 265 35 735 2 228 36 738 2 913 37 742 2 250 38 744 2 837 39 747 2 316 40 749 2 871 41 753 2 455 42 761 2 893 43 768 2 916 44 771 2 797 45 772 2 371 46 788 2 659 47 799 2 398 ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. ______________________________________________ R-help@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.