Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 报告者在单元格中旋转文本_R_Reporters - Fatal编程技术网

R 报告者在单元格中旋转文本

R 报告者在单元格中旋转文本,r,reporters,R,Reporters,在此基础上,我想旋转第一列单元格中的文本(“活体”、“黑色素瘤”、“非黑色素瘤”): 从文档中,我认为text.direction属性应该解决以下问题: baseCellProp = cellProperties() MyFTable[,1]=chprop( baseCellProp, text.direction="btlr") MyFTable 还有别的办法吗?(或者有什么方法可以让它工作吗?它只适用于标题以及Word和PowerPoint输出。使用flextable软件包来获得您想要的。

在此基础上,我想旋转第一列单元格中的文本(“活体”、“黑色素瘤”、“非黑色素瘤”):

从文档中,我认为text.direction属性应该解决以下问题:

baseCellProp = cellProperties()
MyFTable[,1]=chprop( baseCellProp, text.direction="btlr")
MyFTable

还有别的办法吗?(或者有什么方法可以让它工作吗?

它只适用于标题以及Word和PowerPoint输出。使用flextable软件包来获得您想要的。什么时候应该使用flextable+officer,什么时候应该使用reporter(使用flextable)用表创建Word文档?flextable+officer的目标是替换reporter,因为java依赖性是维护方面的一个难题。所以,如果你刚开始,最好不要使用ReporteRs,而是使用officer。flextable中有没有直接使用字体的方法?同样,我想在合并单元格下面的行上画一个更厚的边框。有没有现成的方法来获取合并单元格的索引或添加这样的边框?(我也把它作为一个单独的问题贴了出来)
baseCellProp = cellProperties()
MyFTable[,1]=chprop( baseCellProp, text.direction="btlr")
MyFTable