[R] Removing rows in a data frame

Bert Gunter bgunter.4567 at gmail.com
Fri Jul 3 07:44:03 CEST 2015


?precedence

-5:10 is (-5):10

-- Bert


Bert Gunter

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
   -- Clifford Stoll


On Thu, Jul 2, 2015 at 10:23 PM, Charles Thuo <tcmuigai at gmail.com> wrote:
> I have a data frame whose rows are 678013 . I would like to  remove rows
> from 30696 to 678013 and then attach a new column with a length of 30595.
>
>
> I tried
>
> Y<- X[-30595:678013,] and its not working
>
> In addition how do i add a new column
>
> Kindly assist.
>
> Charles
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list