Re: [R] an eval/parse trivia -- solved

2003-12-11 Thread Vincent Detours
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

Re: [R] an eval/parse trivia

2003-12-10 Thread Thomas W Blackwell
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

Re: [R] an eval/parse trivia

2003-12-10 Thread rpugh
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