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 |
|---|---|---|---|---|---|---|---|---|---|
##
##
##
source('AOI-geom.R')
source('AOI-context.maps.R')
| /AOI_management/main.R | no_license | ncss-tech/compare-psm | R | false | false | 64 | r | ##
##
##
source('AOI-geom.R')
source('AOI-context.maps.R')
|
context("5 - Plot functions results")
test_that("plot_single throws error without valid input", {
expect_error(plot_single("test_sign", "USP19", "centered"))
expect_error(plot_single(test_sign, USP19, "centered"))
expect_error(plot_single(test_sign, "USP19", centered))
expect_error(plot_single(test_sign, "USP1... | /tests/testthat/test_5_plot_functions_results.R | no_license | squirrelandr/DEP | R | false | false | 4,990 | r | context("5 - Plot functions results")
test_that("plot_single throws error without valid input", {
expect_error(plot_single("test_sign", "USP19", "centered"))
expect_error(plot_single(test_sign, USP19, "centered"))
expect_error(plot_single(test_sign, "USP19", centered))
expect_error(plot_single(test_sign, "USP1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_loading.R
\name{get_webscrapped_validationDTM}
\alias{get_webscrapped_validationDTM}
\title{read training data (document-term matrix corresponding to webscrapped labels)}
\usage{
get_webscrapped_validationDTM(
fname = system.file("extd... | /man/get_webscrapped_validationDTM.Rd | permissive | hrvg/wateReview | R | false | true | 677 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_loading.R
\name{get_webscrapped_validationDTM}
\alias{get_webscrapped_validationDTM}
\title{read training data (document-term matrix corresponding to webscrapped labels)}
\usage{
get_webscrapped_validationDTM(
fname = system.file("extd... |
library(testthat)
library(geotidy)
test_check("geotidy")
| /tests/testthat.R | permissive | etiennebr/geotidy | R | false | false | 58 | r | library(testthat)
library(geotidy)
test_check("geotidy")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fo_areapar.R
\name{fo_area_par}
\alias{fo_area_par}
\title{Parallelogram area}
\usage{
fo_area_par(xs, ys, r1, r2, alpha, beta)
}
\arguments{
\item{xs}{Left down apex on the X axis.}
\item{ys}{Left down apex on the Y axis.}
\it... | /man/fo_area_par.Rd | permissive | spacea/projekt.2019.pacocha | R | false | true | 649 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fo_areapar.R
\name{fo_area_par}
\alias{fo_area_par}
\title{Parallelogram area}
\usage{
fo_area_par(xs, ys, r1, r2, alpha, beta)
}
\arguments{
\item{xs}{Left down apex on the X axis.}
\item{ys}{Left down apex on the Y axis.}
\it... |
# fields is a package for analysis of spatial data written for
# the R software environment .
# Copyright (C) 2016
# University Corporation for Atmospheric Research (UCAR)
# Contact: Douglas Nychka, nychka@ucar.edu,
# National Center for Atmospheric Research, PO Box 3000, Boulder, CO 80307-3000
#
# This program is fre... | /fields/R/REMLtest.R | no_license | ingted/R-Examples | R | false | false | 6,986 | r | # fields is a package for analysis of spatial data written for
# the R software environment .
# Copyright (C) 2016
# University Corporation for Atmospheric Research (UCAR)
# Contact: Douglas Nychka, nychka@ucar.edu,
# National Center for Atmospheric Research, PO Box 3000, Boulder, CO 80307-3000
#
# This program is fre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rtiesShared.R
\name{removeDyads}
\alias{removeDyads}
\title{Remove data for specified dyads from a dataframe}
\usage{
removeDyads(
basedata,
dyadId,
dist_name,
obs_name,
dyadsToCut = NULL,
timeCut = NULL
)
}
\arguments{
\item{base... | /man/removeDyads.Rd | no_license | ebmtnprof/rties | R | false | true | 2,028 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rtiesShared.R
\name{removeDyads}
\alias{removeDyads}
\title{Remove data for specified dyads from a dataframe}
\usage{
removeDyads(
basedata,
dyadId,
dist_name,
obs_name,
dyadsToCut = NULL,
timeCut = NULL
)
}
\arguments{
\item{base... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/view_data.R
\name{print.view_data}
\alias{print.view_data}
\title{Prints a view_data Object}
\usage{
\method{print}{view_data}(x, ...)
}
\arguments{
\item{x}{The view_data object.}
\item{\ldots}{ignored}
}
\description{
Prints a view... | /man/print.view_data.Rd | no_license | nyc478/qdapDictionaries | R | false | false | 337 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/view_data.R
\name{print.view_data}
\alias{print.view_data}
\title{Prints a view_data Object}
\usage{
\method{print}{view_data}(x, ...)
}
\arguments{
\item{x}{The view_data object.}
\item{\ldots}{ignored}
}
\description{
Prints a view... |
clusters<-get.knclusters(as(nc, "data.frame"), knresults)
i<-which.max(knresults$statistic)
nc$KNcluster<-""
nc$KNcluster[clusters[[i]]]<-"cluster"
nc$KNcluster[clusters[[i]][1]]<-"centre"
nc$KNcluster<-as.factor(nc$KNcluster)
print(spplot(nc, "KNcluster", main="Kulldorff's method",
xlab="Easting", ylab="Northing"... | /docs/book/dismap-063.R | permissive | r-spatial/asdar-book.org | R | false | false | 371 | r |
clusters<-get.knclusters(as(nc, "data.frame"), knresults)
i<-which.max(knresults$statistic)
nc$KNcluster<-""
nc$KNcluster[clusters[[i]]]<-"cluster"
nc$KNcluster[clusters[[i]][1]]<-"centre"
nc$KNcluster<-as.factor(nc$KNcluster)
print(spplot(nc, "KNcluster", main="Kulldorff's method",
xlab="Easting", ylab="Northing"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context_class.R, R/count_method.R, R/view_method.R
\docType{class}
\name{context-class}
\alias{[,context,ANY,ANY,ANY-method}
\alias{[,context-method}
\alias{[[,context-method}
\alias{as.DataTables,context-method}
\alias{context-class}
\alias{... | /man/context-class.Rd | no_license | stefan-mueller/polmineR | R | false | true | 1,949 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/context_class.R, R/count_method.R, R/view_method.R
\docType{class}
\name{context-class}
\alias{[,context,ANY,ANY,ANY-method}
\alias{[,context-method}
\alias{[[,context-method}
\alias{as.DataTables,context-method}
\alias{context-class}
\alias{... |
###########################################################################################
### version info removed, have a look at the svn info
### TLE procedure
###
### kStar = k*- size of the initial random subsample;
### kTrim = trimming parameter: size of the C-steps random ... | /tlemix/R/TLE.R | no_license | ingted/R-Examples | R | false | false | 20,493 | r | ###########################################################################################
### version info removed, have a look at the svn info
### TLE procedure
###
### kStar = k*- size of the initial random subsample;
### kTrim = trimming parameter: size of the C-steps random ... |
devtools::load_all()
cumbria <- query_layer(
endpoint = endpoints$english_counties,
query = c(where = "cty19nm LIKE 'Cumbria'"), crs = 4326
)
# # returns records
# cumbria_ancient_woodlands <-
# query_layer(endpoint = endpoints$ancient_woodland_england,
# bounding_box = sf::st_bbox(cumbria))
#
# # ... | /development/issue with returnGeometry.R | permissive | monicalosu/getarc | R | false | false | 3,105 | r | devtools::load_all()
cumbria <- query_layer(
endpoint = endpoints$english_counties,
query = c(where = "cty19nm LIKE 'Cumbria'"), crs = 4326
)
# # returns records
# cumbria_ancient_woodlands <-
# query_layer(endpoint = endpoints$ancient_woodland_england,
# bounding_box = sf::st_bbox(cumbria))
#
# # ... |
# load packages
library(tidyverse)
# generate a toy data set where
# s = 1 perfectly predicts y = 1
data <- tribble(
~y, ~s,
1, 1,
1, 1,
1, 0,
1, 0,
1, 0,
0, 0
)
# exact test
fisher.test(x = data$s, y = data$y)
# logistic regression
fit1 <- glm(y ~ s, data = data, family = binomial())
f... | /memo/test-example.R | no_license | carlislerainey/wilks | R | false | false | 463 | r |
# load packages
library(tidyverse)
# generate a toy data set where
# s = 1 perfectly predicts y = 1
data <- tribble(
~y, ~s,
1, 1,
1, 1,
1, 0,
1, 0,
1, 0,
0, 0
)
# exact test
fisher.test(x = data$s, y = data$y)
# logistic regression
fit1 <- glm(y ~ s, data = data, family = binomial())
f... |
#' Get Content
#'
#' Get naver news content from links.
#'
#' @param url is naver news link.
#' @return Get data.frame(url,datetime,press,title,content).
#' @export
#' @import RCurl
#' @import xml2
#' @import rvest
#' @import stringr
getContent <- function(url = url) {
if(!identical(url,character(0))){
if (RCur... | /R/getContent.R | permissive | ilyeong-ai/N2H4 | R | false | false | 1,849 | r | #' Get Content
#'
#' Get naver news content from links.
#'
#' @param url is naver news link.
#' @return Get data.frame(url,datetime,press,title,content).
#' @export
#' @import RCurl
#' @import xml2
#' @import rvest
#' @import stringr
getContent <- function(url = url) {
if(!identical(url,character(0))){
if (RCur... |
source('D:/R-course/corr.R')
corr()
source('D:/R-course/complete.R')
corr()
source('D:/R-course/corr.R')
corr(1:4)
corr(500)
corr(threshold=500)
source('D:/R-course/corr.R')
corr(threshold=500)
source('D:/R-course/corr.R')
corr(threshold=500)
mdata <- read.csv("specdata/001.csv")
mdata
head(mdata)
mydata$sulfate
mdata$... | /praatr/history.R | no_license | sarkipo/archi-phon | R | false | false | 8,456 | r | source('D:/R-course/corr.R')
corr()
source('D:/R-course/complete.R')
corr()
source('D:/R-course/corr.R')
corr(1:4)
corr(500)
corr(threshold=500)
source('D:/R-course/corr.R')
corr(threshold=500)
source('D:/R-course/corr.R')
corr(threshold=500)
mdata <- read.csv("specdata/001.csv")
mdata
head(mdata)
mydata$sulfate
mdata$... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateNoise.R
\name{generateNoise}
\alias{generateNoise}
\title{Function to generate noisy data}
\usage{
generateNoise(n, response, family, gamma.variance, ...)
}
\arguments{
\item{n}{number of simulations to generate}
\item{response}{vect... | /man/generateNoise.Rd | no_license | lindesaysh/MRSea | R | false | true | 1,373 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateNoise.R
\name{generateNoise}
\alias{generateNoise}
\title{Function to generate noisy data}
\usage{
generateNoise(n, response, family, gamma.variance, ...)
}
\arguments{
\item{n}{number of simulations to generate}
\item{response}{vect... |
{
# ---- packages ----
require(spatstat)
require(sp)
require(here)
require(rgdal)
require(rspatial)
}
{
# ---- r_help_example ----
data(amacrine)
amacrine
L <- Lcross(amacrine, "off", "on")
plot(L)
}
# ---- sandbox ----
{
if (!require("rspatial")) devtools::install_github('rspatial/rspat... | /point_patterns/envelope_plot/envelope_plot_01.R | no_license | michaelfrancenelson/spatial_r_examples | R | false | false | 2,859 | r | {
# ---- packages ----
require(spatstat)
require(sp)
require(here)
require(rgdal)
require(rspatial)
}
{
# ---- r_help_example ----
data(amacrine)
amacrine
L <- Lcross(amacrine, "off", "on")
plot(L)
}
# ---- sandbox ----
{
if (!require("rspatial")) devtools::install_github('rspatial/rspat... |
logdata<- read.csv("titanic_varun.csv", header =TRUE )
(logdata)
summary(logdata)
boxplot(logdata)
hist(logdata$age)
logdata$age[is.na(logdata$age)]=29
hist(logdata$age)
summary(logdata)
structure(logdata)
read(logdata)
logdata$female=ifelse(logdata$sex=="female",1,0)
logdata$portc=ifelse(logdata$embarked=="c",1,0)
log... | /logarithmic_titanic.R | no_license | krishnan93/analytics | R | false | false | 1,831 | r | logdata<- read.csv("titanic_varun.csv", header =TRUE )
(logdata)
summary(logdata)
boxplot(logdata)
hist(logdata$age)
logdata$age[is.na(logdata$age)]=29
hist(logdata$age)
summary(logdata)
structure(logdata)
read(logdata)
logdata$female=ifelse(logdata$sex=="female",1,0)
logdata$portc=ifelse(logdata$embarked=="c",1,0)
log... |
#Figure 3.7
#http://www.amazon.com/Lattice-Multivariate-Data-Visualization-Use/dp/0387759689/ref=cm_cr_pr_product_top
require(rCharts)
data(Chem97, package = "mlmRev")
Chem97.mod <- transform(Chem97, gcsescore.trans = gcsescore^2.34)
require(plyr)
data <- ddply(Chem97.mod, .(gender, score), summarize,
... | /polycharts_versions/figure3_07.R | no_license | arturochian/rCharts_lattice_book | R | false | false | 851 | r | #Figure 3.7
#http://www.amazon.com/Lattice-Multivariate-Data-Visualization-Use/dp/0387759689/ref=cm_cr_pr_product_top
require(rCharts)
data(Chem97, package = "mlmRev")
Chem97.mod <- transform(Chem97, gcsescore.trans = gcsescore^2.34)
require(plyr)
data <- ddply(Chem97.mod, .(gender, score), summarize,
... |
# read it
d <- read.csv("household_power_consumption.txt", sep = ";",
na.strings = "?")
# only two days required
reduced_set <- d[(d$Date == "1/2/2007") | (d$Date == "2/2/2007"), ]
# get time
reduced_set$datetime <- strptime(paste(reduced_set$Date,
reduced_set$Time), "%d/%m/%Y %H:%M:%S")
# co... | /plot3.R | no_license | eakmail/ExData_Plotting1 | R | false | false | 872 | r | # read it
d <- read.csv("household_power_consumption.txt", sep = ";",
na.strings = "?")
# only two days required
reduced_set <- d[(d$Date == "1/2/2007") | (d$Date == "2/2/2007"), ]
# get time
reduced_set$datetime <- strptime(paste(reduced_set$Date,
reduced_set$Time), "%d/%m/%Y %H:%M:%S")
# co... |
setwd("U:/LearnDC ETL V2/DC CAS Exhibit/JSON ETL")
source("U:/R/tomkit.R")
library(jsonlite)
library(plyr)
lea_sped <- sqlQuery(dbrepcard_prod, "SELECT * FROM [dbo].[sped_apr_LEA_fy2012]")
lea_sped <- rename(lea_sped,c('fiscal_year'='year','value'='val'))
lea_sped$indicator[which(lea_sped$indicator=='3c_elem.math')]... | /SPED APR Exhibit/JSON ETL/lea_etl.R | no_license | DCActionforChildren/LearnDC_v2 | R | false | false | 2,031 | r | setwd("U:/LearnDC ETL V2/DC CAS Exhibit/JSON ETL")
source("U:/R/tomkit.R")
library(jsonlite)
library(plyr)
lea_sped <- sqlQuery(dbrepcard_prod, "SELECT * FROM [dbo].[sped_apr_LEA_fy2012]")
lea_sped <- rename(lea_sped,c('fiscal_year'='year','value'='val'))
lea_sped$indicator[which(lea_sped$indicator=='3c_elem.math')]... |
library(readr)
library(ggplot2)
CCA_ref <- read.csv("/media/dave/minION_Dave/Simulated_Mash/Metadata/CCATreesCombinedMetadata_altered_v1.csv")
Coverage <- read_csv("Desktop/FASTQC_all.csv")
species <- CCA_ref$CurrentName[match(Coverage$Name, CCA_ref$FieldID)]
Coverage$Name <- paste(Coverage$Name, species)
q <- ggp... | /CCA_FASTQC.R | no_license | David-Stanley/Honours_project | R | false | false | 991 | r | library(readr)
library(ggplot2)
CCA_ref <- read.csv("/media/dave/minION_Dave/Simulated_Mash/Metadata/CCATreesCombinedMetadata_altered_v1.csv")
Coverage <- read_csv("Desktop/FASTQC_all.csv")
species <- CCA_ref$CurrentName[match(Coverage$Name, CCA_ref$FieldID)]
Coverage$Name <- paste(Coverage$Name, species)
q <- ggp... |
setwd('C:/Users/Owner/Documents/GitHub/Fantasy-Football')
all_hist <- read.csv('prior runs.csv',stringsAsFactors=F)
write.csv(all_hist[-c(1:10),],'prior runs.csv',row.names=F) | /remove last run.R | no_license | ajreinhard/Fantasy-Football | R | false | false | 175 | r | setwd('C:/Users/Owner/Documents/GitHub/Fantasy-Football')
all_hist <- read.csv('prior runs.csv',stringsAsFactors=F)
write.csv(all_hist[-c(1:10),],'prior runs.csv',row.names=F) |
Optimize_Proposal_Variance <- function(GERGM_Object,
seed2,
possible.stats,
verbose,
max_updates = 20,
fine_grained_optimizat... | /R/Optimize_Proposal_Variance.R | no_license | fototo/GERGM | R | false | false | 5,811 | r | Optimize_Proposal_Variance <- function(GERGM_Object,
seed2,
possible.stats,
verbose,
max_updates = 20,
fine_grained_optimizat... |
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test SeasonListResponse")
model.instance <- SeasonListResponse$new()
test_that("@context", {
# tests for the property `@context` (array[character])
# The JSON-LD Context is used to prov... | /tests/testthat/test_season_list_response.R | no_license | Breeding-Insight/brapi-r-v2 | R | false | false | 1,034 | r | # Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test SeasonListResponse")
model.instance <- SeasonListResponse$new()
test_that("@context", {
# tests for the property `@context` (array[character])
# The JSON-LD Context is used to prov... |
# The script below reads in reads aligned to L1, creates a list of reads,
# calculates a coverage and quantile matrix
# Source start script
source('D:/L1polymORFgit/Scripts/_Start_L1polymORF.R')
# Load packages
library(ShortRead)
library(Rsamtools)
library(rtracklayer)
library(csaw)
library(GenomicRanges)
# Set fil... | /Scripts/CalcCoverMatReadList.R | no_license | hdohna/L1polymORFgit | R | false | false | 2,818 | r | # The script below reads in reads aligned to L1, creates a list of reads,
# calculates a coverage and quantile matrix
# Source start script
source('D:/L1polymORFgit/Scripts/_Start_L1polymORF.R')
# Load packages
library(ShortRead)
library(Rsamtools)
library(rtracklayer)
library(csaw)
library(GenomicRanges)
# Set fil... |
# Timing on Zeisel's brain cell dataset.
infile <- "expression_mRNA_17-Aug-2014.txt"
counts <- read.delim(infile, stringsAsFactors=FALSE, header=FALSE, row.names=1, skip=11)[,-1] # First column after row names is some useless filler.
# Setting up the different representations:
dense.counts <- as.matrix(counts)
stora... | /real/zeisel/zeisel_time.R | no_license | donkang75/MatrixEval2017 | R | false | false | 3,151 | r | # Timing on Zeisel's brain cell dataset.
infile <- "expression_mRNA_17-Aug-2014.txt"
counts <- read.delim(infile, stringsAsFactors=FALSE, header=FALSE, row.names=1, skip=11)[,-1] # First column after row names is some useless filler.
# Setting up the different representations:
dense.counts <- as.matrix(counts)
stora... |
\name{as.ursa}
\alias{as.ursa}
\alias{as_ursa}
\title{
Create raster image from R objects or GDAL raster files.
}
\description{
\code{as.ursa} converts \R \pkg{base} objects \code{\link[base]{matrix}}, \code{\link[base]{array}}, \code{\link[base]{numeric}}, \code{\link[base]{data.frame}} \code{\link[base]{list}}, \pkg{... | /man/ursa_as.Rd | no_license | nplatonov/ursa | R | false | false | 5,843 | rd | \name{as.ursa}
\alias{as.ursa}
\alias{as_ursa}
\title{
Create raster image from R objects or GDAL raster files.
}
\description{
\code{as.ursa} converts \R \pkg{base} objects \code{\link[base]{matrix}}, \code{\link[base]{array}}, \code{\link[base]{numeric}}, \code{\link[base]{data.frame}} \code{\link[base]{list}}, \pkg{... |
#Load data
BryophytePresence <- readRDS("Data/BryophytePresence.rds")
#Subset moss data
MossPresence <- subset(BryophytePresence, BryophytePresence$Group=="Mosses")
#Create occurrence by cell matrix by reshaping dataframe, then convert to presence-absence matrix
require(reshape2)
MossRichness <- tally(group_by(MossPr... | /Scripts/ii.BetaDiversity/MossDiversity.R | no_license | KerkhoffLab/Bryophytes | R | false | false | 1,165 | r | #Load data
BryophytePresence <- readRDS("Data/BryophytePresence.rds")
#Subset moss data
MossPresence <- subset(BryophytePresence, BryophytePresence$Group=="Mosses")
#Create occurrence by cell matrix by reshaping dataframe, then convert to presence-absence matrix
require(reshape2)
MossRichness <- tally(group_by(MossPr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npm_add_module.R
\name{install_module}
\alias{install_module}
\title{Add a module to the Corde Package}
\usage{
install_module(module, npm_opt = c())
}
\arguments{
\item{module}{module name}
\item{npm_opt}{Vector of options passed to \verb{n... | /man/install_module.Rd | permissive | jimsforks/cordes | R | false | true | 385 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/npm_add_module.R
\name{install_module}
\alias{install_module}
\title{Add a module to the Corde Package}
\usage{
install_module(module, npm_opt = c())
}
\arguments{
\item{module}{module name}
\item{npm_opt}{Vector of options passed to \verb{n... |
######################################################################################
# This function calculates tetrachoric correlations among skills ##
# Input is an object generated by din function ##
skill.cor <- function( object){
options( warn=-1)
... | /R/skill.cor.R | no_license | parksejin/CDM | R | false | false | 4,801 | r |
######################################################################################
# This function calculates tetrachoric correlations among skills ##
# Input is an object generated by din function ##
skill.cor <- function( object){
options( warn=-1)
... |
testlist <- list(lims = structure(c(1.15963938407482e-152, 1.21362470896152e+132, 2.93051376459114e+133, 6.48706195472848e+174, 0, 1.01184644268287e-320 ), .Dim = c(6L, 1L)), points = structure(c(2.08227334401466e+262, 1.15956898003414e-152, 1.07363200082783e-277, 1.4072470568e+248, 1.42963193825386e+248, 1.76426106... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612987840-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 1,461 | r | testlist <- list(lims = structure(c(1.15963938407482e-152, 1.21362470896152e+132, 2.93051376459114e+133, 6.48706195472848e+174, 0, 1.01184644268287e-320 ), .Dim = c(6L, 1L)), points = structure(c(2.08227334401466e+262, 1.15956898003414e-152, 1.07363200082783e-277, 1.4072470568e+248, 1.42963193825386e+248, 1.76426106... |
#Author: Kunal Bhutani
#Date: May 6, 2015
#Purpose: Find changepoints that indicate a shift in metabolite levels
library(changepoint)
# Load data
source("R/metabolomics/load.R")
# Output Directory
local.path = config$paths$local
today <- Sys.Date()
date = format(today, format="%m%d%Y")
analysis.path = file.path(loca... | /R/metabolomics/modeling/changepoint.R | no_license | Schork-Lab/tanner | R | false | false | 4,683 | r | #Author: Kunal Bhutani
#Date: May 6, 2015
#Purpose: Find changepoints that indicate a shift in metabolite levels
library(changepoint)
# Load data
source("R/metabolomics/load.R")
# Output Directory
local.path = config$paths$local
today <- Sys.Date()
date = format(today, format="%m%d%Y")
analysis.path = file.path(loca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/California.R
\name{CA_sales}
\alias{CA_sales}
\title{California Sales Tax}
\usage{
CA_sales(x)
}
\arguments{
\item{x}{is the value before sales tax}
}
\value{
total with sales tax
}
\description{
Takes any value that is inputted and multiples... | /SalesTax/man/CA_sales.Rd | no_license | ddang4370/Final-Project | R | false | true | 354 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/California.R
\name{CA_sales}
\alias{CA_sales}
\title{California Sales Tax}
\usage{
CA_sales(x)
}
\arguments{
\item{x}{is the value before sales tax}
}
\value{
total with sales tax
}
\description{
Takes any value that is inputted and multiples... |
#####################################
# Principal Component Analysis(PCA) #
# 2018-08-08 Tobigs Week 04 Class #
#####################################
# Set Up
rm(list=ls())
cur_dir = getwd()
setwd(cur_dir)
if(!require(rgl)) install.packages("rgl"); library(rgl)
if(!require(XQuartz)) install.packages("XQuartz"); libr... | /week4/PCA/pca_R.R | no_license | YunhoJung/tobigs-2018 | R | false | false | 6,780 | r | #####################################
# Principal Component Analysis(PCA) #
# 2018-08-08 Tobigs Week 04 Class #
#####################################
# Set Up
rm(list=ls())
cur_dir = getwd()
setwd(cur_dir)
if(!require(rgl)) install.packages("rgl"); library(rgl)
if(!require(XQuartz)) install.packages("XQuartz"); libr... |
#
# Load Bangladesh Maternal Mortality Survey 2001
# Pre-processing to
# compare to the district rates reported in Ahmed and Hill (2010)
#
# Chris Jochem
# November 2014
#
# load the file containing pathnames
source("config.r")
library(foreign)
# read HH data
hh <- read.dta(paste(path, "BDHH4AFL.dta", sep=""))
| /bmms_2001_work.r | no_license | wcjochem/BMMS | R | false | false | 317 | r | #
# Load Bangladesh Maternal Mortality Survey 2001
# Pre-processing to
# compare to the district rates reported in Ahmed and Hill (2010)
#
# Chris Jochem
# November 2014
#
# load the file containing pathnames
source("config.r")
library(foreign)
# read HH data
hh <- read.dta(paste(path, "BDHH4AFL.dta", sep=""))
|
library(RCurl)
library(rgdal)
library(GSIF)
library(raster)
library(plotKML)
library(XML)
library(lattice)
library(aqp)
gdal_translate = "gdal_translate"
gdalwarp = "gdalwarp"
gdalinfo = "gdalinfo"
sg.ftp <- "ftp://ftp.soilgrids.org/data/recent/"
filenames = getURL(sg.ftp, ftp.use.epsv = TRUE, dirlistonly = TRUE)
fil... | /make-isric-taxousda-subsets.r | no_license | alexgreenlon/meso_biogeo | R | false | false | 3,376 | r | library(RCurl)
library(rgdal)
library(GSIF)
library(raster)
library(plotKML)
library(XML)
library(lattice)
library(aqp)
gdal_translate = "gdal_translate"
gdalwarp = "gdalwarp"
gdalinfo = "gdalinfo"
sg.ftp <- "ftp://ftp.soilgrids.org/data/recent/"
filenames = getURL(sg.ftp, ftp.use.epsv = TRUE, dirlistonly = TRUE)
fil... |
#' @title ocr a pdf file
#' @description wrap of the ocr wrapper for images
#' @param pdf_file pdf file location
#' @param hmax maximum box height to include
#' @param cropped_tm_dir temporary dir for cropped img
#' @param azure_creds azure credential
#' @param box_push_to_az whether to push the individual boxes ... | /R/read_pdf.R | permissive | Atan1988/alvision | R | false | false | 7,338 | r | #' @title ocr a pdf file
#' @description wrap of the ocr wrapper for images
#' @param pdf_file pdf file location
#' @param hmax maximum box height to include
#' @param cropped_tm_dir temporary dir for cropped img
#' @param azure_creds azure credential
#' @param box_push_to_az whether to push the individual boxes ... |
# This line of code installs the pacman page if you do not have it installed -
# if you do, it simply loads the package
if (!require(pacman))
install.packages("pacman")
#--------- 1. LIBRARIES INLADEN -------------
pacman::p_load(
"rstudioapi",
"dplyr",
"tidyr",
"gapminder",
"ggalt",
"eurostat",
"color... | /ShinyApp.R | no_license | HvAMinor/vaAllStars | R | false | false | 26,687 | r | # This line of code installs the pacman page if you do not have it installed -
# if you do, it simply loads the package
if (!require(pacman))
install.packages("pacman")
#--------- 1. LIBRARIES INLADEN -------------
pacman::p_load(
"rstudioapi",
"dplyr",
"tidyr",
"gapminder",
"ggalt",
"eurostat",
"color... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22807296989234e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613105921-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170339e+295, 1.22807296989234e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expdesign.R
\name{ss.2proportion}
\alias{ss.2proportion}
\title{A function to determine the sample size required to estimate the difference of two proportions given a desired confidence level and interval half width}
\usage{
ss.2proportion(
... | /man/ss.2proportion.Rd | no_license | fzettelmeyer/mktg482 | R | false | true | 957 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/expdesign.R
\name{ss.2proportion}
\alias{ss.2proportion}
\title{A function to determine the sample size required to estimate the difference of two proportions given a desired confidence level and interval half width}
\usage{
ss.2proportion(
... |
library(codyn)
### Name: cyclic_shift
### Title: Cyclic Shift Permutations
### Aliases: cyclic_shift temporal_torus_translation
### ** Examples
# Calculate a covariance matrix on a null community
data(knz_001d)
a1_cyclic <- cyclic_shift(subset(knz_001d, subplot == "A_1"),
time.var = "year",
... | /data/genthat_extracted_code/codyn/examples/cyclic_shift.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 476 | r | library(codyn)
### Name: cyclic_shift
### Title: Cyclic Shift Permutations
### Aliases: cyclic_shift temporal_torus_translation
### ** Examples
# Calculate a covariance matrix on a null community
data(knz_001d)
a1_cyclic <- cyclic_shift(subset(knz_001d, subplot == "A_1"),
time.var = "year",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_get_sagemaker_servicecatalog_portfolio_status}
\alias{sagemaker_get_sagemaker_servicecatalog_portfolio_status}
\title{Gets the status of Service Catalog in SageMaker}
\usage{
sagemaker_get_sagemaker_serv... | /cran/paws.machine.learning/man/sagemaker_get_sagemaker_servicecatalog_portfolio_status.Rd | permissive | paws-r/paws | R | false | true | 614 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sagemaker_operations.R
\name{sagemaker_get_sagemaker_servicecatalog_portfolio_status}
\alias{sagemaker_get_sagemaker_servicecatalog_portfolio_status}
\title{Gets the status of Service Catalog in SageMaker}
\usage{
sagemaker_get_sagemaker_serv... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{load_RefAreas}
\alias{load_RefAreas}
\title{Load CCAMLR Reference Areas}
\usage{
load_RefAreas(p4s = "+proj=laea +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
}
\arguments{
\item{p4s}... | /man/load_RefAreas.Rd | no_license | rsbivand/CCAMLRGIS | R | false | true | 1,305 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{load_RefAreas}
\alias{load_RefAreas}
\title{Load CCAMLR Reference Areas}
\usage{
load_RefAreas(p4s = "+proj=laea +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs")
}
\arguments{
\item{p4s}... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/ds.isValid.R
\name{ds.isValid}
\alias{ds.isValid}
\title{Checks if an object is valid}
\usage{
ds.isValid(x = NULL, datasources = NULL)
}
\arguments{
\item{x}{a character, the name of a vector, dataframe or matrix.}
\item{datasources... | /man/ds.isValid.Rd | no_license | interconnectDiabetes/dsBaseClient | R | false | false | 1,671 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/ds.isValid.R
\name{ds.isValid}
\alias{ds.isValid}
\title{Checks if an object is valid}
\usage{
ds.isValid(x = NULL, datasources = NULL)
}
\arguments{
\item{x}{a character, the name of a vector, dataframe or matrix.}
\item{datasources... |
#' Options and environment variables used by the 'progressr' packages
#'
#' Below are environment variables and \R options that are used by the
#' \pkg{progressr} package.
#
#' Below are all \R options that are currently used by the \pkg{progressr} package.\cr
#' \cr
#' \emph{WARNING: Note that the names and the defaul... | /R/options.R | no_license | SALOQUELO/PROGRESS | R | false | false | 9,083 | r | #' Options and environment variables used by the 'progressr' packages
#'
#' Below are environment variables and \R options that are used by the
#' \pkg{progressr} package.
#
#' Below are all \R options that are currently used by the \pkg{progressr} package.\cr
#' \cr
#' \emph{WARNING: Note that the names and the defaul... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MRC.R
\name{MRC}
\alias{MRC}
\title{Compute power for Multiple Regression with up to Five Predictors
Example code below for three predictors. Expand as needed for four or five}
\usage{
MRC(ry1 = NULL, ry2 = NULL, ry3 = NULL, ry4 = NULL... | /man/MRC.Rd | permissive | nbrosowsky/pwr2ppl | R | false | true | 1,956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MRC.R
\name{MRC}
\alias{MRC}
\title{Compute power for Multiple Regression with up to Five Predictors
Example code below for three predictors. Expand as needed for four or five}
\usage{
MRC(ry1 = NULL, ry2 = NULL, ry3 = NULL, ry4 = NULL... |
hypervolume_set_n_intersection <- function (hv_list, num.points.max = NULL, verbose = TRUE,
distance.factor = 1, check.hyperplane = FALSE) {
########################################################################################################################
np_list <... | /R/hypervolume_set_n_intersection.R | no_license | bblonder/hypervolume | R | false | false | 7,122 | r | hypervolume_set_n_intersection <- function (hv_list, num.points.max = NULL, verbose = TRUE,
distance.factor = 1, check.hyperplane = FALSE) {
########################################################################################################################
np_list <... |
# library('rgdal')
# library(raster)
#'
#' Title
#'
#' @param trollsim data.frame - Forest simulated with TROLL or trollsim object
#' @param coords
#' @param plotnum
#' @param pathshp
#' @param isUTM
#'
#' @return
#' @export
#'
#' @examples
# f <- convertutm(forest, plotnum = 5)# Supposed to be done already
damage_lo... | /R/damage_logging.R | no_license | Riodinino/TROLLmsc | R | false | false | 8,214 | r | # library('rgdal')
# library(raster)
#'
#' Title
#'
#' @param trollsim data.frame - Forest simulated with TROLL or trollsim object
#' @param coords
#' @param plotnum
#' @param pathshp
#' @param isUTM
#'
#' @return
#' @export
#'
#' @examples
# f <- convertutm(forest, plotnum = 5)# Supposed to be done already
damage_lo... |
#' Function to use a test set for predictions within a
#' \strong{normalweatherr_model} object.
#'
#' @author Stuart K. Grange
#'
#' @param A \strong{normalweatherr_model} object.
#'
#' @return Data frame.
#'
#' @export
predict_using_test_set <- function(list_model) {
if (!class(list_model) == "normalweath... | /R/predict_using_test_set.R | no_license | skgrange/normalweatherr | R | false | false | 908 | r | #' Function to use a test set for predictions within a
#' \strong{normalweatherr_model} object.
#'
#' @author Stuart K. Grange
#'
#' @param A \strong{normalweatherr_model} object.
#'
#' @return Data frame.
#'
#' @export
predict_using_test_set <- function(list_model) {
if (!class(list_model) == "normalweath... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optim-rprop.R
\name{optim_rprop}
\alias{optim_rprop}
\title{Implements the resilient backpropagation algorithm.}
\usage{
optim_rprop(params, lr = 0.01, etas = c(0.5, 1.2), step_sizes = c(1e-06, 50))
}
\arguments{
\item{params}{(iterable): ite... | /man/optim_rprop.Rd | permissive | ashudva/torch | R | false | true | 1,046 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optim-rprop.R
\name{optim_rprop}
\alias{optim_rprop}
\title{Implements the resilient backpropagation algorithm.}
\usage{
optim_rprop(params, lr = 0.01, etas = c(0.5, 1.2), step_sizes = c(1e-06, 50))
}
\arguments{
\item{params}{(iterable): ite... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable_transformation.R
\name{f_mx}
\alias{f_mx}
\title{Conversion matrix}
\usage{
f_mx(s_k)
}
\arguments{
\item{s_k}{number of knots}
}
\value{
\code{m_x}
}
\description{
formulate m_x,
}
\keyword{Variable}
\keyword{internal}
\keyword{tran... | /man/f_mx.Rd | permissive | ZhuolinSong/Length-penalty-for-principal-curve | R | false | true | 332 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable_transformation.R
\name{f_mx}
\alias{f_mx}
\title{Conversion matrix}
\usage{
f_mx(s_k)
}
\arguments{
\item{s_k}{number of knots}
}
\value{
\code{m_x}
}
\description{
formulate m_x,
}
\keyword{Variable}
\keyword{internal}
\keyword{tran... |
# First function creates an "envelope" with the matrix called in parameter
# to calculate the inversed matrix and save it in this envelope. It's 3 function listed
makeCacheMatrix <- function(x = matrix())
{
m <- NULL
## First function is called to set the inversed matrix
set_solved <- function(var1) {
... | /cachematrix.R | no_license | SimonFili/ProgrammingAssignment2 | R | false | false | 2,495 | r | # First function creates an "envelope" with the matrix called in parameter
# to calculate the inversed matrix and save it in this envelope. It's 3 function listed
makeCacheMatrix <- function(x = matrix())
{
m <- NULL
## First function is called to set the inversed matrix
set_solved <- function(var1) {
... |
# Stores summary information in a list.
netflix_titles <- read.csv("data/netflix_titles.csv")
library(tidyverse)
summary_info <- list()
summary_info$num_observations <- nrow(netflix_titles)
summary_info$num_movies <- netflix_titles %>%
filter(type == "Movie") %>%
nrow()
summary_info$num_tv_show <- netflix_titl... | /exploratory analysis content/summary information.R | no_license | mollykstark/info201final | R | false | false | 996 | r | # Stores summary information in a list.
netflix_titles <- read.csv("data/netflix_titles.csv")
library(tidyverse)
summary_info <- list()
summary_info$num_observations <- nrow(netflix_titles)
summary_info$num_movies <- netflix_titles %>%
filter(type == "Movie") %>%
nrow()
summary_info$num_tv_show <- netflix_titl... |
#' Print a Diagnostics Report
#'
#' Print a diagnostics report, summarizing the state of a project using `renv`.
#' This report can occasionally be useful when diagnosing issues with `renv`.
#'
#' @inheritParams renv-params
#'
#' @return This function is normally called for its side effects.
#'
#' @export
diagnostics ... | /R/diagnostics.R | no_license | gaborcsardi/renv | R | false | false | 6,677 | r |
#' Print a Diagnostics Report
#'
#' Print a diagnostics report, summarizing the state of a project using `renv`.
#' This report can occasionally be useful when diagnosing issues with `renv`.
#'
#' @inheritParams renv-params
#'
#' @return This function is normally called for its side effects.
#'
#' @export
diagnostics ... |
library(shiny)
require(data.table)
require(dplyr)
source("Common.R")
nGramDirectory<-"Data"
ngt1<-read1GramTable(nGramDirectory,"N1Grams.csv")
ngt2<-readNGramDataTable(nGramDirectory,"N2Grams.csv")
ngt3<-readNGramDataTable(nGramDirectory,"N3Grams.csv")
head(ngt1)
head(ngt2)
head(ngt2)
Sys.sleep(1)
shinyServer(
... | /WordPredictionApp/server.R | no_license | ThomasMey123/DataScienceCapStone | R | false | false | 909 | r | library(shiny)
require(data.table)
require(dplyr)
source("Common.R")
nGramDirectory<-"Data"
ngt1<-read1GramTable(nGramDirectory,"N1Grams.csv")
ngt2<-readNGramDataTable(nGramDirectory,"N2Grams.csv")
ngt3<-readNGramDataTable(nGramDirectory,"N3Grams.csv")
head(ngt1)
head(ngt2)
head(ngt2)
Sys.sleep(1)
shinyServer(
... |
library(derivmkts)
### Name: quincunx
### Title: Quincunx simulation
### Aliases: quincunx
### ** Examples
## These examples will not display correctly within RStudio unless
## the plot window is large
quincunx(delay=0)
quincunx(n=10, numballs=200, delay=0)
quincunx(n=20, numballs=200, delay=0, probright=0.7)
| /data/genthat_extracted_code/derivmkts/examples/quincunx.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 320 | r | library(derivmkts)
### Name: quincunx
### Title: Quincunx simulation
### Aliases: quincunx
### ** Examples
## These examples will not display correctly within RStudio unless
## the plot window is large
quincunx(delay=0)
quincunx(n=10, numballs=200, delay=0)
quincunx(n=20, numballs=200, delay=0, probright=0.7)
|
## Put comments here that give an overall description of what your
## functions do
## This function creates a list of functions to set the matrix data, get it,
## set and save the inverse of this matrix and get the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
invMat <- NULL
set <- function(x_mat) {... | /cachematrix.R | no_license | iyengar73/ProgrammingAssignment2 | R | false | false | 1,169 | r | ## Put comments here that give an overall description of what your
## functions do
## This function creates a list of functions to set the matrix data, get it,
## set and save the inverse of this matrix and get the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
invMat <- NULL
set <- function(x_mat) {... |
plot2 <- function() {
colNames = c("Date", "Time", "GlobalActivePower", "GlobalReactivePower", "Voltage", "GlobalIntensity", "SubMetering1", "SubMetering2", "SubMetering3")
colClasses = c("character", "character", rep("numeric",7) )
data <- read.table("household_power_consumption.txt", header=TRUE, col.names=colN... | /plot2.R | no_license | VinayPrakashSingh/ExData_Plotting1 | R | false | false | 891 | r | plot2 <- function() {
colNames = c("Date", "Time", "GlobalActivePower", "GlobalReactivePower", "Voltage", "GlobalIntensity", "SubMetering1", "SubMetering2", "SubMetering3")
colClasses = c("character", "character", rep("numeric",7) )
data <- read.table("household_power_consumption.txt", header=TRUE, col.names=colN... |
library(ddpcr)
### Name: plot.pnpp_experiment
### Title: Plot a ddPCR plate of type PNPP experiment
### Aliases: plot.pnpp_experiment
### Keywords: internal
### ** Examples
## Not run:
##D plate <- new_plate(sample_data_dir(), type = plate_types$pnpp_experiment)
##D positive_dim(plate) <- "Y"
##D plot(plate)
##D p... | /data/genthat_extracted_code/ddpcr/examples/plot.pnpp_experiment.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 433 | r | library(ddpcr)
### Name: plot.pnpp_experiment
### Title: Plot a ddPCR plate of type PNPP experiment
### Aliases: plot.pnpp_experiment
### Keywords: internal
### ** Examples
## Not run:
##D plate <- new_plate(sample_data_dir(), type = plate_types$pnpp_experiment)
##D positive_dim(plate) <- "Y"
##D plot(plate)
##D p... |
# Get GO terms for gene sets per brain region
source("C:/Users/dkeo/surfdrive/polyQ_coexpression/PolyQ_scripts/baseScript.R")
library("RDAVIDWebService")
#Prepare data and functions
structureIDs <- structureIDs[!structureIDs$name %in% c("brain"), ]
structureIDs <- rbind(structureIDs, c(NA, "HDregion", "HD_region"))
re... | /goterms.R | no_license | arlinkeo/polyQ | R | false | false | 2,123 | r | # Get GO terms for gene sets per brain region
source("C:/Users/dkeo/surfdrive/polyQ_coexpression/PolyQ_scripts/baseScript.R")
library("RDAVIDWebService")
#Prepare data and functions
structureIDs <- structureIDs[!structureIDs$name %in% c("brain"), ]
structureIDs <- rbind(structureIDs, c(NA, "HDregion", "HD_region"))
re... |
#Set our working directory.
#This helps avoid confusion if our working directory is
#not our site because of other projects we were
#working on at the time.
setwd("/Documents/Travail/R/github/personal_site")
#render your sweet site.
rmarkdown::render_site()
| /build_site.R | no_license | Patanouque/personal_site | R | false | false | 264 | r | #Set our working directory.
#This helps avoid confusion if our working directory is
#not our site because of other projects we were
#working on at the time.
setwd("/Documents/Travail/R/github/personal_site")
#render your sweet site.
rmarkdown::render_site()
|
#Load and concatenate a bunch of forecast data by station
#Set static variables & load libraries
root = 'C:/Users/lllanos/Desktop/Analisis Pronosticos CPT/colombia_deps/All/'
months = c('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic')
#Load observations (pull out 2009 to 2011)
obsv = read.csv(... | /forescast/Tabla_summary_CPT.R | no_license | lizllanos/Otros | R | false | false | 10,029 | r | #Load and concatenate a bunch of forecast data by station
#Set static variables & load libraries
root = 'C:/Users/lllanos/Desktop/Analisis Pronosticos CPT/colombia_deps/All/'
months = c('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic')
#Load observations (pull out 2009 to 2011)
obsv = read.csv(... |
## Gene co-expression network (Fig. 6c in Ostria-Gallardo et al)##
> library(WGCNA)
> options(stringsAsFactors=F)
> enableWGCNAThreads()
## Allowing parallel execution with up to 3 working processes.
> library(igraph)
## Read in data
> data<-read.csv("Gave.interestORF.light.csv",sep=",",quote="")
> row.na... | /Gene co-expression network Fig. 6c_Ostria-Gallardo et al.r | no_license | eostria/Gavel | R | false | false | 2,640 | r | ## Gene co-expression network (Fig. 6c in Ostria-Gallardo et al)##
> library(WGCNA)
> options(stringsAsFactors=F)
> enableWGCNAThreads()
## Allowing parallel execution with up to 3 working processes.
> library(igraph)
## Read in data
> data<-read.csv("Gave.interestORF.light.csv",sep=",",quote="")
> row.na... |
# Exploratory Data Analysis, course project 1, plot 3
# This code uses the sqldf package, use the commented-out command below if needed.
#install.packages("sqldf")
library(sqldf)
data <- read.csv.sql("household_power_consumption.txt",sep=";",
sql = "select * from file where Date='1/2/2007' or Dat... | /plot3.R | no_license | okedem/ExData_Plotting1 | R | false | false | 836 | r | # Exploratory Data Analysis, course project 1, plot 3
# This code uses the sqldf package, use the commented-out command below if needed.
#install.packages("sqldf")
library(sqldf)
data <- read.csv.sql("household_power_consumption.txt",sep=";",
sql = "select * from file where Date='1/2/2007' or Dat... |
\name{plot.locppm}
\alias{plot.locppm}
\alias{contour.locppm}
\title{
Plot a Locally Fitted Poisson or Gibbs Model
}
\description{
Plot an object of class \code{"locppm"}
representing a locally-fitted Poisson or Gibbs point process model.
}
\usage{
\method{plot}{locppm}(x, \dots, what = "cg", which = NULL)
\meth... | /spatstat.local/man/plot.locppm.Rd | no_license | albrizre/spatstat.revdep | R | false | false | 2,138 | rd | \name{plot.locppm}
\alias{plot.locppm}
\alias{contour.locppm}
\title{
Plot a Locally Fitted Poisson or Gibbs Model
}
\description{
Plot an object of class \code{"locppm"}
representing a locally-fitted Poisson or Gibbs point process model.
}
\usage{
\method{plot}{locppm}(x, \dots, what = "cg", which = NULL)
\meth... |
library(plot3D)
library(rgl)
library(spatstat)
if (!(exists("plot_to_file"))) {
plot_to_file = 0
}
beta_process <- 0
gamma_process <- 1
high_resolution <- 1
process <- beta_process
process <- gamma_process
w_scale = 1
if (high_resolution) {
w_resolution = 200
}
if (process == gamma_process) {
w_scale = 2
w_... | /completely-random-measure/completely_random_measure.R | no_license | mrquincle/thesis-visualizations | R | false | false | 2,711 | r | library(plot3D)
library(rgl)
library(spatstat)
if (!(exists("plot_to_file"))) {
plot_to_file = 0
}
beta_process <- 0
gamma_process <- 1
high_resolution <- 1
process <- beta_process
process <- gamma_process
w_scale = 1
if (high_resolution) {
w_resolution = 200
}
if (process == gamma_process) {
w_scale = 2
w_... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/lung_other.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/lung_other/lung_other... | /Model/EN/Correlation/lung_other/lung_other_028.R | no_license | leon1003/QSMART | R | false | false | 372 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/lung_other.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=FALSE)
sink('./Model/EN/Correlation/lung_other/lung_other... |
library(infoDecompuTE)
### Name: getVMat.onePhase
### Title: Get the Variance Matrices for Single-Phase experiment
### Aliases: getVMat.onePhase
### ** Examples
design1 <- local({
Ani = as.factor(LETTERS[c(1,2,3,4,
5,6,7,8)])
Trt = as.factor(letters[c(1,1,1,1,
... | /data/genthat_extracted_code/infoDecompuTE/examples/getVMat.onePhase.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 622 | r | library(infoDecompuTE)
### Name: getVMat.onePhase
### Title: Get the Variance Matrices for Single-Phase experiment
### Aliases: getVMat.onePhase
### ** Examples
design1 <- local({
Ani = as.factor(LETTERS[c(1,2,3,4,
5,6,7,8)])
Trt = as.factor(letters[c(1,1,1,1,
... |
x <- runif(1)
x
if( x > 0 ) print (abs(x))
if ( x < 0 ) {
print(x)
print(" x is positive ")
print(abs(x))
} else {
print(x)
print(" x is negative ")
print(x)
}
if ( x < 0.5 ) print(1-x) else print(x)
ifelse ( x < 0.5, 1-x, x)
data <- c(1:10)
data
switch(data[3],
"1" = print("one"),
"2" = p... | /work/r데이터분석_예제파일/예제/2_25.R | no_license | bass4th/R | R | false | false | 372 | r | x <- runif(1)
x
if( x > 0 ) print (abs(x))
if ( x < 0 ) {
print(x)
print(" x is positive ")
print(abs(x))
} else {
print(x)
print(" x is negative ")
print(x)
}
if ( x < 0.5 ) print(1-x) else print(x)
ifelse ( x < 0.5, 1-x, x)
data <- c(1:10)
data
switch(data[3],
"1" = print("one"),
"2" = p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table2_7.R
\docType{data}
\name{Table2_7}
\alias{Table2_7}
\title{Table 2.7
Labor Force Participation Data for U.S. for 1980 to 2006}
\format{
\itemize{
\item \strong{Years}
\item \strong{TPFTCH : }Civilian labor force participation rate, mal... | /man/Table2_7.Rd | no_license | brunoruas2/gujarati | R | false | true | 883 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table2_7.R
\docType{data}
\name{Table2_7}
\alias{Table2_7}
\title{Table 2.7
Labor Force Participation Data for U.S. for 1980 to 2006}
\format{
\itemize{
\item \strong{Years}
\item \strong{TPFTCH : }Civilian labor force participation rate, mal... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miss.glm.model.select.R
\name{miss.glm.model.select}
\alias{miss.glm.model.select}
\title{miss.glm.model.select}
\usage{
miss.glm.model.select(Y, X, seed = NA)
}
\arguments{
\item{Y}{Binary response vector \eqn{N \times 1}{N * 1}}
\item{X}{D... | /man/miss.glm.model.select.Rd | no_license | wjiang94/misaem | R | false | true | 1,343 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miss.glm.model.select.R
\name{miss.glm.model.select}
\alias{miss.glm.model.select}
\title{miss.glm.model.select}
\usage{
miss.glm.model.select(Y, X, seed = NA)
}
\arguments{
\item{Y}{Binary response vector \eqn{N \times 1}{N * 1}}
\item{X}{D... |
# FUNCTION
# - arguments: dataframe taken from explore or analyze functions
# - returns: correlation heatmap of the genesets involved
# NOTES
# - clustering method choices: "ward.D", "ward.D2", "single", "complete",
# "average", "mcquitty", "median", "centroid"
#' Draw a heatmap of a pcxn object
#'
#' @param df pcxn... | /R/heatmap_pcxn.R | permissive | hidelab/pcxn.db | R | false | false | 2,300 | r | # FUNCTION
# - arguments: dataframe taken from explore or analyze functions
# - returns: correlation heatmap of the genesets involved
# NOTES
# - clustering method choices: "ward.D", "ward.D2", "single", "complete",
# "average", "mcquitty", "median", "centroid"
#' Draw a heatmap of a pcxn object
#'
#' @param df pcxn... |
#=========================================================================
#
# Copyright Insight Software Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www... | /Examples/HelloWorld/HelloWorld.R | permissive | Booyam/SimpleITK | R | false | false | 1,897 | r | #=========================================================================
#
# Copyright Insight Software Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www... |
library(ggplot2)
library(gridExtra)
library(dplyr)
library(marima)
source('patterns.R')
############################################################################
############################ Beahaviour: Eating ############################
############################################################################
... | /group_ts.R | no_license | sofiar/model_for_acc | R | false | false | 2,507 | r | library(ggplot2)
library(gridExtra)
library(dplyr)
library(marima)
source('patterns.R')
############################################################################
############################ Beahaviour: Eating ############################
############################################################################
... |
#' Save package figure to PNG.
#'
#' This is a simple wrapper function for \code{ggsave} to make a 4:3 ratio image that seems to produce
#' saved PNGs that look reasonable from figures generated in this package.
#'
#' @param filename The desired PNG filename, with extension
#' @param figobject The figure object (... | /R/figuresave.R | no_license | rickeycarter/mrmctools | R | false | false | 696 | r | #' Save package figure to PNG.
#'
#' This is a simple wrapper function for \code{ggsave} to make a 4:3 ratio image that seems to produce
#' saved PNGs that look reasonable from figures generated in this package.
#'
#' @param filename The desired PNG filename, with extension
#' @param figobject The figure object (... |
###################################################
# Inferelator version B, fewer false negatives
###################################################
###########################################
# preclust.and.inferelate
###########################################
preclust.and.inferelate <- function( clusterStack, pr... | /inferelator.R | no_license | ptvan/inferelator-ancient | R | false | false | 23,371 | r | ###################################################
# Inferelator version B, fewer false negatives
###################################################
###########################################
# preclust.and.inferelate
###########################################
preclust.and.inferelate <- function( clusterStack, pr... |
#' Estimate the distribution of (B)uilt (E)nvironment amenities via the (N)ested (D)irichlet Process
#'
#' @param formula bendr formula see the details
#' @param benvo \href{https://apeterson91.github.io/rbenvo}{\code{Benvo}} object
#' @param base_measure "bm" object from one of the base measure functions. See \link{m... | /R/bend.R | permissive | apeterson91/bendr | R | false | false | 4,525 | r | #' Estimate the distribution of (B)uilt (E)nvironment amenities via the (N)ested (D)irichlet Process
#'
#' @param formula bendr formula see the details
#' @param benvo \href{https://apeterson91.github.io/rbenvo}{\code{Benvo}} object
#' @param base_measure "bm" object from one of the base measure functions. See \link{m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-pooling.R
\name{nn_adaptive_max_pool2d}
\alias{nn_adaptive_max_pool2d}
\title{Applies a 2D adaptive max pooling over an input signal composed of several input planes.}
\usage{
nn_adaptive_max_pool2d(output_size, return_indices = FALSE)
}
\... | /man/nn_adaptive_max_pool2d.Rd | permissive | mlverse/torch | R | false | true | 1,185 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-pooling.R
\name{nn_adaptive_max_pool2d}
\alias{nn_adaptive_max_pool2d}
\title{Applies a 2D adaptive max pooling over an input signal composed of several input planes.}
\usage{
nn_adaptive_max_pool2d(output_size, return_indices = FALSE)
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{check_remotes}
\alias{check_remotes}
\title{Set remote data checking on of off}
\usage{
check_remotes(what)
}
\arguments{
\item{what}{\code{TRUE} or \code{FALSE}}
}
\description{
Set remote data checking on of off
}
\keyword{int... | /man/check_remotes.Rd | no_license | gschofl/hlatools | R | false | true | 327 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{check_remotes}
\alias{check_remotes}
\title{Set remote data checking on of off}
\usage{
check_remotes(what)
}
\arguments{
\item{what}{\code{TRUE} or \code{FALSE}}
}
\description{
Set remote data checking on of off
}
\keyword{int... |
## File Name: tam_mml_sufficient_statistics_R.R
## File Version: 0.07
tam_mml_sufficient_statistics_R <- function( nitems, maxK, resp, resp.ind,
pweights, cA, col.index)
{
cResp <- (resp +1) *resp.ind
cResp <- cResp[, col.index ]
cResp <- 1 * ( cResp==matrix( rep(1:(maxK), nitems), nrow(cR... | /R/tam_mml_sufficient_statistics_R.R | no_license | cran/TAM | R | false | false | 660 | r | ## File Name: tam_mml_sufficient_statistics_R.R
## File Version: 0.07
tam_mml_sufficient_statistics_R <- function( nitems, maxK, resp, resp.ind,
pweights, cA, col.index)
{
cResp <- (resp +1) *resp.ind
cResp <- cResp[, col.index ]
cResp <- 1 * ( cResp==matrix( rep(1:(maxK), nitems), nrow(cR... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dockertest_remake.R
\name{prepare_remake}
\alias{prepare_remake}
\title{Prepare for docker build}
\usage{
prepare_remake(info)
}
\arguments{
\item{info}{Result of \code{project_info_remake}, which is not
exported, so that's a bit mean.}
}
\de... | /man/prepare_remake.Rd | no_license | traitecoevo/dockertest | R | false | true | 558 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dockertest_remake.R
\name{prepare_remake}
\alias{prepare_remake}
\title{Prepare for docker build}
\usage{
prepare_remake(info)
}
\arguments{
\item{info}{Result of \code{project_info_remake}, which is not
exported, so that's a bit mean.}
}
\de... |
# Exercise 5: dplyr grouped operations
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13") # should be done already
library("nycflights13")
library("dplyr")
# What was the average departure delay in each month?
# Save t... | /chapter-11-exercises/exercise-5/exercise.R | permissive | JacksonFrank/book-exercises | R | false | false | 1,425 | r | # Exercise 5: dplyr grouped operations
# Install the `"nycflights13"` package. Load (`library()`) the package.
# You'll also need to load `dplyr`
#install.packages("nycflights13") # should be done already
library("nycflights13")
library("dplyr")
# What was the average departure delay in each month?
# Save t... |
\name{bagplot}
\alias{bagplot}
\alias{compute.bagplot}
\alias{plot.bagplot}
\title{ bagplot, a bivariate boxplot }
\description{
\code{compute.bagplot()} computes an object describing a bagplot
of a bivariate data set. \code{plot.bagplot()} plots a bagplot object.
\code{bagplot()} computes and plots a bagplot.... | /man/bagplot.Rd | no_license | taoualiw/aplpack | R | false | false | 7,475 | rd | \name{bagplot}
\alias{bagplot}
\alias{compute.bagplot}
\alias{plot.bagplot}
\title{ bagplot, a bivariate boxplot }
\description{
\code{compute.bagplot()} computes an object describing a bagplot
of a bivariate data set. \code{plot.bagplot()} plots a bagplot object.
\code{bagplot()} computes and plots a bagplot.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/red.R
\name{elevation}
\alias{elevation}
\title{Elevation limits.}
\usage{
elevation(spData, dem = NULL)
}
\arguments{
\item{spData}{One of three options: 1) matrix of longitude and latitude (two columns) of each occurrence record; 2... | /man/elevation.Rd | no_license | cardosopmb/red | R | false | true | 1,129 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/red.R
\name{elevation}
\alias{elevation}
\title{Elevation limits.}
\usage{
elevation(spData, dem = NULL)
}
\arguments{
\item{spData}{One of three options: 1) matrix of longitude and latitude (two columns) of each occurrence record; 2... |
lazyRegistry <- new.env()
#' Saving other matrices
#'
#' Serializing other (non-ordinary, non-sparse) matrices for processing with \code{\link{watcherLoop}}.
#'
#' @param x A matrix-like object.
#'
#' @details
#' This function calls \code{\link{saveRDS}} to transfer \code{x} to the child process running \code{\link{wa... | /R/saveOtherMatrix.R | no_license | LTLA/LazyAssayVectors | R | false | false | 1,450 | r | lazyRegistry <- new.env()
#' Saving other matrices
#'
#' Serializing other (non-ordinary, non-sparse) matrices for processing with \code{\link{watcherLoop}}.
#'
#' @param x A matrix-like object.
#'
#' @details
#' This function calls \code{\link{saveRDS}} to transfer \code{x} to the child process running \code{\link{wa... |
context("Local dopar")
opt <- getOption("foreachDoparLocal")
backend <- Sys.getenv("FOREACH_BACKEND", "SEQ")
if(backend == "SEQ") {
cat(" Sequential backend")
test_that("Global dopar works, sequential backend", {
options(foreachDoparLocal=FALSE)
a <- 0
foreach(i=1:10) %do% {
a <... | /tests/testthat/test_localdopar.R | no_license | cran/foreach | R | false | false | 1,445 | r | context("Local dopar")
opt <- getOption("foreachDoparLocal")
backend <- Sys.getenv("FOREACH_BACKEND", "SEQ")
if(backend == "SEQ") {
cat(" Sequential backend")
test_that("Global dopar works, sequential backend", {
options(foreachDoparLocal=FALSE)
a <- 0
foreach(i=1:10) %do% {
a <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{eastafrica}
\alias{eastafrica}
\title{East African Sample Data}
\format{
A \code{data.table} with 30684 rows and 6 columns:
\itemize{
\item{"PlotId": }{[\code{factor}] Station name (\code{"kil"}: Kilimanjaro,
... | /man/eastafrica.Rd | permissive | environmentalinformatics-marburg/GSODTools | R | false | true | 987 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{eastafrica}
\alias{eastafrica}
\title{East African Sample Data}
\format{
A \code{data.table} with 30684 rows and 6 columns:
\itemize{
\item{"PlotId": }{[\code{factor}] Station name (\code{"kil"}: Kilimanjaro,
... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/plot.fall.R
\name{plot.fall}
\alias{plot.fall}
\title{Plot an Object}
\usage{
\method{plot}{fall}(x, which = "All", set.up = TRUE, before = 0,
after = before, color.line = "blue", color.ba = "black", ...)
}
\arguments{
\item{x}{an o... | /man/plot.fall.Rd | permissive | kbrannan/DVstats | R | false | false | 1,686 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/plot.fall.R
\name{plot.fall}
\alias{plot.fall}
\title{Plot an Object}
\usage{
\method{plot}{fall}(x, which = "All", set.up = TRUE, before = 0,
after = before, color.line = "blue", color.ba = "black", ...)
}
\arguments{
\item{x}{an o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storage_functions.R
\name{objectAccessControls.delete}
\alias{objectAccessControls.delete}
\title{Permanently deletes the ACL entry for the specified entity on the specified object.}
\usage{
objectAccessControls.delete(bucket, object, entity,... | /googlestoragev1.auto/man/objectAccessControls.delete.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,233 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/storage_functions.R
\name{objectAccessControls.delete}
\alias{objectAccessControls.delete}
\title{Permanently deletes the ACL entry for the specified entity on the specified object.}
\usage{
objectAccessControls.delete(bucket, object, entity,... |
#--------------------------------------------
# This script sets out to produce an X
# forecast model
#--------------------------------------------
#---------------------------------------
# Author: Trent Henderson, 3 April 2020
#---------------------------------------
# Load data
load("data/for-modelling.Rda")
# C... | /forecast-model/arima-model.R | no_license | hendersontrent/qld-translink-forecasting | R | false | false | 3,628 | r | #--------------------------------------------
# This script sets out to produce an X
# forecast model
#--------------------------------------------
#---------------------------------------
# Author: Trent Henderson, 3 April 2020
#---------------------------------------
# Load data
load("data/for-modelling.Rda")
# C... |
library(tidyverse)
fin_AR5_lower_PPP <- as.tibble(fin_AR5_lower_PPP)
fin_AR5_lower_PPP <- fin_AR5_lower_PPP %>% gather(`2020`,`2030`, `2040`, `2050`, key = "year", value ="price")
fin_AR5_lower_PPP$year <- as.numeric(fin_AR5_lower_PPP$year)
fin_AR5_subset_ppp$year<-as.numeric(fin_AR5_subset_ppp$year)
fin_all_summ <-... | /Data wrangling code.R | no_license | rmm31/R-Test-2 | R | false | false | 1,073 | r | library(tidyverse)
fin_AR5_lower_PPP <- as.tibble(fin_AR5_lower_PPP)
fin_AR5_lower_PPP <- fin_AR5_lower_PPP %>% gather(`2020`,`2030`, `2040`, `2050`, key = "year", value ="price")
fin_AR5_lower_PPP$year <- as.numeric(fin_AR5_lower_PPP$year)
fin_AR5_subset_ppp$year<-as.numeric(fin_AR5_subset_ppp$year)
fin_all_summ <-... |
## makeCacheMatrix and cacheSolve are a pair of functions that allow a user to take a matrix, store
## the inverse of that matrix, and easily print the cached inverse.
## makeCacheMatrix creates a list of functions to set and retrieve the value of a matrix and the value of
## it's inverse.
makeCacheMatrix <- functio... | /cachematrix.R | no_license | bajpaiamisha/ProgrammingAssignment2 | R | false | false | 1,727 | r | ## makeCacheMatrix and cacheSolve are a pair of functions that allow a user to take a matrix, store
## the inverse of that matrix, and easily print the cached inverse.
## makeCacheMatrix creates a list of functions to set and retrieve the value of a matrix and the value of
## it's inverse.
makeCacheMatrix <- functio... |
screen_topics_ui <- function(){
# build user interface
header <- shinydashboard::dashboardHeader(
tag("li",
list(
class = "dropdown",
div(
style = "
display: inline-block;
vertical-align: top;
text-align: right;
width: 780px",
... | /R/screen_topics_ui.R | no_license | david-test123/revtools-for-pfnz | R | false | false | 6,144 | r | screen_topics_ui <- function(){
# build user interface
header <- shinydashboard::dashboardHeader(
tag("li",
list(
class = "dropdown",
div(
style = "
display: inline-block;
vertical-align: top;
text-align: right;
width: 780px",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-cache.R
\name{hash_standardize}
\alias{hash_standardize}
\title{Standardize text for hashing}
\usage{
hash_standardize(text)
}
\arguments{
\item{text}{A character vector.}
}
\description{
Make sure text after styling results in the same... | /man/hash_standardize.Rd | permissive | r-lib/styler | R | false | true | 506 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-cache.R
\name{hash_standardize}
\alias{hash_standardize}
\title{Standardize text for hashing}
\usage{
hash_standardize(text)
}
\arguments{
\item{text}{A character vector.}
}
\description{
Make sure text after styling results in the same... |
library(tm)
library(tmcn)
library(Rwordseg)
docs <- Corpus(
DirSource(
c(
"SogouC.mini/SampleNamed/C000007", "SogouC.mini/SampleNamed/C000008",
"SogouC.mini/SampleNamed/C000010", "SogouC.mini/SampleNamed/C000013",
"SogouC.mini/SampleNamed/C000014", "SogouC.mini/SampleNamed/C000016",
... | /2.3/optimization.R | no_license | adam077/data_mining_by_R | R | false | false | 1,248 | r | library(tm)
library(tmcn)
library(Rwordseg)
docs <- Corpus(
DirSource(
c(
"SogouC.mini/SampleNamed/C000007", "SogouC.mini/SampleNamed/C000008",
"SogouC.mini/SampleNamed/C000010", "SogouC.mini/SampleNamed/C000013",
"SogouC.mini/SampleNamed/C000014", "SogouC.mini/SampleNamed/C000016",
... |
## load libraries
rm(list = ls())
#path2library=.libPaths() ##default directory for library
source("load_project_packages.R")
## Data directory
directory="../data/"
#path2library
source("functions_normalization.R")
source('functions_counts_manipulations.R')
source('functions_plots_figures.R')
source('functions_ch... | /src/global.R | no_license | aduvermy/shiny | R | false | false | 1,364 | r | ## load libraries
rm(list = ls())
#path2library=.libPaths() ##default directory for library
source("load_project_packages.R")
## Data directory
directory="../data/"
#path2library
source("functions_normalization.R")
source('functions_counts_manipulations.R')
source('functions_plots_figures.R')
source('functions_ch... |
#' Generates curves plots per peptide using the last cycle data
#'
#' This function takes in the PW data (that includes all exposure times), list of peptides, and optional arguments of samples or groups names vector
#'
#' @param data PW data (that includes all exposure times)
#' @param peptides a vector of peptides to ... | /R/krsa_curve_plot.R | permissive | AliSajid/KRSA | R | false | false | 1,400 | r | #' Generates curves plots per peptide using the last cycle data
#'
#' This function takes in the PW data (that includes all exposure times), list of peptides, and optional arguments of samples or groups names vector
#'
#' @param data PW data (that includes all exposure times)
#' @param peptides a vector of peptides to ... |
require(tidyverse)
all_crops <- tibble(Crop = c("Rice",
"Wheat",
"Maize",
"Fingermillet",
"Minor millets",
"Buckwheat",
"Barley",
"Soybean",
"Blackgram",
"Lentil",
... | /PLB422_introductory_biotechnology_biodiversity/assignment/2079/individual_crop_allotment.R | permissive | DeependraD/courseware_plbgen | R | false | false | 1,802 | r | require(tidyverse)
all_crops <- tibble(Crop = c("Rice",
"Wheat",
"Maize",
"Fingermillet",
"Minor millets",
"Buckwheat",
"Barley",
"Soybean",
"Blackgram",
"Lentil",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities-tree.R
\name{stErr}
\alias{stErr}
\title{Function to evaluate the standard error of a node estimate given a weight and the standard
deviation of the noise used to perturb the nodes}
\usage{
stErr(w, sigma)
}
\arguments{
\item{w}{We... | /man/stErr.Rd | no_license | privacytoolsproject/PSI-Library | R | false | true | 636 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities-tree.R
\name{stErr}
\alias{stErr}
\title{Function to evaluate the standard error of a node estimate given a weight and the standard
deviation of the noise used to perturb the nodes}
\usage{
stErr(w, sigma)
}
\arguments{
\item{w}{We... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.