Iterating over a string in R : <p>I was wandering if it is possible to iterate over an string in R as we can do it with pyhon:</p>

<pre><code>import numpy as np
import pandas as pd

    myvector=[]
    for string in dataframe.columns: 
        myvector.append(int(string[:-2])) #deleting identifiers

    myvector = np.array(sorted(list(set(myvector))))
</code></pre>

<p>BR</p>
