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 |
|---|---|---|---|---|---|---|---|---|---|
#' Serve phantasus.
#'
#' \code{servePhantasus} starts http server handling phantasus static files
#' and opencpu server.
#'
#' @param host Host to listen.
#'
#' @param port Port to listen.
#'
#' @param staticRoot Path to static files with phantasus.js
#' (on local file system).
#'
#' @param cacheDir Full path to c... | /R/serve.R | no_license | assaron/phantasus | R | false | false | 1,058 | r | #' Serve phantasus.
#'
#' \code{servePhantasus} starts http server handling phantasus static files
#' and opencpu server.
#'
#' @param host Host to listen.
#'
#' @param port Port to listen.
#'
#' @param staticRoot Path to static files with phantasus.js
#' (on local file system).
#'
#' @param cacheDir Full path to c... |
library(ggplotAssist)
### Name: textInput4
### Title: Create side-by side textInput with disabled spell check
### Aliases: textInput4
### ** Examples
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
textInput4("id", "id", ""),
textInput4("na... | /data/genthat_extracted_code/ggplotAssist/examples/textInput4.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 434 | r | library(ggplotAssist)
### Name: textInput4
### Title: Create side-by side textInput with disabled spell check
### Aliases: textInput4
### ** Examples
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
textInput4("id", "id", ""),
textInput4("na... |
#
# IFPUG-COSMIC-conv.R, 15 Sep 16
#
# Data from:
# Javad Mohammadian Amiri and Venkata Vinod Kumar Padmanabhuni
# A Comprehensive Evaluation of Conversion Approaches for Different Function Points
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
library("plyr")
pl... | /regression/IFPUG-COSMIC-conv.R | no_license | montahdaya/ESEUR-code-data | R | false | false | 2,735 | r | #
# IFPUG-COSMIC-conv.R, 15 Sep 16
#
# Data from:
# Javad Mohammadian Amiri and Venkata Vinod Kumar Padmanabhuni
# A Comprehensive Evaluation of Conversion Approaches for Different Function Points
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
library("plyr")
pl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_slopes.R
\name{as_huxtable.sim_slopes}
\alias{as_huxtable.sim_slopes}
\title{Create tabular output for simple slopes analysis}
\usage{
as_huxtable.sim_slopes(x, format = "{estimate} ({std.error})",
sig.levels = c(`***` = 0.001, `**` ... | /man/as_huxtable.sim_slopes.Rd | permissive | mychan24/interactions | R | false | true | 1,765 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simple_slopes.R
\name{as_huxtable.sim_slopes}
\alias{as_huxtable.sim_slopes}
\title{Create tabular output for simple slopes analysis}
\usage{
as_huxtable.sim_slopes(x, format = "{estimate} ({std.error})",
sig.levels = c(`***` = 0.001, `**` ... |
source("https://bioconductor.org/biocLite.R")
biocLite("ShortRead")#install the package
library(ShortRead) #load the package
rm(list=ls())
setwd("D:/OneDrive/Results/Oligo transformation/HTS_new/1_2") #set way to the folder with a fastq file
reads=readFastq("G33_C33_OligoTransformation_Rep1") #uploa... | /Prespacer_Efficiency (OligoTransformation)/Spacer_extraction.R | permissive | AnnaBioLogic/Shiriaeva_et_al_2019 | R | false | false | 6,260 | r | source("https://bioconductor.org/biocLite.R")
biocLite("ShortRead")#install the package
library(ShortRead) #load the package
rm(list=ls())
setwd("D:/OneDrive/Results/Oligo transformation/HTS_new/1_2") #set way to the folder with a fastq file
reads=readFastq("G33_C33_OligoTransformation_Rep1") #uploa... |
cacheSolve <- function(x, ...) {
inv <- x$getInverse()
if(!is.null(inv)) {
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(mat, ...)
x$setInverse(inv)
inv
} | /cacheSolve.R | no_license | Issammoalla/ProgrammingAssignment2 | R | false | false | 214 | r | cacheSolve <- function(x, ...) {
inv <- x$getInverse()
if(!is.null(inv)) {
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(mat, ...)
x$setInverse(inv)
inv
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multkw_m.R
\name{multkw.m}
\alias{multkw.m}
\title{Multivariate Kruskal-Wallis test with missing data}
\usage{
multkw.m(group, y, r, weight, print = TRUE)
}
\arguments{
\item{group}{The factorial variable that subsets the dataset in groups. C... | /man/multkw.m.Rd | no_license | jacobmaugoust/ULT | R | false | true | 3,420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multkw_m.R
\name{multkw.m}
\alias{multkw.m}
\title{Multivariate Kruskal-Wallis test with missing data}
\usage{
multkw.m(group, y, r, weight, print = TRUE)
}
\arguments{
\item{group}{The factorial variable that subsets the dataset in groups. C... |
computeCentroids <- function(X, idx, K) {
#COMPUTECENTROIDS returs the new centroids by computing the means of the
#data points assigned to each centroid.
# centroids <- COMPUTECENTROIDS(X, idx, K) returns the new centroids by
# computing the means of the data points assigned to each centroid. It is
# ... | /starter/7/computeCentroids.R | no_license | faridcher/ml-course | R | false | false | 1,277 | r | computeCentroids <- function(X, idx, K) {
#COMPUTECENTROIDS returs the new centroids by computing the means of the
#data points assigned to each centroid.
# centroids <- COMPUTECENTROIDS(X, idx, K) returns the new centroids by
# computing the means of the data points assigned to each centroid. It is
# ... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1723132
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1723132
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/fpu/fpu-10Xh-error01-nonuniform-depth... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/fpu/fpu-10Xh-error01-nonuniform-depth-24/fpu-10Xh-error01-nonuniform-depth-24.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 693 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1723132
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1723132
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/fpu/fpu-10Xh-error01-nonuniform-depth... |
\name{H3K4me3.TDH.other.chunk8}
\alias{H3K4me3.TDH.other.chunk8}
\docType{data}
\title{
H3K4me3_TDH_other chunk 8 subset
}
\description{
It should be easy to recover a joint peak in at least 8 of the 10 samples.
}
\usage{data("H3K4me3.TDH.other.chunk8")}
\format{
A profile data frame (sample.id, chromStart, chrom... | /man/H3K4me3.TDH.other.chunk8.Rd | no_license | tdhock/PeakSegJoint | R | false | false | 566 | rd | \name{H3K4me3.TDH.other.chunk8}
\alias{H3K4me3.TDH.other.chunk8}
\docType{data}
\title{
H3K4me3_TDH_other chunk 8 subset
}
\description{
It should be easy to recover a joint peak in at least 8 of the 10 samples.
}
\usage{data("H3K4me3.TDH.other.chunk8")}
\format{
A profile data frame (sample.id, chromStart, chrom... |
# 0_initialize.r
# Last updated 20190822
# checkpoint will look for (and, if necessary, install)
# packages from the snapshot date
library(checkpoint)
checkpoint("2018-11-25")
library(here) # set top level of current project
library(tidyverse) # mutate, filter, etc
library(broom) # tidy
library(geepack) #geeglm
li... | /r/0_initialize.r | permissive | Andreas222222/2019-16p11-psychosis | R | false | false | 2,606 | r | # 0_initialize.r
# Last updated 20190822
# checkpoint will look for (and, if necessary, install)
# packages from the snapshot date
library(checkpoint)
checkpoint("2018-11-25")
library(here) # set top level of current project
library(tidyverse) # mutate, filter, etc
library(broom) # tidy
library(geepack) #geeglm
li... |
#==============================================================================
# Working directory
#==============================================================================
setwd("C:\\Users\\ma.bolivar643\\Dropbox\\Accelerometria\\MARA")
#========================================================================... | /MARA_ac_protocol.R | no_license | mabolivar/Physical_Activity_R | R | false | false | 30,648 | r | #==============================================================================
# Working directory
#==============================================================================
setwd("C:\\Users\\ma.bolivar643\\Dropbox\\Accelerometria\\MARA")
#========================================================================... |
#' add a new defaul par list to the gsplot object
#'
#' @param object a gsplot object
#' @param field the name of the field add the par to
#' (e.g., 'global','view.1.2','side.1', etc)
#' @return a modified gsplot object
add_new_par <- function(object, field){
defaults <- list(c())
if (field == 'global'){
defa... | /R/add_new_par.R | permissive | USGS-R/gsplot | R | false | false | 605 | r | #' add a new defaul par list to the gsplot object
#'
#' @param object a gsplot object
#' @param field the name of the field add the par to
#' (e.g., 'global','view.1.2','side.1', etc)
#' @return a modified gsplot object
add_new_par <- function(object, field){
defaults <- list(c())
if (field == 'global'){
defa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_sites_EG.R
\name{plot_sites_EG}
\alias{plot_sites_EG}
\title{Representation of sites selected to be surveyed}
\usage{
plot_sites_EG(master_selection, selection_type, variable_1 = NULL,
variable_2 = NULL, selection_number = ... | /man/plot_sites_EG.Rd | no_license | tom-gu/biosurvey | R | false | true | 3,999 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_sites_EG.R
\name{plot_sites_EG}
\alias{plot_sites_EG}
\title{Representation of sites selected to be surveyed}
\usage{
plot_sites_EG(master_selection, selection_type, variable_1 = NULL,
variable_2 = NULL, selection_number = ... |
# https://fivethirtyeight.com/features/can-you-solve-these-colorful-puzzles/
# You play a game with four balls: One ball is red, one is blue,
# one is green and one is yellow. They are placed in a box. You
# draw a ball out of the box at random and note its color. Without
# replacing the first ball, you draw a secon... | /colorBalls.r | permissive | sgranitz/riddler | R | false | false | 1,227 | r | # https://fivethirtyeight.com/features/can-you-solve-these-colorful-puzzles/
# You play a game with four balls: One ball is red, one is blue,
# one is green and one is yellow. They are placed in a box. You
# draw a ball out of the box at random and note its color. Without
# replacing the first ball, you draw a secon... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_delete_access_point_policy_for_object_lambda}
\alias{s3control_delete_access_point_policy_for_object_lambda}
\title{Removes the resource policy for an Object Lambda Access Point}
\usage{
s3control_delete... | /cran/paws.storage/man/s3control_delete_access_point_policy_for_object_lambda.Rd | permissive | paws-r/paws | R | false | true | 828 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3control_operations.R
\name{s3control_delete_access_point_policy_for_object_lambda}
\alias{s3control_delete_access_point_policy_for_object_lambda}
\title{Removes the resource policy for an Object Lambda Access Point}
\usage{
s3control_delete... |
#' @title city_synonymes
#' @description Use Levenshtein distance iteratively to find plausible misspellings for specific cities.
#' @param x List of city names in the data
#' @param synonymes Table of known city name variants with the columns "name" and "synonyme"
#' @param verbose verbose
#' @param output Output form... | /R/city_synonymes.R | permissive | COMHIS/fennica | R | false | false | 3,189 | r | #' @title city_synonymes
#' @description Use Levenshtein distance iteratively to find plausible misspellings for specific cities.
#' @param x List of city names in the data
#' @param synonymes Table of known city name variants with the columns "name" and "synonyme"
#' @param verbose verbose
#' @param output Output form... |
library(corrplot)
library(ggplot2)
library(reshape2)
library(Matrix)
library(dplyr)
library(scatterplot3d)
library(graphics)
library(spatstat)
library(gridExtra)
#Set up working directory
#setwd("E:/courses/Stat215A/lab_final/")
#getwd()
grid_arrange_shared_legend <- function(...,
... | /lab_final/code/setup.R | no_license | ssaxena00/stat215a | R | false | false | 1,904 | r | library(corrplot)
library(ggplot2)
library(reshape2)
library(Matrix)
library(dplyr)
library(scatterplot3d)
library(graphics)
library(spatstat)
library(gridExtra)
#Set up working directory
#setwd("E:/courses/Stat215A/lab_final/")
#getwd()
grid_arrange_shared_legend <- function(...,
... |
# TODO:
# 1) Write lag analysis for estimators.
# Simple one for growth rate
# N.B. for Rt this will need wallinga et al Rt calculation of Rt using infectivity profile.
# 2) default estimator functions combining best practice.
# classes for estimates e.g. growthratetimeseries, rttimeseries, poissonratetimeserris, propo... | /R/todo/estimators_old.R | permissive | bristol-vaccine-centre/growthrates | R | false | false | 71,807 | r | # TODO:
# 1) Write lag analysis for estimators.
# Simple one for growth rate
# N.B. for Rt this will need wallinga et al Rt calculation of Rt using infectivity profile.
# 2) default estimator functions combining best practice.
# classes for estimates e.g. growthratetimeseries, rttimeseries, poissonratetimeserris, propo... |
#' A calista Function
#'
#' @param x
#' @keywords calista
#' @export
#' @examples
#' Mode()
Mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
}
| /CALISTA-R/calista/R/Mode.R | permissive | CABSEL/CALISTA | R | false | false | 176 | r | #' A calista Function
#'
#' @param x
#' @keywords calista
#' @export
#' @examples
#' Mode()
Mode <- function(x) {
ux <- unique(x)
ux[which.max(tabulate(match(x, ux)))]
}
|
library(sparklyr)
library(dplyr)
library(stringr)
library(arules)
setwd("/Users/michaelstedler/PycharmProjects/BigDataProject")
# Spark Configurations
conf <- spark_config()
# build SPARK Connection
sc <- spark_connect(master = "local")
# load dataframe
jobsFeed <- read.csv("data/jobsFeed.csv")
tbl_jobsF... | /spark_ar.R | no_license | moikipoiki/BigDataProject | R | false | false | 1,792 | r | library(sparklyr)
library(dplyr)
library(stringr)
library(arules)
setwd("/Users/michaelstedler/PycharmProjects/BigDataProject")
# Spark Configurations
conf <- spark_config()
# build SPARK Connection
sc <- spark_connect(master = "local")
# load dataframe
jobsFeed <- read.csv("data/jobsFeed.csv")
tbl_jobsF... |
# -------------------------------------------------------------------------
setwd("~/data_analysis/")
# -------------------------------------------------------------------------
library(xlsx)
# -------------------------------------------------------------------------
# read in fi rst worksheet using a sheet in... | /import_scrap_export_data/read_excel_rds.R | no_license | ttedla/data_analysis | R | false | false | 2,464 | r |
# -------------------------------------------------------------------------
setwd("~/data_analysis/")
# -------------------------------------------------------------------------
library(xlsx)
# -------------------------------------------------------------------------
# read in fi rst worksheet using a sheet in... |
/Credit_Logistic.r | no_license | mekriti/Credit-Risk-Modelling-using-R | R | false | false | 5,978 | r | ||
stimuli <- demo_stim()
test_that("error", {
expect_error(metrics(stimuli, "x[s]"))
expect_equal(metrics(stimuli, "x[200]"), c(f_multi = NA_real_, m_multi = NA_real_))
})
test_that("single point", {
x0 <- c(f_multi = stimuli[[1]]$points[["x", 1]],
m_multi = stimuli[[2]]$points[["x", 1]])
y0 <- c(f_mul... | /tests/testthat/test-metrics.R | permissive | debruine/webmorphR | R | false | false | 878 | r | stimuli <- demo_stim()
test_that("error", {
expect_error(metrics(stimuli, "x[s]"))
expect_equal(metrics(stimuli, "x[200]"), c(f_multi = NA_real_, m_multi = NA_real_))
})
test_that("single point", {
x0 <- c(f_multi = stimuli[[1]]$points[["x", 1]],
m_multi = stimuli[[2]]$points[["x", 1]])
y0 <- c(f_mul... |
# Stat 243 Fall 2013 Group Project
#Jeff Darling, Russell Chen, Xuecong Jia, Frank Cleary
#This is the file for the main function of the project
#Placeholder values for testing - will need user to input
n <- 20
f <- function(x) {
dnorm(x)
}
upperB <- 1000
lowerB <- -1000
main <- function(f, n) {
#Initialize g b... | /mainFun.R | no_license | rrruss/243group | R | false | false | 8,749 | r | # Stat 243 Fall 2013 Group Project
#Jeff Darling, Russell Chen, Xuecong Jia, Frank Cleary
#This is the file for the main function of the project
#Placeholder values for testing - will need user to input
n <- 20
f <- function(x) {
dnorm(x)
}
upperB <- 1000
lowerB <- -1000
main <- function(f, n) {
#Initialize g b... |
sink("computer_science_major.csv")
count = 0
for(i in 1:length(major))
{
if(grepl("omp sci", major[i], perl=TRUE) || grepl("CS ", major[i], perl=TRUE) || grepl("omputer", major[i], perl=TRUE)){
count = count + 1
cat(major[i])
cat("\n")
}
}
sink()
cat("Computer Science: ")
cat(count)
cat("\n") | /Scripts/R/Major/parse_computer_science.R | no_license | rzs7w6/Twitter-Tweepy-Data-Scraper | R | false | false | 302 | r | sink("computer_science_major.csv")
count = 0
for(i in 1:length(major))
{
if(grepl("omp sci", major[i], perl=TRUE) || grepl("CS ", major[i], perl=TRUE) || grepl("omputer", major[i], perl=TRUE)){
count = count + 1
cat(major[i])
cat("\n")
}
}
sink()
cat("Computer Science: ")
cat(count)
cat("\n") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internaldbs.R
\name{MassCer}
\alias{MassCer}
\title{Calculate formula and mass of ceramides}
\usage{
MassCer(cer)
}
\arguments{
\item{cer}{character value indicating total number of carbons and double
bounds}
}
\value{
vector con... | /man/MassCer.Rd | no_license | cran/LipidMS | R | false | true | 492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internaldbs.R
\name{MassCer}
\alias{MassCer}
\title{Calculate formula and mass of ceramides}
\usage{
MassCer(cer)
}
\arguments{
\item{cer}{character value indicating total number of carbons and double
bounds}
}
\value{
vector con... |
\alias{gtkTestSliderGetValue}
\name{gtkTestSliderGetValue}
\title{gtkTestSliderGetValue}
\description{Retrive the literal adjustment value for GtkRange based
widgets and spin buttons. Note that the value returned by
this function is anything between the lower and upper bounds
of the adjustment belonging to \code{widget... | /RGtk2/man/gtkTestSliderGetValue.Rd | no_license | lawremi/RGtk2 | R | false | false | 668 | rd | \alias{gtkTestSliderGetValue}
\name{gtkTestSliderGetValue}
\title{gtkTestSliderGetValue}
\description{Retrive the literal adjustment value for GtkRange based
widgets and spin buttons. Note that the value returned by
this function is anything between the lower and upper bounds
of the adjustment belonging to \code{widget... |
#Logical
# TRUE T
# FALSE F
4 < 5
10 > 100
4 == 5
# ==
# !=
# <
# >
# <=
# >=
# !
# |
# ||
# &
# isTRUE(x)
var <- 4 < 5
var
isTRUE(var)
var1 <- 4 > 5
isTRUE(var1)
var2 <- !TRUE
var2
| /R Programming/3_Intro/LogicalExpressions.R | no_license | jacobrozell/DataScience | R | false | false | 187 | r | #Logical
# TRUE T
# FALSE F
4 < 5
10 > 100
4 == 5
# ==
# !=
# <
# >
# <=
# >=
# !
# |
# ||
# &
# isTRUE(x)
var <- 4 < 5
var
isTRUE(var)
var1 <- 4 > 5
isTRUE(var1)
var2 <- !TRUE
var2
|
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AmStockChart.R
\docType{methods}
\name{setChartCursorSettings}
\alias{setChartCursorSettings}
\title{Setter}
\usage{
\S4method{setChartCursorSettings}{AmStockChart}(.Object,
chartCursorSettings = NULL, ...)
}
\arguments{
\item{\code... | /man/setChartCursorSettings.Rd | no_license | myndworkz/rAmCharts | R | false | false | 1,836 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/AmStockChart.R
\docType{methods}
\name{setChartCursorSettings}
\alias{setChartCursorSettings}
\title{Setter}
\usage{
\S4method{setChartCursorSettings}{AmStockChart}(.Object,
chartCursorSettings = NULL, ...)
}
\arguments{
\item{\code... |
\alias{gtkSelectionDataGetText}
\name{gtkSelectionDataGetText}
\title{gtkSelectionDataGetText}
\description{Gets the contents of the selection data as a UTF-8 string.}
\usage{gtkSelectionDataGetText(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkSelectionData}}] a \code{\link{GtkSelectionData}}}}
\value{[raw... | /man/gtkSelectionDataGetText.Rd | no_license | cran/RGtk2.10 | R | false | false | 569 | rd | \alias{gtkSelectionDataGetText}
\name{gtkSelectionDataGetText}
\title{gtkSelectionDataGetText}
\description{Gets the contents of the selection data as a UTF-8 string.}
\usage{gtkSelectionDataGetText(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkSelectionData}}] a \code{\link{GtkSelectionData}}}}
\value{[raw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_table.R
\name{summarize_short.default}
\alias{summarize_short.default}
\title{Create variable summary for all other variable types}
\usage{
\method{summarize_short}{default}(x)
}
\arguments{
\item{x}{an object of any other class}
}
\val... | /man/summarize_short.default.Rd | permissive | LenaNoel/visR | R | false | true | 453 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_table.R
\name{summarize_short.default}
\alias{summarize_short.default}
\title{Create variable summary for all other variable types}
\usage{
\method{summarize_short}{default}(x)
}
\arguments{
\item{x}{an object of any other class}
}
\val... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load_naei_layers.R
\name{load_naei_layers}
\alias{load_naei_layers}
\title{Load NAEI Layers}
\usage{
load_naei_layers(
dir = "C:/Users/Will/Google Drive/PhD/site_BT Tower/NAEI Data/NAEI NO2 2014/"
)
}
\arguments{
\item{dir}{directory contai... | /man/load_naei_layers.Rd | no_license | willdrysdale/wsdmiscr | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load_naei_layers.R
\name{load_naei_layers}
\alias{load_naei_layers}
\title{Load NAEI Layers}
\usage{
load_naei_layers(
dir = "C:/Users/Will/Google Drive/PhD/site_BT Tower/NAEI Data/NAEI NO2 2014/"
)
}
\arguments{
\item{dir}{directory contai... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/style.R
\name{style}
\alias{style}
\title{Create a string-representation of CSS style}
\usage{
style(...)
}
\arguments{
\item{...}{style attributes in form of \code{name = value}. Many CSS properties
contains \code{'-'} in the middle ... | /man/style.Rd | permissive | githubfun/formattable | R | false | false | 1,482 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/style.R
\name{style}
\alias{style}
\title{Create a string-representation of CSS style}
\usage{
style(...)
}
\arguments{
\item{...}{style attributes in form of \code{name = value}. Many CSS properties
contains \code{'-'} in the middle ... |
library(raster)
### Name: shapefile
### Title: Read or write a shapefile
### Aliases: shapefile shapefile,character-method shapefile,Spatial-method
### Keywords: spatial
### ** Examples
if (require(rgdal)) {
filename <- system.file("external/lux.shp", package="raster")
filename
p <- shapefile(filename)
## Not run... | /data/genthat_extracted_code/raster/examples/shapefile.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 373 | r | library(raster)
### Name: shapefile
### Title: Read or write a shapefile
### Aliases: shapefile shapefile,character-method shapefile,Spatial-method
### Keywords: spatial
### ** Examples
if (require(rgdal)) {
filename <- system.file("external/lux.shp", package="raster")
filename
p <- shapefile(filename)
## Not run... |
#--------------------------------- Class Definitions ----------------------------------#
# WARNING: Do NOT touch the env slot! It is used to link garbage collection between R and H2O
setClass("H2OClient", representation(ip="character", port="numeric"), prototype(ip="127.0.0.1", port=54321))
setClass("H2ORawData", re... | /R/h2o-package/R/Classes.R | permissive | Jrobinso09/h2o | R | false | false | 63,298 | r | #--------------------------------- Class Definitions ----------------------------------#
# WARNING: Do NOT touch the env slot! It is used to link garbage collection between R and H2O
setClass("H2OClient", representation(ip="character", port="numeric"), prototype(ip="127.0.0.1", port=54321))
setClass("H2ORawData", re... |
##This function Function makeCacheMatrix gets a matrix as an input, set the value of the matrix,
#get the value of the matrix, set the inverse Matrix and get the inverse Matrix. The matrix object
#can cache its own object.
#<<- operator is used to assign a value to an object in an environment that is different
... | /cachematrix.R | no_license | shalu143/cachematrix.R | R | false | false | 2,367 | r |
##This function Function makeCacheMatrix gets a matrix as an input, set the value of the matrix,
#get the value of the matrix, set the inverse Matrix and get the inverse Matrix. The matrix object
#can cache its own object.
#<<- operator is used to assign a value to an object in an environment that is different
... |
## The functions will return the inverse of a matrix. Use the
## first function to input the matrix and use the second to
## caculate. And if the matrix remains the same, the second
## function will cache the result from memory instead of
## caculating again.
## The first function creates a R object which is... | /cachematrix.R | no_license | lujay1115/ProgrammingAssignment2 | R | false | false | 1,607 | r | ## The functions will return the inverse of a matrix. Use the
## first function to input the matrix and use the second to
## caculate. And if the matrix remains the same, the second
## function will cache the result from memory instead of
## caculating again.
## The first function creates a R object which is... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/train.spLearner.R
\name{train.spLearner.matrix}
\alias{train.spLearner.matrix}
\title{Train a spatial prediction and/or interpolation model using Ensemble Machine Learning
from a regression/classification matrix}
\usage{
train.spLearner.matri... | /man/train.spLearner.matrix.Rd | no_license | morandiaye/landmap | R | false | true | 2,050 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/train.spLearner.R
\name{train.spLearner.matrix}
\alias{train.spLearner.matrix}
\title{Train a spatial prediction and/or interpolation model using Ensemble Machine Learning
from a regression/classification matrix}
\usage{
train.spLearner.matri... |
library(tidyverse)
library(foreign)
library(nlme)
exercise <- read.dta("../datasets/exercise.dta")
exercise <- exercise %>%
as_tibble() %>%
gather(day, strength, y0:y12) %>%
mutate(
group_label = ifelse(group == 1, "Program1", "Program2"),
day_num = case_when(
day == "y0" ~ 0,
day == "y2" ~ ... | /Chapter8/Problem1.R | no_license | heffjos/applied_longitudinal_analysis | R | false | false | 7,616 | r | library(tidyverse)
library(foreign)
library(nlme)
exercise <- read.dta("../datasets/exercise.dta")
exercise <- exercise %>%
as_tibble() %>%
gather(day, strength, y0:y12) %>%
mutate(
group_label = ifelse(group == 1, "Program1", "Program2"),
day_num = case_when(
day == "y0" ~ 0,
day == "y2" ~ ... |
library("ggplot2")
greet <- function(name, birthday = NULL) {
paste0("Hi ", name, if (isTRUE(birthday)) "and HAPPY BIRTHDAY"
)
}
greet("Sophia")
# "Hi Sophia"
greet("Sophia", FALSE)
# "Hi Sophia"
greet("Sophia", TRUE)
# "Hi Sophia and HAPPY BIRTHDAY"
trial <- function (name, birthday = NULL){
paste0("Hi ", na... | /RSandbox/ifelsestatements.R | no_license | sophiacarryl/R-functions | R | false | false | 1,164 | r | library("ggplot2")
greet <- function(name, birthday = NULL) {
paste0("Hi ", name, if (isTRUE(birthday)) "and HAPPY BIRTHDAY"
)
}
greet("Sophia")
# "Hi Sophia"
greet("Sophia", FALSE)
# "Hi Sophia"
greet("Sophia", TRUE)
# "Hi Sophia and HAPPY BIRTHDAY"
trial <- function (name, birthday = NULL){
paste0("Hi ", na... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{save_plots}
\alias{save_plots}
\alias{save_plots,CEMiTool-method}
\title{Save CEMiTool object plots}
\usage{
save_plots(cem, ...)
\S4method{save_plots}{CEMiTool}(
cem,
value = c("all", "profile", "gsea", "ora", "int... | /man/save_plots.Rd | no_license | csbl-usp/CEMiTool | R | false | true | 1,190 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{save_plots}
\alias{save_plots}
\alias{save_plots,CEMiTool-method}
\title{Save CEMiTool object plots}
\usage{
save_plots(cem, ...)
\S4method{save_plots}{CEMiTool}(
cem,
value = c("all", "profile", "gsea", "ora", "int... |
library(proportion)
### Name: PloterrBA
### Title: Plots error, long term power and pass/fail criteria using
### Bayesian method
### Aliases: PloterrBA
### ** Examples
n=20; alp=0.05; phi=0.05; f=-2;a=0.5;b=0.5
PloterrBA(n,alp,phi,f,a,b)
| /data/genthat_extracted_code/proportion/examples/PloterrBA.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 247 | r | library(proportion)
### Name: PloterrBA
### Title: Plots error, long term power and pass/fail criteria using
### Bayesian method
### Aliases: PloterrBA
### ** Examples
n=20; alp=0.05; phi=0.05; f=-2;a=0.5;b=0.5
PloterrBA(n,alp,phi,f,a,b)
|
#'Generalized FRAMA
#'@description the generalized FRAMA (see: FRAMA)
#'@param x a time series
#'@param n a lookback period
#'@param FC fast constant for an EMA
#'@param SC slow constant for an EMA
#'@return the FRAMA for the time series
#'@export
"GFRAMA" <- function(x, n=20, FC=1, SC=200, ...) {
runSum(x) #test fo... | /Alpha Modelling/QuantStrat/Packages/DSTrading/R/GFRAMA.R | no_license | Bakeforfun/Quant | R | false | false | 1,326 | r | #'Generalized FRAMA
#'@description the generalized FRAMA (see: FRAMA)
#'@param x a time series
#'@param n a lookback period
#'@param FC fast constant for an EMA
#'@param SC slow constant for an EMA
#'@return the FRAMA for the time series
#'@export
"GFRAMA" <- function(x, n=20, FC=1, SC=200, ...) {
runSum(x) #test fo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_state.R
\name{read_state}
\alias{read_state}
\title{Download shape files of Brazilian states as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)}
\usage{
read_state(code_state, year = NULL)
... | /man/read_state.Rd | no_license | cavedo95/geobr | R | false | true | 1,341 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_state.R
\name{read_state}
\alias{read_state}
\title{Download shape files of Brazilian states as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)}
\usage{
read_state(code_state, year = NULL)
... |
# Esli russkie bukvi prevratilitis v krakozyabry, to File - Reopen with
# encoding... - UTF-8 - Set as default - OK
# lab 09
library("dplyr") # манипуляции с данными
library("caret") # стандартизованный подход к регрессионным и классификационным моделям
library("AER") # инструментальные переменные
library("ggplot2... | /week_14/lab_09/lab_09_after.R | no_license | bdemeshev/openedu_metrics | R | false | false | 5,519 | r | # Esli russkie bukvi prevratilitis v krakozyabry, to File - Reopen with
# encoding... - UTF-8 - Set as default - OK
# lab 09
library("dplyr") # манипуляции с данными
library("caret") # стандартизованный подход к регрессионным и классификационным моделям
library("AER") # инструментальные переменные
library("ggplot2... |
library(ENMeval)
### Name: get.evaluation.bins
### Title: Methods to partition data for evaluation
### Aliases: get.evaluation.bins get.block get.checkerboard1
### get.checkerboard2 get.randomkfold get.user get.jackknife
### ** Examples
require(raster)
set.seed(1)
### Create environmental extent (raster)
env ... | /data/genthat_extracted_code/ENMeval/examples/get.evaluation.bins.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,102 | r | library(ENMeval)
### Name: get.evaluation.bins
### Title: Methods to partition data for evaluation
### Aliases: get.evaluation.bins get.block get.checkerboard1
### get.checkerboard2 get.randomkfold get.user get.jackknife
### ** Examples
require(raster)
set.seed(1)
### Create environmental extent (raster)
env ... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include locationservice_service.R
NULL
#' Creates an association between a geofence collection and a tracker
#' resource
#'
#' @description
#' Creates an association between ... | /R/locationservice_operations.R | no_license | cran/paws.application.integration | R | false | false | 119,124 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include locationservice_service.R
NULL
#' Creates an association between a geofence collection and a tracker
#' resource
#'
#' @description
#' Creates an association between ... |
#reading data, converting data$Date to Data type, subsetting etc.
data<-read.delim("household_power_consumption.txt",header=TRUE,sep=";", na.strings = "?")
data$Date<-strptime(data$Date, "%e/%m/%Y")
data2<-data[(data$Date>="2007-2-1" & data$Date<="2007-2-2"),]
data2$Date <- as.POSIXlt(paste(as.Date(data2$Date), data2$... | /plot4.R | no_license | TroubleMak3r/ExData_Plotting1 | R | false | false | 1,253 | r |
#reading data, converting data$Date to Data type, subsetting etc.
data<-read.delim("household_power_consumption.txt",header=TRUE,sep=";", na.strings = "?")
data$Date<-strptime(data$Date, "%e/%m/%Y")
data2<-data[(data$Date>="2007-2-1" & data$Date<="2007-2-2"),]
data2$Date <- as.POSIXlt(paste(as.Date(data2$Date), data2$... |
#Not considered Shift and is.na(Client) <- 'AGS'
# install.packages("RODBC")
library(RODBC)
odbcCloseAll()
edw_bi <- odbcConnect("PulseDB_EDW_BI")
active <- sqlFetch(edw_bi, "AttAnalysis_tblActiveEmployees")
inactive <- sqlFetch(edw_bi, "AttAnalysis_tblInActiveEmployees")
dataa <- rbind(active, inactive)
AR <- subset(d... | /20170112 V1R0 MC ().R | no_license | Makarand87/AttritionAnalysis2 | R | false | false | 5,173 | r | #Not considered Shift and is.na(Client) <- 'AGS'
# install.packages("RODBC")
library(RODBC)
odbcCloseAll()
edw_bi <- odbcConnect("PulseDB_EDW_BI")
active <- sqlFetch(edw_bi, "AttAnalysis_tblActiveEmployees")
inactive <- sqlFetch(edw_bi, "AttAnalysis_tblInActiveEmployees")
dataa <- rbind(active, inactive)
AR <- subset(d... |
vector <- function(v){
x<- scan(n=1, quiet=TRUE, what=numeric())
while (x != 0){
v <- c(v,x)
x <- scan(n=1, quiet=TRUE, what=numeric())
}
return(v)
}
v<- vector()
| /1. FIRST YEAR/Introduction to Computing/Exercices_Laura/exercici80.R | no_license | laurajuliamelis/BachelorDegree_Statistics | R | false | false | 190 | r | vector <- function(v){
x<- scan(n=1, quiet=TRUE, what=numeric())
while (x != 0){
v <- c(v,x)
x <- scan(n=1, quiet=TRUE, what=numeric())
}
return(v)
}
v<- vector()
|
#' Run a Linear Mixed Effects Model on all voxels of a NIfTI image and return parametric coefficients and residuals
#'
#'
#' This function is able to run a Linear Mixed Effect Model using the lmer() function.
#' The analysis will run in all voxels in in the mask and will return the model fit for each voxel.
#' The func... | /R/rlmerParam.R | no_license | angelgar/voxel | R | false | false | 3,516 | r | #' Run a Linear Mixed Effects Model on all voxels of a NIfTI image and return parametric coefficients and residuals
#'
#'
#' This function is able to run a Linear Mixed Effect Model using the lmer() function.
#' The analysis will run in all voxels in in the mask and will return the model fit for each voxel.
#' The func... |
## These functions provide an environment for a matrix
# and its pre-computed inverse
## Create a matrix object that has a special environment containing its
## pre-calculated inverse
makeCacheMatrix <- function(x = matrix()) {
inverse = NULL
set <- function(mat) { ## set new or initial value of matrix
... | /cachematrix.R | no_license | sbarkin/ProgrammingAssignment2 | R | false | false | 1,366 | r | ## These functions provide an environment for a matrix
# and its pre-computed inverse
## Create a matrix object that has a special environment containing its
## pre-calculated inverse
makeCacheMatrix <- function(x = matrix()) {
inverse = NULL
set <- function(mat) { ## set new or initial value of matrix
... |
#' Get PDL results
#'
#' @return Dataframe with all contents of the pdl_results table except the
#' timestamp column.
#'
#' @param conn database connection object
#' @import RODBC
#' @import stringi
#' @export
get_pdl_results <- function(conn) {
pdl_results_df <- sqlQuery(conn, "select * from pdl_results",
... | /R/get_pdl_results.R | permissive | rmsharp/snprcspf | R | false | false | 402 | r | #' Get PDL results
#'
#' @return Dataframe with all contents of the pdl_results table except the
#' timestamp column.
#'
#' @param conn database connection object
#' @import RODBC
#' @import stringi
#' @export
get_pdl_results <- function(conn) {
pdl_results_df <- sqlQuery(conn, "select * from pdl_results",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/peaks.R
\name{Getisotopologues}
\alias{Getisotopologues}
\title{Get the selected isotopologues at certain MS data}
\usage{
Getisotopologues(formula = "C12OH6Br4", charge = "1", width = 0.3)
}
\arguments{
\item{formula}{the molecular formula. ... | /man/Getisotopologues.Rd | no_license | AspirinCode/enviGCMS | R | false | true | 688 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/peaks.R
\name{Getisotopologues}
\alias{Getisotopologues}
\title{Get the selected isotopologues at certain MS data}
\usage{
Getisotopologues(formula = "C12OH6Br4", charge = "1", width = 0.3)
}
\arguments{
\item{formula}{the molecular formula. ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EpiNow2-package.R
\docType{package}
\name{EpiNow2-package}
\alias{EpiNow2}
\alias{EpiNow2-package}
\title{EpiNow2: Estimate Real-Time Case Counts and Time-Varying Epidemiological Parameters}
\description{
Estimates the time-varying reproducti... | /man/EpiNow2-package.Rd | permissive | epiforecasts/EpiNow2 | R | false | true | 2,452 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/EpiNow2-package.R
\docType{package}
\name{EpiNow2-package}
\alias{EpiNow2}
\alias{EpiNow2-package}
\title{EpiNow2: Estimate Real-Time Case Counts and Time-Varying Epidemiological Parameters}
\description{
Estimates the time-varying reproducti... |
#
subroutine wfcn1(ilf, ifcn, x)
#
#
#
implicit integer*4 (i-n)
include "../common/lbl4"
include "../common/lundefs"
character*80 ia
character*80 itemp
#
# There are some things this subroutine must handle
# correctly. The first is to accept a function name
# that can have an... | /src-local/specpr/src.specpr/talg/wfcn1.r | no_license | ns-bak/tetracorder-tutorial | R | false | false | 2,649 | r | #
subroutine wfcn1(ilf, ifcn, x)
#
#
#
implicit integer*4 (i-n)
include "../common/lbl4"
include "../common/lundefs"
character*80 ia
character*80 itemp
#
# There are some things this subroutine must handle
# correctly. The first is to accept a function name
# that can have an... |
# http://www.mbie.govt.nz/info-services/business/business-growth-agenda/regions
download.file("http://www.mbie.govt.nz/info-services/business/business-growth-agenda/regions/documents-image-library/REAR-Webtool-20160610.zip",
destfile = "tmp.zip", mode = "wb")
unzip("tmp.zip") # read the "regional-economi... | /_working/snippet - REA.R | no_license | ellisp/blog-source | R | false | false | 704 | r | # http://www.mbie.govt.nz/info-services/business/business-growth-agenda/regions
download.file("http://www.mbie.govt.nz/info-services/business/business-growth-agenda/regions/documents-image-library/REAR-Webtool-20160610.zip",
destfile = "tmp.zip", mode = "wb")
unzip("tmp.zip") # read the "regional-economi... |
# load the census data from the csv file
dat = read.csv("https://raw.githubusercontent.com/peterkabai/dataScience/master/data/census.csv")
# print the datatype for each column
str(dat)
# use 'summary' to get some statistics on the 'education_num' attribute
summary(dat$education_num)
# since it is a categorical fea... | /dataExploration.R | no_license | peterkabai/dataScience | R | false | false | 3,853 | r | # load the census data from the csv file
dat = read.csv("https://raw.githubusercontent.com/peterkabai/dataScience/master/data/census.csv")
# print the datatype for each column
str(dat)
# use 'summary' to get some statistics on the 'education_num' attribute
summary(dat$education_num)
# since it is a categorical fea... |
\name{STIKhat} \alias{STIKhat}
\title{Estimation of the Space-Time Inhomogeneous K-function}
\description{Compute an estimate of the Space-Time Inhomogeneous K-function.}
\usage{STIKhat(xyt, s.region, t.region, dist, times, lambda,
correction="isotropic", infectious=FALSE) }
\arguments{
\item{xyt}{Coordinates and... | /stpp/man/STIKhat.Rd | no_license | albrizre/spatstat.revdep | R | false | false | 8,945 | rd | \name{STIKhat} \alias{STIKhat}
\title{Estimation of the Space-Time Inhomogeneous K-function}
\description{Compute an estimate of the Space-Time Inhomogeneous K-function.}
\usage{STIKhat(xyt, s.region, t.region, dist, times, lambda,
correction="isotropic", infectious=FALSE) }
\arguments{
\item{xyt}{Coordinates and... |
#' @name launch_app
#'
#' @title Launch the Covid-19 shiny application
#'
#' @description This function will find and load the shiny application from inst/app.
#'
#'
#' @source The dataset from the application comes from Ramikripsin coronavirus package
#'
#' @examples
#'\dontrun{
#'launch_app()
#' }
#'
#' @export
#'
... | /R/launch_app.R | permissive | etc5523-2020/r-package-assessment-whysptra | R | false | false | 576 | r | #' @name launch_app
#'
#' @title Launch the Covid-19 shiny application
#'
#' @description This function will find and load the shiny application from inst/app.
#'
#'
#' @source The dataset from the application comes from Ramikripsin coronavirus package
#'
#' @examples
#'\dontrun{
#'launch_app()
#' }
#'
#' @export
#'
... |
library(tseries)
library(forecast)
# 设置工作目录并读取数据
setwd('H:\\Program Products\\Python Files\\0 Jupyter\\FDM-Project-2021\\dataset\\期货价格数据\\使用数据\\')
da <- read.csv("./黄金周数据.csv",head=F)
names(da) <- c('date','price')
head(da)
price <- da$price
price = ts(da$price,frequency=52,start=c(1972,1,10))
head(price)
plot.ts(pri... | /src/homework1.r | no_license | HoBeedzc/FDM-Project-2021 | R | false | false | 1,725 | r | library(tseries)
library(forecast)
# 设置工作目录并读取数据
setwd('H:\\Program Products\\Python Files\\0 Jupyter\\FDM-Project-2021\\dataset\\期货价格数据\\使用数据\\')
da <- read.csv("./黄金周数据.csv",head=F)
names(da) <- c('date','price')
head(da)
price <- da$price
price = ts(da$price,frequency=52,start=c(1972,1,10))
head(price)
plot.ts(pri... |
#' Get notifications
#'
#' @export
#' @template curl
#' @param parse (logical) Attempt to parse to data.frame's if possible. Default: \code{TRUE}
#' @return either a data.frame or a list
#' @examples \dontrun{
#' notifications()
#' }
notifications <- function(parse = TRUE, ...) {
res <- asp_GET("notifications", list(... | /R/notifications.R | no_license | sckott/aspacer | R | false | false | 354 | r | #' Get notifications
#'
#' @export
#' @template curl
#' @param parse (logical) Attempt to parse to data.frame's if possible. Default: \code{TRUE}
#' @return either a data.frame or a list
#' @examples \dontrun{
#' notifications()
#' }
notifications <- function(parse = TRUE, ...) {
res <- asp_GET("notifications", list(... |
library(sporm)
### Name: plotor
### Title: Empirical odds rate plot
### Aliases: plotor
### ** Examples
# Use radar tube life data
z<-RadarTube$Days
v<-RadarTube$Type
x<-z[v==1]; y<-z[v==2]
# Dabrowska-Doksum's estimate of theta
theta0.hat<-dd.est(x,y)
vartheta0.hat<-dd.est(y,x)
# MRLE of theta
m<-length(x); n<-len... | /data/genthat_extracted_code/sporm/examples/plotor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 661 | r | library(sporm)
### Name: plotor
### Title: Empirical odds rate plot
### Aliases: plotor
### ** Examples
# Use radar tube life data
z<-RadarTube$Days
v<-RadarTube$Type
x<-z[v==1]; y<-z[v==2]
# Dabrowska-Doksum's estimate of theta
theta0.hat<-dd.est(x,y)
vartheta0.hat<-dd.est(y,x)
# MRLE of theta
m<-length(x); n<-len... |
library(STPGA)
### Name: GenAlgForSubsetSelectionMONoTest
### Title: Genetic algorithm for subset selection no given test with
### multiple criteria for Multi Objective Optimized Experimental Design.
### Aliases: GenAlgForSubsetSelectionMONoTest
### ** Examples
## Not run:
##D library(STPGA)
##D library(GenomicM... | /data/genthat_extracted_code/STPGA/examples/GenAlgForSubsetSelectionMONoTest.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,179 | r | library(STPGA)
### Name: GenAlgForSubsetSelectionMONoTest
### Title: Genetic algorithm for subset selection no given test with
### multiple criteria for Multi Objective Optimized Experimental Design.
### Aliases: GenAlgForSubsetSelectionMONoTest
### ** Examples
## Not run:
##D library(STPGA)
##D library(GenomicM... |
#Script para crear el modelo y guardarlo en un archivo .rda
dataset <- read.csv("Dataset.csv",stringsAsFactors=FALSE,encoding="UTF-8",header=TRUE)
#Ajustar el dataset para el entrenamiento.
dataset$Clase <- as.factor(dataset$Clase)
dataset$Genero <- as.factor(dataset$Genero)
dataset$Union.padres <- as.factor(dataset$... | /Script.r | no_license | Charly52830/JovenesTalento | R | false | false | 675 | r | #Script para crear el modelo y guardarlo en un archivo .rda
dataset <- read.csv("Dataset.csv",stringsAsFactors=FALSE,encoding="UTF-8",header=TRUE)
#Ajustar el dataset para el entrenamiento.
dataset$Clase <- as.factor(dataset$Clase)
dataset$Genero <- as.factor(dataset$Genero)
dataset$Union.padres <- as.factor(dataset$... |
library(mgcViz)
### Name: plot.multi.ptermFactor
### Title: Plotting factor or logical parametric effects
### Aliases: plot.multi.ptermFactor plot.multi.ptermLogical
### plot.ptermFactor plot.ptermLogical
### ** Examples
# Simulate data and fit GAM
set.seed(3)
dat <- gamSim(1,n=2000,dist="normal",scale=20)
dat$fa... | /data/genthat_extracted_code/mgcViz/examples/plot.ptermFactor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 873 | r | library(mgcViz)
### Name: plot.multi.ptermFactor
### Title: Plotting factor or logical parametric effects
### Aliases: plot.multi.ptermFactor plot.multi.ptermLogical
### plot.ptermFactor plot.ptermLogical
### ** Examples
# Simulate data and fit GAM
set.seed(3)
dat <- gamSim(1,n=2000,dist="normal",scale=20)
dat$fa... |
\name{AFtest}
\alias{AFtest}
\title{Exact test of equality of allele frequencies for males and females
}
\description{
Function \code{AFtest} tests equality of allele frequencies for males
and females for bi-allelic marker data by means of a Fisher exact test.
}
\usage{
AFtest(x, verbose = TRUE, ...)
}
\ar... | /HardyWeinberg/man/AFtest.Rd | no_license | akhikolla/InformationHouse | R | false | false | 1,128 | rd | \name{AFtest}
\alias{AFtest}
\title{Exact test of equality of allele frequencies for males and females
}
\description{
Function \code{AFtest} tests equality of allele frequencies for males
and females for bi-allelic marker data by means of a Fisher exact test.
}
\usage{
AFtest(x, verbose = TRUE, ...)
}
\ar... |
context("Linear editrow derivarions")
test_that("Various rows work",{
edt <- parse(text=c("x==y", "x+w ==y"))
e <- parseNum(edt[[1]])
#print(e)
})
test_that("Parsing a constant works",{
edt <- parse(text=c("x < 2"))
e <- parseNum(edt[[1]])
#print(e)
})
test_that("Parsing a inequality works",{
ed... | /data/genthat_extracted_code/editrules/tests/testEditRow.R | no_license | surayaaramli/typeRrh | R | false | false | 525 | r | context("Linear editrow derivarions")
test_that("Various rows work",{
edt <- parse(text=c("x==y", "x+w ==y"))
e <- parseNum(edt[[1]])
#print(e)
})
test_that("Parsing a constant works",{
edt <- parse(text=c("x < 2"))
e <- parseNum(edt[[1]])
#print(e)
})
test_that("Parsing a inequality works",{
ed... |
context('test if there is output')
test_that("something is produced", {
set.seed(12)
result <- select_powerballad()
# should be "Paradise by the dashboard light - Meat Loaf", but who nows when songs are added
expect_true( is.character(result) )
})
| /tests/testthat/test_songs.R | permissive | Raoke/powrballad | R | false | false | 272 | r | context('test if there is output')
test_that("something is produced", {
set.seed(12)
result <- select_powerballad()
# should be "Paradise by the dashboard light - Meat Loaf", but who nows when songs are added
expect_true( is.character(result) )
})
|
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
dashboardPage(
dashboardHeader(title = loadinglogo('https://www.kaggle.com/wendykan/lending-club-loan-data',
... | /shiny/lc/ui.R | no_license | MikeMorris89/mm | R | false | false | 786 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
dashboardPage(
dashboardHeader(title = loadinglogo('https://www.kaggle.com/wendykan/lending-club-loan-data',
... |
test_that("percentage() works", {
x <- 1:10
expect_identical(percentage(x, 5), x / 5 * 100)
})
| /tests/testthat/test-function-percentage.R | permissive | KWB-R/kwb.utils | R | false | false | 105 | r | test_that("percentage() works", {
x <- 1:10
expect_identical(percentage(x, 5), x / 5 * 100)
})
|
file = read.table("D:\\big_data\\household_power_consumption.txt",sep = ';', header = TRUE, comment.char="")
slice = file[file[,1] == '1/2/2007' | file[,1] == '2/2/2007',]
png('rplot.png')
hist(as.numeric(as.character(slice$Global_active_power)), col = 'red', xlab = 'Global active power (kilowatts)', main = 'Global act... | /plot1.R | no_license | Kriattiffer/ExData_Plotting1 | R | false | false | 342 | r | file = read.table("D:\\big_data\\household_power_consumption.txt",sep = ';', header = TRUE, comment.char="")
slice = file[file[,1] == '1/2/2007' | file[,1] == '2/2/2007',]
png('rplot.png')
hist(as.numeric(as.character(slice$Global_active_power)), col = 'red', xlab = 'Global active power (kilowatts)', main = 'Global act... |
# Test the plotting package on each of the emIRT functions
# Use the examples from the help files
source('emIRT_graph.R')
# binIRT
data(s109)
rc <- convertRC(s109)
p <- makePriors(rc$n, rc$m, 1)
s <- getStarts(rc$n, rc$m, 1)
lout <- binIRT(.rc = rc,
.starts = s,
.priors = p,
... | /R_Scripts/emIRT_plot_test.R | no_license | saudiwin/ARP_Research | R | false | false | 5,073 | r | # Test the plotting package on each of the emIRT functions
# Use the examples from the help files
source('emIRT_graph.R')
# binIRT
data(s109)
rc <- convertRC(s109)
p <- makePriors(rc$n, rc$m, 1)
s <- getStarts(rc$n, rc$m, 1)
lout <- binIRT(.rc = rc,
.starts = s,
.priors = p,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lineSegmentsCRSConversion.R
\name{lineSegmentsCRSConversion}
\alias{lineSegmentsCRSConversion}
\title{Line segments Coordinate Reference System conversion}
\usage{
lineSegmentsCRSConversion(x)
}
\description{
Line segments conversion from a a... | /man/lineSegmentsCRSConversion.Rd | no_license | mathphysmx/percolation | R | false | true | 1,173 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lineSegmentsCRSConversion.R
\name{lineSegmentsCRSConversion}
\alias{lineSegmentsCRSConversion}
\title{Line segments Coordinate Reference System conversion}
\usage{
lineSegmentsCRSConversion(x)
}
\description{
Line segments conversion from a a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postSimPlots.R
\docType{data}
\name{multimodalDat}
\alias{multimodalDat}
\title{Plot data from simulated expression}
\format{
Object of class \code{"gtable"}.
}
\usage{
data("multimodalDat")
}
\description{
This data is used in the vignette t... | /man/multimodalDat.Rd | no_license | JBrownBiostat/Dino | R | false | true | 547 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postSimPlots.R
\docType{data}
\name{multimodalDat}
\alias{multimodalDat}
\title{Plot data from simulated expression}
\format{
Object of class \code{"gtable"}.
}
\usage{
data("multimodalDat")
}
\description{
This data is used in the vignette t... |
#'generic call for reporting the parameter estiamtes from different regression
#'models
#'
#'Parameter estiamtes, confidence intervals, and p-values form regression
#'models. Results are presented in three forms, numeric matrix, character
#' matrix, and individual strings. The character matrix and strings are
#' inte... | /R/params.R | no_license | dewittpe/qwraps | R | false | false | 3,660 | r | #'generic call for reporting the parameter estiamtes from different regression
#'models
#'
#'Parameter estiamtes, confidence intervals, and p-values form regression
#'models. Results are presented in three forms, numeric matrix, character
#' matrix, and individual strings. The character matrix and strings are
#' inte... |
source("R/import_books.R")
source("R/import_characters.R")
source("R/import_alias.R")
books %>%
filter(str_detect(line, " Watch"))
# Remove titles from character names
# Replace aliases with names
# Remove dialogue
# Replace pronouns with names??
# Replace titles with names??
#
books %>%
unnest_tokens(bigram,... | /R/notes.R | no_license | visuelledata/malazannetwork | R | false | false | 1,328 | r | source("R/import_books.R")
source("R/import_characters.R")
source("R/import_alias.R")
books %>%
filter(str_detect(line, " Watch"))
# Remove titles from character names
# Replace aliases with names
# Remove dialogue
# Replace pronouns with names??
# Replace titles with names??
#
books %>%
unnest_tokens(bigram,... |
# Astronauts!
library(tidyverse)
library(tidytuesdayR)
library(ggtext)
library(gridExtra)
library(extrafont)
## Get the data ####
tt_data <- tt_load(2020, week = 29)
astronauts <- tt_data$astronauts %>%
mutate(age_at_mission = year_of_mission - year_of_birth)
## Build space theme ####
theme_astro <- function() {
... | /sources/13-temporals/2-change/38-scatter/archetypes/ages-in-space/202007b_astronauts.R | permissive | UN-AVT/kamino-source | R | false | false | 4,415 | r | # Astronauts!
library(tidyverse)
library(tidytuesdayR)
library(ggtext)
library(gridExtra)
library(extrafont)
## Get the data ####
tt_data <- tt_load(2020, week = 29)
astronauts <- tt_data$astronauts %>%
mutate(age_at_mission = year_of_mission - year_of_birth)
## Build space theme ####
theme_astro <- function() {
... |
\name{boa.save}
\alias{boa.save}
\title{Save Session}
\description{
Save the current state of the session lists of MCMC sequences and the global
parameters to a database object.
}
\usage{
boa.save(name, envir = globalenv(), replace = FALSE)
}
\arguments{
\item{name}{Character string giving the name of the obje... | /man/boa.save.Rd | no_license | brian-j-smith/boa | R | false | false | 795 | rd | \name{boa.save}
\alias{boa.save}
\title{Save Session}
\description{
Save the current state of the session lists of MCMC sequences and the global
parameters to a database object.
}
\usage{
boa.save(name, envir = globalenv(), replace = FALSE)
}
\arguments{
\item{name}{Character string giving the name of the obje... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarize.R
\name{summarize}
\alias{summarize}
\title{Summary}
\usage{
summarize(Data, Group)
}
\arguments{
\item{Data}{a numeric matrix or data frame}
\item{Group}{a vector of factors associated with group structure}
}
\value{
list with the... | /man/summarize.Rd | no_license | cran/multigroup | R | false | true | 875 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summarize.R
\name{summarize}
\alias{summarize}
\title{Summary}
\usage{
summarize(Data, Group)
}
\arguments{
\item{Data}{a numeric matrix or data frame}
\item{Group}{a vector of factors associated with group structure}
}
\value{
list with the... |
library(tidyverse)
library(MASS)
library(ISLR)
library(caret)
dfDefault <- Default
dfDefault %>% dplyr::count(default)
p <- ggplot(dfDefault, aes(balance, fill = default)) +
geom_histogram(binwidth = 500)
p
pl1 <- ggplot(dfDefault, aes(balance, fill = default))
pl1 <- pl1 + geom_density(alpha = 0.2, adjust = 5 ... | /DA2_LDA w Smote Section.R | no_license | CollinCroskery/Foundations | R | false | false | 4,530 | r | library(tidyverse)
library(MASS)
library(ISLR)
library(caret)
dfDefault <- Default
dfDefault %>% dplyr::count(default)
p <- ggplot(dfDefault, aes(balance, fill = default)) +
geom_histogram(binwidth = 500)
p
pl1 <- ggplot(dfDefault, aes(balance, fill = default))
pl1 <- pl1 + geom_density(alpha = 0.2, adjust = 5 ... |
#' Track intermediate points
#'
#' Calculate great circle intermediate points on longitude, latitude input vectors. A
#' spherical model is used, from the geosphere package.
#'
#' This function returns a list of data frames, with a data frame of interpolated locations
#' for every interval between input locations. Ther... | /R/track_intermediate.R | no_license | ianjonsen/traipse | R | false | false | 4,060 | r | #' Track intermediate points
#'
#' Calculate great circle intermediate points on longitude, latitude input vectors. A
#' spherical model is used, from the geosphere package.
#'
#' This function returns a list of data frames, with a data frame of interpolated locations
#' for every interval between input locations. Ther... |
rm(list=ls(all.names=TRUE))
library(XML)
library(RCurl)
library(httr)
Sys.setlocale(category = "LC_ALL", locale = "cht")
urlCode = c("TWXX0021:1:TW")
#,"TWXX0025:1:TW")
startNo = 1
endNo = length(urlCode)
subPath <- "https://weather.com/zh-TW/weather/hourbyhour/l/"
cityCode <- c("台北")
#"桃園")
alldata <- data.frame()... | /weather_crawler2.R | no_license | FTS152/ooha_bus_project | R | false | false | 1,320 | r | rm(list=ls(all.names=TRUE))
library(XML)
library(RCurl)
library(httr)
Sys.setlocale(category = "LC_ALL", locale = "cht")
urlCode = c("TWXX0021:1:TW")
#,"TWXX0025:1:TW")
startNo = 1
endNo = length(urlCode)
subPath <- "https://weather.com/zh-TW/weather/hourbyhour/l/"
cityCode <- c("台北")
#"桃園")
alldata <- data.frame()... |
# load data
cData <- read.table("./new_data.txt", header = T, sep = ";")
# open dev
png("plot1.png", width = 480, height = 480, bg = "transparent")
hist(cData$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power")
# close dev
dev.off()
| /plot1.R | no_license | amrsekilly/ExData_Plotting1 | R | false | false | 289 | r | # load data
cData <- read.table("./new_data.txt", header = T, sep = ";")
# open dev
png("plot1.png", width = 480, height = 480, bg = "transparent")
hist(cData$Global_active_power, col = "red", xlab = "Global Active Power (kilowatts)", main = "Global Active Power")
# close dev
dev.off()
|
NULL
#' Stochastic Generation of a \code{PrecipitationOccurenceModel} or \code{PrecipitationOccurenceMultiSiteModel} model object
#'
#' It is an implentation of \code{\link{generate}} method
#'
#' @param x model returned by \code{\link{PrecipitationOccurenceModel}} or \code{\link{PrecipitationOccurenceMultiSiteM... | /RGENERATEPREC/R/generate.PrecipitationOccurenceModel.R | no_license | ingted/R-Examples | R | false | false | 9,726 | r |
NULL
#' Stochastic Generation of a \code{PrecipitationOccurenceModel} or \code{PrecipitationOccurenceMultiSiteModel} model object
#'
#' It is an implentation of \code{\link{generate}} method
#'
#' @param x model returned by \code{\link{PrecipitationOccurenceModel}} or \code{\link{PrecipitationOccurenceMultiSiteM... |
\name{print.LSDdata}
\alias{print.LSDdata}
\title{Prints the components of a list containing data on the LSDs for all pairwise differences of predictions.}
\description{Prints the components of an \code{LSDdata} \code{\link{list}} created by \code{\link{exploreLSDs}},
that contains data on the LSDs fo... | /man/print.LSDdata.Rd | no_license | cran/asremlPlus | R | false | false | 2,438 | rd | \name{print.LSDdata}
\alias{print.LSDdata}
\title{Prints the components of a list containing data on the LSDs for all pairwise differences of predictions.}
\description{Prints the components of an \code{LSDdata} \code{\link{list}} created by \code{\link{exploreLSDs}},
that contains data on the LSDs fo... |
#' Pie chart in kedata style
#'
#' @description create pie chart form 2 variabel in kedata style. Percentage computed from
#' each y varaibel value / total of y value * 100
#'
#' @importFrom stats cor
#'
#' @param data data frame with 2 variabel representing categorical and numeric data
#' @param x categorical va... | /R/plot_pie.R | no_license | eppofahmi/dataplot | R | false | false | 2,445 | r | #' Pie chart in kedata style
#'
#' @description create pie chart form 2 variabel in kedata style. Percentage computed from
#' each y varaibel value / total of y value * 100
#'
#' @importFrom stats cor
#'
#' @param data data frame with 2 variabel representing categorical and numeric data
#' @param x categorical va... |
library(forcats)
scientific_10 <- function(x) {
parse(text=gsub("e", " %*% 10^", scales::scientific_format()(x)))
}
# plotting ribosomae antioxidant trade-off
a_r_trade_off <- model_out_mnfe4_model1 %>%
filter(Fex == 1000) %>%
group_by(Mnx, Fex) %>%
summarize_all(mean) %>%
ggplot(aes(x = R, y = A/2,
... | /scripts/plotting_antioxidant_tradeoffs_ribosomes.R | no_license | bertrand-lab/mn-fe-allocation | R | false | false | 2,646 | r | library(forcats)
scientific_10 <- function(x) {
parse(text=gsub("e", " %*% 10^", scales::scientific_format()(x)))
}
# plotting ribosomae antioxidant trade-off
a_r_trade_off <- model_out_mnfe4_model1 %>%
filter(Fex == 1000) %>%
group_by(Mnx, Fex) %>%
summarize_all(mean) %>%
ggplot(aes(x = R, y = A/2,
... |
library(sp)
library(rgdal)
library(raster)
# Create a grid of points within the bbox of the SpatialPolygonsDataFrame
# colorado with decimal degrees as map units
grid <- makegrid(mapa, cellsize = 0.1)
# grid is a data.frame. To change it to a spatial data set we have to
grid <- SpatialPoints(grid, proj4string = CRS... | /Subsetmapa.R | no_license | bmsw/Statistics | R | false | false | 405 | r | library(sp)
library(rgdal)
library(raster)
# Create a grid of points within the bbox of the SpatialPolygonsDataFrame
# colorado with decimal degrees as map units
grid <- makegrid(mapa, cellsize = 0.1)
# grid is a data.frame. To change it to a spatial data set we have to
grid <- SpatialPoints(grid, proj4string = CRS... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 22510
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 22510
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#134.A#48.c#.w#7.s#48.asp/ctrl.e#1.a#3.E#134.A#48.c#.w#7.s#48.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 732 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 22510
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 22510
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... |
# utilize the PortfolioAnalytics package to optimize portfolios
library(PortfolioAnalytics)
library(ROI)
data("edhec")
# Use historical hedge fund data
ret <- edhec
names <- colnames(ret)
# Investigate hedge fund return data
# First look at the correlation
hf.cor <- cor(data)
library(corrplot)
corrplot.mixed(hf.cor... | /PortfolioAnalytics.R | no_license | RomeoAlphaYankee/FinanceR | R | false | false | 11,007 | r | # utilize the PortfolioAnalytics package to optimize portfolios
library(PortfolioAnalytics)
library(ROI)
data("edhec")
# Use historical hedge fund data
ret <- edhec
names <- colnames(ret)
# Investigate hedge fund return data
# First look at the correlation
hf.cor <- cor(data)
library(corrplot)
corrplot.mixed(hf.cor... |
###############
### COCA Climate Data Exploration ###
###############
## Libraries
library(ncdf4)
library(raster)
library(maptools)
library(ggplot2)
library(tidyverse)
library(rgeos)
library(zoo)
library(viridis)
## Some spatial stuff for data visualiztion
# Spatial projections
proj.wgs84<- CRS("+init=epsg:4326") #WG... | /Code/climate_dataexploration.R | no_license | aallyn/COCA | R | false | false | 9,658 | r | ###############
### COCA Climate Data Exploration ###
###############
## Libraries
library(ncdf4)
library(raster)
library(maptools)
library(ggplot2)
library(tidyverse)
library(rgeos)
library(zoo)
library(viridis)
## Some spatial stuff for data visualiztion
# Spatial projections
proj.wgs84<- CRS("+init=epsg:4326") #WG... |
#' Convert \code{survival::survfit} to \code{data.frame}
#'
#' @param model \code{survival::survfit} instance
#' @param surv.connect logical frag indicates whether connects survival curve to the origin
#' @param fun an arbitrary function defining a transformation of the survival curve
#' @inheritParams fortify_base
#' ... | /R/fortify_surv.R | no_license | yoursdearboy/ggfortify | R | false | false | 10,075 | r | #' Convert \code{survival::survfit} to \code{data.frame}
#'
#' @param model \code{survival::survfit} instance
#' @param surv.connect logical frag indicates whether connects survival curve to the origin
#' @param fun an arbitrary function defining a transformation of the survival curve
#' @inheritParams fortify_base
#' ... |
library(castor)
### Name: get_tips_for_mrcas
### Title: Find tips with specific most recent common ancestors.
### Aliases: get_tips_for_mrcas
### Keywords: MRCA
### ** Examples
# generate a random tree
Ntips = 1000
tree = generate_random_tree(list(birth_rate_intercept=1),Ntips)$tree
# pick random nodes
focal_nodes... | /data/genthat_extracted_code/castor/examples/get_tips_for_mrcas.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 702 | r | library(castor)
### Name: get_tips_for_mrcas
### Title: Find tips with specific most recent common ancestors.
### Aliases: get_tips_for_mrcas
### Keywords: MRCA
### ** Examples
# generate a random tree
Ntips = 1000
tree = generate_random_tree(list(birth_rate_intercept=1),Ntips)$tree
# pick random nodes
focal_nodes... |
isInteger <- ttutils::isInteger
#' Moving average
#'
#' Create a new map/matrix by doing a moving average on a matrix
#'
#' @param Z matrix/dataframe
#' @param r integer : the radius of the window of the moving average. Ex : r = 1 implies a window of 3*3
#'
#' @return matrix (side effects imply a smaller matrix than t... | /R/moving_average.R | permissive | C-Juliette/Geostatistic | R | false | false | 1,112 | r | isInteger <- ttutils::isInteger
#' Moving average
#'
#' Create a new map/matrix by doing a moving average on a matrix
#'
#' @param Z matrix/dataframe
#' @param r integer : the radius of the window of the moving average. Ex : r = 1 implies a window of 3*3
#'
#' @return matrix (side effects imply a smaller matrix than t... |
## These two function calculate the inverse of a matrix and cache its values, avoiding to repeat
## computations that would take too long to be executed each time.
## The first function, makematrix, takes an invertible matrix and creates a list with 4 functions.
## These functions store the values of the matrix and t... | /cachematrix.R | no_license | Ferric2004/ProgrammingAssignment2 | R | false | false | 1,152 | r | ## These two function calculate the inverse of a matrix and cache its values, avoiding to repeat
## computations that would take too long to be executed each time.
## The first function, makematrix, takes an invertible matrix and creates a list with 4 functions.
## These functions store the values of the matrix and t... |
#!/usr/bin/env Rscript
# mtbr pipline
# Load libraries
suppressPackageStartupMessages(library("optparse", quietly=TRUE, verbose=FALSE, warn.conflicts=FALSE))
suppressPackageStartupMessages(library("data.table", quietly=TRUE, verbose=FALSE, warn.conflicts=FALSE))
suppressPackageStartupMessages(library("zoo", quietly=... | /DNAmethylation/CpGDenLowess-master/tissuePromoter.Rscript | no_license | qlcm/LILAB | R | false | false | 6,139 | rscript | #!/usr/bin/env Rscript
# mtbr pipline
# Load libraries
suppressPackageStartupMessages(library("optparse", quietly=TRUE, verbose=FALSE, warn.conflicts=FALSE))
suppressPackageStartupMessages(library("data.table", quietly=TRUE, verbose=FALSE, warn.conflicts=FALSE))
suppressPackageStartupMessages(library("zoo", quietly=... |
library(ggplot2)
library(plyr)
DOWNLOAD=FALSE
exportClicksFile="Download_ExportClicks_07172014.csv"
totalUsersFile="Download_TotalUsers_07162014.csv"
# Download files
if (DOWNLOAD){
download.file("https://terra-incognita.co/exportclicks/", method="curl", destfile=exportClicksFile)
download.file("https://terra... | /analysis/summarizeClickData.R | no_license | mitmedialab/Terra-Incognita | R | false | false | 4,605 | r | library(ggplot2)
library(plyr)
DOWNLOAD=FALSE
exportClicksFile="Download_ExportClicks_07172014.csv"
totalUsersFile="Download_TotalUsers_07162014.csv"
# Download files
if (DOWNLOAD){
download.file("https://terra-incognita.co/exportclicks/", method="curl", destfile=exportClicksFile)
download.file("https://terra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/numeric_leading_zero_linter.R
\name{numeric_leading_zero_linter}
\alias{numeric_leading_zero_linter}
\title{Require usage of a leading zero in all fractional numerics}
\usage{
numeric_leading_zero_linter()
}
\description{
While .1 and 0.1 mea... | /man/numeric_leading_zero_linter.Rd | permissive | russHyde/lintr | R | false | true | 618 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/numeric_leading_zero_linter.R
\name{numeric_leading_zero_linter}
\alias{numeric_leading_zero_linter}
\title{Require usage of a leading zero in all fractional numerics}
\usage{
numeric_leading_zero_linter()
}
\description{
While .1 and 0.1 mea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.