Back arrow vs front arrow in R | Sololearn: Learn to code for FREE!


Back arrow vs front arrow in R

When should I use the front arrow vs the back arrow for assignments ? -> vs <-

4/9/2021 2:27:26 AM


6 Answers

New Answer


Here's something you might find interesting ๐Ÿ‘‡


Arsenic thanks i tried what one comment said about magrittr. front arrows seem to keep the flow as promised


Not a direct answer, but: Doing data preparation and analysis in R, I have never used (or needed) "->" Concerning scripts (not directly typed to console code): I think our instructor used to tell us, he considered "->" bad style or something alike... (it's some time ago, I might be mistaken) edit: R also allows using "=" x = 1 but 2 = y # error edit 2: x <<- 1


Draw a curved arrow around from 1 to 2 to 3 and back to 1 and note which direction this arrow goes, clockwise (cw) or counterclockwise (ccw).


If you are using an ActionBarActivity then you can tell Android to use the Toolbar as the ActionBar like so: Toolbar toolbar = (Toolbar) findViewById(; setSupportActionBar(toolbar); And then calls to getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); will work. You can also use that in Fragments that are attached to ActionBarActivities you can use it like this: ((ActionBarActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true); ((ActionBarActivity) getActivity()).getSupportActionBar().setDisplayShowHomeEnabled(true);