notation changes to r code