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.
CLEVELAND, Ohio -- Seven of America's 44 presidents were born in Ohio, earning it the nickname, The Cradle of Presidents.. An eighth resided in and launched his campaign from Ohio. Meet the eight Ohioans who became U.S. president: William Henry Harrison (ninth), North Bend, Ohio, 1841. Whig. The Virginia-born Ohio resident was 68 years and 23 days old when he took the oath. He was the oldest president elected until Ronald Reagan took office in 1980. His term was cut short by pneumonia after a mere 32 days -- the shortest reign in U.S. history.