hi
i have a pi_million.txt file containing 10^6 digits of pi
presented on 10.000 lines of 100 digits each
the lines are separated by breakline, the digits are not separated
my aim is to get a unique vector with the 10^6 digits
i have tried things but didnt get it
any help welcome
If you are reading the digits into a single column of a data frame with each row holding 100 digits, I think all you need is the paste() function and its collapse argument.
I would use directly readLines() (since you don't need a data.frame), then strsplit() to slit each line into its components, and unlist() if you want the final format as a vector (FJCC's paste() being the way to go if you want the final data as a string).