Checks the format of iData
input to new_coin()
. This check must be passed to successfully build a new
coin.
Details
The restrictions on iData
are not extensive. It should be a data frame with only one required column
uCode
which gives the code assigned to each unit (alphanumeric, not starting with a number). All other
columns are defined by corresponding entries in iMeta
, with the following special exceptions:
Time
is an optional column which allows panel data to be input, consisting of e.g. multiple rows for eachuCode
: one for eachTime
value. This can be used to split a set of panel data into multiple coins (a so-called "purse") which can be input to COINr functions. Seenew_coin()
for more details.uName
is an optional column which specifies a longer name for each unit. If this column is not included, unit codes (uCode
) will be used as unit names where required.
No column names should contain blank spaces.