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 |
|---|---|---|---|---|---|---|---|---|---|
##############################################################################
## File: storm.R
##
## Description: Course_Project 2: Reproducible Research
## https://www.coursera.org/learn/reproducible-research/peer/OMZ37/course-project-2
##
##
## Author: Pedro A. Alonso Baigorri
#######################################... | /storm.R | no_license | pedrobaigorri/Rep_Data_Practice_2 | R | false | false | 5,437 | r | ##############################################################################
## File: storm.R
##
## Description: Course_Project 2: Reproducible Research
## https://www.coursera.org/learn/reproducible-research/peer/OMZ37/course-project-2
##
##
## Author: Pedro A. Alonso Baigorri
#######################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/citrus-functions.R
\name{ReadFCS}
\alias{ReadFCS}
\title{Read an FCS file}
\usage{
ReadFCS(filePath, ...)
}
\arguments{
\item{filePath}{The full path to the FCS files.}
\item{...}{Additional arguments to flowCore::read.FCS.}
}
\value{
A flow... | /man/ReadFCS.Rd | no_license | Mamie/mwang | R | false | true | 407 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/citrus-functions.R
\name{ReadFCS}
\alias{ReadFCS}
\title{Read an FCS file}
\usage{
ReadFCS(filePath, ...)
}
\arguments{
\item{filePath}{The full path to the FCS files.}
\item{...}{Additional arguments to flowCore::read.FCS.}
}
\value{
A flow... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pancreas.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.03,family="gaussian",standardize=TRUE)
sink('./pancreas_015.txt',append=TRUE)... | /Model/EN/ReliefF/pancreas/pancreas_015.R | no_license | esbgkannan/QSMART | R | false | false | 350 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pancreas.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.03,family="gaussian",standardize=TRUE)
sink('./pancreas_015.txt',append=TRUE)... |
#' Compare two utilisation distributions
#'
#' @param beta1 Coefficients of the first UD
#' @param beta2 Coefficients of the second UD
#' @param covlist List of covariate rasters
#'
#' @export
#' @importFrom graphics plot abline
compareUD <- function(beta1, beta2, covlist)
{
if(length(beta1)!=length(covlist) | l... | /R/compareUD.R | no_license | TheoMichelot/localGibbs | R | false | false | 853 | r |
#' Compare two utilisation distributions
#'
#' @param beta1 Coefficients of the first UD
#' @param beta2 Coefficients of the second UD
#' @param covlist List of covariate rasters
#'
#' @export
#' @importFrom graphics plot abline
compareUD <- function(beta1, beta2, covlist)
{
if(length(beta1)!=length(covlist) | l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom.R
\name{theme_timeline}
\alias{theme_timeline}
\title{A theme for styling \code{geom_timeline} plots}
\usage{
theme_timeline()
}
\description{
A theme for styling \code{\link{geom_timeline}} plots.
}
\examples{
\dontrun{
data \%>\% eq_cl... | /man/theme_timeline.Rd | no_license | blauwers/rEarthQuakes | R | false | true | 594 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom.R
\name{theme_timeline}
\alias{theme_timeline}
\title{A theme for styling \code{geom_timeline} plots}
\usage{
theme_timeline()
}
\description{
A theme for styling \code{\link{geom_timeline}} plots.
}
\examples{
\dontrun{
data \%>\% eq_cl... |
pollutantmean<- function (directory, pollutant, id= 1:332)
{
##'directory' is a character vector of length 1 indicating
##'the location of the CSV files
#Read the files in the directory in a list format
Filesjob<- list.files(directory, full.names = TRUE)
#Create a data frame space
LISTDATA<- data.frame(... | /pollutantmean.R | no_license | AngelJF/datascience | R | false | false | 1,486 | r | pollutantmean<- function (directory, pollutant, id= 1:332)
{
##'directory' is a character vector of length 1 indicating
##'the location of the CSV files
#Read the files in the directory in a list format
Filesjob<- list.files(directory, full.names = TRUE)
#Create a data frame space
LISTDATA<- data.frame(... |
Permissions Size User Date Modified Name
.rw-r--r--@ 8.1M csandoval 13 May 17:26 PFC_gw16.csv
.rw-r--r--@ 4.3M csandoval 13 May 17:26 SS_gw16.csv
.rw-r--r--@ 2.7M csandoval 13 May 17:26 Temp_gw16.csv
.rw-r--r--@ 10M csandoval 13 May 17:26 V1_gw16.csv
cell_by_feature_matrices/gw20:
Permissions Size User ... | /browsers/vitessce/vitessce.R | no_license | carmensandoval/cortical_arealization | R | false | false | 3,716 | r | Permissions Size User Date Modified Name
.rw-r--r--@ 8.1M csandoval 13 May 17:26 PFC_gw16.csv
.rw-r--r--@ 4.3M csandoval 13 May 17:26 SS_gw16.csv
.rw-r--r--@ 2.7M csandoval 13 May 17:26 Temp_gw16.csv
.rw-r--r--@ 10M csandoval 13 May 17:26 V1_gw16.csv
cell_by_feature_matrices/gw20:
Permissions Size User ... |
#' @title read_malmquist
#'
#' @description This function is deprecated. Use \code{make_malmquist} instead.
#'
#' @usage read_malmquist(datadea,
#' nper = NULL,
#' percol = NULL,
#' arrangement = c("horizontal", "vertical"),
#' ...)
#' ... | /R/read_malmquist.R | no_license | cran/deaR | R | false | false | 1,146 | r | #' @title read_malmquist
#'
#' @description This function is deprecated. Use \code{make_malmquist} instead.
#'
#' @usage read_malmquist(datadea,
#' nper = NULL,
#' percol = NULL,
#' arrangement = c("horizontal", "vertical"),
#' ...)
#' ... |
#' Histogram for custom plot
#'
#' @description A pre-made histogram that can be added to custom.plot paramter.
#' @param mydata A data set containing intersection data provided internally
#' @param x The x aesthetic of for the histogram plot
#' @note See examples section for upset function on how to use custom.plot p... | /R/histogram.R | no_license | G-Thomson/UpSetR | R | false | false | 1,080 | r | #' Histogram for custom plot
#'
#' @description A pre-made histogram that can be added to custom.plot paramter.
#' @param mydata A data set containing intersection data provided internally
#' @param x The x aesthetic of for the histogram plot
#' @note See examples section for upset function on how to use custom.plot p... |
#Title: learning how to use fella packages
#Organism:ath
#Species:Arabidopsis thaliana (thale cress)
#Phylogeny:Eukaryotes;Plants;Eudicots;Mustard family
#Author: xiangruikong
#E-mail:xiangruikong@bioxxx.cn
#Time: 2019-02-13
##########################################
#1.Building the database
setwd("D:\\learngit\\bioinf... | /FELLA_Learning.R | no_license | xiangruikong/bioinformatics-R | R | false | false | 2,647 | r | #Title: learning how to use fella packages
#Organism:ath
#Species:Arabidopsis thaliana (thale cress)
#Phylogeny:Eukaryotes;Plants;Eudicots;Mustard family
#Author: xiangruikong
#E-mail:xiangruikong@bioxxx.cn
#Time: 2019-02-13
##########################################
#1.Building the database
setwd("D:\\learngit\\bioinf... |
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, tidy = TRUE,
fig.pos = 'h', fig.align = 'center',
fig.width = 4, fig.height = 3.3 )
knitr::opts_knit$set(global.par = TRUE, progress = FALSE)
o... | /inst/doc/rEDM-tutorial.R | no_license | cran/rEDM | R | false | false | 13,105 | r | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, tidy = TRUE,
fig.pos = 'h', fig.align = 'center',
fig.width = 4, fig.height = 3.3 )
knitr::opts_knit$set(global.par = TRUE, progress = FALSE)
o... |
rm(list=ls()) # clears workspace
#le3_data_visualization
#load important packages##
library(ggplot2)
library(gridExtra)
library(viridis)
batdat=read.csv("/Users/klangwig/Dropbox/teaching/quant grad course/github/klangwig/bat_data.csv")
#or
batdat=read.csv("bat_data.csv")
head(batdat)
batdat$lgdL=log10(batdat$gdL... | /lectures/week_3_graphs/le3_data_visualization.R | no_license | VTQuantMethodsEEB/klangwig | R | false | false | 6,299 | r | rm(list=ls()) # clears workspace
#le3_data_visualization
#load important packages##
library(ggplot2)
library(gridExtra)
library(viridis)
batdat=read.csv("/Users/klangwig/Dropbox/teaching/quant grad course/github/klangwig/bat_data.csv")
#or
batdat=read.csv("bat_data.csv")
head(batdat)
batdat$lgdL=log10(batdat$gdL... |
# CLEAN ENVIRONMENT
rm(list = ls())
# DOWNLOAD FILE
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "quizz_1_raw_file.zip")
# UNZIP AND READ FILE
raw_data <- read.csv(unzip("quizz_1_raw_file.zip"), sep = ";")
# CONVERT DATE ... | /plot1.R | no_license | wziat/ExData_Plotting1 | R | false | false | 931 | r | # CLEAN ENVIRONMENT
rm(list = ls())
# DOWNLOAD FILE
download.file(url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile = "quizz_1_raw_file.zip")
# UNZIP AND READ FILE
raw_data <- read.csv(unzip("quizz_1_raw_file.zip"), sep = ";")
# CONVERT DATE ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecxsys.R
\name{ecxsys}
\alias{ecxsys}
\title{ECx-SyS}
\usage{
ecxsys(
concentration,
hormesis_concentration,
survival_tox_observed,
survival_tox_env_observed = NULL,
survival_max = 100,
curves_concentration_max = NULL,... | /man/ecxsys.Rd | no_license | cran/stressaddition | R | false | true | 4,618 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecxsys.R
\name{ecxsys}
\alias{ecxsys}
\title{ECx-SyS}
\usage{
ecxsys(
concentration,
hormesis_concentration,
survival_tox_observed,
survival_tox_env_observed = NULL,
survival_max = 100,
curves_concentration_max = NULL,... |
#' Implementation of Iterated Batch Importance Sampling (IBIS)
#' Uses MCMC steps with MVN proposals when ESS < c * N
#'
#' tuning_parameters = (nparticles, nmoves, ESSthreshold = 0.9)
#' target = (dimension = 1, rprior, dprior, loglikelihood, parameters = (prior_mean, prior_sd, likelihood_sd))
#' observations = ... | /IBIS.R | no_license | won1k/NestedSampling | R | false | false | 4,866 | r | #' Implementation of Iterated Batch Importance Sampling (IBIS)
#' Uses MCMC steps with MVN proposals when ESS < c * N
#'
#' tuning_parameters = (nparticles, nmoves, ESSthreshold = 0.9)
#' target = (dimension = 1, rprior, dprior, loglikelihood, parameters = (prior_mean, prior_sd, likelihood_sd))
#' observations = ... |
#' Download file in a graceful way
#'
#' Function for downloading & testing url/internet connection according to CRAN policy
#' Example solution strongly based on https://community.rstudio.com/t/internet-resources-should-fail-gracefully/49199/12
#' as suggested by kvasilopoulos
#'
#' @param link character vector with ... | /R/test_url.R | permissive | bczernecki/climate | R | false | false | 2,191 | r | #' Download file in a graceful way
#'
#' Function for downloading & testing url/internet connection according to CRAN policy
#' Example solution strongly based on https://community.rstudio.com/t/internet-resources-should-fail-gracefully/49199/12
#' as suggested by kvasilopoulos
#'
#' @param link character vector with ... |
testlist <- list(A = structure(c(5.48612712280365e+303, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613111463-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 258 | r | testlist <- list(A = structure(c(5.48612712280365e+303, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
####This script is written by Ryan for his 2017 summer internship in Labjames#####
####this script takes the will:
####1. find the center refuge of a nxn grid, and show's a regular sampling plan
####2. goes through the output, find the population peaks and valleys (individual numbers)
####3. turns peaks and valley... | /transform simulation data to genind data.R | no_license | RyanXJu/Using-CDmetaPOP-simulate-MPB-population | R | false | false | 10,517 | r | ####This script is written by Ryan for his 2017 summer internship in Labjames#####
####this script takes the will:
####1. find the center refuge of a nxn grid, and show's a regular sampling plan
####2. goes through the output, find the population peaks and valleys (individual numbers)
####3. turns peaks and valley... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{print.multReg}
\alias{print.multReg}
\title{Print Objects}
\usage{
\method{print}{multReg}(x, digits = 3, ...)
}
\arguments{
\item{x}{an object of class "multReg" from \code{multReg}.}
\item{digits}{the number of significant digits to print numeric data.}
\it... | /man/print.multReg.Rd | permissive | gvanzin/smwrStats | R | false | false | 1,040 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{print.multReg}
\alias{print.multReg}
\title{Print Objects}
\usage{
\method{print}{multReg}(x, digits = 3, ...)
}
\arguments{
\item{x}{an object of class "multReg" from \code{multReg}.}
\item{digits}{the number of significant digits to print numeric data.}
\it... |
star_wars_matrix <- matrix(box_office, nrow = 3, byrow = TRUE, dimnames = list(c("A new hope", "The empire strikes back", "Return of the jedi") c("US"," non-US")))
worldwide_vector <- rowSums(star_wars_matrix)
worldwide_vector
| /R tutorial/Principiante/capitulo4/4-4.r | no_license | TopicosSelectos/tutoriales-2019-2-PaolaJurado02 | R | false | false | 231 | r | star_wars_matrix <- matrix(box_office, nrow = 3, byrow = TRUE, dimnames = list(c("A new hope", "The empire strikes back", "Return of the jedi") c("US"," non-US")))
worldwide_vector <- rowSums(star_wars_matrix)
worldwide_vector
|
2*(3+5/2)
2*((3+5)/2)
2/3+5
2/8
2/(3+5)
2%%3+5
2^3*5
2^(-40)
10%%8 # residuo
10%/%8 # parte entera
10/8
# esto es un comentario
| /04-calculadora.R | no_license | camigenius/r-basic | R | false | false | 132 | r | 2*(3+5/2)
2*((3+5)/2)
2/3+5
2/8
2/(3+5)
2%%3+5
2^3*5
2^(-40)
10%%8 # residuo
10%/%8 # parte entera
10/8
# esto es un comentario
|
# 2. Have total emissions from PM2.5 decreased in the Baltimore City, Maryland
# (𝚏𝚒𝚙𝚜 == "𝟸𝟺𝟻𝟷𝟶") from 1999 to 2008? Use the base plotting system
# o make a plot answering this question.
library(RDS)
NEI <- readRDS("exdata-data-NEI_data/summarySCC_PM25.rds")
SCC <- readRDS("exdata-data-NEI_data/Source_Class... | /MyNotes/04 - Exploratory Data Analysis/CourseProject2/plot2.R | no_license | vitorefigenio/datasciencecoursera | R | false | false | 715 | r | # 2. Have total emissions from PM2.5 decreased in the Baltimore City, Maryland
# (𝚏𝚒𝚙𝚜 == "𝟸𝟺𝟻𝟷𝟶") from 1999 to 2008? Use the base plotting system
# o make a plot answering this question.
library(RDS)
NEI <- readRDS("exdata-data-NEI_data/summarySCC_PM25.rds")
SCC <- readRDS("exdata-data-NEI_data/Source_Class... |
setClass("proteome",representation(fasta="list", AAratios="matrix",seq="list",names="ANY",cleaved="list",coverage="ANY",coveragevec="ANY",summary="ANY"))
| /proteome_class.R | no_license | AspirinCode/ProteomeDigestSim | R | false | false | 155 | r | setClass("proteome",representation(fasta="list", AAratios="matrix",seq="list",names="ANY",cleaved="list",coverage="ANY",coveragevec="ANY",summary="ANY"))
|
#### Preamble ####
# Purpose: The purpose of this code is to clean-up the 2017 GSS data obtained
# from the U of T library. That data is available to U of T students, but it needs
# to be put into a tidy format before it can be analysed. This code does that.
# The main issue is that the data are released with codes f... | /gss_cleaning.R | no_license | lizzzyyyuan/304FinalProject | R | false | false | 11,018 | r | #### Preamble ####
# Purpose: The purpose of this code is to clean-up the 2017 GSS data obtained
# from the U of T library. That data is available to U of T students, but it needs
# to be put into a tidy format before it can be analysed. This code does that.
# The main issue is that the data are released with codes f... |
\name{sim.mp}
\Rdversion{1.1}
\alias{sim.mp}
\title{
Simulation Function for Group Testing Data with Matrix Pooling Design
}
\description{
Simulates data in group testing form ready to be fit by \kbd{gtreg.mp}.
}
\usage{
sim.mp(x = NULL, gshape = 20, gscale = 2, par,
linkf = c("logit", "probit", "clogl... | /man/sim.mp.Rd | no_license | cran/binGroup | R | false | false | 3,848 | rd | \name{sim.mp}
\Rdversion{1.1}
\alias{sim.mp}
\title{
Simulation Function for Group Testing Data with Matrix Pooling Design
}
\description{
Simulates data in group testing form ready to be fit by \kbd{gtreg.mp}.
}
\usage{
sim.mp(x = NULL, gshape = 20, gscale = 2, par,
linkf = c("logit", "probit", "clogl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corsplom.R
\name{corsplom_gg_scatter}
\alias{corsplom_gg_scatter}
\title{Scatter GG Function for Metaplot Corsplom}
\usage{
corsplom_gg_scatter(data, mapping, method = "loess", se = F,
col = metOption("col_corsplom_gg", "blue"),
s... | /man/corsplom_gg_scatter.Rd | no_license | cran/metaplot | R | false | true | 2,072 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/corsplom.R
\name{corsplom_gg_scatter}
\alias{corsplom_gg_scatter}
\title{Scatter GG Function for Metaplot Corsplom}
\usage{
corsplom_gg_scatter(data, mapping, method = "loess", se = F,
col = metOption("col_corsplom_gg", "blue"),
s... |
#############################################################################
# Reducing p-hab indicators but starting with only BLM
#1
NV.BLM.indic=randomForest(NV_MMI~CONDUCTIVITY+NTL+PTL+OE_Conduct+OE_TN+OE_TP+PH+BnkStability_BLM+XFC_NAT+xcdenmid+
LINCIS_H+PCT_SAFN+XCMG, data=RFdata, impo... | /misc R scripts/Nicole/RandomForestMessing.R | no_license | usubuglab/AIM_2016 | R | false | false | 2,083 | r | #############################################################################
# Reducing p-hab indicators but starting with only BLM
#1
NV.BLM.indic=randomForest(NV_MMI~CONDUCTIVITY+NTL+PTL+OE_Conduct+OE_TN+OE_TP+PH+BnkStability_BLM+XFC_NAT+xcdenmid+
LINCIS_H+PCT_SAFN+XCMG, data=RFdata, impo... |
#' @importFrom stats update
#' @export
stats::update
#' Update a recipe step
#'
#' This `step` method for `update()` takes named arguments as `...` who's values
#' will replace the elements of the same name in the actual step.
#'
#' For a step to be updated, it must not already have been trained. Otherwise,
#' conflic... | /R/update.R | permissive | tidymodels/recipes | R | false | false | 3,319 | r | #' @importFrom stats update
#' @export
stats::update
#' Update a recipe step
#'
#' This `step` method for `update()` takes named arguments as `...` who's values
#' will replace the elements of the same name in the actual step.
#'
#' For a step to be updated, it must not already have been trained. Otherwise,
#' conflic... |
library(igraph)
library(Matrix)
library(lattice)
library(vcd)
netmat1 <- rbind(c(1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0),
c(1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0),
c(1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0),
... | /.gitignore/graphsforD2.R | no_license | foukonana/Timeseries-networks | R | false | false | 23,385 | r | library(igraph)
library(Matrix)
library(lattice)
library(vcd)
netmat1 <- rbind(c(1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0),
c(1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0),
c(1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis_tools.R
\name{g1_architecture_bootstrap}
\alias{g1_architecture_bootstrap}
\title{boostrap the distribution of sets in the established G* architecture}
\usage{
g1_architecture_bootstrap(coupling_mtx, df_frac, de_frac, n = 1000,
dfd... | /Pradhan2019/man/g1_architecture_bootstrap.Rd | no_license | DikshantPradhan/Pradhan2019Analysis | R | false | true | 894 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysis_tools.R
\name{g1_architecture_bootstrap}
\alias{g1_architecture_bootstrap}
\title{boostrap the distribution of sets in the established G* architecture}
\usage{
g1_architecture_bootstrap(coupling_mtx, df_frac, de_frac, n = 1000,
dfd... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rep_sample_n.R
\name{rep_sample_n}
\alias{rep_sample_n}
\title{Perform repeated sampling}
\usage{
rep_sample_n(tbl, size, replace = FALSE, reps = 1, prob = NULL)
}
\arguments{
\item{tbl}{data frame of population from which to sample}
\item{s... | /man/rep_sample_n.Rd | no_license | ktaranov/infer | R | false | true | 1,665 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rep_sample_n.R
\name{rep_sample_n}
\alias{rep_sample_n}
\title{Perform repeated sampling}
\usage{
rep_sample_n(tbl, size, replace = FALSE, reps = 1, prob = NULL)
}
\arguments{
\item{tbl}{data frame of population from which to sample}
\item{s... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/student.survey.R
\docType{data}
\name{student.survey}
\alias{student.survey}
\title{Student Survey data}
\format{\Sexpr[stage=build,results=rd]{data(student.survey); smss:::describe_df(student.survey)}
\describe{
\item{\code{GE}}{gend... | /man/student.survey.Rd | no_license | cran/smss | R | false | false | 1,640 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/student.survey.R
\docType{data}
\name{student.survey}
\alias{student.survey}
\title{Student Survey data}
\format{\Sexpr[stage=build,results=rd]{data(student.survey); smss:::describe_df(student.survey)}
\describe{
\item{\code{GE}}{gend... |
5f3f055b3ada18f39093a2659c8281ad query60_query48_1344.qdimacs 3103 11727 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query60_query48_1344/query60_query48_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 72 | r | 5f3f055b3ada18f39093a2659c8281ad query60_query48_1344.qdimacs 3103 11727 |
# a vector containing list of functions that:
# -set the value of the matrix
# -get the value of the matrix
# -set the value of the inverse of matrix
# -get the value of the inverse of matrix
makeCacheMatrix<- function(x_Matrix = matrix()) {
# Sets Inverse Matrix to null and assigns Y to X
Inv <- NULL
set <- func... | /cachematrix.R | no_license | bmanngal/ProgrammingAssignment2 | R | false | false | 1,324 | r | # a vector containing list of functions that:
# -set the value of the matrix
# -get the value of the matrix
# -set the value of the inverse of matrix
# -get the value of the inverse of matrix
makeCacheMatrix<- function(x_Matrix = matrix()) {
# Sets Inverse Matrix to null and assigns Y to X
Inv <- NULL
set <- func... |
#' LoadCmip5DataFromAdss
#'
#' Download clipped national level CMIP5 data from APCC's ADSS
#' Apec Climate Center Data Service System
#'
#' @param dbdir directory where downloaded data located
#' @param NtlCode 2 digit country(national) code
#'
#' @export
#'
LoadCmip5DataFromAdss <- function(dbdir, NtlCode) {... | /R/LoadCmip5DataFromAdss.R | no_license | PablitoCho/rSQM | R | false | false | 831 | r | #' LoadCmip5DataFromAdss
#'
#' Download clipped national level CMIP5 data from APCC's ADSS
#' Apec Climate Center Data Service System
#'
#' @param dbdir directory where downloaded data located
#' @param NtlCode 2 digit country(national) code
#'
#' @export
#'
LoadCmip5DataFromAdss <- function(dbdir, NtlCode) {... |
"dwapi-r
Copyright 2017 data.world, Inc.
Licensed under the Apache License, Version 2.0 (the \"License\");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | /R/sql.R | permissive | datadotworld/dwapi-r | R | false | false | 2,276 | r | "dwapi-r
Copyright 2017 data.world, Inc.
Licensed under the Apache License, Version 2.0 (the \"License\");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
library("tidyverse")
library("reshape2")
library("DESeq2")
library("gplots")
library("fgsea")
# read counts
tmp<-read.table("3col.tsv",header=F)
x<-as.matrix(acast(tmp, V2~V1, value.var="V3", fun.aggregate = sum))
x<-as.data.frame(x)
accession<-sapply((strsplit(rownames(x),"\\|")),"[[",2)
symbol<-sapply((strsplit(row... | /hmec1/dge/run_deseq2.R | no_license | JoshVB/Hcy_scripts | R | false | false | 4,657 | r |
library("tidyverse")
library("reshape2")
library("DESeq2")
library("gplots")
library("fgsea")
# read counts
tmp<-read.table("3col.tsv",header=F)
x<-as.matrix(acast(tmp, V2~V1, value.var="V3", fun.aggregate = sum))
x<-as.data.frame(x)
accession<-sapply((strsplit(rownames(x),"\\|")),"[[",2)
symbol<-sapply((strsplit(row... |
# requires Seurat object epidat
plotMetaScore<-function(genelist){
require(Seurat) # for playing with object
require(ggplot2) # just to make sure can plot
require(matlab) # for the jet color palette
require(dplyr) # for the gene contribution transformation
message(table(genelist %in% rownames(epidat... | /PYMT_DROPseq_scRNA/R/plotMetaScore.r | no_license | GaldesLab/CellReportsManuscript | R | false | false | 1,017 | r | # requires Seurat object epidat
plotMetaScore<-function(genelist){
require(Seurat) # for playing with object
require(ggplot2) # just to make sure can plot
require(matlab) # for the jet color palette
require(dplyr) # for the gene contribution transformation
message(table(genelist %in% rownames(epidat... |
#' Metrics for Shiny Applications
#'
#' @description
#'
#' Automatically wrap a Shiny app, adding metrics for the current session count
#' and the duration of reactive flushes, and then expose them on a `/metrics`
#' endpoint.
#'
#' The endpoint will check the `METRICS_HTTP_AUTHORIZATION` environment
#' variable, and i... | /R/shiny.R | permissive | atheriel/openmetrics | R | false | false | 3,520 | r | #' Metrics for Shiny Applications
#'
#' @description
#'
#' Automatically wrap a Shiny app, adding metrics for the current session count
#' and the duration of reactive flushes, and then expose them on a `/metrics`
#' endpoint.
#'
#' The endpoint will check the `METRICS_HTTP_AUTHORIZATION` environment
#' variable, and i... |
##' @title Get alignment results
##'
##' @param data
##' @return
##' @author Shir Dekel
##' @export
get_results_alignment_8 <- function(data = alignment8::data) {
allocation_omnibus <-
data %>%
get_omnibus_alignment_8("allocation")
four_way <-
allocation_omnibus %>%
apa_print(es = "pes", mse = FALS... | /R/get_results_alignment_8.R | no_license | shirdekel/phd_thesis | R | false | false | 610 | r | ##' @title Get alignment results
##'
##' @param data
##' @return
##' @author Shir Dekel
##' @export
get_results_alignment_8 <- function(data = alignment8::data) {
allocation_omnibus <-
data %>%
get_omnibus_alignment_8("allocation")
four_way <-
allocation_omnibus %>%
apa_print(es = "pes", mse = FALS... |
# These 2 functions create a special Matrix that enables to calculate the
# inverse of a matrix and store it into the cache. if stored, the cached value
# get extracted in case the inverse is calculated again. it assumes that
# the matrix supplied is always invertible (square matrix)
# In Mathematica .... inv[M_] := i... | /cachematrix.R | no_license | lulu49r/ProgrammingAssignment2 | R | false | false | 1,719 | r | # These 2 functions create a special Matrix that enables to calculate the
# inverse of a matrix and store it into the cache. if stored, the cached value
# get extracted in case the inverse is calculated again. it assumes that
# the matrix supplied is always invertible (square matrix)
# In Mathematica .... inv[M_] := i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attr.R
\name{set_attrs}
\alias{set_attrs}
\alias{mut_attrs}
\title{Add attributes to an object}
\usage{
set_attrs(.x, ...)
mut_attrs(.x, ...)
}
\arguments{
\item{.x}{An object to decorate with attributes.}
\item{...}{A list of named attribu... | /man/set_attrs.Rd | no_license | takewiki/rlang | R | false | true | 1,968 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/attr.R
\name{set_attrs}
\alias{set_attrs}
\alias{mut_attrs}
\title{Add attributes to an object}
\usage{
set_attrs(.x, ...)
mut_attrs(.x, ...)
}
\arguments{
\item{.x}{An object to decorate with attributes.}
\item{...}{A list of named attribu... |
# Title : Simulation study
# Objective : Explore the performance of subsampling IRLS with a simulation study
# Created by: jonlachmann
# Created on: 2021-04-13
# Set up simulations study parameters
nvars <- 15
nobs <- 10^6
full_model_count <- 2^nvars
library(mvtnorm)
# Generate the data to use
{
set.seed(1911)
... | /simulation.R | no_license | jonlachmann/irls_demo | R | false | false | 4,686 | r | # Title : Simulation study
# Objective : Explore the performance of subsampling IRLS with a simulation study
# Created by: jonlachmann
# Created on: 2021-04-13
# Set up simulations study parameters
nvars <- 15
nobs <- 10^6
full_model_count <- 2^nvars
library(mvtnorm)
# Generate the data to use
{
set.seed(1911)
... |
if(!require(shiny)) install.packages("shiny")
set.seed(24082016)
library(shiny)
#library(ggplot2)
LCG <- function(nsim, M = 2^32, a = 22695477, c = 1, seed = 110104){
X = c(seed, numeric(nsim-1)) # Aparta memoria
for(i in 1:(nsim-1)) X[i+1] <- ((a*X[i] + c)%% M) # Aplica GenradorCongruenciaLineal
return(X/M) # A... | /Tarea1_GeneradorNumerosAleatorios/Tarea1_GeneradorNumerosAleatorios.R | no_license | farid7/compstat2016 | R | false | false | 5,666 | r | if(!require(shiny)) install.packages("shiny")
set.seed(24082016)
library(shiny)
#library(ggplot2)
LCG <- function(nsim, M = 2^32, a = 22695477, c = 1, seed = 110104){
X = c(seed, numeric(nsim-1)) # Aparta memoria
for(i in 1:(nsim-1)) X[i+1] <- ((a*X[i] + c)%% M) # Aplica GenradorCongruenciaLineal
return(X/M) # A... |
# Perform PCA, leaving out rows with NAs
# Column 14, the HAI column, is excluded because it is dependent with the other
# columns
Alameda_new <- read.csv("Alameda_data.csv")
Alameda_PCA <- prcomp(na.omit(Alameda_new[, -14]))
# Looking at the explained variance per PC, choose the first 3
Alameda_comps <- Alameda_... | /PCA_index_construction.R | permissive | SUSA-org/HousingCrisisModeling | R | false | false | 895 | r | # Perform PCA, leaving out rows with NAs
# Column 14, the HAI column, is excluded because it is dependent with the other
# columns
Alameda_new <- read.csv("Alameda_data.csv")
Alameda_PCA <- prcomp(na.omit(Alameda_new[, -14]))
# Looking at the explained variance per PC, choose the first 3
Alameda_comps <- Alameda_... |
#' Run the VarroaPop honey bee colony model on a local computer
#'
#' Function to run the VarroaPop honey bee colony model for a given set of parameters, with options to set and
#' save the input, output, and log files. Path to the weather file
#' must be set in the .vrp file, or as the input parameter 'WeatherFileNa... | /R/run_varroapop.R | no_license | quanted/VarroaPopWrapper | R | false | false | 5,193 | r | #' Run the VarroaPop honey bee colony model on a local computer
#'
#' Function to run the VarroaPop honey bee colony model for a given set of parameters, with options to set and
#' save the input, output, and log files. Path to the weather file
#' must be set in the .vrp file, or as the input parameter 'WeatherFileNa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amaretto_functions.R
\name{AMARETTO_EvaluateTestSet}
\alias{AMARETTO_EvaluateTestSet}
\title{AMARETTO_EvaluateTestSet}
\usage{
AMARETTO_EvaluateTestSet(AMARETTOresults = AMARETTOresults,
MA_Data_TestSet = MA_Data_TestSet,
RegulatorData_Te... | /man/AMARETTO_EvaluateTestSet.Rd | permissive | liefeld/AMARETTO | R | false | true | 1,414 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amaretto_functions.R
\name{AMARETTO_EvaluateTestSet}
\alias{AMARETTO_EvaluateTestSet}
\title{AMARETTO_EvaluateTestSet}
\usage{
AMARETTO_EvaluateTestSet(AMARETTOresults = AMARETTOresults,
MA_Data_TestSet = MA_Data_TestSet,
RegulatorData_Te... |
# Whoeps, 20th Jul 2021
#' @export
extract_used_samples <- function(csvlink){
# This is for processing of one of David's typical outputs. #
# Load david's genotypes
dgt = read.table(david_list, header=T, sep=',', stringsAsFactors = F)
# define entries to keep
cols_to_keep = c('genoT')
# filter
dgtf = ... | /R/find_mendelian_consistency_functions.R | permissive | WHops/INV-mendelian-consistency | R | false | false | 4,363 | r | # Whoeps, 20th Jul 2021
#' @export
extract_used_samples <- function(csvlink){
# This is for processing of one of David's typical outputs. #
# Load david's genotypes
dgt = read.table(david_list, header=T, sep=',', stringsAsFactors = F)
# define entries to keep
cols_to_keep = c('genoT')
# filter
dgtf = ... |
## Name: Elizabeth Lee
## Date: 2/13/14
## Function: draw figure 1 for manuscript
### 10-year time series panels: SDI ILI % of total visits ILINet ILI % of total visits, positive lab test percentages, hospital rate for children, hospital rate for adults, pediatric deaths, P&I mortality
## Filenames: SQL_export/create_... | /scripts/create_fluseverity_figs/version1/createF1.R | permissive | eclee25/flu-SDI-exploratory-age | R | false | false | 12,845 | r |
## Name: Elizabeth Lee
## Date: 2/13/14
## Function: draw figure 1 for manuscript
### 10-year time series panels: SDI ILI % of total visits ILINet ILI % of total visits, positive lab test percentages, hospital rate for children, hospital rate for adults, pediatric deaths, P&I mortality
## Filenames: SQL_export/create_... |
gwas.basis <- readRDS('/home/ob219/share/as_basis/GWAS/support/ss_basis_gwas.RDS')
gwas.man.DT <- fread('/home/ob219/share/as_basis/GWAS/snp_manifest/gwas_june.tab')
ichip.basis <- readRDS('/home/ob219/share/as_basis/ichip/support/basis_ic.RDS')
ichip.man.DT <- fread('/home/ob219/share/as_basis/ichip/snp_manifest/ichip... | /ichip/misc/basis_correlations.R | permissive | ollyburren/basis_paper | R | false | false | 2,308 | r | gwas.basis <- readRDS('/home/ob219/share/as_basis/GWAS/support/ss_basis_gwas.RDS')
gwas.man.DT <- fread('/home/ob219/share/as_basis/GWAS/snp_manifest/gwas_june.tab')
ichip.basis <- readRDS('/home/ob219/share/as_basis/ichip/support/basis_ic.RDS')
ichip.man.DT <- fread('/home/ob219/share/as_basis/ichip/snp_manifest/ichip... |
\name{deviance.ssr}
\alias{deviance.ssr}
\title{Model Deviance}
\description{
Extract deviance from a fitted ssr object
}
\usage{
\method{deviance}{ssr}(object,residuals=FALSE, ...)
}
\arguments{
\item{object}{a fitted \code{ssr} object}.
\item{residuals}{
a logical value. If 'TRUE', deviance residuals are retur... | /man/deviance.ssr.rd | no_license | cran/assist | R | false | false | 725 | rd | \name{deviance.ssr}
\alias{deviance.ssr}
\title{Model Deviance}
\description{
Extract deviance from a fitted ssr object
}
\usage{
\method{deviance}{ssr}(object,residuals=FALSE, ...)
}
\arguments{
\item{object}{a fitted \code{ssr} object}.
\item{residuals}{
a logical value. If 'TRUE', deviance residuals are retur... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classroom_functions.R
\name{gc_courses_teachers_get}
\alias{gc_courses_teachers_get}
\title{Get Teachers}
\usage{
gc_courses_teachers_get(courseId, userId)
}
\arguments{
\item{courseId}{Identifier of the course}
\item{userId}{Identifier of t... | /man/gc_courses_teachers_get.Rd | no_license | curso-r/googleclassroom | R | false | true | 1,479 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classroom_functions.R
\name{gc_courses_teachers_get}
\alias{gc_courses_teachers_get}
\title{Get Teachers}
\usage{
gc_courses_teachers_get(courseId, userId)
}
\arguments{
\item{courseId}{Identifier of the course}
\item{userId}{Identifier of t... |
#A/B TESTING RESULTS ANALYSIS
#install.packages("dplyr")
library(dplyr)
#install.packages("ggplot2")
library(ggplot2)
setwd("D:/Current_Project")
ab_data = read.csv("ab_data.csv")
head(ab_data)
cont = read.csv("countries.csv")
head(cont)
#MERGING THE TWO DATA SETS "ab_data" and "country"
data0 ... | /Ab _testing_final_AkashStats.R | no_license | naracampos/A-B-testing-results-analysis-using-R | R | false | false | 5,942 | r | #A/B TESTING RESULTS ANALYSIS
#install.packages("dplyr")
library(dplyr)
#install.packages("ggplot2")
library(ggplot2)
setwd("D:/Current_Project")
ab_data = read.csv("ab_data.csv")
head(ab_data)
cont = read.csv("countries.csv")
head(cont)
#MERGING THE TWO DATA SETS "ab_data" and "country"
data0 ... |
# This script creates plot2
# Set Working Directory
setwd("C:/Users/kareem.gamgoum/Desktop/DataScience/Course 4 - Exploratory Data Analysis/Course Project 1")
# Load in the data
rawdata <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?")
# Create DateTime variable
raw... | /plot2.R | no_license | KareemGamgoum/ExData_Plotting1 | R | false | false | 994 | r |
# This script creates plot2
# Set Working Directory
setwd("C:/Users/kareem.gamgoum/Desktop/DataScience/Course 4 - Exploratory Data Analysis/Course Project 1")
# Load in the data
rawdata <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?")
# Create DateTime variable
raw... |
#' @export
mcBatchPick <- function(files, outputDir, polarity = c("+", "-"), writeData = TRUE, writeList = TRUE,
log="logCluster.txt", no_cores = 6)
{
# Initiate cluster
cl <- makeCluster(no_cores, outfile = log)
clusterEvalQ(cl, library(enviPick))
# argNames <- c("files", "outpu... | /R/mcBatchPick.R | no_license | dutchjes/RMassScreening | R | false | false | 4,081 | r | #' @export
mcBatchPick <- function(files, outputDir, polarity = c("+", "-"), writeData = TRUE, writeList = TRUE,
log="logCluster.txt", no_cores = 6)
{
# Initiate cluster
cl <- makeCluster(no_cores, outfile = log)
clusterEvalQ(cl, library(enviPick))
# argNames <- c("files", "outpu... |
library(dplyr)
setwd("C:/Users/Rebecca/Desktop/UCI HAR Dataset")
y_train <- read.table("train/y_train.txt", quote="\"")
y_test <- read.table("test/y_test.txt", quote="\"")
features <- read.table("features.txt", quote="\"")
activity_labels <- read.table("activity_labels.txt", quote="\"")
subject_train <- read.tabl... | /run_analysis.R | no_license | RebeccaMS/Getting-and-Cleaning-Data | R | false | false | 1,392 | r | library(dplyr)
setwd("C:/Users/Rebecca/Desktop/UCI HAR Dataset")
y_train <- read.table("train/y_train.txt", quote="\"")
y_test <- read.table("test/y_test.txt", quote="\"")
features <- read.table("features.txt", quote="\"")
activity_labels <- read.table("activity_labels.txt", quote="\"")
subject_train <- read.tabl... |
testlist <- list(a = 0L, b = 0L, x = c(-100861657L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610130348-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 316 | r | testlist <- list(a = 0L, b = 0L, x = c(-100861657L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L))
result <- do.call(grattan:::anyOutside,testlist)
str(result) |
## Project 1 - Exploratory data Analysis
## Step 1: Load and clean the table
## Loading the data
data2plot <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?",
colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric',
... | /plot3.R | no_license | mtabares/Exploratory-Data-Analysis | R | false | false | 1,575 | r | ## Project 1 - Exploratory data Analysis
## Step 1: Load and clean the table
## Loading the data
data2plot <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?",
colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric',
... |
#****************************************************************************************************************************************************model
type.bi <- reactive({
#df <- DF3()
#names <- apply(df,2,function(x) { length(levels(as.factor(x)))==2})
#x <- colnames(DF3())[names]
#return(x)
colnames(D... | /7_2MFSlogit/server_model.R | permissive | mephas/mephas_web | R | false | false | 5,480 | r | #****************************************************************************************************************************************************model
type.bi <- reactive({
#df <- DF3()
#names <- apply(df,2,function(x) { length(levels(as.factor(x)))==2})
#x <- colnames(DF3())[names]
#return(x)
colnames(D... |
#determining the number of NA responses to the LiveNearby Q
LocalNAs <-sum(is.na(CUVAsem$LiveNearby))
LocalNAs
length(CUVAsem$LiveNearby)
#This bit of code bins ReEntry respondents. The code isn't working just yet.
#Let R be the reentry question and let DK be the don't know response
#A is people who didn't answer R (i... | /PracticeFiles/playingWithTheData.R | no_license | ChrisKeyes/SEM_Project | R | false | false | 1,606 | r | #determining the number of NA responses to the LiveNearby Q
LocalNAs <-sum(is.na(CUVAsem$LiveNearby))
LocalNAs
length(CUVAsem$LiveNearby)
#This bit of code bins ReEntry respondents. The code isn't working just yet.
#Let R be the reentry question and let DK be the don't know response
#A is people who didn't answer R (i... |
##### Serie 10
# 1a)
anzahl.zerfaelle <- c(2:17)
anzahl.beobachtungen <- c(18, 28, 56, 105, 126, 146, 164, 161, 123, 101, 74, 53, 23, 15, 9, 5)
zerfaelle.total <- sum(anzahl.zerfaelle*anzahl.beobachtungen)
# 1b)
messung <- rep(anzahl.zerfaelle, anzahl.beobachtungen)
hist(messung, breaks=c(0:20)) # einfache variante (... | /homework/serie-10/serie-10.R | no_license | ninux/stoc | R | false | false | 1,499 | r | ##### Serie 10
# 1a)
anzahl.zerfaelle <- c(2:17)
anzahl.beobachtungen <- c(18, 28, 56, 105, 126, 146, 164, 161, 123, 101, 74, 53, 23, 15, 9, 5)
zerfaelle.total <- sum(anzahl.zerfaelle*anzahl.beobachtungen)
# 1b)
messung <- rep(anzahl.zerfaelle, anzahl.beobachtungen)
hist(messung, breaks=c(0:20)) # einfache variante (... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gh3.R
\name{gh_repos_delete_comments_by_comment_id}
\alias{gh_repos_delete_comments_by_comment_id}
\title{Delete a commit comment}
\usage{
gh_repos_delete_comments_by_comment_id(owner, repo, commentId, ...)
}
\arguments{
\item{owner}{Name of ... | /man/gh_repos_delete_comments_by_comment_id.Rd | permissive | ramnathv/gh3 | R | false | true | 751 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gh3.R
\name{gh_repos_delete_comments_by_comment_id}
\alias{gh_repos_delete_comments_by_comment_id}
\title{Delete a commit comment}
\usage{
gh_repos_delete_comments_by_comment_id(owner, repo, commentId, ...)
}
\arguments{
\item{owner}{Name of ... |
library(tidyverse)
library(sf)
library(purrr)
library(areal)
load("./data/derived/beat_half_eb_residuals.RData")
beat_half_eb_residuals <- beat_half_eb_residuals %>%
filter(beat != "H1" & beat != "99" & beat !="H3" & beat != "H2") %>%
mutate(year = as.numeric(year))
beats_2008 <- st_read("./data/raw/spd_shapefil... | /syntax/old/data_half_areal_weight_011420.R | no_license | clanfear/CampsPolicing | R | false | false | 4,271 | r | library(tidyverse)
library(sf)
library(purrr)
library(areal)
load("./data/derived/beat_half_eb_residuals.RData")
beat_half_eb_residuals <- beat_half_eb_residuals %>%
filter(beat != "H1" & beat != "99" & beat !="H3" & beat != "H2") %>%
mutate(year = as.numeric(year))
beats_2008 <- st_read("./data/raw/spd_shapefil... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-animals.R
\docType{data}
\name{animal_35}
\alias{animal_35}
\title{Desert Tortoise Asynchronous Burrow Sharing (unweighted)}
\format{
list of igraph objects
}
\source{
https: //bansallab.github.io/asnr/
}
\usage{
animal_35
}
\description... | /man/animal_35.Rd | permissive | schochastics/networkdata | R | false | true | 1,423 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-animals.R
\docType{data}
\name{animal_35}
\alias{animal_35}
\title{Desert Tortoise Asynchronous Burrow Sharing (unweighted)}
\format{
list of igraph objects
}
\source{
https: //bansallab.github.io/asnr/
}
\usage{
animal_35
}
\description... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/distance.R
\name{distance}
\alias{distance}
\title{distance R API}
\usage{
distance(fileName = "", word = "", n = 100)
}
\arguments{
\item{fileName}{}
\item{word}{}
\item{n}{}
}
\description{
TODO
}
\author{
HatMatrix42
}
| /man/distance.Rd | permissive | junjiemao/Rword2vec | R | false | false | 311 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/distance.R
\name{distance}
\alias{distance}
\title{distance R API}
\usage{
distance(fileName = "", word = "", n = 100)
}
\arguments{
\item{fileName}{}
\item{word}{}
\item{n}{}
}
\description{
TODO
}
\author{
HatMatrix42
}
|
#Problem 51
plot(iris$Sepal.Length, iris$Petal.Length)
#Problem 52
species <- c("setosa", "virginica", "versicolor")
colvals <- c("red", "green", "blue")
cols <- colvals[match(iris$Species, species)]
plot(iris$Sepal.Length, iris$Petal.Length, col = cols)
#Problem 53
species <- c("setosa", "virginica", "versicolor")
c... | /homework/mathena_john/10_27/Chapter_4_exercises.R | no_license | Islamicate-DH/hw | R | false | false | 5,536 | r | #Problem 51
plot(iris$Sepal.Length, iris$Petal.Length)
#Problem 52
species <- c("setosa", "virginica", "versicolor")
colvals <- c("red", "green", "blue")
cols <- colvals[match(iris$Species, species)]
plot(iris$Sepal.Length, iris$Petal.Length, col = cols)
#Problem 53
species <- c("setosa", "virginica", "versicolor")
c... |
#' @importFrom magrittr %>%
#' @importFrom tibble as_tibble
#' @importFrom speech speech_word_count
#' @importFrom Rdpack reprompt
vars <- c("politicos", "legislador2","party", "legislator",
"partido", "legislator_nc", "legislature", "legislatura", "Partido", "Sigla", "partidos_uy")
if(getRversion() >= "2.... | /R/utils.R | no_license | Nicolas-Schmidt/puy | R | false | false | 3,485 | r | #' @importFrom magrittr %>%
#' @importFrom tibble as_tibble
#' @importFrom speech speech_word_count
#' @importFrom Rdpack reprompt
vars <- c("politicos", "legislador2","party", "legislator",
"partido", "legislator_nc", "legislature", "legislatura", "Partido", "Sigla", "partidos_uy")
if(getRversion() >= "2.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testsim.R
\docType{package}
\name{testsim}
\alias{testsim}
\title{testsim: A package to simulate multiple choice and matching test questions}
\description{
Functions to simulate customisable multiple choice and matching questions and tests.
}... | /man/testsim.Rd | no_license | okemp99/testsim | R | false | true | 1,592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testsim.R
\docType{package}
\name{testsim}
\alias{testsim}
\title{testsim: A package to simulate multiple choice and matching test questions}
\description{
Functions to simulate customisable multiple choice and matching questions and tests.
}... |
#安裝neuralnet函式庫
install.packages('neuralnet')
#引用neuralnet函式庫
library(neuralnet)
#讀取訓練資料
training_data <- read.csv(file.choose(), header = TRUE)
#設定亂數種子
set.seed(1)
#訓練線性迴歸
model <- neuralnet(Density ~ Speed, training_data,
hidden=c(0), linear.output = TRUE)
#繪製線性迴歸
plot(model)
#讀取測試資料
testing_da... | /Regression/linear regression (車速估密度).r | no_license | YoYo999/AI_course_2018 | R | false | false | 663 | r | #安裝neuralnet函式庫
install.packages('neuralnet')
#引用neuralnet函式庫
library(neuralnet)
#讀取訓練資料
training_data <- read.csv(file.choose(), header = TRUE)
#設定亂數種子
set.seed(1)
#訓練線性迴歸
model <- neuralnet(Density ~ Speed, training_data,
hidden=c(0), linear.output = TRUE)
#繪製線性迴歸
plot(model)
#讀取測試資料
testing_da... |
#################################################
# Run NCV per window #
# Author: Barbara Bitarello #
# Date of creation:05.11.2013 #
# Last modified: 26.11.2013 #
# #
#################################################
#read in NCV function:
source("/mnt/sequencedb/PopGen/barbara/simulations/msms_sims/l880... | /SCRIPTS/scan_script.R | no_license | bbitarello/NCV | R | false | false | 5,472 | r | #################################################
# Run NCV per window #
# Author: Barbara Bitarello #
# Date of creation:05.11.2013 #
# Last modified: 26.11.2013 #
# #
#################################################
#read in NCV function:
source("/mnt/sequencedb/PopGen/barbara/simulations/msms_sims/l880... |
# Sites tentatos
# https://br.advfn.com : faltam datas de pagamento, como em SAPR11
# https://www.infomoney.com.br/ciahering-hgtx3/proventos não tem histórico longo, como em HGTX3
# https://www.bussoladoinvestidor.com.br/guia-empresas/empresa/sapr11/proventos naõ tem proventos de alguns papéis como SAPR11
# https://me... | /Dados_Extraidos/proventos_desdob_acoes.R | no_license | diegorodrigs/Investimentos | R | false | false | 7,307 | r | # Sites tentatos
# https://br.advfn.com : faltam datas de pagamento, como em SAPR11
# https://www.infomoney.com.br/ciahering-hgtx3/proventos não tem histórico longo, como em HGTX3
# https://www.bussoladoinvestidor.com.br/guia-empresas/empresa/sapr11/proventos naõ tem proventos de alguns papéis como SAPR11
# https://me... |
##This code contains a script that access zip folder from the URL and then tidy
## it as as per the standards.
filename <- "Coursera3.zip"
## Checking if archieve already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zi... | /run_analysis.R | no_license | umang-25/Datacleaningassignment | R | false | false | 3,257 | r | ##This code contains a script that access zip folder from the URL and then tidy
## it as as per the standards.
filename <- "Coursera3.zip"
## Checking if archieve already exists.
if (!file.exists(filename)){
fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zi... |
setwd("/home/andre/R/datasciencecoursera/ExploratoryDataAnalysis")
arquivo <- read.table("household_power_consumption.txt", na.strings = "?",
header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#dados <- arquivo[(arquivo[,1] == "1/2/2007" | arquivo[,1] == "2/2/2007"), ]
dados <- arquivo[arquivo$D... | /ExploratoryDataAnalysis/plot1.R | no_license | andrevalentebr/datasciencecoursera | R | false | false | 679 | r | setwd("/home/andre/R/datasciencecoursera/ExploratoryDataAnalysis")
arquivo <- read.table("household_power_consumption.txt", na.strings = "?",
header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
#dados <- arquivo[(arquivo[,1] == "1/2/2007" | arquivo[,1] == "2/2/2007"), ]
dados <- arquivo[arquivo$D... |
\name{envis.NB}
\alias{envis.NB}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Visualize The Negative Binomial Model OF A Given Taxon OR OTUID
}
\description{
This function plot the negative binomial model for a given otuID or taxon
}
\usage{
envis.NB(NB.model="", tax.meta, taxon="",
... | /man/envis.NB.Rd | no_license | juliaha/RAM | R | false | false | 2,756 | rd | \name{envis.NB}
\alias{envis.NB}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Visualize The Negative Binomial Model OF A Given Taxon OR OTUID
}
\description{
This function plot the negative binomial model for a given otuID or taxon
}
\usage{
envis.NB(NB.model="", tax.meta, taxon="",
... |
#### Analize climate files --- reference vs RCP
library(tidyverse)
library(readxl)
library(data.table)
library(lubridate)
# Read data and set paths
path <- paste0(getwd(), "/data") ## For climate data (.txt) import format
files <- list.files(path, pattern = ".txt")
path_future <- paste0(getwd(), "/climate_futur... | /climate_scenarios_plots.R | no_license | jrodriguez88/rice_guyana | R | false | false | 6,421 | r | #### Analize climate files --- reference vs RCP
library(tidyverse)
library(readxl)
library(data.table)
library(lubridate)
# Read data and set paths
path <- paste0(getwd(), "/data") ## For climate data (.txt) import format
files <- list.files(path, pattern = ".txt")
path_future <- paste0(getwd(), "/climate_futur... |
library(Rfmtool)
### Name: fm.IsMeasureSymmetricMob
### Title: IsMeasureSymmetricMob function
### Aliases: fm.IsMeasureSymmetricMob
### Keywords: IsMeasureSymmetric IsMeasureSymmetricMob
### ** Examples
env<-fm.Init(3)
fm.IsMeasureSymmetricMob(c(0.0, 0.3, 0.5, -0.2, 0.4, 0.1, -0.2, 0.1),env)
| /data/genthat_extracted_code/Rfmtool/examples/fm.IsMeasureSymmetricMob.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 301 | r | library(Rfmtool)
### Name: fm.IsMeasureSymmetricMob
### Title: IsMeasureSymmetricMob function
### Aliases: fm.IsMeasureSymmetricMob
### Keywords: IsMeasureSymmetric IsMeasureSymmetricMob
### ** Examples
env<-fm.Init(3)
fm.IsMeasureSymmetricMob(c(0.0, 0.3, 0.5, -0.2, 0.4, 0.1, -0.2, 0.1),env)
|
train <- read.csv(file = "../input/train.csv", stringsAsFactors = FALSE, header = TRUE)
test <- read.csv(file = "../input/test.csv", stringsAsFactors = FALSE, header = TRUE)
# EXPLORING THE DATA
str(train)
head(train, n=10)
# SURVIVAL RATE
# What is the percentage of those that had survived the titanic disaster?... | /Notebooks/r/stevencahill/titanic-machine-learning-from-disaster/titanic-machine-learning-from-disaster.R | no_license | nischalshrestha/automatic_wat_discovery | R | false | false | 920 | r | train <- read.csv(file = "../input/train.csv", stringsAsFactors = FALSE, header = TRUE)
test <- read.csv(file = "../input/test.csv", stringsAsFactors = FALSE, header = TRUE)
# EXPLORING THE DATA
str(train)
head(train, n=10)
# SURVIVAL RATE
# What is the percentage of those that had survived the titanic disaster?... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ttest_class.R
\docType{methods}
\name{show,ttest_class-method}
\alias{show,ttest_class-method}
\title{show}
\usage{
\S4method{show}{ttest_class}(object)
}
\arguments{
\item{object}{ttest_class object.}
}
\description{
\code{show} prints a mor... | /man/show-ttest_class-method.Rd | no_license | udaydatar7/bayes4psy | R | false | true | 584 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ttest_class.R
\docType{methods}
\name{show,ttest_class-method}
\alias{show,ttest_class-method}
\title{show}
\usage{
\S4method{show}{ttest_class}(object)
}
\arguments{
\item{object}{ttest_class object.}
}
\description{
\code{show} prints a mor... |
## Script for processing Human Activity Dataset
##
## Step 1 will be to merge the Test and Train files
##
## Read in the two data files
## (using read.table becasue of a known issue with
## fread and spaces at the beginning of a dataset)
##
library(data.table)
library(plyr)
test_act <- read.table("X_test.txt")
t... | /run_analysis.R | no_license | EAMarcar/Get_and_CleanProject | R | false | false | 2,761 | r | ## Script for processing Human Activity Dataset
##
## Step 1 will be to merge the Test and Train files
##
## Read in the two data files
## (using read.table becasue of a known issue with
## fread and spaces at the beginning of a dataset)
##
library(data.table)
library(plyr)
test_act <- read.table("X_test.txt")
t... |
mydirectory=getwd()
setwd(mydirectory)
ComusMinMax <- read.table("COMUS_MIN_MAX",sep='\t')
for (i in 0:290000){
print(i)
############################################################
#PARAMETERS input
ParametersFile <- paste ("PARAMETERS_",i, sep = "", collapse = NULL)
con <- file(ParametersFile, ... | /simulation_analisis_distr.R | no_license | johnpatramanis/Ambracia_Reworked | R | false | false | 2,154 | r | mydirectory=getwd()
setwd(mydirectory)
ComusMinMax <- read.table("COMUS_MIN_MAX",sep='\t')
for (i in 0:290000){
print(i)
############################################################
#PARAMETERS input
ParametersFile <- paste ("PARAMETERS_",i, sep = "", collapse = NULL)
con <- file(ParametersFile, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_consonants.R
\name{count_consonants}
\alias{count_consonants}
\title{ruf}
\usage{
count_consonants(str)
}
\arguments{
\item{str}{class: string}
}
\description{
ruf
}
\examples{
count_consonants(str)
}
| /man/count_consonants.Rd | permissive | nelsonroque/ruf | R | false | true | 285 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count_consonants.R
\name{count_consonants}
\alias{count_consonants}
\title{ruf}
\usage{
count_consonants(str)
}
\arguments{
\item{str}{class: string}
}
\description{
ruf
}
\examples{
count_consonants(str)
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.R
\docType{package}
\name{Package}
\alias{Package}
\title{Functions Package}
\description{
Math 4753 lab functions as produced by Majood Haddad.
}
\author{
Majood Haddad \email{majood00@ou.edu}
}
| /man/Package.Rd | no_license | Majood00/math4753 | R | false | true | 282 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Package.R
\docType{package}
\name{Package}
\alias{Package}
\title{Functions Package}
\description{
Math 4753 lab functions as produced by Majood Haddad.
}
\author{
Majood Haddad \email{majood00@ou.edu}
}
|
rm(list = ls())
setwd("C:/Users/Yash/Desktop/ISB Documents/Capstone Project/Raj Data")
raj_sales_data <- read.csv("Raj_Data.csv")
head(raj_sales_data)
unique (raj_sales_data$Dealer.Name)
?grep
| /R Code/Analysis on Rajathan data.R | no_license | surendradattatrey/recommendation_engine_for_escorts_india | R | false | false | 199 | r | rm(list = ls())
setwd("C:/Users/Yash/Desktop/ISB Documents/Capstone Project/Raj Data")
raj_sales_data <- read.csv("Raj_Data.csv")
head(raj_sales_data)
unique (raj_sales_data$Dealer.Name)
?grep
|
#############################################################################
#
# XLConnect
# Copyright (C) 2010-2016 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | /R/workbook.writeWorksheet.R | no_license | tk3369/xlconnect | R | false | false | 2,279 | r | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2016 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/box_cox.R
\name{boxcox_plot}
\alias{boxcox_plot}
\title{Plot Box-Cox transformed density functions}
\usage{
boxcox_plot(
x,
lambda = 1,
density_fn = NULL,
breaks = "Sturges",
main = "",
...
)
}
\arguments{
\item{x}{A numeric vecto... | /man/boxcox_plot.Rd | no_license | anhnguyendepocen/stat0002 | R | false | true | 3,272 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/box_cox.R
\name{boxcox_plot}
\alias{boxcox_plot}
\title{Plot Box-Cox transformed density functions}
\usage{
boxcox_plot(
x,
lambda = 1,
density_fn = NULL,
breaks = "Sturges",
main = "",
...
)
}
\arguments{
\item{x}{A numeric vecto... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/cgp_prep.R
\name{calc_cgp}
\alias{calc_cgp}
\title{calc_cgp}
\usage{
calc_cgp(measurementscale, grade, growth_window, baseline_avg_rit = NA,
ending_avg_rit = NA, sch_growth_study = sch_growth_norms_2012,
calc_for = c(1:99))
}
\arg... | /man/calc_cgp.Rd | no_license | rabare/mapvizieR | R | false | false | 930 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/cgp_prep.R
\name{calc_cgp}
\alias{calc_cgp}
\title{calc_cgp}
\usage{
calc_cgp(measurementscale, grade, growth_window, baseline_avg_rit = NA,
ending_avg_rit = NA, sch_growth_study = sch_growth_norms_2012,
calc_for = c(1:99))
}
\arg... |
#' @title Remove empty rows and/or columns from a data.frame.
#'
#' @description
#' Removes all rows and/or columns from a data.frame that are composed entirely of \code{NA} values.
#'
#' @param dat the input data.frame.
#' @param which one of "row", "col", or \code{c("row", "col")}
#' @return Returns the data.frame wi... | /R/remove_empties.R | permissive | liangquanzhou/janitor | R | false | false | 1,680 | r | #' @title Remove empty rows and/or columns from a data.frame.
#'
#' @description
#' Removes all rows and/or columns from a data.frame that are composed entirely of \code{NA} values.
#'
#' @param dat the input data.frame.
#' @param which one of "row", "col", or \code{c("row", "col")}
#' @return Returns the data.frame wi... |
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(readr))
suppressPackageStartupMessages(library(bigrquery))
suppressWarnings(source("code/helpers/_helpers.R"))
suppressWarnings(source("code/helpers/_helpers_big_query.R"))
suppressWarnings(source("code/helpers/_helpers_big_query_tab... | /code/checks/check_sqtl_enloc.R | permissive | yangchuhua/gtex-gwas-analysis | R | false | false | 687 | r | suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(readr))
suppressPackageStartupMessages(library(bigrquery))
suppressWarnings(source("code/helpers/_helpers.R"))
suppressWarnings(source("code/helpers/_helpers_big_query.R"))
suppressWarnings(source("code/helpers/_helpers_big_query_tab... |
############ Microsimulation Sick-Sicker model with time dependency ##########
# Includes:
# individual characteristics: age
# age dependent mortality probabilities
# time dependency for the sick (S1) state
# increasing change of death in the first 6 year of sickness (tunnel)
######################################... | /Microsim Sick-Sicker/Microsim_Sick-Sicker_time_template.R | no_license | anhnguyendepocen/AM9--Microsimulation-modeling-in-R | R | false | false | 4,690 | r |
############ Microsimulation Sick-Sicker model with time dependency ##########
# Includes:
# individual characteristics: age
# age dependent mortality probabilities
# time dependency for the sick (S1) state
# increasing change of death in the first 6 year of sickness (tunnel)
######################################... |
library(uavRst)
### Name: otb_stat
### Title: Calculates local statistics for a given kernel size
### Aliases: otb_stat
### ** Examples
## Not run:
##D require(uavRst)
##D require(link2GI)
##D # check if OTB is installed correctly
##D giLinks<-list()
##D giLinks$otb <- link2GI::linkOTB()
##D if (giLinks$otb$exist)... | /data/genthat_extracted_code/uavRst/examples/otb_stat.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 725 | r | library(uavRst)
### Name: otb_stat
### Title: Calculates local statistics for a given kernel size
### Aliases: otb_stat
### ** Examples
## Not run:
##D require(uavRst)
##D require(link2GI)
##D # check if OTB is installed correctly
##D giLinks<-list()
##D giLinks$otb <- link2GI::linkOTB()
##D if (giLinks$otb$exist)... |
library(readr)
library(glue)
library(dplyr)
library(googledrive)
library(googlesheets4)
# Set up credentials
readRenviron(".Renviron")
sheets_deauth()
#sheets_auth_configure(api_key = Sys.getenv("GARGLE_API"))
sheets_auth_configure(api_key='AIzaSyDO_e19HlbDtW2SloEuY8mcUfmEEX3Z4hc')
# Import data from Goog... | /server.R | no_license | andersonlabgroup/PPE_repository | R | false | false | 3,208 | r | library(readr)
library(glue)
library(dplyr)
library(googledrive)
library(googlesheets4)
# Set up credentials
readRenviron(".Renviron")
sheets_deauth()
#sheets_auth_configure(api_key = Sys.getenv("GARGLE_API"))
sheets_auth_configure(api_key='AIzaSyDO_e19HlbDtW2SloEuY8mcUfmEEX3Z4hc')
# Import data from Goog... |
`raupcrick` <-
function(comm, null = "r1", nsimul = 999, chase = FALSE, ...)
{
comm <- as.matrix(comm)
comm <- ifelse(comm > 0, 1, 0)
## 'tri' is a faster alternative to as.dist(): it takes the lower
## diagonal, but does not set attributes of a "dist" object
N <- nrow(comm)
tri <- matrix(FA... | /R/raupcrick.R | no_license | psolymos/vegan | R | false | false | 1,111 | r | `raupcrick` <-
function(comm, null = "r1", nsimul = 999, chase = FALSE, ...)
{
comm <- as.matrix(comm)
comm <- ifelse(comm > 0, 1, 0)
## 'tri' is a faster alternative to as.dist(): it takes the lower
## diagonal, but does not set attributes of a "dist" object
N <- nrow(comm)
tri <- matrix(FA... |
\name{randomForestSRC-package}
\alias{randomForestSRC-package}
\docType{package}
\title{
Fast Unified Random Forests for Survival, Regression, and Classification (RF-SRC)
}
\description{
Fast OpenMP parallel computing for unified Breiman random forests
(Breiman 2001) for regression, classification, survival anal... | /man/randomForestSRC_package.Rd | no_license | cttnguyen/randomForestSRC | R | false | false | 7,317 | rd | \name{randomForestSRC-package}
\alias{randomForestSRC-package}
\docType{package}
\title{
Fast Unified Random Forests for Survival, Regression, and Classification (RF-SRC)
}
\description{
Fast OpenMP parallel computing for unified Breiman random forests
(Breiman 2001) for regression, classification, survival anal... |
update.raw.geno <- function(raw.geno, exc.snps){
if(length(exc.snps) == 0){
return(raw.geno)
}
id <- which(!(colnames(raw.geno) %in% exc.snps))
if(length(id) == 0){
msg <- "All SNPs are excluded in update.raw.geno"
stop(msg)
}
raw.geno <- raw.geno[, id, drop = FALSE]
gc()
raw.geno
... | /R/update.raw.geno.R | no_license | cran/ARTP2 | R | false | false | 326 | r |
update.raw.geno <- function(raw.geno, exc.snps){
if(length(exc.snps) == 0){
return(raw.geno)
}
id <- which(!(colnames(raw.geno) %in% exc.snps))
if(length(id) == 0){
msg <- "All SNPs are excluded in update.raw.geno"
stop(msg)
}
raw.geno <- raw.geno[, id, drop = FALSE]
gc()
raw.geno
... |
##### LOAD CSV FILE OF RAW COUNTS (compiled by biostatistics core)
# contains each nucleotide (nt) & translated (aa) seq;
# distance (# changes) from WT nt/aa seq;
# the first position (index and aa) deviating from WT;
# and read counts from all libraries for that nt sequence.
RPDMS = read.csv('../Data/R332P-HIV1_summa... | /Scripts/R332PDMS_analysis.R | permissive | jtenthor/T5DMS_data_analysis | R | false | false | 12,901 | r | ##### LOAD CSV FILE OF RAW COUNTS (compiled by biostatistics core)
# contains each nucleotide (nt) & translated (aa) seq;
# distance (# changes) from WT nt/aa seq;
# the first position (index and aa) deviating from WT;
# and read counts from all libraries for that nt sequence.
RPDMS = read.csv('../Data/R332P-HIV1_summa... |
#' Prediction of anticancer peptides
#'
#' Antimicrobial peptides (AMPs) constitute a diverse group of bioactive molecules
#' that provide multicellular organisms with protection against microorganisms, and
#' microorganisms with weaponry for competition. Some AMPs can target cancer cells
#' and they are called anti... | /R/CancerGram-package.R | no_license | BioGenies/CancerGram | R | false | false | 2,017 | r | #' Prediction of anticancer peptides
#'
#' Antimicrobial peptides (AMPs) constitute a diverse group of bioactive molecules
#' that provide multicellular organisms with protection against microorganisms, and
#' microorganisms with weaponry for competition. Some AMPs can target cancer cells
#' and they are called anti... |
\name{rij}
\alias{rij}
\docType{data}
\title{
internal rij
}
\description{
intended for internal use only
}
\usage{rij} | /man/rij.Rd | no_license | cran/generalCorr | R | false | false | 128 | rd | \name{rij}
\alias{rij}
\docType{data}
\title{
internal rij
}
\description{
intended for internal use only
}
\usage{rij} |
# ProgrammingAssignment
# assignment
## A pair of functions that cache the inverse of a matrix.
## A pair of functions that cache the inverse of a matrix.
## This function creates a special matrix object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<... | /cachematrix.R | no_license | chiedzamutungama/ProgrammingAssignment | R | false | false | 1,280 | r | # ProgrammingAssignment
# assignment
## A pair of functions that cache the inverse of a matrix.
## A pair of functions that cache the inverse of a matrix.
## This function creates a special matrix object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<... |
library(seqinr)
Foxo1_seq<-read.fasta(file="FOXO1.fa", as.string=TRUE)
YY1_binding<-grepl("CGCCAT.T", Foxo1_seq, ignore.case = T)
YY1_binding
| /YY1_Binding.R | no_license | strabucco/YY1_Binding | R | false | false | 144 | r |
library(seqinr)
Foxo1_seq<-read.fasta(file="FOXO1.fa", as.string=TRUE)
YY1_binding<-grepl("CGCCAT.T", Foxo1_seq, ignore.case = T)
YY1_binding
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RequestRegistry.R
\name{RequestRegistry}
\alias{RequestRegistry}
\title{RequestRegistry}
\description{
keeps track of HTTP requests
}
\examples{
x <- RequestRegistry$new()
z1 <- RequestSignature$new("get", "http://scottchamberlain.info")
z2 <... | /man/RequestRegistry.Rd | permissive | ropensci/webmockr | R | false | true | 5,069 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RequestRegistry.R
\name{RequestRegistry}
\alias{RequestRegistry}
\title{RequestRegistry}
\description{
keeps track of HTTP requests
}
\examples{
x <- RequestRegistry$new()
z1 <- RequestSignature$new("get", "http://scottchamberlain.info")
z2 <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.