Skip to content

Basic data massaging-Open to better ideas #13

Description

@AxisMeetsWorld

I am trying to input data on various employment statistics from Universities around the nation. Problem is that one data source might write a university with an abbreviation, while another might not (IE "Oregon State" vs "Oregon St."). When I import new data in from a new source I use the setdiff() function to find the school representations that aren't found in the names I have decided on for them. I then keep a dataframe (call it convert dataframe) of representations I find in the new set and what I would like them to be converted to for consistency. I have a user-defined function that allows me to type in what I had, and the converted representation. This updates the convert dataframe with the new values. I finally have one more function that I can use to run through a new dataframe that has these discrepancies and look at the convert dataframe so that the newly imported information is consistent with university representations already stored. I am just wondering if this is the easiest way, or if there might be something else I should try. I will be at the R user-group tomorrow so I can show if necessary. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions