isSheetVisible-methods(XLConnect)
isSheetVisible-methods()所属R语言包:XLConnect
Checking if worksheets are visible in a workbook
检查如果工作簿中的工作表可见
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Checks if the specified worksheets are visible in a workbook.
如果指定的工作表检查可见在workbook。
用法----------Usage----------
## S4 method for signature 'workbook,character'
isSheetVisible(object,sheet)
## S4 method for signature 'workbook,numeric'
isSheetVisible(object,sheet)
参数----------Arguments----------
参数:object
The workbook to use
workbook使用
参数:sheet
The name or index of the sheet to check
的名称或索引表检查
Details
详细信息----------Details----------
Returns TRUE if the specified named sheet is visible (not hidden and not very hidden), otherwise FALSE. sheet is vectorized such that multiple worksheets can be queried with one method call. An exception is thrown if the specified sheet does not exist.
返回TRUE,如果指定的名为sheet是可见的(不是隐藏的,而不是很隐蔽),否则FALSE。 sheet量化的多个工作表,可以查询一个方法调用。如果指定的sheet不存在,则抛出异常。
(作者)----------Author(s)----------
Martin Studer<br>
Mirai Solutions GmbH <a href="http://www.mirai-solutions.com">http://www.mirai-solutions.com</a>
参见----------See Also----------
workbook, hideSheet, unhideSheet, isSheetHidden, isSheetVeryHidden
workbook,hideSheet,unhideSheet,isSheetHidden,isSheetVeryHidden
实例----------Examples----------
# Load workbook (create if not existing)[负载工作簿(如果不存在创建)]
wb <- loadWorkbook("isSheetVisible.xlsx", create = TRUE)
# Write a couple of built-in data.frame's into sheets[写一对夫妇的内置数据框的成片]
# with corresponding name[与相应的名称]
for(obj in c("CO2", "airquality", "swiss")) {
createSheet(wb, name = obj)
writeWorksheet(wb, get(obj), sheet = obj)
}
# Hide sheet 'CO2'[隐藏表“CO2”]
hideSheet(wb, sheet = "CO2", veryHidden = FALSE)
# Very hide sheet 'airquality'[非常隐藏表“airquality”]
hideSheet(wb, sheet = "airquality", veryHidden = TRUE)
# Check if sheet 'swiss' is visible;[检查表“瑞士”是可见的;]
# this should obviously return TRUE[这显然应该返回TRUE]
isSheetVisible(wb, "swiss")
# Check if sheet 'CO2' is visible;[检查表“CO2”是可见的;]
# this should obviously return FALSE[这显然应该返回FALSE]
isSheetVisible(wb, "CO2")
# Check if sheet 'airquality' is visible;[检查可见表“airquality”;]
# this should obviously return FALSE[这显然应该返回FALSE]
isSheetVisible(wb, "airquality")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|