We first define the function as a variable, myFirstFun, using the keyword function, which also receives n as argument (no type specification). The latter will exist within the function. We used an integer, but 'n' could also be a vector or a matrix or a string: R handles all this nicely for us.
America in the 20th Century. The 20th century heralded the beginning of a new era in fitness. President Theodore Roosevelt, perhaps the most physically fit president ever to occupy the Oval Office, used his power and own example to encourage U.S. citizens to be physically active.
As president, Republican Calvin Coolidge showed most interest in reducing federal spending How did Marcus Garvey attract as many as a million members worldwide to his Universal Negro Improvement Association during the 1920s? His central message was pride in black identity How did the census-based quota system of the 1924 Reed-Johnson National Origins Act discriminate against southern and eastern Europeans?