library("PerformanceAnalytics")
a<-seq(from=1,to=2,by=.01)
b<-table.Stats(a)
str(b)
'data.frame': 16 obs. of 1 variable:
$ : num 101 0 1 1.25 1.5 ...
b
NA
Observations 101.0000
NAs 0.0000
Minimum 1.0000
Quartile 1 1.2500
Median 1.5000
Arithmetic Mean 1.5000
Geometric Mean 1.4828
Quartile 3 1.7500
Maximum 2.0000
SE Mean 0.0292
LCL Mean (0.95) 1.4422
UCL Mean (0.95) 1.5578
Variance 0.0858
Stdev 0.2930
Skewness 0.0000
Kurtosis -1.2357
我需要创建一个数据框“s”,它只包含数字,我不知道如何调用“b”来只返回数字。你能帮我做这件事吗?