Search
 
SCRIPT & CODE EXAMPLE
 

R

XLConnect

#XLConnect Package
library(XLConnect)

##Build Connection to excel 
x <- loadWorkbook("data.xlsx")

##Get Sheet name
getSheets("data.xlsx")

#Read Sheet
readWorksheet("data.xlsx", sheet = 2, 
              startRow = 3, endRow = 5, 
              startCol = 2, endCol = 4,
              header = FALSE)

# Add a worksheet to x
createSheet(x, "data_summary")

# Remove the fourth sheet
removeSheet(my_book, 4) # 4 is interchangeable with sheet name

# Add data in summ to "data_summary" sheet
writeWorksheet(x, data = summ, sheet = "data_summary")

# Rename "data_summary" sheet to "summary"
renameSheet(x, "data_summary", "summary")

# Save workbook as summary.xlsx
saveWorkbook(x "summary.xlsx")
Comment

PREVIOUS NEXT
Code Example
R :: timestamp conversion from excel R 
R :: parent folder for working directory in r 
R :: same plots for every variable together 
R :: how to get the r2 value in r 
R :: grep string that ends with R 
R :: r runif 
Rust :: rust allow unused 
Rust :: rust reverse for loop 
Rust :: sort a vec<f32 rust 
Rust :: rust absolute value 
Rust :: rust convert integer to string 
Rust :: closure rust 
Rust :: rust multiline comment 
Rust :: rust vec to array 
Rust :: armanriazi•rust•error•E0282•type annotations needed 
Rust :: closure type in rust 
Rust :: armanriazi•rust•static•vs•cons 
Rust :: convert path to pathbuf 
Rust :: armanriazi•rust•error•[E0369]: binary operation `=` cannot be applied to type `T` 
Rust :: armanriazi•rust•error•E0277•`Point<{integer}, {float}` cannot be formatted using ` 
Rust :: Vector with multiple types in rust 
Rust :: search in dir rust 
Rust :: rust string split 
Lua :: roblox lua random number 
Lua :: roblox get player by name 
Lua :: roblox table.find 
Lua :: what is the point of local varaibles in lua 
Lua :: lua game code 
Lua :: Lua How to check what index belongs to value 
Lua :: roblox add attribute 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =