Replaces the analyses in _analyses.yml, keeping the explanatory
comments at the top of the file.
Arguments
- path
Project root.
- analyses
A list of analyses (as returned by
read_analyses(), or lists with at leastname,variable,measureandcompareorgroup). Each is checked.