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 |
|---|---|---|---|---|---|---|---|---|---|
setMethod("asJSON", "raw", function(x, raw = c("base64", "hex", "mongo"), ...) {
# validate
raw <- match.arg(raw)
# encode based on schema
if (raw == "mongo") {
return(asJSON(list(`$binary` = as.scalar(base64_encode(x)), `$type` = as.scalar("\005"))))
} else if (raw == "hex") {
return(asJSON(as.char... | /R/asJSON.raw.R | no_license | kbroman/jsonlite | R | false | false | 429 | r | setMethod("asJSON", "raw", function(x, raw = c("base64", "hex", "mongo"), ...) {
# validate
raw <- match.arg(raw)
# encode based on schema
if (raw == "mongo") {
return(asJSON(list(`$binary` = as.scalar(base64_encode(x)), `$type` = as.scalar("\005"))))
} else if (raw == "hex") {
return(asJSON(as.char... |
library('Seurat')
library('plyr')
library('dplyr')
matrix <- as.matrix(read.delim('matrix_HSC.csv', sep = ','))
Genes <- read.delim('genes_HSC.tsv', sep = '\t', header = FALSE)
Barcodes <- read.delim('barcodes_order_HSC.tsv', sep = '\t', header = FALSE)
write.table(colnames(aggr_all_matrix2), file = 'barcodes... | /r_scripts/aggr_all_dp_clean_anal_hsc.R | no_license | miketerkelsen/transcriptional_dynamics_in_hepatic_fibrosis | R | false | false | 33,328 | r | library('Seurat')
library('plyr')
library('dplyr')
matrix <- as.matrix(read.delim('matrix_HSC.csv', sep = ','))
Genes <- read.delim('genes_HSC.tsv', sep = '\t', header = FALSE)
Barcodes <- read.delim('barcodes_order_HSC.tsv', sep = '\t', header = FALSE)
write.table(colnames(aggr_all_matrix2), file = 'barcodes... |
library(e1071)
bwtable <- read.csv("bwdata.csv", header = TRUE)#download brain wave data as bwtable
bwtable
#################use this for all train, all test ##############################
training.data = rbind(bwtable[1:14,], bwtable[15:28,])
training.data
test.data = rbind(bwtable[1:14,], bwtable[15:28,])
... | /9naivebayes.R | no_license | sishirsubedi/brainstate_eeg_analysis | R | false | false | 736 | r |
library(e1071)
bwtable <- read.csv("bwdata.csv", header = TRUE)#download brain wave data as bwtable
bwtable
#################use this for all train, all test ##############################
training.data = rbind(bwtable[1:14,], bwtable[15:28,])
training.data
test.data = rbind(bwtable[1:14,], bwtable[15:28,])
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.datapipeline_operations.R
\name{query_objects}
\alias{query_objects}
\title{Queries the specified pipeline for the names of objects that match the specified set of conditions}
\usage{
query_objects(pipelineId, query = NULL, sphere, marke... | /service/paws.datapipeline/man/query_objects.Rd | permissive | CR-Mercado/paws | R | false | true | 1,776 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.datapipeline_operations.R
\name{query_objects}
\alias{query_objects}
\title{Queries the specified pipeline for the names of objects that match the specified set of conditions}
\usage{
query_objects(pipelineId, query = NULL, sphere, marke... |
#pnorm
estandard = pnorm(1) - pnorm(0)
#INtegracion de Riemann utiizando R
#Solucion analitica
set.seed(12)
m = 500000 #numero de rectangulo, miestras mayor se el numeri de rectangulos mayor
#Exactitud y se reduce el error
a = 0 #
b = 1
w = (b - a) / m #ancho del rectangulo, valor max - valor min / entre e... | /Simulation/integracin_Reiman.R | no_license | jr-98/R | R | false | false | 3,173 | r | #pnorm
estandard = pnorm(1) - pnorm(0)
#INtegracion de Riemann utiizando R
#Solucion analitica
set.seed(12)
m = 500000 #numero de rectangulo, miestras mayor se el numeri de rectangulos mayor
#Exactitud y se reduce el error
a = 0 #
b = 1
w = (b - a) / m #ancho del rectangulo, valor max - valor min / entre e... |
## Experience -- functions dealing with learning CPTs from data.
NodeExperience <- function (node) {
if (length(node)>1L || !is.NeticaNode(node) || !is.active(node)) {
stop ("Node is not an active Netica node", node)
}
parnames <- ParentStates(node)
statecounts <- sapply(parnames,length)
if (length(sta... | /R/Experience.R | permissive | ralmond/RNetica | R | false | false | 6,346 | r | ## Experience -- functions dealing with learning CPTs from data.
NodeExperience <- function (node) {
if (length(node)>1L || !is.NeticaNode(node) || !is.active(node)) {
stop ("Node is not an active Netica node", node)
}
parnames <- ParentStates(node)
statecounts <- sapply(parnames,length)
if (length(sta... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
rtest <- function() {
hdfs_name_node = H2O.INTERNAL.HDFS.NAME.NODE
hdfs_airlines_file = "/datasets/airlines_all.csv"
#----------------------------------------------------------------------
# Single file cases.
#-----------... | /h2o-r/tests/testdir_misc/runit_INTERNAL_airlines_xlarge.R | permissive | konor/h2o-3 | R | false | false | 2,530 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
rtest <- function() {
hdfs_name_node = H2O.INTERNAL.HDFS.NAME.NODE
hdfs_airlines_file = "/datasets/airlines_all.csv"
#----------------------------------------------------------------------
# Single file cases.
#-----------... |
server<-function(input, output) {
DatosDia <- DatosDia
DatosDia$Fecha<-as.Date(DatosDia$Fecha,"%Y-%m-%d")
SerieDia <- aggregate(Accidentes~Fecha*CLASE,data=DatosDia,FUN=sum)
output$SerieDiaria <- renderPlotly({
Base <- subset(SerieDia,subset = (Fecha>=input$Fecha1 & Fecha<=input... | /server.R | no_license | christiancalidad/DataProductsProject | R | false | false | 1,218 | r | server<-function(input, output) {
DatosDia <- DatosDia
DatosDia$Fecha<-as.Date(DatosDia$Fecha,"%Y-%m-%d")
SerieDia <- aggregate(Accidentes~Fecha*CLASE,data=DatosDia,FUN=sum)
output$SerieDiaria <- renderPlotly({
Base <- subset(SerieDia,subset = (Fecha>=input$Fecha1 & Fecha<=input... |
#' @importFrom coda mcmc mcmc.list
#' @importFrom parallel makePSOCKcluster stopCluster clusterExport clusterEvalQ
#' clusterApply detectCores clusterSetRNGStream
#' @importFrom methods formalArgs
#' @importFrom stats runif plogis
NULL
#' A friendly MCMC framework
#'
#' @docType package
#' @name fmcmc
#'
NULL | /R/imports.r | permissive | arokem/fmcmc | R | false | false | 315 | r | #' @importFrom coda mcmc mcmc.list
#' @importFrom parallel makePSOCKcluster stopCluster clusterExport clusterEvalQ
#' clusterApply detectCores clusterSetRNGStream
#' @importFrom methods formalArgs
#' @importFrom stats runif plogis
NULL
#' A friendly MCMC framework
#'
#' @docType package
#' @name fmcmc
#'
NULL |
library(shiny)
shinyServer(function(input, output) {
model1 <- reactive({
lm(pressure ~ poly(temperature, as.integer(input$degree1)), data = pressure)
})
model2 <- reactive({
lm(pressure ~ poly(temperature, as.integer(input$degree2)), data = pressure)
})
model1pred <- reactive({
TInput <... | /server.R | no_license | AmandineLigot/data-product-assignement | R | false | false | 1,389 | r | library(shiny)
shinyServer(function(input, output) {
model1 <- reactive({
lm(pressure ~ poly(temperature, as.integer(input$degree1)), data = pressure)
})
model2 <- reactive({
lm(pressure ~ poly(temperature, as.integer(input$degree2)), data = pressure)
})
model1pred <- reactive({
TInput <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_admin_set_user_password}
\alias{cognitoidentityprovider_admin_set_user_password}
\title{Sets the specified user's password in a user pool as an administrator}
\usage{
cognitoi... | /paws/man/cognitoidentityprovider_admin_set_user_password.Rd | permissive | sanchezvivi/paws | R | false | true | 1,607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_admin_set_user_password}
\alias{cognitoidentityprovider_admin_set_user_password}
\title{Sets the specified user's password in a user pool as an administrator}
\usage{
cognitoi... |
HH <- function(y,pk){
y <- as.data.frame(y)
m <- length(pk)
Total <- matrix(NA,nrow=3,ncol=dim(y)[2])
rownames(Total)=c("Estimation", "Standard Error","CVE")
colnames(Total) <- names(y)
for(k in 1:dim(y)[2]){
ty <- sum(y[,k]/pk)/m
Vty <- (1/m)*(1/(m-1))*sum((y[,k]/pk-ty)^2)
CVe <- 100*sqrt(Vt... | /TeachingSampling/R/HH.r | no_license | ingted/R-Examples | R | false | false | 385 | r | HH <- function(y,pk){
y <- as.data.frame(y)
m <- length(pk)
Total <- matrix(NA,nrow=3,ncol=dim(y)[2])
rownames(Total)=c("Estimation", "Standard Error","CVE")
colnames(Total) <- names(y)
for(k in 1:dim(y)[2]){
ty <- sum(y[,k]/pk)/m
Vty <- (1/m)*(1/(m-1))*sum((y[,k]/pk-ty)^2)
CVe <- 100*sqrt(Vt... |
########################################################################################################################
#
# 10_QC_AND_EDA.R
#
# Perform initial quality control and exploratory data analysis on 4 y/o non-human primate RNA-seq samples
# from DLPFC, ACC, HC, and V1
#
# Nicholas Page, July ... | /code/11_QC_AND_EDA_FIGURES.R | no_license | dhglab/CONTE_NHP_MIA | R | false | false | 11,715 | r | ########################################################################################################################
#
# 10_QC_AND_EDA.R
#
# Perform initial quality control and exploratory data analysis on 4 y/o non-human primate RNA-seq samples
# from DLPFC, ACC, HC, and V1
#
# Nicholas Page, July ... |
## ----------------------------------------------------------------- ##
## ucb.R ----------------------------------------------------------- ##
## Author: Peter Norwood, NC State University ---------------------- ##
## Purpose: run an experiment ucb selecction ----------------------- ##
## -----------------------------... | /contextual_bandit/ucb.R | no_license | peterpnorwood/NonDomSeqExp | R | false | false | 4,244 | r | ## ----------------------------------------------------------------- ##
## ucb.R ----------------------------------------------------------- ##
## Author: Peter Norwood, NC State University ---------------------- ##
## Purpose: run an experiment ucb selecction ----------------------- ##
## -----------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/requests.R
\name{make_get_with_namespace}
\alias{make_get_with_namespace}
\title{build a GET request with a namespace}
\usage{
make_get_with_namespace(endpoint, namespace, ...)
}
\arguments{
\item{endpoint}{a character}
\item{namespace}{a ch... | /man/make_get_with_namespace.Rd | permissive | Tutuchan/wowr | R | false | true | 495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/requests.R
\name{make_get_with_namespace}
\alias{make_get_with_namespace}
\title{build a GET request with a namespace}
\usage{
make_get_with_namespace(endpoint, namespace, ...)
}
\arguments{
\item{endpoint}{a character}
\item{namespace}{a ch... |
# Class specification and constructors for mizer base parameters class
# Class has members to store parameters of size based model
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Copyright 2018 Gustav Delius and Richard Southwell.
# Development has received funding from the European Commission's Horizon 2020
# R... | /R/MizerParams-class.R | no_license | gustavdelius/mizer | R | false | false | 121,643 | r | # Class specification and constructors for mizer base parameters class
# Class has members to store parameters of size based model
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Copyright 2018 Gustav Delius and Richard Southwell.
# Development has received funding from the European Commission's Horizon 2020
# R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation_functions.R
\name{reset_simulation}
\alias{reset_simulation}
\title{reset_simulation}
\usage{
reset_simulation()
}
\description{
Configures global environment to allow for repeated game simulations
}
\seealso{
Other simulation func... | /man/reset_simulation.Rd | permissive | jormacmoo/shipcapcrew | R | false | true | 431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulation_functions.R
\name{reset_simulation}
\alias{reset_simulation}
\title{reset_simulation}
\usage{
reset_simulation()
}
\description{
Configures global environment to allow for repeated game simulations
}
\seealso{
Other simulation func... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BMisc.R
\name{combineDfs}
\alias{combineDfs}
\title{Combine Two Distribution Functions}
\usage{
combineDfs(y.seq, dflist, pstrat = NULL, ...)
}
\arguments{
\item{y.seq}{sequence of possible y values}
\item{dflist}{list of distribution functi... | /man/combineDfs.Rd | no_license | bcallaway11/BMisc | R | false | true | 862 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BMisc.R
\name{combineDfs}
\alias{combineDfs}
\title{Combine Two Distribution Functions}
\usage{
combineDfs(y.seq, dflist, pstrat = NULL, ...)
}
\arguments{
\item{y.seq}{sequence of possible y values}
\item{dflist}{list of distribution functi... |
#' Convert pharmacokinetic parameters for one compartment model
#'
#' Calculate pharmacokinetic parameters with clearance (Cl1) and
#' half-life (t_alpha)
#'
#' @usage OneComp_Volume_Clearance_HalfLife(Cl1,t_alpha,
#' Cl1.sd=NA,t_alpha.sd=NA,covar=c(Cl1talpha=NA),...)
#' @param Cl1 Clearance from compar... | /R/OneComp_Volume_Clearance_HalfLife.R | no_license | cran/PKconverter | R | false | false | 2,485 | r | #' Convert pharmacokinetic parameters for one compartment model
#'
#' Calculate pharmacokinetic parameters with clearance (Cl1) and
#' half-life (t_alpha)
#'
#' @usage OneComp_Volume_Clearance_HalfLife(Cl1,t_alpha,
#' Cl1.sd=NA,t_alpha.sd=NA,covar=c(Cl1talpha=NA),...)
#' @param Cl1 Clearance from compar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{add_credit_to_list_of_plot}
\alias{add_credit_to_list_of_plot}
\title{Add credit text to plots}
\usage{
add_credit_to_list_of_plot(list_of_plot)
}
\arguments{
\item{list_of_plot}{list of ggplot2 plot objects}
}
\value{
list of... | /man/add_credit_to_list_of_plot.Rd | permissive | UTokyo-mip/mipplot | R | false | true | 419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility.R
\name{add_credit_to_list_of_plot}
\alias{add_credit_to_list_of_plot}
\title{Add credit text to plots}
\usage{
add_credit_to_list_of_plot(list_of_plot)
}
\arguments{
\item{list_of_plot}{list of ggplot2 plot objects}
}
\value{
list of... |
#### ACD ESSAY; REVINA POLINA
### DATA PREPARATION
library(dplyr)
library(ggplot2)
library(readxl)
## NAVCO
navco <- readxl::read_excel("navco.xlsx")
colnames(navco)[1] <- "Country"
navco_used <- navco %>% dplyr::select("Country", "year", "lccode", "prim_method", 'camp_size', "camp_size_est",
... | /essay/ACD_essay_Revina.R | no_license | pvrevina/ACD_2020 | R | false | false | 13,404 | r | #### ACD ESSAY; REVINA POLINA
### DATA PREPARATION
library(dplyr)
library(ggplot2)
library(readxl)
## NAVCO
navco <- readxl::read_excel("navco.xlsx")
colnames(navco)[1] <- "Country"
navco_used <- navco %>% dplyr::select("Country", "year", "lccode", "prim_method", 'camp_size', "camp_size_est",
... |
library(readstata13)
library(dplyr)
library(mlr)
library(psych)
library(Hmisc)
library(gtools)
library(questionr)
library(foreign)
library(geosphere)
library(rgdal)
library(sp)
library(raster)
library(rgeos)
library(SpatialEpi)
library(survey)
library(RColorBrewer)
library(FedData)
library(INLA)
library(dplyr)
library(... | /codes/data_processing_wealth_mw.R | permissive | JulianneMeisnerUW/LivestockMaps | R | false | false | 105,498 | r | library(readstata13)
library(dplyr)
library(mlr)
library(psych)
library(Hmisc)
library(gtools)
library(questionr)
library(foreign)
library(geosphere)
library(rgdal)
library(sp)
library(raster)
library(rgeos)
library(SpatialEpi)
library(survey)
library(RColorBrewer)
library(FedData)
library(INLA)
library(dplyr)
library(... |
# FIGURE 2
# Correlation Figure - from correlationMaps.R
# MAC 08/12/2018
library(raster)
library(rasterVis)
library(RStoolbox)
library(maptools)
library(viridis)
# map layers
states <- getData('GADM', country='United States', level=1)
USA<-getData('GADM', country='USA', level=0)
#rasterOptions(tmpdir="/home/crimmin... | /figs/FIG2_correlationMaps_landscape.R | no_license | mcrimmins/GDD-climate | R | false | false | 3,935 | r | # FIGURE 2
# Correlation Figure - from correlationMaps.R
# MAC 08/12/2018
library(raster)
library(rasterVis)
library(RStoolbox)
library(maptools)
library(viridis)
# map layers
states <- getData('GADM', country='United States', level=1)
USA<-getData('GADM', country='USA', level=0)
#rasterOptions(tmpdir="/home/crimmin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{backendServices.patch}
\alias{backendServices.patch}
\title{Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when upda... | /googlecomputealpha.auto/man/backendServices.patch.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,729 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{backendServices.patch}
\alias{backendServices.patch}
\title{Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when upda... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{calibration_questions}
\alias{calibration_questions}
\title{Calibration questions}
\format{
A data frame with 27 rows and 3 variables:
\describe{
\item{question}{text of the calibration question}
\item{answer}{answ... | /man/calibration_questions.Rd | permissive | davidski/collector | R | false | true | 646 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{calibration_questions}
\alias{calibration_questions}
\title{Calibration questions}
\format{
A data frame with 27 rows and 3 variables:
\describe{
\item{question}{text of the calibration question}
\item{answer}{answ... |
#' Run learnr tutorials, Shiny applications from the BioDataScience1 package, or
#' update it
#'
#' Start a learnr tutorial or a Shiny application from the BioDataScience1
#' package, possibly after updating it.
#'
#' @param tutorial The name of the tutorial to use. If not provided, a list of
#' available tutorials is ... | /R/run.R | permissive | franquitderrickngami/BioDataScience1 | R | false | false | 2,128 | r | #' Run learnr tutorials, Shiny applications from the BioDataScience1 package, or
#' update it
#'
#' Start a learnr tutorial or a Shiny application from the BioDataScience1
#' package, possibly after updating it.
#'
#' @param tutorial The name of the tutorial to use. If not provided, a list of
#' available tutorials is ... |
context("YAML imports/exports")
require("datasets")
test_that("Export to YAML", {
skip_if_not_installed("yaml")
expect_true(export(iris, "iris.yml") %in% dir())
})
test_that("Import from YAML", {
skip_if_not_installed("yaml")
expect_true(is.data.frame(import("iris.yml")))
expect_identic... | /tests/testthat/test_format_yml.R | no_license | cran/rio | R | false | false | 468 | r | context("YAML imports/exports")
require("datasets")
test_that("Export to YAML", {
skip_if_not_installed("yaml")
expect_true(export(iris, "iris.yml") %in% dir())
})
test_that("Import from YAML", {
skip_if_not_installed("yaml")
expect_true(is.data.frame(import("iris.yml")))
expect_identic... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TReNA.R
\docType{class}
\name{TReNA-class}
\alias{TReNA-class}
\alias{.TReNA}
\alias{TReNA}
\alias{TReNA-class}
\alias{TReNA}
\alias{getSolverName,TReNA-method}
\alias{getSolverObject,TReNA-method}
\title{Class TReNA}
\usage{
TReNA(mtx.assay ... | /man/TReNA-class.Rd | no_license | noahmclean1/TReNA | R | false | true | 2,322 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TReNA.R
\docType{class}
\name{TReNA-class}
\alias{TReNA-class}
\alias{.TReNA}
\alias{TReNA}
\alias{TReNA-class}
\alias{TReNA}
\alias{getSolverName,TReNA-method}
\alias{getSolverObject,TReNA-method}
\title{Class TReNA}
\usage{
TReNA(mtx.assay ... |
.onAttach <- function( lib, pkg ) {
packageStartupMessage(
paste0(
'\n ========================================================================',
'\n If you have any question about this package contact me on ',
'\n hamedhaseli@gmail.com or visit www.hamedhaseli.webs.com ... | /R/auxFuncs.R | no_license | Hamedhm/SmoothWin-1 | R | false | false | 6,072 | r | .onAttach <- function( lib, pkg ) {
packageStartupMessage(
paste0(
'\n ========================================================================',
'\n If you have any question about this package contact me on ',
'\n hamedhaseli@gmail.com or visit www.hamedhaseli.webs.com ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/type-pnpp_experiment.R
\name{variable_dim}
\alias{variable_dim}
\alias{variable_dim<-}
\title{Variable dimension in a PNPP experiment}
\usage{
variable_dim(plate)
variable_dim(plate) <- value
}
\description{
Get or set the variable dimension... | /man/variable_dim.Rd | permissive | andrepvieira/ddpcr | R | false | true | 748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/type-pnpp_experiment.R
\name{variable_dim}
\alias{variable_dim}
\alias{variable_dim<-}
\title{Variable dimension in a PNPP experiment}
\usage{
variable_dim(plate)
variable_dim(plate) <- value
}
\description{
Get or set the variable dimension... |
web_lookup <- function(x, return_n) {
require(httr)
require(jsonlite)
require(stringr)
# Ocp-Apim-Subscription-Key
api <- "39b702f50fd04d1f9730243bbbd6e0e8"
names(api) <- "Ocp-Apim-Subscription-Key"
url <- "https://api.projectoxford.ai/text/weblm/v1.0/generateNextWords"
# model: body... | /src/5-microsoft.R | no_license | bgulbis/Prediction_App | R | false | false | 932 | r |
web_lookup <- function(x, return_n) {
require(httr)
require(jsonlite)
require(stringr)
# Ocp-Apim-Subscription-Key
api <- "39b702f50fd04d1f9730243bbbd6e0e8"
names(api) <- "Ocp-Apim-Subscription-Key"
url <- "https://api.projectoxford.ai/text/weblm/v1.0/generateNextWords"
# model: body... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sesame.R
\name{totalIntensityZscore}
\alias{totalIntensityZscore}
\title{Calculate intensity Z-score}
\usage{
totalIntensityZscore(sset)
}
\arguments{
\item{sset}{a \code{SigSet}}
}
\value{
a vector of Z-score for each probe
}
\description{
T... | /man/totalIntensityZscore.Rd | permissive | vjcitn/sesame | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sesame.R
\name{totalIntensityZscore}
\alias{totalIntensityZscore}
\title{Calculate intensity Z-score}
\usage{
totalIntensityZscore(sset)
}
\arguments{
\item{sset}{a \code{SigSet}}
}
\value{
a vector of Z-score for each probe
}
\description{
T... |
# mplot.missing.R
# :: rtemis::
# 2020 E.D. Gennatas lambdamd.org
# Biostat214: Documentation with roxygen + keeping function definitions tidy + push to GitHub
#' Plot missingness
#'
#' @param x Data matrix or data.frame
#' @param feat.names Character: Feature names. Defaults to \code{colnames(x)}
#' @param case.names... | /R/mplot.missing.R | no_license | tlarzg/rtemis | R | false | false | 3,029 | r | # mplot.missing.R
# :: rtemis::
# 2020 E.D. Gennatas lambdamd.org
# Biostat214: Documentation with roxygen + keeping function definitions tidy + push to GitHub
#' Plot missingness
#'
#' @param x Data matrix or data.frame
#' @param feat.names Character: Feature names. Defaults to \code{colnames(x)}
#' @param case.names... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AzureCognitive.R
\name{create_cognitive_service}
\alias{create_cognitive_service}
\alias{get_cognitive_service}
\alias{delete_cognitive_service}
\title{Create, retrieve or delete an Azure Cognitive Service}
\description{
Methods for the \link... | /man/create_cognitive_service.Rd | permissive | Azure/AzureCognitive | R | false | true | 3,330 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AzureCognitive.R
\name{create_cognitive_service}
\alias{create_cognitive_service}
\alias{get_cognitive_service}
\alias{delete_cognitive_service}
\title{Create, retrieve or delete an Azure Cognitive Service}
\description{
Methods for the \link... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.77522235271714e-144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827255-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.77522235271714e-144, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data.R
\name{get_data_from_export}
\alias{get_data_from_export}
\title{Get data from export file}
\usage{
get_data_from_export(x)
}
\arguments{
\item{x}{Data file}
}
\description{
Get data from export file downloaded from Apple Watch.
}
| /man/get_data_from_export.Rd | permissive | jolyonfaria/awatchr | R | false | true | 319 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_data.R
\name{get_data_from_export}
\alias{get_data_from_export}
\title{Get data from export file}
\usage{
get_data_from_export(x)
}
\arguments{
\item{x}{Data file}
}
\description{
Get data from export file downloaded from Apple Watch.
}
|
#' evaluates enviroment variables based on a given pattern name
#'
#' @param pattern pattern to search in the enviroment
#' @param envir current enviroment
evalNames <- function(pattern, envir = globalenv()) {
sapply(ls(pattern = pattern,
envir = envir),
FUN = function(variableName) {
... | /utils.R | no_license | fsiola/modularShinyDashboard | R | false | false | 1,997 | r | #' evaluates enviroment variables based on a given pattern name
#'
#' @param pattern pattern to search in the enviroment
#' @param envir current enviroment
evalNames <- function(pattern, envir = globalenv()) {
sapply(ls(pattern = pattern,
envir = envir),
FUN = function(variableName) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_strata.R
\name{read_strata}
\alias{read_strata}
\title{read strata}
\usage{
read_strata(strata, pop.id = FALSE, pop.levels = NULL,
pop.labels = NULL, pop.select = NULL, blacklist.id = NULL,
keep.two = TRUE, verbose = FALSE)
}
\arg... | /man/read_strata.Rd | no_license | Maschette/radiator | R | false | true | 2,897 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_strata.R
\name{read_strata}
\alias{read_strata}
\title{read strata}
\usage{
read_strata(strata, pop.id = FALSE, pop.levels = NULL,
pop.labels = NULL, pop.select = NULL, blacklist.id = NULL,
keep.two = TRUE, verbose = FALSE)
}
\arg... |
# used for testing
ergm_getmodel <- function(formula,
nw,
response = NULL,
silent = FALSE,
role = "static",
...) {
if ((dc <- data.class(formula)) != "formula") {
stop(paste("Invali... | /tergmLite/inst/ergm_getmodel.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 5,078 | r |
# used for testing
ergm_getmodel <- function(formula,
nw,
response = NULL,
silent = FALSE,
role = "static",
...) {
if ((dc <- data.class(formula)) != "formula") {
stop(paste("Invali... |
#パッケ−ジ
library(mgcv)
library(ggplot2)
library(GGally)
library(MuMIn)
#データ読み込み
e.data <- read.csv("SumCoverNotAnnualSekisan.csv",header = T)
head(e.data)
plot(e.data$ErosionPin~e.data$Cover)
#ggpairs(na.omit(e.data ),
# upper=list(continuous="smooth"),
# params=list(corSize=6,labelSize=10)) #要素間の総当たりグラ... | /elements/GAMM (5).r | no_license | KazuhaM/Resources | R | false | false | 2,909 | r | #パッケ−ジ
library(mgcv)
library(ggplot2)
library(GGally)
library(MuMIn)
#データ読み込み
e.data <- read.csv("SumCoverNotAnnualSekisan.csv",header = T)
head(e.data)
plot(e.data$ErosionPin~e.data$Cover)
#ggpairs(na.omit(e.data ),
# upper=list(continuous="smooth"),
# params=list(corSize=6,labelSize=10)) #要素間の総当たりグラ... |
testKCmodel<-function (iter,posKC,KCthreshm,RSVDcomp,valtemp){
#==========================Reduce matrix================================
reducedmatrix<-rsvd(df,RSVDcomp)
rownames(reducedmatrix$v)<-rownames(mydata)
#==========================cluster matrix==============================
cm <- kmeans(reducedma... | /testKCmodel.R | no_license | LiangZhang2017/LDI-domain-modeling | R | false | false | 2,626 | r |
testKCmodel<-function (iter,posKC,KCthreshm,RSVDcomp,valtemp){
#==========================Reduce matrix================================
reducedmatrix<-rsvd(df,RSVDcomp)
rownames(reducedmatrix$v)<-rownames(mydata)
#==========================cluster matrix==============================
cm <- kmeans(reducedma... |
#' @name gimmeSEM
#' @aliases gimme gimmeSEM
#' @title Group iterative multiple model estimation.
#' @description This function identifies structural equation models for each
#' individual that consist of both group-level and individual-level paths.
#' @usage
#' gimmeSEM(data = "",
#' out = "",
... | /gimme/R/gimme.R | no_license | zackfisher/gimme | R | false | false | 24,736 | r | #' @name gimmeSEM
#' @aliases gimme gimmeSEM
#' @title Group iterative multiple model estimation.
#' @description This function identifies structural equation models for each
#' individual that consist of both group-level and individual-level paths.
#' @usage
#' gimmeSEM(data = "",
#' out = "",
... |
library(ape)
testtree <- read.tree("3704_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3704_0_unrooted.txt") | /codeml_files/newick_trees_processed/3704_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("3704_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="3704_0_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{writeFastaSR}
\alias{writeFastaSR}
\title{Method writeFastaSR}
\usage{
writeFastaSR(object, outputDir = NULL, compress = FALSE,
compression_level = NA)
}
\arguments{
\item{object}{A SangerRead S4 instance.}
\item{output... | /man/writeFastaSR-methods.Rd | permissive | kobbycyber/sangeranalyseR | R | false | true | 995 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{writeFastaSR}
\alias{writeFastaSR}
\title{Method writeFastaSR}
\usage{
writeFastaSR(object, outputDir = NULL, compress = FALSE,
compression_level = NA)
}
\arguments{
\item{object}{A SangerRead S4 instance.}
\item{output... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_help.R
\name{get_os}
\alias{get_os}
\title{get_os}
\usage{
get_os()
}
\value{
character osx, linux or windows
}
\description{
return the type of operating system, see https://conjugateprior.org/2015/06/identifying-the-os-from-r/
}
\ke... | /man/get_os.Rd | permissive | RubD/Giotto | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_help.R
\name{get_os}
\alias{get_os}
\title{get_os}
\usage{
get_os()
}
\value{
character osx, linux or windows
}
\description{
return the type of operating system, see https://conjugateprior.org/2015/06/identifying-the-os-from-r/
}
\ke... |
#' @title Predicts Stock Price Movement for Given Stock Symbol
#'
#' @description This package predicts whether the stock price at tommorow's market close would be higher or lower compared to today's closing place.
#'
#' @param symbol
#'
#' @return NULL
#'
#' @examples stock_predict('AAPL')
#'
#' @export stock_predict... | /R/StockAnalyseR.R | no_license | nkdhruw/StockAnalyseR | R | false | false | 2,246 | r | #' @title Predicts Stock Price Movement for Given Stock Symbol
#'
#' @description This package predicts whether the stock price at tommorow's market close would be higher or lower compared to today's closing place.
#'
#' @param symbol
#'
#' @return NULL
#'
#' @examples stock_predict('AAPL')
#'
#' @export stock_predict... |
#' plotScatterPie
#'
#' plot scatter pie chart for multidimension analysis, such as waternomics. This plot can
#' provide information about water use/wastewater of each provinces and GDP mix of each provinces,
#' see examples.
#' @param data a dataframe showing different management intersections. See the data frame in... | /R/plotChord.R | no_license | Yuanchao-Xu/gfer | R | false | false | 3,211 | r |
#' plotScatterPie
#'
#' plot scatter pie chart for multidimension analysis, such as waternomics. This plot can
#' provide information about water use/wastewater of each provinces and GDP mix of each provinces,
#' see examples.
#' @param data a dataframe showing different management intersections. See the data frame in... |
library(dplyr)
library(mixtools)
# https://www.r-bloggers.com/fitting-mixture-distributions-with-the-r-package-mixtools/
load('Data/eBird data/Final eBird data for analysis/species_urban.RData')
test_species <- c("Common Myna", "Australian Ibis", "Southern Emuwren", "Noisy Miner",
"Dusky Grasswren",... | /scripts/mixtools_means.R | no_license | coreytcallaghan/Oikos_oik.06158 | R | false | false | 1,184 | r | library(dplyr)
library(mixtools)
# https://www.r-bloggers.com/fitting-mixture-distributions-with-the-r-package-mixtools/
load('Data/eBird data/Final eBird data for analysis/species_urban.RData')
test_species <- c("Common Myna", "Australian Ibis", "Southern Emuwren", "Noisy Miner",
"Dusky Grasswren",... |
#Micropan - blast
library(micropan)
library(parallel)
setwd("/mnt/ubi/iferres/pewitEval/negGram/")
dirs <- list.dirs(recursive = FALSE)
dirs <- grep('_gff', dirs, value = TRUE)
dir.create('micropan_blast_resu')
fin <- mclapply(1:length(dirs), function(d){
gffs <- list.files(path = dirs[d], pattern = 'gff$', f... | /micropan_blast_negGram.R | no_license | iferres/pangenomeEval_scripts | R | false | false | 3,084 | r | #Micropan - blast
library(micropan)
library(parallel)
setwd("/mnt/ubi/iferres/pewitEval/negGram/")
dirs <- list.dirs(recursive = FALSE)
dirs <- grep('_gff', dirs, value = TRUE)
dir.create('micropan_blast_resu')
fin <- mclapply(1:length(dirs), function(d){
gffs <- list.files(path = dirs[d], pattern = 'gff$', f... |
#' Network visualization focus method
#'
#' For use focus() method in a shiny app. For full documentation, have a look at \link{visDocumentation}.
#'
#'@param graph : a \code{\link{visNetworkProxy}} object
#'@param id : a node id
#'@param scale : Optional. Number. The scale is the target zoomlevel. Default value is 2... | /risk_network/visNetwork-master/R/visFocus.R | permissive | WilliamTorsett/data_analytics | R | false | false | 2,388 | r | #' Network visualization focus method
#'
#' For use focus() method in a shiny app. For full documentation, have a look at \link{visDocumentation}.
#'
#'@param graph : a \code{\link{visNetworkProxy}} object
#'@param id : a node id
#'@param scale : Optional. Number. The scale is the target zoomlevel. Default value is 2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FileRenameAction.r
\docType{data}
\name{FileRenameAction}
\alias{FileRenameAction}
\title{FileRenameAction Class}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
FileRenameAction
}
\description{
Request for a file/fo... | /man/FileRenameAction.Rd | permissive | agaveplatform/r-sdk | R | false | true | 699 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FileRenameAction.r
\docType{data}
\name{FileRenameAction}
\alias{FileRenameAction}
\title{FileRenameAction Class}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
FileRenameAction
}
\description{
Request for a file/fo... |
### Heatmap
bball <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", header=TRUE)
# Ordering
bball <- bball[order(bball$PTS),]
bball_byfgp <- bball[order(bball$FGP, decreasing=TRUE),]
row.names(bball) <- bball$Name
bball <- bball[,2:20]
bball_matrix <- data.matrix(bball)
bball_heatmap <- heatmap(bball_matrix... | /heatmaps.R | no_license | rrigato/R_programming | R | false | false | 3,393 | r | ### Heatmap
bball <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", header=TRUE)
# Ordering
bball <- bball[order(bball$PTS),]
bball_byfgp <- bball[order(bball$FGP, decreasing=TRUE),]
row.names(bball) <- bball$Name
bball <- bball[,2:20]
bball_matrix <- data.matrix(bball)
bball_heatmap <- heatmap(bball_matrix... |
# IMPORTS =====================================================================================================================================================
library(R6)
library(gridExtra)
library(grid)
library(xlsx)
# CLASS ====================================================================================... | /fintools/R/Portfolio.R | no_license | miltonluaces/data_science_in_R | R | false | false | 2,172 | r | # IMPORTS =====================================================================================================================================================
library(R6)
library(gridExtra)
library(grid)
library(xlsx)
# CLASS ====================================================================================... |
library(rstan)
library(rstanarm)
library(parallel)
library(rstudioapi)
library(grid)
library(tidyverse)
library(kableExtra)
library(foreach)
library(doParallel)
options(mc.cores = parallel::detectCores())
source('../2_postFunction.R')
source('../3_supportFunctions.R')
source('../4_plotCluster.R')
source(... | /1_main.R | no_license | maoyinan/Projection-Clustering | R | false | false | 1,920 | r | library(rstan)
library(rstanarm)
library(parallel)
library(rstudioapi)
library(grid)
library(tidyverse)
library(kableExtra)
library(foreach)
library(doParallel)
options(mc.cores = parallel::detectCores())
source('../2_postFunction.R')
source('../3_supportFunctions.R')
source('../4_plotCluster.R')
source(... |
pollutantmean <- function(directory = "specdata", pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
csvs <- paste(directory, "", sep = "/")
## print(csvs) TESTING
## 'pollutant' is a character vector of length 1 i... | /R Programming/pollutantmean.R | no_license | androidpcguy/datasciencecoursera | R | false | false | 1,407 | r | pollutantmean <- function(directory = "specdata", pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
csvs <- paste(directory, "", sep = "/")
## print(csvs) TESTING
## 'pollutant' is a character vector of length 1 i... |
#Dataframe is a collection of hectrogenous elements
#The only difference between list and dataframe is that
#you need create any type of address for the vecor declared
#Command to create the vectors
eid<-c(1,2,3,4)
ename<-c("Ram","Raj","Scanda","Archie")
eage<-c(20,30,40,50)
eloc<-c("Mumbai","Chennai","Bangalor... | /Dataframe.R | no_license | vaish6-dinesh/R-exercise- | R | false | false | 570 | r | #Dataframe is a collection of hectrogenous elements
#The only difference between list and dataframe is that
#you need create any type of address for the vecor declared
#Command to create the vectors
eid<-c(1,2,3,4)
ename<-c("Ram","Raj","Scanda","Archie")
eage<-c(20,30,40,50)
eloc<-c("Mumbai","Chennai","Bangalor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/os.R
\name{ez.fls}
\alias{ez.fls}
\title{fls}
\usage{
ez.fls(path = ".", pattern = NULL)
}
\description{
fls
}
| /man/ez.fls.Rd | permissive | rmtsoa/ezmisc | R | false | true | 190 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/os.R
\name{ez.fls}
\alias{ez.fls}
\title{fls}
\usage{
ez.fls(path = ".", pattern = NULL)
}
\description{
fls
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable-summaries.r
\name{ewaff.summarize.relationship}
\alias{ewaff.summarize.relationship}
\title{Describe the relationship between two variables.}
\usage{
ewaff.summarize.relationship(vars)
}
\arguments{
\item{vars}{A data frame with at l... | /man/ewaff.summarize.relationship.Rd | permissive | perishky/ewaff | R | false | true | 1,789 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variable-summaries.r
\name{ewaff.summarize.relationship}
\alias{ewaff.summarize.relationship}
\title{Describe the relationship between two variables.}
\usage{
ewaff.summarize.relationship(vars)
}
\arguments{
\item{vars}{A data frame with at l... |
testlist <- list(a = 9.97941513493538e-316, b = 0)
result <- do.call(BayesMRA::rmvn_arma_scalar,testlist)
str(result) | /BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926445-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 117 | r | testlist <- list(a = 9.97941513493538e-316, b = 0)
result <- do.call(BayesMRA::rmvn_arma_scalar,testlist)
str(result) |
#' Engines of other languages
#'
#' This object controls how to execute the code from languages other than R
#' (when the chunk option \code{engine} is not \code{'R'}). Each component in
#' this object is a function that takes a list of current chunk options
#' (including the source code) and returns a character string... | /R/engine.R | no_license | alastairandrew/knitr | R | false | false | 3,284 | r | #' Engines of other languages
#'
#' This object controls how to execute the code from languages other than R
#' (when the chunk option \code{engine} is not \code{'R'}). Each component in
#' this object is a function that takes a list of current chunk options
#' (including the source code) and returns a character string... |
## Put comments here that give an overall description of what your
## functions do
## These functions provide for the storing & retrieving of the inverse of a
## matrix. lexical scoping rules are utilized to effect the cacheing.Cacheing is
## critical to ensuring scarce computational resources are not wasted
## re-co... | /cachematrix.R | no_license | hgladstone/ProgrammingAssignment2 | R | false | false | 1,170 | r | ## Put comments here that give an overall description of what your
## functions do
## These functions provide for the storing & retrieving of the inverse of a
## matrix. lexical scoping rules are utilized to effect the cacheing.Cacheing is
## critical to ensuring scarce computational resources are not wasted
## re-co... |
library(dplyr)
library(readr)
url<-'http://people.terry.uga.edu/rwatson/data/manheim.txt'
df<-as_data_frame(read_delim(url, delim=','))
#1.a Use the table function to compute the number of
#sales for each type of model
table(df$model)
#1.b Use the table function to compute the number of
#sales for each type of sale
... | /hw9.R | no_license | angelddaz/learning_r | R | false | false | 948 | r | library(dplyr)
library(readr)
url<-'http://people.terry.uga.edu/rwatson/data/manheim.txt'
df<-as_data_frame(read_delim(url, delim=','))
#1.a Use the table function to compute the number of
#sales for each type of model
table(df$model)
#1.b Use the table function to compute the number of
#sales for each type of sale
... |
renderHistoryTables <- function(input, output, session, rv) {
## Findings / Treatments
output$historyTable <-
renderDataTable({
table <- rv$treatmentTable[with(rv$treatmentTable, order(date, decreasing = T)),]
table <- table[,-which(names(table) %in%
c("calfID","calf.... | /calf-health-manager/server_functions/renderHistoryTables.R | no_license | Somtom/Docker_shiny | R | false | false | 1,463 | r | renderHistoryTables <- function(input, output, session, rv) {
## Findings / Treatments
output$historyTable <-
renderDataTable({
table <- rv$treatmentTable[with(rv$treatmentTable, order(date, decreasing = T)),]
table <- table[,-which(names(table) %in%
c("calfID","calf.... |
#' \code{patch_recode} S3 class constructor
#'
#' @description
#' S3 class \code{patch_recode} which extends the \code{patch} and
#' \code{function} classes to represent a transformation of a tabular dataset
#' by re-encoding categorical data in one or more columns.
#'
#' @param cols
#' A vector of column identifiers.
... | /R/patch_recode.R | permissive | tpetricek/datadiff | R | false | false | 4,654 | r | #' \code{patch_recode} S3 class constructor
#'
#' @description
#' S3 class \code{patch_recode} which extends the \code{patch} and
#' \code{function} classes to represent a transformation of a tabular dataset
#' by re-encoding categorical data in one or more columns.
#'
#' @param cols
#' A vector of column identifiers.
... |
#' Makes Figure 2a from manuscript
#' @author Joel Hellewell
#'
#' @return A ggplot2 plot object
#' @export
#' @importFrom data.table data.table
#' @importFrom tidyr gather
#' @importFrom magrittr %<>%
#' @importFrom dplyr mutate
#' @importFrom graphics hist
#' @importFrom data.table data.table
#' @importFrom ggplot2 g... | /R/figures2to4.R | permissive | timcdlucas/ringbp | R | false | false | 15,700 | r | #' Makes Figure 2a from manuscript
#' @author Joel Hellewell
#'
#' @return A ggplot2 plot object
#' @export
#' @importFrom data.table data.table
#' @importFrom tidyr gather
#' @importFrom magrittr %<>%
#' @importFrom dplyr mutate
#' @importFrom graphics hist
#' @importFrom data.table data.table
#' @importFrom ggplot2 g... |
# This is the user-interface definition of the Shiny web application
# 'Simulation of Optimal Foraging'.
# Author: Manon Schutte
# June 2017
#
# run the application by clicking 'Run App' above.
library(shiny)
library(markdown)
library(networkD3)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... | /ui.R | no_license | MSchutte/Optimal-foraging | R | false | false | 1,059 | r | # This is the user-interface definition of the Shiny web application
# 'Simulation of Optimal Foraging'.
# Author: Manon Schutte
# June 2017
#
# run the application by clicking 'Run App' above.
library(shiny)
library(markdown)
library(networkD3)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... |
399f4526fb8f395681549edaa5c22a81 c5_BMC_p1_k2.qdimacs 13604 38226 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Mangassarian-Veneris/BMC/c5_BMC_p1_k2/c5_BMC_p1_k2.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 65 | r | 399f4526fb8f395681549edaa5c22a81 c5_BMC_p1_k2.qdimacs 13604 38226 |
\name{sn.i, tn.i}
\title{Local kernel weights}
\alias{sn.0}
\alias{sn.1}
\alias{sn.2}
\alias{sn.3}
\alias{sn.4}
\alias{sn.5}
\alias{sn.6}
\alias{tn.0}
\alias{tn.1}
\alias{tn.2}
\alias{tn.3}
\description{
Implements the local kernel weights which are used in the implementation of \code{\link{LocLinEst}} an... | /man/LocLinAuxQuantities.Rd | no_license | cran/NPHazardRate | R | false | false | 1,948 | rd | \name{sn.i, tn.i}
\title{Local kernel weights}
\alias{sn.0}
\alias{sn.1}
\alias{sn.2}
\alias{sn.3}
\alias{sn.4}
\alias{sn.5}
\alias{sn.6}
\alias{tn.0}
\alias{tn.1}
\alias{tn.2}
\alias{tn.3}
\description{
Implements the local kernel weights which are used in the implementation of \code{\link{LocLinEst}} an... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arma_benchmark.R
\name{arma_benchmark}
\alias{arma_benchmark}
\title{Calculated log-ARMA log-likelihood benchmark for spatPomp models}
\usage{
arma_benchmark(spo, order = c(2, 0, 1))
}
\arguments{
\item{spo}{A spatPomp object}
\item{order}{A... | /man/arma_benchmark.Rd | no_license | kidusasfaw/spatPomp | R | false | true | 1,077 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arma_benchmark.R
\name{arma_benchmark}
\alias{arma_benchmark}
\title{Calculated log-ARMA log-likelihood benchmark for spatPomp models}
\usage{
arma_benchmark(spo, order = c(2, 0, 1))
}
\arguments{
\item{spo}{A spatPomp object}
\item{order}{A... |
## File Name: tam.threshold.R
## File Version: 9.15
#**** Thurstonian thresholds (gammas)
tam.threshold <- function (tamobj, prob.lvl=0.5)
{
resp <- tamobj$resp
nitems <- tamobj$nitems
maxK <- tamobj$maxK
AXsi <- tamobj$AXsi
xsi <- tamobj$xsi
if (class(tamobj)!="tam.jml"){
... | /R/tam.threshold.R | no_license | rcaceresb/TAM | R | false | false | 1,914 | r | ## File Name: tam.threshold.R
## File Version: 9.15
#**** Thurstonian thresholds (gammas)
tam.threshold <- function (tamobj, prob.lvl=0.5)
{
resp <- tamobj$resp
nitems <- tamobj$nitems
maxK <- tamobj$maxK
AXsi <- tamobj$AXsi
xsi <- tamobj$xsi
if (class(tamobj)!="tam.jml"){
... |
## Put comments here that give an overall description of what your
## functions do
## These functions are written for the assignment 2 of JHU R programming course.
## Write a short comment describing this function
## Function to get the input matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
get <- f... | /cachematrix.R | no_license | tttonytian/ProgrammingAssignment2 | R | false | false | 1,047 | r | ## Put comments here that give an overall description of what your
## functions do
## These functions are written for the assignment 2 of JHU R programming course.
## Write a short comment describing this function
## Function to get the input matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
get <- f... |
#' Quantile - Quantile
#'
#' @param x numeric
#' @param probs the quantiles of interest
#' @param na.rm TRUE or FALSE: what do you want to do with NAs?
#' @param ... 9 different algorithms for computing quantiles
#'
#' @return numeric
#' @export
#'
#' @examples
#' #' set.seed(1234)
#' #' z <- rnorm(10)
#' #' qdiff(z, p... | /R/qdiff.R | no_license | scienceisfiction/maxmin | R | false | false | 567 | r | #' Quantile - Quantile
#'
#' @param x numeric
#' @param probs the quantiles of interest
#' @param na.rm TRUE or FALSE: what do you want to do with NAs?
#' @param ... 9 different algorithms for computing quantiles
#'
#' @return numeric
#' @export
#'
#' @examples
#' #' set.seed(1234)
#' #' z <- rnorm(10)
#' #' qdiff(z, p... |
# Extract drug df
drug_df <- function(rec) {
tibble(
primary_key = xmlValue(rec["drugbank-id"][[1]]),
other_keys = ifelse(length(rec["drugbank-id"]) > 1,
paste(map_chr(c(2:length(rec["drugbank-id"])),
~ xmlValue(rec["drugbank-id"][[.]]))
... | /R/drug_main_node_parser.R | no_license | fabbondanza/dbparser | R | false | false | 2,166 | r | # Extract drug df
drug_df <- function(rec) {
tibble(
primary_key = xmlValue(rec["drugbank-id"][[1]]),
other_keys = ifelse(length(rec["drugbank-id"]) > 1,
paste(map_chr(c(2:length(rec["drugbank-id"])),
~ xmlValue(rec["drugbank-id"][[.]]))
... |
## Tutorial for Linear Model and its extension + Additional Stuff
library(tidyverse)
library(faraway)
library(ggfortify)
library(MASS) # glm
library(nnet) # multinomial
library(lme4) # multilevel model
library(gee) # generalised estimating equation
library(splines) # to find number of splines
library(sur... | /glm.R | no_license | bakakatze/linear-model-train | R | false | false | 117,924 | r | ## Tutorial for Linear Model and its extension + Additional Stuff
library(tidyverse)
library(faraway)
library(ggfortify)
library(MASS) # glm
library(nnet) # multinomial
library(lme4) # multilevel model
library(gee) # generalised estimating equation
library(splines) # to find number of splines
library(sur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/climdat.fut.R
\docType{data}
\name{climdat.fut}
\alias{climdat.fut}
\title{Future climate data}
\format{
A RasterBrick with 10 layers:
\describe{
\item{MDR}{mean diurnal range (mean of monthly max temp - min temp)}
\item{ISO}{isothermalit... | /man/climdat.fut.Rd | no_license | rinnan/CENFA | R | false | true | 1,020 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/climdat.fut.R
\docType{data}
\name{climdat.fut}
\alias{climdat.fut}
\title{Future climate data}
\format{
A RasterBrick with 10 layers:
\describe{
\item{MDR}{mean diurnal range (mean of monthly max temp - min temp)}
\item{ISO}{isothermalit... |
#---------------------------------------------------------------------------------------------------#
# GPI Internal Peace Indicator: Weighted Average Construction
#
# Rebuilding the GPI indicator by internal and external peace domain, in order to construct an
# indicator for internal and external peace separately. T... | /ReproPack/R/08_GPI_InternalPeace.R | no_license | timriffe/GlobalViolence | R | false | false | 21,525 | r | #---------------------------------------------------------------------------------------------------#
# GPI Internal Peace Indicator: Weighted Average Construction
#
# Rebuilding the GPI indicator by internal and external peace domain, in order to construct an
# indicator for internal and external peace separately. T... |
#' @include CDPRemote.R utils.R wait.R
#' @importFrom assertthat assert_that is.scalar is.number
NULL
#' Execute an asynchronous CDP flow with Chrome
#'
#' The `perform_with_chrome()` function executes an asynchronous Chrome DevTools
#' Protocol flow with Chromium/Chrome and can turn it into a synchronous function.
#'... | /R/Chrome.R | permissive | RLesur/crrri | R | false | false | 20,658 | r | #' @include CDPRemote.R utils.R wait.R
#' @importFrom assertthat assert_that is.scalar is.number
NULL
#' Execute an asynchronous CDP flow with Chrome
#'
#' The `perform_with_chrome()` function executes an asynchronous Chrome DevTools
#' Protocol flow with Chromium/Chrome and can turn it into a synchronous function.
#'... |
source("setup.R")
source("configure.R")
source("module_DE_res.R")
source("module_ESR1_binding.R")
source("module_MCF7_enhancers.R")
| /pipeline.R | no_license | jrboyd/paper3_v3 | R | false | false | 132 | r | source("setup.R")
source("configure.R")
source("module_DE_res.R")
source("module_ESR1_binding.R")
source("module_MCF7_enhancers.R")
|
library(testthat)
library(walkast)
test_check("walkast")
| /tests/testthat.R | permissive | epwalsh/walkast | R | false | false | 62 | r | library(testthat)
library(walkast)
test_check("walkast")
|
# Script to plot some results from model fitting
#
# USER-SET PARAMETERS---------------------------------------------------------------
reps = 10000 # number of simulation reps to use (1000 for fast, 10000 for precise)
PAmeans = c(.18,.07,.75) # future expected proportion of pups in S Gulf, N Gulf, Front
# Specify ... | /HS_estTAC.r | no_license | mttinker/Harpseal | R | false | false | 19,604 | r | # Script to plot some results from model fitting
#
# USER-SET PARAMETERS---------------------------------------------------------------
reps = 10000 # number of simulation reps to use (1000 for fast, 10000 for precise)
PAmeans = c(.18,.07,.75) # future expected proportion of pups in S Gulf, N Gulf, Front
# Specify ... |
print("Summarize page and size conversions in a file")
tab <- cbind(gatherings = df$document.dimension.gatherings.original,
gatherings.estimated = df$document.dimension.gatherings.estimated,
width = df$document.dimension.width.original,
width.estimated = df$document.dimension.width.estimated,... | /inst/examples/summarize.page.conversions.R | permissive | COMHIS/fennica | R | false | false | 1,074 | r |
print("Summarize page and size conversions in a file")
tab <- cbind(gatherings = df$document.dimension.gatherings.original,
gatherings.estimated = df$document.dimension.gatherings.estimated,
width = df$document.dimension.width.original,
width.estimated = df$document.dimension.width.estimated,... |
### Reason: test eQTLs identified in Kilpinen et al in our dataset
### Author: Drew Neavin
### Date: 1 April, 2022
library(data.table)
library(Seurat)
library(vcfR)
library(glmmTMB)
library(dplyr)
library(ggplot2)
##### Bring in variables #####
### Bring in arguments
args <- commandArgs(trailingOnly = TRUE)
ensg <... | /eQTL_check/multi-passage/test_eQTL.R | no_license | powellgenomicslab/iPSC_Village_scripts | R | false | false | 8,953 | r | ### Reason: test eQTLs identified in Kilpinen et al in our dataset
### Author: Drew Neavin
### Date: 1 April, 2022
library(data.table)
library(Seurat)
library(vcfR)
library(glmmTMB)
library(dplyr)
library(ggplot2)
##### Bring in variables #####
### Bring in arguments
args <- commandArgs(trailingOnly = TRUE)
ensg <... |
library(ggplot2) #must load the ggplot package first
data(diamonds) #loads the diamonds data set since it comes with the ggplot package
names(diamonds)
pf <- diamonds
#observations in a dataset
nrow(pf)
#number of variables in dataset
ncol(pf)
#to see the description of diamonds
?diamonds
#choose the best colo... | /Example_one_variable.R | no_license | shalinimanchikanti/R_Basiccs | R | false | false | 1,027 | r |
library(ggplot2) #must load the ggplot package first
data(diamonds) #loads the diamonds data set since it comes with the ggplot package
names(diamonds)
pf <- diamonds
#observations in a dataset
nrow(pf)
#number of variables in dataset
ncol(pf)
#to see the description of diamonds
?diamonds
#choose the best colo... |
/P3/Codigo/pca.R | no_license | byKakayo/analise_reco_padroes | R | false | false | 2,294 | r | ||
rm(list=ls())
library(plotrix)
library(dplyr)
library(fields)
library(car)
library(reshape2)
library(plyr)
library(dplyr)
library(tidyr)
library(reshape2)
library(ggplot2)
#Read in data
data <- read.csv("clean_data.csv")
dim(data)
#Check that variables are of correct types
str(data)
data$subject_number <- as.factor(d... | /5_within_tx_difference_scores.R | no_license | heatherkoff/Frontiers_Project | R | false | false | 5,014 | r | rm(list=ls())
library(plotrix)
library(dplyr)
library(fields)
library(car)
library(reshape2)
library(plyr)
library(dplyr)
library(tidyr)
library(reshape2)
library(ggplot2)
#Read in data
data <- read.csv("clean_data.csv")
dim(data)
#Check that variables are of correct types
str(data)
data$subject_number <- as.factor(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/printfile_defaults.R
\docType{data}
\name{printfileDefaults}
\alias{printfileDefaults}
\alias{stock_std}
\alias{stock_full}
\alias{stock}
\alias{predator}
\alias{predator_over}
\alias{prey_over}
\alias{stock_prey_full}
\alias{stock_prey}
\ali... | /man/printfileDefaults.Rd | no_license | inspktrgadget/gadgetSim | R | false | true | 748 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/printfile_defaults.R
\docType{data}
\name{printfileDefaults}
\alias{printfileDefaults}
\alias{stock_std}
\alias{stock_full}
\alias{stock}
\alias{predator}
\alias{predator_over}
\alias{prey_over}
\alias{stock_prey_full}
\alias{stock_prey}
\ali... |
# this script is similar to kde_bimodal_sample_bins, except that rather than sampling from the KDE estimates in each pc1 bin,
# we sample from chris's statistical estimates for each climate bin:
pls.df <- read.csv("data/PLS_FIA_density_climate_full.csv")
# read in draws of total PLS density:
total.m <- read.csv("data... | /R/stat_samples_bimodal_preds_single_bins.R | no_license | emmears/bimodality | R | false | false | 75,748 | r | # this script is similar to kde_bimodal_sample_bins, except that rather than sampling from the KDE estimates in each pc1 bin,
# we sample from chris's statistical estimates for each climate bin:
pls.df <- read.csv("data/PLS_FIA_density_climate_full.csv")
# read in draws of total PLS density:
total.m <- read.csv("data... |
data <- read.csv("./data/athlete_events.csv", stringsAsFactors = FALSE) %>%
filter(Medal != is.na(Medal))
noc_regions <- fread("./data/noc_regions.csv")
combined_medal_data <- left_join(data, noc_regions, by = "NOC") %>%
filter(!is.na(region))
counts <- group_by(combined_medal_data, Medal, region) %>%
summ... | /olympics_group_app/data/map_data.R | no_license | erinRochfort99/info201GroupProject | R | false | false | 762 | r |
data <- read.csv("./data/athlete_events.csv", stringsAsFactors = FALSE) %>%
filter(Medal != is.na(Medal))
noc_regions <- fread("./data/noc_regions.csv")
combined_medal_data <- left_join(data, noc_regions, by = "NOC") %>%
filter(!is.na(region))
counts <- group_by(combined_medal_data, Medal, region) %>%
summ... |
library(R.oo)
### Name: isPrivate.Class
### Title: Checks if a class is defined private or not
### Aliases: isPrivate.Class Class.isPrivate isPrivate,Class-method
### Keywords: internal methods programming
### ** Examples
if (isPrivate(RccViolationException))
throw("The class RccViolationException should NOT ... | /data/genthat_extracted_code/R.oo/examples/isPrivate.Class.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 337 | r | library(R.oo)
### Name: isPrivate.Class
### Title: Checks if a class is defined private or not
### Aliases: isPrivate.Class Class.isPrivate isPrivate,Class-method
### Keywords: internal methods programming
### ** Examples
if (isPrivate(RccViolationException))
throw("The class RccViolationException should NOT ... |
# RCytoscape/inst/test_cytoscape.R
# Do not run this in cloud via jupyter-bridge. It will fail.
#-------------------------------------------------------------------------------
library (RCy3)
library (RUnit)
library (graph)
if(!"igraph" %in% installed.packages()){
install.packages("igraph")
}
library (igraph)
#---... | /inst/unitTests/test_RCy3.R | permissive | cytoscape/RCy3 | R | false | false | 71,618 | r | # RCytoscape/inst/test_cytoscape.R
# Do not run this in cloud via jupyter-bridge. It will fail.
#-------------------------------------------------------------------------------
library (RCy3)
library (RUnit)
library (graph)
if(!"igraph" %in% installed.packages()){
install.packages("igraph")
}
library (igraph)
#---... |
scaleAndDiff <- function(rawData){
# scale data and compute difference between t1 and t2 for each id
# return scaled diff dataframe
# "rawData" is in long format
require(tidyverse)
normVariable <- "globMean" # "brainMean"
normVariable <- "brainMean"
scaledData <- rawData
roiLabels <- names(ra... | /analysis/scaleAndDiff.R | no_license | torgil01/ratbrain | R | false | false | 1,218 | r | scaleAndDiff <- function(rawData){
# scale data and compute difference between t1 and t2 for each id
# return scaled diff dataframe
# "rawData" is in long format
require(tidyverse)
normVariable <- "globMean" # "brainMean"
normVariable <- "brainMean"
scaledData <- rawData
roiLabels <- names(ra... |
#load libraries
library(ggplot2)
library(dplyr)
library(reshape2)
library(stringr)
library(lubridate)
library(data.table)
###Goal###
# Work on the total number of business in all cities
#set working directory
setwd("~/Desktop/R_184/Week 3/Yelp-Dataset")
Busn<-fread("yelp_academic_dataset_business.csv")
USstate <- c... | /Reshaping and Aggregation/isOpen.R | no_license | YvnGong/RFinalReview | R | false | false | 939 | r | #load libraries
library(ggplot2)
library(dplyr)
library(reshape2)
library(stringr)
library(lubridate)
library(data.table)
###Goal###
# Work on the total number of business in all cities
#set working directory
setwd("~/Desktop/R_184/Week 3/Yelp-Dataset")
Busn<-fread("yelp_academic_dataset_business.csv")
USstate <- c... |
batches <- c(
94.1, 93.2, 90.6, 91.4, 88.2, 86.1, 95.1,
90.0, 92.4, 87.3, 86.6, 91.2, 86.1, 90.4,
89.1, 87.3, 84.1, 90.1, 95.2, 86.1, 94.3,
93.2, 86.7, 83.0, 95.3, 94.1, 97.8, 93.1,
86.4, 87.6, 94.1, 92.1, 96.4, 88.2, 86.4,
85.0, 84.9, 78.3, 89.6, 90.3, 93.1, 94.6,
93.6, 94.7, 91.1, 92.4, 90.6, 89.1, 88.8,
86.4... | /Chapter 6/Exercise 6.17.r | no_license | kmahoski/Statistical-Data-Analysis-in-R | R | false | false | 593 | r | batches <- c(
94.1, 93.2, 90.6, 91.4, 88.2, 86.1, 95.1,
90.0, 92.4, 87.3, 86.6, 91.2, 86.1, 90.4,
89.1, 87.3, 84.1, 90.1, 95.2, 86.1, 94.3,
93.2, 86.7, 83.0, 95.3, 94.1, 97.8, 93.1,
86.4, 87.6, 94.1, 92.1, 96.4, 88.2, 86.4,
85.0, 84.9, 78.3, 89.6, 90.3, 93.1, 94.6,
93.6, 94.7, 91.1, 92.4, 90.6, 89.1, 88.8,
86.4... |
# =========================================================================
# Title: Earthquakes.R
# Author: Gaston Sanchez
# Date: May, 2012
# Description: Code in R to visualize earthquakes in Northern California
#
# License: BSD Simplified License
# http://www.opensource.org/... | /B_analysts_sources_github/gastonstat/Crunching_Data/Earthquakes.R | no_license | Irbis3/crantasticScrapper | R | false | false | 5,322 | r | # =========================================================================
# Title: Earthquakes.R
# Author: Gaston Sanchez
# Date: May, 2012
# Description: Code in R to visualize earthquakes in Northern California
#
# License: BSD Simplified License
# http://www.opensource.org/... |
rm(list=ls())
library(FLCore)
library(ggplotFL)
library(Cairo)
library(reshape2)
library(data.table)
library(dplyr)
### set up parallel computing environment
library(doParallel)
cl <- makeCluster(28)
registerDoParallel(cl)
getDoParWorkers()
getDoParName()
### ---------------------------------------------------------... | /MP_analysis_PC.R | no_license | PieraC/MSE_Sprat | R | false | false | 15,066 | r | rm(list=ls())
library(FLCore)
library(ggplotFL)
library(Cairo)
library(reshape2)
library(data.table)
library(dplyr)
### set up parallel computing environment
library(doParallel)
cl <- makeCluster(28)
registerDoParallel(cl)
getDoParWorkers()
getDoParName()
### ---------------------------------------------------------... |
## Script for formatting an obitools fasta file into a vsearch fasta file
## The script will read the input file name, the output file name, and the name of the attribute containing abundances
## If the output file argument is empty, it will just add ".vsearch.fasta" at the end of the name of the input file.
## By Owen... | /R/owi_obifasta2vsearch.R | no_license | myces/MJOLNIR | R | false | false | 1,198 | r | ## Script for formatting an obitools fasta file into a vsearch fasta file
## The script will read the input file name, the output file name, and the name of the attribute containing abundances
## If the output file argument is empty, it will just add ".vsearch.fasta" at the end of the name of the input file.
## By Owen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/domGame.R
\name{domGame}
\alias{domGame}
\title{Dominant strategy game generator}
\usage{
domGame(M, N, min, max)
}
\arguments{
\item{M}{Number of strategies of Player A (rows)}
\item{N}{Number of strategies of Player B (columns)}
\item{min... | /man/domGame.Rd | permissive | rfaltings/GT.Tools | R | false | true | 532 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/domGame.R
\name{domGame}
\alias{domGame}
\title{Dominant strategy game generator}
\usage{
domGame(M, N, min, max)
}
\arguments{
\item{M}{Number of strategies of Player A (rows)}
\item{N}{Number of strategies of Player B (columns)}
\item{min... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filtration.R
\name{filtration}
\alias{filtration}
\title{Filtered simplicial complex}
\usage{
filtration(simplices, grades = NULL, type = "infer", persistent = TRUE)
}
\arguments{
\item{simplices}{list of simplices in filtration order, or a s... | /man/filtration.Rd | permissive | peekxc/dart | R | false | true | 3,437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filtration.R
\name{filtration}
\alias{filtration}
\title{Filtered simplicial complex}
\usage{
filtration(simplices, grades = NULL, type = "infer", persistent = TRUE)
}
\arguments{
\item{simplices}{list of simplices in filtration order, or a s... |
#Title: RandomForest.R
#Author: Chris Montgomery
# Input: cleaned_train.csv
#Output:
#Description: This script produces a Random Forest model for the titanic dataset in R.
library(randomForest)
df <- read.csv('cleaned_train_test.csv')
df <- df[, !colnames(df) %in% c("Cabin", "Name", "Ticket", 'X')]
df <- na.omit(... | /titanic/RandomForest.R | no_license | crm105/kaggle_competitions | R | false | false | 1,613 | r | #Title: RandomForest.R
#Author: Chris Montgomery
# Input: cleaned_train.csv
#Output:
#Description: This script produces a Random Forest model for the titanic dataset in R.
library(randomForest)
df <- read.csv('cleaned_train_test.csv')
df <- df[, !colnames(df) %in% c("Cabin", "Name", "Ticket", 'X')]
df <- na.omit(... |
is.dstatis <-
function(x)
{
return(is(x, "dstatis"))
}
| /R/is.dstatis.R | no_license | cran/dad | R | false | false | 60 | r | is.dstatis <-
function(x)
{
return(is(x, "dstatis"))
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.