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" <tcmui...@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@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]] ______________________________________________ R-help@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.