Commit c593b78e authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Merge pull request #958 from JohannesPfeifer/unique_data_check

Add check for unique data entries in dataset
parents d39eb4d9 5d8da65e
......@@ -110,6 +110,10 @@ else
clear('dseriesobjectforuserdataset');
end
if size(unique(DynareDataset.name),1)~=size(DynareDataset.name,1)
error('makedataset: the data set must not contain two variables with the same name and must not contain empty/non-named columns.')
end
% Select a subset of the variables.
DynareDataset = DynareDataset{DynareOptions.varobs{:}};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment