Is the data structure a factor variable containing character strings?
That would account for the lack of quotes and the Levels bit. If so,
try
eval(parse(text=as.character(...))).
It works:
eval(parse(text=as.character(x)))
NAS NAS IEA IDA
Vincent -
From the values shown, this looks like a Bioconductor question,
rather than base R. You might try the maintainers of whatever
package the function comes from.
Is 2287 the index in levels for one of the character strings
shown ?
- tom blackwell - u michigan medical school - ann
Is the data structure a factor variable containing character strings?
That would account for the lack of quotes and the Levels bit. If so,
try
eval(parse(text=as.character(...))).
x - factor('structure(1:3, .Names=LETTERS[1:3])')
eval(parse(text=as.character(x)))
A B C
1 2 3
Weird data