![]() ![]() The column names, or variable names, contained within, i.e.The dimensions of a dataframe, or number of rows by the number of columns, i.e.See how this gives us useful information that we didn’t have before? Not only do we get the contents of the dataframe, but we also get the following: We then tell R to show us the output of the states_of_interest object. Certainly, we could memorize them or reference the Introduction of this document over and over, but we could also store that information in a memorably named object and have R remember it for us! Then, we can just type the object name into the console and have R remind us which states we’re interested in whenever we need a refresher! In the code below, we create a ame object named states_of_interest and tell R to store the full state names and the abbreviations of the six states we need to gather data for inside of of two appropriately named columns. We’ll need to remember the six other states that we’re gathering data for throughout this document. First, however, let’s take this opportunity to create a convenience object with R. As such, we’ll tackle all three of those variables in this single section, starting with where and how to download the data. Census Bureau has population, age, and education data all in one spot. ![]() 2.1 Objects, Vectors, Dataframes, & Tibblesįortunately, the U.S. ![]()
0 Comments
Leave a Reply. |