Skip to main content
Solved

feature extractor

  • August 19, 2013
  • 1 reply
  • 7 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
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings