EU-ECDC / EcdcSupportSnippets

Development of various support R code snippets and packages for use for analysis and modelling purposes.
European Union Public License 1.2
7 stars 2 forks source link

Replace loop in least_missings() #4

Open mariabnd opened 5 years ago

mariabnd commented 5 years ago

Detailed description

Get rid of loop in least_missings

Context

Might be able to discard for loop in favour of a vectorised solution

Possible implementation

Write a function based on what the loop is doing and then use apply