Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MichelJuillard
dynare
Commits
c593b78e
Commit
c593b78e
authored
Jun 08, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/dataset/makedataset.m
View file @
c593b78e
...
...
@@ -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
{:}};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment