It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.
A guide to resources for the R statistical computing language and its development platform, RStudio.
Questions to think about
If you could imagine the smallest unit you'd like to analyze, would it be individual people, households, firms, or something else? What is it that you hope to draw conclusions about?
What should the data tell you about these people or other units? How would you measure that, and what kind of categories would you create. These are the variables you need.
Do you need data from a particular historical period? Do you need a snapshot (i.e. cross-sectional data) or changes over time (i.e. a time series)? Is the series yearly, weekly, once a decade?
Do you need to know about a particular place--a city, county, state, or country? Within that place, are there smaller areas you would like to compare, e.g. neighborhoods within a city?
Why would someone record data on this subject? If you know who would be interested, then you can infer where you might find it. For example, the Centers for Disease Control is interested in the spread of diseases, so they might be a source for health data.
Strategies for Finding Data
Use a research guide from Penn Libraries or Lippincott Library that covers your topic: