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 |
|---|---|---|---|---|---|---|---|---|---|
#' Title
#'
#' @param infiles
#' @param outfile
#' @param resolution
#' @param mirror
#' @param tune
#' @param batch_size
#' @param temp_dir
#' @param start_batch
#'
#' @return
#' @export
#'
#' @examples
rorschach_drama <- function(
infiles,
outfile,
overwrite = FALSE,
resolution = c(1920, 1080),
mirror = 4, ... | /R/rorschach_drama.R | no_license | s-fleck/rdm | R | false | false | 9,983 | r | #' Title
#'
#' @param infiles
#' @param outfile
#' @param resolution
#' @param mirror
#' @param tune
#' @param batch_size
#' @param temp_dir
#' @param start_batch
#'
#' @return
#' @export
#'
#' @examples
rorschach_drama <- function(
infiles,
outfile,
overwrite = FALSE,
resolution = c(1920, 1080),
mirror = 4, ... |
#'
#' Taxa de mortalidade específica por neoplasias malignas - C.10
#'
#' Follows the RIPSA 2012 card \url{http://fichas.ripsa.org.br/2012/c-10}
#'
#' @param conn Connection object created with \code{\link{pcdas_connect}}.
#' @param ano numeric. Year.
#' @param multi Indicator multiplier. Defaults to RIPSA recommendati... | /R/indi_c.10.R | no_license | rfsaldanha/pcdasindi-1 | R | false | false | 5,129 | r | #'
#' Taxa de mortalidade específica por neoplasias malignas - C.10
#'
#' Follows the RIPSA 2012 card \url{http://fichas.ripsa.org.br/2012/c-10}
#'
#' @param conn Connection object created with \code{\link{pcdas_connect}}.
#' @param ano numeric. Year.
#' @param multi Indicator multiplier. Defaults to RIPSA recommendati... |
ET <- function(data, constants, ...) UseMethod("ET")
ET.default <- function(data, constants, crop=NULL, alpha=NULL, solar=NULL, wind=NULL, ...) {
if (is.null(solar)) {
if (!is.null(data$Rs)) {
solar = "data"
} else if (!is.null(data$n)) {
solar = "sunshine hours"
} else if (!i... | /Evapotranspiration/R/Evapotranspiration.R | no_license | ingted/R-Examples | R | false | false | 156,195 | r |
ET <- function(data, constants, ...) UseMethod("ET")
ET.default <- function(data, constants, crop=NULL, alpha=NULL, solar=NULL, wind=NULL, ...) {
if (is.null(solar)) {
if (!is.null(data$Rs)) {
solar = "data"
} else if (!is.null(data$n)) {
solar = "sunshine hours"
} else if (!i... |
# quick-portfolio.r
# Version. 01
library(quantmod)
library(PerformanceAnalytics)
library(PortfolioAnalytics)
tic = Sys.time() # time the whole process
Sys.setenv(TZ="Asia/Hong Kong") # change time zone as required
#Sys.setenv(TZ="GMT") # switch to GMT if needed
fromd=Sys.Date()-10... | /quick-portfolio.r | no_license | qqtop/Dabble | R | false | false | 6,368 | r |
# quick-portfolio.r
# Version. 01
library(quantmod)
library(PerformanceAnalytics)
library(PortfolioAnalytics)
tic = Sys.time() # time the whole process
Sys.setenv(TZ="Asia/Hong Kong") # change time zone as required
#Sys.setenv(TZ="GMT") # switch to GMT if needed
fromd=Sys.Date()-10... |
options(digits=3)
options(scipen = 999)
#install.packages("RMark")
library(RMark)
install.packages("doParallel") ### install package in dockerfile
install.packages("dplyr") ### install package in dockerfile
library(doParallel)
MSUR <- read.table("/Users/alanleach/Documents/Github/mate_survival/lyttleRMark/code/data/s... | /code/sample_parallel.R | permissive | Wilfongjt/lyttleRMark | R | false | false | 4,838 | r | options(digits=3)
options(scipen = 999)
#install.packages("RMark")
library(RMark)
install.packages("doParallel") ### install package in dockerfile
install.packages("dplyr") ### install package in dockerfile
library(doParallel)
MSUR <- read.table("/Users/alanleach/Documents/Github/mate_survival/lyttleRMark/code/data/s... |
library(RMixpanel)
### Name: mixpanelGetProfiles
### Title: Get Profiles From Mixpanel API
### Aliases: mixpanelGetProfiles
### Keywords: mixpanel people
### ** Examples
## Not run:
##D ## Fill in here the API token, key and secret as found on
##D ## www.mixpanel.com - Account -> Projects.
##D account = mixpanel... | /data/genthat_extracted_code/RMixpanel/examples/mixpanelGetProfiles.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 727 | r | library(RMixpanel)
### Name: mixpanelGetProfiles
### Title: Get Profiles From Mixpanel API
### Aliases: mixpanelGetProfiles
### Keywords: mixpanel people
### ** Examples
## Not run:
##D ## Fill in here the API token, key and secret as found on
##D ## www.mixpanel.com - Account -> Projects.
##D account = mixpanel... |
library(factoextra)
library(ggplot2)
tan_cca_sp <- read.csv("tan_cca_sp.csv", header=FALSE, row.names=1)
View(tan_cca_sp)
rowsum=apply(tan_cca_sp, 1, sum)
colsum=apply(tan_cca_sp, 2, sum)
resum= tan_cca_sp[rowsum > 0, colsum > 0]
dd <- dist(scale(resum), method = "euclidean")
hc <- hclust(dd, method = "ward.D2")
fviz... | /graphic22_and_23.r | no_license | leopregnolato/data_analysis_master | R | false | false | 434 | r | library(factoextra)
library(ggplot2)
tan_cca_sp <- read.csv("tan_cca_sp.csv", header=FALSE, row.names=1)
View(tan_cca_sp)
rowsum=apply(tan_cca_sp, 1, sum)
colsum=apply(tan_cca_sp, 2, sum)
resum= tan_cca_sp[rowsum > 0, colsum > 0]
dd <- dist(scale(resum), method = "euclidean")
hc <- hclust(dd, method = "ward.D2")
fviz... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inputVerification.R
\name{getLowCountSampleFiltered}
\alias{getLowCountSampleFiltered}
\title{Verify that samples contain at least a lowest number of values}
\usage{
getLowCountSampleFiltered(
dataMatrix,
groups,
threshold = 15,
stopI... | /man/getLowCountSampleFiltered.Rd | no_license | ComputationalProteomics/NormalyzerDE | R | false | true | 721 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inputVerification.R
\name{getLowCountSampleFiltered}
\alias{getLowCountSampleFiltered}
\title{Verify that samples contain at least a lowest number of values}
\usage{
getLowCountSampleFiltered(
dataMatrix,
groups,
threshold = 15,
stopI... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSegregation.R
\name{plotSegregation}
\alias{plotSegregation}
\title{Pedigree plot for segregation analysis}
\usage{
plotSegregation(
x,
affected = NULL,
unknown = NULL,
proband = NULL,
carriers = NULL,
homozygous = NULL,
non... | /man/plotSegregation.Rd | no_license | magnusdv/segregatr | R | false | true | 2,770 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotSegregation.R
\name{plotSegregation}
\alias{plotSegregation}
\title{Pedigree plot for segregation analysis}
\usage{
plotSegregation(
x,
affected = NULL,
unknown = NULL,
proband = NULL,
carriers = NULL,
homozygous = NULL,
non... |
d <- haven::read_sav("./data/structure_2015_with_class.sav")
label_data <- data.frame()
for (i in 1:ncol(d)){
df <- data.frame()
code <- names(d[i])
name <- attributes(d[[i]])$label
labels <- names(attributes(d[[i]])$labels)
if (is.null(labels)){
values = unique(d[[i]])
labels=NA
} else {
value... | /code/create_data.R | no_license | muuankarski/aisurvey_web | R | false | false | 1,141 | r | d <- haven::read_sav("./data/structure_2015_with_class.sav")
label_data <- data.frame()
for (i in 1:ncol(d)){
df <- data.frame()
code <- names(d[i])
name <- attributes(d[[i]])$label
labels <- names(attributes(d[[i]])$labels)
if (is.null(labels)){
values = unique(d[[i]])
labels=NA
} else {
value... |
df_train1 <- read.csv("C:/Users/anishjoshi500/Downloads/KaggleAirbnb/xnew.csv")
summary(df_train1)
attach(df_train1)
View(df_train1)
#str(df_train1)
a<-array(1:4999)
a[1:4999]<-c(format(as.Date(date_account_created), "%Y"))
print(a)
df_train1$year <- 2010
index <- which(a==2010)
df_train1$year[index] <- 2010
index1 <- ... | /5000clean.r | no_license | pallavikaran/DataScienceAirBnB | R | false | false | 4,586 | r | df_train1 <- read.csv("C:/Users/anishjoshi500/Downloads/KaggleAirbnb/xnew.csv")
summary(df_train1)
attach(df_train1)
View(df_train1)
#str(df_train1)
a<-array(1:4999)
a[1:4999]<-c(format(as.Date(date_account_created), "%Y"))
print(a)
df_train1$year <- 2010
index <- which(a==2010)
df_train1$year[index] <- 2010
index1 <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jackHWE.R
\name{jackHWE}
\alias{jackHWE}
\alias{jackInfluential}
\alias{plot.jack.influential}
\alias{.alleleFreqFormat}
\title{Hardy-Weinberg Equlibrium Jackknife}
\usage{
jackHWE(g, exclude.num = 1, min.hwe.samples = 5, show.progress = TRUE... | /man/jackHWE.Rd | no_license | EricArcher/strataG | R | false | true | 2,774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jackHWE.R
\name{jackHWE}
\alias{jackHWE}
\alias{jackInfluential}
\alias{plot.jack.influential}
\alias{.alleleFreqFormat}
\title{Hardy-Weinberg Equlibrium Jackknife}
\usage{
jackHWE(g, exclude.num = 1, min.hwe.samples = 5, show.progress = TRUE... |
#' Mean beta diversity for focal cell
#'
#' This function computes the mean beta-diversity between the focal cell and its neighboring cells (defined according to the radius).
#' @param focal.cell rownames of the focal cell to estimate completeness.
#' @param grid.with.species a data.frame with long, lat, id.cell an... | /R/focal.cell.beta.mean.R | no_license | kcilleros/completeness | R | false | false | 3,269 | r | #' Mean beta diversity for focal cell
#'
#' This function computes the mean beta-diversity between the focal cell and its neighboring cells (defined according to the radius).
#' @param focal.cell rownames of the focal cell to estimate completeness.
#' @param grid.with.species a data.frame with long, lat, id.cell an... |
test_that("error handling works", {
df <- data.frame(x = 1, y = 2, z = 3)
expect_error(
repeat_baseline_values(df, score, x, y, 1),
"Column `score` not found in `df`.",
class = "error_column_not_found"
)
expect_error(
repeat_baseline_values(df, x, id, y, 1),
"Column `id` not found in `df`."... | /tests/testthat/test-repeat_baseline_values.R | no_license | cran/lvmisc | R | false | false | 1,205 | r | test_that("error handling works", {
df <- data.frame(x = 1, y = 2, z = 3)
expect_error(
repeat_baseline_values(df, score, x, y, 1),
"Column `score` not found in `df`.",
class = "error_column_not_found"
)
expect_error(
repeat_baseline_values(df, x, id, y, 1),
"Column `id` not found in `df`."... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-loss.R
\name{nn_nll_loss}
\alias{nn_nll_loss}
\title{Nll loss}
\usage{
nn_nll_loss(weight = NULL, ignore_index = -100, reduction = "mean")
}
\arguments{
\item{weight}{(Tensor, optional): a manual rescaling weight given to each
class. If gi... | /man/nn_nll_loss.Rd | permissive | krzjoa/torch | R | false | true | 4,344 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nn-loss.R
\name{nn_nll_loss}
\alias{nn_nll_loss}
\title{Nll loss}
\usage{
nn_nll_loss(weight = NULL, ignore_index = -100, reduction = "mean")
}
\arguments{
\item{weight}{(Tensor, optional): a manual rescaling weight given to each
class. If gi... |
\name{acer.plot_all_estimates}
\alias{acer.plot_all_estimates}
\title{Plot all estimates of the ACER functions (internal)}
\description{This function makes a plot of the estimated ACER function
with various k levels}
\usage{acer.plot_all_estimates (eta, epsilon, k_values)}
\arguments{
\item{eta}{barrier levels.}
... | /man/acer.plot_all_estimates.Rd | no_license | cran/acer | R | false | false | 497 | rd | \name{acer.plot_all_estimates}
\alias{acer.plot_all_estimates}
\title{Plot all estimates of the ACER functions (internal)}
\description{This function makes a plot of the estimated ACER function
with various k levels}
\usage{acer.plot_all_estimates (eta, epsilon, k_values)}
\arguments{
\item{eta}{barrier levels.}
... |
packrat::on()
library(R.utils)
print("BEGIN makeCNVCalls.R")
######Parsing input options and setting defaults########
args=commandArgs(TRUE)
count_data=args[1]
if(count_data=="NULL"){count_data=NULL}
if(is.null(count_data)){
print("ERROR: no RData summary file provided -- Execution halted")
... | /Tools/DECoN-master/Windows/scripts/makeCNVcalls.R | permissive | robinwijngaard/TFM_code | R | false | false | 19,695 | r | packrat::on()
library(R.utils)
print("BEGIN makeCNVCalls.R")
######Parsing input options and setting defaults########
args=commandArgs(TRUE)
count_data=args[1]
if(count_data=="NULL"){count_data=NULL}
if(is.null(count_data)){
print("ERROR: no RData summary file provided -- Execution halted")
... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Shuffles each column of a numeric matrix
#'
#' @param mat matrix to shuffle
#' @return matrix in which all the columns are shuffled (each column is shuffled separately)
shuffle_each_column <... | /R/RcppExports.R | permissive | rnbatra/methylayer | R | false | false | 391 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Shuffles each column of a numeric matrix
#'
#' @param mat matrix to shuffle
#' @return matrix in which all the columns are shuffled (each column is shuffled separately)
shuffle_each_column <... |
###########################################
# THIS WILL PRODUCE PLOTS AND PERFORM SURVIVAL ANALYSIS ON THE BEST MODEL WITHOUT APOE
# LIBRARIES
library(stringr)
library(ggsci)
library(RColorBrewer)
library(data.table)
library(stringr)
library(survival)
library(survminer)
# PLOT SIGNIFICANCE OF PRS ACROSS THRESHOLDS FOR... | /BIN/PRS_plots_and_survival.R | no_license | TesiNicco/CentenAssoc | R | false | false | 22,747 | r | ###########################################
# THIS WILL PRODUCE PLOTS AND PERFORM SURVIVAL ANALYSIS ON THE BEST MODEL WITHOUT APOE
# LIBRARIES
library(stringr)
library(ggsci)
library(RColorBrewer)
library(data.table)
library(stringr)
library(survival)
library(survminer)
# PLOT SIGNIFICANCE OF PRS ACROSS THRESHOLDS FOR... |
library(dplyr)
library(ggplot2)
library(GenomicRanges)
readNarrowPeak <- function(path){
# read MACS2 narrowpeak file into data.frame, coerce to GRanges
# Uses readr to enforce explicit data types.
# Should not warn unless there's an issue.
bedCols <- c("chr", "start", "end", "id", "score", "strand", "f... | /scripts/makeFragsizePlot.R | no_license | Matera-Lab-UNC/H3K27me3_CnR_SnakeMake | R | false | false | 4,077 | r | library(dplyr)
library(ggplot2)
library(GenomicRanges)
readNarrowPeak <- function(path){
# read MACS2 narrowpeak file into data.frame, coerce to GRanges
# Uses readr to enforce explicit data types.
# Should not warn unless there's an issue.
bedCols <- c("chr", "start", "end", "id", "score", "strand", "f... |
data <- read.csv(file="/sumitData/work/PhD/GraphSampling/Reports/p2pdataonlys200.csv", sep=",",header = FALSE)
x<- data[,1]
y <- data[,2]
# fitting code
fitmodel <- nls(y~a/(1 + exp(-b * (x-c))), start=list(a=106,b=2000000,c=.17))
# visualization code
# get the coefficients using the coef function
params=coef(fitmodel)... | /Sampling/scripts/p2p-curvefitting.R | no_license | mohibkhan-nedian/NOUS | R | false | false | 406 | r | data <- read.csv(file="/sumitData/work/PhD/GraphSampling/Reports/p2pdataonlys200.csv", sep=",",header = FALSE)
x<- data[,1]
y <- data[,2]
# fitting code
fitmodel <- nls(y~a/(1 + exp(-b * (x-c))), start=list(a=106,b=2000000,c=.17))
# visualization code
# get the coefficients using the coef function
params=coef(fitmodel)... |
library(shiny)
# Define UI for application that plots random distributions
shinyUI(pageWithSidebar(
# Application title
headerPanel("Working with logistic models"),
# Sidebar with a slider input for number of observations
sidebarPanel(
sliderInput("obs", "Time steps:", min = 10, max = 50, value = 25),
... | /NE_ShinyApp_Logistic_Model/ui.R | no_license | edgingtonn1/Synthetic_Biology | R | false | false | 526 | r | library(shiny)
# Define UI for application that plots random distributions
shinyUI(pageWithSidebar(
# Application title
headerPanel("Working with logistic models"),
# Sidebar with a slider input for number of observations
sidebarPanel(
sliderInput("obs", "Time steps:", min = 10, max = 50, value = 25),
... |
## 1. 데이터 추출하기
exam[1,] # 행 번호로 행 추출
exam[exam$class == 1,] # 조건을 충족하는 행 추출
exam[exam$class == 1 & exam$math >= 50,] # 여러 조건을 충족하는 행 추출
exam[,1] # 열 번호로 변수 추출
exam[, "class"] # 변수명으로 변수 추출
exam[,c("class", "math", "english")] # 변수명으로 여러 변수 추출
exam[1,3] # 행, 변수 동시 추출 - 인덱스
exam[exam$math >= 50, "english"] # 행,... | /내가 공부한 것/R 내장함수, 변수 타입과 구조/정리하기.R | no_license | qjvkdkel12/R | R | false | false | 1,419 | r | ## 1. 데이터 추출하기
exam[1,] # 행 번호로 행 추출
exam[exam$class == 1,] # 조건을 충족하는 행 추출
exam[exam$class == 1 & exam$math >= 50,] # 여러 조건을 충족하는 행 추출
exam[,1] # 열 번호로 변수 추출
exam[, "class"] # 변수명으로 변수 추출
exam[,c("class", "math", "english")] # 변수명으로 여러 변수 추출
exam[1,3] # 행, 변수 동시 추출 - 인덱스
exam[exam$math >= 50, "english"] # 행,... |
#' ---
#' title: "Rmd to R script"
#' author: "Ingo Rohlfing"
#' date: "`r Sys.Date()`"
#' output: pdf_document
#' ---
#'
#' # Intro
#' This is a simple Rmd-script that is used to illustrate how it can be
#' transformed into a plain R script.
#'
#' ## First some code
#' Load some toy data.
## ----demo-chunk, echo = ... | /complete_script_2.R | permissive | ingorohlfing/RMarkdown-dance-of-the-formats | R | false | false | 740 | r | #' ---
#' title: "Rmd to R script"
#' author: "Ingo Rohlfing"
#' date: "`r Sys.Date()`"
#' output: pdf_document
#' ---
#'
#' # Intro
#' This is a simple Rmd-script that is used to illustrate how it can be
#' transformed into a plain R script.
#'
#' ## First some code
#' Load some toy data.
## ----demo-chunk, echo = ... |
library(animation)
### Name: ani.record
### Title: Record and replay animations
### Aliases: ani.record ani.replay
### ** Examples
library(animation)
n = 20
x = sort(rnorm(n))
y = rnorm(n)
## set up an empty frame, then add points one by one
par(bg = "white") # ensure the background color is white
plot(x, y, type... | /data/genthat_extracted_code/animation/examples/ani.record.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,069 | r | library(animation)
### Name: ani.record
### Title: Record and replay animations
### Aliases: ani.record ani.replay
### ** Examples
library(animation)
n = 20
x = sort(rnorm(n))
y = rnorm(n)
## set up an empty frame, then add points one by one
par(bg = "white") # ensure the background color is white
plot(x, y, type... |
# functions supporting evaluation on datasets LEV, ESL, GBSG, TIPS
evalOrdinal = function(x, ratio, rep = 20, parallel = FALSE, verbose = FALSE, rankxPCA=1, rankFAMD=5){
x = as.matrix(x)
p = dim(x)[2]
n = dim(x)[1]
if (parallel){
Err = list()
Err = foreach(i = 1:rep)%dopar%{
erri = array(0, dim = ... | /fun_eval.R | no_license | yuxuanzhao2295/Missing-Value-Imputation-for-Mixed-Data-via-Gaussian-Copula | R | false | false | 7,355 | r | # functions supporting evaluation on datasets LEV, ESL, GBSG, TIPS
evalOrdinal = function(x, ratio, rep = 20, parallel = FALSE, verbose = FALSE, rankxPCA=1, rankFAMD=5){
x = as.matrix(x)
p = dim(x)[2]
n = dim(x)[1]
if (parallel){
Err = list()
Err = foreach(i = 1:rep)%dopar%{
erri = array(0, dim = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sst.R
\name{start}
\alias{start}
\title{Start execution time pointer}
\usage{
start()
}
\value{
system start time
}
\description{
Return the time in which the process start running
}
\examples{
start()
}
| /FinalProject_sstr/sstr/man/start.Rd | no_license | violetasdev/SDR_geotech | R | false | true | 282 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sst.R
\name{start}
\alias{start}
\title{Start execution time pointer}
\usage{
start()
}
\value{
system start time
}
\description{
Return the time in which the process start running
}
\examples{
start()
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SDraw-package.r
\docType{package}
\name{SDraw-package}
\alias{SDraw-package}
\alias{_PACKAGE}
\alias{BAS-package}
\alias{HAL-package}
\alias{GRTS}
\alias{SSS-package}
\alias{SDraw}
\alias{SRS}
\title{Selection of spatially balanced samples.}
... | /man/SDraw-package.Rd | no_license | oliviergimenez/SDraw | R | false | true | 2,157 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SDraw-package.r
\docType{package}
\name{SDraw-package}
\alias{SDraw-package}
\alias{_PACKAGE}
\alias{BAS-package}
\alias{HAL-package}
\alias{GRTS}
\alias{SSS-package}
\alias{SDraw}
\alias{SRS}
\title{Selection of spatially balanced samples.}
... |
library(CVST)
### Name: fastCV
### Title: The Fast Cross-Validation via Sequential Testing (CVST)
### Procedure
### Aliases: fastCV
### ** Examples
ns = noisySine(100)
svm = constructSVMLearner()
params = constructParams(kernel="rbfdot", sigma=10^(-3:3), nu=c(0.05, 0.1, 0.2, 0.3))
opt = fastCV(ns, svm, params, co... | /data/genthat_extracted_code/CVST/examples/fastCV.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 343 | r | library(CVST)
### Name: fastCV
### Title: The Fast Cross-Validation via Sequential Testing (CVST)
### Procedure
### Aliases: fastCV
### ** Examples
ns = noisySine(100)
svm = constructSVMLearner()
params = constructParams(kernel="rbfdot", sigma=10^(-3:3), nu=c(0.05, 0.1, 0.2, 0.3))
opt = fastCV(ns, svm, params, co... |
# MIT License
#
# Copyright(c) 2017-2018 Ilia Kosenkov [ilia.kosenkov.at.gm@gmail.com]
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limita... | /R/GGPlot2Tools_Segments2Points.R | permissive | Ilia-Kosenkov/RLibs | R | false | false | 2,101 | r | # MIT License
#
# Copyright(c) 2017-2018 Ilia Kosenkov [ilia.kosenkov.at.gm@gmail.com]
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in the Software without restriction, including without limita... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata-cache.R
\name{meta_cache_deps}
\alias{meta_cache_deps}
\alias{meta_cache_revdeps}
\alias{meta_cache_update}
\alias{meta_cache_list}
\alias{meta_cache_cleanup}
\alias{meta_cache_summary}
\title{Query CRAN(like) package data}
\usage{
m... | /man/meta_cache_deps.Rd | permissive | isabella232/pkgcache | R | false | true | 1,924 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metadata-cache.R
\name{meta_cache_deps}
\alias{meta_cache_deps}
\alias{meta_cache_revdeps}
\alias{meta_cache_update}
\alias{meta_cache_list}
\alias{meta_cache_cleanup}
\alias{meta_cache_summary}
\title{Query CRAN(like) package data}
\usage{
m... |
library(RConics)
library(tidyverse)
library(broom)
# complete walkthrough in excel
# https://people.duke.edu/~rnau/mathreg.htm
# http://faculty.cas.usf.edu/mbrannick/regression/regma.htm
# http://www.statmethods.net/advstats/matrix.html
# https://onlinecourses.science.psu.edu/stat501/node/382
# create data
y <- c(1,... | /ols_calculations.R | no_license | sdevine188/ols_calculations | R | false | false | 5,643 | r | library(RConics)
library(tidyverse)
library(broom)
# complete walkthrough in excel
# https://people.duke.edu/~rnau/mathreg.htm
# http://faculty.cas.usf.edu/mbrannick/regression/regma.htm
# http://www.statmethods.net/advstats/matrix.html
# https://onlinecourses.science.psu.edu/stat501/node/382
# create data
y <- c(1,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_unconnected_node_pairs.R
\name{count_unconnected_node_pairs}
\alias{count_unconnected_node_pairs}
\title{Get the number of unconnected node pairs}
\usage{
count_unconnected_node_pairs(graph)
}
\arguments{
\item{graph}{a graph object of ... | /man/count_unconnected_node_pairs.Rd | permissive | OleksiyAnokhin/DiagrammeR | R | false | true | 852 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_unconnected_node_pairs.R
\name{count_unconnected_node_pairs}
\alias{count_unconnected_node_pairs}
\title{Get the number of unconnected node pairs}
\usage{
count_unconnected_node_pairs(graph)
}
\arguments{
\item{graph}{a graph object of ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/credentials-db.R
\name{db-crypted}
\alias{db-crypted}
\alias{write_db_encrypt}
\alias{read_db_decrypt}
\title{Read / Write crypted table from / to a SQLite database}
\usage{
write_db_encrypt(conn, value, name = "credentials", passphra... | /man/db-crypted.Rd | no_license | cran/shinymanager | R | false | true | 2,427 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/credentials-db.R
\name{db-crypted}
\alias{db-crypted}
\alias{write_db_encrypt}
\alias{read_db_decrypt}
\title{Read / Write crypted table from / to a SQLite database}
\usage{
write_db_encrypt(conn, value, name = "credentials", passphra... |
#' Write CSV Shorthand
#'
#' Easier write function for quickly outputting data. Uses my preferred defaults.
#'
#' @param x Data to write.
#' @param file Fielname, w will add .csv for you so you don't need to include it.
#'
#' @export
#'
#' @examples
#' w( cars, 'output/cars' )
w = function( x, file = 'out', row.names ... | /R/w.R | permissive | superchordate/bc | R | false | false | 482 | r | #' Write CSV Shorthand
#'
#' Easier write function for quickly outputting data. Uses my preferred defaults.
#'
#' @param x Data to write.
#' @param file Fielname, w will add .csv for you so you don't need to include it.
#'
#' @export
#'
#' @examples
#' w( cars, 'output/cars' )
w = function( x, file = 'out', row.names ... |
##' get the suffix name
##' @param x filename
.getext <- function(x)
{
pos <- regexpr("\\.([[:alnum:]]+)$", x)
ifelse(pos > -1L, substring(x, pos + 1L), "")
}
##' get the prefix name
##' @param x filename
.getfilename <- function(x){
filename <- basename(x)
pos <- regexpr("\\.([[:alnum:]]+)$", x)
if... | /R/misc.R | no_license | guokai8/eoffice | R | false | false | 1,909 | r | ##' get the suffix name
##' @param x filename
.getext <- function(x)
{
pos <- regexpr("\\.([[:alnum:]]+)$", x)
ifelse(pos > -1L, substring(x, pos + 1L), "")
}
##' get the prefix name
##' @param x filename
.getfilename <- function(x){
filename <- basename(x)
pos <- regexpr("\\.([[:alnum:]]+)$", x)
if... |
/2020/data/R회귀분석자료/R회귀분석_프로그램/프로그램3.3.R | no_license | seo-hyeon/Statics | R | false | false | 425 | r | ||
summary.lba.ls.logit <- function(object,
digits=2L,
...){
logitA <- getCall(object)$logitA
logitB <- getCall(object)$logitB
cat('|-------------------------------------------|\n')
cat('| COMPOSITION DATA MATRIX |\n')
cat('|---... | /R/summary.lba.ls.logit.R | no_license | ivanalaman/lba | R | false | false | 3,924 | r | summary.lba.ls.logit <- function(object,
digits=2L,
...){
logitA <- getCall(object)$logitA
logitB <- getCall(object)$logitB
cat('|-------------------------------------------|\n')
cat('| COMPOSITION DATA MATRIX |\n')
cat('|---... |
snpRFImpute <- function(x.autosome=NULL,x.xchrom=NULL,x.covar, y, iter=5, ntree=300, ...) {
if (any(is.na(y))) stop("Can't have NAs in", deparse(substitute(y)))
if (!is.null(x.autosome)) {
if (any(is.na(x.autosome))) stop("Can't have NAs in", deparse(substitute(x.autosome)))
}
if (!is.null(x.xchr... | /snpRF/R/snpRFImpute.R | no_license | ingted/R-Examples | R | false | false | 1,584 | r | snpRFImpute <- function(x.autosome=NULL,x.xchrom=NULL,x.covar, y, iter=5, ntree=300, ...) {
if (any(is.na(y))) stop("Can't have NAs in", deparse(substitute(y)))
if (!is.null(x.autosome)) {
if (any(is.na(x.autosome))) stop("Can't have NAs in", deparse(substitute(x.autosome)))
}
if (!is.null(x.xchr... |
library(tidyverse)
library(scales)
library(lubridate)
library(glue)
library(cbcoms)
library(tidytext)
library(SnowballC)
library(fredr)
fredr_set_key(Sys.getenv("FRED_API_KEY"))
rec_dates <- fredr("JHDUSRGDPBR") %>% filter(value == 1)
fed <- cb_minutes %>%
filter(bank == "fed",
type %in% c("Minutes", "Reco... | /scripts/fed_minutes_sentiment.R | no_license | nfraccaroli/text_mining_workshop | R | false | false | 1,500 | r | library(tidyverse)
library(scales)
library(lubridate)
library(glue)
library(cbcoms)
library(tidytext)
library(SnowballC)
library(fredr)
fredr_set_key(Sys.getenv("FRED_API_KEY"))
rec_dates <- fredr("JHDUSRGDPBR") %>% filter(value == 1)
fed <- cb_minutes %>%
filter(bank == "fed",
type %in% c("Minutes", "Reco... |
library(capushe)
#data(datacapushe)
#capushe(datacapushe)
#plot(capushe(datacapushe))
setwd('desktop');
getwd();
#setwd('EMAlgo');
library(xlsx)
data=read.xlsx(file="Slope\ heuristics\ data.xls",sheetIndex =1, header=TRUE)
ddse = DDSE(data)
djump = Djump(data)
plot(capushe(data))
plot(ddse)
pdf(file="DDSEonNIPSA... | /ModelSelectionViaCAPUSHE.R | no_license | EstherDerman/SourceCodeDocumentClustering | R | false | false | 451 | r | library(capushe)
#data(datacapushe)
#capushe(datacapushe)
#plot(capushe(datacapushe))
setwd('desktop');
getwd();
#setwd('EMAlgo');
library(xlsx)
data=read.xlsx(file="Slope\ heuristics\ data.xls",sheetIndex =1, header=TRUE)
ddse = DDSE(data)
djump = Djump(data)
plot(capushe(data))
plot(ddse)
pdf(file="DDSEonNIPSA... |
library(vanddraabe)
### Name: BoundWaterEnvironment.interact
### Title: Bound Water Environment (interactions)
### Aliases: BoundWaterEnvironment.interact
### ** Examples
## Not run:
##D distances <- PDB.1hai.h2o.prot.dists[3, ]
##D set.oi.idc <- prot.idc
##D names.atoms <- PDB.1hai.aoi.clean$elety[prot.id... | /data/genthat_extracted_code/vanddraabe/examples/BoundWaterEnvironment.interact.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 886 | r | library(vanddraabe)
### Name: BoundWaterEnvironment.interact
### Title: Bound Water Environment (interactions)
### Aliases: BoundWaterEnvironment.interact
### ** Examples
## Not run:
##D distances <- PDB.1hai.h2o.prot.dists[3, ]
##D set.oi.idc <- prot.idc
##D names.atoms <- PDB.1hai.aoi.clean$elety[prot.id... |
# This file is automatically generated, you probably don't want to edit this
smdcorr2Options <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"smdcorr2Options",
inherit = jmvcore::Options,
public = list(
initialize = function(
dep = NULL,
ind = NULL,
... | /R/smdcorr2.h.R | permissive | jwilmer/testing1 | R | false | false | 13,564 | r |
# This file is automatically generated, you probably don't want to edit this
smdcorr2Options <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class(
"smdcorr2Options",
inherit = jmvcore::Options,
public = list(
initialize = function(
dep = NULL,
ind = NULL,
... |
#library(shinydashboard)
dashboardPage(
dashboardHeader(
title = "Jun Kui Chen",
titleWidth = 350
),
dashboardSidebar(
width = 350,
sidebarMenu(
menuItem("Top Start Station", tabName='start', icon = icon('globe')),
menuItem('Top End Station', tabName='... | /ui.R | no_license | jakejkchen/R-shiny | R | false | false | 2,621 | r | #library(shinydashboard)
dashboardPage(
dashboardHeader(
title = "Jun Kui Chen",
titleWidth = 350
),
dashboardSidebar(
width = 350,
sidebarMenu(
menuItem("Top Start Station", tabName='start', icon = icon('globe')),
menuItem('Top End Station', tabName='... |
#' @importFrom methods new show slot slotNames validObject
#' @importFrom utils browseURL globalVariables install.packages
#' installed.packages update.packages
#' @importFrom stats aggregate
#'
NULL
| /R/imports.R | no_license | kamapu/gisrepos | R | false | false | 205 | r | #' @importFrom methods new show slot slotNames validObject
#' @importFrom utils browseURL globalVariables install.packages
#' installed.packages update.packages
#' @importFrom stats aggregate
#'
NULL
|
library(shiny)
shinyUI(fluidPage(
tags$head(
tags$style(HTML("
.shiny-output-error-validation {
color: red;
}
"))
),
titlePanel(h1("GWAS with SLOPE", align = "center", style="color:#317eac"), windowTitle = "GWAS with SLOPE"),
column(4, wellPanel(
fileInput("fileY",
... | /inst/shiny-examples/genSLOPE_gui/ui.R | no_license | psobczyk/geneSLOPE | R | false | false | 2,245 | r | library(shiny)
shinyUI(fluidPage(
tags$head(
tags$style(HTML("
.shiny-output-error-validation {
color: red;
}
"))
),
titlePanel(h1("GWAS with SLOPE", align = "center", style="color:#317eac"), windowTitle = "GWAS with SLOPE"),
column(4, wellPanel(
fileInput("fileY",
... |
# Download and map data from Rapid Cycleway Prioritisation Tool -----------
# select URLS
west_of_england_existing_url = "https://www.cyipt.bike/rapid/west-of-england/cycleways.geojson"
west_of_england_cohesive_url = "https://www.cyipt.bike/rapid/west-of-england/cohesive_network.geojson"
west_of_england_top_url = "ht... | /inst/rapid-geojson-download.R | no_license | benmitchell92/PCT-Copy | R | false | false | 2,897 | r |
# Download and map data from Rapid Cycleway Prioritisation Tool -----------
# select URLS
west_of_england_existing_url = "https://www.cyipt.bike/rapid/west-of-england/cycleways.geojson"
west_of_england_cohesive_url = "https://www.cyipt.bike/rapid/west-of-england/cohesive_network.geojson"
west_of_england_top_url = "ht... |
shinyUI(
fluidPage(
useShinyjs(),
sidebarLayout(
sidebarPanel(
h3("Read"),
chord_read$ui_controller,
h3("Write"),
chord_write$ui_controller
),
mainPanel(
h3("Read"),
chord_read$ui_view,
h3("Write"),
chord_write$ui_view
)
... | /inst/shiny/read_delim_write_delim/ui.R | no_license | ijlyttle/shinychord | R | false | false | 331 | r | shinyUI(
fluidPage(
useShinyjs(),
sidebarLayout(
sidebarPanel(
h3("Read"),
chord_read$ui_controller,
h3("Write"),
chord_write$ui_controller
),
mainPanel(
h3("Read"),
chord_read$ui_view,
h3("Write"),
chord_write$ui_view
)
... |
australia<- risultati %>%
inner_join(drivers,by="driverId") %>%
inner_join(races,by="raceId") %>%
filter(year == 2018, round == 1) %>%
select(driverId,driverRef,position,points)
bahrain<- risultati %>%
inner_join(drivers,by="driverId") %>%
inner_join(races,by="raceId") %>%
filter(year == 2018, round ==... | /ESAME/Scripts/gare/query_gara_per_gara.R | no_license | Vegaz10/Esame-scienza-di-dati- | R | false | false | 2,661 | r | australia<- risultati %>%
inner_join(drivers,by="driverId") %>%
inner_join(races,by="raceId") %>%
filter(year == 2018, round == 1) %>%
select(driverId,driverRef,position,points)
bahrain<- risultati %>%
inner_join(drivers,by="driverId") %>%
inner_join(races,by="raceId") %>%
filter(year == 2018, round ==... |
library(ape)
testtree <- read.tree("1954_19.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1954_19_unrooted.txt") | /codeml_files/newick_trees_processed/1954_19/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("1954_19.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="1954_19_unrooted.txt") |
rm(list = ls())
#self created function on R-blogger
multmerge = function(mypath){
filenames=list.files(path=mypath, full.names=TRUE)
datalist = lapply(filenames, function(x){read.csv(file=x,header=T, sep = " ")})
Reduce(function(x,y) {merge(x,y)}, datalist)}
MD = multmerge("/da... | /scripts/life2018/merge_all_files.R | no_license | imruizhang/life_dti | R | false | false | 506 | r | rm(list = ls())
#self created function on R-blogger
multmerge = function(mypath){
filenames=list.files(path=mypath, full.names=TRUE)
datalist = lapply(filenames, function(x){read.csv(file=x,header=T, sep = " ")})
Reduce(function(x,y) {merge(x,y)}, datalist)}
MD = multmerge("/da... |
context("format parsing")
test_that("no annotations when there is no formatting", {
ogsprdsht <- readxl::read_excel("./dog_test_plain.xlsx")
annot <- annotate_mf_all("./dog_test_plain.xlsx")
expect_identical(ogsprdsht[, 1], annot[, 1])
})
test_that("error when spreadsheet has empty or NA values in the header ro... | /tests/testthat/test-annotate_mf_all.R | permissive | luisDVA/unheadr | R | false | false | 806 | r | context("format parsing")
test_that("no annotations when there is no formatting", {
ogsprdsht <- readxl::read_excel("./dog_test_plain.xlsx")
annot <- annotate_mf_all("./dog_test_plain.xlsx")
expect_identical(ogsprdsht[, 1], annot[, 1])
})
test_that("error when spreadsheet has empty or NA values in the header ro... |
library(Seurat)
### Name: HoverLocator
### Title: Hover Locator
### Aliases: HoverLocator
### ** Examples
## Not run:
##D df <- data.frame(x = rnorm(n = 100, mean = 20, sd = 2), y = rbinom(n = 100, size = 100, prob = 0.2))
##D p <- ggplot(data = df, mapping = aes(x = x, y = y)) + geom_point(mapping = aes(color = '... | /data/genthat_extracted_code/Seurat/examples/HoverLocator.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 390 | r | library(Seurat)
### Name: HoverLocator
### Title: Hover Locator
### Aliases: HoverLocator
### ** Examples
## Not run:
##D df <- data.frame(x = rnorm(n = 100, mean = 20, sd = 2), y = rbinom(n = 100, size = 100, prob = 0.2))
##D p <- ggplot(data = df, mapping = aes(x = x, y = y)) + geom_point(mapping = aes(color = '... |
NorthCote. <- read.csv("~/Desktop/Internship/NorthCote .csv")
names(NorthCote.) <- c("Age","Gender","Id","Relationship","PostCode","District","City","ModeOfTransport")
NCTram <- subset(NorthCote., ModeOfTransport = "Tram")
View(NCTram)
NCTram <- subset(NorthCote., ModeOfTransport == "Tram")
View(NCTrain) | /NCTrams.R | no_license | mattywagh/RMIT | R | false | false | 305 | r | NorthCote. <- read.csv("~/Desktop/Internship/NorthCote .csv")
names(NorthCote.) <- c("Age","Gender","Id","Relationship","PostCode","District","City","ModeOfTransport")
NCTram <- subset(NorthCote., ModeOfTransport = "Tram")
View(NCTram)
NCTram <- subset(NorthCote., ModeOfTransport == "Tram")
View(NCTrain) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jamenrich-utils.R
\name{enrichList2geneHitList}
\alias{enrichList2geneHitList}
\title{Extract gene hit list from list of enrichResult}
\usage{
enrichList2geneHitList(
enrichList,
geneColname,
geneDelim = "[,/ ]",
make_unique = TRUE,
... | /man/enrichList2geneHitList.Rd | no_license | jmw86069/multienrichjam | R | false | true | 1,700 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jamenrich-utils.R
\name{enrichList2geneHitList}
\alias{enrichList2geneHitList}
\title{Extract gene hit list from list of enrichResult}
\usage{
enrichList2geneHitList(
enrichList,
geneColname,
geneDelim = "[,/ ]",
make_unique = TRUE,
... |
list.of.packages <- c("boot", "car","QuantPsyc","lmtest","sandwich","vars","nortest","MASS","caTools")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages, repos="http://cran.rstudio.com/")
library(MASS)
library(car)
l... | /Anime_Rating_Prediction.R | no_license | soumita-mitra/Anime_Rating_Prediction | R | false | false | 9,181 | r | list.of.packages <- c("boot", "car","QuantPsyc","lmtest","sandwich","vars","nortest","MASS","caTools")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages, repos="http://cran.rstudio.com/")
library(MASS)
library(car)
l... |
screenshot_fail_check <- function(twitter_timeline_df, max_size = 63450) {
# Check if pictures already exist
snapshots_qa <- file.info(list.files(here::here("custom_pov"),
full.names = TRUE))
pov_check <- data.frame(image_path = rownames(snapshots_qa),
... | /snapshot_functions/04_screenshot_fail_check.R | no_license | imjakedaniels/animated_leafs_graphs | R | false | false | 1,472 | r | screenshot_fail_check <- function(twitter_timeline_df, max_size = 63450) {
# Check if pictures already exist
snapshots_qa <- file.info(list.files(here::here("custom_pov"),
full.names = TRUE))
pov_check <- data.frame(image_path = rownames(snapshots_qa),
... |
RNA.loadRaw <- function() {
read.table(RNA.rawFile(),
sep = "\t",
quote = "\"",
header = TRUE,
comment.char = "",
strip.white = TRUE)
}
RNA.rawFile <- function() {
gzfile(file.path(Liu.homeDir(), "Liu_RNA.txt.gz"))
}
## --------------... | /stat/Liu/RNA.R | permissive | tipplerow/jam | R | false | false | 4,272 | r |
RNA.loadRaw <- function() {
read.table(RNA.rawFile(),
sep = "\t",
quote = "\"",
header = TRUE,
comment.char = "",
strip.white = TRUE)
}
RNA.rawFile <- function() {
gzfile(file.path(Liu.homeDir(), "Liu_RNA.txt.gz"))
}
## --------------... |
\name{Confidence intervals for Cronbach's alpha}
\alias{cron.ci}
\title{
Confidence intervals for Cronbach's alpha
}
\description{
Confidence intervals for Cronbach's alpha.
}
\usage{
cron.ci(x, conf = 0.95, type = "logit", B = 1000)
}
\arguments{
\item{x}{
A numerical matrix with the data.
}
\item... | /man/cron.ci.Rd | no_license | cran/Cronbach | R | false | false | 2,321 | rd | \name{Confidence intervals for Cronbach's alpha}
\alias{cron.ci}
\title{
Confidence intervals for Cronbach's alpha
}
\description{
Confidence intervals for Cronbach's alpha.
}
\usage{
cron.ci(x, conf = 0.95, type = "logit", B = 1000)
}
\arguments{
\item{x}{
A numerical matrix with the data.
}
\item... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_get_csv_header}
\alias{cognitoidentityprovider_get_csv_header}
\title{Gets the header information for the comma-separated value (CSV) file to
be used as input for the user imp... | /cran/paws.security.identity/man/cognitoidentityprovider_get_csv_header.Rd | permissive | paws-r/paws | R | false | true | 765 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cognitoidentityprovider_operations.R
\name{cognitoidentityprovider_get_csv_header}
\alias{cognitoidentityprovider_get_csv_header}
\title{Gets the header information for the comma-separated value (CSV) file to
be used as input for the user imp... |
\name{plot.SmoothWin}
\alias{plot.SmoothWin}
\title{
Plot function for the SmoothWin object
}
\description{
This function plots a SmoothWin object
}
\usage{
\method{plot}{SmoothWin}(x,
ylab = 'Response' ,
xlab = 'Time (continuous... | /man/plot.SmoothWin.Rd | no_license | cran/SmoothWin | R | false | false | 1,472 | rd | \name{plot.SmoothWin}
\alias{plot.SmoothWin}
\title{
Plot function for the SmoothWin object
}
\description{
This function plots a SmoothWin object
}
\usage{
\method{plot}{SmoothWin}(x,
ylab = 'Response' ,
xlab = 'Time (continuous... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/o.R
\name{o}
\alias{o}
\title{Open the current working directory on mac}
\usage{
o()
}
\description{
Opens the current working directory on mac.
}
\examples{
\dontrun{
o()
}
}
\author{
Stephen Turner
}
\keyword{NA}
| /man/o.Rd | no_license | 95teza/Tmisc | R | false | true | 294 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/o.R
\name{o}
\alias{o}
\title{Open the current working directory on mac}
\usage{
o()
}
\description{
Opens the current working directory on mac.
}
\examples{
\dontrun{
o()
}
}
\author{
Stephen Turner
}
\keyword{NA}
|
#### -- Packrat Autoloader (version 0.5.0) -- ####
source("packrat/init.R")
#### -- End Packrat Autoloader -- ####
### load up all of the functions
source("./R/get_functions.R")
source("./R/check_functions.R")
source("./R/scrape_functions.R")
source("./R/utility_functions.R")
source("./R/report_functions.R")
source(".... | /.Rprofile | permissive | mfidino/mfidino.github.io | R | false | false | 395 | rprofile | #### -- Packrat Autoloader (version 0.5.0) -- ####
source("packrat/init.R")
#### -- End Packrat Autoloader -- ####
### load up all of the functions
source("./R/get_functions.R")
source("./R/check_functions.R")
source("./R/scrape_functions.R")
source("./R/utility_functions.R")
source("./R/report_functions.R")
source(".... |
library(ape)
testtree <- read.tree("8332_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8332_0_unrooted.txt") | /codeml_files/newick_trees_processed/8332_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("8332_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="8332_0_unrooted.txt") |
#' gglorenz: Plotting Lorenz Curve with ggplot2
#'
#' The package provides statistical transformations for plotting
#' empirical ordinary Lorenz curve and generalized Lorenz curve.
#'
#' @name gglorenz
#' @docType package
#' @rdname gglorenz-package
#' @author JJ Chen
NULL
| /R/gglorenz-package.r | permissive | cortinah/gglorenz | R | false | false | 274 | r | #' gglorenz: Plotting Lorenz Curve with ggplot2
#'
#' The package provides statistical transformations for plotting
#' empirical ordinary Lorenz curve and generalized Lorenz curve.
#'
#' @name gglorenz
#' @docType package
#' @rdname gglorenz-package
#' @author JJ Chen
NULL
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classres.R
\name{plotMisclassified.classres}
\alias{plotMisclassified.classres}
\title{Misclassified ratio plot for classification results}
\usage{
\method{plotMisclassified}{classres}(obj, nc = NULL, ...)
}
\arguments{
\item{obj}{classificat... | /man/plotMisclassified.classres.Rd | no_license | KasperSkytte/mdatools | R | false | true | 833 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classres.R
\name{plotMisclassified.classres}
\alias{plotMisclassified.classres}
\title{Misclassified ratio plot for classification results}
\usage{
\method{plotMisclassified}{classres}(obj, nc = NULL, ...)
}
\arguments{
\item{obj}{classificat... |
#' Function to return the DL7 hydrologic indicator statistic for a given data frame
#'
#' This function accepts a data frame that contains a column named "discharge" and calculates
#' DL7; Variability of annual minimum of 3-day moving average flow. Compute the standard deviation for the
#' minimum 3-day moving avera... | /R/dl7.R | permissive | klingerf2/EflowStats | R | false | false | 1,344 | r | #' Function to return the DL7 hydrologic indicator statistic for a given data frame
#'
#' This function accepts a data frame that contains a column named "discharge" and calculates
#' DL7; Variability of annual minimum of 3-day moving average flow. Compute the standard deviation for the
#' minimum 3-day moving avera... |
plot3 <- function(){
## Set delimiter and import data from file
powerdata <- read.table("./household_power_consumption.txt", header=TRUE, sep=";",stringsAsFactors=FALSE, dec=".")
## We will only be using data from the dates 2007-02-01 and 2007-02-02
powerset <- powerdata[(powerdata$Date=="1/2/2007") | (power... | /plot3.R | no_license | dwrussell/ExData_Plotting1 | R | false | false | 973 | r | plot3 <- function(){
## Set delimiter and import data from file
powerdata <- read.table("./household_power_consumption.txt", header=TRUE, sep=";",stringsAsFactors=FALSE, dec=".")
## We will only be using data from the dates 2007-02-01 and 2007-02-02
powerset <- powerdata[(powerdata$Date=="1/2/2007") | (power... |
#' Quantile-Quantile Plots
#'
#' @description `qqnorm` is a generic function the default method of which produces a
#' normal QQ plot of the values in y. `qqline` adds a line to a “theoretical”, by default normal,
#' quantile-quantile plot which passes through the `probs` quantiles, by default the first and third qua... | /R/qqplots.R | no_license | dill/mgcViz | R | false | false | 4,198 | r |
#' Quantile-Quantile Plots
#'
#' @description `qqnorm` is a generic function the default method of which produces a
#' normal QQ plot of the values in y. `qqline` adds a line to a “theoretical”, by default normal,
#' quantile-quantile plot which passes through the `probs` quantiles, by default the first and third qua... |
\name{parseArgMap}
\alias{parseArgMap}
\title{Convert argument specification to a data structure }
\description{
This converts a programmer-specified argument list to the data
structure used internally for parsing arguments.
}
\usage{
parseArgMap(argspec)
}
\arguments{
\item{argspec}{ The programmer specified ar... | /Lab_Code/R/Lib/Rgetopt/man/parseArgMap.Rd | permissive | alexgraehl/TimeForScience | R | false | false | 870 | rd | \name{parseArgMap}
\alias{parseArgMap}
\title{Convert argument specification to a data structure }
\description{
This converts a programmer-specified argument list to the data
structure used internally for parsing arguments.
}
\usage{
parseArgMap(argspec)
}
\arguments{
\item{argspec}{ The programmer specified ar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ptmScan.R
\name{ni.scan}
\alias{ni.scan}
\title{Scan a Protein in Search of Nitration Sites}
\usage{
ni.scan(up_id, db = 'all')
}
\arguments{
\item{up_id}{a character string corresponding to the UniProt ID.}
\item{db}{the database where to s... | /man/ni.scan.Rd | no_license | jcaledo/ptm_0.1.1 | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ptmScan.R
\name{ni.scan}
\alias{ni.scan}
\title{Scan a Protein in Search of Nitration Sites}
\usage{
ni.scan(up_id, db = 'all')
}
\arguments{
\item{up_id}{a character string corresponding to the UniProt ID.}
\item{db}{the database where to s... |
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(conflicted)
conflict_prefer("box", "shinydas... | /Next_Word/ui.R | no_license | GM-AI/Next_Word | R | false | false | 2,279 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(conflicted)
conflict_prefer("box", "shinydas... |
# test optimal vcmax predicitons
source('calc_optimal_vcmax.R')
par_seq = calc_optimal_vcmax(paro = seq(100, 1000, 100))
t_seq = calc_optimal_vcmax(tg_c = seq(10, 30, 5))
vpd_seq = calc_optimal_vcmax(vpdo = seq(0.5, 4, 0.5))
z_seq = calc_optimal_vcmax(z = seq(0, 1000, 100))
ca_seq = calc_optimal_vcmax(cao = seq(250, ... | /test_calc_optimal_vcmax.R | no_license | SmithEcophysLab/optimal_vcmax_R | R | false | false | 332 | r | # test optimal vcmax predicitons
source('calc_optimal_vcmax.R')
par_seq = calc_optimal_vcmax(paro = seq(100, 1000, 100))
t_seq = calc_optimal_vcmax(tg_c = seq(10, 30, 5))
vpd_seq = calc_optimal_vcmax(vpdo = seq(0.5, 4, 0.5))
z_seq = calc_optimal_vcmax(z = seq(0, 1000, 100))
ca_seq = calc_optimal_vcmax(cao = seq(250, ... |
# example spcosa package: projection
# check if required packages are available
if (suppressWarnings(!(require(grid) & require(sp) & require(ggplot2)))) {
stop("This demo requires packages 'grid', 'sp', and 'ggplot2'.\nMake sure these packages are installed", call. = FALSE)
}
# construct two identical ... | /demo/sphere1.R | no_license | cran/spcosa | R | false | false | 1,050 | r | # example spcosa package: projection
# check if required packages are available
if (suppressWarnings(!(require(grid) & require(sp) & require(ggplot2)))) {
stop("This demo requires packages 'grid', 'sp', and 'ggplot2'.\nMake sure these packages are installed", call. = FALSE)
}
# construct two identical ... |
RunModel_GR4J <- function(InputsModel, RunOptions, Param) {
.ArgumentsCheckGR(InputsModel, RunOptions, Param)
Param <- as.double(Param)
Param_X1X3_threshold <- 1e-2
Param_X4_threshold <- 0.5
if (Param[1L] < Param_X1X3_threshold) {
warning(sprintf("Param[1] (X1: production store capacity [mm]... | /R/RunModel_GR4J.R | no_license | cran/airGR | R | false | false | 4,145 | r | RunModel_GR4J <- function(InputsModel, RunOptions, Param) {
.ArgumentsCheckGR(InputsModel, RunOptions, Param)
Param <- as.double(Param)
Param_X1X3_threshold <- 1e-2
Param_X4_threshold <- 0.5
if (Param[1L] < Param_X1X3_threshold) {
warning(sprintf("Param[1] (X1: production store capacity [mm]... |
f9c5b3deff535668cb4f99517f6ab27d adder-12-unsat.qdimacs 3844 5305 | /code/dcnf-ankit-optimized/Results/PCNF-TRACK-2018/A1+E1/Database/adder-12-unsat/adder-12-unsat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 65 | r | f9c5b3deff535668cb4f99517f6ab27d adder-12-unsat.qdimacs 3844 5305 |
## These functions set the matrix and changes it into inverse.
makecachematrix <- function(x=matrix()){
inv <- NULL
set <- function(y){
x<<-y
inv<<-NULL
}
get <- function(){x}
setinverse <- function(inverse) {inv<<-inverse}
getinverse <- function(){inv}
list(set=set, get=get, setinverse=set... | /cachematrix.R | no_license | Kamran177/ProgrammingAssignment2 | R | false | false | 663 | r | ## These functions set the matrix and changes it into inverse.
makecachematrix <- function(x=matrix()){
inv <- NULL
set <- function(y){
x<<-y
inv<<-NULL
}
get <- function(){x}
setinverse <- function(inverse) {inv<<-inverse}
getinverse <- function(){inv}
list(set=set, get=get, setinverse=set... |
---
title: "Visualizing July Lipid Data"
output: html_document
editor_options:
chunk_output_type: console
---
## loading libraies
```{r}
library(tidyr)
library(ggplot2)
library(plyr)
library(MASS)
library(readxl)
```
## reading in the data and looking at its structure
```{r}
setwd("/Users/JamesB/Google Dr... | /Scripts_Analysis/Accumulation/.Rproj.user/2017SEP.R | no_license | jamestbrown5/Lipid_Quantification | R | false | false | 3,083 | r | ---
title: "Visualizing July Lipid Data"
output: html_document
editor_options:
chunk_output_type: console
---
## loading libraies
```{r}
library(tidyr)
library(ggplot2)
library(plyr)
library(MASS)
library(readxl)
```
## reading in the data and looking at its structure
```{r}
setwd("/Users/JamesB/Google Dr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{countrypops}
\alias{countrypops}
\title{Yearly populations of countries from 1960 to 2017}
\format{A tibble with 12470 rows and 5 variables:
\describe{
\item{country_name}{Name of the country}
\item{country_cod... | /man/countrypops.Rd | permissive | RamiKrispin/gt | R | false | true | 1,236 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{countrypops}
\alias{countrypops}
\title{Yearly populations of countries from 1960 to 2017}
\format{A tibble with 12470 rows and 5 variables:
\describe{
\item{country_name}{Name of the country}
\item{country_cod... |
#=================================================================================
# title: clean-data-script.R
# description: deal with the rawdata
# input(s): the data from the cvs table rawscores.csv
# output(s): data calculated by using function on to the rawscore
#==================================================... | /hw04/code/clean-data-script.R | no_license | efuna503/stat133-hws-fall17 | R | false | false | 3,779 | r | #=================================================================================
# title: clean-data-script.R
# description: deal with the rawdata
# input(s): the data from the cvs table rawscores.csv
# output(s): data calculated by using function on to the rawscore
#==================================================... |
color.scale.lines<-function(x,y,reds,greens,blues,col=NA,colvar=NA,...) {
if(is.list(x) && missing(y)) {
y<-x$y
x<-x$x
}
lenx<-length(x)
leny<-length(y)
nseg<-lenx-1
if(lenx != leny) {
warning("x and y are different lengths - some values will be ignored")
if(lenx>leny) nseg<-leny-1
}
if(is.na(col[1])) ... | /R/color.scale.lines.R | no_license | plotrix/plotrix | R | false | false | 730 | r | color.scale.lines<-function(x,y,reds,greens,blues,col=NA,colvar=NA,...) {
if(is.list(x) && missing(y)) {
y<-x$y
x<-x$x
}
lenx<-length(x)
leny<-length(y)
nseg<-lenx-1
if(lenx != leny) {
warning("x and y are different lengths - some values will be ignored")
if(lenx>leny) nseg<-leny-1
}
if(is.na(col[1])) ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{calc_var}
\alias{calc_var}
\title{Calculate the variance of the columns of a \emph{matrix} or \emph{time
series} using \code{RcppArmadillo}.}
\usage{
calc_var(mat_rix)
}
\arguments{
\item{\code{mat_rix}}{A \emph{matrix} or... | /man/calc_var.Rd | no_license | lozanof/HighFreq | R | false | true | 1,561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{calc_var}
\alias{calc_var}
\title{Calculate the variance of the columns of a \emph{matrix} or \emph{time
series} using \code{RcppArmadillo}.}
\usage{
calc_var(mat_rix)
}
\arguments{
\item{\code{mat_rix}}{A \emph{matrix} or... |
require('rmr2')
Sys.setenv(HADOOP_STREAMING="/usr/hdp/current/hadoop-mapreduce-client/hadoop-streaming.jar")
Sys.setenv(HADOOP_CMD="/usr/bin/hadoop")
rmr.options (
backend.parameters = list (
hadoop = list (
D = "mapreduce.map.java.opts=-Xmx800M",
D = "mapreduce.reduce.java.opts=-X... | /package/scripts/r/smoke_test.r | no_license | fdion/r-service | R | false | false | 788 | r | require('rmr2')
Sys.setenv(HADOOP_STREAMING="/usr/hdp/current/hadoop-mapreduce-client/hadoop-streaming.jar")
Sys.setenv(HADOOP_CMD="/usr/bin/hadoop")
rmr.options (
backend.parameters = list (
hadoop = list (
D = "mapreduce.map.java.opts=-Xmx800M",
D = "mapreduce.reduce.java.opts=-X... |
##########################################
#Step 0. Downloading and unzipping dataset
##########################################
if(!file.exists("./data")){dir.create("./data")}
#Here are the data for the project:
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
downl... | /run_analysis.R | no_license | foyzulhasan/Getting-and-Cleaning-Data-Course-Project | R | false | false | 3,440 | r | ##########################################
#Step 0. Downloading and unzipping dataset
##########################################
if(!file.exists("./data")){dir.create("./data")}
#Here are the data for the project:
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
downl... |
# ----------------------------------------
#
# server.R
#
# author: Даїшник
# email: matthewhandzy@gmail.com
# date: 08/01/2019
#
# copyright (c) Matthew Handzy, 2019
#
# ----------------------------------------
library(shiny)
library(tidyverse)
# import important functions and dataframes
source("utils/xmel_utils.... | /server.R | no_license | mhdzy/xmelanalytica | R | false | false | 7,036 | r | # ----------------------------------------
#
# server.R
#
# author: Даїшник
# email: matthewhandzy@gmail.com
# date: 08/01/2019
#
# copyright (c) Matthew Handzy, 2019
#
# ----------------------------------------
library(shiny)
library(tidyverse)
# import important functions and dataframes
source("utils/xmel_utils.... |
y = Gov.Exp
fit = Arima(y, order = c(0,1,1),
seasonal =list(order=c(0,1,1),
period=4),
method = "ML")
L= c(); Q= c(); p = c()
for (i in 1:6){
L[i] = 4*i;
Q[i] = Box.test(fit$residual, lag=L[i],
type = "Ljung-Box")$statistic
df = L[i]-2 #3=... | /Time_series/hw#5/hw5_4.R | no_license | lilly9117/EWHA_2021-1 | R | false | false | 448 | r | y = Gov.Exp
fit = Arima(y, order = c(0,1,1),
seasonal =list(order=c(0,1,1),
period=4),
method = "ML")
L= c(); Q= c(); p = c()
for (i in 1:6){
L[i] = 4*i;
Q[i] = Box.test(fit$residual, lag=L[i],
type = "Ljung-Box")$statistic
df = L[i]-2 #3=... |
### =========================================================================
### IRanges objects
### -------------------------------------------------------------------------
###
### The IRanges class is a simple container for storing a vector of integer
### ranges.
###
setClass("IRanges",
contains="IPosRanges",
... | /R/IRanges-class.R | no_license | balwierz/IRanges | R | false | false | 11,035 | r | ### =========================================================================
### IRanges objects
### -------------------------------------------------------------------------
###
### The IRanges class is a simple container for storing a vector of integer
### ranges.
###
setClass("IRanges",
contains="IPosRanges",
... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Compare within-cluster sum of squared error
test.pcastand.golden <- function(H2Oserver) {
# Import data:
Log.info("Importing arrests.csv data...")
arrestsR <- read.csv(locate("smalldata/pca_test/USArrests.csv"), h... | /h2o-r/tests/testdir_golden/runit_NOPASS_pca_2_golden.R | permissive | nemccarthy/h2o-dev | R | false | false | 1,139 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Compare within-cluster sum of squared error
test.pcastand.golden <- function(H2Oserver) {
# Import data:
Log.info("Importing arrests.csv data...")
arrestsR <- read.csv(locate("smalldata/pca_test/USArrests.csv"), h... |
####################################################
####################################################
# Stuff You DO NOT edit
####################################################
# -- delete output/ -folder recursively
unlink(paste0(root.dir,"/output/process"), recursive = TRUE, force=TRUE)
# unlink(paste0(root.... | /input/code/process_the_book.R | no_license | UNFAOstatistics/pocketbook | R | false | false | 10,684 | r | ####################################################
####################################################
# Stuff You DO NOT edit
####################################################
# -- delete output/ -folder recursively
unlink(paste0(root.dir,"/output/process"), recursive = TRUE, force=TRUE)
# unlink(paste0(root.... |
## 数据准备
library(xlsx);
source('G:\\rspace\\自编程序\\list_sdk.R');
df_load <- "C:\\Users\\Administrator\\Desktop\\毕业论文\\特校数据\\3特校建模数据00286.xlsx"
df <- read.xlsx(df_load,sheetIndex = 'Sheet1',encoding = 'UTF-8')
#----------------------------------------------------
# 第五部分 层次分析法权重下计算综合得分
com_load <- "C:\\Users\\Administrato... | /space_history/learn_code/5特校建模权重确定.R | no_license | TigerZhao007/GitHub | R | false | false | 4,941 | r | ## 数据准备
library(xlsx);
source('G:\\rspace\\自编程序\\list_sdk.R');
df_load <- "C:\\Users\\Administrator\\Desktop\\毕业论文\\特校数据\\3特校建模数据00286.xlsx"
df <- read.xlsx(df_load,sheetIndex = 'Sheet1',encoding = 'UTF-8')
#----------------------------------------------------
# 第五部分 层次分析法权重下计算综合得分
com_load <- "C:\\Users\\Administrato... |
context("record")
test_that("without names", {
xx <- "foo"
expect_equal(record(2, xx, -8),
as.record(list("2" = 2, "xx" = "foo", "-8" = -8)))
})
test_that("with names", {
expect_equal(record(a = 3, b = "hello"),
as.record(list(a = 3, b = "hello")))
})
test_that("set wr... | /tests/testthat/test-record.R | permissive | patperry/r-frame | R | false | false | 1,335 | r | context("record")
test_that("without names", {
xx <- "foo"
expect_equal(record(2, xx, -8),
as.record(list("2" = 2, "xx" = "foo", "-8" = -8)))
})
test_that("with names", {
expect_equal(record(a = 3, b = "hello"),
as.record(list(a = 3, b = "hello")))
})
test_that("set wr... |
jonah.fisheries.data.figures = function(DS) {
#browser()
p = setup.parameters()
l = jonah.logbook.db( DS="logbook")
#l = l[which(l$yr != 2017),]
l$lfa[l$lfa == "LOBSTER - GREY ZONE"] <- "Grey Zone"
l$lfa[l$lfa == "NA"] <- "Unknown"
l$cpue = as.numeric(l$cpue)
l$effort = as.numeric(l$effort)
l$landing... | /jonah.fisheries.data.figures.r | no_license | Greenlawm/R | R | false | false | 16,093 | r | jonah.fisheries.data.figures = function(DS) {
#browser()
p = setup.parameters()
l = jonah.logbook.db( DS="logbook")
#l = l[which(l$yr != 2017),]
l$lfa[l$lfa == "LOBSTER - GREY ZONE"] <- "Grey Zone"
l$lfa[l$lfa == "NA"] <- "Unknown"
l$cpue = as.numeric(l$cpue)
l$effort = as.numeric(l$effort)
l$landing... |
##
## sendmailR.r - send email from within R
##
## Author:
## Olaf Mersmann (OME) <olafm@datensplitter.net>
##
.rfc2822_date <- function(time=Sys.time()) {
lc <- Sys.getlocale("LC_TIME")
on.exit(Sys.setlocale("LC_TIME", lc))
Sys.setlocale("LC_TIME", "C")
strftime(time, format="%a, %d %b %Y %H:%M:%S -0000",
... | /R/sendmailR.r | no_license | sgbstats/sendmailR | R | false | false | 6,405 | r | ##
## sendmailR.r - send email from within R
##
## Author:
## Olaf Mersmann (OME) <olafm@datensplitter.net>
##
.rfc2822_date <- function(time=Sys.time()) {
lc <- Sys.getlocale("LC_TIME")
on.exit(Sys.setlocale("LC_TIME", lc))
Sys.setlocale("LC_TIME", "C")
strftime(time, format="%a, %d %b %Y %H:%M:%S -0000",
... |
\name{simData}
\alias{simData.re}
\alias{simData.cc}
\alias{simData.gh}
\alias{simData.mx}
\title{
Generate survival times for two endpoints in a meta-analysis of randomized trials
}
\description{
Data are generated from a mixed proportional hazard model,
a Clayton copula model (Burzykowski and Cortinas Abrahante... | /man/simData.Rd | no_license | Oncostat/surrosurv | R | false | false | 5,426 | rd | \name{simData}
\alias{simData.re}
\alias{simData.cc}
\alias{simData.gh}
\alias{simData.mx}
\title{
Generate survival times for two endpoints in a meta-analysis of randomized trials
}
\description{
Data are generated from a mixed proportional hazard model,
a Clayton copula model (Burzykowski and Cortinas Abrahante... |
library(leaflet)
tagList(
leaflet(width="100%", height="100%") %>% addTiles(),
tags$style("html, body { width: 100%; height: 100%; }")
)
| /156-subapps/app3/ui.R | permissive | rstudio/shiny-examples | R | false | false | 142 | r | library(leaflet)
tagList(
leaflet(width="100%", height="100%") %>% addTiles(),
tags$style("html, body { width: 100%; height: 100%; }")
)
|
setwd("...\Desktop\pe-2 coursera\exdata_data_household_power_consumption")
getwd()
power <- read.table("household_power_consumption.txt",sep=";")
power <- read.table("household_power_consumption.txt", skip=1, sep=";")
names(power) <- c("Date", "Time", "Global_active_power", "Global_reactive_power","Voltage","Global_in... | /plot1.R | no_license | Anmol-30/Exploratory-Analysis | R | false | false | 631 | r | setwd("...\Desktop\pe-2 coursera\exdata_data_household_power_consumption")
getwd()
power <- read.table("household_power_consumption.txt",sep=";")
power <- read.table("household_power_consumption.txt", skip=1, sep=";")
names(power) <- c("Date", "Time", "Global_active_power", "Global_reactive_power","Voltage","Global_in... |
# http://web.stanford.edu/~hastie/glmnet/glmnet_alpha.html
# 100 samples, 20 predictors
library(devtools)
library(glmnet)
load("QuickStartExample.RData")
head(x)
head(y)
fit = glmnet(x, y)
plot(fit, label=T)
class(x)
class(y)
print(fit)
coef(fit,s=0.1)
nx = matrix(rnorm(10*20),10,20)
predict(fit,newx=nx,s=c(0.1,0.05))... | /exercises/glmnet_Rcode.R | no_license | fumikos/MSKCC | R | false | false | 1,027 | r | # http://web.stanford.edu/~hastie/glmnet/glmnet_alpha.html
# 100 samples, 20 predictors
library(devtools)
library(glmnet)
load("QuickStartExample.RData")
head(x)
head(y)
fit = glmnet(x, y)
plot(fit, label=T)
class(x)
class(y)
print(fit)
coef(fit,s=0.1)
nx = matrix(rnorm(10*20),10,20)
predict(fit,newx=nx,s=c(0.1,0.05))... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getRemoteHook.R
\name{getRemoteHook}
\alias{getRemoteHook}
\title{Get http Hook for Remote Repo}
\usage{
getRemoteHook(
repo = aoptions("repo"),
user = aoptions("user"),
branch = aoptions("branch"),
subdir = aoptions("subdir"),
repo... | /man/getRemoteHook.Rd | no_license | pbiecek/archivist | R | false | true | 2,632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getRemoteHook.R
\name{getRemoteHook}
\alias{getRemoteHook}
\title{Get http Hook for Remote Repo}
\usage{
getRemoteHook(
repo = aoptions("repo"),
user = aoptions("user"),
branch = aoptions("branch"),
subdir = aoptions("subdir"),
repo... |
#' export_amira.path
#'
#' Convert and save a 3D matrix into a AmiraMesh ASCII Lineset (.am) object
#' @param vertices numeric: a kx3 matrix
#' @param filename character: name of the requested output
#' @param Lines numeric: sequence of the vertices that defines the line
#' @param path character: folder path
#'... | /R/export_amira.path.R | no_license | cran/Arothron | R | false | false | 3,222 | r | #' export_amira.path
#'
#' Convert and save a 3D matrix into a AmiraMesh ASCII Lineset (.am) object
#' @param vertices numeric: a kx3 matrix
#' @param filename character: name of the requested output
#' @param Lines numeric: sequence of the vertices that defines the line
#' @param path character: folder path
#'... |
/*
* Plot 5x4 (WxSt) tables of various quantities
*/
#include <TH1F.h>
#include <TH2F.h>
#include <TF1.h>
#include <TLine.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TProfile.h>
#include <TFile.h>
#include <TColor.h>
#include <iostream>
#include <fstream>
using namespace std;
#include "DQM/DTOfflineAnal... | /DTOfflineAnalysis/test/DTPlotter/plotAllWS.r | no_license | namapane/DTDQM | R | false | false | 8,193 | r | /*
* Plot 5x4 (WxSt) tables of various quantities
*/
#include <TH1F.h>
#include <TH2F.h>
#include <TF1.h>
#include <TLine.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TProfile.h>
#include <TFile.h>
#include <TColor.h>
#include <iostream>
#include <fstream>
using namespace std;
#include "DQM/DTOfflineAnal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.