datatable - 提到的代码错误,它说意外的符号
问题描述
无法运行以下代码:
loc <- sample(state_table$key, no_of_recs, replace=T, prob=c(2,2,1,1,1)) time_month <- sample(month_table$key, no_of_recs, replace=T) time_year <- sample( c(2012, 2013), no_of_recs, replace=T) prod <- sample(prod_table$key, no_of_recs, replace=T, prob=c(1, 3, 2)) 单位 <- sample(c(1,2) , no_of_recs, replace=T, prob=c(10, 3)) amount <- unit*prod_table[prod,]$price sales <- data.frame(month=time_month, year=time_year, loc=loc, prod=prod , 单位=单位, 数量=数量)
解决方案
推荐阅读
- reactjs - React hook useEffect 无法读取使用 firebase 的 firestore 实时数据更新的新 useState 值
- javascript - 在呈现页面后尝试从 JavaScript 函数访问模型数据 NodeJS EJS
- websphere - IBM ODM 相关 XOM 类
- c# - 如何在 C# net core 中从数据库中获取数据
- python - Python:用多个值替换单个字符
- user-interface - 如何为 Spark AR 创建 UI?
- javascript - JS 文档帮助。文档事件监听器
- jsf - 选择一个panelGrid并设置对象
- java - 如何使用 jOOQ gradle 插件将 postgres 中的 bigint[] 字段转换为类字段
- firebase - 无法向 Firebase 远程配置添加值/参数