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 |
|---|---|---|---|---|---|---|---|---|---|
#' Acquisition function for scoring parameter combinations
#'
#' These functions can be used to score candidate tuning parameter combinations
#' as a function of their predicted mean and variation.
#'
#' @details The acquisition functions often combine the mean and variance
#' predictions from the Gaussian process mode... | /R/acquisition.R | permissive | rorynolan/tune | R | false | false | 6,482 | r | #' Acquisition function for scoring parameter combinations
#'
#' These functions can be used to score candidate tuning parameter combinations
#' as a function of their predicted mean and variation.
#'
#' @details The acquisition functions often combine the mean and variance
#' predictions from the Gaussian process mode... |
library(grid)
mkDifString <- function(ref, ccs) {
r2 = strsplit(ref, "")[[1]]
c2 = strsplit(ccs, "")[[1]]
matches = rep(".", length(c2))
matches[r2!=c2] = "*"
paste(matches, sep="", collapse = "")
}
#' Print a PDF of the MSA in a dataframe returned by the AlnsToDataFrame function.
#'
#'
#' @param df A data ... | /R/graphics.R | no_license | Global-localhost/ccsviewr | R | false | false | 4,800 | r | library(grid)
mkDifString <- function(ref, ccs) {
r2 = strsplit(ref, "")[[1]]
c2 = strsplit(ccs, "")[[1]]
matches = rep(".", length(c2))
matches[r2!=c2] = "*"
paste(matches, sep="", collapse = "")
}
#' Print a PDF of the MSA in a dataframe returned by the AlnsToDataFrame function.
#'
#'
#' @param df A data ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{tier_protocol}
\alias{tier_protocol}
\title{tier_protocol}
\usage{
tier_protocol(tier = TRUE)
}
\arguments{
\item{tier}{Defaults to TRUE.}
}
\value{
when TRUE, returns the 4.0 version of TIER protocol.
When false, returns a min... | /man/tier_protocol.Rd | no_license | hugoavmedeiros/TIER | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{tier_protocol}
\alias{tier_protocol}
\title{tier_protocol}
\usage{
tier_protocol(tier = TRUE)
}
\arguments{
\item{tier}{Defaults to TRUE.}
}
\value{
when TRUE, returns the 4.0 version of TIER protocol.
When false, returns a min... |
## Read the power consumption data set
powerData <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?")
## Format the date field to "date" format
powerData$Date <- as.Date(powerData$Date, format="%d/%m/%Y")
#Read data for the dates 1st and 2nd Feb 2007
data <- subset(powerData, subse... | /plot1.R | no_license | lakarbatti/ExData_Plotting1 | R | false | false | 804 | r | ## Read the power consumption data set
powerData <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?")
## Format the date field to "date" format
powerData$Date <- as.Date(powerData$Date, format="%d/%m/%Y")
#Read data for the dates 1st and 2nd Feb 2007
data <- subset(powerData, subse... |
limits.ci <-function(x,alpha=0.05) { # This function will create CIs for
# the mean of x
n <- length(x)# Need this to compute the CIs.
if (n <=100) {
lower.ci <- mean(x) + qt(alpha/2,n-1)*(sd(x)/sqrt(n))
upper.ci <- mean(x) + qt(1-alpha/2,n-1)*(sd(x)/sqrt(n))
} else { # End t... | /limits.ci.R | no_license | ChrisZarzar/data_exploration | R | false | false | 576 | r | limits.ci <-function(x,alpha=0.05) { # This function will create CIs for
# the mean of x
n <- length(x)# Need this to compute the CIs.
if (n <=100) {
lower.ci <- mean(x) + qt(alpha/2,n-1)*(sd(x)/sqrt(n))
upper.ci <- mean(x) + qt(1-alpha/2,n-1)*(sd(x)/sqrt(n))
} else { # End t... |
library(ncdf4) # loading necessary libraries and extra functions
library(maps)
library(fields)
library(sp)
source("/home/woot0002/analysisfunctions.R")
###########
# 1. Data Gather and conversion
tmaxhistfilelist = system("ls /data4/data/OBS/METDATA/tasmax/tmmx_*.nc",intern=T)
tminhistfilelist = system("ls /data... | /q95calculator_METDATA.R | no_license | amwootte/analysisscripts | R | false | false | 2,680 | r |
library(ncdf4) # loading necessary libraries and extra functions
library(maps)
library(fields)
library(sp)
source("/home/woot0002/analysisfunctions.R")
###########
# 1. Data Gather and conversion
tmaxhistfilelist = system("ls /data4/data/OBS/METDATA/tasmax/tmmx_*.nc",intern=T)
tminhistfilelist = system("ls /data... |
\name{markfreq.condense}
\alias{markfreq.condense}
\title{condense marker frequency list}
\description{
"condenses" standard marker-frequency-list data (marker samples
from sources and mixed stocks) by removing unrepresented
markers, lumping markers where that removes no information, etc.}
\usage{
markfreq.conden... | /man/markfreq.condense.Rd | no_license | bbolker/mixstock | R | false | false | 1,607 | rd | \name{markfreq.condense}
\alias{markfreq.condense}
\title{condense marker frequency list}
\description{
"condenses" standard marker-frequency-list data (marker samples
from sources and mixed stocks) by removing unrepresented
markers, lumping markers where that removes no information, etc.}
\usage{
markfreq.conden... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mturk_operations.R
\name{mturk_delete_hit}
\alias{mturk_delete_hit}
\title{The DeleteHIT operation is used to delete HIT that is no longer needed}
\usage{
mturk_delete_hit(HITId)
}
\arguments{
\item{HITId}{[required] The ID of the HIT to be d... | /cran/paws.analytics/man/mturk_delete_hit.Rd | permissive | TWarczak/paws | R | false | true | 1,420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mturk_operations.R
\name{mturk_delete_hit}
\alias{mturk_delete_hit}
\title{The DeleteHIT operation is used to delete HIT that is no longer needed}
\usage{
mturk_delete_hit(HITId)
}
\arguments{
\item{HITId}{[required] The ID of the HIT to be d... |
library(lineqGPR)
### Name: errorMeasureRegressMC
### Title: Error Measures for GP Models using Monte Carlo Samples.
### Aliases: errorMeasureRegressMC
### ** Examples
# generating the toy example
n <- 100
w <- 4*pi
x <- seq(0, 1, length = n)
y <- sin(w*x)
# results with high-level noises generating the toy exampl... | /data/genthat_extracted_code/lineqGPR/examples/errorMeasureRegressMC.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 967 | r | library(lineqGPR)
### Name: errorMeasureRegressMC
### Title: Error Measures for GP Models using Monte Carlo Samples.
### Aliases: errorMeasureRegressMC
### ** Examples
# generating the toy example
n <- 100
w <- 4*pi
x <- seq(0, 1, length = n)
y <- sin(w*x)
# results with high-level noises generating the toy exampl... |
#### Prepare scored sturgeon genotypes for a structure run or two ####
source("R/load-packages.R")
#### Data reading and munging ####
# first, read the data in
#g <- tbl_df(read.csv(gzfile("data/new_score_allplates.csv.gz"), stringsAsFactors = FALSE))
g<- readRDS("outputs/genotype_from_five_chips.rds")
# right h... | /R-main/04-do-structure-and-gsi.R | no_license | ngthomas/sturgeon_fluidigm | R | false | false | 9,567 | r |
#### Prepare scored sturgeon genotypes for a structure run or two ####
source("R/load-packages.R")
#### Data reading and munging ####
# first, read the data in
#g <- tbl_df(read.csv(gzfile("data/new_score_allplates.csv.gz"), stringsAsFactors = FALSE))
g<- readRDS("outputs/genotype_from_five_chips.rds")
# right h... |
## Introduction to Likelihood 2: Fitting an SI model to an HIV epidemic with Maximum Likelihood Estimation
## Clinic on the Meaningful Modeling of Epidemiological Data
## International Clinics on Infectious Disease Dynamics and Data (ICI3D) Program
## African Institute for Mathematical Sciences, Muizenberg, RSA
## (C) ... | /ICI3D_Lab6_MLE_SIV_HIV.R | no_license | ICI3D/RTutorials | R | false | false | 16,259 | r | ## Introduction to Likelihood 2: Fitting an SI model to an HIV epidemic with Maximum Likelihood Estimation
## Clinic on the Meaningful Modeling of Epidemiological Data
## International Clinics on Infectious Disease Dynamics and Data (ICI3D) Program
## African Institute for Mathematical Sciences, Muizenberg, RSA
## (C) ... |
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 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), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... | /meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615844587-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 2,232 | r | testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 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, 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), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use_testdata.R
\name{use_testdata}
\alias{use_testdata}
\alias{use_testdata_raw}
\alias{has_testdata}
\alias{read_testdata}
\alias{find_testdata}
\title{Create \code{testdata} folder.}
\usage{
use_testdata(
...,
subdir = NULL,
overwrite... | /man/use_testdata.Rd | no_license | jimsforks/testthis | R | false | true | 2,715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use_testdata.R
\name{use_testdata}
\alias{use_testdata}
\alias{use_testdata_raw}
\alias{has_testdata}
\alias{read_testdata}
\alias{find_testdata}
\title{Create \code{testdata} folder.}
\usage{
use_testdata(
...,
subdir = NULL,
overwrite... |
# This package deals with Autoregressive model with exogenous inputs.
# It has three available functions:
#
# arx.transform(T, orders)
# Takes the matrix T, which is m x n, and serialize columns by orders,
# which should be of size m.
#
# arx.fit(S, method, tvt)
# Takes a matrix S, which should look lik... | /arx/arx.r | permissive | cassiopagnoncelli/hedge-project | R | false | false | 2,811 | r | # This package deals with Autoregressive model with exogenous inputs.
# It has three available functions:
#
# arx.transform(T, orders)
# Takes the matrix T, which is m x n, and serialize columns by orders,
# which should be of size m.
#
# arx.fit(S, method, tvt)
# Takes a matrix S, which should look lik... |
# Setup
## ライブラリ読み込み
library(dplyr)
library(tidyr)
library(ggplot2)
library(estimatr)
library(xtable)
library(Matching)
library(gridExtra)
## 初期設定
rm(list = ls())
load("data/21_jensenius/AEJApp-2014-0201_Dataset/devDTA.Rdata")
## 変数名確認
names(devDTA)
# 観察数確認
table(devDTA$AC_type_1976) # 一般区(GEN)、特定カースト区(SC)、特定部族区(ST)... | /main/21_Jensenius.R | no_license | toshifumikuroda/compecon2020 | R | false | false | 9,800 | r | # Setup
## ライブラリ読み込み
library(dplyr)
library(tidyr)
library(ggplot2)
library(estimatr)
library(xtable)
library(Matching)
library(gridExtra)
## 初期設定
rm(list = ls())
load("data/21_jensenius/AEJApp-2014-0201_Dataset/devDTA.Rdata")
## 変数名確認
names(devDTA)
# 観察数確認
table(devDTA$AC_type_1976) # 一般区(GEN)、特定カースト区(SC)、特定部族区(ST)... |
## 2. Užduotis
set.seed(314)
library(latex2exp)
library(optimx)
utils <- source(file.path("..", "src", "utils.R"))$value
## Naudodami atvirkštinės transformacijos metodą, sumodeliuokite
## atsitiktinio dydžio $T$, turinčio Veibulo skirstinį su parametrais
## $\eta$ ir $\nu$, t.y. a. d. $T$ pasiskirstymo funkcija yr... | /part-1/task-2.R | no_license | vabalas/pns-tasks | R | false | false | 5,627 | r | ## 2. Užduotis
set.seed(314)
library(latex2exp)
library(optimx)
utils <- source(file.path("..", "src", "utils.R"))$value
## Naudodami atvirkštinės transformacijos metodą, sumodeliuokite
## atsitiktinio dydžio $T$, turinčio Veibulo skirstinį su parametrais
## $\eta$ ir $\nu$, t.y. a. d. $T$ pasiskirstymo funkcija yr... |
######## FIGURE 3 ###########
# 1. LOADING --------------------------------------------------------------
# packages
if(!require(tidyverse)){install.packages('tidyverse'); library(tidyverse)}
if(!require(ggpubr)){install.packages('ggpubr'); library(ggpubr)}
# 2. INPUT DATA --------------------------------------... | /4_create_figures/code/FIGURE3FINAL.R | no_license | simeonqs/Social_network_architecture_and_the_tempo_of_cumulative_cultural_evolution | R | false | false | 14,143 | r | ######## FIGURE 3 ###########
# 1. LOADING --------------------------------------------------------------
# packages
if(!require(tidyverse)){install.packages('tidyverse'); library(tidyverse)}
if(!require(ggpubr)){install.packages('ggpubr'); library(ggpubr)}
# 2. INPUT DATA --------------------------------------... |
##' A test for the variance of a bounded random variable based on a single
##' sample of iid observations.
##'
##' This test requires that the user knows upper and lower bounds before
##' gathering the data such that the properties of the data generating process
##' imply that all observations will be within these bou... | /npExact/R/npVarianceSingle.R | no_license | zauster/npExact-deprecated | R | false | false | 12,353 | r | ##' A test for the variance of a bounded random variable based on a single
##' sample of iid observations.
##'
##' This test requires that the user knows upper and lower bounds before
##' gathering the data such that the properties of the data generating process
##' imply that all observations will be within these bou... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-fisher.R
\docType{data}
\name{amt_fisher}
\alias{amt_fisher}
\title{GPS tracks from four fishers}
\format{
A \code{tibble} with 14230 rows and 5 variables:
\describe{
\item{x_}{the x-coordinate}
\item{y_}{the y-coordinate}
\item{t_}{the ... | /man/amt_fisher.Rd | no_license | jmsigner/amt | R | false | true | 1,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-fisher.R
\docType{data}
\name{amt_fisher}
\alias{amt_fisher}
\title{GPS tracks from four fishers}
\format{
A \code{tibble} with 14230 rows and 5 variables:
\describe{
\item{x_}{the x-coordinate}
\item{y_}{the y-coordinate}
\item{t_}{the ... |
#' Wrapper function from BAM files
#'
#' @description
#' Function to run the whole INSPEcT differential rate analysis procedure with a single line.
#' The function save the output analysis to file that can be later loaded in the R environment
#' or in the INSPEcT-GUI.
#' @param txdb A TranscriptDB object for the sele... | /R/wrap-up-functions.R | no_license | ste-depo/INSPEcT | R | false | false | 14,686 | r | #' Wrapper function from BAM files
#'
#' @description
#' Function to run the whole INSPEcT differential rate analysis procedure with a single line.
#' The function save the output analysis to file that can be later loaded in the R environment
#' or in the INSPEcT-GUI.
#' @param txdb A TranscriptDB object for the sele... |
library(tidyverse)
setwd("C:/Docs/Drive/Uni/18F/Genome scale algorithms/Project 1")
df_Raw = read.csv("Test - SuffixTree Tandem Repeats.csv", header = FALSE)
colnames(df_Raw) = c("Function", "Time", "RunName", "n", "z")
df_Raw$RunName = factor(x = df_Raw$RunName)
df_Raw$Function = factor(x = df_Raw$Function)
run... | /Project3/perf analysis - Tandem repeats.R | no_license | izabelcavassim/Genome_scale_algorithms | R | false | false | 10,070 | r |
library(tidyverse)
setwd("C:/Docs/Drive/Uni/18F/Genome scale algorithms/Project 1")
df_Raw = read.csv("Test - SuffixTree Tandem Repeats.csv", header = FALSE)
colnames(df_Raw) = c("Function", "Time", "RunName", "n", "z")
df_Raw$RunName = factor(x = df_Raw$RunName)
df_Raw$Function = factor(x = df_Raw$Function)
run... |
library(sitePath)
test_that("setSiteNumbering works", {
data(zikv_align)
data(zikv_tree)
tree <- addMSA(zikv_tree, alignment = zikv_align)
tipNames <- zikv_tree[["tip.label"]]
align <- attr(tree, "align")
for (i in grep('-', align)) {
tip <- tipNames[[i]]
refSeq <- align[[i]]
... | /tests/testthat/test-siteNumbering.R | permissive | kant/sitePath | R | false | false | 1,493 | r | library(sitePath)
test_that("setSiteNumbering works", {
data(zikv_align)
data(zikv_tree)
tree <- addMSA(zikv_tree, alignment = zikv_align)
tipNames <- zikv_tree[["tip.label"]]
align <- attr(tree, "align")
for (i in grep('-', align)) {
tip <- tipNames[[i]]
refSeq <- align[[i]]
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install.R
\name{install_azureml}
\alias{install_azureml}
\title{Install azureml sdk package}
\usage{
install_azureml(version = NULL, envname = "r-azureml",
conda_python_version = "3.6")
}
\arguments{
\item{version}{azureml sdk package versi... | /man/install_azureml.Rd | permissive | sdgilley/azureml-sdk-for-r | R | false | true | 487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install.R
\name{install_azureml}
\alias{install_azureml}
\title{Install azureml sdk package}
\usage{
install_azureml(version = NULL, envname = "r-azureml",
conda_python_version = "3.6")
}
\arguments{
\item{version}{azureml sdk package versi... |
#' Register Native Routines
#'
#' Discover and register native routines in a package.
#' Functions to be registered should be prefixed with the
#' `// [[export(<methods>)]]` attribute.
#'
#' @param package The path to an \R package.
#' @param prefix The prefix to assign to the \R objects
#' generated that map to each... | /R/register.R | permissive | kevinushey/sourcetools | R | false | false | 6,257 | r | #' Register Native Routines
#'
#' Discover and register native routines in a package.
#' Functions to be registered should be prefixed with the
#' `// [[export(<methods>)]]` attribute.
#'
#' @param package The path to an \R package.
#' @param prefix The prefix to assign to the \R objects
#' generated that map to each... |
test_that("timezone_out works with default", {
con <- dbConnect(duckdb())
on.exit(dbDisconnect(con, shutdown = TRUE))
query <- "SELECT '1970-01-01 12:00:00'::TIMESTAMP AS ts"
res <- dbGetQuery(con, query)
expect_equal(res[[1]], as.POSIXct("1970-01-01 12:00:00", tz = "UTC"))
})
test_that("timezone_out works ... | /tools/rpkg/tests/testthat/test_timezone.R | permissive | junxfl/duckdb | R | false | false | 4,020 | r | test_that("timezone_out works with default", {
con <- dbConnect(duckdb())
on.exit(dbDisconnect(con, shutdown = TRUE))
query <- "SELECT '1970-01-01 12:00:00'::TIMESTAMP AS ts"
res <- dbGetQuery(con, query)
expect_equal(res[[1]], as.POSIXct("1970-01-01 12:00:00", tz = "UTC"))
})
test_that("timezone_out works ... |
rm(list = ls()) #clean workspace
library(caret)
testing<- read.csv("pml-testing.csv", na.strings=c("NA"," ","#DIV/0!"))
training<- read.csv("pml-training.csv", na.strings=c("NA"," ","#DIV/0!"))
## clean rows with strange data
training<-training[training$new_window =="no",]
#remove NA columns
training<-training[, co... | /Assignment.r | no_license | amitgil-github/MachineLearningCoursera | R | false | false | 1,225 | r | rm(list = ls()) #clean workspace
library(caret)
testing<- read.csv("pml-testing.csv", na.strings=c("NA"," ","#DIV/0!"))
training<- read.csv("pml-training.csv", na.strings=c("NA"," ","#DIV/0!"))
## clean rows with strange data
training<-training[training$new_window =="no",]
#remove NA columns
training<-training[, co... |
source("incl/start.R")
options(future.debug = FALSE)
message("*** Relaying of standard output and conditions ...")
strategies <- supportedStrategies()
for (ss in seq_along(strategies)) {
strategy <- strategies[[ss]]
message(sprintf("Relaying w/ %s ...", names(strategies)[ss]))
plan(strategy)
message("* A s... | /tests/relaying.R | no_license | HenrikBengtsson/future | R | false | false | 5,084 | r | source("incl/start.R")
options(future.debug = FALSE)
message("*** Relaying of standard output and conditions ...")
strategies <- supportedStrategies()
for (ss in seq_along(strategies)) {
strategy <- strategies[[ss]]
message(sprintf("Relaying w/ %s ...", names(strategies)[ss]))
plan(strategy)
message("* A s... |
# read each CSV file
# uses read_csv from readr
readLAcsv <- function(year, subdirectory = 'RawData/') {
fileName <- paste0(subdirectory, 'LAPD_Crime_and_Collision_Raw_data_for_',
year, '.csv')
read_csv(fileName)
}
# split Location col into Lat/Long
splitLatLong <- function(df) {
df <- df %... | /R/HelperFunctions.R | no_license | manifolded/NewMetDataSummer2016 | R | false | false | 3,221 | r | # read each CSV file
# uses read_csv from readr
readLAcsv <- function(year, subdirectory = 'RawData/') {
fileName <- paste0(subdirectory, 'LAPD_Crime_and_Collision_Raw_data_for_',
year, '.csv')
read_csv(fileName)
}
# split Location col into Lat/Long
splitLatLong <- function(df) {
df <- df %... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
%
%
% on Wed Feb 08 14:37:33 2006.
%
% Generator was the Rdoc class, which is part of the R.oo package written
% by Henrik Bengtsson, 2001-2004.
%%%%%%%%%%%%%%%... | /man/genes.Chromosome.Rd | no_license | cran/galgo | R | false | false | 1,354 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
%
%
% on Wed Feb 08 14:37:33 2006.
%
% Generator was the Rdoc class, which is part of the R.oo package written
% by Henrik Bengtsson, 2001-2004.
%%%%%%%%%%%%%%%... |
# To artificially generate uncertainty on both the states non-breeder and breeder,
# we used the R script below to alter the raw capture-recapture data from file titis.inp; the resulting file is titis2.inp.
# read in data
titi <- read.table('dat/titis.txt')
# 1 seen as breeder
# 2 seen as non-breeder
# 0 not seen
# ... | /codes/make-uncertain.R | no_license | oliviergimenez/IPMworkshop | R | false | false | 1,393 | r | # To artificially generate uncertainty on both the states non-breeder and breeder,
# we used the R script below to alter the raw capture-recapture data from file titis.inp; the resulting file is titis2.inp.
# read in data
titi <- read.table('dat/titis.txt')
# 1 seen as breeder
# 2 seen as non-breeder
# 0 not seen
# ... |
library(testthat)
library(README)
test_check("README")
| /inst/examples/README/tests/testthat.R | no_license | eddelbuettel/RcppR6 | R | false | false | 56 | r | library(testthat)
library(README)
test_check("README")
|
library(maptools)
### Name: sun-methods
### Title: Methods for sun ephemerides calculations
### Aliases: crepuscule sunriset solarnoon solarpos crepuscule-methods
### crepuscule,SpatialPoints,POSIXct-method
### crepuscule,matrix,POSIXct-method solarnoon-methods
### solarnoon,SpatialPoints,POSIXct-method
### s... | /data/genthat_extracted_code/maptools/examples/sun-methods.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,494 | r | library(maptools)
### Name: sun-methods
### Title: Methods for sun ephemerides calculations
### Aliases: crepuscule sunriset solarnoon solarpos crepuscule-methods
### crepuscule,SpatialPoints,POSIXct-method
### crepuscule,matrix,POSIXct-method solarnoon-methods
### solarnoon,SpatialPoints,POSIXct-method
### s... |
# READ ME--------
# Main script for analyzing TomKat Ranch data
# LOAD PACKAGES
source('src/packages.R')
# LOAD FUNCTIONS
source('src/plot_standards.R')
source('src/map_data.R')
# INDEX & README----------
# edit Rmd files as needed, then use these to render html
# "home" page for https://pointblue.github.io/TomKat... | /src/analyze_tk_data.R | permissive | pointblue/TomKat | R | false | false | 14,644 | r | # READ ME--------
# Main script for analyzing TomKat Ranch data
# LOAD PACKAGES
source('src/packages.R')
# LOAD FUNCTIONS
source('src/plot_standards.R')
source('src/map_data.R')
# INDEX & README----------
# edit Rmd files as needed, then use these to render html
# "home" page for https://pointblue.github.io/TomKat... |
library(here)
# --- We''ll see the R code for this directly and discuss the steps in detail:
step_function <- function(x) {
if (x < 0) -1 else 1
}
pocket_perceptron <- function(x, y, learning_rate,
max_iterations)
{
nObs = nrow(x)
nFeatures = ncol(x)
w = rnorm(nFeatures + 1, 0, 2) # Random weight initia... | /Chapter05/chapter5.R | permissive | OmniaRaouf/Mastering-Predictive-Analytics-with-R-Second-Edition | R | false | false | 9,549 | r | library(here)
# --- We''ll see the R code for this directly and discuss the steps in detail:
step_function <- function(x) {
if (x < 0) -1 else 1
}
pocket_perceptron <- function(x, y, learning_rate,
max_iterations)
{
nObs = nrow(x)
nFeatures = ncol(x)
w = rnorm(nFeatures + 1, 0, 2) # Random weight initia... |
##5
#How have emissions from motor vehicle sources changed from 1999–2008 in Baltimore City?
# set directory
setwd("~/Desktop/Coursera/Exploratory Analysis/Week4")
## upload data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
#find the SCC values associated ... | /plot5.R | no_license | chrisemai/Exploratory-Data-Analysis-Course-Project- | R | false | false | 842 | r | ##5
#How have emissions from motor vehicle sources changed from 1999–2008 in Baltimore City?
# set directory
setwd("~/Desktop/Coursera/Exploratory Analysis/Week4")
## upload data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
library(ggplot2)
#find the SCC values associated ... |
#' Working age adults with no qualifications: standardised ratio
#'
#' This is one of the indicators in SIMD and is included for the purposes of testing our normalisation proceedure.
#'
#' Please see the technical notes \url{http://www.gov.scot/Resource/0050/00504822.pdf} for full information on all of the data in SIMD... | /R/no_qualifications.R | permissive | rmnppt/simdr | R | false | false | 660 | r | #' Working age adults with no qualifications: standardised ratio
#'
#' This is one of the indicators in SIMD and is included for the purposes of testing our normalisation proceedure.
#'
#' Please see the technical notes \url{http://www.gov.scot/Resource/0050/00504822.pdf} for full information on all of the data in SIMD... |
#II. 데이터 분석과 모델링
# chap06_DataVisualization 수업내용
# 이산변수와 연속변수 시각화
#1. 이산변수 시각화
#1) 막대차트 시각화
install.packages("RSADBE")
library(RSADBE)
help("RSADBE") # Package 정보제공
data(Severity_Counts) # RSADBE 패키지 제공 데이터셋
str(Severity_Counts)
Severity_Counts # 버그 측정 데이터 셋
# (1) 세로 막대 차트
barplot(Severity_Counts, ylim=c(0,1... | /R-script/chap06/chap06_DataVisualization(실습).R | no_license | gimapei/Rwork | R | false | false | 7,224 | r | #II. 데이터 분석과 모델링
# chap06_DataVisualization 수업내용
# 이산변수와 연속변수 시각화
#1. 이산변수 시각화
#1) 막대차트 시각화
install.packages("RSADBE")
library(RSADBE)
help("RSADBE") # Package 정보제공
data(Severity_Counts) # RSADBE 패키지 제공 데이터셋
str(Severity_Counts)
Severity_Counts # 버그 측정 데이터 셋
# (1) 세로 막대 차트
barplot(Severity_Counts, ylim=c(0,1... |
#' Expand an extent by a certain number
#'
#' @author Martin Jung
#' @param e an extent object
#' @param f value to increase the extent (Default = 0.1)
#' @return returns the unified total extent
#' @export
extent_expand <- function(e,f=0.1){
xi <- (e@xmax-e@xmin)*(f/2)
yi <- (e@ymax-e@ymin)*(f/2)
xmin <-... | /R/miscellaneous/extent_expand.R | permissive | Martin-Jung/Icarus | R | false | false | 439 | r | #' Expand an extent by a certain number
#'
#' @author Martin Jung
#' @param e an extent object
#' @param f value to increase the extent (Default = 0.1)
#' @return returns the unified total extent
#' @export
extent_expand <- function(e,f=0.1){
xi <- (e@xmax-e@xmin)*(f/2)
yi <- (e@ymax-e@ymin)*(f/2)
xmin <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaclipcc.HorizontalExtent.R
\name{metaclipcc.HorizontalExtent}
\alias{metaclipcc.HorizontalExtent}
\title{Set a reference SpatialExtent}
\usage{
metaclipcc.HorizontalExtent(
region = NULL,
xmin = NULL,
xmax = NULL,
ymin = NULL,
ym... | /man/metaclipcc.HorizontalExtent.Rd | no_license | metaclip/metaclipcc | R | false | true | 1,050 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metaclipcc.HorizontalExtent.R
\name{metaclipcc.HorizontalExtent}
\alias{metaclipcc.HorizontalExtent}
\title{Set a reference SpatialExtent}
\usage{
metaclipcc.HorizontalExtent(
region = NULL,
xmin = NULL,
xmax = NULL,
ymin = NULL,
ym... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Flow.R
\name{FlowLiteral}
\alias{FlowLiteral}
\title{Creates object representing a literal argument to a task (ie a static path or value), used for wiring modules into tasks}
\usage{
FlowLiteral(...)
}
\arguments{
\item{name}{charact... | /man/FlowLiteral.Rd | no_license | andref1989/Flow | R | false | true | 615 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Flow.R
\name{FlowLiteral}
\alias{FlowLiteral}
\title{Creates object representing a literal argument to a task (ie a static path or value), used for wiring modules into tasks}
\usage{
FlowLiteral(...)
}
\arguments{
\item{name}{charact... |
#Creating Figure 1
The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean %>%
count(Race_clean) %>%
mutate(Percentage = n / nrow(The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean)) ->
The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean1
ggplot(The_Globe_and_Mail_CSC_OMS_2012_2018_202010222... | /Scripts/Graphs and Figures.R | permissive | Jonathan-Tillmann/STA304-Final-Project | R | false | false | 1,934 | r | #Creating Figure 1
The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean %>%
count(Race_clean) %>%
mutate(Percentage = n / nrow(The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean)) ->
The_Globe_and_Mail_CSC_OMS_2012_2018_20201022235635_clean1
ggplot(The_Globe_and_Mail_CSC_OMS_2012_2018_202010222... |
library(jsonlite)
library(here)
library(rvest)
library(tibble)
library(purrr)
library(readr)
get_html_pth <- function(name) {
return(here::here("data", "processed", "html", glue::glue("{name}.html")))
}
extract_table <- function(ac_page_info) {
df <- ac_page_info$name %>%
get_html_pth() %>%
xml2:... | /scripts/acnh/02-parse_html.R | permissive | AkhilGNair/animal_crossing | R | false | false | 1,355 | r | library(jsonlite)
library(here)
library(rvest)
library(tibble)
library(purrr)
library(readr)
get_html_pth <- function(name) {
return(here::here("data", "processed", "html", glue::glue("{name}.html")))
}
extract_table <- function(ac_page_info) {
df <- ac_page_info$name %>%
get_html_pth() %>%
xml2:... |
# You should have a folder "UCI HAR Dataset" in your working directory to run this file
# You may download that file here: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
# read the data into variables in R
# load test data
subject_test <- read.table("UCI HAR Dataset/test/sub... | /run_analysis.R | no_license | tobythy/gettingAndCleaningDataCourseProject | R | false | false | 2,131 | r |
# You should have a folder "UCI HAR Dataset" in your working directory to run this file
# You may download that file here: https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
# read the data into variables in R
# load test data
subject_test <- read.table("UCI HAR Dataset/test/sub... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/default.R
\name{gen}
\alias{gen}
\alias{gen.pframe_1d}
\alias{gen.default}
\title{Generate Method}
\usage{
gen(x, ...)
\method{gen}{pframe_1d}(...)
\method{gen}{default}(...)
}
\arguments{
\item{x}{is object, i.e. pframe_1d}
}
\value{
Descr... | /man/gen.Rd | no_license | tintinthong/pfilter | R | false | true | 921 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/default.R
\name{gen}
\alias{gen}
\alias{gen.pframe_1d}
\alias{gen.default}
\title{Generate Method}
\usage{
gen(x, ...)
\method{gen}{pframe_1d}(...)
\method{gen}{default}(...)
}
\arguments{
\item{x}{is object, i.e. pframe_1d}
}
\value{
Descr... |
stringGen <- function(n=1, lenght=20)
{
randomString <- c(1:n) # initialize vector
for (i in 1:n)
{
randomString[i] <- paste(sample(c(0:9, letters, LETTERS),
lenght, replace=TRUE),
collapse="")
}
return(random... | /src/backup/r_script_to_beUsed.R | no_license | GenomicsAotearoa/EWAS_DAP | R | false | false | 31,901 | r | stringGen <- function(n=1, lenght=20)
{
randomString <- c(1:n) # initialize vector
for (i in 1:n)
{
randomString[i] <- paste(sample(c(0:9, letters, LETTERS),
lenght, replace=TRUE),
collapse="")
}
return(random... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scriptgloss_module.R
\name{callStaticModule}
\alias{callStaticModule}
\title{Call a static representation of a shiny module}
\usage{
callStaticModule(module)
}
\arguments{
\item{module}{a module object}
}
\value{
the return of calling a shiny... | /man/callStaticModule.Rd | no_license | dgkf/scriptgloss | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scriptgloss_module.R
\name{callStaticModule}
\alias{callStaticModule}
\title{Call a static representation of a shiny module}
\usage{
callStaticModule(module)
}
\arguments{
\item{module}{a module object}
}
\value{
the return of calling a shiny... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/swf_operations.R
\name{swf_respond_activity_task_canceled}
\alias{swf_respond_activity_task_canceled}
\title{Used by workers to tell the service that the ActivityTask identified by
the taskToken was successfully canceled}
\usage{
swf_respond_... | /cran/paws.application.integration/man/swf_respond_activity_task_canceled.Rd | permissive | TWarczak/paws | R | false | true | 2,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/swf_operations.R
\name{swf_respond_activity_task_canceled}
\alias{swf_respond_activity_task_canceled}
\title{Used by workers to tell the service that the ActivityTask identified by
the taskToken was successfully canceled}
\usage{
swf_respond_... |
library(ggplot2)
source("hmc-sampler.R")
# ESTIMATE MONTE CARLO STANDARD ERROR FOR Y, Y^2
#
M <- 500
sq_err <- rep(NA, 10000)
sd_sq_err <- rep(NA, 10000)
for (i in 1:10000) {
y_mc <- rnorm(M)
sq_err[i] <- (mean(y_mc) - 0)^2
sd_sq_err[i] <- (mean(y_mc^2) - 1)^2
}
printf("Independent Draws: mc se Y = %4.3f; mc ... | /original/hmc.R | permissive | bob-carpenter/prob-stats | R | false | false | 4,663 | r | library(ggplot2)
source("hmc-sampler.R")
# ESTIMATE MONTE CARLO STANDARD ERROR FOR Y, Y^2
#
M <- 500
sq_err <- rep(NA, 10000)
sd_sq_err <- rep(NA, 10000)
for (i in 1:10000) {
y_mc <- rnorm(M)
sq_err[i] <- (mean(y_mc) - 0)^2
sd_sq_err[i] <- (mean(y_mc^2) - 1)^2
}
printf("Independent Draws: mc se Y = %4.3f; mc ... |
# users can either step through this file, or call this file with
# r -f example.R
# THIS ASSUMES THAT THE TESTHINT DATABASE EXISTS. The recipe for building that
# database is in ../dbInitialization/createHintTest.sql
# THIS EXAMPLE USES THE BRAIN HINT OUTPUT MADE BY RUNNING make hint at /scratch/data/footprints
pri... | /generate_db/master/muscle_organ_20/hint.R | no_license | xtmgah/genomics-footprint | R | false | false | 2,191 | r | # users can either step through this file, or call this file with
# r -f example.R
# THIS ASSUMES THAT THE TESTHINT DATABASE EXISTS. The recipe for building that
# database is in ../dbInitialization/createHintTest.sql
# THIS EXAMPLE USES THE BRAIN HINT OUTPUT MADE BY RUNNING make hint at /scratch/data/footprints
pri... |
# Project: Calculate Leaf Area Index from Sentinel-2 Imagery, a Shiny web application
#
# Access via https://treepoet.com/s2lai
#
# For more details on the model used to calculate LAI, please see:
# Cohrs, C.W., R.L. Cook, J.M. Gray, and T.J. Albaugh. (2020). Sentinel-2 Leaf Area Inde... | /app.R | permissive | rlcook/cohrsS2LAI | R | false | false | 19,707 | r | # Project: Calculate Leaf Area Index from Sentinel-2 Imagery, a Shiny web application
#
# Access via https://treepoet.com/s2lai
#
# For more details on the model used to calculate LAI, please see:
# Cohrs, C.W., R.L. Cook, J.M. Gray, and T.J. Albaugh. (2020). Sentinel-2 Leaf Area Inde... |
library(readxl)
tr <- rbind(
as.data.frame(read_excel("ui_translations.xls")),
as.data.frame(read_excel("content_translations.xls")),
as.data.frame(read_excel("current_translations.xls")))
rownames(tr) <- tr$ID
tr$ID <- NULL
save(tr, file="data_translations.RData")
| /translate.R | no_license | thlytras/flusurvgr | R | false | false | 276 | r | library(readxl)
tr <- rbind(
as.data.frame(read_excel("ui_translations.xls")),
as.data.frame(read_excel("content_translations.xls")),
as.data.frame(read_excel("current_translations.xls")))
rownames(tr) <- tr$ID
tr$ID <- NULL
save(tr, file="data_translations.RData")
|
save_3d_sw_test_png = function(code, path) {
code
path
}
compare_image = function(path1, path2) {
image1 = png::readPNG(path1)
image2 = png::readPNG(path2)
return(identical(image1, image2))
}
run_tests_sw = function(func, argument_grid, plot_prefix="", ...) {
stopifnot(inherits(argument_grid,"data.frame")... | /tests/testthat/test-snapshot_software.R | no_license | tteo/rayshader | R | false | false | 6,499 | r | save_3d_sw_test_png = function(code, path) {
code
path
}
compare_image = function(path1, path2) {
image1 = png::readPNG(path1)
image2 = png::readPNG(path2)
return(identical(image1, image2))
}
run_tests_sw = function(func, argument_grid, plot_prefix="", ...) {
stopifnot(inherits(argument_grid,"data.frame")... |
cat("\n", "Context: Right arguments for rdb_last_updates", "\n")
# All is logical and of length one
expect_error(rdb_last_updates(all = logical()))
expect_error(rdb_last_updates(all = "TRUE"))
| /inst/tinytest/test_rdb_last_updates.R | no_license | ShichenXie/rdbnomics | R | false | false | 194 | r | cat("\n", "Context: Right arguments for rdb_last_updates", "\n")
# All is logical and of length one
expect_error(rdb_last_updates(all = logical()))
expect_error(rdb_last_updates(all = "TRUE"))
|
library(shiny)
library(data.table)
library(ggplot2)
library(directlabels)
source("..//shinyModel.R", local = T)
source("PlotModel.R", local = T)
window_size <<- 3000
qNumber <<- 13
predicted_window <<- 2300
symbol <<- "AUDCHF"
quotes <<- fread(".\\Quotes\\AUDCHF Ask M15 20180101 20181101.csv", select = c(3), col.nam... | /ForexTest/server.R | no_license | lotgon/FinancialFigures | R | false | false | 5,153 | r | library(shiny)
library(data.table)
library(ggplot2)
library(directlabels)
source("..//shinyModel.R", local = T)
source("PlotModel.R", local = T)
window_size <<- 3000
qNumber <<- 13
predicted_window <<- 2300
symbol <<- "AUDCHF"
quotes <<- fread(".\\Quotes\\AUDCHF Ask M15 20180101 20181101.csv", select = c(3), col.nam... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lazyhtml_document.R
\name{html_dependency_recliner}
\alias{html_dependency_recliner}
\title{Provide HTML dependencies for lazyhtml R Markdown format}
\usage{
html_dependency_recliner()
}
\description{
Provide HTML dependencies for lazyhtml R ... | /man/html_dependency_recliner.Rd | no_license | hafen/lazyrmd | R | false | true | 338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lazyhtml_document.R
\name{html_dependency_recliner}
\alias{html_dependency_recliner}
\title{Provide HTML dependencies for lazyhtml R Markdown format}
\usage{
html_dependency_recliner()
}
\description{
Provide HTML dependencies for lazyhtml R ... |
\name{getSumDist}
\alias{getSumDist}
\title{
Compute the summation of distances
}
\description{
Canonical positions are set on a BAF-LRR plot with given AGP value. This function finds the distance from each data point to its nearest canonical position and returns the summation.
}
\usage{
getSumDist(oo, p, sam.dat, meth... | /man/getSumDist.Rd | no_license | cran/CHAT | R | false | false | 1,697 | rd | \name{getSumDist}
\alias{getSumDist}
\title{
Compute the summation of distances
}
\description{
Canonical positions are set on a BAF-LRR plot with given AGP value. This function finds the distance from each data point to its nearest canonical position and returns the summation.
}
\usage{
getSumDist(oo, p, sam.dat, meth... |
## TODO: return clustering object instead of cluster$order
## TODO: provide examples for adjusting legend size / spacing
## TODO: still testing "hydrologic" order
#' @title Visual Summary of Flat Landform Positions
#'
#' @description A unique display of landform position probability.
#'
#' @param x \code{data.frame}... | /R/vizFlatsPosition.R | no_license | trilnick/sharpshootR | R | false | false | 5,801 | r | ## TODO: return clustering object instead of cluster$order
## TODO: provide examples for adjusting legend size / spacing
## TODO: still testing "hydrologic" order
#' @title Visual Summary of Flat Landform Positions
#'
#' @description A unique display of landform position probability.
#'
#' @param x \code{data.frame}... |
# WGCNA
library(WGCNA)
library(cluster)
getClustersFromWGCNA <- function(expressionData){
k=softConnectivity(datE=t(expressionData),power=6)
# sizeGrWindow(10,5)
# par(mfrow=c(1,2))
# hist(k)
# scaleFreePlot(k, main="Check scale free topology\n")
datExpr=t(expressionData)[, rank(-k,ties.m... | /run_wgcna.R | no_license | dschlauch/network_batch | R | false | false | 837 | r | # WGCNA
library(WGCNA)
library(cluster)
getClustersFromWGCNA <- function(expressionData){
k=softConnectivity(datE=t(expressionData),power=6)
# sizeGrWindow(10,5)
# par(mfrow=c(1,2))
# hist(k)
# scaleFreePlot(k, main="Check scale free topology\n")
datExpr=t(expressionData)[, rank(-k,ties.m... |
# This function takes a file path and converts it into a url.
file.to.url<-function(file.path,site.name,security){
# Inputs: 'file.path' in the format "./directory/subdirectory/sitename.html"
# 'site.name' in the format "mainsite.com"
# 'security' either "https" or "http"
prefix<-paste0(se... | /fileToUrl.R | no_license | sandeshAdhikary/xpathproject | R | false | false | 384 | r | # This function takes a file path and converts it into a url.
file.to.url<-function(file.path,site.name,security){
# Inputs: 'file.path' in the format "./directory/subdirectory/sitename.html"
# 'site.name' in the format "mainsite.com"
# 'security' either "https" or "http"
prefix<-paste0(se... |
ModelVariogram<-function (CoorX, CoorY, P1, P2, NInt, lags, Direccion, Tol, Modelo,
Sill1, Sill2, Sill3, Nugget1, Nugget2, Nugget3, Alcance,
NomP1, NomP2, NomP1P2)
{
Datos <- as.data.frame(cbind(CoorX, CoorY, P1, P2))
colnames(Datos) <- c("X", "Y", "Prop1", "Prop2")
coordinates(Datos) <- ~X... | /RGeoestad_2D_Vacio/functions/ModelVariogram.R | no_license | reynaldosb/r-geoestat-pct-unam | R | false | false | 6,261 | r | ModelVariogram<-function (CoorX, CoorY, P1, P2, NInt, lags, Direccion, Tol, Modelo,
Sill1, Sill2, Sill3, Nugget1, Nugget2, Nugget3, Alcance,
NomP1, NomP2, NomP1P2)
{
Datos <- as.data.frame(cbind(CoorX, CoorY, P1, P2))
colnames(Datos) <- c("X", "Y", "Prop1", "Prop2")
coordinates(Datos) <- ~X... |
setwd("c://JHU//CleaningData")
colTitle <-read.table("features.txt", header=FALSE)
colTitleName <-colTitle[, "V2"]
train_x <-read.table("X_train.txt", header = FALSE, sep = "")
train_id <-read.table("subject_train.txt", header = FALSE)
colnames(train_id) <-"id"
train_act <-read.table("y_train.txt", header = FALSE)
co... | /run_analysis.R | no_license | c674010/CleaningDataProject | R | false | false | 1,370 | r | setwd("c://JHU//CleaningData")
colTitle <-read.table("features.txt", header=FALSE)
colTitleName <-colTitle[, "V2"]
train_x <-read.table("X_train.txt", header = FALSE, sep = "")
train_id <-read.table("subject_train.txt", header = FALSE)
colnames(train_id) <-"id"
train_act <-read.table("y_train.txt", header = FALSE)
co... |
library(forecast)
library(TSA)
#set.seed(1)
#temps <- 20+10*sin(2*pi*(1:856)/365)+arima.sim(list(0.8),856,sd=2)
#plot(forecast(auto.arima(temps),h=365))
#plot(forecast(auto.arima(ts(temps,frequency=365)),h=365))
p = periodogram(hbf$DailyVolume)
dd = data.frame(freq=p$freq, spec=p$spec)
order = dd[order(-dd$spec),]... | /Temp.R | no_license | seedjay1/BinFullnessForecasting | R | false | false | 451 | r | library(forecast)
library(TSA)
#set.seed(1)
#temps <- 20+10*sin(2*pi*(1:856)/365)+arima.sim(list(0.8),856,sd=2)
#plot(forecast(auto.arima(temps),h=365))
#plot(forecast(auto.arima(ts(temps,frequency=365)),h=365))
p = periodogram(hbf$DailyVolume)
dd = data.frame(freq=p$freq, spec=p$spec)
order = dd[order(-dd$spec),]... |
###########################################################################
### getwd(), readxl
###########################################################################
getwd()
setwd("C:/Working/basic")
setwd("C:/Working/work_r")
library(readxl)
readxl_example()
readxl_example("clippy.xls")
... | /R_Basic.R | no_license | plus4u/R | R | false | false | 1,036 | r | ###########################################################################
### getwd(), readxl
###########################################################################
getwd()
setwd("C:/Working/basic")
setwd("C:/Working/work_r")
library(readxl)
readxl_example()
readxl_example("clippy.xls")
... |
# Collection of functions used both by the R client and by
# external scripts that can access the code base but run before
# the package is built
#
# Author: brucehoff
#########################################################################
readSchema <- function(name, path) {
# remove the following when SYNR-84... | /R/AAAAshared.R | no_license | brian-bot/rSynapseClient | R | false | false | 3,631 | r | # Collection of functions used both by the R client and by
# external scripts that can access the code base but run before
# the package is built
#
# Author: brucehoff
#########################################################################
readSchema <- function(name, path) {
# remove the following when SYNR-84... |
\name{analyticsPolyLeg}
\alias{analyticsPolyLeg}
\title{
Calculate Legendre Polynomials on a Simulated Dataset
}
\description{
This function calculates Legendre polynomials on a
simulated LHS.
The dataset is generated by using the function
\code{\link[lhs:randomLHS]{randomLHS}} (from package
\code{\link[l... | /man/analyticsPolyLeg.Rd | no_license | cran/polychaosbasics | R | false | false | 2,623 | rd | \name{analyticsPolyLeg}
\alias{analyticsPolyLeg}
\title{
Calculate Legendre Polynomials on a Simulated Dataset
}
\description{
This function calculates Legendre polynomials on a
simulated LHS.
The dataset is generated by using the function
\code{\link[lhs:randomLHS]{randomLHS}} (from package
\code{\link[l... |
library(Biostrings)
library(bio3d)
library(muscle)
library(devtools)
NMA <- function(pdb){
##Take the pdb IDs for each PDB and sets them each equal to a variable
pdb1<-pdb[1]
pdb2<-pdb[2]
pdb3<-pdb[3]
#gets the PDB files from online
pdb1<-read.pdb(pdb1)
pdb2<-read.pdb(pdb2)
pdb3<-read.pdb(pdb3)
... | /protein3dV2.R | permissive | tchinsky/tacos-wig | R | false | false | 4,637 | r | library(Biostrings)
library(bio3d)
library(muscle)
library(devtools)
NMA <- function(pdb){
##Take the pdb IDs for each PDB and sets them each equal to a variable
pdb1<-pdb[1]
pdb2<-pdb[2]
pdb3<-pdb[3]
#gets the PDB files from online
pdb1<-read.pdb(pdb1)
pdb2<-read.pdb(pdb2)
pdb3<-read.pdb(pdb3)
... |
/plugins/MacAU/SubsOnly/SubsOnly.r | permissive | Atavic/airwindows | R | false | false | 3,215 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBNSMILER_Public_InfVis.R
\name{getcptmask}
\alias{getcptmask}
\title{getcptmask}
\usage{
getcptmask(rules, tblcpt, pnames, states)
}
\arguments{
\item{rules}{table as a data frame - format of rules table is as described in
'initrules'/DBNSM... | /man/getcptmask.Rd | permissive | paul1010/DBNSMILER | R | false | true | 763 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBNSMILER_Public_InfVis.R
\name{getcptmask}
\alias{getcptmask}
\title{getcptmask}
\usage{
getcptmask(rules, tblcpt, pnames, states)
}
\arguments{
\item{rules}{table as a data frame - format of rules table is as described in
'initrules'/DBNSM... |
function(input, output, session) {
output$ex1 <- renderUI({
withMathJax(helpText('Dynamic output 1: $$\\alpha^2$$'))
})
output$ex2 <- renderUI({
withMathJax(
helpText('and output 2 $$3^2+4^2=5^2$$'),
helpText('and output 3 $$\\sin^2(\\theta)+\\cos^2(\\theta)=1$$')
)
})
output$ex3 <- r... | /shinycoreci-apps-master/shinycoreci-apps-master/019-mathjax/server.R | no_license | RohanYashraj/R-Tutorials-Code | R | false | false | 889 | r | function(input, output, session) {
output$ex1 <- renderUI({
withMathJax(helpText('Dynamic output 1: $$\\alpha^2$$'))
})
output$ex2 <- renderUI({
withMathJax(
helpText('and output 2 $$3^2+4^2=5^2$$'),
helpText('and output 3 $$\\sin^2(\\theta)+\\cos^2(\\theta)=1$$')
)
})
output$ex3 <- r... |
# Group 1.5
# =========
#
# Group 1: Data set transformation to allow compute of many metrics
#
# Who: Erica Carl Scott Eric Sydney Julie
#
# Group 2: Time series analysis of community level metrics (consider higher freq data too)
#
# Who: Elizabeth Lauren Carl2 Seekell Julie Andrew
#
# Datasets
# -------... | /workflows-and-analysis/CAP_arthropods/cap_arthropods.R | permissive | NCEAS/commdyn | R | false | false | 2,426 | r | # Group 1.5
# =========
#
# Group 1: Data set transformation to allow compute of many metrics
#
# Who: Erica Carl Scott Eric Sydney Julie
#
# Group 2: Time series analysis of community level metrics (consider higher freq data too)
#
# Who: Elizabeth Lauren Carl2 Seekell Julie Andrew
#
# Datasets
# -------... |
#' Check Character
#'
#' @description
#' Checks if character using
#'
#' `is.character(x)`
#'
#' @inheritParams params
#' @inherit params return
#'
#' @family chk_typeof
#'
#' @examples
#' # chk_character
#' chk_character("1")
#' try(chk_character(1))
#' @export
chk_character <- function(x, x_name = NULL) {
if (vld_c... | /R/chk-character.R | permissive | poissonconsulting/chk | R | false | false | 817 | r | #' Check Character
#'
#' @description
#' Checks if character using
#'
#' `is.character(x)`
#'
#' @inheritParams params
#' @inherit params return
#'
#' @family chk_typeof
#'
#' @examples
#' # chk_character
#' chk_character("1")
#' try(chk_character(1))
#' @export
chk_character <- function(x, x_name = NULL) {
if (vld_c... |
for (char in c("dplyr" , "lubridate")){
library(char , character.only = TRUE ,quietly = TRUE)
}
db =read.table("household_power_consumption.txt" , sep = ";" , stringsAsFactors = FALSE , header = TRUE , na.strings = "?")
db = mutate(db , Date = dmy(Date) , Time = hms(Time))
db = subset(db , Date == "2007-02-01... | /Plot_1.R | no_license | tennistetris/ExData_Plotting1 | R | false | false | 550 | r | for (char in c("dplyr" , "lubridate")){
library(char , character.only = TRUE ,quietly = TRUE)
}
db =read.table("household_power_consumption.txt" , sep = ";" , stringsAsFactors = FALSE , header = TRUE , na.strings = "?")
db = mutate(db , Date = dmy(Date) , Time = hms(Time))
db = subset(db , Date == "2007-02-01... |
#working directory and save and delete global variables
getwd()
dir("C:/Users/MA314748/Documents")
wddir <- "C:/Users/MA314748/Documents/MyLab/R"
setwd("C:/Users/MA314748/Documents/MyLab/R")
getwd()
save.image("Day01.RData")
list.dirs()
file.create("Myfile01.txt")
fpath <- file.path(wddir,"myfile02.txt")
file... | /05-WorkingDir.R | no_license | Manirangasamy/MyRLab | R | false | false | 644 | r | #working directory and save and delete global variables
getwd()
dir("C:/Users/MA314748/Documents")
wddir <- "C:/Users/MA314748/Documents/MyLab/R"
setwd("C:/Users/MA314748/Documents/MyLab/R")
getwd()
save.image("Day01.RData")
list.dirs()
file.create("Myfile01.txt")
fpath <- file.path(wddir,"myfile02.txt")
file... |
function (t, x, y, period, tol)
{
e <- get("data.env", .GlobalEnv)
e[["track_immobility"]][[length(e[["track_immobility"]]) +
1]] <- list(t = t, x = x, y = y, period = period, tol = tol)
.Call("_amt_track_immobility", PACKAGE = "amt", t, x, y,
period, tol)
}
| /valgrind_test_dir/track_immobility-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 290 | r | function (t, x, y, period, tol)
{
e <- get("data.env", .GlobalEnv)
e[["track_immobility"]][[length(e[["track_immobility"]]) +
1]] <- list(t = t, x = x, y = y, period = period, tol = tol)
.Call("_amt_track_immobility", PACKAGE = "amt", t, x, y,
period, tol)
}
|
#' @title Error Correction
#'
#' @description Corrects a list of equally long (barcode) sequences. Based on calculated hamming distances
#' as a measure of similarity, highly similar sequences are clustered together and the cluster label will
#' be the respective sequence with the highest read count.
#'
#' @param BC_d... | /R/error_correction_function.R | no_license | cran/genBaRcode | R | false | false | 31,536 | r |
#' @title Error Correction
#'
#' @description Corrects a list of equally long (barcode) sequences. Based on calculated hamming distances
#' as a measure of similarity, highly similar sequences are clustered together and the cluster label will
#' be the respective sequence with the highest read count.
#'
#' @param BC_d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ca_accounts.R
\name{ca_accounts}
\alias{ca_accounts}
\title{List the available ChannelAdvisor accounts/profiles}
\usage{
ca_accounts()
}
\description{
List the available ChannelAdvisor accounts/profiles
}
| /man/ca_accounts.Rd | no_license | anthonypileggi/channeladvisor | R | false | true | 283 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ca_accounts.R
\name{ca_accounts}
\alias{ca_accounts}
\title{List the available ChannelAdvisor accounts/profiles}
\usage{
ca_accounts()
}
\description{
List the available ChannelAdvisor accounts/profiles
}
|
#' @name filter_individual
#' @title Individual filter
#' @description Filter individuals genotyped at a marker from a tidy data
#' set (long format) of any of these file format:
#' vcf, plink (tped/tfam), stacks haplotype file, genind,
#' genepop, data frame in wide format. The function uses
#' \code{\link[stackr]... | /R/filter_individual.R | no_license | anne-laureferchaud/stackr-1 | R | false | false | 27,981 | r | #' @name filter_individual
#' @title Individual filter
#' @description Filter individuals genotyped at a marker from a tidy data
#' set (long format) of any of these file format:
#' vcf, plink (tped/tfam), stacks haplotype file, genind,
#' genepop, data frame in wide format. The function uses
#' \code{\link[stackr]... |
testlist <- list(end = NULL, start = NULL, x = structure(c(1.75738956886858e+159, 6.95356800386775e-310, 2.32903286132618e+96, 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, 0), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0... | /dynutils/inst/testfiles/project_to_segments/AFL_project_to_segments/project_to_segments_valgrind_files/1609870267-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 410 | r | testlist <- list(end = NULL, start = NULL, x = structure(c(1.75738956886858e+159, 6.95356800386775e-310, 2.32903286132618e+96, 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, 0), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0... |
## HTrack_v0.0.001
## author: Dania M Rodriguez
## HTrack is a Shiny app built to capture field-level data securely and offline.
library(shiny)
library(leaflet)
library(shinydashboard)
library(leaflet.extras)
library(DT)
library(magrittr)
library(reshape2)
library(ggplot2)
# Setting UI components #
he... | /source_code/app.R | permissive | dmrodz/htrack | R | false | false | 66,616 | r | ## HTrack_v0.0.001
## author: Dania M Rodriguez
## HTrack is a Shiny app built to capture field-level data securely and offline.
library(shiny)
library(leaflet)
library(shinydashboard)
library(leaflet.extras)
library(DT)
library(magrittr)
library(reshape2)
library(ggplot2)
# Setting UI components #
he... |
load("data/internet_regex.rda")
edit_URL <- function(text, replacement = "<URL>"){
x <- internet_regex[c("URL", "naked_URL"), ]
x <- paste0('(?<!\\w)', x, '(?!\\w)')
text <- mgsub_regex(text, x, replacement, perl = T)
return(text)
}
| /R/edit_URL.R | no_license | achilleas-251/txtprocess | R | false | false | 257 | r | load("data/internet_regex.rda")
edit_URL <- function(text, replacement = "<URL>"){
x <- internet_regex[c("URL", "naked_URL"), ]
x <- paste0('(?<!\\w)', x, '(?!\\w)')
text <- mgsub_regex(text, x, replacement, perl = T)
return(text)
}
|
pacman::p_load(foreign)
#https://www.rdocumentation.org/packages/datasets/versions/3.6.2/topics/mtcars
#opis pod powy?szym linkiem
# #sprawdzenie corelacji
# pacman::p_load(corrplot)
# cars.cor <- sapply(cars,function(x) as.numeric(x))
# cor_matrix=cor(cars.cor)
# corrplot(cor_matrix, method = number)
# wczytaj_mt... | /mtcars_dane.r | permissive | PLPOLAND/Projekt-R | R | false | false | 2,104 | r | pacman::p_load(foreign)
#https://www.rdocumentation.org/packages/datasets/versions/3.6.2/topics/mtcars
#opis pod powy?szym linkiem
# #sprawdzenie corelacji
# pacman::p_load(corrplot)
# cars.cor <- sapply(cars,function(x) as.numeric(x))
# cor_matrix=cor(cars.cor)
# corrplot(cor_matrix, method = number)
# wczytaj_mt... |
plotQuant <- function(mcmc, style="boxes", probs=c(0.025,0.975), axes=TRUE, names=NULL, ylim=NULL, yaxs="i", div=1,
log=FALSE, base=10, main=NULL, xlab=NULL, ylab=NULL, cex.axis=0.8, las=1, tck=-0.015,
tick.number=8, lty.median=1, lwd.median=1+2*(style!="boxes"), col.median... | /R/plotQuant.R | no_license | cran/scapeMCMC | R | false | false | 3,530 | r | plotQuant <- function(mcmc, style="boxes", probs=c(0.025,0.975), axes=TRUE, names=NULL, ylim=NULL, yaxs="i", div=1,
log=FALSE, base=10, main=NULL, xlab=NULL, ylab=NULL, cex.axis=0.8, las=1, tck=-0.015,
tick.number=8, lty.median=1, lwd.median=1+2*(style!="boxes"), col.median... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/equations.R
\name{hyperbolic}
\alias{hyperbolic}
\title{Hyperbolic model equation}
\usage{
hyperbolic(conc, parameters)
}
\arguments{
\item{conc}{Ligand concentration.}
\item{parameters}{A named list of parameters to be refined against the
e... | /man/hyperbolic.Rd | permissive | tiana22/rfret | R | false | true | 762 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/equations.R
\name{hyperbolic}
\alias{hyperbolic}
\title{Hyperbolic model equation}
\usage{
hyperbolic(conc, parameters)
}
\arguments{
\item{conc}{Ligand concentration.}
\item{parameters}{A named list of parameters to be refined against the
e... |
# graphNEL with D3 JavaScript
#
# Plot a graphNEL object, with an associated covariance matrix, using the D3 JavaScript force directed newtwork.
# @param graph A graphNEL object.
# @param S The sample covariance matrix. If supplied, it specifies the colour of the edges between nodes. If \code{NULL} the default colour i... | /R/graphNELD3.R | no_license | cran/simPATHy | R | false | false | 4,047 | r | # graphNEL with D3 JavaScript
#
# Plot a graphNEL object, with an associated covariance matrix, using the D3 JavaScript force directed newtwork.
# @param graph A graphNEL object.
# @param S The sample covariance matrix. If supplied, it specifies the colour of the edges between nodes. If \code{NULL} the default colour i... |
#' Read in a student project preferences file
#'
#' row i : student i's preferred projects, in descending order of preference \cr
#' Rows have variable number of columns, each separated by whitespace \cr
#' column 1 : unique student id (string) \cr
#' column 2-column n_i : list of project... | /R/studentAllocation/R/read_files.R | permissive | ajstewartlang/studentProjectAllocation | R | false | false | 3,386 | r |
#' Read in a student project preferences file
#'
#' row i : student i's preferred projects, in descending order of preference \cr
#' Rows have variable number of columns, each separated by whitespace \cr
#' column 1 : unique student id (string) \cr
#' column 2-column n_i : list of project... |
#' Create actor Object
#'
#' To scale and flip contributions from a cross validation multi-omics analysis in order to be align with the contributions from the full analysis.
#' @param countData Sample isoform data. First column should be titled "gene_id" and second "feature_id"
#' @param reduceTissue TRUE or FALSE indi... | /R/makeActorObject.R | no_license | mccabes292/actor | R | false | false | 2,273 | r | #' Create actor Object
#'
#' To scale and flip contributions from a cross validation multi-omics analysis in order to be align with the contributions from the full analysis.
#' @param countData Sample isoform data. First column should be titled "gene_id" and second "feature_id"
#' @param reduceTissue TRUE or FALSE indi... |
#compare the network and restored in res/dc.csv to a real network
true<-read.table("../data/Dream3/Yeast10/True.txt",header=F)
true<-as.matrix(true)
dc<-read.csv("res/dc.csv",header=T)
dc<-as.matrix(dc)
library(minet)
#use MRNET algorithm
mr<-mrnet(dc)
#use CLR algorithm
clr<-clr(dc)
#compare with real ne... | /src/DCtest.R | no_license | xiangdiuxiu/NetworkDC | R | false | false | 552 | r | #compare the network and restored in res/dc.csv to a real network
true<-read.table("../data/Dream3/Yeast10/True.txt",header=F)
true<-as.matrix(true)
dc<-read.csv("res/dc.csv",header=T)
dc<-as.matrix(dc)
library(minet)
#use MRNET algorithm
mr<-mrnet(dc)
#use CLR algorithm
clr<-clr(dc)
#compare with real ne... |
library(sos)
### Name: unionFindFn
### Title: Combine findFn Objects
### Aliases: unionFindFn intersectFindFn Ops.findFn
### Keywords: misc
### ** Examples
des1 <- findFn('differential equations', 1)
de1 <- findFn('differential equation', 1)
# each retrieves 1 page of 20 hits
# but not the same 20
de.s <- unionFin... | /data/genthat_extracted_code/sos/examples/unionFindFn.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,199 | r | library(sos)
### Name: unionFindFn
### Title: Combine findFn Objects
### Aliases: unionFindFn intersectFindFn Ops.findFn
### Keywords: misc
### ** Examples
des1 <- findFn('differential equations', 1)
de1 <- findFn('differential equation', 1)
# each retrieves 1 page of 20 hits
# but not the same 20
de.s <- unionFin... |
# AUTO GENERATED FILE - DO NOT EDIT
''TimeGrainFilter <- function(id=NULL, label=NULL, value=NULL, timegrainarray=NULL, classes=NULL) {
props <- list(id=id, label=label, value=value, timegrainarray=timegrainarray, classes=classes)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, log... | /R/''TimeGrainFilter.R | no_license | kalimuthu123/SelectFilter | R | false | false | 637 | r | # AUTO GENERATED FILE - DO NOT EDIT
''TimeGrainFilter <- function(id=NULL, label=NULL, value=NULL, timegrainarray=NULL, classes=NULL) {
props <- list(id=id, label=label, value=value, timegrainarray=timegrainarray, classes=classes)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, log... |
pacman::p_install_gh("trinker/valiData")
library(tidyverse)
cl::source_r_folder()
inst <- 'Test Home Town University'
file <- dir(sprintf(cl::get_desktop("TestCore/%s/Demographics/StudentImport"), inst), pattern = '\\.csv$', full.names = TRUE)
file ## Make sur there's just one
loc <- sprintf(cl::get_desktop("Test... | /val_test.R | no_license | trinker/valiData | R | false | false | 814 | r | pacman::p_install_gh("trinker/valiData")
library(tidyverse)
cl::source_r_folder()
inst <- 'Test Home Town University'
file <- dir(sprintf(cl::get_desktop("TestCore/%s/Demographics/StudentImport"), inst), pattern = '\\.csv$', full.names = TRUE)
file ## Make sur there's just one
loc <- sprintf(cl::get_desktop("Test... |
### =========================================================================
### ExperimentHub objects
### -------------------------------------------------------------------------
###
setClass("ExperimentHub", contains="Hub")
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Construc... | /R/ExperimentHub-class.R | no_license | kjohnsen/ExperimentHub | R | false | false | 3,570 | r | ### =========================================================================
### ExperimentHub objects
### -------------------------------------------------------------------------
###
setClass("ExperimentHub", contains="Hub")
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Construc... |
##we need the watershed codes for our sites so we can submit our fish data to get our channel widths to feed the model
source('R/functions.R')
source('R/packages.R')
source('R/private_info.R')
conn <- DBI::dbConnect(
RPostgres::Postgres(),
dbname = dbname,
host = host,
port = port,
user = user,
password = ... | /R/0215-extract-watershed-codes.R | permissive | Mateo9569/fish_passage_bulkley_2020_reporting | R | false | false | 2,821 | r | ##we need the watershed codes for our sites so we can submit our fish data to get our channel widths to feed the model
source('R/functions.R')
source('R/packages.R')
source('R/private_info.R')
conn <- DBI::dbConnect(
RPostgres::Postgres(),
dbname = dbname,
host = host,
port = port,
user = user,
password = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/greengrass_operations.R
\name{greengrass_update_logger_definition}
\alias{greengrass_update_logger_definition}
\title{Updates a logger definition}
\usage{
greengrass_update_logger_definition(LoggerDefinitionId, Name)
}
\arguments{
\item{Logge... | /cran/paws.internet.of.things/man/greengrass_update_logger_definition.Rd | permissive | paws-r/paws | R | false | true | 641 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/greengrass_operations.R
\name{greengrass_update_logger_definition}
\alias{greengrass_update_logger_definition}
\title{Updates a logger definition}
\usage{
greengrass_update_logger_definition(LoggerDefinitionId, Name)
}
\arguments{
\item{Logge... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.mcmcComposite.R
\name{summary.mcmcComposite}
\alias{summary.mcmcComposite}
\title{Summarize the result of a mcmcComposite object}
\usage{
\method{summary}{mcmcComposite}(object, chain = NULL, ...)
}
\arguments{
\item{object}{A mcmcCom... | /man/summary.mcmcComposite.Rd | no_license | cran/HelpersMG | R | false | true | 2,712 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.mcmcComposite.R
\name{summary.mcmcComposite}
\alias{summary.mcmcComposite}
\title{Summarize the result of a mcmcComposite object}
\usage{
\method{summary}{mcmcComposite}(object, chain = NULL, ...)
}
\arguments{
\item{object}{A mcmcCom... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GraphApi.r
\docType{data}
\name{GraphApi}
\alias{GraphApi}
\title{Graph operations}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
GraphApi
}
\description{
swagger.Graph
}
\section{Fields}{
\describe{
\item{\code{p... | /man/GraphApi.Rd | permissive | charlieccarey/monarchr.biolink | R | false | true | 643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GraphApi.r
\docType{data}
\name{GraphApi}
\alias{GraphApi}
\title{Graph operations}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
GraphApi
}
\description{
swagger.Graph
}
\section{Fields}{
\describe{
\item{\code{p... |
## Catching the Inverse of the Matrix
## The first function, makeCacheMatrix creates a special "matrix",
## which is really a list containing a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse
## 4. get the value of the inverse
makeCacheMatrix <... | /cachematrix.R | no_license | srinivasamallapadi/ProgrammingAssignment2 | R | false | false | 1,361 | r | ## Catching the Inverse of the Matrix
## The first function, makeCacheMatrix creates a special "matrix",
## which is really a list containing a function to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse
## 4. get the value of the inverse
makeCacheMatrix <... |
context("Remove editorial square brackets")
test_that("Ordinary square brackets are removed", {
expect_equal(rm_editorial_square_brackets("the call by the Business Council of Australia to ``urgently phas[e] out all the side deals"),
"the call by the Business Council of Australia to ``urgently phas... | /tests/testthat/test_rm_editorial_square_brackets.R | no_license | cran/TeXCheckR | R | false | false | 1,038 | r | context("Remove editorial square brackets")
test_that("Ordinary square brackets are removed", {
expect_equal(rm_editorial_square_brackets("the call by the Business Council of Australia to ``urgently phas[e] out all the side deals"),
"the call by the Business Council of Australia to ``urgently phas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvsl_plot_roc.R
\name{cvsl_plot_roc}
\alias{cvsl_plot_roc}
\title{Deprecated, please use plot_roc() instead.}
\usage{
cvsl_plot_roc(cvsl, ...)
}
\arguments{
\item{cvsl}{CV.SuperLearner object}
\item{...}{Remaining arguments that are passed t... | /man/cvsl_plot_roc.Rd | no_license | ck37/ck37r | R | false | true | 390 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvsl_plot_roc.R
\name{cvsl_plot_roc}
\alias{cvsl_plot_roc}
\title{Deprecated, please use plot_roc() instead.}
\usage{
cvsl_plot_roc(cvsl, ...)
}
\arguments{
\item{cvsl}{CV.SuperLearner object}
\item{...}{Remaining arguments that are passed t... |
##########################################
#### GDAL resample
##########################################
#### | Project name: Urban modeling
#### | Creator: Mirza Cengic
#### | Contact: mirzaceng@gmail.com
##########################################
# Modified function for gdal resample, used to aggregate merg... | /Code_NL - Copy/GDAL/gdal_resample.R | no_license | LarsGorter024/Urban-Expansion-Models | R | false | false | 1,754 | r | ##########################################
#### GDAL resample
##########################################
#### | Project name: Urban modeling
#### | Creator: Mirza Cengic
#### | Contact: mirzaceng@gmail.com
##########################################
# Modified function for gdal resample, used to aggregate merg... |
# 简单的点图
dotchart(mtcars$mpg,labels=row.names(mtcars),cex=.7,
main="Gas Mileage for Car Models",
xlab="Miles Per Gallon")
# 分组、排序、着色后的点图
x<- mtcars[order(mtcars$mpg),]
x$cyl <-factor(x$cyl) #将数值向量cyl转换为一个因子
x$color[x$cyl==4] <-"red" # 添加一个字符向量(color)到数据框
x$color[x$cyl==6] <-"blue"
x$color[x$cyl==8] <... | /learn/点图.R | no_license | duyux/R | R | false | false | 740 | r | # 简单的点图
dotchart(mtcars$mpg,labels=row.names(mtcars),cex=.7,
main="Gas Mileage for Car Models",
xlab="Miles Per Gallon")
# 分组、排序、着色后的点图
x<- mtcars[order(mtcars$mpg),]
x$cyl <-factor(x$cyl) #将数值向量cyl转换为一个因子
x$color[x$cyl==4] <-"red" # 添加一个字符向量(color)到数据框
x$color[x$cyl==6] <-"blue"
x$color[x$cyl==8] <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.