R Last Element Of Python