Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -110,6 +110,10 @@ else ...@@ -110,6 +110,10 @@ else
clear('dseriesobjectforuserdataset'); clear('dseriesobjectforuserdataset');
end 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. % Select a subset of the variables.
DynareDataset = DynareDataset{DynareOptions.varobs{:}}; DynareDataset = DynareDataset{DynareOptions.varobs{:}};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment