Skip to main content
Solved

Stringreplacer for changing M/F to MALE/FEMALE?

  • June 18, 2020
  • 3 replies
  • 17 views

Forum|alt.badge.img

I am working with crime data and need to change some fields to full names, M/F to Male/Female. Is the stringreplacer a good candidate for this? I have been using the FeatureMerger and definition tables in .csv format. Just seeing if there is a better way to do this.

 

Thanks!!

Best answer by jdh

M/F to Male/Female is easily done with the stringPairReplacer.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • June 18, 2020

M/F to Male/Female is easily done with the stringPairReplacer.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • June 18, 2020

AttributeValueMapper would be a good transformer too


Forum|alt.badge.img
  • Author
  • 10 replies
  • June 18, 2020

@jdh I was able to it with the stringPairReplacer. Thanks!!