我需要在debian Stretch上运行3.6-我按照此处的说明进行操作:
https://cran.r-project.org/bin/linux/debian/
并使用了这个仓库:
http://lib.stat.cmu.edu/R/CRAN/bin/linux/debian Stretch-cran35 /
我能够安装它。但是我需要的2个软件包r-cran-caret和r-cran-ggplot2无法安装:
# apt-get install r-cran-ggplot2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-cran-ggplot2 : Depends: …Run Code Online (Sandbox Code Playgroud) 我想知道R处理非线性整数优化是否有一个包.
"基本上",我想解决以下问题:
max f(x) s.t x in (0,10) and x is integer.
我知道一些分支算法能够处理这个问题的线性版本,但在这里我的函数f()可能会更复杂.(我甚至无法确定它是形式的二次方f(x)=xQx).
我想总有蛮力解决方案来测试所有可能性,只要它们有限,但我想知道是否有更聪明的东西.
WeightLoss我正在尝试根据包中的数据集制作箱线图car。感兴趣的变量按月分隔,因此我分别按月绘制箱线图,显示所有组(对照组、饮食组、饮食组和运动组)。我只想在 1 个而不是 3 个箱线图中获得饮食组的箱线图及其 3 个月内的体重减轻情况。为了澄清,我需要ylab="Weight loss"和xlab="Month"作为我的轴。但我不知道如何做到这一点。
这是我能够制作的第一组可行的箱线图,但它们按月份分隔,并且所有组都显示在箱线图中。
library(car)
library(DescTools)
boxplot(wl1 ~ group, data=WeightLoss,
main="Weight Loss after 1 month",
ylab="Weight loss",
xlab="Group")
boxplot(wl2 ~ group, data=WeightLoss,
main="Weight Loss after 2 months",
ylab="Weight loss",
xlab="Group")
boxplot(wl3 ~ group, data=WeightLoss,
main="Weight Loss after 3 months",
ylab="Weight loss",
xlab="Group")
Run Code Online (Sandbox Code Playgroud)
我尝试将我只想这样的组分开:
boxplot(wl1 ~ group$Diet, data=WeightLoss,
main="Weight Loss after 1 month",
ylab="Weight loss",
xlab="Group")
Run Code Online (Sandbox Code Playgroud)
但我不断收到此错误:
Error in group$diet : $ operator is
invalid for atomic vectors
Run Code Online (Sandbox Code Playgroud) 是否有OpenOffice.org(压缩)包文件的Emacs模式?例如,是否有一个可以解压缩每个包含的XML文件,并在其自己的缓冲区中打开它们?