Search
 
SCRIPT & CODE EXAMPLE
 

R

how to source all fies from a directory in r

setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) # set the work directory
# to the same file location that the r script is in.
WD <- getwd() # get the current working directory

# Load the supporting scripts from the folder supporting scripts
files.sources = list.files(paste0(WD,'/supporting scripts/'))
files.sources = paste0(WD, '/supporting scripts/', files.sources)
sapply(files.sources, source)
Comment

PREVIOUS NEXT
Code Example
R :: open xlsx with r 
R :: how to format a number in r 
R :: log likelihood in r 
R :: R Basic Syntax 
R :: copy list R 
R :: Use regex to extract row in R (problem) 
R :: R create sequence of date each quarters 
R :: ts object to data frame 
R :: kable thousand mark 
R :: alpha 2 codes in r 
R :: R concaat string and number 
R :: print string without quotes and escape sequence r 
R :: rstudio refactor hotkey 
R :: R grid all possibilites between two vectors 
R :: ways to examine model in r 
R :: how to pull all 500 stocks r 
Rust :: rust take user input 
Rust :: create file rust 
Rust :: rust null 
Rust :: rust import file 
Rust :: rust trait 
Rust :: how to make a sorting algorithim rust 
Rust :: armanriazi•rust•borrowchecker•lifetime•static 
Rust :: sort_by in rust 
Rust :: armanriazi•rust•unsafe•extern•mangling 
Rust :: bevy disable plugin 
Rust :: armanriazi•rust•thread•channel 
Lua :: roblox studio teleport on collision 
Lua :: lua round number 
Lua :: lua hello world 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =