Fulfill NA in data frame

Hi, and welcome.

Without a reproducible example, called a reprex it's hard to tell for sure, but let's eliminate one possibility. After

C <-spread(B, AGEACT, type, fill=NA, convert = FALSE, drop = TRUE, sep = NULL)

try

C