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 |
|---|---|---|---|---|---|---|---|---|---|
source("src/01_DataPreparation.R")
source("src/99_misc.R")
require(ggplot2)
require(reshape2)
require(plotly)
require(dplyr)
require(htmlwidgets)
require(cowplot)
dir.create("results", showWarnings = F)
source("src/11_Summary.R")
source("src/12_Trends.R")
source("src/13_Groups.R")
source("src/14_IndividualData.R")
s... | /src/00_Master.R | no_license | MarcusCramer91/DrinksAnalysis | R | false | false | 354 | r | source("src/01_DataPreparation.R")
source("src/99_misc.R")
require(ggplot2)
require(reshape2)
require(plotly)
require(dplyr)
require(htmlwidgets)
require(cowplot)
dir.create("results", showWarnings = F)
source("src/11_Summary.R")
source("src/12_Trends.R")
source("src/13_Groups.R")
source("src/14_IndividualData.R")
s... |
# miRNA eQTLs expressed from host gene
library(here)
library(dplyr)
library(readr)
library(magrittr)
library(ggplot2)
library(DESeq2)
# OUTPUT ###############################################################################################################
dir.pdf <- here("doc/paper/figure3/pdf/")
dir.create(dir.pdf, r... | /doc/paper/figure3/expression_via_host_genes.R | no_license | mikelaff/mirna-eqtl-manuscript | R | false | false | 9,005 | r | # miRNA eQTLs expressed from host gene
library(here)
library(dplyr)
library(readr)
library(magrittr)
library(ggplot2)
library(DESeq2)
# OUTPUT ###############################################################################################################
dir.pdf <- here("doc/paper/figure3/pdf/")
dir.create(dir.pdf, r... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615834711-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
#' Splitting your dataset in training and testing
#'
#' @name sampler
#' @description A training/test partition are created by \code{sampler} function.
#'
#' @param data the data frame that contains the variables to be separeted.
#' @param p the percentage of the training dataset to be obtained randomly. It can be expr... | /R/sampler.R | no_license | datascienceumh/MachineLearning | R | false | false | 2,400 | r | #' Splitting your dataset in training and testing
#'
#' @name sampler
#' @description A training/test partition are created by \code{sampler} function.
#'
#' @param data the data frame that contains the variables to be separeted.
#' @param p the percentage of the training dataset to be obtained randomly. It can be expr... |
#' Largest palindrome product
#' A palindrome number reads the same both ways
#' Find the largest palindrome made from the product of two 3-digit numbers
#' The premise is that we can start with the multiplication of largest 3 digit value - 999 - with each other.
#' The function then subtracts 1 from the value and... | /Algo_LargestPalindrome.R | no_license | amandatlt/Random-Algorithms | R | false | false | 2,044 | r | #' Largest palindrome product
#' A palindrome number reads the same both ways
#' Find the largest palindrome made from the product of two 3-digit numbers
#' The premise is that we can start with the multiplication of largest 3 digit value - 999 - with each other.
#' The function then subtracts 1 from the value and... |
#get and clean data master file
#source scrape_listen
#source get_html_files
#source scrape_page
#source clean_data
| /data/0_data_master.R | no_license | LisaKatharina/datadive | R | false | false | 120 | r | #get and clean data master file
#source scrape_listen
#source get_html_files
#source scrape_page
#source clean_data
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netdb.R
\name{getCellTypeFromTissue}
\alias{getCellTypeFromTissue}
\title{Title}
\usage{
getCellTypeFromTissue(tissue = "SNIG", which.one = "rnaseq", module = NULL)
}
\arguments{
\item{module}{}
}
\value{
}
\description{
Title
}
| /man/getCellTypeFromTissue.Rd | permissive | juanbot/CoExpNets | R | false | true | 308 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netdb.R
\name{getCellTypeFromTissue}
\alias{getCellTypeFromTissue}
\title{Title}
\usage{
getCellTypeFromTissue(tissue = "SNIG", which.one = "rnaseq", module = NULL)
}
\arguments{
\item{module}{}
}
\value{
}
\description{
Title
}
|
\name{iso}
\alias{iso}
\title{Attributions of isotonic covariate effect}
\description{InternalIt attributes the covariate with respect to the name, direction and anchor constrain.}
\usage{
iso(z, shape, K)
}
\arguments{
\item{z}{a univariate covariate.}
\item{shape}{a direction of z (shape="increasing" o... | /man/iso.Rd | no_license | cran/isoSurv | R | false | false | 668 | rd | \name{iso}
\alias{iso}
\title{Attributions of isotonic covariate effect}
\description{InternalIt attributes the covariate with respect to the name, direction and anchor constrain.}
\usage{
iso(z, shape, K)
}
\arguments{
\item{z}{a univariate covariate.}
\item{shape}{a direction of z (shape="increasing" o... |
#' Retrieves quarterly Master Index.
#'
#' \code{DownloadMasterIndex} retrieves the quarterly Master Index from SEC.org site.
#'
#' DownloadMasterIndex function takes 'year' as an input parameter from user,
#' asks the user to locate working directory, download quarterly master index
#' from ftp://ftp.sec.gov/e... | /R/downlaod_master_index.R | no_license | JoeFernando/edgar-2 | R | false | false | 4,134 | r | #' Retrieves quarterly Master Index.
#'
#' \code{DownloadMasterIndex} retrieves the quarterly Master Index from SEC.org site.
#'
#' DownloadMasterIndex function takes 'year' as an input parameter from user,
#' asks the user to locate working directory, download quarterly master index
#' from ftp://ftp.sec.gov/e... |
#' imputation
#'
#' Return a new dataframe with NaN values imputed using magic.
#' Missing Not At Random (MNAR)
#' Missing Completely At Random (MCAR)
#' Missing At Random (MAR)
#'
#' p_mnar:
#' Percent to define Missing Not At Random (MNAR), variables
#' with any one group with more or equal than x% of... | /devops/viime/R/impute.R | permissive | girder/viime | R | false | false | 5,746 | r | #' imputation
#'
#' Return a new dataframe with NaN values imputed using magic.
#' Missing Not At Random (MNAR)
#' Missing Completely At Random (MCAR)
#' Missing At Random (MAR)
#'
#' p_mnar:
#' Percent to define Missing Not At Random (MNAR), variables
#' with any one group with more or equal than x% of... |
library(testthat)
library(healthforum)
test_check("healthforum")
| /tests/testthat.R | permissive | mkearney/patientforum | R | false | false | 66 | r | library(testthat)
library(healthforum)
test_check("healthforum")
|
ABregres <-
function(behavior,phaseX,v1,v2){
t1<-table(phaseX)
tmaxA<-t1[names(t1)==v1]
startA<-match(v1,phaseX)
endA<-tmaxA+startA-1
A<-behavior[startA:endA]
meanA=mean(A,na.rm=T)
x1=(c(seq(1:tmaxA)))
regA<-lm(A~x1)
rA<-residuals(regA)
yA<-regA$coefficients[1]
BetaA<-regA$coefficient[2]
... | /output/sources/authors/2866/SSDforR/ABregres.R | no_license | Irbis3/crantasticScrapper | R | false | false | 934 | r | ABregres <-
function(behavior,phaseX,v1,v2){
t1<-table(phaseX)
tmaxA<-t1[names(t1)==v1]
startA<-match(v1,phaseX)
endA<-tmaxA+startA-1
A<-behavior[startA:endA]
meanA=mean(A,na.rm=T)
x1=(c(seq(1:tmaxA)))
regA<-lm(A~x1)
rA<-residuals(regA)
yA<-regA$coefficients[1]
BetaA<-regA$coefficient[2]
... |
CV.Surv <- function(X0, Y0, status, penalty=c("network", "mcp", "lasso"), lamb.1=NULL, lamb.2=NULL, clv=NULL, folds=5, r=5,
init=NULL, alpha.i=1, robust=TRUE, standardize=TRUE, verbo = FALSE)
{
intercept = TRUE
status = as.numeric(status)
if(is.null(clv)){
clv = intercept*1
}els... | /fuzzedpackages/regnet/R/SurvCV.R | no_license | akhikolla/testpackages | R | false | false | 2,792 | r |
CV.Surv <- function(X0, Y0, status, penalty=c("network", "mcp", "lasso"), lamb.1=NULL, lamb.2=NULL, clv=NULL, folds=5, r=5,
init=NULL, alpha.i=1, robust=TRUE, standardize=TRUE, verbo = FALSE)
{
intercept = TRUE
status = as.numeric(status)
if(is.null(clv)){
clv = intercept*1
}els... |
# Using `full.data`
#
# I want to know how long novelty persists:
# Novelty -> [mid-quantile, persistence, refugium]
# Within each site.
# For each site:
# 1. Identify each time there's "Novelty"
# 2. Find the length of time until the next "Novelty" or "Migration"
transition_list <- list()
for(i in 1:length(unique... | /R/novel_persistence.R | no_license | SimonGoring/NonAnalogues | R | false | false | 2,446 | r | # Using `full.data`
#
# I want to know how long novelty persists:
# Novelty -> [mid-quantile, persistence, refugium]
# Within each site.
# For each site:
# 1. Identify each time there's "Novelty"
# 2. Find the length of time until the next "Novelty" or "Migration"
transition_list <- list()
for(i in 1:length(unique... |
# Coursera Exploratory Data Analysis
# plot 4
library(dplyr)
fn = "./exdata_data_household_power_consumption/household_power_consumption.txt"
col_names <- names(read.csv(fn, nrows = 1, sep = ";"))
df = read.csv(fn, sep = ";", stringsAsFactors=FALSE, skip = 66636, nrows = 2880,
header=TRUE, na.strings ... | /Plot4.R | no_license | gladwig2/ExData_Plotting1 | R | false | false | 1,446 | r | # Coursera Exploratory Data Analysis
# plot 4
library(dplyr)
fn = "./exdata_data_household_power_consumption/household_power_consumption.txt"
col_names <- names(read.csv(fn, nrows = 1, sep = ";"))
df = read.csv(fn, sep = ";", stringsAsFactors=FALSE, skip = 66636, nrows = 2880,
header=TRUE, na.strings ... |
### R code from vignette source 'Ch_errata.Rnw'
###################################################
### code chunk number 1: setup
###################################################
rm(list = ls())
s <- search()[-1]
s <- s[-match(c("package:base", "package:stats", "package:graphics", "package:grDevices",
... | /inst/doc/Ch_errata.R | no_license | cran/HSAUR | R | false | false | 1,727 | r | ### R code from vignette source 'Ch_errata.Rnw'
###################################################
### code chunk number 1: setup
###################################################
rm(list = ls())
s <- search()[-1]
s <- s[-match(c("package:base", "package:stats", "package:graphics", "package:grDevices",
... |
folder <- paste0(getwd(),"/code")
setwd(folder)
source(file='password.R')
source(file='dbConnect.R')
source(file='functions.R')
source(file='listado.R')
# Obtenemos los tweets de los hashtags
q <- paste('SELECT *
FROM hashtag',sep="")
hashtags <- dbGetQuery(con, q)
hashtags <- na.omit(hashtags)
q <- past... | /code/allDatabase.R | no_license | dgzara/educational-movement | R | false | false | 1,457 | r | folder <- paste0(getwd(),"/code")
setwd(folder)
source(file='password.R')
source(file='dbConnect.R')
source(file='functions.R')
source(file='listado.R')
# Obtenemos los tweets de los hashtags
q <- paste('SELECT *
FROM hashtag',sep="")
hashtags <- dbGetQuery(con, q)
hashtags <- na.omit(hashtags)
q <- past... |
\name{per}
\alias{per}
\title{Decompose an atomic vector to its successive values and their length.}
\usage{
per(x, idx = FALSE)
}
\arguments{
\item{x}{The atomic vector to examine.}
\item{idx}{Should the indexes (start and end) of
homogeneous sequences be returned as well ?}
}
\value{
A data frame with values a... | /man/per.Rd | no_license | SESjo/SES | R | false | false | 953 | rd | \name{per}
\alias{per}
\title{Decompose an atomic vector to its successive values and their length.}
\usage{
per(x, idx = FALSE)
}
\arguments{
\item{x}{The atomic vector to examine.}
\item{idx}{Should the indexes (start and end) of
homogeneous sequences be returned as well ?}
}
\value{
A data frame with values a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModSearch.R
\name{module_search_ind}
\alias{module_search_ind}
\title{Search modules from a list of seeds/nodes}
\usage{
module_search_ind(V_weight, Adj_List, ind_seed, E_adj, rank_list)
}
\arguments{
\item{V_weight}{a numeric vector of node ... | /man/module_search_ind.Rd | no_license | yasin-chop/arvin | R | false | true | 634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModSearch.R
\name{module_search_ind}
\alias{module_search_ind}
\title{Search modules from a list of seeds/nodes}
\usage{
module_search_ind(V_weight, Adj_List, ind_seed, E_adj, rank_list)
}
\arguments{
\item{V_weight}{a numeric vector of node ... |
# Perform 10-fold validation and return results
# dataset: dataset used to train the model (training set)
# tuningGrid: a data frame with possible tuning values
# modelType: name of the model used choose from the classification models
# of caret at:
#
# http://topepo.github.io/caret/train-models-by-tag.html#Support_Ve... | /Models.R | no_license | aXhyra/breast_cancer_ML | R | false | false | 4,632 | r | # Perform 10-fold validation and return results
# dataset: dataset used to train the model (training set)
# tuningGrid: a data frame with possible tuning values
# modelType: name of the model used choose from the classification models
# of caret at:
#
# http://topepo.github.io/caret/train-models-by-tag.html#Support_Ve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input-spectrum.R
\name{spectrumInput}
\alias{spectrumInput}
\title{Palette Color Picker with Spectrum Library}
\usage{
spectrumInput(inputId, label, choices = NULL, selected = NULL,
flat = FALSE, options = list(), width = NULL)
}
\arguments... | /man/spectrumInput.Rd | permissive | DataXujing/shinyWidgets | R | false | true | 1,768 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input-spectrum.R
\name{spectrumInput}
\alias{spectrumInput}
\title{Palette Color Picker with Spectrum Library}
\usage{
spectrumInput(inputId, label, choices = NULL, selected = NULL,
flat = FALSE, options = list(), width = NULL)
}
\arguments... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SOfun-package.R
\docType{package}
\name{SOfun-package}
\alias{SOfun-package}
\alias{SOfun}
\title{Functions written while answering Stack Overflow questions}
\description{
A collection of functions I've written while answering questions on St... | /man/SOfun-package.Rd | no_license | mrdwab/SOfun | R | false | true | 1,067 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SOfun-package.R
\docType{package}
\name{SOfun-package}
\alias{SOfun-package}
\alias{SOfun}
\title{Functions written while answering Stack Overflow questions}
\description{
A collection of functions I've written while answering questions on St... |
list_issue_types <- function(city = NULL, lat = NULL, long = NULL, limit = 100) {
total <- 0
page <- 1
pagelimit <- min(100,limit)
if(length(city)>0 & (length(lat)>0 | length(long)>0)){
lat <- NULL
long <- NULL
warning("Cannot specify both city and lat/long locations. Using city...")
}
if((lengt... | /R/list_issue_types.R | no_license | cran/seeclickfixr | R | false | false | 1,962 | r | list_issue_types <- function(city = NULL, lat = NULL, long = NULL, limit = 100) {
total <- 0
page <- 1
pagelimit <- min(100,limit)
if(length(city)>0 & (length(lat)>0 | length(long)>0)){
lat <- NULL
long <- NULL
warning("Cannot specify both city and lat/long locations. Using city...")
}
if((lengt... |
## Name: dm11_clean_participants_v3.R
## Description: Clean variables nrelated to particiapants
## Input file: combined_10_v3.qs
## Functions:
## Output file: combined_11_v3.qs, part_v3.qs, part_min_v3.qs
# Packages ----------------------------------------------------------------
library(data.table)
library(stringr)... | /r/version_3/dm11_clean_participant_v3.R | permissive | LloydChapman/comix_data_clean | R | false | false | 16,421 | r | ## Name: dm11_clean_participants_v3.R
## Description: Clean variables nrelated to particiapants
## Input file: combined_10_v3.qs
## Functions:
## Output file: combined_11_v3.qs, part_v3.qs, part_min_v3.qs
# Packages ----------------------------------------------------------------
library(data.table)
library(stringr)... |
# set working directory
oriDir <- getwd()
mainDir <- "/Users/jen/Documents/ntuHackson2017"
setwd(mainDir)
# install packages
pkgs.needs <- c("ggmap", "jsonlite", "dplyr")
pkgs.installed <- installed.packages()[,"Package"]
new.pkgs <- pkgs.needs[!(pkgs.needs %in% pkgs.installed)]
if(length(new.packages)) install.packa... | /youbike.R | no_license | jojojen/ntuHackthon2017 | R | false | false | 1,243 | r | # set working directory
oriDir <- getwd()
mainDir <- "/Users/jen/Documents/ntuHackson2017"
setwd(mainDir)
# install packages
pkgs.needs <- c("ggmap", "jsonlite", "dplyr")
pkgs.installed <- installed.packages()[,"Package"]
new.pkgs <- pkgs.needs[!(pkgs.needs %in% pkgs.installed)]
if(length(new.packages)) install.packa... |
plsda_cv <-
function(v,x,y,ncomp,errortype="total",conflevel=99){
num_samp=dim(x)[1]
num_datasets= floor(num_samp)
n1<-floor(num_samp/v)
n2<-num_samp-n1*v
n3<-v-n2
ind<-rep(c(n1,n1+1),c(n3,n2))
ind<-diffinv(ind)
min_err=1
best_k=1
set.seed(555)
group<-sample(1:num_samp,num_samp, replac... | /R/plsda_cv.R | no_license | kuppal2/xmsPANDA | R | false | false | 2,482 | r | plsda_cv <-
function(v,x,y,ncomp,errortype="total",conflevel=99){
num_samp=dim(x)[1]
num_datasets= floor(num_samp)
n1<-floor(num_samp/v)
n2<-num_samp-n1*v
n3<-v-n2
ind<-rep(c(n1,n1+1),c(n3,n2))
ind<-diffinv(ind)
min_err=1
best_k=1
set.seed(555)
group<-sample(1:num_samp,num_samp, replac... |
setwd("/Users/claudia/Downloads/citizen_science")
# install.packages("jsonlite")
# install.packages("writexl")
# Load the package required to read JSON files.
library("jsonlite")
library("writexl")
# Give the input file name to the function.
result1 <- fromJSON("id_timeStamp1.json")
result2 <- fromJSON("id_timeStamp... | /DataProcessing/VicMask.R | no_license | flliu315/GovHack-CitizenScience | R | false | false | 2,720 | r | setwd("/Users/claudia/Downloads/citizen_science")
# install.packages("jsonlite")
# install.packages("writexl")
# Load the package required to read JSON files.
library("jsonlite")
library("writexl")
# Give the input file name to the function.
result1 <- fromJSON("id_timeStamp1.json")
result2 <- fromJSON("id_timeStamp... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
#Author:Pavlo_hrab
#Build as a part of HackBio internship
#version -> 0.5
#Import required libraries
library(shiny)
library(tidyverse)
library(plyr)
library(ggplot2)
library(hrbrthemes)
library(forcats)
librar... | /ORCaD/app.R | permissive | Mosadoluwa-A/GISAID_phylo | R | false | false | 84,657 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
#Author:Pavlo_hrab
#Build as a part of HackBio internship
#version -> 0.5
#Import required libraries
library(shiny)
library(tidyverse)
library(plyr)
library(ggplot2)
library(hrbrthemes)
library(forcats)
librar... |
# verify if the required libraries are present
# and if not, install them
if (!require("data.table")) {
install.packages("data.table")
}
if (!require("dplyr")) {
install.packages("dplyr")
}
if (!require("plyr")) {
install.packages("plyr")
}
# load libraries
library(data.table)
library(plyr)
l... | /run_analysis.R | no_license | andreaduque/gacd-cp | R | false | false | 3,460 | r | # verify if the required libraries are present
# and if not, install them
if (!require("data.table")) {
install.packages("data.table")
}
if (!require("dplyr")) {
install.packages("dplyr")
}
if (!require("plyr")) {
install.packages("plyr")
}
# load libraries
library(data.table)
library(plyr)
l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{fill_NA_using_formula}
\alias{fill_NA_using_formula}
\title{This function is needed for DE in case the matrix is not rectangular, but includes NA}
\usage{
fill_NA_using_formula(
.data,
.formula,
.sample = NULL,
.tran... | /man/fill_NA_using_formula.Rd | no_license | AMChalkie/tidybulk | R | false | true | 939 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{fill_NA_using_formula}
\alias{fill_NA_using_formula}
\title{This function is needed for DE in case the matrix is not rectangular, but includes NA}
\usage{
fill_NA_using_formula(
.data,
.formula,
.sample = NULL,
.tran... |
rm(list = ls())
library(dplyr)
library(ggplot2)
library(cowplot)
theme_set(theme_cowplot() + background_grid())
wd <- "C:/Users/User/Dropbox/Unicamp/dissertacao/notas/figuras/cap5/simulation_study"
FF <- function(x,Digits=4,Width=4){(formatC(x,digits=Digits,width=Width,format="f"))}
printmrow <- function(x) cat(cat(x,... | /analysis/simulation_study/05__results_simul_error.R | no_license | AndrMenezes/dissertation | R | false | false | 3,577 | r | rm(list = ls())
library(dplyr)
library(ggplot2)
library(cowplot)
theme_set(theme_cowplot() + background_grid())
wd <- "C:/Users/User/Dropbox/Unicamp/dissertacao/notas/figuras/cap5/simulation_study"
FF <- function(x,Digits=4,Width=4){(formatC(x,digits=Digits,width=Width,format="f"))}
printmrow <- function(x) cat(cat(x,... |
#' Create a results page with links to analysis files
#'
#' \code{create_links_page} automates the curation of all the analyses for a
#' project.
#'
#' By default, this creates the file "results.Rmd" in the analysis/
#' subdirectory. If you decide to change this name, be sure to update the
#' navigation bar settings in... | /R/create_links_page.R | permissive | jdblischak/workflowrBeta | R | false | false | 4,834 | r | #' Create a results page with links to analysis files
#'
#' \code{create_links_page} automates the curation of all the analyses for a
#' project.
#'
#' By default, this creates the file "results.Rmd" in the analysis/
#' subdirectory. If you decide to change this name, be sure to update the
#' navigation bar settings in... |
library(gganimate)
library(ggplot2)
svg(filename="android-age.svg", width=12, height=12)
df <- read.csv("share-plot.csv",colClasses=c("Date",NA,NA))
new_pal <- colorRampPalette(c("darkblue","darkgreen"))(3)
recent_pal <- colorRampPalette(c("forestgreen","goldenrod4"))(3)
real_pal <- colorRampPalette(c("goldenrod1","d... | /android-share/plot-share.r | no_license | danluu/dump | R | false | false | 2,515 | r | library(gganimate)
library(ggplot2)
svg(filename="android-age.svg", width=12, height=12)
df <- read.csv("share-plot.csv",colClasses=c("Date",NA,NA))
new_pal <- colorRampPalette(c("darkblue","darkgreen"))(3)
recent_pal <- colorRampPalette(c("forestgreen","goldenrod4"))(3)
real_pal <- colorRampPalette(c("goldenrod1","d... |
\name{Bessel}
\alias{Bessel}
\alias{bessel}
\alias{bessel_J0}
\alias{bessel_J1}
\alias{bessel_Jn}
\alias{bessel_Jn_array}
\alias{bessel_Y0}
\alias{bessel_Y1}
\alias{bessel_Yn}
\alias{bessel_Yn_array}
\alias{bessel_I0}
\alias{bessel_I1}
\alias{bessel_In}
\alias{bessel_In_array}
\alias{bessel_I0_scaled}
\alias{bessel_I1_... | /man/Bessel.Rd | no_license | RobinHankin/gsl | R | false | false | 7,548 | rd | \name{Bessel}
\alias{Bessel}
\alias{bessel}
\alias{bessel_J0}
\alias{bessel_J1}
\alias{bessel_Jn}
\alias{bessel_Jn_array}
\alias{bessel_Y0}
\alias{bessel_Y1}
\alias{bessel_Yn}
\alias{bessel_Yn_array}
\alias{bessel_I0}
\alias{bessel_I1}
\alias{bessel_In}
\alias{bessel_In_array}
\alias{bessel_I0_scaled}
\alias{bessel_I1_... |
context("mlbetapr")
## Data generation.
set.seed(313)
tiny_data = extraDistr::rbetapr(10, 0.5, 10)
small_data = extraDistr::rbetapr(100, 3, 8)
medium_data = extraDistr::rbetapr(1000, 11, 0.3)
## Checks if the ML is correct.
mle_tiny = suppressWarnings(nlm(function(p) {
-sum(extraDistr::dbetapr(tiny_data, p[1], p[2]... | /tests/testthat/test_mlbetapr.R | permissive | vbaliga/univariateML | R | false | false | 1,841 | r | context("mlbetapr")
## Data generation.
set.seed(313)
tiny_data = extraDistr::rbetapr(10, 0.5, 10)
small_data = extraDistr::rbetapr(100, 3, 8)
medium_data = extraDistr::rbetapr(1000, 11, 0.3)
## Checks if the ML is correct.
mle_tiny = suppressWarnings(nlm(function(p) {
-sum(extraDistr::dbetapr(tiny_data, p[1], p[2]... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# deploy with >rsconnect::deployApp('~/Documents/Classes/DataSciCourse/Affinity')
library(sh... | /ui.R | no_license | BODF/Affinity | R | false | false | 2,222 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# deploy with >rsconnect::deployApp('~/Documents/Classes/DataSciCourse/Affinity')
library(sh... |
## test for predictions
cat("\ntest_predict\n")
## set up training and testing datasets
iris.columns = c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")
i.train = iris[c(1:12, 61:72, 121:132), iris.columns]
i.repeat = iris[c(1:12), iris.columns]
i.test = iris[c(13:16, 73:76, 123:126), iris.co... | /tests/testthat/test_predict.R | permissive | JenniferSLyon/umap | R | false | false | 1,107 | r | ## test for predictions
cat("\ntest_predict\n")
## set up training and testing datasets
iris.columns = c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")
i.train = iris[c(1:12, 61:72, 121:132), iris.columns]
i.repeat = iris[c(1:12), iris.columns]
i.test = iris[c(13:16, 73:76, 123:126), iris.co... |
library(shiny)
library(shinyAce)
library(psych)
library(amap)
shinyServer(function(input, output) {
bs <- reactive({
if (input$rowname == 1) {
x <- read.csv(text=input$text, sep="\t")
x <- x[, -1]
}else{
x <- read.csv(text=input$text, sep="\t")
}
... | /server.R | permissive | ainunnajib/cluster | R | false | false | 11,140 | r | library(shiny)
library(shinyAce)
library(psych)
library(amap)
shinyServer(function(input, output) {
bs <- reactive({
if (input$rowname == 1) {
x <- read.csv(text=input$text, sep="\t")
x <- x[, -1]
}else{
x <- read.csv(text=input$text, sep="\t")
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OhJ_2014.pathabundance_relab.R
\name{OhJ_2014.pathabundance_relab}
\alias{OhJ_2014.pathabundance_relab}
\alias{OhJ_2014.pathabundance_relab.skin}
\title{Relabeled pathabundance data from the OhJ_2014 dataset}
\source{
Translational and Functi... | /man/OhJ_2014.pathabundance_relab.Rd | no_license | mticlla/curatedMetagenomicData | R | false | true | 922 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OhJ_2014.pathabundance_relab.R
\name{OhJ_2014.pathabundance_relab}
\alias{OhJ_2014.pathabundance_relab}
\alias{OhJ_2014.pathabundance_relab.skin}
\title{Relabeled pathabundance data from the OhJ_2014 dataset}
\source{
Translational and Functi... |
#Read in dataset
DataFile <- "D:/R/ExData_Plotting1/household_power_consumption.txt"
HouseholdPower <- read.table(DataFile, header=TRUE, sep=";", stringsAsFactors=FALSE)
#subset dates of interest
data <- HouseholdPower[HouseholdPower$Date %in% c("1/2/2007","2/2/2007"),]
#Plot data
global_active_power <- as.numeric(da... | /plot1.R | no_license | EWZ15/ExData_Plotting1 | R | false | false | 535 | r | #Read in dataset
DataFile <- "D:/R/ExData_Plotting1/household_power_consumption.txt"
HouseholdPower <- read.table(DataFile, header=TRUE, sep=";", stringsAsFactors=FALSE)
#subset dates of interest
data <- HouseholdPower[HouseholdPower$Date %in% c("1/2/2007","2/2/2007"),]
#Plot data
global_active_power <- as.numeric(da... |
#' earthquakesWithR: A visualization package for world earthquake histories
#'
#' This package maps and timelines earthquakes.
#'
#' @importFrom dplyr filter mutate select "%>%"
#' @import ggplot2
#' @import leaflet
#' @importFrom purrr map map2_chr
#' @importFrom stringr str_trim str_to_title
#'
#' @docType package
#'... | /R/earthquakesWithR.R | no_license | moralmar/earthquakesWithR | R | false | false | 349 | r | #' earthquakesWithR: A visualization package for world earthquake histories
#'
#' This package maps and timelines earthquakes.
#'
#' @importFrom dplyr filter mutate select "%>%"
#' @import ggplot2
#' @import leaflet
#' @importFrom purrr map map2_chr
#' @importFrom stringr str_trim str_to_title
#'
#' @docType package
#'... |
cheese cheese cheese | /Untitled.R | no_license | LauraBalzer/test-github | R | false | false | 20 | r | cheese cheese cheese |
## --------------------------------------------------------------
## set workspace and load libraries
## --------------------------------------------------------------
#ls() ## lists variables in the workspace
rm(list=ls()) ## clears all variables in the workspace
library(tidyverse) # for data manipulation; includ... | /reddit_cancer_analysis.R | no_license | bretsw/reddit-cancer | R | false | false | 9,127 | r | ## --------------------------------------------------------------
## set workspace and load libraries
## --------------------------------------------------------------
#ls() ## lists variables in the workspace
rm(list=ls()) ## clears all variables in the workspace
library(tidyverse) # for data manipulation; includ... |
# Run a test on taxi data - predict a trip destination and graph the results - R
# Load training data - 2.5min snapshots of 100K trip records
#
source <- "D:\\CKME 136\\Taxi\\sample 100K.csv"
taxi.100k <- read.csv( source, header=T )
names(taxi.100k) <- tolower( sub( "_", ".", names(taxi.100k) ))
# Load test data - 0... | /src/example.knn.run.R | no_license | praynham/taxi-predict | R | false | false | 2,455 | r | # Run a test on taxi data - predict a trip destination and graph the results - R
# Load training data - 2.5min snapshots of 100K trip records
#
source <- "D:\\CKME 136\\Taxi\\sample 100K.csv"
taxi.100k <- read.csv( source, header=T )
names(taxi.100k) <- tolower( sub( "_", ".", names(taxi.100k) ))
# Load test data - 0... |
LRbounds<-function(x, dist="weibull", CL=0.9, unrel=NULL, contour=NULL, dof=1, control=NULL, debias="none", show=c(FALSE,FALSE)) {
## check basic parameters of x
#if(class(x)!="data.frame") stop("FMbounds takes a structured dataframe input, use mleframe")
if(!is(x, "data.frame")) stop("LR... | /R/LRbounds.r | no_license | cran/WeibullR | R | false | false | 15,690 | r | LRbounds<-function(x, dist="weibull", CL=0.9, unrel=NULL, contour=NULL, dof=1, control=NULL, debias="none", show=c(FALSE,FALSE)) {
## check basic parameters of x
#if(class(x)!="data.frame") stop("FMbounds takes a structured dataframe input, use mleframe")
if(!is(x, "data.frame")) stop("LR... |
# Load necessary libraries.
library(ggplot2)
library(shiny)
library(shinyAce)
library(pxweb)
require(data.table)
# Keep track of data with these entries for each upload:
# 1. Name (filename with .csv stripped)
# 2. Location (path on server to use)
# 3. Data
dataList <- list()
# All server code must be within shiny... | /server.R | no_license | asig71/Innflytjendur | R | false | false | 5,629 | r | # Load necessary libraries.
library(ggplot2)
library(shiny)
library(shinyAce)
library(pxweb)
require(data.table)
# Keep track of data with these entries for each upload:
# 1. Name (filename with .csv stripped)
# 2. Location (path on server to use)
# 3. Data
dataList <- list()
# All server code must be within shiny... |
obis_base <- function() "https://api.obis.org"
#' OBIS search
#' @export
#' @keywords internal
#' @param scientificname (character) Scientific name. Leave empty to
#' include all taxa. This is what we pass your name query to
#' @param taxonid (character) Taxon AphiaID.
#' @param datasetid (character) Dataset UUID.
#' ... | /R/obis_helpers.R | permissive | ropensci/spocc | R | false | false | 2,641 | r | obis_base <- function() "https://api.obis.org"
#' OBIS search
#' @export
#' @keywords internal
#' @param scientificname (character) Scientific name. Leave empty to
#' include all taxa. This is what we pass your name query to
#' @param taxonid (character) Taxon AphiaID.
#' @param datasetid (character) Dataset UUID.
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/df.treat.R
\name{df.treat}
\alias{df.treat}
\title{Data Frame Function}
\usage{
df.treat(df)
}
\arguments{
\item{df}{is the dataframe that contains the kuni data}
}
\description{
splits the data into dataframes for each treatment category. Tr... | /GainLossPackage/man/df.treat.Rd | no_license | ehiroyasu/KuniInvasives | R | false | true | 416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/df.treat.R
\name{df.treat}
\alias{df.treat}
\title{Data Frame Function}
\usage{
df.treat(df)
}
\arguments{
\item{df}{is the dataframe that contains the kuni data}
}
\description{
splits the data into dataframes for each treatment category. Tr... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot_functions.R
\name{dotplot_diag}
\alias{dotplot_diag}
\title{Dot plots for influence diagnostics}
\usage{
dotplot_diag(x, index, data, cutoff, name = c("cooks.distance", "mdffits",
"covratio", "covtrace", "rvc", "leverage"), mod... | /man/dotplot_diag.Rd | no_license | zhaojkun/HLMdiag | R | false | false | 2,466 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/plot_functions.R
\name{dotplot_diag}
\alias{dotplot_diag}
\title{Dot plots for influence diagnostics}
\usage{
dotplot_diag(x, index, data, cutoff, name = c("cooks.distance", "mdffits",
"covratio", "covtrace", "rvc", "leverage"), mod... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{src}
\alias{is.src}
\alias{src}
\title{Create a "src" object}
\usage{
src(subclass, ...)
is.src(x)
}
\arguments{
\item{subclass}{name of subclass. "src" is an abstract
base class, so you must supply this value. \code{src_} is
automatically prepended to t... | /man/src.Rd | no_license | Errrriikkkk/dplyr | R | false | false | 527 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{src}
\alias{is.src}
\alias{src}
\title{Create a "src" object}
\usage{
src(subclass, ...)
is.src(x)
}
\arguments{
\item{subclass}{name of subclass. "src" is an abstract
base class, so you must supply this value. \code{src_} is
automatically prepended to t... |
register_http_handlers <- function(session, metadata) {
# parent environment for completions (see discussion in setup_exercise_handler
# for why this is chosen as the completion/execution parent)
server_envir <- parent.env(parent.env(parent.frame()))
# environment used for hosting state (e.g. for chunks)
... | /R/http-handlers.R | permissive | takewiki/learnr | R | false | false | 7,836 | r |
register_http_handlers <- function(session, metadata) {
# parent environment for completions (see discussion in setup_exercise_handler
# for why this is chosen as the completion/execution parent)
server_envir <- parent.env(parent.env(parent.frame()))
# environment used for hosting state (e.g. for chunks)
... |
# source("R/configs.R")
source("R/fig_6_staging.R")
fig_6_left <- align_plots(cds_aligned_umap_partition_assignment_1,
mono_partition_plot,
align = "v",
axis = "l")
fig_6_top <- plot_grid(fig_6_left[[1]],
cds_aligne... | /R/fig_6_composition.R | permissive | blaserlab/carson_ibr_trial | R | false | false | 1,352 | r | # source("R/configs.R")
source("R/fig_6_staging.R")
fig_6_left <- align_plots(cds_aligned_umap_partition_assignment_1,
mono_partition_plot,
align = "v",
axis = "l")
fig_6_top <- plot_grid(fig_6_left[[1]],
cds_aligne... |
# Directory that contains all the files.
# Assumes the file names are in following format (<blockid>.csv)
dirName <- "SoilData_Abhishek"
df <- data.frame()
#Iterate over all files
for(f in dir(dirName))
{
#Get Block Id
blockId <- strsplit(f,'\\.')[[1]][1]
fileName <- paste(dirName, f, sep = ... | /GenerateTidySoilData.R | no_license | abhisheksinha08/HaryanaSoilNutrientDataExtracter | R | false | false | 1,674 | r |
# Directory that contains all the files.
# Assumes the file names are in following format (<blockid>.csv)
dirName <- "SoilData_Abhishek"
df <- data.frame()
#Iterate over all files
for(f in dir(dirName))
{
#Get Block Id
blockId <- strsplit(f,'\\.')[[1]][1]
fileName <- paste(dirName, f, sep = ... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{which_leaf}
\alias{which_leaf}
\title{Which node is a leaf?}
\usage{
which_leaf(dend, ...)
}
\arguments{
\item{dend}{a dendrogram dend}
\item{...}{ignored.}
}
\value{
A logical vector with the length of \link{nnodes},
which gives a TRUE when a node is a leaf.
... | /man/which_leaf.Rd | no_license | arturochian/dendextend | R | false | false | 736 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{which_leaf}
\alias{which_leaf}
\title{Which node is a leaf?}
\usage{
which_leaf(dend, ...)
}
\arguments{
\item{dend}{a dendrogram dend}
\item{...}{ignored.}
}
\value{
A logical vector with the length of \link{nnodes},
which gives a TRUE when a node is a leaf.
... |
##########################################################################################
# convert data categories from strings to numebers for matlab
dir = "../../../../kelvinli/Documents/MATLAB/"
data_name = paste(nVars, maxNPas, maxArity, beta, n, sep = "_", collapse = "")
data_numeric = string2numeric(data)
writ... | /RStudioProjects/LocalStrLearning/scripts/matlab.R | no_license | kelvinyangli/PhDProjects | R | false | false | 655 | r | ##########################################################################################
# convert data categories from strings to numebers for matlab
dir = "../../../../kelvinli/Documents/MATLAB/"
data_name = paste(nVars, maxNPas, maxArity, beta, n, sep = "_", collapse = "")
data_numeric = string2numeric(data)
writ... |
rm(list=ls())
library(igraph)
source("./analysis_prop_func.R", chdir = T)
# ================================ Region 1 ==============================
path.base <- "./../../data/results/propagation/rand_walk_complete/borda_sw_004/server_dti_complete_r1/"
pathIn.ctrl <- "./random_walk/borda/dti/prop_ctrl_dti_r1.RData"
p... | /R/propagation/driver_propdata_dti.R | no_license | emanuelepesce/dti_fmri_networks | R | false | false | 3,589 | r | rm(list=ls())
library(igraph)
source("./analysis_prop_func.R", chdir = T)
# ================================ Region 1 ==============================
path.base <- "./../../data/results/propagation/rand_walk_complete/borda_sw_004/server_dti_complete_r1/"
pathIn.ctrl <- "./random_walk/borda/dti/prop_ctrl_dti_r1.RData"
p... |
########################################################################
################## MOVIE RECOMMENDATION SYSTEM PROJECT #################
########################## Reza Ameri, Ph.D. ##########################
########################################################################
####################... | /MovieRecSys.R | no_license | rezameri/MovieRecSys | R | false | false | 12,284 | r | ########################################################################
################## MOVIE RECOMMENDATION SYSTEM PROJECT #################
########################## Reza Ameri, Ph.D. ##########################
########################################################################
####################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISODataQualityLogicalConsistency.R
\docType{class}
\name{ISOAbstractLogicalConsistency}
\alias{ISOAbstractLogicalConsistency}
\title{ISOAbstractLogicalConsistency}
\format{
\code{\link{R6Class}} object.
}
\value{
Object of \code{\li... | /man/ISOAbstractLogicalConsistency.Rd | no_license | cran/geometa | R | false | true | 12,323 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISODataQualityLogicalConsistency.R
\docType{class}
\name{ISOAbstractLogicalConsistency}
\alias{ISOAbstractLogicalConsistency}
\title{ISOAbstractLogicalConsistency}
\format{
\code{\link{R6Class}} object.
}
\value{
Object of \code{\li... |
#' Estimate bias-corrected transcript abundances (FPKM)
#'
#' This function takes the fitted bias parameters from \link{fitBiasModels}
#' and uses this information to derive bias corrected estimates of
#' transcript abundance for a gene (with one or more isoforms)
#' across multiple samples.
#'
#' @param transcripts ... | /R/estimate_abundance.R | no_license | mikelove/alpine | R | false | false | 13,505 | r | #' Estimate bias-corrected transcript abundances (FPKM)
#'
#' This function takes the fitted bias parameters from \link{fitBiasModels}
#' and uses this information to derive bias corrected estimates of
#' transcript abundance for a gene (with one or more isoforms)
#' across multiple samples.
#'
#' @param transcripts ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guess_projection.R
\name{guess_projection}
\alias{guess_projection}
\title{Take a dataset and plot in different projections on a leaflet map to
check the expected projection}
\usage{
guess_projection(df, col_long, col_lat, belgium = TRUE,
p... | /man/guess_projection.Rd | permissive | ElsDeBie/inborutils | R | false | true | 2,099 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/guess_projection.R
\name{guess_projection}
\alias{guess_projection}
\title{Take a dataset and plot in different projections on a leaflet map to
check the expected projection}
\usage{
guess_projection(df, col_long, col_lat, belgium = TRUE,
p... |
# OpenSilex API
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 1.0.0-rc+2
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' AgentModel Class
#'
#' @field uri
#' @field rdf_type
#' @field settings
#'
#' @impo... | /R/AgentModel.r | no_license | OpenSILEX/opensilexClientToolsR | R | false | false | 3,307 | r | # OpenSilex API
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 1.0.0-rc+2
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' AgentModel Class
#'
#' @field uri
#' @field rdf_type
#' @field settings
#'
#' @impo... |
testlist <- list(eigen_type = 603497922L, maxit = -2065975987L, n_datasets = -498905818L, n_vars = 569042049L, N = 1273656994L)
result <- do.call(EFAtools:::parallel_sim,testlist)
str(result) | /issuestests/EFAtools/inst/testfiles/parallel_sim/parallel_sim_output/log_2e96554827fe54dbfe441614e659bafd883dd86f/parallel_sim-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 196 | r | testlist <- list(eigen_type = 603497922L, maxit = -2065975987L, n_datasets = -498905818L, n_vars = 569042049L, N = 1273656994L)
result <- do.call(EFAtools:::parallel_sim,testlist)
str(result) |
library(statsr)
library(dplyr)
library(ggplot2)
data(nycflights)
names(nycflights)
str(nycflights)
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_histogram()
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_histogram(binwidth = 15)
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_... | /dplyr.R | no_license | AliAmini7/DSAI | R | false | false | 1,981 | r | library(statsr)
library(dplyr)
library(ggplot2)
data(nycflights)
names(nycflights)
str(nycflights)
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_histogram()
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_histogram(binwidth = 15)
ggplot(data = nycflights, aes(x = dep_delay)) +
geom_... |
makeCacheMatrix <- function(x = matrix()){
temp<- NULL
#Functions within makeCacheMatrix
#function returns a list of functions to operate on
set <- function(y){
x <<- y
temp<<- NULL
}
get <- function(){
x
}
setInverse <- function(inverse){
temp<<- inverse
}
getInverse <- function(){
... | /cachematrix.R | no_license | sampathroutu/ProgrammingAssignment2 | R | false | false | 691 | r | makeCacheMatrix <- function(x = matrix()){
temp<- NULL
#Functions within makeCacheMatrix
#function returns a list of functions to operate on
set <- function(y){
x <<- y
temp<<- NULL
}
get <- function(){
x
}
setInverse <- function(inverse){
temp<<- inverse
}
getInverse <- function(){
... |
#Clearing RAM
rm(list = ls())
#importing all the required libraries
library(plyr)
library(dplyr)
library(tibble)
library(readxl)
library(ggplot2)
library(rpart)
library(DataExplorer)
library(ggthemes)
library(grid)
library(gridExtra)
library(factoextra)
library(FactoMineR)
library(forcats)
library(mice)
library(VIM)
... | /Employee_Absenteeism.R | no_license | harish51/Employee_Absenteeism | R | false | false | 11,014 | r | #Clearing RAM
rm(list = ls())
#importing all the required libraries
library(plyr)
library(dplyr)
library(tibble)
library(readxl)
library(ggplot2)
library(rpart)
library(DataExplorer)
library(ggthemes)
library(grid)
library(gridExtra)
library(factoextra)
library(FactoMineR)
library(forcats)
library(mice)
library(VIM)
... |
# Save the commands used during the session
savehistory(file="mylog.Rhistory")
# Install the following packages:
install.packages("foreign")
library(foreign)
install.packages("car")
install.packages("Hmisc")
install.packages("reshape")
library(dplyr)
advertising <- read.csv(file = 'advertising.csv')... | /abel_keya_week12_IP_Final.R | no_license | abel-keya/Abel_Keya_DS-week12-IP-Project-Wrangle-and-Analyze-Data-with-R | R | false | false | 15,467 | r |
# Save the commands used during the session
savehistory(file="mylog.Rhistory")
# Install the following packages:
install.packages("foreign")
library(foreign)
install.packages("car")
install.packages("Hmisc")
install.packages("reshape")
library(dplyr)
advertising <- read.csv(file = 'advertising.csv')... |
# dBetaBinom
#' A beta binomial distribution and beta function for use in \code{nimble} models
#'
#' \code{dBetaBinom} and \code{dBetaBinom_One} provide a beta binomial
#' distribution that can be used directly from R or in \code{nimble}
#' models. These are also used by beta binomial variations of dNmixture distributi... | /R/dBetaBinom.R | no_license | cran/nimbleEcology | R | false | false | 4,954 | r | # dBetaBinom
#' A beta binomial distribution and beta function for use in \code{nimble} models
#'
#' \code{dBetaBinom} and \code{dBetaBinom_One} provide a beta binomial
#' distribution that can be used directly from R or in \code{nimble}
#' models. These are also used by beta binomial variations of dNmixture distributi... |
#' remove consecutive duplicates
#'
#' @param spreadValues
#'
#' @return
#' @export
removeConsecutiveDuplicates <- function(spreadValues){
spreadValues <- as.matrix(spreadValues)
uv <- unique(spreadValues)
tra <- c()
for(i in uv){
ind <- which(spreadValues == i)
tr <- which(diff(ind) == 1)
if(length(tr)... | /R/bin.R | no_license | nickmckay/compositeR | R | false | false | 8,931 | r | #' remove consecutive duplicates
#'
#' @param spreadValues
#'
#' @return
#' @export
removeConsecutiveDuplicates <- function(spreadValues){
spreadValues <- as.matrix(spreadValues)
uv <- unique(spreadValues)
tra <- c()
for(i in uv){
ind <- which(spreadValues == i)
tr <- which(diff(ind) == 1)
if(length(tr)... |
library(plotrix)
library(mvtnorm)
# make animation panes
cumu <- c(0,0,0,0)
nrep <- 10000
for(i in 1:nrep){
print(i)
# sample center of projectile, with sigma reflecting accuracy @ hitting the origin, currently symmetrically distributed according to two univariate normals
centerProjectile <- rmvnorm(1, sigma = d... | /grad_school/dartBoard.R | no_license | NikVetr/minor_scripts | R | false | false | 8,548 | r | library(plotrix)
library(mvtnorm)
# make animation panes
cumu <- c(0,0,0,0)
nrep <- 10000
for(i in 1:nrep){
print(i)
# sample center of projectile, with sigma reflecting accuracy @ hitting the origin, currently symmetrically distributed according to two univariate normals
centerProjectile <- rmvnorm(1, sigma = d... |
library(scales)
library(reshape)
library(ggplot2)
############################################## analyse poliblog from class sLDA #################################################
trueLabelsPath='/Users/mjankowski/doc/workspace/blei/unmodified/class-slda/sample-data/poliblog/poliblog.ratings.txt'
trueLabels <- loadLa... | /analyseClassSLDAModels.R | no_license | macjankowski/pub_lda | R | false | false | 16,508 | r | library(scales)
library(reshape)
library(ggplot2)
############################################## analyse poliblog from class sLDA #################################################
trueLabelsPath='/Users/mjankowski/doc/workspace/blei/unmodified/class-slda/sample-data/poliblog/poliblog.ratings.txt'
trueLabels <- loadLa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gt_RasterLayer-methods.R
\docType{methods}
\name{gt_RasterLayer-methods}
\alias{as.matrix,gt_RasterLayer-method}
\alias{as.raster,gt_RasterLayer-method}
\alias{crs,gt_RasterLayer-method}
\alias{extent,gt_RasterLayer-method}
\alias{gt_RasterLa... | /man/gt_RasterLayer-methods.Rd | no_license | jeffreyhanson/geotrellis | R | false | true | 1,555 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gt_RasterLayer-methods.R
\docType{methods}
\name{gt_RasterLayer-methods}
\alias{as.matrix,gt_RasterLayer-method}
\alias{as.raster,gt_RasterLayer-method}
\alias{crs,gt_RasterLayer-method}
\alias{extent,gt_RasterLayer-method}
\alias{gt_RasterLa... |
# Jake comments
# 1. Update based on new dataForGres.txt file.
# 2. Subset using column names, rather than position index.
# 3. Path for output data is broken.
# Our objective is to compare our observed emission rate data to Gres predicted
# values. Gres reports an annual average flux rate (i.e. mean of the 12-monthl... | /scripts/annualizeEmissions.R | no_license | jbeaulie/gRes | R | false | false | 8,332 | r | # Jake comments
# 1. Update based on new dataForGres.txt file.
# 2. Subset using column names, rather than position index.
# 3. Path for output data is broken.
# Our objective is to compare our observed emission rate data to Gres predicted
# values. Gres reports an annual average flux rate (i.e. mean of the 12-monthl... |
## The purpose of these 2 functions is to cache potentially time-consuming computation of the inverse of a matrix.
## makeCacheMatrix creates a special "matrix" as a list of functions to set/get the value of the matrix and set/get the value of its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
... | /cachematrix.R | no_license | capron10/ProgrammingAssignment2 | R | false | false | 1,334 | r | ## The purpose of these 2 functions is to cache potentially time-consuming computation of the inverse of a matrix.
## makeCacheMatrix creates a special "matrix" as a list of functions to set/get the value of the matrix and set/get the value of its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
... |
#------------------------------------------------------#
#Coursera Getting and Cleaning Data
#------------------------------------------------------#
#Load the necessary packages for the assignment
library(plyr)
library(downloader)
library(knitr)
#Start by unzipping the file if it is not in the directory and has no... | /run_analysis.R | no_license | Yashgujre/cleaning | R | false | false | 3,044 | r | #------------------------------------------------------#
#Coursera Getting and Cleaning Data
#------------------------------------------------------#
#Load the necessary packages for the assignment
library(plyr)
library(downloader)
library(knitr)
#Start by unzipping the file if it is not in the directory and has no... |
# Amy Solman amy.solman19@imperial.ac.uk
# 17th October 2019
# apply1.R
## Build a matrix of 100 normally distributed, random numbers, 10 rows by 10 columns
M <- matrix(rnorm(100), 10, 10)
## Take the mean of each row
RowMeans <-apply(M, 1, mean)
print(RowMeans)
## Now the variance
RowVars <- apply(M, 1, var)
print... | /Week3/Code/apply1.R | no_license | amysolman/CMEECourseWork | R | false | false | 389 | r | # Amy Solman amy.solman19@imperial.ac.uk
# 17th October 2019
# apply1.R
## Build a matrix of 100 normally distributed, random numbers, 10 rows by 10 columns
M <- matrix(rnorm(100), 10, 10)
## Take the mean of each row
RowMeans <-apply(M, 1, mean)
print(RowMeans)
## Now the variance
RowVars <- apply(M, 1, var)
print... |
print(spplot.vcov(cok.maps, cuts=8,
col.regions=grey.colors(9, 0.9, 0.45, 2.2)))
| /docs/book/geos-056.R | permissive | r-spatial/asdar-book.org | R | false | false | 84 | r | print(spplot.vcov(cok.maps, cuts=8,
col.regions=grey.colors(9, 0.9, 0.45, 2.2)))
|
waldOrdinal = function(target, dataset, xIndex, csIndex, wei = NULL, dataInfo = NULL, univariateModels = NULL, hash = FALSE, stat_hash = NULL, pvalue_hash = NULL, robust = FALSE)
{
csIndex[ which( is.na(csIndex) ) ] = 0
if (hash) {
csIndex2 = csIndex[which(csIndex!=0)]
csIndex2 = sort(csIndex2)
xc... | /R/WaldOrdinal.R | no_license | JokerWhy233/MXM | R | false | false | 4,091 | r | waldOrdinal = function(target, dataset, xIndex, csIndex, wei = NULL, dataInfo = NULL, univariateModels = NULL, hash = FALSE, stat_hash = NULL, pvalue_hash = NULL, robust = FALSE)
{
csIndex[ which( is.na(csIndex) ) ] = 0
if (hash) {
csIndex2 = csIndex[which(csIndex!=0)]
csIndex2 = sort(csIndex2)
xc... |
# incoming message function to call return.cmd
# ------------------- ---------------- -------------
addRMessageHandler("calculateSurvivalCurves", "calculateSurvivalCurves") # displaySurvivalCurves
#-----------------------------------... | /Oncoscape/R/wsSurvival.R | permissive | oncoscape/Oncoscape | R | false | false | 1,288 | r | # incoming message function to call return.cmd
# ------------------- ---------------- -------------
addRMessageHandler("calculateSurvivalCurves", "calculateSurvivalCurves") # displaySurvivalCurves
#-----------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classModel.R
\name{classModel}
\alias{classModel}
\title{classModel}
\usage{
classModel(x, y, z, mode = "classification", ...)
}
\arguments{
\item{x}{Object of class \emph{data.frame}.}
\item{y}{A vector of class \emph{character} ... | /man/classModel.Rd | no_license | cran/fieldRS | R | false | true | 2,894 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classModel.R
\name{classModel}
\alias{classModel}
\title{classModel}
\usage{
classModel(x, y, z, mode = "classification", ...)
}
\arguments{
\item{x}{Object of class \emph{data.frame}.}
\item{y}{A vector of class \emph{character} ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/smcfcs.r
\docType{data}
\name{ex_coxquad}
\alias{ex_coxquad}
\title{Simulated example data with time to event outcome and quadratic covariate effects}
\format{A data frame with 1000 rows and 6 variables:
\describe{
\item{t}{Time to ... | /man/ex_coxquad.Rd | no_license | ekstroem/smcfcs | R | false | false | 959 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/smcfcs.r
\docType{data}
\name{ex_coxquad}
\alias{ex_coxquad}
\title{Simulated example data with time to event outcome and quadratic covariate effects}
\format{A data frame with 1000 rows and 6 variables:
\describe{
\item{t}{Time to ... |
## READ DATA
Sys.setlocale("LC_TIME", "ENGLISH")
data <- read.table("household_power_consumption.txt", header = TRUE, sep = ";",
stringsAsFactors=FALSE)
#FILTER IRRELEVANT DAYS
dataf <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
# Set time date in new column
dataf <- within(dataf,DateTime <- ... | /plot2.R | no_license | GitGadi/ExData_Plotting1 | R | false | false | 588 | r | ## READ DATA
Sys.setlocale("LC_TIME", "ENGLISH")
data <- read.table("household_power_consumption.txt", header = TRUE, sep = ";",
stringsAsFactors=FALSE)
#FILTER IRRELEVANT DAYS
dataf <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
# Set time date in new column
dataf <- within(dataf,DateTime <- ... |
library(readr)
cities <- read_csv("data-raw/cities.csv")
coords <- ggmap::geocode(cities$city, output = "more")
write_csv(coords, "data-raw/coords.csv")
# At this point the file is edited by hand to introduce errors
geocoded_cities <- read_csv("data-raw/cities.csv")
devtools::use_data(geocoded_cities)
| /data-raw/prep-cities.R | permissive | dpprdan/geochecker | R | false | false | 304 | r | library(readr)
cities <- read_csv("data-raw/cities.csv")
coords <- ggmap::geocode(cities$city, output = "more")
write_csv(coords, "data-raw/coords.csv")
# At this point the file is edited by hand to introduce errors
geocoded_cities <- read_csv("data-raw/cities.csv")
devtools::use_data(geocoded_cities)
|
##### Project code: Net-Zero Toolkit for modelling the financial impacts of low-carbon transition scenarios
##### Date of last edit: 24/02/2019
##### Code author: Justine Schafer
##### Edited by: Shyamal Patel
##### Description: This script uses cleaned patent and revenue data for Vivid ca... | /Models/2_Cleantech_markets/Cleantech_markets.R | no_license | Allisterh/Climate_change_financial-IPR | R | false | false | 16,230 | r | ##### Project code: Net-Zero Toolkit for modelling the financial impacts of low-carbon transition scenarios
##### Date of last edit: 24/02/2019
##### Code author: Justine Schafer
##### Edited by: Shyamal Patel
##### Description: This script uses cleaned patent and revenue data for Vivid ca... |
#There is a library that you use when you are working with Excel spreadsheet files
#If you do not already have the library installed then make sure you execute this command:
#install.packages("xlsx")
setwd("/Users/cfaw/datasciencecoursera/getclean_data")
library(xlsx)
fileURL <- "https://data.baltimorecity.gov/api/vie... | /getclean_data/week1/excel_lecture.R | no_license | carterfawson/datasciencecoursera | R | false | false | 1,370 | r | #There is a library that you use when you are working with Excel spreadsheet files
#If you do not already have the library installed then make sure you execute this command:
#install.packages("xlsx")
setwd("/Users/cfaw/datasciencecoursera/getclean_data")
library(xlsx)
fileURL <- "https://data.baltimorecity.gov/api/vie... |
library(doBy)
#basic fucntion
s.err <- function(x){
err <- sd(x)/sqrt(length(x))
return(err)
}
#read the data
lma <- read.csv()
thick <- read.csv()
#check that everthing is in order
head(lma)
str(lma)
head(thick)
str(thick)
#have a quick look at the data
hist(lma$LMA_gr_m2)
#it doesn't look very good try transforma... | /anvoas_for_Noelia.R | no_license | TerefiGimeno/leafOnto | R | false | false | 1,429 | r | library(doBy)
#basic fucntion
s.err <- function(x){
err <- sd(x)/sqrt(length(x))
return(err)
}
#read the data
lma <- read.csv()
thick <- read.csv()
#check that everthing is in order
head(lma)
str(lma)
head(thick)
str(thick)
#have a quick look at the data
hist(lma$LMA_gr_m2)
#it doesn't look very good try transforma... |
library(daewr)
### Name: EEw3
### Title: D-efficient Estimation Equivalent Response Surface Designs
### Aliases: EEw3
### Keywords: datagen
### ** Examples
EEw3()
EEw3('EE22R11WP')
EEw3('EE22R11WP', randomize=TRUE)
EEw3('EE48R12WP')
EEw3('EE48R12WP', randomize=TRUE)
| /data/genthat_extracted_code/daewr/examples/EEw3.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 279 | r | library(daewr)
### Name: EEw3
### Title: D-efficient Estimation Equivalent Response Surface Designs
### Aliases: EEw3
### Keywords: datagen
### ** Examples
EEw3()
EEw3('EE22R11WP')
EEw3('EE22R11WP', randomize=TRUE)
EEw3('EE48R12WP')
EEw3('EE48R12WP', randomize=TRUE)
|
#Week 3 code
tidycode <- read.csv("data/week3test.csv")
#basic stuffs
### Vector Types ###
str() #calls the structure of an object - will give the type of info a vector contains, how many things are contained, and a list of the values contained
weight_g <- c(1,5,1500,12)
weight_g <- c(weight_g,105) #adds another v... | /scripts/week_3_code.R | no_license | gge-ucd/r-davis-in-class-arkorabik | R | false | false | 1,986 | r | #Week 3 code
tidycode <- read.csv("data/week3test.csv")
#basic stuffs
### Vector Types ###
str() #calls the structure of an object - will give the type of info a vector contains, how many things are contained, and a list of the values contained
weight_g <- c(1,5,1500,12)
weight_g <- c(weight_g,105) #adds another v... |
#############################################################################
#
# This file is a part of the R package "RoughSets".
#
# Author: Lala Septem Riza and Andrzej Janusz
# Supervisors: Chris Cornelis, Francisco Herrera, Dominik Slezak and Jose Manuel Benitez
# Copyright (c):
# DiCITS Lab, Sci2s grou... | /R/FeatureSelection.R | no_license | darekjk/RoughSets | R | false | false | 85,579 | r | #############################################################################
#
# This file is a part of the R package "RoughSets".
#
# Author: Lala Septem Riza and Andrzej Janusz
# Supervisors: Chris Cornelis, Francisco Herrera, Dominik Slezak and Jose Manuel Benitez
# Copyright (c):
# DiCITS Lab, Sci2s grou... |
# read table and ensure data are not imported as factors
x <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";",
stringsAsFactors = FALSE, na.strings = "?")
# subset the data
subx <- subset(x, x$Date == "1/2/2007" | x$Date == "2/2/2007")
# convert Global_active_power to numeric d... | /plot1.R | no_license | alexmaccalman/ExData_Plotting1 | R | false | false | 563 | r | # read table and ensure data are not imported as factors
x <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";",
stringsAsFactors = FALSE, na.strings = "?")
# subset the data
subx <- subset(x, x$Date == "1/2/2007" | x$Date == "2/2/2007")
# convert Global_active_power to numeric d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomics_objects.R
\name{ImportVariantsRequest.infoMergeConfig}
\alias{ImportVariantsRequest.infoMergeConfig}
\title{ImportVariantsRequest.infoMergeConfig Object}
\usage{
ImportVariantsRequest.infoMergeConfig()
}
\value{
ImportVariantsRequest... | /googlegenomicsv1.auto/man/ImportVariantsRequest.infoMergeConfig.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomics_objects.R
\name{ImportVariantsRequest.infoMergeConfig}
\alias{ImportVariantsRequest.infoMergeConfig}
\title{ImportVariantsRequest.infoMergeConfig Object}
\usage{
ImportVariantsRequest.infoMergeConfig()
}
\value{
ImportVariantsRequest... |
### Peru Leaflet Map for Shiny
## Load libraries
library(leaflet)
library(webshot)
library(sf)
library(raster)
library(dplyr)
library(htmlwidgets)
library(htmltools)
# # simple peru map
# make_peru_map <- function(){
# pmap <- leaflet() %>%
# addProviderTiles(providers$Esri.W... | /leaflet_peru.R | no_license | varshavijay101/PeruMap | R | false | false | 5,443 | r | ### Peru Leaflet Map for Shiny
## Load libraries
library(leaflet)
library(webshot)
library(sf)
library(raster)
library(dplyr)
library(htmlwidgets)
library(htmltools)
# # simple peru map
# make_peru_map <- function(){
# pmap <- leaflet() %>%
# addProviderTiles(providers$Esri.W... |
A basic concept in (statistical) programming is called a variable.
A variable allows you to store a value (e.g. 4) or an object (e.g. a function description) in R. You can then
later use this variable's name to easily access the value or the object that is stored within this variable.
You can assign a value 4 to a v... | /R-Programming/1_3.r | no_license | Testudinate/datacamp | R | false | false | 642 | r | A basic concept in (statistical) programming is called a variable.
A variable allows you to store a value (e.g. 4) or an object (e.g. a function description) in R. You can then
later use this variable's name to easily access the value or the object that is stored within this variable.
You can assign a value 4 to a v... |
rankhospital <- function(data, outcol, num = "best") {
## Read outcome data
outcomedata <- data
#outcome.state <- subset(outcomedata, State==state) #select state
order.outcome <- order(as.numeric(outcomedata[,outcol]), outcomedata[,2]) #sort by outcome
HName <- outcomedata$Hospi... | /rprog3/rankall.R | no_license | lethezhou/RProg | R | false | false | 2,276 | r | rankhospital <- function(data, outcol, num = "best") {
## Read outcome data
outcomedata <- data
#outcome.state <- subset(outcomedata, State==state) #select state
order.outcome <- order(as.numeric(outcomedata[,outcol]), outcomedata[,2]) #sort by outcome
HName <- outcomedata$Hospi... |
#' Token types
#'
#' @param values A character string of possible values. See `values_token`
#' in examples below.
#'
#' @details
#' This parameter is used in `textrecipes::step_tokenize()`.
#' @examples
#' values_token
#' token()
#' @export
token <- function(values = values_token) {
new_qual_param(
type = "char... | /R/param_token.R | no_license | thecodemasterk/dials | R | false | false | 658 | r | #' Token types
#'
#' @param values A character string of possible values. See `values_token`
#' in examples below.
#'
#' @details
#' This parameter is used in `textrecipes::step_tokenize()`.
#' @examples
#' values_token
#' token()
#' @export
token <- function(values = values_token) {
new_qual_param(
type = "char... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg-plots.R
\name{ggally_ratio}
\alias{ggally_ratio}
\title{Plots a mosaic plot}
\usage{
ggally_ratio(
data,
mapping = do.call(ggplot2::aes_string, as.list(colnames(data)[1:2])),
...,
floor = 0,
ceiling = NULL
)
}
\arguments{
\item{d... | /man/ggally_ratio.Rd | no_license | vlepori/ggally | R | false | true | 1,166 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg-plots.R
\name{ggally_ratio}
\alias{ggally_ratio}
\title{Plots a mosaic plot}
\usage{
ggally_ratio(
data,
mapping = do.call(ggplot2::aes_string, as.list(colnames(data)[1:2])),
...,
floor = 0,
ceiling = NULL
)
}
\arguments{
\item{d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prey_survival_simulation.R
\name{calculate_final_status}
\alias{calculate_final_status}
\title{Final Status of Prey Fish}
\usage{
calculate_final_status(fish_frame, path_length)
}
\arguments{
\item{fish_frame}{dataframe with prey fish, length... | /man/calculate_final_status.Rd | permissive | mrguyperson/predpackplus | R | false | true | 837 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prey_survival_simulation.R
\name{calculate_final_status}
\alias{calculate_final_status}
\title{Final Status of Prey Fish}
\usage{
calculate_final_status(fish_frame, path_length)
}
\arguments{
\item{fish_frame}{dataframe with prey fish, length... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npdims.R
\name{npdims.nlists}
\alias{npdims.nlists}
\title{Number of Parameter Dimensions}
\usage{
\method{npdims}{nlists}(x, ...)
}
\arguments{
\item{x}{An object.}
\item{...}{Other arguments passed to methods.}
}
\value{
A named integer ve... | /man/npdims.nlists.Rd | permissive | krlmlr/nlist | R | false | true | 727 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npdims.R
\name{npdims.nlists}
\alias{npdims.nlists}
\title{Number of Parameter Dimensions}
\usage{
\method{npdims}{nlists}(x, ...)
}
\arguments{
\item{x}{An object.}
\item{...}{Other arguments passed to methods.}
}
\value{
A named integer ve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataflow_objects.R
\name{SourceOperationRequest}
\alias{SourceOperationRequest}
\title{SourceOperationRequest Object}
\usage{
SourceOperationRequest(getMetadata = NULL, split = NULL)
}
\arguments{
\item{getMetadata}{Information about a reques... | /googledataflowv1b3.auto/man/SourceOperationRequest.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 697 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataflow_objects.R
\name{SourceOperationRequest}
\alias{SourceOperationRequest}
\title{SourceOperationRequest Object}
\usage{
SourceOperationRequest(getMetadata = NULL, split = NULL)
}
\arguments{
\item{getMetadata}{Information about a reques... |
library(doParallel)
library(CCA)
library(MatrixCorrelation)
library(caret)
library(glmnet)
library(foreach)
source("Study Strap Functions.R")
source("SimFn.R")
source("ss.ar.caret.mSSL.R")
source("studyStrap.predict.caret.mSSL.R")
source("fatTrim.R")
source("SSE.caret.mSSL.R")
source("merge.caret.mSSL.R")
source("ss.c... | /Simulations/Simulation R Code/Sims5_Test27.R | permissive | gloewing/studyStrap_Figures | R | false | false | 28,334 | r | library(doParallel)
library(CCA)
library(MatrixCorrelation)
library(caret)
library(glmnet)
library(foreach)
source("Study Strap Functions.R")
source("SimFn.R")
source("ss.ar.caret.mSSL.R")
source("studyStrap.predict.caret.mSSL.R")
source("fatTrim.R")
source("SSE.caret.mSSL.R")
source("merge.caret.mSSL.R")
source("ss.c... |
#' @title Create the properties file
#'
#' @description Create the \code{properties.rds} file, which includes the path to the directory
#' where the exercises are downloaded into.
#'
#' @usage create_properties_file(tmcr_projects = "tmcr-projects")
#'
#' @param tmcr_projects Name of the directory where the exercises ar... | /tmcrstudioaddin/R/PropertiesHandler.R | no_license | RTMC/tmc-rstudio | R | false | false | 3,871 | r | #' @title Create the properties file
#'
#' @description Create the \code{properties.rds} file, which includes the path to the directory
#' where the exercises are downloaded into.
#'
#' @usage create_properties_file(tmcr_projects = "tmcr-projects")
#'
#' @param tmcr_projects Name of the directory where the exercises ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.