Skip to main content
Solved

feature extractor

  • August 19, 2013
  • 1 reply
  • 11 views

This is a simple question but it's Monday morning so would appreciate help.

 

 

I have a list of features, and one attrbute is between 6-8 characters long.

 

 

I want to rename the attribute with the first 6 characters of their existing attribute (so drop the last two characters where they occur), and remove any features whose attributes are duplicateed due to the new name.

 

 

eg.

 

 

i want to make;

 

 

AB1234AB to AB1234 and only leave 1 record of AB1234 in my output.

 

 

i'm trying in BulkAttributeRenamer but think i may be over complicating it

 

 

cheers

 

 

Best answer by takashi

Hi,

 

 

"AB1234AB" looks like an attribute value. Is it indeed an attribute name?

 

If it was an attribute value, the SubstringExtractor transformer can be used to get the first 6 characters...

 

Takashi
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.

1 reply

takashi
Celebrity
  • Best Answer
  • August 19, 2013
Hi,

 

 

"AB1234AB" looks like an attribute value. Is it indeed an attribute name?

 

If it was an attribute value, the SubstringExtractor transformer can be used to get the first 6 characters...

 

Takashi