Skip to content
Prev 367006 / 398506 Next

Beginner needs help with R

Hi Nabila,

This is because you ask to create a sequence with seq(), which does not 
make much sense with non numeric data. That's why R trims the 0.

One alternative would be:
seq2 <- paste("DQ0", seq(60054, 60060), sep = "")

Would that work for you?

HTH,
Ivan

--
Ivan Calandra, PhD
MONREPOS Archaeological Research Centre and
Museum for Human Behavioural Evolution
Schloss Monrepos
56567 Neuwied, Germany
calandra at rgzm.de
+49 (0) 2631 9772-243
https://www.researchgate.net/profile/Ivan_Calandra
https://rgzm.academia.edu/IvanCalandra
https://publons.com/author/705639/
On 06/02/2017 02:50, Nabila Arbi wrote: