Merge rows with similar names
Show older comments
Hi,
I have a table consisting of ten columns. In the first column, each row has a unique name. However, many rows have the same starting four letters. I would like to merge the rows with the same starting letters, and perform some calculations based on these rows.
Thanks in advance!
3 Comments
What does "merge" mean: do you want to sum values, or take the average, or the mode, or concatenate them into vectors?
Why do you specifically need to "merge" the rows, from what you describe it sounds like you should probably process your data using the standard table methods:
Vlatko Milic
on 22 Oct 2021
Image Analyst
on 22 Oct 2021
@Vlatko Milic, you keep forgetting to attach your data in a .mat file with the paperclip icon. Here's another chance to read the posting guidelines:
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!