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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tpl_plot_test.R
\name{tpl_plot_test}
\alias{tpl_plot_test}
\title{Sample plots to test the appearance of \code{theme_TPL_print}}
\usage{
tpl_plot_test(type = "barplot", include.logo = F)
}
\arguments{
\item{type}{Type of plot to be produced. ... | /man/tpl_plot_test.Rd | no_license | connorrothschild/tpltheme | R | false | true | 647 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tpl_plot_test.R
\name{tpl_plot_test}
\alias{tpl_plot_test}
\title{Sample plots to test the appearance of \code{theme_TPL_print}}
\usage{
tpl_plot_test(type = "barplot", include.logo = F)
}
\arguments{
\item{type}{Type of plot to be produced. ... |
#' Function optFg: By-gene essentiality optimization.
#' @importFrom utils setTxtProgressBar txtProgressBar
#' @importFrom utils install.packages installed.packages
#' @import parallel
#' @param startEss Starting gene essentiality.
#' @param sampleSubsets Sample groupings into test, ctrl, and 'all' panels.
#' @pa... | /R/optFg.R | permissive | CshlSiepelLab/ACE | R | false | false | 6,377 | r | #' Function optFg: By-gene essentiality optimization.
#' @importFrom utils setTxtProgressBar txtProgressBar
#' @importFrom utils install.packages installed.packages
#' @import parallel
#' @param startEss Starting gene essentiality.
#' @param sampleSubsets Sample groupings into test, ctrl, and 'all' panels.
#' @pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strip.R
\name{strip}
\alias{strip}
\title{Strip-plot experiments}
\usage{
strip(
factor1,
factor2,
block,
resp,
quali = c(TRUE, TRUE),
mcomp = "tukey",
fac.names = c("F1", "F2"),
sigT = 0.05,
sigF = 0.05,
unfold = NULL
)
}... | /man/strip.Rd | no_license | cran/ExpDes | R | false | true | 2,487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strip.R
\name{strip}
\alias{strip}
\title{Strip-plot experiments}
\usage{
strip(
factor1,
factor2,
block,
resp,
quali = c(TRUE, TRUE),
mcomp = "tukey",
fac.names = c("F1", "F2"),
sigT = 0.05,
sigF = 0.05,
unfold = NULL
)
}... |
\name{BasinData}
\alias{BasinData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Constructor function of class \code{BasinData}
}
\description{
Standard construction function of \code{BasinData} objects, used by package \code{baseflow} to store daily hydroclimatic data for a given catchm... | /man/BasinData.Rd | no_license | cran/baseflow | R | false | false | 3,058 | rd | \name{BasinData}
\alias{BasinData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Constructor function of class \code{BasinData}
}
\description{
Standard construction function of \code{BasinData} objects, used by package \code{baseflow} to store daily hydroclimatic data for a given catchm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_afcm_utils.R
\name{e_afcmcat_3D}
\alias{e_afcmcat_3D}
\title{AFCM plot of categories in 3D}
\usage{
e_afcmcat_3D(
modelo,
axes = c(1, 2, 3),
colorCat = "forestgreen",
cos2 = 0,
colorCos = "darkorchid",
titulos = c("Bien Repres... | /man/e_afcmcat_3D.Rd | no_license | PROMiDAT/discoveR | R | false | true | 1,082 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod_afcm_utils.R
\name{e_afcmcat_3D}
\alias{e_afcmcat_3D}
\title{AFCM plot of categories in 3D}
\usage{
e_afcmcat_3D(
modelo,
axes = c(1, 2, 3),
colorCat = "forestgreen",
cos2 = 0,
colorCos = "darkorchid",
titulos = c("Bien Repres... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_multi_cond.R
\name{getBack2BackBarplot}
\alias{getBack2BackBarplot}
\title{Get back-to-back barplot for 2 conditions comparison}
\usage{
getBack2BackBarplot(tab_c1, tab_c2, lab_c1, lab_c2)
}
\arguments{
\item{tab_c1}{barplot dataframe gen... | /man/getBack2BackBarplot.Rd | permissive | martaint/InterCellar | R | false | true | 611 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fct_multi_cond.R
\name{getBack2BackBarplot}
\alias{getBack2BackBarplot}
\title{Get back-to-back barplot for 2 conditions comparison}
\usage{
getBack2BackBarplot(tab_c1, tab_c2, lab_c1, lab_c2)
}
\arguments{
\item{tab_c1}{barplot dataframe gen... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615766128-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,802 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
## TODO
## - not converting codes to numbers
## - handle the case that not all codes appearing in a sequence
#' A utility function for merging same codes appearing together
#'
#' This function reads a vector of data and then merges same codes that appear together (i.e., without being interrupted by other codes)
#' @p... | /R/LagSeq_function.R | no_license | chatchavan/LagSeq | R | false | false | 8,175 | r | ## TODO
## - not converting codes to numbers
## - handle the case that not all codes appearing in a sequence
#' A utility function for merging same codes appearing together
#'
#' This function reads a vector of data and then merges same codes that appear together (i.e., without being interrupted by other codes)
#' @p... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/funs_brokenstick.r
\name{update.bsm}
\alias{update.bsm}
\title{Update and Re-fit a brokenstick model}
\usage{
\method{update}{bsm}(object, npts, allow.dup = FALSE, ...)
}
\arguments{
\item{object}{Object of class inheriting from "\cod... | /man/update.bsm.Rd | permissive | SWotherspoon/rbl | R | false | false | 952 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/funs_brokenstick.r
\name{update.bsm}
\alias{update.bsm}
\title{Update and Re-fit a brokenstick model}
\usage{
\method{update}{bsm}(object, npts, allow.dup = FALSE, ...)
}
\arguments{
\item{object}{Object of class inheriting from "\cod... |
v<-c('riza','malu','jimmy')
print(v)
print(class(v))
s<-1:9
print(s)
print(class(s))
print(typeof(s))
print(length(v))
print(v[2:3])
print(v[1])
print(sort(v))
v[1]="keerthi"
print(v)
r<-rep(c(5,7,4),times = 3)
print(r)
r<-rep(c(3,2,7),times=c(4,2,3))
print(r)
print(v[c(-3)])
a<-c('john','veena'... | /Assignment/R/Intrdoductrion.R | no_license | rizamol/Edubridge | R | false | false | 583 | r | v<-c('riza','malu','jimmy')
print(v)
print(class(v))
s<-1:9
print(s)
print(class(s))
print(typeof(s))
print(length(v))
print(v[2:3])
print(v[1])
print(sort(v))
v[1]="keerthi"
print(v)
r<-rep(c(5,7,4),times = 3)
print(r)
r<-rep(c(3,2,7),times=c(4,2,3))
print(r)
print(v[c(-3)])
a<-c('john','veena'... |
## Below is the start of the file.
##> # Title : Merged-Profile directory file of the Argo Global Data Assembly Center
##> # Description : The directory file describes all individual merge-profile files of the argo GDAC ftp site.
##> # Project : ARGO
##> # Format version : 2.1
##> # Date of update : 20200226143020
##> ... | /sandbox/dek/01_merged_files/01.R | no_license | chandra04/argoFloats | R | false | false | 891 | r | ## Below is the start of the file.
##> # Title : Merged-Profile directory file of the Argo Global Data Assembly Center
##> # Description : The directory file describes all individual merge-profile files of the argo GDAC ftp site.
##> # Project : ARGO
##> # Format version : 2.1
##> # Date of update : 20200226143020
##> ... |
xcoords <- c()
ycoords <- c()
xValues <- 1:4
yValues <- 1:5
for (x in xValues)
{
for (y in yValues)
{
xcoords <- c(xcoords, x);
ycoords <- c(ycoords, y);
}
}
dataValue <- c()
for (realisation in 1:100)
{
baseValue <- rnorm(1, 10, 1)
pointSigma <- rexp(1, 1)
coeffX <- rnorm(1, 1, 0.1)
coef... | /20111025 - Uncertainty/genmodel.R | no_license | codecurve/FieldML-mockups | R | false | false | 547 | r | xcoords <- c()
ycoords <- c()
xValues <- 1:4
yValues <- 1:5
for (x in xValues)
{
for (y in yValues)
{
xcoords <- c(xcoords, x);
ycoords <- c(ycoords, y);
}
}
dataValue <- c()
for (realisation in 1:100)
{
baseValue <- rnorm(1, 10, 1)
pointSigma <- rexp(1, 1)
coeffX <- rnorm(1, 1, 0.1)
coef... |
# Upper Confidence Bound
# Importing the dataset
dataset = read.csv('Ads_CTR_Optimisation.csv')
# Implementing UCB
N = 10000
d = 10
ads_selected = integer(0)
numbers_of_selections = integer(d)
sums_of_rewards = integer(d)
total_reward = 0
for (n in 1:N) {
ad = 0
max_upper_bound = 0
for (i in 1:d){
if(number... | /ML A-Z/Part 6 - Reinforcement Learning/Section 32 - Upper Confidence Bound (UCB)/upper_confidence_level_by_me.R | no_license | jwcunhagit/machinelearning | R | false | false | 1,052 | r | # Upper Confidence Bound
# Importing the dataset
dataset = read.csv('Ads_CTR_Optimisation.csv')
# Implementing UCB
N = 10000
d = 10
ads_selected = integer(0)
numbers_of_selections = integer(d)
sums_of_rewards = integer(d)
total_reward = 0
for (n in 1:N) {
ad = 0
max_upper_bound = 0
for (i in 1:d){
if(number... |
# Dissertation Chapter 3 codes
# Structure in R
# http://membres-timc.imag.fr/Olivier.Francois/tutoRstructure.pdf
#############################################################################
# Installing packages
install.packages(c("fields","RColorBrewer","mapplots"))
source("http://bioconductor.org/biocLite.R")
bio... | /Ch3Struc.R | no_license | brianalf-hub/Dissertation-Ch3-codes | R | false | false | 2,260 | r | # Dissertation Chapter 3 codes
# Structure in R
# http://membres-timc.imag.fr/Olivier.Francois/tutoRstructure.pdf
#############################################################################
# Installing packages
install.packages(c("fields","RColorBrewer","mapplots"))
source("http://bioconductor.org/biocLite.R")
bio... |
\name{rmsip}
\alias{rmsip}
\alias{rmsip.default}
\alias{rmsip.enma}
\title{ Root Mean Square Inner Product }
\description{
Calculate the RMSIP between two mode subspaces.
}
\usage{
rmsip(...)
\method{rmsip}{enma}(enma, ncore=NULL, subset=10, ...)
\method{rmsip}{default}(modes.a, modes.b, subset=10,
... | /ver_devel/bio3d/man/rmsip.Rd | no_license | Grantlab/bio3d | R | false | false | 2,550 | rd | \name{rmsip}
\alias{rmsip}
\alias{rmsip.default}
\alias{rmsip.enma}
\title{ Root Mean Square Inner Product }
\description{
Calculate the RMSIP between two mode subspaces.
}
\usage{
rmsip(...)
\method{rmsip}{enma}(enma, ncore=NULL, subset=10, ...)
\method{rmsip}{default}(modes.a, modes.b, subset=10,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imagebuilder_operations.R
\name{imagebuilder_create_infrastructure_configuration}
\alias{imagebuilder_create_infrastructure_configuration}
\title{Creates a new infrastructure configuration}
\usage{
imagebuilder_create_infrastructure_configura... | /paws/man/imagebuilder_create_infrastructure_configuration.Rd | permissive | jcheng5/paws | R | false | true | 2,759 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/imagebuilder_operations.R
\name{imagebuilder_create_infrastructure_configuration}
\alias{imagebuilder_create_infrastructure_configuration}
\title{Creates a new infrastructure configuration}
\usage{
imagebuilder_create_infrastructure_configura... |
#!/usr/bin/env Rscript
setwd(here::here())
render <- function(x) {
cli::cat_line(x)
if (any(grepl("slides\\.Rmd$", x))) {
purrr::walk(x[grepl("slides\\.Rmd$", x)], rmarkdown::render)
rmarkdown::render_site()
} else rmarkdown::render_site()
}
rmarkdown::render_site()
servr::httw(handler = render, pattern... | /serve-site.R | no_license | larissawn/core-r-course | R | false | false | 364 | r | #!/usr/bin/env Rscript
setwd(here::here())
render <- function(x) {
cli::cat_line(x)
if (any(grepl("slides\\.Rmd$", x))) {
purrr::walk(x[grepl("slides\\.Rmd$", x)], rmarkdown::render)
rmarkdown::render_site()
} else rmarkdown::render_site()
}
rmarkdown::render_site()
servr::httw(handler = render, pattern... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FILTERING-get_mass_batch_query_id_results.R
\name{get_mass_batch_query_id_results}
\alias{get_mass_batch_query_id_results}
\title{Get results of a mass batch query from ChemSpider}
\usage{
get_mass_batch_query_id_results(query_id, status, api... | /man/get_mass_batch_query_id_results.Rd | permissive | RaoulWolf/chemspiderapi | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FILTERING-get_mass_batch_query_id_results.R
\name{get_mass_batch_query_id_results}
\alias{get_mass_batch_query_id_results}
\title{Get results of a mass batch query from ChemSpider}
\usage{
get_mass_batch_query_id_results(query_id, status, api... |
# require("sqldf")
# housefile <- "./household_power_consumption.txt"
#select only the dates on interest to load
# query <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'"
# dat <- read.csv2.sql(housefile,query)
# write the subset to a separate file to speed up later reads
smallfile <- "./house_pwr_... | /plot4.R | no_license | robertnm/ExData_Plotting1 | R | false | false | 1,471 | r | # require("sqldf")
# housefile <- "./household_power_consumption.txt"
#select only the dates on interest to load
# query <- "SELECT * from file WHERE Date = '1/2/2007' OR Date = '2/2/2007'"
# dat <- read.csv2.sql(housefile,query)
# write the subset to a separate file to speed up later reads
smallfile <- "./house_pwr_... |
setwd("E:/2019학회/따릉이3")
library(data.table)
library(lubridate)
train_y<-fread('train_y.csv')
test_y<-fread('test_y.csv')
Sys.setlocale("LC_TIME", "english") # for writing 'day' variable as English
# making 'day' variable for train data
df_train = data.frame(rent_date=train_y$rent_date, loc_nu... | /PSAT/2019/codes/[model]negative_binomial.R | no_license | jaeyoung-jane-choi/2018-2021_Extra_Curricular | R | false | false | 1,802 | r |
setwd("E:/2019학회/따릉이3")
library(data.table)
library(lubridate)
train_y<-fread('train_y.csv')
test_y<-fread('test_y.csv')
Sys.setlocale("LC_TIME", "english") # for writing 'day' variable as English
# making 'day' variable for train data
df_train = data.frame(rent_date=train_y$rent_date, loc_nu... |
#######################################################################################
### Purpose: Estimate Sex-ratio and crosswalks for GBD2019 decomp 4
#######################################################################################
library(data.table)
library(openxlsx)
library(msm)
source("FILEPATH.R")
so... | /gbd_2019/nonfatal_code/mental_unipolar_mdd/mr_brt_crosswalks/decomp_4_mdd_cleaned.R | no_license | Nermin-Ghith/ihme-modeling | R | false | false | 11,389 | r | #######################################################################################
### Purpose: Estimate Sex-ratio and crosswalks for GBD2019 decomp 4
#######################################################################################
library(data.table)
library(openxlsx)
library(msm)
source("FILEPATH.R")
so... |
dashboard = function(maf, color = NULL, rmOutlier = TRUE, titv.color = NULL, sfs = statFontSize, fontSize = fs, n = 10, donut = pie, rawcount = TRUE){
#--------------------------- Color code for VC -----------------
if(is.null(color)){
#hard coded color scheme if user doesnt provide any
col = c(RColorBre... | /R/dashboard.R | permissive | lybird300/maftools | R | false | false | 10,947 | r | dashboard = function(maf, color = NULL, rmOutlier = TRUE, titv.color = NULL, sfs = statFontSize, fontSize = fs, n = 10, donut = pie, rawcount = TRUE){
#--------------------------- Color code for VC -----------------
if(is.null(color)){
#hard coded color scheme if user doesnt provide any
col = c(RColorBre... |
# install.packages('keras')
# install.packages('purrr')
# install.packages('functional')
library(MASS)
library(caret)
library(fGarch)
library(fitdistrplus)
library(pracma)
library(BBmisc)
library(functional)
library(dplyr)
library(keras)
library(lubridate)
library(tensorflow)
Sys.sleep(5)
install_tensorflow(restart_se... | /concept_drift_code/gradual_re10k_500.R | no_license | paai-lab/Online-Anomaly-Detection-Extension-2021 | R | false | false | 14,688 | r | # install.packages('keras')
# install.packages('purrr')
# install.packages('functional')
library(MASS)
library(caret)
library(fGarch)
library(fitdistrplus)
library(pracma)
library(BBmisc)
library(functional)
library(dplyr)
library(keras)
library(lubridate)
library(tensorflow)
Sys.sleep(5)
install_tensorflow(restart_se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_list_document_classification_jobs}
\alias{comprehend_list_document_classification_jobs}
\title{Gets a list of the documentation classification jobs that you have
submitted}
\usage{
comprehend_list_docu... | /cran/paws.machine.learning/man/comprehend_list_document_classification_jobs.Rd | permissive | TWarczak/paws | R | false | true | 2,159 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_list_document_classification_jobs}
\alias{comprehend_list_document_classification_jobs}
\title{Gets a list of the documentation classification jobs that you have
submitted}
\usage{
comprehend_list_docu... |
# This function installs and loads a package
loadLibrary <- function(package){
if (!require(basename(package), character.only=TRUE)) BiocManager::install(package, update=FALSE)
library(basename(package), character.only=TRUE)
}
packages <- c('BRGenomics',
'ggpubr',
'GenomicRanges... | /src/r/scripts/compute_pausing_index_in_broad_and_sharp_subsets_from_our_rnaseq.R | no_license | guillaumecharbonnier/mw-belhocine2021 | R | false | false | 7,358 | r | # This function installs and loads a package
loadLibrary <- function(package){
if (!require(basename(package), character.only=TRUE)) BiocManager::install(package, update=FALSE)
library(basename(package), character.only=TRUE)
}
packages <- c('BRGenomics',
'ggpubr',
'GenomicRanges... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /_check/test_code/use/r_codes/avgEVT_ind_ind_2015.R | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 2,518 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
library(e1071)
library(SparseM)
temp_file <- tempfile()
download.file(
"https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression/cpusmall",
temp_file
)
tmp <- e1071::read.matrix.csr(temp_file, fac = FALSE)
unlink(temp_file)
x <- as.matrix(tmp$x)
y <- tmp$y
cpusmall <- list(x = x, y = y)
usethis::us... | /data-raw/cpusmall.R | permissive | jolars/rdatasets | R | false | false | 356 | r | library(e1071)
library(SparseM)
temp_file <- tempfile()
download.file(
"https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/regression/cpusmall",
temp_file
)
tmp <- e1071::read.matrix.csr(temp_file, fac = FALSE)
unlink(temp_file)
x <- as.matrix(tmp$x)
y <- tmp$y
cpusmall <- list(x = x, y = y)
usethis::us... |
## ---- echo = FALSE, message = FALSE-----------------------------------------------------------------------------------------------------------------
# remove all objects
rm(list = ls())
# unload all non-based packages
out <- sapply(paste('package:', names(sessionInfo()$otherPkgs), sep = ""), function(x) try(detach(... | /vignettes/warbleR_workflow_01.R | no_license | Tubbz-alt/warbleR | R | false | false | 18,721 | r | ## ---- echo = FALSE, message = FALSE-----------------------------------------------------------------------------------------------------------------
# remove all objects
rm(list = ls())
# unload all non-based packages
out <- sapply(paste('package:', names(sessionInfo()$otherPkgs), sep = ""), function(x) try(detach(... |
## Load Packages
library(shiny)
library(shiny.semantic)
library(semantic.dashboard)
library(ggplot2)
library(plotly)
library(leaflet)
## Load Source Code
source("data_man_source.R")
## User-Interface
ui <- dashboardPage(
## Dashboard Header
dashboardHeader(title = "US Tra... | /Traffic_Shiny_application/traffic_accident_app/app.R | no_license | thomasjwise/traffic-accident-dashboard | R | false | false | 16,166 | r | ## Load Packages
library(shiny)
library(shiny.semantic)
library(semantic.dashboard)
library(ggplot2)
library(plotly)
library(leaflet)
## Load Source Code
source("data_man_source.R")
## User-Interface
ui <- dashboardPage(
## Dashboard Header
dashboardHeader(title = "US Tra... |
setwd("C:/Users/santibka/Documents/2019/coursera/datascience")
tabAll <- read.table("exdata_data_household_power_consumption/household_power_consumption.txt", colClasses = classes, sep= ";", stringsAsFactors = FALSE, header =TRUE, na.string = "?")
chartData <- subset(tabAll, Date == '1/2/2007' | tabAll$Date == '2/2/200... | /plot4.R | no_license | santibka/ExData_Plotting1 | R | false | false | 1,454 | r | setwd("C:/Users/santibka/Documents/2019/coursera/datascience")
tabAll <- read.table("exdata_data_household_power_consumption/household_power_consumption.txt", colClasses = classes, sep= ";", stringsAsFactors = FALSE, header =TRUE, na.string = "?")
chartData <- subset(tabAll, Date == '1/2/2007' | tabAll$Date == '2/2/200... |
## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix function creates a matrix and returns the inverse
## of the matrix with global defination.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <<- NULL
}
get <- function() x
#... | /cachematrix.R | no_license | Abhi-Garg/ProgrammingAssignment2 | R | false | false | 898 | r | ## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix function creates a matrix and returns the inverse
## of the matrix with global defination.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <<- NULL
}
get <- function() x
#... |
### load 3.Survial model and run until res.cox
library(dplyr)
DataV0<-read.csv('/Users/yu/Documents/Study/Project/Simulation/Work/20190124 Survival Model/Level 2/2.Validation.csv', header=T, stringsAsFactors = FALSE)
colnames(DataV0)<-c("UID", "PrePlace", "CurPlace", "Month", "DateNew", "TimeNew", "StayDuration", "HHSi... | /Model/Level 2/4.Individual Validation.R | no_license | ycui4/Daily-Activity-Location-Schedule-Model | R | false | false | 4,583 | r | ### load 3.Survial model and run until res.cox
library(dplyr)
DataV0<-read.csv('/Users/yu/Documents/Study/Project/Simulation/Work/20190124 Survival Model/Level 2/2.Validation.csv', header=T, stringsAsFactors = FALSE)
colnames(DataV0)<-c("UID", "PrePlace", "CurPlace", "Month", "DateNew", "TimeNew", "StayDuration", "HHSi... |
#'@title RspectroAbs converter to csv files
#'
#'@description Transforms Rdata files created by RspectroAbs package developed
#'by Simon Bélanger into csv files usable by this package
#'@param Rdatapath is the path to you Rdata folder created by run.process.ag.batch(). Default is "./data/Rdata/"
#'@param CDOMpath is t... | /R/RspectroAbsConvert.R | permissive | RichardLaBrie/paRafac_correction | R | false | false | 802 | r | #'@title RspectroAbs converter to csv files
#'
#'@description Transforms Rdata files created by RspectroAbs package developed
#'by Simon Bélanger into csv files usable by this package
#'@param Rdatapath is the path to you Rdata folder created by run.process.ag.batch(). Default is "./data/Rdata/"
#'@param CDOMpath is t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bed_to_granges.R
\name{bed_to_granges}
\alias{bed_to_granges}
\title{BED to GRanges}
\usage{
bed_to_granges(file, header = FALSE)
}
\arguments{
\item{file}{Location of your file}
\item{header}{Logical for whether file has a header (default =... | /man/bed_to_granges.Rd | no_license | lzlgboy/bedr | R | false | true | 702 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bed_to_granges.R
\name{bed_to_granges}
\alias{bed_to_granges}
\title{BED to GRanges}
\usage{
bed_to_granges(file, header = FALSE)
}
\arguments{
\item{file}{Location of your file}
\item{header}{Logical for whether file has a header (default =... |
# -----------------------------------------------------------------------
# Extraction d'attributs de pixels pour la classification,
# Module RdF, reconnaissance de formes
# Copyleft (C) 2014, Universite Lille 1
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... | /rdf-semaine-3-segmentation/rdfTesteVariation.R | permissive | Barchid/RDF | R | false | false | 2,569 | r | # -----------------------------------------------------------------------
# Extraction d'attributs de pixels pour la classification,
# Module RdF, reconnaissance de formes
# Copyleft (C) 2014, Universite Lille 1
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... |
# Data Sciennce Course 4
# Week 1 Project
# August 2018
# Plot 4
#
setwd("C:/Training/Data Science/Course 4 Exploratory Data Analysis/Week 1/Project")
Fulldata <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE, header = TRUE, sep =";" )
dim(Fulldata)
#
# subset of the data from 1/2/2007 to 2/... | /Plot4.R | no_license | wlsoftlogic/ExData_Plotting1 | R | false | false | 2,408 | r | # Data Sciennce Course 4
# Week 1 Project
# August 2018
# Plot 4
#
setwd("C:/Training/Data Science/Course 4 Exploratory Data Analysis/Week 1/Project")
Fulldata <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE, header = TRUE, sep =";" )
dim(Fulldata)
#
# subset of the data from 1/2/2007 to 2/... |
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param xy PARAM_DESCRIPTION
#' @param ss PARAM_DESCRIPTION
#' @param target_ss PARAM_DESCRIPTION
#' @param min_in_bin PARAM_DESCRIPTION, Default: 5
#' @param rand PARAM_DESCRIPTION, Default: T
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples... | /mbg/mbg_core_code/mbg_central/LBDCore/R/quadtree_ct.R | no_license | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | R | false | false | 1,655 | r | #' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param xy PARAM_DESCRIPTION
#' @param ss PARAM_DESCRIPTION
#' @param target_ss PARAM_DESCRIPTION
#' @param min_in_bin PARAM_DESCRIPTION, Default: 5
#' @param rand PARAM_DESCRIPTION, Default: T
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples... |
library(ecoval)
### Name: msk.fish.2004.create
### Title: Creates a Value Function for River Fish
### Aliases: msk.fish.2004.create
### ** Examples
fish <- msk.fish.2004.create()
plot(fish)
fish.german <- msk.fish.2004.create("Deutsch")
plot(fish.german)
| /data/genthat_extracted_code/ecoval/examples/msk.fish.2004.create.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 262 | r | library(ecoval)
### Name: msk.fish.2004.create
### Title: Creates a Value Function for River Fish
### Aliases: msk.fish.2004.create
### ** Examples
fish <- msk.fish.2004.create()
plot(fish)
fish.german <- msk.fish.2004.create("Deutsch")
plot(fish.german)
|
rm(list=ls())
library(tidyverse)
library(curl)
library(readxl)
library(lubridate)
library(paletteer)
library(geofacet)
library(scales)
temp <- tempfile()
source <- ("https://api.coronavirus.data.gov.uk/v2/data?areaType=msoa&metric=newCasesBySpecimenDateRollingRate&format=csv")
temp <- curl_download(url=so... | /Heatmaps/COVIDMSOACaseRatexIMD.R | no_license | ma0511/COVID-20 | R | false | false | 13,368 | r | rm(list=ls())
library(tidyverse)
library(curl)
library(readxl)
library(lubridate)
library(paletteer)
library(geofacet)
library(scales)
temp <- tempfile()
source <- ("https://api.coronavirus.data.gov.uk/v2/data?areaType=msoa&metric=newCasesBySpecimenDateRollingRate&format=csv")
temp <- curl_download(url=so... |
p <-read.table("prot.dat",header=T)
png("plot_two.png")
ymin <-min(p$A, p$B)
ymax <-max(p$A, p$B)
mA <-mean(p$A)
mB <-mean(p$B)
plot(p$A~p$T, type="l", ylim=c(ymin,ymax),main=title,ylab="RMS",xlab="Time")
lines(p$B~p$T, col=2)
x<-dev.off() | /plot_two.R | no_license | dtonthat2/chem160module14 | R | false | false | 247 | r | p <-read.table("prot.dat",header=T)
png("plot_two.png")
ymin <-min(p$A, p$B)
ymax <-max(p$A, p$B)
mA <-mean(p$A)
mB <-mean(p$B)
plot(p$A~p$T, type="l", ylim=c(ymin,ymax),main=title,ylab="RMS",xlab="Time")
lines(p$B~p$T, col=2)
x<-dev.off() |
\name{CnvGSAInput-class}
\Rdversion{1.1}
\docType{class}
\alias{CnvGSAInput-class}
\alias{CnvGSAInput}
\alias{config.ls}
\alias{config.ls,CnvGSAInput-method}
\alias{config.ls<-}
\alias{config.ls<-,CnvGSAInput-method}
\alias{params.ls}
\alias{params.ls,CnvGSAInput-method}
\alias{params.ls<-}
\alias{params.ls<-,CnvGSAIn... | /man/CnvGSAInput-class.Rd | no_license | JoeLugo-zz/cnvGSA | R | false | false | 3,516 | rd | \name{CnvGSAInput-class}
\Rdversion{1.1}
\docType{class}
\alias{CnvGSAInput-class}
\alias{CnvGSAInput}
\alias{config.ls}
\alias{config.ls,CnvGSAInput-method}
\alias{config.ls<-}
\alias{config.ls<-,CnvGSAInput-method}
\alias{params.ls}
\alias{params.ls,CnvGSAInput-method}
\alias{params.ls<-}
\alias{params.ls<-,CnvGSAIn... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.3158430739269e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615781442-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 328 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.3158430739269e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str... |
# Corporate Colors
# https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2?utm_content=buffer68f3b&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
# define colors
nivi_colors <- c(
`blue` = "#005BE7",
`purple` = "#812990",
`orange` = "#F37021",
`rose` ... | /colors.R | permissive | ericpgreen/asknivi-text-mining-2019 | R | false | false | 3,063 | r | # Corporate Colors
# https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2?utm_content=buffer68f3b&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
# define colors
nivi_colors <- c(
`blue` = "#005BE7",
`purple` = "#812990",
`orange` = "#F37021",
`rose` ... |
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
# 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 hav... | /plot 3.R | no_license | agtriplett/ExData_Plotting2 | R | false | false | 937 | r | NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
# 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 hav... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{dmbc_mcmc}
\alias{dmbc_mcmc}
\alias{dmbc-internal}
\alias{dmbc_internal}
\alias{dmbc_relabel}
\alias{dmbc_pack_par}
\title{Internal functions for MCMC simulation.}
\usage{
dmbc_mcmc(
raiD,
raix,
raing,
radalpha,
... | /fuzzedpackages/dmbc/man/dmbc_mcmc.Rd | no_license | akhikolla/testpackages | R | false | true | 2,276 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{dmbc_mcmc}
\alias{dmbc_mcmc}
\alias{dmbc-internal}
\alias{dmbc_internal}
\alias{dmbc_relabel}
\alias{dmbc_pack_par}
\title{Internal functions for MCMC simulation.}
\usage{
dmbc_mcmc(
raiD,
raix,
raing,
radalpha,
... |
############################
# author: Roman Shopa
# Roman.Shopa[at]ncbj.gov.pl
############################
# functions for attenuation correction taken from an article in a 'strange' journal:
# Ruru Li et al. Journal of Information & Computational Science 7:14 (2010) 3125
SetEnvForAttenuation <- function(Att.file){
... | /source/SetEnvForAttenuation.R | permissive | rshopa/event-based-tof-fbp | R | false | false | 8,265 | r | ############################
# author: Roman Shopa
# Roman.Shopa[at]ncbj.gov.pl
############################
# functions for attenuation correction taken from an article in a 'strange' journal:
# Ruru Li et al. Journal of Information & Computational Science 7:14 (2010) 3125
SetEnvForAttenuation <- function(Att.file){
... |
################################################################
# name:Pooled Dataset
setwd("~/projects/spatiotemporal-regression-models/NMMAPS-example")
flist <- dir("data", full.names=T)
flist <- flist[which(basename(flist) %in%
c("Baton Rouge.csv",
"Los Angele... | /NMMAPS-example/case-study-1-load.r | no_license | ivanhanigan/spatiotemporal-multilevel-models | R | false | false | 12,521 | r |
################################################################
# name:Pooled Dataset
setwd("~/projects/spatiotemporal-regression-models/NMMAPS-example")
flist <- dir("data", full.names=T)
flist <- flist[which(basename(flist) %in%
c("Baton Rouge.csv",
"Los Angele... |
# Assignment 1
# plot4.R
# Set the working directory
#setwd(paste(getwd(), "/assignment-1", sep = ""))
# Read the Power consumption data
power_consumption <- read.csv("./data/household_power_consumption.txt",
sep = ";", na.strings= "?")
# Convert Date variable into R Date/Time Class (c... | /plot4.R | no_license | damar-wicaksono/ExData_Plotting1 | R | false | false | 2,693 | r | # Assignment 1
# plot4.R
# Set the working directory
#setwd(paste(getwd(), "/assignment-1", sep = ""))
# Read the Power consumption data
power_consumption <- read.csv("./data/household_power_consumption.txt",
sep = ";", na.strings= "?")
# Convert Date variable into R Date/Time Class (c... |
#' Given a metabolic model as a data frame, return a new data frame with fluxes
#'
#' @details
#' This function uses ROI, so to solve models, you will need a solver plugin for ROI. Probably the easiest one to install is ROI.plugin.glpk.
#' To install this in Linux, run \code{sudo apt-get install libglpk-dev} in a ter... | /R/convenience_wrappers.R | no_license | maxconway/fbar | R | false | false | 4,023 | r | #' Given a metabolic model as a data frame, return a new data frame with fluxes
#'
#' @details
#' This function uses ROI, so to solve models, you will need a solver plugin for ROI. Probably the easiest one to install is ROI.plugin.glpk.
#' To install this in Linux, run \code{sudo apt-get install libglpk-dev} in a ter... |
\name{BIC (using partial correlation) forward regression}
\alias{bic.corfsreg}
\title{
BIC (using partial correlation) forward regression
}
\description{
BIC (using partial correlation) forward regression.
}
\usage{
bic.corfsreg(y, x, tol = 2)
}
\arguments{
\item{y}{
A numerical vector.
}
\item{x}... | /fuzzedpackages/Rfast/man/bic.corfsreg.Rd | no_license | akhikolla/testpackages | R | false | false | 2,276 | rd | \name{BIC (using partial correlation) forward regression}
\alias{bic.corfsreg}
\title{
BIC (using partial correlation) forward regression
}
\description{
BIC (using partial correlation) forward regression.
}
\usage{
bic.corfsreg(y, x, tol = 2)
}
\arguments{
\item{y}{
A numerical vector.
}
\item{x}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated.R
\name{append_table2}
\alias{append_table2}
\title{Append to am Existing Table}
\usage{
append_table2(conn = conn, schema, tableName, .data, ...)
}
\arguments{
\item{schema}{schema where \code{tableName} is located.}
\item{tableN... | /man/append_table2.Rd | no_license | jimsforks/pg13 | R | false | true | 797 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprecated.R
\name{append_table2}
\alias{append_table2}
\title{Append to am Existing Table}
\usage{
append_table2(conn = conn, schema, tableName, .data, ...)
}
\arguments{
\item{schema}{schema where \code{tableName} is located.}
\item{tableN... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_result.R
\name{test_result}
\alias{test_result}
\title{Test the "Result" class}
\usage{
test_result(skip = NULL, ctx = get_default_context())
}
\arguments{
\item{skip}{\code{[character()]}\cr A vector of regular expressions to match
agai... | /man/test_result.Rd | no_license | tkilias/DBItest | R | false | true | 7,503 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_result.R
\name{test_result}
\alias{test_result}
\title{Test the "Result" class}
\usage{
test_result(skip = NULL, ctx = get_default_context())
}
\arguments{
\item{skip}{\code{[character()]}\cr A vector of regular expressions to match
agai... |
medal_data <- read.csv("medal_pop_gdp_data_statlearn.csv",header=TRUE)
predict_2008 = glm(Medal2008 ~ GDP+Population, data= medal_data)
summary(predict_2008)
predict_2012 = glm(Medal2012 ~ GDP+Population, data= medal_data)
summary(predict_2012)
#CHECK CONSISTENCY
#2008 Data
summary_table_2008 = summary(p... | /Generalized Linear Model R/Statistical Learning 1.R | no_license | nico2997/Jupyter_notebook_data_analyst | R | false | false | 7,162 | r | medal_data <- read.csv("medal_pop_gdp_data_statlearn.csv",header=TRUE)
predict_2008 = glm(Medal2008 ~ GDP+Population, data= medal_data)
summary(predict_2008)
predict_2012 = glm(Medal2012 ~ GDP+Population, data= medal_data)
summary(predict_2012)
#CHECK CONSISTENCY
#2008 Data
summary_table_2008 = summary(p... |
# ---- Access ABS ----
# ---- Connect to ABS Census and table dynamically
getProviders()
abs_flows_all <- getFlows("ABS")
abs_flow <- getFlows("ABS", '*Census*')
flow_names <- names(abs_flow)
map(flow_names,getTimeSeries,"ABS")
# Census 2016, Total Personal Income (weekly) by Age by Sex (LGA)
tsList = getTimeSeri... | /0. extract_abs_api.R | no_license | live-act/govhack2017 | R | false | false | 791 | r | # ---- Access ABS ----
# ---- Connect to ABS Census and table dynamically
getProviders()
abs_flows_all <- getFlows("ABS")
abs_flow <- getFlows("ABS", '*Census*')
flow_names <- names(abs_flow)
map(flow_names,getTimeSeries,"ABS")
# Census 2016, Total Personal Income (weekly) by Age by Sex (LGA)
tsList = getTimeSeri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spf.r
\name{has_spf}
\alias{has_spf}
\title{Test for whether a DNS TXT record is an SPF record}
\usage{
has_spf(spf_rec)
}
\arguments{
\item{spf_rec}{a character vector of DNS TXT records}
}
\description{
Test for whether a DNS TXT record is ... | /man/has_spf.Rd | no_license | SecOpsGit/gdns | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spf.r
\name{has_spf}
\alias{has_spf}
\title{Test for whether a DNS TXT record is an SPF record}
\usage{
has_spf(spf_rec)
}
\arguments{
\item{spf_rec}{a character vector of DNS TXT records}
}
\description{
Test for whether a DNS TXT record is ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/replace_at.R
\name{replace_at}
\alias{replace_at}
\alias{ref_replace_at}
\alias{replace_at.Container}
\alias{ref_replace_at.Container}
\alias{replace_at.dict.table}
\alias{ref_replace_at.dict.table}
\title{Replace Values at Indices S... | /man/replace_at.Rd | no_license | cran/container | R | false | true | 2,279 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/replace_at.R
\name{replace_at}
\alias{replace_at}
\alias{ref_replace_at}
\alias{replace_at.Container}
\alias{ref_replace_at.Container}
\alias{replace_at.dict.table}
\alias{ref_replace_at.dict.table}
\title{Replace Values at Indices S... |
\name{expand.bugs.data}
\alias{expand.bugs.data}
\title{convert data to BUGS input format}
\description{
expands mixed stock data to BUGS input format (indicator variables)
}
\usage{
expand.bugs.data(mixsamp)
}
\arguments{
\item{mixsamp}{mixed-sample or mixed stock data matrix (numbers from
each source populati... | /man/expand.bugs.data.Rd | no_license | bbolker/mixstock | R | false | false | 556 | rd | \name{expand.bugs.data}
\alias{expand.bugs.data}
\title{convert data to BUGS input format}
\description{
expands mixed stock data to BUGS input format (indicator variables)
}
\usage{
expand.bugs.data(mixsamp)
}
\arguments{
\item{mixsamp}{mixed-sample or mixed stock data matrix (numbers from
each source populati... |
library(tidyverse)
library(knitr)
library(corrplot)
library(viridis)
library(ggplot2)
library(scico)
library(MASS)
library(sfsmisc)
setwd("~/GitHub/GradientDispersion/")
# load some data for linear models (includes dispersion and within connectivity for each Yeo network
# + clustering and pathlength)
df.corr <- read... | /PostProcessing/camcan_lms.R | no_license | rb643/GradientDispersion | R | false | false | 3,787 | r | library(tidyverse)
library(knitr)
library(corrplot)
library(viridis)
library(ggplot2)
library(scico)
library(MASS)
library(sfsmisc)
setwd("~/GitHub/GradientDispersion/")
# load some data for linear models (includes dispersion and within connectivity for each Yeo network
# + clustering and pathlength)
df.corr <- read... |
/week4_assigment.R | no_license | MGundiK/Analytics-Edge | R | false | false | 11,664 | r | ||
#
# ATR-2004.R, 2 Oct 20
#
# Data from:
# Software Cost and Productivity Model
# Jonathan E. Gayek and Lutrell G. Long and Kim D. Bell and Rosemary M. Hsu and Ronald K. Larson
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG effort_cost project_cost... | /economics/ATR-2004.R | no_license | Derek-Jones/ESEUR-code-data | R | false | false | 2,147 | r | #
# ATR-2004.R, 2 Oct 20
#
# Data from:
# Software Cost and Productivity Model
# Jonathan E. Gayek and Lutrell G. Long and Kim D. Bell and Rosemary M. Hsu and Ronald K. Larson
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG effort_cost project_cost... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_functions (conflicted copy 2021-04-14
% 155304).R, R/simple_functions.R
\name{course_copy}
\alias{course_copy}
\title{course_copy}
\usage{
course_copy(course_id, source_course_id)
course_copy(course_id, source_course_id)
}
\argument... | /man/course_copy.Rd | no_license | ICTO-FMG/uvacanvas | R | false | true | 620 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_functions (conflicted copy 2021-04-14
% 155304).R, R/simple_functions.R
\name{course_copy}
\alias{course_copy}
\title{course_copy}
\usage{
course_copy(course_id, source_course_id)
course_copy(course_id, source_course_id)
}
\argument... |
library(tidyverse)
I <- .75 # Income
p1 <- 2 # Price of good 1
p2 <- 1 # Price of good 2 (numeraire)
B <- function(x1) I - x1 * p1 # Budget constraint
D <- seq(0, 1, length.out = 200) # Domain
U <- expand.grid(x1 = D, x2 = D) # Consumption bundles
utility <- function(x1, x2) x1^0.3 + x2^0.7 # Cobb-Douglas utility... | /drafts/consumption_theory.R | no_license | expersso/blog | R | false | false | 1,344 | r | library(tidyverse)
I <- .75 # Income
p1 <- 2 # Price of good 1
p2 <- 1 # Price of good 2 (numeraire)
B <- function(x1) I - x1 * p1 # Budget constraint
D <- seq(0, 1, length.out = 200) # Domain
U <- expand.grid(x1 = D, x2 = D) # Consumption bundles
utility <- function(x1, x2) x1^0.3 + x2^0.7 # Cobb-Douglas utility... |
##Import World Map
map.world <- map_data("world")
library(dplyr)
##Make country names consistent with the world map data
cost.of.living.scatter.plots$Country <-recode(cost.of.living.scatter.plots$Country, 'Bosnia.And.Herzegovina' = 'Bosnia and Herzegovina','New.Zealand' = 'New Zealand', 'United.States' = 'USA... | /Maps.R | no_license | Chugh-Kanika/Cost-of-Living-analysis | R | false | false | 3,238 | r | ##Import World Map
map.world <- map_data("world")
library(dplyr)
##Make country names consistent with the world map data
cost.of.living.scatter.plots$Country <-recode(cost.of.living.scatter.plots$Country, 'Bosnia.And.Herzegovina' = 'Bosnia and Herzegovina','New.Zealand' = 'New Zealand', 'United.States' = 'USA... |
#' Finding Self-harm and suicide attempts
#'
#' @param data the hospital dataset in which to add the new variables
#' @param diag_ecode_col The column indeces for the icd 9 and icd 10 cm
#' @param var_name The name for the new variable
#' @param date The name of the date of discharge field
#'
#' @return The orig... | /R/add_self_harm_9_10cm.R | no_license | injuryepi/injuryepi | R | false | false | 1,300 | r | #' Finding Self-harm and suicide attempts
#'
#' @param data the hospital dataset in which to add the new variables
#' @param diag_ecode_col The column indeces for the icd 9 and icd 10 cm
#' @param var_name The name for the new variable
#' @param date The name of the date of discharge field
#'
#' @return The orig... |
#' Describe the relogit Zelig Model
#' @param ... ignored parameters
#' @return a list specifying author, title, etc. information
#' @export
describe.relogit <- function(...) {
list(
authors = "",
text = ""
)
}
| /R/describe.relogit.R | no_license | zeligdev/ZeligCommon | R | false | false | 234 | r | #' Describe the relogit Zelig Model
#' @param ... ignored parameters
#' @return a list specifying author, title, etc. information
#' @export
describe.relogit <- function(...) {
list(
authors = "",
text = ""
)
}
|
#read in the data
spx <- read.csv("sp_500_yearend.csv")
## calculate the yearly returns
library(dplyr)
spx <- mutate(
spx,
Return = c(NA, diff(Close))/lag(Close))
#write the output
write.csv(spx, "sp_500_returns.csv")
| /calculat_returns.R | no_license | KathleenWee/TestRepo | R | false | false | 228 | r | #read in the data
spx <- read.csv("sp_500_yearend.csv")
## calculate the yearly returns
library(dplyr)
spx <- mutate(
spx,
Return = c(NA, diff(Close))/lag(Close))
#write the output
write.csv(spx, "sp_500_returns.csv")
|
context("Creating aesthetic mappings")
test_that("function aes", {
expect_equal(aes(x = mpg, y = wt),
structure(list(x = bquote(mpg), y = bquote(wt)), class = "uneval"))
expect_equal(aes(x = mpg ^ 2, y = wt / cyl),
structure(list(x = bquote(mpg ^ 2), y = bquote(wt / cyl)), class = "u... | /inst/tests/test-aes.r | no_license | veraanadi/ggplot2 | R | false | false | 3,590 | r | context("Creating aesthetic mappings")
test_that("function aes", {
expect_equal(aes(x = mpg, y = wt),
structure(list(x = bquote(mpg), y = bquote(wt)), class = "uneval"))
expect_equal(aes(x = mpg ^ 2, y = wt / cyl),
structure(list(x = bquote(mpg ^ 2), y = bquote(wt / cyl)), class = "u... |
prepanel.mapplot <- function(x, y, map, ...) {
list(xlim = range(map$x, finite = TRUE),
ylim = range(map$y, finite = TRUE))
}
panel.mapplot <-
function(x, y, map, breaks, colramp,
exact = FALSE, lwd = 0.5, ...)
{
names(x) <- tolower(as.character(y))
mapnames <- tolower(map$names)... | /latticeExtra/R/mapplot.R | no_license | ingted/R-Examples | R | false | false | 3,095 | r |
prepanel.mapplot <- function(x, y, map, ...) {
list(xlim = range(map$x, finite = TRUE),
ylim = range(map$y, finite = TRUE))
}
panel.mapplot <-
function(x, y, map, breaks, colramp,
exact = FALSE, lwd = 0.5, ...)
{
names(x) <- tolower(as.character(y))
mapnames <- tolower(map$names)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.organizations_operations.R
\name{list_roots}
\alias{list_roots}
\title{Lists the roots that are defined in the current organization}
\usage{
list_roots(NextToken = NULL, MaxResults = NULL)
}
\arguments{
\item{NextToken}{Use this paramete... | /service/paws.organizations/man/list_roots.Rd | permissive | CR-Mercado/paws | R | false | true | 2,376 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.organizations_operations.R
\name{list_roots}
\alias{list_roots}
\title{Lists the roots that are defined in the current organization}
\usage{
list_roots(NextToken = NULL, MaxResults = NULL)
}
\arguments{
\item{NextToken}{Use this paramete... |
"time" "S" "K" "Psi_s" "D" "Psi_l" "G" "ABA" "X" "P" "R" "B" "M"
" 1.000" " 1.0000000" "10.0000000" "-4" "1" " -5.967000" "0.05" "0.07920792" "-0.005000000" "0.15" "0.0000000000" "0" "0"
" 2.000" " 1.1499260" " 9.9973331" "-4" "1" " -5.967001" "0.05" "0.07920792" "-0.005001334" "0.15" "0.0001533341" "0" "0"
" ... | /Outputs/starttest2_20110723_151011.R | no_license | Sandy4321/Tree-Death-Physiological-Models | R | false | false | 214,904 | r |
"time" "S" "K" "Psi_s" "D" "Psi_l" "G" "ABA" "X" "P" "R" "B" "M"
" 1.000" " 1.0000000" "10.0000000" "-4" "1" " -5.967000" "0.05" "0.07920792" "-0.005000000" "0.15" "0.0000000000" "0" "0"
" 2.000" " 1.1499260" " 9.9973331" "-4" "1" " -5.967001" "0.05" "0.07920792" "-0.005001334" "0.15" "0.0001533341" "0" "0"
" ... |
df <- read.table('C:/Users/Timon/Documents/School 2019-2020/Coding/Exploratory data analysis/Week1/household_power_consumption.txt', header = TRUE, sep = ';')
head(df)
library(dplyr)
library(tidyr)
#prepare data
Data <- mutate(df,Date.Time=paste(df$Date,df$Time)) %>%
select(-c('Date', 'Time'))
Data$Date... | /Plot1.R | no_license | biranqu/Exploratorydataanalysis-week1 | R | false | false | 1,343 | r | df <- read.table('C:/Users/Timon/Documents/School 2019-2020/Coding/Exploratory data analysis/Week1/household_power_consumption.txt', header = TRUE, sep = ';')
head(df)
library(dplyr)
library(tidyr)
#prepare data
Data <- mutate(df,Date.Time=paste(df$Date,df$Time)) %>%
select(-c('Date', 'Time'))
Data$Date... |
# # Dates, or POSIXct Time Stamp, specified as end of period
# # The reason why we specify enf of periods is that only that way we can extract
# # the number of forecasted high frequency period from the data. It is assumed
# # that hf and lf series start at the same point in time
# lf <- seq.Date(as.Date("2014-02-0... | /R/td.sub.R | no_license | jeanbastin/tempdisagg | R | false | false | 10,554 | r |
# # Dates, or POSIXct Time Stamp, specified as end of period
# # The reason why we specify enf of periods is that only that way we can extract
# # the number of forecasted high frequency period from the data. It is assumed
# # that hf and lf series start at the same point in time
# lf <- seq.Date(as.Date("2014-02-0... |
#' @title
#' Exclude extreme values from a vector
#' @description
#' Excludes high and low outliers from a vector.
#' Criterion for exclusion is either a fixed upper/lower value,
#' or a multiple of the standard deviation.
#' @param vector The vector containing the data that is to be pruned.
#' @param upper.abs An abso... | /R/exclude.R | no_license | thhsubscr/rttl | R | false | false | 2,572 | r | #' @title
#' Exclude extreme values from a vector
#' @description
#' Excludes high and low outliers from a vector.
#' Criterion for exclusion is either a fixed upper/lower value,
#' or a multiple of the standard deviation.
#' @param vector The vector containing the data that is to be pruned.
#' @param upper.abs An abso... |
#' Measure the duration of sound files
#'
#' \code{wavdur} measures the duration of sound files in '.wav' format
#' @usage wavdur(files = NULL, path = NULL)
#' @param files Character vector with the names of the sound files to be measured. The sound files should be in the working directory or in the directory provided... | /R/wavdur.R | no_license | fburkitt/warbleR | R | false | false | 1,966 | r | #' Measure the duration of sound files
#'
#' \code{wavdur} measures the duration of sound files in '.wav' format
#' @usage wavdur(files = NULL, path = NULL)
#' @param files Character vector with the names of the sound files to be measured. The sound files should be in the working directory or in the directory provided... |
\name{smooth}
\alias{smoothLowess}
\alias{smoothSpline}
\alias{smoothSupsmu}
\title{Smooths time series objects}
\description{
Smooths a \code{"timeSeries"} object.
}
\usage{
smoothLowess(x, f = 0.5, \dot... | /man/statistics-smoothLowess.Rd | no_license | cran/timeSeries | R | false | false | 2,459 | rd | \name{smooth}
\alias{smoothLowess}
\alias{smoothSpline}
\alias{smoothSupsmu}
\title{Smooths time series objects}
\description{
Smooths a \code{"timeSeries"} object.
}
\usage{
smoothLowess(x, f = 0.5, \dot... |
## File Name: rasch_jml_emp_discrim.R
## File Version: 0.08
# Function for calculating empirical discrimination
# slope estimation (WINSTEPS manual p. 300)
rasch_jml_emp_discrim <- function( theta, b, dat, dat.resp=1-is.na(dat.resp), freq )
{
N <- length(theta)
I <- length(b)
pni <- .prob.rasch( theta=th... | /R/rasch_jml_emp_discrim.R | no_license | alexanderrobitzsch/sirt | R | false | false | 656 | r | ## File Name: rasch_jml_emp_discrim.R
## File Version: 0.08
# Function for calculating empirical discrimination
# slope estimation (WINSTEPS manual p. 300)
rasch_jml_emp_discrim <- function( theta, b, dat, dat.resp=1-is.na(dat.resp), freq )
{
N <- length(theta)
I <- length(b)
pni <- .prob.rasch( theta=th... |
##STEP 0 - Preparation
setwd("C:/Users/HS185031/Documents/Coursera/Getting_And_Cleaning_Data/Week4/Project")
getwd()
#0.1 create data folder
if(!file.exists("./data")){dir.create("./data")}
setwd("C:/Users/HS185031/Documents/Coursera/Getting_And_Cleaning_Data/Week4/Project/data")
#0.2 download and un... | /run_analysis.R | no_license | XJTE/Getting-and-Cleaning-Data-Project | R | false | false | 4,292 | r | ##STEP 0 - Preparation
setwd("C:/Users/HS185031/Documents/Coursera/Getting_And_Cleaning_Data/Week4/Project")
getwd()
#0.1 create data folder
if(!file.exists("./data")){dir.create("./data")}
setwd("C:/Users/HS185031/Documents/Coursera/Getting_And_Cleaning_Data/Week4/Project/data")
#0.2 download and un... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_timeseries.R
\name{get_timeseries_tsid}
\alias{get_timeseries_tsid}
\title{Download timeseries data from waterinfo.be}
\usage{
get_timeseries_tsid(ts_id, period = NULL, from = NULL, to = NULL,
datasource = 1, token = NULL)
}
\arguments{... | /man/get_timeseries_tsid.Rd | permissive | pjhaest/wateRinfo | R | false | true | 1,683 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_timeseries.R
\name{get_timeseries_tsid}
\alias{get_timeseries_tsid}
\title{Download timeseries data from waterinfo.be}
\usage{
get_timeseries_tsid(ts_id, period = NULL, from = NULL, to = NULL,
datasource = 1, token = NULL)
}
\arguments{... |
## This is the functionarium. The functions live here.
ApproxBayesFac <- function(x) {
x <- x[!is.na(x)]
max.probs <- max(x)
new.probs <- x - max.probs
trans.probs <- exp(new.probs)
BayesProb <- trans.probs/sum(trans.probs)
return(BayesProb)
}
#Calculates a proportion of two things (percentage)
CalcProp <- fun... | /scripts/Functionarium.R | no_license | willpitchers/creepy-barnacle | R | false | false | 2,316 | r | ## This is the functionarium. The functions live here.
ApproxBayesFac <- function(x) {
x <- x[!is.na(x)]
max.probs <- max(x)
new.probs <- x - max.probs
trans.probs <- exp(new.probs)
BayesProb <- trans.probs/sum(trans.probs)
return(BayesProb)
}
#Calculates a proportion of two things (percentage)
CalcProp <- fun... |
context("HMMs with multivariate responses")
## Simulate data from a Markov model
nsubj <- 30; nobspt <- 5
sim.df <- data.frame(subject = rep(1:nsubj, each=nobspt),
time = seq(0, 20, length=nobspt))
set.seed(1)
two.q <- rbind(c(-0.1, 0.1), c(0, 0))
dat <- simmulti.msm(sim.df[,1:2], qmatrix=two.q, ... | /msm/tests/testthat/test_models_hmmmulti.r | no_license | ingted/R-Examples | R | false | false | 4,001 | r | context("HMMs with multivariate responses")
## Simulate data from a Markov model
nsubj <- 30; nobspt <- 5
sim.df <- data.frame(subject = rep(1:nsubj, each=nobspt),
time = seq(0, 20, length=nobspt))
set.seed(1)
two.q <- rbind(c(-0.1, 0.1), c(0, 0))
dat <- simmulti.msm(sim.df[,1:2], qmatrix=two.q, ... |
library(testthat)
library(heaven)
library(data.table)
context("medicin macro")
test_that("process/innerprocess runs",{
# Create some data
n <- 5
set.seed(9)
drugdata <- simPrescriptionData(n, startDate = "2006-01-01")
admdata <- simAdmissionData(n, startDate="2006-01-01")
# Setup the dpp objec... | /sandbox/old.dpp/test-process-innerprocess.R | no_license | tagteam/heaven | R | false | false | 1,139 | r | library(testthat)
library(heaven)
library(data.table)
context("medicin macro")
test_that("process/innerprocess runs",{
# Create some data
n <- 5
set.seed(9)
drugdata <- simPrescriptionData(n, startDate = "2006-01-01")
admdata <- simAdmissionData(n, startDate="2006-01-01")
# Setup the dpp objec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covid19_models.R
\name{generate.SIR.model}
\alias{generate.SIR.model}
\title{function to generate a simple SIR (Susceptible-Infected-Recovered) model based on the actual data of the coivd19 cases}
\usage{
generate.SIR.model(
data = NULL,
... | /vignettes/man/generate.SIR.model.Rd | no_license | cran/covid19.analytics | R | false | true | 1,773 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covid19_models.R
\name{generate.SIR.model}
\alias{generate.SIR.model}
\title{function to generate a simple SIR (Susceptible-Infected-Recovered) model based on the actual data of the coivd19 cases}
\usage{
generate.SIR.model(
data = NULL,
... |
#Plot 3
# Load the Data
setwd("/Users/Ben/Desktop/Jessica Data Science/")
source('Cleaning the Data.R')
#Tell R how to save the plot
png("plot3.png",width=480,height=480)
#Create the actual plot
plot(powerdata$Date_Time, powerdata$Sub_metering_1, xlab= "",
ylab="Energy sub metering",type='l')
lines(powerdata$Da... | /plot3.R | no_license | jbohning/ExData_Plotting1 | R | false | false | 609 | r | #Plot 3
# Load the Data
setwd("/Users/Ben/Desktop/Jessica Data Science/")
source('Cleaning the Data.R')
#Tell R how to save the plot
png("plot3.png",width=480,height=480)
#Create the actual plot
plot(powerdata$Date_Time, powerdata$Sub_metering_1, xlab= "",
ylab="Energy sub metering",type='l')
lines(powerdata$Da... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS MediaTailor
#'
#' @description
#' Use the AWS Elemental MediaTailor SDK to configure scalable ad insertion
#' for your live and VOD content. With AWS Elemental MediaTailor, you can... | /cran/paws.media.services/R/mediatailor_service.R | permissive | paws-r/paws | R | false | false | 3,754 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' AWS MediaTailor
#'
#' @description
#' Use the AWS Elemental MediaTailor SDK to configure scalable ad insertion
#' for your live and VOD content. With AWS Elemental MediaTailor, you can... |
##' This function calculates element 63 (inflow unit value)
##'
##' @param element61Num The column corresponding to value of element
##' 61.
##' @param element62Num The column corresponding to value of element
##' 62.
##' @param element63Num The column corresponding to value of element
##' 63.
##' @param element63Symb ... | /faoswsAupus/R/calculateEle63.R | no_license | mkao006/sws_aupus | R | false | false | 1,779 | r | ##' This function calculates element 63 (inflow unit value)
##'
##' @param element61Num The column corresponding to value of element
##' 61.
##' @param element62Num The column corresponding to value of element
##' 62.
##' @param element63Num The column corresponding to value of element
##' 63.
##' @param element63Symb ... |
# Parse T2D_4085.txt
# From the website and the column headings I know which allele is the effect allele and th EAF
# More info http://diagram-consortium.org/downloads/Mahajan.et.al.2018b.European.GWAS.readme.pdf
# Load libraries
library(data.table)
library(dplyr)
# Check that script is running
print("working")
print... | /code/parse_gwas_atlas/T2D_4085.R | no_license | jgblanc/infer_mutational_bias | R | false | false | 1,484 | r | # Parse T2D_4085.txt
# From the website and the column headings I know which allele is the effect allele and th EAF
# More info http://diagram-consortium.org/downloads/Mahajan.et.al.2018b.European.GWAS.readme.pdf
# Load libraries
library(data.table)
library(dplyr)
# Check that script is running
print("working")
print... |
# Copyright (c) 2018-2022 ISciences, LLC.
# All rights reserved.
#
# This software is 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 requir... | /R/exact_extract_helpers.R | no_license | isciences/exactextractr | R | false | false | 13,538 | r | # Copyright (c) 2018-2022 ISciences, LLC.
# All rights reserved.
#
# This software is 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 requir... |
# getting the complete dataset
UCI_poll <- read.csv("household_power_consumption.txt", header = T, sep = ';', na.strings = "?", nrows = 2072529,check.names = F, stringsAsFactors = F)
#Specifying the date format
UCI_poll$Date <- as.Date(UCI_poll$Date, format="%d/%m/%Y")
#subset the complete data
UCI_poll_ss <- subset(UC... | /plot3.R | no_license | Sivanandan/ExData_Plotting1 | R | false | false | 1,015 | r | # getting the complete dataset
UCI_poll <- read.csv("household_power_consumption.txt", header = T, sep = ';', na.strings = "?", nrows = 2072529,check.names = F, stringsAsFactors = F)
#Specifying the date format
UCI_poll$Date <- as.Date(UCI_poll$Date, format="%d/%m/%Y")
#subset the complete data
UCI_poll_ss <- subset(UC... |
numPerPatch117300 <- c(2567,2433)
| /NatureEE-data-archive/Run203071/JAFSdata/JAFSnumPerPatch117300.R | no_license | flaxmans/NatureEE2017 | R | false | false | 34 | r | numPerPatch117300 <- c(2567,2433)
|
#Clear workspace
rm(list = ls())
#Plyr must be loaded after dplyr (different definition of count() function)
library(dplyr)
library(plyr)
library(stringr)
library(zoo)
library(devtools)
library(PheWAS)
#Assign names of data files to be read
casesToRead <- 'HLCases02.csv'
controlsToRead <- 'HLControls02.csv'
ICD9Code... | /main.R | no_license | GreatScissors/homelessnessPheWAS | R | false | false | 10,291 | r | #Clear workspace
rm(list = ls())
#Plyr must be loaded after dplyr (different definition of count() function)
library(dplyr)
library(plyr)
library(stringr)
library(zoo)
library(devtools)
library(PheWAS)
#Assign names of data files to be read
casesToRead <- 'HLCases02.csv'
controlsToRead <- 'HLControls02.csv'
ICD9Code... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_update_ops_item}
\alias{ssm_update_ops_item}
\title{Edit or change an OpsItem}
\usage{
ssm_update_ops_item(Description, OperationalData,
OperationalDataToDelete, Notifications, Priority, RelatedOpsItems,
Status,... | /cran/paws.management/man/ssm_update_ops_item.Rd | permissive | peoplecure/paws | R | false | true | 3,682 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssm_operations.R
\name{ssm_update_ops_item}
\alias{ssm_update_ops_item}
\title{Edit or change an OpsItem}
\usage{
ssm_update_ops_item(Description, OperationalData,
OperationalDataToDelete, Notifications, Priority, RelatedOpsItems,
Status,... |
library(binr)
library("parallel")
library("foreach")
library("doParallel")
# Data wrangling
library(dplyr)
workDir <- "perc_covered_fromBedGraph"
outDir <- file.path(workDir, "output")
# Read bed file (which contains the peak list)
bed <- read.delim(file.path(workDir, "data/example.bed"), header=F)
bed <- mutate(bed,... | /perc_covered_fromBedGraph/R/Binning_bed.R | no_license | m-zaki/misc_scripts | R | false | false | 2,125 | r | library(binr)
library("parallel")
library("foreach")
library("doParallel")
# Data wrangling
library(dplyr)
workDir <- "perc_covered_fromBedGraph"
outDir <- file.path(workDir, "output")
# Read bed file (which contains the peak list)
bed <- read.delim(file.path(workDir, "data/example.bed"), header=F)
bed <- mutate(bed,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dem_table.R
\name{dem_table}
\alias{dem_table}
\title{Make base demographics table}
\usage{
dem_table(dat, expr, make_pretty = FALSE)
}
\arguments{
\item{dat}{Data.frame containing classification and demographic variables.}
\item{expr}{Expre... | /man/dem_table.Rd | permissive | sean-cho/demtables | R | false | true | 833 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dem_table.R
\name{dem_table}
\alias{dem_table}
\title{Make base demographics table}
\usage{
dem_table(dat, expr, make_pretty = FALSE)
}
\arguments{
\item{dat}{Data.frame containing classification and demographic variables.}
\item{expr}{Expre... |
#fix variables in 2016 and add to the rbind
library(scales)
library(sqldf)
library(rstudioapi)
library(RODBC)
library(dplyr)
library(reshape2)
library(ggplot2)
library(data.table)
library(stringr)
#library(wesanderson)
#library(RColorBrewer)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
#read in fi... | /Unfiled/SR14Forecast/SubRegional/old scripts/MGRA data prep.R | no_license | SANDAG/QA | R | false | false | 6,475 | r | #fix variables in 2016 and add to the rbind
library(scales)
library(sqldf)
library(rstudioapi)
library(RODBC)
library(dplyr)
library(reshape2)
library(ggplot2)
library(data.table)
library(stringr)
#library(wesanderson)
#library(RColorBrewer)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
#read in fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit.thinplate_2d.R
\name{fit.thinPlate_2d}
\alias{fit.thinPlate_2d}
\title{Function to fit a local radial basis function (CReSS) as a two dimensional smooth}
\usage{
fit.thinPlate_2d(fitnessMeasure, dists, aR, radii, baseModel,
radiusIndice... | /man/fit.thinPlate_2d.Rd | no_license | CMFell/MRSeaCF | R | false | true | 507 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit.thinplate_2d.R
\name{fit.thinPlate_2d}
\alias{fit.thinPlate_2d}
\title{Function to fit a local radial basis function (CReSS) as a two dimensional smooth}
\usage{
fit.thinPlate_2d(fitnessMeasure, dists, aR, radii, baseModel,
radiusIndice... |
library(plyr)
library(data.table)
load("../Data/mboost_model_summary.RData")
data_mboost <- do.call(rbind, lapply(mboost_models, function(x) x[[1]]))
rm(mboost_models)
data_mboost <- data.table(data_mboost)
setkey(data_mboost, joint_Nr, person, course_Id, sensorId, timestamp)
load("../Data/data_complete.RData")
d... | /merge_predictions.R | no_license | ja-thomas/Consulting | R | false | false | 2,049 | r | library(plyr)
library(data.table)
load("../Data/mboost_model_summary.RData")
data_mboost <- do.call(rbind, lapply(mboost_models, function(x) x[[1]]))
rm(mboost_models)
data_mboost <- data.table(data_mboost)
setkey(data_mboost, joint_Nr, person, course_Id, sensorId, timestamp)
load("../Data/data_complete.RData")
d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_power.R
\name{get_power}
\alias{get_power}
\title{Get NASA POWER Data from the POWER Web API.}
\usage{
get_power(community, pars, temporal_average, lonlat, dates = NULL)
}
\arguments{
\item{community}{A character vector providing communit... | /man/get_power.Rd | permissive | waldow90/nasapower | R | false | true | 5,676 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_power.R
\name{get_power}
\alias{get_power}
\title{Get NASA POWER Data from the POWER Web API.}
\usage{
get_power(community, pars, temporal_average, lonlat, dates = NULL)
}
\arguments{
\item{community}{A character vector providing communit... |
describe("fetch_betting_odds_footywire", {
testthat::skip_if_offline()
testthat::skip_on_cran()
# Many regression tests require fetching multiple seasons,
# so it's most efficient to fetch all years with known potential issues
full_betting_df <- fetch_betting_odds_footywire(
start_season = 2010, end_se... | /tests/testthat/test-fetch-betting-odds.R | no_license | sc0h0/fitzRoy | R | false | false | 4,367 | r |
describe("fetch_betting_odds_footywire", {
testthat::skip_if_offline()
testthat::skip_on_cran()
# Many regression tests require fetching multiple seasons,
# so it's most efficient to fetch all years with known potential issues
full_betting_df <- fetch_betting_odds_footywire(
start_season = 2010, end_se... |
## Script: Tests -- IV & IS
## Project: mblt-actigraphy
## Author: Ryan Opel -- @opelr
## Date: 2017-11-16
## Version: 0.3.0
library(magrittr)
library(tidyverse)
library(reshape2)
source("Scripts/Functions.R")
## ------ Create Main Data Frame ------
#' This object serves as fake test data
fake_actig <- data.frame(p... | /Tests/test_IV_IS.R | permissive | opelr/mblt-actigraphy | R | false | false | 8,907 | r | ## Script: Tests -- IV & IS
## Project: mblt-actigraphy
## Author: Ryan Opel -- @opelr
## Date: 2017-11-16
## Version: 0.3.0
library(magrittr)
library(tidyverse)
library(reshape2)
source("Scripts/Functions.R")
## ------ Create Main Data Frame ------
#' This object serves as fake test data
fake_actig <- data.frame(p... |
##6/2/16
##Bias, standard error, and proportion of simulations with no bound estimates (i.e., there were no
##control or treatment subjects for some subgroup)
rm(list=ls())
##Load the true bounds
setwd("~/Dropbox/research/github/fraction-who-benefit/simulationStudies/withBaselineVariable/RICV5_BV/boundParameters")
l... | /simulationStudies/withBaselineVariable/RICV5_BV/estimator/biasSE.R | no_license | emhuang1/fraction-who-benefit | R | false | false | 2,179 | r | ##6/2/16
##Bias, standard error, and proportion of simulations with no bound estimates (i.e., there were no
##control or treatment subjects for some subgroup)
rm(list=ls())
##Load the true bounds
setwd("~/Dropbox/research/github/fraction-who-benefit/simulationStudies/withBaselineVariable/RICV5_BV/boundParameters")
l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.