How to join two new numeric columns in a dataframe using a separator?
<p>I have the dataframe df: </p>

<pre><code>start   end
836 845
3341    3350
4647    4661
4932    4942
10088   10098
13679   13690
16888   16954
20202   20225
</code></pre>

<p>Now I need a third column "JoinedCol" as</p>

<pre><code>836:845
3341:3350
4647:4661
4932:4942
10088:10098
...
...
</code></pre>

<p>I don't want to use paste() as it is producing column with char-type or factor. I want to use the new column "JoinedCol" to use in R for getting the data like </p>

<pre><code>836, 837,838,...844,845,3341,3342........ ..... 10098
</code></pre>

<p>Based on </p>

<blockquote>
  <p>I want to use the new column "JoinedCol" to use in R for further
  getting the data like 836, 837,838,...844,845,3341,3342........ .....
  10098</p>
</blockquote>

<p>you actually want this:</p>

<pre><code>DF &lt;- read.table(text = "start   end
                      836 845
                 3341    3350
                 4647    4661
                 4932    4942
                 10088   10098
                 13679   13690
                 16888   16954
                 20202   20225", header = TRUE)

#create the sequences
DF$sequences &lt;- Map(`:`, DF$start, DF$end)

#access the first sequence
DF$sequences[[1]]
#[1] 836 837 838 839 840 841 842 843 844 845
</code></pre>

<p>You should not create commands as text, which you need then to parse, as you propose in your question.</p>

python