![]() |
PING
0.9
Statistical data handling and processing in production environment
|
Insert into a (possibly already existing) dataset a variable formatted as a list of (e.g., comma-separated and quote-enhanced) values.
clist : list of formatted (e.g., comma-separated, quote-enhanced, parentheses-enclosed) items;var : name of the variable to use in the dataset;mark, sep : (option) characters/strings used respectively as a "quote" and a separator in the input list; default: mark=%str(%"), and" sep=%quote(,), i.e. the input clist is a comma-separated list of quote-enhanced items; see %clist_unquote for further details.dsn : output dataset; if the dataset already exists, then observations with missing values everywhere except for the variable var (possibly not present in dsn) will be appended to the dataset;lib : (option) output library; default (not passed or ''): lib is set to WORK.The following instructions:
return in WORK.dsn the following table:
| Obs | geo |
|---|---|
| 1 | DE |
| 2 | UK |
| 3 | SE |
| 4 | IT |
| 5 | PL |
| 6 | AT |
Run macro _example_clist_to_var for more examples.
If the dataset already exists and there are no numeric, or character variables in it, then the following warning will be issued:
This message is not an error. See %list_to_var.