Function rearrange vector to string by adding + sign between the numbers.
pymol_str(ind1)
ind1
vector of numbers (residues)
string with + as a separator.
res<-c(1,5, 19, 100, 109) pymol_str(res)