Thanks a lot Arthur for the code. Also I appreciate for explaining the code.
hey Arthur,
can you please explain this:
x=find(biography,'.',-1*(length(strip(biography))-2));
Thanks
: It is setting the value x to equal the position (from left to right) where a period exists, starting from a position 2 less than the end of the string being held in the variable biography, less any spaces that may exist in that field.
I.e., it didn't want to find the period at the end of the string but, rather, the period at the end of the preceding string. That way, the variable last could be created that would contain everything from the period at the end of the 2nd to last string, up to the end of the string that was captured in the biography variable. In short, the last sentence (the one containing the degree information).
thanks
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.