Hello,
I have a dataframe

1 2006-11       NaN
2 2006-12       NaN
3 2006-10 0.1577647
4 2006-11       NaN
5 2006-12       NaN
6 2007-01       NaN
7 2007-02       NaN
8 2007-03 0.2956429
9 2007-01       NaN
10 2007-02       NaN
I need to trim first and last NaN rows
Result -
1 2006-10 0.1577647
2 2006-11       NaN
3 2006-12       NaN
4 2007-01       NaN
5 2007-02       NaN
6 2007-03 0.2956429
Thanks.

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

Reply via email to