运行提供的数值统计分析时,默认情况下会添加 n 和 NA 的输出。语法是:
## [Numerical Statistical Analysis]
BSky_Dataset_Overview = data.frame(Dataset = c("Dataset2"),Variables = length(names(Dataset2)),Observations = nrow(Dataset2))
BSky_Numerical_Statistics_Analysis = BSkySummaryStats(datasetColumnObjects = list(fc1 = Dataset2$fc1,fc2 = Dataset2$fc2,fc3 = Dataset2$fc3),groupByColumnObjects = list(SalesArea = Dataset2$SalesArea),statFunctionList = c(min=FALSE,max=FALSE,mean=TRUE,median=FALSE,sum=FALSE,sd=FALSE,stderror=FALSE,iqr=FALSE,quantiles=FALSE),datasetName="Dataset2" )
BSkyFormat(BSky_Dataset_Overview,singleTableOutputHeader=c("Dataset Overview"))
BSkyFormat(BSky_Numerical_Statistics_Analysis,singleTableOutputHeader=c("Numerical Statistical Analysis by Variable"))
#remove(BSky_Dataset_Overview)
#remove(BSky_Numerical_Statistics_Analysis )
在上面我只要求平均值[mean=TRUE]
,但它提供平均值和 N 和 NA,我怎样才能将其更改为仅显示平均值?
问候马克