취소
다음에 대한 결과 표시 
표시  만  | 다음에 대한 검색 
다음을 의미합니까? 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
언어 선택 변환 막대 숨기기
게시된 스레드 원본 보기

요약 테이블의 열 이름을 바꾸는 방법은 무엇입니까?

PhamBao
Level II

안녕하세요 여러분,

요약 테이블이 하나 있는데 요약 테이블의 하나 또는 두 개의 열 이름을 바꾸고 싶습니다.

 

내 스크립트는 다음과 같습니다.

ST_NEW = dt << Summary(
 Group( :prodgroup3, :link_id, :complevel_1, :test_or_bond_head_id, :bondstage ),
 Mean( :align_ratio_2 ) << Name( "align " ),
 Std Dev( :align_ratio_2 ),
 Output Table Name( "ST_NEW" ), 

);

동그라미 친 열의 이름을 새 이름으로 바꾸고 싶습니다.

undefined

아무도이 문제를 해결하는 데 도움이 될 수 있습니까?

감사합니다,


 

원래 English (US) 로 작성된 이 게시물은 귀하의 편의를 위해 번역되었습니다. 답장을 보내면 English (US) 로 다시 번역됩니다.

3 응답 3
txnelson
Super User

Re: 요약 테이블의 열 이름을 바꾸는 방법은 무엇입니까?

2 문제가 있습니다.

  1. 기본적으로 생성된 요약 데이터 테이블은 원래 테이블에 연결되어 테이블을 강제로 잠급니다.이 기본값은 무시해야 합니다.
  2. 새 테이블이 생성된 후에 열 이름을 변경해야 합니다.
Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
ST_NEW = dt << Summary(
 Group( :sex ),
 Mean( :height ),
 Std Dev( :height ),
 Output Table Name( "ST_NEW" ),
 link to original data table( 0 )
);
ST_NEW:"Mean(height)"n << set name( "align" );

원래 English (US) 로 작성된 이 게시물은 귀하의 편의를 위해 번역되었습니다. 답장을 보내면 English (US) 로 다시 번역됩니다.

ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to rename column of summary table?

If being linked to the original table is important (you want to select a row in the summary and have relevant rows in the original table be selected, for example) you could make a new column with the name you are looking for and then hide the original:

Names default to here(1);
dt = Open( "$SAMPLE_DATA/big class.jmp" );
ST_NEW = dt << Summary(
	Group( :sex ),
	Mean( :height ),
	Std Dev( :height ),
	Output Table Name( "ST_NEW" )
);
ST_NEW << New Column("align", Numeric, "Continuous", Format("Best", 12), Formula(:"Mean(height)"n));
ST_NEW:"Mean(height)"n << Hide( 1 );

Re: How to rename column of summary table?

you can also rename those stat columns with the drop down in below menu ...

Mandy_Chambers_0-1649770220689.png