-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
I don't get if the following behavior of the word function is desired, or is a bug
> words = "this is a very long sentence to test"
> word(words, start=-4, end=-1) # last 4 words, OK
[1] "long sentence to test"
> word(words, start=-8, end=-1) # OK
[1] "this is a very long sentence to test"
> word(words, start=-9, end=-1) # OK, imho
[1] NA
> word(words, start=-10, end=-1) # what is this?!
[1] "is a very long sentence to test" "a very long sentence to test" "very long sentence to test"
[4] "long sentence to test" "sentence to test" "to test"
[7] "test"
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior