如何从 R 中插入 1 行 en sheet excel?

问题描述 投票:0回答:0

我是新手,使用包“xlsx”:

wb <- openxlsx::loadWorkbook(file = "test.xlsx")
sheets <- getSheets(wb)
sheet <- sheets[['0923301_']]
rows  <- getRows(sheet)#all rows
cells <- getCells(rows)#all cols

我想在 257 中插入一行更新值,

enter image description here

另一个问题是只能拿A257, B257和J257...我需要A:H

<main:c r=\"A257\" s=\"4\" t=\"s\">\r\n    <main:v>21</main:v>\r\n  </main:c>\r\n  <main:c r=\"B257\" s=\"4\"/>\r\n  <main:c r=\"C257\" s=\"4\"/>\r\n  <main:c r=\"J257\"/>\r\n</xml-fragment>}"

函数在 excel 表中的两个值之间插入行 或帮助从 R.

复制、删除和设置 excel 上的值
r excel xlsx openxls
© www.soinside.com 2019 - 2024. All rights reserved.