R Last Element Of Vector