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
I need to create a data frame “s”, which contains only numbers
and I don’t know how to call “b” to return just numbers. Could you help me to do this?
Not sure if this is a real issue.
bindeed contains just the numbers. The words you are seeing are the row names. A small modification of the example you give shows the creation of a data frame with two columns: