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 |
|---|---|---|---|---|---|---|---|---|---|
dir()
read.csv("hospital-data.csv")
main = read.csv("hospital-data.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
str(main)
head(main)
main2=read.csv("outcome-of-care-measures.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
head(main2)
task1 = main2[ ,11]
hist(task1)
library(dplyr)
best ... | /Module2Week4.R | no_license | SiddhantUchil/rprog_data_ProgAssignment3-data | R | false | false | 2,757 | r | dir()
read.csv("hospital-data.csv")
main = read.csv("hospital-data.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
str(main)
head(main)
main2=read.csv("outcome-of-care-measures.csv", na.strings = "Not Available", stringsAsFactors = FALSE)
head(main2)
task1 = main2[ ,11]
hist(task1)
library(dplyr)
best ... |
######################################### client ID #####################################################
.cleint_id_general_purpose = 20 # for execution, commission report ( CLIENT_VERSION 60 ), open for session.
.client_id_buy_on_gap = 1000 # for placeOrder ( CLIENT_VERSION 47 )
.client_id_market_data = 30 # fo... | /libIB_cfg.R | permissive | jhleong-quant-finance/R-lib | R | false | false | 1,348 | r |
######################################### client ID #####################################################
.cleint_id_general_purpose = 20 # for execution, commission report ( CLIENT_VERSION 60 ), open for session.
.client_id_buy_on_gap = 1000 # for placeOrder ( CLIENT_VERSION 47 )
.client_id_market_data = 30 # fo... |
#### Extract Change Meta data on Variable Level
#############################################################################
#' Extract table for Meta Data Changes.
#'
#' Function to obtain a data frame from a \code{GADSdat} object for for changes to meta data on variable or on value level.
#'
#' Changes on ... | /R/getChangeMeta.R | no_license | bussejoh/eatGADS | R | false | false | 3,628 | r |
#### Extract Change Meta data on Variable Level
#############################################################################
#' Extract table for Meta Data Changes.
#'
#' Function to obtain a data frame from a \code{GADSdat} object for for changes to meta data on variable or on value level.
#'
#' Changes on ... |
\alias{gtkRecentChooserGetShowIcons}
\name{gtkRecentChooserGetShowIcons}
\title{gtkRecentChooserGetShowIcons}
\description{Retrieves whether \code{chooser} should show an icon near the resource.}
\usage{gtkRecentChooserGetShowIcons(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkRecentChooser}}] a \code{\link... | /man/gtkRecentChooserGetShowIcons.Rd | no_license | cran/RGtk2.10 | R | false | false | 526 | rd | \alias{gtkRecentChooserGetShowIcons}
\name{gtkRecentChooserGetShowIcons}
\title{gtkRecentChooserGetShowIcons}
\description{Retrieves whether \code{chooser} should show an icon near the resource.}
\usage{gtkRecentChooserGetShowIcons(object)}
\arguments{\item{\code{object}}{[\code{\link{GtkRecentChooser}}] a \code{\link... |
library(xgboost)
library(Matrix)
# read data
train=read.csv('strain_x.csv')
test=read.csv('stest_x.csv')
train.y=read.csv('strain_y.csv')
ft=read.csv('sfeatures_type.csv')
fn.cat=as.character(ft[ft[,2]=='category',1])
fn.num=as.character(ft[ft[,2]=='numeric',1])
# create dummy variables
temp.train=data.frame(rep(0,... | /DM-Competition-Getting-Started-master/DM-Competition-Getting-Started-master/kaggle-titanic/Theano Tutorial.R | no_license | joseph-emmanuel/loan_prediction_training | R | false | false | 34,010 | r | library(xgboost)
library(Matrix)
# read data
train=read.csv('strain_x.csv')
test=read.csv('stest_x.csv')
train.y=read.csv('strain_y.csv')
ft=read.csv('sfeatures_type.csv')
fn.cat=as.character(ft[ft[,2]=='category',1])
fn.num=as.character(ft[ft[,2]=='numeric',1])
# create dummy variables
temp.train=data.frame(rep(0,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_polytope.R
\name{polytope_chull}
\alias{polytope_chull}
\title{Compute the convex hull of vertices of a polytope}
\usage{
polytope_chull(A, b)
}
\arguments{
\item{A}{the LHS constraint matrix}
\item{b}{the RHS constraint vector}
}
\value... | /man/polytope_chull.Rd | no_license | somdisco/VorVQ | R | false | true | 858 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_polytope.R
\name{polytope_chull}
\alias{polytope_chull}
\title{Compute the convex hull of vertices of a polytope}
\usage{
polytope_chull(A, b)
}
\arguments{
\item{A}{the LHS constraint matrix}
\item{b}{the RHS constraint vector}
}
\value... |
#converts a Homer .motif PWM/PFM into MEME format
motif2meme <- function(inFile) {
library(tools)
#establishing the number of distinct motifs in the file and parsing it accordingly
stopifnot(is.character(inFile))
outFile <- paste(inFile,"meme",sep=".")
thisFile <- file(outFile)
fileName <- file_... | /bin/homer2meme.R | no_license | YichaoOU/HemTools | R | false | false | 4,555 | r | #converts a Homer .motif PWM/PFM into MEME format
motif2meme <- function(inFile) {
library(tools)
#establishing the number of distinct motifs in the file and parsing it accordingly
stopifnot(is.character(inFile))
outFile <- paste(inFile,"meme",sep=".")
thisFile <- file(outFile)
fileName <- file_... |
library(keras)
dataset <- dataset_boston_housing()
c(c(train_data, train_targets), c(test_data, test_targets)) %<-% dataset
str(train_data)
str(test_data)
mean <- apply(train_data, 2, mean)
std <- apply(train_data, 2, sd)
train_data <- scale(train_data, center = mean, scale = std)
test_data <- scale(test_data, cente... | /Keras Programs/Boston_Keras.R | no_license | prathmesh31/machine_learning_classwork | R | false | false | 2,618 | r | library(keras)
dataset <- dataset_boston_housing()
c(c(train_data, train_targets), c(test_data, test_targets)) %<-% dataset
str(train_data)
str(test_data)
mean <- apply(train_data, 2, mean)
std <- apply(train_data, 2, sd)
train_data <- scale(train_data, center = mean, scale = std)
test_data <- scale(test_data, cente... |
#' Manipulate keys
#'
#' Functions to manipulate [keys][keys-set].
#'
#' @param .tbl Reference data frame.
#' @param ... Variables to be used for operations defined in similar fashion as
#' in [dplyr::select()].
#' @param .unkey Whether to [unkey()] `.tbl` in case there are no keys left.
#' @param .remove Whether to ... | /R/keys-manip.R | no_license | echasnovski/keyholder | R | false | false | 4,299 | r | #' Manipulate keys
#'
#' Functions to manipulate [keys][keys-set].
#'
#' @param .tbl Reference data frame.
#' @param ... Variables to be used for operations defined in similar fashion as
#' in [dplyr::select()].
#' @param .unkey Whether to [unkey()] `.tbl` in case there are no keys left.
#' @param .remove Whether to ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverse <- function(solve) m <<- solve
getInve... | /cachematrix.R | no_license | dumiemie/ProgrammingAssignment2 | R | false | false | 727 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverse <- function(solve) m <<- solve
getInve... |
#' NCBI Human mapping file - Genes: Filtered
#'
#' NCBI Genes
#' Data extracted on 10 Feb 2020
#' Duplicates removed
#'
#' @docType data
#'
#' @usage data(NCBI_genes_200210_unique)
#'
#' @format An object of class \code{"cross"}; see \code{\link[qtl]{read.cross}}.
#'
#' @keywords NCBI
#'
#' @source \href{https://www.nc... | /R/NCBIMappingData_Genes_unique.R | no_license | BrandonMurugan/proteomestats | R | false | false | 395 | r | #' NCBI Human mapping file - Genes: Filtered
#'
#' NCBI Genes
#' Data extracted on 10 Feb 2020
#' Duplicates removed
#'
#' @docType data
#'
#' @usage data(NCBI_genes_200210_unique)
#'
#' @format An object of class \code{"cross"}; see \code{\link[qtl]{read.cross}}.
#'
#' @keywords NCBI
#'
#' @source \href{https://www.nc... |
# info --------------------------------------------------------------------
# purpose: plot Pho5 assay averages
# author: Robert Gnuegge (robert.gnuegge@gmail.com)
# date: 02/25/22
# version: 1.0
# preamble ----------------------------------------------------------------
# set wd to this file's location
wd_path <- d... | /15_Pho5_assay/Pho5_assay_plotting.R | permissive | robert-gnuegge/MRX_nicking | R | false | false | 2,844 | r | # info --------------------------------------------------------------------
# purpose: plot Pho5 assay averages
# author: Robert Gnuegge (robert.gnuegge@gmail.com)
# date: 02/25/22
# version: 1.0
# preamble ----------------------------------------------------------------
# set wd to this file's location
wd_path <- d... |
# context("Tests make_h_x")
context("Tests make_h_x")
test_that("make_hx creates proper log(function)", {
h <- make_hx(dnorm)
expect_is(h,"function")
expect_equal(h(1), log(dnorm(1)))
})
# context("Tests calc_z_j")
context("Tests calc_z_j")
test_that("calc_z_j returns expected values for normal distribution"... | /inst/tests/testthat/test-ars.R | no_license | ChenxingWu211/ars | R | false | false | 4,050 | r |
# context("Tests make_h_x")
context("Tests make_h_x")
test_that("make_hx creates proper log(function)", {
h <- make_hx(dnorm)
expect_is(h,"function")
expect_equal(h(1), log(dnorm(1)))
})
# context("Tests calc_z_j")
context("Tests calc_z_j")
test_that("calc_z_j returns expected values for normal distribution"... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include route53_service.R
NULL
#' Activates a key signing key (KSK) so that it can be used for signing by
#' DNSSEC
#'
#' @description
#' Activates a key signing key (KSK) so... | /cran/paws.networking/R/route53_operations.R | permissive | TWarczak/paws | R | false | false | 228,514 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include route53_service.R
NULL
#' Activates a key signing key (KSK) so that it can be used for signing by
#' DNSSEC
#'
#' @description
#' Activates a key signing key (KSK) so... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runMI-LRT.R
\name{lavTestLRT.mi}
\alias{lavTestLRT.mi}
\title{Likelihood Ratio Test for Multiple Imputations}
\usage{
lavTestLRT.mi(object, h1 = NULL, test = c("D3", "D2"),
omit.imps = c("no.conv", "no.se"), asymptotic = FALSE,
pool.robus... | /semTools/man/lavTestLRT.mi.Rd | no_license | Bandarj76/semTools | R | false | true | 6,363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runMI-LRT.R
\name{lavTestLRT.mi}
\alias{lavTestLRT.mi}
\title{Likelihood Ratio Test for Multiple Imputations}
\usage{
lavTestLRT.mi(object, h1 = NULL, test = c("D3", "D2"),
omit.imps = c("no.conv", "no.se"), asymptotic = FALSE,
pool.robus... |
update.deleted.genes <- function(deleted.genes, exc.genes, reason){
if(length(exc.genes) == 0){
return(deleted.genes)
}
del.genes <- data.frame(Gene = exc.genes, reason = reason, stringsAsFactors = FALSE)
deleted.genes <- rbind(deleted.genes, del.genes)
dup <- duplicated(deleted.genes$Gene)
delet... | /R/update.deleted.genes.R | no_license | cran/ARTP2 | R | false | false | 393 | r |
update.deleted.genes <- function(deleted.genes, exc.genes, reason){
if(length(exc.genes) == 0){
return(deleted.genes)
}
del.genes <- data.frame(Gene = exc.genes, reason = reason, stringsAsFactors = FALSE)
deleted.genes <- rbind(deleted.genes, del.genes)
dup <- duplicated(deleted.genes$Gene)
delet... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rbind.r
\name{rbind.mids}
\alias{rbind.mids}
\title{Rowwise combination of a \code{mids} object.}
\usage{
rbind.mids(x, y, ...)
}
\arguments{
\item{x}{A \code{mids} object.}
\item{y}{A \code{mids} object or a \code{data.frame}, \code... | /man/rbind.mids.rd | no_license | andland/mice | R | false | false | 3,332 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/rbind.r
\name{rbind.mids}
\alias{rbind.mids}
\title{Rowwise combination of a \code{mids} object.}
\usage{
rbind.mids(x, y, ...)
}
\arguments{
\item{x}{A \code{mids} object.}
\item{y}{A \code{mids} object or a \code{data.frame}, \code... |
mosaic_gg <-
function(tbl){
tbl_df <- tbl %>% #> (깔끔한) 데이터 프레임으로 전환.
as.data.frame
N <- length(levels(tbl_df[, 1])) #> fill 로 표현할 factor의 level 수효
tbl_p_df <- tbl %>% #> 각 조합의 비율 계산
prop.table %>%
as.data.frame
tbl_p_m <- tbl_df %>% #> x 축에 표시할 factor 비율의 주변 합 계산
`[`(, 3) %>%
tapply(tbl_df[, 2], sum) %... | /R/mosaic_gg.R | no_license | coop711/Case_Studies | R | false | false | 2,935 | r | mosaic_gg <-
function(tbl){
tbl_df <- tbl %>% #> (깔끔한) 데이터 프레임으로 전환.
as.data.frame
N <- length(levels(tbl_df[, 1])) #> fill 로 표현할 factor의 level 수효
tbl_p_df <- tbl %>% #> 각 조합의 비율 계산
prop.table %>%
as.data.frame
tbl_p_m <- tbl_df %>% #> x 축에 표시할 factor 비율의 주변 합 계산
`[`(, 3) %>%
tapply(tbl_df[, 2], sum) %... |
##################################
# Librerías
library(tidyverse)
library(tidytext)
library(stringr)
library(gutenbergr)
library(scales)
library(textdata)
library(wordcloud)
library(reshape2)
library(dplyr)
##################################
# Biblia
# Biblia raw
biblia <- ... | /Gutenbergr/libros religiosos.R | no_license | elias-mena/datamining-examples | R | false | false | 9,960 | r | ##################################
# Librerías
library(tidyverse)
library(tidytext)
library(stringr)
library(gutenbergr)
library(scales)
library(textdata)
library(wordcloud)
library(reshape2)
library(dplyr)
##################################
# Biblia
# Biblia raw
biblia <- ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{mysum}
\alias{mysum}
\title{Sum with na.rm=T}
\usage{
mysum(x, ...)
}
\arguments{
\item{x}{a vector of numbers}
\item{...}{}
}
\value{
sum of x with NA removed
}
\description{
Sum with na.rm=T
}
\examples{
x<-c(NA, 10,90)
sum(x)... | /apastats/man/mysum.Rd | no_license | achetverikov/APAstats | R | false | true | 332 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{mysum}
\alias{mysum}
\title{Sum with na.rm=T}
\usage{
mysum(x, ...)
}
\arguments{
\item{x}{a vector of numbers}
\item{...}{}
}
\value{
sum of x with NA removed
}
\description{
Sum with na.rm=T
}
\examples{
x<-c(NA, 10,90)
sum(x)... |
#-----------------------------------------------
# Does the following:
# - Ranks topics on the basis of entropy
# - Computes KL-divergence between topics
# - Outputs ranked vocabulary
fEntropy <- function(x) x*log(x)
outputKL <- F
epoch <- 2000
filenameprefix <- "taus"
runid <- "lda-2-2-inferGroups"
inpath <-... | /R/rankTopics.R | permissive | shubhomoydas/topic_models | R | false | false | 2,013 | r | #-----------------------------------------------
# Does the following:
# - Ranks topics on the basis of entropy
# - Computes KL-divergence between topics
# - Outputs ranked vocabulary
fEntropy <- function(x) x*log(x)
outputKL <- F
epoch <- 2000
filenameprefix <- "taus"
runid <- "lda-2-2-inferGroups"
inpath <-... |
#devtools::use_package("testthat", type = "Suggests")
context("Randomized Eigen")
#Load reigen library
library(rsvd)
#Set seed
set.seed(1234)
#Set p, q
p=5
q=1
#Accuray
atol_float64 <- 1e-8
#*************************************************************************************
# Test: reigen using real random ... | /tests/testthat/test_reigen.R | no_license | jomorlier/rSVD | R | false | false | 4,444 | r | #devtools::use_package("testthat", type = "Suggests")
context("Randomized Eigen")
#Load reigen library
library(rsvd)
#Set seed
set.seed(1234)
#Set p, q
p=5
q=1
#Accuray
atol_float64 <- 1e-8
#*************************************************************************************
# Test: reigen using real random ... |
rm(list=ls())
library(data.table)
#library(caret)
#library(Metrics)
#library(glmnet)
#library(plotmo)
#library(lubridate)
library(xgboost)
library(caret)
library(rpart)
library(dplyr)
train <- read.csv("Stat_380_train.csv", stringsAsFactors = F)
test <- read.csv("Stat_380_test.csv", stringsAsFactors = F)
n... | /Stat_380_finalhousepricing.R | no_license | HungMai5391/STAT380_Projects | R | false | false | 1,523 | r | rm(list=ls())
library(data.table)
#library(caret)
#library(Metrics)
#library(glmnet)
#library(plotmo)
#library(lubridate)
library(xgboost)
library(caret)
library(rpart)
library(dplyr)
train <- read.csv("Stat_380_train.csv", stringsAsFactors = F)
test <- read.csv("Stat_380_test.csv", stringsAsFactors = F)
n... |
#' Plot MCMC recruitments for iSCAM models
#'
#' @description
#' Plot the MCMC recruitment time series trajectories with credible intervals
#' for iscam models.
#'
#' @inheritParams plot_ts_mcmc
#' @family Time series plotting functions
#'
#' @param show_ro Show the initial recruitment, R0 median line and credible inte... | /R/plot-recr-mcmc.R | no_license | pbs-assess/gfiscamutils | R | false | false | 10,219 | r | #' Plot MCMC recruitments for iSCAM models
#'
#' @description
#' Plot the MCMC recruitment time series trajectories with credible intervals
#' for iscam models.
#'
#' @inheritParams plot_ts_mcmc
#' @family Time series plotting functions
#'
#' @param show_ro Show the initial recruitment, R0 median line and credible inte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeline-package.R
\docType{package}
\name{timeline-package}
\alias{timeline-package}
\title{timeline}
\description{
Package to create timelines.
}
\author{
Jason Bryer \email{jason@bryer.org}
}
\keyword{ggplot2}
\keyword{timeline}
| /man/timeline-package.Rd | no_license | SayreLab/timeline | R | false | true | 311 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeline-package.R
\docType{package}
\name{timeline-package}
\alias{timeline-package}
\title{timeline}
\description{
Package to create timelines.
}
\author{
Jason Bryer \email{jason@bryer.org}
}
\keyword{ggplot2}
\keyword{timeline}
|
# Annotate significant results with gene info
require(biomaRt)
args <- commandArgs(trailingOnly=TRUE)
main_dir <- args[1]
base <- args[2]
setwd(main_dir)
#reas mqtl results
output_file_name <- paste("mqtl_",base,".txt",sep="")
res <- read.table(output_file_name,header=T,sep="\t")
#rs id format
res$SNP <- gsub('_2'... | /scripts/annotate_mqtl_results2.R | no_license | Manikgarg/Urinary-metabolomic-phenotyping-for-Alzheimer-pathology | R | false | false | 2,206 | r | # Annotate significant results with gene info
require(biomaRt)
args <- commandArgs(trailingOnly=TRUE)
main_dir <- args[1]
base <- args[2]
setwd(main_dir)
#reas mqtl results
output_file_name <- paste("mqtl_",base,".txt",sep="")
res <- read.table(output_file_name,header=T,sep="\t")
#rs id format
res$SNP <- gsub('_2'... |
library(sa4ss)
setwd("C:/Assessments/2021/dover_sole_2021/write_up")
load("00mod.Rdata")
save_loc = file.path(getwd(), "tex_tables")
##########################################################################################
# Discard Data tables
######################################################################... | /es_only/doc_tables.R | no_license | aaronmberger-nwfsc/dover_sole_2021 | R | false | false | 7,224 | r | library(sa4ss)
setwd("C:/Assessments/2021/dover_sole_2021/write_up")
load("00mod.Rdata")
save_loc = file.path(getwd(), "tex_tables")
##########################################################################################
# Discard Data tables
######################################################################... |
176625a49a5542429c146926aabbe3fe query24_query52_1344.qdimacs 453 3253 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query24_query52_1344/query24_query52_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 70 | r | 176625a49a5542429c146926aabbe3fe query24_query52_1344.qdimacs 453 3253 |
#******************************************************************************#
# 필수 load
#******************************************************************************#
#source('./AIR/packages_need.R', encoding='utf-8') # 필수 패키지 load
#source('./AIR/sgg_separate.R', encoding='ut... | /AIR/analysis_PM10.R | no_license | S0-HYUN/Machine-Learning-Project | R | false | false | 8,447 | r | #******************************************************************************#
# 필수 load
#******************************************************************************#
#source('./AIR/packages_need.R', encoding='utf-8') # 필수 패키지 load
#source('./AIR/sgg_separate.R', encoding='ut... |
corr <- function(directory, threshold = 0) {
Files <- list.files(directory)
vektor <- c()
for (i in 1:332) {
miki <- read.csv(file.path(directory, Files[i]))
eli <- 0
redalica <- c()
for (g in 1:nrow(miki))
{
if (!is.na(miki[g,2]) && !is.na(miki[g,3])... | /corr.R | no_license | greatbero/R_Programing | R | false | false | 1,111 | r | corr <- function(directory, threshold = 0) {
Files <- list.files(directory)
vektor <- c()
for (i in 1:332) {
miki <- read.csv(file.path(directory, Files[i]))
eli <- 0
redalica <- c()
for (g in 1:nrow(miki))
{
if (!is.na(miki[g,2]) && !is.na(miki[g,3])... |
optimise_c1_c2_perms <- function (x, z, typex = c("standard", "ordered"), typez = c("standard",
"ordered"), penaltyxs = NULL, penaltyzs = NULL, niter = 3,
v = NULL, trace = TRUE, nperms = 25, standard... | /optimise_c1_c2_perms.R | no_license | mjduarterosa/nimgSCCA | R | false | false | 1,360 | r | optimise_c1_c2_perms <- function (x, z, typex = c("standard", "ordered"), typez = c("standard",
"ordered"), penaltyxs = NULL, penaltyzs = NULL, niter = 3,
v = NULL, trace = TRUE, nperms = 25, standard... |
#----HEADER-------------------------------------------------------------------------------------------------------------
# Purpose: PART ONE - Run DisMod model for the prevalence of intellectual disability (as a proportion of the population with IQ < 70)
# PART TWO - Run DisMod model for the mean IQ by country... | /gbd_2019/nonfatal_code/id/iq_distributions_and_splits.R | no_license | Nermin-Ghith/ihme-modeling | R | false | false | 20,362 | r | #----HEADER-------------------------------------------------------------------------------------------------------------
# Purpose: PART ONE - Run DisMod model for the prevalence of intellectual disability (as a proportion of the population with IQ < 70)
# PART TWO - Run DisMod model for the mean IQ by country... |
\name{elaborar_taxa_cresc_12P}
\alias{elaborar_taxa_cresc_12P}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("elaborar_taxa_cresc_12P")}
\format{
A data frame with 5 observations on the following 25 variables.
... | /man/elaborar_taxa_cresc_12P.Rd | no_license | rodeiros/mktdata | R | false | false | 2,218 | rd | \name{elaborar_taxa_cresc_12P}
\alias{elaborar_taxa_cresc_12P}
\docType{data}
\title{
%% ~~ data name/kind ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of the dataset. ~~
}
\usage{data("elaborar_taxa_cresc_12P")}
\format{
A data frame with 5 observations on the following 25 variables.
... |
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d... | /R/ApiResponseSecurityChaikinMoneyFlow.r | no_license | intrinio/r-sdk | R | false | false | 6,587 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d... |
/KCDC/HLA_imputataion/merged.19.20/04.accuracy.R | no_license | ksmpooh/SungminCode | R | false | false | 6,913 | r | ||
#' Demografico: obtem dados dos participantes sobre anos de idade
#'
#' @param inscritos data frame com todos os dados dos participantes inscritos
#' @param dataBase dia utilizado como base para calculo da idade
#' @param grupos limiares para definir como anos de idade serao agrupados
#' @return data frame com quantid... | /R.old/inscritosPorIdade.R | no_license | IvanRicarte/Evidasp | R | false | false | 1,638 | r | #' Demografico: obtem dados dos participantes sobre anos de idade
#'
#' @param inscritos data frame com todos os dados dos participantes inscritos
#' @param dataBase dia utilizado como base para calculo da idade
#' @param grupos limiares para definir como anos de idade serao agrupados
#' @return data frame com quantid... |
library(rvest)
### Name: html_nodes
### Title: Select nodes from an HTML document
### Aliases: html_node html_nodes
### ** Examples
# CSS selectors ----------------------------------------------
ateam <- read_html("http://www.boxofficemojo.com/movies/?id=ateam.htm")
html_nodes(ateam, "center")
html_nodes(ateam, "ce... | /data/genthat_extracted_code/rvest/examples/html_nodes.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,721 | r | library(rvest)
### Name: html_nodes
### Title: Select nodes from an HTML document
### Aliases: html_node html_nodes
### ** Examples
# CSS selectors ----------------------------------------------
ateam <- read_html("http://www.boxofficemojo.com/movies/?id=ateam.htm")
html_nodes(ateam, "center")
html_nodes(ateam, "ce... |
library(NOISeq)
data=read.delim("/home/anoop/Desktop/Transcriptome/New_RNAseq/P13608/CCHF/New & Final Analysis/Network/Prot_Coding_CCHF.txt",header = T,row.names = 1)
head(data)
dataX=as.matrix(data)
norm=tmm(dataX)
head(norm)
write.table(norm,file="/home/anoop/Desktop/Transcriptome/New_RNAseq/P13608/CCHF/New & Fina... | /CCHF_CMD.R | no_license | neogilab/CCHF-Turkey | R | false | false | 279,021 | r |
library(NOISeq)
data=read.delim("/home/anoop/Desktop/Transcriptome/New_RNAseq/P13608/CCHF/New & Final Analysis/Network/Prot_Coding_CCHF.txt",header = T,row.names = 1)
head(data)
dataX=as.matrix(data)
norm=tmm(dataX)
head(norm)
write.table(norm,file="/home/anoop/Desktop/Transcriptome/New_RNAseq/P13608/CCHF/New & Fina... |
library(dplyr)
url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "./epc.zip")
unzip("./epc.zip")
epc<- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
epc2<- epc %>%
mutate(datetime = as.POSIXct... | /Plot4.R | no_license | kyouannis/ExData_Plotting1 | R | false | false | 1,362 | r | library(dplyr)
url<- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "./epc.zip")
unzip("./epc.zip")
epc<- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
epc2<- epc %>%
mutate(datetime = as.POSIXct... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mr_features_get.R
\name{mr_features_get}
\alias{mr_features_get}
\title{Get features}
\usage{
mr_features_get(
type,
featureID,
maxFeatures = 100,
format = "json",
path = NULL,
version = "2.0.0",
...
)
}
\argumen... | /man/mr_features_get.Rd | permissive | cran/mregions | R | false | true | 2,479 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mr_features_get.R
\name{mr_features_get}
\alias{mr_features_get}
\title{Get features}
\usage{
mr_features_get(
type,
featureID,
maxFeatures = 100,
format = "json",
path = NULL,
version = "2.0.0",
...
)
}
\argumen... |
md<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
head(md)
md$Date<-as.Date(md$Date,"%d/%m/%Y")
g<-subset(md,md$Date=="2007-02-01"|md$Date=="2007-02-02",na.rm=TRUE)
dt<-paste(g$Date,g$Time)
dt<-as.Date(dt)
dt<-strptime(dt,format='%Y-%m-%d %H:%M:%S')
png(filename="plot2.png")
plot(dt,g$Global_active_... | /plot2.R | no_license | BhaveshMotwani/Exploratory_Data_Analysis | R | false | false | 380 | r | md<-read.table("household_power_consumption.txt",sep=";",header=TRUE)
head(md)
md$Date<-as.Date(md$Date,"%d/%m/%Y")
g<-subset(md,md$Date=="2007-02-01"|md$Date=="2007-02-02",na.rm=TRUE)
dt<-paste(g$Date,g$Time)
dt<-as.Date(dt)
dt<-strptime(dt,format='%Y-%m-%d %H:%M:%S')
png(filename="plot2.png")
plot(dt,g$Global_active_... |
pop2 <- read.csv('pop2.csv')
head(pop2)
str(pop2)
summary(pop2)
mean_bmi <- mean(pop2$bmi)
mean_bmi
sd_bmi <- sd(pop2$bmi)
sd_bmi
X_bar <- rep(0,1e5)
for (i in 1:1e5){
X.sample <- sample(pop2$bmi, 150)
X_bar[i] <- mean(X.sample)
}
X_mean <- mean(X_bar)
X_mean
sd(X_bar)
# Identify, using simulations, the central... | /week2/r_exercises_week2/Exercise_7_1_blood_pressure.R | no_license | XiaonaZhou/coursework | R | false | false | 751 | r | pop2 <- read.csv('pop2.csv')
head(pop2)
str(pop2)
summary(pop2)
mean_bmi <- mean(pop2$bmi)
mean_bmi
sd_bmi <- sd(pop2$bmi)
sd_bmi
X_bar <- rep(0,1e5)
for (i in 1:1e5){
X.sample <- sample(pop2$bmi, 150)
X_bar[i] <- mean(X.sample)
}
X_mean <- mean(X_bar)
X_mean
sd(X_bar)
# Identify, using simulations, the central... |
##Commonly used general purpose functions
util = new.env(hash=T)
##save a file, recursively creating any directories
util$save <- function(list, file)
{
dir.create(dirname(file), recursive = T, showWarnings=F)
save(list = list, file = file)
}
##NB the append function seems to do wierd things when additional i... | /src/utils.R | no_license | kathiesun/TReC_matnut | R | false | false | 6,782 | r | ##Commonly used general purpose functions
util = new.env(hash=T)
##save a file, recursively creating any directories
util$save <- function(list, file)
{
dir.create(dirname(file), recursive = T, showWarnings=F)
save(list = list, file = file)
}
##NB the append function seems to do wierd things when additional i... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cpsmar1989}
\alias{cpsmar1989}
\title{CPS March Supplement (ASEC) from IPUMS, 1989}
\format{A data frame}
\source{
\url{https://cps.ipums.org}
}
\usage{
cpsmar1989
}
\description{
\code{cpsmar1989} contains... | /man/cpsmar1989.Rd | no_license | jjchern/cpsmar1980s | R | false | false | 409 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{cpsmar1989}
\alias{cpsmar1989}
\title{CPS March Supplement (ASEC) from IPUMS, 1989}
\format{A data frame}
\source{
\url{https://cps.ipums.org}
}
\usage{
cpsmar1989
}
\description{
\code{cpsmar1989} contains... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_heat_map.R
\name{get_heat_map}
\alias{get_heat_map}
\alias{get_heat_map.list}
\alias{get_heat_map.actframe}
\title{Makes a heat map from your activity data}
\usage{
get_heat_map(act_data, ...)
\method{get_heat_map}{list}(act_data, acts =... | /man/get_heat_map.Rd | permissive | padpadpadpad/rStrava | R | false | true | 4,242 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_heat_map.R
\name{get_heat_map}
\alias{get_heat_map}
\alias{get_heat_map.list}
\alias{get_heat_map.actframe}
\title{Makes a heat map from your activity data}
\usage{
get_heat_map(act_data, ...)
\method{get_heat_map}{list}(act_data, acts =... |
banco<-read.csv("https://raw.githubusercontent.com/VictorGuevaraP/ME-Machine-Learning/master/banco.csv",sep=",")
head(banco)
dim(banco)
str(banco)
banco<-banco[,2:20]
head(banco)
str(banco)#Cambiamos el tipo de dato del target
banco$suscrito<-as.factor(banco$suscrito)
summary(banco)
################################... | /banco.R | no_license | Badmon/DataMining | R | false | false | 2,963 | r |
banco<-read.csv("https://raw.githubusercontent.com/VictorGuevaraP/ME-Machine-Learning/master/banco.csv",sep=",")
head(banco)
dim(banco)
str(banco)
banco<-banco[,2:20]
head(banco)
str(banco)#Cambiamos el tipo de dato del target
banco$suscrito<-as.factor(banco$suscrito)
summary(banco)
################################... |
context("Data Access Group Methods Argument Validation")
#####################################################################
# exportDags Argument Validation ####
test_that(
"Return an error is rcon is not a redcapConnection",
{
local_reproducible_output(width = 200)
exp... | /tests/testthat/test-104-dagMethods-ArgumentValidation.R | no_license | nutterb/redcapAPI | R | false | false | 5,707 | r | context("Data Access Group Methods Argument Validation")
#####################################################################
# exportDags Argument Validation ####
test_that(
"Return an error is rcon is not a redcapConnection",
{
local_reproducible_output(width = 200)
exp... |
# Open file for output
file_output <- "Home_4_Question_2_finished2.txt"
sink (file_output, append=FALSE, split=TRUE)
# Read data
#file_data <- "STA372_Homework4_Question2.dat.txt"
file_data = "HW4Question2.R"
Sales_data_table <- read.table(file_data, header = F, sep="")
colnames(Sales_data_table) <- c("Time", "Qu... | /Homeworks/Financial time series forecasting/HW4QuestionWorkAround.R | no_license | Rwoot14/R-projects- | R | false | false | 4,281 | r | # Open file for output
file_output <- "Home_4_Question_2_finished2.txt"
sink (file_output, append=FALSE, split=TRUE)
# Read data
#file_data <- "STA372_Homework4_Question2.dat.txt"
file_data = "HW4Question2.R"
Sales_data_table <- read.table(file_data, header = F, sep="")
colnames(Sales_data_table) <- c("Time", "Qu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/varkernel.R
\name{varkernel}
\alias{varkernel}
\title{Perform a two-dimensional kernel density estimation for an outcome variable and a given influencing variable.
The function produces a matrix of the estimated density (z) of an outcome va... | /man/varkernel.Rd | no_license | CWWhitney/uncertainty | R | false | true | 2,258 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/varkernel.R
\name{varkernel}
\alias{varkernel}
\title{Perform a two-dimensional kernel density estimation for an outcome variable and a given influencing variable.
The function produces a matrix of the estimated density (z) of an outcome va... |
library(RCUDA)
cat("Setting cuGetContext(TRUE)...\n")
cuGetContext(TRUE)
cat("done. Profiling CUDA code...\n")
cat("Loading module...\n")
m = loadModule(system.file("sampleKernels", "dnorm.ptx", package = "RCUDA"))
cat("done. Extracting kernel...\n")
k = m$dnorm_kernel
cat("done. Setting up miscellaneous stuff...\n")... | /tests/basic_tests.R | no_license | chen0031/RCUDA | R | false | false | 1,958 | r | library(RCUDA)
cat("Setting cuGetContext(TRUE)...\n")
cuGetContext(TRUE)
cat("done. Profiling CUDA code...\n")
cat("Loading module...\n")
m = loadModule(system.file("sampleKernels", "dnorm.ptx", package = "RCUDA"))
cat("done. Extracting kernel...\n")
k = m$dnorm_kernel
cat("done. Setting up miscellaneous stuff...\n")... |
\name{ICAorthW}
\alias{ICAorthW}
\title{turn a matrix W into an orthogonal matrix
}
\description{
use the SVD to orthogonalize a matrix
}
\usage{
ICAorthW(W)
}
\arguments{
\item{W}{input matrix}
}
\details{simply replace the D matrix of the SVD of W by the identity}
\value{
orthogonalized version of W
}
\author{
Trev... | /man/ICAorthW.Rd | no_license | cran/ProDenICA | R | false | false | 456 | rd | \name{ICAorthW}
\alias{ICAorthW}
\title{turn a matrix W into an orthogonal matrix
}
\description{
use the SVD to orthogonalize a matrix
}
\usage{
ICAorthW(W)
}
\arguments{
\item{W}{input matrix}
}
\details{simply replace the D matrix of the SVD of W by the identity}
\value{
orthogonalized version of W
}
\author{
Trev... |
invariante = function(trans) {
# Trans é a matriz que se quer estudar a distribuição estacioária
# Para determinar pi que satisfaz pi %*% trans = pi resolvemos o
# sistema (t(trans) - I) %* pi = 0 onde t() e' a matriz transposta e
# pi agora e' um vetor coluna. No lado direito trocamos a ultima linha
# por um... | /estacionária.R | no_license | guilherme1708/Processos_Estocasticos | R | false | false | 793 | r | invariante = function(trans) {
# Trans é a matriz que se quer estudar a distribuição estacioária
# Para determinar pi que satisfaz pi %*% trans = pi resolvemos o
# sistema (t(trans) - I) %* pi = 0 onde t() e' a matriz transposta e
# pi agora e' um vetor coluna. No lado direito trocamos a ultima linha
# por um... |
# Author: Minya Na
setwd("~/Downloads")
library(dplyr)
library(tidyverse)
library(data.table)
library(lubridate)
d <- fread('US_Accidents_Dec19.csv',stringsAsFactors = F)
d %>%
select(year,month)
view(head(d))
d$year <- year(d$Start_Time)
d$month <- month(d$Start_Time)
colnames(d)
head(d)
str(d)
names(d)[names(d) ... | /econometrics/car_accidents/scripts/(1)_munging1.R | no_license | BradyEngelke/msba | R | false | false | 7,170 | r | # Author: Minya Na
setwd("~/Downloads")
library(dplyr)
library(tidyverse)
library(data.table)
library(lubridate)
d <- fread('US_Accidents_Dec19.csv',stringsAsFactors = F)
d %>%
select(year,month)
view(head(d))
d$year <- year(d$Start_Time)
d$month <- month(d$Start_Time)
colnames(d)
head(d)
str(d)
names(d)[names(d) ... |
plot2 <- function(){
# read the data
my_data <- read.table("./household_power_consumption.txt",
sep = ";", na.strings = "?", header = TRUE)
#subset data
plot_data <- subset(my_data, Date== "1/2/2007" | Date == "2/2/2007")
plot_data$dateTime = paste(plot_data$Date, plot_dat... | /plot2.R | no_license | Haxier/ExData_Plotting1 | R | false | false | 753 | r | plot2 <- function(){
# read the data
my_data <- read.table("./household_power_consumption.txt",
sep = ";", na.strings = "?", header = TRUE)
#subset data
plot_data <- subset(my_data, Date== "1/2/2007" | Date == "2/2/2007")
plot_data$dateTime = paste(plot_data$Date, plot_dat... |
# set working directory
#setwd("C:/Users/Alexander/Downloads")
setwd("C:/Users/MarioLoeraLozano/Dropbox/R/Data")
# packages needed
library(plyr) # install.packages('plyr')
library(zoo) # install.packages('zoo')
library(lattice);
# clean workspace and variables
rm(list = setdiff(ls(), lsf.str()))
# loading data
load(... | /SRC/Assign 2.R | no_license | marioloera/FmsR | R | false | false | 4,551 | r | # set working directory
#setwd("C:/Users/Alexander/Downloads")
setwd("C:/Users/MarioLoeraLozano/Dropbox/R/Data")
# packages needed
library(plyr) # install.packages('plyr')
library(zoo) # install.packages('zoo')
library(lattice);
# clean workspace and variables
rm(list = setdiff(ls(), lsf.str()))
# loading data
load(... |
library(testthat)
test_that(
"format_uri_keystage() works under usual use case.",
{
# Base function works without any arguments (apart from stage)
expect_equal(
"http://dfe-api.azurewebsites.net/api/keystage/search/ks2?",
format_uri_keystage(stage = "ks2")
)
# Base function works wit... | /tests/testthat/test_format_uri_keystage.R | permissive | ivyleavedtoadflax/dfeAPI | R | false | false | 1,352 | r | library(testthat)
test_that(
"format_uri_keystage() works under usual use case.",
{
# Base function works without any arguments (apart from stage)
expect_equal(
"http://dfe-api.azurewebsites.net/api/keystage/search/ks2?",
format_uri_keystage(stage = "ks2")
)
# Base function works wit... |
#INITIALISATION
#Parameters Initialisation
nHH=100
nF=10
# Matrix Column names
hhColNames<-c("wealth","wage","employment","propensity.income","propensity.wealth","tax.rate","consumption","expected.income","adaptive.expectation")
fColNames<-c("productivity","price","employee","production")
gColNames<-c("debt","govSpen... | /Homeworks/SIMEX.R | no_license | antoinegodin/AB-Lectures | R | false | false | 1,339 | r | #INITIALISATION
#Parameters Initialisation
nHH=100
nF=10
# Matrix Column names
hhColNames<-c("wealth","wage","employment","propensity.income","propensity.wealth","tax.rate","consumption","expected.income","adaptive.expectation")
fColNames<-c("productivity","price","employee","production")
gColNames<-c("debt","govSpen... |
################################################################
# Biostatistical Methods I: Lecture 7 #
# Statistical Inference: Two-Sample Means #
# Author: Cody Chiuzan; Date: Sept 25, 2018 #
######################################################... | /Lect7_TwoSamples.R | no_license | jaisalamin/methods_hw3 | R | false | false | 3,558 | r |
################################################################
# Biostatistical Methods I: Lecture 7 #
# Statistical Inference: Two-Sample Means #
# Author: Cody Chiuzan; Date: Sept 25, 2018 #
######################################################... |
calculate.ci.strata.wgt = function (species=species, data.yrs) {
#-----------------------------------------------------------------
data.yrs = 1983:2017
species = c('10')
#atlantic cod = 10
# BCa: Find nonparametric BCa intervals.
# License: BSD_3_clause + file LICENSE (q.v.)
# Please refer to the package document... | /calculate.ci.strata.wgt.r | no_license | Greenlawm/R | R | false | false | 23,779 | r | calculate.ci.strata.wgt = function (species=species, data.yrs) {
#-----------------------------------------------------------------
data.yrs = 1983:2017
species = c('10')
#atlantic cod = 10
# BCa: Find nonparametric BCa intervals.
# License: BSD_3_clause + file LICENSE (q.v.)
# Please refer to the package document... |
#' Sample survey simulation grid.
#'
#' A exemplar for the structure of a survey grid object to supply to the functions
#' in this package.
#'
#' @format A stars object with 4 attributes:
#' \describe{
#' \item{cell}{Survey cell identifier}
#' \item{division}{NAFO division}
#' \item{strat}{Survey strata number}
#... | /R/data.R | no_license | PaulRegular/SimSurvey | R | false | false | 1,789 | r | #' Sample survey simulation grid.
#'
#' A exemplar for the structure of a survey grid object to supply to the functions
#' in this package.
#'
#' @format A stars object with 4 attributes:
#' \describe{
#' \item{cell}{Survey cell identifier}
#' \item{division}{NAFO division}
#' \item{strat}{Survey strata number}
#... |
namer <- function(x, ...){
if (is.null(names(x))) names(x) <- rep("", length(x))
x
}
get_comment <- function(x, ...) {
attributes(x)[["comment"]]
}
is.regex <- function (pattern) {
out <- suppressWarnings(try(gsub(pattern, "", "hello", perl = TRUE),
silent = TRUE))
ifelse(inherits(out... | /R/utils.R | no_license | trinker/regexr | R | false | false | 361 | r | namer <- function(x, ...){
if (is.null(names(x))) names(x) <- rep("", length(x))
x
}
get_comment <- function(x, ...) {
attributes(x)[["comment"]]
}
is.regex <- function (pattern) {
out <- suppressWarnings(try(gsub(pattern, "", "hello", perl = TRUE),
silent = TRUE))
ifelse(inherits(out... |
\name{Heatmap}
\alias{Heatmap}
\title{
Constructor method for Heatmap class
}
\description{
Constructor method for Heatmap class
}
\usage{
Heatmap(matrix, col, name,
na_col = "grey",
color_space = "LAB",
rect_gp = gpar(col = NA),
border = NA,
border_gp = gpar(col = "black"),
cell_fun = NULL,
... | /man/Heatmap.Rd | permissive | j3gu/ComplexHeatmap | R | false | false | 14,450 | rd | \name{Heatmap}
\alias{Heatmap}
\title{
Constructor method for Heatmap class
}
\description{
Constructor method for Heatmap class
}
\usage{
Heatmap(matrix, col, name,
na_col = "grey",
color_space = "LAB",
rect_gp = gpar(col = NA),
border = NA,
border_gp = gpar(col = "black"),
cell_fun = NULL,
... |
# This global variable is a hack so if the 'finite.model' flag in
# generate_multilevel_data_model() is set to TRUE, that method will save the
# first randomly generated units in this variable and then, in subsequent calls
# to generate_multilevel_data_model() simply rerandomize these units.
# (generate_multilevel_d... | /R/gen_multilevel_data.R | no_license | duolajiang/blkvar | R | false | false | 15,230 | r |
# This global variable is a hack so if the 'finite.model' flag in
# generate_multilevel_data_model() is set to TRUE, that method will save the
# first randomly generated units in this variable and then, in subsequent calls
# to generate_multilevel_data_model() simply rerandomize these units.
# (generate_multilevel_d... |
library(psychotools)
### Name: SoundQuality
### Title: Quality of Multichannel Reproduced Sound
### Aliases: SoundQuality
### Keywords: datasets
### ** Examples
data("SoundQuality", package = "psychotools")
summary(SoundQuality$preference)
ftable(xtabs(~ time + repet + progmat, data = SoundQuality))
| /data/genthat_extracted_code/psychotools/examples/SoundQuality.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 308 | r | library(psychotools)
### Name: SoundQuality
### Title: Quality of Multichannel Reproduced Sound
### Aliases: SoundQuality
### Keywords: datasets
### ** Examples
data("SoundQuality", package = "psychotools")
summary(SoundQuality$preference)
ftable(xtabs(~ time + repet + progmat, data = SoundQuality))
|
#' The SLAW visualisation package
#'
#' SLAWvis is a visualisation pakcage which is designed ot be used in with the containerized version of SLAW for the data
#'
#' @docType package
#' @name SLAWvis
#' @import MSnbase
#' @importFrom MsBackendMgf MsBackendMgf
#' @import QFeatures
#' @importFrom Spectra Spectra
... | /R/SLAWvis.R | no_license | adelabriere/SLAWvis | R | false | false | 561 | r | #' The SLAW visualisation package
#'
#' SLAWvis is a visualisation pakcage which is designed ot be used in with the containerized version of SLAW for the data
#'
#' @docType package
#' @name SLAWvis
#' @import MSnbase
#' @importFrom MsBackendMgf MsBackendMgf
#' @import QFeatures
#' @importFrom Spectra Spectra
... |
#config
library(tidyverse)
library(dslabs)
data(polls_us_election_2016)
#take polls table from '4.1.3 PollDataBias.R'
#we collect the last-reported poll from each pollster
one_poll_per_pollster <- polls %>%
group_by(pollster) %>%
filter(enddate == max(enddate)) %>%
ungroup
#create a histogram of the d... | /Classes/4.1.4 DataDrivenModels.R | no_license | A-Harders/PH125.4x_Inference-and-Modeling | R | false | false | 873 | r | #config
library(tidyverse)
library(dslabs)
data(polls_us_election_2016)
#take polls table from '4.1.3 PollDataBias.R'
#we collect the last-reported poll from each pollster
one_poll_per_pollster <- polls %>%
group_by(pollster) %>%
filter(enddate == max(enddate)) %>%
ungroup
#create a histogram of the d... |
## code for reading the data
df <- read.table(
"household_power_consumption.txt",
sep=";",
col.names=c("Date", "Time",
"Global_active_power",
"Global_reactive_power",
"Voltage", "Global_intensity",
"Sub_metering_1",
"Sub_metering_2",
... | /plot4.R | no_license | mguardado/ExData_Plotting1 | R | false | false | 1,287 | r | ## code for reading the data
df <- read.table(
"household_power_consumption.txt",
sep=";",
col.names=c("Date", "Time",
"Global_active_power",
"Global_reactive_power",
"Voltage", "Global_intensity",
"Sub_metering_1",
"Sub_metering_2",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quoted.R
\name{all.vars}
\alias{all.vars}
\title{Generic version of all.vars}
\usage{
all.vars(expr, ...)
}
\description{
Generic version of all.vars
}
| /pkg/man/all.vars.Rd | permissive | AlephbetResearch/rsql | R | false | true | 230 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quoted.R
\name{all.vars}
\alias{all.vars}
\title{Generic version of all.vars}
\usage{
all.vars(expr, ...)
}
\description{
Generic version of all.vars
}
|
#Data Understanding
#https://cran.r-project.org/web/packages/skimr/vignettes/Using_skimr.html
#https://cran.r-project.org/web/packages/skimr/skimr.pdf
library(skimr)
#skimr, a package for quickly skimming data by data type
skim(iris)
skim(iris) %>% dplyr::filter(stat == "mean")
skim(mtcars) %>% dplyr::filter(stat =... | /99-Misc/skimr-package.R | no_license | DUanalytics/rAnalytics | R | false | false | 556 | r | #Data Understanding
#https://cran.r-project.org/web/packages/skimr/vignettes/Using_skimr.html
#https://cran.r-project.org/web/packages/skimr/skimr.pdf
library(skimr)
#skimr, a package for quickly skimming data by data type
skim(iris)
skim(iris) %>% dplyr::filter(stat == "mean")
skim(mtcars) %>% dplyr::filter(stat =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_tRackIT.R
\name{filter_tRackIT}
\alias{filter_tRackIT}
\title{filter automatic (tRackIT.OS)}
\usage{
filter_tRackIT(
animal = NULL,
freq_er = 2,
path_to_data = NULL,
d_min = NULL,
d_max = NULL,
start = NULL,
end = NULL,
... | /man/filter_tRackIT.Rd | permissive | Nature40/tRackIT | R | false | true | 1,813 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filter_tRackIT.R
\name{filter_tRackIT}
\alias{filter_tRackIT}
\title{filter automatic (tRackIT.OS)}
\usage{
filter_tRackIT(
animal = NULL,
freq_er = 2,
path_to_data = NULL,
d_min = NULL,
d_max = NULL,
start = NULL,
end = NULL,
... |
#This file contains a collection of VECTOR-level functions.
createTS <- function(vec, dateVec, onlyLowerLevelFreq){
# This function will create several time series for every variable.
# For numeric variables it will create a ts series of SUM, for each of the time
# frames aggregation levels available (day, week,... | /src/config/tsUtils.R | no_license | Acriche/Witchcraft2 | R | false | false | 11,672 | r | #This file contains a collection of VECTOR-level functions.
createTS <- function(vec, dateVec, onlyLowerLevelFreq){
# This function will create several time series for every variable.
# For numeric variables it will create a ts series of SUM, for each of the time
# frames aggregation levels available (day, week,... |
#' @title Parameterise variable deathrates
#'
#' @param parameters the model parameters
#' @param agegroups vector of agegroups (in timesteps)
#' @param timesteps vector of timesteps for each change in demography
#' @param deathrates matrix of deathrates per age group per timestep.
#' Rows are timesteps from the `times... | /R/population_parameters.R | permissive | mrc-ide/malariasimulation | R | false | false | 2,439 | r | #' @title Parameterise variable deathrates
#'
#' @param parameters the model parameters
#' @param agegroups vector of agegroups (in timesteps)
#' @param timesteps vector of timesteps for each change in demography
#' @param deathrates matrix of deathrates per age group per timestep.
#' Rows are timesteps from the `times... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sgpdfl}
\alias{sgpdfl}
\title{R interface for GENG cdf;}
\description{
R interface for GENG cdf;
}
| /teachingApps/man/sgpdfl.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 205 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sgpdfl}
\alias{sgpdfl}
\title{R interface for GENG cdf;}
\description{
R interface for GENG cdf;
}
|
/R_Projets/Projet3/Dev2-biostat.R | no_license | milenasYN/Personal_Projects | R | false | false | 4,671 | r | ||
\name{MHadd.power}
\alias{MHadd.power}
\title{Additive Genetic Model Power using Mantel-Haenszel Test for Trend}
\description{This calculates the power of the Mantel-Haenszel Chi-squared test for trend with the specific application to modeling additively associated SNPs with disease.}
\usage{
MHadd.power(n1 = NULL,... | /Rtools/man/MHadd.power.Rd | no_license | johnsonra/Rtools | R | false | false | 1,511 | rd | \name{MHadd.power}
\alias{MHadd.power}
\title{Additive Genetic Model Power using Mantel-Haenszel Test for Trend}
\description{This calculates the power of the Mantel-Haenszel Chi-squared test for trend with the specific application to modeling additively associated SNPs with disease.}
\usage{
MHadd.power(n1 = NULL,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_metadata.R
\name{metadata_lst}
\alias{metadata_lst}
\title{Generate a list to hold GWAS metadata}
\usage{
metadata_lst(ensembl_release_number = NA_integer_,
genome_build_version = NA_character_, dbsnp_version = NA_integer_,
usage_star... | /man/metadata_lst.Rd | permissive | tzup/gwasrapidd | R | false | true | 1,033 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_metadata.R
\name{metadata_lst}
\alias{metadata_lst}
\title{Generate a list to hold GWAS metadata}
\usage{
metadata_lst(ensembl_release_number = NA_integer_,
genome_build_version = NA_character_, dbsnp_version = NA_integer_,
usage_star... |
#1.1
library(glmnet)
setwd("C:/Users/98302/Desktop/hw5")
read.csv("default_plus_chromatic_features_1059_tracks.txt",header=F)->data
latitude = as.matrix(data[,dim(data)[2]-1])
longitude = as.matrix(data[,dim(data)[2]])
data = as.matrix(data[,-c(dim(data)[2]-1,dim(data)[2])])
latitude_lm = lm(latitude~data)
mat<... | /Linear & Logistic/hw5.R | no_license | moqi112358/CS498AML-Applied-Machine-Learning | R | false | false | 9,246 | r | #1.1
library(glmnet)
setwd("C:/Users/98302/Desktop/hw5")
read.csv("default_plus_chromatic_features_1059_tracks.txt",header=F)->data
latitude = as.matrix(data[,dim(data)[2]-1])
longitude = as.matrix(data[,dim(data)[2]])
data = as.matrix(data[,-c(dim(data)[2]-1,dim(data)[2])])
latitude_lm = lm(latitude~data)
mat<... |
#' @include generic-methods.R
NULL
#' @title
#' Returns a summary of a Facebook collection
#'
#' @description
#' This generic returns a summarized version from various Facebook collections
#'
#' @param object A valid collection of Facebook elements
#' @param ... not used in this context
#'
#' @exportM... | /R/FacebookGenericCollection-methods.R | no_license | cran/facebook.S4 | R | false | false | 12,343 | r | #' @include generic-methods.R
NULL
#' @title
#' Returns a summary of a Facebook collection
#'
#' @description
#' This generic returns a summarized version from various Facebook collections
#'
#' @param object A valid collection of Facebook elements
#' @param ... not used in this context
#'
#' @exportM... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(8.46420857917308e-201, 1008517662305812480, 4.94660950370156e+173, 8.09552866436306e+307, 0, 0, 0, 0), .Dim = c(4L, 2L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615772600-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 279 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(8.46420857917308e-201, 1008517662305812480, 4.94660950370156e+173, 8.09552866436306e+307, 0, 0, 0, 0), .Dim = c(4L, 2L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
str(result) |
#' Add a Watts-Strogatz small-world graph
#' @description To an existing graph object, add
#' a graph built according to the Watts-Strogatz
#' small-world model, which uses a lattice along
#' with a rewiring probability to randomly modify
#' edge definitions.
#' @param graph a graph object of class
#' \code{dgr_graph}.... | /R/add_smallworld_graph.R | permissive | SHENSun0610/DiagrammeR | R | false | false | 5,309 | r | #' Add a Watts-Strogatz small-world graph
#' @description To an existing graph object, add
#' a graph built according to the Watts-Strogatz
#' small-world model, which uses a lattice along
#' with a rewiring probability to randomly modify
#' edge definitions.
#' @param graph a graph object of class
#' \code{dgr_graph}.... |
setwd('/data/zhangh24/breast_cancer_data_analysis/')
filedir <- '/data/zhangh24/breast_cancer_data_analysis/simulation/power/result/'
files <- dir(filedir,pattern="simu_result",full.names=T)
total <- 0
for(i1 in 1:5999){
print(i1)
file = paste0("/data/zhangh24/breast_cancer_data_analysis/simulation/power/result//si... | /submit_code/simulation/power/code/merge_power.R | no_license | andrewhaoyu/breast_cancer_data_analysis | R | false | false | 9,644 | r | setwd('/data/zhangh24/breast_cancer_data_analysis/')
filedir <- '/data/zhangh24/breast_cancer_data_analysis/simulation/power/result/'
files <- dir(filedir,pattern="simu_result",full.names=T)
total <- 0
for(i1 in 1:5999){
print(i1)
file = paste0("/data/zhangh24/breast_cancer_data_analysis/simulation/power/result//si... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/f7-update-inputs.R
\name{updateF7Stepper}
\alias{updateF7Stepper}
\title{Change the value of a stepper input on the client}
\usage{
updateF7Stepper(
session,
inputId,
min = NULL,
max = NULL,
value = NULL,
step = NULL,
fill = NUL... | /man/updateF7Stepper.Rd | no_license | CristianPachacama/shinyMobile | R | false | true | 3,218 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/f7-update-inputs.R
\name{updateF7Stepper}
\alias{updateF7Stepper}
\title{Change the value of a stepper input on the client}
\usage{
updateF7Stepper(
session,
inputId,
min = NULL,
max = NULL,
value = NULL,
step = NULL,
fill = NUL... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/s4c_Grandparent_G_summary.R
\docType{class}
\name{s4c_Grandparent_G_summary}
\alias{s4c_Grandparent_G_summary}
\alias{s4c_Grandparent_G_summary-class}
\title{An S4 class for \code{major_locus_G_summary} output: grandparents}
\descript... | /man/s4c_Grandparent_G_summary.Rd | no_license | alexgillett/MIMsim | R | false | false | 780 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/s4c_Grandparent_G_summary.R
\docType{class}
\name{s4c_Grandparent_G_summary}
\alias{s4c_Grandparent_G_summary}
\alias{s4c_Grandparent_G_summary-class}
\title{An S4 class for \code{major_locus_G_summary} output: grandparents}
\descript... |
# The 'starma' function estimates the parameters of a STARMA model given
# a set of space time observations, using Kalman filters encoded in C++.
# It also computes the residuals, the log likelihood and the BIC of the model.
# Args:
# - data: A matrix or a data frame with the observations of the space time
# pr... | /fuzzedpackages/starma/R/starma.R | no_license | akhikolla/testpackages | R | false | false | 3,621 | r | # The 'starma' function estimates the parameters of a STARMA model given
# a set of space time observations, using Kalman filters encoded in C++.
# It also computes the residuals, the log likelihood and the BIC of the model.
# Args:
# - data: A matrix or a data frame with the observations of the space time
# pr... |
library(shiny)
select_opts = list('category1'=letters[1:3], 'category2'=LETTERS[1:2])
select_opts2 = list('category3'=letters[4:6], 'category4'=LETTERS[3:4])
ui <- fluidPage(
titlePanel("title"),
sidebarLayout(
sidebarPanel(
sliderInput(inputId = "slider", label = "slider",
... | /app.R | no_license | vlahm/shiny_testground | R | false | false | 1,259 | r |
library(shiny)
select_opts = list('category1'=letters[1:3], 'category2'=LETTERS[1:2])
select_opts2 = list('category3'=letters[4:6], 'category4'=LETTERS[3:4])
ui <- fluidPage(
titlePanel("title"),
sidebarLayout(
sidebarPanel(
sliderInput(inputId = "slider", label = "slider",
... |
cat("Hello World!", "\n")
| /code.R | no_license | jawrobel/homework-0 | R | false | false | 26 | r | cat("Hello World!", "\n")
|
\name{levfwdplot}
\alias{levfwdplot}
\title{
Plots the trajectories of the monitored scaled (squared) residuals
}
\description{
Plots the trajectories of the monitored scaled (squared) residuals
}
\usage{
levfwdplot(out,
xlim, ylim, xlab, ylab, main, lwd, lty, col, cex.lab, cex.axis,
xval... | /man/levfwdplot.Rd | no_license | cran/fsdaR | R | false | false | 16,184 | rd | \name{levfwdplot}
\alias{levfwdplot}
\title{
Plots the trajectories of the monitored scaled (squared) residuals
}
\description{
Plots the trajectories of the monitored scaled (squared) residuals
}
\usage{
levfwdplot(out,
xlim, ylim, xlab, ylab, main, lwd, lty, col, cex.lab, cex.axis,
xval... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-roll.R
\name{plot.roll}
\alias{plot.roll}
\title{Plot Roll Objects}
\usage{
\method{plot}{roll}(roll)
}
\arguments{
\item{roll}{an object of class 'roll'}
}
\description{
plots the relative frequencies of a series of rolls
}
\examples{
#... | /hw05/dieroller/man/plot.roll.Rd | no_license | lindsey-chung/homework | R | false | true | 442 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-roll.R
\name{plot.roll}
\alias{plot.roll}
\title{Plot Roll Objects}
\usage{
\method{plot}{roll}(roll)
}
\arguments{
\item{roll}{an object of class 'roll'}
}
\description{
plots the relative frequencies of a series of rolls
}
\examples{
#... |
v=commandArgs(trailingOnly=TRUE)
# load libraries
library(mgcv)
library(boot)
library(reshape2)
library(lme4)
demo<-read.csv('~/pnc_demo.csv')
subjects<-read.csv('~/participants.txt',header = F)
ageSex<-data.frame(demo$ageAtScan1,as.factor(demo$sex),demo$scanid,demo$bblid)
colnames(ageSex)[4]<-'bblid'
colnames(ageSex)... | /scripts/derive_mixedModels/mixedEf_vert_looper_930_nonlin_boStr.R | no_license | weiwei-wch/multiscale | R | false | false | 5,789 | r |
v=commandArgs(trailingOnly=TRUE)
# load libraries
library(mgcv)
library(boot)
library(reshape2)
library(lme4)
demo<-read.csv('~/pnc_demo.csv')
subjects<-read.csv('~/participants.txt',header = F)
ageSex<-data.frame(demo$ageAtScan1,as.factor(demo$sex),demo$scanid,demo$bblid)
colnames(ageSex)[4]<-'bblid'
colnames(ageSex)... |
library(dplyr)
## get the colunns names
colname<- read.table("Dataset\\features.txt")
##get the activity label - question 3
activitylavel <- read.table("Dataset\\activity_labels.txt")
names(activitylavel) <- c("id","activity.label")
## get the test data and define the colum names
x_test <- read.table("Dataset\\test\\... | /run_analysis.R | no_license | fndfernando/Project-Getting-and-Cleaning-Data | R | false | false | 1,636 | r | library(dplyr)
## get the colunns names
colname<- read.table("Dataset\\features.txt")
##get the activity label - question 3
activitylavel <- read.table("Dataset\\activity_labels.txt")
names(activitylavel) <- c("id","activity.label")
## get the test data and define the colum names
x_test <- read.table("Dataset\\test\\... |
library(ggplot2)
library(ggthemes)
library(cowplot)
library(tidyverse)
library(RColorBrewer)
library(ggpmisc)
library(dplyr)
setwd("/Users/helenakanya/UBC/BDC/bdc/backend/api/data")
############# FUNCTIONS #############
rm_na <- function(DF, col, lim_na = 2, colnames){
cnt_na <- apply(DF[col], 1, function(z) sum(is... | /backend/api/data/r/plot.R | no_license | awtkns/bdc | R | false | false | 4,169 | r | library(ggplot2)
library(ggthemes)
library(cowplot)
library(tidyverse)
library(RColorBrewer)
library(ggpmisc)
library(dplyr)
setwd("/Users/helenakanya/UBC/BDC/bdc/backend/api/data")
############# FUNCTIONS #############
rm_na <- function(DF, col, lim_na = 2, colnames){
cnt_na <- apply(DF[col], 1, function(z) sum(is... |
library(tidyverse)
games <- readRDS(url("https://github.com/leesharpe/nfldata/blob/master/data/games.rds?raw=true")) %>%
dplyr::select(game_id, season, game_type, week, gameday, weekday, gametime, away_team,
home_team, away_score, home_score, home_result = result, stadium, location, roof, surface, ... | /R/99_old_json.R | no_license | cristianbrehm9/nflfastR-data | R | false | false | 2,688 | r |
library(tidyverse)
games <- readRDS(url("https://github.com/leesharpe/nfldata/blob/master/data/games.rds?raw=true")) %>%
dplyr::select(game_id, season, game_type, week, gameday, weekday, gametime, away_team,
home_team, away_score, home_score, home_result = result, stadium, location, roof, surface, ... |
library(EBImage)
library(data.table)
library(magrittr)
library(dplyr)
wtf <- function(x) {
tmpfile = strsplit(tempfile(), split = "[\\]") %>% unlist %>% head(7) %>% paste(collapse = '/')
tempfile2 = deparse(substitute(x))
fn = paste(tmpfile, tempfile2, sep = '/')
x2 = as.data.frame(x)
out = try(write.table(x... | /getlabels.R | no_license | klim852002/capstone-test | R | false | false | 5,101 | r | library(EBImage)
library(data.table)
library(magrittr)
library(dplyr)
wtf <- function(x) {
tmpfile = strsplit(tempfile(), split = "[\\]") %>% unlist %>% head(7) %>% paste(collapse = '/')
tempfile2 = deparse(substitute(x))
fn = paste(tmpfile, tempfile2, sep = '/')
x2 = as.data.frame(x)
out = try(write.table(x... |
library(here)
source(here("Automation/00_Functions_automation.R"))
# assigning Drive credentials in the case the script is verified manually
if (!"email" %in% ls()){
email <- "kikepaila@gmail.com"
}
# info country and N drive address
ctr <- "Belgium"
dir_n <- "N:/COVerAGE-DB/Automation/Hydra/"
# Drive credential... | /Automation/00_hydra/Belgium.R | permissive | yangboyubyron/covid_age | R | false | false | 5,683 | r | library(here)
source(here("Automation/00_Functions_automation.R"))
# assigning Drive credentials in the case the script is verified manually
if (!"email" %in% ls()){
email <- "kikepaila@gmail.com"
}
# info country and N drive address
ctr <- "Belgium"
dir_n <- "N:/COVerAGE-DB/Automation/Hydra/"
# Drive credential... |
# 개별종목 주가 크롤링
library(stringr)
KOR_ticker = read.csv('data/KOR_ticker.csv',row.names=1)
print(KOR_ticker$종목코드[1])
KOR_ticker$종목코드 = str_pad(KOR_ticker$종목코드, 6, side = c('left'), pad = 0)
# 삼성전자 주가 크롤링 후 가공
library(xts)
ifelse(dir.exists('data/KOR_price'),FALSE,
dir.create('data/KOR_price')) # KOR_price 폴더 생성... | /chap6.R | no_license | jiwon0915/quant_cookbook | R | false | false | 2,595 | r | # 개별종목 주가 크롤링
library(stringr)
KOR_ticker = read.csv('data/KOR_ticker.csv',row.names=1)
print(KOR_ticker$종목코드[1])
KOR_ticker$종목코드 = str_pad(KOR_ticker$종목코드, 6, side = c('left'), pad = 0)
# 삼성전자 주가 크롤링 후 가공
library(xts)
ifelse(dir.exists('data/KOR_price'),FALSE,
dir.create('data/KOR_price')) # KOR_price 폴더 생성... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wt_ffq.R
\name{wt_ffq}
\alias{wt_ffq}
\title{caculate the weight for dietary two day}
\usage{
wt_ffq(...)
}
\arguments{
\item{...}{one or more years}
}
\value{
dataframe contains the sequence number and dietary two day weight
}
\description{
... | /man/wt_ffq.Rd | no_license | DilyLong/nhanesR | R | false | true | 362 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wt_ffq.R
\name{wt_ffq}
\alias{wt_ffq}
\title{caculate the weight for dietary two day}
\usage{
wt_ffq(...)
}
\arguments{
\item{...}{one or more years}
}
\value{
dataframe contains the sequence number and dietary two day weight
}
\description{
... |
# get_exon_list <- function( Target_in, DB_in)
# {
# GenomicRanges::intersect( Target_in, DB_in,
# ignore.strand=TRUE) ) ) #-- total length shared (or "common") to both vecs
#
#
# }
check_files <- function( InFile, RefFile)
{
if( !file.exists(InFile))
{ stop(paste("ERR... | /scripts/Transcripts_funcs.R | no_license | Blosberg/nanopiper | R | false | false | 5,824 | r | # get_exon_list <- function( Target_in, DB_in)
# {
# GenomicRanges::intersect( Target_in, DB_in,
# ignore.strand=TRUE) ) ) #-- total length shared (or "common") to both vecs
#
#
# }
check_files <- function( InFile, RefFile)
{
if( !file.exists(InFile))
{ stop(paste("ERR... |
library(dplyr)
library(reshape2)
library(ggplot2)
library(tidyr)
#' set working directory
wd <- setwd("c:/personal/r")
#' batch in the AM Trucks from 2011. Nem output these on Dec 21st, 2016.
#' These do not represent a GC assignment on Hwy 407.
lt <- read.csv("am_light.csv")
md <- read.csv("am_medium.csv")
hy <- rea... | /2031V4CV.R | no_license | DuggalM/R-Codes | R | false | false | 8,475 | r | library(dplyr)
library(reshape2)
library(ggplot2)
library(tidyr)
#' set working directory
wd <- setwd("c:/personal/r")
#' batch in the AM Trucks from 2011. Nem output these on Dec 21st, 2016.
#' These do not represent a GC assignment on Hwy 407.
lt <- read.csv("am_light.csv")
md <- read.csv("am_medium.csv")
hy <- rea... |
\name{peekMin.MinHeap}
\alias{peekMin.MinHeap}
\title{Inspect the Root of a Min-Heap}
\description{
This method returns the root element of a \code{MinHeap}.
}
\details{
\code{smallest = aMinHeap$peekMin()}
}
\value{
\code{peekMin} returns the root element of the \code{MinHeap} in question, or \code{NULL} i... | /man/peekMin.MinHeap.Rd | no_license | cran/Containers | R | false | false | 396 | rd | \name{peekMin.MinHeap}
\alias{peekMin.MinHeap}
\title{Inspect the Root of a Min-Heap}
\description{
This method returns the root element of a \code{MinHeap}.
}
\details{
\code{smallest = aMinHeap$peekMin()}
}
\value{
\code{peekMin} returns the root element of the \code{MinHeap} in question, or \code{NULL} i... |
fy <- function(z,x) {
return(0 + 2*x^2*z)
}
fd <- function(z,x) {
return(0 + 1*x*z)
}
px <- function(x) {
return(0.05*(x<0.5) + 0.95*(x>0.5))
}
b_x <- function(x) {
return(cbind(x,x^2,x^3,x^4)) # later will add constant term
}
get_sim_data<-function(N,s){
set.seed(s) # for replication
x <- runif(N)
z <- r... | /specifications_sim.R | no_license | lsun20/rrr_kappa_replication | R | false | false | 1,098 | r | fy <- function(z,x) {
return(0 + 2*x^2*z)
}
fd <- function(z,x) {
return(0 + 1*x*z)
}
px <- function(x) {
return(0.05*(x<0.5) + 0.95*(x>0.5))
}
b_x <- function(x) {
return(cbind(x,x^2,x^3,x^4)) # later will add constant term
}
get_sim_data<-function(N,s){
set.seed(s) # for replication
x <- runif(N)
z <- r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.