content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
shinyServer(function(input, output, session) { createProjectDefinition <- function() { data.frame(id = getComputationInfo("id"), compType = getComputationInfo("compType"), projectName = getComputationInfo("projectName"), projectDesc = getComputationI...
/inst/webApps/setupWorkerApp/setupCoxWorker/server.R
no_license
emcramer/distcomp
R
false
false
6,505
r
shinyServer(function(input, output, session) { createProjectDefinition <- function() { data.frame(id = getComputationInfo("id"), compType = getComputationInfo("compType"), projectName = getComputationInfo("projectName"), projectDesc = getComputationI...
modelInfo <- list(label = "Principal Component Analysis", library = "pls", type = "Regression", parameters = data.frame(parameter = 'ncomp', class = "numeric", label = '#Components')...
/models/files/pcr.R
no_license
bleutner/caret
R
false
false
1,864
r
modelInfo <- list(label = "Principal Component Analysis", library = "pls", type = "Regression", parameters = data.frame(parameter = 'ncomp', class = "numeric", label = '#Components')...
#' @title The freadss() function reads in a csv and perhaps subsets the rows (optionally sampled) #' #' @seealso \code{\link[data.table]{fread}} #' @description The input file is read in-memory via \code{\link[data.table]{fread}}. #' If rows are subset, there is a slow down. Hence, subsetting rows costs a one-time slow...
/R/freadss.R
no_license
GapData/datzen
R
false
false
6,707
r
#' @title The freadss() function reads in a csv and perhaps subsets the rows (optionally sampled) #' #' @seealso \code{\link[data.table]{fread}} #' @description The input file is read in-memory via \code{\link[data.table]{fread}}. #' If rows are subset, there is a slow down. Hence, subsetting rows costs a one-time slow...
################ # File: Lab8.R # Author: Taeyong Park # Summary: Regression Analysis for Time Series Data ################# # install.packages("tseries") # install.packages("lmtest") # install.packages("Hmisc") library(tseries); library(lmtest); library(Hmisc) top=read.csv("top1.csv") colnames(top) # Test for st...
/70208_Lab8.R
no_license
typark99/TeachingLab_RegressionAnalysis
R
false
false
1,487
r
################ # File: Lab8.R # Author: Taeyong Park # Summary: Regression Analysis for Time Series Data ################# # install.packages("tseries") # install.packages("lmtest") # install.packages("Hmisc") library(tseries); library(lmtest); library(Hmisc) top=read.csv("top1.csv") colnames(top) # Test for st...
rm(list=ls(all =TRUE)) for(x in 1:4){ message("x=",x) } for(x in -2:4){ message("x=",x) } for(x in seq(5,-3,-0.5)){ message("x=",x) } # #-------------------------------- rm(list=ls(all =TRUE)) #要先幫z做出一個空間 z<- NULL for (y in -5:10){ z[y]<-y^2 message("z=",z) } #比較,是否可以從其他數字開始? z<- NULL print(y) y<-1:10 fo...
/week11/Skagerrakschlacht+8.R
no_license
B05208038/NTU_freshman_Introduction_to_Computer_and_Programming_Geography_department
R
false
false
1,562
r
rm(list=ls(all =TRUE)) for(x in 1:4){ message("x=",x) } for(x in -2:4){ message("x=",x) } for(x in seq(5,-3,-0.5)){ message("x=",x) } # #-------------------------------- rm(list=ls(all =TRUE)) #要先幫z做出一個空間 z<- NULL for (y in -5:10){ z[y]<-y^2 message("z=",z) } #比較,是否可以從其他數字開始? z<- NULL print(y) y<-1:10 fo...
#' @title Creates a registry which can be used for running several Llama models on a cluster. #' #' @description #' It is likely that you need to install some additional R packages for this from CRAN or extra #' Weka learner. The latter can be done via e.g. \code{WPM("install-package", "XMeans")}. #' #' Feature costs a...
/aslib/R/runLlamaModels.R
no_license
coseal/aslib-r
R
false
false
8,814
r
#' @title Creates a registry which can be used for running several Llama models on a cluster. #' #' @description #' It is likely that you need to install some additional R packages for this from CRAN or extra #' Weka learner. The latter can be done via e.g. \code{WPM("install-package", "XMeans")}. #' #' Feature costs a...
.onAttach <- function(...){ ## Retrieve Year Information date <- date() x <- regexpr("[0-9]{4}", date) this.year <- substr(date, x[1], x[1] + attr(x, "match.length") - 1) # Retrieve Current Version this.version = packageVersion("NetworkDistance") ## Print on Screen packageStartupMessage("**-----------...
/R/zzz.R
no_license
cran/NetworkDistance
R
false
false
940
r
.onAttach <- function(...){ ## Retrieve Year Information date <- date() x <- regexpr("[0-9]{4}", date) this.year <- substr(date, x[1], x[1] + attr(x, "match.length") - 1) # Retrieve Current Version this.version = packageVersion("NetworkDistance") ## Print on Screen packageStartupMessage("**-----------...
#'@title Metabolism calculated from the maximum likelihood estimates of the parameters in a standard linear regression model #'@description Process-error-only model with parameters fitted via maximum likelihood estimation (MLE). This function runs the maximum likelihood metabolism model on the supplied gas concentrati...
/LakeMetabolizer/R/metab.mle.R
no_license
ingted/R-Examples
R
false
false
11,288
r
#'@title Metabolism calculated from the maximum likelihood estimates of the parameters in a standard linear regression model #'@description Process-error-only model with parameters fitted via maximum likelihood estimation (MLE). This function runs the maximum likelihood metabolism model on the supplied gas concentrati...
ea9e268689cc24c61b5f240dfba899e6 incrementer-enc06-uniform-depth-0.qdimacs 954 2405
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Miller-Marin/incrementer-encoder/incrementer-enc06-uniform-depth-0/incrementer-enc06-uniform-depth-0.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
83
r
ea9e268689cc24c61b5f240dfba899e6 incrementer-enc06-uniform-depth-0.qdimacs 954 2405
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dem2stl.R \name{latlong2ellipsoid} \alias{latlong2ellipsoid} \title{Map latitude/longitude coordinates onto an ellipsoid. Vectorised.} \usage{ latlong2ellipsoid(lat, long, a = 1, b = 1, c = 1) } \arguments{ \item{lat}{latitude coordinates (sc...
/man/latlong2ellipsoid.Rd
permissive
kevinstadler/dem2stl
R
false
true
760
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dem2stl.R \name{latlong2ellipsoid} \alias{latlong2ellipsoid} \title{Map latitude/longitude coordinates onto an ellipsoid. Vectorised.} \usage{ latlong2ellipsoid(lat, long, a = 1, b = 1, c = 1) } \arguments{ \item{lat}{latitude coordinates (sc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipeline_functions.R \name{draw.funcEnrich.bar} \alias{draw.funcEnrich.bar} \title{Bar Plot for Gene Set Enrichment Analysis Result} \usage{ draw.funcEnrich.bar(funcEnrich_res = NULL, top_number = 30, Pv_col = "Ori_P", item_col = "Intersect...
/man/draw.funcEnrich.bar.Rd
permissive
WenboSheng/NetBID
R
false
true
5,492
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipeline_functions.R \name{draw.funcEnrich.bar} \alias{draw.funcEnrich.bar} \title{Bar Plot for Gene Set Enrichment Analysis Result} \usage{ draw.funcEnrich.bar(funcEnrich_res = NULL, top_number = 30, Pv_col = "Ori_P", item_col = "Intersect...
heuristic_models=function(Data, var_path, var_conv, var_value=NULL, sep=">"){ if(length(sep)>1){stop("Separator must have length 1")} if(is.null(var_value)){var_value="0"} res=.Call("heuristic_models_cpp", Data, var_path, var_conv, var_value, sep) return(as.data.frame(res)) } markov_model=function(Data, ...
/R/ChannelAttribution.R
no_license
jburkhardt/ChannelAttribution
R
false
false
4,298
r
heuristic_models=function(Data, var_path, var_conv, var_value=NULL, sep=">"){ if(length(sep)>1){stop("Separator must have length 1")} if(is.null(var_value)){var_value="0"} res=.Call("heuristic_models_cpp", Data, var_path, var_conv, var_value, sep) return(as.data.frame(res)) } markov_model=function(Data, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Rtoolkit.R \name{ENgetflowunits} \alias{ENgetflowunits} \title{Retrieve a code number indicating the units used to express all flow rates.} \usage{ ENgetflowunits() } \value{ An integer, the code numnber indicating the flow units. } \descript...
/man/ENgetflowunits.Rd
no_license
cran/epanet2toolkit
R
false
true
1,485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Rtoolkit.R \name{ENgetflowunits} \alias{ENgetflowunits} \title{Retrieve a code number indicating the units used to express all flow rates.} \usage{ ENgetflowunits() } \value{ An integer, the code numnber indicating the flow units. } \descript...
#Seurat 3.0 library(dplyr) library(Seurat) pbmc.data.1 <- Read10X(data.dir = "./age/filtered_feature_bc_matrix") pbmc.data.2 <- Read10X(data.dir = "./young/filtered_feature_bc_matrix") colnames(pbmc.data.1)=paste0('Aged_',colnames(pbmc.data.1)) colnames(pbmc.data.2)=paste0('Young_',colnames(pbmc.data.2)) source('...
/scRNAseq/AGE_20190530/go.R
no_license
jumphone/Bioinformatics
R
false
false
9,427
r
#Seurat 3.0 library(dplyr) library(Seurat) pbmc.data.1 <- Read10X(data.dir = "./age/filtered_feature_bc_matrix") pbmc.data.2 <- Read10X(data.dir = "./young/filtered_feature_bc_matrix") colnames(pbmc.data.1)=paste0('Aged_',colnames(pbmc.data.1)) colnames(pbmc.data.2)=paste0('Young_',colnames(pbmc.data.2)) source('...
##' Calculate clusters for back tracectories ##' ##' This function carries out cluster analysis of HYSPLIT back ##' trajectories. The function is specifically designed to work with ##' the trajectories imported using the \code{openair} ##' \code{importTraj} function, which provides pre-calculated back ##' trajectories ...
/R/trajCluster.R
no_license
hrngultekin/openair
R
false
false
11,776
r
##' Calculate clusters for back tracectories ##' ##' This function carries out cluster analysis of HYSPLIT back ##' trajectories. The function is specifically designed to work with ##' the trajectories imported using the \code{openair} ##' \code{importTraj} function, which provides pre-calculated back ##' trajectories ...
## ## makeCacheMatrix: This function creates a special "matrix" object that can ##cache its inverse. ## ##Computing the inverse of a square matrix can be done with the solve function ##in R. For example, if X is a square invertible matrix, then solve(X) returns its ##inverse. makeCacheMatrix <- function(xx...
/cachematrix.R
no_license
sjafr/ProgrammingAssignment2
R
false
false
1,357
r
## ## makeCacheMatrix: This function creates a special "matrix" object that can ##cache its inverse. ## ##Computing the inverse of a square matrix can be done with the solve function ##in R. For example, if X is a square invertible matrix, then solve(X) returns its ##inverse. makeCacheMatrix <- function(xx...
# Importing libraries # For file structures library(here) # For tidying data library(tidyverse) # Importing Data # Assuming that banned_items.csv has been downloaded from allData.zip and kept in a folder called `raw_data` within the current working directory. # Download banned_items.csv from https://github.com/the-p...
/dress-codes/body_percentages.R
permissive
the-pudding/data
R
false
false
1,503
r
# Importing libraries # For file structures library(here) # For tidying data library(tidyverse) # Importing Data # Assuming that banned_items.csv has been downloaded from allData.zip and kept in a folder called `raw_data` within the current working directory. # Download banned_items.csv from https://github.com/the-p...
source("global.R") shinyServer(function(input, output, session){ output$textual <- renderPrint({input$text}) selectedData <- reactive({ input$go isolate(final(input$text,input$tweets,as.character(input$dateRange[1]), as.character(input$dateRange[2]))) }) ...
/server.R
no_license
luisecastro/nlp_twitter_sentiment_analysis
R
false
false
626
r
source("global.R") shinyServer(function(input, output, session){ output$textual <- renderPrint({input$text}) selectedData <- reactive({ input$go isolate(final(input$text,input$tweets,as.character(input$dateRange[1]), as.character(input$dateRange[2]))) }) ...
library(quantreg.nonpar) ### Name: npqr ### Title: Nonparametric Series Quantile Regression ### Aliases: npqr ### Keywords: nonparametric regression htest ### ** Examples data(india) ## Subset the data for speed india.subset<-india[1:1000,] formula=cheight~mbmi+breastfeeding+mage+medu+edupartner basis.bsp <- c...
/data/genthat_extracted_code/quantreg.nonpar/examples/npqr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,684
r
library(quantreg.nonpar) ### Name: npqr ### Title: Nonparametric Series Quantile Regression ### Aliases: npqr ### Keywords: nonparametric regression htest ### ** Examples data(india) ## Subset the data for speed india.subset<-india[1:1000,] formula=cheight~mbmi+breastfeeding+mage+medu+edupartner basis.bsp <- c...
\name{stiff} \alias{stiff} \docType{data} \title{ The Board Stiffness Dataset } \description{ Four measures of stiffness of 30 boards are available. The first measure of stiffness is obtained by sending a shock wave down the board, the second measure is obtained by vibrating the board, and remaining are...
/man/stiff.Rd
no_license
cran/SMLoutliers
R
false
false
1,042
rd
\name{stiff} \alias{stiff} \docType{data} \title{ The Board Stiffness Dataset } \description{ Four measures of stiffness of 30 boards are available. The first measure of stiffness is obtained by sending a shock wave down the board, the second measure is obtained by vibrating the board, and remaining are...
## A pair of functions that cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setinverse <- function(solveMatrix) inv <<- ...
/cachematrix.R
no_license
Daisy-bbfish/ProgrammingAssignment2
R
false
false
792
r
## A pair of functions that cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() x setinverse <- function(solveMatrix) inv <<- ...
# data_prep.R for Tourism & Recreation - master data_prep.R file # Jul2015: Casey O'Hara - combining multiple scripts and data sets into one # master script. # Supplemental scripts are located in TourismRecreation/R. # Outputs: # * tr_unemployment.csv # * rgn_id, year, percent # * Percent unemploymen...
/globalprep/TourismRecreation/data_prep.R
no_license
yan-cri/ohiprep
R
false
false
9,168
r
# data_prep.R for Tourism & Recreation - master data_prep.R file # Jul2015: Casey O'Hara - combining multiple scripts and data sets into one # master script. # Supplemental scripts are located in TourismRecreation/R. # Outputs: # * tr_unemployment.csv # * rgn_id, year, percent # * Percent unemploymen...
testlist <- list(x = c(NaN, 2.12196353786585e-314, 2.40382335695285e-315, 3.31388849947084e-310, 1.32963809622704e-105, 7.41841938664413e-68, -2.66305241450813e+305, 2.11370687089355e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), y = numeric(0)) result <- do.call(netrankr:::che...
/netrankr/inst/testfiles/checkPairs/libFuzzer_checkPairs/checkPairs_valgrind_files/1612798753-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
349
r
testlist <- list(x = c(NaN, 2.12196353786585e-314, 2.40382335695285e-315, 3.31388849947084e-310, 1.32963809622704e-105, 7.41841938664413e-68, -2.66305241450813e+305, 2.11370687089355e-314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), y = numeric(0)) result <- do.call(netrankr:::che...
\name{panel_raster} \alias{panel_raster} \alias{.panel_raster} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Add raster to the image panel } \description{ If specified image has 3 or 4 bands, then color composite is plotted on image panel, else the image is plotted regarding to its color table....
/man/panel_raster.Rd
no_license
yangxhcaf/ursa
R
false
false
6,182
rd
\name{panel_raster} \alias{panel_raster} \alias{.panel_raster} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Add raster to the image panel } \description{ If specified image has 3 or 4 bands, then color composite is plotted on image panel, else the image is plotted regarding to its color table....
# Descriptive statistics library(combinat) library(gtools) # permuation and combinations ---- factorial(5) # e.g. 7C3 choose(7,3) combn(7,3) # permutations permutations(3,2) nrow(permutations(3,2)) # descriptive statistics ---- x <- c(-2,-1,0,1,2) px <- c(1/8,2/8,2/8,2/8,1/8) meanp <- sum(x*px) varp <- sum((x-m...
/Probability.R
no_license
yenngee/AppliedStatisticsInR
R
false
false
1,099
r
# Descriptive statistics library(combinat) library(gtools) # permuation and combinations ---- factorial(5) # e.g. 7C3 choose(7,3) combn(7,3) # permutations permutations(3,2) nrow(permutations(3,2)) # descriptive statistics ---- x <- c(-2,-1,0,1,2) px <- c(1/8,2/8,2/8,2/8,1/8) meanp <- sum(x*px) varp <- sum((x-m...
### Projekt ### yearLsoa <- read.table("year_lsoa_grocery.csv", header = TRUE, sep =",") yearLsoa lsoaArea <- yearLsoa$area_sq_km lsoaPopulation <- yearLsoa$population yearMsoa <- read.table("year_msoa_grocery.csv", header = TRUE, sep =",") yearMsoa msoaArea <- yearMsoa$area_sq_km msoaPopulation <- yearMsoa$populatio...
/ProjectAufgabe1.R
no_license
laurenzhinterholzer22/ProjectForProgrammierenMitR
R
false
false
10,576
r
### Projekt ### yearLsoa <- read.table("year_lsoa_grocery.csv", header = TRUE, sep =",") yearLsoa lsoaArea <- yearLsoa$area_sq_km lsoaPopulation <- yearLsoa$population yearMsoa <- read.table("year_msoa_grocery.csv", header = TRUE, sep =",") yearMsoa msoaArea <- yearMsoa$area_sq_km msoaPopulation <- yearMsoa$populatio...
#' Null multivariate linear regression model fitting #' #' All outcomes are regressed on the same set of covariates. #' @param Ys matrix of outcomes (samples in rows and trait in columns) #' @param Xs matrix of common covariates for all traits. Default to NULL for no covariates. #' @return #' \describe{ #' \item{...
/R/mlm.R
no_license
baolinwu/MTAR
R
false
false
7,397
r
#' Null multivariate linear regression model fitting #' #' All outcomes are regressed on the same set of covariates. #' @param Ys matrix of outcomes (samples in rows and trait in columns) #' @param Xs matrix of common covariates for all traits. Default to NULL for no covariates. #' @return #' \describe{ #' \item{...
#' @title Confidence Interval of ratios #' @description Confidence Interval of ratios based on a ChiSquare Distribution #' @param varratio a variance ratio #' @param df.1 degree of freedom of denominator #' @param df.2 degree of freedom of numerator #' @param pval desired significance level, defaults to 0.1 #' @return ...
/R/ConfRatio.R
permissive
EarthSystemDiagnostics/paleospec
R
false
false
501
r
#' @title Confidence Interval of ratios #' @description Confidence Interval of ratios based on a ChiSquare Distribution #' @param varratio a variance ratio #' @param df.1 degree of freedom of denominator #' @param df.2 degree of freedom of numerator #' @param pval desired significance level, defaults to 0.1 #' @return ...
# Capek attempt: problems with diacritics, lemmatization, etc. # lemmatizator: http://lindat.mff.cuni.cz/services/morphodita/ library(tidyverse) capek <- read_lines("capek_rur_lemma.txt") library(tidytext) # text_df <- as.tibble(capek) text_df <- tibble(line = 1:4483, text = capek) tidy_capek <- text_df %>% unn...
/homework_2.R
no_license
MojmirDocekal/GitHubMDRepoPrednaskaProDoktorandy2020
R
false
false
580
r
# Capek attempt: problems with diacritics, lemmatization, etc. # lemmatizator: http://lindat.mff.cuni.cz/services/morphodita/ library(tidyverse) capek <- read_lines("capek_rur_lemma.txt") library(tidytext) # text_df <- as.tibble(capek) text_df <- tibble(line = 1:4483, text = capek) tidy_capek <- text_df %>% unn...
########## #Load Database bd <- read.csv("~/Rall/household_power_consumption.txt", sep=";", na.strings="?", stringsAsFactors=FALSE) #R Libraries library(plyr) library(lubridate) # Transform class bd <- mutate(bd, Date = as.Date(dmy(Date))) #subset 2007-02-01 to 2007-02-02 subbd <- bd[(bd$Date >= as.Date("2007/02/01") &...
/plot2.R
no_license
alfonsogd/RPlots
R
false
false
548
r
########## #Load Database bd <- read.csv("~/Rall/household_power_consumption.txt", sep=";", na.strings="?", stringsAsFactors=FALSE) #R Libraries library(plyr) library(lubridate) # Transform class bd <- mutate(bd, Date = as.Date(dmy(Date))) #subset 2007-02-01 to 2007-02-02 subbd <- bd[(bd$Date >= as.Date("2007/02/01") &...
# # Copyright 2007-2018 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
/SilveR/R-3.5.1/library/OpenMx/demo/BivariateCorrelation.R
permissive
kevinmiles/SilveR
R
false
false
3,915
r
# # Copyright 2007-2018 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
openSQLiteDB = function(database) { m = dbDriver("SQLite", max.con = 25) con = dbConnect(m, dbname=database) return( list(m=m, con=con) ) } addDataFrameToSQLiteDB = function(con, tablename, df) { values.questionmarks = paste(paste(rep('?,', ncol(df)-1), collapse=''), '?', sep='') sql = paste('insert ...
/RFinance/R/sqlite.R
no_license
rootfs-analytics/RFinance
R
false
false
567
r
openSQLiteDB = function(database) { m = dbDriver("SQLite", max.con = 25) con = dbConnect(m, dbname=database) return( list(m=m, con=con) ) } addDataFrameToSQLiteDB = function(con, tablename, df) { values.questionmarks = paste(paste(rep('?,', ncol(df)-1), collapse=''), '?', sep='') sql = paste('insert ...
# Start from 1990.csv file # Use the shell to extract the ArrDelay column and # by the shell's sort | uniq -c build up a frequency table of counts # of unique delay values, save that table as txt file. # Use read.table to obtain that txt file in R and compute the mean, sd and # median from the frequency table. ptm <...
/HW1/Shell_freq_1990.R
no_license
QianLiUCD/STA250Duncan
R
false
false
1,337
r
# Start from 1990.csv file # Use the shell to extract the ArrDelay column and # by the shell's sort | uniq -c build up a frequency table of counts # of unique delay values, save that table as txt file. # Use read.table to obtain that txt file in R and compute the mean, sd and # median from the frequency table. ptm <...
remove(list=ls()) #place your own directory source("C:/Users/mce1908.52713/Desktop/FEDERATED_GLM/GLM_FL.R") #set your own directory to sve files setwd("C:/Users/mce1908.52713/Desktop/FEDERATED_GLM/Example_Files/") ### create the master file. This has to be done once for all ### can be done by the server and distribu...
/NEW_Example_GLM_FL.R
no_license
IKNL/vtg_GLM
R
false
false
2,448
r
remove(list=ls()) #place your own directory source("C:/Users/mce1908.52713/Desktop/FEDERATED_GLM/GLM_FL.R") #set your own directory to sve files setwd("C:/Users/mce1908.52713/Desktop/FEDERATED_GLM/Example_Files/") ### create the master file. This has to be done once for all ### can be done by the server and distribu...
raw_data1 <- read.csv2("./household_power_consumption.txt") # Load data set which is stored in the working directory raw_data2 <- subset(raw_data1,raw_data1$Date=="1/2/2007" | raw_data1$Date=="2/2/2007") # "We will only be using data from the dates 2007-02-01 and 2007-02-02" raw_data2[raw_data2=="?"]<- NA # Repla...
/plot3.R
no_license
jimmaluschke/ExData_Plotting1
R
false
false
1,128
r
raw_data1 <- read.csv2("./household_power_consumption.txt") # Load data set which is stored in the working directory raw_data2 <- subset(raw_data1,raw_data1$Date=="1/2/2007" | raw_data1$Date=="2/2/2007") # "We will only be using data from the dates 2007-02-01 and 2007-02-02" raw_data2[raw_data2=="?"]<- NA # Repla...
### ### $Id: vander.R 51 2014-02-05 21:22:28Z plroebuck $ ### ##----------------------------------------------------------------------------- test.vander <- function(input, expected) { output <- do.call(getFromNamespace("vander", "matlab"), input) identical(output, expected) } vander.expected.empty <- matrix...
/data/genthat_extracted_code/matlab/tests/vander.R
no_license
surayaaramli/typeRrh
R
false
false
1,245
r
### ### $Id: vander.R 51 2014-02-05 21:22:28Z plroebuck $ ### ##----------------------------------------------------------------------------- test.vander <- function(input, expected) { output <- do.call(getFromNamespace("vander", "matlab"), input) identical(output, expected) } vander.expected.empty <- matrix...
# do some data exploration on the raw dataset ---- masterRaw <- readRDS("data/masterRaw.RDS") # load libraries library(magrittr) library(data.table) library(ggplot2) # theme source("project_analysis/figures/projectTheme.R") # create autoimmune disease variable ---- cols <- c("CASSTILL", "HAYF1", "HAYF2", "RALLG1", ...
/project2/project_analysis/figures/data_figures.R
no_license
csarvi/mat4376
R
false
false
5,625
r
# do some data exploration on the raw dataset ---- masterRaw <- readRDS("data/masterRaw.RDS") # load libraries library(magrittr) library(data.table) library(ggplot2) # theme source("project_analysis/figures/projectTheme.R") # create autoimmune disease variable ---- cols <- c("CASSTILL", "HAYF1", "HAYF2", "RALLG1", ...
# allows for use with Rscript bash functionality args <- commandArgs(TRUE) # options(BioC_mirror="http://master.bioconductor.org") # source("http://master.bioconductor.org/biocLite.R") #prcomp is used instread of princomp here to perform PCA since: # 1) princomp is limited to experiments where observations >> variabl...
/diffExp/PCA-many-heatmaps.R
no_license
WhiteLab/RNAseq
R
false
false
12,895
r
# allows for use with Rscript bash functionality args <- commandArgs(TRUE) # options(BioC_mirror="http://master.bioconductor.org") # source("http://master.bioconductor.org/biocLite.R") #prcomp is used instread of princomp here to perform PCA since: # 1) princomp is limited to experiments where observations >> variabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{year_tw} \alias{year_tw} \title{western year to tw year} \usage{ year_tw(y_we) } \arguments{ \item{y_we}{An integer} } \value{ the tw year } \description{ western year to tw year } \examples{ year_tw("2018") year_tw(1912) }
/man/year_tw.Rd
no_license
obarisk/twdate
R
false
true
320
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility.R \name{year_tw} \alias{year_tw} \title{western year to tw year} \usage{ year_tw(y_we) } \arguments{ \item{y_we}{An integer} } \value{ the tw year } \description{ western year to tw year } \examples{ year_tw("2018") year_tw(1912) }
# library(RPostgreSQL) # library(pool) # # Set connection parameters # pg_drv <- RPostgreSQL::PostgreSQL() # pg_host <- "vm-srv-finstad.vm.ntnu.no" # pg_db <- 'nofa' # pg_user <- rstudioapi::askForPassword("enter username") # pg_password <- rstudioapi::askForPassword("enter psw") # pool <- dbPool( # drv = pg_drv, #...
/R/get_location_environment.R
no_license
ninsbl/fremmedfisk
R
false
false
881
r
# library(RPostgreSQL) # library(pool) # # Set connection parameters # pg_drv <- RPostgreSQL::PostgreSQL() # pg_host <- "vm-srv-finstad.vm.ntnu.no" # pg_db <- 'nofa' # pg_user <- rstudioapi::askForPassword("enter username") # pg_password <- rstudioapi::askForPassword("enter psw") # pool <- dbPool( # drv = pg_drv, #...
# # title : plotEnsTracePlot.R # purpose : R script to create a trace plot of an ensemble sampler # : samples of model calibration using: # : - All output types # : - Model discrepancy, variance # : - Model discrepancy, mean (centered) # author : WD41, LRS/E...
/figures/chapter5/r-scripts/plotEnsTrace.R
no_license
damar-wicaksono/wd41-thesis
R
false
false
4,506
r
# # title : plotEnsTracePlot.R # purpose : R script to create a trace plot of an ensemble sampler # : samples of model calibration using: # : - All output types # : - Model discrepancy, variance # : - Model discrepancy, mean (centered) # author : WD41, LRS/E...
## This is code that takes the 11 ensemble members of a POAMA run ## Started on a particular day ## And outputs some interested results for further analysis ## I care about ECLs, so main result is a daily timeseries of # of members that ## have an ECL on that day ## Also outputs a figure for each of the months in the...
/plot_freq_raster_statspanel_vseason_v2.R
no_license
apepler/R-Raijin
R
false
false
9,101
r
## This is code that takes the 11 ensemble members of a POAMA run ## Started on a particular day ## And outputs some interested results for further analysis ## I care about ECLs, so main result is a daily timeseries of # of members that ## have an ECL on that day ## Also outputs a figure for each of the months in the...
#' Statistical analysis #' #' @import data.table #' #' @export do.stats <- function(dat, use.cols, sample.col, grp.col, comparisons, # make a tool to create a factorial comparison design -- for now just specify ma...
/R/do.stats.R
permissive
ImmuneDynamics/Spectre
R
false
false
623
r
#' Statistical analysis #' #' @import data.table #' #' @export do.stats <- function(dat, use.cols, sample.col, grp.col, comparisons, # make a tool to create a factorial comparison design -- for now just specify ma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/streamSetApi.r \name{streamSet$getRecordedAtTimes} \alias{streamSet$getRecordedAtTimes} \title{Returns recorded values of attributes for an element, event frame or attribute at the specified times.} \arguments{ \item{webId}{The ID of an eleme...
/man/streamSet-cash-getRecordedAtTimes.Rd
permissive
frbl/PI-Web-API-Client-R
R
false
true
2,376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/streamSetApi.r \name{streamSet$getRecordedAtTimes} \alias{streamSet$getRecordedAtTimes} \title{Returns recorded values of attributes for an element, event frame or attribute at the specified times.} \arguments{ \item{webId}{The ID of an eleme...
x <- c(0, .6509467) y <- c(0, 1.606) approx(x,y) library(ggplot2) library(gganimate) theme_set(theme_bw()) library(tidyverse) data <- data.frame(role = c("agent", "food"), position_x = c(sample(0:10, 1), sample(0:10, 1)), position_y = c(sample(0:10, 1), sample(0:10, 1)), ...
/poc.R
no_license
gabrielteotonio/vehicle-food-agent
R
false
false
1,555
r
x <- c(0, .6509467) y <- c(0, 1.606) approx(x,y) library(ggplot2) library(gganimate) theme_set(theme_bw()) library(tidyverse) data <- data.frame(role = c("agent", "food"), position_x = c(sample(0:10, 1), sample(0:10, 1)), position_y = c(sample(0:10, 1), sample(0:10, 1)), ...
# ===================================================================================== # "makeDatasets.R" file | # designate key constants, folder locations, and load packages | # load data mapping files ...
/myUpstream/makeDatasets.R
no_license
aculich/CACommunityBurden
R
false
false
30,548
r
# ===================================================================================== # "makeDatasets.R" file | # designate key constants, folder locations, and load packages | # load data mapping files ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.ASD.rhow.R \name{plot.ASD.rhow} \alias{plot.ASD.rhow} \title{Produit des figures pour la réflectance marine} \usage{ plot.ASD.rhow(asd, PNG = FALSE, RADIANCES = FALSE) } \description{ @param asd est une liste produite par la fonction \co...
/man/plot.ASD.rhow.Rd
no_license
belasi01/asd
R
false
true
702
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.ASD.rhow.R \name{plot.ASD.rhow} \alias{plot.ASD.rhow} \title{Produit des figures pour la réflectance marine} \usage{ plot.ASD.rhow(asd, PNG = FALSE, RADIANCES = FALSE) } \description{ @param asd est une liste produite par la fonction \co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing.R \name{TSSEnrichment} \alias{TSSEnrichment} \title{Compute TSS enrichment score per cell} \usage{ TSSEnrichment( object, tss.positions, assay = NULL, cells = NULL, verbose = TRUE ) } \arguments{ \item{object}{A Seurat...
/man/TSSEnrichment.Rd
permissive
Austin-s-h/signac
R
false
true
1,515
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preprocessing.R \name{TSSEnrichment} \alias{TSSEnrichment} \title{Compute TSS enrichment score per cell} \usage{ TSSEnrichment( object, tss.positions, assay = NULL, cells = NULL, verbose = TRUE ) } \arguments{ \item{object}{A Seurat...
require(tidyverse) require(broom) require(broom.mixed) require(lme4) ###### data exploration items%>% group_by(condition, terranova_problem_id)%>% summarize(correct=mean(correct))%>% ggplot(aes(condition,correct))+ geom_col(position='dodge')+facet_wrap(~terranova_problem_id) items%>% filter(condi...
/assistmentsMaine/code/plotsResults.r
no_license
adamSales/itemLevelEffects
R
false
false
8,236
r
require(tidyverse) require(broom) require(broom.mixed) require(lme4) ###### data exploration items%>% group_by(condition, terranova_problem_id)%>% summarize(correct=mean(correct))%>% ggplot(aes(condition,correct))+ geom_col(position='dodge')+facet_wrap(~terranova_problem_id) items%>% filter(condi...
#Análisis de datos sobre peso y tamaño de obreras y machos de las colonias: #Como los datos no siguen una distribución normal y hay muchos datos que faltan, utilizamos tests no paramétricos #Primero vemos los datos en gráficas: boxplot(wweight~group, data=worker_male_size) boxplot(wwidth~group, data=worker_male_size)...
/fitness parameters.R
no_license
cristinabotias/multiple-stressors-experiment
R
false
false
5,952
r
#Análisis de datos sobre peso y tamaño de obreras y machos de las colonias: #Como los datos no siguen una distribución normal y hay muchos datos que faltan, utilizamos tests no paramétricos #Primero vemos los datos en gráficas: boxplot(wweight~group, data=worker_male_size) boxplot(wwidth~group, data=worker_male_size)...
# Outlier Analysis #outlier not predicted well in by fitted regression model marks = c(1:80,100, 1000) marks2 = c(1:80, 100) marks boxplot(marks2) summary(marks) boxplot(marks) fit2 = lm(weight ~ height + I(height^2), data=women) par(mfrow=c(2,2)) ;plot(fit2) par(mfrow=c(1,1)) ; plot(fit2, which=4) ?plot fit3 =...
/DH/outlier1.R
no_license
GopalKrishna-P/analytics
R
false
false
2,145
r
# Outlier Analysis #outlier not predicted well in by fitted regression model marks = c(1:80,100, 1000) marks2 = c(1:80, 100) marks boxplot(marks2) summary(marks) boxplot(marks) fit2 = lm(weight ~ height + I(height^2), data=women) par(mfrow=c(2,2)) ;plot(fit2) par(mfrow=c(1,1)) ; plot(fit2, which=4) ?plot fit3 =...
## Plot 3 ## Ojective ## -------------------------------------------------------------- ## Of the four types of sources indicated by the type ## (point, nonpoint, onroad, nonroad) variable, which of these four ## sources have seen decreases in emissions from 1999-2008 for ## Baltimore City? Which have seen increases ...
/data_exploration/plot3.R
no_license
brandonat/coursera_data_science
R
false
false
1,126
r
## Plot 3 ## Ojective ## -------------------------------------------------------------- ## Of the four types of sources indicated by the type ## (point, nonpoint, onroad, nonroad) variable, which of these four ## sources have seen decreases in emissions from 1999-2008 for ## Baltimore City? Which have seen increases ...
install.packages("shiny") install.packages("shinydashboard") install.packages("shinyWidgets") install.packages("DT") install.packages("plotly") install.packages("ggplot2") install.packages("googleVis") install.packages("colourpicker")
/install.R
no_license
thomasdenecker/bioinfo-fr_Shiny
R
false
false
234
r
install.packages("shiny") install.packages("shinydashboard") install.packages("shinyWidgets") install.packages("DT") install.packages("plotly") install.packages("ggplot2") install.packages("googleVis") install.packages("colourpicker")
print( "Hello World!" ) print( "Hello World!", quote=FALSE )
/SRC/MyRScripts/Hello.R
no_license
djohnson67/RScripts
R
false
false
63
r
print( "Hello World!" ) print( "Hello World!", quote=FALSE )
"heatmap.plus" <- function (x, Rowv = NULL, Colv = if (symm) "Rowv" else NULL, distfun = dist, hclustfun = hclust, reorderfun = function(d, w) reorder(d, w), add.expr, symm = FALSE, revC = identical(Colv, "Rowv"), scale = c("row", "column", "none"), na.rm = TRUE, margins = c(5, 5), ColSideCo...
/heatmap.plus/R/heatmap.plus.R
no_license
ingted/R-Examples
R
false
false
6,747
r
"heatmap.plus" <- function (x, Rowv = NULL, Colv = if (symm) "Rowv" else NULL, distfun = dist, hclustfun = hclust, reorderfun = function(d, w) reorder(d, w), add.expr, symm = FALSE, revC = identical(Colv, "Rowv"), scale = c("row", "column", "none"), na.rm = TRUE, margins = c(5, 5), ColSideCo...
\name{rate.caq} \alias{rate.caq} \docType{data} \title{ CAQ Rating } \description{ This is a dataset of CAQ ratings of participants' personality completed by research assistants using likert type ratings. } \usage{data(rate.caq)} \format{ A data frame with 64 observations on the following 100 variables. \describe{...
/man/rate.caq.Rd
no_license
Justin8428/multicon
R
false
false
7,634
rd
\name{rate.caq} \alias{rate.caq} \docType{data} \title{ CAQ Rating } \description{ This is a dataset of CAQ ratings of participants' personality completed by research assistants using likert type ratings. } \usage{data(rate.caq)} \format{ A data frame with 64 observations on the following 100 variables. \describe{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/formula-tools.R \name{as_string_formula} \alias{as_string_formula} \title{Converts formulas to strings} \usage{ as_string_formula(formula) } \arguments{ \item{formula}{A model formula that may use standard fixed effects, random effects using ...
/man/as_string_formula.Rd
permissive
epinowcast/epinowcast
R
false
true
996
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/formula-tools.R \name{as_string_formula} \alias{as_string_formula} \title{Converts formulas to strings} \usage{ as_string_formula(formula) } \arguments{ \item{formula}{A model formula that may use standard fixed effects, random effects using ...
# set directory to your repository setwd(dir = '~/stop-frisk-analysis/') # load data load('data/cleanedData.Rdata') require(plyr) require(ggplot2) require(ggthemes) # Distributions of physical features by race img = qplot(hourStop, data = df, geom = 'bar', fill = race, binwidth = 1) + theme_economist() + xli...
/code/old/timeAnalysisAgg.R
no_license
bchnge/stop-frisk-analysis
R
false
false
2,137
r
# set directory to your repository setwd(dir = '~/stop-frisk-analysis/') # load data load('data/cleanedData.Rdata') require(plyr) require(ggplot2) require(ggthemes) # Distributions of physical features by race img = qplot(hourStop, data = df, geom = 'bar', fill = race, binwidth = 1) + theme_economist() + xli...
makeCacheMatrix <- function(x = matrix()) { inversa <- NULL set <- function(y) { x <<- y inversa <<- NULL } get <- function() {x} setInversa <- function(inversa1) {inversa <<- inversa1} getInversa <- function() {inversa} list(set = set, get = get, setInversa = setInversa, getInversa...
/cachematrix.R
no_license
johanftg/ProgrammingAssignment2
R
false
false
582
r
makeCacheMatrix <- function(x = matrix()) { inversa <- NULL set <- function(y) { x <<- y inversa <<- NULL } get <- function() {x} setInversa <- function(inversa1) {inversa <<- inversa1} getInversa <- function() {inversa} list(set = set, get = get, setInversa = setInversa, getInversa...
library(tidyr) library(ggplot2) library(reshape2) library(ggrepel) library(ggpubr) #--------------- Variables ---------------# args <- commandArgs(TRUE) #--------------- Graphing averages ---------------# #commentblock # S-v > :s/^/#/ # S-v > :s/^#// to remove #df <- read.table("2020_bDD-top5pc1.csv", header=TRUE...
/ggplot/ggplot_uniform5.R
no_license
0cb/warbling-wRen
R
false
false
11,520
r
library(tidyr) library(ggplot2) library(reshape2) library(ggrepel) library(ggpubr) #--------------- Variables ---------------# args <- commandArgs(TRUE) #--------------- Graphing averages ---------------# #commentblock # S-v > :s/^/#/ # S-v > :s/^#// to remove #df <- read.table("2020_bDD-top5pc1.csv", header=TRUE...
#' @title Find density modes with HMM-VB #' #' @description This function finds the density modes with HMM-VB. First, for each data point it finds an optimal state sequence #' using Viterbi algorithm. Next, it uses Modal Baum-Welch algorithm (MBW) to find the modes #' of distinct Viterbi state sequences. Data points as...
/fuzzedpackages/HDclust/R/hmmvbFindModes.R
no_license
akhikolla/testpackages
R
false
false
2,359
r
#' @title Find density modes with HMM-VB #' #' @description This function finds the density modes with HMM-VB. First, for each data point it finds an optimal state sequence #' using Viterbi algorithm. Next, it uses Modal Baum-Welch algorithm (MBW) to find the modes #' of distinct Viterbi state sequences. Data points as...
# Start with clean environment rm(list=ls()) gc() # Flux sampling files lb_samples <- '~/Desktop/repos/Jenior_RIPTiDe_2019/data/flux_samples/media_conditions/LB_aerobic.flux_samples.tsv' invivo_samples <- '~/Desktop/repos/Jenior_RIPTiDe_2019/data/flux_samples/media_conditions/invivo.flux_samples.tsv' # Read in data ...
/code/R/figure_5C.R
permissive
shuyima1/Jenior_RIPTiDe_2020
R
false
false
3,973
r
# Start with clean environment rm(list=ls()) gc() # Flux sampling files lb_samples <- '~/Desktop/repos/Jenior_RIPTiDe_2019/data/flux_samples/media_conditions/LB_aerobic.flux_samples.tsv' invivo_samples <- '~/Desktop/repos/Jenior_RIPTiDe_2019/data/flux_samples/media_conditions/invivo.flux_samples.tsv' # Read in data ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/problem.R \name{problem} \alias{problem} \alias{problem,Raster,Raster-method} \alias{problem,Spatial,Raster-method} \alias{problem,data.frame,data.frame-method} \alias{problem,numeric,data.frame-method} \alias{problem,data.frame,character-met...
/man/problem.Rd
no_license
BrandonEdwards/prioritizr
R
false
true
24,879
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/problem.R \name{problem} \alias{problem} \alias{problem,Raster,Raster-method} \alias{problem,Spatial,Raster-method} \alias{problem,data.frame,data.frame-method} \alias{problem,numeric,data.frame-method} \alias{problem,data.frame,character-met...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/response_matrices.R \name{response} \alias{response} \title{compute PDX response} \usage{ response(object, model.id = NULL, batch = NULL, res.measure = c("mRECIST", "slope", "AUC", "angle", "abc", "TGI", "lmm"), treatment.only = FALSE, ma...
/man/response.Rd
no_license
Feigeliudan01/Xeva
R
false
true
2,510
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/response_matrices.R \name{response} \alias{response} \title{compute PDX response} \usage{ response(object, model.id = NULL, batch = NULL, res.measure = c("mRECIST", "slope", "AUC", "angle", "abc", "TGI", "lmm"), treatment.only = FALSE, ma...
## ragtop -- convertibles pricing in R ## ## Copyright (C) 2016 Brian Boonstra <ragtop@boonstra.org> ## ## This file is part of the ragtop package for GNU R. ## It is made available under the terms of the GNU General Public ## License, version 2, or at your option, any later version, ## incorporated herein by referenc...
/R/term_structures.R
no_license
whjieee/ragtop
R
false
false
6,260
r
## ragtop -- convertibles pricing in R ## ## Copyright (C) 2016 Brian Boonstra <ragtop@boonstra.org> ## ## This file is part of the ragtop package for GNU R. ## It is made available under the terms of the GNU General Public ## License, version 2, or at your option, any later version, ## incorporated herein by referenc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utlis.R \name{runTsne} \alias{runTsne} \title{runTsne} \usage{ runTsne(my.dist, dims = 2, theta = 0, initial_dims = 50, max_iter = 2000, perplexity = 10, seed = 11, is_distance = TRUE, ...) } \arguments{ \item{my.dist}{A distance object t...
/man/runTsne.Rd
no_license
jasonserviss/CIMseq
R
false
true
1,623
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utlis.R \name{runTsne} \alias{runTsne} \title{runTsne} \usage{ runTsne(my.dist, dims = 2, theta = 0, initial_dims = 50, max_iter = 2000, perplexity = 10, seed = 11, is_distance = TRUE, ...) } \arguments{ \item{my.dist}{A distance object t...
## Plot 1 ## Histogram of Global Active Power ## ---------------------------------------------------------------------- ## Prepare data ## ---------------------------------------------------------------------- ## Read Electric Power Consumption data "household_power_consumption.txt" myd <- read.table("../househol...
/plot1.R
no_license
kchis/ExData_Plotting1
R
false
false
1,208
r
## Plot 1 ## Histogram of Global Active Power ## ---------------------------------------------------------------------- ## Prepare data ## ---------------------------------------------------------------------- ## Read Electric Power Consumption data "household_power_consumption.txt" myd <- read.table("../househol...
## uk10k data as our reference data set ## THIS IS FOR REFERENCE ONLY !!!! NOT RUN IN THIS LOCATION ## process PBC ## first convert to annotSnpStats library(annotSnpStats) library(data.table) library(magrittr) library(optparse) TEST <- TRUE DEFAULT_TARGET_DIRNAME <- 'split' option_list = list( make_option(c("-f"...
/GWAS/JIA/individual_level/switch_alleles_JIA_q.R
permissive
ollyburren/basis_paper
R
false
false
5,744
r
## uk10k data as our reference data set ## THIS IS FOR REFERENCE ONLY !!!! NOT RUN IN THIS LOCATION ## process PBC ## first convert to annotSnpStats library(annotSnpStats) library(data.table) library(magrittr) library(optparse) TEST <- TRUE DEFAULT_TARGET_DIRNAME <- 'split' option_list = list( make_option(c("-f"...
###################### ## HEAT MAP FIGURE ## ###################### # ** It is recommended to use Microsoft Open R (v3.5.1) for improved performance without compromsing compatibility ** ## SCRIPT PREPERATION # clear space and allocate memory gc() memory.limit(size = 56000) script.start <- Sys.time() # start script...
/R/old code/7-osm-road-area-raster.R
no_license
cghoehne/transport-uhi-phx
R
false
false
11,917
r
###################### ## HEAT MAP FIGURE ## ###################### # ** It is recommended to use Microsoft Open R (v3.5.1) for improved performance without compromsing compatibility ** ## SCRIPT PREPERATION # clear space and allocate memory gc() memory.limit(size = 56000) script.start <- Sys.time() # start script...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locatate_header_groups.R \name{hook} \alias{hook} \title{Supply an expression to identify which header groups are hooked.} \usage{ hook(...) } \arguments{ \item{...}{expression applied to a identifies which header groups are hooked} } \descr...
/man/hook.Rd
permissive
jimsforks/locatr
R
false
true
1,521
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/locatate_header_groups.R \name{hook} \alias{hook} \title{Supply an expression to identify which header groups are hooked.} \usage{ hook(...) } \arguments{ \item{...}{expression applied to a identifies which header groups are hooked} } \descr...
ErrorCrit_KGE2 <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = TRUE) { ##Arguments_check________________________________ if (!inherits(InputsCrit, "InputsCrit")) { stop("InputsCrit must be of class 'InputsCrit' \n") return(NULL) } if (!inherits(OutputsModel, "O...
/R/ErrorCrit_KGE2.R
no_license
kongdd/airGR
R
false
false
6,965
r
ErrorCrit_KGE2 <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = TRUE) { ##Arguments_check________________________________ if (!inherits(InputsCrit, "InputsCrit")) { stop("InputsCrit must be of class 'InputsCrit' \n") return(NULL) } if (!inherits(OutputsModel, "O...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix(), ...) { x <- matrix(x, ...) s <- NULL set <- function(y, ...) { x <<- y s <- NULL } get <- function() x setsolve <- functio...
/cachematrix.R
no_license
hrobot3/ProgrammingAssignment2
R
false
false
738
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix(), ...) { x <- matrix(x, ...) s <- NULL set <- function(y, ...) { x <<- y s <- NULL } get <- function() x setsolve <- functio...
# Household Survey data analysis - AGRICULTURE # Harmonic Biosphere Company Limited # June, 2020 # Set working directory -------------------------------------------------------- setwd("~") dir.create("RAP", showWarnings = FALSE) setwd("~/RAP") # Load/install required packagesl...
/Household Data Analysis/R Scripts/Household_Business.R
no_license
MalesaMT/Household-Survey
R
false
false
5,681
r
# Household Survey data analysis - AGRICULTURE # Harmonic Biosphere Company Limited # June, 2020 # Set working directory -------------------------------------------------------- setwd("~") dir.create("RAP", showWarnings = FALSE) setwd("~/RAP") # Load/install required packagesl...
library(readr) hpcDF <- read_delim("Ryan/Education/Coursera_Data_Science_Specialization/04_ExploratoryAnalysis/2018-August/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) as.data.frame(hpcDF) hpcDF$Date <- as.Date(hpcDF$Date, "%d/%m/%Y") hpcDF <- subset(hpcDF, Date == '2007-02-01' | Date ...
/plot3.R
no_license
thatsawinner/ExData_Plotting1
R
false
false
957
r
library(readr) hpcDF <- read_delim("Ryan/Education/Coursera_Data_Science_Specialization/04_ExploratoryAnalysis/2018-August/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) as.data.frame(hpcDF) hpcDF$Date <- as.Date(hpcDF$Date, "%d/%m/%Y") hpcDF <- subset(hpcDF, Date == '2007-02-01' | Date ...
data<-read.table("Course project 1.txt",sep=";",header=TRUE) > data$Date<-strptime(data$Date,"%d/%m/%Y") > par(mar=c(4,4,2,2)) > par(mfrow=c(2,2)) > plot(data$Global_active_power,type="l",xlab="",ylab="Global Active Power") > names(data) [1] "Date" "Time" "Global_active_power" [4] "G...
/plot 4.R
no_license
yiyezhiqiulily/ExData_Plotting1
R
false
false
987
r
data<-read.table("Course project 1.txt",sep=";",header=TRUE) > data$Date<-strptime(data$Date,"%d/%m/%Y") > par(mar=c(4,4,2,2)) > par(mfrow=c(2,2)) > plot(data$Global_active_power,type="l",xlab="",ylab="Global Active Power") > names(data) [1] "Date" "Time" "Global_active_power" [4] "G...
model_evapotranspiration <- function (isWindVpDefined = 1, evapoTranspirationPriestlyTaylor = 449.367, evapoTranspirationPenman = 830.958){ #'- Name: EvapoTranspiration -Version: 1.0, -Time step: 1 #'- Description: #' * Title: Evapotranspiration Model #' * Author:...
/src/pycrop2ml_ui/packages/SQ_Energy_Balance/src/r/Evapotranspiration.r
permissive
AgriculturalModelExchangeInitiative/Pycrop2ml_ui
R
false
false
3,412
r
model_evapotranspiration <- function (isWindVpDefined = 1, evapoTranspirationPriestlyTaylor = 449.367, evapoTranspirationPenman = 830.958){ #'- Name: EvapoTranspiration -Version: 1.0, -Time step: 1 #'- Description: #' * Title: Evapotranspiration Model #' * Author:...
library(lmomco) ### Name: par2qua2 ### Title: Equivalent Quantile Function of Two Distributions ### Aliases: par2qua2 ### Keywords: quantile mixture function distribution (mixture) mixed ### distribution ### ** Examples lmr <- lmoms(rnorm(20)); left <- parnor(lmr); right <- pargev(lmr) mixed.median <- par2qua2(0....
/data/genthat_extracted_code/lmomco/examples/par2qua2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
765
r
library(lmomco) ### Name: par2qua2 ### Title: Equivalent Quantile Function of Two Distributions ### Aliases: par2qua2 ### Keywords: quantile mixture function distribution (mixture) mixed ### distribution ### ** Examples lmr <- lmoms(rnorm(20)); left <- parnor(lmr); right <- pargev(lmr) mixed.median <- par2qua2(0....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipelines.R \name{pipeline_version_objects_list} \alias{pipeline_version_objects_list} \title{List pipeline objects} \usage{ pipeline_version_objects_list(pipeline.name, version, preload_content = TRUE, ...) } \arguments{ \item{pipeline.nam...
/man/pipeline_version_objects_list.Rd
permissive
stjordanis/client-library-r
R
false
true
2,084
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pipelines.R \name{pipeline_version_objects_list} \alias{pipeline_version_objects_list} \title{List pipeline objects} \usage{ pipeline_version_objects_list(pipeline.name, version, preload_content = TRUE, ...) } \arguments{ \item{pipeline.nam...
# Challenge 13 - "All your Base8^2" # ???? cody <- "Q29uZ3JhdHVsYXRpb25zISBZb3UgaGF2ZSBzb2x2ZWQgQ2hhbGxlbmdlIDEzLiBZb3UgYXJlIG5vdyByZXdhcmRlZCAzMiBwb2ludHMu" # Your Code Here: s <- base64enc::base64decode(cody)%>% str_flatten() #Janky code I found online that converts hexadecimal into ascii h <- sapply(seq(1, ncha...
/challenges/challenge_13.R
no_license
codemasta14/dss_challenge
R
false
false
492
r
# Challenge 13 - "All your Base8^2" # ???? cody <- "Q29uZ3JhdHVsYXRpb25zISBZb3UgaGF2ZSBzb2x2ZWQgQ2hhbGxlbmdlIDEzLiBZb3UgYXJlIG5vdyByZXdhcmRlZCAzMiBwb2ludHMu" # Your Code Here: s <- base64enc::base64decode(cody)%>% str_flatten() #Janky code I found online that converts hexadecimal into ascii h <- sapply(seq(1, ncha...
library(stringr) library(reticulate) Sys.setenv(RETICULATE_PYTHON = "/home/zy/tools/anaconda3/bin/python3") source('/home/zy/my_git/bioinformatics/scRef/try/scRef.R') num.cpu <- 10 # reference (science advance) exp_ref_mat=read.table('/home/yjingjing/project/hfz2020adjust/pla_adjust/4th_combNA_SA_scRef/SA.villi.csv'...
/scRef/try/redhouse.R
no_license
Drizzle-Zhang/bioinformatics
R
false
false
8,298
r
library(stringr) library(reticulate) Sys.setenv(RETICULATE_PYTHON = "/home/zy/tools/anaconda3/bin/python3") source('/home/zy/my_git/bioinformatics/scRef/try/scRef.R') num.cpu <- 10 # reference (science advance) exp_ref_mat=read.table('/home/yjingjing/project/hfz2020adjust/pla_adjust/4th_combNA_SA_scRef/SA.villi.csv'...
#' Returns elements of vector \eqn{x} that are not contained within vector \eqn{y}. #' #' @author Will Haese-Hill #' @param x vector with values to be matched. #' @param y vector with values to match against vector \eqn{x}. #' @return A vector of all values contained in vector \eqn{x} that could not be located in ...
/R/ASlashB.R
no_license
jgrevel/BAST1-R-Library
R
false
false
1,825
r
#' Returns elements of vector \eqn{x} that are not contained within vector \eqn{y}. #' #' @author Will Haese-Hill #' @param x vector with values to be matched. #' @param y vector with values to match against vector \eqn{x}. #' @return A vector of all values contained in vector \eqn{x} that could not be located in ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cor2.R \name{cor2} \alias{cor2} \title{Correlation Analysis} \usage{ cor2(data, x1, x2, method = "spearman") } \arguments{ \item{data}{dataframe} \item{x1}{x1} \item{x2}{x2} \item{method}{1,2,3} } \description{ Correlatio...
/man/cor2.Rd
no_license
cran/fastStat
R
false
true
335
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cor2.R \name{cor2} \alias{cor2} \title{Correlation Analysis} \usage{ cor2(data, x1, x2, method = "spearman") } \arguments{ \item{data}{dataframe} \item{x1}{x1} \item{x2}{x2} \item{method}{1,2,3} } \description{ Correlatio...
plot4 <- function(){ ## Load the loadPlotData helper file if (!exists("loadPlotData", mode = "function")) source("loadPlotData.r") ## Load the data - this function is defined in loadPlotData data <- loadPlotData() ## Open the png file png("plot4.png", width = 480, height = 480) pa...
/plot4.R
no_license
PeppeMiller/ExData_Plotting1
R
false
false
1,588
r
plot4 <- function(){ ## Load the loadPlotData helper file if (!exists("loadPlotData", mode = "function")) source("loadPlotData.r") ## Load the data - this function is defined in loadPlotData data <- loadPlotData() ## Open the png file png("plot4.png", width = 480, height = 480) pa...
## Laura E Timmerman ## September 12, 2015 ## The purpose of this code is to convert .XPT files (a SAS format) downloaded ## directly from the NHANES website to to a more useable format. library(Hmisc) ## Get the list of files to convert data_file_path = '~/GA_data_science/Project/Data/XPT_files/' setwd(data_file_p...
/Project/Code/convert_xpt_to_csv.R
no_license
lauratim/GA_data_science
R
false
false
608
r
## Laura E Timmerman ## September 12, 2015 ## The purpose of this code is to convert .XPT files (a SAS format) downloaded ## directly from the NHANES website to to a more useable format. library(Hmisc) ## Get the list of files to convert data_file_path = '~/GA_data_science/Project/Data/XPT_files/' setwd(data_file_p...
\name{wrapText} \alias{wrapText} \title{Wrap, Mark and Indent a Long Text String} \description{ Wrap a long text string to a desired width, mark it with prefixes, and indent the lines following the first. } \usage{ wrapText(string, width=50, prefix=c("> ","+ "), exdent=3) } \arguments{ \item{string}{ ...
/PBStools/man/wrapText.Rd
no_license
jfontestad/pbs-tools
R
false
false
1,478
rd
\name{wrapText} \alias{wrapText} \title{Wrap, Mark and Indent a Long Text String} \description{ Wrap a long text string to a desired width, mark it with prefixes, and indent the lines following the first. } \usage{ wrapText(string, width=50, prefix=c("> ","+ "), exdent=3) } \arguments{ \item{string}{ ...
\name{faoswsTrade-package} \alias{faoswsTrade-package} \alias{faoswsTrade} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab fa...
/faoswsTrade/man/faoswsTrade-package.Rd
no_license
vannem/sws_trade
R
false
false
1,055
rd
\name{faoswsTrade-package} \alias{faoswsTrade-package} \alias{faoswsTrade} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab fa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_pert} \alias{tfd_pert} \title{Modified PERT distribution for modeling expert predictions.} \usage{ tfd_pert( low, peak, high, temperature = 4, validate_args = FALSE, allow_nan_stats = FALSE, name = "Per...
/man/tfd_pert.Rd
no_license
cran/tfprobability
R
false
true
2,500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_pert} \alias{tfd_pert} \title{Modified PERT distribution for modeling expert predictions.} \usage{ tfd_pert( low, peak, high, temperature = 4, validate_args = FALSE, allow_nan_stats = FALSE, name = "Per...
#' Numeric Filter #' #' #' #' @import R6 #' @import shiny #' @importFrom uuid UUIDgenerate #' #' @examples #' appclass <- FilterNumeric$new( #' min = 0, #' max = 1, #' name="myfilter", #' subfilters = 3 #' ) #' #' #' # UI #' # Here we only have to call the UI methods. #' ui <- fluidPage( #' #' appclass$get_ui...
/R/FilterNumeric.R
no_license
zappingseb/shinyjsonconfig
R
false
false
3,462
r
#' Numeric Filter #' #' #' #' @import R6 #' @import shiny #' @importFrom uuid UUIDgenerate #' #' @examples #' appclass <- FilterNumeric$new( #' min = 0, #' max = 1, #' name="myfilter", #' subfilters = 3 #' ) #' #' #' # UI #' # Here we only have to call the UI methods. #' ui <- fluidPage( #' #' appclass$get_ui...
\name{draw_lm_basic} \alias{draw_lm_basic} %- Also NEED an '\alias' for EACH other topic documented here. \title{Draw samples from the basic LM model} \description{Function that draws samples from the basic LM model with specific parameters.} \usage{ draw_lm_basic(piv, Pi, Psi, n) } %- maybe also 'usage' for other...
/man/draw_lm_basic.Rd
no_license
jmorten/LMest
R
false
false
1,273
rd
\name{draw_lm_basic} \alias{draw_lm_basic} %- Also NEED an '\alias' for EACH other topic documented here. \title{Draw samples from the basic LM model} \description{Function that draws samples from the basic LM model with specific parameters.} \usage{ draw_lm_basic(piv, Pi, Psi, n) } %- maybe also 'usage' for other...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/accrate.R \name{flux.age.ghost} \alias{flux.age.ghost} \title{Plot flux rates for proxies.} \usage{ flux.age.ghost( proxy = 1, age.lim = c(), yr.lim = age.lim, age.res = 200, yr.res = age.res, set = get("info"), flux = c(), pl...
/man/flux.age.ghost.Rd
no_license
Maarten14C/rbacon
R
false
true
4,746
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/accrate.R \name{flux.age.ghost} \alias{flux.age.ghost} \title{Plot flux rates for proxies.} \usage{ flux.age.ghost( proxy = 1, age.lim = c(), yr.lim = age.lim, age.res = 200, yr.res = age.res, set = get("info"), flux = c(), pl...
library(rdss) # for helper functions library(rstanarm) declaration_9.3 <- declare_model(N = 100, age = sample(0:80, size = N, replace = TRUE)) + declare_inquiry(mean_age = mean(age)) + declare_sampling(S = complete_rs(N = N, n = 3)) + declare_estimator( age ~ 1, .method = stan_glm, family = gaussia...
/scripts_declarations/declaration_9.3.R
no_license
DeclareDesign/book
R
false
false
454
r
library(rdss) # for helper functions library(rstanarm) declaration_9.3 <- declare_model(N = 100, age = sample(0:80, size = N, replace = TRUE)) + declare_inquiry(mean_age = mean(age)) + declare_sampling(S = complete_rs(N = N, n = 3)) + declare_estimator( age ~ 1, .method = stan_glm, family = gaussia...
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) # variable, which of these four sources have seen decreases in emissions from 1999-2008 # for Baltimore City? Which have seen increases in emissions from 1999-2008? # Read in the NEI data NEI <- readRDS("summarySCC_PM25.rds") # ...
/plot3.R
no_license
JennyInNZ/ExData_Project2
R
false
false
1,234
r
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) # variable, which of these four sources have seen decreases in emissions from 1999-2008 # for Baltimore City? Which have seen increases in emissions from 1999-2008? # Read in the NEI data NEI <- readRDS("summarySCC_PM25.rds") # ...
library(ape) testtree <- read.tree("5421_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5421_0_unrooted.txt")
/codeml_files/newick_trees_processed/5421_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5421_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5421_0_unrooted.txt")
#' Distribution #' #' Distribution Chart. #' #' @param x A \code{\link{list}}, where each vector contains data to be plotted. If the data is not numeric #' it is coerced to be numeric. #' Input data may be a matrix or a vector, containing the height of the columns #' to be plotted, with the name/rownames used as the co...
/R/distribution.R
no_license
DaveGerson/flipStandardCharts
R
false
false
33,328
r
#' Distribution #' #' Distribution Chart. #' #' @param x A \code{\link{list}}, where each vector contains data to be plotted. If the data is not numeric #' it is coerced to be numeric. #' Input data may be a matrix or a vector, containing the height of the columns #' to be plotted, with the name/rownames used as the co...
context("Test_Matrix.Overlap") test_that("General Test with 1 species and two genes", { data(Seq.DF4) ## the first object of the list is the Species-by-gene matrix # Run the function. res = Matrix.Overlap(input = Seq.DF4[[1]], gene.Sel = c("co1", "16srrna")) expect_equal(dim(res[[1]])[1], 2) expect_equal(dim...
/tests/testthat/test-Test_Matrix.Overlap.R
no_license
dvdeme/regPhylo
R
false
false
846
r
context("Test_Matrix.Overlap") test_that("General Test with 1 species and two genes", { data(Seq.DF4) ## the first object of the list is the Species-by-gene matrix # Run the function. res = Matrix.Overlap(input = Seq.DF4[[1]], gene.Sel = c("co1", "16srrna")) expect_equal(dim(res[[1]])[1], 2) expect_equal(dim...
library(testthat) library(questionr) context("Tables and cross-tables functions") data(hdv2003) data(fecondite) test_that("Simple freq is correct", { tab <- freq(hdv2003$qualif) v <- as.numeric(summary(hdv2003$qualif)) val <- as.numeric(table(hdv2003$qualif)) expect_equal(names(tab), c("n", "%", "val%")) ex...
/tests/testthat/test_tables.R
no_license
gdutz/questionr
R
false
false
3,608
r
library(testthat) library(questionr) context("Tables and cross-tables functions") data(hdv2003) data(fecondite) test_that("Simple freq is correct", { tab <- freq(hdv2003$qualif) v <- as.numeric(summary(hdv2003$qualif)) val <- as.numeric(table(hdv2003$qualif)) expect_equal(names(tab), c("n", "%", "val%")) ex...
# Yige Wu @WashU May 2020 ## plot cell type on integration UMAP # set up libraries and output directory ----------------------------------- ## set working directory # dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" dir_base = "~/Library/CloudStorage/Box-Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA" setw...
/findmarkers/30ccRCC_tumorcellreclustered/summarize_30ccRCC_tumorcellreclustered_findallmarkers_byres.R
no_license
ding-lab/ccRCC_snRNA_analysis
R
false
false
2,813
r
# Yige Wu @WashU May 2020 ## plot cell type on integration UMAP # set up libraries and output directory ----------------------------------- ## set working directory # dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" dir_base = "~/Library/CloudStorage/Box-Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA" setw...
library(shades) ### Name: addmix ### Title: Colour mixtures ### Aliases: addmix submix %.)% %_/% ### ** Examples addmix(c("red","green","blue"), "red") submix(c("cyan","magenta","yellow"), "cyan")
/data/genthat_extracted_code/shades/examples/mixtures.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
204
r
library(shades) ### Name: addmix ### Title: Colour mixtures ### Aliases: addmix submix %.)% %_/% ### ** Examples addmix(c("red","green","blue"), "red") submix(c("cyan","magenta","yellow"), "cyan")
\name{fix.test.asis} \docType{data} \alias{fix.test.asis} \title{ Test Data for Function ltdl.fix.df } \description{ A set of test data to demonstrate how negative values are changed to half their positive value. Optionally numeric coded values representing missing data and/or zero values may be replaced by \code...
/man/fix.test.asis.Rd
no_license
cran/rgr
R
false
false
905
rd
\name{fix.test.asis} \docType{data} \alias{fix.test.asis} \title{ Test Data for Function ltdl.fix.df } \description{ A set of test data to demonstrate how negative values are changed to half their positive value. Optionally numeric coded values representing missing data and/or zero values may be replaced by \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{enhancements_list} \alias{enhancements_list} \title{List Enhancements} \usage{ enhancements_list(type = NULL, author = NULL, status = NULL, archived = NULL, limit = NULL, page_num = NULL, order = NULL, order_dir =...
/man/enhancements_list.Rd
no_license
JosiahParry/civis-r
R
false
true
2,204
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{enhancements_list} \alias{enhancements_list} \title{List Enhancements} \usage{ enhancements_list(type = NULL, author = NULL, status = NULL, archived = NULL, limit = NULL, page_num = NULL, order = NULL, order_dir =...