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 |
|---|---|---|---|---|---|---|---|---|---|
source("hyperrank.R")
d1 <- list(
doc_id=paste("https://www.washingtonpost.com/world/europe",
"julian-assange-expelled-from-his-embassy-perch-will-fight-extradition-from-jail",
"2019/04/12/d388584c-5cb2-11e9-98d4-844088d135f2_story.html", sep="/"),
title="Julian Assange, expelled from... | /external/r-impl/example.R | permissive | feup-infolab/army-ant | R | false | false | 4,622 | r | source("hyperrank.R")
d1 <- list(
doc_id=paste("https://www.washingtonpost.com/world/europe",
"julian-assange-expelled-from-his-embassy-perch-will-fight-extradition-from-jail",
"2019/04/12/d388584c-5cb2-11e9-98d4-844088d135f2_story.html", sep="/"),
title="Julian Assange, expelled from... |
\name{costError}
\alias{costEntropy}
\alias{costError}
\alias{costGini}
\title{Cost Functions}
\usage{
costError(y)
costGini(y)
costEntropy(y)
}
\arguments{
\item{y}{a factor.}
}
\value{
a numeric cost.
}
\description{
These functions compute the cost of representing a set
with its majority element.
}
| /mlexamples/man/Cost.Rd | no_license | nick-ulle/2013-mlexamples | R | false | false | 320 | rd | \name{costError}
\alias{costEntropy}
\alias{costError}
\alias{costGini}
\title{Cost Functions}
\usage{
costError(y)
costGini(y)
costEntropy(y)
}
\arguments{
\item{y}{a factor.}
}
\value{
a numeric cost.
}
\description{
These functions compute the cost of representing a set
with its majority element.
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_anal.R
\name{RF.Anal}
\alias{RF.Anal}
\title{Performs Random Forest Analysis}
\usage{
RF.Anal(mbSetObj, treeNum, tryNum, randomOn, variable, taxrank, datatype)
}
\arguments{
\item{mbSetObj}{Input the name of the mbSetObj.}
}
\descript... | /MicrobiomeAnalystR/man/RF.Anal.Rd | no_license | FADHLyemen/MicrobiomeAnalystR | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_anal.R
\name{RF.Anal}
\alias{RF.Anal}
\title{Performs Random Forest Analysis}
\usage{
RF.Anal(mbSetObj, treeNum, tryNum, randomOn, variable, taxrank, datatype)
}
\arguments{
\item{mbSetObj}{Input the name of the mbSetObj.}
}
\descript... |
test_that("test column_to_vec", {
test <- function(){
writeClipboard(readLines(system.file("testdata", package="og")))
column_to_vec()
readClipboard()
}
skip_on_travis()
expect_equal(test(), 'c(\"A\", \"B\", \"C\")')
})
test_that("copying from column to R vector works", {
test_vector <- ... | /tests/testthat/test-column_to_vec.R | no_license | OskarGauffin/og | R | false | false | 487 | r | test_that("test column_to_vec", {
test <- function(){
writeClipboard(readLines(system.file("testdata", package="og")))
column_to_vec()
readClipboard()
}
skip_on_travis()
expect_equal(test(), 'c(\"A\", \"B\", \"C\")')
})
test_that("copying from column to R vector works", {
test_vector <- ... |
add2 <- function(x,y) {
x+y
}
above10 <- function(x) {
use <- x>10
x[use]
}
above <- function(x, n=10){
use <- x > n
x[use]
}
colmean <- function(x, removeNA = TRUE) {
## accepts a matrix
nc <- ncol(x)
means <- numeric(nc)
for (i in 1:nc) {
means[i] <- mean(x[,i],na.rm = removeNA)
}
retur... | /DS2/hw2_functions_1.R | no_license | hortonw/datasciencecoursera | R | false | false | 826 | r | add2 <- function(x,y) {
x+y
}
above10 <- function(x) {
use <- x>10
x[use]
}
above <- function(x, n=10){
use <- x > n
x[use]
}
colmean <- function(x, removeNA = TRUE) {
## accepts a matrix
nc <- ncol(x)
means <- numeric(nc)
for (i in 1:nc) {
means[i] <- mean(x[,i],na.rm = removeNA)
}
retur... |
A0 <- 0.34-0.005*t
A1 <- exp(-t*0.2)*0.16+0.34
A2 <- exp(-t*0.19)*0.16+0.34
safelife.market.share <- data.frame(time = t,
A0 = A0,
A1 = A1,
A2 = A2)
## Carbia personal percentages
A1 <- function(t){
if(t<5)... | /Combine_Worst.R | no_license | ragnarlevi/casestudy | R | false | false | 5,486 | r |
A0 <- 0.34-0.005*t
A1 <- exp(-t*0.2)*0.16+0.34
A2 <- exp(-t*0.19)*0.16+0.34
safelife.market.share <- data.frame(time = t,
A0 = A0,
A1 = A1,
A2 = A2)
## Carbia personal percentages
A1 <- function(t){
if(t<5)... |
## Create two functions that cache the inverse of a matrix
## Matrix that cache its inverse
makeCacheMatrix <- function(x = matrix()) {
k <- NULL
set <- function(matrix){
k <- NULL
m <<- matrix
}
... | /cachematrix.R | no_license | yudel2000/ProgrammingAssignment2 | R | false | false | 1,198 | r | ## Create two functions that cache the inverse of a matrix
## Matrix that cache its inverse
makeCacheMatrix <- function(x = matrix()) {
k <- NULL
set <- function(matrix){
k <- NULL
m <<- matrix
}
... |
#' Veto sic
#'
#' @description Vetoes words in a LaTeX document that are marked '[sic]'
#' for the purpose of spell checking by replacing them (and `[sic]` itself) with white space of
#' equal length.
#'
#' @param tex_lines A character vector.
#' @param quote (logical, default: \code{TRUE}) Veto words after... | /R/veto_sic.R | no_license | cran/TeXCheckR | R | false | false | 4,205 | r | #' Veto sic
#'
#' @description Vetoes words in a LaTeX document that are marked '[sic]'
#' for the purpose of spell checking by replacing them (and `[sic]` itself) with white space of
#' equal length.
#'
#' @param tex_lines A character vector.
#' @param quote (logical, default: \code{TRUE}) Veto words after... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gdelt_event_gkg.R
\name{get_schema_gkg_general}
\alias{get_schema_gkg_general}
\title{Gets gkg general schema}
\usage{
get_schema_gkg_general()
}
\value{
}
\description{
Gets gkg general schema
}
\examples{
get_schema_gkg_general()
}
| /man/get_schema_gkg_general.Rd | no_license | raj0926/gdeltr2 | R | false | true | 314 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gdelt_event_gkg.R
\name{get_schema_gkg_general}
\alias{get_schema_gkg_general}
\title{Gets gkg general schema}
\usage{
get_schema_gkg_general()
}
\value{
}
\description{
Gets gkg general schema
}
\examples{
get_schema_gkg_general()
}
|
## this function will make special matrix
makeCacheMatrix <- function(x = matrix())
{
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse){ inv <<- inverse }
getInverse <- function() inv
list(set = set,get = get,setInverse = setInverse,getInv... | /cachematrix.R | no_license | sagaraa/ProgrammingAssignment2 | R | false | false | 665 | r |
## this function will make special matrix
makeCacheMatrix <- function(x = matrix())
{
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse){ inv <<- inverse }
getInverse <- function() inv
list(set = set,get = get,setInverse = setInverse,getInv... |
#' @title Match Nearest Neighbor Between Two Datasets
#' @description
#' Match the nearest neighbor from a redirected Cornerstone \code{Robject} dataset
#' (\code{\link{redirectDataset}}) to corresponding selected predictor variables.
#' Predictor variables from both datasets are supposed to be numeric to ap... | /R/matchNearestNeighbor.R | no_license | cran/CornerstoneR | R | false | false | 4,900 | r | #' @title Match Nearest Neighbor Between Two Datasets
#' @description
#' Match the nearest neighbor from a redirected Cornerstone \code{Robject} dataset
#' (\code{\link{redirectDataset}}) to corresponding selected predictor variables.
#' Predictor variables from both datasets are supposed to be numeric to ap... |
test_that("test pearsonresidual", {
## pp obj not correct
obj <- pp_hpp(lambda = 1)
class(obj) <- "non-pp"
expect_output(pearsonresidual(object = obj,events = c(1,2)),
"Please input the right model. Select from hp, hpp, mmpp and mmhp.")
## special cases of point process, Poisson
obj <-... | /tests/testthat/test-pearsonresidual.R | permissive | wjakethompson/ppdiag | R | false | false | 1,174 | r | test_that("test pearsonresidual", {
## pp obj not correct
obj <- pp_hpp(lambda = 1)
class(obj) <- "non-pp"
expect_output(pearsonresidual(object = obj,events = c(1,2)),
"Please input the right model. Select from hp, hpp, mmpp and mmhp.")
## special cases of point process, Poisson
obj <-... |
#(1)
#サイコロを10回投げたというシミュレーションを実施し、その結果を表示
n<-10
X10<-floor(runif(n,1,7))
X10
#(2)
#100回サイコロを投げたというシミュレーションを実施し、その結果をヒストグラムで表示
n<-100
X100<-floor(runif(n,1,7))
hist(X100,breaks=seq(0,6,by=1),freq=F)
#(3)
#(2)のシミュレーション結果より標本平均と標本分散を表示
mean(X100)
var(X100)
#(4)
#(2)のシミュレーション結果を用いてそれぞれの相対頻度を表示
fraction=6
for (i in 1:6){
... | /2.dice.R | no_license | Tsubasa1205/gumball | R | false | false | 614 | r | #(1)
#サイコロを10回投げたというシミュレーションを実施し、その結果を表示
n<-10
X10<-floor(runif(n,1,7))
X10
#(2)
#100回サイコロを投げたというシミュレーションを実施し、その結果をヒストグラムで表示
n<-100
X100<-floor(runif(n,1,7))
hist(X100,breaks=seq(0,6,by=1),freq=F)
#(3)
#(2)のシミュレーション結果より標本平均と標本分散を表示
mean(X100)
var(X100)
#(4)
#(2)のシミュレーション結果を用いてそれぞれの相対頻度を表示
fraction=6
for (i in 1:6){
... |
\name{ATT.DCB}
\alias{ATT.DCB}
\title{ATT Estimation using Differentiated Confounder Balancing (DCB)}
\usage{
ATT.DCB(Y,T,X)
}
\description{
The function provides the estimation of ATT given the outcome Y, binary treatment T, and covariates X.
}
\format{
The function has the following parameters
\describe{
\ite... | /man/ATT.DCB.Rd | no_license | wyan3/ATEDCB | R | false | false | 1,702 | rd | \name{ATT.DCB}
\alias{ATT.DCB}
\title{ATT Estimation using Differentiated Confounder Balancing (DCB)}
\usage{
ATT.DCB(Y,T,X)
}
\description{
The function provides the estimation of ATT given the outcome Y, binary treatment T, and covariates X.
}
\format{
The function has the following parameters
\describe{
\ite... |
#' Implement weighted rank correlation, as described in Jerrold H Zar,
#' "Biostatistical Analysis" 5th ed.
#'
#' @param mat a matrix of data
#' @return the estimated correlation coefficients
#' @export
wtd_rank <- function(mat) {
ranks <- apply(mat, 2, rank, ties = "average")
# weight the ranks
# calculate t... | /R/wtd_rank.R | permissive | jordansquair/dismay | R | false | false | 645 | r | #' Implement weighted rank correlation, as described in Jerrold H Zar,
#' "Biostatistical Analysis" 5th ed.
#'
#' @param mat a matrix of data
#' @return the estimated correlation coefficients
#' @export
wtd_rank <- function(mat) {
ranks <- apply(mat, 2, rank, ties = "average")
# weight the ranks
# calculate t... |
#' @title Create a list of annotation tables from a GuideSet object
#'
#' @description Create a list of annotation tables from a GuideSet object
#'
#' @param guideSet A GuideSet object
#' @param useSpacerCoordinates Should the spacer coordinates be used
#' as start and end coordinates? TRUE by default. If FALSE,
... | /R/GuideSet2DataFrames.R | permissive | crisprVerse/crisprDesign | R | false | false | 9,743 | r | #' @title Create a list of annotation tables from a GuideSet object
#'
#' @description Create a list of annotation tables from a GuideSet object
#'
#' @param guideSet A GuideSet object
#' @param useSpacerCoordinates Should the spacer coordinates be used
#' as start and end coordinates? TRUE by default. If FALSE,
... |
scGRNom_disGenes <- function(df, gwas_snps, extension_bps){
library(GenomicRanges)
library(biomaRt)
#library(ReactomePA)
#library(clusterProfiler)
#library(UpSetR)
library(stringr)
#library(dplyr)
#library(EnsDb.Hsapiens.v86)
#library(MotifDb)
library(motifbreakR)
#library(tidyverse)
library(... | /code/scGRNom_disGenes.R | no_license | mufangying/scGRNom | R | false | false | 11,388 | r | scGRNom_disGenes <- function(df, gwas_snps, extension_bps){
library(GenomicRanges)
library(biomaRt)
#library(ReactomePA)
#library(clusterProfiler)
#library(UpSetR)
library(stringr)
#library(dplyr)
#library(EnsDb.Hsapiens.v86)
#library(MotifDb)
library(motifbreakR)
#library(tidyverse)
library(... |
#!/usr/bin/env Rscript
# draft code for taking XML description of trajectories and outputting summary statistics of dynamic encounter networks (and some snapshots of networks)
# process command-line arguments
# these are of the form
# Rscript extract-2D.R [input XML file] [threshold] [any frames for which to output g... | /refactor/extract-2D.R | no_license | StochasticBiology/plant-mitochondria | R | false | false | 6,934 | r | #!/usr/bin/env Rscript
# draft code for taking XML description of trajectories and outputting summary statistics of dynamic encounter networks (and some snapshots of networks)
# process command-line arguments
# these are of the form
# Rscript extract-2D.R [input XML file] [threshold] [any frames for which to output g... |
# This is a personalized setup file that establishes directories
#
# Edit this to point to the correct directories on this computer and
# save the file as setup_<username>.R where <username> is replaced with
# your username on this computer.
# Original data location
# This should point to the larger NSFG Box folder w... | /setup_example.R | permissive | kraley/nonmarital-fertility-trend | R | false | false | 762 | r | # This is a personalized setup file that establishes directories
#
# Edit this to point to the correct directories on this computer and
# save the file as setup_<username>.R where <username> is replaced with
# your username on this computer.
# Original data location
# This should point to the larger NSFG Box folder w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install-cran.r
\name{install_cran}
\alias{install_cran}
\title{Attempts to install a package from CRAN.}
\usage{
install_cran(pkgs, repos = getOption("repos"), type = getOption("pkgType"),
..., quiet = FALSE)
}
\arguments{
\item{pkgs}{Chara... | /man/install_cran.Rd | no_license | jiehua666/devtools | R | false | true | 1,087 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/install-cran.r
\name{install_cran}
\alias{install_cran}
\title{Attempts to install a package from CRAN.}
\usage{
install_cran(pkgs, repos = getOption("repos"), type = getOption("pkgType"),
..., quiet = FALSE)
}
\arguments{
\item{pkgs}{Chara... |
manhattanPlot <- function(b,gpData=NULL,colored=FALSE,add=FALSE,pch=19,ylab=NULL,colP=NULL,...){
if(is.null(gpData)) plot(b,...)
else{
if(is.null(gpData$map)) stop("missing map in gpData object ",substitute(gpData))
if (class(b) == "gpMod") b <- b$markerEffects
b <- b[!(is.na(gpData$map$pos) | is.n... | /R/manhattanPlot.r | no_license | cran/synbreed | R | false | false | 1,438 | r | manhattanPlot <- function(b,gpData=NULL,colored=FALSE,add=FALSE,pch=19,ylab=NULL,colP=NULL,...){
if(is.null(gpData)) plot(b,...)
else{
if(is.null(gpData$map)) stop("missing map in gpData object ",substitute(gpData))
if (class(b) == "gpMod") b <- b$markerEffects
b <- b[!(is.na(gpData$map$pos) | is.n... |
#
# Autor: Miguel Jesus Mejia Puma
# Universidad Nacional de Ingenieria - 2019
#
rm(list = ls())
bin2vecFull<-function(nDim){
n <- nDim
x_nodo<-1:(n-1)
y_nodo<-2:n
vector<-c()
for (i in y_nodo) {
j<-i
while(j<=n){
vector<-c(vector,x_nodo[i-1],j)
j<-j+1
}
}
vector
}
bin2vecGra... | /Scripts-R_Grafos/FuncionesBinToGrafo.R | no_license | mmejiap/hypernetwork-grafos-experiment | R | false | false | 5,788 | r | #
# Autor: Miguel Jesus Mejia Puma
# Universidad Nacional de Ingenieria - 2019
#
rm(list = ls())
bin2vecFull<-function(nDim){
n <- nDim
x_nodo<-1:(n-1)
y_nodo<-2:n
vector<-c()
for (i in y_nodo) {
j<-i
while(j<=n){
vector<-c(vector,x_nodo[i-1],j)
j<-j+1
}
}
vector
}
bin2vecGra... |
\name{mc.despack.linear.conjoint}
\alias{mc.despack.linear.conjoint}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
mc.despack.linear.conjoint
}
\description{
Given a list of designs and the data
find the coefficients of the linear fit for each
design and each column of data.
}
\usage{
mc.despac... | /man/mc.despack.linear.conjoint.Rd | no_license | cran/MConjoint | R | false | false | 1,507 | rd | \name{mc.despack.linear.conjoint}
\alias{mc.despack.linear.conjoint}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
mc.despack.linear.conjoint
}
\description{
Given a list of designs and the data
find the coefficients of the linear fit for each
design and each column of data.
}
\usage{
mc.despac... |
# !!!
# Uncomment bioClite call when running for the first time
# !!!
library(randomForest)
source(file.path(scriptdir, "readers.R"))
source(file.path(scriptdir, "pairing.R"))
base <- "/home/anjenson/BioInformatics/"
scriptdir <- "/home/anjenson/BioInformatics/MDRTB-pipe/common"
extra <- ""
ignore_cols <- c()
datas... | /_old/WindowedRandomForests.R | permissive | ikavalio/MDRTB-pipe | R | false | false | 3,480 | r | # !!!
# Uncomment bioClite call when running for the first time
# !!!
library(randomForest)
source(file.path(scriptdir, "readers.R"))
source(file.path(scriptdir, "pairing.R"))
base <- "/home/anjenson/BioInformatics/"
scriptdir <- "/home/anjenson/BioInformatics/MDRTB-pipe/common"
extra <- ""
ignore_cols <- c()
datas... |
library(quantmod)
library(dplyr)
library(tidyverse)
library(tseries)
library(rugarch)
library(xts)
library(PerformanceAnalytics)
library(lubridate)
setwd("~/Sem_3/Time_Series/Data")
nifty <- read_excel("nifty.xlsx")
dax <- read_excel("dax.xlsx")
dow_jones <- read_excel("dow_jones.xlsx")
nikkei <- read_e... | /Stock_Market_Prediction/another_try.R | no_license | pratik2358/Time-series | R | false | false | 18,011 | r | library(quantmod)
library(dplyr)
library(tidyverse)
library(tseries)
library(rugarch)
library(xts)
library(PerformanceAnalytics)
library(lubridate)
setwd("~/Sem_3/Time_Series/Data")
nifty <- read_excel("nifty.xlsx")
dax <- read_excel("dax.xlsx")
dow_jones <- read_excel("dow_jones.xlsx")
nikkei <- read_e... |
library(europepmc)
### Name: epmc_hits
### Title: Get search result count
### Aliases: epmc_hits
### ** Examples
## Not run:
##D epmc_hits('abstract:"burkholderia pseudomallei"')
##D epmc_hits('AUTHORID:"0000-0002-7635-3473"')
##D
## End(Not run)
| /data/genthat_extracted_code/europepmc/examples/epmc_hits.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 260 | r | library(europepmc)
### Name: epmc_hits
### Title: Get search result count
### Aliases: epmc_hits
### ** Examples
## Not run:
##D epmc_hits('abstract:"burkholderia pseudomallei"')
##D epmc_hits('AUTHORID:"0000-0002-7635-3473"')
##D
## End(Not run)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotfun.R
\name{plotDens}
\alias{plotDens}
\title{plotDens: plot 3D density plot of tZ}
\usage{
plotDens(tZ, pdf, phi = 30, theta = 100, title = "data")
}
\arguments{
\item{tZ}{a matrix of tSNE}
\item{pdf}{An S4 object of kepdf-class with sl... | /man/plotDens.Rd | permissive | ouyang-lab/LISA2 | R | false | true | 664 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotfun.R
\name{plotDens}
\alias{plotDens}
\title{plotDens: plot 3D density plot of tZ}
\usage{
plotDens(tZ, pdf, phi = 30, theta = 100, title = "data")
}
\arguments{
\item{tZ}{a matrix of tSNE}
\item{pdf}{An S4 object of kepdf-class with sl... |
#' European Cup and Champions League Results 1955-2016
#'
#' All results for European Cup and Champions League
#' matches including qualifiers
#'
#' @format A data frame with 6554 rows and 23 variables:
#' \describe{
#' \item{Date}{Date of match}
#' \item{Season}{Season of match - refers to starting year}
... | /R/champs.R | no_license | cran/engsoccerdata | R | false | false | 1,462 | r | #' European Cup and Champions League Results 1955-2016
#'
#' All results for European Cup and Champions League
#' matches including qualifiers
#'
#' @format A data frame with 6554 rows and 23 variables:
#' \describe{
#' \item{Date}{Date of match}
#' \item{Season}{Season of match - refers to starting year}
... |
####### Fig2C
library(ggplot2)
data <- read.csv("D:/SYSU/cnSV/FigDat/fig2C.csv")
data$Type = factor(data$Type,levels=c("DEL","INS","DUP","INV"))
data$Database = factor(data$Database,levels=c("LRS15","DGV","WGS911","gnomAD"))
pdf("D:/SYSU/cnSV/Figure/Figure2C.pdf",width=6,height=4)
ggplot(data, aes(fill=Database,... | /script/Fig2C_2F_2G_4A_S5.R | no_license | ZhikunWu/PGC | R | false | false | 5,243 | r |
####### Fig2C
library(ggplot2)
data <- read.csv("D:/SYSU/cnSV/FigDat/fig2C.csv")
data$Type = factor(data$Type,levels=c("DEL","INS","DUP","INV"))
data$Database = factor(data$Database,levels=c("LRS15","DGV","WGS911","gnomAD"))
pdf("D:/SYSU/cnSV/Figure/Figure2C.pdf",width=6,height=4)
ggplot(data, aes(fill=Database,... |
## Written by James Johnson
## plot2.R the creates the 'plot2.png' file
library(lubridate)
options(digits = 6)
#load data
myData <- read.delim("household_power_consumption.txt", sep = ";",
stringsAsFactors = FALSE)
#extract subset
myData <- myData[(myData$Date == "2/2/2007") | (myData$Date == ... | /plot2.R | no_license | FutureRises/ExData_Plotting1 | R | false | false | 1,137 | r | ## Written by James Johnson
## plot2.R the creates the 'plot2.png' file
library(lubridate)
options(digits = 6)
#load data
myData <- read.delim("household_power_consumption.txt", sep = ";",
stringsAsFactors = FALSE)
#extract subset
myData <- myData[(myData$Date == "2/2/2007") | (myData$Date == ... |
library(qdap)
### Name: add_s
### Title: Make Plural (or Verb to Singular) Versions of Words
### Aliases: add_s
### Keywords: plural
### ** Examples
set.seed(10)
add_s(sample(GradyAugmented, 10))
set.seed(10)
add_s(sample(GradyAugmented, 10), FALSE)
| /data/genthat_extracted_code/qdap/examples/add_s.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 257 | r | library(qdap)
### Name: add_s
### Title: Make Plural (or Verb to Singular) Versions of Words
### Aliases: add_s
### Keywords: plural
### ** Examples
set.seed(10)
add_s(sample(GradyAugmented, 10))
set.seed(10)
add_s(sample(GradyAugmented, 10), FALSE)
|
#' ---
#' title: "Lighting functions"
#' author: "Centre for Sustainable Energy"
#' date: "2015"
#' output: pdf_document
#' ---
#+ echo=FALSE, warnings=FALSE
#Sources (makes available) the common functions required to make the stock.
source("common.R", chdir=T)
#'#Make lighting data
#'
#'Create a .csv file using the ... | /ehcs/lighting.R | no_license | cse-bristol/national-household-model-stock-files-creator | R | false | false | 2,440 | r | #' ---
#' title: "Lighting functions"
#' author: "Centre for Sustainable Energy"
#' date: "2015"
#' output: pdf_document
#' ---
#+ echo=FALSE, warnings=FALSE
#Sources (makes available) the common functions required to make the stock.
source("common.R", chdir=T)
#'#Make lighting data
#'
#'Create a .csv file using the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slim_lang.R
\name{initializeGenomicElement}
\alias{initializeGenomicElement}
\alias{Initialize$initializeGenomicElement}
\alias{.Init$initializeGenomicElement}
\title{SLiM method initializeGenomicElement}
\usage{
initializeGenomicElement(geno... | /man/initializeGenomicElement.Rd | permissive | rdinnager/slimrlang | R | false | true | 2,925 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/slim_lang.R
\name{initializeGenomicElement}
\alias{initializeGenomicElement}
\alias{Initialize$initializeGenomicElement}
\alias{.Init$initializeGenomicElement}
\title{SLiM method initializeGenomicElement}
\usage{
initializeGenomicElement(geno... |
dataFile <- paste("C:/00-GUTIERRX/Coursera/04 - Exploratory Data Analysis/Data/",
"household_power_consumption.txt",sep="")
data <- read.table(dataFile,header=TRUE,sep=";",
stringsAsFactors=FALSE,na.strings="?",strip.white=TRUE)
data <- cbind(data[,1:2],data.frame(strptime(paste(dat... | /plot3.R | no_license | xaviergm/ExData_Plotting1 | R | false | false | 1,012 | r | dataFile <- paste("C:/00-GUTIERRX/Coursera/04 - Exploratory Data Analysis/Data/",
"household_power_consumption.txt",sep="")
data <- read.table(dataFile,header=TRUE,sep=";",
stringsAsFactors=FALSE,na.strings="?",strip.white=TRUE)
data <- cbind(data[,1:2],data.frame(strptime(paste(dat... |
# Funcrion to extract Sowing dates data from full phenorice results
# + add the administrative boundaries codes and names to each point
# with a valid PhenoRice estimation
library(raster)
library(gdalUtils)
library(data.table)
library(dplyr)
library(sf)
library(mapview)
library(sprawl)
setwd("/home/lb/nr_working/shar... | /R/srv_raststats.R | no_license | lbusett/phenoricesrv | R | false | false | 6,353 | r | # Funcrion to extract Sowing dates data from full phenorice results
# + add the administrative boundaries codes and names to each point
# with a valid PhenoRice estimation
library(raster)
library(gdalUtils)
library(data.table)
library(dplyr)
library(sf)
library(mapview)
library(sprawl)
setwd("/home/lb/nr_working/shar... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/population_statistics.R
\name{population_estimates}
\alias{population_estimates}
\alias{var.p}
\alias{sd.p}
\title{Population estimates for var and sd}
\usage{
var.p(x, na.rm = FALSE)
sd.p(x, na.rm = FALSE)
}
\arguments{
\item{x}{a numeric v... | /man/population_estimates.Rd | no_license | wjchulme/willsutils | R | false | true | 493 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/population_statistics.R
\name{population_estimates}
\alias{population_estimates}
\alias{var.p}
\alias{sd.p}
\title{Population estimates for var and sd}
\usage{
var.p(x, na.rm = FALSE)
sd.p(x, na.rm = FALSE)
}
\arguments{
\item{x}{a numeric v... |
testlist <- list(x = integer(0), y = c(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, 0L, 0L, 0L))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str... | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609961686-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 328 | r | testlist <- list(x = integer(0), y = c(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, 0L, 0L, 0L))
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str... |
library(ggplot2)
require(gridExtra)
addSmallLegend <- function(myPlot, pointSize = 5, textSize = 8, spaceLegend = 1) {
myPlot = myPlot +
#guides(shape = guide_legend(override.aes = list(size = pointSize)),
# color = guide_legend(override.aes = list(size = pointSize))) +
theme(legend.title =... | /antibodyVdayGROUP.R | no_license | Fredenck/Analyzing-Data-of-SARS-CoV-2-Serology-Antibody-IgG-Tests | R | false | false | 1,651 | r | library(ggplot2)
require(gridExtra)
addSmallLegend <- function(myPlot, pointSize = 5, textSize = 8, spaceLegend = 1) {
myPlot = myPlot +
#guides(shape = guide_legend(override.aes = list(size = pointSize)),
# color = guide_legend(override.aes = list(size = pointSize))) +
theme(legend.title =... |
library(ggplot2)
library(dplyr)
#set the wd first
household <- read.table(file = "household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE)
household$Date<-as.Date(strptime(household$Date, "%d/%m/%Y"))
household_feb <- filter(household, Date == "2007-02-01" | Date == "2007-02-02" )
new_df<- mutate(... | /plot3.R | no_license | grosbusen/ExData_Plotting1 | R | false | false | 874 | r | library(ggplot2)
library(dplyr)
#set the wd first
household <- read.table(file = "household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE)
household$Date<-as.Date(strptime(household$Date, "%d/%m/%Y"))
household_feb <- filter(household, Date == "2007-02-01" | Date == "2007-02-02" )
new_df<- mutate(... |
/05_Machine_Learning_R/04-PrevendoOcorrenciaCancer-KNN.R | permissive | janes/BigData_Analytics_com_R | R | false | false | 7,831 | r | ||
#' Call STAN models
#'
#'
#' @param chains STAN parameter. Number of Markov chainsm
#' @param iter STAN parameter. Number of iterations
#' @param warmup STAN parameter. Number of burnin.
#' @param control STAN parameter. See \code{rstan::stan} for details.
#' @param ... other options to call STAN sampling such as \code... | /R/rtest_stan.R | no_license | olssol/rtest | R | false | false | 948 | r | #' Call STAN models
#'
#'
#' @param chains STAN parameter. Number of Markov chainsm
#' @param iter STAN parameter. Number of iterations
#' @param warmup STAN parameter. Number of burnin.
#' @param control STAN parameter. See \code{rstan::stan} for details.
#' @param ... other options to call STAN sampling such as \code... |
argv1=function(arg1){
Vec = c()
for(i in 1:length(arg1)){
if(i<5 || i>90){
Vec[i]=loop[i]*10
}
else
{
Vec[i]=loop[i]*0.1
}
}
return(Vec)
}
vecs = c(0,1,2,3,5,10,20,40,75,10)
argv1(vecs) | /fourthscript.R | no_license | mavisentin/SRT411-Assignment-0 | R | false | false | 204 | r | argv1=function(arg1){
Vec = c()
for(i in 1:length(arg1)){
if(i<5 || i>90){
Vec[i]=loop[i]*10
}
else
{
Vec[i]=loop[i]*0.1
}
}
return(Vec)
}
vecs = c(0,1,2,3,5,10,20,40,75,10)
argv1(vecs) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findVariation.R
\name{findVariation}
\alias{findVariation}
\title{this finds the percent difference of two covarites in a SE4 object}
\usage{
findVariation(kexpNew, kexpOrigin)
}
\arguments{
\item{kexpNew}{a kallisto experiment from artemis}
... | /dataVariance/man/findVariation.Rd | permissive | RamsinghLab/Arkas-RNASeq | R | false | true | 533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findVariation.R
\name{findVariation}
\alias{findVariation}
\title{this finds the percent difference of two covarites in a SE4 object}
\usage{
findVariation(kexpNew, kexpOrigin)
}
\arguments{
\item{kexpNew}{a kallisto experiment from artemis}
... |
/r/examples/extract/AF_extract_with_mask2016_test_Dataframe.R | no_license | Lorenagzp/Scripts | R | false | false | 7,089 | r | ||
source("./Script_files/functions.R")
source("./Script_files/loadData.R")
#isoprene data
isoprene_dt <- data.table(
condition = c("Baseline", "Relaxed", "Stressed"),
isoprene_val = c(1.87, 5.85, 6.39),
isoprene_std = c(0.64, 0.47, 0.25))
#Intervention or control
condition_dt <- data.table(
condition = c("Base... | /Script_files/fig3.R | no_license | asitkm76/VOCStudyGitUpload | R | false | false | 6,124 | r | source("./Script_files/functions.R")
source("./Script_files/loadData.R")
#isoprene data
isoprene_dt <- data.table(
condition = c("Baseline", "Relaxed", "Stressed"),
isoprene_val = c(1.87, 5.85, 6.39),
isoprene_std = c(0.64, 0.47, 0.25))
#Intervention or control
condition_dt <- data.table(
condition = c("Base... |
context("Test species information functions")
## Not tested yet: species_by_site
thischeck=function() {
test_that("species_info generally works as expected", {
expect_is(species_info("Grevillea humilis subsp. maritima"),"list")
expect_error(species_info("Grevillea humilis subsp. maritima",verbose=... | /tests/testthat/test-species.R | no_license | AugustT/ALA4R | R | false | false | 2,283 | r | context("Test species information functions")
## Not tested yet: species_by_site
thischeck=function() {
test_that("species_info generally works as expected", {
expect_is(species_info("Grevillea humilis subsp. maritima"),"list")
expect_error(species_info("Grevillea humilis subsp. maritima",verbose=... |
testlist <- list(hi = 0, lo = 5.4323092239719e-312, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047620-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 125 | r | testlist <- list(hi = 0, lo = 5.4323092239719e-312, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
# Author: Schatz Energy Research Center
# Original Version: Micah Wright
# Date: March 01, 2019
# Description: Processes and saves the evi sessions and time series load profile for all ambient temperatures.
# Version History
# 2019-09-12 Max: minor edits, run on SUV data
# 2020-05-04 Jerome: turn into formal functi... | /functions/func_preprocess.R | permissive | nreinicke/EVIPro-Fleet-Gen | R | false | false | 2,575 | r | # Author: Schatz Energy Research Center
# Original Version: Micah Wright
# Date: March 01, 2019
# Description: Processes and saves the evi sessions and time series load profile for all ambient temperatures.
# Version History
# 2019-09-12 Max: minor edits, run on SUV data
# 2020-05-04 Jerome: turn into formal functi... |
###count figures
count_data <- read.csv(file.choose(),stringsAsFactors = F)
library(stringr)
source("C:/Users/ituncali/Documents/Master's Thesis/USV-Data-Management/src/count_total.R")
allowed.categories <- c("flat", "flat-z", "flat-mz", "short", "short-su", "short-sd",
"short-ur", "short-dr", "short-c", "complex"... | /FIGURES 2-27-18.R | no_license | ituncali/USV-data-analysis | R | false | false | 18,612 | r | ###count figures
count_data <- read.csv(file.choose(),stringsAsFactors = F)
library(stringr)
source("C:/Users/ituncali/Documents/Master's Thesis/USV-Data-Management/src/count_total.R")
allowed.categories <- c("flat", "flat-z", "flat-mz", "short", "short-su", "short-sd",
"short-ur", "short-dr", "short-c", "complex"... |
rm(list=ls())
set.seed(0)
library(VGAM)
require("ggplot2")
require("gplots")
require("cowplot")
print("Importing Data...")
Data<-read.table("ProcessedData.txt",header=FALSE)
colnames(Data)<-c("Gene","Cross","Sex","Diet","Number","BC","Lbiase","L","S")
Data$Sbiase<-(1-Data$Lbiase)
Data<-subset(Data,Lbiase != "... | /MeasureLibraryComplexity.R | no_license | LawsonLab-WUSM/POE_Epistasis | R | false | false | 3,133 | r | rm(list=ls())
set.seed(0)
library(VGAM)
require("ggplot2")
require("gplots")
require("cowplot")
print("Importing Data...")
Data<-read.table("ProcessedData.txt",header=FALSE)
colnames(Data)<-c("Gene","Cross","Sex","Diet","Number","BC","Lbiase","L","S")
Data$Sbiase<-(1-Data$Lbiase)
Data<-subset(Data,Lbiase != "... |
## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
library(binomial)
## ------------------------------------------------------------------------
my_bin = bi... | /workout03/binomial/doc/introduction.R | no_license | stat133-sp19/hw-stat133-ischmidt20 | R | false | false | 1,261 | r | ## ---- include = FALSE----------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup---------------------------------------------------------------
library(binomial)
## ------------------------------------------------------------------------
my_bin = bi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convex_functions.R
\name{logdet}
\alias{logdet}
\title{Take the log of the determinant of a matrix.}
\usage{
logdet(in_matrix)
}
\arguments{
\item{in_matrix}{A square, positive definite matrix.}
}
\value{
The log of the determinant of \code{i... | /jhickeyST790/man/logdet.Rd | no_license | JimmyJHickey/ST790-Advanced-Computing | R | false | true | 394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convex_functions.R
\name{logdet}
\alias{logdet}
\title{Take the log of the determinant of a matrix.}
\usage{
logdet(in_matrix)
}
\arguments{
\item{in_matrix}{A square, positive definite matrix.}
}
\value{
The log of the determinant of \code{i... |
Meta.load <- function() {
vanAllen <- VanAllen.merge()
hugo <- Hugo.load()
riaz <- Riaz.load()
z.score <- function(x) {
(x - mean(x)) / sd(x)
}
recist <- data.frame(RECIST = c("CR", "PR", "SD", "PD"),
R_NR = c( "R", "R", "R", "NR"))
vanAllen <... | /stat/NeoThy/src/Meta.R | permissive | tipplerow/jam | R | false | false | 2,161 | r |
Meta.load <- function() {
vanAllen <- VanAllen.merge()
hugo <- Hugo.load()
riaz <- Riaz.load()
z.score <- function(x) {
(x - mean(x)) / sd(x)
}
recist <- data.frame(RECIST = c("CR", "PR", "SD", "PD"),
R_NR = c( "R", "R", "R", "NR"))
vanAllen <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear_KUDP.R
\name{do.kudp}
\alias{do.kudp}
\title{Kernel-Weighted Unsupervised Discriminant Projection}
\usage{
do.kudp(X, ndim = 2, type = c("proportion", 0.1),
preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"),
band... | /man/linear_KUDP.Rd | no_license | rcannood/Rdimtools | R | false | true | 2,331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linear_KUDP.R
\name{do.kudp}
\alias{do.kudp}
\title{Kernel-Weighted Unsupervised Discriminant Projection}
\usage{
do.kudp(X, ndim = 2, type = c("proportion", 0.1),
preprocess = c("center", "scale", "cscale", "decorrelate", "whiten"),
band... |
###
### source("http://faculty.washington.edu/dbp/s519/R-code/innovations-algorithm.R")
###
### given a vector acvf of length h+1 with values of an autocovariance
### function (theoretical or sample) at lags 0, 1, ..., h, the function
### innovations.algorithm runs the innovations algorithm n.max times,
### where n.max... | /innovations-algorithm.r | no_license | sinbaski/cake | R | false | false | 1,740 | r | ###
### source("http://faculty.washington.edu/dbp/s519/R-code/innovations-algorithm.R")
###
### given a vector acvf of length h+1 with values of an autocovariance
### function (theoretical or sample) at lags 0, 1, ..., h, the function
### innovations.algorithm runs the innovations algorithm n.max times,
### where n.max... |
\name{FEVdec}
\alias{FEVdec}
\title{Forecast Error Variance Decomposition
}
\description{Computes the forecast error variance decomposition of a
VARMA model
}
\usage{
FEVdec(Phi, Theta, Sig, lag = 4)
}
\arguments{
\item{Phi}{VAR coefficient matrices in the form Phi=[Phi1, Phi2, ..., Phip],
a k-by-kp mat... | /man/FEVdec.Rd | no_license | cran/MTS | R | false | false | 1,210 | rd | \name{FEVdec}
\alias{FEVdec}
\title{Forecast Error Variance Decomposition
}
\description{Computes the forecast error variance decomposition of a
VARMA model
}
\usage{
FEVdec(Phi, Theta, Sig, lag = 4)
}
\arguments{
\item{Phi}{VAR coefficient matrices in the form Phi=[Phi1, Phi2, ..., Phip],
a k-by-kp mat... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | /r/R/enums.R | permissive | mcassels/arrow | R | false | false | 2,722 | r | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
zipCodes <- zipCodes[, -ncol(zipCodes)]
zipCodesSearch <- zipCodes[order(zipCodes["Postal.Code"]),1:5]
zipCodesSearch <- do.call(paste ,zipCodesSearch)
zipCodesSearch <- zipCodesSearch[-1]
colorListLinesMarkers <- c("#3488EE", "#F3B627", "#165F16", "#D42F2F", "#CE2FD4")
colorListBars <- c("#AAB0B4", "#292B29")
| /outsourced/others.R | no_license | michaeljohannesmeier/Codegrundlage | R | false | false | 313 | r | zipCodes <- zipCodes[, -ncol(zipCodes)]
zipCodesSearch <- zipCodes[order(zipCodes["Postal.Code"]),1:5]
zipCodesSearch <- do.call(paste ,zipCodesSearch)
zipCodesSearch <- zipCodesSearch[-1]
colorListLinesMarkers <- c("#3488EE", "#F3B627", "#165F16", "#D42F2F", "#CE2FD4")
colorListBars <- c("#AAB0B4", "#292B29")
|
test3Problem1 <- function()
{
MyData <- read.csv(file="test3data.csv", header=TRUE, sep=",")
june <- subset(MyData, Month == 6)
even <- subset(june, Day%%2 == 0)
wind <- subset(even, Wind>9)
ans <- mean(wind$Wind,na.rm = TRUE)
ans
}
test3Problem2 <- function()
{
MyData <- read.csv(file="test3data.csv", h... | /R/Test2/Test3Code.R | no_license | btirumala1219/ProgLang-4020 | R | false | false | 1,834 | r | test3Problem1 <- function()
{
MyData <- read.csv(file="test3data.csv", header=TRUE, sep=",")
june <- subset(MyData, Month == 6)
even <- subset(june, Day%%2 == 0)
wind <- subset(even, Wind>9)
ans <- mean(wind$Wind,na.rm = TRUE)
ans
}
test3Problem2 <- function()
{
MyData <- read.csv(file="test3data.csv", h... |
library(tidyverse)
library(sbmR)
edges <- clements_pollinators %>% sample_n(100)
nodes <- bind_rows(tibble(id = edges$pollinator,
type = "pollinator"),
tibble(id = edges$flower,
type = "flower")) %>%
arrange(type)
types <- count(nodes, type, n... | /R/tests/setup_for_rcpp_input.R | no_license | tbilab/sbmrcpp | R | false | false | 337 | r | library(tidyverse)
library(sbmR)
edges <- clements_pollinators %>% sample_n(100)
nodes <- bind_rows(tibble(id = edges$pollinator,
type = "pollinator"),
tibble(id = edges$flower,
type = "flower")) %>%
arrange(type)
types <- count(nodes, type, n... |
library("rkclass")
context("Test S3 method functions for class 'kclass'.")
#Methods to test:
#print.kclass [DONE]
#print.summary.kclass
#summary.kclass [DONE]
#hatvalues.kclass
#vcov.kclass [DONE]
#anova.kclass
#model.matrix.kclass
#predict.kclass [DONE]
#fitted.kclass [DONE]
#Data and model specification for tests
d... | /tests/testthat/test_s3_methods.R | no_license | potterzot/rkclass | R | false | false | 2,819 | r | library("rkclass")
context("Test S3 method functions for class 'kclass'.")
#Methods to test:
#print.kclass [DONE]
#print.summary.kclass
#summary.kclass [DONE]
#hatvalues.kclass
#vcov.kclass [DONE]
#anova.kclass
#model.matrix.kclass
#predict.kclass [DONE]
#fitted.kclass [DONE]
#Data and model specification for tests
d... |
#' PCA and Pearson correlation plots from counts table
#'
#' Basic comparison of CRISPR screen counts: PCA and Pearson correlation plots
#'
#' @param countsTable input matrix containing normalized gRNA counts with gRNA ids as row names
#' @param metadata input dataframe containing sample names and other identifiers or ... | /R/count.pca_function.R | no_license | christensensm/COMPOSE | R | false | false | 16,285 | r | #' PCA and Pearson correlation plots from counts table
#'
#' Basic comparison of CRISPR screen counts: PCA and Pearson correlation plots
#'
#' @param countsTable input matrix containing normalized gRNA counts with gRNA ids as row names
#' @param metadata input dataframe containing sample names and other identifiers or ... |
#Set working directery
setwd("C:/Users/matr06581/Desktop/Data Analysis")
#download file
if (!file.exists("data.zip")) {
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="data.zip")
unzip("data.zip")
}
#clean data
data = read.csv("ho... | /plot1.r | no_license | somethinggaby/ExData_Plotting1 | R | false | false | 1,016 | r | #Set working directery
setwd("C:/Users/matr06581/Desktop/Data Analysis")
#download file
if (!file.exists("data.zip")) {
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="data.zip")
unzip("data.zip")
}
#clean data
data = read.csv("ho... |
## This file contains two functions that are used to create a special object that stores a matrix and caches its inverse.
## This function creates a special object that allows caching the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s ... | /cachematrix.R | no_license | pawef/ProgrammingAssignment2 | R | false | false | 1,023 | r | ## This file contains two functions that are used to create a special object that stores a matrix and caches its inverse.
## This function creates a special object that allows caching the inverse of a matrix.
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s ... |
/beeプロット.R | no_license | ide-gif/FuntionalConnectivity | R | false | false | 919 | r | ||
lst.data<-read.csv("Data/compiled_data_0324.csv")
library(GGally)
library(tidyverse)
library(mgcv)
train.lst<-lst.data%>%filter(Testing=="Training")
test.lst<-lst.data%>%filter(Testing=="Test")
##Initial exploration
data.selected<-lst.data%>%select(LST_mean,BD, X.canopy,
Income,river.... | /LST_second_exploration.R | permissive | EKROFT/urban_sprawl_stats | R | false | false | 7,138 | r | lst.data<-read.csv("Data/compiled_data_0324.csv")
library(GGally)
library(tidyverse)
library(mgcv)
train.lst<-lst.data%>%filter(Testing=="Training")
test.lst<-lst.data%>%filter(Testing=="Test")
##Initial exploration
data.selected<-lst.data%>%select(LST_mean,BD, X.canopy,
Income,river.... |
## 1) makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 2) cacheSolve: This function computes the inverse of the special "matrix" returned by
## makeCacheMatrix above. If the inverse has already been calculated (and the matrix has
## not changed), then the cachesolve sho... | /cachematrix.R | no_license | adee-hemann/ProgrammingAssignment2 | R | false | false | 1,164 | r | ## 1) makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
## 2) cacheSolve: This function computes the inverse of the special "matrix" returned by
## makeCacheMatrix above. If the inverse has already been calculated (and the matrix has
## not changed), then the cachesolve sho... |
library(dplyr)
options(digits=3)
as.numeric.factor <- function(x) {as.numeric(levels(x))[x]}
source("../../ProcessASC.R")
people = c(19,20,21,22,23,25,26,27,30, 34)
rDat = data.frame(observer=numeric(), trial=numeric(), targLoc=numeric(), distLoc=numeric(), targDiscrim=numeric(), thoughtNoAttCap=numeric())
fDat = da... | /Experiments/1_Original Experiment/analysis/1_initProc.R | no_license | Nian-Jingqing/AttCapAwareness | R | false | false | 5,515 | r |
library(dplyr)
options(digits=3)
as.numeric.factor <- function(x) {as.numeric(levels(x))[x]}
source("../../ProcessASC.R")
people = c(19,20,21,22,23,25,26,27,30, 34)
rDat = data.frame(observer=numeric(), trial=numeric(), targLoc=numeric(), distLoc=numeric(), targDiscrim=numeric(), thoughtNoAttCap=numeric())
fDat = da... |
#' Returns the future value of a single payment and annuity payments (fv)
#'
#' @param rate The interest rate per period. Default is zero. Must be entered as decimal.
#' @param inflation The inflation forcast. Default is zero. Must be entered as decimal.
#' @param nper The total number of payment periods. Default i... | /R/fv.R | no_license | eaoestergaard/UNPIE | R | false | false | 3,040 | r | #' Returns the future value of a single payment and annuity payments (fv)
#'
#' @param rate The interest rate per period. Default is zero. Must be entered as decimal.
#' @param inflation The inflation forcast. Default is zero. Must be entered as decimal.
#' @param nper The total number of payment periods. Default i... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/drop_history.R
\name{drop_history}
\alias{drop_history}
\title{Obtains metadata for all available revisions of a file, including the current
revision.}
\usage{
drop_history(path = NULL, dtoken = get_dropbox_token())
}
\arguments{
\ite... | /man/drop_history.Rd | no_license | rosseji/rdrop2 | R | false | false | 1,186 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/drop_history.R
\name{drop_history}
\alias{drop_history}
\title{Obtains metadata for all available revisions of a file, including the current
revision.}
\usage{
drop_history(path = NULL, dtoken = get_dropbox_token())
}
\arguments{
\ite... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/large_intestine.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('./Model/EN/ReliefF/large_intestine/large_in... | /Model/EN/ReliefF/large_intestine/large_intestine_015.R | no_license | leon1003/QSMART | R | false | false | 379 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/large_intestine.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('./Model/EN/ReliefF/large_intestine/large_in... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
G_update <- function(y, X, beta, mu, tau) {
.Call('_LSBP_G_update', PACKAGE = 'LSBP', y, X, beta, mu, tau)
}
G_pois_update <- function(y, X, beta, tau) {
.Call('_LSBP_G_pois_update', P... | /R/RcppExports.R | permissive | danieledurante/LSBP | R | false | false | 2,483 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
G_update <- function(y, X, beta, mu, tau) {
.Call('_LSBP_G_update', PACKAGE = 'LSBP', y, X, beta, mu, tau)
}
G_pois_update <- function(y, X, beta, tau) {
.Call('_LSBP_G_pois_update', P... |
#' Evaluate input and return all details of evaluation.
#'
#' Compare to \code{\link{eval}}, \code{evaluate} captures all of the
#' information necessary to recreate the output as if you had copied and pasted
#' the code into a R terminal. It captures messages, warnings, errors and
#' output, all correctly interleaved ... | /R/eval.r | no_license | badbye/evaluate | R | false | false | 7,384 | r | #' Evaluate input and return all details of evaluation.
#'
#' Compare to \code{\link{eval}}, \code{evaluate} captures all of the
#' information necessary to recreate the output as if you had copied and pasted
#' the code into a R terminal. It captures messages, warnings, errors and
#' output, all correctly interleaved ... |
#' Stratify operations.
#'
#' \code{stratify} stratifies operations.
#'
#' @param population tbl with grouping (metadata) and observation variables.
#' @param strata optional character vector specifying grouping variables for
#' stratification.
#' @param sample tbl with the same structure as \code{population}. This i... | /R/stratify.R | permissive | cytomining/cytominer | R | false | false | 2,104 | r | #' Stratify operations.
#'
#' \code{stratify} stratifies operations.
#'
#' @param population tbl with grouping (metadata) and observation variables.
#' @param strata optional character vector specifying grouping variables for
#' stratification.
#' @param sample tbl with the same structure as \code{population}. This i... |
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists("./data/house_data.zip")){download.file(fileUrl, "./data/house_data.zip", method = "curl")}
if(!file.exists("./data/household_power_consumption.txt")){unzip... | /plot1.R | no_license | krozic/ExData_Plotting1 | R | false | false | 1,193 | r | if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if(!file.exists("./data/house_data.zip")){download.file(fileUrl, "./data/house_data.zip", method = "curl")}
if(!file.exists("./data/household_power_consumption.txt")){unzip... |
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#'@title Check the Validity of Open Location Codes
#'@description These functions allow a useR to check whether OLCs they've
#'been provided are valid or not. \code{valid_short} identifies whether
#'a vector of... | /R/RcppExports.R | permissive | Ironholds/olctools | R | false | false | 5,477 | r | # This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#'@title Check the Validity of Open Location Codes
#'@description These functions allow a useR to check whether OLCs they've
#'been provided are valid or not. \code{valid_short} identifies whether
#'a vector of... |
#' append replace list
#'
#' merge multiple lists with replacement
#'
#' @param list0 the list to append to (w/ replacement)
#' @param \dots additional lists to add to or replace elements in list0
#' @return the merged list with later elements in \dots replacing earlier ones
#' @details
#' order matters for ... argumen... | /R/render-utils.R | permissive | berdaniera/meddle | R | false | false | 1,127 | r | #' append replace list
#'
#' merge multiple lists with replacement
#'
#' @param list0 the list to append to (w/ replacement)
#' @param \dots additional lists to add to or replace elements in list0
#' @return the merged list with later elements in \dots replacing earlier ones
#' @details
#' order matters for ... argumen... |
library(lme4)
library(nlme)
library(multcomp)
data = scan("errors.txt")
errors = matrix(data,byrow=T,ncol=4)
Model = factor(errors[,1])
PCA = factor(errors[,2])
Split = factor(errors[,3])
Error = errors[,4]
summary(lme(Error~Model*PCA,random=~1|Split))
summary(glht(lmer(Error~Model*PCA+(1|Split)),linfct=mcp(M... | /milestone_4/comparison_test.r | no_license | vulich/517ApplicationProject | R | false | false | 409 | r | library(lme4)
library(nlme)
library(multcomp)
data = scan("errors.txt")
errors = matrix(data,byrow=T,ncol=4)
Model = factor(errors[,1])
PCA = factor(errors[,2])
Split = factor(errors[,3])
Error = errors[,4]
summary(lme(Error~Model*PCA,random=~1|Split))
summary(glht(lmer(Error~Model*PCA+(1|Split)),linfct=mcp(M... |
# Load packages ----------------------------------------------------------------
library(tidyverse)
library(gt)
# Source auxiliary R files -----------------------------------------------------
source("R/functions.R")
# Analysis ---------------------------------------------------------------------
data <- read_csv("... | /extension-subfolder-intermediate-script/script/02_analysis.R | permissive | GiuseppeTT/structured-examples | R | false | false | 1,013 | r | # Load packages ----------------------------------------------------------------
library(tidyverse)
library(gt)
# Source auxiliary R files -----------------------------------------------------
source("R/functions.R")
# Analysis ---------------------------------------------------------------------
data <- read_csv("... |
# Skip if no internet connection
skip_if_net_down <- function(){
if(has_internet()){
return()
}
testthat::skip("No internet")
}
| /tests/testthat/helper-rtdd.R | no_license | rywhale/rtdd | R | false | false | 138 | r | # Skip if no internet connection
skip_if_net_down <- function(){
if(has_internet()){
return()
}
testthat::skip("No internet")
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{replace_na_with}
\alias{replace_na_with}
\title{Replace NA}
\usage{
replace_na_with(data, var_name, with)
}
\arguments{
\item{data}{A dataframe}
\item{var_name}{Name of variable where NAs are replaced}
\item{with}... | /man/replace_na_with.Rd | no_license | rolkra/explore | R | false | true | 531 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{replace_na_with}
\alias{replace_na_with}
\title{Replace NA}
\usage{
replace_na_with(data, var_name, with)
}
\arguments{
\item{data}{A dataframe}
\item{var_name}{Name of variable where NAs are replaced}
\item{with}... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/lung_other.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="mse",alpha=0.45,family="gaussian",standardize=FALSE)
sink('./lung_other_054.txt',append=... | /Model/EN/AvgRank/lung_other/lung_other_054.R | no_license | esbgkannan/QSMART | R | false | false | 355 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/lung_other.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="mse",alpha=0.45,family="gaussian",standardize=FALSE)
sink('./lung_other_054.txt',append=... |
library(ggplot2)
plot_hotel_freq <- function(df, title) {
hotel_frequencies_table = table(df$hotel_id)
hotel_frequencies_df = as.data.frame(hotel_frequencies_table)
colnames(hotel_frequencies_df)[1] <- "Hotels"
pl <- ggplot(hotel_frequencies_df, aes(Hotels, Freq))
pl <- pl + geom_point(aes(size=3))
pl... | /project/data_visualization.r | no_license | kircm/ga_data_science | R | false | false | 3,126 | r |
library(ggplot2)
plot_hotel_freq <- function(df, title) {
hotel_frequencies_table = table(df$hotel_id)
hotel_frequencies_df = as.data.frame(hotel_frequencies_table)
colnames(hotel_frequencies_df)[1] <- "Hotels"
pl <- ggplot(hotel_frequencies_df, aes(Hotels, Freq))
pl <- pl + geom_point(aes(size=3))
pl... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seurat_wrapper.R
\name{object_ref}
\alias{object_ref}
\title{Function to convert labelled object to avg expression matrix}
\usage{
object_ref(
input,
cluster_col = NULL,
var_genes_only = FALSE,
assay_name = NULL,
method = "mean",
... | /man/object_ref.Rd | permissive | sami5001/clustifyr | R | false | true | 1,256 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seurat_wrapper.R
\name{object_ref}
\alias{object_ref}
\title{Function to convert labelled object to avg expression matrix}
\usage{
object_ref(
input,
cluster_col = NULL,
var_genes_only = FALSE,
assay_name = NULL,
method = "mean",
... |
library(tidyverse)
df = read.csv("./Data/BioLog_Plate_Data.csv")
glimpse(df)
?mapvalues
?plyr::mapvalues()
geoff = c("geoff", "goeff", "geoffreey")
plyr::mapvalues(geoff, from = geoff, to = rep("Geoff", 3))
# write a command the subsets the BioLog data to Clear_Creek samples, with dilution of 0.01, and only "Glycoge... | /Class_Practice/BioLog_Challenge.R | no_license | jzushi/Data_Course_ZUSHI | R | false | false | 2,962 | r | library(tidyverse)
df = read.csv("./Data/BioLog_Plate_Data.csv")
glimpse(df)
?mapvalues
?plyr::mapvalues()
geoff = c("geoff", "goeff", "geoffreey")
plyr::mapvalues(geoff, from = geoff, to = rep("Geoff", 3))
# write a command the subsets the BioLog data to Clear_Creek samples, with dilution of 0.01, and only "Glycoge... |
#' Set global \code{dat_dir}
#'
#' @inheritParams load_expts
set_dat_dir <- function(dat_dir = NULL) {
if (is.null(dat_dir)) dat_dir <- get_gl_dat_dir()
if (!fs::dir_exists(dat_dir)) {
new_dat_dir <- fs::path_expand_r(dat_dir)
new_dat_dir2 <- fs::path_expand(dat_dir)
if (fs::dir_exists(new_dat_... | /R/global.R | permissive | sailfish009/proteoQ | R | false | false | 983 | r | #' Set global \code{dat_dir}
#'
#' @inheritParams load_expts
set_dat_dir <- function(dat_dir = NULL) {
if (is.null(dat_dir)) dat_dir <- get_gl_dat_dir()
if (!fs::dir_exists(dat_dir)) {
new_dat_dir <- fs::path_expand_r(dat_dir)
new_dat_dir2 <- fs::path_expand(dat_dir)
if (fs::dir_exists(new_dat_... |
#setting up working environment and load libraries
library(envimaR)
root_folder = alternativeEnvi(root_folder = "~/edu/mpg-envinsys-plygrnd",
alt_env_id = "COMPUTERNAME",
alt_env_value = "PCRZP",
alt_env_root_folder = "F:\\BEN\\... | /src/1_09_Deriving_indizes.R | no_license | BeNrn/RemoteSensing_Repository | R | false | false | 1,910 | r | #setting up working environment and load libraries
library(envimaR)
root_folder = alternativeEnvi(root_folder = "~/edu/mpg-envinsys-plygrnd",
alt_env_id = "COMPUTERNAME",
alt_env_value = "PCRZP",
alt_env_root_folder = "F:\\BEN\\... |
This is report that answer questions below
==========================================
'''{r}
data <- read.csv("activity.csv", sep=",", dec = ".")
head(data)
hist(data)
''' | /PA1_template.R | no_license | bkhodjaev/RepData_PeerAssessment1 | R | false | false | 177 | r | This is report that answer questions below
==========================================
'''{r}
data <- read.csv("activity.csv", sep=",", dec = ".")
head(data)
hist(data)
''' |
#' Regression Models in Clinical Trials
#'
#' @description Run ITT and PP regression models.
#'
#' @details
#' Run Intention To Treat (ITT) and Per-Protocol (PP) regression models on the specified
#' data with the specified model. Results are returned for both models and optionally a
#' Stargazer table is produced in ... | /R/regress_ctru.R | no_license | sal-medstats/ctru | R | false | false | 3,183 | r | #' Regression Models in Clinical Trials
#'
#' @description Run ITT and PP regression models.
#'
#' @details
#' Run Intention To Treat (ITT) and Per-Protocol (PP) regression models on the specified
#' data with the specified model. Results are returned for both models and optionally a
#' Stargazer table is produced in ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dingo.R
\name{fast.scoring.boot}
\alias{fast.scoring.boot}
\title{recompute differential edge scores}
\usage{
fast.scoring.boot(stddat, z, Omega, A, B, boot.B = 100, verbose = T,
threads)
}
\description{
recompute differential edge scores
}... | /man/fast.scoring.boot.Rd | no_license | singha53-zz/amritr | R | false | true | 321 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dingo.R
\name{fast.scoring.boot}
\alias{fast.scoring.boot}
\title{recompute differential edge scores}
\usage{
fast.scoring.boot(stddat, z, Omega, A, B, boot.B = 100, verbose = T,
threads)
}
\description{
recompute differential edge scores
}... |
.theme_ticksoutside <- function(x){
theme(axis.tern.ticks.outside=x)
}
#' Place Ticks Inside or Outside
#'
#' \code{theme_ticksoutside} is a function that ensures the ticks are placed OUTSIDE of the plot area, whereas,
#' \code{theme_ticksinside} is a function that ensures the ticks are placed INSIDE of the plot ... | /R/theme-ticksoutside.R | no_license | timelyportfolio/ggtern | R | false | false | 727 | r | .theme_ticksoutside <- function(x){
theme(axis.tern.ticks.outside=x)
}
#' Place Ticks Inside or Outside
#'
#' \code{theme_ticksoutside} is a function that ensures the ticks are placed OUTSIDE of the plot area, whereas,
#' \code{theme_ticksinside} is a function that ensures the ticks are placed INSIDE of the plot ... |
library('adk')
dyn.load('simulator1.so')
source('simulator1n.r')
# Simulated data
T <- 8
r1 <- 0
r2 <- 0.6
d1 <- 0
d2 <- 0.3
v <- 0
w <- 0
N <- 100
#mcell <- as.matrix(read.csv('data/simcella.csv'))
#mcell <- simulator1n(T, r1, r2, d1, d2, v, w, N)
Nsample = 10000
.lenr2 <- 101
.lend2 <- 101
x <- seq(Nsample)
pvalu... | /problem/SingleCellGrow/MethodsPerformance/slowmodel/gridsearch/adk/basic.r | no_license | hydrays/sspat | R | false | false | 3,082 | r | library('adk')
dyn.load('simulator1.so')
source('simulator1n.r')
# Simulated data
T <- 8
r1 <- 0
r2 <- 0.6
d1 <- 0
d2 <- 0.3
v <- 0
w <- 0
N <- 100
#mcell <- as.matrix(read.csv('data/simcella.csv'))
#mcell <- simulator1n(T, r1, r2, d1, d2, v, w, N)
Nsample = 10000
.lenr2 <- 101
.lend2 <- 101
x <- seq(Nsample)
pvalu... |
##############################
## Morpho-eco-geno relationships
##
## Matt Brachmann (PhDMattyB)
##
## 2021-03-09
##
##############################
# install packages --------------------------------------------------------
library(patchwork)
library(lme4)
library(tidyverse)
# Read in the data -----------------------... | /summary_stats.R | no_license | PhDMattyB/Icelandic_Charr_EcoEvo1 | R | false | false | 2,951 | r | ##############################
## Morpho-eco-geno relationships
##
## Matt Brachmann (PhDMattyB)
##
## 2021-03-09
##
##############################
# install packages --------------------------------------------------------
library(patchwork)
library(lme4)
library(tidyverse)
# Read in the data -----------------------... |
#' Search BOLD for taxonomy data by BOLD ID.
#'
#' @export
#' @param id (integer) One or more BOLD taxonomic identifiers. required.
#' @param dataTypes (character) Specifies the datatypes that will be
#' returned. 'all' returns all data. 'basic' returns basic taxon information.
#' 'images' returns specimen images.
#'... | /R/bold_tax_id.R | permissive | GhostsOfHiroshima/bold | R | false | false | 2,148 | r | #' Search BOLD for taxonomy data by BOLD ID.
#'
#' @export
#' @param id (integer) One or more BOLD taxonomic identifiers. required.
#' @param dataTypes (character) Specifies the datatypes that will be
#' returned. 'all' returns all data. 'basic' returns basic taxon information.
#' 'images' returns specimen images.
#'... |
A <- rnorm(120)
hist(A)
nclassi <- round(sqrt(length(A)))
classi <- seq(min(A), max(A), length=nclassi+1)
hist(A, breaks=classi)
par(mfrow=c(1,2))
hist(A, breaks = classi ,probability = TRUE, col = "gray")
lines(density(A), col= "red", lwd=2)
boxplot(A, main="boxplot of A", col = "grey")
library("MASS")
data("geyser... | /IntroR/StatisticaR.R | no_license | FreeEagle76/R-Coding | R | false | false | 2,148 | r | A <- rnorm(120)
hist(A)
nclassi <- round(sqrt(length(A)))
classi <- seq(min(A), max(A), length=nclassi+1)
hist(A, breaks=classi)
par(mfrow=c(1,2))
hist(A, breaks = classi ,probability = TRUE, col = "gray")
lines(density(A), col= "red", lwd=2)
boxplot(A, main="boxplot of A", col = "grey")
library("MASS")
data("geyser... |
library(flowCore)
library(flowStats)
library(flowViz)
f <- flowCore::read.flowSet(files=c('~/dunwich/FCS.Tony/FCS.repeats/CB00396E/day1/0U.fcs','~/dunwich/FCS.Tony/FCS.repeats/CB00396E/day2/0U.fcs'))
wf <- workFlow(f)
tl <- transformList(colnames(f)[c(9,12)], logicleTransform(), transformationId="lt")
add(wf, tl)
pa... | /IL2/bin/normalisation/normalisation-example.R | no_license | pontikos/PhD_Projects | R | false | false | 633 | r | library(flowCore)
library(flowStats)
library(flowViz)
f <- flowCore::read.flowSet(files=c('~/dunwich/FCS.Tony/FCS.repeats/CB00396E/day1/0U.fcs','~/dunwich/FCS.Tony/FCS.repeats/CB00396E/day2/0U.fcs'))
wf <- workFlow(f)
tl <- transformList(colnames(f)[c(9,12)], logicleTransform(), transformationId="lt")
add(wf, tl)
pa... |
library(psychometric)
### Name: CIz
### Title: Confidence Interval for Fisher z'
### Aliases: CIz
### Keywords: htest models
### ** Examples
# From ch. 2 in Cohen et al (2003)
zp <- r2z(.657)
CIz(zp, 15)
| /data/genthat_extracted_code/psychometric/examples/CIz.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 211 | r | library(psychometric)
### Name: CIz
### Title: Confidence Interval for Fisher z'
### Aliases: CIz
### Keywords: htest models
### ** Examples
# From ch. 2 in Cohen et al (2003)
zp <- r2z(.657)
CIz(zp, 15)
|
`cusp.nc` <-
Vectorize(function (alpha, beta, mom.order = 0, ...)
tryCatch(integrate(function(x) x^mom.order * exp(alpha * x +
beta * x^2/2 - x^4/4), -Inf, Inf, ...)$value, error = function(e) Inf))
| /R/cusp.nc.R | no_license | cran/cusp | R | false | false | 206 | r | `cusp.nc` <-
Vectorize(function (alpha, beta, mom.order = 0, ...)
tryCatch(integrate(function(x) x^mom.order * exp(alpha * x +
beta * x^2/2 - x^4/4), -Inf, Inf, ...)$value, error = function(e) Inf))
|
library(magrittr)
library(dplyr)
library(data.table)
library(ggplot2)
library(DT)
library(shiny)
library(lubridate)
library(weathermetrics)
load("./Data/data-2017_updated-with-fitted-May8.RData")
# services <- df$Service %>% unique
buildingNames = df$Name %>% unique %>% sort
## ## Variables for trying code without... | /app(2) (2).R | no_license | franuentes/Bin-Models-Shiny-App | R | false | false | 38,727 | r |
library(magrittr)
library(dplyr)
library(data.table)
library(ggplot2)
library(DT)
library(shiny)
library(lubridate)
library(weathermetrics)
load("./Data/data-2017_updated-with-fitted-May8.RData")
# services <- df$Service %>% unique
buildingNames = df$Name %>% unique %>% sort
## ## Variables for trying code without... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/marketplacecatalog_operations.R
\name{marketplacecatalog_describe_change_set}
\alias{marketplacecatalog_describe_change_set}
\title{Provides information about a given change set}
\usage{
marketplacecatalog_describe_change_set(Catalog, ChangeS... | /cran/paws.cost.management/man/marketplacecatalog_describe_change_set.Rd | permissive | paws-r/paws | R | false | true | 831 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/marketplacecatalog_operations.R
\name{marketplacecatalog_describe_change_set}
\alias{marketplacecatalog_describe_change_set}
\title{Provides information about a given change set}
\usage{
marketplacecatalog_describe_change_set(Catalog, ChangeS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.