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(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Correlation/thyroid.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.8,family="gaussian",standardize=TRUE)
sink('./thyroid_081.txt',append=TRUE... | /Model/EN/Correlation/thyroid/thyroid_081.R | no_license | esbgkannan/QSMART | R | false | false | 351 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Correlation/thyroid.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.8,family="gaussian",standardize=TRUE)
sink('./thyroid_081.txt',append=TRUE... |
library("knitr")
library("rgl")
#knit("3-chlorophenylhydraz.Rmd")
#markdownToHTML('3-chlorophenylhydraz.md', '3-chlorophenylhydraz.html', options=c("use_xhml"))
#system("pandoc -s 3-chlorophenylhydraz.html -o 3-chlorophenylhydraz.pdf")
knit2html('3-chlorophenylhydraz.Rmd')
| /FDA_Pesticide_Glossary/3-chlorophenylhydraz.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 276 | r | library("knitr")
library("rgl")
#knit("3-chlorophenylhydraz.Rmd")
#markdownToHTML('3-chlorophenylhydraz.md', '3-chlorophenylhydraz.html', options=c("use_xhml"))
#system("pandoc -s 3-chlorophenylhydraz.html -o 3-chlorophenylhydraz.pdf")
knit2html('3-chlorophenylhydraz.Rmd')
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Grain_Size_Calculators.R
\name{calc_Dx}
\alias{calc_Dx}
\title{Calculates grain size statistic from given distribution}
\usage{
calc_Dx(ps, Ds, x)
}
\arguments{
\item{ps}{Grain size fractions}
\item{Ds}{Grain sizes (mm)}
\item{x}{Percetile ... | /man/calc_Dx.Rd | no_license | rodlammers/REMvisualizer | R | false | true | 552 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Grain_Size_Calculators.R
\name{calc_Dx}
\alias{calc_Dx}
\title{Calculates grain size statistic from given distribution}
\usage{
calc_Dx(ps, Ds, x)
}
\arguments{
\item{ps}{Grain size fractions}
\item{Ds}{Grain sizes (mm)}
\item{x}{Percetile ... |
prepare_CDC_data = function(last.day,age_max,age.specification,indir){
path_to_data = file.path(indir, 'data')
state_name = 'cdc'
state_code = 'CDC'
dates = seq.Date(as.Date("2020-03-01"), last.day, by = "day")
file_format = ".csv"
# find dates with data
data_files = list.files(file.path(pa... | /CDC-covid-tracker/functions-deprecated.R | permissive | isabella232/US-covid19-agespecific-mortality-data | R | false | false | 14,328 | r | prepare_CDC_data = function(last.day,age_max,age.specification,indir){
path_to_data = file.path(indir, 'data')
state_name = 'cdc'
state_code = 'CDC'
dates = seq.Date(as.Date("2020-03-01"), last.day, by = "day")
file_format = ".csv"
# find dates with data
data_files = list.files(file.path(pa... |
#' Make gene level plot
#'
#' Take a gene name or ID, search the counts matrix for all clusters that fall within that gene's boundaries (found from the exon table).
#' @import ggplot2
#' @export
# #
# gene_name <- "ADIPOR2"
# clusterID <- NULL
# min_exon_length <- 0.5
# cluster_list <- clusters
# # for testing - cr... | /leafcutter/R/make_gene_plot.R | permissive | koduu/leafcutter | R | false | false | 28,260 | r |
#' Make gene level plot
#'
#' Take a gene name or ID, search the counts matrix for all clusters that fall within that gene's boundaries (found from the exon table).
#' @import ggplot2
#' @export
# #
# gene_name <- "ADIPOR2"
# clusterID <- NULL
# min_exon_length <- 0.5
# cluster_list <- clusters
# # for testing - cr... |
\docType{package}
\name{ggplot2}
\alias{ggplot2}
\alias{ggplot2-package}
\title{ggplot2.}
\description{
ggplot2.
}
| /man/ggplot2.Rd | no_license | ThierryO/ggplot2 | R | false | false | 118 | rd | \docType{package}
\name{ggplot2}
\alias{ggplot2}
\alias{ggplot2-package}
\title{ggplot2.}
\description{
ggplot2.
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_map_layers.R
\name{add_geojson}
\alias{add_geojson}
\title{Add GeoJson}
\usage{
add_geojson(map, geojson, style = NULL, update_map_view = TRUE)
}
\arguments{
\item{map}{a googleway map object created from \code{google_map()}}
\item{ge... | /man/add_geojson.Rd | no_license | zhenglinwang/googleway | R | false | true | 3,215 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/google_map_layers.R
\name{add_geojson}
\alias{add_geojson}
\title{Add GeoJson}
\usage{
add_geojson(map, geojson, style = NULL, update_map_view = TRUE)
}
\arguments{
\item{map}{a googleway map object created from \code{google_map()}}
\item{ge... |
dummy <- function(x)
{
return(x)
} | /R/dummy.R | no_license | Displayr/flipChartTests2 | R | false | false | 38 | r | dummy <- function(x)
{
return(x)
} |
#Call the plyr package for the functions used in this script
library(plyr)
# 1.
# Two data sets are provided for this analysis. A Training dataset and Test dataset
# Load and merge the two sets
x_train <- read.table("train/X_train.txt")
y_train <- read.table("train/y_train.txt")
subject_train <- read.table... | /run_analysis.R | no_license | acinct/GetCleanDataProject | R | false | false | 1,528 | r | #Call the plyr package for the functions used in this script
library(plyr)
# 1.
# Two data sets are provided for this analysis. A Training dataset and Test dataset
# Load and merge the two sets
x_train <- read.table("train/X_train.txt")
y_train <- read.table("train/y_train.txt")
subject_train <- read.table... |
.gamanagerEnv <- new.env(parent = emptyenv())
.gamanagerEnv$Token <- NULL
# Set token to environment
set_token <- function(value) {
.gamanagerEnv$Token <- value
return(value)
}
# Get token from environment
get_token <- function() {
.gamanagerEnv$Token
}
#' Authorize R package to access Google Analytics API
#' ... | /R/auth.R | permissive | hairizuanbinnoorazman/gamanager | R | false | false | 1,261 | r | .gamanagerEnv <- new.env(parent = emptyenv())
.gamanagerEnv$Token <- NULL
# Set token to environment
set_token <- function(value) {
.gamanagerEnv$Token <- value
return(value)
}
# Get token from environment
get_token <- function() {
.gamanagerEnv$Token
}
#' Authorize R package to access Google Analytics API
#' ... |
\name{lofactor}
\alias{lofactor}
\title{
An implementation of the LOF algorithm
}
\description{
This function obtain local outlier factors using the LOF
algorithm. Namely, given a data set it produces a vector of local
outlier factors for each case.
}
\usage{
lofactor(data, k)
}
\arguments{
\item{data}{
A... | /cap15_AnaliseDeDadosEMachineLearning/packages/DMwR/man/lofactor.Rd | no_license | brunotrindademachado/DSA-PBIparaDS-v2 | R | false | false | 1,692 | rd | \name{lofactor}
\alias{lofactor}
\title{
An implementation of the LOF algorithm
}
\description{
This function obtain local outlier factors using the LOF
algorithm. Namely, given a data set it produces a vector of local
outlier factors for each case.
}
\usage{
lofactor(data, k)
}
\arguments{
\item{data}{
A... |
library(readr)
#setwd("C:/Users/peiyao/Dropbox/LWPR_result/simulation/misclass/p=.1")
setwd("C:/Users/peiyao/Documents/GitHub/LWPR/simulation/misclass/p=.1")
setwd("./diag_cov")
misclass.diag.list = list()
for (i in c(1,2,3)){
setwd(paste0("./2", i))
myresult.list = list()
for (alpha in c(0,0.5,1)){
result.mt... | /simulation/misclass/p=.1/diag_summary.R | no_license | peiyaow/LWPR | R | false | false | 2,976 | r | library(readr)
#setwd("C:/Users/peiyao/Dropbox/LWPR_result/simulation/misclass/p=.1")
setwd("C:/Users/peiyao/Documents/GitHub/LWPR/simulation/misclass/p=.1")
setwd("./diag_cov")
misclass.diag.list = list()
for (i in c(1,2,3)){
setwd(paste0("./2", i))
myresult.list = list()
for (alpha in c(0,0.5,1)){
result.mt... |
############ LIBRARIES ###############
library(twitteR)
library(ROAuth)
library(plyr)
library(dplyr)
library(stringr)
library(ggplot2)
library(rtweet)
library(SnowballC)
library(tm)
library(syuzhet)
library(SnowballC)
library(tm)
library(tidyverse)
library(leaflet)
library(maps)
library(OpenStreetMap)
########### ... | /github.com:RohitShrigiriwar:sma_project.R | no_license | RohitShrigiriwar/sma_project | R | false | false | 3,035 | r | ############ LIBRARIES ###############
library(twitteR)
library(ROAuth)
library(plyr)
library(dplyr)
library(stringr)
library(ggplot2)
library(rtweet)
library(SnowballC)
library(tm)
library(syuzhet)
library(SnowballC)
library(tm)
library(tidyverse)
library(leaflet)
library(maps)
library(OpenStreetMap)
########### ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_wrapper.R
\name{motifHitProfile}
\alias{motifHitProfile}
\title{Motif hit profile across multiple sequences}
\usage{
motifHitProfile(seqs, pfm, bg)
}
\arguments{
\item{seqs}{A DNAStringSet or DNAString object}
\item{pfm}{An R matrix th... | /man/motifHitProfile.Rd | no_license | wkopp/motifcounter | R | false | true | 1,159 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_wrapper.R
\name{motifHitProfile}
\alias{motifHitProfile}
\title{Motif hit profile across multiple sequences}
\usage{
motifHitProfile(seqs, pfm, bg)
}
\arguments{
\item{seqs}{A DNAStringSet or DNAString object}
\item{pfm}{An R matrix th... |
timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "leapBackward"
## In case the package or one of its dependencies uses random numbers
## on startup so we'll pre-load the required libraries:
for(i in getModelInfo(model)[[1]]$library)
do.call("requireNamespace", list(pac... | /RegressionTests/Code/leapBackward.R | no_license | tymenschreuder/caret | R | false | false | 2,906 | r | timestamp <- Sys.time()
library(caret)
library(plyr)
library(recipes)
library(dplyr)
model <- "leapBackward"
## In case the package or one of its dependencies uses random numbers
## on startup so we'll pre-load the required libraries:
for(i in getModelInfo(model)[[1]]$library)
do.call("requireNamespace", list(pac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rcpp_taug}
\alias{rcpp_taug}
\title{Calculate tau_g}
\usage{
rcpp_taug(n, mGraycode, vR2, vlog_ZE)
}
\arguments{
\item{n}{The number of samples}
\item{mGraycode}{The graycode matrix}
\item{vR2}{The vector of correlations... | /code/taug.Rcheck/00_pkg_src/taug/man/rcpp_taug.Rd | no_license | certifiedwaif/phd | R | false | true | 396 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{rcpp_taug}
\alias{rcpp_taug}
\title{Calculate tau_g}
\usage{
rcpp_taug(n, mGraycode, vR2, vlog_ZE)
}
\arguments{
\item{n}{The number of samples}
\item{mGraycode}{The graycode matrix}
\item{vR2}{The vector of correlations... |
%%
%% WARNING! DO NOT EDIT!
%% This file is automatically generated from pc-cormat.R
%%
\name{pc.cormat}
\alias{inla.pc.cormat}
\alias{inla.pc.cormat.dim2p}
\alias{cormat.dim2p}
\alias{inla.pc.cormat.p2dim}
\alias{cormat.p2dim}
\alias{inla.pc.cormat.theta2R}
\alias{cormat.theta2R}
\alias{inla.pc.cormat.R2theta... | /man/pc-cormat.Rd | no_license | inbo/INLA | R | false | false | 3,217 | rd | %%
%% WARNING! DO NOT EDIT!
%% This file is automatically generated from pc-cormat.R
%%
\name{pc.cormat}
\alias{inla.pc.cormat}
\alias{inla.pc.cormat.dim2p}
\alias{cormat.dim2p}
\alias{inla.pc.cormat.p2dim}
\alias{cormat.p2dim}
\alias{inla.pc.cormat.theta2R}
\alias{cormat.theta2R}
\alias{inla.pc.cormat.R2theta... |
#Algo 2, transaction based#
##Recency score>-1##
#Recommend popular items if it generates less than 3 items to a customer
# Set data path as per your data file
setwd("C:/Users/endai/Desktop/Product_Recommendation")
# If not installed, first install following two package in R
install.packages("recommenderlab... | /Algo 2 with recency.r | no_license | xqian0113/product-recommendation-algorithms | R | false | false | 2,001 | r | #Algo 2, transaction based#
##Recency score>-1##
#Recommend popular items if it generates less than 3 items to a customer
# Set data path as per your data file
setwd("C:/Users/endai/Desktop/Product_Recommendation")
# If not installed, first install following two package in R
install.packages("recommenderlab... |
#' MCMC sampler for multivariate Gaussian process model using the linear model of coregionalization
#'
#' \code{lmcGP} is a Markov chain Monte Carlo (MCMC) sampler for a Gaussian process model
#' using the Bayesian hierarchical framework.
#'
#' @param Y An \code{N} dimensional vector containing the observed outcome da... | /R/MCMC_lmcGP.R | no_license | berchuck/dependentGP | R | false | false | 8,693 | r | #' MCMC sampler for multivariate Gaussian process model using the linear model of coregionalization
#'
#' \code{lmcGP} is a Markov chain Monte Carlo (MCMC) sampler for a Gaussian process model
#' using the Bayesian hierarchical framework.
#'
#' @param Y An \code{N} dimensional vector containing the observed outcome da... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(m = matrix()) {
##Initialize the inverse property
i<-NULL
##Method to set the matrix
set<-function(m... | /cachematrix.R | no_license | NorbertSp/ProgrammingAssignment2 | R | false | false | 1,744 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(m = matrix()) {
##Initialize the inverse property
i<-NULL
##Method to set the matrix
set<-function(m... |
#read the CSVs
PHQ_Data = read_csv("Data/PHQ9_file_for_Elina_with_PNC_FH.csv")
PNC_Core_Data_demographics = read_csv("Data/PNC_Core_Data_demographics.csv")
PNC_diagnoses = read_csv("Data/PNC_diagnoses.csv")
PNC_Core_Data_cognitive = read_csv("Data/PNC_Core_Data_cognitive.csv")
PNC_Core_Data_cognitive_ALTERNATIVE = r... | /Load_DB.R | no_license | barzilab1/depression_longitudinal | R | false | false | 13,772 | r |
#read the CSVs
PHQ_Data = read_csv("Data/PHQ9_file_for_Elina_with_PNC_FH.csv")
PNC_Core_Data_demographics = read_csv("Data/PNC_Core_Data_demographics.csv")
PNC_diagnoses = read_csv("Data/PNC_diagnoses.csv")
PNC_Core_Data_cognitive = read_csv("Data/PNC_Core_Data_cognitive.csv")
PNC_Core_Data_cognitive_ALTERNATIVE = r... |
# load packages
library(jsonlite)
library(httr)
library(RCurl)
library(dplyr)
library(XML)
library(R2HTML)
library(stringr)
library(ggplot2)
# API PAGE INSIGHT
key_api = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
###################################
# detect mention mobile friendly
# param
# site : website name
# country : goog... | /detect-label-mobile-friendly.R | permissive | voltek62/mobile-friendly-competitor-rate | R | false | false | 2,684 | r | # load packages
library(jsonlite)
library(httr)
library(RCurl)
library(dplyr)
library(XML)
library(R2HTML)
library(stringr)
library(ggplot2)
# API PAGE INSIGHT
key_api = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
###################################
# detect mention mobile friendly
# param
# site : website name
# country : goog... |
> m <- matrix(nrow = 2, ncol = 3)
> mx <- list(1, "a", TRUE, 1 + 4i)
> x<- 1:4
good <- complete.cases(data$Ozone, data$Solar.R, data$Temp)
mean(data$Solar.R[good & data$Ozone > 31 & data$Temp > 90]) | /Week 1/matrices & lists.R | no_license | gisdhan/cachematrix.R | R | false | false | 201 | r | > m <- matrix(nrow = 2, ncol = 3)
> mx <- list(1, "a", TRUE, 1 + 4i)
> x<- 1:4
good <- complete.cases(data$Ozone, data$Solar.R, data$Temp)
mean(data$Solar.R[good & data$Ozone > 31 & data$Temp > 90]) |
##########
# QTL_CI #
##########
#' -log10(p-value) drop-off confidence interval
#'
#' Computes a -log10(p-value) drop-off confidence interval for QTL positions.
#'
#' @param QTL Object of class \code{QTLlist} representing a list of
#' selected position obtained with the function \code{\link{QTL_select}} or
#' vecto... | /R/QTL_CI.R | no_license | vincentgarin/mppR | R | false | false | 4,153 | r | ##########
# QTL_CI #
##########
#' -log10(p-value) drop-off confidence interval
#'
#' Computes a -log10(p-value) drop-off confidence interval for QTL positions.
#'
#' @param QTL Object of class \code{QTLlist} representing a list of
#' selected position obtained with the function \code{\link{QTL_select}} or
#' vecto... |
require(optparse)
require(rvatk)
main <- function() {
# get opts, args
option.list <- GetOptList()
optarg <- parse_args(OptionParser(option_list=option.list),
positional_arguments = TRUE)
opt <- optarg$options
qv.files <- optarg$args
# read in sample geneset
geneset <- scan(o... | /inst/script/casectrl_global_variant_burden.R | no_license | Halvee/rvatk | R | false | false | 4,997 | r |
require(optparse)
require(rvatk)
main <- function() {
# get opts, args
option.list <- GetOptList()
optarg <- parse_args(OptionParser(option_list=option.list),
positional_arguments = TRUE)
opt <- optarg$options
qv.files <- optarg$args
# read in sample geneset
geneset <- scan(o... |
library(ape)
testtree <- read.tree("12229_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12229_0_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/12229_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("12229_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="12229_0_unrooted.txt") |
testlist <- list(x = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 3L)))
result <- do.call(multivariance::fastdist,testlist)
str(result) | /multivariance/inst/testfiles/fastdist/libFuzzer_fastdist/fastdist_valgrind_files/1612987446-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 198 | r | testlist <- list(x = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(9L, 3L)))
result <- do.call(multivariance::fastdist,testlist)
str(result) |
#' Project a distance matrix into a lower-dimensional space.
#'
#' Takes as input a sparse matrix of the edge weights connecting each node to its nearest neighbors, and outputs
#' a matrix of coordinates embedding the inputs in a lower-dimensional space.
#'
#' The algorithm attempts to estimate a \code{dim}-dimensional... | /R/projectKNNs.R | no_license | lejarx/largeVis | R | false | false | 7,611 | r | #' Project a distance matrix into a lower-dimensional space.
#'
#' Takes as input a sparse matrix of the edge weights connecting each node to its nearest neighbors, and outputs
#' a matrix of coordinates embedding the inputs in a lower-dimensional space.
#'
#' The algorithm attempts to estimate a \code{dim}-dimensional... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lda-shrink-cov.r
\name{lda_shrink_cov}
\alias{lda_shrink_cov}
\alias{lda_shrink_cov.default}
\alias{lda_shrink_cov.formula}
\alias{predict.lda_shrink_cov}
\title{Shrinkage-based Diagonal Linear Discriminant Analysis (SDLDA)}
\usage{
lda_shrin... | /man/lda_shrink_cov.Rd | permissive | topepo/sparsediscrim | R | false | true | 4,952 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lda-shrink-cov.r
\name{lda_shrink_cov}
\alias{lda_shrink_cov}
\alias{lda_shrink_cov.default}
\alias{lda_shrink_cov.formula}
\alias{predict.lda_shrink_cov}
\title{Shrinkage-based Diagonal Linear Discriminant Analysis (SDLDA)}
\usage{
lda_shrin... |
#This is the user interface and is defined in a source file named ui.R
library(shiny)
ui <- shinyUI(pageWithSidebar(
#Title of the app
titlePanel("First Shiny App"),
##sidebar Panel
sidebarPanel(
sliderInput ("obs",
"Number of observations:",
min = 1,
max = 1000,
value = 500)
),
... | /ui.R | no_license | ragiunnithan/ShinyAppTest | R | false | false | 396 | r | #This is the user interface and is defined in a source file named ui.R
library(shiny)
ui <- shinyUI(pageWithSidebar(
#Title of the app
titlePanel("First Shiny App"),
##sidebar Panel
sidebarPanel(
sliderInput ("obs",
"Number of observations:",
min = 1,
max = 1000,
value = 500)
),
... |
"
Did participants with less experience quit more and earlier?
YES, when taken only the people who quit at certain point, YoE is inversely correlated with number of
incomplete assignments.The correlations are statistically significant (p-value<0.05) and they are strong
(tau>0.45). These results are true for both lev... | /analysis/descriptive/quit_rate/multicomparison_posthoc_YoE_quit_rate.R | permissive | christianadriano/ML_FaultUnderstanding | R | false | false | 3,485 | r | "
Did participants with less experience quit more and earlier?
YES, when taken only the people who quit at certain point, YoE is inversely correlated with number of
incomplete assignments.The correlations are statistically significant (p-value<0.05) and they are strong
(tau>0.45). These results are true for both lev... |
library(tidyr)
library(dplyr)
data = read.csv("averages_Short_Cond_W_GPT2_QC_Uniform.tsv", quote='"', sep="\t")
counts = unique(read.csv("~/forgetting/corpus_counts/wikipedia/results/counts4NEW_Processed.tsv", sep="\t"))
counts$Ratio = log(counts$CountThat) - log(counts$CountBare)
scrc = read.csv("/home/user/for... | /initial/lm/trainAttention/raw_output/analyze_Short_Cond_W_GPT2_QC_Uniform.R | no_license | m-hahn/forgetting-model | R | false | false | 4,677 | r | library(tidyr)
library(dplyr)
data = read.csv("averages_Short_Cond_W_GPT2_QC_Uniform.tsv", quote='"', sep="\t")
counts = unique(read.csv("~/forgetting/corpus_counts/wikipedia/results/counts4NEW_Processed.tsv", sep="\t"))
counts$Ratio = log(counts$CountThat) - log(counts$CountBare)
scrc = read.csv("/home/user/for... |
output$helpTabUI <- renderUI({
fluidPage(
tags$h3(class = "row_text title",
"Help", backToHubMessage()),
tags$h5(class = "row_text subtitle",
""),
tags$p("Helpful resources for Harmonist Data Toolkit users:",
tags$li(tags$a("Toolkit Quick Reference Guide for IeDEA Data M... | /helpTab.R | permissive | Chydide/Harmonist | R | false | false | 1,291 | r | output$helpTabUI <- renderUI({
fluidPage(
tags$h3(class = "row_text title",
"Help", backToHubMessage()),
tags$h5(class = "row_text subtitle",
""),
tags$p("Helpful resources for Harmonist Data Toolkit users:",
tags$li(tags$a("Toolkit Quick Reference Guide for IeDEA Data M... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{scidbconnect}
\alias{scidbconnect}
\title{Connect to a SciDB database}
\usage{
scidbconnect(host = getOption("scidb.default_shim_host", "127.0.0.1"),
port = getOption("scidb.default_shim_port", 8080L), username, password,
... | /man/scidbconnect.Rd | no_license | apoliakov/SciDBR | R | false | true | 2,965 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{scidbconnect}
\alias{scidbconnect}
\title{Connect to a SciDB database}
\usage{
scidbconnect(host = getOption("scidb.default_shim_host", "127.0.0.1"),
port = getOption("scidb.default_shim_port", 8080L), username, password,
... |
# Install and Load Packages -----------------------------------------------
# Load Packages
library(tidyverse)
library(lubridate)
# Load Data ---------------------------------------------------------------
# Load Data
df <- read_rds("data/tweet-riset.rds")
# Plot Trend
trend <- df %>%
mutate(created_at = created_... | /src/002_explore-tweet-data.R | no_license | r4css/data-epv | R | false | false | 1,806 | r | # Install and Load Packages -----------------------------------------------
# Load Packages
library(tidyverse)
library(lubridate)
# Load Data ---------------------------------------------------------------
# Load Data
df <- read_rds("data/tweet-riset.rds")
# Plot Trend
trend <- df %>%
mutate(created_at = created_... |
#' Expand a flattened object
#'
#' @param ... Not used.
#' @return An array object
#' @name unflatten-methods
#' @rdname unflatten-methods
#' @aliases unflatten
NULL
unflatten_default <- function(x, i, default=na_type(x), dim=NULL) {
if (is.null(dim)) {
dim <- apply(i, 2, max)
}
y <- array(default,... | /R/unflatten.r | no_license | jrnold/flatter | R | false | false | 911 | r | #' Expand a flattened object
#'
#' @param ... Not used.
#' @return An array object
#' @name unflatten-methods
#' @rdname unflatten-methods
#' @aliases unflatten
NULL
unflatten_default <- function(x, i, default=na_type(x), dim=NULL) {
if (is.null(dim)) {
dim <- apply(i, 2, max)
}
y <- array(default,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isPositiveNumberOrNanScalarOrNull.R
\name{isPositiveNumberOrNanScalarOrNull}
\alias{isPositiveNumberOrNanScalarOrNull}
\title{Wrapper for the checkarg function, using specific parameter settings.}
\usage{
isPositiveNumberOrNanScalarOrNu... | /man/isPositiveNumberOrNanScalarOrNull.Rd | no_license | cran/checkarg | R | false | true | 2,474 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isPositiveNumberOrNanScalarOrNull.R
\name{isPositiveNumberOrNanScalarOrNull}
\alias{isPositiveNumberOrNanScalarOrNull}
\title{Wrapper for the checkarg function, using specific parameter settings.}
\usage{
isPositiveNumberOrNanScalarOrNu... |
#' Select a custom projected CRS for the area of interest
#'
#' This function takes a spatial object with a geographic (WGS84)
#' CRS and returns a custom projected CRS focussed on the centroid of the object.
#' This function is especially useful for using units of metres in all directions
#' for data collected anywher... | /R/crs-funs.R | permissive | bestwpw/stplanr | R | false | false | 1,122 | r | #' Select a custom projected CRS for the area of interest
#'
#' This function takes a spatial object with a geographic (WGS84)
#' CRS and returns a custom projected CRS focussed on the centroid of the object.
#' This function is especially useful for using units of metres in all directions
#' for data collected anywher... |
#load dataset
data(iris)
#create separate boxplots for each attributes
par(mfrow = c(1,4))
for(i in 1:4){
boxplot(iris[,i], main = names(iris)[i], horizontal = FALSE)
}
#compare between
#load the data
data(iris)
#create separate boxplots for each attributes
par(mfrow = c(2,4))
for(i in 1:4){
hist(iris[,i], ma... | /boxplot-hist.r | no_license | fathanick/statistics_R | R | false | false | 409 | r | #load dataset
data(iris)
#create separate boxplots for each attributes
par(mfrow = c(1,4))
for(i in 1:4){
boxplot(iris[,i], main = names(iris)[i], horizontal = FALSE)
}
#compare between
#load the data
data(iris)
#create separate boxplots for each attributes
par(mfrow = c(2,4))
for(i in 1:4){
hist(iris[,i], ma... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108361e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613101192-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108361e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_row... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topoWetnessIndex.R
\name{topoWetnessIndex}
\alias{topoWetnessIndex}
\title{Topographic Wetness Index}
\usage{
topoWetnessIndex(dem, sagaEnv)
}
\arguments{
\item{dem}{elevation rasterLayer, with defined proj4string.}
\item{sagaEnv}{list objec... | /man/topoWetnessIndex.Rd | no_license | gudaleon/envirem | R | false | true | 2,126 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topoWetnessIndex.R
\name{topoWetnessIndex}
\alias{topoWetnessIndex}
\title{Topographic Wetness Index}
\usage{
topoWetnessIndex(dem, sagaEnv)
}
\arguments{
\item{dem}{elevation rasterLayer, with defined proj4string.}
\item{sagaEnv}{list objec... |
smallButton <- function (inputId, label, icon = NULL, width = NULL,class=paste0("btn btn-default action-button ",size.class," ", extra.class), size.class="btn-xs",extra.class="",style=NULL, extra.style=NULL, ...)
{
if (is.null(style)) {
style= paste0(if (!is.null(width)) paste0("width: ", shiny:::validateCssUnit(... | /R/shiny_utils.R | no_license | skranz/shinyEventsClicker | R | false | false | 1,530 | r | smallButton <- function (inputId, label, icon = NULL, width = NULL,class=paste0("btn btn-default action-button ",size.class," ", extra.class), size.class="btn-xs",extra.class="",style=NULL, extra.style=NULL, ...)
{
if (is.null(style)) {
style= paste0(if (!is.null(width)) paste0("width: ", shiny:::validateCssUnit(... |
#######################################################
# Module: MANM354 - Machine Learning and Visualisations
# Author: Tim McKinnon-Lower
# Date: 29/04/2017
# Developed on R version 3.3.2
#######################################################
## *********************************************************************... | /dScript_main2.R | no_license | tjem2018/r_machine_learning | R | false | false | 13,965 | r | #######################################################
# Module: MANM354 - Machine Learning and Visualisations
# Author: Tim McKinnon-Lower
# Date: 29/04/2017
# Developed on R version 3.3.2
#######################################################
## *********************************************************************... |
#' Refits an existing model to a different fraction of the training dataset
#'
#' This function requests a refit of the model defined by the model parameter
#' to the same training dataset used in building it originally, but with a
#' different fraction of the data, specified by the samplePct parameter.
#' The function... | /R/RequestSampleSizeUpdate.R | no_license | cran/datarobot | R | false | false | 2,733 | r | #' Refits an existing model to a different fraction of the training dataset
#'
#' This function requests a refit of the model defined by the model parameter
#' to the same training dataset used in building it originally, but with a
#' different fraction of the data, specified by the samplePct parameter.
#' The function... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823117524L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615938302-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823117524L, -1106109928L, -10... |
## Analyzing the Hindsight Costs with all reserves and Predictions
require(ggplot2)
require(reshape)
dat_hind = read.csv("allResPred_costs.csv")
dat_hind = cbind(dat_hind, totNom=dat_hind$Fixed + dat_hind$RealVariable,
totHind=dat_hind$HindFixed + dat_hind$HindVariable)
ggplot(aes(x=tot... | /FittingSets/HindsightAnalysis.R | no_license | KLM24/UnitCommitment | R | false | false | 455 | r | ## Analyzing the Hindsight Costs with all reserves and Predictions
require(ggplot2)
require(reshape)
dat_hind = read.csv("allResPred_costs.csv")
dat_hind = cbind(dat_hind, totNom=dat_hind$Fixed + dat_hind$RealVariable,
totHind=dat_hind$HindFixed + dat_hind$HindVariable)
ggplot(aes(x=tot... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createNutritionData.R
\name{createNutritionVars}
\alias{createNutritionVars}
\title{Creates nutrition adequacy variables and Lag/Lead matrices}
\usage{
createNutritionVars(valid.cases, brks = c(0:12, seq(15, 55, by = 5), 61.1),
ignore.first... | /elrapack/man/createNutritionVars.Rd | no_license | maj-biostat/elra-biostats | R | false | true | 779 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createNutritionData.R
\name{createNutritionVars}
\alias{createNutritionVars}
\title{Creates nutrition adequacy variables and Lag/Lead matrices}
\usage{
createNutritionVars(valid.cases, brks = c(0:12, seq(15, 55, by = 5), 61.1),
ignore.first... |
#### Create Graphics for BIC ####
## Description of File ##
'
In diesem Script werden die verschiedenen BIC Werte der Model-Configurationen einschließlich des Supermodels geplotted.
Anschließend werden die einzelnen Plots in einem Panel zusammengefügt.
'
## Input ##
'
Die _BIC Files im Crossvalidation Ordner für Silo... | /script/script_raw/Crossvalidation/BIC_Graphic_no2004.R | no_license | MikyPiky/Project1 | R | false | false | 54,120 | r | #### Create Graphics for BIC ####
## Description of File ##
'
In diesem Script werden die verschiedenen BIC Werte der Model-Configurationen einschließlich des Supermodels geplotted.
Anschließend werden die einzelnen Plots in einem Panel zusammengefügt.
'
## Input ##
'
Die _BIC Files im Crossvalidation Ordner für Silo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path.R
\name{get_data_path}
\alias{get_data_path}
\title{Retrieve the user specified data path}
\usage{
get_data_path(..., root = readLines("~/.ecomon"))
}
\arguments{
\item{...}{elements for \code{\link[base]{file.path}}}
\item{root}{char, ... | /man/get_data_path.Rd | permissive | BigelowLab/ecomon | R | false | true | 443 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path.R
\name{get_data_path}
\alias{get_data_path}
\title{Retrieve the user specified data path}
\usage{
get_data_path(..., root = readLines("~/.ecomon"))
}
\arguments{
\item{...}{elements for \code{\link[base]{file.path}}}
\item{root}{char, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yhatR.R
\name{yhat.spider.block}
\alias{yhat.spider.block}
\title{Private function for recursively looking for variables}
\usage{
yhat.spider.block(block, defined.vars = c())
}
\arguments{
\item{block}{code block to spider}
\item{defined.var... | /man/yhat.spider.block.Rd | no_license | yhat/yhatr | R | false | true | 493 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yhatR.R
\name{yhat.spider.block}
\alias{yhat.spider.block}
\title{Private function for recursively looking for variables}
\usage{
yhat.spider.block(block, defined.vars = c())
}
\arguments{
\item{block}{code block to spider}
\item{defined.var... |
library(dplyr)
###------------------------- Downloading and Unzipping dataset -----------------------------------------------------------
dataURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
zipfilepath <- "C://Users//Yashendu Joshi//Desktop//Kaggle//#Study//LearnR//Get... | /run_analysis.R | no_license | yashendu/GettingCleaningDataProject | R | false | false | 3,156 | r | library(dplyr)
###------------------------- Downloading and Unzipping dataset -----------------------------------------------------------
dataURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
zipfilepath <- "C://Users//Yashendu Joshi//Desktop//Kaggle//#Study//LearnR//Get... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{transform_lines_enc}
\alias{transform_lines_enc}
\title{Transform a text file}
\usage{
transform_lines_enc(path, fun, file_encoding = "UTF-8", ok = TRUE,
skipNul = FALSE, write_back = TRUE, verbose = interactive())
}
\arguments{
... | /man/transform_lines_enc.Rd | no_license | yutannihilation/enc | R | false | true | 1,396 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{transform_lines_enc}
\alias{transform_lines_enc}
\title{Transform a text file}
\usage{
transform_lines_enc(path, fun, file_encoding = "UTF-8", ok = TRUE,
skipNul = FALSE, write_back = TRUE, verbose = interactive())
}
\arguments{
... |
# SetmWorking Directory to UCI HAR Dataset
if(getwd()!="C:/Users/NIKOS/Documents/learnr/UCI HAR Dataset"){
setwd("C:/Users/NIKOS/Documents/learnr/UCI HAR Dataset")
}
# Clead the workspace
rm(list=ls())
## Read all the files into R.
features<-read.table("features.txt")
x_test<-read.table("X_test.txt")
x_t... | /run_analysis.R | no_license | giannis-p/Getting-and-cleaning-data | R | false | false | 2,458 | r | # SetmWorking Directory to UCI HAR Dataset
if(getwd()!="C:/Users/NIKOS/Documents/learnr/UCI HAR Dataset"){
setwd("C:/Users/NIKOS/Documents/learnr/UCI HAR Dataset")
}
# Clead the workspace
rm(list=ls())
## Read all the files into R.
features<-read.table("features.txt")
x_test<-read.table("X_test.txt")
x_t... |
# ui.R
library(shiny)
shinyUI(fluidPage(
titlePanel("Example of survival analysis with time interaction"),
sidebarPanel(
h2("Select parameters for simulation"),
p("Parameters for Cox regression"),
sliderInput("ns","Sample size:", min=100, max=1000, value=200, step=100, format="###", animate... | /ui.R | no_license | ferrero-zhang/survival-app-shiny | R | false | false | 7,983 | r | # ui.R
library(shiny)
shinyUI(fluidPage(
titlePanel("Example of survival analysis with time interaction"),
sidebarPanel(
h2("Select parameters for simulation"),
p("Parameters for Cox regression"),
sliderInput("ns","Sample size:", min=100, max=1000, value=200, step=100, format="###", animate... |
# Utilities for fire effects analysis
# Includes files/directories and functions
# ---------------------------------------------------------------------
# Libraries
library(RHESSysIOinR)
library(readr)
library(ggplot2)
library(tidyr)
library(dplyr)
library(purrr)
library(lubridate)
library(sensitivity)
library(beepr)... | /R/0.1_utilities.R | no_license | ryanrbart/fire_effects_model | R | false | false | 19,754 | r | # Utilities for fire effects analysis
# Includes files/directories and functions
# ---------------------------------------------------------------------
# Libraries
library(RHESSysIOinR)
library(readr)
library(ggplot2)
library(tidyr)
library(dplyr)
library(purrr)
library(lubridate)
library(sensitivity)
library(beepr)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eq_map.R
\name{eq_map}
\alias{eq_map}
\title{eq_map}
\usage{
eq_map(data_map, annot_col = "date")
}
\arguments{
\item{data_map}{A cleaned data frame with data from NOAA website}
\item{annot_col}{The name of the column from the data to be us... | /man/eq_map.Rd | no_license | marcelamu95/earthquakeGeoms | R | false | true | 893 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eq_map.R
\name{eq_map}
\alias{eq_map}
\title{eq_map}
\usage{
eq_map(data_map, annot_col = "date")
}
\arguments{
\item{data_map}{A cleaned data frame with data from NOAA website}
\item{annot_col}{The name of the column from the data to be us... |
#' Part of the FAO Loss Module
#'
#' @author Alicia English
#' @export LossModel_ctry
LossModel_ctry <- function(Data,timeSeriesDataToBeImputed,ctry_modelvar,HierarchicalCluster,keys_lower){
# Description:
# The model operates in 3 parts,
# 1) sets the clusters for estimating for countries without data.
# ... | /R/LossModel_ctry.R | no_license | SWS-Methodology/faoswsLoss | R | false | false | 30,166 | r | #' Part of the FAO Loss Module
#'
#' @author Alicia English
#' @export LossModel_ctry
LossModel_ctry <- function(Data,timeSeriesDataToBeImputed,ctry_modelvar,HierarchicalCluster,keys_lower){
# Description:
# The model operates in 3 parts,
# 1) sets the clusters for estimating for countries without data.
# ... |
## ui.r
##
library("shiny")
shinyUI(pageWithSidebar(
# the header panel
headerPanel("Predict Child's Height"),
# the side bar
sidebarPanel(
# numericInput("nbx_ParentHeight", "Enter Parent Height (in in)",
# value... | /ui.r | no_license | chinlock/DataProductsProject | R | false | false | 1,858 | r | ## ui.r
##
library("shiny")
shinyUI(pageWithSidebar(
# the header panel
headerPanel("Predict Child's Height"),
# the side bar
sidebarPanel(
# numericInput("nbx_ParentHeight", "Enter Parent Height (in in)",
# value... |
# Load full datasets
murder_full = read_csv(file = "_sessions/Models/competition/1_Data/murders_crime_full.csv")
nonvio_full = read_csv(file = "_sessions/Models/competition/1_Data/nonviolent_crime_full.csv")
# permute data
murder_full = murder_full[sample(1:nrow(murder_full)),]
nonvio_full = nonvio_full[sample(1:nrow... | /_sessions/Models/competition/0_Code/split_candidates.R | permissive | therbootcamp/ML_2020Oct | R | false | false | 3,930 | r |
# Load full datasets
murder_full = read_csv(file = "_sessions/Models/competition/1_Data/murders_crime_full.csv")
nonvio_full = read_csv(file = "_sessions/Models/competition/1_Data/nonviolent_crime_full.csv")
# permute data
murder_full = murder_full[sample(1:nrow(murder_full)),]
nonvio_full = nonvio_full[sample(1:nrow... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{installing_gWidgets_toolkits}
\alias{installing_gWidgets_toolkits}
\title{blurb about installation}
\usage{
installing_gWidgets_toolkits()
}
\description{
put in so can be updated easily
}
| /man/installing_gWidgets_toolkits.Rd | no_license | statTarget/gWidgets2 | R | false | true | 281 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{installing_gWidgets_toolkits}
\alias{installing_gWidgets_toolkits}
\title{blurb about installation}
\usage{
installing_gWidgets_toolkits()
}
\description{
put in so can be updated easily
}
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/geoutil.R
\name{pointsInLocality}
\alias{pointsInLocality}
\title{Finds the observations in geo_df based on candidates_df}
\usage{
pointsInLocality(geo_df, candidates_df, stdDevs = 3)
}
\arguments{
\item{geo_df}{}
\item{candidates_df... | /man/pointsInLocality.Rd | permissive | homeaway/geoutil | R | false | false | 639 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/geoutil.R
\name{pointsInLocality}
\alias{pointsInLocality}
\title{Finds the observations in geo_df based on candidates_df}
\usage{
pointsInLocality(geo_df, candidates_df, stdDevs = 3)
}
\arguments{
\item{geo_df}{}
\item{candidates_df... |
#' Add one or more tracks to a user’s playlist.
#'
#' @param playlist_id Required. The \href{https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids}{Spotify ID} for the playlist.
#' @param uris Optional. A character vector of \href{https://developer.spotify.com/documentation/web-api/#spotify-uris-and... | /R/playlists.R | no_license | TroyHernandez/tinyspotifyr | R | false | false | 32,748 | r | #' Add one or more tracks to a user’s playlist.
#'
#' @param playlist_id Required. The \href{https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids}{Spotify ID} for the playlist.
#' @param uris Optional. A character vector of \href{https://developer.spotify.com/documentation/web-api/#spotify-uris-and... |
\name{StrBCD.ui}
\alias{StrBCD.ui}
\alias{StrBCD.ui.carseq}
\title{
Command-line User Interface Using Shao's Method
}
\description{
A call to user-iterface function used to allocate patients to one of two treatments using Shao's method proposed by Shao J, Yu X, Zhong B (2010) <Doi:10.1093/biomet/asq014>.
}
\... | /caratOMP/man/StrBCD.ui.Rd | no_license | zhenxuanzhang/carat | R | false | false | 1,422 | rd | \name{StrBCD.ui}
\alias{StrBCD.ui}
\alias{StrBCD.ui.carseq}
\title{
Command-line User Interface Using Shao's Method
}
\description{
A call to user-iterface function used to allocate patients to one of two treatments using Shao's method proposed by Shao J, Yu X, Zhong B (2010) <Doi:10.1093/biomet/asq014>.
}
\... |
readr("./Drafts/data_cleaning_draft2.R", "r")
#All editing start here
#To measure popularity: consider variables such as- x=imdb score,y=return,
library(ggplot2)
#gross and return vs IMDB_SCORE-------anomoly
ggplot(RB_data, aes(x=imdb_score, y=gross ))+ ##gross and return vs IMDB_SCORE-------anomoly is justin biebe... | /REN'S Working2.R | no_license | xipigu/Group-G | R | false | false | 1,726 | r |
readr("./Drafts/data_cleaning_draft2.R", "r")
#All editing start here
#To measure popularity: consider variables such as- x=imdb score,y=return,
library(ggplot2)
#gross and return vs IMDB_SCORE-------anomoly
ggplot(RB_data, aes(x=imdb_score, y=gross ))+ ##gross and return vs IMDB_SCORE-------anomoly is justin biebe... |
#' Summarise a data frame.
#'
#' Summarise works in an analogous way to \code{\link{mutate}}, except
#' instead of adding columns to an existing data frame, it creates a new
#' data frame. This is particularly useful in conjunction with
#' \code{\link{ddply}} as it makes it easy to perform group-wise summaries.
#'
#' ... | /R/summarise.r | no_license | tentacles-from-outer-space/plyr | R | false | false | 1,783 | r | #' Summarise a data frame.
#'
#' Summarise works in an analogous way to \code{\link{mutate}}, except
#' instead of adding columns to an existing data frame, it creates a new
#' data frame. This is particularly useful in conjunction with
#' \code{\link{ddply}} as it makes it easy to perform group-wise summaries.
#'
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cansim.R
\name{adjust_cansim_values_by_variable}
\alias{adjust_cansim_values_by_variable}
\title{Adjust Cansim Value by scaled amount
French part does not work, probably encoding issues}
\usage{
adjust_cansim_values_by_variable(data, var)
}
\... | /man/adjust_cansim_values_by_variable.Rd | permissive | GitScotty/cansim | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cansim.R
\name{adjust_cansim_values_by_variable}
\alias{adjust_cansim_values_by_variable}
\title{Adjust Cansim Value by scaled amount
French part does not work, probably encoding issues}
\usage{
adjust_cansim_values_by_variable(data, var)
}
\... |
reticulate::use_python('/home/toolkit/local/bin/python3',required=TRUE)
.bbknn<-function(PCA, BATCH,NB=3, NT=10, DM=2){
NB=NB
NT=NT
DM=DM
pca.use=PCA
batch=BATCH
#mybeer=mybeer
library(reticulate)
#use_python("C:\Users\cchmc\Anaconda3\python")
anndata = reticulate::import("anndata"... | /H9KC/bbknn.R | no_license | jumphone/LiLab | R | false | false | 1,013 | r |
reticulate::use_python('/home/toolkit/local/bin/python3',required=TRUE)
.bbknn<-function(PCA, BATCH,NB=3, NT=10, DM=2){
NB=NB
NT=NT
DM=DM
pca.use=PCA
batch=BATCH
#mybeer=mybeer
library(reticulate)
#use_python("C:\Users\cchmc\Anaconda3\python")
anndata = reticulate::import("anndata"... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
cswei <- function(w_v, rs_rs, ind, rev) {
.Call('_coxmeg_cswei', PACKAGE = 'coxmeg', w_v, rs_rs, ind, rev)
}
invsph <- function(A, der, dv, v1, mx, v2, v3, v4, av, bw, f, inv, tau, sol) {
... | /fuzzedpackages/coxmeg/R/RcppExports.R | no_license | akhikolla/testpackages | R | false | false | 1,727 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
cswei <- function(w_v, rs_rs, ind, rev) {
.Call('_coxmeg_cswei', PACKAGE = 'coxmeg', w_v, rs_rs, ind, rev)
}
invsph <- function(A, der, dv, v1, mx, v2, v3, v4, av, bw, f, inv, tau, sol) {
... |
zip_everything <- function(zipname = "default.zip") {
zip::zip(
zipfile = zipname,
files = c(
"config.json",
"R",
"fit_model.R",
"install.R",
"predict.R",
"training_data.csv",
"prod"
)
)
}
| /R/zip_that_shit.R | permissive | SimonCoulombe/aicrowd_insurancepricing_last_week | R | false | false | 247 | r | zip_everything <- function(zipname = "default.zip") {
zip::zip(
zipfile = zipname,
files = c(
"config.json",
"R",
"fit_model.R",
"install.R",
"predict.R",
"training_data.csv",
"prod"
)
)
}
|
library(rvest)
# state population centers since 1880 census
download.file("http://www2.census.gov/geo/docs/reference/cenpop2010/nat_cop_1880_2010.txt", 'data/state_pop_centers.csv')
state_capital_url <- 'https://www.jetpunk.com/data/countries/united-states/state-capitals-list'
xml <- read_html(state_capital_url)
node... | /state_pop_centers/get_data.R | no_license | jayleetx/mLab | R | false | false | 492 | r | library(rvest)
# state population centers since 1880 census
download.file("http://www2.census.gov/geo/docs/reference/cenpop2010/nat_cop_1880_2010.txt", 'data/state_pop_centers.csv')
state_capital_url <- 'https://www.jetpunk.com/data/countries/united-states/state-capitals-list'
xml <- read_html(state_capital_url)
node... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggtexttable.R
\name{ggtexttable}
\alias{ggtexttable}
\alias{ttheme}
\alias{colnames_style}
\alias{rownames_style}
\alias{tbody_style}
\title{Draw a Textual Table}
\usage{
ggtexttable(x, rows = rownames(x), cols = colnames(x), vp = NULL,
the... | /man/ggtexttable.Rd | no_license | ju-mu/ggpubr | R | false | true | 5,137 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggtexttable.R
\name{ggtexttable}
\alias{ggtexttable}
\alias{ttheme}
\alias{colnames_style}
\alias{rownames_style}
\alias{tbody_style}
\title{Draw a Textual Table}
\usage{
ggtexttable(x, rows = rownames(x), cols = colnames(x), vp = NULL,
the... |
get_gene_from_url <- function(url_query){
gene <- url_query[['gene']]
if (!is.null(gene)) return(gene)
return(NA)
}
build_io_target_dt_tbl <- function(tbl){
tbl %>%
dplyr::select(
Hugo = .data$hgnc,
`Entrez ID` = .data$entrez,
`Friendly Name`... | /R/io_target_functions.R | permissive | CRI-iAtlas/iatlas-app | R | false | false | 927 | r |
get_gene_from_url <- function(url_query){
gene <- url_query[['gene']]
if (!is.null(gene)) return(gene)
return(NA)
}
build_io_target_dt_tbl <- function(tbl){
tbl %>%
dplyr::select(
Hugo = .data$hgnc,
`Entrez ID` = .data$entrez,
`Friendly Name`... |
library(photobiologyLamps)
### Name: lamps.mspct
### Title: Spectral irradiance for diverse lamps
### Aliases: lamps.mspct
### Keywords: datasets
### ** Examples
uv_lamps
union(qpanel_lamps, uv_lamps)
lamps.mspct[union(philips_lamps, red_lamps)]
lamps.mspct$qpanel.uvb313
| /data/genthat_extracted_code/photobiologyLamps/examples/lamps.mspct.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 281 | r | library(photobiologyLamps)
### Name: lamps.mspct
### Title: Spectral irradiance for diverse lamps
### Aliases: lamps.mspct
### Keywords: datasets
### ** Examples
uv_lamps
union(qpanel_lamps, uv_lamps)
lamps.mspct[union(philips_lamps, red_lamps)]
lamps.mspct$qpanel.uvb313
|
#looks up MAT and MAP for given lat/lon values
GetClimate <-function(lats,lons, wc) {
plot.mat <- numeric(length(lats))
plot.tmax <- numeric(length(lats))
plot.map <- numeric(length(lats))
plot.pdry <- numeric(length(lats))
plot.mat <- extract(wc,
cbind(lons,
... | /R/climate.R | no_license | kunstler/Plant_vpd | R | false | false | 5,913 | r |
#looks up MAT and MAP for given lat/lon values
GetClimate <-function(lats,lons, wc) {
plot.mat <- numeric(length(lats))
plot.tmax <- numeric(length(lats))
plot.map <- numeric(length(lats))
plot.pdry <- numeric(length(lats))
plot.mat <- extract(wc,
cbind(lons,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CellCalling.R
\name{est_background_profile_sgt}
\alias{est_background_profile_sgt}
\title{Estimate a gene expression profile on a given subset of barcodes.}
\usage{
est_background_profile_sgt(matrix, use_bcs)
}
\arguments{
\item{matrix}{Spars... | /man/est_background_profile_sgt.Rd | no_license | zhanghao-njmu/dropSplit | R | false | true | 607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CellCalling.R
\name{est_background_profile_sgt}
\alias{est_background_profile_sgt}
\title{Estimate a gene expression profile on a given subset of barcodes.}
\usage{
est_background_profile_sgt(matrix, use_bcs)
}
\arguments{
\item{matrix}{Spars... |
library(shiny)
library(viridisLite)
library(dplyr)
source("./R/utils.R")
# -------- Inputs for Clustering
ui <- fluidPage(
# Setup
tags$link(rel = "stylesheet", type = "text/css", href = "style.css"),
HTML(author_notes()),
# Generate a row with a sidebar
sidebarLayout(
# Define the sid... | /finished_app.R | no_license | asiftechie/biopharma-app | R | false | false | 6,041 | r |
library(shiny)
library(viridisLite)
library(dplyr)
source("./R/utils.R")
# -------- Inputs for Clustering
ui <- fluidPage(
# Setup
tags$link(rel = "stylesheet", type = "text/css", href = "style.css"),
HTML(author_notes()),
# Generate a row with a sidebar
sidebarLayout(
# Define the sid... |
bic<-function(trials,neg_log_like,nparam) 2*neg_log_like+nparam*log(trials) #canonical | /Alex_scripts/bic.R | no_license | klpurves/FLARe_Bayesian_Hierarchical | R | false | false | 86 | r | bic<-function(trials,neg_log_like,nparam) 2*neg_log_like+nparam*log(trials) #canonical |
#' @title Calculation of cumulative loss by Panjer recursion.
#' @description The prediction model is described in <Modern actuarial risk theory - based on R>.
#' @param p The probability distribution (NumericVector)
#' @param lambda The parameters of the poisson distribution (numeric)
#' @return The maximum possible ... | /R/Panjer.R | no_license | sunhfsc/SC19052 | R | false | false | 970 | r |
#' @title Calculation of cumulative loss by Panjer recursion.
#' @description The prediction model is described in <Modern actuarial risk theory - based on R>.
#' @param p The probability distribution (NumericVector)
#' @param lambda The parameters of the poisson distribution (numeric)
#' @return The maximum possible ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lma_patcat.R
\name{lma_patcat}
\alias{lma_patcat}
\title{Categorize Texts}
\usage{
lma_patcat(text, dict = NULL, pattern.weights = "weight",
pattern.categories = "category", bias = NULL, to.lower = TRUE,
return.dtm = FALSE, drop.zeros = F... | /man/lma_patcat.Rd | no_license | miserman/lingmatch | R | false | true | 5,420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lma_patcat.R
\name{lma_patcat}
\alias{lma_patcat}
\title{Categorize Texts}
\usage{
lma_patcat(text, dict = NULL, pattern.weights = "weight",
pattern.categories = "category", bias = NULL, to.lower = TRUE,
return.dtm = FALSE, drop.zeros = F... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check.R
\name{checkUnknownReceivers}
\alias{checkUnknownReceivers}
\title{Find detections from unknown receivers}
\usage{
checkUnknownReceivers(input)
}
\arguments{
\item{input}{The detections data frame}
}
\value{
No return value, called for... | /man/checkUnknownReceivers.Rd | no_license | hugomflavio/actel | R | false | true | 411 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check.R
\name{checkUnknownReceivers}
\alias{checkUnknownReceivers}
\title{Find detections from unknown receivers}
\usage{
checkUnknownReceivers(input)
}
\arguments{
\item{input}{The detections data frame}
}
\value{
No return value, called for... |
# Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Install Package: 'Cmd + Shift + B'
# Check Package: ... | /R/functions.R | no_license | fdrennan/plumberTemplate | R | false | false | 3,886 | r | # Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Install Package: 'Cmd + Shift + B'
# Check Package: ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.autoscaling_operations.R
\name{detach_instances}
\alias{detach_instances}
\title{Removes one or more instances from the specified Auto Scaling group}
\usage{
detach_instances(InstanceIds = NULL, AutoScalingGroupName,
ShouldDecrementDes... | /service/paws.autoscaling/man/detach_instances.Rd | permissive | CR-Mercado/paws | R | false | true | 1,934 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.autoscaling_operations.R
\name{detach_instances}
\alias{detach_instances}
\title{Removes one or more instances from the specified Auto Scaling group}
\usage{
detach_instances(InstanceIds = NULL, AutoScalingGroupName,
ShouldDecrementDes... |
#' @title Reorder a factor such that lattice plots come out in the correct numerical order.
#' @description Reorder a factor such that lattice plots come out in the correct numerical order. This
#' function is useful when lattice plots are conditioned using factors with a mixture of text and numbers.
#' @usage
#' re... | /R/reorder-for-trellis-function.R | no_license | claus-e-andersen/clanLattice | R | false | false | 2,141 | r | #' @title Reorder a factor such that lattice plots come out in the correct numerical order.
#' @description Reorder a factor such that lattice plots come out in the correct numerical order. This
#' function is useful when lattice plots are conditioned using factors with a mixture of text and numbers.
#' @usage
#' re... |
#' @include ODSDesign_Obj.R
.ODSDesign_fn <- function(par, minData, info, ...) {
mo <- .newMethodObj_ODSDesign(info = info, par = par, minData = minData)
return( suppressWarnings(.loglik_ODSDesign(object = mo, ...)) )
}
| /R/ODSDesign_fn.R | no_license | cran/ICODS | R | false | false | 235 | r | #' @include ODSDesign_Obj.R
.ODSDesign_fn <- function(par, minData, info, ...) {
mo <- .newMethodObj_ODSDesign(info = info, par = par, minData = minData)
return( suppressWarnings(.loglik_ODSDesign(object = mo, ...)) )
}
|
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/s3cache.R
\name{fetch_from_cache}
\alias{fetch_from_cache}
\title{Helper function for fetching a file from a cache directory.}
\usage{
fetch_from_cache(key, cache_dir = cache_directory())
}
\arguments{
\item{key}{character. The key un... | /man/fetch_from_cache.Rd | no_license | FeiYeYe/s3mpi | R | false | false | 791 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/s3cache.R
\name{fetch_from_cache}
\alias{fetch_from_cache}
\title{Helper function for fetching a file from a cache directory.}
\usage{
fetch_from_cache(key, cache_dir = cache_directory())
}
\arguments{
\item{key}{character. The key un... |
#' @name spark-connections
#'
#' @param file Path to R source file to submit for batch execution.
#'
#' @export
spark_submit <- function(master,
file,
spark_home = Sys.getenv("SPARK_HOME"),
app_name = "sparklyr",
version... | /R/spark_submit.R | permissive | sparklyr/sparklyr | R | false | false | 1,654 | r | #' @name spark-connections
#'
#' @param file Path to R source file to submit for batch execution.
#'
#' @export
spark_submit <- function(master,
file,
spark_home = Sys.getenv("SPARK_HOME"),
app_name = "sparklyr",
version... |
\name{NNTbiomarker-package}
\alias{NNTbiomarker-package}
\alias{NNTbiomarker}
\docType{package}
\title{
Plan a biomarker validation study by focusing on desired clinical actionability.
}
\description{
Clarifying what performance would suffice if the test is to improve medical care makes it possible to design meaningful... | /man/NNTbiomarker-package.Rd | no_license | professorbeautiful/NNTbiomarkerHome | R | false | false | 1,115 | rd | \name{NNTbiomarker-package}
\alias{NNTbiomarker-package}
\alias{NNTbiomarker}
\docType{package}
\title{
Plan a biomarker validation study by focusing on desired clinical actionability.
}
\description{
Clarifying what performance would suffice if the test is to improve medical care makes it possible to design meaningful... |
library(easySVG)
### Name: defs.svg
### Title: make SVG defs element
### Aliases: defs.svg
### ** Examples
defs.svg(defs.content = "<text x=\"10\" y=\"20\"> an SVG element </text>")
defs.content <- list(svg1 = "<text x=\"10\" y=\"30\"> an SVG element </text>",
svg2 = "<text x=\"10\" y=\"40\"> a... | /data/genthat_extracted_code/easySVG/examples/defs.svg.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 386 | r | library(easySVG)
### Name: defs.svg
### Title: make SVG defs element
### Aliases: defs.svg
### ** Examples
defs.svg(defs.content = "<text x=\"10\" y=\"20\"> an SVG element </text>")
defs.content <- list(svg1 = "<text x=\"10\" y=\"30\"> an SVG element </text>",
svg2 = "<text x=\"10\" y=\"40\"> a... |
#' @title Taxonomic Information from Around the Web
#'
#' @description This package interacts with a suite of web 'APIs'
#' for taxonomic tasks, such as verifying species names, getting
#' taxonomic hierarchies, and verifying name spelling.
#'
#' @section About:
#' Allows users to search over many websites for species ... | /R/taxize-package.R | permissive | gejielin/taxize | R | false | false | 12,337 | r | #' @title Taxonomic Information from Around the Web
#'
#' @description This package interacts with a suite of web 'APIs'
#' for taxonomic tasks, such as verifying species names, getting
#' taxonomic hierarchies, and verifying name spelling.
#'
#' @section About:
#' Allows users to search over many websites for species ... |
library(CollapsABEL)
### Name: assocFilter
### Title: Filter a PlGwasC object by the results of a 'plink --assoc' run
### Aliases: assocFilter
### ** Examples
## Not run:
##D rbed_info = rbedInfo(bedstem = "mmp13", db_setup = FALSE)
##D pl_gwas = plGwas(rbed_info,
##D pheno = "mmp13.phe",
##D pheno_name = "Pa... | /data/genthat_extracted_code/CollapsABEL/examples/assocFilter.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 705 | r | library(CollapsABEL)
### Name: assocFilter
### Title: Filter a PlGwasC object by the results of a 'plink --assoc' run
### Aliases: assocFilter
### ** Examples
## Not run:
##D rbed_info = rbedInfo(bedstem = "mmp13", db_setup = FALSE)
##D pl_gwas = plGwas(rbed_info,
##D pheno = "mmp13.phe",
##D pheno_name = "Pa... |
# File level tweaks --------------------------------------------
tweak_page <- function(html, name, pkg = list(bs_version = 3)) {
# Syntax highlighting and linking
if (name == "reference-topic") {
# Reference topic takes a minimal approach since some is
# already handled by Rd processing
tweak_reference... | /R/tweak-page.R | permissive | r-lib/pkgdown | R | false | false | 3,059 | r | # File level tweaks --------------------------------------------
tweak_page <- function(html, name, pkg = list(bs_version = 3)) {
# Syntax highlighting and linking
if (name == "reference-topic") {
# Reference topic takes a minimal approach since some is
# already handled by Rd processing
tweak_reference... |
# Page No. 93
ClassInterval <- c("16.25-18.75", "18.75-21.25", "21.25-23.75","23.75-26.25", "26.25-28.75", " 28.75-31.25", " 31.25-33.75", "33.75-36.25","36.25-38.75", " 38.75- 41.25","41.25- 43.75")
freq <- c( 2,7,7,14,17,24,11,11,3,3,1)
mid_interval<- c(17.5,20.0,22.5,25.0,27.5,30.0,32.5,35.0,37.5,40.0,42.5)
fmi<-fr... | /An_Introduction_To_Statistical_Methods_And_Data_Analysis_by_R_Lyman_Ott_And_Michael_Longnecker/CH3/EX3.10/Ex3_10.r | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 525 | r | # Page No. 93
ClassInterval <- c("16.25-18.75", "18.75-21.25", "21.25-23.75","23.75-26.25", "26.25-28.75", " 28.75-31.25", " 31.25-33.75", "33.75-36.25","36.25-38.75", " 38.75- 41.25","41.25- 43.75")
freq <- c( 2,7,7,14,17,24,11,11,3,3,1)
mid_interval<- c(17.5,20.0,22.5,25.0,27.5,30.0,32.5,35.0,37.5,40.0,42.5)
fmi<-fr... |
#PURPOSE OF THIS SCRIPT IS TO PROVIDE STATS FOR LETTERS TO MANAGERS SENT IN NOVEMBER 2017.
#Reset functions
rm(list=ls())
dev.off()
#Libraries
#Set working directory
setwd("C:/Users/jcronan/Documents/GitHub/Forest_Resiliency_Burning_Pilot")
#Open file with tree species metadata:
consumption <- read.table("wad_20170... | /20171129_LettersToManagers.R | no_license | jcronanuw/Forest_Resiliency_Burning_Pilot | R | false | false | 4,951 | r | #PURPOSE OF THIS SCRIPT IS TO PROVIDE STATS FOR LETTERS TO MANAGERS SENT IN NOVEMBER 2017.
#Reset functions
rm(list=ls())
dev.off()
#Libraries
#Set working directory
setwd("C:/Users/jcronan/Documents/GitHub/Forest_Resiliency_Burning_Pilot")
#Open file with tree species metadata:
consumption <- read.table("wad_20170... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /_check/test_code/cond/r_codes/meanEXP_Condition_event_2008.R | permissive | HHS-AHRQ/MEPS-summary-tables | R | false | false | 3,892 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
### Turns Model ######
## State 1 ###
edge1 = new("Edge", edge = c("E", "dc1"), prob = 0.5)
edge2 = new("Edge", edge = c("E", "fga1"), prob = 0.5)
edge3 = new("Edge", edge = c("dc1","c2h"), prob = 0.5)
edge4 = new("Edge", edge = c("dc1", "c2ba1"), prob = 0.5)
edge5 = new("Edge", edge = c("fga1", "a2bc1"), prob = 0.5)... | /Sources/src/Model1/TurnModel.R | no_license | mattapattu/Rats-Credit | R | false | false | 2,530 | r | ### Turns Model ######
## State 1 ###
edge1 = new("Edge", edge = c("E", "dc1"), prob = 0.5)
edge2 = new("Edge", edge = c("E", "fga1"), prob = 0.5)
edge3 = new("Edge", edge = c("dc1","c2h"), prob = 0.5)
edge4 = new("Edge", edge = c("dc1", "c2ba1"), prob = 0.5)
edge5 = new("Edge", edge = c("fga1", "a2bc1"), prob = 0.5)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opsworks_operations.R
\name{opsworks_describe_deployments}
\alias{opsworks_describe_deployments}
\title{Requests a description of a specified set of deployments}
\usage{
opsworks_describe_deployments(
StackId = NULL,
AppId = NULL,
Deplo... | /cran/paws.management/man/opsworks_describe_deployments.Rd | permissive | paws-r/paws | R | false | true | 1,055 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opsworks_operations.R
\name{opsworks_describe_deployments}
\alias{opsworks_describe_deployments}
\title{Requests a description of a specified set of deployments}
\usage{
opsworks_describe_deployments(
StackId = NULL,
AppId = NULL,
Deplo... |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
tit... | /apps/app.R | no_license | rforoperations2019/Class-10-Troubleshooting | R | false | false | 1,166 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
tit... |
#https://tensorflow.rstudio.com/index.html
library(tensorflow)
library(reticulate)
datasets <- tf$contrib$learn$datasets
mnist <- datasets$mnist$read_data_sets("MNIST-data", one_hot = TRUE)
#The MNIST data is split into three parts:
#55,000 data points of training data (mnist$train),
#10,000 points of test data (mn... | /TensorFlow.R | no_license | mwnuk/RCode | R | false | false | 1,599 | r | #https://tensorflow.rstudio.com/index.html
library(tensorflow)
library(reticulate)
datasets <- tf$contrib$learn$datasets
mnist <- datasets$mnist$read_data_sets("MNIST-data", one_hot = TRUE)
#The MNIST data is split into three parts:
#55,000 data points of training data (mnist$train),
#10,000 points of test data (mn... |
##############################################################################
# ---- Creating Phenotypes summary file for urine
phenotypes_summary_urine <- as.data.frame(matrix(0, ncol = 5,
nrow = dim(phenotypes_file_urine)[2]))
colnames(phenotypes_summary_urine) <- ... | /main_code_scripts/3.3.Code_create_input_files_CMS.R | no_license | beacalvo/metabQTLs | R | false | false | 2,338 | r | ##############################################################################
# ---- Creating Phenotypes summary file for urine
phenotypes_summary_urine <- as.data.frame(matrix(0, ncol = 5,
nrow = dim(phenotypes_file_urine)[2]))
colnames(phenotypes_summary_urine) <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/titv.R
\name{titv}
\alias{titv}
\title{Classifies SNPs into transitions and transversions}
\usage{
titv(maf, useSyn = FALSE, plot = TRUE, file = NULL)
}
\arguments{
\item{maf}{an MAF object generated by \code{\link{read.maf}}}
\item{useSyn}{... | /man/titv.Rd | permissive | ttriche/maftools | R | false | true | 972 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/titv.R
\name{titv}
\alias{titv}
\title{Classifies SNPs into transitions and transversions}
\usage{
titv(maf, useSyn = FALSE, plot = TRUE, file = NULL)
}
\arguments{
\item{maf}{an MAF object generated by \code{\link{read.maf}}}
\item{useSyn}{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.