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/FitGP_MLE2.R
\name{FitGP_MLE2}
\alias{FitGP_MLE2}
\title{FitGP_MLE2}
\usage{
Value <- FitGP_MLE2(X, p, N= 0, r11= 1, fixedpar= NULL, l0= NULL, sigma= Inf, metadata= NULL)
}
\arguments{
\item{X}{data sample (double(n))}
\item{p}{probabilities... | /man/FitGP_MLE2.Rd | no_license | ceesfdevalk/EVTools | R | false | true | 4,177 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FitGP_MLE2.R
\name{FitGP_MLE2}
\alias{FitGP_MLE2}
\title{FitGP_MLE2}
\usage{
Value <- FitGP_MLE2(X, p, N= 0, r11= 1, fixedpar= NULL, l0= NULL, sigma= Inf, metadata= NULL)
}
\arguments{
\item{X}{data sample (double(n))}
\item{p}{probabilities... |
# Stephanie J. Spielman for CCDL, 2022
# This script creates three S5 panels (A, B, C)
## Load libraries ------------------------
library(tidyverse)
## Define paths -----------------------
root_dir <- rprojroot::find_root(rprojroot::has_dir(".git"))
output_dir <- file.path(root_dir, "figures", "pdfs", "supp", "fi... | /figures/scripts/supp-S5-panels-ABC.R | permissive | jharenza/OpenPBTA-analysis | R | false | false | 5,014 | r | # Stephanie J. Spielman for CCDL, 2022
# This script creates three S5 panels (A, B, C)
## Load libraries ------------------------
library(tidyverse)
## Define paths -----------------------
root_dir <- rprojroot::find_root(rprojroot::has_dir(".git"))
output_dir <- file.path(root_dir, "figures", "pdfs", "supp", "fi... |
# employee selection data - Enders, 2010, p. 2018
employee <- data.frame(
IQ = c(78, 84, 84, 85, 87, 91, 92, 94, 94, 96, 99, 105, 105, 106, 108, 112,
113, 115, 118, 134),
wbeing = c(13, 9, 10, 10, NA, 3, 12, 3, 13, NA, 6, 12, 14, 10, NA, 10,
14, 14, 12, 11),
jobperf = c(rep(NA, 10),... | /data-raw/R/employee.R | no_license | worldbank/mice | R | false | false | 394 | r | # employee selection data - Enders, 2010, p. 2018
employee <- data.frame(
IQ = c(78, 84, 84, 85, 87, 91, 92, 94, 94, 96, 99, 105, 105, 106, 108, 112,
113, 115, 118, 134),
wbeing = c(13, 9, 10, 10, NA, 3, 12, 3, 13, NA, 6, 12, 14, 10, NA, 10,
14, 14, 12, 11),
jobperf = c(rep(NA, 10),... |
## Loading of packages
library(evir)
library(ismev)
## Order statistics
data(bmw)
BmwLoss <- -1.0 * bmw * 100
Years <- format(attr(BmwLoss, "time"), "%Y")
attr(BmwLoss, "years") <- Years
Yearu <- unique(Years)
idx <- 1:length(Yearu)
r <- 2
BmwOrder <- t(sapply(idx, function(x)
head(sort(BmwLoss[attr(BmwLo... | /inst/BookEx/C7R2.R | no_license | MatixR/FRAPO | R | false | false | 796 | r | ## Loading of packages
library(evir)
library(ismev)
## Order statistics
data(bmw)
BmwLoss <- -1.0 * bmw * 100
Years <- format(attr(BmwLoss, "time"), "%Y")
attr(BmwLoss, "years") <- Years
Yearu <- unique(Years)
idx <- 1:length(Yearu)
r <- 2
BmwOrder <- t(sapply(idx, function(x)
head(sort(BmwLoss[attr(BmwLo... |
library(phonTools)
### Name: sinc
### Title: Sinc Function
### Aliases: sinc
### ** Examples
x = seq(-20,20,.1)
## generate both forms of the sinc function between -20 and 20
y1 = sinc (x)
y2 = sinc (x, normalized = TRUE)
## the unnormalized sinc function has zero crossing at
## integer multiples of pi
plot (x,y1,... | /data/genthat_extracted_code/phonTools/examples/sinc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 447 | r | library(phonTools)
### Name: sinc
### Title: Sinc Function
### Aliases: sinc
### ** Examples
x = seq(-20,20,.1)
## generate both forms of the sinc function between -20 and 20
y1 = sinc (x)
y2 = sinc (x, normalized = TRUE)
## the unnormalized sinc function has zero crossing at
## integer multiples of pi
plot (x,y1,... |
## Author: Olivia Zhou
# This is code for analyzing the lectin-24A mutant resistance assay
# and plotting the figure
library(multcomp)
library(lme4)
library(car)
library(ggplot2)
library(binom)
library(emmeans)
library(tidyverse)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
list.files()
#import data... | /Fig 3/Fig 3B/Lectin resistance assay plot—per vial.R | no_license | arunkumarramesh/Parasitoid-resistance | R | false | false | 4,425 | r | ## Author: Olivia Zhou
# This is code for analyzing the lectin-24A mutant resistance assay
# and plotting the figure
library(multcomp)
library(lme4)
library(car)
library(ggplot2)
library(binom)
library(emmeans)
library(tidyverse)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
list.files()
#import data... |
#' Prune all leaves in a graph either a given amount of times or until there are no more than a specified number of leaves
#'
#' @param G graph to be pruned
#' @param times the number of times all leaves must be pruned, standard set to 1
#' @param leaves (maximum) number of leaves to be kept, 'times' is ignored i... | /Chapter 5/R/hard_prune.R | no_license | aida-ugent/PhD_Code_Robin_Vandaele | R | false | false | 791 | r | #' Prune all leaves in a graph either a given amount of times or until there are no more than a specified number of leaves
#'
#' @param G graph to be pruned
#' @param times the number of times all leaves must be pruned, standard set to 1
#' @param leaves (maximum) number of leaves to be kept, 'times' is ignored i... |
testlist <- list(bytes1 = c(0L, -54529L, -33432574L, 33750909L, -16777216L ), pmutation = 0)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612802204-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 156 | r | testlist <- list(bytes1 = c(0L, -54529L, -33432574L, 33750909L, -16777216L ), pmutation = 0)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) |
# Data --------------------------------------------------------------------
display_in_title <- " across all Districts"
all_beneficiary_types <- c("Burundian refugees", "Congolese & other refugees", "Host community", "South Sudanese refugees")
refugee_districts <- c("ADJUMANI", "ISINGIRO", "KAMPALA", "KAMWENGE", "KIKU... | /modules/import-data.R | no_license | twesigye10/uganda_refugee_response_cash_actor_mapping | R | false | false | 1,536 | r | # Data --------------------------------------------------------------------
display_in_title <- " across all Districts"
all_beneficiary_types <- c("Burundian refugees", "Congolese & other refugees", "Host community", "South Sudanese refugees")
refugee_districts <- c("ADJUMANI", "ISINGIRO", "KAMPALA", "KAMWENGE", "KIKU... |
# This is an R script. Any line that starts with # is a comment.
# Comments are ignored by R when you run the script.
# Any line that does not start with # will be run.
#### RUNNING CODE ####
# There are a few ways to run this script in RStudio.
# 1) You can run the entire script by pressing Ctrl+Alt+R, or by pressin... | /Lab1-Part3/R-intro.R | no_license | Luffington/lab-1-jodeleeuw | R | false | false | 17,340 | r | # This is an R script. Any line that starts with # is a comment.
# Comments are ignored by R when you run the script.
# Any line that does not start with # will be run.
#### RUNNING CODE ####
# There are a few ways to run this script in RStudio.
# 1) You can run the entire script by pressing Ctrl+Alt+R, or by pressin... |
\name{decimal_date}
\alias{decimal_date}
\title{Converts a date to a decimal of its year.}
\usage{
decimal_date(date)
}
\arguments{
\item{date}{a POSIXt or Date object}
}
\value{
a numeric object where the date is expressed as a
fraction of its year
}
\description{
Converts a date to a decimal of its year.
}
... | /man/decimal_date.Rd | no_license | Vald/lubridate | R | false | false | 448 | rd | \name{decimal_date}
\alias{decimal_date}
\title{Converts a date to a decimal of its year.}
\usage{
decimal_date(date)
}
\arguments{
\item{date}{a POSIXt or Date object}
}
\value{
a numeric object where the date is expressed as a
fraction of its year
}
\description{
Converts a date to a decimal of its year.
}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discrete-gamma-distribution.R
\name{DiscreteGamma}
\alias{DiscreteGamma}
\alias{ddgamma}
\alias{pdgamma}
\alias{rdgamma}
\title{Discrete gamma distribution}
\usage{
ddgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE)
pdgamma(q, shape, r... | /man/DiscreteGamma.Rd | no_license | mnel/extraDistr | R | false | true | 1,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discrete-gamma-distribution.R
\name{DiscreteGamma}
\alias{DiscreteGamma}
\alias{ddgamma}
\alias{pdgamma}
\alias{rdgamma}
\title{Discrete gamma distribution}
\usage{
ddgamma(x, shape, rate = 1, scale = 1/rate, log = FALSE)
pdgamma(q, shape, r... |
complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs
## 1 116
## 2 1041
#... | /complete.R | no_license | jamisonstevens/AirPollution | R | false | false | 1,184 | r | complete <- function(directory, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs
## 1 116
## 2 1041
#... |
\name{ghermite.h.inner.products}
\alias{ghermite.h.inner.products}
\title{ Inner products of generalized Hermite polynomials }
\description{
This function returns a vector with \eqn{n + 1} elements containing the inner product of
an order \eqn{k} generalized Hermite polynomial, \eqn{H_k^{\left( \mu \right)}... | /man/ghermite.h.inner.products.Rd | no_license | cran/orthopolynom | R | false | false | 1,948 | rd | \name{ghermite.h.inner.products}
\alias{ghermite.h.inner.products}
\title{ Inner products of generalized Hermite polynomials }
\description{
This function returns a vector with \eqn{n + 1} elements containing the inner product of
an order \eqn{k} generalized Hermite polynomial, \eqn{H_k^{\left( \mu \right)}... |
#setwd("~/Documents/ADS-SU17/")
matches <- read.csv("data/match-data-full.csv")
balls <- read.csv("data/ball-data-full.csv")
str(matches)
str(balls)
par(mar=c(10,10,4,2))
hist(matches$WinBy,col="darkred")
barplot(table(matches$Winner),cex.lab=.75,las=1,col="darkred",horiz = T)
boxplot(matches$WinBy~matches$Winner,ce... | /R/M2-data-exploration.r | no_license | IUIDSL/AppliedDataScienceCourse | R | false | false | 842 | r | #setwd("~/Documents/ADS-SU17/")
matches <- read.csv("data/match-data-full.csv")
balls <- read.csv("data/ball-data-full.csv")
str(matches)
str(balls)
par(mar=c(10,10,4,2))
hist(matches$WinBy,col="darkred")
barplot(table(matches$Winner),cex.lab=.75,las=1,col="darkred",horiz = T)
boxplot(matches$WinBy~matches$Winner,ce... |
corr <- function(directory, threshold = 0) {
dir <- paste(getwd(),'/',directory, sep ='')
files <- list.files(dir)
files_path <- paste(dir,'/',files, sep='')
corr_vector <- c()
for (i in 1:length(files)) {
data <- read.csv(files_path[i], header=T, sep=",")
nobs <- sum(complete.cases(data))
... | /Programming Assignment 1/corr.R | no_license | offff/Coursera---R-Programming | R | false | false | 464 | r | corr <- function(directory, threshold = 0) {
dir <- paste(getwd(),'/',directory, sep ='')
files <- list.files(dir)
files_path <- paste(dir,'/',files, sep='')
corr_vector <- c()
for (i in 1:length(files)) {
data <- read.csv(files_path[i], header=T, sep=",")
nobs <- sum(complete.cases(data))
... |
HPC<-read.csv("HPC.txt", sep = ";", na.strings = "?", colClasses = c(rep("character",2),rep("numeric",7)))
HPC$Date<-as.Date(HPC$Date, "%d/%m/%Y")
hpcd<-subset(HPC, HPC$Date >=("2007-02-01") & HPC$Date <= ("2007-02-02"))
hpcd<-hpcd[complete.cases(hpcd),]
hist(hpcd$Global_active_power,xlab = "Global Active Power (kilow... | /plot1.R | no_license | siyingruan/Plotting1 | R | false | false | 440 | r | HPC<-read.csv("HPC.txt", sep = ";", na.strings = "?", colClasses = c(rep("character",2),rep("numeric",7)))
HPC$Date<-as.Date(HPC$Date, "%d/%m/%Y")
hpcd<-subset(HPC, HPC$Date >=("2007-02-01") & HPC$Date <= ("2007-02-02"))
hpcd<-hpcd[complete.cases(hpcd),]
hist(hpcd$Global_active_power,xlab = "Global Active Power (kilow... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ManualDosageCalling.R
\name{GetManualCall}
\alias{GetManualCall}
\title{Performs a Simulated Manual Call}
\usage{
GetManualCall(AllData, Target = "Assay1")
}
\arguments{
\item{AllData}{A serial data frame of all the relevant values including ... | /man/GetManualCall.Rd | permissive | schnappi-wkl/PolyploidDosageCalling | R | false | true | 658 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ManualDosageCalling.R
\name{GetManualCall}
\alias{GetManualCall}
\title{Performs a Simulated Manual Call}
\usage{
GetManualCall(AllData, Target = "Assay1")
}
\arguments{
\item{AllData}{A serial data frame of all the relevant values including ... |
data[,"petal_len"] <- data[,"petal_len"] * 1.2
data[,"ratio"] <- data[,"petal_wid"] / data[,"sepal_wid"]
h2o.sd(data[,"petal_len"])
h2o.cor(data[,"ratio"], data[,"petal_len"])
data[,"species"] <- h2o.gsub("Iris-", "", as.character(data[,"class"]) )
data[,"is_long"] <- ifelse(data[,"petal_len"] > mean(data[,"petal_len"]... | /code/modify_columns.R | permissive | DarrenCook/h2o | R | false | false | 636 | r | data[,"petal_len"] <- data[,"petal_len"] * 1.2
data[,"ratio"] <- data[,"petal_wid"] / data[,"sepal_wid"]
h2o.sd(data[,"petal_len"])
h2o.cor(data[,"ratio"], data[,"petal_len"])
data[,"species"] <- h2o.gsub("Iris-", "", as.character(data[,"class"]) )
data[,"is_long"] <- ifelse(data[,"petal_len"] > mean(data[,"petal_len"]... |
library(cowplot)
library(ggplot2)
library(parallel)
library(igraph)
library(reshape2)
theme_set(theme_cowplot(font_size=9))
create.igraph <- function(network){
# network[which(network != 0)] <- 1
diag(network) <- 0
network[network!=0] <- 1
graph_from_adjacency_matrix(network, mode = "undirected")
}
f... | /publication_figures/src/supp_fig13.R | no_license | leekgroup/networks_correction | R | false | false | 2,874 | r | library(cowplot)
library(ggplot2)
library(parallel)
library(igraph)
library(reshape2)
theme_set(theme_cowplot(font_size=9))
create.igraph <- function(network){
# network[which(network != 0)] <- 1
diag(network) <- 0
network[network!=0] <- 1
graph_from_adjacency_matrix(network, mode = "undirected")
}
f... |
\name{se.g}
\alias{se.g}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Calculate the standard error for a set of genotypes.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
se.g(x = "community matrix", g = "grouping")
}
%- maybe also 'usage' for o... | /src/old/comgenr2/man/se.g.Rd | no_license | ECGen/ComGenR_development | R | false | false | 1,473 | rd | \name{se.g}
\alias{se.g}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Calculate the standard error for a set of genotypes.
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
se.g(x = "community matrix", g = "grouping")
}
%- maybe also 'usage' for o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample_events.R
\name{find_intersecting_events}
\alias{find_intersecting_events}
\title{Find Intersecting Events}
\usage{
find_intersecting_events(ex, ey, equal.points = TRUE, closed = FALSE)
}
\arguments{
\item{ex, ey}{Event tables.}
\item{... | /man/find_intersecting_events.Rd | no_license | mycid/linbin | R | false | true | 1,132 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample_events.R
\name{find_intersecting_events}
\alias{find_intersecting_events}
\title{Find Intersecting Events}
\usage{
find_intersecting_events(ex, ey, equal.points = TRUE, closed = FALSE)
}
\arguments{
\item{ex, ey}{Event tables.}
\item{... |
#%% Archivos en xml
library("xml2")
#--------Leer archivo ejemplo xml-------------------
datos.xml <- read_xml("../ejemplos/ejemplo.xml")
for (des in xml_children(xml_root(datos.xml))){
print("Opción:")
for (atr in xml_children(des)){
print(paste(" ", xml_name(atr), "->", xml_text(atr)))
}
}
#-----Busca... | /obtener datos/R/arch-xml.R | permissive | dogomoreno/ing-caracteristicas | R | false | false | 479 | r | #%% Archivos en xml
library("xml2")
#--------Leer archivo ejemplo xml-------------------
datos.xml <- read_xml("../ejemplos/ejemplo.xml")
for (des in xml_children(xml_root(datos.xml))){
print("Opción:")
for (atr in xml_children(des)){
print(paste(" ", xml_name(atr), "->", xml_text(atr)))
}
}
#-----Busca... |
#' Get Folders with Results
#'
#' @description \lifecycle{stable}
#' @param results_dir A character string giving the directory in which results
#' are stored (as produced by `regional_rt_pipeline`).
#' @return A named character vector containing the results to plot.
#' @export
get_regions <- function(results_dir) {
... | /R/get.R | permissive | pearsonca/EpiNow2 | R | false | false | 9,287 | r | #' Get Folders with Results
#'
#' @description \lifecycle{stable}
#' @param results_dir A character string giving the directory in which results
#' are stored (as produced by `regional_rt_pipeline`).
#' @return A named character vector containing the results to plot.
#' @export
get_regions <- function(results_dir) {
... |
## These functions cache the inverse of a matrix
## Creates a special "matrix" - a list containing functions to
## set the value of the matrix
## get the value of the matrix
## set the value of the inverse matrix
## and get the value of the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
... | /cachematrix.R | no_license | szeyuhwang/ProgrammingAssignment2 | R | false | false | 994 | r | ## These functions cache the inverse of a matrix
## Creates a special "matrix" - a list containing functions to
## set the value of the matrix
## get the value of the matrix
## set the value of the inverse matrix
## and get the value of the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
... |
library(tidyverse)
## DATA
counties <- readRDS("Eichlersmith_Martha_L13/census-app/data/counties.rds") %>%
separate(name, c("state", "county"), ",")
counties_map <- map_data("county") %>%
select(long, lat, group, county = subregion, state = region) %>%
left_join(., counties, by = c("county" = "county", "st... | /Eichlersmith_Martha_L13/census-app/test_script/county_map.R | no_license | MarEichler/STAT302-Spring2020 | R | false | false | 1,365 | r | library(tidyverse)
## DATA
counties <- readRDS("Eichlersmith_Martha_L13/census-app/data/counties.rds") %>%
separate(name, c("state", "county"), ",")
counties_map <- map_data("county") %>%
select(long, lat, group, county = subregion, state = region) %>%
left_join(., counties, by = c("county" = "county", "st... |
# aim is to run WGCNA on root samples from RNA-seq
# 31-08-2016
# Philippa Borrill
#Using the tutorials at https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/Tutorials/ as guide
#### TUTORIAL 2c ########
# https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/Tutor... | /scripts/WGCNA_network_construction/3_WGCNA_cluster_co-expression_root.R | no_license | Musketeer-D/WheatHomoeologExpression | R | false | false | 7,305 | r | # aim is to run WGCNA on root samples from RNA-seq
# 31-08-2016
# Philippa Borrill
#Using the tutorials at https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/Tutorials/ as guide
#### TUTORIAL 2c ########
# https://labs.genetics.ucla.edu/horvath/CoexpressionNetwork/Rpackages/WGCNA/Tutor... |
#' Convert partial autocorrelation coefficients to autoregressive coeffients
#'
#' @param pac partial autocorrelation coefficient (vector)
#' @keywords internal
#' @export
ar.pacf2phi = function(pac) {
p = length(pac)
phi = work = pac
if (p > 1L)
for (j in 1L:(p-1L)) {
a = phi[j+1L];
phi[1L:j] = ... | /R/pacf2phi.R | no_license | pedrognicolau/ARbiascorrect-v1 | R | false | false | 1,100 | r | #' Convert partial autocorrelation coefficients to autoregressive coeffients
#'
#' @param pac partial autocorrelation coefficient (vector)
#' @keywords internal
#' @export
ar.pacf2phi = function(pac) {
p = length(pac)
phi = work = pac
if (p > 1L)
for (j in 1L:(p-1L)) {
a = phi[j+1L];
phi[1L:j] = ... |
require(XML)
theurl <- "http://fantasy.premierleague.com/entry/1568010/history/"
table.pubbandits <- readHTMLTable(theurl,header=T,which=1,colClasses=c("character","numeric","numeric","numeric","numeric","character","FormattedNumber","FormattedNumber"))
plot(1:length(table.leopards$OP),table.pubbandits$OP)
x<-1:length... | /archive/2012-13/pubbandits.R | no_license | tjconstant/ffs | R | false | false | 387 | r | require(XML)
theurl <- "http://fantasy.premierleague.com/entry/1568010/history/"
table.pubbandits <- readHTMLTable(theurl,header=T,which=1,colClasses=c("character","numeric","numeric","numeric","numeric","character","FormattedNumber","FormattedNumber"))
plot(1:length(table.leopards$OP),table.pubbandits$OP)
x<-1:length... |
# setwd("~/Desktop/index_tmp/visualization/timeuse-simulation")
setwd("/Users/1112055/Desktop/index_tmp/visualization/index-main_new")
library(magrittr)
library(data.table)
## read table
dat_all = fread('./files/case1_all.csv')
dat_min = fread('./files/case1_min.csv') %>% setnames('V1', 'min_cnt')
sido_list = uniq... | /data_case1.R | no_license | skt-pnb-share/index_jh | R | false | false | 6,170 | r | # setwd("~/Desktop/index_tmp/visualization/timeuse-simulation")
setwd("/Users/1112055/Desktop/index_tmp/visualization/index-main_new")
library(magrittr)
library(data.table)
## read table
dat_all = fread('./files/case1_all.csv')
dat_min = fread('./files/case1_min.csv') %>% setnames('V1', 'min_cnt')
sido_list = uniq... |
#' ISRaD.extra.Cstocks
#'
#' @description Calculates soil organic carbon stock
#' @param database ISRaD dataset object.
#' @details Function first fills lyr_bd_samp, lyr_c_org, lyr_c_org, lyr_coarse_tot. Notes: 1) SOC stocks can only be calculated if organic carbon concentration and bulk density data are available, 2) ... | /Rpkg/R/ISRaD.extra.Cstocks.R | no_license | moralesmaya/ISRaD | R | false | false | 3,685 | r | #' ISRaD.extra.Cstocks
#'
#' @description Calculates soil organic carbon stock
#' @param database ISRaD dataset object.
#' @details Function first fills lyr_bd_samp, lyr_c_org, lyr_c_org, lyr_coarse_tot. Notes: 1) SOC stocks can only be calculated if organic carbon concentration and bulk density data are available, 2) ... |
# Part of the mi package for multiple imputation of missing data
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Trustees of Columbia University
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Soft... | /mi/R/fit_model.R | no_license | ingted/R-Examples | R | false | false | 30,283 | r | # Part of the mi package for multiple imputation of missing data
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Trustees of Columbia University
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Soft... |
# Etudiez la corrélation entre les valeurs absolues de deux rentabilités journalières consécutives, entre leurs carrés. Peut-on profiter de ces dépendances ? Comment ?
.libPaths("/user/1/taram/Public/RLib")
library(tseries)
RentCarre <- (RentJ$Rt)^2
pdf("pacf_journaliere_Carre.pdf")
pacf(RentCarre, plot = T, main='P... | /q5.R | no_license | Charlene21/methodes_stats | R | false | false | 1,479 | r | # Etudiez la corrélation entre les valeurs absolues de deux rentabilités journalières consécutives, entre leurs carrés. Peut-on profiter de ces dépendances ? Comment ?
.libPaths("/user/1/taram/Public/RLib")
library(tseries)
RentCarre <- (RentJ$Rt)^2
pdf("pacf_journaliere_Carre.pdf")
pacf(RentCarre, plot = T, main='P... |
#x is a data frame
proportion <- function(x){
prop <- matrix(nrow = nrow(x), ncol = ncol(x)-1)
for(i in 1: nrow(x)){
for(j in 2:ncol(x)){
prop[i,j-1] <- paste(round(x[i,j]/sum(x[,j]),digits = 3)*100,"%")
}
}
prop <- cbind(x[1], prop)
colnames(prop) <- colnames(x)
dat... | /proportion.R | no_license | atsai5/jumpman23 | R | false | false | 335 | r | #x is a data frame
proportion <- function(x){
prop <- matrix(nrow = nrow(x), ncol = ncol(x)-1)
for(i in 1: nrow(x)){
for(j in 2:ncol(x)){
prop[i,j-1] <- paste(round(x[i,j]/sum(x[,j]),digits = 3)*100,"%")
}
}
prop <- cbind(x[1], prop)
colnames(prop) <- colnames(x)
dat... |
#this is for dataset B
new=read.table("/lustre/scratch115/teams/anderson/ibd_conditional/UK_only_analysis_B_results/UK_only_analysis_B.CD.1e_05.txt")
oldfilt=read.table("/lustre/scratch115/teams/anderson/ibd_conditional/UK_only_analysis_B_results_beforePCcorrection/UK_only_analysis_B.CD.1e_05.lowfreq.txt",head=T)
... | /compare_versions.R | no_license | moutsian/lm12_Scripts | R | false | false | 2,327 | r | #this is for dataset B
new=read.table("/lustre/scratch115/teams/anderson/ibd_conditional/UK_only_analysis_B_results/UK_only_analysis_B.CD.1e_05.txt")
oldfilt=read.table("/lustre/scratch115/teams/anderson/ibd_conditional/UK_only_analysis_B_results_beforePCcorrection/UK_only_analysis_B.CD.1e_05.lowfreq.txt",head=T)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browse_elements.R
\name{browse_elements}
\alias{browse_elements}
\title{Browse elements for description}
\usage{
browse_elements(pattern)
}
\arguments{
\item{pattern}{A case-insensitive perl expression or expressions to match in the long name... | /man/browse_elements.Rd | no_license | HughParsonage/heims | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browse_elements.R
\name{browse_elements}
\alias{browse_elements}
\title{Browse elements for description}
\usage{
browse_elements(pattern)
}
\arguments{
\item{pattern}{A case-insensitive perl expression or expressions to match in the long name... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colsplit2df.R
\name{print.colsplit2df}
\alias{print.colsplit2df}
\title{Prints a colsplit2df Object.}
\usage{
\method{print}{colsplit2df}(x, ...)
}
\arguments{
\item{x}{The colsplit2df object}
\item{\ldots}{ignored}
}
\description{
Prints a ... | /man/print.colsplit2df.Rd | no_license | hoodaly/qdap | R | false | true | 343 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colsplit2df.R
\name{print.colsplit2df}
\alias{print.colsplit2df}
\title{Prints a colsplit2df Object.}
\usage{
\method{print}{colsplit2df}(x, ...)
}
\arguments{
\item{x}{The colsplit2df object}
\item{\ldots}{ignored}
}
\description{
Prints a ... |
require(IKTrading)
require(Quandl)
source("quandCleanReturn.R")
#Energies
CME_wti2 <- Quandl("SCF/CME_CL2_OR", api_key="QwpBL4SFTYUEYH3qsWHs", transform="rdiff") #Crude
CME_NG2 <- Quandl("SCF/CME_NG2_OR", api_key="QwpBL4SFTYUEYH3qsWHs", transform="rdiff") #NatGas
CME_HO2 <- Quandl("SCF/CME_HO2_OR", api_key="QwpBL4SFTYU... | /second_contract.R | no_license | xiaopz0/theme_invest | R | false | false | 2,890 | r | require(IKTrading)
require(Quandl)
source("quandCleanReturn.R")
#Energies
CME_wti2 <- Quandl("SCF/CME_CL2_OR", api_key="QwpBL4SFTYUEYH3qsWHs", transform="rdiff") #Crude
CME_NG2 <- Quandl("SCF/CME_NG2_OR", api_key="QwpBL4SFTYUEYH3qsWHs", transform="rdiff") #NatGas
CME_HO2 <- Quandl("SCF/CME_HO2_OR", api_key="QwpBL4SFTYU... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/flags.R
\name{itkCompileFlags}
\alias{itkCompileFlags}
\title{return ITK compile flags}
\usage{
itkCompileFlags()
}
\description{
call this to get the compilation flags used for ITK and dependent software
}
\examples{
itkCompileFlags(... | /man/itkCompileFlags.Rd | no_license | hyphon81/ITKR | R | false | false | 346 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/flags.R
\name{itkCompileFlags}
\alias{itkCompileFlags}
\title{return ITK compile flags}
\usage{
itkCompileFlags()
}
\description{
call this to get the compilation flags used for ITK and dependent software
}
\examples{
itkCompileFlags(... |
# libraries
library(ggplot2)
library(RSQLite)
library(data.table)
library(stringr)
library(lubridate)
library(reshape2)
library(scales)
library(usefuncs)
library(tm)
library(magrittr)
# global params
kCommonContactsLimit = 15
me = TRUE
# set up db connection
dbdrv = dbDriver("SQLite")
db = dbConnect(dbdrv, "./ChatSto... | /whatsapp.R | no_license | yupimaki/whatsapp | R | false | false | 7,651 | r | # libraries
library(ggplot2)
library(RSQLite)
library(data.table)
library(stringr)
library(lubridate)
library(reshape2)
library(scales)
library(usefuncs)
library(tm)
library(magrittr)
# global params
kCommonContactsLimit = 15
me = TRUE
# set up db connection
dbdrv = dbDriver("SQLite")
db = dbConnect(dbdrv, "./ChatSto... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotYield}
\alias{plotYield}
\title{Plot the total yield of species through time}
\usage{
plotYield(
sim,
sim2,
species = dimnames(sim@n)$sp,
total = FALSE,
log = TRUE,
highlight = NULL,
...
)
}
\arguments{
\item{s... | /man/plotYield.Rd | no_license | adamkemberling/mizer | R | false | true | 2,438 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{plotYield}
\alias{plotYield}
\title{Plot the total yield of species through time}
\usage{
plotYield(
sim,
sim2,
species = dimnames(sim@n)$sp,
total = FALSE,
log = TRUE,
highlight = NULL,
...
)
}
\arguments{
\item{s... |
#' Calculate an optimal mapping weights (H) for a set of samples to a latent model (W.model)
#' This function will minimize mean((samples - W.model %*% H)^2)
#'
#' @param samples Samples to be projected onto W.model
#' @param W.model NMF factor model (genes x factors) for mapping to cells
#' @param n.threads Numbe... | /R/nnmf_project.R | no_license | ttriche/scNMF | R | false | false | 962 | r | #' Calculate an optimal mapping weights (H) for a set of samples to a latent model (W.model)
#' This function will minimize mean((samples - W.model %*% H)^2)
#'
#' @param samples Samples to be projected onto W.model
#' @param W.model NMF factor model (genes x factors) for mapping to cells
#' @param n.threads Numbe... |
\name{Table2.forestplot}
\alias{Table2.forestplot}
\title{
Generate a paper ready plot with a risk table and a foresplot
}
\description{
This function plots a table with the Odds/Hazard ratios (depending on the model type) with their confidence intervals and p-values and insert in the middle a foresplot.
}
\usage{
Tabl... | /man/Table2.forestplot.Rd | no_license | karpatit/mechkar | R | false | false | 1,749 | rd | \name{Table2.forestplot}
\alias{Table2.forestplot}
\title{
Generate a paper ready plot with a risk table and a foresplot
}
\description{
This function plots a table with the Odds/Hazard ratios (depending on the model type) with their confidence intervals and p-values and insert in the middle a foresplot.
}
\usage{
Tabl... |
library(dplyr)
filename<- "Coursera_DS3_Final.zip"
if (!file.exists(filename)){
fileURL<- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL,filename, method="curl")
}
if (!file.exists("UCI HAR Dataset")){
unzip(filename)
}
features <- read.table("UCI ... | /run_analysis.R | no_license | phoebeshayin/Getting-and-Cleaning-Data-Course-Project | R | false | false | 2,685 | r | library(dplyr)
filename<- "Coursera_DS3_Final.zip"
if (!file.exists(filename)){
fileURL<- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileURL,filename, method="curl")
}
if (!file.exists("UCI HAR Dataset")){
unzip(filename)
}
features <- read.table("UCI ... |
library(ggplot2)
library(RJDBC)
library(stringr)
library(data.table)
library(gdata)
library(plyr)
library(reshape2)
library(lubridate)
library(zoo)
library(forecast)
rm(list=ls())
### 1.Process Data and Demostrate Example ###
zillow_file<-"Your_Directory/zillow_data.csv"
# zillow_data.csv is the file you download he... | /Rent Prediction_zhendata.R | no_license | tuanab/Medium_Posts | R | false | false | 12,917 | r | library(ggplot2)
library(RJDBC)
library(stringr)
library(data.table)
library(gdata)
library(plyr)
library(reshape2)
library(lubridate)
library(zoo)
library(forecast)
rm(list=ls())
### 1.Process Data and Demostrate Example ###
zillow_file<-"Your_Directory/zillow_data.csv"
# zillow_data.csv is the file you download he... |
library(dplyr)
mydata <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
mydata1 <- filter(mydata, Date == "1/2/2007" | Date == "2/2/2007")
newdata <- mutate(mydata1, full_date = paste(mydata1$Date, mydata1$Time))
newdata$full_date <- strptime(newdata$full_date, format = "%d/%m... | /plot4.R | no_license | dirkm2577/ExData_Plotting1 | R | false | false | 1,966 | r | library(dplyr)
mydata <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
mydata1 <- filter(mydata, Date == "1/2/2007" | Date == "2/2/2007")
newdata <- mutate(mydata1, full_date = paste(mydata1$Date, mydata1$Time))
newdata$full_date <- strptime(newdata$full_date, format = "%d/%m... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
file_list <- list.files(path = directory, pattern = ".csv") ## Index for files in the directory
df <- data.frame() ## Blank data frame to load data
for(i in id) { ## Combined data frame from the indexed of the... | /R Programming/programassign_week2.R | no_license | derhall/datasciencecoursera | R | false | false | 571 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
file_list <- list.files(path = directory, pattern = ".csv") ## Index for files in the directory
df <- data.frame() ## Blank data frame to load data
for(i in id) { ## Combined data frame from the indexed of the... |
#!/usr/bin/env Rscript
usage <- "Usage:\
./generate_system.R (kryptotype dimension) (input dimension) (output dimension)\
\
This will generate a new system, randomly, by creating a directory,\
and the `params.R` file within that directory.\
It does not check if the system is minimal.
"
args <- if (interactive()) {... | /generate_system.R | no_license | joshseth/net_ratchet | R | false | false | 1,882 | r | #!/usr/bin/env Rscript
usage <- "Usage:\
./generate_system.R (kryptotype dimension) (input dimension) (output dimension)\
\
This will generate a new system, randomly, by creating a directory,\
and the `params.R` file within that directory.\
It does not check if the system is minimal.
"
args <- if (interactive()) {... |
# Yige Wu @ WashU 2020 Feb
## plot a heatmap with mutations and expression in epigenetic regulators and chramatin remodeling genes
# source ------------------------------------------------------------------
setwd(dir = "~/Box/")
source("./Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/ccRCC_snRNA_analysis/ccRCC_snRNA_share... | /sample_info/sample_set_overview_chromatin_remodeling.R | no_license | Chenmengpin/ccRCC_snRNA_analysis | R | false | false | 10,663 | r | # Yige Wu @ WashU 2020 Feb
## plot a heatmap with mutations and expression in epigenetic regulators and chramatin remodeling genes
# source ------------------------------------------------------------------
setwd(dir = "~/Box/")
source("./Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/ccRCC_snRNA_analysis/ccRCC_snRNA_share... |
## ----libraries, eval=FALSE-----------------------------------------------
## library(tidyverse)
## install.packages("tidyverse")
## update.packages()
## ----include=FALSE-------------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, message=FALSE, warning=FALSE)
## ----setup-------------... | /ToolkitSDP_R_Glossary.R | permissive | snowdj/college-going-toolkit-r | R | false | false | 17,603 | r | ## ----libraries, eval=FALSE-----------------------------------------------
## library(tidyverse)
## install.packages("tidyverse")
## update.packages()
## ----include=FALSE-------------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, message=FALSE, warning=FALSE)
## ----setup-------------... |
library(biomaRt)
ensembl = useMart("ensembl")
ensembl = useDataset("hsapiens_gene_ensembl", mart=ensembl)
#############################
context('Column name assignments')
#############################
## create two test data.frames
bad_result <- data.frame("Not a real column" = 1:2, "Ensembl Gene ID" = 3:4, check.na... | /tests/testthat/test_utilityFunctions.R | no_license | JianZhangSMU/biomaRt | R | false | false | 6,601 | r | library(biomaRt)
ensembl = useMart("ensembl")
ensembl = useDataset("hsapiens_gene_ensembl", mart=ensembl)
#############################
context('Column name assignments')
#############################
## create two test data.frames
bad_result <- data.frame("Not a real column" = 1:2, "Ensembl Gene ID" = 3:4, check.na... |
\name{eqlnormCensored}
\alias{eqlnormCensored}
\title{
Estimate Quantiles of a Lognormal Distribution Based on Type I Censored Data
}
\description{
Estimate quantiles of a \link[stats:Lognormal]{lognormal distribution} given a
sample of data that has been subjected to Type I censoring, and optionally
... | /man/eqlnormCensored.Rd | no_license | alexkowa/EnvStats | R | false | false | 19,230 | rd | \name{eqlnormCensored}
\alias{eqlnormCensored}
\title{
Estimate Quantiles of a Lognormal Distribution Based on Type I Censored Data
}
\description{
Estimate quantiles of a \link[stats:Lognormal]{lognormal distribution} given a
sample of data that has been subjected to Type I censoring, and optionally
... |
#
# 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/
#
library(shiny)
library(dplyr)
library(igraph)
library(networkD3)
library(data.table)
library(colorRamps)
library(g... | /webapp/futmondo/app.R | no_license | smdb21/futmondo | R | false | false | 22,035 | 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/
#
library(shiny)
library(dplyr)
library(igraph)
library(networkD3)
library(data.table)
library(colorRamps)
library(g... |
library(googlesheets)
library(dplyr)
library(shinyTree)
#table <- "responses"
# saveData <- function(data) {
# # Grab the Google Sheet
# sheet <- gs_title(table)
# # Add the data as a new row
# gs_add_row(sheet, input = data)
# }
lista<-readRDS("CBO.RDS")
indRnd<- sample(1:nrow(lista),1,F)
shinyServer(funct... | /Shiny/server.R | no_license | lamfo-unb/AutomationJobs | R | false | false | 7,237 | r | library(googlesheets)
library(dplyr)
library(shinyTree)
#table <- "responses"
# saveData <- function(data) {
# # Grab the Google Sheet
# sheet <- gs_title(table)
# # Add the data as a new row
# gs_add_row(sheet, input = data)
# }
lista<-readRDS("CBO.RDS")
indRnd<- sample(1:nrow(lista),1,F)
shinyServer(funct... |
\name{overlap_tree}
\alias{overlap_tree}
\docType{package}
\title{
Find common subtree.
}
\description{
Find common subtree.
}
\usage{
overlap_tree(trees)
}
\arguments{
\item{trees}{
List of tree object.s
}
}
\value{
Returns the largest tree that is a subtree of all trees in `trees'.
}
\seealso{
\code{\... | /man/overlap_tree.Rd | no_license | cbaumbach/treeFun | R | false | false | 902 | rd | \name{overlap_tree}
\alias{overlap_tree}
\docType{package}
\title{
Find common subtree.
}
\description{
Find common subtree.
}
\usage{
overlap_tree(trees)
}
\arguments{
\item{trees}{
List of tree object.s
}
}
\value{
Returns the largest tree that is a subtree of all trees in `trees'.
}
\seealso{
\code{\... |
#' print.summarytools
#'
#' Display \code{summarytools} objects in the console, in Web Browser or in
#' \emph{RStudio}'s Viewer, or write content to file.
#'
#' @usage
#' \method{print}{summarytools}(x, method = "pander", file = "",
#' append = FALSE, report.title = NA, table.classes = NA,
#' bootstrap.css = s... | /R/print.summarytools.R | no_license | DrRoad/summarytools | R | false | false | 78,261 | r | #' print.summarytools
#'
#' Display \code{summarytools} objects in the console, in Web Browser or in
#' \emph{RStudio}'s Viewer, or write content to file.
#'
#' @usage
#' \method{print}{summarytools}(x, method = "pander", file = "",
#' append = FALSE, report.title = NA, table.classes = NA,
#' bootstrap.css = s... |
#Excercise 1
#Peter Woo
install.packages("psych")
install.packages("plotrix")
library("plotrix")
library("psych")
y <- c(1, 2.5, 4, 5.5, 7, 8.5, 10, 11.5, 13, 14.5)
# The means
y <- c(1, 2.5, 4, 5.5, 7, 8.5, 10, 11.5, 13, 14.5)
## Arithmetic mean
i <- 1
n <- length(y)
my.sum <- 0
while (i < n+1) ... | /exercises/0.1/exercise0.1_peterwoo.R | no_license | ds-wm/atsa-2021 | R | false | false | 1,154 | r | #Excercise 1
#Peter Woo
install.packages("psych")
install.packages("plotrix")
library("plotrix")
library("psych")
y <- c(1, 2.5, 4, 5.5, 7, 8.5, 10, 11.5, 13, 14.5)
# The means
y <- c(1, 2.5, 4, 5.5, 7, 8.5, 10, 11.5, 13, 14.5)
## Arithmetic mean
i <- 1
n <- length(y)
my.sum <- 0
while (i < n+1) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geomhurricane.R
\name{create_points}
\alias{create_points}
\title{Creates a data.frame with points having (long, lat) as center, and the given wind radius.
Points are created between the range of start and end degrees, scaled by the scale fac... | /man/create_points.Rd | no_license | balajiambreshrajkumar/geomhurricane | R | false | true | 1,199 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geomhurricane.R
\name{create_points}
\alias{create_points}
\title{Creates a data.frame with points having (long, lat) as center, and the given wind radius.
Points are created between the range of start and end degrees, scaled by the scale fac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSNPpeakPairs.R
\name{plotSNPpeakPairs}
\alias{plotSNPpeakPairs}
\title{plotSNPpeakPairs}
\usage{
plotSNPpeakPairs(genotypeFile, SNPID, geneName, IP_BAMs, INPUT_BAMs, size.IP,
size.INPUT, geneModel, libraryType = "opposite", center = mea... | /man/plotSNPpeakPairs.Rd | no_license | scottzijiezhang/MyTools | R | false | true | 1,187 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSNPpeakPairs.R
\name{plotSNPpeakPairs}
\alias{plotSNPpeakPairs}
\title{plotSNPpeakPairs}
\usage{
plotSNPpeakPairs(genotypeFile, SNPID, geneName, IP_BAMs, INPUT_BAMs, size.IP,
size.INPUT, geneModel, libraryType = "opposite", center = mea... |
testlist <- list(rates = numeric(0), thresholds = c(-2.30331110816477e-156, -6.36358120662016e+305, -6.64678428260241e-287, NaN, NaN, -2.29449051279398e-156, -2.31184650176279e-156, -1.32083970121448e-284, 3.65207087186091e-306, NaN, NaN, NaN, 7.73071190387239e-12, 6.98306374891504e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610051951-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 535 | r | testlist <- list(rates = numeric(0), thresholds = c(-2.30331110816477e-156, -6.36358120662016e+305, -6.64678428260241e-287, NaN, NaN, -2.29449051279398e-156, -2.31184650176279e-156, -1.32083970121448e-284, 3.65207087186091e-306, NaN, NaN, NaN, 7.73071190387239e-12, 6.98306374891504e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... |
\name{svaluecol}
\alias{svaluecol}
\title{Representation of a value and its corresponding partition in a graph}
\description{performs the scatter diagram with the representation of a value for a variable colored according to a partition given by the user}
\usage{svaluecol(dfxy, z, xax = 1, yax = 2, method = c("squar... | /man/help_svaluecol.Rd | no_license | garonen/MVPARTwrap | R | false | false | 4,682 | rd | \name{svaluecol}
\alias{svaluecol}
\title{Representation of a value and its corresponding partition in a graph}
\description{performs the scatter diagram with the representation of a value for a variable colored according to a partition given by the user}
\usage{svaluecol(dfxy, z, xax = 1, yax = 2, method = c("squar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{extract_subtree}
\alias{extract_subtree}
\title{Extract Subtree}
\usage{
extract_subtree(x, top_node, reload = FALSE)
}
\arguments{
\item{x}{A 'pyDOID.owl.xml' object or the path to an OWL/RDF XML file that
can be instantiated... | /man/extract_subtree.Rd | permissive | DiseaseOntology/DO.utils | R | false | true | 935 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{extract_subtree}
\alias{extract_subtree}
\title{Extract Subtree}
\usage{
extract_subtree(x, top_node, reload = FALSE)
}
\arguments{
\item{x}{A 'pyDOID.owl.xml' object or the path to an OWL/RDF XML file that
can be instantiated... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_managed_prefix_list}
\alias{ec2_delete_managed_prefix_list}
\title{Deletes the specified managed prefix list}
\usage{
ec2_delete_managed_prefix_list(DryRun = NULL, PrefixListId)
}
\arguments{
\item{DryRun}{Ch... | /cran/paws.compute/man/ec2_delete_managed_prefix_list.Rd | permissive | paws-r/paws | R | false | true | 898 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_managed_prefix_list}
\alias{ec2_delete_managed_prefix_list}
\title{Deletes the specified managed prefix list}
\usage{
ec2_delete_managed_prefix_list(DryRun = NULL, PrefixListId)
}
\arguments{
\item{DryRun}{Ch... |
library(discSurv)
##################
# lifeTable
# Construct data set with 100 persons
TimeInput <- c(rep(1, 20), rep(2, 30), rep(3, 10), rep(4, 15), rep(5, 8), rep(6, 12), rep(7, 5))
EventInput <- c(rep(1, 10), rep(0, 10),
rep(1, 12), rep(0, 18),
rep(1, 7), rep(0, 3),
... | /tests/UnitTestsDiscSurvLifeTable.R | no_license | cran/discSurv | R | false | false | 4,788 | r | library(discSurv)
##################
# lifeTable
# Construct data set with 100 persons
TimeInput <- c(rep(1, 20), rep(2, 30), rep(3, 10), rep(4, 15), rep(5, 8), rep(6, 12), rep(7, 5))
EventInput <- c(rep(1, 10), rep(0, 10),
rep(1, 12), rep(0, 18),
rep(1, 7), rep(0, 3),
... |
######################################################################################
project.ACdata.migrantspos.160404<- function()
{
infile <- '~/duke/2016_AC/original_160212/RD02-01_ACDIS_Demography_Curated.rda'
load(infile)
amp <- subset(adem, !is.na(FirstHIVPositive))
tmp <- amp[, {
ans <- NA_real_
... | /pkg/misc/hivclu.ACprjcts.R | no_license | olli0601/hivclust | R | false | false | 75,376 | r | ######################################################################################
project.ACdata.migrantspos.160404<- function()
{
infile <- '~/duke/2016_AC/original_160212/RD02-01_ACDIS_Demography_Curated.rda'
load(infile)
amp <- subset(adem, !is.na(FirstHIVPositive))
tmp <- amp[, {
ans <- NA_real_
... |
# Create a long dataset
long_hist <- result_hist %>% gather(results, name, -1)
View(long_hist)
# Select relevant variables
long_hist1 <- long_hist %>% select(-results)
View(long_hist1)
# Rename variable
long_hist <- long_hist %>% rename(place = res)
# Change place variable to levels
long_hist$place <- factor(lon... | /calculations.R | no_license | andreslagerlof/fff_km | R | false | false | 4,128 | r |
# Create a long dataset
long_hist <- result_hist %>% gather(results, name, -1)
View(long_hist)
# Select relevant variables
long_hist1 <- long_hist %>% select(-results)
View(long_hist1)
# Rename variable
long_hist <- long_hist %>% rename(place = res)
# Change place variable to levels
long_hist$place <- factor(lon... |
#' Returns a path to an image file included in the specified package.
#' @export
find_image <- function(name, package, inst_dir_name = "extdata") {
if (missing(package)) {
stopifnot(file.exists(name))
return(tools::file_path_as_absolute(name))
}
find_extdata(name, ext = ".png", package = package, inst_dir... | /R/images.R | no_license | pedmiston/crotchet | R | false | false | 1,449 | r | #' Returns a path to an image file included in the specified package.
#' @export
find_image <- function(name, package, inst_dir_name = "extdata") {
if (missing(package)) {
stopifnot(file.exists(name))
return(tools::file_path_as_absolute(name))
}
find_extdata(name, ext = ".png", package = package, inst_dir... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score_F1.R
\name{score_one_minus_f1}
\alias{score_one_minus_f1}
\title{One Minus F1 Score}
\usage{
score_one_minus_f1(object, cutoff = 0.5, data = NULL, ...)
}
\arguments{
\item{object}{An object of class \code{explainer} created with functio... | /man/score_one_minus_f1.Rd | no_license | a3digit/auditor | R | false | true | 1,098 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/score_F1.R
\name{score_one_minus_f1}
\alias{score_one_minus_f1}
\title{One Minus F1 Score}
\usage{
score_one_minus_f1(object, cutoff = 0.5, data = NULL, ...)
}
\arguments{
\item{object}{An object of class \code{explainer} created with functio... |
library(highfrequency)
### Name: rBPCov
### Title: Realized BiPower Covariance
### Aliases: rBPCov
### Keywords: volatility
### ** Examples
# Realized Bipower Variance/Covariance for CTS aligned
# at 5 minutes.
data(sample_tdata);
data(sample_5minprices_jumps);
# Univariate:
rbpv = rBPCov( rdata = samp... | /data/genthat_extracted_code/highfrequency/examples/rBPCov.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 547 | r | library(highfrequency)
### Name: rBPCov
### Title: Realized BiPower Covariance
### Aliases: rBPCov
### Keywords: volatility
### ** Examples
# Realized Bipower Variance/Covariance for CTS aligned
# at 5 minutes.
data(sample_tdata);
data(sample_5minprices_jumps);
# Univariate:
rbpv = rBPCov( rdata = samp... |
#' @title Harmonize field names
#' @description Convert field codes to names
#' @param x a vector of field codes
#' @return Vector of field names
#' @export
#' @author Leo Lahti \email{leo.lahti@@iki.fi}
#' @references See citation("bibliographica")
#' @examples x2 <- harmonize_field_names("041a")
#' @details For MARC... | /R/harmonize_field_names.R | no_license | jmarjane/bibliographica | R | false | false | 710 | r | #' @title Harmonize field names
#' @description Convert field codes to names
#' @param x a vector of field codes
#' @return Vector of field names
#' @export
#' @author Leo Lahti \email{leo.lahti@@iki.fi}
#' @references See citation("bibliographica")
#' @examples x2 <- harmonize_field_names("041a")
#' @details For MARC... |
## DESC : CACHEMATRIX.R
## Matrix inversion is usually a costly computation
## and there may be some benefit to caching the inverse of a matrix
## rather than computing it repeatedly
## MAKECACHEMATRIX creates a special "matrix",
## which is really a list containing a function to do following:
##
## Set the value o... | /cachematrix.R | no_license | mkanchan/ProgrammingAssignment2 | R | false | false | 1,584 | r | ## DESC : CACHEMATRIX.R
## Matrix inversion is usually a costly computation
## and there may be some benefit to caching the inverse of a matrix
## rather than computing it repeatedly
## MAKECACHEMATRIX creates a special "matrix",
## which is really a list containing a function to do following:
##
## Set the value o... |
sample_names=read.csv("O:/JOLabShared/SaraDrescher/Molecular_clock/sample_names_second_run.csv", stringsAsFactors = FALSE)
sample_names%<>%mutate(fragment=unlist(strsplit(Sample_Name, split="_"))[grepl("F.", unlist(strsplit(Sample_Name, split="_")))])
#this pulls the particular fragment out of the sample name
#nano da... | /Old things not currently needed/wrapper script.R | no_license | drescs/Molecular_clock | R | false | false | 3,023 | r | sample_names=read.csv("O:/JOLabShared/SaraDrescher/Molecular_clock/sample_names_second_run.csv", stringsAsFactors = FALSE)
sample_names%<>%mutate(fragment=unlist(strsplit(Sample_Name, split="_"))[grepl("F.", unlist(strsplit(Sample_Name, split="_")))])
#this pulls the particular fragment out of the sample name
#nano da... |
######## This script has been adapted for a new dataset by Douglas Sponsler and Reed Johnson (johnson.5005@osu.edu).
######## Unused portions of the original script have been commented out but not deleted. Additions are followed by the tag # Sponsler:
# Electronic Supplementary Material 4 - R script to simulate dance... | /2020 Soybean/ESM_4_2020_soybean.R | no_license | johnson5005/ag-bee-dance | R | false | false | 15,246 | r | ######## This script has been adapted for a new dataset by Douglas Sponsler and Reed Johnson (johnson.5005@osu.edu).
######## Unused portions of the original script have been commented out but not deleted. Additions are followed by the tag # Sponsler:
# Electronic Supplementary Material 4 - R script to simulate dance... |
install.packages("installr")
require(installr)
install.R()
| /R/R updates.R | no_license | sjngjang/emergingTech_net | R | false | false | 61 | r | install.packages("installr")
require(installr)
install.R()
|
library(genefu)
library(varhandle)
library(caret)
source("./RNAseq/TCGA_preproc.R")
train_brca_pam50 <- function(countDF, colIgnore = 1:4, ensg_col = "ensembl_gene_id", entrez_col = "entrezgene"){
map_cluster2molSubtype <- function(clusterVec, subtypeMap){
numSubtypes <- nrow(subtypeMap)
vecLen <- length(clu... | /RNAseq/brca_subtyping.R | no_license | ewaldvandyk/GenImmPhe | R | false | false | 5,669 | r | library(genefu)
library(varhandle)
library(caret)
source("./RNAseq/TCGA_preproc.R")
train_brca_pam50 <- function(countDF, colIgnore = 1:4, ensg_col = "ensembl_gene_id", entrez_col = "entrezgene"){
map_cluster2molSubtype <- function(clusterVec, subtypeMap){
numSubtypes <- nrow(subtypeMap)
vecLen <- length(clu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/converters.R
\name{unjson}
\alias{unjson}
\title{unjson}
\usage{
unjson(x)
}
\arguments{
\item{x}{input string or connection (if not open, this function opens it)}
}
\value{
a \code{list} of lists
}
\description{
Convert a JSON string in memo... | /aurelius/man/unjson.Rd | permissive | mafpimentel/hadrian | R | false | true | 399 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/converters.R
\name{unjson}
\alias{unjson}
\title{unjson}
\usage{
unjson(x)
}
\arguments{
\item{x}{input string or connection (if not open, this function opens it)}
}
\value{
a \code{list} of lists
}
\description{
Convert a JSON string in memo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{get_cidr_distance_matrix_from_raw_counts}
\alias{get_cidr_distance_matrix_from_raw_counts}
\title{Compute distance between samples}
\usage{
get_cidr_distance_matrix_from_raw_counts(cell_by_ensembl_mat = matrix())
}
\... | /man/get_cidr_distance_matrix_from_raw_counts.Rd | no_license | cgawad/rnaseqUtils | R | false | true | 565 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utility_functions.R
\name{get_cidr_distance_matrix_from_raw_counts}
\alias{get_cidr_distance_matrix_from_raw_counts}
\title{Compute distance between samples}
\usage{
get_cidr_distance_matrix_from_raw_counts(cell_by_ensembl_mat = matrix())
}
\... |
library(sampling)
### Name: UPtillepi2
### Title: Joint inclusion probabilties for Tille sampling
### Aliases: UPtillepi2
### Keywords: survey
### ** Examples
#defines the prescribed inclusion probabilities
pik=c(0.2,0.7,0.8,0.5,0.4,0.4)
pik_joint=UPtillepi2(pik)
#the joint inclusion probabilities
pik_joint
| /data/genthat_extracted_code/sampling/examples/UPtillepi2.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 319 | r | library(sampling)
### Name: UPtillepi2
### Title: Joint inclusion probabilties for Tille sampling
### Aliases: UPtillepi2
### Keywords: survey
### ** Examples
#defines the prescribed inclusion probabilities
pik=c(0.2,0.7,0.8,0.5,0.4,0.4)
pik_joint=UPtillepi2(pik)
#the joint inclusion probabilities
pik_joint
|
#Reference:Wirbel J, Pyl PT, Kartal E, et al. Meta-analysis of fecal metagenomes
#reveals global microbial signatures that are specific for colorectal cancer.
#Nat Med 2019;25:679-689.
#Description: Machine Learning to Find Microbial Signature Across Cohorts
rm(list=ls())
#libraries
library("tidyverse")
library("SI... | /train_model_cluster.R | no_license | FarnazFouladi/RYGB_IntegratedAnalysis | R | false | false | 7,136 | r | #Reference:Wirbel J, Pyl PT, Kartal E, et al. Meta-analysis of fecal metagenomes
#reveals global microbial signatures that are specific for colorectal cancer.
#Nat Med 2019;25:679-689.
#Description: Machine Learning to Find Microbial Signature Across Cohorts
rm(list=ls())
#libraries
library("tidyverse")
library("SI... |
# Reading, naming and subsetting data
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(url,temp)
data <- read.table(unz(temp, "household_power_consumption.txt"), skip=1,sep=";")
unlink(temp)
names(data) <- c("Date","Time","Global_active_pow... | /plot4.R | no_license | capillajos/ExData_Plotting1 | R | false | false | 1,728 | r | # Reading, naming and subsetting data
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
temp <- tempfile()
download.file(url,temp)
data <- read.table(unz(temp, "household_power_consumption.txt"), skip=1,sep=";")
unlink(temp)
names(data) <- c("Date","Time","Global_active_pow... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-lung_cancer.R
\docType{data}
\name{lung_cancer}
\alias{lung_cancer}
\title{Lung Cancer by whether or not a person smokes and City.}
\format{An Array with 2*2*8 dimensions
\describe{
\item{Smoking}{Whether or not a person smokes.}... | /man/lung_cancer.Rd | no_license | cran/flatr | R | false | true | 589 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-lung_cancer.R
\docType{data}
\name{lung_cancer}
\alias{lung_cancer}
\title{Lung Cancer by whether or not a person smokes and City.}
\format{An Array with 2*2*8 dimensions
\describe{
\item{Smoking}{Whether or not a person smokes.}... |
\name{Var1}
\alias{Var1}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute the estimate of the covariance of the statistic in test gLRT1
}
\description{
The function computes the estimate of the covariance of test statistics of the test proposed by Zhao and Sun (2004).
}
%\usage{
... | /man/Var1.Rd | no_license | cran/glrt | R | false | false | 1,387 | rd | \name{Var1}
\alias{Var1}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Compute the estimate of the covariance of the statistic in test gLRT1
}
\description{
The function computes the estimate of the covariance of test statistics of the test proposed by Zhao and Sun (2004).
}
%\usage{
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create-anim-pulse-line.R
\name{create_anim_pulse_line}
\alias{create_anim_pulse_line}
\title{Create a simple pulsing animation in which the width of the line varies}
\usage{
create_anim_pulse_line(
size1 = 0,
size2 = 10,
duration = 4,
... | /man/create_anim_pulse_line.Rd | permissive | coolbutuseless/svganim | R | false | true | 1,187 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create-anim-pulse-line.R
\name{create_anim_pulse_line}
\alias{create_anim_pulse_line}
\title{Create a simple pulsing animation in which the width of the line varies}
\usage{
create_anim_pulse_line(
size1 = 0,
size2 = 10,
duration = 4,
... |
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616431853e-119, -6.80033518839696e+41, 2.6... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615828289-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 734 | r | testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616431853e-119, -6.80033518839696e+41, 2.6... |
\name{CAAMoonPerigeeApogee_MeanPerigee}
\alias{CAAMoonPerigeeApogee_MeanPerigee}
\title{
CAAMoonPerigeeApogee_MeanPerigee
}
\description{
CAAMoonPerigeeApogee_MeanPerigee
}
\usage{
CAAMoonPerigeeApogee_MeanPerigee(k)
}
\arguments{
\item{k}{
k The integer value which gives a perigee.
}
}
\details{
}
... | /man/CAAMoonPerigeeApogee_MeanPerigee.Rd | no_license | helixcn/skycalc | R | false | false | 666 | rd | \name{CAAMoonPerigeeApogee_MeanPerigee}
\alias{CAAMoonPerigeeApogee_MeanPerigee}
\title{
CAAMoonPerigeeApogee_MeanPerigee
}
\description{
CAAMoonPerigeeApogee_MeanPerigee
}
\usage{
CAAMoonPerigeeApogee_MeanPerigee(k)
}
\arguments{
\item{k}{
k The integer value which gives a perigee.
}
}
\details{
}
... |
ezddm <- function(propCorrect, rtCorrectVariance_seconds, rtCorrectMean_seconds, s = 0.1, nTrials = NULL) {
# s is scaling parameter (defaults to 0.1 in Ratcliff's models)
s2 <- s^2 # variance
v <- as.numeric(NA)
a <- as.numeric(NA)
Ter <- as.numeric(NA)
# if propCorrect equals 0, 0.5, or 1,... | /R/other.R | no_license | rtdists/fddm | R | false | false | 1,679 | r |
ezddm <- function(propCorrect, rtCorrectVariance_seconds, rtCorrectMean_seconds, s = 0.1, nTrials = NULL) {
# s is scaling parameter (defaults to 0.1 in Ratcliff's models)
s2 <- s^2 # variance
v <- as.numeric(NA)
a <- as.numeric(NA)
Ter <- as.numeric(NA)
# if propCorrect equals 0, 0.5, or 1,... |
# Rozdział 4 - regresja logistyczna
rm(list=ls())
challenger_dataset <- read.csv("./Dane/05 - challenger.csv",TRUE,",")
#print the dataset
head(challenger_dataset)
challenger_dataset
#we are after whether the o-ring has failed or not so 0/1 accordingly
challenger_dataset["Fail"] <- ifelse(challenger_data... | /RML_043.R | no_license | Akademia-Altkom/KursR03 | R | false | false | 914 | r | # Rozdział 4 - regresja logistyczna
rm(list=ls())
challenger_dataset <- read.csv("./Dane/05 - challenger.csv",TRUE,",")
#print the dataset
head(challenger_dataset)
challenger_dataset
#we are after whether the o-ring has failed or not so 0/1 accordingly
challenger_dataset["Fail"] <- ifelse(challenger_data... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmmixed.R
\name{lmmixed}
\alias{lmmixed}
\title{Mixed effects linear regression models: \code{finalfit} model wrapper}
\usage{
lmmixed(.data, dependent, explanatory, random_effect)
}
\arguments{
\item{.data}{Dataframe.}
\item{dependent}{Char... | /man/lmmixed.Rd | no_license | guhjy/finalfit | R | false | true | 1,830 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmmixed.R
\name{lmmixed}
\alias{lmmixed}
\title{Mixed effects linear regression models: \code{finalfit} model wrapper}
\usage{
lmmixed(.data, dependent, explanatory, random_effect)
}
\arguments{
\item{.data}{Dataframe.}
\item{dependent}{Char... |
context("dplyr rowSums")
sc <- testthat_spark_connection()
test_that("rowSums works as expected", {
df <- do.call(
tibble::tibble,
lapply(
seq(6L),
function(x) {
column <- list(runif(10))
names(column) <- paste0("col", x)
column
}
) %>%
unlist(recursive = ... | /tests/testthat/test-dplyr-row-sums.R | permissive | edgararuiz/sparklyr | R | false | false | 1,120 | r | context("dplyr rowSums")
sc <- testthat_spark_connection()
test_that("rowSums works as expected", {
df <- do.call(
tibble::tibble,
lapply(
seq(6L),
function(x) {
column <- list(runif(10))
names(column) <- paste0("col", x)
column
}
) %>%
unlist(recursive = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/puls.R
\name{splitter}
\alias{splitter}
\title{Split Function}
\usage{
splitter(
toclust.fd,
split_row,
frame,
cloc,
dist,
dsubs,
dsubsname,
weights,
method
)
}
\arguments{
\item{toclust.fd}{A functional d... | /man/splitter.Rd | no_license | cran/puls | R | false | true | 1,300 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/puls.R
\name{splitter}
\alias{splitter}
\title{Split Function}
\usage{
splitter(
toclust.fd,
split_row,
frame,
cloc,
dist,
dsubs,
dsubsname,
weights,
method
)
}
\arguments{
\item{toclust.fd}{A functional d... |
/4_RScripts/0_DefaultRScripts/KL - R Codes/EU_Labor_Stat_STRATA_Data_Preparation.R | no_license | benksam/101_EnergyRproject | R | false | false | 21,071 | r | ||
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/scale_nodes.R
\name{scale_nodes}
\alias{scale_nodes}
\title{Create numerical and color scales for node attributes}
\usage{
scale_nodes(nodes_df, to_scale, node_attr, range, scale_type = "linear")
}
\arguments{
\item{nodes_df}{a data f... | /man/scale_nodes.Rd | no_license | alforj/DiagrammeR | R | false | false | 1,282 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/scale_nodes.R
\name{scale_nodes}
\alias{scale_nodes}
\title{Create numerical and color scales for node attributes}
\usage{
scale_nodes(nodes_df, to_scale, node_attr, range, scale_type = "linear")
}
\arguments{
\item{nodes_df}{a data f... |
#' Nba Data
#'
#' Data about performance statistics and salaries of 290 Nba players during the 2016-17 season
#'
#' @docType data
#'
#' @usage data(nba)
#'
#' @format An object of class \code{"data.frame"}.
#'
#' @keywords datasets
#'
#' @source \href{http://www.basketball-reference.com/}{QTL Archive} \href{http://stat... | /R/nba-data.R | no_license | nschaefer1211/OSE | R | false | false | 350 | r | #' Nba Data
#'
#' Data about performance statistics and salaries of 290 Nba players during the 2016-17 season
#'
#' @docType data
#'
#' @usage data(nba)
#'
#' @format An object of class \code{"data.frame"}.
#'
#' @keywords datasets
#'
#' @source \href{http://www.basketball-reference.com/}{QTL Archive} \href{http://stat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions_LCP.R
\name{fars_read_years}
\alias{fars_read_years}
\title{fars_read_years}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{Is a numeric vector corresponding to the series of years for
which you want to extract month... | /man/fars_read_years.Rd | no_license | Darwinita/BuildinganRPackageLCP | R | false | true | 1,301 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fars_functions_LCP.R
\name{fars_read_years}
\alias{fars_read_years}
\title{fars_read_years}
\usage{
fars_read_years(years)
}
\arguments{
\item{years}{Is a numeric vector corresponding to the series of years for
which you want to extract month... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/new_papr.R
\name{new_papr}
\alias{new_papr}
\title{Create a new research compendium}
\usage{
new_papr()
}
\description{
Create a new research compendium
}
| /man/new_papr.Rd | permissive | wmoldham/paprpkgr | R | false | true | 233 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/new_papr.R
\name{new_papr}
\alias{new_papr}
\title{Create a new research compendium}
\usage{
new_papr()
}
\description{
Create a new research compendium
}
|
#' @import shiny
#'
#' @noRd
TaxCovUI <- function(id) {
return(
fluidPage(
fluidRow(
column(
4,
uiOutput(NS(id, "taxa.table")),
tableOutput(NS(id, "preview"))
),
column(4, uiOutput(NS(id, "taxa.name.type")) ),
column(4, uiOutput(NS(id, "taxa.auth... | /R/eal_6_TaxCov.R | permissive | charlycou/MetaShARK-v2 | R | false | false | 6,129 | r | #' @import shiny
#'
#' @noRd
TaxCovUI <- function(id) {
return(
fluidPage(
fluidRow(
column(
4,
uiOutput(NS(id, "taxa.table")),
tableOutput(NS(id, "preview"))
),
column(4, uiOutput(NS(id, "taxa.name.type")) ),
column(4, uiOutput(NS(id, "taxa.auth... |
# Count number of aligned locations of reads with different length
# use snow package to distribute tasks
SC.ClusterAlignCount<-function(seq, reference, NC=8, mismatch=0, verbose=TRUE) {
#seq String vector, the read sequence to be aligned
#reference Name of the reference genome
#NC Number of Snow clusters
#mismatch T... | /function/SC.ClusterAlignCount.R | no_license | zhezhangsh/CHOPseq | R | false | false | 1,752 | r | # Count number of aligned locations of reads with different length
# use snow package to distribute tasks
SC.ClusterAlignCount<-function(seq, reference, NC=8, mismatch=0, verbose=TRUE) {
#seq String vector, the read sequence to be aligned
#reference Name of the reference genome
#NC Number of Snow clusters
#mismatch T... |
\alias{gdk-pixbuf-util}
\name{gdk-pixbuf-util}
\title{Utilities}
\description{Utility and miscellaneous convenience functions.}
\section{Methods and Functions}{
\code{\link{gdkPixbufAddAlpha}(object, substitute.color, r, g, b)}\cr
\code{\link{gdkPixbufCopyArea}(object, src.x, src.y, width, height, dest.pixbuf, dest.x, ... | /man/gdk-pixbuf-util.Rd | no_license | cran/RGtk2.10 | R | false | false | 939 | rd | \alias{gdk-pixbuf-util}
\name{gdk-pixbuf-util}
\title{Utilities}
\description{Utility and miscellaneous convenience functions.}
\section{Methods and Functions}{
\code{\link{gdkPixbufAddAlpha}(object, substitute.color, r, g, b)}\cr
\code{\link{gdkPixbufCopyArea}(object, src.x, src.y, width, height, dest.pixbuf, dest.x, ... |
model_evalUI <- function(id){
navlistPanel(id = NS(id, "navpanel_eval"), "Evaluation", widths = c(2,10),
tabPanel("Info",
uiOutput(NS(id,"Oui_eval_info")),
actionButton(NS(id, "btn_allMetric"),
"Collect model performan... | /deliverables/apps/R/model_eval.R | permissive | suyiinang/ourshinyPET | R | false | false | 10,198 | r | model_evalUI <- function(id){
navlistPanel(id = NS(id, "navpanel_eval"), "Evaluation", widths = c(2,10),
tabPanel("Info",
uiOutput(NS(id,"Oui_eval_info")),
actionButton(NS(id, "btn_allMetric"),
"Collect model performan... |
library(rmarkdown)
render("/nfs/research1/marioni/alsu/geneBasis/am_geneBasis/generateData/get_selection_diff_dist/melanoma/gene_selection.Rmd")
| /generateData/get_selection_diff_dist/melanoma/run_rmd.R | no_license | r3fang/am_geneBasis | R | false | false | 146 | r | library(rmarkdown)
render("/nfs/research1/marioni/alsu/geneBasis/am_geneBasis/generateData/get_selection_diff_dist/melanoma/gene_selection.Rmd")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.