Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Who can help to optimize a basic function for completing rows in a data table?
Dec 15, 2014 1:18 PM(2032 views)
I am looking for some advise from more experienced JMP users for the following problem.
I frequently need to work with a data tables that contain up to 4 rows per unit. However some of the system parameters are only recorded for the first enry of an individual unit although applicable for the other rows associated to that unit as well.
In order to be able to analyze and group the data I need these system parameters to be completed for all rows of an unit.
As I have no chance to alter the data recording to the database I need to take care of this after data base extraction before any analysis.
I therefore created a workaround as shown below.
It provides the desired result but is very slow and actually not feasible for data tables with more than 1000 rows.
Try this code. It assumes that you have a two-column table with one column called Unit and the other called Param_1. I didn't do any performance testing, but this might zip through your table pretty quickly. Only sets values if it has to.