该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


dt1 = Open( "$SAMPLE_DATA/Pizza Profiles.jmp" );
dt1:ID << Set Property( "Link ID", 1 );
dt2 = Open( "$SAMPLE_DATA/Pizza Responses.jmp" );
dt2:Choice1 << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
dt2:Choice2 << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
dt2:Choice << Set Property( "Link Reference", Reference Table( "$SAMPLE_DATA/Pizza Profiles.jmp" ) );
obj = dt2 << Distribution( // create a distribution of Crust[Choice1]
Nominal Distribution(
Column(
"Crust[Choice1]", // specify the joined column name
Reference( Column( :Choice1 ), Reference( Column( :Crust ) ) )
Nominal Distribution( Column( :Choice1 ) )
The Columns panel in a data table shows you the names of the linked columns. For example, open the Movie Inventory.jmp and Movie Rentals.jmp sample data tables to see the linked columns shown in 图 9.7. By default, the name of the Link ID column is in square brackets.
图 9.7 Linked Columns in Movie Rentals.jmp
You change the name of the virtually linked column name with Set Name, just like you change the name of other columns. The difference is that you need to refer to the virtually linked column by its full referencing name (referencing path). For example, the following statement changes the name of the virtually linked column Rating[Item Number] to Movie Rating.