已删除R中%命令之间的%?

时间:2015-08-04 08:59:24

标签: r

我回到了一些使用以下语法的旧代码:

I use the following script for Update-Help for Computers behind a proxy with authentication:
# -------------------------------
#Requires -RunAsAdministrator
$wc = New-Object System.Net.WebClient
$proxyUserName  = Read-Host -Prompt "Proxy User Name"
$proxySecPasswd = Read-Host -Prompt "Password für $proxyUserName"  -AsSecureString
$credentials = New-Object System.Management.Automation.PSCredential($proxyUserName, $proxySecPasswd)
$wc.Proxy.Credentials = $credentials
Update-Help -UICulture 'en-US'
# -------------------------------

但得到错误

y[df$myvar %between% c(1,100)]

此代码曾用于工作,我同时更新了R.有什么想法吗?

1 个答案:

答案 0 :(得分:2)

正如Pascal指出的那样,您应首先加载包data.table

  

library(data.table)

然后你就可以使用它了。