replace null values with 0 in r. There are any references about replace null values with 0 in r in here. you can look below.