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 |
|---|---|---|---|---|---|---|---|---|---|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/R/record-batch-reader.R | permissive | guyuqi/arrow | R | false | false | 8,359 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
\name{TDA-package}
\alias{TDA-package}
\alias{TDA}
\docType{package}
\title{
Statistical Tools for Topological Data Analysis
}
\description{
Tools for Topological Data Analysis. In particular it provides functions for the statistical analysis of persistent homology and for density clustering. For th... | /man/TDA-package.Rd | no_license | tygrin/TDA | R | false | false | 2,215 | rd | \name{TDA-package}
\alias{TDA-package}
\alias{TDA}
\docType{package}
\title{
Statistical Tools for Topological Data Analysis
}
\description{
Tools for Topological Data Analysis. In particular it provides functions for the statistical analysis of persistent homology and for density clustering. For th... |
## These functions work together so that once you have found the inverse of a matrix
## you will not have to waste your processor's time finding it again, because it will
## hold it in a cache. In order to cache another matrix's inverse you don't have to
## run throught the whole process again, but can skip the make... | /cachematrix.R | no_license | sunderliz/ProgrammingAssignment2 | R | false | false | 1,699 | r | ## These functions work together so that once you have found the inverse of a matrix
## you will not have to waste your processor's time finding it again, because it will
## hold it in a cache. In order to cache another matrix's inverse you don't have to
## run throught the whole process again, but can skip the make... |
library(scITD)
library(Seurat)
library(dplyr)
library(data.table)
library(RColorBrewer)
options(scipen=1000000)
set.seed(123)
#================ LOAD DATA ================
object <- readRDS('/~/seurat/~/object_processed_allcells.rds')
# counts
counts <- readRDS('counts.rds')
# meta data
meta <- object@meta.data
met... | /R/05__Tensor_decomposition__all_samples.R | permissive | ms-balzer/ZSF1_sGC | R | false | false | 8,099 | r | library(scITD)
library(Seurat)
library(dplyr)
library(data.table)
library(RColorBrewer)
options(scipen=1000000)
set.seed(123)
#================ LOAD DATA ================
object <- readRDS('/~/seurat/~/object_processed_allcells.rds')
# counts
counts <- readRDS('counts.rds')
# meta data
meta <- object@meta.data
met... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% HetLogAddCnPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{HetLogAddCnPlm}
\do... | /man/HetLogAddCnPlm.Rd | no_license | microarray/aroma.affymetrix | R | false | false | 4,046 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% HetLogAddCnPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{HetLogAddCnPlm}
\do... |
library(reshape2)
library(lubridate)
library(dplyr)
library(ggplot2)
library(gridExtra)
rm(list = ls(all=TRUE))
Data <- read.table("household_power_consumption.txt" , sep = ";" , header = TRUE)
str(Data$Date)
Data$Date <- as.character(Data$Date)
Data$Date <- as.Date(Data$Date , format="%d/%m/%Y")
FilteredDa... | /plot4.R | no_license | rajeshwarang/ExData_Plotting1 | R | false | false | 2,223 | r |
library(reshape2)
library(lubridate)
library(dplyr)
library(ggplot2)
library(gridExtra)
rm(list = ls(all=TRUE))
Data <- read.table("household_power_consumption.txt" , sep = ";" , header = TRUE)
str(Data$Date)
Data$Date <- as.character(Data$Date)
Data$Date <- as.Date(Data$Date , format="%d/%m/%Y")
FilteredDa... |
###GET ENHANCER_TO_GENE###
##########################
#excel spreadsheet must be made, which has "callout" column to pick out certain enhaners. Fill in blanks with periods "."
require(XLConnect)
wb = loadWorkbook("RMS_Epigenetics/ROSE/RMS_Tumors/ChosenP/Sample_RD_H3K27ac_008_C_HHC7JBGXX.1e-05.12500.combined.xlsx... | /scripts/gryderRscripts/ROSE_plot.R | no_license | CBIIT/ChIP_seq | R | false | false | 3,298 | r | ###GET ENHANCER_TO_GENE###
##########################
#excel spreadsheet must be made, which has "callout" column to pick out certain enhaners. Fill in blanks with periods "."
require(XLConnect)
wb = loadWorkbook("RMS_Epigenetics/ROSE/RMS_Tumors/ChosenP/Sample_RD_H3K27ac_008_C_HHC7JBGXX.1e-05.12500.combined.xlsx... |
# %d -> Day
# %m -> Numeric Month
# %b -> Abbreviated Month
# %B -> Full Month
# %y -> 2-digit year
# %Y -> 4-digit year
dates1 = c('1/10/2006','4/25/2006')
class(dates1)
dates1_std = as.Date(dates1,format= "%m/%d/%Y")
class(dates1_std)
dates2 = c('10-1-98','25-4-06')
class(dates2)
dates2_std = as.Date(dates2,format... | /2016-october/1.R basics/date type handling/date-processing.R | no_license | rajesh2win/datascience | R | false | false | 450 | r | # %d -> Day
# %m -> Numeric Month
# %b -> Abbreviated Month
# %B -> Full Month
# %y -> 2-digit year
# %Y -> 4-digit year
dates1 = c('1/10/2006','4/25/2006')
class(dates1)
dates1_std = as.Date(dates1,format= "%m/%d/%Y")
class(dates1_std)
dates2 = c('10-1-98','25-4-06')
class(dates2)
dates2_std = as.Date(dates2,format... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_import_volume}
\alias{ec2_import_volume}
\title{Creates an import volume task using metadata from the specified disk
image}
\usage{
ec2_import_volume(AvailabilityZone, Description, DryRun, Image, Volume)
}
\argument... | /paws/man/ec2_import_volume.Rd | permissive | johnnytommy/paws | R | false | true | 1,584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_import_volume}
\alias{ec2_import_volume}
\title{Creates an import volume task using metadata from the specified disk
image}
\usage{
ec2_import_volume(AvailabilityZone, Description, DryRun, Image, Volume)
}
\argument... |
\name{get.results}
\alias{get.results}
\title{Generate model output for PEcAn analyses}
\usage{
get.results(pecandir, model)
}
\arguments{
\item{model}{name of model being used}
\item{settings}{list, read from settings file (xml) using
\code{\link{read.settings}}}
}
\description{
Reads model output and runs ... | /utils/man/get.results.Rd | permissive | jingxia/pecan | R | false | false | 544 | rd | \name{get.results}
\alias{get.results}
\title{Generate model output for PEcAn analyses}
\usage{
get.results(pecandir, model)
}
\arguments{
\item{model}{name of model being used}
\item{settings}{list, read from settings file (xml) using
\code{\link{read.settings}}}
}
\description{
Reads model output and runs ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function( m = matrix() ) {
## Initialize the inverse property
i <- NULL
## Method to set the matrix
set <- function( matrix ) {
m <<... | /cachematrix.R | no_license | simonqiang/ProgrammingAssignment2 | R | false | false | 1,422 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function( m = matrix() ) {
## Initialize the inverse property
i <- NULL
## Method to set the matrix
set <- function( matrix ) {
m <<... |
context("funToCheckKnownResults")
##run test .tp
test_that("check that .tp outputs the expected result", {
###TEST1####
#prepare normal input data
detected <- tibble::tibble(
multiplet = sort(c(rep(LETTERS[1], 2), rep(LETTERS[2], 5))),
from = c("A", "B", rep("A", 3), rep("B", 2)),
to = c("B", "C"... | /tests/testthat/test_funToCheckKnownResults.R | no_license | jasonserviss/CIMseq.testing | R | false | false | 5,215 | r |
context("funToCheckKnownResults")
##run test .tp
test_that("check that .tp outputs the expected result", {
###TEST1####
#prepare normal input data
detected <- tibble::tibble(
multiplet = sort(c(rep(LETTERS[1], 2), rep(LETTERS[2], 5))),
from = c("A", "B", rep("A", 3), rep("B", 2)),
to = c("B", "C"... |
\name{get_anno-HierarchicalPartition-method}
\alias{get_anno,HierarchicalPartition-method}
\title{
Get annotations
}
\description{
Get annotations
}
\usage{
\S4method{get_anno}{HierarchicalPartition}(object)
}
\arguments{
\item{object}{A \code{\link{HierarchicalPartition-class}} object.}
}
\value{
A data frame if \... | /man/get_anno-HierarchicalPartition-method.Rd | permissive | jokergoo/cola | R | false | false | 482 | rd | \name{get_anno-HierarchicalPartition-method}
\alias{get_anno,HierarchicalPartition-method}
\title{
Get annotations
}
\description{
Get annotations
}
\usage{
\S4method{get_anno}{HierarchicalPartition}(object)
}
\arguments{
\item{object}{A \code{\link{HierarchicalPartition-class}} object.}
}
\value{
A data frame if \... |
library(glmnet)
mydata = read.table("./TrainingSet/Correlation/kidney.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.75,family="gaussian",standardize=TRUE)
sink('./Model/EN/Correlation/kidney/kidney_079.txt',ap... | /Model/EN/Correlation/kidney/kidney_079.R | no_license | leon1003/QSMART | R | false | false | 360 | r | library(glmnet)
mydata = read.table("./TrainingSet/Correlation/kidney.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.75,family="gaussian",standardize=TRUE)
sink('./Model/EN/Correlation/kidney/kidney_079.txt',ap... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/locale.R
\name{locale}
\alias{default_locale}
\alias{locale}
\title{Create a locale}
\usage{
locale(logical_format = list(true = "true", false = "false"),
dtime_format = c("ms", "s", "minute", "hour", "day", "week"))
default_locale()
}
\ar... | /man/locale.Rd | no_license | ijlyttle/srlze | R | false | true | 1,529 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/locale.R
\name{locale}
\alias{default_locale}
\alias{locale}
\title{Create a locale}
\usage{
locale(logical_format = list(true = "true", false = "false"),
dtime_format = c("ms", "s", "minute", "hour", "day", "week"))
default_locale()
}
\ar... |
# server.R
library(shiny)
library(shinyTree)
jsonTree<- function(idTree){
switch(idTree,
"A" = '[{"id":"node_2","text":"Root node with options","state":{"opened":true,"selected":true},"children":[{"text":"Child 1"},"Child 2"]}]',
"A_closed" = '[{"id":"node_2","text":"Root node with options","state":{"o... | /inst/examples/11-tree-update/server.R | permissive | timelyportfolio/shinyTree | R | false | false | 1,179 | r | # server.R
library(shiny)
library(shinyTree)
jsonTree<- function(idTree){
switch(idTree,
"A" = '[{"id":"node_2","text":"Root node with options","state":{"opened":true,"selected":true},"children":[{"text":"Child 1"},"Child 2"]}]',
"A_closed" = '[{"id":"node_2","text":"Root node with options","state":{"o... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
## Load Required Libraries & Set Paths
library(shiny)
library(tidyverse)
library(tidyquant)
library(lubr... | /portfolio_optimization/server.R | no_license | SuperJohn/PortfolioOptimization | R | false | false | 11,645 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
## Load Required Libraries & Set Paths
library(shiny)
library(tidyverse)
library(tidyquant)
library(lubr... |
# classification.R
#' Interaction mode classification with matrix of counts and data.frames for genes and metadata
#'
#' @param counts numeric matrix of counts where rows are genes and columns are libraries
#' @param genes data.frame of gene metadata
#' @param metadata data.frame with metadata retrieved for 4 conditio... | /R/classification.R | no_license | taylo5jm/interactions | R | false | false | 13,213 | r | # classification.R
#' Interaction mode classification with matrix of counts and data.frames for genes and metadata
#'
#' @param counts numeric matrix of counts where rows are genes and columns are libraries
#' @param genes data.frame of gene metadata
#' @param metadata data.frame with metadata retrieved for 4 conditio... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pleura.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="mse",alpha=0.85,family="gaussian",standardize=TRUE)
sink('./pleura_085.txt',append=TRUE)
pri... | /Model/EN/ReliefF/pleura/pleura_085.R | no_license | esbgkannan/QSMART | R | false | false | 346 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pleura.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="mse",alpha=0.85,family="gaussian",standardize=TRUE)
sink('./pleura_085.txt',append=TRUE)
pri... |
testlist <- list(a = 16383225L, b = 654311424L, x = -238L)
result <- do.call(grattan:::anyOutside,testlist)
str(result) | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610128053-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 119 | r | testlist <- list(a = 16383225L, b = 654311424L, x = -238L)
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
###
### ANES 2020 functions
###
fontstack_serif <- "'Source Serif Pro', serif"
fontstack_mono <- "monospace"
polilinecolors <- c("D" = "#15338d", "R" = "#db001f")
polifillcolors <- c("D" = "#00ace5", "R" = "#ff767b")
repair_labels <- function(x) {
str_replace_all(x, "\\d+\\.\\s", "")
}
quicktable <- function(t... | /anes_functions.R | permissive | czep/HTAD | R | false | false | 6,689 | r | ###
### ANES 2020 functions
###
fontstack_serif <- "'Source Serif Pro', serif"
fontstack_mono <- "monospace"
polilinecolors <- c("D" = "#15338d", "R" = "#db001f")
polifillcolors <- c("D" = "#00ace5", "R" = "#ff767b")
repair_labels <- function(x) {
str_replace_all(x, "\\d+\\.\\s", "")
}
quicktable <- function(t... |
library(here)
source(here("_basic.R"))
structure <-
read_csv(here("../data/full/structure.csv"),
col_names = c("playerId","level","landscapeId","isSmooth","isSequential","isLowStrength","times"),
col_types = "iiillli")%>%
mutate(playerId = playerId+1,
level=level+1,
landsca... | /evaluation/read_data.R | permissive | cuehs/transmissionchains_independentsolvers | R | false | false | 3,332 | r | library(here)
source(here("_basic.R"))
structure <-
read_csv(here("../data/full/structure.csv"),
col_names = c("playerId","level","landscapeId","isSmooth","isSequential","isLowStrength","times"),
col_types = "iiillli")%>%
mutate(playerId = playerId+1,
level=level+1,
landsca... |
testlist <- list(A = structure(2.31584307392677e+77, .Dim = c(1L, 1L)), B = structure(c(0, 0, 0), .Dim = c(3L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112747-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 184 | r | testlist <- list(A = structure(2.31584307392677e+77, .Dim = c(1L, 1L)), B = structure(c(0, 0, 0), .Dim = c(3L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/move.R
\name{simulate_mancala}
\alias{simulate_mancala}
\title{Simulate a number of mancala games}
\usage{
simulate_mancala(mode = "random_vs_random", gameplay = play_game, n = 20)
}
\arguments{
\item{mode}{chosen mode, available the same as ... | /man/simulate_mancala.Rd | permissive | wmaslak/mancalaR | R | false | true | 577 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/move.R
\name{simulate_mancala}
\alias{simulate_mancala}
\title{Simulate a number of mancala games}
\usage{
simulate_mancala(mode = "random_vs_random", gameplay = play_game, n = 20)
}
\arguments{
\item{mode}{chosen mode, available the same as ... |
open_quest_log <- function(filepath){
ls <- list()
text <- readLines(filepath,warn=F)
idxHeaderTop <- which(grepl('\\*\\*\\*\\*\\*',text))
idxHeaderBottom <- which(grepl('\\-\\-\\-\\-\\-',text))
ls[["header"]] <- parse_asterisk_value(text[(idxHeaderTop+1):(idxHeaderBottom-1)])
idxStepTop <- which(grepl('\\*... | /functions/loading/open-quest-log.R | no_license | hejtmy/hcenat-fmri | R | false | false | 740 | r | open_quest_log <- function(filepath){
ls <- list()
text <- readLines(filepath,warn=F)
idxHeaderTop <- which(grepl('\\*\\*\\*\\*\\*',text))
idxHeaderBottom <- which(grepl('\\-\\-\\-\\-\\-',text))
ls[["header"]] <- parse_asterisk_value(text[(idxHeaderTop+1):(idxHeaderBottom-1)])
idxStepTop <- which(grepl('\\*... |
##Script to plot the posterior distributions, refactored from a script by Consuelo Quinto, which was modified from a script provided in the first version of ABCtoolbox
##Author: Ariella Gladstein
##August 17, 2017
##Rscript plot_posterior_ABtoolbox_new.R test results_regions_5percent_ss_10kb_Affy6.0_snps_transformer_2... | /plot_posterior_ABtoolbox_new.R | no_license | agladstein/AJ_ABC | R | false | false | 2,540 | r | ##Script to plot the posterior distributions, refactored from a script by Consuelo Quinto, which was modified from a script provided in the first version of ABCtoolbox
##Author: Ariella Gladstein
##August 17, 2017
##Rscript plot_posterior_ABtoolbox_new.R test results_regions_5percent_ss_10kb_Affy6.0_snps_transformer_2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/info.R
\name{info}
\alias{as.info}
\alias{info}
\title{Get information on an ERDDAP dataset.}
\usage{
info(datasetid, url = eurl(), ...)
as.info(x, url)
}
\arguments{
\item{datasetid}{Dataset id}
\item{url}{A URL for an ERDDAP server. Defau... | /man/info.Rd | permissive | davesteps/rerddap | R | false | true | 2,501 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/info.R
\name{info}
\alias{as.info}
\alias{info}
\title{Get information on an ERDDAP dataset.}
\usage{
info(datasetid, url = eurl(), ...)
as.info(x, url)
}
\arguments{
\item{datasetid}{Dataset id}
\item{url}{A URL for an ERDDAP server. Defau... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_relational_database_bundles}
\alias{lightsail_get_relational_database_bundles}
\title{Returns the list of bundles that are available in Amazon Lightsail}
\usage{
lightsail_get_relational_database_bun... | /paws/man/lightsail_get_relational_database_bundles.Rd | permissive | johnnytommy/paws | R | false | true | 863 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_relational_database_bundles}
\alias{lightsail_get_relational_database_bundles}
\title{Returns the list of bundles that are available in Amazon Lightsail}
\usage{
lightsail_get_relational_database_bun... |
# setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
RESULT_DIR <- locate('results')
POJO = 'POJO'
MOJO = 'MOJO'
pubdev_4711_test <- function() {
deeplearning_export()
gbm_export()
glm_export()
glrm_export()
k_means_export()
naive_bayes_expor... | /h2o-r/tests/testdir_jira/runit_pubdev_4711_supported_export_formats.R | permissive | MustafaKadioglu/h2o-3 | R | false | false | 5,950 | r | # setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
RESULT_DIR <- locate('results')
POJO = 'POJO'
MOJO = 'MOJO'
pubdev_4711_test <- function() {
deeplearning_export()
gbm_export()
glm_export()
glrm_export()
k_means_export()
naive_bayes_expor... |
## Put comments here that give an overall description of what your
## functions do
## These Functions are for the completion of the Peer Graded Assignment in week 3 of R Programming
## Write a short comment describing this function
## This function will create a matrix object that can cache its inverse
makeCacheMatri... | /cachematrix.R | no_license | lelarsen/ProgrammingAssignment2 | R | false | false | 1,112 | r | ## Put comments here that give an overall description of what your
## functions do
## These Functions are for the completion of the Peer Graded Assignment in week 3 of R Programming
## Write a short comment describing this function
## This function will create a matrix object that can cache its inverse
makeCacheMatri... |
library("reshape2")
make_rownames_unique <- function(counts_new){
counts_new <- counts_new[!duplicated(counts_new$SYMBOL),] %>%
tibble::remove_rownames() %>%
tibble::column_to_rownames(., "SYMBOL")
# remove all non-numeric columns (description, gene id, etc.):
for (x in colnames(counts_new)){
if(!is... | /scripts/modules_testing.R | no_license | Ulas-lab/CoCena2 | R | false | false | 8,008 | r | library("reshape2")
make_rownames_unique <- function(counts_new){
counts_new <- counts_new[!duplicated(counts_new$SYMBOL),] %>%
tibble::remove_rownames() %>%
tibble::column_to_rownames(., "SYMBOL")
# remove all non-numeric columns (description, gene id, etc.):
for (x in colnames(counts_new)){
if(!is... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/central_nervous_system.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="mse",alpha=0.15,family="gaussian",standardize=FALSE)
sink('./central_nervous... | /Model/EN/AvgRank/central_nervous_system/central_nervous_system_030.R | no_license | esbgkannan/QSMART | R | false | false | 379 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/central_nervous_system.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="mse",alpha=0.15,family="gaussian",standardize=FALSE)
sink('./central_nervous... |
#Activity 3
#Charlie Huemmler
#2/12/2020
#install packages
#install.packages("lubridate")
library(lubridate)
#install.packages("tidyverse")
library(tidyverse)
#
# install.packages("data.table")
#
# install.packages("dplyr")
#
# install.packages("formattable")
#
# install.packages("tidyr")
#Load the libraries
l... | /activity3/activity3script.R | no_license | chuembucket/GEOG331 | R | false | false | 7,514 | r | #Activity 3
#Charlie Huemmler
#2/12/2020
#install packages
#install.packages("lubridate")
library(lubridate)
#install.packages("tidyverse")
library(tidyverse)
#
# install.packages("data.table")
#
# install.packages("dplyr")
#
# install.packages("formattable")
#
# install.packages("tidyr")
#Load the libraries
l... |
## setwd("/Users/rogerfischer/datamap/geoid/US/county")
## getwd()
## 2010 FIPS Codes for Counties and County Equivalent Entities
## See also: https://www.census.gov/geo/reference/codes/cou.html
fileUrl <- "http://www2.census.gov/geo/docs/reference/codes/files/national_county.txt"
download.file(fileUrl, destfile = "da... | /US/county/us_county.R | no_license | datamapio/geoid | R | false | false | 3,244 | r | ## setwd("/Users/rogerfischer/datamap/geoid/US/county")
## getwd()
## 2010 FIPS Codes for Counties and County Equivalent Entities
## See also: https://www.census.gov/geo/reference/codes/cou.html
fileUrl <- "http://www2.census.gov/geo/docs/reference/codes/files/national_county.txt"
download.file(fileUrl, destfile = "da... |
# call fill_pit on all pits
#
# By Daniel Nash
# Edited by Will Burke
#
fix_all_pits <- function(flw, flw_struct, parallel) {
# ---------- Find pits ----------
num_patch <- length(flw)
x <- c()
hght <- c()
for (i in 1:num_patch) {
if (parallel) { # for parallel
if (sum(flw[[i]]$Gamma_i) == 0 & flw[... | /R/fix_all_pits.R | no_license | renjianning/RHESSysPreprocessing | R | false | false | 4,627 | r | # call fill_pit on all pits
#
# By Daniel Nash
# Edited by Will Burke
#
fix_all_pits <- function(flw, flw_struct, parallel) {
# ---------- Find pits ----------
num_patch <- length(flw)
x <- c()
hght <- c()
for (i in 1:num_patch) {
if (parallel) { # for parallel
if (sum(flw[[i]]$Gamma_i) == 0 & flw[... |
\name{category.est}
\alias{category.est}
\title{Category Proportion and Size Estimates}
\description{
This function estimates proportion (expressed as percent) and size of a
resource in each of a set of categories and can also be used to estimate
proportion and size for site status categories. Upper and lo... | /man/category.est.Rd | no_license | willbmisled/spsurvey | R | false | false | 9,751 | rd | \name{category.est}
\alias{category.est}
\title{Category Proportion and Size Estimates}
\description{
This function estimates proportion (expressed as percent) and size of a
resource in each of a set of categories and can also be used to estimate
proportion and size for site status categories. Upper and lo... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <- NULL
}
get <- function()x
setmatrix <- function(solve) m <<- solve
getmatrix <- function()... | /cachematrix.R | no_license | andbuc/ProgrammingAssignment2 | R | false | false | 681 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y){
x <<- y
m <- NULL
}
get <- function()x
setmatrix <- function(solve) m <<- solve
getmatrix <- function()... |
/Analisis de sentimiento.R | no_license | MikeUmAl/Mi-Repositorio | R | false | false | 1,113 | r | ||
source("./../utils/create_graph_lists.R")
pathIn <- vector(length = 3)
pathIn[1] <- "./../../data/graphs_integration/t_test/Controls/"
pathIn[2] <- "./../../data/graphs_integration/t_test/SLA2/"
pathIn[3] <- "./../../data/graphs_integration/t_test/SLA3/"
pathOut <- vector(length = 3)
pathOut[1] <- "./../../data/graph... | /R/gen_t_test_dataset/driver_gen_lists.R | no_license | emanuelepesce/dti_fmri_networks | R | false | false | 756 | r | source("./../utils/create_graph_lists.R")
pathIn <- vector(length = 3)
pathIn[1] <- "./../../data/graphs_integration/t_test/Controls/"
pathIn[2] <- "./../../data/graphs_integration/t_test/SLA2/"
pathIn[3] <- "./../../data/graphs_integration/t_test/SLA3/"
pathOut <- vector(length = 3)
pathOut[1] <- "./../../data/graph... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{table-generics}
\alias{table-generics}
\alias{.generateTable}
\alias{.showSelectionDetails}
\title{Generics for table construction}
\description{
Generic to control the creation of a data.frame to show in the \code{\link{d... | /man/table-generics.Rd | permissive | andreagrioni/iSEE | R | false | true | 3,051 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{table-generics}
\alias{table-generics}
\alias{.generateTable}
\alias{.showSelectionDetails}
\title{Generics for table construction}
\description{
Generic to control the creation of a data.frame to show in the \code{\link{d... |
## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix())
{
inv <- NULL
set <- function(y)
{
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function() inv <<- solve(x)... | /cachematrix.R | no_license | shubh002/ProgrammingAssignment2 | R | false | false | 803 | r | ## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix())
{
inv <- NULL
set <- function(y)
{
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function() inv <<- solve(x)... |
library(Rquake)
### Name: rgl.ellipsoid
### Title: rgl.ellipsoid
### Aliases: rgl.ellipsoid
### ** Examples
## Not run:
##D require(rgl) ;
##D ee <- Rquake::rgl.ellipsoid()
##D rgl::shapelist3d(ee)
## End(Not run)
| /data/genthat_extracted_code/Rquake/examples/rgl.ellipsoid.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 223 | r | library(Rquake)
### Name: rgl.ellipsoid
### Title: rgl.ellipsoid
### Aliases: rgl.ellipsoid
### ** Examples
## Not run:
##D require(rgl) ;
##D ee <- Rquake::rgl.ellipsoid()
##D rgl::shapelist3d(ee)
## End(Not run)
|
# When starting R from this directory, see if we need to install
source("VisionEval.R")
| /sources/runtime/.Rprofile | permissive | VisionEval/VisionEval-Dev | R | false | false | 88 | rprofile | # When starting R from this directory, see if we need to install
source("VisionEval.R")
|
## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
library(BDEEPdbZillow)
## ------------------------------------------------------------------------
data <... | /BDEEPZillow/doc/my-vignette.R | no_license | uiuc-bdeep/Zillow_Housing_Database | R | false | false | 1,081 | r | ## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
library(BDEEPdbZillow)
## ------------------------------------------------------------------------
data <... |
library(plyr)
library(data.table)
read.csv("C:/Users/Julie Kelso/Dropbox/LR_Datasheet")
LRDatasheet = read.csv("C:/Users/Julie Kelso/Desktop/Box Sync/GAMUT_Sampling/CSVs/LR_Datasheet.csv")
Chla = read.csv("C:/Users/Julie Kelso/Dropbox/iUtah/biweekly sampling/Chl a/Chla.csv", stringsAsFactors = FALSE)
Chla = Chla[-c... | /Chla.R | no_license | Kelsman28/iUTAH | R | false | false | 850 | r | library(plyr)
library(data.table)
read.csv("C:/Users/Julie Kelso/Dropbox/LR_Datasheet")
LRDatasheet = read.csv("C:/Users/Julie Kelso/Desktop/Box Sync/GAMUT_Sampling/CSVs/LR_Datasheet.csv")
Chla = read.csv("C:/Users/Julie Kelso/Dropbox/iUtah/biweekly sampling/Chl a/Chla.csv", stringsAsFactors = FALSE)
Chla = Chla[-c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/safetyDeltaDelta.R
\name{safetyDeltaDelta}
\alias{safetyDeltaDelta}
\title{<Add Title>}
\usage{
safetyDeltaDelta(settings, data, width = NULL, height = NULL, elementId = NULL)
}
\description{
<Add Description>
}
| /man/safetyDeltaDelta.Rd | no_license | samussiah/safetyDeltaDelta | R | false | true | 290 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/safetyDeltaDelta.R
\name{safetyDeltaDelta}
\alias{safetyDeltaDelta}
\title{<Add Title>}
\usage{
safetyDeltaDelta(settings, data, width = NULL, height = NULL, elementId = NULL)
}
\description{
<Add Description>
}
|
#This code determines which Hyenas are in which Matrilines
#It uses the motherhood data from tblRFA
#The output is a matrix with 1's if two individuals are in the same line
# Run the header file
source("wd.R")
setwd(Formatted_Data)
load("tblRFA.RData")
N <- nrow(tblRFA)
# Create a motherhood matrix
motherhood <- dia... | /Code/matrilines.R | no_license | lamb-j/hyena-project | R | false | false | 3,227 | r | #This code determines which Hyenas are in which Matrilines
#It uses the motherhood data from tblRFA
#The output is a matrix with 1's if two individuals are in the same line
# Run the header file
source("wd.R")
setwd(Formatted_Data)
load("tblRFA.RData")
N <- nrow(tblRFA)
# Create a motherhood matrix
motherhood <- dia... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 37
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 37
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/tipdiam/eijk.S208o.S-d2.qdimacs
c output filename /tm... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/tipdiam/eijk.S208o.S-d2/eijk.S208o.S-d2.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 600 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 37
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 37
c
c Input Parameter (command line, file):
c input filename QBFLIB/Biere/tipdiam/eijk.S208o.S-d2.qdimacs
c output filename /tm... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/urinary_tract.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="mse",alpha=0.85,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/urinary_tract/urinary_tra... | /Model/EN/ReliefF/urinary_tract/urinary_tract_086.R | no_license | leon1003/QSMART | R | false | false | 374 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/urinary_tract.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="mse",alpha=0.85,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/urinary_tract/urinary_tra... |
datafilepath <- function() {
folder <- Sys.getenv("launcheR_path")
if (folder == "") {
filepath <- file.path(dirname(tempdir()), "launcheR-db.sqlite")
} else {
filepath <- file.path(folder, "launcheR-db.sqlite")
}
return(filepath)
}
get_emptyTable <- function(table_name) {
if (t... | /R/getdata.R | no_license | kuzmenkov111/launcheR | R | false | false | 19,237 | r | datafilepath <- function() {
folder <- Sys.getenv("launcheR_path")
if (folder == "") {
filepath <- file.path(dirname(tempdir()), "launcheR-db.sqlite")
} else {
filepath <- file.path(folder, "launcheR-db.sqlite")
}
return(filepath)
}
get_emptyTable <- function(table_name) {
if (t... |
#' List all occurrences of a specific scoreline for a specific team
#'
#' @param df df
#' @param score score
#' @param teamname teamname
#'
#' @examples
#' df <- engsoccerdata2
#' score_team (df,"4-4", "Tottenham Hotspur") #all 4-4 draws Tottenham Hotspur have played in (home and away)
#' score_team (df,"3-5", "York Ci... | /R/score_team.R | no_license | amunnelly/engsoccerdata | R | false | false | 1,092 | r | #' List all occurrences of a specific scoreline for a specific team
#'
#' @param df df
#' @param score score
#' @param teamname teamname
#'
#' @examples
#' df <- engsoccerdata2
#' score_team (df,"4-4", "Tottenham Hotspur") #all 4-4 draws Tottenham Hotspur have played in (home and away)
#' score_team (df,"3-5", "York Ci... |
library(quantstrat)
library(CQA)
data(BetaValues2013)
data(fundamental10252013)
# Beta values
betas <- BetaValues2013
rm(BetaValues2013)
# Filter to the Sector = Financial
financial_sector <- fundamental_10252013[fundamental_10252013[, "Sector"] == "Financial",]
# Filter to Industry = Money Center Banks
# These ar... | /sandbox/regional_banks_pair_trade.R | no_license | arturochian/CQA | R | false | false | 14,278 | r |
library(quantstrat)
library(CQA)
data(BetaValues2013)
data(fundamental10252013)
# Beta values
betas <- BetaValues2013
rm(BetaValues2013)
# Filter to the Sector = Financial
financial_sector <- fundamental_10252013[fundamental_10252013[, "Sector"] == "Financial",]
# Filter to Industry = Money Center Banks
# These ar... |
library(tidyverse)
library(dslabs)
data(heights)
| /code.R | no_license | prahm/homework-0 | R | false | false | 50 | r | library(tidyverse)
library(dslabs)
data(heights)
|
##############################################################
#' Load packages.
#'
#' Load and optionally install additional packages.
#'
#' @param packageList A list of character strings specifying
#' the names of packages to be loaded.
#'
#' @param install Logical flag. If required packages are not
#' already instal... | /SpaDES-master/R/misc-methods.R | no_license | B-Ron12/RCodeSK | R | false | false | 13,460 | r | ##############################################################
#' Load packages.
#'
#' Load and optionally install additional packages.
#'
#' @param packageList A list of character strings specifying
#' the names of packages to be loaded.
#'
#' @param install Logical flag. If required packages are not
#' already instal... |
#########################################################################################
## CLEAN THE DATA SCRAPED FROM THE WEB AND SAVE IT INTO A CSV ###########################
#########################################################################################
#Load all of the Necesary Packages
require(plyr)
... | /functions/teams.r | no_license | BenikaH/game_simulation | R | false | false | 4,463 | r | #########################################################################################
## CLEAN THE DATA SCRAPED FROM THE WEB AND SAVE IT INTO A CSV ###########################
#########################################################################################
#Load all of the Necesary Packages
require(plyr)
... |
getRcode <- function()
{
parser$eval("var rcode = parser.ast.toRcode();")
return(parser$get("rcode"))
}
validate <- function(exp)
{
parser$assign("exp", exp)
parser$eval("var inputCharacterCodes = utils.stringToChars(exp);")
parser$eval("var result = parser.parse(grammar, startRule, inputCharacterC... | /R/eclParser.R | permissive | slaverman/SnoLyze | R | false | false | 3,868 | r | getRcode <- function()
{
parser$eval("var rcode = parser.ast.toRcode();")
return(parser$get("rcode"))
}
validate <- function(exp)
{
parser$assign("exp", exp)
parser$eval("var inputCharacterCodes = utils.stringToChars(exp);")
parser$eval("var result = parser.parse(grammar, startRule, inputCharacterC... |
sidebar = dashboardSidebar(
sidebarMenu(
menuItem("Home", icon = icon("home"), newtab = FALSE,
href = "http://www.chenghaozhu.net/studies/egg/hdl.html")
),
uiOutput("VarsInput"),
sidebarMenu(
id = "sidebar",
menuItem(
icon = icon("caret-right"), "Lipi... | /hdl/apps/app/ui/sidebar.R | no_license | zhuchcn/egg_study | R | false | false | 1,631 | r | sidebar = dashboardSidebar(
sidebarMenu(
menuItem("Home", icon = icon("home"), newtab = FALSE,
href = "http://www.chenghaozhu.net/studies/egg/hdl.html")
),
uiOutput("VarsInput"),
sidebarMenu(
id = "sidebar",
menuItem(
icon = icon("caret-right"), "Lipi... |
\name{createControl}
\alias{createControl}
\title{Simulate Control}
\description{Numerical feature simulation for negative samples. Called by \code{\link{createData}}.}
\usage{
createControl(upper.mean, lower.mean, upper.sd, lower.sd, n.features,
subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15)
}
\... | /man/createControl.Rd | no_license | cran/FamilyRank | R | false | false | 2,404 | rd | \name{createControl}
\alias{createControl}
\title{Simulate Control}
\description{Numerical feature simulation for negative samples. Called by \code{\link{createData}}.}
\usage{
createControl(upper.mean, lower.mean, upper.sd, lower.sd, n.features,
subtype1.feats = 1:5, subtype2.feats = 6:10, subtype3.feats = 11:15)
}
\... |
#' @title Plot PATHMOX and TECHMOX trees
#'
#' @description
#' The function \code{plot.treemox} allows to display binary trees of PATHMOX
#' and TECHMOX analyses. If \code{shadow.size=0}, no shadows are drawn.
#'
#' @param x An object of class \code{"treemox"} returned by
#' \code{\link{pathmox}} or \code{\link{techm... | /R/plot.treemox.R | no_license | gastonstat/pathmox | R | false | false | 7,676 | r | #' @title Plot PATHMOX and TECHMOX trees
#'
#' @description
#' The function \code{plot.treemox} allows to display binary trees of PATHMOX
#' and TECHMOX analyses. If \code{shadow.size=0}, no shadows are drawn.
#'
#' @param x An object of class \code{"treemox"} returned by
#' \code{\link{pathmox}} or \code{\link{techm... |
library(forecast)
library(fpp)
library(quantmod) #Quantitative Financial Modelling
library(xts)
library(TTR) #Technical Trading Rules pkg
library(tseries)
## 1. Kunlun Energy Company
####################### Getting Data ###################################
getSymbols("KUNUF", from="2013-01-01", to="2018-02-28")
class... | /Kunlun Energy KUNUF .R | no_license | KellenChoi/ChineseADR_TimeSeries | R | false | false | 14,511 | r | library(forecast)
library(fpp)
library(quantmod) #Quantitative Financial Modelling
library(xts)
library(TTR) #Technical Trading Rules pkg
library(tseries)
## 1. Kunlun Energy Company
####################### Getting Data ###################################
getSymbols("KUNUF", from="2013-01-01", to="2018-02-28")
class... |
\name{translate.logit}
\alias{translate.logit}
\title{Deprecated function}
\description{
This function has been moved to the \code{translate.logit} package.
}
\usage{
translate.logit(...)
}
\arguments{
\item{...}{arguments are ignored}
}
| /man/translate.logit.Rd | no_license | nicolas-robette/GDAtools | R | false | false | 245 | rd | \name{translate.logit}
\alias{translate.logit}
\title{Deprecated function}
\description{
This function has been moved to the \code{translate.logit} package.
}
\usage{
translate.logit(...)
}
\arguments{
\item{...}{arguments are ignored}
}
|
library(glmnet)
mydata = read.table("./TrainingSet/RF/large_intestine.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.03,family="gaussian",standardize=TRUE)
sink('./Model/EN/Classifier/large_intestine/large_inte... | /Model/EN/Classifier/large_intestine/large_intestine_015.R | no_license | leon1003/QSMART | R | false | false | 377 | r | library(glmnet)
mydata = read.table("./TrainingSet/RF/large_intestine.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.03,family="gaussian",standardize=TRUE)
sink('./Model/EN/Classifier/large_intestine/large_inte... |
EyEduFixationParameters <- function() {
# Loads eyEdu.data agian for aoi info. Revise!
load(paste(raw.data.path, "eyEdu_data.Rda", sep = ""))
# Loads aoi summary data
load(paste(raw.data.path, "aoi_summary.Rda", sep = ""))
if (!file.exists(paste(raw.data.path, "aoi_summary.Rda", sep = ""))) {
return... | /R/eyEdu_fixation_parameters.R | no_license | SebastianKorinth/eyEdu | R | false | false | 13,239 | r | EyEduFixationParameters <- function() {
# Loads eyEdu.data agian for aoi info. Revise!
load(paste(raw.data.path, "eyEdu_data.Rda", sep = ""))
# Loads aoi summary data
load(paste(raw.data.path, "aoi_summary.Rda", sep = ""))
if (!file.exists(paste(raw.data.path, "aoi_summary.Rda", sep = ""))) {
return... |
#' Theme for mosaic plots
#'
#' Themes set the general aspect of the plot such as the colour of the
#' background, gridlines, the size and colour of fonts.
#' \code{theme_mosaic} provides access to the regular ggplot2 theme, but removes any
#' background, most of the gridlines, and ensures an aspect ratio of 1 for bett... | /R/theme-mosaic.R | no_license | diffgee/ggmosaic | R | false | false | 1,075 | r | #' Theme for mosaic plots
#'
#' Themes set the general aspect of the plot such as the colour of the
#' background, gridlines, the size and colour of fonts.
#' \code{theme_mosaic} provides access to the regular ggplot2 theme, but removes any
#' background, most of the gridlines, and ensures an aspect ratio of 1 for bett... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deloitte_pal.R
\docType{data}
\name{deloitte_palettes}
\alias{deloitte_palettes}
\title{deloitte_palettes}
\format{
An object of class \code{list} of length 5.
}
\usage{
deloitte_palettes
}
\description{
Preset colour themes to c... | /man/deloitte_palettes.Rd | no_license | gray-dot/DAE | R | false | true | 917 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deloitte_pal.R
\docType{data}
\name{deloitte_palettes}
\alias{deloitte_palettes}
\title{deloitte_palettes}
\format{
An object of class \code{list} of length 5.
}
\usage{
deloitte_palettes
}
\description{
Preset colour themes to c... |
library(pastecs)
library(readr)
library(dplyr)
library(ggplot2)
roster_salary_stats<-read_csv("/Users/mAC/stat133/final/roster-salary-stats.csv")
#Disaggragate data by position
pg_stats<-filter(roster_salary_stats, position=='PG')
sg_stats<-filter(roster_salary_stats, position=='SG')
sf_stats<-filter(roster_salary_stat... | /code/scripts/3.eda-scripte.R | permissive | jimxx1995/NBAPlayersSalariesAnalysis | R | false | false | 6,210 | r | library(pastecs)
library(readr)
library(dplyr)
library(ggplot2)
roster_salary_stats<-read_csv("/Users/mAC/stat133/final/roster-salary-stats.csv")
#Disaggragate data by position
pg_stats<-filter(roster_salary_stats, position=='PG')
sg_stats<-filter(roster_salary_stats, position=='SG')
sf_stats<-filter(roster_salary_stat... |
#' Convert multiclass response to all combinations of binary responses
#'
#' @param chr A character vector or factor
#' @param as.factor Option to return a factor instead of character vector
#'
#' @return A data frame of binary responses in relation to each response
#' @export
#'
#' @examples
#' responses <- c('BRCA1'... | /R/toBinaryResponseMC.R | permissive | UMCUGenetics/mltoolkit | R | false | false | 1,136 | r | #' Convert multiclass response to all combinations of binary responses
#'
#' @param chr A character vector or factor
#' @param as.factor Option to return a factor instead of character vector
#'
#' @return A data frame of binary responses in relation to each response
#' @export
#'
#' @examples
#' responses <- c('BRCA1'... |
library(tidyverse)
library(igraph)
#expected edges/papers by year
cogsci_byAuthor = read_csv("cogsci_vss_nips/cogsci_byAuthor.csv")
vss_byAuthor = read_csv("cogsci_vss_nips/vss_byAuthor.csv")
cogsci_paper_edges_byYear = cogsci_byAuthor %>%
group_by(year, title)%>%
summarise(N=n()) %>%
mutate(num_p... | /R/authorGraphMeasures/networkMeasures.R | no_license | Oleg-295/InfluencingCogSci | R | false | false | 7,862 | r | library(tidyverse)
library(igraph)
#expected edges/papers by year
cogsci_byAuthor = read_csv("cogsci_vss_nips/cogsci_byAuthor.csv")
vss_byAuthor = read_csv("cogsci_vss_nips/vss_byAuthor.csv")
cogsci_paper_edges_byYear = cogsci_byAuthor %>%
group_by(year, title)%>%
summarise(N=n()) %>%
mutate(num_p... |
#### original code by claudia giambartolomei
#### modifications by james boocock, eli stahl, and amanda dobbyn
#library(foreach)
#library(doParallel)
library(GenomicRanges)
#library(rtracklayer)
library(data.table)
Var.data <- function(f, N) {
1 / (2 * N * f * (1 - f))
}
Var.data.cc <- function(f, N, s) {
1 / (2... | /coloc2/functions_coloc_likelihood_summary_integrated2.R | permissive | naim-panjwani/LocusFocus | R | false | false | 74,840 | r | #### original code by claudia giambartolomei
#### modifications by james boocock, eli stahl, and amanda dobbyn
#library(foreach)
#library(doParallel)
library(GenomicRanges)
#library(rtracklayer)
library(data.table)
Var.data <- function(f, N) {
1 / (2 * N * f * (1 - f))
}
Var.data.cc <- function(f, N, s) {
1 / (2... |
\name{split}
\alias{split}
\alias{split,MoveStack,missing-method}
\alias{split,.MoveTrackSingleBurst,missing-method}
\alias{split,.MoveTrackStack,missing-method}
\alias{split,DBBMMStack,missing-method}
\alias{split,.UDStack,missing-method}
\docType{methods}
\title{Splitting a MoveStack, MoveBurst or DBBMMStack}
\de... | /man/split.Rd | no_license | cran/move | R | false | false | 2,051 | rd | \name{split}
\alias{split}
\alias{split,MoveStack,missing-method}
\alias{split,.MoveTrackSingleBurst,missing-method}
\alias{split,.MoveTrackStack,missing-method}
\alias{split,DBBMMStack,missing-method}
\alias{split,.UDStack,missing-method}
\docType{methods}
\title{Splitting a MoveStack, MoveBurst or DBBMMStack}
\de... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{hello}
\alias{hello}
\title{Hello, world!}
\usage{
hello(name = "World")
}
\value{
a string
}
\description{
prints 'Hello, "user input"!'
}
\examples{
hello()
}
| /mypkg/man/hello.Rd | no_license | anya-mueller/r3-exercises | R | false | true | 253 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{hello}
\alias{hello}
\title{Hello, world!}
\usage{
hello(name = "World")
}
\value{
a string
}
\description{
prints 'Hello, "user input"!'
}
\examples{
hello()
}
|
example.load.addins = function() {
ai.li = xs.load.addins()
xs.load.ressources()
xs_types = xs.merge.addins.into.xs_types(ai.li, xecon.glob$xs_types)
}
xs.load.addins = function(addin.dir = system.file('addins', package='gtree')) {
restore.point("xs.load.addins")
# multiple addin directories
if (length(a... | /R/addins.r | no_license | skranz/gtreeGUI | R | false | false | 2,231 | r | example.load.addins = function() {
ai.li = xs.load.addins()
xs.load.ressources()
xs_types = xs.merge.addins.into.xs_types(ai.li, xecon.glob$xs_types)
}
xs.load.addins = function(addin.dir = system.file('addins', package='gtree')) {
restore.point("xs.load.addins")
# multiple addin directories
if (length(a... |
#!/bin/Rscript
##' Time-stamp: <liuminzhao 08/07/2013 12:55:45>
##' 2013/06/05 focus on AGE and RACE
##' 2013/06/22 add baseline y0 as a covariate
##' 2013/07/05 MNAR
##' 2013/08/02 Using ToursMNAR2.R (R optimization of QRMissingBi.R)
##' 2013/08/06 Using ToursMNAR3.R (uobyqa method and homo model)
rm(list=ls())
librar... | /tours/toursageracemnar.R | no_license | liuminzhao/qrmissing-draft | R | false | false | 2,239 | r | #!/bin/Rscript
##' Time-stamp: <liuminzhao 08/07/2013 12:55:45>
##' 2013/06/05 focus on AGE and RACE
##' 2013/06/22 add baseline y0 as a covariate
##' 2013/07/05 MNAR
##' 2013/08/02 Using ToursMNAR2.R (R optimization of QRMissingBi.R)
##' 2013/08/06 Using ToursMNAR3.R (uobyqa method and homo model)
rm(list=ls())
librar... |
# demo_plots.R
# demonstration plots for summary of IBMWG work using fake data
# set working directory to source file location to begin
library(ggplot2)
library(dplyr)
library(tidyr)
library(umap)
# make repeatable
set.seed(14)
# design matrix has 13 IBMs, 4 retro sources, 2 fishing history, 2 fishery ... | /demonstrations/chris/demo_plots/demo_plots.R | no_license | cmlegault/IBMWG | R | false | false | 7,373 | r | # demo_plots.R
# demonstration plots for summary of IBMWG work using fake data
# set working directory to source file location to begin
library(ggplot2)
library(dplyr)
library(tidyr)
library(umap)
# make repeatable
set.seed(14)
# design matrix has 13 IBMs, 4 retro sources, 2 fishing history, 2 fishery ... |
\name{labkey.rstudio.initSession}
\alias{labkey.rstudio.initSession}
\title{Initialize a RStudio session for LabKey integration using a time one request id}
\description{
LabKey-RStudio integration helper. Not intended for use outside RStudio.
}
\usage{
labkey.rstudio.initSession(requestId, baseUrl)
}
\arguments{
\item... | /Rlabkey/man/labkey.rstudio.initSession.Rd | permissive | mpenhall-celgene/labkey-api-r | R | false | false | 678 | rd | \name{labkey.rstudio.initSession}
\alias{labkey.rstudio.initSession}
\title{Initialize a RStudio session for LabKey integration using a time one request id}
\description{
LabKey-RStudio integration helper. Not intended for use outside RStudio.
}
\usage{
labkey.rstudio.initSession(requestId, baseUrl)
}
\arguments{
\item... |
shinyUI(fluidPage(
# Application title
titlePanel("Assignment 3 - Zhen Huang"),
tabsetPanel(
tabPanel("Data",
verbatimTextOutput(outputId = "DataSummary"),
fluidRow(
column(width = 4,
sliderInput(inputId = "Multiplier", label = "IQR multiplier"... | /DSI/Ass3/ui.R | permissive | nilingh/Rcode | R | false | false | 38,286 | r | shinyUI(fluidPage(
# Application title
titlePanel("Assignment 3 - Zhen Huang"),
tabsetPanel(
tabPanel("Data",
verbatimTextOutput(outputId = "DataSummary"),
fluidRow(
column(width = 4,
sliderInput(inputId = "Multiplier", label = "IQR multiplier"... |
rm(list = ls())
library(tidyverse)
library(lubridate)
set.seed(1)
power <- read.csv("household_power_consumption.txt", sep=';', header=TRUE, stringsAsFactors = FALSE, na.strings=c('?'))
power$DT <- paste(power$Date, power$Time, sep=" ")
power$DateTime <- as.POSIXlt(power$DT, format='%d/%m/%Y %H:%M:%S')
power$Da... | /plot3.R | no_license | jml3598/ExData_Plotting1 | R | false | false | 875 | r | rm(list = ls())
library(tidyverse)
library(lubridate)
set.seed(1)
power <- read.csv("household_power_consumption.txt", sep=';', header=TRUE, stringsAsFactors = FALSE, na.strings=c('?'))
power$DT <- paste(power$Date, power$Time, sep=" ")
power$DateTime <- as.POSIXlt(power$DT, format='%d/%m/%Y %H:%M:%S')
power$Da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vosonSML.R
\name{createRedditActorNetwork}
\alias{createRedditActorNetwork}
\title{Create reddit actor networks}
\usage{
createRedditActorNetwork(data)
}
\arguments{
\item{data}{\pkg{vosonSML} reddit dataframe.}
}
\value{
Reddit a... | /man/createRedditActorNetwork.Rd | no_license | cran/VOSONDash | R | false | true | 487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vosonSML.R
\name{createRedditActorNetwork}
\alias{createRedditActorNetwork}
\title{Create reddit actor networks}
\usage{
createRedditActorNetwork(data)
}
\arguments{
\item{data}{\pkg{vosonSML} reddit dataframe.}
}
\value{
Reddit a... |
# Load the .mtx data into .Rmd
pre_trans_027 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML027_pre/matrix.mtx")
)
pre_trans_035 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML035_pre/matrix.mtx")
)
post_trans_027 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML027_post/matrix.m... | /analyses/bmmc_data/helpers/load_count_data.R | permissive | PhilBoileau/EHDBDscPCA | R | false | false | 1,825 | r | # Load the .mtx data into .Rmd
pre_trans_027 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML027_pre/matrix.mtx")
)
pre_trans_035 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML035_pre/matrix.mtx")
)
post_trans_027 <- Matrix::readMM(
file = here("analyses/bmmc_data/data/AML027_post/matrix.m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ladderShow.R
\name{ladderShow}
\alias{ladderShow}
\title{Show ladders}
\usage{
ladderShow(
tree,
mainCol = "black",
ladderEdgeCol = "red",
ladderNodeCol = "red",
...
)
}
\arguments{
\item{tree}{a tree of class \code{phylo} or \code{... | /man/ladderShow.Rd | no_license | cran/phyloTop | R | false | true | 1,167 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ladderShow.R
\name{ladderShow}
\alias{ladderShow}
\title{Show ladders}
\usage{
ladderShow(
tree,
mainCol = "black",
ladderEdgeCol = "red",
ladderNodeCol = "red",
...
)
}
\arguments{
\item{tree}{a tree of class \code{phylo} or \code{... |
library(e1071)
#load source data
dataset <- read.csv('wdbc.data',head = FALSE)
#prepare subset: trainset and testset
index <- 1:nrow(dataset)
testindex <- sample(index, trunc(length(index)*30/100))
testset <- dataset[testindex,]
trainset <- dataset[-testindex,]
#tune the parameter for svm function
tuned <- tune.svm... | /SVM_Predict_Case/svm_predict.R | no_license | omarun/My-DataMining | R | false | false | 1,029 | r | library(e1071)
#load source data
dataset <- read.csv('wdbc.data',head = FALSE)
#prepare subset: trainset and testset
index <- 1:nrow(dataset)
testindex <- sample(index, trunc(length(index)*30/100))
testset <- dataset[testindex,]
trainset <- dataset[-testindex,]
#tune the parameter for svm function
tuned <- tune.svm... |
# In this code I will model a chemostat in which a sporulating bacteria os grown
#Clear environment
rm(list=ls())
pd=par()
#Load necessary library
library(deSolve)
library(tidyverse)
## Model with multi stage sporulation
#Define system of differential equations for resource and bacteria
chemostat <- function(t,curren... | /code/chemostat_ode_lag.R | no_license | danschw/chemostat | R | false | false | 3,345 | r | # In this code I will model a chemostat in which a sporulating bacteria os grown
#Clear environment
rm(list=ls())
pd=par()
#Load necessary library
library(deSolve)
library(tidyverse)
## Model with multi stage sporulation
#Define system of differential equations for resource and bacteria
chemostat <- function(t,curren... |
#! /package/R-3.1.0/bin/Rscript --vanilla
#########################################
### November 2014, FrieDue
### This script takes a composite feature count table
### (i.e. multiple BAM file counts for the same set of genome regions)
### and returns one bedgraph file for the indicated sample.
### It requires rather s... | /AlleleSpecific/individualScripts/post-processing/allelicImbalance_doneWithEdgeR.R | permissive | inambioinfo/AlleleSpecific | R | false | false | 2,790 | r | #! /package/R-3.1.0/bin/Rscript --vanilla
#########################################
### November 2014, FrieDue
### This script takes a composite feature count table
### (i.e. multiple BAM file counts for the same set of genome regions)
### and returns one bedgraph file for the indicated sample.
### It requires rather s... |
context("lookup_muni")
# skip tests because they take too much time
skip_if(Sys.getenv("TEST_ONE") != "")
testthat::skip_on_cran()
# Reading the data -----------------------
test_that("lookup_muni", {
# read data
test_sf <- lookup_muni(name_muni = "fortaleza")
test_sf2 <- lookup_muni(code_muni=2304400)
te... | /r-package/tests/testthat/test-lookup_muni.R | no_license | ipeaGIT/geobr | R | false | false | 1,100 | r | context("lookup_muni")
# skip tests because they take too much time
skip_if(Sys.getenv("TEST_ONE") != "")
testthat::skip_on_cran()
# Reading the data -----------------------
test_that("lookup_muni", {
# read data
test_sf <- lookup_muni(name_muni = "fortaleza")
test_sf2 <- lookup_muni(code_muni=2304400)
te... |
#' Siganature matrix
#'
#' A dataset containing 547 genes and 22 TILs.
#'
#' @format A data frame with 547 rows and 22 variables:
#' \describe{
#' \item{B.cells.naive}{naive B cells}
#' \item{B.cells.memory}{memory B cells}
#' \item{Plasma.cells}{Plasma cells}
#' \item{T.cells.CD8}{CD8 T cells}
#' \item{T.c... | /R/data.R | no_license | cran/FARDEEP | R | false | false | 3,029 | r | #' Siganature matrix
#'
#' A dataset containing 547 genes and 22 TILs.
#'
#' @format A data frame with 547 rows and 22 variables:
#' \describe{
#' \item{B.cells.naive}{naive B cells}
#' \item{B.cells.memory}{memory B cells}
#' \item{Plasma.cells}{Plasma cells}
#' \item{T.cells.CD8}{CD8 T cells}
#' \item{T.c... |
library(isismdl)
mdl <- isis_mdl("islm_back_countries_1000.mdl")
print(mdl)
mdl$set_period("2017Q1/2066Q4")
g_data <- mdl$get_data(pattern = "^g_.*")
g_data[ , ] <- 240
mdl$set_data(g_data)
ms_data <- mdl$get_data(pattern = "^ms_.*")
ms_data[ , ] <- 230
mdl$set_data(ms_data)
r_data <- mdl$get_data(pattern = "^r_.*... | /performance_backwards/isi/test_1000.R | no_license | timemod/dynmdl | R | false | false | 670 | r | library(isismdl)
mdl <- isis_mdl("islm_back_countries_1000.mdl")
print(mdl)
mdl$set_period("2017Q1/2066Q4")
g_data <- mdl$get_data(pattern = "^g_.*")
g_data[ , ] <- 240
mdl$set_data(g_data)
ms_data <- mdl$get_data(pattern = "^ms_.*")
ms_data[ , ] <- 230
mdl$set_data(ms_data)
r_data <- mdl$get_data(pattern = "^r_.*... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BUCKET.R
\name{get_location}
\alias{get_location}
\title{Bucket location}
\usage{
get_location(bucket, ...)
}
\arguments{
\item{bucket}{Character string with the name of the bucket, or an object of class \dQuote{s3_bucket}.}
\item{\dots}{Add... | /man/get_location.Rd | no_license | russellpierce/aws.s3 | R | false | true | 617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BUCKET.R
\name{get_location}
\alias{get_location}
\title{Bucket location}
\usage{
get_location(bucket, ...)
}
\arguments{
\item{bucket}{Character string with the name of the bucket, or an object of class \dQuote{s3_bucket}.}
\item{\dots}{Add... |
# Script to perform the dataset correlation analysis
# Sigurdur Karvelsson
library(siggitRausti)
library(tidyr)
library(readxl)
library(dplyr)
library(biomaRt)
library(PerformanceAnalytics)
# Create a 3x3 correlation image with distributions.
# Load all data:
rnaseq <- read_excel('D492_D492M_RNAseq... | /R/CORRELATION_ANALYSIS_SCRIPT.R | permissive | siggitrausti/EMT_metabolic_modeling | R | false | false | 4,529 | r | # Script to perform the dataset correlation analysis
# Sigurdur Karvelsson
library(siggitRausti)
library(tidyr)
library(readxl)
library(dplyr)
library(biomaRt)
library(PerformanceAnalytics)
# Create a 3x3 correlation image with distributions.
# Load all data:
rnaseq <- read_excel('D492_D492M_RNAseq... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uri.R
\name{uri_current}
\alias{uri_current}
\title{Get the uri of the current NSSP areas}
\usage{
uri_current()
}
\value{
the uri as string
}
\description{
Get the uri of the current NSSP areas
}
| /man/uri_current.Rd | permissive | BigelowLab/menssp | R | false | true | 275 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/uri.R
\name{uri_current}
\alias{uri_current}
\title{Get the uri of the current NSSP areas}
\usage{
uri_current()
}
\value{
the uri as string
}
\description{
Get the uri of the current NSSP areas
}
|
forest <- read.csv(file.choose(),header = T)
library(caret)
str(forest)
View(forest)
forest1 <- forest[,3:9]
normalise <- function(x) {
return((x - min(x)) / (max(x) - min(x)))
}
mydata$temp <- normalise(mydata$temp)
mydata$rain <- normalise(mydata$rain)
mydata$RH <- normalise(mydata$RH)
mydata$wind ... | /SVM/SVM_Fireforest.R | no_license | PraveenAithapaga/Datascience-Assignments | R | false | false | 1,203 | r | forest <- read.csv(file.choose(),header = T)
library(caret)
str(forest)
View(forest)
forest1 <- forest[,3:9]
normalise <- function(x) {
return((x - min(x)) / (max(x) - min(x)))
}
mydata$temp <- normalise(mydata$temp)
mydata$rain <- normalise(mydata$rain)
mydata$RH <- normalise(mydata$RH)
mydata$wind ... |
\name{ComIndexMulti}
\alias{ComIndexMulti}
\alias{plot.ComIndexMulti}
\alias{summary.ComIndexMulti}
\alias{print.ComIndexMulti}
\title{
Computing multitraits metrics to test and quantify the non-random assembly of communities
}
\description{
Computing multitraits metrics to test and quantify the non-random assembly... | /.Archive man/man/ComIndexMulti.Rd | no_license | ben9216/cati | R | false | false | 8,809 | rd | \name{ComIndexMulti}
\alias{ComIndexMulti}
\alias{plot.ComIndexMulti}
\alias{summary.ComIndexMulti}
\alias{print.ComIndexMulti}
\title{
Computing multitraits metrics to test and quantify the non-random assembly of communities
}
\description{
Computing multitraits metrics to test and quantify the non-random assembly... |
#' Ollech and Webel's combined seasonality test
#'
#' Ollech-Webel overall seasonality test that combines results from different seasonality tests.
#' @param y time series
#' @param freq Frequency of the time series
#' @references Ollech, D. and Webel, K. (forthcoming). An overall seasonality test. Deutsche Bunde... | /R/combined_test.R | no_license | cran/seastests | R | false | false | 2,522 | r | #' Ollech and Webel's combined seasonality test
#'
#' Ollech-Webel overall seasonality test that combines results from different seasonality tests.
#' @param y time series
#' @param freq Frequency of the time series
#' @references Ollech, D. and Webel, K. (forthcoming). An overall seasonality test. Deutsche Bunde... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interactive.R
\name{overlayTwilightResiduals}
\alias{overlayTwilightResiduals}
\title{Overlay data for path editing}
\usage{
overlayTwilightResiduals(
twilights,
index,
mode,
xlim,
ylim,
twilight.contours = c(10, 20, 50),
zenith... | /man/overlayTwilightResiduals.Rd | no_license | SWotherspoon/BAStag | R | false | true | 1,243 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interactive.R
\name{overlayTwilightResiduals}
\alias{overlayTwilightResiduals}
\title{Overlay data for path editing}
\usage{
overlayTwilightResiduals(
twilights,
index,
mode,
xlim,
ylim,
twilight.contours = c(10, 20, 50),
zenith... |
Pkl.Hajek.s <- function(VecPk.s)
{
if(! is.vector(VecPk.s) ){stop("VecPk.s must be a vector.") }
if(any(is.na(VecPk.s)) ){stop("There are missing values in VecPk.s.") ... | /samplingVarEst/R/Pkl_Hajek_s.R | no_license | ingted/R-Examples | R | false | false | 1,171 | r | Pkl.Hajek.s <- function(VecPk.s)
{
if(! is.vector(VecPk.s) ){stop("VecPk.s must be a vector.") }
if(any(is.na(VecPk.s)) ){stop("There are missing values in VecPk.s.") ... |
#################################################
######## INTENTO 2 / PROYECTO DE SIMULACION #####
#################################################
cant.paradas <- 10 #cantidad de paradas
cap.camion <- 60 #capacidad del camion
t.llegada <- runif(cant.paradas) #tasa de llegada de personas a la parada por unidad de ti... | /proyecto_2.R | no_license | CitlaliOlvera/Cosas | R | false | false | 7,471 | r | #################################################
######## INTENTO 2 / PROYECTO DE SIMULACION #####
#################################################
cant.paradas <- 10 #cantidad de paradas
cap.camion <- 60 #capacidad del camion
t.llegada <- runif(cant.paradas) #tasa de llegada de personas a la parada por unidad de ti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bt_scraper_checkpoint_0.R
\name{bt_scraper_checkpoint_0}
\alias{bt_scraper_checkpoint_0}
\title{Check a scraper has initialised}
\usage{
bt_scraper_checkpoint_0()
}
\value{
'OK!' if all is well, error if not.
}
\description{
Ensures:
pjs init... | /man/bt_scraper_checkpoint_0.Rd | no_license | global-trade-alert/gtabastiat | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bt_scraper_checkpoint_0.R
\name{bt_scraper_checkpoint_0}
\alias{bt_scraper_checkpoint_0}
\title{Check a scraper has initialised}
\usage{
bt_scraper_checkpoint_0()
}
\value{
'OK!' if all is well, error if not.
}
\description{
Ensures:
pjs init... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FIBond.R
\name{getValue.FIBond}
\alias{getValue.FIBond}
\title{Calculate value of FIBond object}
\usage{
getValue.FIBond(bond, yield, settleDate = nextBizDay())
}
\arguments{
\item{bond}{FIBond object (can be a list)}
\item{yield}{FIBond yie... | /man/getValue.FIBond.Rd | no_license | solavrov/fval | R | false | true | 499 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FIBond.R
\name{getValue.FIBond}
\alias{getValue.FIBond}
\title{Calculate value of FIBond object}
\usage{
getValue.FIBond(bond, yield, settleDate = nextBizDay())
}
\arguments{
\item{bond}{FIBond object (can be a list)}
\item{yield}{FIBond yie... |
library(dplyr)
library(fitdistrplus)
library(ggplot2)
library(fBasics)
library(fpp)
library(forecast)
data <- read.csv("Data/BOS_NYY_2009_2019.csv", stringsAsFactors = FALSE)
data$Game_Year <- paste(data$Rk, data$Year, sep = "_")
# Turn every number into 000
data$yearGame <- as.integer(paste(as.character(data$Year), if... | /ProjectCode.R | no_license | jjenki22/BaseballForcastProject | R | false | false | 12,093 | r | library(dplyr)
library(fitdistrplus)
library(ggplot2)
library(fBasics)
library(fpp)
library(forecast)
data <- read.csv("Data/BOS_NYY_2009_2019.csv", stringsAsFactors = FALSE)
data$Game_Year <- paste(data$Rk, data$Year, sep = "_")
# Turn every number into 000
data$yearGame <- as.integer(paste(as.character(data$Year), if... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Methods.R
\name{deviance.fixest}
\alias{deviance.fixest}
\title{Extracts the deviance of a fixest estimation}
\usage{
\method{deviance}{fixest}(object, ...)
}
\arguments{
\item{object}{A \code{fixest} object.}
\item{...}{Not curre... | /man/deviance.fixest.Rd | no_license | cran/fixest | R | false | true | 767 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Methods.R
\name{deviance.fixest}
\alias{deviance.fixest}
\title{Extracts the deviance of a fixest estimation}
\usage{
\method{deviance}{fixest}(object, ...)
}
\arguments{
\item{object}{A \code{fixest} object.}
\item{...}{Not curre... |
#' Fetch high-level data for players, teams and fixtures
#'
#' @export
#'
load_data <- function(players_teams_data_link = "https://fantasy.premierleague.com/api/bootstrap-static/",
upcoming_fixtures_link = "https://fantasy.premierleague.com/api/fixtures") {
players_teams_data <-
jsonlite::fr... | /R/load_transform_data.R | no_license | lanchett/FPL | R | false | false | 1,730 | r | #' Fetch high-level data for players, teams and fixtures
#'
#' @export
#'
load_data <- function(players_teams_data_link = "https://fantasy.premierleague.com/api/bootstrap-static/",
upcoming_fixtures_link = "https://fantasy.premierleague.com/api/fixtures") {
players_teams_data <-
jsonlite::fr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.