我有以下内容data frame
:
Date CCL Rie
2002-01-01 68.6879472 MB
2002-02-01 38.1691072 MB
2002-03-01 53.2893517 MB
2002-04-01 16.9071572 MA
2002-05-01 8.9496654 A
2002-06-01 37.1852996 MB
2002-07-01 39.0751017 MB
2002-08-01 16.4683628 MA
2002-09-01 18.9381392 MA
2002-10-01 18.7873039 MA
2002-11-01 39.9079079 MB
而且我还没有找到获取下一个输出的代码或包:
Date New Column
2002-01-01 68.6879472
2002-01-01 MB
2002-02-01 38.1691072
2002-02-01 MB
2002-03-01 53.2893517
2002-03-01 MB
2002-04-01 16.9071572
2002-04-01 MA
等等.....
即,对于相同date
,创建一个新列,该列抛出CCL
和Rie
插入的值