Dear R-Users,
 
While reading a GDX file from GAMS-software, the R-program does not read the 
string (text) observations. Instead, it assigns some numerical values to each 
text. Do you have some idea on how to read string observations?
 
Example in GDX file:
 
fid     out   year   value
1_2_3   RICE  1995   130.54
1_2_3   WHEAT 1996   115-40
1_2_4   RICE  1995   120.20
1_2_4   WHEAT 1996   115.40
 
But, the R-software reads the above data as:
 
fid        out     year     value
2721   10281   2155   130.54
2721   10284   2156   115-40
2726   10281   2155   120.20
2726   10284   2156   115.40
 
I want read the GDX file in as it is condition. 
 
Thanks,
 
Shyam Basnet
Nepal
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to