t**********r 发帖数: 182 | 1 time series data, from 1/1/1950 to 1/1/2009, like below:
1/1/1950, 8
1/2/1950, 8.1
1/3/1950, .
1/4/1950, 8.1
1/5/1950, 8.1
1/6/1950, .
1/7/1950, .
1/8/1950, 8.2
...
...
If there is a missing value (.), I want to assign that day a value the same
as previous day. How can I do this?
Thanks. | s**c 发帖数: 1247 | 2 use retain
check if missing before assigning the value
【在 t**********r 的大作中提到】 : time series data, from 1/1/1950 to 1/1/2009, like below: : 1/1/1950, 8 : 1/2/1950, 8.1 : 1/3/1950, . : 1/4/1950, 8.1 : 1/5/1950, 8.1 : 1/6/1950, . : 1/7/1950, . : 1/8/1950, 8.2 : ...
| t**********r 发帖数: 182 | |
|