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/account.R
\name{get_lambda_account}
\alias{get_lambda_account}
\title{AWS Lambda Account Settings}
\usage{
get_lambda_account(...)
}
\arguments{
\item{\dots}{Additional arguments passed to \code{\link{lambdaHTTP}}.}
}
\value{
A li... | /man/get_lambda_account.Rd | no_license | cran/aws.lambda | R | false | true | 419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/account.R
\name{get_lambda_account}
\alias{get_lambda_account}
\title{AWS Lambda Account Settings}
\usage{
get_lambda_account(...)
}
\arguments{
\item{\dots}{Additional arguments passed to \code{\link{lambdaHTTP}}.}
}
\value{
A li... |
# This function calculates heights of trees from the angle of
# elevation and the distance from the base using triginometric
# formula height = distance * tan(radians)
#
# ARGUMENTS:
# degrees The angle of elevation
# distance The distance from base
#
# OUTPUT:
# The height of the tree, same units as "distance"
Tree... | /Week3/Code/TreeHeight.R | no_license | OliverTarrant17/CMEECourseWork | R | false | false | 823 | r | # This function calculates heights of trees from the angle of
# elevation and the distance from the base using triginometric
# formula height = distance * tan(radians)
#
# ARGUMENTS:
# degrees The angle of elevation
# distance The distance from base
#
# OUTPUT:
# The height of the tree, same units as "distance"
Tree... |
library(nlme)
library(broom.mixed)
library(tidyverse)
# Preparing data ------
sapply(list.files("functions", full.names = TRUE, recursive = TRUE), source)
DATA_DIR <- "E:/OneDrive/NUDZ/projects/HCENAT/Data/"
COMPONENT_TYPE <- "filtered"
RELATIVE_DIR <- "."
source("scripts/load-data.R")
df_all <- merge(df_hrfs, df_fmr... | /scripts/manuscript-analyses.R | no_license | hejtmy/hcenat-fmri | R | false | false | 6,939 | r | library(nlme)
library(broom.mixed)
library(tidyverse)
# Preparing data ------
sapply(list.files("functions", full.names = TRUE, recursive = TRUE), source)
DATA_DIR <- "E:/OneDrive/NUDZ/projects/HCENAT/Data/"
COMPONENT_TYPE <- "filtered"
RELATIVE_DIR <- "."
source("scripts/load-data.R")
df_all <- merge(df_hrfs, df_fmr... |
#General utilities - not exported
#' @import stats
#' @import utils
#' @import matrixStats
#Strange errors were reported on solaris-sparc, this attempts to avoid them
safe.solve <- function(a, b) {
if (missing(b)) {
try.result <- try(x <- solve(a))
} else {
try.result <- try(x <- solve(a, b))
}
if (inh... | /R/GeneralUtilities.R | no_license | mindis/ltmle | R | false | false | 3,568 | r | #General utilities - not exported
#' @import stats
#' @import utils
#' @import matrixStats
#Strange errors were reported on solaris-sparc, this attempts to avoid them
safe.solve <- function(a, b) {
if (missing(b)) {
try.result <- try(x <- solve(a))
} else {
try.result <- try(x <- solve(a, b))
}
if (inh... |
# Rename columns
# Set library
library(readr)
library(dplyr)
# Set working directory
setwd('Y:/database')
# Read in csv files
cap_list <- read_csv("cap_list.csv")
pra <- read_csv("pra.csv")
spec_ops <- read_csv("spec_ops.csv")
utilization <- read_csv("utilization.csv")
client_track <- read_csv("client_track.csv")
#... | /rename_csv_col_name.R | no_license | CamdenCoalitionOfHealthcareProviders/database | R | false | false | 12,440 | r | # Rename columns
# Set library
library(readr)
library(dplyr)
# Set working directory
setwd('Y:/database')
# Read in csv files
cap_list <- read_csv("cap_list.csv")
pra <- read_csv("pra.csv")
spec_ops <- read_csv("spec_ops.csv")
utilization <- read_csv("utilization.csv")
client_track <- read_csv("client_track.csv")
#... |
# Scipio
# Initialization of variables and initial empty dataframe
library(tibble)
library(rlang)
library(tidyverse)
library(RMariaDB)
# rm(list = ls())
Sys.setlocale('LC_ALL','UTF-8')
options(encoding = "UTF-8")
print( "Global 0 - About to connect - Server/Remote 1")
# Establish connection to Digital Ocean (remote) ... | /global.R | no_license | charlesgwbrewer1953/Scipio | R | false | false | 2,849 | r | # Scipio
# Initialization of variables and initial empty dataframe
library(tibble)
library(rlang)
library(tidyverse)
library(RMariaDB)
# rm(list = ls())
Sys.setlocale('LC_ALL','UTF-8')
options(encoding = "UTF-8")
print( "Global 0 - About to connect - Server/Remote 1")
# Establish connection to Digital Ocean (remote) ... |
#################################################################################
# Script for Session 1 of the course: Applied multivariate Statistics with R #
# by Ralf B. Schäfer #
# WS 2017/18 #
# The script describes simulation approaches for basic statistical methods #
# as well a... | /Code/Session_1.R | no_license | andschar/statistics_multi | R | false | false | 24,006 | r | #################################################################################
# Script for Session 1 of the course: Applied multivariate Statistics with R #
# by Ralf B. Schäfer #
# WS 2017/18 #
# The script describes simulation approaches for basic statistical methods #
# as well a... |
library(shiny)
ui <- fluidPage(
# Copy the line below to make a date selector
dateInput("date", label = h3("Date input"), value = "2014-01-01"),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
server <- function(input, output) {
# You can access the valu... | /02_Demos/02_UI/02_widgets/06_date_input.R | no_license | julomoppet/Formation_Shiny | R | false | false | 438 | r | library(shiny)
ui <- fluidPage(
# Copy the line below to make a date selector
dateInput("date", label = h3("Date input"), value = "2014-01-01"),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
server <- function(input, output) {
# You can access the valu... |
setwd('C:/Users/david/SharedCode/StimulationResponseTimingPython')
library('here')
library('ggplot2')
library('FSA')
library('rcompanion')
library("dplyr")
library('nortest')
library('onewaytests')
rootDir = here()
dataDir = here()
sidVec <- c('a1355e','3ada8b','822e26')
#sidVec <- c('a1355e')
savePlot = 0
figWidth... | /run_TOJ_stats.R | permissive | uwgridlab/StimulationResponseTimingPython | R | false | false | 3,654 | r | setwd('C:/Users/david/SharedCode/StimulationResponseTimingPython')
library('here')
library('ggplot2')
library('FSA')
library('rcompanion')
library("dplyr")
library('nortest')
library('onewaytests')
rootDir = here()
dataDir = here()
sidVec <- c('a1355e','3ada8b','822e26')
#sidVec <- c('a1355e')
savePlot = 0
figWidth... |
args = commandArgs(TRUE)
wd = args[1]
source("~/research/two_phase_mexy/simulation/CC2000_algorithm.R")
library(MASS)
NSIM = 1000
NJOB = 10
p_set = c(0.6, 1)
rho_set = c(0.3, 0.5)
sigma_set = c(0.5, 1)
n = 1000
n2 = 400
alpha = 0.3
beta = 0.4
gamma = 0.5
pX2 = 0.5
design_set = c("srs", "ssrs")
set... | /simulation/2X01/sim_CC2000.R | no_license | dragontaoran/proj_two_phase_mexy | R | false | false | 3,236 | r | args = commandArgs(TRUE)
wd = args[1]
source("~/research/two_phase_mexy/simulation/CC2000_algorithm.R")
library(MASS)
NSIM = 1000
NJOB = 10
p_set = c(0.6, 1)
rho_set = c(0.3, 0.5)
sigma_set = c(0.5, 1)
n = 1000
n2 = 400
alpha = 0.3
beta = 0.4
gamma = 0.5
pX2 = 0.5
design_set = c("srs", "ssrs")
set... |
# rescale variables between 0 and 1
range_0_1 <-
function(x) {
(x - min(x, na.rm = T)) / (max(x, na.rm = T) - min(x, na.rm = T)) * 1
}
# 01 CS index calculator---
index_calculator_cs <-
function(data) {
data %>%
gather(Species, abund, -Cod) %>%
group_by(Cod) %>%
mutate(N = sum(abund),... | /index_calculator_func.R | no_license | jatalah/AR_fish | R | false | false | 2,821 | r | # rescale variables between 0 and 1
range_0_1 <-
function(x) {
(x - min(x, na.rm = T)) / (max(x, na.rm = T) - min(x, na.rm = T)) * 1
}
# 01 CS index calculator---
index_calculator_cs <-
function(data) {
data %>%
gather(Species, abund, -Cod) %>%
group_by(Cod) %>%
mutate(N = sum(abund),... |
#Seção 03 - Sequências
######################### Sequências ###################################
#Incrementando de 1 em 1
seq(2,20)
#Incrementando de n em n a partir do parametro 3
seq(2,20,2)
seq(0,50,4)
seq(20,100,10)
c<-seq(20,100,10)
length(c)
######################### Sequências, Usando Repetições Parte 1 ###... | /#Seção 03 - Sequências/#Seção 03 - Sequências.R | no_license | LucianoTeixeiras/UdemyIniciandoComR | R | false | false | 1,129 | r | #Seção 03 - Sequências
######################### Sequências ###################################
#Incrementando de 1 em 1
seq(2,20)
#Incrementando de n em n a partir do parametro 3
seq(2,20,2)
seq(0,50,4)
seq(20,100,10)
c<-seq(20,100,10)
length(c)
######################### Sequências, Usando Repetições Parte 1 ###... |
hiernormalwide<-"
data{ #get the data set
int<lower=0> N; # number of exon level
int<lower=0> J; # number of gene level
int <lower=1,upper=J> gene[N]; #index of gene
int <lower=1,upper=N> exon[N]; #index of exon
vector[N] xij; #x at exon level
#vector[J] xj; #x at gene level
vector[N] yij; #y at exon level... | /DSCR/2016_spring/normal hierichical uniform prior on sigma.R | no_license | huixinxu/GenicIntolerance | R | false | false | 2,775 | r | hiernormalwide<-"
data{ #get the data set
int<lower=0> N; # number of exon level
int<lower=0> J; # number of gene level
int <lower=1,upper=J> gene[N]; #index of gene
int <lower=1,upper=N> exon[N]; #index of exon
vector[N] xij; #x at exon level
#vector[J] xj; #x at gene level
vector[N] yij; #y at exon level... |
context("bold_tax_name")
test_that("bold_tax_name returns the correct object", {
skip_on_cran()
vcr::use_cassette("bold_tax_name", {
test <- bold_tax_name(name = "Diplura")
})
expect_is(test, "data.frame")
expect_is(test$input, "character")
expect_is(test$taxid, "integer")
})
test_that("bold... | /tests/testthat/test-bold_tax_name.R | permissive | cran/bold | R | false | false | 4,056 | r | context("bold_tax_name")
test_that("bold_tax_name returns the correct object", {
skip_on_cran()
vcr::use_cassette("bold_tax_name", {
test <- bold_tax_name(name = "Diplura")
})
expect_is(test, "data.frame")
expect_is(test$input, "character")
expect_is(test$taxid, "integer")
})
test_that("bold... |
# This script runs the analysis for the Catch Ceiling Paper with the following management options:
# Ceilings AllIndicators 100%Fmsy
# Ceilings AllIndicators 75%Fmsy
# Ceilings NoIndicators 100%Fmsy
# Ceilings NoIndicators 75%Fmsy
# NoCeilings NoIndicators 100%Fmsy
... | /arhart/CatchCeilingPaper/CatchCeilingPaper_SimulationsScript.R | no_license | ahart1/ebfm_mp | R | false | false | 40,943 | r | # This script runs the analysis for the Catch Ceiling Paper with the following management options:
# Ceilings AllIndicators 100%Fmsy
# Ceilings AllIndicators 75%Fmsy
# Ceilings NoIndicators 100%Fmsy
# Ceilings NoIndicators 75%Fmsy
# NoCeilings NoIndicators 100%Fmsy
... |
#!/usr/bin/env Rscript
# This script generates brain mask for each subject in 4mm space
# and then creates the group brain mask
library(connectir)
###
# Setup
###
# Paths
basedir <- "/home2/data/Projects/CWAS/share/nki"
subinfo <- file.path(basedir, "subinfo")
roidir <- "/home2/data/Projects/CWAS/nki/rois"
# Scan ... | /nki/03_post-process/24_generate_mask_4mm.R | no_license | timesofbadri/cwas-paper | R | false | false | 1,898 | r | #!/usr/bin/env Rscript
# This script generates brain mask for each subject in 4mm space
# and then creates the group brain mask
library(connectir)
###
# Setup
###
# Paths
basedir <- "/home2/data/Projects/CWAS/share/nki"
subinfo <- file.path(basedir, "subinfo")
roidir <- "/home2/data/Projects/CWAS/nki/rois"
# Scan ... |
# experiment 4 - seeing what the deltaT output looks like
# =======================================================
# this is the variables file...
var.file = 'data/all-variables-exp4.xlsx'
# file = 7 # choose the type of weather file
fold = 1 # folder 1 is DSY, folder 2 is TRY
days.spread = 3
# put a for loop in fo... | /exp/exp4.R | no_license | michaelwoodguitar/weather-file-analysis | R | false | false | 3,878 | r | # experiment 4 - seeing what the deltaT output looks like
# =======================================================
# this is the variables file...
var.file = 'data/all-variables-exp4.xlsx'
# file = 7 # choose the type of weather file
fold = 1 # folder 1 is DSY, folder 2 is TRY
days.spread = 3
# put a for loop in fo... |
aracne.backend = function(x, estimator, whitelist, blacklist, complete,
debug = FALSE) {
# fix the whitelist and the blacklist to keep the C side simple.
nodes = names(x)
if (!is.null(blacklist)) {
# arcs must be blacklisted in both directions, so keep only
# the undirected ones.
blacklist = b... | /R/aracne.R | no_license | cran/bnlearn | R | false | false | 849 | r |
aracne.backend = function(x, estimator, whitelist, blacklist, complete,
debug = FALSE) {
# fix the whitelist and the blacklist to keep the C side simple.
nodes = names(x)
if (!is.null(blacklist)) {
# arcs must be blacklisted in both directions, so keep only
# the undirected ones.
blacklist = b... |
# sunagriAPI
#
# An instance of OpenSILEX WebService
#
# OpenAPI spec version: 3.3.0
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' Property Class
#'
#' @field rdfType
#' @field rdfTypeLabels
#' @field relation
#' @field relationLabels
#' @field value
#' @field valueLabels
#' @field do... | /R/Property.r | no_license | OpenSILEX/phis-ws-client-r-tool | R | false | false | 6,515 | r | # sunagriAPI
#
# An instance of OpenSILEX WebService
#
# OpenAPI spec version: 3.3.0
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' Property Class
#'
#' @field rdfType
#' @field rdfTypeLabels
#' @field relation
#' @field relationLabels
#' @field value
#' @field valueLabels
#' @field do... |
#min-max normalize() function
nomrlaize <- function(x) {
return((x - min(x)) / (max(x) - min(x)))
} | /normalize.R | no_license | Writers-Block-17/R-Scripts | R | false | false | 104 | r | #min-max normalize() function
nomrlaize <- function(x) {
return((x - min(x)) / (max(x) - min(x)))
} |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# data wrangling
library(stringr)
library(lubridate)
library(tidyr)
library(reshape2)
library(zoo)
library(json... | /app.R | no_license | ruxandra-valcu/medie-covid-judete | R | false | false | 7,398 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# data wrangling
library(stringr)
library(lubridate)
library(tidyr)
library(reshape2)
library(zoo)
library(json... |
# For this assignment, we will visualize social networking data using anonymized data from Facebook
users <- read.csv("users.csv")
edges <- read.csv("edges.csv")
str(edges)
str(users)
# In our dataset, what is the average number of friends per user?
# number of edges times two divided by number of users
146*2/... | /Visualisations/social_network_undirected_graphs.R | no_license | SKosztolanyi/Modeling_with-R | R | false | false | 2,644 | r | # For this assignment, we will visualize social networking data using anonymized data from Facebook
users <- read.csv("users.csv")
edges <- read.csv("edges.csv")
str(edges)
str(users)
# In our dataset, what is the average number of friends per user?
# number of edges times two divided by number of users
146*2/... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 7778
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 7777
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 7777
c
c Input Parameter (command line, fil... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt19_125_214/stmt19_125_214.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 713 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 7778
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 7777
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 7777
c
c Input Parameter (command line, fil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphics.R
\name{distributionIndividualsCovariate}
\alias{distributionIndividualsCovariate}
\title{Distribution of individuals according to the covariate}
\usage{
distributionIndividualsCovariate(data, covariate, selectedGenes, m, d)
}
\argum... | /man/distributionIndividualsCovariate.Rd | permissive | carmen-maria-hernandez/SuCoNets | R | false | true | 667 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphics.R
\name{distributionIndividualsCovariate}
\alias{distributionIndividualsCovariate}
\title{Distribution of individuals according to the covariate}
\usage{
distributionIndividualsCovariate(data, covariate, selectedGenes, m, d)
}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_extract.R
\name{p_extract}
\alias{p_extract}
\title{Convert String With Commas Into Elements}
\usage{
p_extract(x, use.names = TRUE)
}
\arguments{
\item{x}{A character string of packages separated by commas; for example
the strings returned... | /man/p_extract.Rd | no_license | Dasonk/pacman | R | false | true | 920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_extract.R
\name{p_extract}
\alias{p_extract}
\title{Convert String With Commas Into Elements}
\usage{
p_extract(x, use.names = TRUE)
}
\arguments{
\item{x}{A character string of packages separated by commas; for example
the strings returned... |
javaHandlerGenerator <-
#
# Closure generator that creates an object to be passed as the
# database mechanism for storing foreign references, and also
# perform the dispatching of the calls to these references.
#
function()
{
# used to compute a unique identifier
total <- 0
references <- list()
createRef... | /R/javaHandler.R | no_license | cran/Java | R | false | false | 2,943 | r | javaHandlerGenerator <-
#
# Closure generator that creates an object to be passed as the
# database mechanism for storing foreign references, and also
# perform the dispatching of the calls to these references.
#
function()
{
# used to compute a unique identifier
total <- 0
references <- list()
createRef... |
#### Lukas Huber
#### 2015
#### Example script how to run an extraction
url <- "board.netdoktor.de"
thematics <- netDoktorScraper(url)
df <- data.frame(matrix(unlist(thematics), nrow=2, byrow=T), stringsAsFactors = F)
## Todo implement control structure and pack it into a function
## Loop over thematics and get Threa... | /runExtraction.R | no_license | g4challenge/medicalmining | R | false | false | 1,256 | r | #### Lukas Huber
#### 2015
#### Example script how to run an extraction
url <- "board.netdoktor.de"
thematics <- netDoktorScraper(url)
df <- data.frame(matrix(unlist(thematics), nrow=2, byrow=T), stringsAsFactors = F)
## Todo implement control structure and pack it into a function
## Loop over thematics and get Threa... |
#Create the Data directory
if(!file.exists("./G&C_Data"))
dir.create("./G&C_Data")
#Download and Unzip files
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(url, destfile="./G&C_Data/Dataset.zip", method="curl")
unzip(zipfile="./G&C_Data/Datase... | /run_analysis.R | no_license | Narges-Shah/Getting-and-Cleaning-Data | R | false | false | 2,737 | r | #Create the Data directory
if(!file.exists("./G&C_Data"))
dir.create("./G&C_Data")
#Download and Unzip files
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(url, destfile="./G&C_Data/Dataset.zip", method="curl")
unzip(zipfile="./G&C_Data/Datase... |
# The bedr package is copyright (c) 2014 Ontario Institute for Cancer Research (OICR)
# This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL
# (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICE... | /R/read.vcf.R | no_license | cran/bedr | R | false | false | 11,486 | r | # The bedr package is copyright (c) 2014 Ontario Institute for Cancer Research (OICR)
# This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL
# (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICE... |
#' @title localIGE.inner
#'
#' @description local intergenerational elasticities
#' @param formla a formula y ~ treatment
#' @param xformla one sided formula for x variables to include, e.g. ~x1 + x2
#' @param data the data.frame where y, t, and x are
#' @param t conditional at a value T=t (i.e. should be scalar)
#' @... | /R/alige.R | no_license | cran/ccfa | R | false | false | 8,584 | r |
#' @title localIGE.inner
#'
#' @description local intergenerational elasticities
#' @param formla a formula y ~ treatment
#' @param xformla one sided formula for x variables to include, e.g. ~x1 + x2
#' @param data the data.frame where y, t, and x are
#' @param t conditional at a value T=t (i.e. should be scalar)
#' @... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmodel.R
\name{r.spline}
\alias{r.spline}
\title{r.spline}
\usage{
r.spline(y, x = NULL, scale = 1, resolution = 100, center = F,
norm = F)
}
\description{
r.spline
}
| /man/r.spline.Rd | no_license | rocalabern/rmodel | R | false | true | 248 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmodel.R
\name{r.spline}
\alias{r.spline}
\title{r.spline}
\usage{
r.spline(y, x = NULL, scale = 1, resolution = 100, center = F,
norm = F)
}
\description{
r.spline
}
|
#plot 3
par(mar=c(4,4,1,1))
plot(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"), type="n", df$Sub_metering_1,xlab = "", ylab="Energy sub metering")
points(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"),df$Sub_metering_1,type="l")
points(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"),df$Sub_metering_2,type="l",col="red")
poin... | /plot3.R | no_license | golovalastic/ExData_Plotting1 | R | false | false | 567 | r | #plot 3
par(mar=c(4,4,1,1))
plot(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"), type="n", df$Sub_metering_1,xlab = "", ylab="Energy sub metering")
points(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"),df$Sub_metering_1,type="l")
points(strptime(df$Date_Time,"%Y-%m-%d %H:%M:%S"),df$Sub_metering_2,type="l",col="red")
poin... |
################################################################################
# Updated version of the R code for the analysis in:
#
# "Modeling exposure-lag-response associations with distributed lag
# non-linear models"
# Antonio Gasparrini
# Statistics in Medicine - 2014
# http://www.ag-myresearch.co... | /08.simres.R | no_license | gasparrini/2014_gasparrini_StatMed_Rcodedata | R | false | false | 7,373 | r | ################################################################################
# Updated version of the R code for the analysis in:
#
# "Modeling exposure-lag-response associations with distributed lag
# non-linear models"
# Antonio Gasparrini
# Statistics in Medicine - 2014
# http://www.ag-myresearch.co... |
# Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 2. All along your project
## 2.1 Add modules
##
golem::add_module(name = "my_first_module") # Name of the module
golem::add_module( name = "my_other_module") # Name of the module
## 2.2 Add dependencies
usethis::use_... | /dev/02_dev.R | no_license | jimsforks/cleanser | R | false | false | 904 | r | # Building a Prod-Ready, Robust Shiny Application.
#
# Each step is optional.
#
# 2. All along your project
## 2.1 Add modules
##
golem::add_module(name = "my_first_module") # Name of the module
golem::add_module( name = "my_other_module") # Name of the module
## 2.2 Add dependencies
usethis::use_... |
#' Extract comparision labels from a MSstats group comparision result
#' @description Accessor function for the ComparisonResult$Label component of objects returned by \code{\link[MSstats]{groupComparison}}
#' @details \code{\link[MSstats]{groupComparison}} returns a complex, but primitive object. Accordingly, there ar... | /R/get.comparision.labels.R | permissive | tobiasko/posprot | R | false | false | 768 | r | #' Extract comparision labels from a MSstats group comparision result
#' @description Accessor function for the ComparisonResult$Label component of objects returned by \code{\link[MSstats]{groupComparison}}
#' @details \code{\link[MSstats]{groupComparison}} returns a complex, but primitive object. Accordingly, there ar... |
fin <- read.csv(file.choose())
fin <- read.csv(file.choose(),na.strings = c(""))
# fin <- read.csv("Future-500.csv")
#Basic Explorations
head(fin,10)
tail(fin,10)
str(fin)
summary(fin)
#Changing nonFactor to Factor
fin$ID<-factor(fin$ID)
summary(fin)
str(fin)
fin$Inception<-factor(fin$Inception)
su... | /Data Preparation.R | no_license | ajisomaraj/R-Study | R | false | false | 4,953 | r | fin <- read.csv(file.choose())
fin <- read.csv(file.choose(),na.strings = c(""))
# fin <- read.csv("Future-500.csv")
#Basic Explorations
head(fin,10)
tail(fin,10)
str(fin)
summary(fin)
#Changing nonFactor to Factor
fin$ID<-factor(fin$ID)
summary(fin)
str(fin)
fin$Inception<-factor(fin$Inception)
su... |
#' \code{tandem_get_data} extract required data(modification, peptide sequence, mass
#' to charge) from rtandem output file.
#'
#' transform the rtandem output file to a data variables that can be accepted by
#' PTM_finderfunction.
#' @param result a output file from rtandem package that contain mass to charge,
#' ... | /R/msptm.R | permissive | faye-yang/MSPTM | R | false | false | 3,322 | r |
#' \code{tandem_get_data} extract required data(modification, peptide sequence, mass
#' to charge) from rtandem output file.
#'
#' transform the rtandem output file to a data variables that can be accepted by
#' PTM_finderfunction.
#' @param result a output file from rtandem package that contain mass to charge,
#' ... |
# Generic query wrapper to keep the MySQL nastiness out of the code.
dbquery <- function(db, query, mysqlhost="mysql.external.legion.ucl.ac.uk", mysqlport = 3306) {
# Pull in the RMySQL library and my tool for reading Python ini files.
suppressPackageStartupMessages((library(RMySQL)))
source("r/rini.r")
# Get aut... | /r/dbtools.r | permissive | owainkenwayucl/stats-plus-plus | R | false | false | 1,370 | r | # Generic query wrapper to keep the MySQL nastiness out of the code.
dbquery <- function(db, query, mysqlhost="mysql.external.legion.ucl.ac.uk", mysqlport = 3306) {
# Pull in the RMySQL library and my tool for reading Python ini files.
suppressPackageStartupMessages((library(RMySQL)))
source("r/rini.r")
# Get aut... |
#' ---
#' title: "Bayesian workflow book - Birthdays"
#' author: "Gelman, Vehtari, Simpson, et al"
#' date: "First version 2020-12-28. Last modified `r format(Sys.Date())`."
#' output:
#' html_document:
#' theme: readable
#' toc: true
#' toc_depth: 3
#' toc_float: true
#' code_download: true
#' --... | /Birthdays/birthdays.R | no_license | alevaracca/casestudies | R | false | false | 87,054 | r | #' ---
#' title: "Bayesian workflow book - Birthdays"
#' author: "Gelman, Vehtari, Simpson, et al"
#' date: "First version 2020-12-28. Last modified `r format(Sys.Date())`."
#' output:
#' html_document:
#' theme: readable
#' toc: true
#' toc_depth: 3
#' toc_float: true
#' code_download: true
#' --... |
#Fetching the data
titanic.train <- read.csv(file = "train.csv",stringsAsFactors = FALSE, header = TRUE)
titanic.test <- read.csv(file = "test.csv",stringsAsFactors = FALSE, header = TRUE)
#survived~ Pclass+Sex+Age+Sibsp+Parch+Fare+Embarked
#Adding new col for seperating after data cleaning
titanic.test$newcol <... | /TitanicKaggle.R | no_license | itskdv/ds | R | false | false | 2,753 | r | #Fetching the data
titanic.train <- read.csv(file = "train.csv",stringsAsFactors = FALSE, header = TRUE)
titanic.test <- read.csv(file = "test.csv",stringsAsFactors = FALSE, header = TRUE)
#survived~ Pclass+Sex+Age+Sibsp+Parch+Fare+Embarked
#Adding new col for seperating after data cleaning
titanic.test$newcol <... |
#' @title Write a CSV file to Hive
#'
#' @details
#' Uploads a CSV file and uploads it to Hive. This assumes that when you log into
#' Hive/Hadoop, the login is similar to `XXXXX@edge.hadoop.co.com``
#'
#' @param csv_file path to CSV file to upload, if only the name of file is provided,
#' then it is assumed the file ... | /R/write_csv_to_hive.R | permissive | Fredo-XVII/RToolShed | R | false | false | 3,199 | r | #' @title Write a CSV file to Hive
#'
#' @details
#' Uploads a CSV file and uploads it to Hive. This assumes that when you log into
#' Hive/Hadoop, the login is similar to `XXXXX@edge.hadoop.co.com``
#'
#' @param csv_file path to CSV file to upload, if only the name of file is provided,
#' then it is assumed the file ... |
library(readxl)
library(dplyr)
library(tidyr)
library(purrr)
library(lubridate)
input <- "F:/Data/PD 2021 Wk 4 Input.xlsx"
final <- input %>%
excel_sheets() %>% .[grepl('[^Targets]',.)] %>%
set_names() %>%
map_df(
~ read_excel(path = input, sheet = .x,),
.id = 'Store') %>%
mutate('Quarter' = quarter(`D... | /2021/2021W04/preppindataW04.R | no_license | ArseneXie/Preppindata | R | false | false | 926 | r | library(readxl)
library(dplyr)
library(tidyr)
library(purrr)
library(lubridate)
input <- "F:/Data/PD 2021 Wk 4 Input.xlsx"
final <- input %>%
excel_sheets() %>% .[grepl('[^Targets]',.)] %>%
set_names() %>%
map_df(
~ read_excel(path = input, sheet = .x,),
.id = 'Store') %>%
mutate('Quarter' = quarter(`D... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetSslProxies.get}
\alias{targetSslProxies.get}
\title{Returns the specified TargetSslProxy resource. Get a list of available target SSL proxies by making a list() request.}
\usage{
targetSslProxies.get(project, t... | /googlecomputev1.auto/man/targetSslProxies.get.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,182 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{targetSslProxies.get}
\alias{targetSslProxies.get}
\title{Returns the specified TargetSslProxy resource. Get a list of available target SSL proxies by making a list() request.}
\usage{
targetSslProxies.get(project, t... |
#' @title sentometrics: An Integrated Framework for Textual Sentiment Time Series Aggregation and Prediction
#'
#' @description The \pkg{sentometrics} package is an integrated framework for textual sentiment time series
#' aggregation and prediction. It accounts for the intrinsic challenge that, for a given text, sent... | /R/sentometrics.R | no_license | kbenoit/sentometrics | R | false | false | 9,113 | r |
#' @title sentometrics: An Integrated Framework for Textual Sentiment Time Series Aggregation and Prediction
#'
#' @description The \pkg{sentometrics} package is an integrated framework for textual sentiment time series
#' aggregation and prediction. It accounts for the intrinsic challenge that, for a given text, sent... |
# Load results
setwd("/home/npetraco/codes/R/CRFutil/tests/regression_tests/hojsgaard_model_tests/tesseract_model/")
load(file = "tesseract_mle_model.dist.RData")
mle.info <- joint.dist.info.ordered
load(file = "tesseract_bayes_loglin_model.dist.RData")
llm.info <- joint.dist.info.ordered
load(file = "tesseract_tru... | /tests/regression_tests/hojsgaard_model_tests/tesseract_model/tesseract_dist-fit-compare.R | no_license | npetraco/CRFutil | R | false | false | 1,463 | r |
# Load results
setwd("/home/npetraco/codes/R/CRFutil/tests/regression_tests/hojsgaard_model_tests/tesseract_model/")
load(file = "tesseract_mle_model.dist.RData")
mle.info <- joint.dist.info.ordered
load(file = "tesseract_bayes_loglin_model.dist.RData")
llm.info <- joint.dist.info.ordered
load(file = "tesseract_tru... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stemmer_tala_porter.R
\docType{class}
\name{stemmer_tala_porter}
\alias{stemmer_tala_porter}
\title{Stemmer Tala Porter - implementation of Tala's Porter Stemmer}
\format{An \code{\link{R6Class}} object.}
\usage{
stemmer_tala_porter
}
\value{... | /man/stemmer_tala_porter.Rd | no_license | akhlul/kstemind | R | false | true | 860 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stemmer_tala_porter.R
\docType{class}
\name{stemmer_tala_porter}
\alias{stemmer_tala_porter}
\title{Stemmer Tala Porter - implementation of Tala's Porter Stemmer}
\format{An \code{\link{R6Class}} object.}
\usage{
stemmer_tala_porter
}
\value{... |
plot1 <- function () {
## Function makes a histogram of household global minute-averaged
## active power (in kilowatt, kW) data over a two-day period,
## Feb 1, 2007 and Feb 2, 2007
## Checks if the dataset has been downloaded and unzipped in the
## power dire... | /plot1.R | no_license | skimskim/ExData_Plotting1 | R | false | false | 1,834 | r | plot1 <- function () {
## Function makes a histogram of household global minute-averaged
## active power (in kilowatt, kW) data over a two-day period,
## Feb 1, 2007 and Feb 2, 2007
## Checks if the dataset has been downloaded and unzipped in the
## power dire... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diem.R
\name{diem}
\alias{diem}
\title{Run DIEM pipeline}
\usage{
diem(sce, top_n = 10000, min_counts = 100, min_genes = 100,
fix_debris = NULL, cpm_thresh = 10, cluster_n = 1000,
order_by = "gene", use_var = TRUE, n_var = 2000, lss = 0.3... | /man/diem.Rd | no_license | cran/diem | R | false | true | 6,866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diem.R
\name{diem}
\alias{diem}
\title{Run DIEM pipeline}
\usage{
diem(sce, top_n = 10000, min_counts = 100, min_genes = 100,
fix_debris = NULL, cpm_thresh = 10, cluster_n = 1000,
order_by = "gene", use_var = TRUE, n_var = 2000, lss = 0.3... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/element.R
\name{select_window}
\alias{select_window}
\title{Select browser's pop-up window by window titles}
\usage{
select_window(title)
}
\arguments{
\item{title}{title of the window}
}
\description{
Select browser's pop-up window by window... | /man/select_window.Rd | no_license | koheiw/RSeleniumScraper | R | false | true | 330 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/element.R
\name{select_window}
\alias{select_window}
\title{Select browser's pop-up window by window titles}
\usage{
select_window(title)
}
\arguments{
\item{title}{title of the window}
}
\description{
Select browser's pop-up window by window... |
############Read file##############
getwd()
setwd("D:/Lab/Rcode/Hammer")
library(data.table)
library(dplyr)
Amazon=fread('./data/Amazon_reviews.csv',stringsAsFactors=FALSE)
############Data clear###############
##Date:
Amazon$artDate=Amazon$artDate %>% as.Date
Amazon$Year=year(Amazon$artDate)
Amazon$Month=format(Amazo... | /Amazon_discuss_chart.R | no_license | yuchiawang/Hammer | R | false | false | 9,467 | r | ############Read file##############
getwd()
setwd("D:/Lab/Rcode/Hammer")
library(data.table)
library(dplyr)
Amazon=fread('./data/Amazon_reviews.csv',stringsAsFactors=FALSE)
############Data clear###############
##Date:
Amazon$artDate=Amazon$artDate %>% as.Date
Amazon$Year=year(Amazon$artDate)
Amazon$Month=format(Amazo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nscrabble.R
\name{nscrabble}
\alias{nscrabble}
\title{count the Scrabble letter values of text}
\usage{
nscrabble(x, FUN = sum)
}
\arguments{
\item{x}{a character vector}
\item{FUN}{function to be applied to the character values in the text;... | /man/nscrabble.Rd | no_license | leeper/quanteda | R | false | true | 920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nscrabble.R
\name{nscrabble}
\alias{nscrabble}
\title{count the Scrabble letter values of text}
\usage{
nscrabble(x, FUN = sum)
}
\arguments{
\item{x}{a character vector}
\item{FUN}{function to be applied to the character values in the text;... |
\name{10.Other}
\alias{10.Other}
\title{Other Functions}
\description{
This page describes some functions not covered in the previous numbered pages, so far only \code{\link{blockDiag}} and \code{\link{poolVar}} which are not used in the package yet but are part of the development of methods to handle technical a... | /man/10Other.Rd | no_license | ugerlevik/r-bioc-limma | R | false | false | 400 | rd | \name{10.Other}
\alias{10.Other}
\title{Other Functions}
\description{
This page describes some functions not covered in the previous numbered pages, so far only \code{\link{blockDiag}} and \code{\link{poolVar}} which are not used in the package yet but are part of the development of methods to handle technical a... |
; This is the main MegaGlest localization file (INI format)
;
; Your contributions are welcome. Please ensure you agree to the terms of the
; contributors license (CC-BY-SA 3.0 Unported). Please also read this page in
; its entirety before contributing: http://translate.megaglest.org
3dArt=Arte 3D
3dAnd2dArt=Arte 3D y... | /data/glest_game/data/lang/spanish.lng | no_license | MuwuM/vegaglest-techtree | R | false | false | 24,422 | lng | ; This is the main MegaGlest localization file (INI format)
;
; Your contributions are welcome. Please ensure you agree to the terms of the
; contributors license (CC-BY-SA 3.0 Unported). Please also read this page in
; its entirety before contributing: http://translate.megaglest.org
3dArt=Arte 3D
3dAnd2dArt=Arte 3D y... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
ui <- function(){
bootstrapPage('',
tags$style(type = 'text/css',
HTM... | /R/ui.R | permissive | stan2019/PhenoSpace | R | false | false | 19,628 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
ui <- function(){
bootstrapPage('',
tags$style(type = 'text/css',
HTM... |
## Matrix Inversion function for COURSERA - R Programming - WEEK 3 - Assignment2
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
... | /cachematrix.R | no_license | mcredou/ProgrammingAssignment2 | R | false | false | 1,143 | r | ## Matrix Inversion function for COURSERA - R Programming - WEEK 3 - Assignment2
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
... |
library(CEGO)
### Name: distancePermutationR
### Title: R-Distance for Permutations
### Aliases: distancePermutationR
### ** Examples
x <- 1:5
y <- c(1,2,3,5,4)
distancePermutationR(x,y)
p <- replicate(10,sample(1:5),simplify=FALSE)
distanceMatrix(p,distancePermutationR)
| /data/genthat_extracted_code/CEGO/examples/distancePermutationR.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 280 | r | library(CEGO)
### Name: distancePermutationR
### Title: R-Distance for Permutations
### Aliases: distancePermutationR
### ** Examples
x <- 1:5
y <- c(1,2,3,5,4)
distancePermutationR(x,y)
p <- replicate(10,sample(1:5),simplify=FALSE)
distanceMatrix(p,distancePermutationR)
|
library(pheatmap)
library(gplots)
library(pracma)
library(gridExtra)
library(tidyverse)
source("R/cargaarchivos.R")
getwd()
#IMPORTANTE: algunos de los valores seleccionados para el análisis de estos espectros fueron obtenidos del archivo explosivos.py,
#fueron determinados por el que realizó las mediciones a su mejor... | /R/espectros.R | no_license | federicochecozzi/espectros-r | R | false | false | 13,854 | r | library(pheatmap)
library(gplots)
library(pracma)
library(gridExtra)
library(tidyverse)
source("R/cargaarchivos.R")
getwd()
#IMPORTANTE: algunos de los valores seleccionados para el análisis de estos espectros fueron obtenidos del archivo explosivos.py,
#fueron determinados por el que realizó las mediciones a su mejor... |
cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(scales... | /analysis/_fl/0004_ue_and_stocks.R | no_license | nmaggiulli/of-dollars-and-data | R | false | false | 8,491 | r | cat("\014") # Clear your console
rm(list = ls()) #clear your environment
########################## Load in header file ######################## #
setwd("~/git/of_dollars_and_data")
source(file.path(paste0(getwd(),"/header.R")))
########################## Load in Libraries ########################## #
library(scales... |
#Plot 4 -- Uses global environment and WD set by user in plot3.R
#Path to PNG Figures
path <- paste(getwd(),"/figure/", sep = "")
## PLOT 1 EXAMPLE
png(paste(path, filename = 'plot4.png', sep ="" ))
#Breaks plots into four quarters
par(mfrow=c(2,2))
#Loads plot inputs from global environment
#Upper Left Plot -- Ac... | /plot4.R | no_license | ZeccaLehn/ExData_Plotting1 | R | false | false | 1,201 | r | #Plot 4 -- Uses global environment and WD set by user in plot3.R
#Path to PNG Figures
path <- paste(getwd(),"/figure/", sep = "")
## PLOT 1 EXAMPLE
png(paste(path, filename = 'plot4.png', sep ="" ))
#Breaks plots into four quarters
par(mfrow=c(2,2))
#Loads plot inputs from global environment
#Upper Left Plot -- Ac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_demographics_race1980standard.R
\name{build_demographics_race1980standard}
\alias{build_demographics_race1980standard}
\title{Builds a synthetic variable for education attainment}
\usage{
build_demographics_race1980standard(Data)
}
\des... | /man/build_demographics_race1980standard.Rd | no_license | arthurwelle/harmonizePNAD | R | false | true | 385 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_demographics_race1980standard.R
\name{build_demographics_race1980standard}
\alias{build_demographics_race1980standard}
\title{Builds a synthetic variable for education attainment}
\usage{
build_demographics_race1980standard(Data)
}
\des... |
library(Rcpp)
library(inline)
# library(bayesSurv)
# source('r/utils/simDataFuns.r')
# source('prediction/r/utils/pred_plot_funs.r')
# build c matrix
cppFunction('
NumericMatrix build_c(double rho, double tau, double eta,
NumericMatrix d_inter, NumericMatrix lag) {
int T=lag.nrow(), N=d... | /r/utils/pred_helper_funs.r | permissive | PalEON-Project/STEPPS-prediction-Ecology | R | false | false | 84,644 | r | library(Rcpp)
library(inline)
# library(bayesSurv)
# source('r/utils/simDataFuns.r')
# source('prediction/r/utils/pred_plot_funs.r')
# build c matrix
cppFunction('
NumericMatrix build_c(double rho, double tau, double eta,
NumericMatrix d_inter, NumericMatrix lag) {
int T=lag.nrow(), N=d... |
#' Use Package
#'
#' Installs a package if it needs to be installed, and calls require to load the package.
#' Author: Scott Sobel. Tech Review: Bryce Chamberlain.
#'
#' @param packages Character or character vector with names of the packages you want to use.
#' @param noCache When checking packages, you can choo... | /R/usepkg.R | no_license | cran/easyr | R | false | false | 1,188 | r | #' Use Package
#'
#' Installs a package if it needs to be installed, and calls require to load the package.
#' Author: Scott Sobel. Tech Review: Bryce Chamberlain.
#'
#' @param packages Character or character vector with names of the packages you want to use.
#' @param noCache When checking packages, you can choo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text_cognizers.R
\name{text_personality}
\alias{text_personality}
\title{IBM personality analysis of text}
\usage{
text_personality(text, userpwd, keep_data = "true", callback = NULL,
model_id = "es-en-conversational", include_raw = "false"... | /man/text_personality.Rd | no_license | Jguthaaz/cognizer | R | false | true | 2,709 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text_cognizers.R
\name{text_personality}
\alias{text_personality}
\title{IBM personality analysis of text}
\usage{
text_personality(text, userpwd, keep_data = "true", callback = NULL,
model_id = "es-en-conversational", include_raw = "false"... |
library(data.table)
library(gapminder)
library(magrittr)
library(anytime)
library(ggplot2)
library(RColorBrewer)
library(RplotterPkg)
str(gapminder::gapminder)
# Set with value of "Oceania" as "Asia"
gapminder_dt <- data.table::as.data.table(gapminder::gapminder) %>%
.[, continent := as.character(continent)] %>%
... | /demo/scatter_color_gapminder.R | permissive | deandevl/RplotterPkg | R | false | false | 1,809 | r | library(data.table)
library(gapminder)
library(magrittr)
library(anytime)
library(ggplot2)
library(RColorBrewer)
library(RplotterPkg)
str(gapminder::gapminder)
# Set with value of "Oceania" as "Asia"
gapminder_dt <- data.table::as.data.table(gapminder::gapminder) %>%
.[, continent := as.character(continent)] %>%
... |
#!/usr/bin/Rscript
library(tesseract)
tesseract_download("fra")
tesseract_download("deu")
| /install_lang.R | permissive | robin-francois/TeletextCH | R | false | false | 92 | r | #!/usr/bin/Rscript
library(tesseract)
tesseract_download("fra")
tesseract_download("deu")
|
library("knitr")
library("rgl")
#knit("ditolyl_ether.Rmd")
#markdownToHTML('ditolyl_ether.md', 'ditolyl_ether.html', options=c("use_xhml"))
#system("pandoc -s ditolyl_ether.html -o ditolyl_ether.pdf")
knit2html('ditolyl_ether.Rmd')
| /FDA_Pesticide_Glossary/ditolyl_ether.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 234 | r | library("knitr")
library("rgl")
#knit("ditolyl_ether.Rmd")
#markdownToHTML('ditolyl_ether.md', 'ditolyl_ether.html', options=c("use_xhml"))
#system("pandoc -s ditolyl_ether.html -o ditolyl_ether.pdf")
knit2html('ditolyl_ether.Rmd')
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/figures.R
\name{figurematrix}
\alias{figurematrix}
\title{Stacked matrix}
\usage{
figurematrix(fstat, column = "tokens", order = -1)
}
\arguments{
\item{fstat}{The figure statistics table, i.e., the output of figureStatistics(). Coerced to a ... | /man/figurematrix.Rd | permissive | gitter-badger/DramaAnalysis | R | false | true | 1,095 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/figures.R
\name{figurematrix}
\alias{figurematrix}
\title{Stacked matrix}
\usage{
figurematrix(fstat, column = "tokens", order = -1)
}
\arguments{
\item{fstat}{The figure statistics table, i.e., the output of figureStatistics(). Coerced to a ... |
# https://bioconductor.org/packages/release/bioc/vignettes/sva/inst/doc/sva.pdf
# keep only primary tumor
pheno_data <- read.table("/media/koekiemonster/DATA-FAST/genetic_expression/hackathon_2/Lung/_prepped/gene_meta_combat.csv",
sep="\t", header=TRUE)
pheno_data <- as.data.frame(pheno_data)
... | /_bram/_notebooks/R_scripts/BEreal_RNAexpression.R | no_license | thu-vu92/Kanker-onderzoek | R | false | false | 3,386 | r | # https://bioconductor.org/packages/release/bioc/vignettes/sva/inst/doc/sva.pdf
# keep only primary tumor
pheno_data <- read.table("/media/koekiemonster/DATA-FAST/genetic_expression/hackathon_2/Lung/_prepped/gene_meta_combat.csv",
sep="\t", header=TRUE)
pheno_data <- as.data.frame(pheno_data)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inqur.R
\name{inqur}
\alias{inqur}
\title{Calculation of the first and third quantile}
\usage{
inqur(x, k = c())
}
\arguments{
\item{x}{Vector of continuous cariables.}
\item{k}{Optional. The number of decimal places.
If not specified, the n... | /man/inqur.Rd | no_license | vanLunteren/DescrTab | R | false | true | 643 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inqur.R
\name{inqur}
\alias{inqur}
\title{Calculation of the first and third quantile}
\usage{
inqur(x, k = c())
}
\arguments{
\item{x}{Vector of continuous cariables.}
\item{k}{Optional. The number of decimal places.
If not specified, the n... |
rm(list=ls())
#load packages
library(rstan)
library(tidyverse)
library(tidybayes)
library(gridExtra)
library(grid)
Nsamp = 100
samples=sample(x=1:8000,size=Nsamp)
get_posts= function(fit,model,dataList,samples){
posts_tmp1 = tidy_draws(fit)
#if hierarchical, uncenter delta, tau, and alpha
if(length(grep('mean... | /processing/xx_gradients2.R | no_license | ballardtj/gen_arch | R | false | false | 31,517 | r | rm(list=ls())
#load packages
library(rstan)
library(tidyverse)
library(tidybayes)
library(gridExtra)
library(grid)
Nsamp = 100
samples=sample(x=1:8000,size=Nsamp)
get_posts= function(fit,model,dataList,samples){
posts_tmp1 = tidy_draws(fit)
#if hierarchical, uncenter delta, tau, and alpha
if(length(grep('mean... |
#*******************************************************************************************
#*******************************************************************************************
#*******************************************************************************************
# generate a random partition from a set... | /paralog_utils_fct_vGraph.R | no_license | marzuf/v2_Yuanlong_Cancer_HiC_data_TAD_DA | R | false | false | 9,598 | r |
#*******************************************************************************************
#*******************************************************************************************
#*******************************************************************************************
# generate a random partition from a set... |
#' Save weights as .rds or .dta file
#'
#' This will save all variables with names containing 'weight_'
#' @export
#' @param data the \code{data.frame} to take the weights from.
#' @param format save as .rds file (R) or .dta file (Stata).
#' @param file_name the path to where the file should be saved.
#' @param include... | /R/save_weights.R | no_license | jgabry/RHhelpers | R | false | false | 1,346 | r | #' Save weights as .rds or .dta file
#'
#' This will save all variables with names containing 'weight_'
#' @export
#' @param data the \code{data.frame} to take the weights from.
#' @param format save as .rds file (R) or .dta file (Stata).
#' @param file_name the path to where the file should be saved.
#' @param include... |
classicalStores = c(50, 50, 60, 70, 75, 80, 90, 85)
modernStores = c(55, 75, 80, 90, 105, 65)
wilcox.test(classicalStores, modernStores, paired=FALSE)
| /HW5/Q2.R | no_license | arakhsha/DA_Spring_2018_HWs | R | false | false | 152 | r | classicalStores = c(50, 50, 60, 70, 75, 80, 90, 85)
modernStores = c(55, 75, 80, 90, 105, 65)
wilcox.test(classicalStores, modernStores, paired=FALSE)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.r
\docType{data}
\name{halfLives}
\alias{halfLives}
\title{Half lives for each end use.}
\format{A data frame with 151 observations of 13 variables:
\describe{
\item{House.SingFam}{Half lives for Single Family Homes}
\item{House.Multifam... | /man/halfLives.Rd | no_license | benjones2/WOODCARB3R | R | false | true | 1,144 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.r
\docType{data}
\name{halfLives}
\alias{halfLives}
\title{Half lives for each end use.}
\format{A data frame with 151 observations of 13 variables:
\describe{
\item{House.SingFam}{Half lives for Single Family Homes}
\item{House.Multifam... |
test_that("successes returns successes", {
expect_equal(sum(successes(dmeas, modelameas)), 0)
expect_equal(sum(successes(dmeas, modelbmeas)), 10)
# same test with algorithm features
expect_equal(sum(successes(dmeas.algo, modelameas.algo)), 0)
expect_equal(sum(successes(dmeas.algo, modelbmeas.al... | /tests/testthat/test.successes.R | no_license | cran/llama | R | false | false | 9,002 | r | test_that("successes returns successes", {
expect_equal(sum(successes(dmeas, modelameas)), 0)
expect_equal(sum(successes(dmeas, modelbmeas)), 10)
# same test with algorithm features
expect_equal(sum(successes(dmeas.algo, modelameas.algo)), 0)
expect_equal(sum(successes(dmeas.algo, modelbmeas.al... |
rm(list=ls())
setwd("~/Dropbox/FCU/Teaching/Mentoring/2019Spring/ChienSanPeng/KappaSimulationSummary")
rm(list=ls())
library(tidyr)
library(ape)
library(MASS)
library(TreeSim)
library(Matrix)
library(phytools)
library(phangorn)
library(dplyr)
library(corpcor)
library(pracma)
############## shrink method
avenegLOOL<-f... | /ShrinkExplore.R | no_license | djhwueng/kappapcm | R | false | false | 2,724 | r | rm(list=ls())
setwd("~/Dropbox/FCU/Teaching/Mentoring/2019Spring/ChienSanPeng/KappaSimulationSummary")
rm(list=ls())
library(tidyr)
library(ape)
library(MASS)
library(TreeSim)
library(Matrix)
library(phytools)
library(phangorn)
library(dplyr)
library(corpcor)
library(pracma)
############## shrink method
avenegLOOL<-f... |
#' Tools for describing matrices
#'
#' @param x Object to show.
#' @param n Number of rows to show. If \code{NULL}, the default, will print
#' all rows if less than option \code{dplyr.print_max}. Otherwise, will
#' print \code{dplyr.print_min}
#' @param width Width of text output to generate. This defaults to NULL,... | /R/utils-format.r | no_license | zhilongjia/tibble | R | false | false | 5,587 | r | #' Tools for describing matrices
#'
#' @param x Object to show.
#' @param n Number of rows to show. If \code{NULL}, the default, will print
#' all rows if less than option \code{dplyr.print_max}. Otherwise, will
#' print \code{dplyr.print_min}
#' @param width Width of text output to generate. This defaults to NULL,... |
library(tidyverse)
source('https://raw.githubusercontent.com/mrcaseb/nflfastR/master/R/helper_add_nflscrapr_mutations.R')
# starting in 2006 since that's when scrambles started to be marked
seasons <- 2006:2019
pbp <- purrr::map_df(seasons, function(x) {
readRDS(
url(
glue::glue("https://raw.githubusercont... | /models/_dropback_model_data.R | no_license | kevinmhinson/nflfastR-data | R | false | false | 1,129 | r | library(tidyverse)
source('https://raw.githubusercontent.com/mrcaseb/nflfastR/master/R/helper_add_nflscrapr_mutations.R')
# starting in 2006 since that's when scrambles started to be marked
seasons <- 2006:2019
pbp <- purrr::map_df(seasons, function(x) {
readRDS(
url(
glue::glue("https://raw.githubusercont... |
\name{sample2pop}
\alias{sample2pop}
\title{
corrects sample counts to population counts in a square contingency table
}
\description{
Converts sample count to population count in the square contingency table, assuming a stratified random sampling
}
\usage{
sample2pop(ctmatrix, population)
}
\arguments{
\item{ctmat... | /man/sample2pop.Rd | no_license | amsantac/diffeR | R | false | false | 1,695 | rd | \name{sample2pop}
\alias{sample2pop}
\title{
corrects sample counts to population counts in a square contingency table
}
\description{
Converts sample count to population count in the square contingency table, assuming a stratified random sampling
}
\usage{
sample2pop(ctmatrix, population)
}
\arguments{
\item{ctmat... |
\name{generateSampleDataFile}
\alias{generateSampleDataFile}
\title{Generate sample data files for profile regression}
\description{Generation of random sample datasets for profile regression.}
\usage{
generateSampleDataFile(clusterSummary)
}
\arguments{
\item{clusterSummary}{A vector of strings of the covariate names ... | /man/generateSampleDataFile.Rd | no_license | anarouanet/PReMiuMar | R | false | false | 2,323 | rd | \name{generateSampleDataFile}
\alias{generateSampleDataFile}
\title{Generate sample data files for profile regression}
\description{Generation of random sample datasets for profile regression.}
\usage{
generateSampleDataFile(clusterSummary)
}
\arguments{
\item{clusterSummary}{A vector of strings of the covariate names ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geog4ga3.R
\docType{data}
\name{snow_deaths}
\alias{snow_deaths}
\title{Snow cholera deaths}
\format{A data frame with 250 rows and 5 variables}
\source{
\url{http://blog.rtwilson.com/?s=snow}
}
\usage{
data(snow_deaths)
}
\description{
A dat... | /Ideas/geog4ga3.Rcheck/00_pkg_src/geog4ga3/man/snow_deaths.Rd | no_license | snowdj/Spatial-Statistics-Course | R | false | true | 676 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geog4ga3.R
\docType{data}
\name{snow_deaths}
\alias{snow_deaths}
\title{Snow cholera deaths}
\format{A data frame with 250 rows and 5 variables}
\source{
\url{http://blog.rtwilson.com/?s=snow}
}
\usage{
data(snow_deaths)
}
\description{
A dat... |
# Unlike stoke.rb (please read top of file) I am not sure yet how to best organize plotting.
# It probably should all be contained in one file, stoke.R, and follow similar conventions
# as stoke.rb, but let's leave it seperate until we know more.
#
# To run the script...
#
# Rscript convergence.R dat/convergence.dat ... | /android/run/continuous-search/20-manual.R | no_license | pl-aeneas/aeneas-mapsme | R | false | false | 8,770 | r | # Unlike stoke.rb (please read top of file) I am not sure yet how to best organize plotting.
# It probably should all be contained in one file, stoke.R, and follow similar conventions
# as stoke.rb, but let's leave it seperate until we know more.
#
# To run the script...
#
# Rscript convergence.R dat/convergence.dat ... |
#
# The idea here is that we want to compile an R function
# using llvm and then pass that as an external pointer to
# a C routine that expects a function pointer.
# See functionPointer.R
#
#
| /tests/useLLVMRoutineExternally.R | no_license | duncantl/RLLVMCompile | R | false | false | 194 | r | #
# The idea here is that we want to compile an R function
# using llvm and then pass that as an external pointer to
# a C routine that expects a function pointer.
# See functionPointer.R
#
#
|
#mean-----
set.seed(1234)
x=ceiling(rnorm(100,50,10))#100 values with mean=50 and sd=10
x
(mean=sum(x)/length(x))
mean(x)
summary(x)
#trimming values-----
set.seed(1234)
y=ceiling(runif(100,50,100))#extreme values
y
mean(y)
mean(y,trim=.1)
#NA Values -Remove----
y[c(1,20,30)]=NA
y
length(na.omit(y))#3 NA values
mean... | /datahandling/statistics/centraltendency.R | no_license | meenasirisha145/rinaction | R | false | false | 735 | r | #mean-----
set.seed(1234)
x=ceiling(rnorm(100,50,10))#100 values with mean=50 and sd=10
x
(mean=sum(x)/length(x))
mean(x)
summary(x)
#trimming values-----
set.seed(1234)
y=ceiling(runif(100,50,100))#extreme values
y
mean(y)
mean(y,trim=.1)
#NA Values -Remove----
y[c(1,20,30)]=NA
y
length(na.omit(y))#3 NA values
mean... |
read.DVH <- function (file, type=NA, verbose=TRUE, collapse=TRUE) {
type <- match.arg(tolower(type), choices=c(NA, "aria10", "aria11", "aria8", "dicom", "cadplan", "tomo", "monaco", "raystation"), several.ok=TRUE)
if (length(file) < 1) {
warning("argument 'file' is missing, with no default")
return()
}
read.D... | /RadOnc/R/read.DVH.R | no_license | ingted/R-Examples | R | false | false | 21,605 | r | read.DVH <- function (file, type=NA, verbose=TRUE, collapse=TRUE) {
type <- match.arg(tolower(type), choices=c(NA, "aria10", "aria11", "aria8", "dicom", "cadplan", "tomo", "monaco", "raystation"), several.ok=TRUE)
if (length(file) < 1) {
warning("argument 'file' is missing, with no default")
return()
}
read.D... |
## discrete uniform
pdiscunif <- function(q, size) pmax(0, pmin(1, floor(q)/size))
qdiscunif <- function(p, size) floor(p*size)
ddiscunif <- function(q, size) {
is.wholenumber <-
function(x, tol = .Machine$double.eps^0.5) abs(x - round(x)) < tol
fq <- floor(q)
c(0, 1/size)[((fq > 0) & (fq < size+1) & ... | /R/discreteUniform.R | no_license | cran/HH | R | false | false | 410 | r | ## discrete uniform
pdiscunif <- function(q, size) pmax(0, pmin(1, floor(q)/size))
qdiscunif <- function(p, size) floor(p*size)
ddiscunif <- function(q, size) {
is.wholenumber <-
function(x, tol = .Machine$double.eps^0.5) abs(x - round(x)) < tol
fq <- floor(q)
c(0, 1/size)[((fq > 0) & (fq < size+1) & ... |
# load packages ----
library(stringr)
library(purrr)
# list all files ----
all_files <- list.files(paste0(getwd(), "/Data sets/"), recursive = T)
# only include files that end in .txt ----
all_data_files <- all_files[str_detect(all_files, ".txt")]
# create data set names in lower case ----
ds_names <- str_to_lower(... | /Data sets/import data sets.R | no_license | shannonpileggi/SP18--RSurvival | R | false | false | 872 | r | # load packages ----
library(stringr)
library(purrr)
# list all files ----
all_files <- list.files(paste0(getwd(), "/Data sets/"), recursive = T)
# only include files that end in .txt ----
all_data_files <- all_files[str_detect(all_files, ".txt")]
# create data set names in lower case ----
ds_names <- str_to_lower(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.cuminc.R
\name{plot.cuminc}
\alias{plot.cuminc}
\title{Plot of predicted cumulative incidences according to a profile of covariates}
\usage{
\method{plot}{cuminc}(x, profil = 1, event = 1, add = FALSE, legend,
legend.loc = "topleft", .... | /man/plot.cuminc.Rd | no_license | yuanfang90/lcmm | R | false | true | 1,599 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.cuminc.R
\name{plot.cuminc}
\alias{plot.cuminc}
\title{Plot of predicted cumulative incidences according to a profile of covariates}
\usage{
\method{plot}{cuminc}(x, profil = 1, event = 1, add = FALSE, legend,
legend.loc = "topleft", .... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{sim_funcharts}
\alias{sim_funcharts}
\title{Simulate example data for funcharts}
\usage{
sim_funcharts(nobs1 = 1000, nobs_tun = 1000, nobs2 = 60)
}
\arguments{
\item{nobs1}{The number of observation to simulate in phase I. De... | /man/sim_funcharts.Rd | no_license | unina-sfere/funcharts | R | false | true | 1,914 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simulate.R
\name{sim_funcharts}
\alias{sim_funcharts}
\title{Simulate example data for funcharts}
\usage{
sim_funcharts(nobs1 = 1000, nobs_tun = 1000, nobs2 = 60)
}
\arguments{
\item{nobs1}{The number of observation to simulate in phase I. De... |
invalid_df <- function(problem, vars, extra = NULL, message = "Column(s)") {
if (is.character(vars)) {
vars <- tick(vars)
}
c(
pluralise_commas(paste0(message, " "), vars, paste0(" ", problem, ".")),
extra
)
}
use_repair <- function(repair_hint) {
if (repair_hint) "Use `.name_repair` to specify ... | /R/error.R | permissive | tidyverse/tibble | R | false | false | 1,006 | r | invalid_df <- function(problem, vars, extra = NULL, message = "Column(s)") {
if (is.character(vars)) {
vars <- tick(vars)
}
c(
pluralise_commas(paste0(message, " "), vars, paste0(" ", problem, ".")),
extra
)
}
use_repair <- function(repair_hint) {
if (repair_hint) "Use `.name_repair` to specify ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nmf.R
\name{nmf}
\alias{nmf}
\title{Non-negative Matrix Factorization}
\usage{
nmf(
input,
rank,
initial_h = NA,
initial_w = NA,
max_iterations = NA,
min_residue = NA,
seed = NA,
update_rules = NA,
verbose = FALSE
)
}
\argum... | /man/nmf.Rd | no_license | Yashwants19/RcppMLPACK | R | false | true | 2,846 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nmf.R
\name{nmf}
\alias{nmf}
\title{Non-negative Matrix Factorization}
\usage{
nmf(
input,
rank,
initial_h = NA,
initial_w = NA,
max_iterations = NA,
min_residue = NA,
seed = NA,
update_rules = NA,
verbose = FALSE
)
}
\argum... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forestplot_helpers.R
\name{fpLegend}
\alias{fpLegend}
\title{A function for the legend used in forestplot()}
\usage{
fpLegend(
pos = "top",
gp = NULL,
r = unit(0, "snpc"),
padding = unit(ifelse(!is.null(gp), 3, 0), "mm"),
title = NU... | /man/fpLegend.Rd | no_license | X-FLOWERRR/forestplot | R | false | true | 2,559 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forestplot_helpers.R
\name{fpLegend}
\alias{fpLegend}
\title{A function for the legend used in forestplot()}
\usage{
fpLegend(
pos = "top",
gp = NULL,
r = unit(0, "snpc"),
padding = unit(ifelse(!is.null(gp), 3, 0), "mm"),
title = NU... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{big.data.frame}
\alias{big.data.frame}
\title{Create a big.data.frame}
\usage{
big.data.frame(nrow, classes, location = NULL, names = NULL,
maxchar = NULL, init = NULL)
}
\arguments{
\item{nrow}{the number of rows}
\item{classes}{a vector of values from 'dou... | /man/big.data.frame.Rd | no_license | mirsinarm/big.data.frame | R | false | false | 1,010 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{big.data.frame}
\alias{big.data.frame}
\title{Create a big.data.frame}
\usage{
big.data.frame(nrow, classes, location = NULL, names = NULL,
maxchar = NULL, init = NULL)
}
\arguments{
\item{nrow}{the number of rows}
\item{classes}{a vector of values from 'dou... |
#' @describeIn tau_u Export results as html table
#' @order 3
#' @inheritParams export
#' @param meta If TRUE, the results of the meta analysis will be exported. If
#' FALSE, each single-case is exported.
#' @param select Character vector with name of variables to be included. When
#' the vector is named, variables... | /R/export.sc_tauu.R | no_license | cran/scan | R | false | false | 2,669 | r | #' @describeIn tau_u Export results as html table
#' @order 3
#' @inheritParams export
#' @param meta If TRUE, the results of the meta analysis will be exported. If
#' FALSE, each single-case is exported.
#' @param select Character vector with name of variables to be included. When
#' the vector is named, variables... |
#0. Recodificar SUSESO
# 1. Cargar librerias
pacman::p_load(dplyr, tidyverse, forcats, haven)
# 2. Cargar base de datos
load("informe_resultados/data/isp.RData")
# 3. Crear Riesgo psicosocial
# Niveles: Riesgo bajo, riesgo medio, riesgo alto
## Se rescalan sumando 7 pues Likert parte en 1 y no en 0
# 3.1 Calculo :... | /informe_resultados/13code-suseso.R | no_license | valentinaandrade/isp | R | false | false | 2,218 | r | #0. Recodificar SUSESO
# 1. Cargar librerias
pacman::p_load(dplyr, tidyverse, forcats, haven)
# 2. Cargar base de datos
load("informe_resultados/data/isp.RData")
# 3. Crear Riesgo psicosocial
# Niveles: Riesgo bajo, riesgo medio, riesgo alto
## Se rescalan sumando 7 pues Likert parte en 1 y no en 0
# 3.1 Calculo :... |
library(data.table)
library(dplyr)
library(lubridate)
fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists('./Data Science/UCI HAR Dataset.zip')){
download.file(fileurl,'./household_power_consumption.zip', mode = 'wb')
unzip('./household_power_con... | /plot2.R | no_license | in8inteligence/ExData_Plotting1 | R | false | false | 561 | r | library(data.table)
library(dplyr)
library(lubridate)
fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists('./Data Science/UCI HAR Dataset.zip')){
download.file(fileurl,'./household_power_consumption.zip', mode = 'wb')
unzip('./household_power_con... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/skcm.r
\docType{data}
\name{skcm.melgene}
\alias{skcm.melgene}
\title{Genes associated with Melanoma given by the MelGene Database}
\format{
Each row contains one subject, subject ID is indicated by row name.
Gene names in the columns. The co... | /man/skcm.melgene.Rd | no_license | teazrq/orthoDr | R | false | true | 1,397 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/skcm.r
\docType{data}
\name{skcm.melgene}
\alias{skcm.melgene}
\title{Genes associated with Melanoma given by the MelGene Database}
\format{
Each row contains one subject, subject ID is indicated by row name.
Gene names in the columns. The co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/j0j0_element.R
\name{create_integral_settings}
\alias{create_integral_settings}
\title{create_integral_settings}
\usage{
create_integral_settings(
directions,
k_perp,
k_par,
omega,
omega_c,
mass,
distribution,
integration_meth... | /man/create_integral_settings.Rd | permissive | dmoseev/j0j0r | R | false | true | 1,240 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/j0j0_element.R
\name{create_integral_settings}
\alias{create_integral_settings}
\title{create_integral_settings}
\usage{
create_integral_settings(
directions,
k_perp,
k_par,
omega,
omega_c,
mass,
distribution,
integration_meth... |
# ABC081B - Shift only
# https://atcoder.jp/contests/language-test-202301/tasks/abc081_b
# 3
# 8 12 40
library(magrittr)
library(purrr)
dat <- readLines("stdin", n = 2)
xs <- dat[2] %>%
strsplit(" ") %>%
unlist() %>%
map(as.integer)
# https://stat.ethz.ch/pipermail/r-help/2012-January/300250.html
mi <- .Mach... | /compro/abc081_b.r | no_license | RyotaBannai/r | R | false | false | 590 | r | # ABC081B - Shift only
# https://atcoder.jp/contests/language-test-202301/tasks/abc081_b
# 3
# 8 12 40
library(magrittr)
library(purrr)
dat <- readLines("stdin", n = 2)
xs <- dat[2] %>%
strsplit(" ") %>%
unlist() %>%
map(as.integer)
# https://stat.ethz.ch/pipermail/r-help/2012-January/300250.html
mi <- .Mach... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dragula.R
\name{dragulaValue}
\alias{dragulaValue}
\title{Format dragula input object.}
\usage{
dragulaValue(x)
}
\arguments{
\item{x}{dragula input.}
}
\description{
This is a utility function for better formatting dragula's input.
}
\exampl... | /man/dragulaValue.Rd | no_license | zzawadz/dragulaR | R | false | true | 384 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dragula.R
\name{dragulaValue}
\alias{dragulaValue}
\title{Format dragula input object.}
\usage{
dragulaValue(x)
}
\arguments{
\item{x}{dragula input.}
}
\description{
This is a utility function for better formatting dragula's input.
}
\exampl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.