我希望并排多个矩阵以在R markdown中显示频谱分解,但它似乎不起作用.请帮忙
$$
\left(\begin{array}
0.8944272 & 0.4472136\\
-0.4472136 & -0.8944272
\end{array}\right\)
\left(\begin{array}
10 & 0\\
0 & 5
\end{array}\right)
$$
Run Code Online (Sandbox Code Playgroud) 所以我用直方图绘制直方图 matplotlib.pyplot
plt.hist(var)
Run Code Online (Sandbox Code Playgroud)
我很好奇我是否可以在创建的图表右侧附加一些统计信息
var.describe()
Run Code Online (Sandbox Code Playgroud)
这是一个系列.
结果是这样的
我正在尝试对名为的表进行子集化cars,如下所示.我不希望Country我的子表中的列,所以我曾经[,-1]删除第一列,但它将我的新变量分配cars.use给-1.这里发生了什么?
> library(data.table)
> cars <- fread('cars.csv', header = TRUE)
> typeof(cars)
[1] "list"
> head(cars)
Country Car MPG Weight Drive_Ratio Horsepower Displacement Cylinders
1: U.S. Buick Estate Wagon 16.9 4.360 2.73 155 350 8
2: U.S. Ford Country Squire Wagon 15.5 4.054 2.26 142 351 8
3: U.S. Chevy Malibu Wagon 19.2 3.605 2.56 125 267 8
4: U.S. Chrysler LeBaron Wagon 18.5 3.940 2.45 150 360 8
5: …Run Code Online (Sandbox Code Playgroud)