sparsity(year, var, data)
For example, if variable A is observed since 1960 while variable B is collected since 1990. When they are merged together, NA's will be created for variable prior to 1990 and these should not be used to calculate the sparsity of the data.