How long is it taking? Can you send me the code that you are using.
Another technique is to recode you characters into numbers and store
them as integers. You can then sample the values and reconstruct the
output. Here is a faster way:
# create some test data -- might be read in the readLines
Here is one way of doing it. I would suggest that you read in the
data with readLines and then combine into one single string so that
you can use substring on it. Since you did not provide provide
commented, minimal, self-contained, reproducible code, I will take a
guess at that your data looks
Hi,
I need to resample characters from a dataset that consists of an extremely
long string that is written over hundreds of thousands of lines, each of
length 50 characters. I am currently doing this by first inserting a space
after each character in the dataset and then using the following comma
3 matches
Mail list logo