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.
Andrew Jackson was the first President to ride on a train. Millard Fillmore was the first President to have a bathtub with running water. He was also the first President to have a stove in the White House.Rutherford B. Hayes was the first President to have a telephone in the White House. Benjamin Harrison was the first President to have a Christmas Tree in the White House. James Buchanan was the first unmarried man to be elected President.ndrew Jackson was the first President to ride on a train. Millard Fillmore was the first President to have a bathtub with running water. He was also the first President to have a stove in the White House.