Try this:
> Lines <- "No Year month rain
+ 1398 198510 104.2
+ 1399 198511 138.0
+ 1400 198512 120.4
+ 1401 1986 1 12.6
+ 1402 1986 2 19.4
+ 1403 1986 3 1.0
+ 1404 1986 4 58.8
+ 1405 1986 5 98.4
+ 1406 1986 6 56.6
+ 1407 1986 7 280.4
+ 1408 19
Hi R-users,
I have missing data for the month. My question is how do I insert the missing
month and fill up the cell with 'na' for the rain amount? Then I would like to
count the percentage of missing data.
No Year month rain
1398 1985 10 104.2
1399 1985 11 138.0
1400 1985 12
2 matches
Mail list logo