我正在使用R readxl包.我尝试使用以下命令导入Excel文件:
library(readxl)
city_codes <- read_excel("./data/file.xlsx", sheet = "city_codes")
Run Code Online (Sandbox Code Playgroud)
它说它是一个zip文件,无法打开:
Run Code Online (Sandbox Code Playgroud)Error in sheets_fun(path) : Evaluation error: zip file './data/file.xlsx' cannot be opened.
有任何想法吗?
假设我有一张名为nameAge:
ID Name Age
1 X 12
2 Y 12
3 null null
4 Z 12
Run Code Online (Sandbox Code Playgroud)
当我运行如下查询:
select * from nameAge where Age <> 12
Run Code Online (Sandbox Code Playgroud)
它返回一个空的结果集,而我的行与id 3哪里age不同null?
用Sql Server 2008 R2.
有任何想法吗?
编辑:与建议答案重复的可能性可能在某一点,但根本没有涵盖,它显示了如何使用空值与null比较,但我想问的是关于包含空值的结果集
我想问的是,我有一个名为全屏的复选框,当我检查它时,应禁用宽度和高度这两个输入字段,并将其值设置为null.我使用j查询做得很好,但是当我提交全屏检查表格时,即使两个输入字段值为0,也会保存该两个输入字段的先前值.
有帮助吗?
$("#fullscreenCheckBox").on("change", function() {
if($(this).prop("checked")) {
$("#height").prop("disabled", true);
$("#height").val("");
$("#width").prop("disabled", true);
$("#width").val("");
} else {
$("#height").prop("disabled", false);
$("#height").prop("disabled", false);
}
});
Run Code Online (Sandbox Code Playgroud)
这些值设置为null,但是当提交表单时,它不会保留它
我有一个像下面的数组;
Array
(
[0] => Array
(
[id] => 20
[contract_id] => 71
[service_type_id] => 184
[duration] => 33
[isUnlimited] => 0
)
[1] => Array
(
[id] => 21
[contract_id] => 71
[service_type_id] => 182
[duration] => 33
[isUnlimited] => 0
)
[2] => Array
(
[id] => 22
[contract_id] => 71
[service_type_id] => 183
[duration] => 33
[isUnlimited] => 0
)
)
Run Code Online (Sandbox Code Playgroud)
您能帮我用自己的索引替换['service_type_id']值吗?输出将如下所示;
[184] => Array
(
[id] => 20
[contract_id] => 71
[service_type_id] => 184
[duration] => …Run Code Online (Sandbox Code Playgroud)