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 |
|---|---|---|---|---|---|---|---|---|---|
library(tidyverse)
# Load new 311 dataset with matching sections after 12/18/2018
building_complaints <- read.csv('311_Service_Requests.csv') %>%
mutate_all(tolower) %>%
rename_all(tolower) %>%
mutate(created_date = as.Date(substr(created_date, 1, 10), format='%m/%d/%Y')) %>%
filter(created_da... | /Create_Building_Complaints.R | no_license | PrestonMWF/U.Chicago-Capstone--City-of-Chicago-Building-Inspection-Optimization | R | false | false | 550 | r | library(tidyverse)
# Load new 311 dataset with matching sections after 12/18/2018
building_complaints <- read.csv('311_Service_Requests.csv') %>%
mutate_all(tolower) %>%
rename_all(tolower) %>%
mutate(created_date = as.Date(substr(created_date, 1, 10), format='%m/%d/%Y')) %>%
filter(created_da... |
# Факторы.
fruits <- c("apple", "orange", "orange", "banana", "apple", "orange")
fruits <- as.factor(fruits)
# Число уровней фаутора
levels(fruits)
# Количество фруктов каждого вида
table(fruits)
# Диаграмма "вид фруктов-количество"
plot(fruits)
# Уровень, встречающийся чаще всего
which.max(table(fruits))
| /tutorial/scripts/factors__dates/factors.R | no_license | dkhramov/iad_2020 | R | false | false | 421 | r | # Факторы.
fruits <- c("apple", "orange", "orange", "banana", "apple", "orange")
fruits <- as.factor(fruits)
# Число уровней фаутора
levels(fruits)
# Количество фруктов каждого вида
table(fruits)
# Диаграмма "вид фруктов-количество"
plot(fruits)
# Уровень, встречающийся чаще всего
which.max(table(fruits))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-control.R
\name{accepted_controls_by_operation}
\alias{accepted_controls_by_operation}
\title{Return the Accepted Control Arguments by Operation}
\usage{
accepted_controls_by_operation(
operation = c("create", "insert", "update", "ups... | /man/accepted_controls_by_operation.Rd | permissive | carlganz/salesforcer | R | false | true | 634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-control.R
\name{accepted_controls_by_operation}
\alias{accepted_controls_by_operation}
\title{Return the Accepted Control Arguments by Operation}
\usage{
accepted_controls_by_operation(
operation = c("create", "insert", "update", "ups... |
#' Make PCL matrix part one
#'
#' \code{make_matrix_part_one} produces a matrix of, x, z values in
#' coordinate space with the number and type of each LiDAR
#' return in each x, z bin combination
#'
#'
#' @param df data frame of PCL data that has been processed with
#'
#' @keywords matrix
#' @return sorted m... | /R/make_matrix_part_one.R | no_license | cran/forestr | R | false | false | 1,331 | r | #' Make PCL matrix part one
#'
#' \code{make_matrix_part_one} produces a matrix of, x, z values in
#' coordinate space with the number and type of each LiDAR
#' return in each x, z bin combination
#'
#'
#' @param df data frame of PCL data that has been processed with
#'
#' @keywords matrix
#' @return sorted m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateNA.R
\name{CalculateNA}
\alias{CalculateNA}
\title{Calculate percentage and number of missing values for each variables}
\usage{
CalculateNA(df)
}
\arguments{
\item{df}{This is a dataframe}
}
\value{
The percentage and number of NAs ... | /man/CalculateNA.Rd | permissive | anyiheng119/maetool | R | false | true | 425 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateNA.R
\name{CalculateNA}
\alias{CalculateNA}
\title{Calculate percentage and number of missing values for each variables}
\usage{
CalculateNA(df)
}
\arguments{
\item{df}{This is a dataframe}
}
\value{
The percentage and number of NAs ... |
######
# from server.R
require(shiny)
require(plotly)
require(lubridate)
require(dplyr) # imports magrittr (pipe operators "%>%")
require(DT)
require(shinyjs)
require(oce)
require(shinyWidgets)
# include function files
source('App/LSM303-file-helpers.R')
#####
TSAccelMag <- Read_LSM303_csv(
fileName = 'App/Data/AKs... | /Scripts/stickplot_second_y_axis_20180610.R | no_license | abby-lammers/LSM303-Data-Processing | R | false | false | 2,736 | r | ######
# from server.R
require(shiny)
require(plotly)
require(lubridate)
require(dplyr) # imports magrittr (pipe operators "%>%")
require(DT)
require(shinyjs)
require(oce)
require(shinyWidgets)
# include function files
source('App/LSM303-file-helpers.R')
#####
TSAccelMag <- Read_LSM303_csv(
fileName = 'App/Data/AKs... |
## Getting full dataset
data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y")
## Subsetting the data
data... | /plot1.R | no_license | SuperJayBird/Exploratory-Data-Analysis | R | false | false | 1,192 | r | ## Getting full dataset
data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y")
## Subsetting the data
data... |
#' Convert a list of classifications to a tree.
#'
#' This function converts a list of hierarchies for individual species into
#' a single species by taxonomic level matrix, then calculates a distance
#' matrix based on taxonomy alone, and outputs either a phylo or dist object.
#' See details for more information.
#'
#... | /R/class2tree.R | permissive | jarioksa/taxize | R | false | false | 15,575 | r | #' Convert a list of classifications to a tree.
#'
#' This function converts a list of hierarchies for individual species into
#' a single species by taxonomic level matrix, then calculates a distance
#' matrix based on taxonomy alone, and outputs either a phylo or dist object.
#' See details for more information.
#'
#... |
## New Analysis File As Of 5/24/19 ##
# Load Necessary Libraries #
library(foreign)
library(reshape)
library(weights)
library(data.table)
library(asciiSetupReader)
library(memisc)
library(haven)
# Load File Information
load("EachFileExports/02-01_ParseFiles.rdata")
load("EachFileExports/02-02_ToplineFiles.rdata")
lo... | /03_ImportDatasets.r | no_license | umisrcps/survey-question-database | R | false | false | 10,867 | r | ## New Analysis File As Of 5/24/19 ##
# Load Necessary Libraries #
library(foreign)
library(reshape)
library(weights)
library(data.table)
library(asciiSetupReader)
library(memisc)
library(haven)
# Load File Information
load("EachFileExports/02-01_ParseFiles.rdata")
load("EachFileExports/02-02_ToplineFiles.rdata")
lo... |
mice.impute.2l.contextual.norm <-
function (y, ry, x, type , ridge = 10^(-5) , imputationWeights = NULL ,
interactions=NULL , quadratics = NULL , ...){
vname <- get("vname", pos = parent.frame()) # get variable name
newstate <- get( "newstate" , pos = parent.frame() )
# dat... | /R/mice.impute.2l.contextual.norm.R | no_license | cksun/miceadds | R | false | false | 3,224 | r | mice.impute.2l.contextual.norm <-
function (y, ry, x, type , ridge = 10^(-5) , imputationWeights = NULL ,
interactions=NULL , quadratics = NULL , ...){
vname <- get("vname", pos = parent.frame()) # get variable name
newstate <- get( "newstate" , pos = parent.frame() )
# dat... |
myd= read.table("Banking.txt", header=T)
pairs(myd)
cor(myd)
hist()
hist(Balance)
fit <- lm(Balance ~ Age + Education + Income, data =myd)
summary(fit)
fit2 <- lm(Balance ~ Age + Income, data =myd)
summary(fit2)
hist(Balance)
hist()
Balance
hist(Banking$Balance, xlab="Balance", prob=TRUE, main="Histogram")
| /simple regression.R | no_license | hyunyouchoi/R-Studio | R | false | false | 308 | r | myd= read.table("Banking.txt", header=T)
pairs(myd)
cor(myd)
hist()
hist(Balance)
fit <- lm(Balance ~ Age + Education + Income, data =myd)
summary(fit)
fit2 <- lm(Balance ~ Age + Income, data =myd)
summary(fit2)
hist(Balance)
hist()
Balance
hist(Banking$Balance, xlab="Balance", prob=TRUE, main="Histogram")
|
# Loading the "dplyr" and "tidyr" libraries
library(dplyr)
library(tidyr)
unzip("exdata_data_household_power_consumption.zip")
# Checking names of the directories available in our woring directory
# in order to localise the one concerning us (e.g. "UCI HAR Dataset")
list.dirs(getwd())
list.files(getwd())
my_data <... | /plot1.R | no_license | MillaThittaya/ExData_Plotting1 | R | false | false | 1,123 | r |
# Loading the "dplyr" and "tidyr" libraries
library(dplyr)
library(tidyr)
unzip("exdata_data_household_power_consumption.zip")
# Checking names of the directories available in our woring directory
# in order to localise the one concerning us (e.g. "UCI HAR Dataset")
list.dirs(getwd())
list.files(getwd())
my_data <... |
library(devtools)
install.packages("rlang")
install_github("OnofriAndreaPG/aomisc")
library(aomisc)
# SELF STARTERS ######################
#Negative exponential function
rm(list=ls())
set.seed(1234)
X <- c(1, 3, 5, 7, 9, 11, 13, 20)
a <- 20; c <- 0.3
Ye <- negExp.fun(X, a, c)
epsilon <- rnorm(8, 0, 0.5)
Y <- Ye + epsi... | /doc/testAomisc.R | no_license | santana-daniela/aomisc | R | false | false | 4,170 | r | library(devtools)
install.packages("rlang")
install_github("OnofriAndreaPG/aomisc")
library(aomisc)
# SELF STARTERS ######################
#Negative exponential function
rm(list=ls())
set.seed(1234)
X <- c(1, 3, 5, 7, 9, 11, 13, 20)
a <- 20; c <- 0.3
Ye <- negExp.fun(X, a, c)
epsilon <- rnorm(8, 0, 0.5)
Y <- Ye + epsi... |
library(tidyverse)
library(stringr)
library(tictoc)
pmedfolder = "C:/Users/Gemma/Documents/UNISA/Honours/Project 2017/HONPR2C Coding/Algorithm1_Greedy/Problem"
###################################
# Using Whitaker's A Fast Algorithm For The Greedy Interchange For Large-Scale Clustering And Median Location Probl... | /Algorithm 3 - Teitz and Bart Interchange.R | no_license | GemmaDawson/honours_project | R | false | false | 2,657 | r | library(tidyverse)
library(stringr)
library(tictoc)
pmedfolder = "C:/Users/Gemma/Documents/UNISA/Honours/Project 2017/HONPR2C Coding/Algorithm1_Greedy/Problem"
###################################
# Using Whitaker's A Fast Algorithm For The Greedy Interchange For Large-Scale Clustering And Median Location Probl... |
# Load "dplyr" package.
library(dplyr)
# Read features.txt file.
features <- read.csv("UCI HAR Dataset/features.txt", sep=" ", header=FALSE)
# Retrieve 2nd column from features_list to append as column name in both Test and Train data set.
column_name <- features[,2]
# Read Train and Test datasets.
TrainDataSet <- r... | /run_analysis.R | no_license | jaihokashi/Getting_and_Cleaning_Data | R | false | false | 2,609 | r | # Load "dplyr" package.
library(dplyr)
# Read features.txt file.
features <- read.csv("UCI HAR Dataset/features.txt", sep=" ", header=FALSE)
# Retrieve 2nd column from features_list to append as column name in both Test and Train data set.
column_name <- features[,2]
# Read Train and Test datasets.
TrainDataSet <- r... |
#' @name llogistic
#' @examples qllogistic(0.2, 0.5, 2)
#' @export
qllogistic = function(p, m, phi, lower.tail = TRUE, log.p = FALSE) {
q = (m * p^(1/phi))/((1 - p)^(1/phi) * (1 - m) + p^(1/phi) * m)
if (lower.tail == FALSE) {
q = 1 - q
}
if (log.p == TRUE) {
q = log(q)
}
return(q)
}
| /R/qllogistic.R | no_license | cran/llogistic | R | false | false | 318 | r | #' @name llogistic
#' @examples qllogistic(0.2, 0.5, 2)
#' @export
qllogistic = function(p, m, phi, lower.tail = TRUE, log.p = FALSE) {
q = (m * p^(1/phi))/((1 - p)^(1/phi) * (1 - m) + p^(1/phi) * m)
if (lower.tail == FALSE) {
q = 1 - q
}
if (log.p == TRUE) {
q = log(q)
}
return(q)
}
|
# Uses a set of polygonal buffers around the WHSA2 points to independently
# verify the neighborhood calculations of the Python code.
require(rgdal)
require(raster)
data_dir <- 'M:/Data/Ghana/Egocentric_NBH_Data/'
# Read the WHSA2 buffer polygon shapefile
buffers <- readOGR("M:/Data/Ghana/WHSA", "whsa2_100m_buffer"... | /8_validate_output.R | no_license | azvoleff/egocentric_nbhs | R | false | false | 1,471 | r | # Uses a set of polygonal buffers around the WHSA2 points to independently
# verify the neighborhood calculations of the Python code.
require(rgdal)
require(raster)
data_dir <- 'M:/Data/Ghana/Egocentric_NBH_Data/'
# Read the WHSA2 buffer polygon shapefile
buffers <- readOGR("M:/Data/Ghana/WHSA", "whsa2_100m_buffer"... |
# =====================================
########## Perturbation ###########
# =====================================
### required variables
RetainedSolutionValue <- BestKnownObjectiveValue
RetainedSequence <- LS_Sequence
PerturbationOngoing <- T
PerturbationCount <- 0
Improved <- T
while (PerturbationOngoing == T) {... | /Heuristics/New_Perturbation.R | no_license | TerhiS/ILS_SSP-NPM | R | false | false | 4,759 | r | # =====================================
########## Perturbation ###########
# =====================================
### required variables
RetainedSolutionValue <- BestKnownObjectiveValue
RetainedSequence <- LS_Sequence
PerturbationOngoing <- T
PerturbationCount <- 0
Improved <- T
while (PerturbationOngoing == T) {... |
#' @title Generate classifier calibration data.
#'
#' @description
#' A calibrated classifier is one where the predicted probability of a class closely matches the
#' rate at which that class occurs, e.g. for data points which are assigned a predicted probability
#' of class A of .8, approximately 80 percent of such po... | /R/generateCalibration.R | no_license | jimhester/mlr | R | false | false | 8,619 | r | #' @title Generate classifier calibration data.
#'
#' @description
#' A calibrated classifier is one where the predicted probability of a class closely matches the
#' rate at which that class occurs, e.g. for data points which are assigned a predicted probability
#' of class A of .8, approximately 80 percent of such po... |
\name{bmem.pair.cov}
\alias{bmem.pair.cov}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Covariance matrix estimation based on pairwise deletion}
\description{Covariance matrix estimation based on pairwise deletion}
\usage{
bmem.pair.cov(x)
}
%- maybe also 'usage' for other objects docum... | /man/bmem.pair.cov.Rd | no_license | johnnyzhz/bmemLavaan | R | false | false | 373 | rd | \name{bmem.pair.cov}
\alias{bmem.pair.cov}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Covariance matrix estimation based on pairwise deletion}
\description{Covariance matrix estimation based on pairwise deletion}
\usage{
bmem.pair.cov(x)
}
%- maybe also 'usage' for other objects docum... |
## ---- message = FALSE, warning= FALSE-----------------------------------------
start_val <- as.POSIXct('2016-03-25 08:15:00', tz = 'CET')
seq(start_val, by = 'day', length.out = 4)
seq(start_val, by = 'DSTdays', length.out = 4)
## -----------------------------------------------------------------------------
seq(sta... | /padr/inst/doc/padr_implementation.R | no_license | akhikolla/InformationHouse | R | false | false | 803 | r | ## ---- message = FALSE, warning= FALSE-----------------------------------------
start_val <- as.POSIXct('2016-03-25 08:15:00', tz = 'CET')
seq(start_val, by = 'day', length.out = 4)
seq(start_val, by = 'DSTdays', length.out = 4)
## -----------------------------------------------------------------------------
seq(sta... |
#' Text hashing parameters
#'
#' Used in `textrecipes::step_texthash()`.
#'
#' @inheritParams Laplace
#' @param values A vector of possible values (TRUE or FALSE).
#' @examples
#' num_hash()
#' signed_hash()
#' @export
#' @rdname texthash
num_hash <- function(range = c(8L, 12L), trans = log2_trans()) {
new_quant_para... | /R/param_num_hash.R | no_license | thecodemasterk/dials | R | false | false | 706 | r | #' Text hashing parameters
#'
#' Used in `textrecipes::step_texthash()`.
#'
#' @inheritParams Laplace
#' @param values A vector of possible values (TRUE or FALSE).
#' @examples
#' num_hash()
#' signed_hash()
#' @export
#' @rdname texthash
num_hash <- function(range = c(8L, 12L), trans = log2_trans()) {
new_quant_para... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chime_operations.R
\name{chime_delete_voice_connector}
\alias{chime_delete_voice_connector}
\title{Deletes the specified Amazon Chime Voice Connector}
\usage{
chime_delete_voice_connector(VoiceConnectorId)
}
\arguments{
\item{VoiceConnectorId... | /cran/paws.business.applications/man/chime_delete_voice_connector.Rd | permissive | paws-r/paws | R | false | true | 713 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chime_operations.R
\name{chime_delete_voice_connector}
\alias{chime_delete_voice_connector}
\title{Deletes the specified Amazon Chime Voice Connector}
\usage{
chime_delete_voice_connector(VoiceConnectorId)
}
\arguments{
\item{VoiceConnectorId... |
# install.packages(c("yaml", "jsonlite", "devtools"))
# devtools::install_github("cscheid/rgithub")
# set environment variable GITHUB_TOKEN
suppressMessages(library(yaml))
suppressMessages(library(jsonlite))
suppressMessages(library(github))
message("* setting up context")
ctx <- create.github.context(personal_token ... | /scripts/github_meta.R | no_license | wmurphyrd/htmlwidgetsgallery | R | false | false | 1,106 | r | # install.packages(c("yaml", "jsonlite", "devtools"))
# devtools::install_github("cscheid/rgithub")
# set environment variable GITHUB_TOKEN
suppressMessages(library(yaml))
suppressMessages(library(jsonlite))
suppressMessages(library(github))
message("* setting up context")
ctx <- create.github.context(personal_token ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edgar_rf.R
\name{sec_form_ds}
\alias{sec_form_ds}
\title{SEC Form-D's}
\usage{
sec_form_ds(industries = NULL, form_years = NULL, months = NULL,
nest_data = FALSE, return_message = TRUE)
}
\arguments{
\item{industries}{industries to search o... | /man/sec_form_ds.Rd | permissive | maduhu/fundManageR | R | false | true | 1,621 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edgar_rf.R
\name{sec_form_ds}
\alias{sec_form_ds}
\title{SEC Form-D's}
\usage{
sec_form_ds(industries = NULL, form_years = NULL, months = NULL,
nest_data = FALSE, return_message = TRUE)
}
\arguments{
\item{industries}{industries to search o... |
source('/datascience/projects/statisticallyfit/github/learningstatistics/RStatistics/StatsFormulas.R')
# install.packages("ResourceSelection")
# Penn state stat 504 example:
# https://onlinecourses.science.psu.edu/stat504/node/225
### FITTING LOGISTIC REGRESSION FOR 2X2 TABLE
# | student sm... | /UniPennState_GeneralizedLinearModels/BinaryLogisticRegression/X_One,Discrete,ManyLevels_Smoke.R | no_license | statisticallyfit/RStatistics | R | false | false | 4,101 | r | source('/datascience/projects/statisticallyfit/github/learningstatistics/RStatistics/StatsFormulas.R')
# install.packages("ResourceSelection")
# Penn state stat 504 example:
# https://onlinecourses.science.psu.edu/stat504/node/225
### FITTING LOGISTIC REGRESSION FOR 2X2 TABLE
# | student sm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkgHTML.R
\name{pkgHTML}
\alias{pkgHTML}
\title{Create HTML splash pages for packages}
\usage{
pkgHTML(repo, splashname = "index.html", theme = "bootstrap")
}
\arguments{
\item{repo}{A gRAN repo object}
\item{splashname}{Filename for the HTM... | /man/pkgHTML.Rd | no_license | gmbecker/gRAN | R | false | true | 526 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkgHTML.R
\name{pkgHTML}
\alias{pkgHTML}
\title{Create HTML splash pages for packages}
\usage{
pkgHTML(repo, splashname = "index.html", theme = "bootstrap")
}
\arguments{
\item{repo}{A gRAN repo object}
\item{splashname}{Filename for the HTM... |
#'This script script familiarizes the user with the evaluation of an estimator replicability, loss, error, bias and inefficiency
#', as described in A. Meucci, "Risk and Asset Allocation", Springer, 2005, Chapter 4.
#'
#' @references
#' A. Meucci - "Exercises in Advanced Risk and Portfolio Management" \url{http://symm... | /demo/S_Estimator.R | no_license | runiaruni/Meucci | R | false | false | 4,948 | r | #'This script script familiarizes the user with the evaluation of an estimator replicability, loss, error, bias and inefficiency
#', as described in A. Meucci, "Risk and Asset Allocation", Springer, 2005, Chapter 4.
#'
#' @references
#' A. Meucci - "Exercises in Advanced Risk and Portfolio Management" \url{http://symm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename.R
\name{toCamelCase}
\alias{toCamelCase}
\title{Change to CamelCase}
\usage{
toCamelCase(x)
}
\arguments{
\item{x}{A character vector}
}
\value{
A character vector changed to CamelCase
}
\description{
Change to CamelCase
}
\examples{
t... | /man/toCamelCase.Rd | permissive | hongyuanjia/eplusbuildr | R | false | true | 354 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rename.R
\name{toCamelCase}
\alias{toCamelCase}
\title{Change to CamelCase}
\usage{
toCamelCase(x)
}
\arguments{
\item{x}{A character vector}
}
\value{
A character vector changed to CamelCase
}
\description{
Change to CamelCase
}
\examples{
t... |
MASTER_KEY_FILENAME <- "master.key"
CREDENTIALS_FILENAME <- "credentials.yml.enc"
#' Setup encrypted credentials
#'
#' This creates an unencrypted master.key file and an empty encrypted
#' credentials file.
#'
#' @export
#' @include io.R
use_encrypted_credentials <- function() {
create_master_key_file()
create_emp... | /R/api.R | permissive | dirkschumacher/encryptedCredentials | R | false | false | 1,451 | r | MASTER_KEY_FILENAME <- "master.key"
CREDENTIALS_FILENAME <- "credentials.yml.enc"
#' Setup encrypted credentials
#'
#' This creates an unencrypted master.key file and an empty encrypted
#' credentials file.
#'
#' @export
#' @include io.R
use_encrypted_credentials <- function() {
create_master_key_file()
create_emp... |
library("rvest")
library("colortools")
library("designer")
palette <- get_pal(url = "https://dribbble.com/shots/1957805-Mountains-Beyond-Mountains", show = FALSE) # by Emma Butler
png("images/color_palette.png",
width = 500, height = 500)
pizza(palette)
dev.off()
palette
# [1] "#D1D1D3" "#FFFFFF" "#0D1412" "#469B... | /code/gen_color_palette.R | no_license | uribo/poster_150319ESJ62Kagoshima | R | false | false | 584 | r | library("rvest")
library("colortools")
library("designer")
palette <- get_pal(url = "https://dribbble.com/shots/1957805-Mountains-Beyond-Mountains", show = FALSE) # by Emma Butler
png("images/color_palette.png",
width = 500, height = 500)
pizza(palette)
dev.off()
palette
# [1] "#D1D1D3" "#FFFFFF" "#0D1412" "#469B... |
#' CMBWindow
#'
#' Create a CMBWindow: Either a polygon or a disc type
#'
#'If \code{r} is unspecified then the rows of \code{...} correspond to
#'counter-clockwise ordered vertices defining a spherical polygon
#'lying entirely within one open hemisphere on the unit sphere.
#'Counter-clockwise is underst... | /R/CMBWindow.R | permissive | mingltu/rcosmo | R | false | false | 5,216 | r |
#' CMBWindow
#'
#' Create a CMBWindow: Either a polygon or a disc type
#'
#'If \code{r} is unspecified then the rows of \code{...} correspond to
#'counter-clockwise ordered vertices defining a spherical polygon
#'lying entirely within one open hemisphere on the unit sphere.
#'Counter-clockwise is underst... |
library(scrbook)
library(rstan)
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
data <- simSCR0(discard0 = TRUE, rnd = 2013, N = 30)
# setup a grid to approximate the marginalization over activity centers
delta <- .5
x1_grid <- seq(data$xlim[1], data$xlim[2], by = delta)
x2_grid <- seq(da... | /ch06/scr0-unknown-n-data-augmentation.R | permissive | mbjoseph/scr-stan | R | false | false | 1,052 | r | library(scrbook)
library(rstan)
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
data <- simSCR0(discard0 = TRUE, rnd = 2013, N = 30)
# setup a grid to approximate the marginalization over activity centers
delta <- .5
x1_grid <- seq(data$xlim[1], data$xlim[2], by = delta)
x2_grid <- seq(da... |
testlist <- list(rates = -Inf, thresholds = NaN, x = Inf)
result <- do.call(grattan::IncomeTax,testlist)
str(result) | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610125856-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 116 | r | testlist <- list(rates = -Inf, thresholds = NaN, x = Inf)
result <- do.call(grattan::IncomeTax,testlist)
str(result) |
c1660cf771194ae24e13bd579109ed26 renHorn_400CNF2240_2aQBF_76.qdimacs 400 2240 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Letombe/renHorn/renHorn_400CNF2240_2aQBF_76/renHorn_400CNF2240_2aQBF_76.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 77 | r | c1660cf771194ae24e13bd579109ed26 renHorn_400CNF2240_2aQBF_76.qdimacs 400 2240 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rags2ridges.R
\name{symm}
\alias{symm}
\title{Symmetrize matrix}
\usage{
symm(M)
}
\arguments{
\item{M}{(In numeric ideality symmetric) square \code{matrix}.}
}
\value{
A symmetric \code{matrix}.
}
\description{
Function that s... | /man/symm.Rd | no_license | cran/rags2ridges | R | false | true | 1,153 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rags2ridges.R
\name{symm}
\alias{symm}
\title{Symmetrize matrix}
\usage{
symm(M)
}
\arguments{
\item{M}{(In numeric ideality symmetric) square \code{matrix}.}
}
\value{
A symmetric \code{matrix}.
}
\description{
Function that s... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/gr-domesticplotters.R
\name{ldk_links}
\alias{ldk_links}
\title{Draws links between landmarks}
\usage{
ldk_links(ldk, links, ...)
}
\arguments{
\item{ldk}{a matrix of (x; y) coordinates}
\item{links}{a matrix of links. On the first c... | /man/ldk_links.Rd | no_license | lrocax/Momocs | R | false | false | 566 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/gr-domesticplotters.R
\name{ldk_links}
\alias{ldk_links}
\title{Draws links between landmarks}
\usage{
ldk_links(ldk, links, ...)
}
\arguments{
\item{ldk}{a matrix of (x; y) coordinates}
\item{links}{a matrix of links. On the first c... |
uniroot2 <- function (f, interval, ..., lower = min(interval),
upper = max(interval), f.lower = f(lower, ...),
f.upper = f(upper, ...),
tol = .Machine$double.eps^0.25, maxiter = 1000,
extend = c("none", "left", "right", "both"), ... | /uniroot2.R | no_license | geeker2014/Dissertation | R | false | false | 1,736 | r | uniroot2 <- function (f, interval, ..., lower = min(interval),
upper = max(interval), f.lower = f(lower, ...),
f.upper = f(upper, ...),
tol = .Machine$double.eps^0.25, maxiter = 1000,
extend = c("none", "left", "right", "both"), ... |
# Exploring Disability Weights
# Set up -- make sure to set your working directory
library(dplyr)
library(tidyr)
library(ggplot2)
# Load global data (disease burden in 2015, both sexes, all ages)
global_data <- read.csv(
"./data/prepped/global_burden.csv",
stringsAsFactors = FALSE
)
# Replace NA as 0 for deaths,... | /disability-weights/analysis.R | no_license | info478-s21/workbook-2-yuhanizaly | R | false | false | 2,327 | r | # Exploring Disability Weights
# Set up -- make sure to set your working directory
library(dplyr)
library(tidyr)
library(ggplot2)
# Load global data (disease burden in 2015, both sexes, all ages)
global_data <- read.csv(
"./data/prepped/global_burden.csv",
stringsAsFactors = FALSE
)
# Replace NA as 0 for deaths,... |
suppressPackageStartupMessages(library(chipmine))
suppressPackageStartupMessages(library(org.Anidulans.FGSCA4.eg.db))
suppressPackageStartupMessages(library(TxDb.Anidulans.FGSCA4.AspGD.GFF))
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(here))
suppressPackageStartupMessages(l... | /scripts/c_integrate_TF_polII/c08_SM_clusters_binding_DEG.rect_links.R | no_license | lakhanp1/23_SM_OE_project | R | false | false | 18,355 | r | suppressPackageStartupMessages(library(chipmine))
suppressPackageStartupMessages(library(org.Anidulans.FGSCA4.eg.db))
suppressPackageStartupMessages(library(TxDb.Anidulans.FGSCA4.AspGD.GFF))
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(here))
suppressPackageStartupMessages(l... |
#' @useDynLib readxl, .registration = TRUE
#' @importFrom Rcpp sourceCpp
NULL
#' Read xls and xlsx files
#'
#' @param path Path to the xls/xlsx file.
#' @param sheet Sheet to read. Either a string (the name of a sheet), or an
#' integer (the position of the sheet). Ignored if the sheet is specified via
#' `range`.... | /R/read_excel.R | permissive | yang123vc/readxl | R | false | false | 12,784 | r | #' @useDynLib readxl, .registration = TRUE
#' @importFrom Rcpp sourceCpp
NULL
#' Read xls and xlsx files
#'
#' @param path Path to the xls/xlsx file.
#' @param sheet Sheet to read. Either a string (the name of a sheet), or an
#' integer (the position of the sheet). Ignored if the sheet is specified via
#' `range`.... |
library(fromo)
### Name: t_running_apx_quantiles
### Title: Compute approximate quantiles over a sliding time window
### Aliases: t_running_apx_quantiles t_running_apx_median
### ** Examples
x <- rnorm(1e5)
xq <- t_running_apx_quantiles(x,c(0.1,0.25,0.5,0.75,0.9),
time=seq_along(x),window=200,lb_time=c(100,2... | /data/genthat_extracted_code/fromo/examples/t_runningquantiles.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 829 | r | library(fromo)
### Name: t_running_apx_quantiles
### Title: Compute approximate quantiles over a sliding time window
### Aliases: t_running_apx_quantiles t_running_apx_median
### ** Examples
x <- rnorm(1e5)
xq <- t_running_apx_quantiles(x,c(0.1,0.25,0.5,0.75,0.9),
time=seq_along(x),window=200,lb_time=c(100,2... |
# created by KSB, 09.03.20
# WGCNA analysis for variables associated with expression profiles
# using the tutorial as per: https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/Tutorials/index.html
### R code from vignette source 'MineICA.Rnw'
###################################################
#... | /scripts/OldStuff/WGNCA.R | no_license | KatalinaBobowik/Epi_Study | R | false | false | 26,806 | r | # created by KSB, 09.03.20
# WGCNA analysis for variables associated with expression profiles
# using the tutorial as per: https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/Tutorials/index.html
### R code from vignette source 'MineICA.Rnw'
###################################################
#... |
# Title : Bayesian Networks with examples in R ~ Scutari & Denis (2014) ebook
# Source : https://www.bnlearn.com/book-crc/
# Objective : Chapter 1 Discrete Case
# Section : 1.1 to 1.3
# Bayesian Network Learning package to create and manipulate DAGs in BNs
# install(bnlearn) is it has been installed
library(b... | /Chapter 1/Chapter1.1_Setup_DAG_&_Prob_Table.R | no_license | caryjim/BayesianNetworks_Chapters | R | false | false | 6,615 | r | # Title : Bayesian Networks with examples in R ~ Scutari & Denis (2014) ebook
# Source : https://www.bnlearn.com/book-crc/
# Objective : Chapter 1 Discrete Case
# Section : 1.1 to 1.3
# Bayesian Network Learning package to create and manipulate DAGs in BNs
# install(bnlearn) is it has been installed
library(b... |
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of metforminDM
#
# 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/... | /metforminDM/R/Export.R | permissive | rlawodud3920/CDM-Rpackage-2020 | R | false | false | 51,662 | r | # Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of metforminDM
#
# 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/... |
| pc = 0xc001 | a = 0xc0 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 10110100 |
| pc = 0xc003 | a = 0x84 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 10110101 |
| pc = 0xc005 | a = 0x00 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 00110111 |
| pc = 0xc007 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x... | /res/ADC.r | no_license | LucasRodolfo/MC861 | R | false | false | 528 | r | | pc = 0xc001 | a = 0xc0 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 10110100 |
| pc = 0xc003 | a = 0x84 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 10110101 |
| pc = 0xc005 | a = 0x00 | x = 0x00 | y = 0x00 | sp = 0x00fd | p[NV-BDIZC] = 00110111 |
| pc = 0xc007 | a = 0x01 | x = 0x00 | y = 0x00 | sp = 0x... |
library(phonTools)
### Name: fastacf
### Title: Fast Autocorrelation
### Aliases: fastacf
### ** Examples
## Uncomment and run the code below to see the speed advantage.
## Raising the n makes the difference even more pronounced.
#n = 25000
#system.time ({
#acf (rnorm (n), plot = F, lag.max = n)
#})
#system.time ... | /data/genthat_extracted_code/phonTools/examples/fastacf.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 375 | r | library(phonTools)
### Name: fastacf
### Title: Fast Autocorrelation
### Aliases: fastacf
### ** Examples
## Uncomment and run the code below to see the speed advantage.
## Raising the n makes the difference even more pronounced.
#n = 25000
#system.time ({
#acf (rnorm (n), plot = F, lag.max = n)
#})
#system.time ... |
## code to prepare `DATASET` dataset goes here
#
# First dot notation: a.b
#
first_dot_notation <- notation_vec(sep = ".")
usethis::use_data(first_dot_notation, overwrite = TRUE)
#
# Dash notation: a - b
#
dash_notation <- notation_vec(sep = " - ")
usethis::use_data(dash_notation, overwrite = TRUE)
#
# Arrow no... | /data-raw/create_constants.R | permissive | MatthewHeun/RCLabels | R | false | false | 3,353 | r | ## code to prepare `DATASET` dataset goes here
#
# First dot notation: a.b
#
first_dot_notation <- notation_vec(sep = ".")
usethis::use_data(first_dot_notation, overwrite = TRUE)
#
# Dash notation: a - b
#
dash_notation <- notation_vec(sep = " - ")
usethis::use_data(dash_notation, overwrite = TRUE)
#
# Arrow no... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/soft_tissue.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.6,family="gaussian",standardize=TRUE)
sink('./soft_tissue_065.txt',appe... | /Model/EN/Classifier/soft_tissue/soft_tissue_065.R | no_license | esbgkannan/QSMART | R | false | false | 358 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Classifier/soft_tissue.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.6,family="gaussian",standardize=TRUE)
sink('./soft_tissue_065.txt',appe... |
#' Compute absolute distances between intervals.
#'
#' Computes the absolute distance between the midpoints of `x` intervals and
#' the closest midpoints of `y` intervals.
#'
#' @details Absolute distances are scaled by the inter-reference gap for the
#' chromosome as follows. For `Q` query points and `R` reference
#... | /R/bed_absdist.r | no_license | xtmgah/valr | R | false | false | 2,851 | r | #' Compute absolute distances between intervals.
#'
#' Computes the absolute distance between the midpoints of `x` intervals and
#' the closest midpoints of `y` intervals.
#'
#' @details Absolute distances are scaled by the inter-reference gap for the
#' chromosome as follows. For `Q` query points and `R` reference
#... |
#calculates the Root Mean Square Error (RMSE) for asreml models and predictions.
#uses RMSE to compare model with and without error structure
#author: Lisa-Marie Harrison
#date: 26/02/2015
if (Sys.info()[4] == "SCI-6246") {
setwd(dir = "C:/Users/43439535/Documents/Lisa/phd/Mixed models/Data")
} else {
setwd(dir = ... | /R-RMSE-error-structure.R | no_license | gracevaziri/R-simulation-study | R | false | false | 10,787 | r | #calculates the Root Mean Square Error (RMSE) for asreml models and predictions.
#uses RMSE to compare model with and without error structure
#author: Lisa-Marie Harrison
#date: 26/02/2015
if (Sys.info()[4] == "SCI-6246") {
setwd(dir = "C:/Users/43439535/Documents/Lisa/phd/Mixed models/Data")
} else {
setwd(dir = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_LeMans.R
\docType{class}
\name{LeMans_outputs-class}
\alias{LeMans_outputs-class}
\title{An S4 class representing the outputs of the LeMans model}
\description{
An S4 class representing the outputs of the LeMans model
}
\section{Slots}{
... | /fuzzedpackages/LeMaRns/man/LeMans_outputs-class.Rd | no_license | akhikolla/testpackages | R | false | true | 1,071 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_LeMans.R
\docType{class}
\name{LeMans_outputs-class}
\alias{LeMans_outputs-class}
\title{An S4 class representing the outputs of the LeMans model}
\description{
An S4 class representing the outputs of the LeMans model
}
\section{Slots}{
... |
#' Processes cluster signaling data in form for statistical analysis
#'
#' Processes cluster signaling data in form for statistical analysis
#'
#' @param filtereddata a list with each element corresonding to a cluster of interest and matrices containing individual sample data for desired markers
#' @return A dataframe ... | /R/processforanova.R | permissive | athrom/mineCitrus | R | false | false | 1,439 | r | #' Processes cluster signaling data in form for statistical analysis
#'
#' Processes cluster signaling data in form for statistical analysis
#'
#' @param filtereddata a list with each element corresonding to a cluster of interest and matrices containing individual sample data for desired markers
#' @return A dataframe ... |
#' @rdname chart.TimeSeries
#'
chart.TimeSeries.googlevis <-
function(R,
xlab,ylab,
main){
y = data.frame(date=index(R),coredata(R))
plot <- googleVis::gvisLineChart(y,
options=list(
gvis.editor="Edit",
... | /R/chart.TimeSeries.googlevis.R | no_license | braverock/PerformanceAnalytics | R | false | false | 492 | r | #' @rdname chart.TimeSeries
#'
chart.TimeSeries.googlevis <-
function(R,
xlab,ylab,
main){
y = data.frame(date=index(R),coredata(R))
plot <- googleVis::gvisLineChart(y,
options=list(
gvis.editor="Edit",
... |
# Exercise 3: using the pipe operator
# Install (if needed) and load the "dplyr" library
#install.packages("dplyr")
library("dplyr")
# Install (if needed) and load the "fueleconomy" package
#install.packages('devtools')
#devtools::install_github("hadley/fueleconomy")
library(fueleconomy)
# Which 2015 Acura model has... | /exercise-3/exercise.R | permissive | msshriner/ch10-dplyr | R | false | false | 889 | r | # Exercise 3: using the pipe operator
# Install (if needed) and load the "dplyr" library
#install.packages("dplyr")
library("dplyr")
# Install (if needed) and load the "fueleconomy" package
#install.packages('devtools')
#devtools::install_github("hadley/fueleconomy")
library(fueleconomy)
# Which 2015 Acura model has... |
library(simPop)
### Name: correctSingleHeap
### Title: correctSingleHeap
### Aliases: correctSingleHeap
### ** Examples
## create some artificial data
age <- rlnorm(10000, meanlog=2.466869, sdlog=1.652772)
age <- round(age[age < 93])
barplot(table(age))
## artificially introduce an age heap for a specific year
## ... | /data/genthat_extracted_code/simPop/examples/correctSingleHeap.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 828 | r | library(simPop)
### Name: correctSingleHeap
### Title: correctSingleHeap
### Aliases: correctSingleHeap
### ** Examples
## create some artificial data
age <- rlnorm(10000, meanlog=2.466869, sdlog=1.652772)
age <- round(age[age < 93])
barplot(table(age))
## artificially introduce an age heap for a specific year
## ... |
##' AquastatExternal module
##' Author: Francy Lisboa
##' Date: 22/03/2019
##' Purpose: Download and harmonize external AQuASTAT data.
# Loading libraries
suppressMessages({
library(faosws)
library(faoswsUtil)
library(faoswsFlag)
library(data.table)
library(dplyr)
library(tidyr)
library(stringr)
librar... | /faoswsAquastatExternal/code/main1.R | no_license | SWS-Methodology/faoswsAquastat | R | false | false | 5,617 | r | ##' AquastatExternal module
##' Author: Francy Lisboa
##' Date: 22/03/2019
##' Purpose: Download and harmonize external AQuASTAT data.
# Loading libraries
suppressMessages({
library(faosws)
library(faoswsUtil)
library(faoswsFlag)
library(data.table)
library(dplyr)
library(tidyr)
library(stringr)
librar... |
### Basic functions for Real Data Analysis Runchao Jiang
library(compiler)
enableJIT(3)
library(rgenoud)
library(survival)
### Fps: random design for observed treatment
Fps <- function(DataList)
{
X <- DataList$X
A <- DataList$A
ps.fit <- glm(A ~ 1, family=binomial(link="... | /RealData-Functions-v3.R | no_license | AlvinSheng/sibs-research | R | false | false | 40,053 | r | ### Basic functions for Real Data Analysis Runchao Jiang
library(compiler)
enableJIT(3)
library(rgenoud)
library(survival)
### Fps: random design for observed treatment
Fps <- function(DataList)
{
X <- DataList$X
A <- DataList$A
ps.fit <- glm(A ~ 1, family=binomial(link="... |
f <- list.files(".", full.names=T)
S <- sub("./", "", f)
S <- sub("_L001_fullcoverage.txt", "", S)
library(plyr)
tables <- llply(f, read.delim)
tables <- llply(1:length(tables), function (x) {
tb <- tables[[x]]
if (nrow(tb) > 0) {
tb$Sample <- S[x]
}
tb
})
fulltable <- do.call(rbind, tables)
# load functi... | /BlastTable.R | no_license | ArwaAbbas/Scripts | R | false | false | 643 | r | f <- list.files(".", full.names=T)
S <- sub("./", "", f)
S <- sub("_L001_fullcoverage.txt", "", S)
library(plyr)
tables <- llply(f, read.delim)
tables <- llply(1:length(tables), function (x) {
tb <- tables[[x]]
if (nrow(tb) > 0) {
tb$Sample <- S[x]
}
tb
})
fulltable <- do.call(rbind, tables)
# load functi... |
#' La clase para interactuar con plantuml
#' @title "R6 Package"
#' @name "R6 Package"
#' @rdname R6Package
#' @docType class
#' @description La descripcion.
RNamespace = R6::R6Class("RNAMESPACE"
,inherit = RComposite
,portable = FALSE
,lock_objects = TRUE
,lock_class = TRUE
,public = li... | /R/objects/R6RNamespace.R | no_license | Grandez/umlr2 | R | false | false | 748 | r | #' La clase para interactuar con plantuml
#' @title "R6 Package"
#' @name "R6 Package"
#' @rdname R6Package
#' @docType class
#' @description La descripcion.
RNamespace = R6::R6Class("RNAMESPACE"
,inherit = RComposite
,portable = FALSE
,lock_objects = TRUE
,lock_class = TRUE
,public = li... |
####################################################
# #
# Export forecastings file in kaggle's format #
# #
####################################################
## Note: Example dataset with forecastings (frc_tota... | /modules/make_submission_file.R | no_license | papaemman/m5_forecasting_competition | R | false | false | 4,056 | r | ####################################################
# #
# Export forecastings file in kaggle's format #
# #
####################################################
## Note: Example dataset with forecastings (frc_tota... |
## script to generate histogram of insert sizes from metrics file
## expecting 3 arguments:
## first is the metrics file with the histogram info
## second is the output file
## third is a name for the plot
args <- commandArgs(trailing=TRUE)
metricsFile <- args[1]
pdfFile <- args[2]
bamName <- args[3]
histoWi... | /src/scripts/picard/analysis/insertSizeHistogram.R | no_license | qtstar/JavaEpam | R | false | false | 3,929 | r | ## script to generate histogram of insert sizes from metrics file
## expecting 3 arguments:
## first is the metrics file with the histogram info
## second is the output file
## third is a name for the plot
args <- commandArgs(trailing=TRUE)
metricsFile <- args[1]
pdfFile <- args[2]
bamName <- args[3]
histoWi... |
/Rotina3.R | no_license | AlcineiAzevedo/RegMultipla7 | R | false | false | 532 | r | ||
context("modularity")
test_that("error checking",{
expect_error(modularity("test",1:3),"Error in modularity: adj must be a numeric matrix")
expect_error(modularity(1:3,1:3),"Error in modularity: adj must be a numeric matrix")
expect_error(modularity(matrix(1:6,2,3),1:3),"Error in modularity: adj must be a square... | /tests/testthat/tests_modularity.R | no_license | cran/wsyn | R | false | false | 12,253 | r | context("modularity")
test_that("error checking",{
expect_error(modularity("test",1:3),"Error in modularity: adj must be a numeric matrix")
expect_error(modularity(1:3,1:3),"Error in modularity: adj must be a numeric matrix")
expect_error(modularity(matrix(1:6,2,3),1:3),"Error in modularity: adj must be a square... |
#' Create a Distill theme CSS file
#'
#' Create a theme CSS file and write it to the current working directory
#'
#' @param name Name of theme file (will be written as name.css)
#' @param edit Open an editor for the theme file
#'
#' @includeRmd man/rmd-fragments/apply-theme.Rmd
#'
#' @section More details:
#' For furt... | /R/theme.R | permissive | rjournal/rjdistill | R | false | false | 1,130 | r |
#' Create a Distill theme CSS file
#'
#' Create a theme CSS file and write it to the current working directory
#'
#' @param name Name of theme file (will be written as name.css)
#' @param edit Open an editor for the theme file
#'
#' @includeRmd man/rmd-fragments/apply-theme.Rmd
#'
#' @section More details:
#' For furt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{r2p}
\alias{r2p}
\title{r2p Convert Correlation Coefficient to P-value}
\usage{
r2p(r, n)
}
\arguments{
\item{r}{the correlation coefficient}
\item{n}{the number of samples}
}
\value{
a numeric p-value
}
\de... | /man/r2p.Rd | no_license | federicogiorgi/corto | R | false | true | 422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{r2p}
\alias{r2p}
\title{r2p Convert Correlation Coefficient to P-value}
\usage{
r2p(r, n)
}
\arguments{
\item{r}{the correlation coefficient}
\item{n}{the number of samples}
}
\value{
a numeric p-value
}
\de... |
# John Hopkins Data Science Track
# Course 4 Exploratory Data Analysis
# By Benoit Ladouceur
# Plot 6
library(ggplot2)
library(ggthemes)
rm(list = ls()) # Clean up
setwd("C:/Users/Benoit/Documents") # set WD
NEI <- readRDS("summarySCC_PM25.rds")# Load
SCC <- readRDS("Source_Classification_Code.rds")
# F... | /Plot6.R | no_license | Bladouceur/JohnHopkins4_2 | R | false | false | 1,239 | r | # John Hopkins Data Science Track
# Course 4 Exploratory Data Analysis
# By Benoit Ladouceur
# Plot 6
library(ggplot2)
library(ggthemes)
rm(list = ls()) # Clean up
setwd("C:/Users/Benoit/Documents") # set WD
NEI <- readRDS("summarySCC_PM25.rds")# Load
SCC <- readRDS("Source_Classification_Code.rds")
# F... |
library("data.table")
setwd("C:/Users/shubh/OneDrive/Documents/GitHub Repository/ExploratoryDataAnalysis_Project1")
#Reading the data from the file and subsetting the data for specified dates
powerDT <- data.table::fread(input = "household_power_consumption.txt", na.strings="?")
# Preventing Scientific Notation
po... | /plot3.R | no_license | ShubhenduDash/ExploratoryDataAnalysis_Project1 | R | false | false | 1,147 | r | library("data.table")
setwd("C:/Users/shubh/OneDrive/Documents/GitHub Repository/ExploratoryDataAnalysis_Project1")
#Reading the data from the file and subsetting the data for specified dates
powerDT <- data.table::fread(input = "household_power_consumption.txt", na.strings="?")
# Preventing Scientific Notation
po... |
readGRM <- function(rootname)
{
bin.file.name <- paste(rootname, ".grm.bin", sep="")
id.file.name <- paste(rootname, ".grm.id", sep="")
cat("Reading IDs\n")
id <- read.table(id.file.name, colClasses="character")
n <- dim(id)[1]
cat("Reading GRM\n")
bin.file <- file(bin.file.name, "rb")
grm <- readBin(bin.file,... | /3_GRM_functions.R | no_license | epigenomes/Predictive-capacity | R | false | false | 609 | r | readGRM <- function(rootname)
{
bin.file.name <- paste(rootname, ".grm.bin", sep="")
id.file.name <- paste(rootname, ".grm.id", sep="")
cat("Reading IDs\n")
id <- read.table(id.file.name, colClasses="character")
n <- dim(id)[1]
cat("Reading GRM\n")
bin.file <- file(bin.file.name, "rb")
grm <- readBin(bin.file,... |
# Probability of each treatment obtaining each rank
# Load libraries
library(reshape2)
library(ggplot2)
# Start with empty environment
rm(list=ls())
# Set the working directory
path <- "R:/SCFreeman/scf20/Melanoma_NMA/Fractional_Polynomial/zero"
setwd(path)
# Read in results
data <- read.csv("results.... | /Fractional_Polynomial/zero/rank_plot.R | no_license | SCFreeman/Melanoma_NMA | R | false | false | 1,434 | r | # Probability of each treatment obtaining each rank
# Load libraries
library(reshape2)
library(ggplot2)
# Start with empty environment
rm(list=ls())
# Set the working directory
path <- "R:/SCFreeman/scf20/Melanoma_NMA/Fractional_Polynomial/zero"
setwd(path)
# Read in results
data <- read.csv("results.... |
testlist <- list(hi = -4.65373580032827e+129, lo = -4.6537336435115e+129, mu = -4.65373580032827e+129, sig = -4.65373580032827e+129)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610046310-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 194 | r | testlist <- list(hi = -4.65373580032827e+129, lo = -4.6537336435115e+129, mu = -4.65373580032827e+129, sig = -4.65373580032827e+129)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
"print.drm" <-
function (x, ...)
{
cat("Call:\n")
print(x$call)
cat("\nCoefficients:\n")
print(x$coefficients)
cat(paste("\nResidual deviance:", round(x$deviance, 3), "\tAIC:",
round(x$aic, 3), "\n"))
if (x$code > 2)
cat(paste("WARNING: Convergence code", x$code, "; See ?nlm for details... | /drm/R/print.drm.R | no_license | ingted/R-Examples | R | false | false | 686 | r | "print.drm" <-
function (x, ...)
{
cat("Call:\n")
print(x$call)
cat("\nCoefficients:\n")
print(x$coefficients)
cat(paste("\nResidual deviance:", round(x$deviance, 3), "\tAIC:",
round(x$aic, 3), "\n"))
if (x$code > 2)
cat(paste("WARNING: Convergence code", x$code, "; See ?nlm for details... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.classifyRNA.R
\name{predict.classifyRNA}
\alias{predict}
\alias{predict.classifyRNA}
\title{predict.classifyRNA}
\usage{
\method{predict}{classifyRNA}(object, sample = NULL, resp="prob", ...)
}
\arguments{
\item{object}{An object of c... | /man/predict.classifyRNA.Rd | no_license | cbtolson/classSNitch | R | false | true | 1,552 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.classifyRNA.R
\name{predict.classifyRNA}
\alias{predict}
\alias{predict.classifyRNA}
\title{predict.classifyRNA}
\usage{
\method{predict}{classifyRNA}(object, sample = NULL, resp="prob", ...)
}
\arguments{
\item{object}{An object of c... |
extract_compositional_samples <- function(out) {
## number of mcmc chains
n_chains <- length(out)
## number of mcmc samples
n_save <- dim(out[[1]][[1]])[1]
n_samples <- n_save * n_chains
## variable names, we assume these are identical across all chains
var_names <- names(out[[1]])
samples <- list()... | /R/extract-compositional-samples.R | no_license | jtipton25/BayesComposition | R | false | false | 1,374 | r | extract_compositional_samples <- function(out) {
## number of mcmc chains
n_chains <- length(out)
## number of mcmc samples
n_save <- dim(out[[1]][[1]])[1]
n_samples <- n_save * n_chains
## variable names, we assume these are identical across all chains
var_names <- names(out[[1]])
samples <- list()... |
\alias{gtkRecentManagerGetDefault}
\name{gtkRecentManagerGetDefault}
\title{gtkRecentManagerGetDefault}
\description{Gets the recent manager for the default screen. See
\code{\link{gtkRecentManagerGetForScreen}}.}
\usage{gtkRecentManagerGetDefault()}
\details{ Since 2.10}
\value{[\code{\link{GtkRecentManager}}] A un... | /man/gtkRecentManagerGetDefault.Rd | no_license | cran/RGtk2.10 | R | false | false | 588 | rd | \alias{gtkRecentManagerGetDefault}
\name{gtkRecentManagerGetDefault}
\title{gtkRecentManagerGetDefault}
\description{Gets the recent manager for the default screen. See
\code{\link{gtkRecentManagerGetForScreen}}.}
\usage{gtkRecentManagerGetDefault()}
\details{ Since 2.10}
\value{[\code{\link{GtkRecentManager}}] A un... |
lyrics <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/HipHopLyrics.csv")
reps <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/republicans2016.csv")
dems <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/democrats2016.csv")
# need to add years to reps, de... | /analysis/PreProcessDates.R | no_license | boudrejp/PythonProj2 | R | false | false | 3,379 | r | lyrics <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/HipHopLyrics.csv")
reps <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/republicans2016.csv")
dems <- read.csv("C:/Users/boudrejp/Documents/MIDS/Python/PythonProj2/data/democrats2016.csv")
# need to add years to reps, de... |
library(nflscrapR)
library(tidyverse)
library(ggplot2)
TeamDistributions <- read.csv(file = "TeamDistributions.csv", header = TRUE, sep = ",")
rankings <- read.csv(file = "ELO Rankings.csv", header = TRUE, sep = ",")
View(TeamDistributions)
TeamDist <- as_tibble(TeamDistributions)
Sacks <- TeamDist %>% pull(SackPCT)... | /R Scripts/ELO/Correlations.R | no_license | LiamCullenCS/BoxCount | R | false | false | 610 | r | library(nflscrapR)
library(tidyverse)
library(ggplot2)
TeamDistributions <- read.csv(file = "TeamDistributions.csv", header = TRUE, sep = ",")
rankings <- read.csv(file = "ELO Rankings.csv", header = TRUE, sep = ",")
View(TeamDistributions)
TeamDist <- as_tibble(TeamDistributions)
Sacks <- TeamDist %>% pull(SackPCT)... |
quartz()
par(mar= c(2,2,2,2))
plot(phylo, cex = 0.7)
axisPhylo()
| /R/S_Phylo_12-05-20.R | no_license | GabrielNakamura/MS_Parana_Paraguai | R | false | false | 65 | r | quartz()
par(mar= c(2,2,2,2))
plot(phylo, cex = 0.7)
axisPhylo()
|
#!/usr/bin/env Rscript
library("R.utils")
library(metaheuristicOpt)
library(gbm)
num <- cmdArgs()
num
data_name <- as.character(num[[1]])
data_name
file_num <- as.integer(num[[2]])
file_num
seed <- as.integer(num[[3]])
seed
cross <- as.integer(num[[4]])
cross
tmin <- as.integer(num[[5]])
tmin
tmax <- ... | /Tuning Research/Examples of Optimization Code/GBM/Regression/GBM_reg_GWO.R | no_license | jillbo1000/Dissertation-code | R | false | false | 1,868 | r | #!/usr/bin/env Rscript
library("R.utils")
library(metaheuristicOpt)
library(gbm)
num <- cmdArgs()
num
data_name <- as.character(num[[1]])
data_name
file_num <- as.integer(num[[2]])
file_num
seed <- as.integer(num[[3]])
seed
cross <- as.integer(num[[4]])
cross
tmin <- as.integer(num[[5]])
tmin
tmax <- ... |
## For generating the NAMESPACE
#' @import mzR
#' @import Rcpp
#' @import XML
#' @import methods
#' @import mzR
#' @import rcdk
#' @import rjson
#' @import yaml
#' @import digest
NULL # This is required so that roxygen knows where the first manpage starts
# # importClassesFrom mzR ## Causes error
# # importM... | /R/leMsmsRaw.R | no_license | sneumann/RMassBank | R | false | false | 45,547 | r | ## For generating the NAMESPACE
#' @import mzR
#' @import Rcpp
#' @import XML
#' @import methods
#' @import mzR
#' @import rcdk
#' @import rjson
#' @import yaml
#' @import digest
NULL # This is required so that roxygen knows where the first manpage starts
# # importClassesFrom mzR ## Causes error
# # importM... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in
% R/SA3__Year_DwellingStructure_UsualResidents.min_occupied_private_dwellings.R
\docType{data}
\name{SA3__Year_DwellingStructure_UsualResidents.min_occupied_private_dwellings}
\alias{SA3__Year_DwellingStructure_UsualResidents.min_occupied_pri... | /man/SA3__Year_DwellingStructure_UsualResidents.min_occupied_private_dwellings.Rd | no_license | HughParsonage/Census2016.DataPack.TimeSeries | R | false | true | 647 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in
% R/SA3__Year_DwellingStructure_UsualResidents.min_occupied_private_dwellings.R
\docType{data}
\name{SA3__Year_DwellingStructure_UsualResidents.min_occupied_private_dwellings}
\alias{SA3__Year_DwellingStructure_UsualResidents.min_occupied_pri... |
### RANKINGS, WOULD BE CLEANER IF UPDATED WITH A FUNCTION
lfprRanking <- allData %>%
mutate("Rank" = rank(-`Labor Force Participation Rate`))
lfprRanking <- lfprRanking %>% select(1, 2, 14) %>%
#filter(MSA == "Louisville") %>%
mutate(Datapoint = "Labor Force Participation Rate")
colnames(lfprRanking)[2] <- "Val... | /onePager/rankings.R | no_license | bekahdevore/rKW | R | false | false | 2,675 | r | ### RANKINGS, WOULD BE CLEANER IF UPDATED WITH A FUNCTION
lfprRanking <- allData %>%
mutate("Rank" = rank(-`Labor Force Participation Rate`))
lfprRanking <- lfprRanking %>% select(1, 2, 14) %>%
#filter(MSA == "Louisville") %>%
mutate(Datapoint = "Labor Force Participation Rate")
colnames(lfprRanking)[2] <- "Val... |
library(ape)
testtree <- read.tree("12299_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12299_0_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/12299_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("12299_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12299_0_unrooted.txt") |
library(matrixStats)
### Name: rowIQRs
### Title: Estimates of the interquartile range for each row (column) in a
### matrix
### Aliases: rowIQRs colIQRs iqr
### Keywords: array iteration robust univar
### ** Examples
set.seed(1)
x <- matrix(rnorm(50 * 40), nrow = 50, ncol = 40)
str(x)
# Row IQRs
q <- rowIQRs(x... | /data/genthat_extracted_code/matrixStats/examples/rowIQRs.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 506 | r | library(matrixStats)
### Name: rowIQRs
### Title: Estimates of the interquartile range for each row (column) in a
### matrix
### Aliases: rowIQRs colIQRs iqr
### Keywords: array iteration robust univar
### ** Examples
set.seed(1)
x <- matrix(rnorm(50 * 40), nrow = 50, ncol = 40)
str(x)
# Row IQRs
q <- rowIQRs(x... |
#Chapter 11 Hwk####
library("tidyverse")
tidyverse_update()
#Q1####
rangeshift <- read_csv("datasets/abd/chapter11/chap11q01RangeShiftsWithClimateChange.csv")
#Summary Statistics
geo_summary <- rangeshift %>%
summarise(n_geo = n(),
mean_geo = mean(elevationalRangeShift),
median_geo = me... | /assignments/Chapter11Homework.R | no_license | BIO375/foley-anna | R | false | false | 6,483 | r | #Chapter 11 Hwk####
library("tidyverse")
tidyverse_update()
#Q1####
rangeshift <- read_csv("datasets/abd/chapter11/chap11q01RangeShiftsWithClimateChange.csv")
#Summary Statistics
geo_summary <- rangeshift %>%
summarise(n_geo = n(),
mean_geo = mean(elevationalRangeShift),
median_geo = me... |
#This homework uses the hail_outbreaks.txt dataset
#The first task in this assignment is to calculate the standard deviation and variance o the ranking index for both the
#wind_outbreaks.txt dataset from assignment two and the severety ranking for
#the hail_outbreaks.txt dataset
zarzar.hw03 <- function(){
win... | /quantitative_methods/zarzar_hw03.R | no_license | ChrisZarzar/quantitative_methods | R | false | false | 5,748 | r | #This homework uses the hail_outbreaks.txt dataset
#The first task in this assignment is to calculate the standard deviation and variance o the ranking index for both the
#wind_outbreaks.txt dataset from assignment two and the severety ranking for
#the hail_outbreaks.txt dataset
zarzar.hw03 <- function(){
win... |
rm(list=ls())
#data_path <- file.path("C:/Users/emiu/Documents/Data Science/Exploratory Data Analysis")
dat_path <-file.path("./data")
## import power data
pwr_data<- read.csv(file.path(data_path,"household_power_consumption.txt"), header = T, sep = ';', na.strings = "?", nrows = 2075259)
pwr_data$Date <- as.Date(pwr... | /Plot2.R | no_license | dsgeekem/ExData_Plotting1 | R | false | false | 915 | r | rm(list=ls())
#data_path <- file.path("C:/Users/emiu/Documents/Data Science/Exploratory Data Analysis")
dat_path <-file.path("./data")
## import power data
pwr_data<- read.csv(file.path(data_path,"household_power_consumption.txt"), header = T, sep = ';', na.strings = "?", nrows = 2075259)
pwr_data$Date <- as.Date(pwr... |
#' Scrape Pitcher Performance Data Over a Custom Time Frame
#'
#' This function allows you to scrape basic pitcher statistics over a custom time frame. Data is sourced from Baseball-Reference.com.
#' @param t1 First date data should be scraped from. Should take the form "YEAR-MONTH-DAY"
#' @param t2 Last date data shou... | /R/daily_pitcher_bref.R | no_license | keberwein/baseballr | R | false | false | 1,724 | r | #' Scrape Pitcher Performance Data Over a Custom Time Frame
#'
#' This function allows you to scrape basic pitcher statistics over a custom time frame. Data is sourced from Baseball-Reference.com.
#' @param t1 First date data should be scraped from. Should take the form "YEAR-MONTH-DAY"
#' @param t2 Last date data shou... |
addPriorCount <- function(y, lib.size=NULL, offset=NULL, prior.count=1)
# Add library size-adjusted prior counts to values of 'y'.
# Also add twice the adjusted prior to the library sizes,
# which are provided as log-transformed values in 'offset'.
#
# written by Aaron Lun
# created 26 September 2016
# last mo... | /R/addPriorCount.R | no_license | hiraksarkar/edgeR_fork | R | false | false | 980 | r | addPriorCount <- function(y, lib.size=NULL, offset=NULL, prior.count=1)
# Add library size-adjusted prior counts to values of 'y'.
# Also add twice the adjusted prior to the library sizes,
# which are provided as log-transformed values in 'offset'.
#
# written by Aaron Lun
# created 26 September 2016
# last mo... |
# Load packages ----------------------------------------------------------------
library(shiny)
library(ggplot2)
library(dplyr)
library(DT)
# Load data --------------------------------------------------------------------
load("movies.RData")
n_total <- nrow(movies)
# Define UI --------------------------------------... | /5 Solutions/2-2a-numericInput.R | no_license | ferkullj/activity13-shiny-apps | R | false | false | 1,196 | r | # Load packages ----------------------------------------------------------------
library(shiny)
library(ggplot2)
library(dplyr)
library(DT)
# Load data --------------------------------------------------------------------
load("movies.RData")
n_total <- nrow(movies)
# Define UI --------------------------------------... |
Dtheta <- function(xvec, yvec, h, driftfun, difffun1, c0)
{
G = integrandmat(xvec, yvec, h, driftfun, difffun1, c0)
nn = length(xvec)
mm = length(yvec)
# each column same and replicated, rows have xvec
X = replicate(mm, xvec)
# each row same, columns have yvec
Y = t(replicate(nn, yvec))
... | /oldRcodes/highdim/Dtheta.R | no_license | hbhat4000/sdeinference | R | false | false | 989 | r | Dtheta <- function(xvec, yvec, h, driftfun, difffun1, c0)
{
G = integrandmat(xvec, yvec, h, driftfun, difffun1, c0)
nn = length(xvec)
mm = length(yvec)
# each column same and replicated, rows have xvec
X = replicate(mm, xvec)
# each row same, columns have yvec
Y = t(replicate(nn, yvec))
... |
print.emp2pval <- function(x, ...) {
if(class(x)!="emp2pval")
stop("The first argument is not of the right class. Please see the help pages for more information")
print(x$pvals)
}
| /R/print.emp2pval.R | no_license | cran/bayesclust | R | false | false | 190 | r | print.emp2pval <- function(x, ...) {
if(class(x)!="emp2pval")
stop("The first argument is not of the right class. Please see the help pages for more information")
print(x$pvals)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h_geom_prop_in_ts.R
\name{h_geom_tile_prop_over_time}
\alias{h_geom_tile_prop_over_time}
\title{Tiles the are filled according to proportion where total in x is denominator}
\usage{
h_geom_tile_prop_over_time(
mapping = NULL,
data = NULL,... | /man/h_geom_tile_prop_over_time.Rd | no_license | EvaMaeRey/ggextend | R | false | true | 1,194 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h_geom_prop_in_ts.R
\name{h_geom_tile_prop_over_time}
\alias{h_geom_tile_prop_over_time}
\title{Tiles the are filled according to proportion where total in x is denominator}
\usage{
h_geom_tile_prop_over_time(
mapping = NULL,
data = NULL,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/route53resolver_operations.R
\name{route53resolver_delete_firewall_rule}
\alias{route53resolver_delete_firewall_rule}
\title{Deletes the specified firewall rule}
\usage{
route53resolver_delete_firewall_rule(FirewallRuleGroupId, FirewallDomain... | /cran/paws.networking/man/route53resolver_delete_firewall_rule.Rd | permissive | paws-r/paws | R | false | true | 740 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/route53resolver_operations.R
\name{route53resolver_delete_firewall_rule}
\alias{route53resolver_delete_firewall_rule}
\title{Deletes the specified firewall rule}
\usage{
route53resolver_delete_firewall_rule(FirewallRuleGroupId, FirewallDomain... |
library(vembedr)
### Name: rickroll
### Title: Embed a popular video
### Aliases: rickroll rickroll_vimeo rickroll_youtube rickroll_channel9
### ** Examples
rickroll_vimeo()
rickroll_youtube()
rickroll_channel9()
| /data/genthat_extracted_code/vembedr/examples/rickroll.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 227 | r | library(vembedr)
### Name: rickroll
### Title: Embed a popular video
### Aliases: rickroll rickroll_vimeo rickroll_youtube rickroll_channel9
### ** Examples
rickroll_vimeo()
rickroll_youtube()
rickroll_channel9()
|
###
# File name : FindTFofRegion.R
# Author : Hyunjin Kim
# Date : May 1, 2018
# Email : hk2990@cumc.columbia.edu
# Purpose : Find TF candidates that may be bound in regions of interest
#
# Instruction
# 1. Source("FindTFofRegion.R")
# 2. Run the function "findTF" -... | /codes/FindTFofRegion.R | no_license | hjkim88/TF_Footprinting | R | false | false | 2,992 | r | ###
# File name : FindTFofRegion.R
# Author : Hyunjin Kim
# Date : May 1, 2018
# Email : hk2990@cumc.columbia.edu
# Purpose : Find TF candidates that may be bound in regions of interest
#
# Instruction
# 1. Source("FindTFofRegion.R")
# 2. Run the function "findTF" -... |
train <- import('rda/train.rda')
glimpse(train)
# Plot distribution plots
dist.plt1 <- train%>%
ggplot(aes(Credit.Amount, fill= Credit.Application.Result)) +
geom_density(alpha=0.5, color ='black') +
scale_fill_brewer(palette = 'Dark2') +
scale_x_log10()+
xlab('Credit Amount') + ylab('Frequency')+
theme_b... | /analysis/04_exploratory_data_analysis.R | no_license | chineduok/creditworthiness | R | false | false | 1,703 | r | train <- import('rda/train.rda')
glimpse(train)
# Plot distribution plots
dist.plt1 <- train%>%
ggplot(aes(Credit.Amount, fill= Credit.Application.Result)) +
geom_density(alpha=0.5, color ='black') +
scale_fill_brewer(palette = 'Dark2') +
scale_x_log10()+
xlab('Credit Amount') + ylab('Frequency')+
theme_b... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAllUtterances.R
\name{getAllUtterances}
\alias{getAllUtterances}
\title{Get all utterances of participants.}
\usage{
getAllUtterances(
labbcat.url,
participant.ids,
transcript.types = NULL,
main.participant = TRUE,
max.matches = ... | /man/getAllUtterances.Rd | no_license | cran/nzilbb.labbcat | R | false | true | 2,647 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAllUtterances.R
\name{getAllUtterances}
\alias{getAllUtterances}
\title{Get all utterances of participants.}
\usage{
getAllUtterances(
labbcat.url,
participant.ids,
transcript.types = NULL,
main.participant = TRUE,
max.matches = ... |
#' Estimates for a single-group design with a categorical outcome
#' variable compared to a reference or population value.
#'
#' @description
#' \loadmathjax
#' `estimate_pdiff_one` is suitable for a single-group design
#' (between subjects) with a categorical outcome variable. It calculates
#' the effect sizes with r... | /R/estimate_pdiff_one.R | no_license | rcalinjageman/esci | R | false | false | 10,891 | r | #' Estimates for a single-group design with a categorical outcome
#' variable compared to a reference or population value.
#'
#' @description
#' \loadmathjax
#' `estimate_pdiff_one` is suitable for a single-group design
#' (between subjects) with a categorical outcome variable. It calculates
#' the effect sizes with r... |
# Exercise 1
for (i in 1:9){ if (i<9) {cat("")}
else if (i==9)
{cat("*", sep='\n')}
}
#Exercise 2
for (i in 1:9){
cat("*&", sep="")
}
#Exercise 3 (1)
15
#Exercise 3 (2)
-30
#Exercise 3 (3)
-4
#Exercise 4, inclu
years <- c( 2015, 2016, 2018, 2020, 2021)
for(ii in 1:length(years)){
... | /Alfaro_HW.R | no_license | ajiwahyu/EEB201 | R | false | false | 2,412 | r | # Exercise 1
for (i in 1:9){ if (i<9) {cat("")}
else if (i==9)
{cat("*", sep='\n')}
}
#Exercise 2
for (i in 1:9){
cat("*&", sep="")
}
#Exercise 3 (1)
15
#Exercise 3 (2)
-30
#Exercise 3 (3)
-4
#Exercise 4, inclu
years <- c( 2015, 2016, 2018, 2020, 2021)
for(ii in 1:length(years)){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.