Sunday, 8 September 2013

Importing a single vector from a text file as a variable in R

Importing a single vector from a text file as a variable in R

I have saved a vector in a .txt file so that I could plot it (something
like c(0.55,....)).
I am trying to import it directly into a variable, but somehow I can't.
I played a bit with the scan() function with no success thinking that the
raw() argument was the answer.
I have tried this solution Import text file as single character string
but this doesn't solve my problem.
Hope someone can help

No comments:

Post a Comment