안녕,
다음 코드를 사용하여 데이터 세트를 가져올 때:
Names Default To Here( 1 );
Clear Symbols();
pb = Page Break Box();
fileopen= "\\prusntyfil01\home$\sv001241\Desktop\FCCC\Scripts\Data tables for statistical analysis 07NOV22.xlsx";
//dt=open(fileopen,private);
dt = Open(
fileopen,
Worksheets( "USP & DSP Subtype Dependent" ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 262 ),
Data Ends on Column( 14 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "" )
),
);
////Had to change the data type of some variables, some of the variables have operators in the name had to change the names of some variables then change data types////
///When l tried to work with the variables with an operator in there name such as "/" and "%" i had problems so tried to change the names of Variables with/////
///either brackets or a operator in the variable name//////
dt :Specific Purity << Data type (Numeric) << Set Modeling Type (continuous);
col = Column( 2 );
col << Set Name( "Scale Area" );
col = Column( 4 );
col << Set Name( "Subtype" );
col = Column( 6 );
col << Set Name( "ICD 106 cells mL" );
col = Column( 7 );
col << Set Name( "HA µg mL" );
///need to format the below column as percent/////
col = Column( 8 );
col << Set Name( "HA Step Yield percent" );
dt :HA Step Yield percent << Data type (Numeric) << Format( "Percent", 12, 1 ) << Set Modeling Type (continuous) << Set Selected;
col = Column( 9 );
col << Set Name( "Total Protein BCA ug mL" );
dt :Total Protein BCA ug mL << Data type (Numeric) << Set Modeling Type (continuous);
col = Column( 11 );
col << Set Name( "HA by SRD µg mL" );
dt :HA by SRD µg mL << Data type (Numeric) << Set Modeling Type (continuous);
col = Column( 12 );
col << Set Name( "HCP by ELISA µg mL" );
dt :HCP by ELISA µg mL << Data type (Numeric) << Set Modeling Type (continuous);
col = Column( 13 );
col << Set Name( "HCP µg µg" );
dt :HCP µg µg << Data type (Numeric) << Set Modeling Type (continuous);일부 변수는 서수 또는 명목으로 가져오고 이에 대해 수정해야 합니다. 그러나 다음 코드를 사용하여 데이터를 쌓을 때 HA 단계 수율 백분율의 형식이 손실됩니다. 이 문제가 발생하지 않도록 하려면 어떻게 해야 합니까? ?
dt2 = dt << stack(
columns(:ICD 106 cells mL, :HA µg mL, :HA Step Yield percent,
:Total Protein BCA ug mL, :Specific Purity, :HA by SRD µg mL,
:HCP by ELISA µg mL, :HCP µg µg),
Source Label Column( "Quality Attribute" ),
Stacked Data Column( "Data" ),
output table name( "stacked" )
);<BR />
안녕 @미키보이 ,
단일 열 내의 다른 행이 다른 속성을 갖기를 원하는 것처럼 들립니다. 불행히도 그것은 가능하지 않을 것입니다. 형식과 같은 열 속성은 전체 열에 적용됩니다. 그것이 누적 형식의 특성입니다. 다른 변수가 다른 속성을 갖도록 하려면 변수를 와이드 형식으로 두어야 합니다.
백분율 형식이 필요한 이유는 무엇입니까? 쌓기 전에 곱셈을 할 수도 있습니다.
죄송하지만 도움이 되었으면 합니다.
필
고마워 필,
솔루션을 찾을 수 없으면 쌓기 전에 100을 곱하는 것을 생각했습니다. 조언을 주셔서 감사합니다. 감사합니다.