我正在VBA中编写一个Excel宏来向图书馆顾客发送电子邮件,提醒他们过期的材料.数据来自电子表格,其中包含数据
UserID Name Email Title Author Barcode Call Number Borrowed Date Due Date
user2 Jones, Bob bob@jones Title1 A. Baker a0001 H00027C 11/23/2014 1/1/2015
user2 Jones, Bob bob@jones Title2 C. Dalton b0002 S00406R 11/23/2014 1/1/2015
user3 Smith, Mary bob@jones Title3 E. Franklin c0003 M00174R 11/23/2014 1/1/2015
user3 Smith, Mary mary@smith Title4 F. Gelt d0004 M00157G 11/23/2014 1/1/2015
user3 Smith, Mary mary@smith Title5 H. Ivers e0005 M00081G 11/23/2014 1/1/2015
Run Code Online (Sandbox Code Playgroud)
我开始使用用户定义的书籍和赞助人类型,并给每个赞助人一系列书籍.我尝试将顾客传递给一个函数来生成电子邮件文本,但显然我无法将用户定义的类型作为参数传递.所以,现在我正在上课.
我想要一个Book有成员的班级
Public book_title As String
Public date_borrowed As Date …Run Code Online (Sandbox Code Playgroud) 有没有人有办法corrplot用树状图装饰 R相关图?
有没有办法直接在Jupyter中使用.Rmd文件?换句话说,有没有办法让 jupyter 渲染这样的文件: https: //github.com/yihui/knitr-examples/blob/master/023-engine-python.Rmd?
我喜欢 jupyter,也喜欢简单的语法.Rmd。
与许多其他人不同,事实证明我没有防火墙软件阻止我。我把它都关了。包括Windows防火墙和Windows Defender。连接从来都不是问题。我可以手动wget处理有问题的文件。只是apt失败。
balter@spectre:~$ sudo aptitude update
[sudo] password for balter:
Err http://....archive.ubuntu.com/ubuntu xenial InRelease
Could not resolve '....archive.ubuntu.com'
Err http://....archive.ubuntu.com/ubuntu xenial-security InRelease
Could not resolve '....archive.ubuntu.com'
Err http://....archive.ubuntu.com/ubuntu xenial-updates InRelease
Could not resolve '....archive.ubuntu.com'
Hit http://archive.canonical.com/ubuntu xenial InRelease
W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/xenial/InRelease: Could not resolve '....archive.ubuntu.com'
W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease: Could not resolve '....archive.ubuntu.com'
W: Failed to fetch http://....archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease: Could not resolve '....archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, …Run Code Online (Sandbox Code Playgroud) ubuntu apt aptitude ubuntu-16.04 windows-subsystem-for-linux
有没有办法将字符串计算为 awk 中的数学表达式?
balter@spectre3:~$ echo "sin(0.3) 0.3" | awk '{print $1,sin($2)}'
sin(0.3) 0.29552
Run Code Online (Sandbox Code Playgroud)
我想知道一种将第一个输入计算为 0.29552 的方法。
在 R 中,您可以编写允许参数是预定义对象的不带引号的属性的函数。例如,DataFrame 对象的接口允许以下内容:
# df has columns "A" and "B"
df = mutate(df, C=A*B)
Run Code Online (Sandbox Code Playgroud)
现在df有一个新列“C”,它是“A”列和“B”列的乘积。
还有不加引号的“公式”类型:
lm(data=df, A~B)
Run Code Online (Sandbox Code Playgroud)
这种“非标准评价”。
是否可以在 Javascript 或 Python 中做类似的事情。
我正在制作主成分的 3D 散点图(附图片)。尽管我使用的是aspectmode='cube',但轴的大小不相等。
我创建了一个 MRE 来测试,在那个测试中,轴是相等的。所以,我很困惑。
axx <- list(
gridcolor='rgb(255, 255, 255)',
zerolinecolor='rgb(255, 255, 255)',
showbackground=TRUE,
backgroundcolor='rgb(230, 230,230)'
)
df = data.frame(
X=rnorm(100, mean=-5, sd=2),
Y=rnorm(100, mean=5, sd=5),
Z=rnorm(100, mean=20, sd=10),
color=sample(c('R','G'), 100, replace = T)
)
plot_ly(
data=df,
x = ~X,
y = ~Y,
z = ~Z,
color=~color
) %>%
add_markers(size=3) %>%
# layout(autosize = F, width = 1000, height = 1000)
layout(
# autosize=F,
# width=700,
# height=700,
aspectmode='cube',
title = 'MiSeq-239 Principal Components',
scene = …Run Code Online (Sandbox Code Playgroud) 如果我这样做(在Python中):
text = open("filename").read()
Run Code Online (Sandbox Code Playgroud)
文件是自动关闭的吗?
当wilcox.test在R中使用“公式”作为关键字参数时,为什么会出现错误?文档说它有一个“公式”参数。
df = data.frame(A=rnorm(10), D=sample(c('p','q'), 10, replace=T))
wilcox.test(data=df, A~D)
wilcox.test(data=df, formula=A~D)
> df = data.frame(A=rnorm(10), D=sample(c('p','q'), 10, replace=T))
> wilcox.test(data=df, A~D)
Wilcoxon rank sum test
data: A by D
W = 13, p-value = 1
alternative hypothesis: true location shift is not equal to 0
> wilcox.test(data=df, formula=A~D)
Error in wilcox.test.default(data = df, formula = A ~ D) :
argument "x" is missing, with no default
Run Code Online (Sandbox Code Playgroud) 我在 GitHub 界面中发现了一个类似 bug 的小行为。或者也许我真正想要的是新的或改进的功能。
GitHub 代码库有公共 GitHub 存储库吗?或者,提交此问题的适当位置在哪里?
任何使用“GitHub”等术语以及“问题”或“bug”的网络搜索都不可避免地会导致有关如何提交 GitHub 问题或提交 GitHub 存储库功能请求的说明。GitHub 本身的噪音太大,无法找到相关结果。
r ×4
python ×2
3d ×1
apt ×1
aptitude ×1
awk ×1
dataframe ×1
dendextend ×1
dendrogram ×1
evaluate ×1
excel ×1
excel-vba ×1
file ×1
formula ×1
github ×1
heatmaply ×1
io ×1
javascript ×1
jupyter ×1
knitr ×1
math ×1
pandas ×1
plotly ×1
r-corrplot ×1
r-markdown ×1
r-plotly ×1
ubuntu ×1
ubuntu-16.04 ×1
vba ×1