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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{.threshold}
\alias{.threshold}
\title{Return model metrics for RuleFit}
\usage{
.threshold(actual, predicted)
}
\arguments{
\item{actual}{values and predicted values of the model}
}
\description{
Return model metrics for Rul... | /man/dot-threshold.Rd | permissive | TelethonKids/varppRule | R | false | true | 327 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{.threshold}
\alias{.threshold}
\title{Return model metrics for RuleFit}
\usage{
.threshold(actual, predicted)
}
\arguments{
\item{actual}{values and predicted values of the model}
}
\description{
Return model metrics for Rul... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmac.r
\name{hmac_sha1}
\alias{hmac_sha1}
\title{HMAC SHA1}
\usage{
hmac_sha1(key, string)
}
\arguments{
\item{key}{secret key}
\item{string}{data to securely hash}
}
\description{
As described in \url{http://datatracker.ietf.org/doc/rfc2104... | /man/hmac_sha1.Rd | no_license | hsiaoyin/httr | R | false | true | 346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmac.r
\name{hmac_sha1}
\alias{hmac_sha1}
\title{HMAC SHA1}
\usage{
hmac_sha1(key, string)
}
\arguments{
\item{key}{secret key}
\item{string}{data to securely hash}
}
\description{
As described in \url{http://datatracker.ietf.org/doc/rfc2104... |
################################
##
## Custom error handling taken
## from Hadley's website
##
################################
condition <- function(subclass, message, call = sys.call(-1), ...) {
structure(
class = c(subclass, "condition"),
list(message = message, call = call),
...
)
}
is.condition <- ... | /R/HelperFunctions.R | no_license | hhoeflin/ConfigParser | R | false | false | 1,628 | r | ################################
##
## Custom error handling taken
## from Hadley's website
##
################################
condition <- function(subclass, message, call = sys.call(-1), ...) {
structure(
class = c(subclass, "condition"),
list(message = message, call = call),
...
)
}
is.condition <- ... |
## Loading libraries ----
library(caret)
library(tidyverse)
i# attach to the environment
data("iris")
# rename the dataset
iris_ds <- iris
## Create validation dataset ----
# list of 80% of rows of the original dataset for training
validation_index <- createDataPartition(iris_ds$Species, p=0.80, list=FALSE)
# select... | /R/tutorials/iris/iris.R | no_license | Otay-Amel/data_science | R | false | false | 3,020 | r | ## Loading libraries ----
library(caret)
library(tidyverse)
i# attach to the environment
data("iris")
# rename the dataset
iris_ds <- iris
## Create validation dataset ----
# list of 80% of rows of the original dataset for training
validation_index <- createDataPartition(iris_ds$Species, p=0.80, list=FALSE)
# select... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scaffold.R
\name{scaffoldPluginFromMacro}
\alias{scaffoldPluginFromMacro}
\title{Scaffold a plugin based on an existing predictive macro.}
\usage{
scaffoldPluginFromMacro(macro, rVersion = getRversion(), ...)
}
\arguments{
\item{macro}{name o... | /man/scaffoldPluginFromMacro.Rd | permissive | piguy314159265/jeeves | R | false | true | 612 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scaffold.R
\name{scaffoldPluginFromMacro}
\alias{scaffoldPluginFromMacro}
\title{Scaffold a plugin based on an existing predictive macro.}
\usage{
scaffoldPluginFromMacro(macro, rVersion = getRversion(), ...)
}
\arguments{
\item{macro}{name o... |
testlist <- list(A = structure(c(2.31584277197537e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109680-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584277197537e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
sourceDir("datamakers")
#generates a simple baseline and effect
baseline.simple = rep(1, 1024)
effect.simple = rep(1, 1024)
effect.simple[500:600] = 2
addScenario(dsc_multiseq, name = "simple_base_simple_effect_null", fn = pois.2grp, args = list(m = 30, type = "null", baseline = baseline.simple, effect = effect.simpl... | /scenarios.R | no_license | zrxing/dscr-multiseq | R | false | false | 520 | r | sourceDir("datamakers")
#generates a simple baseline and effect
baseline.simple = rep(1, 1024)
effect.simple = rep(1, 1024)
effect.simple[500:600] = 2
addScenario(dsc_multiseq, name = "simple_base_simple_effect_null", fn = pois.2grp, args = list(m = 30, type = "null", baseline = baseline.simple, effect = effect.simpl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_arguments.R
\name{check_arg_single_numeric}
\alias{check_arg_single_numeric}
\title{Check argument single numeric}
\usage{
check_arg_single_numeric(object, null = FALSE)
}
\arguments{
\item{object}{object to check}
\item{null}{Whether ... | /man/check_arg_single_numeric.Rd | permissive | BioData/LabguruR | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_arguments.R
\name{check_arg_single_numeric}
\alias{check_arg_single_numeric}
\title{Check argument single numeric}
\usage{
check_arg_single_numeric(object, null = FALSE)
}
\arguments{
\item{object}{object to check}
\item{null}{Whether ... |
#!/usr/bin/env Rscript
# install.packages("purrr")
# install.packages("AdequacyModel")
# install.packages("plot3D")
# install.packages("fields")
# install.packages("parallel")
# Monte Carlo Simulation --------------------------------------------------
simulation_mc <- function(mc = 20e3L, FUN = "rastrigin",
... | /simulation_mc.R | no_license | prdm0/plosone_paper | R | false | false | 4,740 | r | #!/usr/bin/env Rscript
# install.packages("purrr")
# install.packages("AdequacyModel")
# install.packages("plot3D")
# install.packages("fields")
# install.packages("parallel")
# Monte Carlo Simulation --------------------------------------------------
simulation_mc <- function(mc = 20e3L, FUN = "rastrigin",
... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU
#'
#' Calculates pasture and forests production, yields and managed land cover by GCAM region / GLU / year.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on c... | /R/zchunk_LB123.LC_R_MgdPastFor_Yh_GLU.R | permissive | JGCRI/gcamdata | R | false | false | 19,772 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU
#'
#' Calculates pasture and forests production, yields and managed land cover by GCAM region / GLU / year.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pollen_season.R
\name{pollen_season}
\alias{pollen_season}
\title{A Pollen Season Function}
\usage{
pollen_season(value, date, method, threshold = NULL)
}
\arguments{
\item{value}{pollen concentration values}
\item{date}{dates}
\item{method... | /man/pollen_season.Rd | no_license | tangkai666/pollen | R | false | true | 2,437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pollen_season.R
\name{pollen_season}
\alias{pollen_season}
\title{A Pollen Season Function}
\usage{
pollen_season(value, date, method, threshold = NULL)
}
\arguments{
\item{value}{pollen concentration values}
\item{date}{dates}
\item{method... |
###########################################################################################
# #
# #
# ASSIGNING CLUSTER NAME... | /silverstandard/labelling/Assigning_lables_dataset5.R | no_license | SaskiaFreytag/cluster_benchmarking_code | R | false | false | 2,402 | r | ###########################################################################################
# #
# #
# ASSIGNING CLUSTER NAME... |
/Lessons 4.R | no_license | rnekrasov/romannekrasov.ru | R | false | false | 2,251 | r | ||
ml_g <- function(formula, data) {
### Prepare the data, relying on the formula class for
### handling model specification
mf <- model.frame(formula, data)
y <- model.response(mf, "numeric")
X <- model.matrix(formula, data = data)
### Check for missing data. Stop if any.
if (any(is.na(cbind(y, X)))) stop("So... | /R/ml_g.R | no_license | cran/msme | R | false | false | 1,671 | r | ml_g <- function(formula, data) {
### Prepare the data, relying on the formula class for
### handling model specification
mf <- model.frame(formula, data)
y <- model.response(mf, "numeric")
X <- model.matrix(formula, data = data)
### Check for missing data. Stop if any.
if (any(is.na(cbind(y, X)))) stop("So... |
#' Cued Recall Data from Manuscript
#'
#' Dataset that includes cued recall data in long format.
#' Participants were given a cue, and they were required to
#' remember the response listed in the dataset. This dataset
#' is in long format, which is required for most functions.
#'
#' @docType data
#'
#' @usage data(cued... | /R/cued_recall_manuscript-data.R | no_license | npm27/lrd | R | false | false | 633 | r | #' Cued Recall Data from Manuscript
#'
#' Dataset that includes cued recall data in long format.
#' Participants were given a cue, and they were required to
#' remember the response listed in the dataset. This dataset
#' is in long format, which is required for most functions.
#'
#' @docType data
#'
#' @usage data(cued... |
#UNIDADE 3#
> nome <- "Jonathan Sartori Bruzarrosco"
> seg <- 5
> ter <- 4
> qua <- 1
> qui <- 6
> sex <- 2
> diasemana <- c(5,4,1,6,2)
> diasemana[2]
[1] 4
> is.vector(diasemana)
[1] TRUE
> is.vector(seg)
[1] TRUE
> nomesemana <- c("DOMINGO", "SEGUNDA", "TERÇA", "QUARTA", "QUINTA", "SEXTA", "SABADO")
> diasemana <- c... | /Rscript2.r | permissive | jonathansartorib/ProjectR-teste | R | false | false | 6,055 | r | #UNIDADE 3#
> nome <- "Jonathan Sartori Bruzarrosco"
> seg <- 5
> ter <- 4
> qua <- 1
> qui <- 6
> sex <- 2
> diasemana <- c(5,4,1,6,2)
> diasemana[2]
[1] 4
> is.vector(diasemana)
[1] TRUE
> is.vector(seg)
[1] TRUE
> nomesemana <- c("DOMINGO", "SEGUNDA", "TERÇA", "QUARTA", "QUINTA", "SEXTA", "SABADO")
> diasemana <- c... |
test_data <- read.csv("https://stepic.org/media/attachments/course/724/hard_task.csv")
correct_answer <- read.csv("https://stepic.org/media/attachments/course/724/hard_task_ans.csv")
test_data <- read.csv("https://stepic.org/media/attachments/course/724/test_data_2.csv")
correct_answer <- read.csv("https://stepic.org/... | /test (1).R | no_license | Kirk1944/test | R | false | false | 3,989 | r | test_data <- read.csv("https://stepic.org/media/attachments/course/724/hard_task.csv")
correct_answer <- read.csv("https://stepic.org/media/attachments/course/724/hard_task_ans.csv")
test_data <- read.csv("https://stepic.org/media/attachments/course/724/test_data_2.csv")
correct_answer <- read.csv("https://stepic.org/... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' Amazon Connect Customer Profiles
#'
#' @description
#' Welcome to the Amazon Connect Customer Profiles API Reference. This
#' guide provides information about the Amazon Connect Custom... | /paws/R/customerprofiles_service.R | permissive | williazo/paws | R | false | false | 7,114 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config
NULL
#' Amazon Connect Customer Profiles
#'
#' @description
#' Welcome to the Amazon Connect Customer Profiles API Reference. This
#' guide provides information about the Amazon Connect Custom... |
setwd('~/wdl-fies')
library(tidyverse)
library(zoo)
library(readxl)
iam <- read.csv('data/covars/rawdata/iam/SSP_IAM_V2_201811.csv') %>%
filter(MODEL == "AIM/CGE",
SCENARIO == "SSP2-Baseline",
REGION != "World",
grepl("(Agricultural Production)|(Land Cover)|Population", VARIABLE)) %>%
... | /data/covars/scripts/iam.R | no_license | mcooper/wdl-fies | R | false | false | 2,440 | r | setwd('~/wdl-fies')
library(tidyverse)
library(zoo)
library(readxl)
iam <- read.csv('data/covars/rawdata/iam/SSP_IAM_V2_201811.csv') %>%
filter(MODEL == "AIM/CGE",
SCENARIO == "SSP2-Baseline",
REGION != "World",
grepl("(Agricultural Production)|(Land Cover)|Population", VARIABLE)) %>%
... |
##assume the file is in the working direcotry
read.table("household_power_consumption.txt",sep=";",header=T)->dati
which(dati[,1]=="1/2/2007"|dati[,1]=="2/2/2007")->datired
dati[datired,]->x1
y=as.Date(x1[,1],format='%d/%m/%Y')
z=as.character(x1[,2])
giorni=strptime(paste(y, z),"%Y-%m-%d %H:%M:%S")
png(width=480,heigh... | /plot4.R | no_license | maurizioTEST/ExData_Plotting1 | R | false | false | 1,260 | r | ##assume the file is in the working direcotry
read.table("household_power_consumption.txt",sep=";",header=T)->dati
which(dati[,1]=="1/2/2007"|dati[,1]=="2/2/2007")->datired
dati[datired,]->x1
y=as.Date(x1[,1],format='%d/%m/%Y')
z=as.character(x1[,2])
giorni=strptime(paste(y, z),"%Y-%m-%d %H:%M:%S")
png(width=480,heigh... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SAFFRON.R
\name{SAFFRON}
\alias{SAFFRON}
\title{SAFFRON: Adaptive online FDR control}
\usage{
SAFFRON(d, alpha = 0.05, gammai, w0, lambda = 0.5, random = TRUE,
date.format = "\%Y-\%m-\%d", discard = FALSE, tau.discard = 0.5)
}
\arguments{
\... | /man/SAFFRON.Rd | no_license | pneuvial/onlineFDR | R | false | true | 5,135 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SAFFRON.R
\name{SAFFRON}
\alias{SAFFRON}
\title{SAFFRON: Adaptive online FDR control}
\usage{
SAFFRON(d, alpha = 0.05, gammai, w0, lambda = 0.5, random = TRUE,
date.format = "\%Y-\%m-\%d", discard = FALSE, tau.discard = 0.5)
}
\arguments{
\... |
testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.15224310918997e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837630-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 230 | r | testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.15224310918997e+100, 2.61788686270017e+185 ))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
# vt$clr --- send clear screen sequence
integer function vt$clr (dummy)
integer dummy
include SWT_COMMON
if (Tc_clear_screen (1) == EOS)
return (ERR)
send_str (Tc_clear_screen)
call vt$del(Tc_clear_delay) # delay loop of characters
return (OK)
end
| /swt/src/lib/swt/src/vt$clr.r | no_license | arnoldrobbins/gt-swt | R | false | false | 286 | r | # vt$clr --- send clear screen sequence
integer function vt$clr (dummy)
integer dummy
include SWT_COMMON
if (Tc_clear_screen (1) == EOS)
return (ERR)
send_str (Tc_clear_screen)
call vt$del(Tc_clear_delay) # delay loop of characters
return (OK)
end
|
#`
#` H2OFrame and AST Nodes
#`
#` To conveniently and safely pass messages between R and H2O, this package
#` relies on S3 objects to capture and pass state. The end user will typically
#` never have to reason with these objects directly, as there are S3 accessor
#` methods provided for creating new objects.
#`
#` S3... | /h2o-r/h2o-package/R/frame.R | permissive | dorotheexploro/h2o-3 | R | false | false | 106,769 | r | #`
#` H2OFrame and AST Nodes
#`
#` To conveniently and safely pass messages between R and H2O, this package
#` relies on S3 objects to capture and pass state. The end user will typically
#` never have to reason with these objects directly, as there are S3 accessor
#` methods provided for creating new objects.
#`
#` S3... |
#' Check that tidying methods use allowed argument names
#'
#' @param tidy_method A tidying method. For example: `glance.Arima`.
#' @template boilerplate
#'
#' @description Tests when `strict = FALSE`:
#'
#' - None
#'
#' Tests when `strict = TRUE`:
#'
#' - `tidy_method` has a `conf.int` argument if it has a `conf.level... | /R/check_arguments.R | permissive | alexpghayes/modeltests | R | false | false | 2,797 | r | #' Check that tidying methods use allowed argument names
#'
#' @param tidy_method A tidying method. For example: `glance.Arima`.
#' @template boilerplate
#'
#' @description Tests when `strict = FALSE`:
#'
#' - None
#'
#' Tests when `strict = TRUE`:
#'
#' - `tidy_method` has a `conf.int` argument if it has a `conf.level... |
library(shiny)
library(ggplot2)
dt_KPI<-read.csv("C:/Users/PC/Documents/GeneralInsurance_Class/data/lesson2_KPI.csv")
# Define a server for the Shiny app
server<-function(input, output) {
output$picture<-renderPlot(
ggplot(data = dt_KPI,
mapping = aes_string(x = "Premium", y = "Expenses",
colo... | /Lessons/Lesson1/Homework/server.R | no_license | luciahurajova/GeneralInsurance_Class | R | false | false | 443 | r | library(shiny)
library(ggplot2)
dt_KPI<-read.csv("C:/Users/PC/Documents/GeneralInsurance_Class/data/lesson2_KPI.csv")
# Define a server for the Shiny app
server<-function(input, output) {
output$picture<-renderPlot(
ggplot(data = dt_KPI,
mapping = aes_string(x = "Premium", y = "Expenses",
colo... |
# alternative Cox model
# here I tried to predict other clinical informations and with such predicted info, I compared real with predicted survival curve.
# The reason is following.
# With only molecular feature dataset, cox model cannot guaranttee its performance however, other clinical response might be predicted by ... | /survival_analysis/alternative_cox.R | no_license | insockjang/DrugResponse | R | false | false | 12,039 | r | # alternative Cox model
# here I tried to predict other clinical informations and with such predicted info, I compared real with predicted survival curve.
# The reason is following.
# With only molecular feature dataset, cox model cannot guaranttee its performance however, other clinical response might be predicted by ... |
\name{SD.syst-methods}
\docType{methods}
\alias{SD.syst-methods}
\alias{SD.syst}
\alias{SD.syst,GCPM-method}
\title{Systemic Risk (Standard Deviation)}
\description{
Get the value of \code{SD.syst}, the non-diversifiable part of portfolio
standard deviation.
}
\usage{
SD.syst(this)
}
\arguments{
\item{t... | /fuzzedpackages/GCPM/man/SD.syst-methods.Rd | no_license | akhikolla/testpackages | R | false | false | 412 | rd | \name{SD.syst-methods}
\docType{methods}
\alias{SD.syst-methods}
\alias{SD.syst}
\alias{SD.syst,GCPM-method}
\title{Systemic Risk (Standard Deviation)}
\description{
Get the value of \code{SD.syst}, the non-diversifiable part of portfolio
standard deviation.
}
\usage{
SD.syst(this)
}
\arguments{
\item{t... |
library(tidyverse)
murders <- read.csv("data/murders.csv")
murders <- murders %>%
mutate(region = factor(region), rate = total/population * 10^5)
save(murders, file = "rda/murders.rda")
| /projects/murders/wrangle-data.R | no_license | csrnl/Harvard5 | R | false | false | 191 | r |
library(tidyverse)
murders <- read.csv("data/murders.csv")
murders <- murders %>%
mutate(region = factor(region), rate = total/population * 10^5)
save(murders, file = "rda/murders.rda")
|
fw_M <- readRDS("data/Benguela Pelagic.web.RDS")$species.sizes
fw_e <- 10
fw_r.a <- 10
fw_n <- 1/10
fw_ni <- -0.75
fw_par <- readRDS("results/rejection/Benguela Pelagic/rN=1000_tol=0.6_TSS_lower_a/Benguela Pelagic.RDS")$post_dists[1,]
fw_a <- 4.15053420
fw_ai <- -0.88414700
fw_aj <- -0.93833617
fw_r.b <- 0.02707676
... | /inst/main/nah_constraint.R | no_license | anubhav3/C1_method_v2 | R | false | false | 1,436 | r |
fw_M <- readRDS("data/Benguela Pelagic.web.RDS")$species.sizes
fw_e <- 10
fw_r.a <- 10
fw_n <- 1/10
fw_ni <- -0.75
fw_par <- readRDS("results/rejection/Benguela Pelagic/rN=1000_tol=0.6_TSS_lower_a/Benguela Pelagic.RDS")$post_dists[1,]
fw_a <- 4.15053420
fw_ai <- -0.88414700
fw_aj <- -0.93833617
fw_r.b <- 0.02707676
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataHandling.r
\name{cFactor}
\alias{cFactor}
\title{Paste factores}
\usage{
cFactor(x, y)
}
\arguments{
\item{x}{Factor x}
\item{y}{Factor y}
}
\value{
Factor
}
\description{
Paste factores
}
\details{
Paste factores
}
\author{
Jochen Krupp... | /man/cFactor.Rd | no_license | jkruppa/dataTools | R | false | true | 324 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataHandling.r
\name{cFactor}
\alias{cFactor}
\title{Paste factores}
\usage{
cFactor(x, y)
}
\arguments{
\item{x}{Factor x}
\item{y}{Factor y}
}
\value{
Factor
}
\description{
Paste factores
}
\details{
Paste factores
}
\author{
Jochen Krupp... |
## Question 3 -> Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable, which of these four sources have seen decreases in emissions from 1999–2008 for Baltimore City? Which have seen increases in emissions from 1999–2008? Use the ggplot2 plotting system to make a plot answer th... | /plot3.R | no_license | nitin971/Exploratory-Data-Analysis-Project-2 | R | false | false | 1,039 | r | ## Question 3 -> Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable, which of these four sources have seen decreases in emissions from 1999–2008 for Baltimore City? Which have seen increases in emissions from 1999–2008? Use the ggplot2 plotting system to make a plot answer th... |
/zkusebni_zkouska.R | no_license | vlckel/STGST | R | false | false | 1,181 | r | ||
# Author: Babak Naimi, naimi.b@gmail.com
# Date : July 2015
# Last Update : October 2021
# Version 1.2
# Licence GPL v3
setMethod("[[", c("RasterStackBrickTS","ANY","ANY"),
function(x,i,drop=TRUE, ...) {
if ( missing(i)) { stop('you must provide an index') }
if (!inherits(try(i <- x... | /R/subset.R | no_license | cran/rts | R | false | false | 2,150 | r | # Author: Babak Naimi, naimi.b@gmail.com
# Date : July 2015
# Last Update : October 2021
# Version 1.2
# Licence GPL v3
setMethod("[[", c("RasterStackBrickTS","ANY","ANY"),
function(x,i,drop=TRUE, ...) {
if ( missing(i)) { stop('you must provide an index') }
if (!inherits(try(i <- x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg_biplot.R
\name{gg_biplot}
\alias{gg_biplot}
\title{gg_biplot}
\usage{
gg_biplot(model, add_labels = TRUE, distance = 0.5, ranges = NULL)
}
\arguments{
\item{model}{a model as from the agricolae function AMMI}
\item{add_labels}{whether the... | /man/gg_biplot.Rd | no_license | CIPTOOLS/fbmet | R | false | true | 834 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg_biplot.R
\name{gg_biplot}
\alias{gg_biplot}
\title{gg_biplot}
\usage{
gg_biplot(model, add_labels = TRUE, distance = 0.5, ranges = NULL)
}
\arguments{
\item{model}{a model as from the agricolae function AMMI}
\item{add_labels}{whether the... |
# fizz-buzz.R
fizz_buzz <- function(x) {
if (x %% 15 == 0) {
msg <- "fizz buzz"
} else if (x %% 3 == 0) {
msg <- "fizz"
} else if (x %% 5 == 0) {
msg <- "buzz"
} else {
msg <- x
}
return(msg)
} | /III_DataEngineer_BDSE10/1904_R/TeachersCode/LessonsDemo/fizz-buzz.R | permissive | chaoannricardo/StudyNotes | R | false | false | 233 | r | # fizz-buzz.R
fizz_buzz <- function(x) {
if (x %% 15 == 0) {
msg <- "fizz buzz"
} else if (x %% 3 == 0) {
msg <- "fizz"
} else if (x %% 5 == 0) {
msg <- "buzz"
} else {
msg <- x
}
return(msg)
} |
\name{mech1}
\alias{mech1}
\docType{data}
\title{
A mechanical process (Phase I)
}
\description{
Seven variables collected from a mechanical process
}
\usage{data(mech1)}
\format{
The format is:
An array of (45 x 7).
}
\examples{
data(mech1)
}
\keyword{datasets}
| /man/mech1.Rd | no_license | cran/MSQC | R | false | false | 283 | rd | \name{mech1}
\alias{mech1}
\docType{data}
\title{
A mechanical process (Phase I)
}
\description{
Seven variables collected from a mechanical process
}
\usage{data(mech1)}
\format{
The format is:
An array of (45 x 7).
}
\examples{
data(mech1)
}
\keyword{datasets}
|
#############################
## 2.3 PointPlot Data Prep ##
#############################
library(tidyr); library(dplyr)
load(file = "dfPoint.RData")
##Create Spaghetti Data.frame with NA Service removed
dfPointSpaghetti <- subset(dfPoint, is.na(Outcome) == FALSE)
## Fill in first 40 entries in Serve Index... | /2.3 PointPlot Data Prep.R | no_license | tkoyejo/Really-Important-Stuff | R | false | false | 2,718 | r | #############################
## 2.3 PointPlot Data Prep ##
#############################
library(tidyr); library(dplyr)
load(file = "dfPoint.RData")
##Create Spaghetti Data.frame with NA Service removed
dfPointSpaghetti <- subset(dfPoint, is.na(Outcome) == FALSE)
## Fill in first 40 entries in Serve Index... |
/Bo-Chen-Code/8-2.R | no_license | YuCheng21/nkust-data-science | R | false | false | 588 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deTijd_style.R
\name{theme_DeTijd}
\alias{theme_DeTijd}
\title{Add De Tijd theme to ggplot chart}
\usage{
theme_DeTijd()
}
\description{
This function allows you to add the De Tijd theme to your ggplotgraphics.
}
\examples{
line <- ggplot(lin... | /man/theme_DeTijd.Rd | no_license | Thomassegers14/theme_deTijd | R | false | true | 495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deTijd_style.R
\name{theme_DeTijd}
\alias{theme_DeTijd}
\title{Add De Tijd theme to ggplot chart}
\usage{
theme_DeTijd()
}
\description{
This function allows you to add the De Tijd theme to your ggplotgraphics.
}
\examples{
line <- ggplot(lin... |
#' Delete one of the global graph attributes stored
#' within a graph object
#' @description Delete one of the global attributes
#' stored within a graph object of class
#' \code{dgr_graph}).
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @param attr the name of the attribute to
#' delete for the \code... | /R/delete_global_graph_attrs.R | permissive | FeifanXie/DiagrammeR | R | false | false | 4,786 | r | #' Delete one of the global graph attributes stored
#' within a graph object
#' @description Delete one of the global attributes
#' stored within a graph object of class
#' \code{dgr_graph}).
#' @param graph a graph object of class
#' \code{dgr_graph}.
#' @param attr the name of the attribute to
#' delete for the \code... |
Uni <- read.csv(file.choose())
# Normalizing continuous columns to bring them under same scale
normalized_data<-scale(Uni[,2:7]) #excluding the university name columnbefore normalizing
?dist
d <- dist(normalized_data, method = "euclidean") # distance matrix
?hclust
fit <- hclust(d, method="complete")
?hclust
... | /Clustering/rcode/Hclustering_University.R | no_license | vissu10497/Data-Science-Assignments | R | false | false | 709 | r | Uni <- read.csv(file.choose())
# Normalizing continuous columns to bring them under same scale
normalized_data<-scale(Uni[,2:7]) #excluding the university name columnbefore normalizing
?dist
d <- dist(normalized_data, method = "euclidean") # distance matrix
?hclust
fit <- hclust(d, method="complete")
?hclust
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.cvregsem}
\alias{plot.cvregsem}
\title{Plot function for cv_regsem}
\usage{
\method{plot}{cvregsem}(
x,
...,
pars = NULL,
show.minimum = "BIC",
col = NULL,
type = "l",
lwd = 3,
h_line = 0,
lty = 1,
xlab =... | /man/plot.cvregsem.Rd | no_license | Rjacobucci/regsem | R | false | true | 1,278 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.cvregsem}
\alias{plot.cvregsem}
\title{Plot function for cv_regsem}
\usage{
\method{plot}{cvregsem}(
x,
...,
pars = NULL,
show.minimum = "BIC",
col = NULL,
type = "l",
lwd = 3,
h_line = 0,
lty = 1,
xlab =... |
#Project Practical ML Coursera Arvind WOrk
library(caret)
# Set workspace. Chnage for Your machine
WorkingDir="~/GitHub/PracticalML"
WorkingDir='I:\Users\Arvind\Documents\GitHub\PracticalML'
# Read data in
setwd(WorkingDir)
pml.training <- read.csv("pml-training.csv") # 19622 rows of 160 columns
pml.testing <- read.csv... | /FinalRun.R | no_license | Qunal/PracticalML | R | false | false | 5,767 | r | #Project Practical ML Coursera Arvind WOrk
library(caret)
# Set workspace. Chnage for Your machine
WorkingDir="~/GitHub/PracticalML"
WorkingDir='I:\Users\Arvind\Documents\GitHub\PracticalML'
# Read data in
setwd(WorkingDir)
pml.training <- read.csv("pml-training.csv") # 19622 rows of 160 columns
pml.testing <- read.csv... |
testlist <- list(ends = c(-1074969129L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... | /IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609874362-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 729 | r | testlist <- list(ends = c(-1074969129L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,... |
library(tidyverse)
library(here)
library(kableExtra)
library(cowplot)
load(here("data","eye_tracker_seconds_task_df"))
load(here("data","surface_by_zones"))
load(here("data","surface_by_AOI"))
# Merging information about the area
df_figure6 <- left_join(eye_tracker_seconds_task_df, surface_by_zones, by="zone") %>%
... | /scripts/figures/Figure6.R | no_license | MonicaCortinas/ecra_eyetracking | R | false | false | 2,032 | r | library(tidyverse)
library(here)
library(kableExtra)
library(cowplot)
load(here("data","eye_tracker_seconds_task_df"))
load(here("data","surface_by_zones"))
load(here("data","surface_by_AOI"))
# Merging information about the area
df_figure6 <- left_join(eye_tracker_seconds_task_df, surface_by_zones, by="zone") %>%
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_variable_dropout.R
\name{plot.variable_dropout_explainer}
\alias{plot.variable_dropout_explainer}
\title{Plots Global Model Explanations (Variable Drop-out)}
\usage{
\method{plot}{variable_dropout_explainer}(x, ..., max_vars = 10)
}
\arg... | /man/plot.variable_dropout_explainer.Rd | no_license | benzei/DALEX | R | false | true | 2,552 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_variable_dropout.R
\name{plot.variable_dropout_explainer}
\alias{plot.variable_dropout_explainer}
\title{Plots Global Model Explanations (Variable Drop-out)}
\usage{
\method{plot}{variable_dropout_explainer}(x, ..., max_vars = 10)
}
\arg... |
source( sprintf( "%s/finance/LIBRARY.R", BASE_PATH ) );
output.pathname = paste( WEBSITE_URL, 'portfolio', sep = '/' );
asOfDate = last.biz.date();
print.pf.summary( asOfDate = asOfDate, output.pathname = output.pathname );
| /cron/update_myPfStatus.R | no_license | cmm801/r-finance | R | false | false | 226 | r |
source( sprintf( "%s/finance/LIBRARY.R", BASE_PATH ) );
output.pathname = paste( WEBSITE_URL, 'portfolio', sep = '/' );
asOfDate = last.biz.date();
print.pf.summary( asOfDate = asOfDate, output.pathname = output.pathname );
|
\name{order.optimal}
\alias{order.optimal}
\title{Optimal Leaf Ordering of Binary Trees.}
\description{
Find an optimal linear leaf ordering of a binary merge tree as
produced by a hierarchical cluster algorithm.
}
\usage{
order.optimal(dist, merge)
}
\arguments{
\item{dist}{an object of class \code{dist}.}
\it... | /man/order.optimal.Rd | no_license | cran/cba | R | false | false | 2,271 | rd | \name{order.optimal}
\alias{order.optimal}
\title{Optimal Leaf Ordering of Binary Trees.}
\description{
Find an optimal linear leaf ordering of a binary merge tree as
produced by a hierarchical cluster algorithm.
}
\usage{
order.optimal(dist, merge)
}
\arguments{
\item{dist}{an object of class \code{dist}.}
\it... |
#!/usr/bin/R
# VERSION: 0.3
library(GenomicFeatures)
library(Biostrings)
# Target file
targetfile = '../target'
# Query GFF file
qfile = '../BLAST/TR_vs_HS_blastn_HS.gff'
# Classify the matches that overlap GFFs
# Vector based on the "type" field of the loaded gffs
genic = c('gene')
exonic = c('exon')
# String base... | /CNE_PIPELINE/PM_CI_KH/overlap_gff_vs_gffs.R | no_license | silverkey/HALO | R | false | false | 4,334 | r | #!/usr/bin/R
# VERSION: 0.3
library(GenomicFeatures)
library(Biostrings)
# Target file
targetfile = '../target'
# Query GFF file
qfile = '../BLAST/TR_vs_HS_blastn_HS.gff'
# Classify the matches that overlap GFFs
# Vector based on the "type" field of the loaded gffs
genic = c('gene')
exonic = c('exon')
# String base... |
library(tidyverse)
library(broom)
library(sandwich)
library(stargazer)
library(lmtest)
library(car)
library(here)
## ----data, cache = TRUE---------------------------------------------------------------------------------
## Load data
df <- read_csv(here("data/immigration_20191219_clean.csv")) %>%
mutate(condition =... | /code/02-analysis.R | no_license | experimentalpolitics/immigration | R | false | false | 17,428 | r | library(tidyverse)
library(broom)
library(sandwich)
library(stargazer)
library(lmtest)
library(car)
library(here)
## ----data, cache = TRUE---------------------------------------------------------------------------------
## Load data
df <- read_csv(here("data/immigration_20191219_clean.csv")) %>%
mutate(condition =... |
#' Get set of available workers
#'
#' @param methods A character vector specifying how to infer the number
#' of available cores.
#'
#' @param na.rm If TRUE, only non-missing settings are considered/returned.
#'
#' @param default The default set of workers.
#'
#' @param which A character specifying which set / sets to ... | /R/availableWorkers.R | no_license | myoung3/future | R | false | false | 10,033 | r | #' Get set of available workers
#'
#' @param methods A character vector specifying how to infer the number
#' of available cores.
#'
#' @param na.rm If TRUE, only non-missing settings are considered/returned.
#'
#' @param default The default set of workers.
#'
#' @param which A character specifying which set / sets to ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.R
\name{umx_scale}
\alias{umx_scale}
\title{Scale data columns, skipping non-scalable columns}
\usage{
umx_scale(
df,
varsToScale = NULL,
coerce = FALSE,
attr = FALSE,
verbose = FALSE
)
}
\arguments{
\item{df}{A dat... | /man/umx_scale.Rd | no_license | JunqiangZheng/umx | R | false | true | 1,904 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc_and_utility.R
\name{umx_scale}
\alias{umx_scale}
\title{Scale data columns, skipping non-scalable columns}
\usage{
umx_scale(
df,
varsToScale = NULL,
coerce = FALSE,
attr = FALSE,
verbose = FALSE
)
}
\arguments{
\item{df}{A dat... |
plot4 <- function(dir=getwd()){
# Check if file exists in named directory
if(!file.exists("household_power_consumption.txt")){
# Download the file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","household_power_consumption.zip",method="curl"... | /plot4.r | no_license | SLinder42/ExData_Plotting1 | R | false | false | 2,703 | r | plot4 <- function(dir=getwd()){
# Check if file exists in named directory
if(!file.exists("household_power_consumption.txt")){
# Download the file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","household_power_consumption.zip",method="curl"... |
## Defines a class that stores a matrix and allows for the inverse to of the matrix to be cached.
## Creates class to store matrix and cached inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() ... | /cachematrix.R | no_license | RaMaShr/ProgrammingAssignment2 | R | false | false | 973 | r | ## Defines a class that stores a matrix and allows for the inverse to of the matrix to be cached.
## Creates class to store matrix and cached inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() ... |
library(parallelDist)
# Multidimensional case without standarize
tmp.mat <- matrix(c(1:40), ncol = 10)
sample.matrix.list <- list(tmp.mat[1:2,], tmp.mat[3:4,])
parDist(x = sample.matrix.list, method = "dtw")
# Multidimensional case with standarize
sample.matrix.list.std <- sample.matrix.list
sample.matrix.list.std[[... | /test_dwt.R | no_license | CIAT-DAPA/cwr_pre_breeding | R | false | false | 2,104 | r | library(parallelDist)
# Multidimensional case without standarize
tmp.mat <- matrix(c(1:40), ncol = 10)
sample.matrix.list <- list(tmp.mat[1:2,], tmp.mat[3:4,])
parDist(x = sample.matrix.list, method = "dtw")
# Multidimensional case with standarize
sample.matrix.list.std <- sample.matrix.list
sample.matrix.list.std[[... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/documentation-dummies.R
\name{cell_ids}
\alias{cell_ids}
\title{cell_ids}
\usage{
cell_ids(cell_ids)
}
\arguments{
\item{cell_ids}{Character vector. Denotes the cell ids of interest.}
}
\description{
cell_ids
}
| /man/cell_ids.Rd | no_license | kueckelj/celltracer | R | false | true | 289 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/documentation-dummies.R
\name{cell_ids}
\alias{cell_ids}
\title{cell_ids}
\usage{
cell_ids(cell_ids)
}
\arguments{
\item{cell_ids}{Character vector. Denotes the cell ids of interest.}
}
\description{
cell_ids
}
|
#
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... | /R/get_sundered_data.R | permissive | dwtcourses/pointblank | R | false | false | 10,590 | r | #
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rzuc_i_zareaguj.R
\name{rzuc_i_zareaguj}
\alias{rzuc_i_zareaguj}
\title{Wywolanie i reakcja na wynik rzutu kostek.}
\usage{
rzuc_i_zareaguj(stan_stada_gracza, stado = SuperFarmerAGOJZB::param$stado)
}
\arguments{
\item{stan_stada_gracza}{Aktu... | /SuperFarmerAGOJZB/man/rzuc_i_zareaguj.Rd | no_license | michalkotlewski/rKurs-projekt3 | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rzuc_i_zareaguj.R
\name{rzuc_i_zareaguj}
\alias{rzuc_i_zareaguj}
\title{Wywolanie i reakcja na wynik rzutu kostek.}
\usage{
rzuc_i_zareaguj(stan_stada_gracza, stado = SuperFarmerAGOJZB::param$stado)
}
\arguments{
\item{stan_stada_gracza}{Aktu... |
# ---------------------------------------------US---------------------------------------------
# 20243 news read
# 3071 news got kicked out
# 4729 news are related to coronavirus
# 1347 news may lead to outrage
# starts from 1/6
News <- c(2, 2, 4, 1, 1, 1, 1, 1, 4, 7, 7, 9, 8, 1, 7, 12, 9, 14, 13, 14, 7, 11, 8, 9, 9, 1... | /news_bass.r | no_license | M0rrisChang/thesis | R | false | false | 10,214 | r | # ---------------------------------------------US---------------------------------------------
# 20243 news read
# 3071 news got kicked out
# 4729 news are related to coronavirus
# 1347 news may lead to outrage
# starts from 1/6
News <- c(2, 2, 4, 1, 1, 1, 1, 1, 4, 7, 7, 9, 8, 1, 7, 12, 9, 14, 13, 14, 7, 11, 8, 9, 9, 1... |
## Data Simulation in R
## Refer to Coursera R Programming Course from John Hopkins
###############################################
####### Generating Random Numbers #########
###############################################
# rnorm - generate random normal varaites with give mean and standard deviation... | /R_Simulation.r | no_license | nkuhta/R-Basics | R | false | false | 4,185 | r | ## Data Simulation in R
## Refer to Coursera R Programming Course from John Hopkins
###############################################
####### Generating Random Numbers #########
###############################################
# rnorm - generate random normal varaites with give mean and standard deviation... |
rm(list = ls())
library(e1071)
song <- read.csv("/Users/yangli/Desktop/song.csv")
#total
song$target <- factor(song$target)
n <- nrow(song)
#fetch idx
dt_idx <- sample(seq_len(n), size = round(0.3 * n))
#rate:70%training,30%test
training <- song[-dt_idx,-1]
test <- song[dt_idx,-1]
svmfit <- svm(target ~., data = tra... | /R_analysis_songs/svm.R | no_license | yangsgit/DataMining-with-R | R | false | false | 479 | r | rm(list = ls())
library(e1071)
song <- read.csv("/Users/yangli/Desktop/song.csv")
#total
song$target <- factor(song$target)
n <- nrow(song)
#fetch idx
dt_idx <- sample(seq_len(n), size = round(0.3 * n))
#rate:70%training,30%test
training <- song[-dt_idx,-1]
test <- song[dt_idx,-1]
svmfit <- svm(target ~., data = tra... |
## soil color mosaics
# mosaicing
library(raster);library(rgdal);library(sp)
# folder locations
root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/spatialPredictions/tiles/"
root.short<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/spatialPredictions/"... | /Production/DSM/SoilColour/digitalsoilmapping/mosaics/mos_type2_surface_G.R | permissive | AusSoilsDSM/SLGA | R | false | false | 1,650 | r | ## soil color mosaics
# mosaicing
library(raster);library(rgdal);library(sp)
# folder locations
root<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/spatialPredictions/tiles/"
root.short<- "/datasets/work/af-tern-mal-deb/work/projects/ternlandscapes_2019/soilColour/spatialPredictions/"... |
f5c1da2a4abafef79718d2ab0ab23551 query60_query06_1344.qdimacs 3097 11794 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query60_query06_1344/query60_query06_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | f5c1da2a4abafef79718d2ab0ab23551 query60_query06_1344.qdimacs 3097 11794 |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 32217
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 32197
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 32197
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/MayerEichberger-Saffidine/PositionalGames_hex/hex_rand_6x6-6m-2/hex_rand_6x6-6m-2.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 875 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 32217
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 32197
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 32197
c
c Input Parameter (command line, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m_shop_fun.R
\name{m_shop_fun}
\alias{m_shop_fun}
\title{Identity}
\usage{
m_shop_fun(x)
}
\arguments{
\item{x}{numeric length one argument}
}
\value{
}
\description{
Identity
}
\examples{
m_shop_fun(3)
}
| /man/m_shop_fun.Rd | permissive | Huh/testpkg | R | false | true | 284 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m_shop_fun.R
\name{m_shop_fun}
\alias{m_shop_fun}
\title{Identity}
\usage{
m_shop_fun(x)
}
\arguments{
\item{x}{numeric length one argument}
}
\value{
}
\description{
Identity
}
\examples{
m_shop_fun(3)
}
|
library(tidyverse)
library(hrbrthemes)
library(waffle)
library(ggthemr)
theme_set(theme_ipsum_rc(grid = FALSE))
load("data/komposisi_guru.rda")
komposisi_guru %>%
mutate(jenis_kelamin = factor(jenis_kelamin, labels = c("Laki-laki", "Perempuan"))) %>%
ggplot(aes(fill = jenis_kelamin, values = jumlah)) +
geom_... | /script/komposisi_guru.R | no_license | dateam-jds/opendata | R | false | false | 1,122 | r | library(tidyverse)
library(hrbrthemes)
library(waffle)
library(ggthemr)
theme_set(theme_ipsum_rc(grid = FALSE))
load("data/komposisi_guru.rda")
komposisi_guru %>%
mutate(jenis_kelamin = factor(jenis_kelamin, labels = c("Laki-laki", "Perempuan"))) %>%
ggplot(aes(fill = jenis_kelamin, values = jumlah)) +
geom_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/limitLevels.R
\name{limitLevels}
\alias{limitLevels}
\title{Truncates number of categories o a vector}
\usage{
limitLevels(vector, max_levels, other_name = "other")
}
\arguments{
\item{vector}{vector with character values}
\item{max_levels}{... | /man/limitLevels.Rd | permissive | danielfm123/dftools | R | false | true | 626 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/limitLevels.R
\name{limitLevels}
\alias{limitLevels}
\title{Truncates number of categories o a vector}
\usage{
limitLevels(vector, max_levels, other_name = "other")
}
\arguments{
\item{vector}{vector with character values}
\item{max_levels}{... |
# plot clusters based on minCNR and majCNR
plotCNR <- function(sampleName, segs.cluster, CNR.mat, fit.mat, peak.mat, purity, clonality){
# plot clusters based on minCNR and majCNR
pdf(paste(sampleName, ".plotCNR.pdf", sep=""), width=14, height=8)
print(ggplot(segs.cluster, aes_string(x = "LAF_median", y =... | /R/plots.R | no_license | sahilseth/CLOSE | R | false | false | 12,779 | r | # plot clusters based on minCNR and majCNR
plotCNR <- function(sampleName, segs.cluster, CNR.mat, fit.mat, peak.mat, purity, clonality){
# plot clusters based on minCNR and majCNR
pdf(paste(sampleName, ".plotCNR.pdf", sep=""), width=14, height=8)
print(ggplot(segs.cluster, aes_string(x = "LAF_median", y =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataSets.R
\docType{data}
\name{employment_df}
\alias{employment_df}
\title{Employment in different countries by gender and status.}
\format{A data.frame with 132 rows and 4 columns.}
\usage{
data(employment_df)
}
\description{
\itemize{
\it... | /man/employment_df.Rd | no_license | pamelinni/robCompositions | R | false | true | 593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataSets.R
\docType{data}
\name{employment_df}
\alias{employment_df}
\title{Employment in different countries by gender and status.}
\format{A data.frame with 132 rows and 4 columns.}
\usage{
data(employment_df)
}
\description{
\itemize{
\it... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_population_signatures.R
\name{reverse_factor_levels}
\alias{reverse_factor_levels}
\title{Reverse Factor Levels}
\usage{
reverse_factor_levels(x)
}
\arguments{
\item{x}{A factor}
}
\value{
A factor with levels reversed
}
\description{
T... | /man/reverse_factor_levels.Rd | no_license | mnstaube/SignIT | R | false | true | 398 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_population_signatures.R
\name{reverse_factor_levels}
\alias{reverse_factor_levels}
\title{Reverse Factor Levels}
\usage{
reverse_factor_levels(x)
}
\arguments{
\item{x}{A factor}
}
\value{
A factor with levels reversed
}
\description{
T... |
lnorms <- function(n, mean=2,var=1)
{
nmeans <- log(mean) - 0.5 * log(var/mean^2 + 1)
nvars <- log(var/mean^2 + 1)
normals <- rnorm(n) * sqrt(nvars) + nmeans
lns <- exp(normals)
lns
}
| /R/lnorms.R | no_license | kostask84/popbio | R | false | false | 225 | r | lnorms <- function(n, mean=2,var=1)
{
nmeans <- log(mean) - 0.5 * log(var/mean^2 + 1)
nvars <- log(var/mean^2 + 1)
normals <- rnorm(n) * sqrt(nvars) + nmeans
lns <- exp(normals)
lns
}
|
K.by.nodes<-function(sp.traits, phy, obs.only=FALSE, return.all=TRUE, n.rep=10, rand.test=TRUE, r.rep=10000) {
# parameter settings
if(is.null(sp.traits) && is.null(phy)) {
stop("Must supply both sp.traits and tree.")
}
if(is.null(r.rep) && rand.test)stop("Must specify 'r.rep' if using the randomization test.")
... | /checkpoints/archive/2010/04.2010/04.30.2010/spacodi/R/K.by.nodes.R | no_license | eastman/spacodiR | R | false | false | 4,778 | r | K.by.nodes<-function(sp.traits, phy, obs.only=FALSE, return.all=TRUE, n.rep=10, rand.test=TRUE, r.rep=10000) {
# parameter settings
if(is.null(sp.traits) && is.null(phy)) {
stop("Must supply both sp.traits and tree.")
}
if(is.null(r.rep) && rand.test)stop("Must specify 'r.rep' if using the randomization test.")
... |
#' calculate Upside Potential Ratio of upside performance over downside risk
#'
#' Sortino proposed an improvement on the Sharpe Ratio to better account for
#' skill and excess performance by using only downside semivariance as the
#' measure of risk. That measure is the \code{\link{SortinoRatio}}. This
#' function, ... | /PerformanceAnalytics/R/UpsidePotentialRatio.R | no_license | ingted/R-Examples | R | false | false | 6,078 | r | #' calculate Upside Potential Ratio of upside performance over downside risk
#'
#' Sortino proposed an improvement on the Sharpe Ratio to better account for
#' skill and excess performance by using only downside semivariance as the
#' measure of risk. That measure is the \code{\link{SortinoRatio}}. This
#' function, ... |
\name{collapse.bigrams}
\alias{collapse.bigrams}
\title{Replace specified bigrams with terms representing the bigrams}
\usage{
collapse.bigrams(bigrams = character(), doc.id = integer(),
term.id = integer(), vocab = character())
}
\arguments{
\item{bigrams}{A character vector, each element of which
is a bigram re... | /man/collapse.bigrams.Rd | permissive | VivianLao/LDAtools | R | false | false | 2,050 | rd | \name{collapse.bigrams}
\alias{collapse.bigrams}
\title{Replace specified bigrams with terms representing the bigrams}
\usage{
collapse.bigrams(bigrams = character(), doc.id = integer(),
term.id = integer(), vocab = character())
}
\arguments{
\item{bigrams}{A character vector, each element of which
is a bigram re... |
power_ols <- function(thetas, N, R, sv, cont, theta0, alpha)
{
ind <- 0
set.seed(round((thetas[1] + thetas[2]) * 100000, digits = 0))
for(r in 1:R)
{
y <- RandomARMod_lin2(N, thetas[1], thetas[2], sv, cont)
olsstat <- ols_ts(y, theta0)
ind1 <- (abs(olsstat$Ttheta0) > qnorm(1 - alpha / 4))
ind2 <... | /R/power_ols.R | no_license | ChrisKust/rexpar | R | false | false | 443 | r | power_ols <- function(thetas, N, R, sv, cont, theta0, alpha)
{
ind <- 0
set.seed(round((thetas[1] + thetas[2]) * 100000, digits = 0))
for(r in 1:R)
{
y <- RandomARMod_lin2(N, thetas[1], thetas[2], sv, cont)
olsstat <- ols_ts(y, theta0)
ind1 <- (abs(olsstat$Ttheta0) > qnorm(1 - alpha / 4))
ind2 <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DoOR.data-package.R
\docType{data}
\name{Or94a}
\alias{Or94a}
\title{Or94a}
\format{
'data.frame': 693 obs. of 9 variables:
$ Class : Factor w/ 17 levels "acid","acids",..: NA 13 5 5 5 5 5 5 5 5 ...
$ Name : Factor w/ 69... | /man/Or94a.Rd | no_license | ropensci/DoOR.data | R | false | true | 1,204 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DoOR.data-package.R
\docType{data}
\name{Or94a}
\alias{Or94a}
\title{Or94a}
\format{
'data.frame': 693 obs. of 9 variables:
$ Class : Factor w/ 17 levels "acid","acids",..: NA 13 5 5 5 5 5 5 5 5 ...
$ Name : Factor w/ 69... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Summaries.R
\name{plotEffectParameterSummary}
\alias{plotEffectParameterSummary}
\title{Plot Effects Parameter Summary}
\usage{
plotEffectParameterSummary(summary, ctName = "mean", varNames = NULL,
mar = c(3, 6, 1, 1))
}
\arguments{
\item{s... | /man/plotEffectParameterSummary.Rd | permissive | hardmanko/CMBBHT | R | false | true | 1,046 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Summaries.R
\name{plotEffectParameterSummary}
\alias{plotEffectParameterSummary}
\title{Plot Effects Parameter Summary}
\usage{
plotEffectParameterSummary(summary, ctName = "mean", varNames = NULL,
mar = c(3, 6, 1, 1))
}
\arguments{
\item{s... |
#' Travis CI utilities
#'
#' @description
#' Helper functions for Travis CI.
#'
#' `travis_sync()` initiates synchronization with GitHub and waits for
#' completion by default.
#' @param block `[flag]`\cr
#' Set to `FALSE` to return immediately instead of waiting.
#' @template endpoint
#' @template quiet
#' @export
t... | /R/travis-util.R | no_license | krlmlr/travis | R | false | false | 1,020 | r | #' Travis CI utilities
#'
#' @description
#' Helper functions for Travis CI.
#'
#' `travis_sync()` initiates synchronization with GitHub and waits for
#' completion by default.
#' @param block `[flag]`\cr
#' Set to `FALSE` to return immediately instead of waiting.
#' @template endpoint
#' @template quiet
#' @export
t... |
shinyServer(function(input, output) {
v <- reactiveValues(doPlot = FALSE)
observeEvent(input$run, {
# 0 will be coerced to FALSE
# 1+ will be coerced to TRUE
v$doPlot <- input$run
})
observeEvent(input$info, {
v$doPlot <- FALSE
})
output$table <- ren... | /server.R | no_license | newwwww/SeattleHackFB | R | false | false | 3,266 | r |
shinyServer(function(input, output) {
v <- reactiveValues(doPlot = FALSE)
observeEvent(input$run, {
# 0 will be coerced to FALSE
# 1+ will be coerced to TRUE
v$doPlot <- input$run
})
observeEvent(input$info, {
v$doPlot <- FALSE
})
output$table <- ren... |
require(data.table)
require(lightgbm)
require(caret)
rm(list = ls()); gc()
load("./modelData/feat_simplified_20170529.RData")
load(file = "./modelData/tmp_outcomes2016.RData")
load(file = "./datathon2017/final_features_simp.RData")
fnl.dat[, Target := ifelse(Patient_ID %in% tmp_outcomes2016, 1, 0)]
# split ----------... | /fnl/13_lightGBM.R | no_license | ivanliu1989/datathon2017 | R | false | false | 1,720 | r | require(data.table)
require(lightgbm)
require(caret)
rm(list = ls()); gc()
load("./modelData/feat_simplified_20170529.RData")
load(file = "./modelData/tmp_outcomes2016.RData")
load(file = "./datathon2017/final_features_simp.RData")
fnl.dat[, Target := ifelse(Patient_ID %in% tmp_outcomes2016, 1, 0)]
# split ----------... |
2 / 200 * 30
(59 + 73 + 2) / 3
sin(pi / 2)
#Assignment in R
x <- 3 * 4
x
this_is_a_really_long_name <- 2.5
r_rocks <- 2 ^ 3
r_rock
R_rocks
#Calling functions
seq(1, 10)
x <- "hello
world"
x
y <- seq(1, 10, length.out = 5)
y
(y <- seq(1, 10, length.out = 5))
| /2.RStudio_Basics.R | no_license | sdjangam/R | R | false | false | 297 | r | 2 / 200 * 30
(59 + 73 + 2) / 3
sin(pi / 2)
#Assignment in R
x <- 3 * 4
x
this_is_a_really_long_name <- 2.5
r_rocks <- 2 ^ 3
r_rock
R_rocks
#Calling functions
seq(1, 10)
x <- "hello
world"
x
y <- seq(1, 10, length.out = 5)
y
(y <- seq(1, 10, length.out = 5))
|
\docType{package}
\name{rTensor-package}
\alias{rTensor}
\alias{rTensor-package}
\title{Tools for tensor analysis and decomposition}
\description{
This package is centered around the \code{\link{Tensor-class}}, which defines a S4 class for tensors of arbitrary number of modes. A vignette and/or a possible paper will be... | /man/rTensor-package.Rd | no_license | dosorio/rTensor | R | false | false | 2,604 | rd | \docType{package}
\name{rTensor-package}
\alias{rTensor}
\alias{rTensor-package}
\title{Tools for tensor analysis and decomposition}
\description{
This package is centered around the \code{\link{Tensor-class}}, which defines a S4 class for tensors of arbitrary number of modes. A vignette and/or a possible paper will be... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISOweek2date.R
\name{ISOweek2date}
\alias{ISOweek2date}
\title{Converts date from week notation according to ISO 8601 to standard notation}
\usage{
ISOweek2date(weekdate)
}
\arguments{
\item{weekdate}{A character vector of year, week, and wee... | /man/ISOweek2date.Rd | no_license | UweBlock/ISOweek | R | false | true | 1,362 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISOweek2date.R
\name{ISOweek2date}
\alias{ISOweek2date}
\title{Converts date from week notation according to ISO 8601 to standard notation}
\usage{
ISOweek2date(weekdate)
}
\arguments{
\item{weekdate}{A character vector of year, week, and wee... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
get... | /cachematrix.R | no_license | Ayathosni/ProgrammingAssignment2 | R | false | false | 770 | 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()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
get... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod09nrt.R
\name{extract_fn_from_path}
\alias{extract_fn_from_path}
\title{Get the filename from a path}
\usage{
extract_fn_from_path(fn_with_path)
}
\arguments{
\item{fn_with_path}{The filename, with partial or full path}
}
\value... | /man/extract_fn_from_path.Rd | no_license | cran/mod09nrt | R | false | true | 792 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mod09nrt.R
\name{extract_fn_from_path}
\alias{extract_fn_from_path}
\title{Get the filename from a path}
\usage{
extract_fn_from_path(fn_with_path)
}
\arguments{
\item{fn_with_path}{The filename, with partial or full path}
}
\value... |
# BSD_2_clause
#############################################################################
# Define the header and sidebar (disabled)
header <- dashboardHeader(disable = TRUE)
sidebar <- dashboardSidebar(disable = TRUE)
#############################################################################
# Define the page(... | /ui.R | no_license | jacob-ogre/esadocs-bulk | R | false | false | 7,866 | r | # BSD_2_clause
#############################################################################
# Define the header and sidebar (disabled)
header <- dashboardHeader(disable = TRUE)
sidebar <- dashboardSidebar(disable = TRUE)
#############################################################################
# Define the page(... |
library(testthat)
library(rmdal0)
test_check("rmdal0")
| /tests/testthat.R | no_license | mdsumner/rmdal0 | R | false | false | 56 | r | library(testthat)
library(rmdal0)
test_check("rmdal0")
|
#### name: aggregation-of-slas ####
# ivanhanigan
# 2014-02-19
# TODO the recodeing using a GIS program to edit SA2s interactively
# and then join to the CCD SEIFA scores isn't working, I have just
# made it work with the old dataset I generated in PostGIS.
# functions
require(foreign)
# load
recoded_sa2s_in_newg... | /main.R | no_license | ivanhanigan/aggregation-of-slas-or-sa2s | R | false | false | 2,771 | r |
#### name: aggregation-of-slas ####
# ivanhanigan
# 2014-02-19
# TODO the recodeing using a GIS program to edit SA2s interactively
# and then join to the CCD SEIFA scores isn't working, I have just
# made it work with the old dataset I generated in PostGIS.
# functions
require(foreign)
# load
recoded_sa2s_in_newg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.resp.R
\name{plot_simple}
\alias{plot_simple}
\title{plot_simple}
\usage{
plot_simple(data, channel, marker, ...)
}
\arguments{
\item{data}{The ExpeData (".exp" – Sable Systems) file with the spectrograph information for oxygen, carbon d... | /man/plot_simple.Rd | no_license | germant13/metabR | R | false | true | 722 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.resp.R
\name{plot_simple}
\alias{plot_simple}
\title{plot_simple}
\usage{
plot_simple(data, channel, marker, ...)
}
\arguments{
\item{data}{The ExpeData (".exp" – Sable Systems) file with the spectrograph information for oxygen, carbon d... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/pancreas.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.7,family="gaussian",standardize=FALSE)
sink('./pancreas_076.txt',append=TRUE)... | /Model/EN/AvgRank/pancreas/pancreas_076.R | no_license | esbgkannan/QSMART | R | false | false | 350 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/pancreas.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.7,family="gaussian",standardize=FALSE)
sink('./pancreas_076.txt',append=TRUE)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpatialLinesNetwork.R
\name{plot,SpatialLinesNetwork,ANY-method}
\alias{plot,SpatialLinesNetwork,ANY-method}
\title{Plot a SpatialLinesNetwork}
\usage{
\S4method{plot}{SpatialLinesNetwork,ANY}(x, component = "sl", ...)
}
\arguments{
\item{x}{... | /man/plot-SpatialLinesNetwork-ANY-method.Rd | permissive | rsbivand/stplanr | R | false | true | 1,262 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpatialLinesNetwork.R
\name{plot,SpatialLinesNetwork,ANY-method}
\alias{plot,SpatialLinesNetwork,ANY-method}
\title{Plot a SpatialLinesNetwork}
\usage{
\S4method{plot}{SpatialLinesNetwork,ANY}(x, component = "sl", ...)
}
\arguments{
\item{x}{... |
require tk
require tk/frame
require tk/composite
require tk/menuspec
#@include(menubar/TkMenubar)
| /refm/api/src/tk/menubar.rd | no_license | MasashiFukuzawa/doctree | R | false | false | 98 | rd | require tk
require tk/frame
require tk/composite
require tk/menuspec
#@include(menubar/TkMenubar)
|
# Fingerprinting worker script - running single chip enrichment option
# Delay allows time to monitor process starting up
print("preparing for script launch, 5s synch delay")
Sys.sleep(5)
# Read the genelist in
genelist <- sampleset[[11]];
total <- length(genelist)
# load contents of directory once
# this used to be ... | /Fingerprint running scripts/TF_sq_parallel/TF_parallel_k.R | no_license | hidelab/database-fingerprint-scripts | R | false | false | 1,110 | r | # Fingerprinting worker script - running single chip enrichment option
# Delay allows time to monitor process starting up
print("preparing for script launch, 5s synch delay")
Sys.sleep(5)
# Read the genelist in
genelist <- sampleset[[11]];
total <- length(genelist)
# load contents of directory once
# this used to be ... |
#' Estimate product dimensions based on shipping LxWxH for recent single-item orders
#' @param start_date first day of data (Date/scalar)
#' @param end_date last day of data (Date/scalar)
#' @importFrom magrittr "%>%"
#' @export
ss_get_single_item_shipping_info <- function(start_date = Sys.Date() - 7, end_date = Sys.Da... | /R/ss_get_single_item_shipping_info.R | no_license | anthonypileggi/shipstationr | R | false | false | 1,861 | r | #' Estimate product dimensions based on shipping LxWxH for recent single-item orders
#' @param start_date first day of data (Date/scalar)
#' @param end_date last day of data (Date/scalar)
#' @importFrom magrittr "%>%"
#' @export
ss_get_single_item_shipping_info <- function(start_date = Sys.Date() - 7, end_date = Sys.Da... |
# %%
library("bamlss")
library("dplyr")
# %%
# %%
#Daten zum Trainieren
load(file.path(".", "data", "finaldf.Rda"))
# %%
# %%
DOWN_SAMPLE <- FALSE
DOWN_SAMPLE_SIZE <- 1000000
START_YEAR <- 1960
END_YEAR <- 2013
NR_CORES_BAMLSS <- 16
# %%
# %%
train_df <- subset(finaldf, (years >= START_YEAR) & (years <= END_YEAR))
... | /spatio_temporal_model/spattempmodel_1_train.R | permissive | Falke96/extreme_precipitation_austria | R | false | false | 1,263 | r | # %%
library("bamlss")
library("dplyr")
# %%
# %%
#Daten zum Trainieren
load(file.path(".", "data", "finaldf.Rda"))
# %%
# %%
DOWN_SAMPLE <- FALSE
DOWN_SAMPLE_SIZE <- 1000000
START_YEAR <- 1960
END_YEAR <- 2013
NR_CORES_BAMLSS <- 16
# %%
# %%
train_df <- subset(finaldf, (years >= START_YEAR) & (years <= END_YEAR))
... |
library("wordnet")
library("koRpus")
#Get list of antonyms from wordnet
antonyms<- function(x){
filter <- getTermFilter("ExactMatchFilter", x, TRUE)
terms <- getIndexTerms("ADJECTIVE", 5, filter)
if (is.null(terms)){
return(NULL)
}
synsets <- getSynsets(terms[[1]])
related <- tryCatch(
... | /RModels/MaxEnt/semanticAnalysis.R | no_license | sunlingyu2931/Twitter-Sentiment-Analysis | R | false | false | 6,894 | r | library("wordnet")
library("koRpus")
#Get list of antonyms from wordnet
antonyms<- function(x){
filter <- getTermFilter("ExactMatchFilter", x, TRUE)
terms <- getIndexTerms("ADJECTIVE", 5, filter)
if (is.null(terms)){
return(NULL)
}
synsets <- getSynsets(terms[[1]])
related <- tryCatch(
... |
server.R
library(shiny)
server <- function(input, output) {
# Return the requested dataset ----
datasetInput <- reactive({
switch(input$dataset,
"data" = data)
})
# Show the first "n" observations ----
output$view <- renderTable({
head(datasetInput(), n = input$obs)
... | /server.R | no_license | jeffbecr/Retsful | R | false | false | 832 | r | server.R
library(shiny)
server <- function(input, output) {
# Return the requested dataset ----
datasetInput <- reactive({
switch(input$dataset,
"data" = data)
})
# Show the first "n" observations ----
output$view <- renderTable({
head(datasetInput(), n = input$obs)
... |
library(readxl)
DSA_5970_Data <- read_excel("~/05Homework/DSA 5970 Data.xlsx")
#print summary stats of relevant variables. If I ask for summary stats of the full dataset,
#it gets hard to read because the data set includes reference columns for cleaning purposes.
View(DSA_5970_Data)
summary(DSA_5970_Data$GRI2015)
sd(... | /FinalProjectNash/FinalProject_Nash.R | permissive | NashMBeth/DScourseS18 | R | false | false | 2,564 | r | library(readxl)
DSA_5970_Data <- read_excel("~/05Homework/DSA 5970 Data.xlsx")
#print summary stats of relevant variables. If I ask for summary stats of the full dataset,
#it gets hard to read because the data set includes reference columns for cleaning purposes.
View(DSA_5970_Data)
summary(DSA_5970_Data$GRI2015)
sd(... |
# Covariate Server Code
##########
##_CRCL_##
##########
# Add crcl reactive text output
crcl <- ((140 - input$age)*input$wt)/(input$secr*0.815)
if (input$sex == 0) crcl <- ((140 - input$age)*input$wt)/(input$secr*0.815)*0.85
paste0("Creatinine clearance = ", signif(crcl, digits = 3), " mL/min")
# ----... | /paganz17_workshop/skel_deSolve_app/pieces.R | no_license | jhhughes256/shinyapps | R | false | false | 2,779 | r | # Covariate Server Code
##########
##_CRCL_##
##########
# Add crcl reactive text output
crcl <- ((140 - input$age)*input$wt)/(input$secr*0.815)
if (input$sex == 0) crcl <- ((140 - input$age)*input$wt)/(input$secr*0.815)*0.85
paste0("Creatinine clearance = ", signif(crcl, digits = 3), " mL/min")
# ----... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.