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 |
|---|---|---|---|---|---|---|---|---|---|
\name{ba.results}
\alias{ba.results}
\docType{data}
\title{CSV export of BioAnalyzer data (Results file)}
\description{
This is an example file to test the read.ba.peaktable() function.
}
\keyword{datasets}
| /man/ba.results.Rd | permissive | charles-plessy/molaR | R | false | false | 207 | rd | \name{ba.results}
\alias{ba.results}
\docType{data}
\title{CSV export of BioAnalyzer data (Results file)}
\description{
This is an example file to test the read.ba.peaktable() function.
}
\keyword{datasets}
|
library(GEOmap)
### Name: lamaz.eqarea
### Title: Lambert-Azimuthal Equal Area
### Aliases: lamaz.eqarea lamaz.inverse
### Keywords: misc
### ** Examples
data(coastmap)
######### coastmap is a GEOmap list
DEGRAD = pi/180
phicen = -90*DEGRAD
lamcen = 0*DEGRAD
i = 7
j1 = coastmap$STROKES$index[i]+1
j2 = j1+ coas... | /data/genthat_extracted_code/GEOmap/examples/lamaz.eqarea.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 551 | r | library(GEOmap)
### Name: lamaz.eqarea
### Title: Lambert-Azimuthal Equal Area
### Aliases: lamaz.eqarea lamaz.inverse
### Keywords: misc
### ** Examples
data(coastmap)
######### coastmap is a GEOmap list
DEGRAD = pi/180
phicen = -90*DEGRAD
lamcen = 0*DEGRAD
i = 7
j1 = coastmap$STROKES$index[i]+1
j2 = j1+ coas... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twitterfeatures.R
\docType{package}
\name{twitterfeatures}
\alias{twitterfeatures}
\alias{twitterfeatures-package}
\title{twitterfeatures: A package for feature engineering Twitter text data}
\description{
twitterfeatures: A package for featu... | /man/twitterfeatures.Rd | no_license | sebastian-fox/twitterfeatures | R | false | true | 355 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/twitterfeatures.R
\docType{package}
\name{twitterfeatures}
\alias{twitterfeatures}
\alias{twitterfeatures-package}
\title{twitterfeatures: A package for feature engineering Twitter text data}
\description{
twitterfeatures: A package for featu... |
### Build the best lesion model possible
### Try XG-Boost, RF, Logit (GLM), C5.0, SVM
### Find the best based on Jenna Wiens suggestions on test and training
## Marc Sze
#Load needed libraries
source('code/functions.R')
loadLibs(c("dplyr", "caret","scales", "doMC"))
load("exploratory/srn_RF_model_setup.RDa... | /code/srn/srn_run_31_RF.R | permissive | SchlossLab/Sze_FollowUps_Microbiome_2017 | R | false | false | 1,758 | r | ### Build the best lesion model possible
### Try XG-Boost, RF, Logit (GLM), C5.0, SVM
### Find the best based on Jenna Wiens suggestions on test and training
## Marc Sze
#Load needed libraries
source('code/functions.R')
loadLibs(c("dplyr", "caret","scales", "doMC"))
load("exploratory/srn_RF_model_setup.RDa... |
#' Filter a trip matrix by date and/or time
#'
#' @param bikedb A string containing the path to the SQLite3 database.
#' If no directory specified, it is presumed to be in \code{tempdir()}.
#' @param ... Additional arguments including start_time, end_time, start_date,
#' end_date, and weekday
#'
#' @return A modified v... | /R/tripmat.R | no_license | Robinlovelace/bikedata | R | false | false | 16,008 | r | #' Filter a trip matrix by date and/or time
#'
#' @param bikedb A string containing the path to the SQLite3 database.
#' If no directory specified, it is presumed to be in \code{tempdir()}.
#' @param ... Additional arguments including start_time, end_time, start_date,
#' end_date, and weekday
#'
#' @return A modified v... |
setwd("~/Documents/datascience/")
datafile <- "files/household_power_consumption.txt"
powerdata <- read.table(datafile, header=TRUE, sep = ";", na.strings = "?")
powerdata$Date <- as.Date(powerdata$Date, "%d/%m/%Y")
powerdata$Time <- strptime(powerdata$Time, "%H:%M:%S")
data_subset <- subset(powerdata, (Date == "2007... | /plot1.R | no_license | ben84621/ExData_Plotting1 | R | false | false | 553 | r | setwd("~/Documents/datascience/")
datafile <- "files/household_power_consumption.txt"
powerdata <- read.table(datafile, header=TRUE, sep = ";", na.strings = "?")
powerdata$Date <- as.Date(powerdata$Date, "%d/%m/%Y")
powerdata$Time <- strptime(powerdata$Time, "%H:%M:%S")
data_subset <- subset(powerdata, (Date == "2007... |
library(tidyverse)
library(tidymodels)
library(doMC)
library(finetune)
library(beepr)
library(treesnip)
library(catboost)
library(lightgbm)
mlb_folds <- read_rds("mlb_folds.rds")
sliced_set <- read_rds("sliced_set.rds")
doMC::registerDoMC(cores = 7)
## Time to tune with cross-validation
race <- sliced_set %>%
wo... | /wfsets_tune.R | no_license | mcmullarkey/sliced_playoffs_round_1 | R | false | false | 582 | r | library(tidyverse)
library(tidymodels)
library(doMC)
library(finetune)
library(beepr)
library(treesnip)
library(catboost)
library(lightgbm)
mlb_folds <- read_rds("mlb_folds.rds")
sliced_set <- read_rds("sliced_set.rds")
doMC::registerDoMC(cores = 7)
## Time to tune with cross-validation
race <- sliced_set %>%
wo... |
#' Method of getting data into a format to be read into
#'
#' @param year: year of data you want to train on
#' @param teamseeds: filepath of teams and their seeds
#' @param teamnames: filepath of team id to team name mapping
#'
#' @return data table ready for simulation
preprocess <- function(year, teamseeds, tea... | /R/preProcess.R | permissive | alexkaechele/MMBracketR | R | false | false | 941 | r |
#' Method of getting data into a format to be read into
#'
#' @param year: year of data you want to train on
#' @param teamseeds: filepath of teams and their seeds
#' @param teamnames: filepath of team id to team name mapping
#'
#' @return data table ready for simulation
preprocess <- function(year, teamseeds, tea... |
#' Request all bills based on the query parameters
#'
#' \code{cbpR_bills} returns all US Congressional Bills depending on the provided query regardless of the number of rows. The function uses the API of the extensive Congressional Bills Project. Information about the Congressional Bills Project can be found on the o... | /R/cbpR_bills_all.R | permissive | jandix/cbpR | R | false | false | 2,421 | r | #' Request all bills based on the query parameters
#'
#' \code{cbpR_bills} returns all US Congressional Bills depending on the provided query regardless of the number of rows. The function uses the API of the extensive Congressional Bills Project. Information about the Congressional Bills Project can be found on the o... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/getAQDMdata.R
\name{getAQDMdata}
\alias{getAQDMdata}
\title{getAQDMdata}
\usage{
getAQDMdata(..., synchronous = FALSE)
}
\arguments{
\item{synchronous}{Should a synchronous request be sent (See details)}
\item{\dots}{named query para... | /man/getAQDMdata.Rd | no_license | FluentData/raqdm | R | false | false | 1,575 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/getAQDMdata.R
\name{getAQDMdata}
\alias{getAQDMdata}
\title{getAQDMdata}
\usage{
getAQDMdata(..., synchronous = FALSE)
}
\arguments{
\item{synchronous}{Should a synchronous request be sent (See details)}
\item{\dots}{named query para... |
# Jake Yeung
# Date of Creation: 2020-11-21
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/primetime_plots/4-TF_activities_output.other_glmpca.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(hash)
library(igraph)
... | /scripts/rstudioserver_analysis/spikeins/primetime_plots/4-TF_activities_output.other_glmpca.R | no_license | jakeyeung/sortchicAllScripts | R | false | false | 7,728 | r | # Jake Yeung
# Date of Creation: 2020-11-21
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/primetime_plots/4-TF_activities_output.other_glmpca.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(scchicFuncs)
library(hash)
library(igraph)
... |
# copied from /home/bioinformatics/software/pipelines/rnaseq/rnaseq-3.0.current/R/utilities.R
# Various utility functions for plotting, loading data and so on.
suppressMessages(library(gplots))
suppressMessages(library(DESeq2))
suppressMessages(library(ggplot2))
suppressMessages(library(ggfortify))
suppressMessages(lib... | /RNASeq_DE_resistant_sensitive/analysis_scripts/other_scripts/utilities.R | permissive | lm687/Organoids_Compositional_Analysis | R | false | false | 16,530 | r | # copied from /home/bioinformatics/software/pipelines/rnaseq/rnaseq-3.0.current/R/utilities.R
# Various utility functions for plotting, loading data and so on.
suppressMessages(library(gplots))
suppressMessages(library(DESeq2))
suppressMessages(library(ggplot2))
suppressMessages(library(ggfortify))
suppressMessages(lib... |
df_list <- lapply(mtcars, function(x) {
data.frame(m = mean(x), sd = sd(x))
})
df_list2 <- lapply(mtcars, function(x) {
c(m = mean(x), sd = sd(x))
})
###
test_that("do call with rbind", {
out <- do_call_rbind_withName(df_list, colName = "variable")
expect_equal(names(out), c("variable", "m", "sd"))... | /tests/testthat/test_do_call_rbind_withName.R | no_license | weirichs/eatTools | R | false | false | 2,006 | r |
df_list <- lapply(mtcars, function(x) {
data.frame(m = mean(x), sd = sd(x))
})
df_list2 <- lapply(mtcars, function(x) {
c(m = mean(x), sd = sd(x))
})
###
test_that("do call with rbind", {
out <- do_call_rbind_withName(df_list, colName = "variable")
expect_equal(names(out), c("variable", "m", "sd"))... |
library(corrplot)
##library bnlearn to build dag with data
library(bnlearn)
## charge data : in the case data example generate with script : simulate_phenotype.r
DataPheno<-read.csv('ressource/test_data.csv')
## relation between variable
jpeg('ressource/corrplot_datasettest.jpeg')
corrplot(cor(DataPheno[,-1]))
dev.o... | /build_dag.r | no_license | jeantristanb/dag_6step_epidemiology | R | false | false | 920 | r | library(corrplot)
##library bnlearn to build dag with data
library(bnlearn)
## charge data : in the case data example generate with script : simulate_phenotype.r
DataPheno<-read.csv('ressource/test_data.csv')
## relation between variable
jpeg('ressource/corrplot_datasettest.jpeg')
corrplot(cor(DataPheno[,-1]))
dev.o... |
library(tidyverse)
library(knitr)
library(deSolve)
library(igraph)
knitr::opts_chunk$set(
cache = TRUE, # if TRUE knitr will cache the results to reuse in future knits
fig.width = 5, # the width for plots created by code chunk
fig.height = 5, # the height for plots created by code chunk
... | /common_settings.R | no_license | OnlyBelter/ICTP_Winter_School | R | false | false | 900 | r | library(tidyverse)
library(knitr)
library(deSolve)
library(igraph)
knitr::opts_chunk$set(
cache = TRUE, # if TRUE knitr will cache the results to reuse in future knits
fig.width = 5, # the width for plots created by code chunk
fig.height = 5, # the height for plots created by code chunk
... |
# Auxiliary functions for ROBPCA and ROSPCA; function for diagnostic plot.
#################################################################################
# Auxiliary functions for ROBPCA and ROSPCA
#################################################################################
# univariate MCD estimator ba... | /R/Aux_sparse_robust.R | no_license | cran/rospca | R | false | false | 7,717 | r | # Auxiliary functions for ROBPCA and ROSPCA; function for diagnostic plot.
#################################################################################
# Auxiliary functions for ROBPCA and ROSPCA
#################################################################################
# univariate MCD estimator ba... |
% Generated by roxygen2 (4.0.2.9000): do not edit by hand
% Please edit documentation in R/demography_functions.R
\name{ann.gr}
\alias{ann.gr}
\title{Calculates annualized growth rates.}
\usage{
ann.gr(begin, end, n)
}
\arguments{
\item{begin}{Value at the beginning of the period.}
\item{end}{Value at the end of the p... | /man/ann.gr.Rd | no_license | robkemp/robR | R | false | false | 521 | rd | % Generated by roxygen2 (4.0.2.9000): do not edit by hand
% Please edit documentation in R/demography_functions.R
\name{ann.gr}
\alias{ann.gr}
\title{Calculates annualized growth rates.}
\usage{
ann.gr(begin, end, n)
}
\arguments{
\item{begin}{Value at the beginning of the period.}
\item{end}{Value at the end of the p... |
library(rinat)
bounds <- c(44.15, -10.13, 35.67, 4.76) #Spain
hesp <- get_inat_obs(taxon_name = "Hesperiidae", geo = TRUE, maxresults = 70000 , bounds = bounds)
lyc <- get_inat_obs(taxon_name = "Lycaenidae", geo = TRUE, maxresults = 70000 , bounds = bounds)
hesp$family <- "Hesperiidae"
lyc$family <- "Lycaenidae"
... | /lepidoptera_inat.R | permissive | ecoinfAEET/dataton_sibecol_2019 | R | false | false | 836 | r | library(rinat)
bounds <- c(44.15, -10.13, 35.67, 4.76) #Spain
hesp <- get_inat_obs(taxon_name = "Hesperiidae", geo = TRUE, maxresults = 70000 , bounds = bounds)
lyc <- get_inat_obs(taxon_name = "Lycaenidae", geo = TRUE, maxresults = 70000 , bounds = bounds)
hesp$family <- "Hesperiidae"
lyc$family <- "Lycaenidae"
... |
#################### DISTRIBUTED COX REGRESSION FUNCTIONS ####################
prepare_folder_cox_a2 <- function(params, monitor_folder) {
if (params$trace) cat(as.character(Sys.time()), "prepare_folder_cox_a2\n\n")
params$dp_local_path <- file.path(monitor_folder, "dplocal")
params$r_programs_path <- file.pat... | /R/vertical_2party_cox.R | no_license | kentedegrees/vdra | R | false | false | 87,637 | r | #################### DISTRIBUTED COX REGRESSION FUNCTIONS ####################
prepare_folder_cox_a2 <- function(params, monitor_folder) {
if (params$trace) cat(as.character(Sys.time()), "prepare_folder_cox_a2\n\n")
params$dp_local_path <- file.path(monitor_folder, "dplocal")
params$r_programs_path <- file.pat... |
#' Function to fit a local radial basis function (CReSS) as a two dimensional smooth
#'
#'
#' @export
#'
"fit.thinPlate_2d" <- function(fitnessMeasure, dists,aR,radii,baseModel,radiusIndices,models, currentFit, interactionTerm, data, initDisp, cv.opts, basis='gaussian', hdetest) {
if (isS4(baseModel)){
attribu... | /R/fit.thinplate_2d.R | no_license | CMFell/MRSeaCF | R | false | false | 4,664 | r | #' Function to fit a local radial basis function (CReSS) as a two dimensional smooth
#'
#'
#' @export
#'
"fit.thinPlate_2d" <- function(fitnessMeasure, dists,aR,radii,baseModel,radiusIndices,models, currentFit, interactionTerm, data, initDisp, cv.opts, basis='gaussian', hdetest) {
if (isS4(baseModel)){
attribu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/symbolConvert.R
\name{symbolConvert}
\alias{symbolConvert}
\title{symbolConvert}
\usage{
symbolConvert(x, in.type, out.type)
}
\arguments{
\item{x}{.}
\item{in.type}{.}
\item{out.type}{.}
}
\value{
value
}
\description{
.
}
| /man/symbolConvert.Rd | no_license | saralinker/GONetwork | R | false | true | 304 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/symbolConvert.R
\name{symbolConvert}
\alias{symbolConvert}
\title{symbolConvert}
\usage{
symbolConvert(x, in.type, out.type)
}
\arguments{
\item{x}{.}
\item{in.type}{.}
\item{out.type}{.}
}
\value{
value
}
\description{
.
}
|
MolecularWeight <- function(formula = list(), amu = list()) {
defaultFormula <- list(C = 0, H = 0, N = 0, O = 0, S = 0, P = 0, Br = 0, Cl = 0, F = 0, I = 0, Si = 0, Sn = 0, x = 0)
defaultFormula[names(formula)] <- formula # replace default values with argument values
defaultAmu <- list(C = 12.01... | /OrgMassSpecR/R/MolecularWeight.R | no_license | OrgMassSpec/OrgMassSpecR | R | false | false | 1,434 | r | MolecularWeight <- function(formula = list(), amu = list()) {
defaultFormula <- list(C = 0, H = 0, N = 0, O = 0, S = 0, P = 0, Br = 0, Cl = 0, F = 0, I = 0, Si = 0, Sn = 0, x = 0)
defaultFormula[names(formula)] <- formula # replace default values with argument values
defaultAmu <- list(C = 12.01... |
# read data
filename <- "exdata_data_NEI_data.zip"
if(!file.exists(filename)){
fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
download.file(fileurl, "exdata_data_NEI_data.zip")
}
if(!file.exists("Source_Classification_Code.rds") | !file.exists("Source_Classification_Code.rds")... | /plot2.R | no_license | cdwimer/Exploratory-Data-Analysis-Course-Project-2 | R | false | false | 739 | r | # read data
filename <- "exdata_data_NEI_data.zip"
if(!file.exists(filename)){
fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
download.file(fileurl, "exdata_data_NEI_data.zip")
}
if(!file.exists("Source_Classification_Code.rds") | !file.exists("Source_Classification_Code.rds")... |
#===============================================================================
# This scrupt performs blast of Saeed's selected proteins against a reference
# database. The correct databse is not yet identified
#
# Tyler Bradley
# 2019-06-17
#=========================================================================... | /saeed-request/gene-blast.R | no_license | tbradley1013/drexel | R | false | false | 864 | r | #===============================================================================
# This scrupt performs blast of Saeed's selected proteins against a reference
# database. The correct databse is not yet identified
#
# Tyler Bradley
# 2019-06-17
#=========================================================================... |
library(dplyr)
#tests for formatFig.R
test_that("default output is returned", {
expect_true(!is.null(formatFig()))
})
test_that("selected output is returned", {
expect_true(!is.null(formatFig("bioinformatics")))
})
test_that("warning is returned when type is not recognized", {
expect_warning(formatFig(type = "no... | /tests/testthat/test_me.R | no_license | JustinChu/cjustin.utils | R | false | false | 2,724 | r | library(dplyr)
#tests for formatFig.R
test_that("default output is returned", {
expect_true(!is.null(formatFig()))
})
test_that("selected output is returned", {
expect_true(!is.null(formatFig("bioinformatics")))
})
test_that("warning is returned when type is not recognized", {
expect_warning(formatFig(type = "no... |
library(optparse)
option_list <- list(
make_option(c("-p", "--predictor"), type="character", default=NULL,
help="prediction model",
metavar="character"),
make_option(c("-t", "--test_data"), type="character", default=NULL,
help="output prefix",
met... | /code/sim_predict.R | permissive | liangyy/mixqtl-pipeline | R | false | false | 1,376 | r | library(optparse)
option_list <- list(
make_option(c("-p", "--predictor"), type="character", default=NULL,
help="prediction model",
metavar="character"),
make_option(c("-t", "--test_data"), type="character", default=NULL,
help="output prefix",
met... |
# estimate NSW isolation effect
source("R/functions.R")
nsw_ll <- read_csv(
"~/not_synced/nsw/20201224 - Case list - James McCaw.csv",
col_types = cols(
.default = col_character(),
CASE_ID = col_double(),
EARLIEST_CONFIRMED_OR_PROBABLE = col_nsw_date(),
SYMPTOM_ONSET_DATE = col_nsw_date(),
CALC... | /R/nsw_isolation_effect.R | permissive | ACT-covid-resources/covid19_australia_interventions | R | false | false | 1,799 | r | # estimate NSW isolation effect
source("R/functions.R")
nsw_ll <- read_csv(
"~/not_synced/nsw/20201224 - Case list - James McCaw.csv",
col_types = cols(
.default = col_character(),
CASE_ID = col_double(),
EARLIEST_CONFIRMED_OR_PROBABLE = col_nsw_date(),
SYMPTOM_ONSET_DATE = col_nsw_date(),
CALC... |
###
### $Id: zeros.R 29 2022-05-30 23:02:22Z proebuck $
###
### Create a matrix of all zeros.
###
##-----------------------------------------------------------------------------
zeros <- function(...) {
nargs <- length(dots <- list(...))
dims <- as.integer(if (nargs == 1 && is.size_t(dots[[1]])) {
... | /R/zeros.R | no_license | cran/matlab | R | false | false | 718 | r | ###
### $Id: zeros.R 29 2022-05-30 23:02:22Z proebuck $
###
### Create a matrix of all zeros.
###
##-----------------------------------------------------------------------------
zeros <- function(...) {
nargs <- length(dots <- list(...))
dims <- as.integer(if (nargs == 1 && is.size_t(dots[[1]])) {
... |
stopifnot(require(methods))
stopifnot(require(utils))
stopifnot(require(roxygen2))
argv <- commandArgs(TRUE)
roxygenize(argv[1], roclets = c("rd", "namespace"))
| /inst/roxygenize/_namespacerd.R | no_license | wush978/RCMake | R | false | false | 161 | r | stopifnot(require(methods))
stopifnot(require(utils))
stopifnot(require(roxygen2))
argv <- commandArgs(TRUE)
roxygenize(argv[1], roclets = c("rd", "namespace"))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MPG.R
\docType{data}
\name{MPG}
\alias{MPG}
\title{Fuel economy measurements on US car models}
\format{
A data.frame object with one row year for each model or configuration
of automobile or light truck sold in the US.
\itemize{
\item manufac... | /man/MPG.Rd | no_license | dtkaplan/SDSdata | R | false | true | 3,079 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MPG.R
\docType{data}
\name{MPG}
\alias{MPG}
\title{Fuel economy measurements on US car models}
\format{
A data.frame object with one row year for each model or configuration
of automobile or light truck sold in the US.
\itemize{
\item manufac... |
shift <- function(x, n, invert=FALSE, default=NA){
stopifnot(length(x)>=n)
if(n==0){
return(x)
}
n <- ifelse(invert, n*(-1), n)
if(n<0){
n <- abs(n)
forward=FALSE
}else{
forward=TRUE
}
if(forward){
return(c(rep(default, n), x[seq_len(length(x)-n)]))
}
if(!forward){
return(c(x... | /scripts/v2/viz-expt-5.r | permissive | probmods/carl | R | false | false | 1,858 | r | shift <- function(x, n, invert=FALSE, default=NA){
stopifnot(length(x)>=n)
if(n==0){
return(x)
}
n <- ifelse(invert, n*(-1), n)
if(n<0){
n <- abs(n)
forward=FALSE
}else{
forward=TRUE
}
if(forward){
return(c(rep(default, n), x[seq_len(length(x)-n)]))
}
if(!forward){
return(c(x... |
data = read.csv("fine_tuning_probs.csv", sep=",")
data
eval <- predictionStats_binary(predictions=cbind(gt,pred), plotname="AUC")
eval$aucs
eval$berror
eval$accc
summary(eval$CM.analysis) | /Untitled.R | no_license | Alejandro-Valdes/KfoldAD | R | false | false | 188 | r | data = read.csv("fine_tuning_probs.csv", sep=",")
data
eval <- predictionStats_binary(predictions=cbind(gt,pred), plotname="AUC")
eval$aucs
eval$berror
eval$accc
summary(eval$CM.analysis) |
#peak frequnecy significant wave height correlation
Delta = 1/1.28 # this is 1.28 Hz data
N = 2304
daysInMonth <- c(31,28,31,30,31,30,31,31,30,31,30,31)
Hs <- c()
peakfrequencies <- c()
weeklyAverageHs <- c()
## periodogram
omega = seq(0,pi/Delta,by = 2*pi/Delta/N)
buoyName = "Wavehub"
year = 2017
mo... | /comparing peak frequency and significant wave height.R | no_license | jackmcginn466/R | R | false | false | 1,197 | r | #peak frequnecy significant wave height correlation
Delta = 1/1.28 # this is 1.28 Hz data
N = 2304
daysInMonth <- c(31,28,31,30,31,30,31,31,30,31,30,31)
Hs <- c()
peakfrequencies <- c()
weeklyAverageHs <- c()
## periodogram
omega = seq(0,pi/Delta,by = 2*pi/Delta/N)
buoyName = "Wavehub"
year = 2017
mo... |
version = function() {
return("1.3.1")
}
configure_result = function(result, username = NULL, password = NULL, auth_token=NULL) {
data = result$data
self = result$self
property = result$property
properties = result$properties
labels = result$labels
create_rel = result$create_relationship
inc = result$i... | /R/internal.R | permissive | noelnamai/RNeo4j | R | false | false | 6,506 | r | version = function() {
return("1.3.1")
}
configure_result = function(result, username = NULL, password = NULL, auth_token=NULL) {
data = result$data
self = result$self
property = result$property
properties = result$properties
labels = result$labels
create_rel = result$create_relationship
inc = result$i... |
context("nth number after mth pattern")
test_that("`nth_number_after_mth()` works", {
string <- c(
"abc1abc2abc3abc4abc5abc6abc7abc8abc9",
"abc1def2ghi3abc4def5ghi6abc7def8ghi9"
)
expect_equal(str_nth_number_after_mth(string, "abc", 1, 3), c(3, 7))
expect_equal(str_nth_number_after_mth(string, "abc", 2... | /data/genthat_extracted_code/strex/tests/test-nth-num-after-mth.R | no_license | surayaaramli/typeRrh | R | false | false | 889 | r | context("nth number after mth pattern")
test_that("`nth_number_after_mth()` works", {
string <- c(
"abc1abc2abc3abc4abc5abc6abc7abc8abc9",
"abc1def2ghi3abc4def5ghi6abc7def8ghi9"
)
expect_equal(str_nth_number_after_mth(string, "abc", 1, 3), c(3, 7))
expect_equal(str_nth_number_after_mth(string, "abc", 2... |
# Set up environment -----------------------------------------------------------
## Libraries
library(lme4)
# Model preparation ------------------------------------------------------------
## For null model
modelNull = function(.model, nullVar = NULL) {
if (is.null(nullVar)) {
formulaEls = sapply(
... | /model-selection.R | no_license | rknx/nursery-dispersal | R | false | false | 1,899 | r | # Set up environment -----------------------------------------------------------
## Libraries
library(lme4)
# Model preparation ------------------------------------------------------------
## For null model
modelNull = function(.model, nullVar = NULL) {
if (is.null(nullVar)) {
formulaEls = sapply(
... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
hyper_bench_vector <- function(xin, yin, N, n) {
.Call('_RichR_hyper_bench_vector', PACKAGE = 'RichR', xin, yin, N, n)
}
name_table <- function(lh) {
.Call('_RichR_name_table', PACKAGE... | /R/RcppExports.R | no_license | hurlab/RichR-Backup | R | false | false | 659 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
hyper_bench_vector <- function(xin, yin, N, n) {
.Call('_RichR_hyper_bench_vector', PACKAGE = 'RichR', xin, yin, N, n)
}
name_table <- function(lh) {
.Call('_RichR_name_table', PACKAGE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphDGEobj.R
\name{mapDGEobj}
\alias{mapDGEobj}
\title{Function mapDGEobj}
\usage{
mapDGEobj(dgeObj, directed = TRUE)
}
\arguments{
\item{DGEobj}{A workflow object of DGEobj class data.}
}
\value{
A class igraph network object.
}
\descriptio... | /man/mapDGEobj.Rd | no_license | jrthompson54/DGE.Tools2 | R | false | true | 1,582 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphDGEobj.R
\name{mapDGEobj}
\alias{mapDGEobj}
\title{Function mapDGEobj}
\usage{
mapDGEobj(dgeObj, directed = TRUE)
}
\arguments{
\item{DGEobj}{A workflow object of DGEobj class data.}
}
\value{
A class igraph network object.
}
\descriptio... |
taste.lm <- lm(score ~ scr * liq, data = TasteTest)
msummary(taste.lm)
| /inst/snippet/taste-anova04.R | no_license | rpruim/fastR2 | R | false | false | 72 | r | taste.lm <- lm(score ~ scr * liq, data = TasteTest)
msummary(taste.lm)
|
CreateArff <- function(train = NULL, test = NULL, relation = NULL) {
# TEST#####
# source('dataset.R')
# LoadAdultDataset(asStrings = TRUE)
# train <- adult
# test <- adult.test
# relation <- 'adult'
###########
lines <- c( paste0('@RELATION ', relation) )
lines[2] <- ''
index <- 3
all <- rb... | /create_arff.R | no_license | rafael2reis/ml-adult | R | false | false | 1,438 | r | CreateArff <- function(train = NULL, test = NULL, relation = NULL) {
# TEST#####
# source('dataset.R')
# LoadAdultDataset(asStrings = TRUE)
# train <- adult
# test <- adult.test
# relation <- 'adult'
###########
lines <- c( paste0('@RELATION ', relation) )
lines[2] <- ''
index <- 3
all <- rb... |
#' Store SMTP credentials in a file
#'
#' We can create a file with SMTP configuration and access credentials for the
#' purpose of more easily sending email messages through [smtp_send()]. With
#' this file produced, the credentials helper [creds_file()] can be used in the
#' `credentials` argument of [smtp_send()].
#... | /R/create_credentials.R | permissive | bennlich/blastula | R | false | false | 8,511 | r | #' Store SMTP credentials in a file
#'
#' We can create a file with SMTP configuration and access credentials for the
#' purpose of more easily sending email messages through [smtp_send()]. With
#' this file produced, the credentials helper [creds_file()] can be used in the
#' `credentials` argument of [smtp_send()].
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSEA-by-boot.R
\name{gseaAfterBoot}
\alias{gseaAfterBoot}
\title{Gene set analysis for hurdle model}
\usage{
gseaAfterBoot(zFit, boots, sets, hypothesis, control = list(n_randomize = Inf,
var_estimate = "bootall"))
}
\arguments{
\item{zFit}... | /man/gseaAfterBoot.Rd | no_license | lagzxadr/MAST | R | false | true | 3,150 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GSEA-by-boot.R
\name{gseaAfterBoot}
\alias{gseaAfterBoot}
\title{Gene set analysis for hurdle model}
\usage{
gseaAfterBoot(zFit, boots, sets, hypothesis, control = list(n_randomize = Inf,
var_estimate = "bootall"))
}
\arguments{
\item{zFit}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_emoji.R
\name{geom_emoji}
\alias{geom_emoji}
\title{Emoji geom}
\usage{
geom_emoji(
mapping = NULL,
data = NULL,
stat = "emoji",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
}
\descrip... | /man/geom_emoji.Rd | permissive | dill/emoGG | R | false | true | 661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_emoji.R
\name{geom_emoji}
\alias{geom_emoji}
\title{Emoji geom}
\usage{
geom_emoji(
mapping = NULL,
data = NULL,
stat = "emoji",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
}
\descrip... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame-calendar.R, R/prettify.R
\name{frame_calendar}
\alias{frame_calendar}
\alias{prettify}
\title{Rearrange a temporal data frame to a calendar-based data format using linear algebra}
\usage{
frame_calendar(
data,
x,
y,
date,
cale... | /man/frame-calendar.Rd | no_license | earowang/sugrrants | R | false | true | 6,413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame-calendar.R, R/prettify.R
\name{frame_calendar}
\alias{frame_calendar}
\alias{prettify}
\title{Rearrange a temporal data frame to a calendar-based data format using linear algebra}
\usage{
frame_calendar(
data,
x,
y,
date,
cale... |
rankall <- function(outcome, num = "best") {
## Read outcome data
con <- file("/Users/nildavargas/Documents/Clases 2017/R Programming/R Projects/ProgAssignment3-data/outcome-of-care-measures.csv","r")
df <- read.csv(con, header=TRUE)
close(con)
#print(num)
##List... | /rankall.R | no_license | rpagan30/R-Scripts | R | false | false | 4,951 | r | rankall <- function(outcome, num = "best") {
## Read outcome data
con <- file("/Users/nildavargas/Documents/Clases 2017/R Programming/R Projects/ProgAssignment3-data/outcome-of-care-measures.csv","r")
df <- read.csv(con, header=TRUE)
close(con)
#print(num)
##List... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wang_swail_prewhiten.R
\name{wang_swail_prewhiten_1d}
\alias{wang_swail_prewhiten_1d}
\title{Prewhitening 1D}
\usage{
wang_swail_prewhiten_1d(
x,
...,
eps = 1e-04,
rho_th = 0.05,
itmax = 20,
useC = TRUE
)
}
\arguments{
\item{x}{ei... | /man/wang_swail_prewhiten_1d.Rd | no_license | antiphon/ConMK | R | false | true | 1,053 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wang_swail_prewhiten.R
\name{wang_swail_prewhiten_1d}
\alias{wang_swail_prewhiten_1d}
\title{Prewhitening 1D}
\usage{
wang_swail_prewhiten_1d(
x,
...,
eps = 1e-04,
rho_th = 0.05,
itmax = 20,
useC = TRUE
)
}
\arguments{
\item{x}{ei... |
library("gurobi")
library("Matrix")
### Relax on Constraint 9 ###
### Subproblem ###
u1 = 0
mySP = list()
mySP$modelsense = "min"
mySP$obj = c(20-u1,15-u1,3-4*u1,18-4*u1, 10-4*u1)
mySP$A = Matrix(c(3,2,-1,5,3,3,2,-1,3,2), nrow=2, ncol=5, byrow=T, sparse=T)
mySP$sense = c(">=")
mySP$rhs = c(10,10)
mySP$vtypes = "B"
... | /Assignment 2/A2_Problem2.R | no_license | spdasilv/msci435 | R | false | false | 2,370 | r | library("gurobi")
library("Matrix")
### Relax on Constraint 9 ###
### Subproblem ###
u1 = 0
mySP = list()
mySP$modelsense = "min"
mySP$obj = c(20-u1,15-u1,3-4*u1,18-4*u1, 10-4*u1)
mySP$A = Matrix(c(3,2,-1,5,3,3,2,-1,3,2), nrow=2, ncol=5, byrow=T, sparse=T)
mySP$sense = c(">=")
mySP$rhs = c(10,10)
mySP$vtypes = "B"
... |
# The original python dash-svm-explorer pulls datasets from sklearn
# The package clusterSim in CRAN can be used to generate moons and circles
# the data is generated here and saved locally.
# required dependency installation:
# BiocManager::install("genefilter")
# install.packages("clusterSim")
library(clusterSim)
l... | /apps/dashr-svm/data/getData.R | permissive | billshi18/dash-sample-apps | R | false | false | 1,232 | r | # The original python dash-svm-explorer pulls datasets from sklearn
# The package clusterSim in CRAN can be used to generate moons and circles
# the data is generated here and saved locally.
# required dependency installation:
# BiocManager::install("genefilter")
# install.packages("clusterSim")
library(clusterSim)
l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/onset_contingent_data.R
\name{plot.onset_data}
\alias{plot.onset_data}
\title{Plot onset-contingent data}
\usage{
\method{plot}{onset_data}(x, predictor_columns = NULL, ...)
}
\arguments{
\item{x}{The output of the \code{make_onset_data} func... | /man/plot.onset_data.Rd | permissive | jwdink/eyetrackingR | R | false | true | 613 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/onset_contingent_data.R
\name{plot.onset_data}
\alias{plot.onset_data}
\title{Plot onset-contingent data}
\usage{
\method{plot}{onset_data}(x, predictor_columns = NULL, ...)
}
\arguments{
\item{x}{The output of the \code{make_onset_data} func... |
#' Determine Linear Regression Coefficients from Dose-Effect Data
#'
#' Determine coefficients (intercept and slope) from dose-effect data using
#' simple linear regression on the log10 dose vs. probit effect scale.
#' @param DEdata
#' A data frame of dose-effect data (typically, the output from
#' \code{... | /R/fitlinear.R | no_license | cran/LW1949 | R | false | false | 2,016 | r | #' Determine Linear Regression Coefficients from Dose-Effect Data
#'
#' Determine coefficients (intercept and slope) from dose-effect data using
#' simple linear regression on the log10 dose vs. probit effect scale.
#' @param DEdata
#' A data frame of dose-effect data (typically, the output from
#' \code{... |
rattle()
#============================================================
# Rattle is Copyright (c) 2006-2017 Togaware Pty Ltd.
# It is open source software and is freely available.
# It is licensed under the GNU General Public License,
# Version 2. Rattle comes with ABSOLUTELY NO WARRANTY.
# Rattle was written by Gra... | /npower/Npower.R | no_license | ahmeduncc/class-notes-Fall2017 | R | false | false | 14,413 | r | rattle()
#============================================================
# Rattle is Copyright (c) 2006-2017 Togaware Pty Ltd.
# It is open source software and is freely available.
# It is licensed under the GNU General Public License,
# Version 2. Rattle comes with ABSOLUTELY NO WARRANTY.
# Rattle was written by Gra... |
DAISIE_loglik_IW_choosepar <- function(
trparsopt,
trparsfix,
idparsopt,
idparsfix,
pars2,
M,
datalist,
methode = 'ode45',
abstolint = 1E-16,
reltolint = 1E-14
)
{
trpars1 = rep(0,5)
trpars1[idparsopt] = trparsopt
if(length(idparsfix) != 0)
{
trpars1[idparsfix] = trparsfix
}
if(max... | /R/DAISIE_ML_IW.R | no_license | xieshu95/Test-Trasie | R | false | false | 10,159 | r | DAISIE_loglik_IW_choosepar <- function(
trparsopt,
trparsfix,
idparsopt,
idparsfix,
pars2,
M,
datalist,
methode = 'ode45',
abstolint = 1E-16,
reltolint = 1E-14
)
{
trpars1 = rep(0,5)
trpars1[idparsopt] = trparsopt
if(length(idparsfix) != 0)
{
trpars1[idparsfix] = trparsfix
}
if(max... |
#날짜 : 2021/01/27
#이름 : 김하린
#내용 : Ch14.요인분석과 상관관계 분석 - 요인분석(주성분 분석) 분석 실습 교재 p449
install.packages('ggplot2')
install.packages('dplyr')
library(ggplot2)
library(dplyr)
data(iris)
View(iris)
#주성분 분석 시행
pca_iris <- prcomp(iris[,1:4])
pca_iris
summary(pca_iris)
#시각화
plot(pca_iris)
#새로운 주성분으로 iris데이터 계산
pre_iris <- p... | /Ch14/14_2_PCA.R | no_license | kimhalyn/R | R | false | false | 967 | r | #날짜 : 2021/01/27
#이름 : 김하린
#내용 : Ch14.요인분석과 상관관계 분석 - 요인분석(주성분 분석) 분석 실습 교재 p449
install.packages('ggplot2')
install.packages('dplyr')
library(ggplot2)
library(dplyr)
data(iris)
View(iris)
#주성분 분석 시행
pca_iris <- prcomp(iris[,1:4])
pca_iris
summary(pca_iris)
#시각화
plot(pca_iris)
#새로운 주성분으로 iris데이터 계산
pre_iris <- p... |
\name{introduction}
\alias{P4CRT}
\title{Introduction to \code{P4CRT}}
\description{
\code{P4CRT} is ....
Please email us any issues or suggestions.
}
\author{
Bang Le \email{lethbang@yahoo.com}
Jessaca Spybrook \email{???}
}
\references{
Bloom, H. S., Richburg- Hayes, L. & Black, A. R. (2007). Using Cova... | /man/introduction.Rd | no_license | bangtle/P4CRT | R | false | false | 3,808 | rd | \name{introduction}
\alias{P4CRT}
\title{Introduction to \code{P4CRT}}
\description{
\code{P4CRT} is ....
Please email us any issues or suggestions.
}
\author{
Bang Le \email{lethbang@yahoo.com}
Jessaca Spybrook \email{???}
}
\references{
Bloom, H. S., Richburg- Hayes, L. & Black, A. R. (2007). Using Cova... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_quebec_cas_par_css.R
\name{carte_css}
\alias{carte_css}
\title{carte_css}
\usage{
carte_css(css_last_week = NULL, type = "maximum")
}
\value{
}
\description{
carte_css
}
| /man/carte_css.Rd | permissive | SimonCoulombe/covidtwitterbot | R | false | true | 255 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graph_quebec_cas_par_css.R
\name{carte_css}
\alias{carte_css}
\title{carte_css}
\usage{
carte_css(css_last_week = NULL, type = "maximum")
}
\value{
}
\description{
carte_css
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pushing.r
\name{pushing}
\alias{pushing}
\alias{push}
\alias{push.deque}
\alias{push.stack}
\alias{pushback}
\alias{pushback.deque}
\alias{pushback.queue}
\title{push/pushback}
\usage{
push(x, data)
\method{push}{deque}(x, data)
\method{pus... | /man/pushing.Rd | permissive | wrathematics/dequer | R | false | true | 1,033 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pushing.r
\name{pushing}
\alias{pushing}
\alias{push}
\alias{push.deque}
\alias{push.stack}
\alias{pushback}
\alias{pushback.deque}
\alias{pushback.queue}
\title{push/pushback}
\usage{
push(x, data)
\method{push}{deque}(x, data)
\method{pus... |
library(dplyr)
library(ggplot2)
library(egg)
library(lubridate)
getwd()
#Aqui va la ruta donde están alojados archivos
#setwd("C:/Users/bety-/Documents/CURSOS/DATA SCIENCE/FundamentosR/Proyecto/Grafica1")
fecha <- function(dataframe){
dataframe$Fecha <- as.Date(dataframe$Fecha) %>% format("%b") %>%
factor(le... | /datos_IMECA/datos_limpios/promedios/ordenGraficas.R | no_license | BettySanchez7/Analisis_Calidad_AireCDMX | R | false | false | 2,150 | r |
library(dplyr)
library(ggplot2)
library(egg)
library(lubridate)
getwd()
#Aqui va la ruta donde están alojados archivos
#setwd("C:/Users/bety-/Documents/CURSOS/DATA SCIENCE/FundamentosR/Proyecto/Grafica1")
fecha <- function(dataframe){
dataframe$Fecha <- as.Date(dataframe$Fecha) %>% format("%b") %>%
factor(le... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{geneSEQ}
\alias{geneSEQ}
\title{a string which is the sequence of 2019-nCoV}
\format{a string}
\usage{
geneSEQ
}
\description{
a string which is the sequence of 2019-nCoV
}
\keyword{datasets}
| /man/geneSEQ.Rd | no_license | cran/R2019nCoV | R | false | true | 298 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{geneSEQ}
\alias{geneSEQ}
\title{a string which is the sequence of 2019-nCoV}
\format{a string}
\usage{
geneSEQ
}
\description{
a string which is the sequence of 2019-nCoV
}
\keyword{datasets}
|
# Functions for preparing biomarker data for analysis
# (in general, supporting functions for prep_data.R)
#' Function to prepare biomarker data matrix for analysis
#'
#' This function reshapes the biomarker data, normalizes
#' various input formats accepted, and filters to records in the clinical
#' dataset. It does... | /R/prep_biomarker_data.R | permissive | softbear/SuMu | R | false | false | 8,607 | r | # Functions for preparing biomarker data for analysis
# (in general, supporting functions for prep_data.R)
#' Function to prepare biomarker data matrix for analysis
#'
#' This function reshapes the biomarker data, normalizes
#' various input formats accepted, and filters to records in the clinical
#' dataset. It does... |
\name{bootMer}
\alias{bootMer}
\title{Model-based (Semi-)Parametric Bootstrap for Mixed Models}
\usage{
bootMer(x, FUN, nsim = 1, seed = NULL, use.u = FALSE, re.form=NA,
type = c("parametric", "semiparametric"),
verbose = FALSE, .progress = "none", PBargs = list(),
parallel = c("no", "multicore", "snow"),
ncpus = g... | /man/bootMer.Rd | no_license | campbell-2589/lme4 | R | false | false | 8,498 | rd | \name{bootMer}
\alias{bootMer}
\title{Model-based (Semi-)Parametric Bootstrap for Mixed Models}
\usage{
bootMer(x, FUN, nsim = 1, seed = NULL, use.u = FALSE, re.form=NA,
type = c("parametric", "semiparametric"),
verbose = FALSE, .progress = "none", PBargs = list(),
parallel = c("no", "multicore", "snow"),
ncpus = g... |
#This script extracts EPA air quality hourly data from monitors nearest to
#the farms and within some distance.
#######################################################
#######################################################
db <- dbConnect(SQLite(), dbname="database/epa.sqlite")
##################################... | /code/02-pollution.R | no_license | jbayham/EPA_AQS_monitor | R | false | false | 1,831 | r | #This script extracts EPA air quality hourly data from monitors nearest to
#the farms and within some distance.
#######################################################
#######################################################
db <- dbConnect(SQLite(), dbname="database/epa.sqlite")
##################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/textmodel-internal.R, R/textmodel-wordfish.R,
% R/textmodel-wordscores.R, R/textmodel-wordshoal.R
\docType{class}
\name{textmodel-internal}
\alias{textmodel-internal}
\alias{textmodel_wordfish_fitted-class}
\alias{textmodel_wordfish_predict... | /man/textmodel-internal.Rd | no_license | plablo09/quanteda | R | false | true | 3,479 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/textmodel-internal.R, R/textmodel-wordfish.R,
% R/textmodel-wordscores.R, R/textmodel-wordshoal.R
\docType{class}
\name{textmodel-internal}
\alias{textmodel-internal}
\alias{textmodel_wordfish_fitted-class}
\alias{textmodel_wordfish_predict... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_names.R
\name{search_names}
\alias{search_names}
\title{Lookup of taxonomic names}
\usage{
search_names(taxa = c(), vernacular = FALSE, guids_only = FALSE,
occurrence_count = FALSE, output_format = "simple")
}
\arguments{
\item{taxa}... | /man/search_names.Rd | no_license | hieuqtran/ALA4R | R | false | true | 2,671 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search_names.R
\name{search_names}
\alias{search_names}
\title{Lookup of taxonomic names}
\usage{
search_names(taxa = c(), vernacular = FALSE, guids_only = FALSE,
occurrence_count = FALSE, output_format = "simple")
}
\arguments{
\item{taxa}... |
library(ggplot2)
library(ggpubr)
library(dplyr)
library(foreign)
#import selected huc dbf file
library("foreign")
data=read.dbf("C:/Users/yfang.local/Desktop/R/hydrolandcoverselected.dbf")
#######-----------------------------------------------------------------------------correlation analysis
#1. AN_AET
#head(d,... | /detailurban.R | no_license | ponyo0818/EnvironmentalAnalysis | R | false | false | 1,449 | r | library(ggplot2)
library(ggpubr)
library(dplyr)
library(foreign)
#import selected huc dbf file
library("foreign")
data=read.dbf("C:/Users/yfang.local/Desktop/R/hydrolandcoverselected.dbf")
#######-----------------------------------------------------------------------------correlation analysis
#1. AN_AET
#head(d,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clEnrich.R
\name{clEnrich}
\alias{clEnrich}
\title{Gene set enrichment for clusters}
\source{
Gene sets are from
1. http://www.broadinstitute.org/gsea/msigdb/index.jsp
2. http://amp.pharm.mssm.edu/Enrichr/
}
\usage{
clEnrich(
genecl_obj,
... | /man/clEnrich.Rd | no_license | zhilongjia/cogena | R | false | true | 1,941 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clEnrich.R
\name{clEnrich}
\alias{clEnrich}
\title{Gene set enrichment for clusters}
\source{
Gene sets are from
1. http://www.broadinstitute.org/gsea/msigdb/index.jsp
2. http://amp.pharm.mssm.edu/Enrichr/
}
\usage{
clEnrich(
genecl_obj,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crm_html.R
\name{crm_html}
\alias{crm_html}
\title{Get full plain text}
\usage{
crm_html(url, overwrite_unspecified = FALSE, ...)
}
\arguments{
\item{url}{A URL (character) or an object of class \code{tdmurl} from a call
to \code{\link[=crm_l... | /man/crm_html.Rd | permissive | njahn82/crminer | R | false | true | 2,063 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crm_html.R
\name{crm_html}
\alias{crm_html}
\title{Get full plain text}
\usage{
crm_html(url, overwrite_unspecified = FALSE, ...)
}
\arguments{
\item{url}{A URL (character) or an object of class \code{tdmurl} from a call
to \code{\link[=crm_l... |
#####Data Wrangling with the tidyverse
### install the tidyverse if you don't have it installed. You only have to do this once.
#install.packages("tidyverse")
###load the tidyverse functions #### Do this everytime you want to use tidyverse commands
library(tidyverse)
####Use read_csv instead of read.csv
#### make s... | /week2/1w2_1.R | permissive | haoqiwang97/2021REUDataScience | R | false | false | 3,303 | r | #####Data Wrangling with the tidyverse
### install the tidyverse if you don't have it installed. You only have to do this once.
#install.packages("tidyverse")
###load the tidyverse functions #### Do this everytime you want to use tidyverse commands
library(tidyverse)
####Use read_csv instead of read.csv
#### make s... |
library(terra)
# SPECIFY PROJECTIONS
pt.proj <- "+proj=longlat +datum=WGS84"
calc.proj <- "+proj=aea + lat_1=14.5 + lat_2=32.5 + lat_0=24.0 + lon_0=-105 +x_0=0 +y_0=0 + ellps =GRS80 +datum=NAD83 + units=m +no_defs"
# BUILDING SPATIAL VECTOR
# Fields
ids <- c("id00041130", "id00043728", "id00032757", "id00035604")
spp... | /76369074/question.R | no_license | eddelbuettel/stackoverflow | R | false | false | 663 | r | library(terra)
# SPECIFY PROJECTIONS
pt.proj <- "+proj=longlat +datum=WGS84"
calc.proj <- "+proj=aea + lat_1=14.5 + lat_2=32.5 + lat_0=24.0 + lon_0=-105 +x_0=0 +y_0=0 + ellps =GRS80 +datum=NAD83 + units=m +no_defs"
# BUILDING SPATIAL VECTOR
# Fields
ids <- c("id00041130", "id00043728", "id00032757", "id00035604")
spp... |
source("source_code_Cox_MonteCarlo_CV_April12.R")
require(caTools)
#start with only lncRNA_intergenic
#lincs = subset(fantom, CAT_geneClass == "lncRNA_intergenic")
#z = which(colnames(rna) %in% lincs$gene)
#rna = as.data.frame(rna)
#rna = rna[,c(z, (ncol(rna)-5):ncol(rna))]
###[2.] Data splitting
###---------------... | /Archive/figure1_tissue_specificity_overview.R | no_license | HongyuanWu/lncRNAs_TCGA | R | false | false | 4,463 | r | source("source_code_Cox_MonteCarlo_CV_April12.R")
require(caTools)
#start with only lncRNA_intergenic
#lincs = subset(fantom, CAT_geneClass == "lncRNA_intergenic")
#z = which(colnames(rna) %in% lincs$gene)
#rna = as.data.frame(rna)
#rna = rna[,c(z, (ncol(rna)-5):ncol(rna))]
###[2.] Data splitting
###---------------... |
#' @importFrom colorRamps blue2red
#' @importFrom GISTools add.alpha
#' @importFrom graphics axis
#' @importFrom graphics layout
#' @importFrom graphics lines
#' @importFrom graphics par
#' @importFrom graphics plot
#' @importFrom graphics text
#' @importFrom graphics legend
#' @importFrom stats aggregate
#' @importFro... | /R/explainability.R | no_license | g-rho/eXplAInability | R | false | false | 14,318 | r | #' @importFrom colorRamps blue2red
#' @importFrom GISTools add.alpha
#' @importFrom graphics axis
#' @importFrom graphics layout
#' @importFrom graphics lines
#' @importFrom graphics par
#' @importFrom graphics plot
#' @importFrom graphics text
#' @importFrom graphics legend
#' @importFrom stats aggregate
#' @importFro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exported_functions.R
\name{cluster_SN_markers}
\alias{cluster_SN_markers}
\title{Cluster 1.0 markers}
\usage{
cluster_SN_markers(linkage_df, LOD_sequence = 7, independence_LOD = FALSE,
LG_number = 5, ploidy = 4, parentname = "", plot... | /man/cluster_SN_markers.Rd | no_license | mdavy86/polymapR | R | false | true | 2,079 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exported_functions.R
\name{cluster_SN_markers}
\alias{cluster_SN_markers}
\title{Cluster 1.0 markers}
\usage{
cluster_SN_markers(linkage_df, LOD_sequence = 7, independence_LOD = FALSE,
LG_number = 5, ploidy = 4, parentname = "", plot... |
#' Compute PAR at depth from surface irradiance (Ed0+) and profile of
#' downwelling irradiance (EdZ)
#'
#' @param Depth is a vector of depth corresponding to the EdZ measurements
#' @param waves is a vector of wavelength of EdZ and Ed0+
#' @param Edz is a matrix of EdZ (col=waves; row=Depth) after nomalizati... | /R/compute.PARz.R | no_license | arboit/Cops-for-GreenEdge-data | R | false | false | 2,270 | r | #' Compute PAR at depth from surface irradiance (Ed0+) and profile of
#' downwelling irradiance (EdZ)
#'
#' @param Depth is a vector of depth corresponding to the EdZ measurements
#' @param waves is a vector of wavelength of EdZ and Ed0+
#' @param Edz is a matrix of EdZ (col=waves; row=Depth) after nomalizati... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2240
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2240
c
c Input Parameter (command line, file):
c input filename QBFLIB/Letombe/horn/horn_400CNF2240_2aQBF_331.qdimacs
c output ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Letombe/horn/horn_400CNF2240_2aQBF_331/horn_400CNF2240_2aQBF_331.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 635 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 2240
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 2240
c
c Input Parameter (command line, file):
c input filename QBFLIB/Letombe/horn/horn_400CNF2240_2aQBF_331.qdimacs
c output ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_pagerank.R
\name{get_pagerank}
\alias{get_pagerank}
\title{Get the PageRank values for nodes in the graph}
\usage{
get_pagerank(graph, directed = TRUE, damping = 0.85)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
... | /man/get_pagerank.Rd | no_license | chengfeifan/DiagrammeR | R | false | true | 1,338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_pagerank.R
\name{get_pagerank}
\alias{get_pagerank}
\title{Get the PageRank values for nodes in the graph}
\usage{
get_pagerank(graph, directed = TRUE, damping = 0.85)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph}.}
... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 81986
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 81978
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 81978
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/PCNF-TRACK-2018/E1/Experiments/filesys_fastfat_write.c/filesys_fastfat_write.c.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 718 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 81986
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 81978
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 81978
c
c Input Parameter (command line, ... |
\name{TFMLazyScore}
\alias{TFMLazyScore}
\title{
Compute the score from P-value.
}
\description{
Computes the score threshold associated with P-value p using the algorithm of
Beckstette 2006.
}
\usage{
TFMLazyScore(mat, pvalue, bg=c(A=0.25, C=0.25, G=0.25, T=0.25),
type=c("PFM", "PWM"), granularity... | /fuzzedpackages/TFMPvalue/man/TFMPvalue-lazyScore.Rd | no_license | akhikolla/testpackages | R | false | false | 1,538 | rd | \name{TFMLazyScore}
\alias{TFMLazyScore}
\title{
Compute the score from P-value.
}
\description{
Computes the score threshold associated with P-value p using the algorithm of
Beckstette 2006.
}
\usage{
TFMLazyScore(mat, pvalue, bg=c(A=0.25, C=0.25, G=0.25, T=0.25),
type=c("PFM", "PWM"), granularity... |
sample <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/voting-records/house-votes-84.data",sep=",")
#COMPUTING G1
tp <- 0
fp <- 0
fn <- 0
tn <- 0
acc <- 0
prec_1 <- 0
prec_2 <- 0
rec_1 <- 0
rec_2 <- 0
f_1 <- 0
f_2 <- 0
alphac1 <- 0
alphac2 <- 0
intc1 <- 0
intc2 <- 0
g1 <- 1
g2 <- 1
sample1 <- ... | /Empirical-Analysis-And-Comparison-Of-Algorithms/Code/naive-Bayes-Voting.R | no_license | afcarl/Machine-Learning-Work | R | false | false | 2,104 | r | sample <- read.table("https://archive.ics.uci.edu/ml/machine-learning-databases/voting-records/house-votes-84.data",sep=",")
#COMPUTING G1
tp <- 0
fp <- 0
fn <- 0
tn <- 0
acc <- 0
prec_1 <- 0
prec_2 <- 0
rec_1 <- 0
rec_2 <- 0
f_1 <- 0
f_2 <- 0
alphac1 <- 0
alphac2 <- 0
intc1 <- 0
intc2 <- 0
g1 <- 1
g2 <- 1
sample1 <- ... |
.onLoad <- function(libname, pkgname) { # nolint
rex::register_shortcuts("covr")
op <- options()
op_covr <- list(
covr.covrignore = Sys.getenv("COVR_COVRIGNORE", ".covrignore"),
covr.gcov = Sys.which("gcov"),
covr.gcov_args = NULL,
covr.gcov_additional_paths = NULL,
covr.exclude_pattern = rex:... | /R/zzz.R | permissive | r-lib/covr | R | false | false | 2,013 | r | .onLoad <- function(libname, pkgname) { # nolint
rex::register_shortcuts("covr")
op <- options()
op_covr <- list(
covr.covrignore = Sys.getenv("COVR_COVRIGNORE", ".covrignore"),
covr.gcov = Sys.which("gcov"),
covr.gcov_args = NULL,
covr.gcov_additional_paths = NULL,
covr.exclude_pattern = rex:... |
library(data.table)
library(dplyr)
library(cowplot)
library(ggrepel)
library('showtext')
colorBlindBlack8= c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
font_add("arial", "arial.ttf", bold= 'arial_bold.ttf')
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
d= fread... | /scripts/figures/cell_type_enrichment.R | permissive | PerinatalLab/metaGWAS | R | false | false | 2,049 | r | library(data.table)
library(dplyr)
library(cowplot)
library(ggrepel)
library('showtext')
colorBlindBlack8= c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
font_add("arial", "arial.ttf", bold= 'arial_bold.ttf')
showtext_opts(dpi = 300)
showtext_auto(enable = TRUE)
d= fread... |
## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse.
## T... | /Rprogramming/Week_3/cachematrix.R | no_license | MihaiCraiu/Data_Science_JHU_Coursera | R | false | false | 1,205 | r | ## Caching the Inverse of a Matrix:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## Below are a pair of functions that are used to create a special object that
## stores a matrix and caches its inverse.
## T... |
#---- Packages-------------------------------------------------------------------
library(stringr)
library(reshape2)
library(tidyr)
library(plyr)
library(dplyr)
library(readr)
# to generate animint plots:
# --------------------------
# library(devtools)
# install_github("tdhock/ggplot2") # required for theme_animint
#... | /Shiny/SNP/generateDataObjects.R | no_license | soybase/shiny.soybase.org | R | false | false | 25,872 | r | #---- Packages-------------------------------------------------------------------
library(stringr)
library(reshape2)
library(tidyr)
library(plyr)
library(dplyr)
library(readr)
# to generate animint plots:
# --------------------------
# library(devtools)
# install_github("tdhock/ggplot2") # required for theme_animint
#... |
########## iES score matrix calculation ##########
rem_data = function(x){
rem_ids = which(apply(x, 1, sd) == 0)
if (length(rem_ids) == 0){
return(x)
}else{
return(x[-rem_ids, ])
}
}
f_colnames = function(x) gsub("\\.","-",substr(x,1,12))
GSEA = function(gene_list, gene_set, stats_vect... | /R/iES_cal.R | no_license | zhangyupisa/iPath | R | false | false | 2,235 | r | ########## iES score matrix calculation ##########
rem_data = function(x){
rem_ids = which(apply(x, 1, sd) == 0)
if (length(rem_ids) == 0){
return(x)
}else{
return(x[-rem_ids, ])
}
}
f_colnames = function(x) gsub("\\.","-",substr(x,1,12))
GSEA = function(gene_list, gene_set, stats_vect... |
# Loading Libraries -------------------------------------------------------
options(stringsAsFactors = FALSE)
library(tidyverse)
library(seqinr)
library(GGally)
library(ggpubr)
library(PMCMR) # for stats
# Importing data ----------------------------------------------------------
# Fragment stoichiometry
frg_stoich... | /MCF7_stoich/MCF7_script_3_protein_annotation.R | permissive | DenuLab/AcetylationStoichiometryWorkflow | R | false | false | 13,628 | r |
# Loading Libraries -------------------------------------------------------
options(stringsAsFactors = FALSE)
library(tidyverse)
library(seqinr)
library(GGally)
library(ggpubr)
library(PMCMR) # for stats
# Importing data ----------------------------------------------------------
# Fragment stoichiometry
frg_stoich... |
install.packages('tidyverse')
library('tidyverse')
# class 4
movies <- read.csv("movie_metadata.csv", stringsAsFactors = FALSE)
dim(movies)
#filter
movies_eng <- movies %>% filter(language == "English")
# select
movies_sub <- movies %>% select(movie_title, gross, imdb_score, budget, director_name)
head(m... | /Classwork/class4.R | no_license | johnnycchapman/MGSC310 | R | false | false | 1,201 | r | install.packages('tidyverse')
library('tidyverse')
# class 4
movies <- read.csv("movie_metadata.csv", stringsAsFactors = FALSE)
dim(movies)
#filter
movies_eng <- movies %>% filter(language == "English")
# select
movies_sub <- movies %>% select(movie_title, gross, imdb_score, budget, director_name)
head(m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcGrid.R
\name{calcGrid}
\alias{calcGrid}
\title{Calculation of indices over gridded datasets}
\usage{
calcGrid(mxnc = NULL, mnnc = NULL, varnametx = NULL,
varnametn = NULL, fun, inienddays, dates, ncpu = 2,
out = "test.nc", ...)
}
\arg... | /man/calcGrid.Rd | no_license | rsnotivoli/agroclim | R | false | true | 2,213 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calcGrid.R
\name{calcGrid}
\alias{calcGrid}
\title{Calculation of indices over gridded datasets}
\usage{
calcGrid(mxnc = NULL, mnnc = NULL, varnametx = NULL,
varnametn = NULL, fun, inienddays, dates, ncpu = 2,
out = "test.nc", ...)
}
\arg... |
#################################
# LOAD RELEVANT DATA & SHAPE IT #
#################################
#read 1st & 2nd Fed 2007 data only
#initialize required dataset to NULL
matchedLines <- c()
#open file to stream from
dataFileConnection <- file("./exdata-data-household_power_consumption/household_power_consumption... | /plot4.R | no_license | pdevenraj/ExData_Plotting1 | R | false | false | 2,539 | r | #################################
# LOAD RELEVANT DATA & SHAPE IT #
#################################
#read 1st & 2nd Fed 2007 data only
#initialize required dataset to NULL
matchedLines <- c()
#open file to stream from
dataFileConnection <- file("./exdata-data-household_power_consumption/household_power_consumption... |
### Power analysis based on TRENDS (Gerrodette et al. 1987)
require(fishmethods)
require(ggplot2)
powertrend(trend=1, A1=1, PSE=0.34, maxyrs=10, step=1, alpha=0.05, tail=2, pR=100)
cvs <- c(0.34, 0.24, 0.15, 0.11, 0.07)
aer.power <- expand.grid("pR" = -100:100, "Reps" = c(1, 2, 5, 10, 25), "CV"=NA, "Power"=NA)
df ... | /projects/Porpoise Simulations/Scripts/AerialPowerAnalysis.R | permissive | Open-Data-Science-at-SIO/RRROBOTS | R | false | false | 1,125 | r |
### Power analysis based on TRENDS (Gerrodette et al. 1987)
require(fishmethods)
require(ggplot2)
powertrend(trend=1, A1=1, PSE=0.34, maxyrs=10, step=1, alpha=0.05, tail=2, pR=100)
cvs <- c(0.34, 0.24, 0.15, 0.11, 0.07)
aer.power <- expand.grid("pR" = -100:100, "Reps" = c(1, 2, 5, 10, 25), "CV"=NA, "Power"=NA)
df ... |
library(Rknots)
### Name: linkingNumber
### Title: Compute the linking number of a polygonal link
### Aliases: linkingNumber
### Keywords: invariants
### ** Examples
link <- makeExampleKnot(k = FALSE)
linkingNumber(points3D = link$points3D, ends = link$ends)
| /data/genthat_extracted_code/Rknots/examples/linkingNumber.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 266 | r | library(Rknots)
### Name: linkingNumber
### Title: Compute the linking number of a polygonal link
### Aliases: linkingNumber
### Keywords: invariants
### ** Examples
link <- makeExampleKnot(k = FALSE)
linkingNumber(points3D = link$points3D, ends = link$ends)
|
houseData<-read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?")
# search for the two dates; create logical vector identifying conformant rows
rightDate1<-(houseData$Date=="1/2/2007")
rightDate2<-(houseData$Date=="2/2/2007")
rightDate<-as.logical(rightDate1+rightDate2)
# use logical vector t... | /plot3.R | no_license | jw149j/ExData_Plotting1 | R | false | false | 1,316 | r | houseData<-read.table("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?")
# search for the two dates; create logical vector identifying conformant rows
rightDate1<-(houseData$Date=="1/2/2007")
rightDate2<-(houseData$Date=="2/2/2007")
rightDate<-as.logical(rightDate1+rightDate2)
# use logical vector t... |
library(tidyverse)
library(lubridate)
library(readxl)
# reading ibes detail histotry data -> entire database, us file, fy1, q1, q2, q3 and q4, only eps and from 1997-01 to 2011-01
detail_raw <- read_tsv("data/ibes_data_detail_history_detail.txt", col_types = cols(.default = "c"))
# renaming, formatting and selecting... | /R/ibes.R | no_license | salanss/Thesis | R | false | false | 10,011 | r | library(tidyverse)
library(lubridate)
library(readxl)
# reading ibes detail histotry data -> entire database, us file, fy1, q1, q2, q3 and q4, only eps and from 1997-01 to 2011-01
detail_raw <- read_tsv("data/ibes_data_detail_history_detail.txt", col_types = cols(.default = "c"))
# renaming, formatting and selecting... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/community.R
\name{make_clusters}
\alias{create.communities}
\alias{make_clusters}
\title{Creates a communities object.}
\usage{
make_clusters(graph, membership = NULL, algorithm = NULL, merges = NULL,
modularity = TRUE)
}
\arguments{
\item{... | /man/make_clusters.Rd | no_license | Ruchika8/Dgraph | R | false | true | 1,125 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/community.R
\name{make_clusters}
\alias{create.communities}
\alias{make_clusters}
\title{Creates a communities object.}
\usage{
make_clusters(graph, membership = NULL, algorithm = NULL, merges = NULL,
modularity = TRUE)
}
\arguments{
\item{... |
## compute_drift_rate ##########################################################
#' Compute drift rate
#'
#' compute_drift_rate uses approaches described by:
#' - Dai & Busemeyer, J Exp Psychol Gen, 2014
#' - Scholten & Read, J Exp Psychol Learn Mem Cogn, 2013
#'
#' In general, drift rate is computed according to Dai ... | /R/model_functions.R | permissive | bramzandbelt/itchmodel | R | false | false | 117,143 | r | ## compute_drift_rate ##########################################################
#' Compute drift rate
#'
#' compute_drift_rate uses approaches described by:
#' - Dai & Busemeyer, J Exp Psychol Gen, 2014
#' - Scholten & Read, J Exp Psychol Learn Mem Cogn, 2013
#'
#' In general, drift rate is computed according to Dai ... |
##Neu loi lien quan den gfortran khi bien dich file *.cpp.
##Download va cai dat gfortran tai http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
#setwd("/Users/admin/Tools/DTI/chemogenomicAlg4DTIpred/BLM/")
rm(list = ls())
## current data set name
db <- "enh"#en/ic/gpcr/ic/nr/dr
switch (db,
en = {
cat... | /Rcode/chemogenomicAlg4DTIpred/BLM/demo_blm.R | no_license | hauldhut/DEP | R | false | false | 5,551 | r | ##Neu loi lien quan den gfortran khi bien dich file *.cpp.
##Download va cai dat gfortran tai http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
#setwd("/Users/admin/Tools/DTI/chemogenomicAlg4DTIpred/BLM/")
rm(list = ls())
## current data set name
db <- "enh"#en/ic/gpcr/ic/nr/dr
switch (db,
en = {
cat... |
library(ISLR)
require(tree)
attach(Carseats)
hist(Sales)
High = ifelse(Sales <=8, 'NO', 'Yes')
Carseats= data.frame(Carseats, High)
tree.carseats= tree(High~. -Sales, data = Carseats)
summary(tree.carseats)
plot(tree.carseats)
text(tree.carseats, pretty = 0)
set.seed(1011)
train = sample(1:nrow(Carseats), 250)
tree... | /ML/lab_tree.R | no_license | KevorkSulahian/ECON_P | R | false | false | 1,993 | r | library(ISLR)
require(tree)
attach(Carseats)
hist(Sales)
High = ifelse(Sales <=8, 'NO', 'Yes')
Carseats= data.frame(Carseats, High)
tree.carseats= tree(High~. -Sales, data = Carseats)
summary(tree.carseats)
plot(tree.carseats)
text(tree.carseats, pretty = 0)
set.seed(1011)
train = sample(1:nrow(Carseats), 250)
tree... |
library(Ckmeans.1d.dp)
### Name: plotBIC
### Title: Plot Bayesian Information Criterion as a Function of Number of
### Clusters
### Aliases: plotBIC
### Keywords: univar cluster hplot
### ** Examples
# Example: clustering data generated from a Gaussian mixture
# model of two components
x <- rnorm(50, mea... | /data/genthat_extracted_code/Ckmeans.1d.dp/examples/plotBIC.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 486 | r | library(Ckmeans.1d.dp)
### Name: plotBIC
### Title: Plot Bayesian Information Criterion as a Function of Number of
### Clusters
### Aliases: plotBIC
### Keywords: univar cluster hplot
### ** Examples
# Example: clustering data generated from a Gaussian mixture
# model of two components
x <- rnorm(50, mea... |
#THIS V2 INDICATES THAT WE ARE USING THE NEW CONFIGURATION - YEARS 35 - 85 AND THEN AGE CONTROL
#CHANGE THE WORKING DIRECTORY TO MOVE THE DATA THERE
setwd("/Users/mac/Google Drive/A-UK-Research/IO-Wealth-All-Countries/HFCS-IOp/code") #Set Working Directory
setwd("/Users/Juan/Google Drive/A-UK-Research/IO-Wealth-All-... | /Supplementary Material/Replication Code/France-Spain-HFCS/france/step2d_age_adj_fr_imp4.R | no_license | Juannadie/oep-wealth-inequality-inh-fam-background | R | false | false | 16,360 | r | #THIS V2 INDICATES THAT WE ARE USING THE NEW CONFIGURATION - YEARS 35 - 85 AND THEN AGE CONTROL
#CHANGE THE WORKING DIRECTORY TO MOVE THE DATA THERE
setwd("/Users/mac/Google Drive/A-UK-Research/IO-Wealth-All-Countries/HFCS-IOp/code") #Set Working Directory
setwd("/Users/Juan/Google Drive/A-UK-Research/IO-Wealth-All-... |
# this is new
2 + 2
2 + 2
| /testfile1.R | no_license | wmalinski/HarvardX | R | false | false | 29 | r | # this is new
2 + 2
2 + 2
|
make.visitSequence <- function(data = NULL, blocks = NULL) {
if (!is.null(blocks)) {
blocks <- name.blocks(blocks)
return(names(blocks))
}
data <- check.dataform(data)
blocks <- make.blocks(data)
names(blocks)
}
check.visitSequence <- function(visitSequence = NULL,
... | /R/visitSequence.R | no_license | cran/mudfold | R | false | false | 1,464 | r |
make.visitSequence <- function(data = NULL, blocks = NULL) {
if (!is.null(blocks)) {
blocks <- name.blocks(blocks)
return(names(blocks))
}
data <- check.dataform(data)
blocks <- make.blocks(data)
names(blocks)
}
check.visitSequence <- function(visitSequence = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robinhoodR6.R
\name{rh_placeImmediateBuyOrder}
\alias{rh_placeImmediateBuyOrder}
\title{Place immediate buy order.}
\usage{
rh_placeImmediateBuyOrder(account, ticker, orderType, orderPrice,
numShares)
}
\arguments{
\item{account}{Initialize... | /man/rh_placeImmediateBuyOrder.Rd | permissive | tpopenfoose/robinhoodQF | R | false | true | 710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/robinhoodR6.R
\name{rh_placeImmediateBuyOrder}
\alias{rh_placeImmediateBuyOrder}
\title{Place immediate buy order.}
\usage{
rh_placeImmediateBuyOrder(account, ticker, orderType, orderPrice,
numShares)
}
\arguments{
\item{account}{Initialize... |
#megaloop or lapply
library(picante)
#read in community options
community.files <- list.files(path= "/Users/nicholashuron/Desktop/Huron, Nicholas/thesis/Datasets/Community/communitiesv3", full.names=T)
community.files <- community.files[-grep("_fr.csv", community.files)]
community.files.short <- gsub("\\.csv$","",list... | /Google Drive/Brachymeles_CA/r_code/brach.genetic.r.code_v5.R | no_license | nahuron/thesis | R | false | false | 13,872 | r | #megaloop or lapply
library(picante)
#read in community options
community.files <- list.files(path= "/Users/nicholashuron/Desktop/Huron, Nicholas/thesis/Datasets/Community/communitiesv3", full.names=T)
community.files <- community.files[-grep("_fr.csv", community.files)]
community.files.short <- gsub("\\.csv$","",list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.