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 |
|---|---|---|---|---|---|---|---|---|---|
load.project <- function()
{
source('lib/boot.R')
}
| /R/load.project.R | no_license | josecarlosgonz/ProjectTemplate | R | false | false | 54 | r | load.project <- function()
{
source('lib/boot.R')
}
|
library(KSD)
# Slice Sampler, sample by row, use rapid-exploring random tree
glrm_sampler_stein <-
function(Y, lambda, family_name,
init, config, rec, info,
# whether visualize tree when dim = 2
visual_2d = FALSE){
# unpack family properties
n_particle <- config$sampler$n_p... | /Archive/func/sampler/stein.R | no_license | jereliu/BELA | R | false | false | 5,456 | r | library(KSD)
# Slice Sampler, sample by row, use rapid-exploring random tree
glrm_sampler_stein <-
function(Y, lambda, family_name,
init, config, rec, info,
# whether visualize tree when dim = 2
visual_2d = FALSE){
# unpack family properties
n_particle <- config$sampler$n_p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loo.R
\name{loo_helper}
\alias{loo_helper}
\title{Leave-m-out estimation}
\usage{
loo_helper(
data,
var,
loo_n = 1,
loo_fun = function(dat) estimatr::tidy(estimatr::lm_robust(data = dat, formula = mpg
~ 1)),
parallel = FALSE
)
}... | /man/loo_helper.Rd | no_license | gerasy1987/usefulr | R | false | true | 661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loo.R
\name{loo_helper}
\alias{loo_helper}
\title{Leave-m-out estimation}
\usage{
loo_helper(
data,
var,
loo_n = 1,
loo_fun = function(dat) estimatr::tidy(estimatr::lm_robust(data = dat, formula = mpg
~ 1)),
parallel = FALSE
)
}... |
# Download and zip to file
if (!file.exists("data")) {dir.create("data")}
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("./data/assign2.csv")) {
download.file(fileURL, destfile="./data/assign2.zip")
}
zipfile <- "./data/assign2.zip"
unzip(zipfi... | /plot3.R | no_license | optisizer/ExData_Plotting1 | R | false | false | 1,249 | r | # Download and zip to file
if (!file.exists("data")) {dir.create("data")}
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
if (!file.exists("./data/assign2.csv")) {
download.file(fileURL, destfile="./data/assign2.zip")
}
zipfile <- "./data/assign2.zip"
unzip(zipfi... |
library(micropan)
### Name: prodigal
### Title: Gene predictions using Prodigal
### Aliases: prodigal
### ** Examples
## Not run:
##D # This example requires the external Prodigal software
##D # Using a genome file in this package
##D xpth <- file.path(path.package("micropan"),"extdata")
##D genome.file <- file.pa... | /data/genthat_extracted_code/micropan/examples/prodigal.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 824 | r | library(micropan)
### Name: prodigal
### Title: Gene predictions using Prodigal
### Aliases: prodigal
### ** Examples
## Not run:
##D # This example requires the external Prodigal software
##D # Using a genome file in this package
##D xpth <- file.path(path.package("micropan"),"extdata")
##D genome.file <- file.pa... |
library(evt0)
### Name: otherPORT.q
### Title: Other peaks over random threshold high quantile estimate
### Aliases: otherPORT.q
### Keywords: PORT moment generalized Hill mixed moment VaR
### ** Examples
# generate random samples
x = rfrechet(50000, loc = 0, scale = 1,shape = 1/0.5)
# estimate PORT... | /data/genthat_extracted_code/evt0/examples/otherPORT.q.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 398 | r | library(evt0)
### Name: otherPORT.q
### Title: Other peaks over random threshold high quantile estimate
### Aliases: otherPORT.q
### Keywords: PORT moment generalized Hill mixed moment VaR
### ** Examples
# generate random samples
x = rfrechet(50000, loc = 0, scale = 1,shape = 1/0.5)
# estimate PORT... |
#Credit to Don Rude
# Some color functions
mygrey=function(x){
# Input: a (vector full of a) continuous variable
# Output: Gray colors 1:1 for data. low value are white, high values are black
grey( (x-max(x)) / min(x-max(x)) )
}
mycols=function(x){
# Input: a (vector full of a) continuous variable
# Output: Blue... | /Data Analysis/aerojet-functions.r | no_license | tmpsrcrepo/undergradThesis | R | false | false | 10,834 | r | #Credit to Don Rude
# Some color functions
mygrey=function(x){
# Input: a (vector full of a) continuous variable
# Output: Gray colors 1:1 for data. low value are white, high values are black
grey( (x-max(x)) / min(x-max(x)) )
}
mycols=function(x){
# Input: a (vector full of a) continuous variable
# Output: Blue... |
pdf("outAll.pdf")
data<-read.csv("outR.csv")
SI<-6 #Scale Needs to be >4, since 2 for the '|' 1 for the triangles, and at least 1 for blank space.
scaffold<-data[,1] #All the scaffold names
pos<-data[,2]/1000 #pos in kb.
type<-data[,3] #Code for the type of data "HAP" for haplotype call (0/1) "BAD" fo... | /graphoutR.R | no_license | matthew-ackerman/PHASESPERM | R | false | false | 2,010 | r |
pdf("outAll.pdf")
data<-read.csv("outR.csv")
SI<-6 #Scale Needs to be >4, since 2 for the '|' 1 for the triangles, and at least 1 for blank space.
scaffold<-data[,1] #All the scaffold names
pos<-data[,2]/1000 #pos in kb.
type<-data[,3] #Code for the type of data "HAP" for haplotype call (0/1) "BAD" fo... |
library(shiny)
library(scales)
#OPTION 2: try and redo what was done in step 3.
# do first: dropdown with district, and recidivism response (A sort of intro)
# fluid row grid example instead of side
# At end have a simple recidivism plot with all of the factors involved.
########### do this for a select all opti... | /ui.R | no_license | holma198/Iowa-Recidivism-Data--Shiny-App- | R | false | false | 14,904 | r | library(shiny)
library(scales)
#OPTION 2: try and redo what was done in step 3.
# do first: dropdown with district, and recidivism response (A sort of intro)
# fluid row grid example instead of side
# At end have a simple recidivism plot with all of the factors involved.
########### do this for a select all opti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggsurv.R
\name{ggsurv}
\alias{ggsurv}
\title{Survival curves with ggplot2}
\usage{
ggsurv(s, CI = "def", plot.cens = TRUE, surv.col = "gg.def",
cens.col = "gg.def", lty.est = 1, lty.ci = 2, size.est = 0.5,
size.ci = size.est, cens.size = ... | /man/ggsurv.Rd | no_license | cpsievert/ggally | R | false | true | 3,422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggsurv.R
\name{ggsurv}
\alias{ggsurv}
\title{Survival curves with ggplot2}
\usage{
ggsurv(s, CI = "def", plot.cens = TRUE, surv.col = "gg.def",
cens.col = "gg.def", lty.est = 1, lty.ci = 2, size.est = 0.5,
size.ci = size.est, cens.size = ... |
library(caret)
library(earth)
data_raw = iris
trainRowNumbers = createDataPartition(data_raw$Species, p = 0.8, list = FALSE)
trainData = data_raw[trainRowNumbers, ]
testData = data_raw[-trainRowNumbers, ]
model = train(Species ~. , data = trainData, method = 'rf')
predictedData = predict(model, testData)
sum(predic... | /Basic.r | no_license | DevFallingstudy/R-study | R | false | false | 359 | r | library(caret)
library(earth)
data_raw = iris
trainRowNumbers = createDataPartition(data_raw$Species, p = 0.8, list = FALSE)
trainData = data_raw[trainRowNumbers, ]
testData = data_raw[-trainRowNumbers, ]
model = train(Species ~. , data = trainData, method = 'rf')
predictedData = predict(model, testData)
sum(predic... |
### R code from vignette source 'Input_format.Rnw'
| /data/genthat_extracted_code/BlockFeST/vignettes/Input_format.R | no_license | surayaaramli/typeRrh | R | false | false | 52 | r | ### R code from vignette source 'Input_format.Rnw'
|
library(flam)
### Name: flam-package
### Title: Fit the Fused Lasso Additive Model
### Aliases: flam-package
### Keywords: package
### ** Examples
#general example illustrating all functions
#see specific function help pages for details of using each function
#generate data
set.seed(1)
data <- sim.data(n = 50, sce... | /data/genthat_extracted_code/flam/examples/flam-package.rd.R | no_license | surayaaramli/typeRrh | R | false | false | 3,573 | r | library(flam)
### Name: flam-package
### Title: Fit the Fused Lasso Additive Model
### Aliases: flam-package
### Keywords: package
### ** Examples
#general example illustrating all functions
#see specific function help pages for details of using each function
#generate data
set.seed(1)
data <- sim.data(n = 50, sce... |
"Err.LOE" <-
function(X, ADM,c=1){
p <- nrow(X)
return(Objt.LOE(vecx=as.vector(X), adm=ADM,P=p,C=c))
}
| /loe/R/Err.LOE.R | no_license | ingted/R-Examples | R | false | false | 126 | r | "Err.LOE" <-
function(X, ADM,c=1){
p <- nrow(X)
return(Objt.LOE(vecx=as.vector(X), adm=ADM,P=p,C=c))
}
|
## =========================================
##
## MUNGE DATA: Subset and Clean data
##
## =========================================
# remove every object in the environment
rm(list = ls())
##******************************************************************************************************************************... | /Projects/pai_analysis/archive/pai_recipe_matrix.R | no_license | mtejas88/esh | R | false | false | 96,271 | r | ## =========================================
##
## MUNGE DATA: Subset and Clean data
##
## =========================================
# remove every object in the environment
rm(list = ls())
##******************************************************************************************************************************... |
DeMixT_S1 <- function (data.Y, data.comp1, data.comp2 = NULL, niter = 10,
nbin = 50, if.filter = FALSE, ngene.selected.for.pi = 250,
mean.diff.in.CM = 0.25, tol = 10^(-5), nthread = parallel::detectCores() -
1)
{
filter.option = 1
filter.sd = 0.5
data.Y <- SummarizedExperiment:... | /DeMixT_1.2.1/R/DeMixT_S1.R | no_license | wwylab/DeMixTallmaterials | R | false | false | 8,193 | r | DeMixT_S1 <- function (data.Y, data.comp1, data.comp2 = NULL, niter = 10,
nbin = 50, if.filter = FALSE, ngene.selected.for.pi = 250,
mean.diff.in.CM = 0.25, tol = 10^(-5), nthread = parallel::detectCores() -
1)
{
filter.option = 1
filter.sd = 0.5
data.Y <- SummarizedExperiment:... |
setwd("C:\\Users\\Mahesha\\Desktop\\Desktop\\Data_Science\\Courseera\\R programming\\Assignment-3")
list.files()
# helper function for getting the hospital name
helper <- function(data, col_num, state) {
state_subset <- data[data[, 7]==state, ]
outcome_arr <- state_subset[, col_num]
min <-... | /best.R | no_license | Mahesha1234/R-Programming-Assignment3 | R | false | false | 2,155 | r | setwd("C:\\Users\\Mahesha\\Desktop\\Desktop\\Data_Science\\Courseera\\R programming\\Assignment-3")
list.files()
# helper function for getting the hospital name
helper <- function(data, col_num, state) {
state_subset <- data[data[, 7]==state, ]
outcome_arr <- state_subset[, col_num]
min <-... |
\name{rsu.sssep.rsfreecalc}
\alias{rsu.sssep.rsfreecalc}
\title{
Sample size to achieve a desired surveillance system sensitivity to detect disease at a specified design prevalence assuming representative sampling, imperfect unit sensitivity and specificity
}
\description{
Calculates the sample size to achieve a des... | /epiR/man/rsu.sssep.rsfreecalc.Rd | no_license | albrizre/spatstat.revdep | R | false | false | 4,951 | rd | \name{rsu.sssep.rsfreecalc}
\alias{rsu.sssep.rsfreecalc}
\title{
Sample size to achieve a desired surveillance system sensitivity to detect disease at a specified design prevalence assuming representative sampling, imperfect unit sensitivity and specificity
}
\description{
Calculates the sample size to achieve a des... |
# RS <- data.frame(INCIDENT_NUMBER=character(), FIRST_STATION=character(), SECOND_STATION=character(), THIRD_STATION=character(), FIRST_APPARATUS=character(), SECOND_APPARATUS=character(), THIRD_APPARATUS=character())
counter <- 0
for(i in I$INCIDENT_NUMBER[nchar(I$INCIDENT_NUMBER) == 9 & !I$INCIDENT_NUMBER %in% RS$... | /r/parse-RU.R | no_license | gffryclrk/toronto.fire.incident.data | R | false | false | 2,405 | r | # RS <- data.frame(INCIDENT_NUMBER=character(), FIRST_STATION=character(), SECOND_STATION=character(), THIRD_STATION=character(), FIRST_APPARATUS=character(), SECOND_APPARATUS=character(), THIRD_APPARATUS=character())
counter <- 0
for(i in I$INCIDENT_NUMBER[nchar(I$INCIDENT_NUMBER) == 9 & !I$INCIDENT_NUMBER %in% RS$... |
#!/usr/bin/env Rscript
if (!require("pacman")) install.packages("pacman")
pacman::p_load(ggplot2)
bfe = read.csv('Beijing_BFE_N10K-90K_E2-10.csv',header = F)
pbfe = read.csv('Beijing_PBFE3_N10K-100K_E2-10.csv',header = F)
bfe = bfe[,c(1,2,3,5)]
pbfe = pbfe[,c(1,2,3,6)]
n = c('Algorithm', 'Epsilon', 'N', 'Time')
name... | /Docs/Slides/Feb0119/Figures/Maximal/plotsBeijing.R | no_license | aocalderon/Research | R | false | false | 1,285 | r | #!/usr/bin/env Rscript
if (!require("pacman")) install.packages("pacman")
pacman::p_load(ggplot2)
bfe = read.csv('Beijing_BFE_N10K-90K_E2-10.csv',header = F)
pbfe = read.csv('Beijing_PBFE3_N10K-100K_E2-10.csv',header = F)
bfe = bfe[,c(1,2,3,5)]
pbfe = pbfe[,c(1,2,3,6)]
n = c('Algorithm', 'Epsilon', 'N', 'Time')
name... |
## load individual-level model (DEB and phyto, differential equations)
submodel <- daphnia_deb_phyto()
## test one outer step alone
m <- sim(submodel)
out(m)
### load individual-based model (IBM, discrete, population dynamics)
deb_ibm <- daphnia_deb_ibm()
initfunc(deb_ibm) <- function(obj) {
p <- as.list(parms(obj)... | /inst/daphnia/R/deb_ibm.R | no_license | AlfonsoRReyes/omexdia | R | false | false | 2,108 | r | ## load individual-level model (DEB and phyto, differential equations)
submodel <- daphnia_deb_phyto()
## test one outer step alone
m <- sim(submodel)
out(m)
### load individual-based model (IBM, discrete, population dynamics)
deb_ibm <- daphnia_deb_ibm()
initfunc(deb_ibm) <- function(obj) {
p <- as.list(parms(obj)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lolliplot.R
\name{lolliplot}
\alias{lolliplot}
\title{Construct a lolliplot}
\usage{
lolliplot(x, y = NULL, z = NULL, fillCol = NULL, labelCol = NULL,
txtAngle = 45, txtSize = 5, pntSize = 4, proteinColour = "#999999",
obsA.rep.fact = 500... | /man/lolliplot.Rd | permissive | pradyumnasagar/GenVisR | R | false | true | 8,316 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lolliplot.R
\name{lolliplot}
\alias{lolliplot}
\title{Construct a lolliplot}
\usage{
lolliplot(x, y = NULL, z = NULL, fillCol = NULL, labelCol = NULL,
txtAngle = 45, txtSize = 5, pntSize = 4, proteinColour = "#999999",
obsA.rep.fact = 500... |
\name{fitted}
\alias{fitted.jointModel}
\title{Fitted Values for Joint Models}
\description{
Calculates fitted values for joint models.
}
\usage{
\method{fitted}{jointModel}(object, process = c("Longitudinal", "Event"),
type = c("Marginal", "Subject", "EventTime", "Slope"), scale = c("survival",
"cumulative-Haz... | /man/fitted.Rd | no_license | DocEd/JM | R | false | false | 4,178 | rd | \name{fitted}
\alias{fitted.jointModel}
\title{Fitted Values for Joint Models}
\description{
Calculates fitted values for joint models.
}
\usage{
\method{fitted}{jointModel}(object, process = c("Longitudinal", "Event"),
type = c("Marginal", "Subject", "EventTime", "Slope"), scale = c("survival",
"cumulative-Haz... |
## Install ML FLow from CRAN, and carrier as well
install.packages('mlflow')
install.packages('carrier')
## Load the library and others we need for the notebook
library(mlflow)
library(DBI)
library(MASS)
library(SparkR)
library(glmnet)
library(randomForest)
library(carrier)
library(caret)
## Complete the installation... | /randomForest_model/sample_rf.R | no_license | chriscwmoon/mlflow_R_deployment_demo | R | false | false | 1,960 | r | ## Install ML FLow from CRAN, and carrier as well
install.packages('mlflow')
install.packages('carrier')
## Load the library and others we need for the notebook
library(mlflow)
library(DBI)
library(MASS)
library(SparkR)
library(glmnet)
library(randomForest)
library(carrier)
library(caret)
## Complete the installation... |
library(tidyverse)
library(caret)
output_directory <- file.path(getwd(),'18.2')
data(oil)
answer <- caret::filterVarImp(fattyAcids,oilType) %>%
rownames_to_column %>%
rename(predictor = 'rowname') %>%
gather(key = oiltype, value = value, -predictor) %>%
ggplot(aes(x = predictor, y = value, colour = oiltype, ... | /chapter-18/18.2/oil.r | no_license | a-bird-of-paradise/APM | R | false | false | 547 | r | library(tidyverse)
library(caret)
output_directory <- file.path(getwd(),'18.2')
data(oil)
answer <- caret::filterVarImp(fattyAcids,oilType) %>%
rownames_to_column %>%
rename(predictor = 'rowname') %>%
gather(key = oiltype, value = value, -predictor) %>%
ggplot(aes(x = predictor, y = value, colour = oiltype, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{BackendSSLPolicy}
\alias{BackendSSLPolicy}
\title{BackendSSLPolicy Object}
\usage{
BackendSSLPolicy(pinnedPeerCertificates = NULL)
}
\arguments{
\item{pinnedPeerCertificates}{List of PEM-encoded peer certificates, from... | /googlecomputealpha.auto/man/BackendSSLPolicy.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 595 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_objects.R
\name{BackendSSLPolicy}
\alias{BackendSSLPolicy}
\title{BackendSSLPolicy Object}
\usage{
BackendSSLPolicy(pinnedPeerCertificates = NULL)
}
\arguments{
\item{pinnedPeerCertificates}{List of PEM-encoded peer certificates, from... |
#web scraping from iproperty website
#data scrapped on 8th May 2021
setwd("/users/n2n/RWorkingDirectory/WQD7004")
packageDescription("rvest")
packageDescription("curl")
#install.packages("selectr")
#install.packages("xml2")
#install.packages("rvest")
#install.packages("curl")
#library(rvest)
library(dplyr)
library(s... | /R codes/web_scraping_script.R | no_license | thinzaroo/wqd7004_group_project | R | false | false | 4,119 | r | #web scraping from iproperty website
#data scrapped on 8th May 2021
setwd("/users/n2n/RWorkingDirectory/WQD7004")
packageDescription("rvest")
packageDescription("curl")
#install.packages("selectr")
#install.packages("xml2")
#install.packages("rvest")
#install.packages("curl")
#library(rvest)
library(dplyr)
library(s... |
library(ape)
testtree <- read.tree("11729_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11729_0_unrooted.txt") | /codeml_files/newick_trees_processed/11729_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("11729_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="11729_0_unrooted.txt") |
\name{binom.lrt}
\alias{binom.lrt}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Binomial confidence intervals using the lrt likelihood}
\description{
Uses the lrt likelihood on the observed
proportion to construct confidence intervals.
}
\usage{
binom.lrt(x, n, conf.level = 0.95, bayes = FA... | /man/binom.lrt.Rd | no_license | cran/binom | R | false | false | 2,825 | rd | \name{binom.lrt}
\alias{binom.lrt}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Binomial confidence intervals using the lrt likelihood}
\description{
Uses the lrt likelihood on the observed
proportion to construct confidence intervals.
}
\usage{
binom.lrt(x, n, conf.level = 0.95, bayes = FA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{scaled_inv_chisq_E_log}
\alias{scaled_inv_chisq_E_log}
\title{Scaled Inverse Chi squared E[log(x)]}
\usage{
scaled_inv_chisq_E_log(nu, tau)
}
\arguments{
\item{nu}{shape}
\item{tau}{scale}
}
\description{
Calculate E[log(... | /man/scaled_inv_chisq_E_log.Rd | no_license | jatotterdell/varapproxr | R | false | true | 363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{scaled_inv_chisq_E_log}
\alias{scaled_inv_chisq_E_log}
\title{Scaled Inverse Chi squared E[log(x)]}
\usage{
scaled_inv_chisq_E_log(nu, tau)
}
\arguments{
\item{nu}{shape}
\item{tau}{scale}
}
\description{
Calculate E[log(... |
data <- read.csv("data/VA-OHE-NVHER_01242017.csv", stringsAsFactors = FALSE)
| /Final-Project/ex.r | permissive | getachew67/Info201-6 | R | false | false | 77 | r | data <- read.csv("data/VA-OHE-NVHER_01242017.csv", stringsAsFactors = FALSE)
|
\name{KMC}
\alias{KMC}
\title{Charge Transport Simulation}
\description{Performs a kinetic Monte Carlo (KMC) simulation to propagate a single charge carrier within a given percolation network. Either the Bortz-Kalos-Lebowitz (BKL) or the First Reaction Method (FRM) algorithm can be used to propagate the charge carrier.... | /man/KMC.Rd | no_license | khatiaxomiya/ChargeTransport | R | false | false | 7,587 | rd | \name{KMC}
\alias{KMC}
\title{Charge Transport Simulation}
\description{Performs a kinetic Monte Carlo (KMC) simulation to propagate a single charge carrier within a given percolation network. Either the Bortz-Kalos-Lebowitz (BKL) or the First Reaction Method (FRM) algorithm can be used to propagate the charge carrier.... |
# # The purpose of this script is to create a data object (dto) which will hold all data and metadata.
# # Run the lines below to stitch a basic html output.
# knitr::stitch_rmd(
# script="./manipulation/map2016/Level1_models_full_workingmem.R",
# output="./manipulation/map2016/output/level1_models_wm_full.md"
# )
... | /manipulation/lasa2016/3-explore-pred.R | no_license | beccav8/psy564_longitudinal_models | R | false | false | 15,326 | r | # # The purpose of this script is to create a data object (dto) which will hold all data and metadata.
# # Run the lines below to stitch a basic html output.
# knitr::stitch_rmd(
# script="./manipulation/map2016/Level1_models_full_workingmem.R",
# output="./manipulation/map2016/output/level1_models_wm_full.md"
# )
... |
# Project descriptives --------------------------------------------------------
#
# Description: get basic project descriptives for sanity checks
# Last update: 6/03/2019
#
# -----------------------------------------------------------------------------
# Source libs ---------------------------------------------------... | /scripts/03_project_descriptives_use_prof.R | no_license | laurafdeza/Dissertation | R | false | false | 7,844 | r | # Project descriptives --------------------------------------------------------
#
# Description: get basic project descriptives for sanity checks
# Last update: 6/03/2019
#
# -----------------------------------------------------------------------------
# Source libs ---------------------------------------------------... |
#' @title Generate interactive grob polygons
#' @description This function can be used to generate interactive grob
#' polygons.
#'
#' @inheritParams grid::polygonGrob
#' @param tooltip tooltip associated with polygons
#' @param onclick javascript action to execute when polygon is clicked
#' @param data_id identifiers ... | /R/interactive_polygon_grob.R | no_license | iMarcello/ggiraph | R | false | false | 1,774 | r | #' @title Generate interactive grob polygons
#' @description This function can be used to generate interactive grob
#' polygons.
#'
#' @inheritParams grid::polygonGrob
#' @param tooltip tooltip associated with polygons
#' @param onclick javascript action to execute when polygon is clicked
#' @param data_id identifiers ... |
# Creates a bar graph that indicates genes with multiple functions
tabl <- read.table("FunctionCount.csv",sep = ",", header = TRUE)
barplot(tabl$FunctionCount, names.arg = tabl$Gene, las=2, main = "Versatile Genes!",horiz = TRUE, xlab = "Number Of Functions", col = c("cadetblue3"))
| /MakeBar4FuncCount.R | no_license | rkchudha/BioHacks | R | false | false | 292 | r | # Creates a bar graph that indicates genes with multiple functions
tabl <- read.table("FunctionCount.csv",sep = ",", header = TRUE)
barplot(tabl$FunctionCount, names.arg = tabl$Gene, las=2, main = "Versatile Genes!",horiz = TRUE, xlab = "Number Of Functions", col = c("cadetblue3"))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmap_random_sample.R
\name{rmap_random_sample}
\alias{rmap_random_sample}
\title{\code{rmap} and \code{rmap_individual} on a random sample using quantile risk groups}
\usage{
rmap_random_sample(e, t, r, t_star, K, N_bootstraps)
}
\arguments{
... | /man/rmap_random_sample.Rd | no_license | gailg/rmap | R | false | true | 2,699 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmap_random_sample.R
\name{rmap_random_sample}
\alias{rmap_random_sample}
\title{\code{rmap} and \code{rmap_individual} on a random sample using quantile risk groups}
\usage{
rmap_random_sample(e, t, r, t_star, K, N_bootstraps)
}
\arguments{
... |
#####################################################################################################
#
# Expected Revenue
# Xiliang Lin
# Jan, 2017
#
#####################################################################################################
# Settings
rm(list = ls())
coffee_modules = c(1463)
maker_mo... | /Counterfactuals/Revenue.R | no_license | linxiliang/Keurig | R | false | false | 6,384 | r | #####################################################################################################
#
# Expected Revenue
# Xiliang Lin
# Jan, 2017
#
#####################################################################################################
# Settings
rm(list = ls())
coffee_modules = c(1463)
maker_mo... |
setwd("~/Aulas/Projetos/LearningR/manipulacao_dados")
library(dplyr)
load('../dataframes/df_tratado.RData')
# Pipe Operator = %>%
colnames(df)
df_tratado <- df[c('Survived', 'Pclass', 'Sex', 'Age', 'Tarifa')]
df_tratado2 <- df %>%
select(Survived, Pclass, Sex, Age, Tarifa)
hist(df_tratado$Tarifa)
df2 <- df %>... | /manipulacao_dados/pipe_operator.R | no_license | renatolew/LearningR | R | false | false | 1,351 | r | setwd("~/Aulas/Projetos/LearningR/manipulacao_dados")
library(dplyr)
load('../dataframes/df_tratado.RData')
# Pipe Operator = %>%
colnames(df)
df_tratado <- df[c('Survived', 'Pclass', 'Sex', 'Age', 'Tarifa')]
df_tratado2 <- df %>%
select(Survived, Pclass, Sex, Age, Tarifa)
hist(df_tratado$Tarifa)
df2 <- df %>... |
setwd("D:/Mario/Documents/Eye Movements In Programming/emip_dataset/rawdata")
rawdata_156 <- read_tsv("156_rawdata.tsv", comment = "#")
rawdata_156 <- rename(rawdata_156, trial = Trial)
rawdata_156 <- rename(rawdata_156, x = 'L POR X [px]')
rawdata_156 <- rename(rawdata_156, y = 'L POR Y [px]')
rawdata_156 <- rawdat... | /scripts/plots/Java2/Incorrect/156/156.R | no_license | seminariosuacj/EyeTracking | R | false | false | 1,817 | r | setwd("D:/Mario/Documents/Eye Movements In Programming/emip_dataset/rawdata")
rawdata_156 <- read_tsv("156_rawdata.tsv", comment = "#")
rawdata_156 <- rename(rawdata_156, trial = Trial)
rawdata_156 <- rename(rawdata_156, x = 'L POR X [px]')
rawdata_156 <- rename(rawdata_156, y = 'L POR Y [px]')
rawdata_156 <- rawdat... |
library(scholar)
### Name: get_profile
### Title: Gets profile information for a scholar
### Aliases: get_profile
### ** Examples
{
## Gets profiles of some famous physicists
ids <- c("xJaxiEEAAAAJ", "qj74uXkAAAAJ")
profiles <- lapply(ids, get_profile)
}
| /data/genthat_extracted_code/scholar/examples/get_profile.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 271 | r | library(scholar)
### Name: get_profile
### Title: Gets profile information for a scholar
### Aliases: get_profile
### ** Examples
{
## Gets profiles of some famous physicists
ids <- c("xJaxiEEAAAAJ", "qj74uXkAAAAJ")
profiles <- lapply(ids, get_profile)
}
|
#### Plot 1####
#Loading dependency library
#Set local directory file has been downloaded and unzipped
setwd("C:/Users/User/Desktop/Data Science/Module4/Project1")
#Reading the data file into memory
PowerData <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", nrows= 100000... | /Plot1.R | no_license | tbruban/ExData_Plotting1 | R | false | false | 984 | r | #### Plot 1####
#Loading dependency library
#Set local directory file has been downloaded and unzipped
setwd("C:/Users/User/Desktop/Data Science/Module4/Project1")
#Reading the data file into memory
PowerData <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", nrows= 100000... |
library(tidyverse)
library(here)
library(ggtext)
simpsons <- readr::read_delim("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-08-27/simpsons-guests.csv", delim = "|", quote = "")
sim <- simpsons %>%
# I want no movie
filter(season != "Movie") %>%
# style for highlighted gu... | /2019/2019-week-35/simpsons.R | permissive | gkaramanis/tidytuesday | R | false | false | 1,951 | r | library(tidyverse)
library(here)
library(ggtext)
simpsons <- readr::read_delim("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-08-27/simpsons-guests.csv", delim = "|", quote = "")
sim <- simpsons %>%
# I want no movie
filter(season != "Movie") %>%
# style for highlighted gu... |
context("corr_matrix")
test_that("check corr_matrix", {
nn <- nrow(mtcars)
x1 <- scale_norm(seq_len(nn))
gp1 <- corr_matrix(
X = x1,
beta = 0.9591)
expect_equal(
object = dim(gp1),
expected = c(32L, 32L))
expect_equal(
object = diag(gp1),... | /tests/testthat/test_corr_matrix.R | no_license | cran/GPfit | R | false | false | 2,251 | r |
context("corr_matrix")
test_that("check corr_matrix", {
nn <- nrow(mtcars)
x1 <- scale_norm(seq_len(nn))
gp1 <- corr_matrix(
X = x1,
beta = 0.9591)
expect_equal(
object = dim(gp1),
expected = c(32L, 32L))
expect_equal(
object = diag(gp1),... |
#' @rdname chart.BarVaR
#' @export
charts.BarVaR <-
function (R, main = "Returns", cex.legend = 0.8, colorset=1:12, ylim=NA, ..., perpanel = NULL, show.yaxis = c("all", "firstonly", "alternating", "none"))
{ # @author Peter Carl
# DESCRIPTION:
# A wrapper to create a small multiples of time series bar charts ... | /R/charts.BarVaR.R | no_license | guillermozbta/portafolio-master | R | false | false | 2,733 | r | #' @rdname chart.BarVaR
#' @export
charts.BarVaR <-
function (R, main = "Returns", cex.legend = 0.8, colorset=1:12, ylim=NA, ..., perpanel = NULL, show.yaxis = c("all", "firstonly", "alternating", "none"))
{ # @author Peter Carl
# DESCRIPTION:
# A wrapper to create a small multiples of time series bar charts ... |
gx.md.gait <-
function (xx, wts = NULL, trim = -1, mvtstart = FALSE, mcdstart = FALSE,
main = deparse(substitute(xx)), ifadd = c(0.98, 0.95, 0.9),
cexf = 0.6, cex = 0.8, ...)
{
if (!is.matrix(xx))
stop(" ", deparse(substitute(xx)), " is not a Matrix")
temp.x <- remove.na(xx)
x <... | /rgr/R/gx.md.gait.R | no_license | ingted/R-Examples | R | false | false | 3,014 | r | gx.md.gait <-
function (xx, wts = NULL, trim = -1, mvtstart = FALSE, mcdstart = FALSE,
main = deparse(substitute(xx)), ifadd = c(0.98, 0.95, 0.9),
cexf = 0.6, cex = 0.8, ...)
{
if (!is.matrix(xx))
stop(" ", deparse(substitute(xx)), " is not a Matrix")
temp.x <- remove.na(xx)
x <... |
library(tidyverse)
library(caret)
library(plumberModel)
# -----------------------------------------------------------------------------
# -------------------------- TRAINING -----------------------------------------
# -----------------------------------------------------------------------------
titanic <- read.csv("i... | /doc/examples/titanic.R | no_license | beeva-jorgezaldivar/plumberModel | R | false | false | 1,165 | r | library(tidyverse)
library(caret)
library(plumberModel)
# -----------------------------------------------------------------------------
# -------------------------- TRAINING -----------------------------------------
# -----------------------------------------------------------------------------
titanic <- read.csv("i... |
\name{rtmvt}
\alias{rtmvt}
\title{Sampling Random Numbers From The Truncated Multivariate Student t Distribution}
\description{
This function generates random numbers
from the truncated multivariate Student-t
distribution with mean equal to \code{mean} and covariance matrix
\code{sigma}, lower and upper ... | /man/rtmvt.Rd | no_license | cran/tmvtnorm | R | false | false | 5,610 | rd | \name{rtmvt}
\alias{rtmvt}
\title{Sampling Random Numbers From The Truncated Multivariate Student t Distribution}
\description{
This function generates random numbers
from the truncated multivariate Student-t
distribution with mean equal to \code{mean} and covariance matrix
\code{sigma}, lower and upper ... |
#Merges the training and the test sets to create one data set.
test_set<-read.table('./UCI HAR Dataset/test/X_test.txt')
train_set<-read.table('./UCI HAR Dataset/train/X_train.txt')
set<-rbind(test_set,train_set) # resulting set
act_testset<-read.table('./UCI HAR Dataset/test/y_test.txt')
act_trainset<-read.table('./UC... | /run_analysis.R | no_license | amirzoev/ReadAndCleanData-Assignment | R | false | false | 1,808 | r | #Merges the training and the test sets to create one data set.
test_set<-read.table('./UCI HAR Dataset/test/X_test.txt')
train_set<-read.table('./UCI HAR Dataset/train/X_train.txt')
set<-rbind(test_set,train_set) # resulting set
act_testset<-read.table('./UCI HAR Dataset/test/y_test.txt')
act_trainset<-read.table('./UC... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate.R
\name{is_naics}
\alias{is_naics}
\alias{assert_naics}
\title{Check that a character vector contains valid NAICS codes}
\usage{
is_naics(naics)
assert_naics(naics)
}
\arguments{
\item{naics}{character vector of candidate codes}
}
\... | /man/is_naics.Rd | permissive | jameelalsalam/naicsmatch | R | false | true | 402 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/validate.R
\name{is_naics}
\alias{is_naics}
\alias{assert_naics}
\title{Check that a character vector contains valid NAICS codes}
\usage{
is_naics(naics)
assert_naics(naics)
}
\arguments{
\item{naics}{character vector of candidate codes}
}
\... |
#!/usr/bin/Rscript
require(magrittr)
require(tidyr)
require(dplyr)
require(readr)
set.seed(2017) # for reproducibility
data_path = 'data'
lda_data_path = 'lda_output'
# read users.dat (user bookmarks)
# ------------------------------------------
fn = file.path(data_path, 'users.dat')
cat("reading", fn, "\n")
users ... | /split_data.r | no_license | ICMLRecommender/icml-recommender | R | false | false | 5,124 | r | #!/usr/bin/Rscript
require(magrittr)
require(tidyr)
require(dplyr)
require(readr)
set.seed(2017) # for reproducibility
data_path = 'data'
lda_data_path = 'lda_output'
# read users.dat (user bookmarks)
# ------------------------------------------
fn = file.path(data_path, 'users.dat')
cat("reading", fn, "\n")
users ... |
context("utils")
test_that("cpaste and spaste work as expected", {
expect_equal(cpaste(c("a", "b", "c")), "a\nb\nc")
expect_equal(cpaste(c("a")), "a")
expect_equal(spaste("a", "b", "c"), "a\nb\nc")
expect_equal(spaste("a"), "a")
})
test_that("collapse work as expected", {
expect_equal(collapse(c("a")), "a")... | /tests/testthat/test-utils.R | no_license | ramnathv/tutorial | R | false | false | 773 | r | context("utils")
test_that("cpaste and spaste work as expected", {
expect_equal(cpaste(c("a", "b", "c")), "a\nb\nc")
expect_equal(cpaste(c("a")), "a")
expect_equal(spaste("a", "b", "c"), "a\nb\nc")
expect_equal(spaste("a"), "a")
})
test_that("collapse work as expected", {
expect_equal(collapse(c("a")), "a")... |
library(tidyverse)
library(ISLR)
library(leaps)
library(glmnet)
library(pls)
#Note the interesting result from Exercise 5. Ridge assigns similar coefficient estimates to highly correlated variables whereas LASSO could assign completely different betas
#Question 8 --------------
set.seed(1)
X <- rnorm(100)
eps <- rnor... | /chapter6/chapter6_questions.R | no_license | Stochastic-Squirrel/ISLR_notes | R | false | false | 5,384 | r | library(tidyverse)
library(ISLR)
library(leaps)
library(glmnet)
library(pls)
#Note the interesting result from Exercise 5. Ridge assigns similar coefficient estimates to highly correlated variables whereas LASSO could assign completely different betas
#Question 8 --------------
set.seed(1)
X <- rnorm(100)
eps <- rnor... |
#! /usr/local/bin/RScript
# This is the first bit of random forest analysis. We'll
# 1, get genotypes and replace nas.
# 2, we will choose the mtry value that minimizes the OOB-ER.
library(tidyverse)
library(randomForest)
genos<-read_tsv("outputs/300/202.geno.gz", col_names = FALSE)
#Removing last column and transp... | /400-rf-mtry.R | no_license | MacCampbell/ds-lh | R | false | false | 2,903 | r | #! /usr/local/bin/RScript
# This is the first bit of random forest analysis. We'll
# 1, get genotypes and replace nas.
# 2, we will choose the mtry value that minimizes the OOB-ER.
library(tidyverse)
library(randomForest)
genos<-read_tsv("outputs/300/202.geno.gz", col_names = FALSE)
#Removing last column and transp... |
rm(list = setdiff(ls(), "params"))
homedir <- params$homedir
setwd(homedir)
savedir <- paste(params$opdir,'micekmeans/',sep='')
dir.create(savedir,recursive=T)
source('code/misc/fxns.R')
source('code/misc/plottingfxns.R')
microSample <- read.csv(paste(params$opdir,'processed/microSample.csv',sep=''),stringsAsFactors =... | /code/kmedoids/Imputation.R | permissive | ejcorn/neuropathcluster | R | false | false | 859 | r | rm(list = setdiff(ls(), "params"))
homedir <- params$homedir
setwd(homedir)
savedir <- paste(params$opdir,'micekmeans/',sep='')
dir.create(savedir,recursive=T)
source('code/misc/fxns.R')
source('code/misc/plottingfxns.R')
microSample <- read.csv(paste(params$opdir,'processed/microSample.csv',sep=''),stringsAsFactors =... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{getOptions}
\alias{getOptions}
\title{Generate list of default options}
\usage{
getOptions(sep = "\\t", missing = "NA", rowskip = 1L, colskip = 1L,
slice = 2000L, ...)
}
\arguments{
\item{sep}{Character used to seperate entries in input file.}
\item{missing}... | /man/getOptions.Rd | permissive | IgorHut/mePipe | R | false | false | 719 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{getOptions}
\alias{getOptions}
\title{Generate list of default options}
\usage{
getOptions(sep = "\\t", missing = "NA", rowskip = 1L, colskip = 1L,
slice = 2000L, ...)
}
\arguments{
\item{sep}{Character used to seperate entries in input file.}
\item{missing}... |
##R code to process results and create panels for figure 4
##############################
#gamma
#############################
#Figure 4b - gains related to abundance
# calculate gamma across range of covariate
nIter<-length(jags.out$sims.list$a0)
Ns<-seq(1,6,by=0.1)
gam<-matrix(NA, nrow=nIter, ncol=lengt... | /BDOW_figure4_graphs.R | no_license | ezipkin/Integrated_Count_Occupancy_model-Zipkin-et-al.-Ecology-2017 | R | false | false | 6,598 | r | ##R code to process results and create panels for figure 4
##############################
#gamma
#############################
#Figure 4b - gains related to abundance
# calculate gamma across range of covariate
nIter<-length(jags.out$sims.list$a0)
Ns<-seq(1,6,by=0.1)
gam<-matrix(NA, nrow=nIter, ncol=lengt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/billingconductor_operations.R
\name{billingconductor_delete_pricing_plan}
\alias{billingconductor_delete_pricing_plan}
\title{Deletes a pricing plan}
\usage{
billingconductor_delete_pricing_plan(Arn)
}
\arguments{
\item{Arn}{[required] The Am... | /cran/paws.cost.management/man/billingconductor_delete_pricing_plan.Rd | permissive | paws-r/paws | R | false | true | 642 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/billingconductor_operations.R
\name{billingconductor_delete_pricing_plan}
\alias{billingconductor_delete_pricing_plan}
\title{Deletes a pricing plan}
\usage{
billingconductor_delete_pricing_plan(Arn)
}
\arguments{
\item{Arn}{[required] The Am... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup, message = FALSE---------------------------------------------------
library(anovir)
## ----include = TRUE, warning = FALSE-----------------------------------------... | /inst/doc/worked_examples_II.R | no_license | cran/anovir | R | false | false | 3,585 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----setup, message = FALSE---------------------------------------------------
library(anovir)
## ----include = TRUE, warning = FALSE-----------------------------------------... |
#' Detect Application Dependencies
#'
#' Recursively detect all package dependencies for an application. This function
#' parses all \R files in the application directory to determine what packages
#' the application depends directly.
#'
#' Only direct dependencies are detected (i.e. no recursion is done to find the
#'... | /R/dependencies.R | no_license | wolkym/packrat | R | false | false | 13,465 | r | #' Detect Application Dependencies
#'
#' Recursively detect all package dependencies for an application. This function
#' parses all \R files in the application directory to determine what packages
#' the application depends directly.
#'
#' Only direct dependencies are detected (i.e. no recursion is done to find the
#'... |
# This demo requires the latest development version of the
# shiny package. You can install the latest version using
# the devtools package.
# devtools::install_github("shiny", "rstudio")
library(shiny)
# The only difference from the last demo is the layout.
# https://github.com/rstudio/shiny/wiki/Shiny-Application-La... | /ShinyDemo/demo2/ui.r | no_license | Cindy597/lectures | R | false | false | 2,141 | r | # This demo requires the latest development version of the
# shiny package. You can install the latest version using
# the devtools package.
# devtools::install_github("shiny", "rstudio")
library(shiny)
# The only difference from the last demo is the layout.
# https://github.com/rstudio/shiny/wiki/Shiny-Application-La... |
library(svgR)
library(tidyverse)
WH<-c(600,400)
# We place all items in the same tibble, using a helper function
# to determine which shape to render.
# Thus z-sorting can again be accomplished by simply
# drag and drop the rows
ptR<-list(
x= tribble(
~shape, ~fill, ~points,
'ellipse', 'red',... | /zSortingShapes1/zSortShapes1.R | permissive | mslegrand/pointR-sample-projects | R | false | false | 908 | r | library(svgR)
library(tidyverse)
WH<-c(600,400)
# We place all items in the same tibble, using a helper function
# to determine which shape to render.
# Thus z-sorting can again be accomplished by simply
# drag and drop the rows
ptR<-list(
x= tribble(
~shape, ~fill, ~points,
'ellipse', 'red',... |
# quick/dirty ratio est code from Laurent, applied to IE 2019 data
library(dplyr)
library(ggplot2)
load('IE_2019.RData')
#naive (and probably wrong) ratio estimator
#pop data
wtot<- CL$CL %>%
group_by(time=CLyear,metier=CLmetier6,space=CLarea,spp=CLspeciesCode) %>%
summarise(w=sum(CLofficialWeight))%>%
ungroup... | /Subgroup1/personal/HG/HG Irish data 4S.R | permissive | JoelKos/WKRATIO | R | false | false | 4,473 | r | # quick/dirty ratio est code from Laurent, applied to IE 2019 data
library(dplyr)
library(ggplot2)
load('IE_2019.RData')
#naive (and probably wrong) ratio estimator
#pop data
wtot<- CL$CL %>%
group_by(time=CLyear,metier=CLmetier6,space=CLarea,spp=CLspeciesCode) %>%
summarise(w=sum(CLofficialWeight))%>%
ungroup... |
#Adam Burns - 2/10/2015
#aburns2@uoregon.edu
#From Burns et al. Contribution of neutral processes to the assembly of the gut microbial communities changes over host development
#Fits the neutral model from Sloan et al. 2006 to an OTU table and returns several fitting statistics. Alternatively, will return predicted occ... | /20160719_neutral_model_R.R | no_license | Shairah/Shairah_R_script | R | false | false | 5,422 | r | #Adam Burns - 2/10/2015
#aburns2@uoregon.edu
#From Burns et al. Contribution of neutral processes to the assembly of the gut microbial communities changes over host development
#Fits the neutral model from Sloan et al. 2006 to an OTU table and returns several fitting statistics. Alternatively, will return predicted occ... |
##read data
file <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", colClasses="character")
##select observations for desired dates
file1 <- filter(file, (Date == "1/2/2007" | Date == "2/2/2007"))
##create date/time field in date/time format
file1$Date <- as.Date(file1$D... | /exploratory data analysis course/exdata-data-household_power_consumption/plot2.R | no_license | dmonasg/datasciencecoursera | R | false | false | 733 | r | ##read data
file <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", colClasses="character")
##select observations for desired dates
file1 <- filter(file, (Date == "1/2/2007" | Date == "2/2/2007"))
##create date/time field in date/time format
file1$Date <- as.Date(file1$D... |
if(.Platform$OS.type == "unix") {
setwd("/Volumes/GoogleDrive/My Drive/Research/MCDI/MCDI-analysis/code/Wordbank")
} else {
setwd("G:/My Drive/Research/MCDI/MCDI-analysis/code/Wordbank")
}
library(broom)
library(tidyverse)
library(tidyselect)
library(corrr)
# Plotting functions
# Cite if used in final
library(vir... | /code/Wordbank/wordbank-analysis-WS.R | no_license | TrevorKMDay/MCDI-analysis | R | false | false | 21,278 | r | if(.Platform$OS.type == "unix") {
setwd("/Volumes/GoogleDrive/My Drive/Research/MCDI/MCDI-analysis/code/Wordbank")
} else {
setwd("G:/My Drive/Research/MCDI/MCDI-analysis/code/Wordbank")
}
library(broom)
library(tidyverse)
library(tidyselect)
library(corrr)
# Plotting functions
# Cite if used in final
library(vir... |
#!/usr/bin/Rscript
# Take care while adding print statement as it impacts calculateFragmentation.sh
#Read Command line arguments
args<-commandArgs(TRUE)
inputFile<-args[1]
chartPath<-args[2]
chartName<-args[3]
# Read Fragmentation List
fragTable=read.table(inputFile, header=TRUE)
removeOutliers<-function(fragTable){
... | /src/main/scripts/textprocessing/validation/calculateFragmentationStats.R | no_license | ariyabala/learn | R | false | false | 1,329 | r | #!/usr/bin/Rscript
# Take care while adding print statement as it impacts calculateFragmentation.sh
#Read Command line arguments
args<-commandArgs(TRUE)
inputFile<-args[1]
chartPath<-args[2]
chartName<-args[3]
# Read Fragmentation List
fragTable=read.table(inputFile, header=TRUE)
removeOutliers<-function(fragTable){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{load_template_recursive}
\alias{load_template_recursive}
\title{Load Templates}
\usage{
load_template_recursive(x, sub = get_sub(), main = get_main(),
top = TRUE, subfolder_names = FALSE)
}
\arguments{
\item{x}{The object to sa... | /man/load_template_recursive.Rd | permissive | poissonconsulting/subfoldr | R | false | true | 648 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load.R
\name{load_template_recursive}
\alias{load_template_recursive}
\title{Load Templates}
\usage{
load_template_recursive(x, sub = get_sub(), main = get_main(),
top = TRUE, subfolder_names = FALSE)
}
\arguments{
\item{x}{The object to sa... |
library(tidyverse)
library(ggplot2)
library(ggfortify)
library(plyr)
#Computing log(forward probabilities) for normal distribution
norm.HMM.lforward <- function(x, mod)
{
n <- length(x)
lalpha <- matrix(NA, mod$m, n)
foo <- mod$delta*dnorm(x[1], mod$mu, mod$sigma)
sumfoo <- sum(foo)
lscale <- log... | /Week 6 - Pseudo Residuals.R | no_license | vianeylb/HMMs_Summer2021 | R | false | false | 4,193 | r | library(tidyverse)
library(ggplot2)
library(ggfortify)
library(plyr)
#Computing log(forward probabilities) for normal distribution
norm.HMM.lforward <- function(x, mod)
{
n <- length(x)
lalpha <- matrix(NA, mod$m, n)
foo <- mod$delta*dnorm(x[1], mod$mu, mod$sigma)
sumfoo <- sum(foo)
lscale <- log... |
library(Seurat)
seurat_obj <- readRDS('data/J-Virology/AS_Seurat_Object_JVirol.rds')
| /testing.R | no_license | smorabit/lanelab_shinyapps | R | false | false | 86 | r | library(Seurat)
seurat_obj <- readRDS('data/J-Virology/AS_Seurat_Object_JVirol.rds')
|
###########################################################################
# TimeSeriesLSTM.R
# Time series experiment for LSTM. Network designed based on cross validation and evaluation in LSTMXVal.R. Includes stationarity test.
###########################################################################
library(... | /TimeSeriesLSTM.R | no_license | evelynb7/wtanalytics | R | false | false | 8,560 | r | ###########################################################################
# TimeSeriesLSTM.R
# Time series experiment for LSTM. Network designed based on cross validation and evaluation in LSTMXVal.R. Includes stationarity test.
###########################################################################
library(... |
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19456675285523e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613125270-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 323 | r | testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19456675285523e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(multivariance:::match_rows,testlist)
str(resu... |
#' @title Publish the current balances
#'
#' @description
#' Display a summary of the teaclub finances, compute the amount everyone
#' owes, email everyone, and make a pdf with people's balances
#'
#' @return NULL
#' @author R.J.B. Goudie
#' @param owe_function A function that adds a message column to balance_df for
#'... | /R/publish.R | no_license | rjbgoudie/teaclub | R | false | false | 4,560 | r | #' @title Publish the current balances
#'
#' @description
#' Display a summary of the teaclub finances, compute the amount everyone
#' owes, email everyone, and make a pdf with people's balances
#'
#' @return NULL
#' @author R.J.B. Goudie
#' @param owe_function A function that adds a message column to balance_df for
#'... |
#' Multiplier used to convert shell cross section from pixels to mm
#'
#' A single value of the amount of mm contained in one pixel
#'
#' @docType data
#'
#' @usage data(lengthfactor)
#'
#' @format A single value:
#'
#' \describe{
#' Length in mm of one pixel in the digitized shell cross section
#' }
#' @source \url{h... | /R/lengthfactor.R | no_license | nielsjdewinter/ShellTrace | R | false | false | 383 | r | #' Multiplier used to convert shell cross section from pixels to mm
#'
#' A single value of the amount of mm contained in one pixel
#'
#' @docType data
#'
#' @usage data(lengthfactor)
#'
#' @format A single value:
#'
#' \describe{
#' Length in mm of one pixel in the digitized shell cross section
#' }
#' @source \url{h... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_metadata_for_one_publication.R
\name{scrape_publication}
\alias{scrape_publication}
\title{Scrape metadata for one publication}
\usage{
scrape_publication(url = NULL)
}
\description{
Scrape metadata for one publication
}
| /man/scrape_publication.Rd | no_license | jsphdms/govscot | R | false | true | 303 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_metadata_for_one_publication.R
\name{scrape_publication}
\alias{scrape_publication}
\title{Scrape metadata for one publication}
\usage{
scrape_publication(url = NULL)
}
\description{
Scrape metadata for one publication
}
|
library(fastR2)
### Name: Soap
### Title: Dwindling soap
### Aliases: Soap
### Keywords: datasets
### ** Examples
data(Soap)
gf_point(weight ~ day, data = Soap)
| /data/genthat_extracted_code/fastR2/examples/Soap.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 170 | r | library(fastR2)
### Name: Soap
### Title: Dwindling soap
### Aliases: Soap
### Keywords: datasets
### ** Examples
data(Soap)
gf_point(weight ~ day, data = Soap)
|
\name{find_nn_eps}
\alias{find_nn_eps}
\title{ Find nearest neighbours in epsilon environment.}
\description{ Finds the nearest points for every point in an environment with radius \code{eps}. }
\usage{ find_nn_eps(X, eps) }
\arguments{
\item{X}{ matrix object containing the input data. }
\item{eps... | /man/find_nn_eps.Rd | no_license | cran/lle | R | false | false | 896 | rd | \name{find_nn_eps}
\alias{find_nn_eps}
\title{ Find nearest neighbours in epsilon environment.}
\description{ Finds the nearest points for every point in an environment with radius \code{eps}. }
\usage{ find_nn_eps(X, eps) }
\arguments{
\item{X}{ matrix object containing the input data. }
\item{eps... |
#!/usr/bin/env Rscript
library(optparse)
library(leafcutter)
arguments <- parse_args(OptionParser(usage = "%prog [options] counts_file groups_file cluster_significance_file", description="LeafCutter differential splicing plotting tool. Required inputs:\n <counts_file>: Intron usage counts file. Must be .txt or .txt.gz... | /scripts/ds_plots.R | permissive | davidaknowles/leafcutter_conda | R | false | false | 2,973 | r | #!/usr/bin/env Rscript
library(optparse)
library(leafcutter)
arguments <- parse_args(OptionParser(usage = "%prog [options] counts_file groups_file cluster_significance_file", description="LeafCutter differential splicing plotting tool. Required inputs:\n <counts_file>: Intron usage counts file. Must be .txt or .txt.gz... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{has_tests}
\alias{has_tests}
\title{Was devtools installed with tests?}
\usage{
has_tests()
}
\description{
Was devtools installed with tests?
}
\keyword{internal}
| /man/has_tests.Rd | no_license | kingo55/devtools | R | false | false | 224 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{has_tests}
\alias{has_tests}
\title{Was devtools installed with tests?}
\usage{
has_tests()
}
\description{
Was devtools installed with tests?
}
\keyword{internal}
|
\name{exampletndlin}
\docType{data}
\alias{exampletndlin}
\title{Example numeric vector used internally.}
\description{
This is an example of data that is passed
internally to \code{\link{seawaveQPlots}}. This numeric
vector contains trend coefficients for the water-quality samples.
It is provided here for ... | /seawaveQ/man/exampletndlin.Rd | permissive | kryberg-USGS/seawaveQ | R | false | false | 869 | rd | \name{exampletndlin}
\docType{data}
\alias{exampletndlin}
\title{Example numeric vector used internally.}
\description{
This is an example of data that is passed
internally to \code{\link{seawaveQPlots}}. This numeric
vector contains trend coefficients for the water-quality samples.
It is provided here for ... |
#loading the dataset
setwd("C:/Users/ahilal/Desktop/Explanatory data analytics/Week 1 project/exdata%2Fdata%2Fhousehold_power_consumption")
dataset <- read.csv("household_power_consumption.txt",sep = ";",header = TRUE,stringsAsFactors = FALSE)
#converting to numeric
dataset$Global_active_power <- as.numeric(as.... | /Code 2.R | no_license | Arijhilal/ExData_Plotting1 | R | false | false | 1,820 | r | #loading the dataset
setwd("C:/Users/ahilal/Desktop/Explanatory data analytics/Week 1 project/exdata%2Fdata%2Fhousehold_power_consumption")
dataset <- read.csv("household_power_consumption.txt",sep = ";",header = TRUE,stringsAsFactors = FALSE)
#converting to numeric
dataset$Global_active_power <- as.numeric(as.... |
####################################################################
# Install R library for decision tree
####################################################################
#library(ISLR)
#library(tree)
#attach(Carseats)
library(rpart)
#library(rpart.plot)
#data = read.csv("C:/Users/Merlin Mpoudeu/SkyDrive... | /TwoLayersBackProp.R | no_license | poudas1981/ANN_with_R | R | false | false | 14,442 | r |
####################################################################
# Install R library for decision tree
####################################################################
#library(ISLR)
#library(tree)
#attach(Carseats)
library(rpart)
#library(rpart.plot)
#data = read.csv("C:/Users/Merlin Mpoudeu/SkyDrive... |
1+1
23*pi
3^2
sqrt(24)
2*pi*8
exp(5)
x=1
b=2
c=4
x*b*c
x = c(2,4,5,7)
y = c(2,5,8,9)
x*y
y*7
sqrt(x)
x<-c(2,3,6,4)
x[2]
x[-1]
x[1]<-3
x
x[-1]<-4
x
x[x<9]=2
x
sai<-data.frame(x=1:3, y = c("a","b","c"))
sai
wing=data.frame(name=c("sai","dev","shalom"), sex = c("male","female","trans"),age=c(21,3... | /first.R | no_license | Saiharish-web/datascience-R | R | false | false | 459 | r | 1+1
23*pi
3^2
sqrt(24)
2*pi*8
exp(5)
x=1
b=2
c=4
x*b*c
x = c(2,4,5,7)
y = c(2,5,8,9)
x*y
y*7
sqrt(x)
x<-c(2,3,6,4)
x[2]
x[-1]
x[1]<-3
x
x[-1]<-4
x
x[x<9]=2
x
sai<-data.frame(x=1:3, y = c("a","b","c"))
sai
wing=data.frame(name=c("sai","dev","shalom"), sex = c("male","female","trans"),age=c(21,3... |
#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
tagList(
# Leave this function for adding external resources
golem_add_external_resources(),
# Your application UI logic
fluidPage(
... | /R/app_ui.R | permissive | StoianAndrei/foodchain | R | false | false | 990 | r | #' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
tagList(
# Leave this function for adding external resources
golem_add_external_resources(),
# Your application UI logic
fluidPage(
... |
# This scripts reads in the raw survey data
# performs basic exploration of the raw data
# and stores data tweaks inherited by all subsequent reports
rm(list=ls(all=TRUE)) #Clear the memory of variables from previous run.
cat("\f") # clear console when working in RStudio
# ---- load-sources ----------------------------... | /manipulation/0-greeter-nyclu.R | no_license | dss-hmi/nypd-ccrb-2020 | R | false | false | 1,819 | r | # This scripts reads in the raw survey data
# performs basic exploration of the raw data
# and stores data tweaks inherited by all subsequent reports
rm(list=ls(all=TRUE)) #Clear the memory of variables from previous run.
cat("\f") # clear console when working in RStudio
# ---- load-sources ----------------------------... |
##
## You should create one R script called run_analysis.R that does the following.
## 1. Merges the training and the test sets to create one data set.
## 2. Extracts only the measurements on the mean and standard deviation for each measurement.
## 3. Uses descriptive activity names to name the activities in the data... | /run_analysis.R | no_license | stuthom/getdata-031-courseproject | R | false | false | 4,250 | r | ##
## You should create one R script called run_analysis.R that does the following.
## 1. Merges the training and the test sets to create one data set.
## 2. Extracts only the measurements on the mean and standard deviation for each measurement.
## 3. Uses descriptive activity names to name the activities in the data... |
\name{goalstudy}
\alias{goalstudy}
\docType{data}
\title{Data for the study of the impact of the variety among means on motivation to pursue a goal}
\description{
The study investigated how the perceived variety (high vs. low) among products, as means to a subjects' goal, affects their motivation to pursue that goal.... | /WASeal/Src/Drafts/BANOVA/man/goalstudy.Rd | no_license | mfeddern/WASeal | R | false | false | 3,465 | rd | \name{goalstudy}
\alias{goalstudy}
\docType{data}
\title{Data for the study of the impact of the variety among means on motivation to pursue a goal}
\description{
The study investigated how the perceived variety (high vs. low) among products, as means to a subjects' goal, affects their motivation to pursue that goal.... |
# New function in 2018 used to add names to the output from manova5050(), rotationtests() and unitests()
# and thus all output from ffmanova().
addNames <- function(x, rowNames, colNames = NULL, residNames = "Residuals") {
allTermNames <- c(rowNames, residNames)
for (i in seq_len(length(x))) {
if (is.matrix(x... | /R/addNames.R | no_license | olangsrud/ffmanova | R | false | false | 615 | r |
# New function in 2018 used to add names to the output from manova5050(), rotationtests() and unitests()
# and thus all output from ffmanova().
addNames <- function(x, rowNames, colNames = NULL, residNames = "Residuals") {
allTermNames <- c(rowNames, residNames)
for (i in seq_len(length(x))) {
if (is.matrix(x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\docType{data}
\name{mtcars}
\alias{mtcars}
\title{Prices of 50,000 round cut diamonds.}
\format{A data frame with 53940 rows and 10 variables:
\describe{
\item{price}{price, in US dollars}
\item{carat}{weight of the diamond, ... | /man/mtcars.Rd | no_license | yimengyin16/penSimTools | R | false | true | 516 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\docType{data}
\name{mtcars}
\alias{mtcars}
\title{Prices of 50,000 round cut diamonds.}
\format{A data frame with 53940 rows and 10 variables:
\describe{
\item{price}{price, in US dollars}
\item{carat}{weight of the diamond, ... |
#' print.pepData
#'
#' For printing an S3 object of type 'pepData':
#'
#'@rdname print-pepData
#'@export
#'
print.pepData<- function(pepData){
if(!inherits(pepData, "pepData")) stop("pep_object must be of the class 'pepData'")
e_data<- as.data.frame(lapply(pepData$e_data, as.character), stringsAsFactors = FALS... | /R/print_data_objects.R | no_license | godi678/pmartR | R | false | false | 19,771 | r | #' print.pepData
#'
#' For printing an S3 object of type 'pepData':
#'
#'@rdname print-pepData
#'@export
#'
print.pepData<- function(pepData){
if(!inherits(pepData, "pepData")) stop("pep_object must be of the class 'pepData'")
e_data<- as.data.frame(lapply(pepData$e_data, as.character), stringsAsFactors = FALS... |
data<-read.table("household_power_consumption.txt", sep=";")
subset1<-subset(data, V1== "1/2/2007")
subset2<-subset(data, V1== "2/2/2007")
subsets<-rbind(subset1, subset2)
new_data<-within(subsets, { Date_time=paste(V1, V2) })
new_data_OK<-within(new_data, { Date_time<-strptime(Date_time, format= "%d/%m/%Y %H:%M:%S") }... | /plot2.R | no_license | ElodieCamprasse/ExData_Plotting1 | R | false | false | 574 | r | data<-read.table("household_power_consumption.txt", sep=";")
subset1<-subset(data, V1== "1/2/2007")
subset2<-subset(data, V1== "2/2/2007")
subsets<-rbind(subset1, subset2)
new_data<-within(subsets, { Date_time=paste(V1, V2) })
new_data_OK<-within(new_data, { Date_time<-strptime(Date_time, format= "%d/%m/%Y %H:%M:%S") }... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.9727456314617e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615839387-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.9727456314617e-154, 5.49464572566663e+109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta_... |
DAISIE_IC <- function(datalist,initparsopt,idparsopt,parsfix,idparsfix,endmc = 1000,res = 100,cond = 0,ddmodel = 0)
{
MLE_obs <- DAISIE_ML(
datalist = datalist,
initparsopt = initparsopt,
idparsopt = idparsopt,
parsfix = parsfix,
idparsfix = idparsfix,
idparsnoshift = 6:10,
res = re... | /R/DAISIE_IC.R | no_license | jorismoorkamp/DAISIE | R | false | false | 1,738 | r | DAISIE_IC <- function(datalist,initparsopt,idparsopt,parsfix,idparsfix,endmc = 1000,res = 100,cond = 0,ddmodel = 0)
{
MLE_obs <- DAISIE_ML(
datalist = datalist,
initparsopt = initparsopt,
idparsopt = idparsopt,
parsfix = parsfix,
idparsfix = idparsfix,
idparsnoshift = 6:10,
res = re... |
evNormOrdStatsScalar <-
function (r = 1, n = 1, approximate = FALSE)
{
if (any(length.list(r, n) != 1) || r != trunc(r) || n !=
trunc(n) || r < 1 || n < 1 || r > n)
stop(paste("'r' and 'n' must be positive integers,",
"and 'r' must be between 1 and 'n'"))
if (approximate) ... | /R/evNormOrdStatsScalar.R | no_license | fawda123/EnvStats | R | false | false | 832 | r | evNormOrdStatsScalar <-
function (r = 1, n = 1, approximate = FALSE)
{
if (any(length.list(r, n) != 1) || r != trunc(r) || n !=
trunc(n) || r < 1 || n < 1 || r > n)
stop(paste("'r' and 'n' must be positive integers,",
"and 'r' must be between 1 and 'n'"))
if (approximate) ... |
library(dplyr)
library(tidyverse)
library(caret)
library(MASS)
library(ggplot2)
library(class)
library(gmodels)
library(PerformanceAnalytics)
library(boot)
library(Metrics)
library(plyr)
library(klaR)
library(DAAG)
#install.packages('Metrics')
data <- data.frame(read.delim("C://Users//vnino//Desktop... | /code.R | no_license | danton267/stock_predictions | R | false | false | 10,258 | r | library(dplyr)
library(tidyverse)
library(caret)
library(MASS)
library(ggplot2)
library(class)
library(gmodels)
library(PerformanceAnalytics)
library(boot)
library(Metrics)
library(plyr)
library(klaR)
library(DAAG)
#install.packages('Metrics')
data <- data.frame(read.delim("C://Users//vnino//Desktop... |
# JSON File
install.packages("rjson")
library("rjson")
result <- fromJSON(file = "input.json")
json_data_frame <- as.data.frame(result) # Convert JSON file to a data frame.
| /r/learning/data_interface/json_demo.R | no_license | jk983294/math | R | false | false | 174 | r | # JSON File
install.packages("rjson")
library("rjson")
result <- fromJSON(file = "input.json")
json_data_frame <- as.data.frame(result) # Convert JSON file to a data frame.
|
\name{wvapsat}
\alias{wvapsat}
\title{
Saturation pressure of water vapor
}
\description{
Computes the saturation pressure of water vapour in air over water or ice.
}
\usage{
wvapsat(tempk, ice)
}
\arguments{
\item{tempk}{
Air temperature [K].
}
\item{ice}{
Over water or ice [0,1].
}
}
\value{
Partial pressure of ... | /man/wvapsat.Rd | no_license | cran/insol | R | false | false | 965 | rd | \name{wvapsat}
\alias{wvapsat}
\title{
Saturation pressure of water vapor
}
\description{
Computes the saturation pressure of water vapour in air over water or ice.
}
\usage{
wvapsat(tempk, ice)
}
\arguments{
\item{tempk}{
Air temperature [K].
}
\item{ice}{
Over water or ice [0,1].
}
}
\value{
Partial pressure of ... |
# blocks specified in RTutor
RTutor2.block.types.df = function(...) {
restore.point("RTutor2.block.types.df")
types = c(
"chunk","quiz","award",
"show","notest","show_notest","hint","test","test_arg",
"rmdform"
)
widgets = c("chunk","quiz","award","rmdform")
parent.types = c("chunk","award")
c... | /R/blocktypes.r | no_license | skranz/RTutor2 | R | false | false | 703 | r |
# blocks specified in RTutor
RTutor2.block.types.df = function(...) {
restore.point("RTutor2.block.types.df")
types = c(
"chunk","quiz","award",
"show","notest","show_notest","hint","test","test_arg",
"rmdform"
)
widgets = c("chunk","quiz","award","rmdform")
parent.types = c("chunk","award")
c... |
\name{Module}
\alias{Module}
\alias{Module-class}
\alias{verifyModule}
\alias{Optimize}
\alias{Optimize,Module-method}
\alias{Optimize,Function-method}
\alias{showModule}
\alias{coerce,GlobalValue,Module-method}
\title{Create an LLVM module for one or more functions and variables}
\description{
When creating an LLV... | /man/Module.Rd | no_license | wufan1980/Rllvm | R | false | false | 845 | rd | \name{Module}
\alias{Module}
\alias{Module-class}
\alias{verifyModule}
\alias{Optimize}
\alias{Optimize,Module-method}
\alias{Optimize,Function-method}
\alias{showModule}
\alias{coerce,GlobalValue,Module-method}
\title{Create an LLVM module for one or more functions and variables}
\description{
When creating an LLV... |
## 2013 Copyright Alexander V. Alekseyenko
library(Hmisc)
library(colorspace)
table.wilcox.auc = function(x, fdata, alpha=0.05){
x <- as.matrix(x)
rnames = names(wilcox.auc(x[, 1], fdata))
flog.info("table.wilcox.auc: rownames",
str_c(rnames, collapse = ", "), sep = " ")
wt = apply(x, 2, function(yy) wil... | /shinypesamer/inst/example/pesame.R | no_license | tamilyn/shiny-pesame | R | false | false | 2,483 | r | ## 2013 Copyright Alexander V. Alekseyenko
library(Hmisc)
library(colorspace)
table.wilcox.auc = function(x, fdata, alpha=0.05){
x <- as.matrix(x)
rnames = names(wilcox.auc(x[, 1], fdata))
flog.info("table.wilcox.auc: rownames",
str_c(rnames, collapse = ", "), sep = " ")
wt = apply(x, 2, function(yy) wil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.