我有许多数据文件,我想用 gretl 脚本处理它们。每个文件包含一组年度数据,
例如
year, total
1956, 1639
1957, 790
1958, 1150
1959, 909
1960, 1241
加载上述示例数据时,gretl 报告:
parsing sample.txt...
using delimiter ','
longest line: 12 characters
first field: 'year'
seems to be observation label
number of columns = 2
number of variables: 1
number of non-blank lines: 6
scanning for variable names...
line: year,total
scanning for row labels and data...
first row label "1956", last label "1960"
trying to parse row labels as dates...
1956: probably a year... and just a year
taking date information from row labels
如何访问脚本中的“第一行标签”和“最后一个标签”?