[R] Removing rows in a data frame

Sergio Fonda sergio.fonda99 at gmail.com
Fri Jul 3 10:09:31 CEST 2015


In my experience package "dplyr" has all functions to deal with this kind
of problems in a simple and compact way
Sergio
Il 03/lug/2015 07:26, "Charles Thuo" <tcmuigai at gmail.com> ha scritto:

> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list