The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

How to extract YEAR from a string?

KalokiKaloki Member Posts: 3 Learner I
Hi,

I have this attribute in a dataset that is a string of text :
  • Name: "Angove's 2006 Red Belly Black Shiraz (South Australia)"

How do I create a new attribute, say Vintage and get to have only the year, e.g. 2006 in this case as the value of the new attribute?
  • Vintage: 2006
Appreciate any support.
Am using generate attribute operator, but can't quite work out the syntax correctly...
Thanks.

Best Answers

Sign In or Register to comment.