请问我如何保留满足其中一个条件的某一行?比如我想保留datec1、datec2、datec3、datec4、datec5中至少有一个<2015的那行。标棕的是我想保留的,谢谢。我试了 keep if datec1<2015 ! datec2<2015 ! datec3<2015 ! datec4<2015 ! datec5<2015
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(datec1 datec2 datec3 datec4 datec5)
1981 -8 -8 -8 -8
2012 2016 -8 -8 -8
1981 -8 -8 -8 -8
1982 -8 -8 -8 -8
2005 -8 -8 -8 -8
1982 -8 -8 -8 -8
2001 -8 -8 -8 -8
1968 1974 -8 -8 -8
1968 1974 -8 -8 -8
2001 -8 -8 -8 -8
2005 -8 -8 -8 -8
2005 -8 -8 -8 -8
1967 1973 -8 -8 -8
-8 -8 -8 -8 -8
1960 1969 -8 -8 -8
1985 2002 -8 -8 -8
1985 2002 -8 -8 -8
2014 -8 -8 -8 -8
1986 -8 -8 -8 -8
1986 -8 -8 -8 -8
1959 1962 1967 -8 -8
2014 -8 -8 -8 -8
2011 -8 -8 -8 -8
1978 -8 -8 -8 -8
2011 -8 -8 -8 -8
1978 -8 -8 -8 -8
1959 1964 1966 -8 -8
2002 -8 -8 -8 -8
2002 -8 -8 -8 -8
2012 -8 -8 -8 -8
1983 -8 -8 -8 -8
2012 -8 -8 -8 -8
1983 -8 -8 -8 -8
1990 -8 -8 -8 -8
1990 -8 -8 -8 -8
2011 -8 -8 -8 -8
-8 -8 -8 -8 -8
1999 2006 -8 -8 -8
1999 2006 -8 -8 -8
2009 2016 -8 -8 -8
1978 -8 -8 -8 -8
2002 -8 -8 -8 -8
1978 -8 -8 -8 -8
2002 -8 -8 -8 -8
1990 -8 -8 -8 -8
2016 -8 -8 -8 -8
1990 -8 -8 -8 -8
2010 2014 -8 -8 -8
2012 2014 -8 -8 -8
1986 -8 -8 -8 -8
2014 -8 -8 -8 -8
1986 -8 -8 -8 -8
2013 -8 -8 -8 -8
2004 2009 -8 -8 -8
2001 2010 -8 -8 -8
1963 -8 -8 -8 -8
2012 -8 -8 -8 -8
2014 -8 -8 -8 -8
1978 -8 -8 -8 -8
2004 -8 -8 -8 -8
2004 -8 -8 -8 -8
2014 -8 -8 -8 -8
2015 -8 -8 -8 -8
2014 -8 -8 -8 -8
1985 1988 -8 -8 -8
2015 -8 -8 -8 -8
1985 1988 -8 -8 -8
1983 1989 -8 -8 -8
2006 -8 -8 -8 -8
1979 1987 -8 -8 -8
1979 1987 -8 -8 -8
2006 -8 -8 -8 -8
1978 1981 -8 -8 -8
1971 1974 1976 -8 -8
1974 1976 1972 -8 -8
1997 2007 -8 -8 -8
1987 1988 -8 -8 -8
2013 -8 -8 -8 -8
2013 -8 -8 -8 -8
2013 -8 -8 -8 -8
2013 -8 -8 -8 -8
1987 1988 -8 -8 -8
2015 -8 -8 -8 -8
1991 -8 -8 -8 -8
2015 -8 -8 -8 -8
1991 -8 -8 -8 -8
2011 -8 -8 -8 -8
1980 -8 -8 -8 -8
2011 -8 -8 -8 -8
1980 -8 -8 -8 -8
1982 -8 -8 -8 -8
1982 -8 -8 -8 -8
2011 -8 -8 -8 -8
2011 -8 -8 -8 -8
2009 -8 -8 -8 -8
1983 -8 -8 -8 -8
2009 -8 -8 -8 -8
1983 -8 -8 -8 -8
1969 1972 1975 -8 -8
2016 -8 -8 -8 -8
end