Displaying 1 result from an estimated 1 matches for "becva".
Did you mean:
becca
2010 Jun 02
2
regexpr mystery can not remove trailing spaces
Dear all
I encountered strange problem with regexpr replacement
I made this character object
str <- "02.06.10 12:40 "
> str(str)
chr "02.06.10 12:40 "
I read in an object which seems to be quite similar
> str(as.character(becva$V1)[1])
chr "02.06.10 12:40 "
However I can not remove trailing spaces from it
> sub(' +$', '', as.character(becva$V1[1]))
[1] "02.06.10 12:40 "
> sub(' +$', '', str)
[1] "02.06.10 12:40"
>
Do somebody have an idea what...