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.
The Soft American and 50 miles in a day (JFK fitness challenge) Shortly after JFK was elected president he wrote an article in Sports Illustrated called âThe Soft Americanâ. In the article he called for greater fitness for American citizens. The article starts with a look at the Ancient Greeks and the original Olympics. He wrote: âThis knowledge, the knowledge that the physical well-being of the citizen is an important foundation for the vigor and vitality of all the activities of the nation, is as old as Western civilization itself.