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 |
|---|---|---|---|---|---|---|---|---|---|
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.4866175662959e+86, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_b... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827317-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 360 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.4866175662959e+86, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_b... |
#' Read Investments|Non-ESM from GDX file
#'
#' Read Investments|Non-ESM data from a GDX file into a magpie object.
#'
#'
#' @param gdx a GDX list as created by readGDX, or the file name of a gdx
#' file(file name is recommended as this speeds up the code)
#' @param field one of 'l', 'm', 's', 'lo', 'up')
#' @return... | /R/readInvestmentsNonESM.R | no_license | pik-piam/remind | R | false | false | 746 | r | #' Read Investments|Non-ESM from GDX file
#'
#' Read Investments|Non-ESM data from a GDX file into a magpie object.
#'
#'
#' @param gdx a GDX list as created by readGDX, or the file name of a gdx
#' file(file name is recommended as this speeds up the code)
#' @param field one of 'l', 'm', 's', 'lo', 'up')
#' @return... |
#' @title Use a Google Font included in {gfonts}
#'
#' @description For convenience, some fonts are included in the package,
#' you can use them without having to download them, but only few variants are available.
#'
#' @param font Name of the font to use, possible choices are: \code{"roboto"},
#' \code{"open-sans"... | /R/use_pkg_gfont.R | no_license | jimsforks/gfonts | R | false | false | 2,132 | r |
#' @title Use a Google Font included in {gfonts}
#'
#' @description For convenience, some fonts are included in the package,
#' you can use them without having to download them, but only few variants are available.
#'
#' @param font Name of the font to use, possible choices are: \code{"roboto"},
#' \code{"open-sans"... |
\name{onesamp}
\alias{onesamp}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{ Paired Sample t-test }
\description{
This function performs a t-test for the mean difference for paired data,
and produces a scatterplot of one column against the other column, showing
whether there was any benefit to... | /DAAG/man/onesamp.Rd | no_license | VladSerhiienko/MachineLearningLabworks | R | false | false | 1,211 | rd | \name{onesamp}
\alias{onesamp}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{ Paired Sample t-test }
\description{
This function performs a t-test for the mean difference for paired data,
and produces a scatterplot of one column against the other column, showing
whether there was any benefit to... |
# library(shiny)
#
# shinyUI(fluidPage(
# titlePanel("Hello Shiny!"),
#
# sidebarLayout(
# sidebarPanel(
# sliderInput("obs", "Number of observations:",
# min = 1, max = 1000, value = 500)
# ),
# mainPanel(
# plotOutput("distPlot")
# )
# )
# ))
# library(shiny)
#
... | /ui.R | no_license | skwoo33/shiny-layout | R | false | false | 7,761 | r | # library(shiny)
#
# shinyUI(fluidPage(
# titlePanel("Hello Shiny!"),
#
# sidebarLayout(
# sidebarPanel(
# sliderInput("obs", "Number of observations:",
# min = 1, max = 1000, value = 500)
# ),
# mainPanel(
# plotOutput("distPlot")
# )
# )
# ))
# library(shiny)
#
... |
library(BacArena)
### Name: evalArena
### Title: Function for plotting spatial and temporal change of populations
### and/or concentrations
### Aliases: evalArena evalArena,Eval-method
### ** Examples
data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
bac <- Bac(Ec_core,deathrate=0.05... | /data/genthat_extracted_code/BacArena/examples/evalArena.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 798 | r | library(BacArena)
### Name: evalArena
### Title: Function for plotting spatial and temporal change of populations
### and/or concentrations
### Aliases: evalArena evalArena,Eval-method
### ** Examples
data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
bac <- Bac(Ec_core,deathrate=0.05... |
library(gpuR)
context("vclVector Utility Functions")
if(detectGPUs() >= 1){
current_context <- set_device_context("gpu")
}else{
current_context <- currentContext()
}
set.seed(123)
ORDER <- 100
A <- sample(seq.int(10), ORDER, replace = TRUE)
D <- rnorm(ORDER)
D2 <- rnorm(ORDER)
test_that("integer vclVecto... | /tests/testthat/test_vclVector_utils.R | no_license | fossabot/gpuR | R | false | false | 4,758 | r | library(gpuR)
context("vclVector Utility Functions")
if(detectGPUs() >= 1){
current_context <- set_device_context("gpu")
}else{
current_context <- currentContext()
}
set.seed(123)
ORDER <- 100
A <- sample(seq.int(10), ORDER, replace = TRUE)
D <- rnorm(ORDER)
D2 <- rnorm(ORDER)
test_that("integer vclVecto... |
#leggo il file
es <- read.delim("~/Lab-R/laboratorio/statistica_descrittiva/esercizi/Giocatori.txt", sep = ";")
attach(es)
cat("Riferendoci a years si ha che:\n")
cat("\n")
# frequenza assoluta degli anni
freq <- table(years)
cat("la frequenza assoluta è:\n")
print(freq)
cat("\n")
# frequenze relative di years
rel ... | /laboratorio/statistica_descrittiva/esercizi/es1.R | no_license | dlcgold/Lab-R | R | false | false | 936 | r | #leggo il file
es <- read.delim("~/Lab-R/laboratorio/statistica_descrittiva/esercizi/Giocatori.txt", sep = ";")
attach(es)
cat("Riferendoci a years si ha che:\n")
cat("\n")
# frequenza assoluta degli anni
freq <- table(years)
cat("la frequenza assoluta è:\n")
print(freq)
cat("\n")
# frequenze relative di years
rel ... |
## R Programming - Programming Assigment 2
## Data Science Specialization
##
## Matrix inversion is usually a costly computation and there may be
## some benefit to caching the inverse of a matrix rather than
## computing it repeatedly.
## Often, especially in loops, the inverse of a given matrix
## need to be calculat... | /cachematrix.R | no_license | wjptak/ProgrammingAssignment2 | R | false | false | 2,209 | r | ## R Programming - Programming Assigment 2
## Data Science Specialization
##
## Matrix inversion is usually a costly computation and there may be
## some benefit to caching the inverse of a matrix rather than
## computing it repeatedly.
## Often, especially in loops, the inverse of a given matrix
## need to be calculat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MACRO-MosquitoPop-Class.R
\docType{class}
\name{MacroMosquitoPop}
\alias{MacroMosquitoPop}
\title{MACRO Mosquito Population Class Definition}
\format{An \code{\link{R6Class}} generator object}
\usage{
MacroMosquitoPop
}
\description{
This is ... | /man/MacroMosquitoPop.Rd | no_license | smitdave/MASH | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MACRO-MosquitoPop-Class.R
\docType{class}
\name{MacroMosquitoPop}
\alias{MacroMosquitoPop}
\title{MACRO Mosquito Population Class Definition}
\format{An \code{\link{R6Class}} generator object}
\usage{
MacroMosquitoPop
}
\description{
This is ... |
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() {x}
setinverse <- function(inverse) {inv <<- inverse}
getinverse <- function() {... | /cachematrix.R | no_license | Moz-Fnc/ProgrammingAssignment2 | R | false | false | 703 | r | makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() {x}
setinverse <- function(inverse) {inv <<- inverse}
getinverse <- function() {... |
## This file is part of the 'stringi' package for R.
## Copyright (c) 2013-2014, Marek Gagolewski and Bartek Tartanus
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## 1. Redistributions o... | /stringi/R/search.R | permissive | jackieli123723/clearlinux | R | false | false | 32,852 | r | ## This file is part of the 'stringi' package for R.
## Copyright (c) 2013-2014, Marek Gagolewski and Bartek Tartanus
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## 1. Redistributions o... |
library(stringi)
library('ggplot2')
library('dplyr')
library('ggiraphExtra')
library(gridExtra)
library(devtools)
library(ggiraph)
library(kormaps2014)
library(plotly)
library(dygraphs)
library(xts)
library(sqldf)
library ("psych")
###tm
library(tm)
library('SnowballC')
library(RColorBrewer)
library(wordcloud)
... | /library.R | no_license | joe753/helloR | R | false | false | 801 | r | library(stringi)
library('ggplot2')
library('dplyr')
library('ggiraphExtra')
library(gridExtra)
library(devtools)
library(ggiraph)
library(kormaps2014)
library(plotly)
library(dygraphs)
library(xts)
library(sqldf)
library ("psych")
###tm
library(tm)
library('SnowballC')
library(RColorBrewer)
library(wordcloud)
... |
context("Get station data")
test_that("get_station_imeca pollution data matches the website", {
# Invalid function arguments
expect_error(get_station_imeca("INVALID", "2009-01-01"))
expect_error(get_station_imeca("SO2", "INVALID"))
expect_error(get_station_imeca("O3", "2009-02-31"))
expect_error(get_station_... | /tests/testthat/test_get_station_imeca.R | permissive | AResendizV/aire.zmvm | R | false | false | 964 | r | context("Get station data")
test_that("get_station_imeca pollution data matches the website", {
# Invalid function arguments
expect_error(get_station_imeca("INVALID", "2009-01-01"))
expect_error(get_station_imeca("SO2", "INVALID"))
expect_error(get_station_imeca("O3", "2009-02-31"))
expect_error(get_station_... |
# I can't remember what this library does. Might be for plotting the ANOVA.
library(car)
prelim_results = read.csv("D:\\Dropbox\\School\\Ubicomp\\Data Analysis\\cs7470\\Prelim_Results.csv")
prelim_results$Adv.Latency = as.factor(prelim_results$Adv.Latency)
prelim_results$Adv.Power = as.factor(prelim_results$Adv.Power)... | /RAnalysisScript.R | no_license | megameta/Ubicomp-Stat | R | false | false | 816 | r | # I can't remember what this library does. Might be for plotting the ANOVA.
library(car)
prelim_results = read.csv("D:\\Dropbox\\School\\Ubicomp\\Data Analysis\\cs7470\\Prelim_Results.csv")
prelim_results$Adv.Latency = as.factor(prelim_results$Adv.Latency)
prelim_results$Adv.Power = as.factor(prelim_results$Adv.Power)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pffr-utilities.R
\name{expand.call}
\alias{expand.call}
\title{Return call with all possible arguments}
\usage{
expand.call(definition = NULL, call = sys.call(sys.parent(1)),
expand.dots = TRUE)
}
\arguments{
\item{definition}{a function. S... | /man/expand.call.Rd | no_license | clbwvr/refund | R | false | true | 909 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pffr-utilities.R
\name{expand.call}
\alias{expand.call}
\title{Return call with all possible arguments}
\usage{
expand.call(definition = NULL, call = sys.call(sys.parent(1)),
expand.dots = TRUE)
}
\arguments{
\item{definition}{a function. S... |
"pdfgam" <-
function(x,para) {
#if(! are.pargam.valid(para)) return()
if(length(para$para) == 2) {
ALPHA <- para$para[1]
BETA <- para$para[2]
f <- dgamma(x, ALPHA, scale=BETA)
names(f) <- NULL # likely never to be needed here
f[! is.finite(f)] <- NA
f[is.na(f)] <- 0 ... | /R/pdfgam.R | no_license | wasquith/lmomco | R | false | false | 1,825 | r | "pdfgam" <-
function(x,para) {
#if(! are.pargam.valid(para)) return()
if(length(para$para) == 2) {
ALPHA <- para$para[1]
BETA <- para$para[2]
f <- dgamma(x, ALPHA, scale=BETA)
names(f) <- NULL # likely never to be needed here
f[! is.finite(f)] <- NA
f[is.na(f)] <- 0 ... |
### =========================================================================
### readVcf methods
### =========================================================================
## TabixFile
setMethod(readVcf, c(file="TabixFile", param="ScanVcfParam"),
function(file, genome, param, ..., row.names=TRUE)
{
.rea... | /R/methods-readVcf.R | no_license | Bioconductor/VariantAnnotation | R | false | false | 7,564 | r | ### =========================================================================
### readVcf methods
### =========================================================================
## TabixFile
setMethod(readVcf, c(file="TabixFile", param="ScanVcfParam"),
function(file, genome, param, ..., row.names=TRUE)
{
.rea... |
/man/phylolm.Rd | no_license | mrhelmus/phylolm | R | false | false | 5,791 | rd | ||
# this script was created by Ahmet Can Berkyurek on 01/04/2020, to Transposon analyze differential gene expression analysis for mj261 rpb-9 mutant
library(gplots)
library(RColorBrewer)
library(ggplot2)
library(ggrepel)
library("genefilter")
library(pheatmap)
library(SummarizedExperiment)
library(gdata)
library(dplyr)
l... | /RPB9_polyA_transposons.R | no_license | berkyurekac/ahmet_toolkit | R | false | false | 21,716 | r | # this script was created by Ahmet Can Berkyurek on 01/04/2020, to Transposon analyze differential gene expression analysis for mj261 rpb-9 mutant
library(gplots)
library(RColorBrewer)
library(ggplot2)
library(ggrepel)
library("genefilter")
library(pheatmap)
library(SummarizedExperiment)
library(gdata)
library(dplyr)
l... |
context("wrap")
test_that("errors", {
fn <- ggally_points
# named params
expect_error(wrap(fn, NA), "all parameters")
expect_error(wrap(fn, y = TRUE, 5), "all parameters")
# named params to wrapp
expect_error(wrapp(fn, list(5)), "'params' must")
expect_error(wrapp(fn, table(1:10, 1:10)), "'params' mu... | /tests/testthat/test-wrap.R | no_license | cpsievert/ggally | R | false | false | 1,112 | r |
context("wrap")
test_that("errors", {
fn <- ggally_points
# named params
expect_error(wrap(fn, NA), "all parameters")
expect_error(wrap(fn, y = TRUE, 5), "all parameters")
# named params to wrapp
expect_error(wrapp(fn, list(5)), "'params' must")
expect_error(wrapp(fn, table(1:10, 1:10)), "'params' mu... |
#
# 19820068861-prech.R, 7 Mar 20
# Data from:
# EXPERIMENTAL RESULTS ON SOFTWARE DEBUGGING
# Sylvia B. Sheppard and Phil Milliman and Bill Curtis
# via Lutz Prechelt (pretest data, not experiment 3 data)
#
# For pretest details, see:
# Substantiating Programmer Variability
# Bill Curtis
# PROCEEDINGS OF THE IEEE, VOL... | /projects/19820068861-prech.R | no_license | shanechin/ESEUR-code-data | R | false | false | 1,456 | r | #
# 19820068861-prech.R, 7 Mar 20
# Data from:
# EXPERIMENTAL RESULTS ON SOFTWARE DEBUGGING
# Sylvia B. Sheppard and Phil Milliman and Bill Curtis
# via Lutz Prechelt (pretest data, not experiment 3 data)
#
# For pretest details, see:
# Substantiating Programmer Variability
# Bill Curtis
# PROCEEDINGS OF THE IEEE, VOL... |
library(wmwpow)
### Name: shiehpow
### Title: Calculating Power with Shieh's Method
### Aliases: shiehpow
### ** Examples
# We want to determine the statistical power to compare the distance between mutations on a DNA
# strand in two groups of people. Each group (X and Y) has 10 individuals. We assume that the
# ... | /data/genthat_extracted_code/wmwpow/examples/shiehpow.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 674 | r | library(wmwpow)
### Name: shiehpow
### Title: Calculating Power with Shieh's Method
### Aliases: shiehpow
### ** Examples
# We want to determine the statistical power to compare the distance between mutations on a DNA
# strand in two groups of people. Each group (X and Y) has 10 individuals. We assume that the
# ... |
###Omnibus Reprogramming
data <- read_csv("C:/Users/Roth/Documents/Analyzed Datasets/Omnibus Reprogramming Data/Omnibus Reprogramming Data.csv")
data$`Amount: Reprogramming Action` = as.numeric(data$`Amount: Reprogramming Action`)
by_branch <- data %>%
na.omit(A) %>%
group_by(`Increase/Decrease`,Branch... | /Archived/Omnibus Re-programming.R | no_license | MSTRoth/PSC-Tools | R | false | false | 390 | r | ###Omnibus Reprogramming
data <- read_csv("C:/Users/Roth/Documents/Analyzed Datasets/Omnibus Reprogramming Data/Omnibus Reprogramming Data.csv")
data$`Amount: Reprogramming Action` = as.numeric(data$`Amount: Reprogramming Action`)
by_branch <- data %>%
na.omit(A) %>%
group_by(`Increase/Decrease`,Branch... |
#' Print fitted model details
#'
#' Prints estimated regression parameters, and other model parameters.
#' Similar to printing of \code{rstan::stanreg} objects.
#'
#' @templateVar epimodelArg x
#' @template args-epimodel-object
#' @param digits Number of decimal places to print.
#' @param ... Not used.
#' @export
#' ... | /R/print.R | no_license | DpRams/epidemia | R | false | false | 1,885 | r | #' Print fitted model details
#'
#' Prints estimated regression parameters, and other model parameters.
#' Similar to printing of \code{rstan::stanreg} objects.
#'
#' @templateVar epimodelArg x
#' @template args-epimodel-object
#' @param digits Number of decimal places to print.
#' @param ... Not used.
#' @export
#' ... |
6d4de17adb5b0e65184c92a6a43c575a tlc02-uniform-depth-127.qdimacs 29313 77304 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Miller-Marin/trafficlight-controller/tlc02-uniform-depth-127/tlc02-uniform-depth-127.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 76 | r | 6d4de17adb5b0e65184c92a6a43c575a tlc02-uniform-depth-127.qdimacs 29313 77304 |
#机器学习包-mrl的使用
#集成学习比较/二分类问题
#要求:数据集X都是数值型,X没有因子型; 输出的y是概率型,而不是类别
#进行前:one-hot处理;平衡样本
#建模逻辑:先尝试多个分类模型,对有希望的模型进行调参数
#试验数据:spam【邮件垃圾分类数据】
library(mlr)
setwd("/Users/apple/code_tool/R/datamining")
#?measures #查看评价指标,根据任务确定:返回值、任务类型
#--------------------------------------1定义学习任务
#--1.1数据来源
data(spam, package = 'kernla... | /集成算法/mlr_demo3.R | no_license | hallo128/MyArticle | R | false | false | 15,479 | r | #机器学习包-mrl的使用
#集成学习比较/二分类问题
#要求:数据集X都是数值型,X没有因子型; 输出的y是概率型,而不是类别
#进行前:one-hot处理;平衡样本
#建模逻辑:先尝试多个分类模型,对有希望的模型进行调参数
#试验数据:spam【邮件垃圾分类数据】
library(mlr)
setwd("/Users/apple/code_tool/R/datamining")
#?measures #查看评价指标,根据任务确定:返回值、任务类型
#--------------------------------------1定义学习任务
#--1.1数据来源
data(spam, package = 'kernla... |
#!/bin/env Rscript
#
#$ -cwd
#$ -pe smp 6
#$ -l mem_free=24G
#
#
#$ -S /hpc/apps/R/4.0.2/bin/Rscript
#$ -e /common/dabkek/re-NewAcquisition/prot_imputation/scratch
#$ -o /common/dabkek/re-NewAcquisition/prot_imputation/scratch
library(dplyr)
library(tidyr)
library(tibble)
library(ggplot2)
#library(ComplexHeatmap)
#... | /tum_vs_stroma_rots_script.R | no_license | Kdabke/imputation-proteomics | R | false | false | 2,507 | r | #!/bin/env Rscript
#
#$ -cwd
#$ -pe smp 6
#$ -l mem_free=24G
#
#
#$ -S /hpc/apps/R/4.0.2/bin/Rscript
#$ -e /common/dabkek/re-NewAcquisition/prot_imputation/scratch
#$ -o /common/dabkek/re-NewAcquisition/prot_imputation/scratch
library(dplyr)
library(tidyr)
library(tibble)
library(ggplot2)
#library(ComplexHeatmap)
#... |
# == title
# Add ideogram track
#
# == param
# -cytoband Path of the cytoband file or a data frame that already contains cytoband data. Pass to `circlize::read.cytoband`.
# -species Abbreviations of species. e.g. hg19 for human, mm10 for mouse. If this
# value is specified, the function will download ``cytoBa... | /R/track.R | permissive | jokergoo/gtrellis | R | false | false | 13,432 | r |
# == title
# Add ideogram track
#
# == param
# -cytoband Path of the cytoband file or a data frame that already contains cytoband data. Pass to `circlize::read.cytoband`.
# -species Abbreviations of species. e.g. hg19 for human, mm10 for mouse. If this
# value is specified, the function will download ``cytoBa... |
loadResultsFile <- function(filename){
object = read.table(paste("/Users/floriannuding/PySyft-fork/examples/masterarbeit/results/", filename, sep=""),
skip=11,
header = TRUE,
sep = ";",
colClasses=c("character", "numeric", "numeri... | /examples/masterarbeit/r/data_distribution.R | permissive | flo257/PySyft | R | false | false | 1,805 | r | loadResultsFile <- function(filename){
object = read.table(paste("/Users/floriannuding/PySyft-fork/examples/masterarbeit/results/", filename, sep=""),
skip=11,
header = TRUE,
sep = ";",
colClasses=c("character", "numeric", "numeri... |
checkAndExtractInputs <- function(xmcdaData, programExecutionResult) { # TODO
altIDs<- c()
for(i in as.list(xmcdaData$alternatives$getIDs()))
{
altIDs <- c(altIDs, i$toString())
}
performanceTables <- getNumericPerformanceTableList(xmcdaData)
performance <- performanceTables[[1]]
hierarchy <- pa... | /HierarchicalDEA/Ratio-based techniques/Simulation-based techniques/HierarchicalDEASMAACCREfficiencies/src/inputsHandler.R | no_license | alabijak/diviz_DEA | R | false | false | 7,286 | r | checkAndExtractInputs <- function(xmcdaData, programExecutionResult) { # TODO
altIDs<- c()
for(i in as.list(xmcdaData$alternatives$getIDs()))
{
altIDs <- c(altIDs, i$toString())
}
performanceTables <- getNumericPerformanceTableList(xmcdaData)
performance <- performanceTables[[1]]
hierarchy <- pa... |
# generic function for state gif by county
library(tidyverse)
library(ggmap)
library(gganimate)
animate_state_covid <- function(state_name) {
# select the state, make lower case
state_select <- state_name %>%
tolower()
# pull in covid date from nytimes
covid <- read_csv("https://raw.githubusercontent.com/nytimes... | /animate_state_covid_fxn.R | permissive | higgi13425/covid | R | false | false | 2,222 | r | # generic function for state gif by county
library(tidyverse)
library(ggmap)
library(gganimate)
animate_state_covid <- function(state_name) {
# select the state, make lower case
state_select <- state_name %>%
tolower()
# pull in covid date from nytimes
covid <- read_csv("https://raw.githubusercontent.com/nytimes... |
#' Nonparametric Bounds for the Average Causal Effect due to Balke and Pearl.
#'
#' @param p Object of class "table" containing either cell counts or conditional
#' probabilities. For trivariate data these are for the
#' phenotype/treatment-outcome association given Z, i.e. P(X, Y | Z).
#'
#' Cell counts could be gener... | /R/bpbounds.R | no_license | cran/bpbounds | R | false | false | 10,743 | r | #' Nonparametric Bounds for the Average Causal Effect due to Balke and Pearl.
#'
#' @param p Object of class "table" containing either cell counts or conditional
#' probabilities. For trivariate data these are for the
#' phenotype/treatment-outcome association given Z, i.e. P(X, Y | Z).
#'
#' Cell counts could be gener... |
library(tensorflow)
library(tfestimators)
source("model.R")
# read in flags
FLAGS <- flags(
flag_string("train_file", "gs://cloudml-public/census/data/adult.data.csv"),
flag_string("eval_file", "gs://cloudml-public/census/data/adult.test.csv"),
flag_integer("estimator_embedding_size", 8),
flag_string("estim... | /examples/census/train.R | no_license | Geoany/cloudml | R | false | false | 1,344 | r | library(tensorflow)
library(tfestimators)
source("model.R")
# read in flags
FLAGS <- flags(
flag_string("train_file", "gs://cloudml-public/census/data/adult.data.csv"),
flag_string("eval_file", "gs://cloudml-public/census/data/adult.test.csv"),
flag_integer("estimator_embedding_size", 8),
flag_string("estim... |
if(is.null(power)) {
power <- read.csv("household_power_consumption.txt", sep=";",
na.strings=("?"),
colClasses= c("character", "character", "numeric",
"numeric", "numeric", "numeric",
"numeric", "numeric", ... | /ExploratoryDA/Project1/plot1.R | permissive | oforero/datasciencecoursera | R | false | false | 812 | r |
if(is.null(power)) {
power <- read.csv("household_power_consumption.txt", sep=";",
na.strings=("?"),
colClasses= c("character", "character", "numeric",
"numeric", "numeric", "numeric",
"numeric", "numeric", ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/daubenmire.R
\docType{data}
\name{daubenmire_surveys}
\alias{daubenmire_surveys}
\title{Daubenmire surveys}
\format{A data.frame with the following columns:
\itemize{
\item date: Date, survey date
\item round: character, round number for ... | /man/daubenmire_surveys.Rd | no_license | ISU-Monarchs/HabitatRestoration | R | false | true | 1,017 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/daubenmire.R
\docType{data}
\name{daubenmire_surveys}
\alias{daubenmire_surveys}
\title{Daubenmire surveys}
\format{A data.frame with the following columns:
\itemize{
\item date: Date, survey date
\item round: character, round number for ... |
## Packages
packages.used <-
c("geosphere", # For spatial methods
"threejs", # threejs is used for 3-D interactive Earth Visualization
"rworldmap", # For creating earth map
"leaflet", # Leaflet for R provides functions to control and integrate Leaflet, a JavaScript library for interactive ma... | /lib/Rshiny_with_plots.R | no_license | terryli0095/RShiny_app | R | false | false | 7,707 | r | ## Packages
packages.used <-
c("geosphere", # For spatial methods
"threejs", # threejs is used for 3-D interactive Earth Visualization
"rworldmap", # For creating earth map
"leaflet", # Leaflet for R provides functions to control and integrate Leaflet, a JavaScript library for interactive ma... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{file_wd_check}
\alias{file_wd_check}
\title{Check if a file exists in the current working directory}
\usage{
file_wd_check(name)
}
\arguments{
\item{name}{filename including file extension to be checked.}
}
\value{
TRUE/FALS... | /man/file_wd_check.Rd | no_license | DillonHammill/CytoExploreR | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{file_wd_check}
\alias{file_wd_check}
\title{Check if a file exists in the current working directory}
\usage{
file_wd_check(name)
}
\arguments{
\item{name}{filename including file extension to be checked.}
}
\value{
TRUE/FALS... |
data <- read.table( "household_power_consumption.txt", sep=";", header=TRUE, skip=(16+31)*24*60-(17*60+24), nrows=2*24*60 )
time <- strptime( paste(data[,1], " ", data[,2]), format="%d/%m/%Y %H:%M:%S" )
png( file="plot3.png" )
plot( time, data[,7], ylab="Energy sub metering", xlab="", type="l" )
lines( time, data[,8],... | /plot3.R | no_license | axelgafu/ExData_Plotting1 | R | false | false | 596 | r | data <- read.table( "household_power_consumption.txt", sep=";", header=TRUE, skip=(16+31)*24*60-(17*60+24), nrows=2*24*60 )
time <- strptime( paste(data[,1], " ", data[,2]), format="%d/%m/%Y %H:%M:%S" )
png( file="plot3.png" )
plot( time, data[,7], ylab="Energy sub metering", xlab="", type="l" )
lines( time, data[,8],... |
#--------------------------------------------------------------------------
#
# Program: 00_code_lists.R
# Author: Patrick Rockenschaub
# Date: 13/03/2018
#
# Purpose: Compile standardised code lists that can be easily exchanged
# in the code
#
#-------------------------------------------------------------... | /project_root/00_code_lists.R | no_license | prockenschaub/CPRD_UTI_sepsis_elderly | R | false | false | 21,823 | r | #--------------------------------------------------------------------------
#
# Program: 00_code_lists.R
# Author: Patrick Rockenschaub
# Date: 13/03/2018
#
# Purpose: Compile standardised code lists that can be easily exchanged
# in the code
#
#-------------------------------------------------------------... |
##########################################################################
# Jose Cajide - @jrcajide
# Customer Analytics: Abandono de clientes
##########################################################################
rm(list=ls())
cat("\014")
list.of.packages <- c("tidyverse", "survival", "devtools", "caret")
new.... | /abandono_de_clientes/abandono_de_clientes.R | no_license | joseramoncajide/customer_analytics | R | false | false | 4,028 | r | ##########################################################################
# Jose Cajide - @jrcajide
# Customer Analytics: Abandono de clientes
##########################################################################
rm(list=ls())
cat("\014")
list.of.packages <- c("tidyverse", "survival", "devtools", "caret")
new.... |
#!/usr/bin/Rscript
old=getwd();
basedir="/home/peipei/course/CSC547/experiment_docker_hadoop/output_launch_dockerhadoop";
setwd(basedir);
#file_patterns=c("output_empty.txt.*.dat$","output_empty_2.txt.*.dat$","output_empty_3.txt.*.dat$")
file_patterns=c("output_launch_dockerhadoop_1.txt.*.dat$","output_launch_dockerha... | /parse_output_ouput_launch_dockerhadoop.R | no_license | wangpeipei90/CSC547-DockerVM | R | false | false | 2,782 | r | #!/usr/bin/Rscript
old=getwd();
basedir="/home/peipei/course/CSC547/experiment_docker_hadoop/output_launch_dockerhadoop";
setwd(basedir);
#file_patterns=c("output_empty.txt.*.dat$","output_empty_2.txt.*.dat$","output_empty_3.txt.*.dat$")
file_patterns=c("output_launch_dockerhadoop_1.txt.*.dat$","output_launch_dockerha... |
#a
x<- c(7, 25, 30, 9)
for(i in 1: length(x)){
print(x[i]^2)
}
#b
sqr.x<- NULL
for(i in 1: length(x)){
sqr.x[i]<-(x[i]^2)
}
#c
me<- matrix(sqr.x, ncol = 2)
me
for(i in 1: ncol(me)){
print(mean(me[,i]))
}
| /classwrk/sept/aloha.R | no_license | TanveerBariana/Stat196 | R | false | false | 210 | r | #a
x<- c(7, 25, 30, 9)
for(i in 1: length(x)){
print(x[i]^2)
}
#b
sqr.x<- NULL
for(i in 1: length(x)){
sqr.x[i]<-(x[i]^2)
}
#c
me<- matrix(sqr.x, ncol = 2)
me
for(i in 1: ncol(me)){
print(mean(me[,i]))
}
|
test.glrm.iris <- function() {
Log.info("Importing iris_wheader.csv data...")
irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O")
print(summary(irisH2O))
hyper_params <- list()
hyper_params$transform <- c("NONE", "DEMEAN", "DESCALE", "STANDARDIZE")
hyper_par... | /h2o-r/tests/testdir_algos/glrm/runit_glrm_grid_iris.R | permissive | StephRoark/h2o-3 | R | false | false | 1,496 | r | test.glrm.iris <- function() {
Log.info("Importing iris_wheader.csv data...")
irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O")
print(summary(irisH2O))
hyper_params <- list()
hyper_params$transform <- c("NONE", "DEMEAN", "DESCALE", "STANDARDIZE")
hyper_par... |
\name{marginal_coefs}
\alias{marginal_coefs}
\alias{marginal_coefs.MixMod}
\title{
Marginal Coefficients from Generalized Linear Mixed Models
}
\description{
Calculates marginal coefficients and their standard errors from fitted generalized linear
mixed models.
}
\usage{
marginal_coefs(object, \dots)
\method{margi... | /man/marginal_coefs.Rd | no_license | dochvam/GLMMadaptive | R | false | false | 3,941 | rd | \name{marginal_coefs}
\alias{marginal_coefs}
\alias{marginal_coefs.MixMod}
\title{
Marginal Coefficients from Generalized Linear Mixed Models
}
\description{
Calculates marginal coefficients and their standard errors from fitted generalized linear
mixed models.
}
\usage{
marginal_coefs(object, \dots)
\method{margi... |
context("Plot utilities")
options(java.parameters="-Xmx2g",
dfrtopics.mallet_logging="none",
dplyr.show_progress=FALSE)
data_dir <- file.path(path.package("dfrtopics"),
"test-data", "pmla-modphil1905-1915")
fs <- list.files(file.path(data_dir, "wordcounts"),
... | /tests/testthat/test-plots.R | permissive | agoldst/dfrtopics | R | false | false | 1,850 | r | context("Plot utilities")
options(java.parameters="-Xmx2g",
dfrtopics.mallet_logging="none",
dplyr.show_progress=FALSE)
data_dir <- file.path(path.package("dfrtopics"),
"test-data", "pmla-modphil1905-1915")
fs <- list.files(file.path(data_dir, "wordcounts"),
... |
\name{cv.MNS}
\alias{cv.MNS}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Select regularization parameters via cross-validation
}
\description{
Select regularization parameters via K-fold cross-validation
}
\usage{
cv.MNS(dat, l1range, alpharange,
K = 5, parallel = FALSE,
cores = NUL... | /man/cv.MNS.Rd | no_license | cran/MNS | R | false | false | 2,187 | rd | \name{cv.MNS}
\alias{cv.MNS}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Select regularization parameters via cross-validation
}
\description{
Select regularization parameters via K-fold cross-validation
}
\usage{
cv.MNS(dat, l1range, alpharange,
K = 5, parallel = FALSE,
cores = NUL... |
library(shiny)
library(shinydashboard)
library(extRemes)
library(DT)
library(data.table)
library(plotly)
library(e1071)
sidebar <- dashboardSidebar(
sidebarMenu(
menuItem("Introdução", tabName = "intro", icon = icon("book")),
menuItem("Entrada de dados", icon = icon("table"), tabName = "data"),
... | /app.R | no_license | msuassuna/analiseFreq | R | false | false | 32,069 | r | library(shiny)
library(shinydashboard)
library(extRemes)
library(DT)
library(data.table)
library(plotly)
library(e1071)
sidebar <- dashboardSidebar(
sidebarMenu(
menuItem("Introdução", tabName = "intro", icon = icon("book")),
menuItem("Entrada de dados", icon = icon("table"), tabName = "data"),
... |
# ----------------------------------------------------------------------------------------
# R Script to auto-select and train the Deep Learning model on Financial Asset Time Series Data
# ----------------------------------------------------------------------------------------
# (C) 2018 Vladimir Zhbanko
# https://www.... | /TEST/03_SelfLearnM15.R | permissive | eliopajares/R_selflearning | R | false | false | 3,237 | r | # ----------------------------------------------------------------------------------------
# R Script to auto-select and train the Deep Learning model on Financial Asset Time Series Data
# ----------------------------------------------------------------------------------------
# (C) 2018 Vladimir Zhbanko
# https://www.... |
library(dplyr)
library(ggplot2)
library(shiny)
library(lubridate)
library(stringr)
library(shinycssloaders)
library(showtext)
library(leaflet)
library(leafsync)
library(httr)
library(readxl)
library(tidyr)
library(ggfittext)
library(DT)
library(plotly)
source("plotly_builders.R")
source("filter_by_pop.R")
# Initializ... | /app.R | permissive | karenmjiang/sjc-12926-covid-19 | R | false | false | 111,855 | r | library(dplyr)
library(ggplot2)
library(shiny)
library(lubridate)
library(stringr)
library(shinycssloaders)
library(showtext)
library(leaflet)
library(leafsync)
library(httr)
library(readxl)
library(tidyr)
library(ggfittext)
library(DT)
library(plotly)
source("plotly_builders.R")
source("filter_by_pop.R")
# Initializ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edar_utils.R
\name{scale_x_reordered}
\alias{scale_x_reordered}
\title{Reorder labels in ggplot}
\usage{
scale_x_reordered(..., sep = "___")
}
\arguments{
\item{...}{additional parameter...}
\item{sep}{default variable to manipulate the labe... | /man/scale_x_reordered.Rd | permissive | DiogoFerrari/edar | R | false | true | 481 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edar_utils.R
\name{scale_x_reordered}
\alias{scale_x_reordered}
\title{Reorder labels in ggplot}
\usage{
scale_x_reordered(..., sep = "___")
}
\arguments{
\item{...}{additional parameter...}
\item{sep}{default variable to manipulate the labe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpuefuncs.r
\name{makemodels}
\alias{makemodels}
\title{makemodels - makes a list of models with their labels}
\usage{
makemodels(labelModel, dependent = "LnCE")
}
\arguments{
\item{labelModel}{is the set of variables from the data.f... | /man/makemodels.Rd | no_license | haddonm/r4cpue | R | false | true | 1,049 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpuefuncs.r
\name{makemodels}
\alias{makemodels}
\title{makemodels - makes a list of models with their labels}
\usage{
makemodels(labelModel, dependent = "LnCE")
}
\arguments{
\item{labelModel}{is the set of variables from the data.f... |
#! R
args = commandArgs(trailingOnly=TRUE)
# hmm=as.integer(args[1]) #Which HEM? #For now, just NH
yc=as.integer(args[2]) # Target year from 2011 to 2018
init=as.integer(args[3]) # Which initialisation? 1 to 4
mm=as.integer(args[4]) # lead time
Ylistt=2011:2018
targetyear=Ylistt[yc]
strtm = c(1, 4, 7, 10) # which ... | /PostCalbrationChecking/Plot_all_maps.R | no_license | earthlybimo/ForecastCalibration | R | false | false | 4,751 | r | #! R
args = commandArgs(trailingOnly=TRUE)
# hmm=as.integer(args[1]) #Which HEM? #For now, just NH
yc=as.integer(args[2]) # Target year from 2011 to 2018
init=as.integer(args[3]) # Which initialisation? 1 to 4
mm=as.integer(args[4]) # lead time
Ylistt=2011:2018
targetyear=Ylistt[yc]
strtm = c(1, 4, 7, 10) # which ... |
library(NISTunits)
### Name: NISTamperePerMeterTOoersted
### Title: Convert ampere per meter to oersted
### Aliases: NISTamperePerMeterTOoersted
### Keywords: programming
### ** Examples
NISTamperePerMeterTOoersted(10)
| /data/genthat_extracted_code/NISTunits/examples/NISTamperePerMeterTOoersted.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 226 | r | library(NISTunits)
### Name: NISTamperePerMeterTOoersted
### Title: Convert ampere per meter to oersted
### Aliases: NISTamperePerMeterTOoersted
### Keywords: programming
### ** Examples
NISTamperePerMeterTOoersted(10)
|
library(dplyr)
library(readr)
library(tidyr)
pldata1415 <- read_csv("Premier League Table 1415.csv")
##################
## 2016/17 Data ##
##################
plFixturesResultsData1415 <- pldata1415 %>%
select(2:6, 11)
pldata1415$Date <- as.Date(pldata1415$Date, "%d-%m-%y")
pldata1415 <- pldata1415 %>%
mutate(H... | /1415.R | no_license | Bosha1uk/Premier-League-Dashboard | R | false | false | 13,585 | r | library(dplyr)
library(readr)
library(tidyr)
pldata1415 <- read_csv("Premier League Table 1415.csv")
##################
## 2016/17 Data ##
##################
plFixturesResultsData1415 <- pldata1415 %>%
select(2:6, 11)
pldata1415$Date <- as.Date(pldata1415$Date, "%d-%m-%y")
pldata1415 <- pldata1415 %>%
mutate(H... |
############################################################
############################################################
install.packages("ncdf4")
install.packages("googleVis")
install.packages("reshape")
install.packages("scales")
library(googleVis)
library(reshape)
library(scales)
require(data.table)
... | /R_nomads_web/netcdf.R | no_license | linusmcm/R-development | R | false | false | 1,903 | r | ############################################################
############################################################
install.packages("ncdf4")
install.packages("googleVis")
install.packages("reshape")
install.packages("scales")
library(googleVis)
library(reshape)
library(scales)
require(data.table)
... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/verisr.R
\name{veriscol}
\alias{veriscol}
\title{Create a list of all column names expected from JSON schema.}
\usage{
veriscol(schema)
}
\arguments{
\item{schema}{the merged veris schema in json}
}
\description{
Given a json schema f... | /man/veriscol.Rd | no_license | sajidrahman/verisr | R | false | false | 578 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/verisr.R
\name{veriscol}
\alias{veriscol}
\title{Create a list of all column names expected from JSON schema.}
\usage{
veriscol(schema)
}
\arguments{
\item{schema}{the merged veris schema in json}
}
\description{
Given a json schema f... |
deter.iso <-
function(diffs,histbreaks=50000,mzmin=0,mzmax=0.5,cutcount=180,plotit=TRUE){
#############################################################################
# assemble "iso" ############################################################
his<-hist(diffs,breaks=histbreaks,plot=plotit,xlim=c(mzmin,mzmax... | /R/deter.iso.R | no_license | uweschmitt/nontarget | R | false | false | 1,417 | r | deter.iso <-
function(diffs,histbreaks=50000,mzmin=0,mzmax=0.5,cutcount=180,plotit=TRUE){
#############################################################################
# assemble "iso" ############################################################
his<-hist(diffs,breaks=histbreaks,plot=plotit,xlim=c(mzmin,mzmax... |
#' @title Create a BETS custom dashboard
#'
#' @description Generate thematic dashboards using a selection of BETS time series and charts. For now, themes and charts are pre-defined.
#'
#' @param type A \code{character}. The theme of the dashboard. The only option, for the time being, is 'sentiment'.
#' @param... | /R/BETS.dashboard.R | no_license | tmeits/BETS | R | false | false | 1,271 | r | #' @title Create a BETS custom dashboard
#'
#' @description Generate thematic dashboards using a selection of BETS time series and charts. For now, themes and charts are pre-defined.
#'
#' @param type A \code{character}. The theme of the dashboard. The only option, for the time being, is 'sentiment'.
#' @param... |
/datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/data_preprocessing_L.R | permissive | laralbert/machinelearning-az | R | false | false | 681 | r | ||
# Code to get the PDX data
download.file(url = "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE130nnn/GSE130025/suppl/GSE130025_RAW.tar",
destfile = "Delattre_EWS_PDX.tar", method = "curl")
untar("Delattre_EWS_PDX.tar", exdir = "Delattre_EWS_PDX")
rmFiles <- list.files("Delattre_EWS_PDX/", pattern = "\\.txt|\\... | /Module #5 - Advanced Topics/module_5_misc.R | no_license | boristchatchoua/single_cell_rna_seq_workshop | R | false | false | 2,569 | r | # Code to get the PDX data
download.file(url = "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE130nnn/GSE130025/suppl/GSE130025_RAW.tar",
destfile = "Delattre_EWS_PDX.tar", method = "curl")
untar("Delattre_EWS_PDX.tar", exdir = "Delattre_EWS_PDX")
rmFiles <- list.files("Delattre_EWS_PDX/", pattern = "\\.txt|\\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SegFunctions.R
\name{Delta}
\alias{Delta}
\title{A function to compute Delta index}
\usage{
Delta(x, a = NULL, spatobj = NULL, folder = NULL, shape = NULL)
}
\arguments{
\item{x}{- an object of class matrix (or which can be coerced t... | /man/Delta.Rd | no_license | cran/OasisR | R | false | true | 2,119 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SegFunctions.R
\name{Delta}
\alias{Delta}
\title{A function to compute Delta index}
\usage{
Delta(x, a = NULL, spatobj = NULL, folder = NULL, shape = NULL)
}
\arguments{
\item{x}{- an object of class matrix (or which can be coerced t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ts_models.R
\name{arfima}
\alias{arfima}
\title{ARFIMA model fitting and updates}
\usage{
arfima(y, model = NULL, lambda = NULL, stepwise = FALSE, ...)
}
\arguments{
\item{y}{Univariate Time Series}
\item{model}{\code{tsm} object, used to re... | /man/arfima.Rd | no_license | RobertWSmith/forecastR | R | false | true | 1,045 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ts_models.R
\name{arfima}
\alias{arfima}
\title{ARFIMA model fitting and updates}
\usage{
arfima(y, model = NULL, lambda = NULL, stepwise = FALSE, ...)
}
\arguments{
\item{y}{Univariate Time Series}
\item{model}{\code{tsm} object, used to re... |
#---------------------------------------------------------------------------
# Week 3 Programming Assignment #2
# Lexical scoping and caching instead of recalculating
#
# Using the functions:
#
# Generate a 3 x 3 matrix
# > genmatrix <- matrix(sample(1:9), nrow=3, ncol=3)
#
# Cache that matrix
# > cachemat <-... | /cachematrix.R | no_license | frankruss/ProgrammingAssignment2 | R | false | false | 1,915 | r |
#---------------------------------------------------------------------------
# Week 3 Programming Assignment #2
# Lexical scoping and caching instead of recalculating
#
# Using the functions:
#
# Generate a 3 x 3 matrix
# > genmatrix <- matrix(sample(1:9), nrow=3, ncol=3)
#
# Cache that matrix
# > cachemat <-... |
library(caret)
library(RANN)
missing.values <- function(df) {
for(col in names(df)) {
print(paste(col, sum(is.na(df[[col]])), sep = " "))
}
}
fileDir <- "E:/machine learning competitions/kaggle/titanic_survival/"
fullDataPath <- paste(fileDir, "fullData.csv", sep = "")
testPath <- paste... | /titanic_survival/titanic.R | no_license | latishpavan/ml-competitions | R | false | false | 6,205 | r | library(caret)
library(RANN)
missing.values <- function(df) {
for(col in names(df)) {
print(paste(col, sum(is.na(df[[col]])), sep = " "))
}
}
fileDir <- "E:/machine learning competitions/kaggle/titanic_survival/"
fullDataPath <- paste(fileDir, "fullData.csv", sep = "")
testPath <- paste... |
#' findMissings
#'
#' findMissings provides a vector (per variable), containing the observations in the dataset.
#'
#' @param data data containing `vars`
#' @param vars list of variable names to be checked for missing
#' @param idVar id variable which will be printed showing which observations are missing data for vars... | /R/findMissings.R | no_license | TaylorAndrew/atExplore | R | false | false | 970 | r | #' findMissings
#'
#' findMissings provides a vector (per variable), containing the observations in the dataset.
#'
#' @param data data containing `vars`
#' @param vars list of variable names to be checked for missing
#' @param idVar id variable which will be printed showing which observations are missing data for vars... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cham_dist.R
\name{cham.dist}
\alias{cham.dist}
\title{Distance between two chambers}
\usage{
cham.dist(P, Q)
}
\arguments{
\item{P}{Centroid coordinates c(x,y,z) of chamber i}
\item{Q}{Centroid coordinates c(x,y,z) of chamber j}
}
\descripti... | /man/cham.dist.Rd | no_license | AniekeBrombacher/foram3D | R | false | true | 515 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cham_dist.R
\name{cham.dist}
\alias{cham.dist}
\title{Distance between two chambers}
\usage{
cham.dist(P, Q)
}
\arguments{
\item{P}{Centroid coordinates c(x,y,z) of chamber i}
\item{Q}{Centroid coordinates c(x,y,z) of chamber j}
}
\descripti... |
## Copyright 2017 <Jeremy Yee> <jeremyyee@outlook.com.au>
## Testing the prescribed policy
################################################################################
TestPolicy <- function(position, path, control, Reward, Scrap, policy) {
.Call('_rcss_TestPolicy', PACKAGE = 'rcss', position, path,
... | /R/TestPolicy.R | no_license | cran/rcss | R | false | false | 362 | r | ## Copyright 2017 <Jeremy Yee> <jeremyyee@outlook.com.au>
## Testing the prescribed policy
################################################################################
TestPolicy <- function(position, path, control, Reward, Scrap, policy) {
.Call('_rcss_TestPolicy', PACKAGE = 'rcss', position, path,
... |
no_function()
library(tidyverse)
masstools::setwd_project()
rm(list = ls())
source("code/tools.R")
source("code/modified_dtw.R")
source("code/lagged_correlation.R")
{
####load data
###CGM
load("data/24_7_study/cgm/data_preparation/sample_info")
load("data/24_7_study/cgm/data_preparation/variable_info")
load("data/24_7... | /code/24_7_study/wearable_omics_correlation/CGM/cgm_metabolic_panel_correlation.R | permissive | jaspershen/microsampling_multiomics | R | false | false | 14,472 | r | no_function()
library(tidyverse)
masstools::setwd_project()
rm(list = ls())
source("code/tools.R")
source("code/modified_dtw.R")
source("code/lagged_correlation.R")
{
####load data
###CGM
load("data/24_7_study/cgm/data_preparation/sample_info")
load("data/24_7_study/cgm/data_preparation/variable_info")
load("data/24_7... |
library(polspline)
### Name: summary.polyclass
### Title: Polyclass: polychotomous regression and multiple classification
### Aliases: summary.polyclass print.polyclass
### Keywords: smooth nonlinear
### ** Examples
data(iris)
fit.iris <- polyclass(iris[,5], iris[,1:4])
summary(fit.iris)
| /data/genthat_extracted_code/polspline/examples/summary.polyclass.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 296 | r | library(polspline)
### Name: summary.polyclass
### Title: Polyclass: polychotomous regression and multiple classification
### Aliases: summary.polyclass print.polyclass
### Keywords: smooth nonlinear
### ** Examples
data(iris)
fit.iris <- polyclass(iris[,5], iris[,1:4])
summary(fit.iris)
|
context("Authors")
test_that("we can get the authors", {
desc <- description$new("D2")
ans <- c(
person("Hadley", "Wickham", email = "h.wickham@gmail.com",
role = c("aut", "cre", "cph")),
person("Peter", "Danenberg", email = "pcd@roxygen.org",
role = c("aut", "cph")),
person("Ma... | /tests/testthat/test-authors.R | no_license | dpastoor/desc | R | false | false | 8,680 | r |
context("Authors")
test_that("we can get the authors", {
desc <- description$new("D2")
ans <- c(
person("Hadley", "Wickham", email = "h.wickham@gmail.com",
role = c("aut", "cre", "cph")),
person("Peter", "Danenberg", email = "pcd@roxygen.org",
role = c("aut", "cph")),
person("Ma... |
`permutatedSamples` <-
function(data, B, cl) {
samples <- matrix(nrow=B, ncol=ncol(data))
for(i in 1:B){
samples[i,] <- sample(1:ncol(data))
}
return(samples)
}
| /R/permutatedSamples.R | no_license | Instrumedley/ROTS | R | false | false | 173 | r | `permutatedSamples` <-
function(data, B, cl) {
samples <- matrix(nrow=B, ncol=ncol(data))
for(i in 1:B){
samples[i,] <- sample(1:ncol(data))
}
return(samples)
}
|
library(gptk)
### Name: gpScaleBiasGradient
### Title: Compute the log likelihood gradient wrt the scales.
### Aliases: gpScaleBiasGradient
### Keywords: model
### ** Examples
## missing
| /data/genthat_extracted_code/gptk/examples/gpScaleBiasGradient.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 194 | r | library(gptk)
### Name: gpScaleBiasGradient
### Title: Compute the log likelihood gradient wrt the scales.
### Aliases: gpScaleBiasGradient
### Keywords: model
### ** Examples
## missing
|
library(plumber)
serve_model <- plumb("deploy_api.R")
serve_model$run(port = 8000)
| /Build_N_DeployR/server.R | no_license | bolasho/DS_Projects | R | false | false | 85 | r | library(plumber)
serve_model <- plumb("deploy_api.R")
serve_model$run(port = 8000)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p3_pie.R
\name{p3_pie-shiny}
\alias{p3_pie-shiny}
\alias{p3_pieOutput}
\alias{renderp3_pie}
\title{Shiny bindings for p3_pie}
\usage{
p3_pieOutput(outputId, width = "100\%", height = "400px")
renderp3_pie(expr, env = parent.frame(), quoted =... | /man/p3_pie-shiny.Rd | no_license | pantheracorp/PantheraWidgets | R | false | true | 940 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p3_pie.R
\name{p3_pie-shiny}
\alias{p3_pie-shiny}
\alias{p3_pieOutput}
\alias{renderp3_pie}
\title{Shiny bindings for p3_pie}
\usage{
p3_pieOutput(outputId, width = "100\%", height = "400px")
renderp3_pie(expr, env = parent.frame(), quoted =... |
#
# pclint.R, 18 Oct 19
# Data from:
# Software That Checks Software: The Impact of PC-lint
# James Gimpel
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG C tool_sales documentation_product
source("ESEUR_config.r")
pal_col=rainbow(4)
pclint=re... | /projects/pclint.R | no_license | Derek-Jones/ESEUR-code-data | R | false | false | 1,061 | r | #
# pclint.R, 18 Oct 19
# Data from:
# Software That Checks Software: The Impact of PC-lint
# James Gimpel
#
# Example from:
# Evidence-based Software Engineering: based on the publicly available data
# Derek M. Jones
#
# TAG C tool_sales documentation_product
source("ESEUR_config.r")
pal_col=rainbow(4)
pclint=re... |
#' @param query Query term(s) for full text search.
#' @param rank CLASS, CULTIVAR, CULTIVAR_GROUP, DOMAIN, FAMILY, FORM, GENUS, INFORMAL,
#' INFRAGENERIC_NAME, INFRAORDER, INFRASPECIFIC_NAME, INFRASUBSPECIFIC_NAME, KINGDOM,
#' ORDER, PHYLUM, SECTION, SERIES, SPECIES, STRAIN, SUBCLASS, SUBFAMILY, SUBFORM,
#' SUBG... | /man-roxygen/namelkup.r | permissive | jarioksa/rgbif | R | false | false | 4,967 | r | #' @param query Query term(s) for full text search.
#' @param rank CLASS, CULTIVAR, CULTIVAR_GROUP, DOMAIN, FAMILY, FORM, GENUS, INFORMAL,
#' INFRAGENERIC_NAME, INFRAORDER, INFRASPECIFIC_NAME, INFRASUBSPECIFIC_NAME, KINGDOM,
#' ORDER, PHYLUM, SECTION, SERIES, SPECIES, STRAIN, SUBCLASS, SUBFAMILY, SUBFORM,
#' SUBG... |
#Data Structures in R***********************
#1.Atomic Vectors
dbl_var <- c(1, 2.5, 4.5)
# With the L suffix, you get an integer rather than a double
int_var <- c(1L, 6L, 10L)
# Use TRUE and FALSE (or T and F) to create logical vectors
log_var <- c(TRUE, FALSE, T, F)
chr_var <- c("these are", "some strings")
#Atomic... | /My_R_scrips/R_myNotes.R | no_license | prateek-01/MyDataScience | R | false | false | 7,153 | r | #Data Structures in R***********************
#1.Atomic Vectors
dbl_var <- c(1, 2.5, 4.5)
# With the L suffix, you get an integer rather than a double
int_var <- c(1L, 6L, 10L)
# Use TRUE and FALSE (or T and F) to create logical vectors
log_var <- c(TRUE, FALSE, T, F)
chr_var <- c("these are", "some strings")
#Atomic... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
%
%
% on Wed Feb 08 14:37:34 2006.
%
% Generator was the Rdoc class, which is part of the R.oo package written
% by Henrik Bengtsson, 2001-2004.
%%%%%%%%%%%%%%%... | /man/summary.Chromosome.Rd | no_license | cran/galgo | R | false | false | 1,388 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
%
%
% on Wed Feb 08 14:37:34 2006.
%
% Generator was the Rdoc class, which is part of the R.oo package written
% by Henrik Bengtsson, 2001-2004.
%%%%%%%%%%%%%%%... |
library(testthat)
library(jtracer)
test_check("jtracer")
| /tests/testthat.R | permissive | gongcastro/jtracer | R | false | false | 58 | r | library(testthat)
library(jtracer)
test_check("jtracer")
|
dbt_screeplot <- function(Data, Legend = TRUE) {
num <- 1:length(Data)
ySingle <- Data / sum(Data)
yCumulative <- cumsum(Data) / sum(Data)
# plot single percentage of occurance
plot(
num,
ySingle,
col = "blue",
type = "p",
pch = 1,
ylim = c(min(0, min(
ySingle, yCumulative
))... | /DbtTools/Plot/R/dbt_screeplot.R | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 909 | r | dbt_screeplot <- function(Data, Legend = TRUE) {
num <- 1:length(Data)
ySingle <- Data / sum(Data)
yCumulative <- cumsum(Data) / sum(Data)
# plot single percentage of occurance
plot(
num,
ySingle,
col = "blue",
type = "p",
pch = 1,
ylim = c(min(0, min(
ySingle, yCumulative
))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gapFind.R
\name{gapFind}
\alias{gapFind}
\title{Find gaps in a metabolic network}
\usage{
gapFind(reactionList, removeExchange = FALSE)
}
\arguments{
\item{reactionList}{A set of stoichiometric reaction with the following format:
\code{"H2O[... | /man/gapFind.Rd | no_license | gibbslab/g2f | R | false | true | 1,109 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gapFind.R
\name{gapFind}
\alias{gapFind}
\title{Find gaps in a metabolic network}
\usage{
gapFind(reactionList, removeExchange = FALSE)
}
\arguments{
\item{reactionList}{A set of stoichiometric reaction with the following format:
\code{"H2O[... |
library(tidyverse)
qplot(mpg$hwy) | /my_first_commit.R | no_license | TomSawyerYYZ/git-sandbox | R | false | false | 33 | r | library(tidyverse)
qplot(mpg$hwy) |
#' Compile AE33 data files
#'
#' Compile AE33 data files into a single file.
#'
#' @param path The path to the folder containing the files to aggregate.
#' @param ... Other options passed to \code{\link[utils]{read.table}}.
#' @return Nothing. Side-effect: Writes compiled data to TSV.
compileAeth <- function(path = '.... | /R/compileAeth.R | no_license | alphonse/aeRo | R | false | false | 909 | r | #' Compile AE33 data files
#'
#' Compile AE33 data files into a single file.
#'
#' @param path The path to the folder containing the files to aggregate.
#' @param ... Other options passed to \code{\link[utils]{read.table}}.
#' @return Nothing. Side-effect: Writes compiled data to TSV.
compileAeth <- function(path = '.... |
library(tidyverse)
library(lubridate)
library(ggplot2)
CL_chloro <-
CL_chloro %>%
mutate(
dpth= cut(depth,
breaks = c(-Inf, 4, 7, Inf),
labels = c("epi", "meta", "hypo")
)
)
CL_chloro_date <-
CL_chloro %>%
separate(sampledate, c("month", "day", "year"), sep= "/", ex... | /Alaina/lakes/totalchloros.R | no_license | EmilyWhitaker/forundergrads | R | false | false | 926 | r | library(tidyverse)
library(lubridate)
library(ggplot2)
CL_chloro <-
CL_chloro %>%
mutate(
dpth= cut(depth,
breaks = c(-Inf, 4, 7, Inf),
labels = c("epi", "meta", "hypo")
)
)
CL_chloro_date <-
CL_chloro %>%
separate(sampledate, c("month", "day", "year"), sep= "/", ex... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survey_roc.R
\name{estimate_density}
\alias{estimate_density}
\title{Function to estimate survey weighted density}
\usage{
estimate_density(x, y, weight = NULL)
}
\arguments{
\item{x}{vector of points of interest for density estimation}
\ite... | /man/estimate_density.Rd | no_license | tamytsujimoto/surveyROC | R | false | true | 720 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survey_roc.R
\name{estimate_density}
\alias{estimate_density}
\title{Function to estimate survey weighted density}
\usage{
estimate_density(x, y, weight = NULL)
}
\arguments{
\item{x}{vector of points of interest for density estimation}
\ite... |
#Objetivo 1: melhorar a as fase de estabelecimento e de decisão (parte 1). Ou seja, melhor
#nomear as variáveis, melhorar as funções etc.
#
#Objetivo 2: (2.1) adaptar a função "classifying.peaks()" para atuar diretamente sobre
#listas, isso vai evitar a necessidade de "initializingVariables()"; (2.2) difidir a mes... | /projetoECG3.R | no_license | JsRoberto/ECGData | R | false | false | 9,483 | r | #Objetivo 1: melhorar a as fase de estabelecimento e de decisão (parte 1). Ou seja, melhor
#nomear as variáveis, melhorar as funções etc.
#
#Objetivo 2: (2.1) adaptar a função "classifying.peaks()" para atuar diretamente sobre
#listas, isso vai evitar a necessidade de "initializingVariables()"; (2.2) difidir a mes... |
# Club de lectura
# Sesion 1 - Capitulos 14, 15 y 20
# "R for Data Science" de Hadley Wickham y Garrett Grolemund
#Organiza: R-Ladies Galapagos, R-Ladies Barranquilla, R-Ladies Milagro, R-Ladies Guayaquil
#Expositoras: Mary Jane Rivero Morales y Daniss... | /Club de lectura 2021/Sesion1_ClubDeLectura.R | no_license | alexisrangelcalvo/meetup-presentations_barranquilla | R | false | false | 7,982 | r | # Club de lectura
# Sesion 1 - Capitulos 14, 15 y 20
# "R for Data Science" de Hadley Wickham y Garrett Grolemund
#Organiza: R-Ladies Galapagos, R-Ladies Barranquilla, R-Ladies Milagro, R-Ladies Guayaquil
#Expositoras: Mary Jane Rivero Morales y Daniss... |
require(collr)
setwd("/media/data1/kaiyin/RS123_1KG")
phenoNames = paste("dist", 1:36, sep="")
for(phenoName in phenoNames) {
argscoll = getPlinkParam(
allow_no_sex = "",
missing_phenotype = 9999,
pheno = "RS123.1kg.pheno/face.phenoAll.csv",
covar = "RS123.1kg.pheno/face.phenoAll.c... | /inst/extdata/facial_distance.R | no_license | kindlychung/collr2 | R | false | false | 619 | r | require(collr)
setwd("/media/data1/kaiyin/RS123_1KG")
phenoNames = paste("dist", 1:36, sep="")
for(phenoName in phenoNames) {
argscoll = getPlinkParam(
allow_no_sex = "",
missing_phenotype = 9999,
pheno = "RS123.1kg.pheno/face.phenoAll.csv",
covar = "RS123.1kg.pheno/face.phenoAll.c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my_df_decimales.R
\name{my_df_decimales}
\alias{my_df_decimales}
\title{redondead un df dejando los decimales q le digas}
\usage{
my_df_decimales(df, nn = 2)
}
\arguments{
\item{df}{Un dataframe}
\item{nn}{el nº de decimales (Default = 2)}
}... | /man/my_df_decimales.Rd | permissive | perezp44/pjp.funs | R | false | true | 633 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/my_df_decimales.R
\name{my_df_decimales}
\alias{my_df_decimales}
\title{redondead un df dejando los decimales q le digas}
\usage{
my_df_decimales(df, nn = 2)
}
\arguments{
\item{df}{Un dataframe}
\item{nn}{el nº de decimales (Default = 2)}
}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_kurtosis}
\alias{bin_kurtosis}
\title{bin kurtosis}
\usage{
bin_kurtosis(n, p)
}
\arguments{
\item{n}{trials}
\item{p}{prob}
}
\value{
kurtosis
}
\description{
calculates the kurtosis
}
| /binomial/man/bin_kurtosis.Rd | no_license | stat133-sp19/hw-stat133-dshim1006 | R | false | true | 286 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/binomial.R
\name{bin_kurtosis}
\alias{bin_kurtosis}
\title{bin kurtosis}
\usage{
bin_kurtosis(n, p)
}
\arguments{
\item{n}{trials}
\item{p}{prob}
}
\value{
kurtosis
}
\description{
calculates the kurtosis
}
|
####################
#todo############
#check species in taxon table before inserting
#merge subturf taxa
####################
#for loop
import_data <- function(file, con, merge_dictionary){
#browser()
print(file)
chkft <- c("pleuro","acro", "liver", "lichen", "litter" ,"soil", "rock", "totalVascular", "totalBry... | /databaseUtils/R/importcommunity.r | no_license | DagmarEgelkraut/seedclim-data | R | false | false | 11,974 | r | ####################
#todo############
#check species in taxon table before inserting
#merge subturf taxa
####################
#for loop
import_data <- function(file, con, merge_dictionary){
#browser()
print(file)
chkft <- c("pleuro","acro", "liver", "lichen", "litter" ,"soil", "rock", "totalVascular", "totalBry... |
# Title : TODO
# Objective : TODO
# Created by: krlse
# Created on: 29/04/2021
# an example showing the general structure of an if-else statement
a <- 0
if (a != 0) {
print(1 / a)
} else {
print("No reciprocal for 0.")
}
# an example that tells us which states, if any, have a murder rate less than 0.5
librar... | /aula_4.R | no_license | krlsedu/Data-Science-R-Basics | R | false | false | 2,410 | r | # Title : TODO
# Objective : TODO
# Created by: krlse
# Created on: 29/04/2021
# an example showing the general structure of an if-else statement
a <- 0
if (a != 0) {
print(1 / a)
} else {
print("No reciprocal for 0.")
}
# an example that tells us which states, if any, have a murder rate less than 0.5
librar... |
#' Probabilistic Reversal Learning Task
#'
#' @description
#' Hierarchical Bayesian Modeling of the Probabilistic Reversal Learning (PRL) Task using the following parameters: "eta_pos" (learning rate, +PE), "eta_neg" (learning rate, -PE), "alpha" (indecision point), "beta" (inverse temperature).
#'
#' \strong{MODEL:}
#... | /R/prl_fictitious_rp.R | no_license | youngahn/hBayesDM | R | false | false | 17,086 | r | #' Probabilistic Reversal Learning Task
#'
#' @description
#' Hierarchical Bayesian Modeling of the Probabilistic Reversal Learning (PRL) Task using the following parameters: "eta_pos" (learning rate, +PE), "eta_neg" (learning rate, -PE), "alpha" (indecision point), "beta" (inverse temperature).
#'
#' \strong{MODEL:}
#... |
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "household_power_consumption.zip", method = "curl")
unzip("household_power_consumption.zip")
b <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", as.is = TRUE, na.strings = "?"... | /plot3.R | no_license | MGrazzini/ExData_Plotting1 | R | false | false | 1,071 | r | download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "household_power_consumption.zip", method = "curl")
unzip("household_power_consumption.zip")
b <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", as.is = TRUE, na.strings = "?"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render_rmd.R
\name{md_caption}
\alias{md_caption}
\title{Generate the caption for a figure}
\usage{
md_caption(
title,
md = here::here("modals/_captions.md"),
get_details = F,
fig_in_report = T
)
}
\arguments{
\item{title}{The name of... | /man/md_caption.Rd | permissive | realsmak88/infographiqR | R | false | true | 873 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render_rmd.R
\name{md_caption}
\alias{md_caption}
\title{Generate the caption for a figure}
\usage{
md_caption(
title,
md = here::here("modals/_captions.md"),
get_details = F,
fig_in_report = T
)
}
\arguments{
\item{title}{The name of... |
#nocov start
#' @title Fair Loss Function
#'
#' @description
#' This function computes for xgboost's obj function the Mean Absolute Error
#' loss (MAE) gradient and hessian per value provided \code{preds} and
#' \code{dtrain}.
#'
#' @param preds The predictions
#' @param dtrain The xgboost model
#'
#' @return The gradi... | /R/utils-xgboost.R | permissive | data-science-competitions/Modeling-Earthquake-Damage | R | false | false | 2,337 | r | #nocov start
#' @title Fair Loss Function
#'
#' @description
#' This function computes for xgboost's obj function the Mean Absolute Error
#' loss (MAE) gradient and hessian per value provided \code{preds} and
#' \code{dtrain}.
#'
#' @param preds The predictions
#' @param dtrain The xgboost model
#'
#' @return The gradi... |
\alias{gtkWindowSetTitle}
\name{gtkWindowSetTitle}
\title{gtkWindowSetTitle}
\description{Sets the title of the \code{\link{GtkWindow}}. The title of a window will be
displayed in its title bar; on the X Window System, the title bar
is rendered by the window
manager, so exactly how the title appears to users may vary
a... | /RGtk2/man/gtkWindowSetTitle.Rd | no_license | lawremi/RGtk2 | R | false | false | 762 | rd | \alias{gtkWindowSetTitle}
\name{gtkWindowSetTitle}
\title{gtkWindowSetTitle}
\description{Sets the title of the \code{\link{GtkWindow}}. The title of a window will be
displayed in its title bar; on the X Window System, the title bar
is rendered by the window
manager, so exactly how the title appears to users may vary
a... |
#!/usr/bin/env Rscript
# remove species information
removeSpecies <- function(vec) {
posSpec <- regexpr(";D_6__", vec[2])
if (posSpec == -1) {
posSpec <- regexpr(";Ambiguous_taxa$", vec[2])
}
vec[2] <- substr(vec[2], 1, posSpec - 1)
paste0(vec, collapse = "\t")
}
# get argume... | /scripts/reformat-silva-taxonomy.R | no_license | romueller/gefast-paper-analysis | R | false | false | 653 | r | #!/usr/bin/env Rscript
# remove species information
removeSpecies <- function(vec) {
posSpec <- regexpr(";D_6__", vec[2])
if (posSpec == -1) {
posSpec <- regexpr(";Ambiguous_taxa$", vec[2])
}
vec[2] <- substr(vec[2], 1, posSpec - 1)
paste0(vec, collapse = "\t")
}
# get argume... |
#Project_2_Plot_2
#Exploratory data Analysis
#---------------------[Clear variables]-----------------------------------
rm(list=ls(all=TRUE))
#---------------------[Set working directory]-----------------------------
getwd()
setwd('F:\\Coursera\\Exploratory Data Analysis\\Week 2')
getwd()
#-----------------------... | /Project_2_Plot_2.R | no_license | restevesr3/ExData_Plotting1 | R | false | false | 1,945 | r | #Project_2_Plot_2
#Exploratory data Analysis
#---------------------[Clear variables]-----------------------------------
rm(list=ls(all=TRUE))
#---------------------[Set working directory]-----------------------------
getwd()
setwd('F:\\Coursera\\Exploratory Data Analysis\\Week 2')
getwd()
#-----------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.