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 |
|---|---|---|---|---|---|---|---|---|---|
## SimilaR package for R
## Copyright (C) 2018-2020 by M. Bartoszuk, M. Gagolewski
##
## 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, either version 3 of the License, or
## ... | /R/similar-package.R | no_license | bartoszukm/SimilaR | R | false | false | 1,164 | r | ## SimilaR package for R
## Copyright (C) 2018-2020 by M. Bartoszuk, M. Gagolewski
##
## 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, either version 3 of the License, or
## ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SS_VCM.R
\name{plot_diagnostic_gamma}
\alias{plot_diagnostic_gamma}
\title{Function to plot convergence diagnostic of variable marginal posterior inclusion probabilities}
\usage{
plot_diagnostic_gamma(object)
}
\arguments{
\item{object}{list ... | /man/plot_diagnostic_gamma.Rd | no_license | Heuclin/VCGSS | R | false | true | 4,516 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SS_VCM.R
\name{plot_diagnostic_gamma}
\alias{plot_diagnostic_gamma}
\title{Function to plot convergence diagnostic of variable marginal posterior inclusion probabilities}
\usage{
plot_diagnostic_gamma(object)
}
\arguments{
\item{object}{list ... |
# Code generated by rgnonomic/rgo; DO NOT EDIT.
#' @useDynLib sort
#' search_float64s
#'
#' SearchFloat64s searches for x in a sorted slice of float64s and returns the index
#' as specified by Search. The return value is the index to insert x if x is not
#' present (it could be len(a)).
#' The slice must be sorted in... | /examples/sort/R/sort.R | permissive | pombredanne/rgo | R | false | false | 3,240 | r | # Code generated by rgnonomic/rgo; DO NOT EDIT.
#' @useDynLib sort
#' search_float64s
#'
#' SearchFloat64s searches for x in a sorted slice of float64s and returns the index
#' as specified by Search. The return value is the index to insert x if x is not
#' present (it could be len(a)).
#' The slice must be sorted in... |
## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
library(knitr)
library(PersonAlytics)
doEval <- FALSE
depends <- function()
{
d <- scan('../DESCRIPTION', what = 'character', sep='\n')
wd <- which( grepl("*Depends*", d) )
wr <- which( grepl("RoxygenN... | /devdoc/PersonAlytics_Users_Guide.R | no_license | ICTatRTI/PersonAlytics | R | false | false | 8,779 | r | ## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
library(knitr)
library(PersonAlytics)
doEval <- FALSE
depends <- function()
{
d <- scan('../DESCRIPTION', what = 'character', sep='\n')
wd <- which( grepl("*Depends*", d) )
wr <- which( grepl("RoxygenN... |
swirl()
head(airquality)
range(airquality$Ozone,na.rm=TRUE)
hist(airquality$Ozone)
boxplot(airquality$Month)
table(airquality$Month)
boxplot(Ozone~Month,airquality)
boxplot(Ozone~Month,airquality,xlab="Month",ylab="Ozone (ppb)",col.axis="blue",col.lab="red")
title(main="Ozone and Wind in New York City")
with(airqualit... | /Exploratory Data Analysis/week1/swirl Lesson 5 Base Plotting System.R | no_license | dexterwang/DataScienceJohnHopkinsUni | R | false | false | 1,839 | r |
swirl()
head(airquality)
range(airquality$Ozone,na.rm=TRUE)
hist(airquality$Ozone)
boxplot(airquality$Month)
table(airquality$Month)
boxplot(Ozone~Month,airquality)
boxplot(Ozone~Month,airquality,xlab="Month",ylab="Ozone (ppb)",col.axis="blue",col.lab="red")
title(main="Ozone and Wind in New York City")
with(airqualit... |
\name{ArgentinaCPI}
\alias{ArgentinaCPI}
\title{Consumer Price Index in Argentina}
\description{
Time series of consumer price index (CPI) in Argentina (index with 1969(4) = 1).
}
\usage{data("ArgentinaCPI")}
\format{
A quarterly univariate time series from 1970(1) to 1989(4).
}
\source{
Online complements to Franses... | /man/ArgentinaCPI.Rd | no_license | arubhardwaj/AER | R | false | false | 1,026 | rd | \name{ArgentinaCPI}
\alias{ArgentinaCPI}
\title{Consumer Price Index in Argentina}
\description{
Time series of consumer price index (CPI) in Argentina (index with 1969(4) = 1).
}
\usage{data("ArgentinaCPI")}
\format{
A quarterly univariate time series from 1970(1) to 1989(4).
}
\source{
Online complements to Franses... |
illu_ped.raw<-function(fnm, sep='\t' ,snpc=snp_name, n=NULL, p=NULL, subc=labid,getKey=TRUE){
### Read data
snpdata<-read.table(file=fnm, header=TRUE, sep='\t', stringsAsFactors=FALSE )
### identify columns with snps and subjects
snpc<- which(colnames(snpdata)==snpc)
subc<- which(colnames(snpdata)==subc... | /illumina2ped.r | no_license | anainesvs/UtilsTiger | R | false | false | 2,135 | r | illu_ped.raw<-function(fnm, sep='\t' ,snpc=snp_name, n=NULL, p=NULL, subc=labid,getKey=TRUE){
### Read data
snpdata<-read.table(file=fnm, header=TRUE, sep='\t', stringsAsFactors=FALSE )
### identify columns with snps and subjects
snpc<- which(colnames(snpdata)==snpc)
subc<- which(colnames(snpdata)==subc... |
#WAP to print the highest of three numbers.
{
a = as.integer(readline(prompt="Enter 1st number: "))
b = as.integer(readline(prompt="Enter 2nd number: "))
c = as.integer(readline(prompt="Enter 3rd number: "))
if (a>b && a>c){
print(paste("Highest is :",a))
}
else if (b>c){
print(paste("Highest is :",b))
}
... | /lab1/assignment1_1.R | no_license | Namrata3110/Data_Analytics_Lab | R | false | false | 371 | r | #WAP to print the highest of three numbers.
{
a = as.integer(readline(prompt="Enter 1st number: "))
b = as.integer(readline(prompt="Enter 2nd number: "))
c = as.integer(readline(prompt="Enter 3rd number: "))
if (a>b && a>c){
print(paste("Highest is :",a))
}
else if (b>c){
print(paste("Highest is :",b))
}
... |
library(VAST)
library(TMB)
library(dplyr)
library(tidyr)
library(reshape)
library(mapdata)
library(ggplot2)
# Directories ----
comp.name <- c("mkapur",'maia kapur')[2]
RootFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/runs/")
DataFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/data/" ) #pas... | /R/deprecated_code/draft2_v7.R | no_license | mkapur/sab-idx | R | false | false | 20,918 | r | library(VAST)
library(TMB)
library(dplyr)
library(tidyr)
library(reshape)
library(mapdata)
library(ggplot2)
# Directories ----
comp.name <- c("mkapur",'maia kapur')[2]
RootFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/runs/")
DataFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/data/" ) #pas... |
# Set seed
set.seed(43)
#######################
# Generate bogus adjMat
#######################
bipart <- matrix(rbinom(n = 20, prob = 0.6, size = 1),
nrow = 5, ncol = 4)
# Add row an column names
rownames(bipart) <- letters[1:5]
colnames(bipart) <- LETTERS[1:4]
##########################
# Generate... | /tests/testthat/test-fitKNN.R | permissive | TheoreticalEcosystemEcology/alien | R | false | false | 11,548 | r | # Set seed
set.seed(43)
#######################
# Generate bogus adjMat
#######################
bipart <- matrix(rbinom(n = 20, prob = 0.6, size = 1),
nrow = 5, ncol = 4)
# Add row an column names
rownames(bipart) <- letters[1:5]
colnames(bipart) <- LETTERS[1:4]
##########################
# Generate... |
#' Basic binary operations
#'
#' @param image An image object or pipeline.
#' @param arg Numeric or image argument.
#' @return An updated pipeline.
#'
#' @rdname binary
#' @export add subtract multiply divide remainder mask maximum minimum
add <- function (image, arg) .command(image, "-add", arg)
#' @rdname bina... | /fuzzedpackages/imbibe/R/operations.R | no_license | akhikolla/testpackages | R | false | false | 10,346 | r | #' Basic binary operations
#'
#' @param image An image object or pipeline.
#' @param arg Numeric or image argument.
#' @return An updated pipeline.
#'
#' @rdname binary
#' @export add subtract multiply divide remainder mask maximum minimum
add <- function (image, arg) .command(image, "-add", arg)
#' @rdname bina... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
###############################################################
####### Test for Beta Contraints with Priors for GLM #########
###############################################################
test.Prior... | /h2o-r/tests/testdir_jira/runit_NOPASS_INTERNAL_hex_2022_prior_constraints.R | permissive | h2oai/h2o-3 | R | false | false | 5,613 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
###############################################################
####### Test for Beta Contraints with Priors for GLM #########
###############################################################
test.Prior... |
# Kettis ------------------------------------------------------------------
# 1.5.-31.7.2011 ja 1.5.-31.7.2012.
apiKey <- "04d9592f-c8c0-4c8d-b3c2-50465da8bb47"
# 1.5.-31.7.2011
startDateTime <- "2011-05-01"
endDateTime <- "2011-07-31"
kuusamo.2011 <- get_weather_data(apiKey, startDateTime, endDateTime, "101887")
# ... | /R/kuusamo_data.R | no_license | jlehtoma/fmi-test | R | false | false | 633 | r | # Kettis ------------------------------------------------------------------
# 1.5.-31.7.2011 ja 1.5.-31.7.2012.
apiKey <- "04d9592f-c8c0-4c8d-b3c2-50465da8bb47"
# 1.5.-31.7.2011
startDateTime <- "2011-05-01"
endDateTime <- "2011-07-31"
kuusamo.2011 <- get_weather_data(apiKey, startDateTime, endDateTime, "101887")
# ... |
# Scatterplot - life expectancy (y) v Fertility rate (x) by country
# Categorise by region
df <- read.csv("section 5/DemographicData.csv")
str(df)
summary(df)
head(df)
df$Birth.rate[df$Country.Name=="Angola"]
| /R coursework/udemy/s5_dataframes.R | no_license | timbroderick/R-work | R | false | false | 211 | r | # Scatterplot - life expectancy (y) v Fertility rate (x) by country
# Categorise by region
df <- read.csv("section 5/DemographicData.csv")
str(df)
summary(df)
head(df)
df$Birth.rate[df$Country.Name=="Angola"]
|
## This first line will likely take a few seconds. Be patient!
setwd("/home/ruben/R")
library("ggplot2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## find all SCC entries containing Coal -> rows contains the index positions of SCC entries containing "Coal"
rows_motor <- rowS... | /plot5.R | no_license | ruben-s/ExData_Plotting2 | R | false | false | 1,087 | r | ## This first line will likely take a few seconds. Be patient!
setwd("/home/ruben/R")
library("ggplot2")
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## find all SCC entries containing Coal -> rows contains the index positions of SCC entries containing "Coal"
rows_motor <- rowS... |
x<-c(1,2,3,4,5,6)
sum(x)
var(x)
mean(x)
sqrt(var(x))
sqrt(var(x))/mean(x)
CV<- function(x) sqrt(var(x))/mean(x)
CV(x)
sample(x,replace=T)
CV(sample(x,replace=T))
boot<-numeric(200)
for (i in 1:200) boot[i] <- CV(sample(x,replace=T))
mean(boot)
x<-c(2,3,4,5,6,7)
yoyo check now, jiang bing guo zi lai yi tao
| /exc1.R | no_license | yinanxu/juju | R | false | false | 307 | r | x<-c(1,2,3,4,5,6)
sum(x)
var(x)
mean(x)
sqrt(var(x))
sqrt(var(x))/mean(x)
CV<- function(x) sqrt(var(x))/mean(x)
CV(x)
sample(x,replace=T)
CV(sample(x,replace=T))
boot<-numeric(200)
for (i in 1:200) boot[i] <- CV(sample(x,replace=T))
mean(boot)
x<-c(2,3,4,5,6,7)
yoyo check now, jiang bing guo zi lai yi tao
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colors.R
\docType{data}
\name{rothko_palettes}
\alias{rothko_palettes}
\title{Complete list of palettes}
\format{An object of class \code{list} of length 21.}
\usage{
rothko_palettes
}
\description{
Use \code{\link{rothko_palette}} to constru... | /man/rothko_palettes.Rd | permissive | mmerrittsmith/rothko | R | false | true | 372 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/colors.R
\docType{data}
\name{rothko_palettes}
\alias{rothko_palettes}
\title{Complete list of palettes}
\format{An object of class \code{list} of length 21.}
\usage{
rothko_palettes
}
\description{
Use \code{\link{rothko_palette}} to constru... |
#' Create a function
#'
#' This constructs a new function given it's three components:
#' list of arguments, body code and parent environment.
#'
#' @param args A named list of default arguments. Note that if you
#' want arguments that don't have defaults, you'll need to use the
#' special function [alist], e.g. `... | /R/fn.R | no_license | denrou/rlang | R | false | false | 16,522 | r | #' Create a function
#'
#' This constructs a new function given it's three components:
#' list of arguments, body code and parent environment.
#'
#' @param args A named list of default arguments. Note that if you
#' want arguments that don't have defaults, you'll need to use the
#' special function [alist], e.g. `... |
#' Check for NAs in EEM data
#'
#' @param eem_list eemlist to check
#'
#' @return named character vector with sample names where EEM data contains NAs
#' @export
#'
#' @import dplyr
#' @import tidyr
#' @importFrom eemR eem_names
#' @importFrom stats setNames
#'
#' @examples
#' ### check
eem_is.na <- function(eem_list){... | /R/data_check.R | no_license | MatthiasPucher/staRdom | R | false | false | 21,771 | r | #' Check for NAs in EEM data
#'
#' @param eem_list eemlist to check
#'
#' @return named character vector with sample names where EEM data contains NAs
#' @export
#'
#' @import dplyr
#' @import tidyr
#' @importFrom eemR eem_names
#' @importFrom stats setNames
#'
#' @examples
#' ### check
eem_is.na <- function(eem_list){... |
getwd()
noh <- readLines("noh.txt")
noh
noh_sentence <- sapply(noh, extractNoun, USE.NAMES=F)
noh_sentence
noh_sentence1 <- unlist(noh_sentence)
noh_sentence1 <- Filter(function(x) { nchar(x) >= 2}, noh_sentence1)
noh_sentence1
res <- gsub("\\d+","",noh_sentence1 )
res <- gsub("이번","",res )
res <- gsub("최초","",res ... | /Rlov/wordcloud/noh_wordcloud.R | no_license | korea7030/R | R | false | false | 1,718 | r | getwd()
noh <- readLines("noh.txt")
noh
noh_sentence <- sapply(noh, extractNoun, USE.NAMES=F)
noh_sentence
noh_sentence1 <- unlist(noh_sentence)
noh_sentence1 <- Filter(function(x) { nchar(x) >= 2}, noh_sentence1)
noh_sentence1
res <- gsub("\\d+","",noh_sentence1 )
res <- gsub("이번","",res )
res <- gsub("최초","",res ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/travis-builds.R
\name{travis_get_builds}
\alias{travis_get_builds}
\alias{travis_restart_build}
\alias{travis_cancel_build}
\alias{travis_restart_job}
\alias{travis_cancel_job}
\alias{travis_debug_job}
\title{Travis CI builds}
\usage{
travis_... | /man/travis_get_builds.Rd | no_license | leeper/travis | R | false | true | 2,605 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/travis-builds.R
\name{travis_get_builds}
\alias{travis_get_builds}
\alias{travis_restart_build}
\alias{travis_cancel_build}
\alias{travis_restart_job}
\alias{travis_cancel_job}
\alias{travis_debug_job}
\title{Travis CI builds}
\usage{
travis_... |
# REMAINDER: index in R starts at 1 not 0
# Only takes values of levels each of its salary
dataset = read.csv("Position_Salaries.csv")[2:3]
# Fit Linear regression model
lin_reg = lm(formula = Salary ~ .,
data = dataset)
# Fit polynomial regression
# Second Order dependency
dataset$Level2 = dataset$Lev... | /regression/polynomial-linear-regression/position-salary.R | no_license | adit-prawira/machine-learning | R | false | false | 1,697 | r | # REMAINDER: index in R starts at 1 not 0
# Only takes values of levels each of its salary
dataset = read.csv("Position_Salaries.csv")[2:3]
# Fit Linear regression model
lin_reg = lm(formula = Salary ~ .,
data = dataset)
# Fit polynomial regression
# Second Order dependency
dataset$Level2 = dataset$Lev... |
# some exploration
library(devtools)
# install local versions of icesDATRAS and dtu-aquas DATRAS
install("icesDATRAS")
install("DATRAS/DATRAS")
## from DATRAS/DATRAS/demo/intro.R
require(DATRAS)
## Example file
zipfile <- system.file("exchange","Exchange1.zip", package="DATRAS")
## Step 1. Read exchange data in... | /worksheet.R | no_license | ices-tools-dev/icesDATRAS-dev | R | false | false | 1,423 | r |
# some exploration
library(devtools)
# install local versions of icesDATRAS and dtu-aquas DATRAS
install("icesDATRAS")
install("DATRAS/DATRAS")
## from DATRAS/DATRAS/demo/intro.R
require(DATRAS)
## Example file
zipfile <- system.file("exchange","Exchange1.zip", package="DATRAS")
## Step 1. Read exchange data in... |
packages <- c("data.table", "reshape2")
sapply(packages, require, character.only=TRUE, quietly=TRUE)
path <- getwd()
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url, file.path(path, "dataFiles.zip"))
unzip(zipfile = "dataFiles.zip")
activityLabels <- ... | /run_analysis.R | no_license | eun9716/run_analysis | R | false | false | 2,261 | r | packages <- c("data.table", "reshape2")
sapply(packages, require, character.only=TRUE, quietly=TRUE)
path <- getwd()
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(url, file.path(path, "dataFiles.zip"))
unzip(zipfile = "dataFiles.zip")
activityLabels <- ... |
\name{Flowmatrix}
\alias{Flowmatrix}
\title{
Generates a flow matrix for an inverse (foodweb) problem
}
\description{
Given a linear inverse model food web input list, generates a flow
matrix, that contains the values of flows
}
\usage{
Flowmatrix(lim, web = NULL)
}
\arguments{
\item{lim }{a list that contain... | /LIM/man/Flowmatrix.Rd | no_license | radfordneal/R-package-mods | R | false | false | 960 | rd | \name{Flowmatrix}
\alias{Flowmatrix}
\title{
Generates a flow matrix for an inverse (foodweb) problem
}
\description{
Given a linear inverse model food web input list, generates a flow
matrix, that contains the values of flows
}
\usage{
Flowmatrix(lim, web = NULL)
}
\arguments{
\item{lim }{a list that contain... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpectrumMethods.R
\name{-,Spectrum,numeric-method}
\alias{-,Spectrum,numeric-method}
\title{Add a negative mass shift to a spectrum}
\usage{
\S4method{-}{Spectrum,numeric}(e1, e2)
}
\arguments{
\item{e1}{a `MSnbase::Spectrum` object}
\item{e... | /man/Spectrum-numeric-method.Rd | no_license | MassBank/RMassBank | R | false | true | 403 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpectrumMethods.R
\name{-,Spectrum,numeric-method}
\alias{-,Spectrum,numeric-method}
\title{Add a negative mass shift to a spectrum}
\usage{
\S4method{-}{Spectrum,numeric}(e1, e2)
}
\arguments{
\item{e1}{a `MSnbase::Spectrum` object}
\item{e... |
searchExtreme <-
function(TX, n1, n2, alternative, method, int, delta, alpha, lookupArray) {
TXunique <- unique(TX[is.na(TX[ , 4]), 3])
if (length(TXunique) == 0) {return(TX[as.logical(TX[ , 4]), 1:2, drop=FALSE])}
m <- floor(length(TXunique)/2) + 1 #Very slightly faster
s <- TXunique[m]
if (method... | /R/searchExtreme.R | no_license | cran/Exact | R | false | false | 1,181 | r | searchExtreme <-
function(TX, n1, n2, alternative, method, int, delta, alpha, lookupArray) {
TXunique <- unique(TX[is.na(TX[ , 4]), 3])
if (length(TXunique) == 0) {return(TX[as.logical(TX[ , 4]), 1:2, drop=FALSE])}
m <- floor(length(TXunique)/2) + 1 #Very slightly faster
s <- TXunique[m]
if (method... |
X <- rbind(x_train, x_test)
Y <- rbind(y_train, y_test)
Subject <- rbind(subject_train, subject_test)
Merged_Data <- cbind(Subject, Y, X)
TidyData <- Merged_Data %>% select(subject, code, contains("mean"), contains("std"))
TidyData$code <- activities[TidyData$code, 2]
names(TidyData)[2] = "activity"
names(TidyData)<-gs... | /run_analysis.R | no_license | joeljohn31/Getting-and-Cleaning-Data_Assignment | R | false | false | 1,207 | r | X <- rbind(x_train, x_test)
Y <- rbind(y_train, y_test)
Subject <- rbind(subject_train, subject_test)
Merged_Data <- cbind(Subject, Y, X)
TidyData <- Merged_Data %>% select(subject, code, contains("mean"), contains("std"))
TidyData$code <- activities[TidyData$code, 2]
names(TidyData)[2] = "activity"
names(TidyData)<-gs... |
#' @export
#' @importFrom zip zip
#' @title compress a folder
#' @description compress a folder to a target file. The
#' function returns the complete path to target file.
#' @param folder folder to compress
#' @param target path of the archive to create
pack_folder <- function( folder, target ){
target <- absolute_... | /R/pack_folder.R | no_license | AlfredBeit/officer | R | false | false | 2,472 | r | #' @export
#' @importFrom zip zip
#' @title compress a folder
#' @description compress a folder to a target file. The
#' function returns the complete path to target file.
#' @param folder folder to compress
#' @param target path of the archive to create
pack_folder <- function( folder, target ){
target <- absolute_... |
# makes files appropriate for upload to pecan st jude protein paint (requirements and format underneath code)
# The arrange function output, when uploaded to https://pecan.stjude.cloud/proteinpaint, produces an infographic labelled with the alternative (new & mutated) nucleotide
# arrange.amino.acid creates an infograp... | /R/pecan_creator.R | no_license | acavalla/kmt2d | R | false | false | 5,149 | r | # makes files appropriate for upload to pecan st jude protein paint (requirements and format underneath code)
# The arrange function output, when uploaded to https://pecan.stjude.cloud/proteinpaint, produces an infographic labelled with the alternative (new & mutated) nucleotide
# arrange.amino.acid creates an infograp... |
#Constant functions
f <- function(x){
fx <- 5
return(fx)
}
input<- 0:10
plot(input, sapply(input,f),
type = "l", xlab = "x",
ylab = "f(x)")
#Linear functions
f <- function(x){
fx <- 2*x+10
return(fx)
}
f(4)
input<- 0:10
plot(input, sapply(input,f),
type = "l", xlab = "x",... | /functions.R | no_license | girendraegie/matematika-lanjut | R | false | false | 916 | r | #Constant functions
f <- function(x){
fx <- 5
return(fx)
}
input<- 0:10
plot(input, sapply(input,f),
type = "l", xlab = "x",
ylab = "f(x)")
#Linear functions
f <- function(x){
fx <- 2*x+10
return(fx)
}
f(4)
input<- 0:10
plot(input, sapply(input,f),
type = "l", xlab = "x",... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_non_nbrs.R
\name{get_non_nbrs}
\alias{get_non_nbrs}
\title{Get non-neighbors of a node in a graph}
\usage{
get_non_nbrs(graph, node)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph} that is created using
\code{create_gr... | /man/get_non_nbrs.Rd | no_license | shrektan/DiagrammeR | R | false | true | 837 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_non_nbrs.R
\name{get_non_nbrs}
\alias{get_non_nbrs}
\title{Get non-neighbors of a node in a graph}
\usage{
get_non_nbrs(graph, node)
}
\arguments{
\item{graph}{a graph object of class
\code{dgr_graph} that is created using
\code{create_gr... |
# Libraries
library(mice)
library(VIM)
library(randomForest)
########## Reading Data ###########
# tacking into considration transforming empty cells to NA
Near_Earth_Comets_Orbital_Elements <- read.csv("Near-Earth_Comets_Orbital_Elements.csv", header = T, na.strings = c("","NA"))
View(Near_Earth_Comets_Or... | /newNearEarthData.R | no_license | bassantNabeh/Imputation-Data | R | false | false | 2,840 | r | # Libraries
library(mice)
library(VIM)
library(randomForest)
########## Reading Data ###########
# tacking into considration transforming empty cells to NA
Near_Earth_Comets_Orbital_Elements <- read.csv("Near-Earth_Comets_Orbital_Elements.csv", header = T, na.strings = c("","NA"))
View(Near_Earth_Comets_Or... |
price = c(101,82,66,35,31,7)
price = ts(price,start = c(2005,1),frequency = 12)
price2 = scan()
yield = c(15.2,16.9,15.3,14.9,15.7,15.1,16.7)
yield = ts(yield,start = 1884)
plot(yield)
plot(yield,type = "s")
plot(yield,type = "h")
plot(yield,type = "o",pch = 7,lty = 2,lwd = 2,col = "purple",main="time series", sub = ... | /time_series/Rfile/book.R | no_license | yuanqingye/R_Projects | R | false | false | 1,475 | r | price = c(101,82,66,35,31,7)
price = ts(price,start = c(2005,1),frequency = 12)
price2 = scan()
yield = c(15.2,16.9,15.3,14.9,15.7,15.1,16.7)
yield = ts(yield,start = 1884)
plot(yield)
plot(yield,type = "s")
plot(yield,type = "h")
plot(yield,type = "o",pch = 7,lty = 2,lwd = 2,col = "purple",main="time series", sub = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cov2_interact3.R
\name{cov2_interact3}
\alias{cov2_interact3}
\title{Extract regression model data for 3 way interaction
with two covariates}
\usage{
cov2_interact3(lm)
}
\arguments{
\item{lm}{linear model}
}
\value{
beta, se, t-value, p-valu... | /man/cov2_interact3.Rd | no_license | antonyagonzalez/betatones | R | false | true | 603 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cov2_interact3.R
\name{cov2_interact3}
\alias{cov2_interact3}
\title{Extract regression model data for 3 way interaction
with two covariates}
\usage{
cov2_interact3(lm)
}
\arguments{
\item{lm}{linear model}
}
\value{
beta, se, t-value, p-valu... |
#' twotothepowerof
#'
#' A function to find two to the power of a number
#'
#' @param a a numeric value
#' @return two to the power of a
#' @export
#' @examples
#' twotothepowerof(3)
#' @docType package
#' @name twotothepowerof
#' @author John Merrall, School of Geography and Earth Sciences, McMaster University \email... | /sess7r/R/twotothepowerof.R | no_license | merralja/SchoolProbit | R | false | false | 449 | r | #' twotothepowerof
#'
#' A function to find two to the power of a number
#'
#' @param a a numeric value
#' @return two to the power of a
#' @export
#' @examples
#' twotothepowerof(3)
#' @docType package
#' @name twotothepowerof
#' @author John Merrall, School of Geography and Earth Sciences, McMaster University \email... |
# -------------------------------------------------------------------------------------------------
#map standardized effect size of functional richness via faith index, 19.01.2021
# Jonas Wydler
#updated 13.09.2021
# -------------------------------------------------------------------------------------------------
... | /functional_diversity_results/faith_ANN_ses_famd_ward_binary.R | no_license | jonas-wydler/ma_jonas_wydler_2021 | R | false | false | 14,070 | r | # -------------------------------------------------------------------------------------------------
#map standardized effect size of functional richness via faith index, 19.01.2021
# Jonas Wydler
#updated 13.09.2021
# -------------------------------------------------------------------------------------------------
... |
# osmose2R for specific versions ------------------------------------------
osmose2R.v3r0 = function(path=NULL, species.names=NULL, ...) {
# General
pop = list(
biomass = readOsmoseFiles(path=path, type="biomass"),
abundance = readOsmoseFiles(path=path, type="abundance"),
yield ... | /R/osmose2R_package_internal.R | no_license | osmose-model/osmose2R | R | false | false | 8,321 | r |
# osmose2R for specific versions ------------------------------------------
osmose2R.v3r0 = function(path=NULL, species.names=NULL, ...) {
# General
pop = list(
biomass = readOsmoseFiles(path=path, type="biomass"),
abundance = readOsmoseFiles(path=path, type="abundance"),
yield ... |
## These functions cache the inverse of a matrix
## This function creates a special "matrix" objet that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## initially set i to NULL
i <- NULL
## Set the value of the matrix
set <- function(y) {
x <<- y
i <<- NULL
}
## Get the v... | /cachematrix.R | no_license | CatherineBacon/ProgrammingAssignment2 | R | false | false | 1,180 | r | ## These functions cache the inverse of a matrix
## This function creates a special "matrix" objet that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
## initially set i to NULL
i <- NULL
## Set the value of the matrix
set <- function(y) {
x <<- y
i <<- NULL
}
## Get the v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edata_summary.R
\name{edata_summary}
\alias{edata_summary}
\title{Creates a list of six Data Frames, one for each summarizing metric}
\usage{
edata_summary(omicsData, by = "sample", groupvar = NULL)
}
\arguments{
\item{omicsData}{object of th... | /man/edata_summary.Rd | permissive | pmartR/pmartR | R | false | true | 2,027 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edata_summary.R
\name{edata_summary}
\alias{edata_summary}
\title{Creates a list of six Data Frames, one for each summarizing metric}
\usage{
edata_summary(omicsData, by = "sample", groupvar = NULL)
}
\arguments{
\item{omicsData}{object of th... |
dt<-5/60
dfRacksCast3<-dfRacksCast2%>%
group_by(Rack)%>%
arrange(Time)%>%
mutate(CumDis=(cumsum(Power*(Power<0))-Power*(Power<0)/2-first(Power*(Power<0))/2)*dt,
CumAh=(cumsum(Current)-Current/2-first(Current)/2)*dt)%>%
group_by(Index2)%>%
filter(max(RackNo)==20,
n()>=12,
max(abs(dif... | /EW Brown Degradation Model.R | no_license | PNNL-EPRI/PNNL-EPRI-Reliability | R | false | false | 7,986 | r | dt<-5/60
dfRacksCast3<-dfRacksCast2%>%
group_by(Rack)%>%
arrange(Time)%>%
mutate(CumDis=(cumsum(Power*(Power<0))-Power*(Power<0)/2-first(Power*(Power<0))/2)*dt,
CumAh=(cumsum(Current)-Current/2-first(Current)/2)*dt)%>%
group_by(Index2)%>%
filter(max(RackNo)==20,
n()>=12,
max(abs(dif... |
rm(list=ls())
library(dplyr)
library(caret)
library(DMwR)
library(ROCR)
library(randomForest)
library(vtreat)
setwd("~/Desktop/titanic")
train <- read.csv("train.csv")
test <- read.csv("test.csv")
fulldata <- rbind(train[,c(3, 5, 6, 7, 8, 10, 12)], test[,c(2, 4, 5, 6, 7, 9, 11)])
fulldata <- knnImputation(fulldata)
sc... | /R/titanic/titanicPredict2.R | no_license | HwangBoSungHun/Undergraduate_homework | R | false | false | 1,789 | r | rm(list=ls())
library(dplyr)
library(caret)
library(DMwR)
library(ROCR)
library(randomForest)
library(vtreat)
setwd("~/Desktop/titanic")
train <- read.csv("train.csv")
test <- read.csv("test.csv")
fulldata <- rbind(train[,c(3, 5, 6, 7, 8, 10, 12)], test[,c(2, 4, 5, 6, 7, 9, 11)])
fulldata <- knnImputation(fulldata)
sc... |
library(anytime)
### Name: iso8601
### Title: Format a Datetime object: ISO 8601, RFC 2822 or RFC 3339
### Aliases: iso8601 rfc2822 rfc3339 yyyymmdd
### ** Examples
iso8601(anytime("2016-09-01 10:11:12.123456"))
iso8601(anydate("2016-Sep-01"))
rfc2822(anytime("2016-09-01 10:11:12.123456"))
rfc2822(anydate("2016-Se... | /data/genthat_extracted_code/anytime/examples/iso8601.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 493 | r | library(anytime)
### Name: iso8601
### Title: Format a Datetime object: ISO 8601, RFC 2822 or RFC 3339
### Aliases: iso8601 rfc2822 rfc3339 yyyymmdd
### ** Examples
iso8601(anytime("2016-09-01 10:11:12.123456"))
iso8601(anydate("2016-Sep-01"))
rfc2822(anytime("2016-09-01 10:11:12.123456"))
rfc2822(anydate("2016-Se... |
# row1_height * page_height+
# row2_height * page_height
#
# col1_width * page_width+
# col2_width * page_width
#
# (row1_height * page_height)/(col1_width * page_width)
# (row2_height * page_height)/((col2_width + col1_width) * page_width)
vama_grob <- tmap_grob(vama_reg)
rova_grob <- tmap_grob(rova_reg)
#vama_gr... | /misc_grobs.R | no_license | KateMMiller/NETN_forest_summaries | R | false | false | 958 | r |
# row1_height * page_height+
# row2_height * page_height
#
# col1_width * page_width+
# col2_width * page_width
#
# (row1_height * page_height)/(col1_width * page_width)
# (row2_height * page_height)/((col2_width + col1_width) * page_width)
vama_grob <- tmap_grob(vama_reg)
rova_grob <- tmap_grob(rova_reg)
#vama_gr... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 14878
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 14878
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#42.asp/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#42.asp.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 732 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 14878
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 14878
c
c Input Parameter (command line, file):
c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#... |
#' HW3: Normal distribution factory
#'
#' 1. Set the random seed to zero and save the random seed vector to `seed`. (hint: use the command `seed <- .Random.seed`).
## Do not modify this line!
set.seed(0)
seed <- .Random.seed
#' 2. Write a function `norm_factory` that takes as input two arguments `mu` and `var` and re... | /HW3/hw3_14_normal_distribution_factory.R | no_license | QihangYang/Computational-Statistics | R | false | false | 2,589 | r | #' HW3: Normal distribution factory
#'
#' 1. Set the random seed to zero and save the random seed vector to `seed`. (hint: use the command `seed <- .Random.seed`).
## Do not modify this line!
set.seed(0)
seed <- .Random.seed
#' 2. Write a function `norm_factory` that takes as input two arguments `mu` and `var` and re... |
calcMeanCount <- function(base.input.name, count.dt, ref.column.name = "tss_name"){
require("data.table")
mean.dt <- count.dt[
,
.(mean_count = rowMeans(.SD)),
.SDcols = grep(base.input.name, colnames(count.dt), value = TRUE),
by = ref.column.name
]
setnames(mean.dt, ... | /R/s6-differential-expression-and-tss-usage/functions/test_differential_expression.R | no_license | YoichiroSugimoto/20211102_HP5_HIF_mTOR | R | false | false | 6,195 | r | calcMeanCount <- function(base.input.name, count.dt, ref.column.name = "tss_name"){
require("data.table")
mean.dt <- count.dt[
,
.(mean_count = rowMeans(.SD)),
.SDcols = grep(base.input.name, colnames(count.dt), value = TRUE),
by = ref.column.name
]
setnames(mean.dt, ... |
cat("\n\n************************************************\nGENERATE ARTIFICIAL DATA\n************************************************\n\n")
DATA_PATH <- "../data/"
if(!dir.exists(DATA_PATH)){
dir.create(DATA_PATH, recursive = TRUE)
cat(paste0("Created folder ", DATA_PATH, "\n"))
}
cat(paste0("Saving data to ", D... | /inst/step1_gen_data.R | no_license | ancao310/STEvaluation-MDPI2021 | R | false | false | 2,058 | r | cat("\n\n************************************************\nGENERATE ARTIFICIAL DATA\n************************************************\n\n")
DATA_PATH <- "../data/"
if(!dir.exists(DATA_PATH)){
dir.create(DATA_PATH, recursive = TRUE)
cat(paste0("Created folder ", DATA_PATH, "\n"))
}
cat(paste0("Saving data to ", D... |
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("finufft")
}
| /tests/tinytest.R | permissive | jkennel/finufft | R | false | false | 91 | r |
if ( requireNamespace("tinytest", quietly=TRUE) ){
tinytest::test_package("finufft")
}
|
#
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... | /R/utils.R | permissive | diego-pacheco-PE/pointblank | R | false | false | 16,617 | r | #
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... |
#' Forces correlation among operating model parameters for M, K, Linf and L50
#'
#' @description Uses typical correlations among estimated parameters to generate realistic samples for natural mortality rate (M), growth rate (K), maximum length (Linf) and length at 50% maturity (L50), these are placed in the cpars slot
... | /R/OM_functions.R | no_license | realsmak88/DLMtool | R | false | false | 32,772 | r | #' Forces correlation among operating model parameters for M, K, Linf and L50
#'
#' @description Uses typical correlations among estimated parameters to generate realistic samples for natural mortality rate (M), growth rate (K), maximum length (Linf) and length at 50% maturity (L50), these are placed in the cpars slot
... |
#' Reads shapefile of Zero Check Strip and buffers for Farmer practice
#'
#' @param shapefile_path a length-one character vector that gives the file path
#' for the shapefile for the N rich strip
#'
#' @param active_ndvi a raster layer that contains actively mapped NDVI
#'
#' @param shapefile_crs a coordinate re... | /R/read_zero_check.R | permissive | beardon/ninja-active-mapper | R | false | false | 1,036 | r | #' Reads shapefile of Zero Check Strip and buffers for Farmer practice
#'
#' @param shapefile_path a length-one character vector that gives the file path
#' for the shapefile for the N rich strip
#'
#' @param active_ndvi a raster layer that contains actively mapped NDVI
#'
#' @param shapefile_crs a coordinate re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createNormalDatabase.R
\name{createNormalDatabase}
\alias{createNormalDatabase}
\title{Create database of normal samples}
\usage{
createNormalDatabase(normal.coverage.files, sex = NULL,
max.mean.coverage = NULL, coverage.outliers = c(0.25, ... | /man/createNormalDatabase.Rd | permissive | chapmanb/PureCN | R | false | true | 2,350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createNormalDatabase.R
\name{createNormalDatabase}
\alias{createNormalDatabase}
\title{Create database of normal samples}
\usage{
createNormalDatabase(normal.coverage.files, sex = NULL,
max.mean.coverage = NULL, coverage.outliers = c(0.25, ... |
rm(list=ls())
# ------ INTRODUCTION ------------------------------------------------------------ #
# Not every year has 365 days -> leap years!
# Not every day has 24 hours -> daylight savings (23 or 25h)
# Not every minute has 60 seconds -> leap seconds (adjusting for earth rotation)
# Prerequisites
# install.packa... | /r-for-data-science/Chapter13_Date_and_Time_lubridate/date_time_lubridate.R | no_license | cholzkorn/data-science | R | false | false | 12,830 | r | rm(list=ls())
# ------ INTRODUCTION ------------------------------------------------------------ #
# Not every year has 365 days -> leap years!
# Not every day has 24 hours -> daylight savings (23 or 25h)
# Not every minute has 60 seconds -> leap seconds (adjusting for earth rotation)
# Prerequisites
# install.packa... |
\name{add.lattice.grid}
\alias{add.lattice.grid}
\title{Add grids}
\usage{
add.lattice.grid(side = c("top", "bottom", "left", "right"),
..., ticks = c("default", "yes", "no"), scales,
components, line.col)
}
\arguments{
\item{side}{see \code{latticeExtra::axis.grid}}
\item{...}{see \code{latticeExtra::ax... | /man/add.lattice.grid.Rd | no_license | jburos/pander | R | false | false | 772 | rd | \name{add.lattice.grid}
\alias{add.lattice.grid}
\title{Add grids}
\usage{
add.lattice.grid(side = c("top", "bottom", "left", "right"),
..., ticks = c("default", "yes", "no"), scales,
components, line.col)
}
\arguments{
\item{side}{see \code{latticeExtra::axis.grid}}
\item{...}{see \code{latticeExtra::ax... |
\name{ListenerConstructors}
\alias{CaptureListener}
\alias{InjectionListener}
\alias{UpdateListener}
\alias{UpsertListener}
\alias{TableListener}
\title{Constructors for Listener Classes}
\description{
These functions create objects of class
\code{\linkS4class{CaptureListener}}, \code{\linkS4class{UpdateListener}... | /man/ListenerConstructors.Rd | no_license | ralmond/Proc4 | R | false | false | 5,797 | rd | \name{ListenerConstructors}
\alias{CaptureListener}
\alias{InjectionListener}
\alias{UpdateListener}
\alias{UpsertListener}
\alias{TableListener}
\title{Constructors for Listener Classes}
\description{
These functions create objects of class
\code{\linkS4class{CaptureListener}}, \code{\linkS4class{UpdateListener}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shortcuts.R
\name{water_precincts}
\alias{water_precincts}
\title{British Columbia's Water Management Precincts}
\source{
\code{bcdata::bcdc_get_data(record = 'b5f436b4-532c-4ee2-ba27-90d55ec8c73f', resource = 'e482fd4a-be58-4541-8e0d-c39a764... | /man/water_precincts.Rd | permissive | MonkmanMH/bcmaps | R | false | true | 1,217 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shortcuts.R
\name{water_precincts}
\alias{water_precincts}
\title{British Columbia's Water Management Precincts}
\source{
\code{bcdata::bcdc_get_data(record = 'b5f436b4-532c-4ee2-ba27-90d55ec8c73f', resource = 'e482fd4a-be58-4541-8e0d-c39a764... |
\name{sql.reader}
\alias{sql.reader}
\title{Read a database described in a .sql file.}
\usage{
sql.reader(data.file, filename, variable.name)
}
\arguments{
\item{data.file}{The name of the data file to be read.}
\item{filename}{The path to the data set to be loaded.}
\item{variable.name}{The name to be assign... | /man/sql.reader.Rd | no_license | kaushikreddy/ProjectTemplate | R | false | false | 1,851 | rd | \name{sql.reader}
\alias{sql.reader}
\title{Read a database described in a .sql file.}
\usage{
sql.reader(data.file, filename, variable.name)
}
\arguments{
\item{data.file}{The name of the data file to be read.}
\item{filename}{The path to the data set to be loaded.}
\item{variable.name}{The name to be assign... |
library(e1071)
f <- function(x, y) 1 / (1 + 2^(x^3+ y+x*y))
d <- data.frame(x1 = rnorm(1000), x2 = rnorm(1000))
d$y = with(d, ifelse(runif(1000) < f(x1, x2), 1, -1))
dd=d
dd$x5=d$x1+100*d$x2 ### can also be tried with dd$x5=d$x1+100000*d$x2
model1=svm(y~.,data=d,kernel='radial')
pred1=predict(model1)
model2=svm(y... | /code/SVM_SMO/svm_multilinear.R | no_license | shjwang/ESL | R | false | false | 612 | r |
library(e1071)
f <- function(x, y) 1 / (1 + 2^(x^3+ y+x*y))
d <- data.frame(x1 = rnorm(1000), x2 = rnorm(1000))
d$y = with(d, ifelse(runif(1000) < f(x1, x2), 1, -1))
dd=d
dd$x5=d$x1+100*d$x2 ### can also be tried with dd$x5=d$x1+100000*d$x2
model1=svm(y~.,data=d,kernel='radial')
pred1=predict(model1)
model2=svm(y... |
## Consider a mixture of two normal distributions with equal weights (w1 = w2 = 1/2)
## Component 1 has mean 0 and standard deviation 1
## Component 2 has mean 1 and standard deviation 1
## The observation is x = 50
## What is Pr(c = 1 | x)?
dnorm(50, 0, 1)
dnorm(50, 1, 1)
dnorm(50, 0, 1)/(dnorm(50, 0, 1) + dnorm(50, 1... | /chr5_Practical_considerations/numerical_stability_issues.R | permissive | SZJShuffle/BayesianMixtureModels | R | false | false | 1,250 | r | ## Consider a mixture of two normal distributions with equal weights (w1 = w2 = 1/2)
## Component 1 has mean 0 and standard deviation 1
## Component 2 has mean 1 and standard deviation 1
## The observation is x = 50
## What is Pr(c = 1 | x)?
dnorm(50, 0, 1)
dnorm(50, 1, 1)
dnorm(50, 0, 1)/(dnorm(50, 0, 1) + dnorm(50, 1... |
## ch07.R
##
## 浅野正彦・矢内勇生. 2018. 『Rによる計量政治学』オーム社
## 第7章 統計的推定
##
## Created: 2018-11-22 Yuki Yanai
## Modified: 2018-11-24 YY
## 2021-05-28 YY
## tidyverse パッケージを読み込む
library("tidyverse")
if (capabilities("aqua")) { # Macかどうか判定し、Macの場合のみ実行
theme_set(theme_gray(base_size = 10,
base_... | /chapters-Rscripts/ch07.R | no_license | yukiyanai/quant-methods-R | R | false | false | 6,893 | r | ## ch07.R
##
## 浅野正彦・矢内勇生. 2018. 『Rによる計量政治学』オーム社
## 第7章 統計的推定
##
## Created: 2018-11-22 Yuki Yanai
## Modified: 2018-11-24 YY
## 2021-05-28 YY
## tidyverse パッケージを読み込む
library("tidyverse")
if (capabilities("aqua")) { # Macかどうか判定し、Macの場合のみ実行
theme_set(theme_gray(base_size = 10,
base_... |
library(UScensus2010)
### Name: install.blk
### Title: Installer for the UScensus2000blk package.
### Aliases: install.blk
### Keywords: ~kwd1 ~kwd2
### ** Examples
## Not run:
##D install.blk("osx")
## End(Not run)
| /data/genthat_extracted_code/UScensus2010/examples/install.blk.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 224 | r | library(UScensus2010)
### Name: install.blk
### Title: Installer for the UScensus2000blk package.
### Aliases: install.blk
### Keywords: ~kwd1 ~kwd2
### ** Examples
## Not run:
##D install.blk("osx")
## End(Not run)
|
library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/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.4,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/large_intestine/large_int... | /Model/EN/Lasso/large_intestine/large_intestine_052.R | no_license | leon1003/QSMART | R | false | false | 378 | r | library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/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.4,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/large_intestine/large_int... |
download_file <- function(url) {
# We want to find out original name of the downloaded file.
# So we create a folder and download the only file to it
# and can get the name of that file
dirname = tempfile()
dir.create(dirname)
system(paste("wget -P", shQuote(dirname), shQuote(url)))
original_fn = list.fil... | /PWMEval-Chip-peak/utils.R | permissive | autosome-ru/motif_benchmarks | R | false | false | 995 | r | download_file <- function(url) {
# We want to find out original name of the downloaded file.
# So we create a folder and download the only file to it
# and can get the name of that file
dirname = tempfile()
dir.create(dirname)
system(paste("wget -P", shQuote(dirname), shQuote(url)))
original_fn = list.fil... |
library(tidytext)
library(dplyr)
library(stringr)
library(janeaustenr)
library(tidyr)
tidy_books <- austen_books() %>%
group_by(book) %>%
mutate(linenumber = row_number(),
chapter = cumsum(str_detect(text, regex("^chapter [\\divxlc]",
ignore_case = TRUE))... | /R code/tidy_example.R | no_license | Zekkenn/ClassificationEmotionModels_ISEAR | R | false | false | 1,779 | r | library(tidytext)
library(dplyr)
library(stringr)
library(janeaustenr)
library(tidyr)
tidy_books <- austen_books() %>%
group_by(book) %>%
mutate(linenumber = row_number(),
chapter = cumsum(str_detect(text, regex("^chapter [\\divxlc]",
ignore_case = TRUE))... |
bh = read.csv("../data/tema4/BostonHousing.csv")
kfcv.reg =function(df,k){
fold =sample(1:k,nrow(df),replace = T)
mse = sapply(1:k,
kfcv.iter,
df,fold)
list("MSE "=mse, "Overall_MSE "= mean(mse),"STD_MSE"=sd(mse))
}
kfcv.iter =function(k,df,fold){
t.ids = !fold %in% c(... | /scripts/42_KFCV_Regression.R | no_license | soullest/R | R | false | false | 818 | r | bh = read.csv("../data/tema4/BostonHousing.csv")
kfcv.reg =function(df,k){
fold =sample(1:k,nrow(df),replace = T)
mse = sapply(1:k,
kfcv.iter,
df,fold)
list("MSE "=mse, "Overall_MSE "= mean(mse),"STD_MSE"=sd(mse))
}
kfcv.iter =function(k,df,fold){
t.ids = !fold %in% c(... |
run_jags <- function(model_string, data, inits, params, n.chains, n.adapt, n.update, n.iter, thin, progress.bar) {
if(!interactive()) {
progress.bar <- "none"
}
jags_model <- jags.model(textConnection(model_string) , data=data , inits=inits ,
n.chains=n.chains , n.adapt=0, quiet=TRU... | /R/utility_functions.R | no_license | Sandy4321/bayesian_first_aid | R | false | false | 14,421 | r | run_jags <- function(model_string, data, inits, params, n.chains, n.adapt, n.update, n.iter, thin, progress.bar) {
if(!interactive()) {
progress.bar <- "none"
}
jags_model <- jags.model(textConnection(model_string) , data=data , inits=inits ,
n.chains=n.chains , n.adapt=0, quiet=TRU... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projection.R
\name{canonicalDAG}
\alias{canonicalDAG}
\title{Canonical DAG for an ADMG}
\usage{
canonicalDAG(graph, collect = TRUE)
}
\arguments{
\item{graph}{ADMG of class \code{mixedgraph}}
\item{collect}{logical: should cliques of bidirec... | /man/canonicalDAG.Rd | no_license | rje42/ADMGs2 | R | false | true | 399 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/projection.R
\name{canonicalDAG}
\alias{canonicalDAG}
\title{Canonical DAG for an ADMG}
\usage{
canonicalDAG(graph, collect = TRUE)
}
\arguments{
\item{graph}{ADMG of class \code{mixedgraph}}
\item{collect}{logical: should cliques of bidirec... |
#' Run a Griffin query from an interaction graph.
#'
#' This function takes a valid gquery created with create.gquery and add.gquery methods
#' and returns the set of boolean networks that satisfy the query.
#'
#' @param query Griffin query
#' @param return
#' "all" return all networks as strings
#' "f... | /R/runQuery.R | permissive | mar-esther23/rgriffin | R | false | false | 8,394 | r | #' Run a Griffin query from an interaction graph.
#'
#' This function takes a valid gquery created with create.gquery and add.gquery methods
#' and returns the set of boolean networks that satisfy the query.
#'
#' @param query Griffin query
#' @param return
#' "all" return all networks as strings
#' "f... |
data3A = structure(list(x = c(13.9967400205522, 13.2107777043708,
10.6915148536459, 9.27893231273524, 9.80349365905033,
-0.981460222410832, -7.01000055560383, -10.1144405348045,
-11.8570179157891, -14.0170415426292, -17.0719778554... | /Project3/probAdata.R | no_license | vebjorre/beregningskrevende | R | false | false | 2,900 | r | data3A = structure(list(x = c(13.9967400205522, 13.2107777043708,
10.6915148536459, 9.27893231273524, 9.80349365905033,
-0.981460222410832, -7.01000055560383, -10.1144405348045,
-11.8570179157891, -14.0170415426292, -17.0719778554... |
rm(list = ls(all = TRUE))
source(file = "R/packages.R")
source(file = "R/multiplots.R")
source(file = "R/variables.R")
source(file = "R/utils.R")
source(file = "R/plots.R")
library(ggplot2)
library(xtable)
library(ellipse)
library(reshape)
library(digest)
library(scales)
library(cliffsd)
print(sprintf("Current direc... | /Analysis/pullreq-stats.R | permissive | jjhartmann/pullreqs | R | false | false | 17,236 | r | rm(list = ls(all = TRUE))
source(file = "R/packages.R")
source(file = "R/multiplots.R")
source(file = "R/variables.R")
source(file = "R/utils.R")
source(file = "R/plots.R")
library(ggplot2)
library(xtable)
library(ellipse)
library(reshape)
library(digest)
library(scales)
library(cliffsd)
print(sprintf("Current direc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tergmLite-package.r
\docType{package}
\name{tergmLite-package}
\alias{tergmLite-package}
\alias{tergmLite}
\title{Fast Simulation of Simple Temporal Exponential Random Graph Models (TERGMs)}
\description{
\tabular{ll}{
Package: \tab tergmL... | /man/tergmLite-package.Rd | no_license | kpeebles/tergmLite | R | false | true | 2,538 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tergmLite-package.r
\docType{package}
\name{tergmLite-package}
\alias{tergmLite-package}
\alias{tergmLite}
\title{Fast Simulation of Simple Temporal Exponential Random Graph Models (TERGMs)}
\description{
\tabular{ll}{
Package: \tab tergmL... |
test_DataFrame_construction <- function() {
score <- c(X=1L, Y=3L, Z=NA)
counts <- c(10L, 2L, NA)
## na in rn
checkException(DataFrame(score, row.names = c("a", NA, "b")), silent = TRUE)
## invalid rn length
checkException(DataFrame(score, row.names = "a"), silent = TRUE)
DF <- DataFrame() # no args
... | /source/Windows/R-Portable-Win/library/S4Vectors/unitTests/test_DataFrame-class.R | permissive | romanhaa/Cerebro | R | false | false | 15,276 | r | test_DataFrame_construction <- function() {
score <- c(X=1L, Y=3L, Z=NA)
counts <- c(10L, 2L, NA)
## na in rn
checkException(DataFrame(score, row.names = c("a", NA, "b")), silent = TRUE)
## invalid rn length
checkException(DataFrame(score, row.names = "a"), silent = TRUE)
DF <- DataFrame() # no args
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_start_sentiment_detection_job}
\alias{comprehend_start_sentiment_detection_job}
\title{Starts an asynchronous sentiment detection job for a collection of
documents}
\usage{
comprehend_start_sentiment_d... | /cran/paws.machine.learning/man/comprehend_start_sentiment_detection_job.Rd | permissive | TWarczak/paws | R | false | true | 3,042 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/comprehend_operations.R
\name{comprehend_start_sentiment_detection_job}
\alias{comprehend_start_sentiment_detection_job}
\title{Starts an asynchronous sentiment detection job for a collection of
documents}
\usage{
comprehend_start_sentiment_d... |
library(shiny)
library(shinydashboard)
library(dplyr)
library(shinyjs)
library(ggplot2)
library(plotly)
library(DT)
library(rlang)
library(corrplot)
library(correlationfunnel)
#utils
source("modules/utils.R")
#home
source("modules/home.R")
#load
source("modules/load.R")
#plot
source("modules/plot.R") | /global.R | no_license | AnikMallick/Explore_Correlations_With_R_Shiny | R | false | false | 305 | r | library(shiny)
library(shinydashboard)
library(dplyr)
library(shinyjs)
library(ggplot2)
library(plotly)
library(DT)
library(rlang)
library(corrplot)
library(correlationfunnel)
#utils
source("modules/utils.R")
#home
source("modules/home.R")
#load
source("modules/load.R")
#plot
source("modules/plot.R") |
library(shiny)
library(DT)
library(ggplot2)
library(fontawesome)
unminified_css_dep <-
htmltools::htmlDependency(
name = "font-awesome",
version = fontawesome:::fa_version,
src = "fontawesome",
package = "fontawesome",
stylesheet = c("css/all.css", "css/v4-shims.css")
)
ui <- fluidPage(
tit... | /tests/manual_tests/shiny-test-fa_i_html_dep_unminified.R | permissive | rstudio/fontawesome | R | false | false | 1,697 | r | library(shiny)
library(DT)
library(ggplot2)
library(fontawesome)
unminified_css_dep <-
htmltools::htmlDependency(
name = "font-awesome",
version = fontawesome:::fa_version,
src = "fontawesome",
package = "fontawesome",
stylesheet = c("css/all.css", "css/v4-shims.css")
)
ui <- fluidPage(
tit... |
library(gplots)
library(tidyr)
library(readr)
library(dplyr)
library(ggplot2)
library(org.Hs.eg.db)
library(AnnotationDbi)
library(annotate)
library(GO.db)
library(tmod)
library(readr)
library(homologene)
library(ggrepel)
targetVariable = "regression"
#targetVariable = "female"
#targetVariable = "male"
metaRegression... | /R/metaA/metaAGOandDarmanisAnalysis.R | no_license | leonfrench/CellTypesAging | R | false | false | 8,935 | r | library(gplots)
library(tidyr)
library(readr)
library(dplyr)
library(ggplot2)
library(org.Hs.eg.db)
library(AnnotationDbi)
library(annotate)
library(GO.db)
library(tmod)
library(readr)
library(homologene)
library(ggrepel)
targetVariable = "regression"
#targetVariable = "female"
#targetVariable = "male"
metaRegression... |
This is a folder to put
kinetics_val.csv
kinetics_train.csv
kinetics_test_modefied.csv
| /Kinetics/data/readme.rd | no_license | SmartPorridge/My_Tutorials_And_Tools | R | false | false | 90 | rd | This is a folder to put
kinetics_val.csv
kinetics_train.csv
kinetics_test_modefied.csv
|
FrenchDraftHeights.rS
rm( list=ls())
df <- sample.int( 30, 1 )
N <- floor( runif( 1, 10000, 50000 ))
MU <- rnorm( 1, 65, 1 )
SIGMA <- abs( runif( 1, 1, 2 ))
limit <- floor( MU - 1.5 * SIGMA )
height <- rnorm( N, MU, SIGMA )
dodger <- rbinom( N, 1, 0.01 )
height <- ifelse( dodger==0,
height,
... | /Homework/BSTAT3322-H06/FrenchDraft.R | no_license | pxb7335/BSTAT3322 | R | false | false | 448 | r | FrenchDraftHeights.rS
rm( list=ls())
df <- sample.int( 30, 1 )
N <- floor( runif( 1, 10000, 50000 ))
MU <- rnorm( 1, 65, 1 )
SIGMA <- abs( runif( 1, 1, 2 ))
limit <- floor( MU - 1.5 * SIGMA )
height <- rnorm( N, MU, SIGMA )
dodger <- rbinom( N, 1, 0.01 )
height <- ifelse( dodger==0,
height,
... |
library(reshape2)
library(data.table)
### set up args for debugging purposes
args <- commandArgs(trailingOnly=TRUE)
### this is the sample_info_from_name.R file
source(args[1])
args <- args[-1]
results.file <- args[length(args)]
args <- args[-length(args)]
### these are the isoform fpkm files
isoform.files <- grep(... | /exosome_reads/combined_data/R/combine_isoform_fpkms.R | no_license | Color4/exosome_markers_per_med_sep_2015 | R | false | false | 1,070 | r | library(reshape2)
library(data.table)
### set up args for debugging purposes
args <- commandArgs(trailingOnly=TRUE)
### this is the sample_info_from_name.R file
source(args[1])
args <- args[-1]
results.file <- args[length(args)]
args <- args[-length(args)]
### these are the isoform fpkm files
isoform.files <- grep(... |
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837538L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... | /dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615939763-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 826 | r | testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837538L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10... |
library(readr)
library(data.table)
library(xgboost)
library(caretEnsemble)
library(reshape2)
library(dplyr)
setwd("/home/branden/Documents/kaggle/walmart")
# Load CV predictions from models
xgb1preds <- read.csv("./stack_models/cvPreds_xgb1.csv")
xgb2preds <- read.csv("./stack_models/cvPreds_xgb2.csv")
xgb3preds <- re... | /walmart/stack_models/layer2_stack_v8.R | no_license | brandenkmurray/kaggle | R | false | false | 3,743 | r | library(readr)
library(data.table)
library(xgboost)
library(caretEnsemble)
library(reshape2)
library(dplyr)
setwd("/home/branden/Documents/kaggle/walmart")
# Load CV predictions from models
xgb1preds <- read.csv("./stack_models/cvPreds_xgb1.csv")
xgb2preds <- read.csv("./stack_models/cvPreds_xgb2.csv")
xgb3preds <- re... |
#******************************************************
#******************************************************
#******************************************************
# Paper: Statistical Modeling for Spatio-Temporal Data from Physical Convection-Diffusion Processes
# --------------------------------------------... | /dmvn.R | no_license | dnncode/Spatio-Temporal-Model-for-SPDE | R | false | false | 2,075 | r | #******************************************************
#******************************************************
#******************************************************
# Paper: Statistical Modeling for Spatio-Temporal Data from Physical Convection-Diffusion Processes
# --------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forint.R
\name{forint}
\alias{forint}
\title{Formats numbers as Hungarian Forints}
\usage{
forint(x)
}
\arguments{
\item{x}{number vector}
}
\value{
string
}
\description{
Formats numbers as Hungarian Forints
}
\examples{
forint(45)
forint(10... | /man/forint.Rd | no_license | Deborah-Jia/m_r_skills | R | false | true | 350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forint.R
\name{forint}
\alias{forint}
\title{Formats numbers as Hungarian Forints}
\usage{
forint(x)
}
\arguments{
\item{x}{number vector}
}
\value{
string
}
\description{
Formats numbers as Hungarian Forints
}
\examples{
forint(45)
forint(10... |
sample_split <- function(K, N){
# Return split indices based on N and K
return(sample(1:K, N, replace = T))
}
tau_fold <- function(Y, Z, Z.est, Y.est){
prop.error = Z - Z.est
prog_error = Y - Y.est
n.fold = length(Z)
tau.est.full = ((sum(prop.error*Z)/n.fold)^(-1))*(sum(prop.error*prog_error)/n.fold)
ret... | /R/estimator.R | permissive | Zoe187419/semi-supervised-propensity | R | false | false | 24,303 | r | sample_split <- function(K, N){
# Return split indices based on N and K
return(sample(1:K, N, replace = T))
}
tau_fold <- function(Y, Z, Z.est, Y.est){
prop.error = Z - Z.est
prog_error = Y - Y.est
n.fold = length(Z)
tau.est.full = ((sum(prop.error*Z)/n.fold)^(-1))*(sum(prop.error*prog_error)/n.fold)
ret... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_fs_weight.R
\name{read.fs.weight.asc}
\alias{read.fs.weight.asc}
\title{Read ASCII version of FreeSurfer weight file.}
\usage{
read.fs.weight.asc(filepath)
}
\arguments{
\item{filepath}{string. Full path to the input weight file, must be... | /man/read.fs.weight.asc.Rd | permissive | dfsp-spirit/freesurferformats | R | false | true | 829 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_fs_weight.R
\name{read.fs.weight.asc}
\alias{read.fs.weight.asc}
\title{Read ASCII version of FreeSurfer weight file.}
\usage{
read.fs.weight.asc(filepath)
}
\arguments{
\item{filepath}{string. Full path to the input weight file, must be... |
# Scatter plots de predicciones
# Continuas
source('aux_oos_plots.R')
source('multiplot.R')
load('../Calculator/data/validation_models.RData')
load('../Calculator/data/test_data.RData')
#load(datos)
# Usamos la lista de nombres de modelos continuos para generar la lista de gráficas y sus títulos
outcomes = ... | /Paper/RScripts/oos_plots_pilot.R | no_license | monzalo14/overconfidence_settlement | R | false | false | 3,507 | r | # Scatter plots de predicciones
# Continuas
source('aux_oos_plots.R')
source('multiplot.R')
load('../Calculator/data/validation_models.RData')
load('../Calculator/data/test_data.RData')
#load(datos)
# Usamos la lista de nombres de modelos continuos para generar la lista de gráficas y sus títulos
outcomes = ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nlp.R
\name{ctgov_kwic}
\alias{ctgov_kwic}
\title{Keywords in Context}
\usage{
ctgov_kwic(
term,
text,
names = NULL,
n = Inf,
ignore_case = TRUE,
use_color = FALSE,
width = 20L,
output = c("cat", "character", "data.frame")
)
}... | /man/ctgov_kwic.Rd | no_license | cran/ctrialsgov | R | false | true | 1,135 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nlp.R
\name{ctgov_kwic}
\alias{ctgov_kwic}
\title{Keywords in Context}
\usage{
ctgov_kwic(
term,
text,
names = NULL,
n = Inf,
ignore_case = TRUE,
use_color = FALSE,
width = 20L,
output = c("cat", "character", "data.frame")
)
}... |
mode <- function(x) {
d <- density(x,adjust = 1)
d$x[which.max(d$y)]
} | /R/mode.R | no_license | hjshim/CP-WFABC | R | false | false | 74 | r | mode <- function(x) {
d <- density(x,adjust = 1)
d$x[which.max(d$y)]
} |
#This file is used for calculating RMSE and temporal moments of BTC at each well
rm(list=ls())
#set the path to the files
main_path = '/files2/scratch/chenxy/'
paths = c('Tracer_Mar2011_UK3_KrigeFields_Inj5/')
prior_path = 'Field_Generation'
npath = length(paths)
fields = c(1:600)
par_idx = c(1:600)
nfie... | /scripts_on_file1/ES_0to800h_Iter1.R | no_license | mrubayet/archived_codes_for_sfa_modeling | R | false | false | 7,395 | r | #This file is used for calculating RMSE and temporal moments of BTC at each well
rm(list=ls())
#set the path to the files
main_path = '/files2/scratch/chenxy/'
paths = c('Tracer_Mar2011_UK3_KrigeFields_Inj5/')
prior_path = 'Field_Generation'
npath = length(paths)
fields = c(1:600)
par_idx = c(1:600)
nfie... |
\docType{data}
\name{species}
\alias{species}
\title{Available species at NCBI}
\format{A data frame with 348 species.}
\source{
As downloaded on 05.10.2016 from
ftp://ftp.ncbi.nlm.nih.gov/genomes/
}
\description{
This is a list of all organisms/species that are provided by NCBI and hence could end up in the Blast run... | /man/species.Rd | no_license | fischuu/hoardeR | R | false | false | 577 | rd | \docType{data}
\name{species}
\alias{species}
\title{Available species at NCBI}
\format{A data frame with 348 species.}
\source{
As downloaded on 05.10.2016 from
ftp://ftp.ncbi.nlm.nih.gov/genomes/
}
\description{
This is a list of all organisms/species that are provided by NCBI and hence could end up in the Blast run... |
\name{multinomss-package}
\alias{multinomss-package}
\alias{multinomss}
\docType{package}
\title{\packageTitle{multinomss}}
\description{\packageDescription{multinomss}}
\section{Package Content}{\packageIndices{multinomss}}
\author{\packageAuthor{multinomss}}
\section{Maintainer}{\packageMaintainer{multinomss}}
\keywo... | /man/multinomss-package.Rd | no_license | Dillonicus/multinomss | R | false | false | 332 | rd | \name{multinomss-package}
\alias{multinomss-package}
\alias{multinomss}
\docType{package}
\title{\packageTitle{multinomss}}
\description{\packageDescription{multinomss}}
\section{Package Content}{\packageIndices{multinomss}}
\author{\packageAuthor{multinomss}}
\section{Maintainer}{\packageMaintainer{multinomss}}
\keywo... |
# Generated by cpp11: do not edit by hand
svglite_ <- function(file, bg, width, height, pointsize, standalone, aliases, webfonts, id, fix_text_size, scaling, always_valid) {
.Call("_svglite_svglite_", file, bg, width, height, pointsize, standalone, aliases, webfonts, id, fix_text_size, scaling, always_valid)
}
svgs... | /R/cpp11.R | no_license | hrbrmstr/svglite | R | false | false | 637 | r | # Generated by cpp11: do not edit by hand
svglite_ <- function(file, bg, width, height, pointsize, standalone, aliases, webfonts, id, fix_text_size, scaling, always_valid) {
.Call("_svglite_svglite_", file, bg, width, height, pointsize, standalone, aliases, webfonts, id, fix_text_size, scaling, always_valid)
}
svgs... |
library(model4you)
### Name: survreg_plot
### Title: Survival plot for a given survreg model with one binary
### covariate.
### Aliases: survreg_plot
### ** Examples
if(require("survival")) {
survreg_plot(survreg(Surv(futime, fustat) ~ factor(rx), ovarian))
}
| /data/genthat_extracted_code/model4you/examples/survreg_plot.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 272 | r | library(model4you)
### Name: survreg_plot
### Title: Survival plot for a given survreg model with one binary
### covariate.
### Aliases: survreg_plot
### ** Examples
if(require("survival")) {
survreg_plot(survreg(Surv(futime, fustat) ~ factor(rx), ovarian))
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphtopnwords.R
\name{graphtopnwords}
\alias{graphtopnwords}
\title{graphtopnwords, a function which combines mostwords & finalfunc
which return result in graph}
\arguments{
\item{data}{graphtopnwords(data, n)}
}
\value{
data frame
}
\descri... | /man/graphtopnwords.Rd | no_license | gohcassa/MATH513-Report | R | false | true | 413 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphtopnwords.R
\name{graphtopnwords}
\alias{graphtopnwords}
\title{graphtopnwords, a function which combines mostwords & finalfunc
which return result in graph}
\arguments{
\item{data}{graphtopnwords(data, n)}
}
\value{
data frame
}
\descri... |
function(input, output, session) {
mean = reactive({
df = as.numeric(input$mean)
return(df)
})
sd = reactive({
df = as.numeric(input$sd)
return(df)
})
room1 = reactive({
df = as.numeric(input$room1)
return(df)
... | /server.R | no_license | WilliamStaudenmeier/Hospital_Utilization_App | R | false | false | 8,607 | r | function(input, output, session) {
mean = reactive({
df = as.numeric(input$mean)
return(df)
})
sd = reactive({
df = as.numeric(input$sd)
return(df)
})
room1 = reactive({
df = as.numeric(input$room1)
return(df)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myR.app.R
\name{myR.app}
\alias{myR.app}
\title{Interface Point-Click do myR}
\usage{
myR.app()
}
\description{
Abre uma interface para se utilizar as funcoes disponiveis no pacote.
}
\examples{
myR.app()
}
\author{
Brunno Bi... | /myR/man/myR.app.Rd | no_license | brunnothadeu/myR_package | R | false | true | 334 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myR.app.R
\name{myR.app}
\alias{myR.app}
\title{Interface Point-Click do myR}
\usage{
myR.app()
}
\description{
Abre uma interface para se utilizar as funcoes disponiveis no pacote.
}
\examples{
myR.app()
}
\author{
Brunno Bi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_geom.R
\name{GC_function}
\alias{GC_function}
\title{GC covariance function}
\usage{
GC_function(z, c)
}
\arguments{
\item{z}{is a distance}
\item{c}{the support half-length}
}
\description{
correlation function from Gaspari & Coh 1999... | /man/GC_function.Rd | no_license | robertsy/assimilr | R | false | true | 412 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_geom.R
\name{GC_function}
\alias{GC_function}
\title{GC covariance function}
\usage{
GC_function(z, c)
}
\arguments{
\item{z}{is a distance}
\item{c}{the support half-length}
}
\description{
correlation function from Gaspari & Coh 1999... |
args <- commandArgs(TRUE)
pid = args[1]
spe = args[2]
fc = args[3]
require("pathview")
dat = read.table(file=fc, header=T, row.names="id")
mat = as.matrix(dat)
pv.out2 <- pathview(gene.data = mat[, 1], pathway.id = pid, species = spe, out.suffix = "origin", kegg.native = T)
pv.out2 <- pathview(gene.data = mat[, 1], ... | /pathway/drawPathwayWithFC.r | no_license | zhoujj2013/jjUtil | R | false | false | 408 | r | args <- commandArgs(TRUE)
pid = args[1]
spe = args[2]
fc = args[3]
require("pathview")
dat = read.table(file=fc, header=T, row.names="id")
mat = as.matrix(dat)
pv.out2 <- pathview(gene.data = mat[, 1], pathway.id = pid, species = spe, out.suffix = "origin", kegg.native = T)
pv.out2 <- pathview(gene.data = mat[, 1], ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pairwise_any_test_DA INCLUDERE.R
\name{pairwise.any.test}
\alias{pairwise.any.test}
\title{pairwise.any.test with post hoc correction. Multivariate output is allowed. The results are stored in the third dimension of the array.}
\usage{
pairwi... | /man/pairwise.any.test.Rd | no_license | livioivil/r41sqrt10 | R | false | true | 936 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pairwise_any_test_DA INCLUDERE.R
\name{pairwise.any.test}
\alias{pairwise.any.test}
\title{pairwise.any.test with post hoc correction. Multivariate output is allowed. The results are stored in the third dimension of the array.}
\usage{
pairwi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.