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 |
|---|---|---|---|---|---|---|---|---|---|
run_r <- function(options) {
oldwd <- getwd()
setwd(options$wd)
on.exit(setwd(oldwd), add = TRUE)
res <- with(
options,
with_envvar(
env,
processx::run(
bin, args = real_cmdargs,
stdout_line_callback = real_callback(stdout),
stderr_line_callback = real_callback(std... | /R/run.R | permissive | thebioengineer/callr | R | false | false | 618 | r |
run_r <- function(options) {
oldwd <- getwd()
setwd(options$wd)
on.exit(setwd(oldwd), add = TRUE)
res <- with(
options,
with_envvar(
env,
processx::run(
bin, args = real_cmdargs,
stdout_line_callback = real_callback(stdout),
stderr_line_callback = real_callback(std... |
#' Plot empirical operating characteristics for specified dataset, treatment and reader
#'
#' Plot empirical operating characteristics (operating points connected by straight
#' lines) for specified treatments and readers, or if desired, plots only
#' (no operating points) averaged over specified treatments an... | /R/PlotEmpiricalOperatingCharacteristics.R | no_license | pfillard/RJafroc | R | false | false | 43,389 | r | #' Plot empirical operating characteristics for specified dataset, treatment and reader
#'
#' Plot empirical operating characteristics (operating points connected by straight
#' lines) for specified treatments and readers, or if desired, plots only
#' (no operating points) averaged over specified treatments an... |
## TODO: when multiple textures have been defined, only the first one is returned (alphabetical ?)
#
#' Get Horizon Data from a local NASIS Database
#'
#' Get horizon-level data from a local NASIS database.
#'
#' @param SS fetch data from Selected Set in NASIS or from the entire local database (default: `TRUE`)
#'
#... | /R/get_hz_data_from_NASIS_db.R | no_license | ncss-tech/soilDB | R | false | false | 3,212 | r | ## TODO: when multiple textures have been defined, only the first one is returned (alphabetical ?)
#
#' Get Horizon Data from a local NASIS Database
#'
#' Get horizon-level data from a local NASIS database.
#'
#' @param SS fetch data from Selected Set in NASIS or from the entire local database (default: `TRUE`)
#'
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timetrackDay.R
\name{timetrackDay}
\alias{timetrackDay}
\title{Get the aggregated timetrack on a specific day}
\usage{
timetrackDay(day = as.POSIXct("2017-09-21", tz = "CET"), token, tz = "CET")
}
\arguments{
\item{day}{A POSIX object of the ... | /man/timetrackDay.Rd | no_license | msiejda/timeulaR | R | false | true | 852 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timetrackDay.R
\name{timetrackDay}
\alias{timetrackDay}
\title{Get the aggregated timetrack on a specific day}
\usage{
timetrackDay(day = as.POSIXct("2017-09-21", tz = "CET"), token, tz = "CET")
}
\arguments{
\item{day}{A POSIX object of the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RobsRUtils.R
\name{LoadKeys}
\alias{LoadKeys}
\title{Utility to load previously generated cryptographic key files}
\usage{
LoadKeys(RSAPrvKeyFilename, RSAPubKeyFilename)
}
\arguments{
\item{RSAPrvKeyFilename}{- a file name}
\item{RSAPubKeyFi... | /man/LoadKeys.Rd | no_license | StatsResearch/RobsRUtils | R | false | true | 746 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RobsRUtils.R
\name{LoadKeys}
\alias{LoadKeys}
\title{Utility to load previously generated cryptographic key files}
\usage{
LoadKeys(RSAPrvKeyFilename, RSAPubKeyFilename)
}
\arguments{
\item{RSAPrvKeyFilename}{- a file name}
\item{RSAPubKeyFi... |
# DATA FRAME --------------------------------------------------------------
# Create the data frame.
df1 <- data.frame(
id = c (1:5),
name = c("Rick","Dan","Michelle","Ryan","Gary"),
salary = c(623.3,515.2,611.0,729.0,843.25),
start_date = as.Date(c("2012-01-01", "2013-09-23", "2014-11-15", "2014-05-11",... | /R хичээл 4-ийн код.R | no_license | Lkhagvaa77/Py4Econ-Rhicheel | R | false | false | 2,762 | r |
# DATA FRAME --------------------------------------------------------------
# Create the data frame.
df1 <- data.frame(
id = c (1:5),
name = c("Rick","Dan","Michelle","Ryan","Gary"),
salary = c(623.3,515.2,611.0,729.0,843.25),
start_date = as.Date(c("2012-01-01", "2013-09-23", "2014-11-15", "2014-05-11",... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{createAnnealing}
\alias{createAnnealing}
\title{Create Steel Annealing dataset}
\usage{
createAnnealing(file = getfilepath("annealing.rds"), write = TRUE,
read = TRUE)
}
\arguments{
\item{file}{character; path/filename to write data file to}
\item{write}{log... | /man/createAnnealing.Rd | no_license | AyushSethi/createdatasets | R | false | false | 1,062 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{createAnnealing}
\alias{createAnnealing}
\title{Create Steel Annealing dataset}
\usage{
createAnnealing(file = getfilepath("annealing.rds"), write = TRUE,
read = TRUE)
}
\arguments{
\item{file}{character; path/filename to write data file to}
\item{write}{log... |
## 1A.tas_nc.R
## This script processes the cmip6 temperature data as comparison data for Hector.
# TODO this script needs to be updated to be relative to hector-rcmip dir.
# 0. Set Up ---------------------------------------------------------------------------------------------------
library(dplyr)
library(tidyr)
#lib... | /calibration/comparison-data/1A.tas_nc.R | permissive | ashiklom/hector-rcmip | R | false | false | 3,515 | r | ## 1A.tas_nc.R
## This script processes the cmip6 temperature data as comparison data for Hector.
# TODO this script needs to be updated to be relative to hector-rcmip dir.
# 0. Set Up ---------------------------------------------------------------------------------------------------
library(dplyr)
library(tidyr)
#lib... |
library(reshape2)
filename <- "getdata_dataset.zip"
## Download and unzip the dataset:
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(fileURL, filename, method="curl")
}
true_file <- "UCI HAR Dataset"
... | /run_analysis.R | no_license | ivishnoi/Getting-and-cleaning-data-coursera-project | R | false | false | 3,154 | r | library(reshape2)
filename <- "getdata_dataset.zip"
## Download and unzip the dataset:
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(fileURL, filename, method="curl")
}
true_file <- "UCI HAR Dataset"
... |
##' Output the non-synonymous SNVs into FASTA file.
##'
##' This function uses the output of aaVariation() as input, introduces the nonsynonymous variation into the protein database.
##' @title Output the variant(SNVs) protein sequences into FASTA format
##' @param vartable A data frame which is the output of aaVar... | /R/OutputVarproseq.R | no_license | rpm78/customProDB | R | false | false | 6,031 | r | ##' Output the non-synonymous SNVs into FASTA file.
##'
##' This function uses the output of aaVariation() as input, introduces the nonsynonymous variation into the protein database.
##' @title Output the variant(SNVs) protein sequences into FASTA format
##' @param vartable A data frame which is the output of aaVar... |
library(RchivalTag)
### Name: image_TempDepthProfiles
### Title: plots interpolated daily temperature at depth profiles
### Aliases: image_TempDepthProfiles
### ** Examples
#### example 1) run on PDT file:
## step I) read sample PDT data file:
path <- system.file("example_files",package="RchivalTag")
PDT <- read_PD... | /data/genthat_extracted_code/RchivalTag/examples/image_TempDepthProfiles.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,703 | r | library(RchivalTag)
### Name: image_TempDepthProfiles
### Title: plots interpolated daily temperature at depth profiles
### Aliases: image_TempDepthProfiles
### ** Examples
#### example 1) run on PDT file:
## step I) read sample PDT data file:
path <- system.file("example_files",package="RchivalTag")
PDT <- read_PD... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ontology.R
\name{annotate}
\alias{annotate}
\title{Annotate ontology with gene annotations.}
\usage{
annotate(o, annotations)
}
\arguments{
\item{o}{An \code{ontology} object.}
\item{annotations}{A named list of character vectors.}
}
\value{... | /man/annotate.Rd | permissive | SimonLarsen/higana | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ontology.R
\name{annotate}
\alias{annotate}
\title{Annotate ontology with gene annotations.}
\usage{
annotate(o, annotations)
}
\arguments{
\item{o}{An \code{ontology} object.}
\item{annotations}{A named list of character vectors.}
}
\value{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/open.R
\name{prepSesameList}
\alias{prepSesameList}
\title{List supported prepSesame functions}
\usage{
prepSesameList()
}
\value{
a data frame with code, func, description
}
\description{
List supported prepSesame functions
}
\examples{
prep... | /man/prepSesameList.Rd | permissive | zwdzwd/sesame | R | false | true | 335 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/open.R
\name{prepSesameList}
\alias{prepSesameList}
\title{List supported prepSesame functions}
\usage{
prepSesameList()
}
\value{
a data frame with code, func, description
}
\description{
List supported prepSesame functions
}
\examples{
prep... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_init_global_vars.R
\docType{data}
\name{SAVE_PROG_BUTTON_MESSAGE}
\alias{SAVE_PROG_BUTTON_MESSAGE}
\title{Message to display underneath "Save Progress" button}
\format{
An object of class \code{character} of length 1.
}
\usage{
SAVE_PRO... | /man/SAVE_PROG_BUTTON_MESSAGE.Rd | no_license | dr-consulting/ibi_VizEdit | R | false | true | 427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_init_global_vars.R
\docType{data}
\name{SAVE_PROG_BUTTON_MESSAGE}
\alias{SAVE_PROG_BUTTON_MESSAGE}
\title{Message to display underneath "Save Progress" button}
\format{
An object of class \code{character} of length 1.
}
\usage{
SAVE_PRO... |
hospital_sort <- function(state, outcome) {
rates[rates == 'Not Available'] <- 0
indeice <- c(grep("^Hospital.*Death*", names(rates)))
mortality_rates <- rates[, c(2, 7, indeice)]
names(mortality_rates)[3:5] <- c('heart attack', 'heart failure', 'pneumonia')
... | /R Programming/Week 4 Assignment/best.R | no_license | Frank-duuuu/Data-Science-Specialization-Assignments | R | false | false | 1,080 | r | hospital_sort <- function(state, outcome) {
rates[rates == 'Not Available'] <- 0
indeice <- c(grep("^Hospital.*Death*", names(rates)))
mortality_rates <- rates[, c(2, 7, indeice)]
names(mortality_rates)[3:5] <- c('heart attack', 'heart failure', 'pneumonia')
... |
#MWPCA -----
rm(list=ls())
setwd("~/Thèse/Script")
source("Movingwindowpca_modif_save.R")
source("asd_read.R")
library(rnirs)
library(ggplot2)
#fonction pour récupérer le nom spécifiques (et date) des fichiers / dossiers
infofile <- function(x,sta,sto){substr(x,sta,sto)}
setwd("~/Thèse/Données blé")
... | /MWPCA_data_brut.R | no_license | Loryana/MWPCA | R | false | false | 13,221 | r | #MWPCA -----
rm(list=ls())
setwd("~/Thèse/Script")
source("Movingwindowpca_modif_save.R")
source("asd_read.R")
library(rnirs)
library(ggplot2)
#fonction pour récupérer le nom spécifiques (et date) des fichiers / dossiers
infofile <- function(x,sta,sto){substr(x,sta,sto)}
setwd("~/Thèse/Données blé")
... |
setwd("/home/jennifer/Documents/UTFPR/TCC")
initTestsPercentage <- function(){
percentageLink <- "/home/jennifer/Documents/UTFPR/TCC/Scripts/results/Testspercentage.csv"
if(!file.exists(percentageLink)){
rowsFst <- data.frame("Language", "Repository", "Tests %", "No tests %")
write.table(rowsFst,file = ... | /RScripts/analizer.r | no_license | JenniferIzabel/TCC-Files | R | false | false | 4,614 | r |
setwd("/home/jennifer/Documents/UTFPR/TCC")
initTestsPercentage <- function(){
percentageLink <- "/home/jennifer/Documents/UTFPR/TCC/Scripts/results/Testspercentage.csv"
if(!file.exists(percentageLink)){
rowsFst <- data.frame("Language", "Repository", "Tests %", "No tests %")
write.table(rowsFst,file = ... |
# RugplotCellScore.R
# from CSReport_v1.4.3.R
#' RugplotCellScore
#'
#' This function will plot a rugplot of all CellScore values for each transition
#' selected in the cell.change data frame. The function will only plot the
#' scores for the test samples (annotated by the
#' cellscore$column sub_cell_type1). Standar... | /R/RugplotCellScore.R | no_license | nmah/CellScore | R | false | false | 7,288 | r | # RugplotCellScore.R
# from CSReport_v1.4.3.R
#' RugplotCellScore
#'
#' This function will plot a rugplot of all CellScore values for each transition
#' selected in the cell.change data frame. The function will only plot the
#' scores for the test samples (annotated by the
#' cellscore$column sub_cell_type1). Standar... |
#===========================================================================
# Q1
#===========================================================================
# The American Community Survey distributes downloadable data about United States communities. Download the 2006 microdata survey ... | /3 - Getting and Cleaning Data/week 4/quiz/script.r | no_license | findshawn/Data-Science-Spec----Coursera | R | false | false | 4,438 | r | #===========================================================================
# Q1
#===========================================================================
# The American Community Survey distributes downloadable data about United States communities. Download the 2006 microdata survey ... |
##Generates graph for Global Active Power over 2 days
#Read semi-colon separated text file as a dataframe with missing values coded as ?
##Assumes that the file is in the current working directory
##All fields/columns are read as characters
hpc<-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.str... | /Plot2.R | no_license | theoldnovis/ExData_Plotting1 | R | false | false | 1,366 | r | ##Generates graph for Global Active Power over 2 days
#Read semi-colon separated text file as a dataframe with missing values coded as ?
##Assumes that the file is in the current working directory
##All fields/columns are read as characters
hpc<-read.table("household_power_consumption.txt",header=TRUE, sep=";",na.str... |
context("Split data")
raw_data <- read.csv2("test_data/splitData_raw.csv")
test_that("factor target is split correctly", {
split_data <- splitData(raw_data, "factor_target")
train_x <- split_data$train_x
train_y <- split_data$train_y
valid_x <- split_data$valid_x
valid_y <- split_data$valid_y
... | /tests/testthat/test_splitData.R | no_license | jsalminen/KaggleSolveR | R | false | false | 2,346 | r | context("Split data")
raw_data <- read.csv2("test_data/splitData_raw.csv")
test_that("factor target is split correctly", {
split_data <- splitData(raw_data, "factor_target")
train_x <- split_data$train_x
train_y <- split_data$train_y
valid_x <- split_data$valid_x
valid_y <- split_data$valid_y
... |
getTaskFailedErrorString <- function(...) {
errorMessage <- paste(
...,
"Error handling is set to 'stop' and has proceeded to terminate the job.",
"The user will have to handle deleting the job.",
"If this is not the correct behavior, change the errorhandling property to 'pass'",
" or 'remove' in ... | /R/utility-string.R | permissive | Azure/doAzureParallel | R | false | false | 4,559 | r | getTaskFailedErrorString <- function(...) {
errorMessage <- paste(
...,
"Error handling is set to 'stop' and has proceeded to terminate the job.",
"The user will have to handle deleting the job.",
"If this is not the correct behavior, change the errorhandling property to 'pass'",
" or 'remove' in ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{sample_store}
\alias{sample_store}
\title{Create a new list for storage samples in the pmwgs object}
\usage{
sample_store(par_names, n_subjects, iters = 1)
}
\arguments{
\item{par_names}{The names of each parameter as a charac... | /man/sample_store.Rd | no_license | JPCAV/samplers | R | false | true | 651 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{sample_store}
\alias{sample_store}
\title{Create a new list for storage samples in the pmwgs object}
\usage{
sample_store(par_names, n_subjects, iters = 1)
}
\arguments{
\item{par_names}{The names of each parameter as a charac... |
findBest <-
function(cutoff, ssignature, ccandidate) {
repeat {
K <- length(ccandidate)
leaveOneOut <- rep(0, K)
for(k in 1:K)
leaveOneOut[k] <- survdiff(stData ~ classify(geData[, c(ssignature, ccandidate[-k])])$clusters)$chisq
mmax <- max(leaveOneOut)
if(sum(leaveOneOut == mmax) == K)
... | /geneSignatureFinder/R/findBest.R | no_license | ingted/R-Examples | R | false | false | 598 | r | findBest <-
function(cutoff, ssignature, ccandidate) {
repeat {
K <- length(ccandidate)
leaveOneOut <- rep(0, K)
for(k in 1:K)
leaveOneOut[k] <- survdiff(stData ~ classify(geData[, c(ssignature, ccandidate[-k])])$clusters)$chisq
mmax <- max(leaveOneOut)
if(sum(leaveOneOut == mmax) == K)
... |
source('/Users/jiecao/Desktop/UW_work/model_devp/simulator/cal_GM.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/Data_Fn2.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/Build_TMB_Fn2.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/dist_matrix_nearest_neighbor.r')
Versi... | /Jie code/Scripts/spatial_size_2_comparison.r | no_license | szuwalski/space-crab | R | false | false | 6,475 | r |
source('/Users/jiecao/Desktop/UW_work/model_devp/simulator/cal_GM.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/Data_Fn2.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/Build_TMB_Fn2.r')
source('/Users/jiecao/Desktop/UW_work/model_devp/SSST/Codes/dist_matrix_nearest_neighbor.r')
Versi... |
#' Unite multiple columns into one.
#'
#' Convenience function to paste together multiple columns into one.
#'
#' @inheritParams unite_
#' @param col (Bare) name of column to add
#' @param ... Specification of columns to unite. Use bare variable names.
#' Select all variables between x and z with \code{x:z}, exclude ... | /R/unite.R | no_license | yifeizhang/tidyr | R | false | false | 1,781 | r | #' Unite multiple columns into one.
#'
#' Convenience function to paste together multiple columns into one.
#'
#' @inheritParams unite_
#' @param col (Bare) name of column to add
#' @param ... Specification of columns to unite. Use bare variable names.
#' Select all variables between x and z with \code{x:z}, exclude ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ToM.R
\name{p_op_1_k_approx_fun}
\alias{p_op_1_k_approx_fun}
\title{p_op_1_k_approx_fun}
\usage{
p_op_1_k_approx_fun(prev_hidden_states, level)
}
\arguments{
\item{prev_hidden_states}{a list structure containing the states from last round}
\... | /man/p_op_1_k_approx_fun.Rd | no_license | KennethEnevoldsen/SiRToM | R | false | true | 679 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ToM.R
\name{p_op_1_k_approx_fun}
\alias{p_op_1_k_approx_fun}
\title{p_op_1_k_approx_fun}
\usage{
p_op_1_k_approx_fun(prev_hidden_states, level)
}
\arguments{
\item{prev_hidden_states}{a list structure containing the states from last round}
\... |
#------------- INCLUDES -----------------
source('bin/includes.R')
setwd('figures/fig2/I/')
library(raster)
#------------- LOADING -----------------
spots.table <- append.cluster.to.spots.table(add.parent.acronym(load.spots.table()), cl.file, min.cluster.size = 10)
df.colors <- get.color.from.3d.tsne(tsne.3d.path, ... | /figures/fig2/I/high-res-svm.R | permissive | jfnavarro/molecular-atlas | R | false | false | 1,237 | r | #------------- INCLUDES -----------------
source('bin/includes.R')
setwd('figures/fig2/I/')
library(raster)
#------------- LOADING -----------------
spots.table <- append.cluster.to.spots.table(add.parent.acronym(load.spots.table()), cl.file, min.cluster.size = 10)
df.colors <- get.color.from.3d.tsne(tsne.3d.path, ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ProteinQuantification.R
\name{SUPPZA}
\alias{SUPPZA}
\title{Protein Quantification Domain Supplemental Variables}
\description{
{
\tabular{ll}{
\strong{Variable Name} \tab \strong{Variable Label} \cr
STUDYID \tab Study Ident... | /man/SUPPZA.Rd | no_license | SanchitaB/RImmPort | R | false | false | 840 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/ProteinQuantification.R
\name{SUPPZA}
\alias{SUPPZA}
\title{Protein Quantification Domain Supplemental Variables}
\description{
{
\tabular{ll}{
\strong{Variable Name} \tab \strong{Variable Label} \cr
STUDYID \tab Study Ident... |
#' Random Forest Variable Importance Plotting
#'
#' @param rf a randomForest object
#' @param type the type of importance to plot "acc" for Mean Decrease Accuracy, and
#' "gini for Mean Decrease Gini.
#' @param ... any items that can be passed to geom_point. Mostly used to control size
#' and... | /R/importancePlot.R | no_license | srravula1/LakeTrophicModelling | R | false | false | 3,046 | r | #' Random Forest Variable Importance Plotting
#'
#' @param rf a randomForest object
#' @param type the type of importance to plot "acc" for Mean Decrease Accuracy, and
#' "gini for Mean Decrease Gini.
#' @param ... any items that can be passed to geom_point. Mostly used to control size
#' and... |
context("Testing impute")
# Setup ------------------------------------------------------------------------
# set seed for reproducibility
set.seed(7)
# build data set to predict whether or not animal_id is a kitty
n <- 300
df <- tibble(animal_id = 1:n,
length = rnorm(n, mean = 7, sd = 2),
wid... | /tests/testthat/test-impute.r | permissive | g3rley/healthcareai-r | R | false | false | 7,763 | r | context("Testing impute")
# Setup ------------------------------------------------------------------------
# set seed for reproducibility
set.seed(7)
# build data set to predict whether or not animal_id is a kitty
n <- 300
df <- tibble(animal_id = 1:n,
length = rnorm(n, mean = 7, sd = 2),
wid... |
# bootMedia Calcula SE e intervalos de confianza para la media
library(boot)
bootMedia <- function(x,p=0.95,Replicas=9999) { # Sólo es necesario pasar el vector con los datos que se quiere calcular la media
media <-function(data,indices) {return(mean(data[indices]))}
x.boot<-boot(x,media,R=Replicas)
x.boot.ic <- ... | /estadistica/bootMedia.R | no_license | jjdeharo/General | R | false | false | 815 | r | # bootMedia Calcula SE e intervalos de confianza para la media
library(boot)
bootMedia <- function(x,p=0.95,Replicas=9999) { # Sólo es necesario pasar el vector con los datos que se quiere calcular la media
media <-function(data,indices) {return(mean(data[indices]))}
x.boot<-boot(x,media,R=Replicas)
x.boot.ic <- ... |
##############
## CpG Gene Features (with ncRNA)
##############
setwd("/big_data/redgar/BECon")
library(ggplot2)
library(IlluminaHumanMethylation450k.db)
library(reshape)
library(RColorBrewer)
# Data
ucsc<-read.table("Gene_annotation/refseq") # 46722 gene bodies
ucsc<-ucsc[,c(3,4,5,6,13)]
colnames(ucs... | /BECon_Manuscript_Analysis/RefSeq_updated_june2015.R | no_license | redgar598/BECon | R | false | false | 7,313 | r | ##############
## CpG Gene Features (with ncRNA)
##############
setwd("/big_data/redgar/BECon")
library(ggplot2)
library(IlluminaHumanMethylation450k.db)
library(reshape)
library(RColorBrewer)
# Data
ucsc<-read.table("Gene_annotation/refseq") # 46722 gene bodies
ucsc<-ucsc[,c(3,4,5,6,13)]
colnames(ucs... |
# mseSSUtilities.r
#
# Utility functions for the MSE for SS, Pacific Hake 2013 version.
# Anything in capitals starting with a period is defined in
# mseSSGlobals.r
#
# Authors: Allan Hicks, Chris Grandin
#
source("mseSSGlobals.r")
storeScenarios <- function(){
# Store the global scenarios object (s) in the .RE... | /Rscripts/mseSSUtilities.r | no_license | allanhicks/testMSESS | R | false | false | 7,675 | r | # mseSSUtilities.r
#
# Utility functions for the MSE for SS, Pacific Hake 2013 version.
# Anything in capitals starting with a period is defined in
# mseSSGlobals.r
#
# Authors: Allan Hicks, Chris Grandin
#
source("mseSSGlobals.r")
storeScenarios <- function(){
# Store the global scenarios object (s) in the .RE... |
setwd("/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/PRACTICALS/Practical_4_MapleSamara/")
source('/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/PLOTTING.R')
source('/datascience/proje... | /STAT210 Statistical Modelling and Experimental Design/PRACTICALS/Practical_4_MapleSamara/Pratical4_MapleSamara.R | no_license | statisticallyfit/RStatistics | R | false | false | 5,494 | r | setwd("/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/PRACTICALS/Practical_4_MapleSamara/")
source('/datascience/projects/statisticallyfit/github/R/RStatistics/STAT210 Statistical Modelling and Experimental Design/PLOTTING.R')
source('/datascience/proje... |
GetName <- function(){
# get the filename from the current working directory
directory <- basename(getwd())
# directory naming from MRR: "CHIPNAME_gaskGASETTYPE_DATE"
# extracts and returns GASKETTYPE from directory name
name <- unlist(strsplit(directory, split = "_"))
name <- name[2]
# define name as global v... | /2_CompileProcessedRingData_old.R | no_license | danian95/XenograftProteinProfiling | R | false | false | 5,575 | r | GetName <- function(){
# get the filename from the current working directory
directory <- basename(getwd())
# directory naming from MRR: "CHIPNAME_gaskGASETTYPE_DATE"
# extracts and returns GASKETTYPE from directory name
name <- unlist(strsplit(directory, split = "_"))
name <- name[2]
# define name as global v... |
#' ---
#' title: "Data: Simple Mediation Model - Multivariate Normal Distribution - Data Missing Not at Random - Nonparametric Bootstrap Confidence Intervals using Full Information Maximum Likelihood"
#' author: "Ivan Jacob Agaloos Pesigan"
#' date: "`r Sys.Date()`"
#' output:
#' rmarkdown::html_vignette:
#' toc:... | /data_raw/results_mvn_mnar_nb.fiml_ci.R | permissive | jeksterslabds/jeksterslabRmedsimple | R | false | false | 1,442 | r | #' ---
#' title: "Data: Simple Mediation Model - Multivariate Normal Distribution - Data Missing Not at Random - Nonparametric Bootstrap Confidence Intervals using Full Information Maximum Likelihood"
#' author: "Ivan Jacob Agaloos Pesigan"
#' date: "`r Sys.Date()`"
#' output:
#' rmarkdown::html_vignette:
#' toc:... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{is_server_connected}
\alias{is_server_connected}
\title{Check Connection State}
\usage{
is_server_connected()
}
\value{
\code{TRUE} or \code{FALSE}
}
\description{
Checks to see if the Ripple-REST API is currently connected to a
\code{rippled} server, and is re... | /man/is_server_connected.Rd | permissive | hmalmedal/ripplerestr | R | false | false | 463 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{is_server_connected}
\alias{is_server_connected}
\title{Check Connection State}
\usage{
is_server_connected()
}
\value{
\code{TRUE} or \code{FALSE}
}
\description{
Checks to see if the Ripple-REST API is currently connected to a
\code{rippled} server, and is re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/highmed.R
\name{univariate_mediation_DMR}
\alias{univariate_mediation_DMR}
\title{Run mediation analysis on DMR}
\usage{
univariate_mediation_DMR(X, Y, DMR, covar = NULL, U = NULL, sims = 3)
}
\arguments{
\item{X}{an explanatory variable matr... | /man/univariate_mediation_DMR.Rd | no_license | jumentib/highmed | R | false | true | 2,636 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/highmed.R
\name{univariate_mediation_DMR}
\alias{univariate_mediation_DMR}
\title{Run mediation analysis on DMR}
\usage{
univariate_mediation_DMR(X, Y, DMR, covar = NULL, U = NULL, sims = 3)
}
\arguments{
\item{X}{an explanatory variable matr... |
load.XBCF <- function(fileName) {
json_str = readChar(fileName, file.info(fileName)$size)
obj = .Call(`_XBCF_json_to_r`, json_str) # model$tree_pnt
class(obj) = "XBCF"
return(obj)
} | /R/load.XBCF.R | no_license | andrewherren/XBCF | R | false | false | 198 | r | load.XBCF <- function(fileName) {
json_str = readChar(fileName, file.info(fileName)$size)
obj = .Call(`_XBCF_json_to_r`, json_str) # model$tree_pnt
class(obj) = "XBCF"
return(obj)
} |
################################################################################
#
#' ========================> Sexuality Education in the Digital Age:
#' Modelling the predictors of acceptance and behavioural intention
#' to access and interact with sexuality information on social media.
#
# SUPPLEMENTARY ANALYSIS
#
#... | /R/05_supplementary_analysis.R | no_license | eolamijuwon/metaUTAUT | R | false | false | 24,139 | r | ################################################################################
#
#' ========================> Sexuality Education in the Digital Age:
#' Modelling the predictors of acceptance and behavioural intention
#' to access and interact with sexuality information on social media.
#
# SUPPLEMENTARY ANALYSIS
#
#... |
library("dplyr")
#read in the input files
oncofuse <- read.table(file = '~/Documents/UMCCR/data/fusions/comparison/MH17T001P013-oncofuse-edited', header = TRUE)
pizzly <- read.table(file = '~/Documents/UMCCR/data/fusions/comparison/MH17T001P013-oncofuse-test-flat-filtered.tsv', header = TRUE)
#sort oncofuse output on... | /fusions/fusion-comparison.R | no_license | rafaelmguedes/RNAsum | R | false | false | 1,673 | r | library("dplyr")
#read in the input files
oncofuse <- read.table(file = '~/Documents/UMCCR/data/fusions/comparison/MH17T001P013-oncofuse-edited', header = TRUE)
pizzly <- read.table(file = '~/Documents/UMCCR/data/fusions/comparison/MH17T001P013-oncofuse-test-flat-filtered.tsv', header = TRUE)
#sort oncofuse output on... |
\name{getMWTarch}
\Rdversion{2.1}
\alias{getMWTarch}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Read in data from a Microwave Telemetry Inc. fish report from a recovered PSAT.
}
\description{
Reads in all data from a Microwave Telemetry Inc. fish report for a recovered tag. This function par... | /man/getMWTarch.Rd | no_license | galuardi/analyzepsat | R | false | false | 2,423 | rd | \name{getMWTarch}
\Rdversion{2.1}
\alias{getMWTarch}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Read in data from a Microwave Telemetry Inc. fish report from a recovered PSAT.
}
\description{
Reads in all data from a Microwave Telemetry Inc. fish report for a recovered tag. This function par... |
### Proyecto SINCA
## Script para imprimir reportes masivamente
## PBH Jul 2020
# Imprimir reporte individual --------------
rmarkdown::render("Reporte_CalidadAire.Rmd",
params = list(reg="M",
estaciones=c("Las Condes", "Cerrillos",
... | /Imprimir_Reportes.R | no_license | pmbusch/Reportes-SINCA | R | false | false | 2,914 | r | ### Proyecto SINCA
## Script para imprimir reportes masivamente
## PBH Jul 2020
# Imprimir reporte individual --------------
rmarkdown::render("Reporte_CalidadAire.Rmd",
params = list(reg="M",
estaciones=c("Las Condes", "Cerrillos",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kfold_outcome_predict.R
\name{kfold_outcome_predict}
\alias{kfold_outcome_predict}
\title{*Construct an ensemble model using the entire data and generate CV-based (out of sample) predictions based on this model [Interface].}
\usage{
kfold_out... | /ExperimentalLearning/man/kfold_outcome_predict.Rd | no_license | ClaraMarquardt/EnsembleInABox | R | false | true | 1,180 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kfold_outcome_predict.R
\name{kfold_outcome_predict}
\alias{kfold_outcome_predict}
\title{*Construct an ensemble model using the entire data and generate CV-based (out of sample) predictions based on this model [Interface].}
\usage{
kfold_out... |
library(dplyr)
# implementando o id3 na unha -------------------------------------------------
#carregando dataset jogar tenis
df <- readr::read_csv(file = "jogar-tenis.csv") %>%
select(-Dia) %>%
rename(Jogartenis=`Jogar Tênis`)
#criando a função definiemodelo
defineformula <- function(dados,formula){
dados ... | /id3.R | permissive | jonates/id3 | R | false | false | 5,113 | r | library(dplyr)
# implementando o id3 na unha -------------------------------------------------
#carregando dataset jogar tenis
df <- readr::read_csv(file = "jogar-tenis.csv") %>%
select(-Dia) %>%
rename(Jogartenis=`Jogar Tênis`)
#criando a função definiemodelo
defineformula <- function(dados,formula){
dados ... |
# Null list, an empty HTTPInteractionList object
NullList <- R6::R6Class(
'NullList',
public = list(
response_for = function() NULL,
has_interaction_matching = function() FALSE,
has_used_interaction_matching = function() FALSE,
remaining_unused_interaction_count = function() 0
)
)
#' @title HTTP... | /R/http_interaction_list.R | permissive | ropensci/vcr | R | false | false | 10,650 | r | # Null list, an empty HTTPInteractionList object
NullList <- R6::R6Class(
'NullList',
public = list(
response_for = function() NULL,
has_interaction_matching = function() FALSE,
has_used_interaction_matching = function() FALSE,
remaining_unused_interaction_count = function() 0
)
)
#' @title HTTP... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Y.R
\docType{data}
\name{Y}
\alias{Y}
\title{Binary response variable of four studies with correponding z-values in the Z dataset}
\format{An object of class \code{list} of length 4.}
\usage{
Y
}
\description{
A list containing the response v... | /man/Y.Rd | no_license | CenterForStatistics-UGent/EBayesH | R | false | true | 422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Y.R
\docType{data}
\name{Y}
\alias{Y}
\title{Binary response variable of four studies with correponding z-values in the Z dataset}
\format{An object of class \code{list} of length 4.}
\usage{
Y
}
\description{
A list containing the response v... |
' run_sequenza.R
Usage:
run_sequenza.R -i INPUT -p PREFIX -o OUTPUT
Options:
-i --INPUT input input .seqz file
-p --PREFIX prefix sample prefix
-o --OUTPUT output output directory
' -> doc
library(docopt)
library(dplyr)
library(sequenza)
args <- docopt(doc)
infile=args$INPUT
outfile=args$OUTPUT
prefix=ar... | /scripts/run_sequenza.R | no_license | lculibrk/sequenza_pipeline | R | false | false | 970 | r | ' run_sequenza.R
Usage:
run_sequenza.R -i INPUT -p PREFIX -o OUTPUT
Options:
-i --INPUT input input .seqz file
-p --PREFIX prefix sample prefix
-o --OUTPUT output output directory
' -> doc
library(docopt)
library(dplyr)
library(sequenza)
args <- docopt(doc)
infile=args$INPUT
outfile=args$OUTPUT
prefix=ar... |
## code to prepare `DATASET` dataset goes here
usethis::use_data("DATASET")
# Breast survival data
library(dplyr)
library(RTCGA)
library(RTCGA.clinical)
brca_cohort <- survivalTCGA(BRCA.clinical,
extract.cols=c("admin.disease_code",
"patient.b... | /data-raw/DATASET.R | permissive | Dhitebayu/visR | R | false | false | 1,651 | r | ## code to prepare `DATASET` dataset goes here
usethis::use_data("DATASET")
# Breast survival data
library(dplyr)
library(RTCGA)
library(RTCGA.clinical)
brca_cohort <- survivalTCGA(BRCA.clinical,
extract.cols=c("admin.disease_code",
"patient.b... |
data<-system.file("extdata", "test.expressiondata.txt", package = "TissueEnrich")
expressionData<-read.table(data,header=TRUE,row.names=1,sep='\t')
se<-SummarizedExperiment(assays = SimpleList(as.matrix(expressionData)),rowData = row.names(expressionData),colData = colnames(expressionData))
output<-teGeneRetrieval(se)... | /tests/testthat/tests.R | no_license | Tuteja-Lab/TissueEnrich | R | false | false | 1,271 | r |
data<-system.file("extdata", "test.expressiondata.txt", package = "TissueEnrich")
expressionData<-read.table(data,header=TRUE,row.names=1,sep='\t')
se<-SummarizedExperiment(assays = SimpleList(as.matrix(expressionData)),rowData = row.names(expressionData),colData = colnames(expressionData))
output<-teGeneRetrieval(se)... |
##Kew leaf trait dataset, climate traits and phylogeny
##multiple regression and AIC comparisons with approximately scaled, and centred data
##alternative models are fit to check impacts of left skew in MAT data
##needs:
###"Bairdetal_Kew_functions.R"
###"data.newclimate.csv"
###"C3_C4_coding.txt"
###"Poaceae_hyp1_all... | /Kew/Bairdetal_Kew_alt_analyses.R | no_license | smuel-tylor/grass-leaf-size- | R | false | false | 7,222 | r | ##Kew leaf trait dataset, climate traits and phylogeny
##multiple regression and AIC comparisons with approximately scaled, and centred data
##alternative models are fit to check impacts of left skew in MAT data
##needs:
###"Bairdetal_Kew_functions.R"
###"data.newclimate.csv"
###"C3_C4_coding.txt"
###"Poaceae_hyp1_all... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{statistitian_time}
\alias{statistitian_time}
\title{A statistician’s time budget}
\format{
An object of class \code{data.frame} with 20 rows and 7 columns.
}
\usage{
statistitian_time
}
\description{
Time budgets –... | /man/statistitian_time.Rd | no_license | mcomas/coda.base | R | false | true | 1,632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{statistitian_time}
\alias{statistitian_time}
\title{A statistician’s time budget}
\format{
An object of class \code{data.frame} with 20 rows and 7 columns.
}
\usage{
statistitian_time
}
\description{
Time budgets –... |
#Script to resample and mosaic mapbiomas data
rm(list=ls())
library(raster)
inpath <- "Data/MapBiomas/"
outpath <- "Data/Unclassified/"
#set years for analysis
startyr <- 2000
endyr <- 2018
stepyr <- 1
yrs <- seq(startyr,endyr,stepyr)
yrs <- yrs - 1984 #because 1985 is in band 1 of the MapBiomas tif files
labelyr... | /ResampleMosaic.r | permissive | jamesdamillington/BrazilInputMaps | R | false | false | 3,620 | r | #Script to resample and mosaic mapbiomas data
rm(list=ls())
library(raster)
inpath <- "Data/MapBiomas/"
outpath <- "Data/Unclassified/"
#set years for analysis
startyr <- 2000
endyr <- 2018
stepyr <- 1
yrs <- seq(startyr,endyr,stepyr)
yrs <- yrs - 1984 #because 1985 is in band 1 of the MapBiomas tif files
labelyr... |
rm(list=ls())
dev.off()
library (gtrendsR)
keywords=c("Vaseline","Nivea", "Ponds")
country=c("GB")
time=("2010-01-01 2020-05-30")
channel='web'
trends = gtrends(keywords, gprop =channel,geo=country, time = time )
#select only interest over time
time_trend=trends$interest_over_time
library(ggplot2)
# r... | /decomposing and forecasting.R | no_license | Thanetpsv/decomposing-forecasting | R | false | false | 2,211 | r | rm(list=ls())
dev.off()
library (gtrendsR)
keywords=c("Vaseline","Nivea", "Ponds")
country=c("GB")
time=("2010-01-01 2020-05-30")
channel='web'
trends = gtrends(keywords, gprop =channel,geo=country, time = time )
#select only interest over time
time_trend=trends$interest_over_time
library(ggplot2)
# r... |
library(tidyverse)
library(leaflet)
# add some circles to a map
df = data.frame(Lat = 1:10, Long = rnorm(10))
leaflet(df) %>% addCircles()
leaflet(df) %>% addCircles(lng = ~Long, lat = ~Lat) | /basics/maps/circles.R | permissive | ArnulfoPerez/R | R | false | false | 191 | r | library(tidyverse)
library(leaflet)
# add some circles to a map
df = data.frame(Lat = 1:10, Long = rnorm(10))
leaflet(df) %>% addCircles()
leaflet(df) %>% addCircles(lng = ~Long, lat = ~Lat) |
setwd("/home/dudusdau/ccb/Four-linkage")
library(onemap)
source("Four.sim.R")
source("Four.est.R")
source("Four.est1.R")
source("Four.util.R")
par_st <- par_obj()
####simulation
###################################BC################################
nS <- c()
for(ii in 1:200){
BC_gam <- simu_BC(par_obj=par_st,n=400)
... | /Four.test.R | no_license | wangping21/Four-point-linkage-ananlysis-model | R | false | false | 1,944 | r | setwd("/home/dudusdau/ccb/Four-linkage")
library(onemap)
source("Four.sim.R")
source("Four.est.R")
source("Four.est1.R")
source("Four.util.R")
par_st <- par_obj()
####simulation
###################################BC################################
nS <- c()
for(ii in 1:200){
BC_gam <- simu_BC(par_obj=par_st,n=400)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Misc_Exported.R
\name{TACfilter}
\alias{TACfilter}
\title{TAC Filter}
\usage{
TACfilter(TAC)
}
\arguments{
\item{TAC}{A numeric vector of TAC recommendations}
}
\description{
Filters vector of TAC recommendations by replacing nega... | /man/TACfilter.Rd | no_license | cran/MSEtool | R | false | true | 434 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Misc_Exported.R
\name{TACfilter}
\alias{TACfilter}
\title{TAC Filter}
\usage{
TACfilter(TAC)
}
\arguments{
\item{TAC}{A numeric vector of TAC recommendations}
}
\description{
Filters vector of TAC recommendations by replacing nega... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
RHLightResponseCostC <- function(theta, flux, sdFlux, parameterPrior, sdParameterPrior, Rg, VPD, Temp, VPD0, fixVPD) {
.Call('REddyProc_RHLightResponseCostC', PACKAGE = 'REddyProc', the... | /R/RcppExports.R | no_license | serbinsh/REddyProc | R | false | false | 566 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
RHLightResponseCostC <- function(theta, flux, sdFlux, parameterPrior, sdParameterPrior, Rg, VPD, Temp, VPD0, fixVPD) {
.Call('REddyProc_RHLightResponseCostC', PACKAGE = 'REddyProc', the... |
## File Name: SRM_INCLUDE_PARAMETERS_PARM_TABLE.R
## File Version: 0.02
SRM_INCLUDE_PARAMETERS_PARM_TABLE <- function( parm, parm.table)
{
parm1 <- parm[ parm.table$index ]
parm.table$est <- parm1
ind <- ! is.na( parm.table$fixed )
if (length(ind)>0){
parm.table$est[ ind ] <- parm.table$fixed[ ... | /R/SRM_INCLUDE_PARAMETERS_PARM_TABLE.R | no_license | alexanderrobitzsch/srm | R | false | false | 357 | r | ## File Name: SRM_INCLUDE_PARAMETERS_PARM_TABLE.R
## File Version: 0.02
SRM_INCLUDE_PARAMETERS_PARM_TABLE <- function( parm, parm.table)
{
parm1 <- parm[ parm.table$index ]
parm.table$est <- parm1
ind <- ! is.na( parm.table$fixed )
if (length(ind)>0){
parm.table$est[ ind ] <- parm.table$fixed[ ... |
library(class)
library(data.table)
library(nnet)
colclasses <- sapply(
read.csv("train.csv", header = T, nrows = 1000),
class)
train <- fread("train.csv", colClasses = colclasses)
colclasses <- sapply(
read.csv("test.csv", header = T, nrows = 1000),
class)
test <- fread("test.csv", colClasses = colclasses)
la... | /digit_recognition.R | no_license | mohinbanker/digit_recognizer | R | false | false | 1,670 | r | library(class)
library(data.table)
library(nnet)
colclasses <- sapply(
read.csv("train.csv", header = T, nrows = 1000),
class)
train <- fread("train.csv", colClasses = colclasses)
colclasses <- sapply(
read.csv("test.csv", header = T, nrows = 1000),
class)
test <- fread("test.csv", colClasses = colclasses)
la... |
## Code steps to create a CacheMatrix
## Create object to cache inverse of matrix
makeCacheMatrix <- function( m = matrix() ) {
## Create Inverse
i <- NULL
## Set matrix
set <- function( matrix ) {
m <<- matrix
i <<- NULL
}
## Get matrix
get <- function() {
## R... | /cachematrix.R | no_license | Sreenidhish/ProgrammingAssignment2 | R | false | false | 1,235 | r | ## Code steps to create a CacheMatrix
## Create object to cache inverse of matrix
makeCacheMatrix <- function( m = matrix() ) {
## Create Inverse
i <- NULL
## Set matrix
set <- function( matrix ) {
m <<- matrix
i <<- NULL
}
## Get matrix
get <- function() {
## R... |
# Sam Welch
# A data processing and analysis pipeline for various stressor combinations.
# 10th May 2018
setwd("C:/Users/Sam Welch/Google Drive/ICL Ecological Applications/Project/Scripts")
library(tibble)
stressors <- c("Ch", "Am", "At", "Me", "Cu", "Cd", "Bp", "Bz")
# Make a 4x8 tibble
stressor_combinations <- data... | /Scripts/Code/Archive/Data_Pineline_Messing_4x8.R | no_license | samawelch/MScProject | R | false | false | 756 | r | # Sam Welch
# A data processing and analysis pipeline for various stressor combinations.
# 10th May 2018
setwd("C:/Users/Sam Welch/Google Drive/ICL Ecological Applications/Project/Scripts")
library(tibble)
stressors <- c("Ch", "Am", "At", "Me", "Cu", "Cd", "Bp", "Bz")
# Make a 4x8 tibble
stressor_combinations <- data... |
# Example on how to manipulate data, etc.
#
#
#
#
#######################################################################
#
.get_hist_data <- function(startDt, endDt) {
symbs <-
c("nepool_load_hist", "load",
"nepool_smd_da_4000_lmp", "hub_da")
symbs <- matrix(symbs, byrow=TRUE, ncol=2)
... | /R Extension/RMG/_Learning/2013-06-07_load gym.R | no_license | uhasan1/QLExtension-backup | R | false | false | 1,874 | r | # Example on how to manipulate data, etc.
#
#
#
#
#######################################################################
#
.get_hist_data <- function(startDt, endDt) {
symbs <-
c("nepool_load_hist", "load",
"nepool_smd_da_4000_lmp", "hub_da")
symbs <- matrix(symbs, byrow=TRUE, ncol=2)
... |
shinyServer(function(input, output, session) {
data <- reactive({
inFile <- input$file1
if (is.null(inFile)){return(NULL)}
read.csv(inFile$datapath, header=input$header, sep=input$sep)
})
# user selects variable 1
observe({
updateSelectInput(
session,
"var1",
... | /server.R | no_license | PrincyJohnson/R-Assignment-MSc- | R | false | false | 3,970 | r | shinyServer(function(input, output, session) {
data <- reactive({
inFile <- input$file1
if (is.null(inFile)){return(NULL)}
read.csv(inFile$datapath, header=input$header, sep=input$sep)
})
# user selects variable 1
observe({
updateSelectInput(
session,
"var1",
... |
dyn.load(paste("RPluMA", .Platform$dynlib.ext, sep=""))
source("RPluMA.R")
#Neural Nets
library(randomForest)
library(rpart)
library(rattle)
library(caret)
#library(mlr)
input <- function(inputfile) {
parameters <<- read.table(inputfile, as.is=T);
rownames(parameters) <<- parameters[,1];
print("READING INPUT FIL... | /NeuralNetPlugin.R | permissive | movingpictures83/NeuralNet | R | false | false | 3,663 | r | dyn.load(paste("RPluMA", .Platform$dynlib.ext, sep=""))
source("RPluMA.R")
#Neural Nets
library(randomForest)
library(rpart)
library(rattle)
library(caret)
#library(mlr)
input <- function(inputfile) {
parameters <<- read.table(inputfile, as.is=T);
rownames(parameters) <<- parameters[,1];
print("READING INPUT FIL... |
/impl/02_data_preparation/20_granularity/sum_LTC_week_v02.R | no_license | yangboyubyron/thesis-google-crypto-trading | R | false | false | 1,672 | r | ||
library(tidyverse)
library(lubridate) # used to order by date
library(ggplot2)
# Read the datasets
cases <- read_csv("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv")
death <- read_csv("https://raw.githubusercontent... | /dataScience/Covid/covidProj.r | permissive | naokishami/Classwork | R | false | false | 10,531 | r | library(tidyverse)
library(lubridate) # used to order by date
library(ggplot2)
# Read the datasets
cases <- read_csv("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv")
death <- read_csv("https://raw.githubusercontent... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/first.R
\name{first}
\alias{first}
\alias{last}
\title{Identify the first and last elements for each run in a vector}
\usage{
first(x, na.as.group = F)
last(x, na.as.group = F)
}
\arguments{
\item{x}{a vector with runs}
\item{a}{logical vec... | /man/first.Rd | no_license | PDXChris/nrsa | R | false | true | 764 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/first.R
\name{first}
\alias{first}
\alias{last}
\title{Identify the first and last elements for each run in a vector}
\usage{
first(x, na.as.group = F)
last(x, na.as.group = F)
}
\arguments{
\item{x}{a vector with runs}
\item{a}{logical vec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_calls.R
\name{rms_limit}
\alias{rms_limit}
\title{Function to get the rms limit details.}
\usage{
rms_limit(object)
}
\arguments{
\item{object}{An object of type smart connect.}
}
\value{
Returns with rms_limit details, if successful.
}
\... | /man/rms_limit.Rd | no_license | RakhithJK/smartapi-r | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_calls.R
\name{rms_limit}
\alias{rms_limit}
\title{Function to get the rms limit details.}
\usage{
rms_limit(object)
}
\arguments{
\item{object}{An object of type smart connect.}
}
\value{
Returns with rms_limit details, if successful.
}
\... |
#Dongzhe li 104434089
#gradient descent learning of logistic regression and two-layer neural network
#moniter the training accuracy and testing accuracy.
library(data.table) # allows us to use function fread,
# which quickly reads data from csv files
accuracy <- function(p, y)
{
return(mean((p > 0.5) == (y == 1))... | /5.Neural Network/NeuralNetwork.R | no_license | MICROBAO/Statistical-Prgramming | R | false | false | 4,037 | r | #Dongzhe li 104434089
#gradient descent learning of logistic regression and two-layer neural network
#moniter the training accuracy and testing accuracy.
library(data.table) # allows us to use function fread,
# which quickly reads data from csv files
accuracy <- function(p, y)
{
return(mean((p > 0.5) == (y == 1))... |
install.packages(c("tm","RTextTools","tidyverse","stringr","lda","textmineR","stringi","glmnet","party","qdap","ridge", "Metrics"))
library(tm)
library(RTextTools)
library(tidyverse)
library(stringr)
library(lda)
library(textmineR)
library(stringi)
library(glmnet)
library(party)
library(qdap)
library(ridge)
library(Met... | /RF_final.R | no_license | luciasalar/Subjective-well-being | R | false | false | 22,023 | r | install.packages(c("tm","RTextTools","tidyverse","stringr","lda","textmineR","stringi","glmnet","party","qdap","ridge", "Metrics"))
library(tm)
library(RTextTools)
library(tidyverse)
library(stringr)
library(lda)
library(textmineR)
library(stringi)
library(glmnet)
library(party)
library(qdap)
library(ridge)
library(Met... |
## 3/25/2017
## global object loading
## load libraries
library(shiny)
library(ggplot2)
library(dplyr)
library(dbplyr)
library(rlang)
library(ggthemes)
library(tidyr)
library(reshape2)
library(forcats)
library(ggrepel)
library(RSQLite)
library(DT)
source("plotFunctions.R")
source("helpers.R")
# the only global object ... | /global.R | no_license | srose89/mirna-browser | R | false | false | 685 | r | ## 3/25/2017
## global object loading
## load libraries
library(shiny)
library(ggplot2)
library(dplyr)
library(dbplyr)
library(rlang)
library(ggthemes)
library(tidyr)
library(reshape2)
library(forcats)
library(ggrepel)
library(RSQLite)
library(DT)
source("plotFunctions.R")
source("helpers.R")
# the only global object ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_meso_region.R
\name{read_meso_region}
\alias{read_meso_region}
\title{Download shape files of meso region as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)}
\usage{
read_meso_region(
cod... | /r-package/man/read_meso_region.Rd | no_license | limanalytics/geobr | R | false | true | 2,055 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_meso_region.R
\name{read_meso_region}
\alias{read_meso_region}
\title{Download shape files of meso region as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)}
\usage{
read_meso_region(
cod... |
## Get Dataset for Plot 2
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")
## Subset Data
data <- subset... | /Plot2.R | no_license | Pueblo2/ExploratoryDataAnalysis | R | false | false | 684 | r |
## Get Dataset for Plot 2
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")
## Subset Data
data <- subset... |
#' @title Flat (proportional) tables
#' @name flat_table
#'
#' @description This function creates a labelled flat table or flat
#' proportional (marginal) table.
#'
#' @param data A data frame. May also be a grouped data frame (see 'Note' and
#' 'Examples').
#' @param ... One or more varia... | /R/prop_table.R | no_license | kwinters1954/sjmisc | R | false | false | 3,851 | r | #' @title Flat (proportional) tables
#' @name flat_table
#'
#' @description This function creates a labelled flat table or flat
#' proportional (marginal) table.
#'
#' @param data A data frame. May also be a grouped data frame (see 'Note' and
#' 'Examples').
#' @param ... One or more varia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/molecule.R
\name{print.molecule_single}
\alias{print.molecule_single}
\alias{print.mol}
\alias{as.character.molecule_single}
\alias{as.character.mol}
\title{Coerce molecule(s) to character}
\usage{
\method{print}{molecule_single}(x, ...)
\me... | /man/print.molecule_single.Rd | no_license | paleolimbot/chemr | R | false | true | 948 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/molecule.R
\name{print.molecule_single}
\alias{print.molecule_single}
\alias{print.mol}
\alias{as.character.molecule_single}
\alias{as.character.mol}
\title{Coerce molecule(s) to character}
\usage{
\method{print}{molecule_single}(x, ...)
\me... |
# ================================================================================
# 0. Read the files.
# ================================================================================
# Download the files.
if (!file.exists("UCI_HAR_20_Dataset.zip")) {
file.url <- "https://d396qusza40orc.cloudfront.net/getdata%2... | /run_analysis.R | no_license | balasuna/data-cleaning | R | false | false | 4,573 | r | # ================================================================================
# 0. Read the files.
# ================================================================================
# Download the files.
if (!file.exists("UCI_HAR_20_Dataset.zip")) {
file.url <- "https://d396qusza40orc.cloudfront.net/getdata%2... |
# Compile the SMC++ output
# 11/14/2020
# Libraries
library(foreach)
library(data.table)
library(tidyverse)
library(rjson)
library(igraph)
library(viridis)
library(igraph)
# SMC++ Output
setwd('C:/Users/Conno/Desktop/Fall2020/Berglandlab/smcpp')
# Read in psmc output
data <- data.table(read.csv(file = "split4.csv"... | /smcpp/split.smcpp.R | no_license | connor122721/Daphnia-analyses | R | false | false | 2,878 | r | # Compile the SMC++ output
# 11/14/2020
# Libraries
library(foreach)
library(data.table)
library(tidyverse)
library(rjson)
library(igraph)
library(viridis)
library(igraph)
# SMC++ Output
setwd('C:/Users/Conno/Desktop/Fall2020/Berglandlab/smcpp')
# Read in psmc output
data <- data.table(read.csv(file = "split4.csv"... |
test.NI <- function(n0, n1, e0, e1, NI.margin, sig.level=0.025, scale="RD",
print.out=TRUE, unfavourable=TRUE, test.type="Wald",
M.boot=2000, BB.adj=0.0001) {
stopifnot(is.numeric(n0), n0>0)
stopifnot(is.numeric(n1), n1>0)
stopifnot(is.numeric(e0), is.numeric(e1))... | /R/test.NI.R | no_license | Matteo21Q/dani | R | false | false | 12,668 | r | test.NI <- function(n0, n1, e0, e1, NI.margin, sig.level=0.025, scale="RD",
print.out=TRUE, unfavourable=TRUE, test.type="Wald",
M.boot=2000, BB.adj=0.0001) {
stopifnot(is.numeric(n0), n0>0)
stopifnot(is.numeric(n1), n1>0)
stopifnot(is.numeric(e0), is.numeric(e1))... |
doubling_Nacu_Peres <-
function(n,
eps,
p,
max_iter = Inf,
verbose = F,
as_list = F) {
#f(p) = min(2p,1-2eps) from Nacu-Peres with Latuszynski envelope method
if (is.infinite(max_iter)) {
max_iter <- -1
}
n0 <- doubling_find_n0(eps)
res_... | /R/doubling.R | no_license | giuliomorina/LinearBF | R | false | false | 9,425 | r | doubling_Nacu_Peres <-
function(n,
eps,
p,
max_iter = Inf,
verbose = F,
as_list = F) {
#f(p) = min(2p,1-2eps) from Nacu-Peres with Latuszynski envelope method
if (is.infinite(max_iter)) {
max_iter <- -1
}
n0 <- doubling_find_n0(eps)
res_... |
library(httr)
myapp = oauth_app("twitter", key="yourConsumerKeyHere",secret="yourConsumerSecretHere") # start the authorization process
sig = sign_oauth1.0(myapp, token = "yourTokenHere", token_secret = "yourTokenSecretHere") # sighn in into the application
homeTL = GET("https://api.twitter.com/1.1/statuses/home_timel... | /Getting and Cleaning Data/Assighnment W2/APIs.R | no_license | rokbohinc86/2019.3.28.Data_Science-Specialization | R | false | false | 446 | r |
library(httr)
myapp = oauth_app("twitter", key="yourConsumerKeyHere",secret="yourConsumerSecretHere") # start the authorization process
sig = sign_oauth1.0(myapp, token = "yourTokenHere", token_secret = "yourTokenSecretHere") # sighn in into the application
homeTL = GET("https://api.twitter.com/1.1/statuses/home_timel... |
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/1615831324-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... |
scShinyServer <- shinyServer(function(input, output, session) {
base::cat(file = stderr(), "------ ShinyServer LITE running\n")
session$onSessionEnded(function () {
if (!is.null(x = .schnappsEnv$historyPath)) {
# cat(file = stderr(), paste("removing: ", .schnappsEnv$historyPath ))
if (dir.exists(.s... | /inst/app/server-lite.R | no_license | C3BI-pasteur-fr/UTechSCB-SCHNAPPs | R | false | false | 10,199 | r |
scShinyServer <- shinyServer(function(input, output, session) {
base::cat(file = stderr(), "------ ShinyServer LITE running\n")
session$onSessionEnded(function () {
if (!is.null(x = .schnappsEnv$historyPath)) {
# cat(file = stderr(), paste("removing: ", .schnappsEnv$historyPath ))
if (dir.exists(.s... |
#Page 506
un = 400
L = 4 * 10 ^ -4
VT = 1
VGS = 3
ftau = (un * (VGS - VT)) / (2 * 3.14 * L * L)
ftau = ftau / 10 ^ 6
cat(round(ftau, 0), "MHz") | /Semiconductor_Physics_And_Devices_-_Basic_Principles_by_D_A_Neamen/CH11/EX11.11/Ex11_11.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 144 | r | #Page 506
un = 400
L = 4 * 10 ^ -4
VT = 1
VGS = 3
ftau = (un * (VGS - VT)) / (2 * 3.14 * L * L)
ftau = ftau / 10 ^ 6
cat(round(ftau, 0), "MHz") |
courseproj1_url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(courseproj1_url, "household_power_consumption.zip")
unzip("household_power_consumption.zip", exdir="assignment1")
# identifies, downloads, unzips project data file
hpow <- read.table("assignment1/h... | /plot4.R | no_license | lkwhite/ExData_Plotting1 | R | false | false | 2,223 | r | courseproj1_url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(courseproj1_url, "household_power_consumption.zip")
unzip("household_power_consumption.zip", exdir="assignment1")
# identifies, downloads, unzips project data file
hpow <- read.table("assignment1/h... |
####################################################################################################
# Required libraries
####################################################################################################
.setup(c(
"limma"
))
##############################################################... | /altered_metabolites/src/analyze.R | no_license | knowmics-lab/Autism-Metabolic-Profile | R | false | false | 2,460 | r | ####################################################################################################
# Required libraries
####################################################################################################
.setup(c(
"limma"
))
##############################################################... |
data <- data.table::fread("household_power_consumption.txt")
# Converting $Date to date format.
data$Date <- as.Date(data$Date,"%d/%m/%Y")
# Splitting the data into desired format i.e. 2 consecutive days in February 2007.
months <-split(data, format(data$Date, "%Y/%m"))
rm(data)
feb <- months[[3]]
rm(months)
days <... | /plot2.R | no_license | ChrisHeard/JHU-PlottingExercises | R | false | false | 715 | r | data <- data.table::fread("household_power_consumption.txt")
# Converting $Date to date format.
data$Date <- as.Date(data$Date,"%d/%m/%Y")
# Splitting the data into desired format i.e. 2 consecutive days in February 2007.
months <-split(data, format(data$Date, "%Y/%m"))
rm(data)
feb <- months[[3]]
rm(months)
days <... |
plot3 <- function (){
# Set dates and times
firstDateTime <- strptime("2006-12-16 17:24:00", "%Y-%m-%d %H:%M:%S")
beginDateTime <- strptime("2007-02-01 00:00:00", "%Y-%m-%d %H:%M:%S")
# Calculate which lines to read in
begin <- beginDateTime - firstDateTime
beginLine <-... | /plot3.R | no_license | mjacobs30/ExData_Plotting1 | R | false | false | 1,733 | r | plot3 <- function (){
# Set dates and times
firstDateTime <- strptime("2006-12-16 17:24:00", "%Y-%m-%d %H:%M:%S")
beginDateTime <- strptime("2007-02-01 00:00:00", "%Y-%m-%d %H:%M:%S")
# Calculate which lines to read in
begin <- beginDateTime - firstDateTime
beginLine <-... |
### packages ==================================================================
library(tidyverse)
### data ======================================================================
# htseq counts for panel A
dn.ht <- read.csv("data/rna-seq/read-counts_dnov_uterus.csv") # armadillo
oc.ht <- read.csv("data/rna-seq/read-co... | /code/fig_03_cytokines.R | permissive | archavan/implantation-il17a | R | false | false | 10,900 | r | ### packages ==================================================================
library(tidyverse)
### data ======================================================================
# htseq counts for panel A
dn.ht <- read.csv("data/rna-seq/read-counts_dnov_uterus.csv") # armadillo
oc.ht <- read.csv("data/rna-seq/read-co... |
rm(list = ls())
tribedf <- read_rds("01_data/cache/tribe_county_shapefiles.rds")
tribecounties <- tribedf %>%
dplyr::select(GEOID) %>%
unique()
empty <- tribecounties %>%
mutate(area = as.numeric(st_area(geometry))) %>%
st_set_geometry(NULL) %>%
filter(area == 0)
tribeuse <- tribecounties %>%
filt... | /02_build/03g_oilgas_basins_county.R | no_license | galsk223/tribalclimate | R | false | false | 1,069 | r |
rm(list = ls())
tribedf <- read_rds("01_data/cache/tribe_county_shapefiles.rds")
tribecounties <- tribedf %>%
dplyr::select(GEOID) %>%
unique()
empty <- tribecounties %>%
mutate(area = as.numeric(st_area(geometry))) %>%
st_set_geometry(NULL) %>%
filter(area == 0)
tribeuse <- tribecounties %>%
filt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_dataprocess_plots.R
\name{.makeProfilePlot}
\alias{.makeProfilePlot}
\title{Create profile plot}
\usage{
.makeProfilePlot(
input,
is_censored,
featureName,
y.limdown,
y.limup,
x.axis.size,
y.axis.size,
text.size,
text.... | /man/dot-makeProfilePlot.Rd | no_license | jspaezp/MSstats | R | false | true | 1,499 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_dataprocess_plots.R
\name{.makeProfilePlot}
\alias{.makeProfilePlot}
\title{Create profile plot}
\usage{
.makeProfilePlot(
input,
is_censored,
featureName,
y.limdown,
y.limup,
x.axis.size,
y.axis.size,
text.size,
text.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-broom.R
\name{add_index}
\alias{add_index}
\title{Adds a sequential index column to a data frame}
\usage{
add_index(ret, rename_index)
}
\arguments{
\item{ret}{An object of class tibble}
\item{rename_index}{A variable indicating the in... | /man/add_index.Rd | no_license | business-science/sweep | R | false | true | 429 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-broom.R
\name{add_index}
\alias{add_index}
\title{Adds a sequential index column to a data frame}
\usage{
add_index(ret, rename_index)
}
\arguments{
\item{ret}{An object of class tibble}
\item{rename_index}{A variable indicating the in... |
ipython_engine <- function(options, message=FALSE, debug=TRUE)
{
latex = identical(knitr:::out_format(), "latex")
out = if (options$eval) {
ipyexec(options$code, options, message=message, debug=debug, latex=latex)
} else ''
if (!options$error && !is.null(attr(out, 'status')))
{
out <- gsub("\\\\(begi... | /R/engine.R | permissive | adolfoeliazat/ipython_from_R | R | false | false | 920 | r | ipython_engine <- function(options, message=FALSE, debug=TRUE)
{
latex = identical(knitr:::out_format(), "latex")
out = if (options$eval) {
ipyexec(options$code, options, message=message, debug=debug, latex=latex)
} else ''
if (!options$error && !is.null(attr(out, 'status')))
{
out <- gsub("\\\\(begi... |
#' Obtain Font Metrics from LaTeX
#'
#' These functions calculate the width of a character or string as it would
#' appear after being compiled by LaTeX.
#'
#' These functions are used internally by the \code{tikz} device for proper
#' string placement in graphics. Both functions check to see if metrics exist
#' in a ... | /R/latexStrWidth.R | no_license | mbergner/tikzDevice | R | false | false | 14,979 | r | #' Obtain Font Metrics from LaTeX
#'
#' These functions calculate the width of a character or string as it would
#' appear after being compiled by LaTeX.
#'
#' These functions are used internally by the \code{tikz} device for proper
#' string placement in graphics. Both functions check to see if metrics exist
#' in a ... |
library("svcR")
require("svcR")
data("iris")
q<-40
retB <- findModelCluster(MetOpt = 1, MetLab = 1, Nu=0.55, q=40, K=1, G=15, Cx=0, Cy=0, DName = "iris")
| /Support Vector Clustering/scvr.r | permissive | arjun921/r | R | false | false | 154 | r | library("svcR")
require("svcR")
data("iris")
q<-40
retB <- findModelCluster(MetOpt = 1, MetLab = 1, Nu=0.55, q=40, K=1, G=15, Cx=0, Cy=0, DName = "iris")
|
#####################################################
# PLOT N-PRON BY SPEAKER
#
# This script makes a 7 x 4 plot for each speaker,
# of each of the 7 nouns with each of the 4 pronouns.
#
# Assumptions:
# * The data to be ploted is in the variable dat.
# * The yrange for the plot can be set below.
###################... | /N-Pron_plot_by_speaker.R | no_license | klp3hills/prosodypro-R | R | false | false | 3,718 | r | #####################################################
# PLOT N-PRON BY SPEAKER
#
# This script makes a 7 x 4 plot for each speaker,
# of each of the 7 nouns with each of the 4 pronouns.
#
# Assumptions:
# * The data to be ploted is in the variable dat.
# * The yrange for the plot can be set below.
###################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/soilColorIndices.R
\name{harden.melanization}
\alias{harden.melanization}
\title{Harden (1982) Melanization}
\usage{
harden.melanization(value, value_ref)
}
\arguments{
\item{value}{numeric vector containing Munsell values}
\item{... | /man/harden.melanization.Rd | no_license | cran/aqp | R | false | true | 3,549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/soilColorIndices.R
\name{harden.melanization}
\alias{harden.melanization}
\title{Harden (1982) Melanization}
\usage{
harden.melanization(value, value_ref)
}
\arguments{
\item{value}{numeric vector containing Munsell values}
\item{... |
#' create "src_sqlserver" object
#' @import dplyr
#' @import RSQLServer
#' @import DBI
#' @export
src_sqlserver <- function(dbname, host = NULL, user = "root",
password = "", ...) {
if (!require("RSQLServer")) {
stop("RSQLServer package required to connect to SQL Server", call. = FALSE)
}... | /R/src-sqlserver.r | no_license | GilbertWatson/dplyr.sqlserver | R | false | false | 7,328 | r | #' create "src_sqlserver" object
#' @import dplyr
#' @import RSQLServer
#' @import DBI
#' @export
src_sqlserver <- function(dbname, host = NULL, user = "root",
password = "", ...) {
if (!require("RSQLServer")) {
stop("RSQLServer package required to connect to SQL Server", call. = FALSE)
}... |
\name{ma1}
\alias{ma1}
\title{ Moving Average Of Order 1 }
\description{
Constructs an \eqn{n} by \eqn{n} MA(1) correlation matrix.
}
\usage{
ma1(n, rho)
}
\arguments{
\item{n}{ Dimension of correlation matrix. }
\item{rho}{ Correlation parameter. }
}
\value{
Returns an \code{n} by \code{n} MA(1... | /code/binarySimCLF/man/ma1.Rd | no_license | mcefalu/CorrBin | R | false | false | 441 | rd | \name{ma1}
\alias{ma1}
\title{ Moving Average Of Order 1 }
\description{
Constructs an \eqn{n} by \eqn{n} MA(1) correlation matrix.
}
\usage{
ma1(n, rho)
}
\arguments{
\item{n}{ Dimension of correlation matrix. }
\item{rho}{ Correlation parameter. }
}
\value{
Returns an \code{n} by \code{n} MA(1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.