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 |
|---|---|---|---|---|---|---|---|---|---|
#' Create a Melted and Grouped Version of e_data for IMD_ANOVA filter
#'
#' This function creates a melted version of e_data, grouped by edata_id and group designation, for future use of implementing a IMD_ANOVA filter
#'
#' @param e_data \eqn{p \times n} data.frame, where \eqn{p} is the number of peptides, proteins, l... | /R/pre_imdanova_melt.R | no_license | godi678/pmartR | R | false | false | 2,177 | r | #' Create a Melted and Grouped Version of e_data for IMD_ANOVA filter
#'
#' This function creates a melted version of e_data, grouped by edata_id and group designation, for future use of implementing a IMD_ANOVA filter
#'
#' @param e_data \eqn{p \times n} data.frame, where \eqn{p} is the number of peptides, proteins, l... |
# Created by: Emily S. darling
# Created: 3 April 2016
# Last modified: 3 April 2016
# Purpose: global Pacific-centred map in R as base layer for ggplot maps
#updated Pacific-centred map code
#http://stackoverflow.com/questions/28001212/making-a-world-map-with-plots-based-on-the-density-using-ggmap
lib... | /analysis/fig-1-map/global-base-map_v2.R | no_license | lilyzzhao/IndoPacific-corals | R | false | false | 2,916 | r | # Created by: Emily S. darling
# Created: 3 April 2016
# Last modified: 3 April 2016
# Purpose: global Pacific-centred map in R as base layer for ggplot maps
#updated Pacific-centred map code
#http://stackoverflow.com/questions/28001212/making-a-world-map-with-plots-based-on-the-density-using-ggmap
lib... |
expressionBuilder <- function(logic, ...) {
# USEAGE: .variable.substitution("val=VAL", VAL=5) --> "val=5"
.variable.substitution <- function(content, ...) {
ARGS = unlist(list(...))
if (!is.null(ARGS)) {
for (i in 1:length(ARGS)) {
content = gsub(names(ARGS)[i], ARGS[i], content)
}
... | /src/R/rhipe_helpers/expressionBuilder.R | permissive | ibm-bioinformatics/BlueSNP | R | false | false | 1,855 | r | expressionBuilder <- function(logic, ...) {
# USEAGE: .variable.substitution("val=VAL", VAL=5) --> "val=5"
.variable.substitution <- function(content, ...) {
ARGS = unlist(list(...))
if (!is.null(ARGS)) {
for (i in 1:length(ARGS)) {
content = gsub(names(ARGS)[i], ARGS[i], content)
}
... |
yStrings <- c('nLeaves','Coppice','LeafArea','AverageLA','Height','RootLength','MassAbove','MassBelow','MassAB')
yStrings <- c('Height','MassAbove','MassBelow','MassAB','nLeaves','LeafArea','AverageLA','RootLength','Coppice')
yLabels <- c('Leaf count', 'Coppicing branch count', expression('Total leaf area (cm'^2*')'),... | /Final/Seedling mesocosm study/Plotter_ResponseStrips_P2_LA.R | no_license | CassieJames/EWKR-scripts | R | false | false | 3,457 | r | yStrings <- c('nLeaves','Coppice','LeafArea','AverageLA','Height','RootLength','MassAbove','MassBelow','MassAB')
yStrings <- c('Height','MassAbove','MassBelow','MassAB','nLeaves','LeafArea','AverageLA','RootLength','Coppice')
yLabels <- c('Leaf count', 'Coppicing branch count', expression('Total leaf area (cm'^2*')'),... |
rm(list=ls())
source(file = "./package_load.R", chdir = T)
# Number of bases: 5, 10, 15, 20
process <- "ebf" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
L <- 5 # number of knots to use for the basis functions
cv <- 3 ... | /markdown/fire-analysis/fit-ebf-5-3.R | permissive | sammorris81/extreme-decomp | R | false | false | 1,324 | r | rm(list=ls())
source(file = "./package_load.R", chdir = T)
# Number of bases: 5, 10, 15, 20
process <- "ebf" # ebf: empirical basis functions, gsk: gaussian kernels
margin <- "gsk" # ebf: empirical basis functions, gsk: gaussian kernels
L <- 5 # number of knots to use for the basis functions
cv <- 3 ... |
#' Visualization of PFR objects
#'
#' Produces perspective or contour plot views of an estimated surface corresponding
#' smooths over two or more dimensions. Alternatively plots \dQuote{slices} of the
#' estimated surface or estimated second derivative surface with one of its arguments fixed.
#' Corresponding twice-st... | /R/vis.pfr.R | no_license | mnazmulislam/refund | R | false | false | 11,012 | r | #' Visualization of PFR objects
#'
#' Produces perspective or contour plot views of an estimated surface corresponding
#' smooths over two or more dimensions. Alternatively plots \dQuote{slices} of the
#' estimated surface or estimated second derivative surface with one of its arguments fixed.
#' Corresponding twice-st... |
library('quantmod')
#Toyota <- as.xts(read.zoo('7203.T_stock.csv', header=TRUE, sep=','))
#SoftBank <- as.xts(read.zoo('9984.T_stock.csv', header=TRUE, sep=','))
Ganho <- as.xts(read.zoo('3765.Q_stock.csv', header=TRUE, sep=','))
candleChart(Ganho['2013-04::'])
| /plotCandleChart.R | no_license | yoneken/finance | R | false | false | 264 | r | library('quantmod')
#Toyota <- as.xts(read.zoo('7203.T_stock.csv', header=TRUE, sep=','))
#SoftBank <- as.xts(read.zoo('9984.T_stock.csv', header=TRUE, sep=','))
Ganho <- as.xts(read.zoo('3765.Q_stock.csv', header=TRUE, sep=','))
candleChart(Ganho['2013-04::'])
|
args <- commandArgs( trailingOnly = TRUE )
lt = as.numeric( args[1] )
if( length( args ) > 1 ){
data <- read.table( args[2] )
}else{
data <- read.table( stdin() )
}
data <- data[ as.numeric( data[ , 2 ] ) < lt , ]
write.table( data , quote = FALSE, row.names = FALSE, col.names = FALSE )
| /selectlt.r | permissive | tbepler/ets-analysis-scripts | R | false | false | 300 | r | args <- commandArgs( trailingOnly = TRUE )
lt = as.numeric( args[1] )
if( length( args ) > 1 ){
data <- read.table( args[2] )
}else{
data <- read.table( stdin() )
}
data <- data[ as.numeric( data[ , 2 ] ) < lt , ]
write.table( data , quote = FALSE, row.names = FALSE, col.names = FALSE )
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getUrlListByCategory.R
\name{getUrlListByCategory}
\alias{getUrlListByCategory}
\title{Get Url List By Category}
\usage{
getUrlListByCategory(turl = url, col = c("titles", "links"))
}
\arguments{
\item{turl}{is target url naver news.}
\item{... | /man/getUrlListByCategory.Rd | permissive | mkhoin/N2H4 | R | false | true | 489 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getUrlListByCategory.R
\name{getUrlListByCategory}
\alias{getUrlListByCategory}
\title{Get Url List By Category}
\usage{
getUrlListByCategory(turl = url, col = c("titles", "links"))
}
\arguments{
\item{turl}{is target url naver news.}
\item{... |
# Load data
source('loadPowerData.R')
# Open device
png(filename = 'plot4.png', width = 480, height = 480, units = 'px',bg = "transparent")
## Make plots
par(mfrow=c(2,2))
# Top left
plot(df$DateTime, df$Global_active_power,
ylab='Global Active Power', xlab='', type='l')
# Top right
plot(df$DateTime, df$Voltage... | /plot4.R | no_license | grobins/ExData_Plotting1 | R | false | false | 882 | r | # Load data
source('loadPowerData.R')
# Open device
png(filename = 'plot4.png', width = 480, height = 480, units = 'px',bg = "transparent")
## Make plots
par(mfrow=c(2,2))
# Top left
plot(df$DateTime, df$Global_active_power,
ylab='Global Active Power', xlab='', type='l')
# Top right
plot(df$DateTime, df$Voltage... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c4_100_10")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... | /models/openml_fri_c4_100_10/classification_binaryClass/74cf467e6387c1f99f22e70caaba7f4f/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 692 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "fri_c4_100_10")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass")
lrn = mak... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vcov.gllvm.R
\name{vcov.gllvm}
\alias{vcov.gllvm}
\alias{vcov}
\title{Returns variance-covariance matrix of coefficients in a GLLVM.}
\usage{
\method{vcov}{gllvm}(object)
}
\arguments{
\item{object}{an object of class 'gllvm'.}
}
\description... | /man/vcov.gllvm.Rd | no_license | nvt-1009/gllvm | R | false | true | 1,060 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vcov.gllvm.R
\name{vcov.gllvm}
\alias{vcov.gllvm}
\alias{vcov}
\title{Returns variance-covariance matrix of coefficients in a GLLVM.}
\usage{
\method{vcov}{gllvm}(object)
}
\arguments{
\item{object}{an object of class 'gllvm'.}
}
\description... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sqs_operations.R
\name{sqs_tag_queue}
\alias{sqs_tag_queue}
\title{Add cost allocation tags to the specified Amazon SQS queue}
\usage{
sqs_tag_queue(QueueUrl, Tags)
}
\arguments{
\item{QueueUrl}{[required] The URL of the queue.}
\item{Tags}{... | /paws/man/sqs_tag_queue.Rd | permissive | sanchezvivi/paws | R | false | true | 1,782 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sqs_operations.R
\name{sqs_tag_queue}
\alias{sqs_tag_queue}
\title{Add cost allocation tags to the specified Amazon SQS queue}
\usage{
sqs_tag_queue(QueueUrl, Tags)
}
\arguments{
\item{QueueUrl}{[required] The URL of the queue.}
\item{Tags}{... |
#' @title example tree 3
#' @docType data
#' @rdname tree3
#'
#' @usage data(tree3)
"tree3"
| /R/tree3.R | permissive | lskatz/Tinsel | R | false | false | 92 | r | #' @title example tree 3
#' @docType data
#' @rdname tree3
#'
#' @usage data(tree3)
"tree3"
|
#----------------------------------
# Phenotype files
#----------------------------------
#' Read plain-text table files phen and ped
#'
#' The function reads the phenotype and pedigree data in SOLAR format,
#' i.e. plain-text tables.
#'
#' @param phen.file
#' A character, path to phen file.
#' @param sep.phen
#' ... | /R/files.lib.R | no_license | ugcd/solarius | R | false | false | 7,033 | r | #----------------------------------
# Phenotype files
#----------------------------------
#' Read plain-text table files phen and ped
#'
#' The function reads the phenotype and pedigree data in SOLAR format,
#' i.e. plain-text tables.
#'
#' @param phen.file
#' A character, path to phen file.
#' @param sep.phen
#' ... |
library(DiagrammeR)
### Name: open_graph
### Title: Read a graph or graph series from disk
### Aliases: open_graph
### ** Examples
# Create an undirected GNP
# graph with 100 nodes using
# a probability value of 0.05
gnp_graph <-
create_graph(
directed = FALSE) %>%
add_gnp_graph(
n = 100,
p = 0.05)
... | /data/genthat_extracted_code/DiagrammeR/examples/open_graph.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 552 | r | library(DiagrammeR)
### Name: open_graph
### Title: Read a graph or graph series from disk
### Aliases: open_graph
### ** Examples
# Create an undirected GNP
# graph with 100 nodes using
# a probability value of 0.05
gnp_graph <-
create_graph(
directed = FALSE) %>%
add_gnp_graph(
n = 100,
p = 0.05)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hallmarks.R
\name{get_hallmark}
\alias{get_hallmark}
\title{Find Associated Cancer hallmarks.}
\usage{
get_hallmark(gene_symbol)
}
\arguments{
\item{gene_symbol}{A vector of gene symbol(s). Required parameter.}
}
\value{
A data_frame containi... | /man/get_hallmark.Rd | no_license | biomedbigdata/SPONGE-web-R | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hallmarks.R
\name{get_hallmark}
\alias{get_hallmark}
\title{Find Associated Cancer hallmarks.}
\usage{
get_hallmark(gene_symbol)
}
\arguments{
\item{gene_symbol}{A vector of gene symbol(s). Required parameter.}
}
\value{
A data_frame containi... |
#############################################################################################
######################### function for disease grouping file data ###########################
#############################################################################################
# function for cleaning the Disease... | /CalREDIE_disease_group_cleaning_function.R | no_license | elizabethjump/COVID-19_CalREDIE_Data | R | false | false | 1,220 | r | #############################################################################################
######################### function for disease grouping file data ###########################
#############################################################################################
# function for cleaning the Disease... |
source("plotter.R")
#R script传递文件夹名参数
args<-commandArgs(T)
name <- args[1]
title <- paste(sep="", name)
data <- loadResults(paste(sep="", name, "/passive.flow-ReceivedBitRate.data.bz2"))
xSet <- data$SndBufSize / (1024*1024) #x轴数据集合
xTitle <- "Buffer Size[MiB]"
ySet <- data$passive.flow.ReceivedBitRate / (1024 * ... | /mptcp_web/huanchong.R | no_license | Cylra/Res | R | false | false | 1,361 | r | source("plotter.R")
#R script传递文件夹名参数
args<-commandArgs(T)
name <- args[1]
title <- paste(sep="", name)
data <- loadResults(paste(sep="", name, "/passive.flow-ReceivedBitRate.data.bz2"))
xSet <- data$SndBufSize / (1024*1024) #x轴数据集合
xTitle <- "Buffer Size[MiB]"
ySet <- data$passive.flow.ReceivedBitRate / (1024 * ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ithreshpred_methods.R
\name{plot.ithreshpred}
\alias{plot.ithreshpred}
\title{Plot diagnostics an ithreshpred object}
\usage{
\method{plot}{ithreshpred}(x, ..., ave_only = FALSE, add_best = FALSE)
}
\arguments{
\item{x}{an object of class "it... | /man/plot.ithreshpred.Rd | no_license | paulnorthrop/threshr | R | false | true | 3,743 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ithreshpred_methods.R
\name{plot.ithreshpred}
\alias{plot.ithreshpred}
\title{Plot diagnostics an ithreshpred object}
\usage{
\method{plot}{ithreshpred}(x, ..., ave_only = FALSE, add_best = FALSE)
}
\arguments{
\item{x}{an object of class "it... |
library(salesperson)
getKs = function(N, unique=TRUE) {
ks = c(3, 5, 7, N**(1/3), 2*N**(1/3), 0.5*N**0.5, N**0.5)
ks = floor(ks)
if (unique) return(unique(ks))
else return(ks)
}
paths = list.files(path = "~/TSPAS/instances",
recursive=TRUE, pattern = '/*tsp$', full.names=TRUE... | /R/miscellaneous/calculate_pihera.r | no_license | yuexiaqianying/PPSN_TSP_DL | R | false | false | 2,375 | r | library(salesperson)
getKs = function(N, unique=TRUE) {
ks = c(3, 5, 7, N**(1/3), 2*N**(1/3), 0.5*N**0.5, N**0.5)
ks = floor(ks)
if (unique) return(unique(ks))
else return(ks)
}
paths = list.files(path = "~/TSPAS/instances",
recursive=TRUE, pattern = '/*tsp$', full.names=TRUE... |
#-------------------------------------------------------------------------------
# Copyright (c) 2017 OBiBa. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License... | /tests/testthat/test-opal.R | no_license | IulianD/opal | R | false | false | 1,569 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2017 OBiBa. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License... |
#' Get the distance between two GPS vectors
#'
#' Takes two latitudes / longitudes and calculates distance in metres
#' @param lon1 longtude vector for individual 1 or if method is "speed" then t = 1
#' @param lat1 latitude vector for individual 1 or if method is "speed" then t = 1
#' @param lon2 longtude vector for in... | /R/get_dist.R | no_license | sankeydan/robofalcon | R | false | false | 1,273 | r | #' Get the distance between two GPS vectors
#'
#' Takes two latitudes / longitudes and calculates distance in metres
#' @param lon1 longtude vector for individual 1 or if method is "speed" then t = 1
#' @param lat1 latitude vector for individual 1 or if method is "speed" then t = 1
#' @param lon2 longtude vector for in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cross_validation.R
\name{LOOCV_grid}
\alias{LOOCV_grid}
\title{LOOCV
Leave-one-out cross-validation}
\usage{
LOOCV_grid(x, y, hgrid = seq(from = 0.05, to = 3, length.out = 80),
weight_probs = c(0.05, 0.95))
}
\arguments{
\item{x}{'x' values... | /man/LOOCV_grid.Rd | no_license | hoangtt1989/NOIS | R | false | true | 800 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cross_validation.R
\name{LOOCV_grid}
\alias{LOOCV_grid}
\title{LOOCV
Leave-one-out cross-validation}
\usage{
LOOCV_grid(x, y, hgrid = seq(from = 0.05, to = 3, length.out = 80),
weight_probs = c(0.05, 0.95))
}
\arguments{
\item{x}{'x' values... |
################################################################################
# This is the Boston Housing Data, with a simple ANOVA without an interaction
# There are many possible confounders, but in this one I simply use Z = credit score
# Plot curves for black and non-black borrowers, with CIs
#############... | /misc/boston/boston_mort_ci.R | no_license | panders225/semiparametric-regression | R | false | false | 10,008 | r | ################################################################################
# This is the Boston Housing Data, with a simple ANOVA without an interaction
# There are many possible confounders, but in this one I simply use Z = credit score
# Plot curves for black and non-black borrowers, with CIs
#############... |
#' Plot gestation
#'
#' @param plot ggplot2 object
#' @param name character
#' @param width
#' @param height
#' @param ext png, pdf, tiff,... (default is png)
#' @param ...
#'
#' @return
#' @export
#' @import ggplot2 ggsave
#'
#' @examples
#'
save_plot <- function(plot, name, ext = "png",
width = ... | /R/plots.R | permissive | nschiett/datatoolboxexos | R | false | false | 2,532 | r | #' Plot gestation
#'
#' @param plot ggplot2 object
#' @param name character
#' @param width
#' @param height
#' @param ext png, pdf, tiff,... (default is png)
#' @param ...
#'
#' @return
#' @export
#' @import ggplot2 ggsave
#'
#' @examples
#'
save_plot <- function(plot, name, ext = "png",
width = ... |
#' Diff Two ADAT Objects
#'
#' Diff tool for the differences between two `soma_adat` objects.
#' When diffs of the table *values* are interrogated, **only**
#' the intersect of the column meta data or feature data is considered
#'
#' @param adat1 First `soma_adat` object.
#' @param adat2 Second `soma_adat` object.
#' @... | /R/diffAdats.R | permissive | chen496/SomaDataIO | R | false | false | 7,173 | r | #' Diff Two ADAT Objects
#'
#' Diff tool for the differences between two `soma_adat` objects.
#' When diffs of the table *values* are interrogated, **only**
#' the intersect of the column meta data or feature data is considered
#'
#' @param adat1 First `soma_adat` object.
#' @param adat2 Second `soma_adat` object.
#' @... |
#######################################################
# This program is to perform modeling for the dataset
# Programmer: Xinyi Zhao
# Date: 01/23/2016
#######################################################
#setwd("C:/Users/zhaohexu/Dropbox/Ozone project")
#setwd("C:/Users/Hitomi/Dropbox/Ozone project")
#in... | /modeling1.R | no_license | xinyizhao123/Predicting-Future-Ambient-Ozone | R | false | false | 13,937 | r | #######################################################
# This program is to perform modeling for the dataset
# Programmer: Xinyi Zhao
# Date: 01/23/2016
#######################################################
#setwd("C:/Users/zhaohexu/Dropbox/Ozone project")
#setwd("C:/Users/Hitomi/Dropbox/Ozone project")
#in... |
autoFactor <- function(array,groups=4)
{
min <- min(array)
max <- max(array)
sep <- max-min
step <- sep/groups
result <- c()
foreach(i=1:length(array)) %:% foreach(j=1:groups) %do%{
minV <- min+step*(j-1)
maxV <- min+step*j
if (array[i] >= minV && array[i]<=maxV )
{result<-c(result... | /utils.R | no_license | josemanuelnavarro/ML-Experiments | R | false | false | 478 | r | autoFactor <- function(array,groups=4)
{
min <- min(array)
max <- max(array)
sep <- max-min
step <- sep/groups
result <- c()
foreach(i=1:length(array)) %:% foreach(j=1:groups) %do%{
minV <- min+step*(j-1)
maxV <- min+step*j
if (array[i] >= minV && array[i]<=maxV )
{result<-c(result... |
####################################################################
## Functions to construct SYSargsList objects and other utilities ##
####################################################################
##########################
## SPRproject function ##
##########################
## Detection and creation of the... | /R/sysargslist_utilities.R | no_license | tgirke/systemPipeR | R | false | false | 105,585 | r | ####################################################################
## Functions to construct SYSargsList objects and other utilities ##
####################################################################
##########################
## SPRproject function ##
##########################
## Detection and creation of the... |
#######################################################################
# PROJECT:IoT Analytics Domain Research and Exploratory Data Analysis #
# NAME:Francesca Prata #
# SCRIPT:Data visualization #
# DATE:14-02-2019 ... | /4.Data_visualization.R | no_license | francescaprata/Energy-Consumption | R | false | false | 4,550 | r | #######################################################################
# PROJECT:IoT Analytics Domain Research and Exploratory Data Analysis #
# NAME:Francesca Prata #
# SCRIPT:Data visualization #
# DATE:14-02-2019 ... |
# Copyright 2013, 2018 Christian Sigg
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distri... | /R/acor.R | no_license | LifangHe/nscancor | R | false | false | 4,790 | r | # Copyright 2013, 2018 Christian Sigg
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distri... |
##' Summarize root mean square error (RMSE) for direct and indirect pathway from netSEMp1 result.
##'
##' pathwayRMSE gives a summary about RMSE.
##'
##' @title Summary of pathway RMSE
##' @param x An object of class "netSEM", the returned list from netSEMm().
##' @param maxlen The maximum length of chosen mechanism.
#... | /R/pathwayRMSE.r | no_license | cran/netSEM | R | false | false | 2,295 | r | ##' Summarize root mean square error (RMSE) for direct and indirect pathway from netSEMp1 result.
##'
##' pathwayRMSE gives a summary about RMSE.
##'
##' @title Summary of pathway RMSE
##' @param x An object of class "netSEM", the returned list from netSEMm().
##' @param maxlen The maximum length of chosen mechanism.
#... |
.replace <- function(new, old) {
if (!is.null(old)) old else new
}
.use_names_to_integer_indices <- function(use, x, nameFUN, msg) {
if (isTRUE(use)) {
use <- seq_along(nameFUN(x))
} else if (isFALSE(use)) {
use <- integer(0)
} else if (is.character(use)) {
use <- match(use, nam... | /R/utils_other.R | no_license | LTLA/scuttle | R | false | false | 1,087 | r | .replace <- function(new, old) {
if (!is.null(old)) old else new
}
.use_names_to_integer_indices <- function(use, x, nameFUN, msg) {
if (isTRUE(use)) {
use <- seq_along(nameFUN(x))
} else if (isFALSE(use)) {
use <- integer(0)
} else if (is.character(use)) {
use <- match(use, nam... |
# line=1
# direction="N"
# timeinf=0
# timesup=24
# datafile=mtafile_cleaned
# delays=NULL
graph_trip_time_subway<-function(line,timeinf,timesup,datafile,delays,direction){
## Select line and directions:
# line_input = line
# direct_input = c('S')
library(dplyr)
library(lubridate)
library(chron)... | /helpers.R | no_license | chabir/Fastest-Subway-in-NYC | R | false | false | 7,710 | r | # line=1
# direction="N"
# timeinf=0
# timesup=24
# datafile=mtafile_cleaned
# delays=NULL
graph_trip_time_subway<-function(line,timeinf,timesup,datafile,delays,direction){
## Select line and directions:
# line_input = line
# direct_input = c('S')
library(dplyr)
library(lubridate)
library(chron)... |
# bhpm.BB.summary
# Model bhpm.BB
# R. Carragher
# Date: 29/06/2018
Id <- "$Id: bhpm.cluster.BB.hier2.lev0.summary.stats.R,v 1.12 2020/03/31 12:42:23 clb13102 Exp clb13102 $"
bhpm.cluster.BB.hier2.lev0.summary.stats <- function(raw, prob = 0.95)
{
s_base = bhpm.cluster.1a.hier2.lev0.summary.stats(raw, prob)
# Chec... | /R/bhpm.cluster.BB.hier2.lev0.summary.stats.R | no_license | rcarragh/bhpm | R | false | false | 5,514 | r | # bhpm.BB.summary
# Model bhpm.BB
# R. Carragher
# Date: 29/06/2018
Id <- "$Id: bhpm.cluster.BB.hier2.lev0.summary.stats.R,v 1.12 2020/03/31 12:42:23 clb13102 Exp clb13102 $"
bhpm.cluster.BB.hier2.lev0.summary.stats <- function(raw, prob = 0.95)
{
s_base = bhpm.cluster.1a.hier2.lev0.summary.stats(raw, prob)
# Chec... |
library(gnm)
### Name: gnm-package
### Title: Generalized Nonlinear Models
### Aliases: gnm-package
### Keywords: package models regression nonlinear
### ** Examples
demo(gnm)
| /data/genthat_extracted_code/gnm/examples/gnm-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 183 | r | library(gnm)
### Name: gnm-package
### Title: Generalized Nonlinear Models
### Aliases: gnm-package
### Keywords: package models regression nonlinear
### ** Examples
demo(gnm)
|
vkGetAdAgeStats <- function(
account_id = getOption("rvkstat.account_id"),
ids_type = "campaign",
ids,
period = c("day", "month", "overall"),
date_from = Sys.Date() - 30,
date_to = Sys.Date(),
username = getOption("rvkstat.username"),
api_version = getOpt... | /R/vkGetAdAgeStats.R | no_license | selesnow/rvkstat | R | false | false | 2,532 | r | vkGetAdAgeStats <- function(
account_id = getOption("rvkstat.account_id"),
ids_type = "campaign",
ids,
period = c("day", "month", "overall"),
date_from = Sys.Date() - 30,
date_to = Sys.Date(),
username = getOption("rvkstat.username"),
api_version = getOpt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fdir_helper.R
\name{sf_remove_geom}
\alias{sf_remove_geom}
\title{Remove geometry from sf objects}
\usage{
sf_remove_geom(sf)
}
\arguments{
\item{sf}{Anything.}
}
\value{
The input, if it was \emph{not} of class \code{sf}. A \code{data.frame}... | /man/sf_remove_geom.Rd | no_license | swissgeodata4r/swissrastermaps4r | R | false | true | 644 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fdir_helper.R
\name{sf_remove_geom}
\alias{sf_remove_geom}
\title{Remove geometry from sf objects}
\usage{
sf_remove_geom(sf)
}
\arguments{
\item{sf}{Anything.}
}
\value{
The input, if it was \emph{not} of class \code{sf}. A \code{data.frame}... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307021343e+77, 1.0442506772823e-305, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_b... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777128-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307021343e+77, 1.0442506772823e-305, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_b... |
# Function to extract Hashtags and there frquency
extract.hashTag = function(Tweets){
hash.pattern = "#[[:alpha:]]+"
have.hash = grep(x = Tweets, pattern = hash.pattern)
hash.matches = gregexpr(pattern = hash.pattern,
text = Tweets[have.hash])
extracted.... | /M-Tech Final Year Project/R Code/functions.R | no_license | LEOKA037/AcademicProjects | R | false | false | 5,025 | r |
# Function to extract Hashtags and there frquency
extract.hashTag = function(Tweets){
hash.pattern = "#[[:alpha:]]+"
have.hash = grep(x = Tweets, pattern = hash.pattern)
hash.matches = gregexpr(pattern = hash.pattern,
text = Tweets[have.hash])
extracted.... |
# Hons R-Assignment 2018
# Kholofelo Sethebe, Joshua Adrian and Jesse Smith
# statistical analyses using POM data
# load libraries ---------------------------------------------------------
library(tidyverse)
library(ggpubr)
library(lubridate)
library(pgirmess)
# load data ---------------------------------------... | /outliers.R | no_license | Jess050/R-assignment | R | false | false | 16,239 | r | # Hons R-Assignment 2018
# Kholofelo Sethebe, Joshua Adrian and Jesse Smith
# statistical analyses using POM data
# load libraries ---------------------------------------------------------
library(tidyverse)
library(ggpubr)
library(lubridate)
library(pgirmess)
# load data ---------------------------------------... |
# makeCacheMatrix returns list of following functions to operate on the matrix
# sent as argument
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the inverse of the matrix
# 4. get the inverse of the matrix
## Function makeCacheMatrix taking a matrix input and returning list of getter/set... | /cachematrix.R | no_license | sraghuve/ProgrammingAssignment2 | R | false | false | 1,118 | r | # makeCacheMatrix returns list of following functions to operate on the matrix
# sent as argument
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the inverse of the matrix
# 4. get the inverse of the matrix
## Function makeCacheMatrix taking a matrix input and returning list of getter/set... |
# reading data - plot 3
data <- read.table("household_power_consumption.txt", sep = ";", skip = 66637, nrows = 2880)
# clearing name row and unrelevant variables, casting to right classes
data <- data %>% mutate(V1 = as.POSIXct(dmy_hms(as.character(paste(V1, V2)))),
V7 = as.numeric(as.characte... | /plot3.R | no_license | eikden/ExploratoryDataAnalysis | R | false | false | 835 | r |
# reading data - plot 3
data <- read.table("household_power_consumption.txt", sep = ";", skip = 66637, nrows = 2880)
# clearing name row and unrelevant variables, casting to right classes
data <- data %>% mutate(V1 = as.POSIXct(dmy_hms(as.character(paste(V1, V2)))),
V7 = as.numeric(as.characte... |
#############################################################
#############################################################
stud_prior.v2 <-
function(theta , Y , beta , variance , nstud ,
nnodes , ndim , YSD ){
if(ndim == 1) {
##################################
# SINGLE DIMENS... | /R/stud_prior.R | no_license | mr-majkel/TAM | R | false | false | 3,048 | r |
#############################################################
#############################################################
stud_prior.v2 <-
function(theta , Y , beta , variance , nstud ,
nnodes , ndim , YSD ){
if(ndim == 1) {
##################################
# SINGLE DIMENS... |
########################
###
### Leonard Mada
### [the one and only]
###
### Polynomial Systems
### S4: Hetero-Symmetric
### Formulas: Old Derivations
###
### draft v.0.1a
### Formulas:
# - Old derivations;
####################
### Helper Functions
source("Poly.System.S4.C2.Helper.R")
#... | /Math/Poly.System.S4.C2.Formulas.[old].R | no_license | discoleo/R | R | false | false | 14,183 | r | ########################
###
### Leonard Mada
### [the one and only]
###
### Polynomial Systems
### S4: Hetero-Symmetric
### Formulas: Old Derivations
###
### draft v.0.1a
### Formulas:
# - Old derivations;
####################
### Helper Functions
source("Poly.System.S4.C2.Helper.R")
#... |
### TO MODIFY ####################################################################################################################
library(raster); library(foreign); library(gdalUtils)
wd <- '/vol/milkun3/Valerio/FLO1K_1.1/'
wd.old <- '/vol/milkun3/Valerio/FLO1K/'
source(paste0(wd,'scripts/functions_generic.R')... | /scripts/covar.dyn.CRU.tmp.R | no_license | vbarbarossa/flo1k | R | false | false | 4,101 | r | ### TO MODIFY ####################################################################################################################
library(raster); library(foreign); library(gdalUtils)
wd <- '/vol/milkun3/Valerio/FLO1K_1.1/'
wd.old <- '/vol/milkun3/Valerio/FLO1K/'
source(paste0(wd,'scripts/functions_generic.R')... |
library(shiny)
function(input, output, session) {
#scatter plot
output$scatter_plot <- renderPlot({
ggplot(data = data, aes_string(x="index", y=input$qcmetric, color = annotation))+
labs(color = annotation)+
geom_point()+
geom_point(data=data[data[[primaryID]] %in% input$outliers_mul,],color='black... | /server.R | no_license | jialiwang1211/sampleQC | R | false | false | 3,416 | r | library(shiny)
function(input, output, session) {
#scatter plot
output$scatter_plot <- renderPlot({
ggplot(data = data, aes_string(x="index", y=input$qcmetric, color = annotation))+
labs(color = annotation)+
geom_point()+
geom_point(data=data[data[[primaryID]] %in% input$outliers_mul,],color='black... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{cubeOptions}
\alias{cubeOptions}
\title{Options to control cube appearance.}
\usage{
cubeOptions(x_pos = 1, y_pos = 1, z_pos = 1, ...)
}
\arguments{
\item{x_pos}{initial position of x-axis slice.}
\item{y_pos}{initial positio... | /man/cubeOptions.Rd | no_license | r-spatial/cubeview | R | false | true | 475 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{cubeOptions}
\alias{cubeOptions}
\title{Options to control cube appearance.}
\usage{
cubeOptions(x_pos = 1, y_pos = 1, z_pos = 1, ...)
}
\arguments{
\item{x_pos}{initial position of x-axis slice.}
\item{y_pos}{initial positio... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotthingsgraph_operations.R
\name{iotthingsgraph_update_flow_template}
\alias{iotthingsgraph_update_flow_template}
\title{Updates the specified workflow}
\usage{
iotthingsgraph_update_flow_template(id, definition,
compatibleNamespaceVersion... | /paws/man/iotthingsgraph_update_flow_template.Rd | permissive | sanchezvivi/paws | R | false | true | 1,423 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotthingsgraph_operations.R
\name{iotthingsgraph_update_flow_template}
\alias{iotthingsgraph_update_flow_template}
\title{Updates the specified workflow}
\usage{
iotthingsgraph_update_flow_template(id, definition,
compatibleNamespaceVersion... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nse-stock.R
\name{nse_stock_top_base}
\alias{nse_stock_top_base}
\alias{nse_stock_top_gainers}
\alias{nse_stock_top_losers}
\title{NSE top gainers & losers}
\usage{
nse_stock_top_gainers(clean_names = TRUE)
nse_stock_top_losers(cle... | /man/nse_stock_top_base.Rd | no_license | cran/nse2r | R | false | true | 1,408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nse-stock.R
\name{nse_stock_top_base}
\alias{nse_stock_top_base}
\alias{nse_stock_top_gainers}
\alias{nse_stock_top_losers}
\title{NSE top gainers & losers}
\usage{
nse_stock_top_gainers(clean_names = TRUE)
nse_stock_top_losers(cle... |
#' Runs a summarised linear regression model
#'
#' @param formula An object of class formula
#' @param data A data frame with data
#' @param ... other params to be passed to lm()
#' @import ggfortify
#' @export
summarised_lm <- function(formula, data, ...){
dep_var <- data %>%
dplyr::select((formula)[[2]]) ... | /R/funcs_reg_models.R | no_license | alberto-mateos-mo/data.analyseR | R | false | false | 4,370 | r | #' Runs a summarised linear regression model
#'
#' @param formula An object of class formula
#' @param data A data frame with data
#' @param ... other params to be passed to lm()
#' @import ggfortify
#' @export
summarised_lm <- function(formula, data, ...){
dep_var <- data %>%
dplyr::select((formula)[[2]]) ... |
library(tidyverse)
library(vroom)
library(shiny)
library(ggplot2)
# lattice provide the histogram object..
library(lattice)
ui <- fluidPage(
fluidRow(
column(3,
numericInput("lambda1", label = "lambda1", value = 3),
numericInput("lambda2", label = "lambda2", value = 3),
numericI... | /02_basics_reactive/poisson_demo.R | no_license | thefactmachine/shiny_plotly | R | false | false | 790 | r | library(tidyverse)
library(vroom)
library(shiny)
library(ggplot2)
# lattice provide the histogram object..
library(lattice)
ui <- fluidPage(
fluidRow(
column(3,
numericInput("lambda1", label = "lambda1", value = 3),
numericInput("lambda2", label = "lambda2", value = 3),
numericI... |
## read .fcs files into a flowset.
library(flowCore)
f_read<-function(working_directory, pattern){
working_directory<-paste("C:/repos/promoter/FACS data/paper figures/",working_directory,sep = "")
setwd(working_directory)
flowset<-read.flowSet(pattern=pattern)
return(flowset)
}
#----------------------... | /FACS data/paper figures/dose response fits/spearman hormesis/common_functions.R | no_license | aasli/promoter | R | false | false | 4,777 | r |
## read .fcs files into a flowset.
library(flowCore)
f_read<-function(working_directory, pattern){
working_directory<-paste("C:/repos/promoter/FACS data/paper figures/",working_directory,sep = "")
setwd(working_directory)
flowset<-read.flowSet(pattern=pattern)
return(flowset)
}
#----------------------... |
library(MASS)
library(ggplot2)
require(gridExtra)
library(corrplot)
pca.computation <- function(dataset, numcomp=10){
pca.data <- prcomp(dataset[,c(9:length(dataset))])
pca.dataset <- data.frame(pca.data$x[,c(1:numcomp)])
pca.dataset$label <- csvData2$label
return(pca.dataset)
}
pca.computation.old <- funct... | /R/pca_functions.R | permissive | presmerats/MalwareAPICounts | R | false | false | 2,033 | r | library(MASS)
library(ggplot2)
require(gridExtra)
library(corrplot)
pca.computation <- function(dataset, numcomp=10){
pca.data <- prcomp(dataset[,c(9:length(dataset))])
pca.dataset <- data.frame(pca.data$x[,c(1:numcomp)])
pca.dataset$label <- csvData2$label
return(pca.dataset)
}
pca.computation.old <- funct... |
add <-
function(File,txt){
File=paste(File,txt,"\n", sep="")
return(File)
}
| /R/add.R | no_license | NBStephens/auto3dgm-fork | R | false | false | 80 | r | add <-
function(File,txt){
File=paste(File,txt,"\n", sep="")
return(File)
}
|
library(dplyr)
library(ggplot2)
#change data types
df_weight_total$avg_weight <- as.numeric(as.character(df_weight_total$avg_weight))
#subset on Model
df_weight_model <- merge(x=df_spurcluster_total[df_spurcluster_total$model == "Model 6"
& df_spurcluster_tota... | /Visualization/Edges/Weight_Model6SpurCluster.R | no_license | jan-vanroozendaal/MaStat-Thesis-InteractionNetworks | R | false | false | 5,271 | r | library(dplyr)
library(ggplot2)
#change data types
df_weight_total$avg_weight <- as.numeric(as.character(df_weight_total$avg_weight))
#subset on Model
df_weight_model <- merge(x=df_spurcluster_total[df_spurcluster_total$model == "Model 6"
& df_spurcluster_tota... |
#' List Languages That YouTube Currently Supports
#'
#' @param hl Language used for text values. Optional. Default is \code{en-US}. For other allowed language codes, see \code{\link{list_langs}}.
#' @param \dots Additional arguments passed to \code{\link{tuber_GET}}.
#'
#' @return data.frame with 3 columns: \co... | /R/list_langs.R | permissive | cran/tuber | R | false | false | 1,142 | r | #' List Languages That YouTube Currently Supports
#'
#' @param hl Language used for text values. Optional. Default is \code{en-US}. For other allowed language codes, see \code{\link{list_langs}}.
#' @param \dots Additional arguments passed to \code{\link{tuber_GET}}.
#'
#' @return data.frame with 3 columns: \co... |
###Macrosystems: Trait-based caterpillar cast
###Identifying species-specific lags between curves
##libraries
library(tidyverse) #tidy
library(readxl) #for importing excel data
library(rbms) # for gam models
library(lubridate) # for dates
library(MuMIn) # for r-squared estimation
#import other code
source("code/gam_f... | /code/pheno_curve_lag.R | no_license | ealarsen/trait-based-cat-cast | R | false | false | 4,461 | r | ###Macrosystems: Trait-based caterpillar cast
###Identifying species-specific lags between curves
##libraries
library(tidyverse) #tidy
library(readxl) #for importing excel data
library(rbms) # for gam models
library(lubridate) # for dates
library(MuMIn) # for r-squared estimation
#import other code
source("code/gam_f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ThreeMapComparison.R
\docType{methods}
\name{ThreeMapComparison}
\alias{ThreeMapComparison}
\alias{ThreeMapComparison,Model,ANY,ANY-method}
\alias{ThreeMapComparison,RasterLayer,RasterLayer,RasterLayer-method}
\title{Evaluate allocation perfo... | /man/ThreeMapComparison.Rd | no_license | cran/lulcc | R | false | true | 2,597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ThreeMapComparison.R
\docType{methods}
\name{ThreeMapComparison}
\alias{ThreeMapComparison}
\alias{ThreeMapComparison,Model,ANY,ANY-method}
\alias{ThreeMapComparison,RasterLayer,RasterLayer,RasterLayer-method}
\title{Evaluate allocation perfo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atIndel.R
\docType{package}
\name{atIndel}
\alias{atIndel}
\title{atIndel: Affinity test for identifying regularity Indels.}
\description{
atIndel performs affinity tests of motif matches with the Indel or the
reference genomes and Indel-led ... | /man/atIndel.Rd | no_license | chandlerzuo/atIndel | R | false | true | 348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/atIndel.R
\docType{package}
\name{atIndel}
\alias{atIndel}
\title{atIndel: Affinity test for identifying regularity Indels.}
\description{
atIndel performs affinity tests of motif matches with the Indel or the
reference genomes and Indel-led ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp218}
\alias{spp218}
\title{species function}
\usage{
spp218(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... | /man/spp218.Rd | permissive | Djeppschmidt/Model.Microbiome | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{spp218}
\alias{spp218}
\title{species function}
\usage{
spp218(a, b, c, d, e)
}
\arguments{
\item{a}{environmental parameter}
\item{b}{environmental parameter}
\item{c}{environmental parameter}
\item{d}{environmental para... |
# Load Libraries
library(png)
library(imager)
library(dplyr)
library(Rtsne)
library(dbscan)
library(fpc)
library(gridExtra)
library(cluster)
library(ggplot2)
library(kernlab)
# Clustering on Dynamic Spiral Drawings####
setwd("C:/Users/Spurthi Bollina/Documents/A&F/PARKINSON_HW/hw_drawings/Dynamic Spira... | /R Script - Unsupervised Clustering.R | no_license | SpurthiBollina/Parkinson-s-Disease-Identification | R | false | false | 10,650 | r | # Load Libraries
library(png)
library(imager)
library(dplyr)
library(Rtsne)
library(dbscan)
library(fpc)
library(gridExtra)
library(cluster)
library(ggplot2)
library(kernlab)
# Clustering on Dynamic Spiral Drawings####
setwd("C:/Users/Spurthi Bollina/Documents/A&F/PARKINSON_HW/hw_drawings/Dynamic Spira... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uscb_metadata_reformat_metadata.R
\name{standardize_text}
\alias{standardize_text}
\title{Standardize text}
\usage{
standardize_text(docs)
}
\arguments{
\item{mdr}{A character vector.}
}
\value{
A character vector.
}
\description{
Standardize... | /man/standardize_text.Rd | permissive | josesamos/geogenr | R | false | true | 371 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uscb_metadata_reformat_metadata.R
\name{standardize_text}
\alias{standardize_text}
\title{Standardize text}
\usage{
standardize_text(docs)
}
\arguments{
\item{mdr}{A character vector.}
}
\value{
A character vector.
}
\description{
Standardize... |
entropy <- function(p1){
LITTLE_BIT <- 1e-12
p1 <- (p1 + LITTLE_BIT)/( 1 + 2*LITTLE_BIT)
H <- function(p){
p[0>p] <- 0
p[0==p] <- 1e-100
-p * log2(p)
}
H(p1) + H(1 - p1)
}
get_new_pseudolabeled_sample <- function(labeled_filenames){
unlabeled_data_df[unlabeled_data_df$rev_id %in% la... | /text_classification/active_learning_lib.R | permissive | bgsky/active-learning-workshop | R | false | false | 4,195 | r | entropy <- function(p1){
LITTLE_BIT <- 1e-12
p1 <- (p1 + LITTLE_BIT)/( 1 + 2*LITTLE_BIT)
H <- function(p){
p[0>p] <- 0
p[0==p] <- 1e-100
-p * log2(p)
}
H(p1) + H(1 - p1)
}
get_new_pseudolabeled_sample <- function(labeled_filenames){
unlabeled_data_df[unlabeled_data_df$rev_id %in% la... |
#Author : Manojkumar PArmar
#Date: 22/01/2017
#DataScience Capstone Week1 Quiz.
#load libraries
library(datasets)
#cleanup environmant
rm(list = ls())
cat("\014")
#read All files
#if file is not available then read else load file with all data
if(! file.exists("./00_Data/All_Read.RData")){
tweetFile <- file(... | /02_quiz/Week1_Quiz.R | permissive | parmarmanojkumar/DataScience_CapStone | R | false | false | 2,140 | r | #Author : Manojkumar PArmar
#Date: 22/01/2017
#DataScience Capstone Week1 Quiz.
#load libraries
library(datasets)
#cleanup environmant
rm(list = ls())
cat("\014")
#read All files
#if file is not available then read else load file with all data
if(! file.exists("./00_Data/All_Read.RData")){
tweetFile <- file(... |
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
# Expression that generates a histogram. The expression is
# wrapped in a call to renderPlot to indicate that:
#
# 1) It is "reactive" and therefore should re-execute automatically
# when inputs change... | /server.R | no_license | deveshraj/Devesh2 | R | false | false | 641 | r | library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
# Expression that generates a histogram. The expression is
# wrapped in a call to renderPlot to indicate that:
#
# 1) It is "reactive" and therefore should re-execute automatically
# when inputs change... |
\alias{gtkButtonEnter}
\name{gtkButtonEnter}
\title{gtkButtonEnter}
\description{
Emits a \code{\link{gtkButtonEnter}} signal to the given \code{\link{GtkButton}}.
\strong{WARNING: \code{gtk_button_enter} has been deprecated since version 2.20 and should not be used in newly-written code. Use the \verb{"enter-notify-ev... | /RGtk2/man/gtkButtonEnter.Rd | no_license | lawremi/RGtk2 | R | false | false | 533 | rd | \alias{gtkButtonEnter}
\name{gtkButtonEnter}
\title{gtkButtonEnter}
\description{
Emits a \code{\link{gtkButtonEnter}} signal to the given \code{\link{GtkButton}}.
\strong{WARNING: \code{gtk_button_enter} has been deprecated since version 2.20 and should not be used in newly-written code. Use the \verb{"enter-notify-ev... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mfa.R
\name{cs_sigmoid}
\alias{cs_sigmoid}
\title{Sigmoid function for activations - renamed to avoid naming conflict}
\usage{
cs_sigmoid(t, phi, k, delta)
}
\value{
Sigmoid function given the parameters
}
\description{
Sigmoid function for a... | /man/cs_sigmoid.Rd | no_license | kieranrcampbell/mfa | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mfa.R
\name{cs_sigmoid}
\alias{cs_sigmoid}
\title{Sigmoid function for activations - renamed to avoid naming conflict}
\usage{
cs_sigmoid(t, phi, k, delta)
}
\value{
Sigmoid function given the parameters
}
\description{
Sigmoid function for a... |
xtemp = rbinom(n = 100, size = 5, p =0.2)
hist(xtemp, main = '100 binomial draws with n=5, p = 0.2', xlab = '', labels = TRUE)
n = 100
xtemp2 = rbinom(n , size = 10, p =0.1)
#xtemp2
#can set breaks = very high number to make them really skinny
hist(xtemp2, main = '100 binomial draws with n= 100, p = 0.1', xla... | /DRP2.R | no_license | megashby/DRP-Fall-2017 | R | false | false | 3,540 | r | xtemp = rbinom(n = 100, size = 5, p =0.2)
hist(xtemp, main = '100 binomial draws with n=5, p = 0.2', xlab = '', labels = TRUE)
n = 100
xtemp2 = rbinom(n , size = 10, p =0.1)
#xtemp2
#can set breaks = very high number to make them really skinny
hist(xtemp2, main = '100 binomial draws with n= 100, p = 0.1', xla... |
library(tidyverse)
load("data/study_sample_info.RData") # --> all_stats
incl_studies <- read_csv("data/incl_studies.csv")
smok_sl <- read_csv("data/smok_samples_w_sl.csv", col_types="clddccccc")
my_studies <- all_stats[incl_studies2$study_acc]
lung_studies <- incl_studies2 %>% filter(str_detect(tissue, "lung"))
prese... | /code/02_phenotyping/lung_parse_rb_phe.R | no_license | erflynn/smoking_sex_expression | R | false | false | 8,952 | r | library(tidyverse)
load("data/study_sample_info.RData") # --> all_stats
incl_studies <- read_csv("data/incl_studies.csv")
smok_sl <- read_csv("data/smok_samples_w_sl.csv", col_types="clddccccc")
my_studies <- all_stats[incl_studies2$study_acc]
lung_studies <- incl_studies2 %>% filter(str_detect(tissue, "lung"))
prese... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{gmfd_test}
\alias{gmfd_test}
\title{Two-sample hypotesis tests}
\usage{
gmfd_test(FD1, FD2, conf.level = 0.95, stat_test, p = NULL,
k_trunc = NULL)
}
\arguments{
\item{FD1}{a functional data object of type \code{funDa... | /man/gmfd_test.Rd | no_license | cran/gmfd | R | false | true | 2,659 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{gmfd_test}
\alias{gmfd_test}
\title{Two-sample hypotesis tests}
\usage{
gmfd_test(FD1, FD2, conf.level = 0.95, stat_test, p = NULL,
k_trunc = NULL)
}
\arguments{
\item{FD1}{a functional data object of type \code{funDa... |
#' HPD Vacate Order UI
#'
#' @param id Unique ID
#'
#' @export
#'
#' @import sf leaflet stringr purrr plotly shinycssloaders shinydashboard
page_vacate_ui <- function(id) {
ns <- NS(id)
fluidPage(
fluidRow(
box(title = tagList("Issued vacate orders",
help_tooltip(ns("issued-vaca... | /R/page_vacate.R | no_license | NewYorkCityCouncil/council_snapshots | R | false | false | 6,917 | r | #' HPD Vacate Order UI
#'
#' @param id Unique ID
#'
#' @export
#'
#' @import sf leaflet stringr purrr plotly shinycssloaders shinydashboard
page_vacate_ui <- function(id) {
ns <- NS(id)
fluidPage(
fluidRow(
box(title = tagList("Issued vacate orders",
help_tooltip(ns("issued-vaca... |
# Copyright (c) 2018-2021 ISciences, LLC.
# All rights reserved.
#
# This software is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License ta http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless requir... | /tests/testthat/test_exact_extract.R | no_license | Memo1986/exactextractr | R | false | false | 42,186 | r | # Copyright (c) 2018-2021 ISciences, LLC.
# All rights reserved.
#
# This software is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License ta http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless requir... |
library(ngram)
library(dplyr)
setwd("c:/Users/ankkn/Desktop/R/kursus/capstone")
set.seed(1234)
twitter<- readLines("en_US.twitter.txt")
news<- readLines("en_US.news.txt")
blogs<- readLines("en_US.blogs.txt")
dat<-c(twitter, news, blogs)
dat<-sample(dat,500000)
i<-0
for(i in 1:length(dat))... | /NGram.R | no_license | AndersKramerKnudsen/CapstoneProject | R | false | false | 759 | r | library(ngram)
library(dplyr)
setwd("c:/Users/ankkn/Desktop/R/kursus/capstone")
set.seed(1234)
twitter<- readLines("en_US.twitter.txt")
news<- readLines("en_US.news.txt")
blogs<- readLines("en_US.blogs.txt")
dat<-c(twitter, news, blogs)
dat<-sample(dat,500000)
i<-0
for(i in 1:length(dat))... |
# 한글 워드클라우드 (wiki, "빅데이터" 검색 데이터)
# wiki '빅 데이터' 검색 결과 워드클라우드 만들기
library(RCurl)
library(XML)
library(SnowballC)
library(tm)
library(wordcloud2)
# html <- readLines("https://ko.wikipedia.org/wiki/%EB%B9%85_%EB%8D%B0%EC%9D%B4%ED%84%B0")
enc <- URLencode(iconv('빅 데이터', 'CP949', 'UTF-8'))
url <- paste0('https://ko.wik... | /R/0507 감성분석/0507 한글 워드클라우드.R | no_license | SunhoPark2107/R-lecture-2021 | R | false | false | 2,329 | r | # 한글 워드클라우드 (wiki, "빅데이터" 검색 데이터)
# wiki '빅 데이터' 검색 결과 워드클라우드 만들기
library(RCurl)
library(XML)
library(SnowballC)
library(tm)
library(wordcloud2)
# html <- readLines("https://ko.wikipedia.org/wiki/%EB%B9%85_%EB%8D%B0%EC%9D%B4%ED%84%B0")
enc <- URLencode(iconv('빅 데이터', 'CP949', 'UTF-8'))
url <- paste0('https://ko.wik... |
# central limit theorem demonstration
# courtesy of Dr. Juan Hu (DePaul University)
# March 2014
# distributions with examples
# normal
# exponential
# weibull
# lognormal
# uniform
# poisson
# binomial
library(car)
shinyServer(function(input, output) {
output$ui_norm <- renderUI({
f... | /server.R | no_license | longcli/clt_demo | R | false | false | 13,792 | r | # central limit theorem demonstration
# courtesy of Dr. Juan Hu (DePaul University)
# March 2014
# distributions with examples
# normal
# exponential
# weibull
# lognormal
# uniform
# poisson
# binomial
library(car)
shinyServer(function(input, output) {
output$ui_norm <- renderUI({
f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{with_option}
\alias{with_option}
\alias{with_silent}
\alias{with_verbose}
\alias{without_checking}
\title{Evaluate an expression with temporary eplusr options}
\usage{
with_option(opts, expr)
with_silent(expr)
w... | /man/with_option.Rd | permissive | cran/eplusr | R | false | true | 1,301 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{with_option}
\alias{with_option}
\alias{with_silent}
\alias{with_verbose}
\alias{without_checking}
\title{Evaluate an expression with temporary eplusr options}
\usage{
with_option(opts, expr)
with_silent(expr)
w... |
## TODO: temporary hack to deal with the possibility of multiple site-bedrock entries:
# row number is computed for the site-bedrock table... we can't depend on the verticle order column to contain useful information
# we then filter on sb.rn at the end of the query.
# this same syntax will not work in Access
## ... | /R/get_site_data_from_NASIS_db.R | no_license | cran/soilDB | R | false | false | 8,681 | r | ## TODO: temporary hack to deal with the possibility of multiple site-bedrock entries:
# row number is computed for the site-bedrock table... we can't depend on the verticle order column to contain useful information
# we then filter on sb.rn at the end of the query.
# this same syntax will not work in Access
## ... |
cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(scales... | /analysis/0158_fwd_ret_visual.R | no_license | gtg944s/of-dollars-and-data | R | false | false | 4,689 | r | cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(scales... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find_call.R
\name{find_call}
\alias{find_call}
\title{Find matching lines based on function calls.}
\usage{
find_call(fun_spec, message = NULL, mistake = FALSE, hint = FALSE)
}
\arguments{
\item{fun_spec}{character string describing the funct... | /man/find_call.Rd | no_license | ramnathv/checkr | R | false | true | 2,521 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find_call.R
\name{find_call}
\alias{find_call}
\title{Find matching lines based on function calls.}
\usage{
find_call(fun_spec, message = NULL, mistake = FALSE, hint = FALSE)
}
\arguments{
\item{fun_spec}{character string describing the funct... |
library(scatterplot3d)
data <- matrix(c(
#Fijo
0,5/7,0,
0,5/7,2/3,
0,2/7,1/3,
#Móvil
0,6/7,2/3,
0,7/7,2/3,
0,4/7,3/3,
#internet y fijo
0.25,4/7,1/3,
0.25,3/7,2/3,
0.25,3/7,2/3,
#Fusión
1,4/7,2/3,
1,2/7,2/3,
1,2/7,3/3
),ncol=3,byrow=TRUE)
colnames(data) <- c("Combinatoria", "RI","Azar")
data <- data.frame(data)
data$p... | /docs/Estudio telefonica.R | no_license | jbustarviejo/games | R | false | false | 761 | r | library(scatterplot3d)
data <- matrix(c(
#Fijo
0,5/7,0,
0,5/7,2/3,
0,2/7,1/3,
#Móvil
0,6/7,2/3,
0,7/7,2/3,
0,4/7,3/3,
#internet y fijo
0.25,4/7,1/3,
0.25,3/7,2/3,
0.25,3/7,2/3,
#Fusión
1,4/7,2/3,
1,2/7,2/3,
1,2/7,3/3
),ncol=3,byrow=TRUE)
colnames(data) <- c("Combinatoria", "RI","Azar")
data <- data.frame(data)
data$p... |
#!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/tmap/results/mem",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get dat... | /ROI_based/me/mem/itemInfo_LANG_RaPHG.R | no_license | QQXiao/ISR_2015 | R | false | false | 1,635 | r | #!usr/bin/env Rscript
library(methods)
library(Matrix)
library(MASS)
#library(Rcpp)
library(lme4)
# Read in your data as an R dataframe
basedir <- c("/seastor/helenhelen/ISR_2015")
resultdir <- paste(basedir,"/me/tmap/results/mem",sep="/")
setwd(resultdir)
r.itemInfo <- matrix(data=NA, nr=2, nc=4)
## read data
#get dat... |
library(cowplot)
library(tidyverse)
library(RColorBrewer)
library(plyr)
library(ggpubr)
library(data.table)
setDTthreads(1)
library(ggplot2)
library(RColorBrewer)
library(rstatix)
library(Cairo)
source('config/config.R')
source('config/file_paths.R')
source(paste0(PROJECT_PATH, '/tcr-gwas/plotting_scripts/plotting_fun... | /plotting_scripts/final_plots/trimming_effect_sizes.R | no_license | phbradley/tcr-gwas | R | false | false | 1,808 | r | library(cowplot)
library(tidyverse)
library(RColorBrewer)
library(plyr)
library(ggpubr)
library(data.table)
setDTthreads(1)
library(ggplot2)
library(RColorBrewer)
library(rstatix)
library(Cairo)
source('config/config.R')
source('config/file_paths.R')
source(paste0(PROJECT_PATH, '/tcr-gwas/plotting_scripts/plotting_fun... |
library(readxl)
library(tidyverse)
library(ineq)
library(reshape2)
#original data from website
df_1 = read_excel("lorenz.xlsx", skip = 2)
#Get get of data
head(df_1)
#get list of variables
str(df_1)
#selection of years, for our analyssi we are doing 1980 and 2014
year_select = c(1980, 2014)
country_select = c("Polan... | /Lorenz_curve.R | no_license | gsmithline/Lorenz-Curve-and-Gini-Coefficient-Analysis | R | false | false | 6,638 | r | library(readxl)
library(tidyverse)
library(ineq)
library(reshape2)
#original data from website
df_1 = read_excel("lorenz.xlsx", skip = 2)
#Get get of data
head(df_1)
#get list of variables
str(df_1)
#selection of years, for our analyssi we are doing 1980 and 2014
year_select = c(1980, 2014)
country_select = c("Polan... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isInMesh.R
\name{isInMesh}
\alias{isInMesh}
\title{isInMesh}
\usage{
isInMesh(mesh, coordinate, tolerance = 1e-05)
}
\arguments{
\item{mesh}{'antsrMesh defining a point set}
\item{coordinate}{point or index to test}
\item{tolerance}{any poi... | /man/isInMesh.Rd | no_license | jeffduda/DANTsR | R | false | true | 431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/isInMesh.R
\name{isInMesh}
\alias{isInMesh}
\title{isInMesh}
\usage{
isInMesh(mesh, coordinate, tolerance = 1e-05)
}
\arguments{
\item{mesh}{'antsrMesh defining a point set}
\item{coordinate}{point or index to test}
\item{tolerance}{any poi... |
#' Country Search
#'
#' @param country This should be the 2-letter country code for the country of interest.
#' If no country is specified, the function returns a data frame of the information for all countries.
#'
#' @return This function returns the new and total confirmed cases, new and total deaths, and new and tot... | /R/Country_Search.R | permissive | oonyechi123/CovidAPIWrapper | R | false | false | 1,075 | r | #' Country Search
#'
#' @param country This should be the 2-letter country code for the country of interest.
#' If no country is specified, the function returns a data frame of the information for all countries.
#'
#' @return This function returns the new and total confirmed cases, new and total deaths, and new and tot... |
RRmix <-
function(dat){
ccc = as.numeric(dat$CPT[dat$site==1])
fit= glmer(count ~ site + offset(log(offset)) + (1+ site | block/CPT),
family = "poisson", data = dat)
lp_mix = predict(fit)
off1 = dat$offset[which(dat$site==1)][1]
off0 = dat$offset[which(dat$site==0)][1]
rrr_mix = (lp_mix[dat$... | /R/RRmix.R | no_license | tstukel/VisualCPT | R | false | false | 403 | r | RRmix <-
function(dat){
ccc = as.numeric(dat$CPT[dat$site==1])
fit= glmer(count ~ site + offset(log(offset)) + (1+ site | block/CPT),
family = "poisson", data = dat)
lp_mix = predict(fit)
off1 = dat$offset[which(dat$site==1)][1]
off0 = dat$offset[which(dat$site==0)][1]
rrr_mix = (lp_mix[dat$... |
\name{commutation}
\alias{commutation}
\title{Commutation matrix}
\description{
This function returns the commutation matrix of order \eqn{mn} which transforms,
for an \eqn{m\times n} matrix \eqn{{\bf{A}}}, \code{vec}\eqn{({\bf{A}})} to
\code{vec}\eqn{({\bf{A}}^T)}.
}
\usage{
commutation(m = 1, n = m,... | /R package/man/commutation.Rd | no_license | minghao2016/fastmatrix | R | false | false | 2,222 | rd | \name{commutation}
\alias{commutation}
\title{Commutation matrix}
\description{
This function returns the commutation matrix of order \eqn{mn} which transforms,
for an \eqn{m\times n} matrix \eqn{{\bf{A}}}, \code{vec}\eqn{({\bf{A}})} to
\code{vec}\eqn{({\bf{A}}^T)}.
}
\usage{
commutation(m = 1, n = m,... |
library(stringr)
library(RANN)
library(stringdist)
library(geosphere)
countries=read.csv("countries.csv", sep=";",head=F,na.strings = "NULL")
countries[,2]=str_to_upper(countries[,2])
colnames(countries)=c("country_code","country")
cities=read.csv("cities1000.txt",sep="\t",quote="",header=F,stringsAsFactors = F)
colnam... | /Base de datos/paso.2.R | no_license | Xmael/R | R | false | false | 4,394 | r | library(stringr)
library(RANN)
library(stringdist)
library(geosphere)
countries=read.csv("countries.csv", sep=";",head=F,na.strings = "NULL")
countries[,2]=str_to_upper(countries[,2])
colnames(countries)=c("country_code","country")
cities=read.csv("cities1000.txt",sep="\t",quote="",header=F,stringsAsFactors = F)
colnam... |
intraJDP1 <-
function(d, n, B=0,DB=c(0,0), JC=FALSE, CI_Boot, type="bca", plot=FALSE){
if(is.numeric(d)){d=d}else{stop("d is not numeric")}
if(is.numeric(n)){n=n}else{stop("n is not numeric")}
if(B==0&& plot==TRUE){stop("please select a number of bootstrap repititions for the plot")}
if(B%%1==0){B=B}else{... | /R/intraJDP1.R | no_license | cran/AssetCorr | R | false | false | 5,742 | r | intraJDP1 <-
function(d, n, B=0,DB=c(0,0), JC=FALSE, CI_Boot, type="bca", plot=FALSE){
if(is.numeric(d)){d=d}else{stop("d is not numeric")}
if(is.numeric(n)){n=n}else{stop("n is not numeric")}
if(B==0&& plot==TRUE){stop("please select a number of bootstrap repititions for the plot")}
if(B%%1==0){B=B}else{... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/movement.R
\name{as.locationdataframe.data.frame}
\alias{as.locationdataframe.data.frame}
\title{Convert a merged data.frame into a single location data.frame}
\usage{
\method{as.locationdataframe}{data.frame}(input, ...)
}
\a... | /man/as.locationdataframe.data.frame.Rd | no_license | thanhleviet/movement | R | false | false | 1,572 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/movement.R
\name{as.locationdataframe.data.frame}
\alias{as.locationdataframe.data.frame}
\title{Convert a merged data.frame into a single location data.frame}
\usage{
\method{as.locationdataframe}{data.frame}(input, ...)
}
\a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/greedy_knapsack.R
\name{greedy_knapsack}
\alias{greedy_knapsack}
\title{greedy_knapsack}
\usage{
greedy_knapsack(x, W)
}
\arguments{
\item{x, }{a data frame of items with different values and weights}
\item{W, }{the capacity of knapsack}
}
\... | /man/greedy_knapsack.Rd | no_license | yewei369/FancyPackRLiU6 | R | false | true | 685 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/greedy_knapsack.R
\name{greedy_knapsack}
\alias{greedy_knapsack}
\title{greedy_knapsack}
\usage{
greedy_knapsack(x, W)
}
\arguments{
\item{x, }{a data frame of items with different values and weights}
\item{W, }{the capacity of knapsack}
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/energy_balance.R
\name{verify_SUT_energy_balance}
\alias{verify_SUT_energy_balance}
\title{Confirm that an SUT-style data frame conserves energy.}
\usage{
verify_SUT_energy_balance(
.sutmats = NULL,
R = "R",
U = "U",
V = "V",
Y = "Y... | /man/verify_SUT_energy_balance.Rd | no_license | MatthewHeun/Recca | R | false | true | 2,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/energy_balance.R
\name{verify_SUT_energy_balance}
\alias{verify_SUT_energy_balance}
\title{Confirm that an SUT-style data frame conserves energy.}
\usage{
verify_SUT_energy_balance(
.sutmats = NULL,
R = "R",
U = "U",
V = "V",
Y = "Y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bond.price.R
\name{bond.price}
\alias{bond.price}
\title{Calculate the plain vanilla bond price}
\usage{
bond.price(par,c,n,yield,m)
}
\arguments{
\item{par}{:the face value of the bond}
\item{c}{:the annual coupon rate of the bond}
\item{n... | /man/bond.price.Rd | no_license | cran/FinAna | R | false | true | 540 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bond.price.R
\name{bond.price}
\alias{bond.price}
\title{Calculate the plain vanilla bond price}
\usage{
bond.price(par,c,n,yield,m)
}
\arguments{
\item{par}{:the face value of the bond}
\item{c}{:the annual coupon rate of the bond}
\item{n... |
# library(FDboost)
library(splines)
## library(refund)
# setwd("Y:/transfer/SarahDavid/test_FDboost")
#devtools::install_github("refunders/refund", ref="devel")
#library(refundDevel)
library(refund)
### source("../functions/update.FDboost.R")
source("fitModel.R")
source("testMethods.R")
# ## generate the data
# d... | /all_effectsTEST.R | no_license | davidruegamer/FDboost_Tests | R | false | false | 14,902 | r |
# library(FDboost)
library(splines)
## library(refund)
# setwd("Y:/transfer/SarahDavid/test_FDboost")
#devtools::install_github("refunders/refund", ref="devel")
#library(refundDevel)
library(refund)
### source("../functions/update.FDboost.R")
source("fitModel.R")
source("testMethods.R")
# ## generate the data
# d... |
setwd("C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2")
#.libPaths('C:/Users/sdowning/Documents/R/win-library/3.2')
library(igraph)
# if( !('gl1' %in% ls()) )
# load('netrisk_sms_full_pd_graph.RData')
#
tg1 <- igraph::graph.data.frame(data.frame(
from=c(1,2,3,4,5,6),
to =c(2,3,4,5,... | /R/risk_metric_centrality_comparisons.R | no_license | sdownin/compnet | R | false | false | 3,222 | r | setwd("C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2")
#.libPaths('C:/Users/sdowning/Documents/R/win-library/3.2')
library(igraph)
# if( !('gl1' %in% ls()) )
# load('netrisk_sms_full_pd_graph.RData')
#
tg1 <- igraph::graph.data.frame(data.frame(
from=c(1,2,3,4,5,6),
to =c(2,3,4,5,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regional_mix-class.R
\name{cooks.distance.regional_mix}
\alias{cooks.distance.regional_mix}
\title{cooks.distance}
\usage{
\method{cooks.distance}{regional_mix}(model, ..., oosSize = 1,
times = model$n, mc.cores = 1, quiet = FALSE)
}
\argum... | /man/cooks.distance.Rd | permissive | dwarton/ecomix | R | false | true | 2,671 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regional_mix-class.R
\name{cooks.distance.regional_mix}
\alias{cooks.distance.regional_mix}
\title{cooks.distance}
\usage{
\method{cooks.distance}{regional_mix}(model, ..., oosSize = 1,
times = model$n, mc.cores = 1, quiet = FALSE)
}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_tj.R
\name{geom_sftrack}
\alias{geom_sftrack}
\alias{geom_sftrack.sftrack}
\alias{geom_sftrack.sftraj}
\title{Function to plot sftrack objects in ggplot}
\usage{
geom_sftrack(data, ...)
\method{geom_sftrack}{sftrack}(data, ...)
\method... | /man/geom_sftrack.Rd | permissive | henningte/sftrack | R | false | true | 1,103 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_tj.R
\name{geom_sftrack}
\alias{geom_sftrack}
\alias{geom_sftrack.sftrack}
\alias{geom_sftrack.sftraj}
\title{Function to plot sftrack objects in ggplot}
\usage{
geom_sftrack(data, ...)
\method{geom_sftrack}{sftrack}(data, ...)
\method... |
# Example for Jags-Ymet-Xnom1met1-MrobustHier-929.R
#-------------------------------------------------------------------------------
# Optional generic preliminaries:
graphics.off() # This closes all of R's graphics windows.
rm(list=ls()) # Careful! This clears all of R's memory!
#-----------------------------------... | /Jags-Ymet-Xnom1met1-MrobustHier-929.R | no_license | Neuromemetic/R_JAGS-babysteps-ToubleShootMeNowPlease | R | false | false | 4,520 | r | # Example for Jags-Ymet-Xnom1met1-MrobustHier-929.R
#-------------------------------------------------------------------------------
# Optional generic preliminaries:
graphics.off() # This closes all of R's graphics windows.
rm(list=ls()) # Careful! This clears all of R's memory!
#-----------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.