I want to be able to search for a string within an observation and then write a new file based on the value of the string. I have a list of school names in a flat file. Each school has a type in its name (i.e., elementary, primary, charter, middle, junior, high, secondary, etc.) but the location of the type varies for each observation varies as does the length of string. For example, if I have a variable called "School Name" and the first observation of that variable is the text "Johnson Elementary School", I want to create a second variable called "School Type" whose first observation is the text "Elementary".
-
Login or Register
- Log in with
Comment