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 |
|---|---|---|---|---|---|---|---|---|---|
library(winference)
registerDoParallel(cores = detectCores())
rm(list = ls())
setmytheme()
set.seed(11)
fig.height <- 5
fig.width <- 5
my_colors <- get_my_colors()
prefix = ""
target <- get_toggleswitch()
# number of observations
nobservations <- 2000
load(file = paste0(prefix,"toggleswitchdata.RData"))
obs <- obs... | /inst/reproduce/toggle_switch_plots.R | no_license | hal2001/winference | R | false | false | 6,813 | r | library(winference)
registerDoParallel(cores = detectCores())
rm(list = ls())
setmytheme()
set.seed(11)
fig.height <- 5
fig.width <- 5
my_colors <- get_my_colors()
prefix = ""
target <- get_toggleswitch()
# number of observations
nobservations <- 2000
load(file = paste0(prefix,"toggleswitchdata.RData"))
obs <- obs... |
spy <- function (M) {
# spy(M)
# plots the sparsity pattern of a matrix M.
#
# INPUT
# S(m,n) a mxn Matrix, the nonzero elements are plotted
#
# uses PlotPixMatrix(M,Names,LowLim,HiLim)
# ALU
Names =NULL;
LowLim=0;
NZInd = which(M>0);
if (length(NZInd) >0){
Hi... | /DbtTools/RetroMAT/R/spy.R | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 537 | r | spy <- function (M) {
# spy(M)
# plots the sparsity pattern of a matrix M.
#
# INPUT
# S(m,n) a mxn Matrix, the nonzero elements are plotted
#
# uses PlotPixMatrix(M,Names,LowLim,HiLim)
# ALU
Names =NULL;
LowLim=0;
NZInd = which(M>0);
if (length(NZInd) >0){
Hi... |
## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... | /HADGEM_REMO/RCP85/3DBC_rsds_HADGEM_REMO_APP_template.R | no_license | doblerone/3DBC | R | false | false | 4,984 | r | ## An implementation of
## "A Resampling Approach for Correcting Systematic Spatiotemporal Biases for Multiple Variables in a Changing Climate"
## by Mehrotra and Sharma (2019), Water Resources Research, 55(1), pp.754-770, doi: 10.1029/2018WR023270
## Refered to as 3DBC (3-dimensional bias-correction), as it keeps inte... |
#########################################################################
## ##
## ##
## Application 3: Causal Tree ##
## ... | /R_applications/3_CT/application_3_causal_tree.R | no_license | Yhzhang2022/machine-learning-for-education-policies | R | false | false | 2,735 | r | #########################################################################
## ##
## ##
## Application 3: Causal Tree ##
## ... |
#' @title Infer TF activity from single cell gene expression profile
#'
#' @description \code{sciraRegAct} calculates TF activity scores in user input data set. It could be a single cell gene expression dataset.
#'
#' @param data A gene expression data matrix, with rows referring to genes and columns to samples.
#' @pa... | /R/sciraRegAct.R | no_license | leeson89/SCIRA-1 | R | false | false | 2,862 | r | #' @title Infer TF activity from single cell gene expression profile
#'
#' @description \code{sciraRegAct} calculates TF activity scores in user input data set. It could be a single cell gene expression dataset.
#'
#' @param data A gene expression data matrix, with rows referring to genes and columns to samples.
#' @pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/submodel-rtm-2s.R
\name{ts_mubar_star}
\alias{ts_mubar_star}
\title{Average inverse optical depth for diffuse radiation: Two-stream}
\usage{
ts_mubar_star(orient_factor, lai, cai = 1)
}
\arguments{
\item{orient_factor}{Orient factor (npft)}
... | /man/ts_mubar_star.Rd | permissive | femeunier/fortebaseline | R | false | true | 503 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/submodel-rtm-2s.R
\name{ts_mubar_star}
\alias{ts_mubar_star}
\title{Average inverse optical depth for diffuse radiation: Two-stream}
\usage{
ts_mubar_star(orient_factor, lai, cai = 1)
}
\arguments{
\item{orient_factor}{Orient factor (npft)}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ldmvnorm.R
\name{ldmvnorm}
\alias{ldmvnorm}
\title{Log Multivariate Normal Density}
\usage{
ldmvnorm(Y, S)
}
\arguments{
\item{Y}{an n x p matrix}
\item{S}{a p x p positive definite matrix}
}
\value{
A real number.
}
\description{
Computes t... | /man/ldmvnorm.Rd | no_license | cran/sbgcop | R | false | true | 712 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ldmvnorm.R
\name{ldmvnorm}
\alias{ldmvnorm}
\title{Log Multivariate Normal Density}
\usage{
ldmvnorm(Y, S)
}
\arguments{
\item{Y}{an n x p matrix}
\item{S}{a p x p positive definite matrix}
}
\value{
A real number.
}
\description{
Computes t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PooledEstimateFunction.R
\name{PooledEstimateFunction}
\alias{PooledEstimateFunction}
\title{Title}
\usage{
PooledEstimateFunction(N, cen)
}
\arguments{
\item{N}{the geometric sampling result}
\item{cen}{the censored status of geometric samp... | /man/PooledEstimateFunction.Rd | no_license | andrewhaoyu/PAV | R | false | true | 351 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PooledEstimateFunction.R
\name{PooledEstimateFunction}
\alias{PooledEstimateFunction}
\title{Title}
\usage{
PooledEstimateFunction(N, cen)
}
\arguments{
\item{N}{the geometric sampling result}
\item{cen}{the censored status of geometric samp... |
#' Functions from RDCOMClient package
#'
#' For details about these functions see help for RDCOMClient package by
#' Duncan Temple Lang \email{duncan@@wald.ucdavis.edu}:
#' \url{http://www.omegahat.net/RDCOMClient}, \url{http://www.omegahat.net}.
#'
#' @author Duncan Temple Lang \email{duncan@@wald.ucdavis.ed... | /R/RDCOMClient.R | no_license | zeta1999/excel.link | R | false | false | 1,997 | r | #' Functions from RDCOMClient package
#'
#' For details about these functions see help for RDCOMClient package by
#' Duncan Temple Lang \email{duncan@@wald.ucdavis.edu}:
#' \url{http://www.omegahat.net/RDCOMClient}, \url{http://www.omegahat.net}.
#'
#' @author Duncan Temple Lang \email{duncan@@wald.ucdavis.ed... |
epicurve <- function(x, ...) UseMethod('epicurve')
epicurve.data.frame <- function(x, count_column = 'count',
date_column = 'date',cumulative=TRUE, ...) {
stopifnot(c(date_column,count_column) %in% colnames(x))
class(x) = c('epicurve',class(x))
attr(x,'epicurve') = list(date... | /R/epicurve.R | permissive | RichardMN/sars2pack | R | false | false | 906 | r | epicurve <- function(x, ...) UseMethod('epicurve')
epicurve.data.frame <- function(x, count_column = 'count',
date_column = 'date',cumulative=TRUE, ...) {
stopifnot(c(date_column,count_column) %in% colnames(x))
class(x) = c('epicurve',class(x))
attr(x,'epicurve') = list(date... |
## CASE 3: modelValuesAccessorVector
## copy(modelValues, xxx, from.row=i, nodes) becomes:
## modelValues_nodes_accessors <- modelValuesAccessorVector(modelValues, nodes)
## copy(modelValues_nodes_accessors$row(i), xxx)
## modelValuesAccessorVector$getAccessors() returns a list of the modelValuesAccessor objects
co... | /packages/nimble/R/types_modelValuesAccessor.R | no_license | peterasujan/nimble | R | false | false | 12,729 | r |
## CASE 3: modelValuesAccessorVector
## copy(modelValues, xxx, from.row=i, nodes) becomes:
## modelValues_nodes_accessors <- modelValuesAccessorVector(modelValues, nodes)
## copy(modelValues_nodes_accessors$row(i), xxx)
## modelValuesAccessorVector$getAccessors() returns a list of the modelValuesAccessor objects
co... |
# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/tests.html
# * https://testthat.r-lib.org/reference/test_package.html#special-files
libr... | /2022/aoc7/tests/testthat.R | no_license | marhel/adventOfCode | R | false | false | 368 | r | # This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/tests.html
# * https://testthat.r-lib.org/reference/test_package.html#special-files
libr... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
... | /server.R | no_license | ryzhokhina/ShinyAppReproduciblePitch | R | false | false | 3,175 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
... |
\name{brownie.lite}
\alias{brownie.lite}
\title{Likelihood test for rate variation in a continuous trait}
\usage{
brownie.lite(tree, x, maxit=2000, test="chisq", nsim=100, se=NULL, ...)
}
\arguments{
\item{tree}{a phylogenetic tree in modified \code{"phylo"} format (see \code{\link{read.simmap}}, \code{\link{ma... | /man/brownie.lite.Rd | no_license | aghozlane/phytools | R | false | false | 3,303 | rd | \name{brownie.lite}
\alias{brownie.lite}
\title{Likelihood test for rate variation in a continuous trait}
\usage{
brownie.lite(tree, x, maxit=2000, test="chisq", nsim=100, se=NULL, ...)
}
\arguments{
\item{tree}{a phylogenetic tree in modified \code{"phylo"} format (see \code{\link{read.simmap}}, \code{\link{ma... |
library(metaSEM)
### Name: Hox02
### Title: Simulated Effect Sizes Reported by Hox (2002)
### Aliases: Hox02
### Keywords: datasets
### ** Examples
## Not run:
##D data(Hox02)
##D
##D #### ML estimation method
##D ## Random-effects meta-analysis
##D summary( meta(y=yi, v=vi, data=Hox02, I2=c("I2q", "I2hm"), inter... | /data/genthat_extracted_code/metaSEM/examples/Hox02.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,361 | r | library(metaSEM)
### Name: Hox02
### Title: Simulated Effect Sizes Reported by Hox (2002)
### Aliases: Hox02
### Keywords: datasets
### ** Examples
## Not run:
##D data(Hox02)
##D
##D #### ML estimation method
##D ## Random-effects meta-analysis
##D summary( meta(y=yi, v=vi, data=Hox02, I2=c("I2q", "I2hm"), inter... |
library(CopulaCenR)
### Name: data_sim_copula
### Title: Simulate bivariate time-to-event times based on specific copula
### and marginal distributions
### Aliases: data_sim_copula
### ** Examples
library(CopulaCenR)
set.seed(1)
dat <- data_sim_copula(n = 500, copula = "Clayton", eta = 3,
d... | /data/genthat_extracted_code/CopulaCenR/examples/data_sim_copula.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 829 | r | library(CopulaCenR)
### Name: data_sim_copula
### Title: Simulate bivariate time-to-event times based on specific copula
### and marginal distributions
### Aliases: data_sim_copula
### ** Examples
library(CopulaCenR)
set.seed(1)
dat <- data_sim_copula(n = 500, copula = "Clayton", eta = 3,
d... |
# chap07_DataPreprocessing
# 1. 탐색적 데이터 분석
# 실습 데이터 읽어오기
setwd("C:/Rwork/Part-II")
dataset <- read.csv("dataset.csv", header=TRUE) # 헤더가 있는 경우
dataset
#1) 데이터 셋 보기
# 데이터셋 전체 보기
print(dataset)
dataset
View(dataset) # 뷰어창 출력
# 간단이 앞쪽/뒤쪽 조회
head(dataset)
tail(dataset)
# 2) 데이터 셋 구조보기
names(dataset) # 변수명(컬럼)
attr... | /R-script/강사님수업자료/chap07_DataPreprocessing.R | no_license | gimapei/Rwork | R | false | false | 5,557 | r | # chap07_DataPreprocessing
# 1. 탐색적 데이터 분석
# 실습 데이터 읽어오기
setwd("C:/Rwork/Part-II")
dataset <- read.csv("dataset.csv", header=TRUE) # 헤더가 있는 경우
dataset
#1) 데이터 셋 보기
# 데이터셋 전체 보기
print(dataset)
dataset
View(dataset) # 뷰어창 출력
# 간단이 앞쪽/뒤쪽 조회
head(dataset)
tail(dataset)
# 2) 데이터 셋 구조보기
names(dataset) # 변수명(컬럼)
attr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accessors.R
\name{domain}
\alias{domain}
\alias{domain<-}
\title{Get or set a URL's domain}
\usage{
domain(x)
domain(x) <- value
}
\arguments{
\item{x}{a URL, or vector of URLs}
\item{value}{a replacement value for x's scheme.}
}
\descripti... | /man/domain.Rd | permissive | chiara35/Chiara-hotmail.it- | R | false | true | 781 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accessors.R
\name{domain}
\alias{domain}
\alias{domain<-}
\title{Get or set a URL's domain}
\usage{
domain(x)
domain(x) <- value
}
\arguments{
\item{x}{a URL, or vector of URLs}
\item{value}{a replacement value for x's scheme.}
}
\descripti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dtplyr-package.R
\docType{package}
\name{dtplyr-package}
\alias{dtplyr}
\alias{dtplyr-package}
\title{dtplyr: Data Table Back-End for 'dplyr'}
\description{
This implements the data table back-end for 'dplyr'
so that you can seamlessly us... | /man/dtplyr-package.Rd | no_license | MichaelChirico/dtplyr | R | false | true | 731 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dtplyr-package.R
\docType{package}
\name{dtplyr-package}
\alias{dtplyr}
\alias{dtplyr-package}
\title{dtplyr: Data Table Back-End for 'dplyr'}
\description{
This implements the data table back-end for 'dplyr'
so that you can seamlessly us... |
## Put comments here that give an overall description of what your
## functions do
## This script contains two functions, makeCacheMatrix and cacheSolve for caching
## the inverse of a square matrix. It helps to minimize the computational calculation.
## Write a short comment describing this function
## makeCacheMat... | /cachematrix.R | no_license | yanjin93/Assignment-2 | R | false | false | 1,299 | r | ## Put comments here that give an overall description of what your
## functions do
## This script contains two functions, makeCacheMatrix and cacheSolve for caching
## the inverse of a square matrix. It helps to minimize the computational calculation.
## Write a short comment describing this function
## makeCacheMat... |
mdes.bcra4r2 <- function(power=.80, alpha=.05, two.tailed=TRUE,
rho2, rho3, rho4, esv3=NULL, esv4=NULL,
omega3=esv3/rho3, omega4=esv4/rho4,
p=.50, r21=0, r22=0, r2t3=0, r2t4=0, g4=0,
n, J, K, L){
user.parms <- as.li... | /R/bcra4r2.R | no_license | cran/PowerUpR | R | false | false | 4,716 | r | mdes.bcra4r2 <- function(power=.80, alpha=.05, two.tailed=TRUE,
rho2, rho3, rho4, esv3=NULL, esv4=NULL,
omega3=esv3/rho3, omega4=esv4/rho4,
p=.50, r21=0, r22=0, r2t3=0, r2t4=0, g4=0,
n, J, K, L){
user.parms <- as.li... |
#Load packages
require(eulerr)
require(vegan)
require(FD)
require(svglite)
require(ggplot2)
require(sjPlot)
set_theme(base = theme_classic())
#Load data
#Site x environmental variables matrix
sites <- read.csv("Data_repository/sites_data.csv")
#Site x species abundance matrix for vascular species
va... | /scripts/Figures_4_5_Composition.R | no_license | edeschenes/peatland_latitude | R | false | false | 18,203 | r |
#Load packages
require(eulerr)
require(vegan)
require(FD)
require(svglite)
require(ggplot2)
require(sjPlot)
set_theme(base = theme_classic())
#Load data
#Site x environmental variables matrix
sites <- read.csv("Data_repository/sites_data.csv")
#Site x species abundance matrix for vascular species
va... |
myheader <- matrix(c(
"creation_date", "graffiti.date",
"status", "character",
"completion_date", "NULL",
"service_request_number", "NULL",
"type_of_service_request", "NULL",
"what_type_of_suface_is_the_graffiti_on_", "NULL",
"where_is_the_graffiti_located_", "NULL",
"street_address", "NULL"... | /CODE/not used/liveReadInGraffiti.R | permissive | ivotron/sciPopper | R | false | false | 1,065 | r |
myheader <- matrix(c(
"creation_date", "graffiti.date",
"status", "character",
"completion_date", "NULL",
"service_request_number", "NULL",
"type_of_service_request", "NULL",
"what_type_of_suface_is_the_graffiti_on_", "NULL",
"where_is_the_graffiti_located_", "NULL",
"street_address", "NULL"... |
library(devtools)
devtools::load_all()
RNGkind("L'Ecuyer-CMRG")
seed <- 999983
s_k <- 5000
s_n <- 500
s_m <- 6
sim_type1_5006 <- type_1(seed, s_k, s_n, s_m, L = 1000,
trunc.eig = 1, semi.iter = F, center.bs = F)
save(sim_type1_5006, file = "sim_type1_5006.RData")
| /simulation/truncate/type1/sim_type1_5006.r | permissive | ZhuolinSong/Ftesting | R | false | false | 283 | r | library(devtools)
devtools::load_all()
RNGkind("L'Ecuyer-CMRG")
seed <- 999983
s_k <- 5000
s_n <- 500
s_m <- 6
sim_type1_5006 <- type_1(seed, s_k, s_n, s_m, L = 1000,
trunc.eig = 1, semi.iter = F, center.bs = F)
save(sim_type1_5006, file = "sim_type1_5006.RData")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opt.stiefel.R
\name{lineSearchBB}
\alias{lineSearchBB}
\title{A curvilinear search on the Stiefel manifold with BB steps (Wen and Yin 2013, Algo 2)
This is based on the line search algorithm described in (Zhang and Hager, 2004)}
\usage{
lineS... | /man/lineSearchBB.Rd | no_license | dreamboyMeng/rstiefel | R | false | true | 1,583 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opt.stiefel.R
\name{lineSearchBB}
\alias{lineSearchBB}
\title{A curvilinear search on the Stiefel manifold with BB steps (Wen and Yin 2013, Algo 2)
This is based on the line search algorithm described in (Zhang and Hager, 2004)}
\usage{
lineS... |
library(data.table)
#
foo=list(`5kbp`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl/CpG/all/AGA.Boy.Girl.tiling.top100.by.rank.csv",
`gene`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl/CpG/all/AGA.Boy.Girl.genes.top100.by.rank.csv",
`promoter`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl... | /bin/R/RnBeads/join.WGoxBS.SureSelect.R | no_license | sung/ObsGynaePipes | R | false | false | 3,457 | r | library(data.table)
#
foo=list(`5kbp`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl/CpG/all/AGA.Boy.Girl.tiling.top100.by.rank.csv",
`gene`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl/CpG/all/AGA.Boy.Girl.genes.top100.by.rank.csv",
`promoter`="/scratch/obsgynae/POPS/results/RnBeads/Boy.Girl... |
#' LaTeX alternative printing of regression results.
#'
#' This (generic) function prints the LaTeX code of the results of a fit from
#' \code{\link{coxreg}}, \code{\link{phreg}}, \code{\link{tpchreg}},
#' or \code{\link{aftreg}}.
#'
#' @param x The output from a call to \code{coxreg}, \code{tpchreg}, or
#' \code{af... | /R/ltx2.R | no_license | cran/eha | R | false | false | 19,525 | r | #' LaTeX alternative printing of regression results.
#'
#' This (generic) function prints the LaTeX code of the results of a fit from
#' \code{\link{coxreg}}, \code{\link{phreg}}, \code{\link{tpchreg}},
#' or \code{\link{aftreg}}.
#'
#' @param x The output from a call to \code{coxreg}, \code{tpchreg}, or
#' \code{af... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{orderly_latest}
\alias{orderly_latest}
\title{Find most recent report}
\usage{
orderly_latest(name, config = NULL, locate = TRUE, draft = FALSE,
must_work = TRUE)
}
\arguments{
\item{name}{Name of the report to find}
\item{co... | /man/orderly_latest.Rd | no_license | tinigarske/orderly | R | false | true | 900 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{orderly_latest}
\alias{orderly_latest}
\title{Find most recent report}
\usage{
orderly_latest(name, config = NULL, locate = TRUE, draft = FALSE,
must_work = TRUE)
}
\arguments{
\item{name}{Name of the report to find}
\item{co... |
/temp/CM/nhpi/new/LOOP.R | no_license | anasanz/NHBD | R | false | false | 39,940 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppSimpleTensor.R
\name{tensorFunction}
\alias{tensorFunction}
\title{This function generates another function that represents the tensor
descirbed in the only argument.}
\usage{
tensorFunction(expr, name = NULL, cache = TRUE, verbose = FALS... | /man/tensorFunction.Rd | no_license | tlamadon/RcppSimpleTensor | R | false | true | 1,215 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppSimpleTensor.R
\name{tensorFunction}
\alias{tensorFunction}
\title{This function generates another function that represents the tensor
descirbed in the only argument.}
\usage{
tensorFunction(expr, name = NULL, cache = TRUE, verbose = FALS... |
# Copyright 2012 Google Inc. All Rights Reserved.
# Author: yingyin@google.com (Ying Yin)
#
# Cross validation on the posture adaption accuracy.
source('key_detection_lib.R')
source('analysis_lib.R')
source('cross_validation_lib.R')
args <- commandArgs(trailingOnly = T)
data.file <- args[1]
user.file <- args[2]
keyb... | /cross_validation_posture.R | no_license | ushadow/chi2013 | R | false | false | 961 | r | # Copyright 2012 Google Inc. All Rights Reserved.
# Author: yingyin@google.com (Ying Yin)
#
# Cross validation on the posture adaption accuracy.
source('key_detection_lib.R')
source('analysis_lib.R')
source('cross_validation_lib.R')
args <- commandArgs(trailingOnly = T)
data.file <- args[1]
user.file <- args[2]
keyb... |
# Modul for Administrative tabeller-fane i Hisreg sin shiny-app på Rapporteket
#
# Kun til bruk i Shiny
#
# @return Modulfunksjoner til Administrative tabeller
admtab_UI <- function(id){
ns <- shiny::NS(id)
shiny::sidebarLayout(
sidebarPanel(width = 3,
id = ns("id_adm_panel"),
... | /inst/shinyApps/hisreg/R/modul_admtab.R | no_license | Rapporteket/hisreg | R | false | false | 18,149 | r | # Modul for Administrative tabeller-fane i Hisreg sin shiny-app på Rapporteket
#
# Kun til bruk i Shiny
#
# @return Modulfunksjoner til Administrative tabeller
admtab_UI <- function(id){
ns <- shiny::NS(id)
shiny::sidebarLayout(
sidebarPanel(width = 3,
id = ns("id_adm_panel"),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apigateway_operations.R
\name{apigateway_update_documentation_part}
\alias{apigateway_update_documentation_part}
\title{Update documentation part}
\usage{
apigateway_update_documentation_part(restApiId, documentationPartId,
patchOperations)... | /cran/paws.networking/man/apigateway_update_documentation_part.Rd | permissive | TWarczak/paws | R | false | true | 1,431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apigateway_operations.R
\name{apigateway_update_documentation_part}
\alias{apigateway_update_documentation_part}
\title{Update documentation part}
\usage{
apigateway_update_documentation_part(restApiId, documentationPartId,
patchOperations)... |
#simple_forecast.R
ynby_open = `000538.SZ`[,1]
ynby_mon = to.monthly(ynby_open)
ynby_season = ts(ynby_mon[,1], frequency = 12,start = c(2007,1))
y1 = meanf(ynby_season,h=12)
y2 = naive(ynby_season,h=12)
y3 =snaive(ynby_season,h=12)
y4 = rwf(ynby_season,h=12,drift = TRUE)
plot(y1,plot.conf=FALSE,col=1, main="Compariso... | /b1/simple_forecast.R | no_license | hishouting/learnR | R | false | false | 518 | r | #simple_forecast.R
ynby_open = `000538.SZ`[,1]
ynby_mon = to.monthly(ynby_open)
ynby_season = ts(ynby_mon[,1], frequency = 12,start = c(2007,1))
y1 = meanf(ynby_season,h=12)
y2 = naive(ynby_season,h=12)
y3 =snaive(ynby_season,h=12)
y4 = rwf(ynby_season,h=12,drift = TRUE)
plot(y1,plot.conf=FALSE,col=1, main="Compariso... |
eval_metric_functions <- list()
eval_metric_functions[['MAPE']] <- function(Target, Prediccion, error){
return(mean(100*error))
}
eval_metric_functions[['MEDAPE']] <- function(Target, Prediccion, error){
return(median(100*error))
}
eval_metric_functions[['MSE']] <- function(Target, Prediccion, error){
return(mean... | /R/eval_metric_functions.R | no_license | papabloblo/copulaR | R | false | false | 741 | r | eval_metric_functions <- list()
eval_metric_functions[['MAPE']] <- function(Target, Prediccion, error){
return(mean(100*error))
}
eval_metric_functions[['MEDAPE']] <- function(Target, Prediccion, error){
return(median(100*error))
}
eval_metric_functions[['MSE']] <- function(Target, Prediccion, error){
return(mean... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudsearch_operations.R
\name{cloudsearch_list_domain_names}
\alias{cloudsearch_list_domain_names}
\title{Lists all search domains owned by an account}
\usage{
cloudsearch_list_domain_names()
}
\description{
Lists all search domains owned by... | /cran/paws.analytics/man/cloudsearch_list_domain_names.Rd | permissive | paws-r/paws | R | false | true | 452 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloudsearch_operations.R
\name{cloudsearch_list_domain_names}
\alias{cloudsearch_list_domain_names}
\title{Lists all search domains owned by an account}
\usage{
cloudsearch_list_domain_names()
}
\description{
Lists all search domains owned by... |
### R code from vignette source 'UrnTheory.Rtex'
| /data/genthat_extracted_code/BiasedUrn/vignettes/UrnTheory.R | no_license | surayaaramli/typeRrh | R | false | false | 50 | r | ### R code from vignette source 'UrnTheory.Rtex'
|
### Explicit coercion functions for translating some simple Qt data
### structures to and from native R objects, like vectors and matrices.
## These are all from C++ to R. For the other direction, see constructors.R.
as.matrix.QRectF <- function(x, ...) .Call("qt_coerce_QRectF", x, PACKAGE="qtbase")
as.matrix.QRect <... | /R/coerce.R | no_license | ggobi/qtbase | R | false | false | 2,238 | r | ### Explicit coercion functions for translating some simple Qt data
### structures to and from native R objects, like vectors and matrices.
## These are all from C++ to R. For the other direction, see constructors.R.
as.matrix.QRectF <- function(x, ...) .Call("qt_coerce_QRectF", x, PACKAGE="qtbase")
as.matrix.QRect <... |
#Read in matched dataset
matched <- read.csv("matchedDataset.csv", header = T)
#CVD
B = 1000
k = 1
pivot.ci.cvd = data.frame(matrix(ncol = 2, nrow = 1772))
for(i in unique(matched$patzip)){
dat = matched[which(matched$patzip == i),]
x = dat$diffMedcard
mean.x = mean(x)
sd.x = sd(x)
n = length(x)
z = ... | /bootstrap.R | no_license | KristenHansen/SpatialHeatWaves | R | false | false | 6,399 | r |
#Read in matched dataset
matched <- read.csv("matchedDataset.csv", header = T)
#CVD
B = 1000
k = 1
pivot.ci.cvd = data.frame(matrix(ncol = 2, nrow = 1772))
for(i in unique(matched$patzip)){
dat = matched[which(matched$patzip == i),]
x = dat$diffMedcard
mean.x = mean(x)
sd.x = sd(x)
n = length(x)
z = ... |
library(dplyr); library(magrittr); library(ggplot2); library(reshape2)
load("./test_2.Rdata")
### exploratory analysis
ggplot(data = test_1, aes(x = sqrt(n), y = time, color = factor(b))) +
geom_point() + facet_wrap(facets = b~k, scales = "free", ncol = 6) +
geom_smooth(method = "loess", color = "purp... | /work_on_test_1.R | no_license | ahdxb/parallel-test | R | false | false | 9,007 | r | library(dplyr); library(magrittr); library(ggplot2); library(reshape2)
load("./test_2.Rdata")
### exploratory analysis
ggplot(data = test_1, aes(x = sqrt(n), y = time, color = factor(b))) +
geom_point() + facet_wrap(facets = b~k, scales = "free", ncol = 6) +
geom_smooth(method = "loess", color = "purp... |
# #' Determine if a package is on Bioconductor or not.
# #'
# #' @keywords internal
# #' @param pkgs Vector of package names
# #' @return A logical vector of same length as input vector
# is.biocPackage <- function(pkgs){
# file <- file.path(tempdir(), "rrt_biockgs.rda")
# bioc_pkgs <- suppressWarnings(tryCatch(lo... | /R/bioconductor.R | no_license | revodavid/checkpoint | R | false | false | 1,071 | r | # #' Determine if a package is on Bioconductor or not.
# #'
# #' @keywords internal
# #' @param pkgs Vector of package names
# #' @return A logical vector of same length as input vector
# is.biocPackage <- function(pkgs){
# file <- file.path(tempdir(), "rrt_biockgs.rda")
# bioc_pkgs <- suppressWarnings(tryCatch(lo... |
setwd("C:/Git/R Programming Exercises/radvanced/apply family")
getwd()
source("DataPrep.R")
setwd("C:/Git/R Programming Exercises/radvanced/apply family")
getwd()
#Using lapply()
#transpose the weather data for each city such that the months are rows
# and the different weather stats are column names
# save this trans... | /apply family/lapply_egs.R | no_license | akihsirh/radvanced | R | false | false | 1,267 | r | setwd("C:/Git/R Programming Exercises/radvanced/apply family")
getwd()
source("DataPrep.R")
setwd("C:/Git/R Programming Exercises/radvanced/apply family")
getwd()
#Using lapply()
#transpose the weather data for each city such that the months are rows
# and the different weather stats are column names
# save this trans... |
\name{green}
\alias{green}
\docType{data}
\title{Liver basophilia severity scores of second-generation female medaka}
\description{Severity scores}
\usage{data("green")}
\format{
A data frame with 67 observations on the following 4 variables.
\describe{
\item{\code{Dose}}{a numeric vector}
\item{\code{Sever... | /man/green.Rd | no_license | YoJimboDurant/SiTuR | R | false | false | 681 | rd | \name{green}
\alias{green}
\docType{data}
\title{Liver basophilia severity scores of second-generation female medaka}
\description{Severity scores}
\usage{data("green")}
\format{
A data frame with 67 observations on the following 4 variables.
\describe{
\item{\code{Dose}}{a numeric vector}
\item{\code{Sever... |
# Multivariate PCMs
#Read Tree and data; prune
library(geomorph)
library(geiger)
library(phytools)
tree.best<-read.nexus("TutorialData/Consensus of 1000 salamander trees.nex") #Maximum Credible Tree
plethdata<-read.csv("TutorialData/meandata-CinGlutOnly.csv",row.names=1, header=TRUE )
Y<-plethdata[,c(3:8)]
... | /practicals/MultivariatePCMs.r | no_license | EEOB-Macroevolution/EEOB565X-Spring2020 | R | false | false | 2,629 | r | # Multivariate PCMs
#Read Tree and data; prune
library(geomorph)
library(geiger)
library(phytools)
tree.best<-read.nexus("TutorialData/Consensus of 1000 salamander trees.nex") #Maximum Credible Tree
plethdata<-read.csv("TutorialData/meandata-CinGlutOnly.csv",row.names=1, header=TRUE )
Y<-plethdata[,c(3:8)]
... |
library(tidyverse)
library(conflicted)
library(ggbeeswarm)
library(Hmisc)
library(cowplot)
library(here)
library(ggpubr)
conflict_prefer("here", "here")
conflict_prefer("filter", "dplyr")
here()
# Import Data -------------------------------------------------------------
tidy.data <- readRDS(here("data", "NAM.chemot... | /R/experiments/NAM_chemotaxis/NAM_plate_chemotaxis.R | permissive | zamanianlab/BrugiaChemo-ms | R | false | false | 8,836 | r | library(tidyverse)
library(conflicted)
library(ggbeeswarm)
library(Hmisc)
library(cowplot)
library(here)
library(ggpubr)
conflict_prefer("here", "here")
conflict_prefer("filter", "dplyr")
here()
# Import Data -------------------------------------------------------------
tidy.data <- readRDS(here("data", "NAM.chemot... |
setwd("~/Desktop/GuanLab/")
core <- read.csv("rawdata/prostate_cancer_challenge_data_training/CoreTable_training.csv",
header = T, stringsAsFactors = F)
GRtable <- core[, c("RPT", "LKADT_P", "DEATH")]
GRtable$LKADT_P <- as.numeric(GRtable$LKADT_P)
GRtable$DEATH <- ifelse(GRtable$DEATH == "YES", 1, 0)... | /Data manipulation and early attempt /GuanRank.R | no_license | nonztalk/mCPRC-ClinicalDataAnalysis | R | false | false | 2,682 | r | setwd("~/Desktop/GuanLab/")
core <- read.csv("rawdata/prostate_cancer_challenge_data_training/CoreTable_training.csv",
header = T, stringsAsFactors = F)
GRtable <- core[, c("RPT", "LKADT_P", "DEATH")]
GRtable$LKADT_P <- as.numeric(GRtable$LKADT_P)
GRtable$DEATH <- ifelse(GRtable$DEATH == "YES", 1, 0)... |
#=========================================
# MSc Transporte Economics
# TRAN 5911 Dissertation
# Samira Marx
#=========================================
#--------------------------------------
# library
#--------------------------------------
library(xtable)
library(ggplot2)
library(plyr)
library(dplyr)
library(rstan)
... | /r-scripts/mkt4_T_SCOTYORK_posteriorplot.R | no_license | samiramarx/Bayesian-elasticities | R | false | false | 12,265 | r | #=========================================
# MSc Transporte Economics
# TRAN 5911 Dissertation
# Samira Marx
#=========================================
#--------------------------------------
# library
#--------------------------------------
library(xtable)
library(ggplot2)
library(plyr)
library(dplyr)
library(rstan)
... |
# Enter your code here. Read input from STDIN. Print output to STDOUT
n <- 100
u <- 500
sd <- 80
z <- 1.96
x <- (z*sd)/sqrt(n)
A <- u - x
B <- u + x
cat(round(c(A,B),2),sep='\n') | /Day 6- The Central Limit Theorem III.R | no_license | qianelsali/10-days-of-Statistics-Hackerrank | R | false | false | 181 | r | # Enter your code here. Read input from STDIN. Print output to STDOUT
n <- 100
u <- 500
sd <- 80
z <- 1.96
x <- (z*sd)/sqrt(n)
A <- u - x
B <- u + x
cat(round(c(A,B),2),sep='\n') |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClaytonGumbelCopula.R
\docType{class}
\name{surGumbelCopula-class}
\alias{dduCopula,matrix,r270GumbelCopula-method}
\alias{dduCopula,matrix,r90GumbelCopula-method}
\alias{dduCopula,matrix,surGumbelCopula-method}
\alias{dduCopula,numeric,r270G... | /man/surGumbelCopula-class.Rd | no_license | ulf85/VineCopula | R | false | true | 1,635 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClaytonGumbelCopula.R
\docType{class}
\name{surGumbelCopula-class}
\alias{dduCopula,matrix,r270GumbelCopula-method}
\alias{dduCopula,matrix,r90GumbelCopula-method}
\alias{dduCopula,matrix,surGumbelCopula-method}
\alias{dduCopula,numeric,r270G... |
library(spatstat)
### Name: thinNetwork
### Title: Remove Vertices or Segments from a Linear Network
### Aliases: thinNetwork
### Keywords: spatial manip
### ** Examples
L <- simplenet
plot(L, main="thinNetwork(L, retainedges=c(-3, -5))")
text(midpoints.psp(as.psp(L)), labels=1:nsegments(L), pos=3)
Lsub... | /data/genthat_extracted_code/spatstat/examples/thinNetwork.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 408 | r | library(spatstat)
### Name: thinNetwork
### Title: Remove Vertices or Segments from a Linear Network
### Aliases: thinNetwork
### Keywords: spatial manip
### ** Examples
L <- simplenet
plot(L, main="thinNetwork(L, retainedges=c(-3, -5))")
text(midpoints.psp(as.psp(L)), labels=1:nsegments(L), pos=3)
Lsub... |
library(binhf)
### Name: norm
### Title: Euclidean norm
### Aliases: norm
### Keywords: manip
### ** Examples
#generate data:
x<-y<-runif(100)
error<-norm(x,y)
#this is the difference between the vectors.
| /data/genthat_extracted_code/binhf/examples/norm.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 218 | r | library(binhf)
### Name: norm
### Title: Euclidean norm
### Aliases: norm
### Keywords: manip
### ** Examples
#generate data:
x<-y<-runif(100)
error<-norm(x,y)
#this is the difference between the vectors.
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggflexsurvplot.R
\name{ggflexsurvplot}
\alias{ggflexsurvplot}
\title{Ggplots of Fitted Flexible Survival Models}
\usage{
ggflexsurvplot(fit, data = NULL, fun = c("survival", "cumhaz"),
summary.flexsurv = NULL, size = 1, conf.int = FALSE,
... | /man/ggflexsurvplot.Rd | no_license | mcarone/survminer | R | false | true | 1,648 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggflexsurvplot.R
\name{ggflexsurvplot}
\alias{ggflexsurvplot}
\title{Ggplots of Fitted Flexible Survival Models}
\usage{
ggflexsurvplot(fit, data = NULL, fun = c("survival", "cumhaz"),
summary.flexsurv = NULL, size = 1, conf.int = FALSE,
... |
a = matrix(
c(10, 12, 13, 4, 5, 6, 7, 8, 9),
nrow=3,
ncol=3)
b = matrix(
c(2, 4, 3, 1, 5, 7, 8, 9, 10),
nrow=3,
ncol=3)
## creates a list containing a function to set the value of the vector, get the value
## of the vector, set the value of the inverse and get the value of the inverse.
makeCacheM... | /cachematrix.R | no_license | brendabeaty/ProgrammingAssignment2 | R | false | false | 884 | r | a = matrix(
c(10, 12, 13, 4, 5, 6, 7, 8, 9),
nrow=3,
ncol=3)
b = matrix(
c(2, 4, 3, 1, 5, 7, 8, 9, 10),
nrow=3,
ncol=3)
## creates a list containing a function to set the value of the vector, get the value
## of the vector, set the value of the inverse and get the value of the inverse.
makeCacheM... |
#' Pre-render tutorials
#' @description Some tutorials fail to run for unknown reasons. If rendered first, they can still work.
#' @param tutorials Vector of tutorials to pre-render. If omitted will pre-render all tutorials in package
#' @param force Force pre-rendering when tutorial html files already exists. Default ... | /R/prerender-tutorial.R | permissive | biostats-r/biostats.tutorials | R | false | false | 1,326 | r | #' Pre-render tutorials
#' @description Some tutorials fail to run for unknown reasons. If rendered first, they can still work.
#' @param tutorials Vector of tutorials to pre-render. If omitted will pre-render all tutorials in package
#' @param force Force pre-rendering when tutorial html files already exists. Default ... |
setwd("/home/olga/MyProjects/Polikek/ML/Regression/datasets")
data = read.delim("cygage.txt")
f = lm(calAge ~ Depth, data, weights = data$Depth)
plot(data$Depth, data$calAge)
lines(data$Depth, predict(f), col = 'red')
summary(f)
| /Regression/reg3.R | no_license | SaxinaOV/telematics_ml | R | false | false | 230 | r | setwd("/home/olga/MyProjects/Polikek/ML/Regression/datasets")
data = read.delim("cygage.txt")
f = lm(calAge ~ Depth, data, weights = data$Depth)
plot(data$Depth, data$calAge)
lines(data$Depth, predict(f), col = 'red')
summary(f)
|
setwd("./deploy1_folder")
rsconnect::deployApp(account = "micfm", appName = "The_VVIX")
| /Options/The_VVIX/deploy_scripts/deploy1.R | no_license | naveenareddy/5MinuteFinance | R | false | false | 88 | r | setwd("./deploy1_folder")
rsconnect::deployApp(account = "micfm", appName = "The_VVIX")
|
## create a matrix object that will cache the inverse when the solve function is called
makeCacheMatrix <- function(a = matrix()) {
cache_matrix <- NULL
set <- function(b){
a <<- b
cache_matrix <<- NULL
}
get <- function() a
setmatrix <- function(solve) cache_matrix <<- solve
getmatrix <- function(... | /cachematrix.R | no_license | arthurlwebb/ProgrammingAssignment2 | R | false | false | 802 | r | ## create a matrix object that will cache the inverse when the solve function is called
makeCacheMatrix <- function(a = matrix()) {
cache_matrix <- NULL
set <- function(b){
a <<- b
cache_matrix <<- NULL
}
get <- function() a
setmatrix <- function(solve) cache_matrix <<- solve
getmatrix <- function(... |
## purpose: perform univariate variable analysis, e.g., tils densities -> patient survivials (os)
# analysis on tcga_coad stage ii and iii patients
# author: Hongming Xu, CCF, 2020
# email: mxu@ualberta.ca
library("readxl")
library(survival)
library(survminer)
library("forestplot")
rela_path='../../../'
# patient s... | /R_analysis/tcga_colon_os.R | no_license | hwanglab/TILs_Analysis | R | false | false | 9,683 | r | ## purpose: perform univariate variable analysis, e.g., tils densities -> patient survivials (os)
# analysis on tcga_coad stage ii and iii patients
# author: Hongming Xu, CCF, 2020
# email: mxu@ualberta.ca
library("readxl")
library(survival)
library(survminer)
library("forestplot")
rela_path='../../../'
# patient s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QualityOfClustering.R
\name{QualityOfClustering}
\alias{QualityOfClustering}
\title{Measures quality of clustering at various levels}
\usage{
QualityOfClustering(dtDatasetPredicted, cClassLabelFeat)
}
\arguments{
\item{dtDatasetPredicted, }{a... | /man/QualityOfClustering.Rd | permissive | thecomeonman/CURD | R | false | true | 956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QualityOfClustering.R
\name{QualityOfClustering}
\alias{QualityOfClustering}
\title{Measures quality of clustering at various levels}
\usage{
QualityOfClustering(dtDatasetPredicted, cClassLabelFeat)
}
\arguments{
\item{dtDatasetPredicted, }{a... |
### Kptn bulk data deconvolution using Zeissel et al. data
### Kptn bulk data deconvolution using Saunders et al. data
farm = FALSE
if (farm == TRUE){
setwd('/nfs/users/nfs_a/aa16/Deconvolution/')
}else{
setwd('/home/jovyan/Deconvolution/')
}
source('deconvolution.R')
if (farm == TRUE){
dataDirectory = '/lus... | /kptn_Zeissel_deconvolution.R | no_license | AlexanderAivazidis/Deconvolution | R | false | false | 1,888 | r | ### Kptn bulk data deconvolution using Zeissel et al. data
### Kptn bulk data deconvolution using Saunders et al. data
farm = FALSE
if (farm == TRUE){
setwd('/nfs/users/nfs_a/aa16/Deconvolution/')
}else{
setwd('/home/jovyan/Deconvolution/')
}
source('deconvolution.R')
if (farm == TRUE){
dataDirectory = '/lus... |
## read data
ec <- read.table("household_power_consumption.txt", colClasses = c("character", "character","numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"),sep=";",header=T,na.strings= "?")
## add datetime column
ec$datetime <- strptime(paste(ec$Date, ec$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
##... | /plot1.R | no_license | farhansiddiqui/ExData_Plotting1 | R | false | false | 751 | r | ## read data
ec <- read.table("household_power_consumption.txt", colClasses = c("character", "character","numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"),sep=";",header=T,na.strings= "?")
## add datetime column
ec$datetime <- strptime(paste(ec$Date, ec$Time, sep=" "), "%d/%m/%Y %H:%M:%S")
##... |
#'@title Single Attribute Value Function (SAVF) Linear Score
#'
#'@description: Calculates the Single Attribute Value Function (SAVF) score for a linearly increasing or decreasing function.
#'It calculates the score based on the midpoint value method.
#'
#'@param x Attribute raw value
#'@param x_low Lowest value
#'@pa... | /R/SAVF_linear_score.R | no_license | JaquesZanon/DecisionAnalysis | R | false | false | 1,265 | r | #'@title Single Attribute Value Function (SAVF) Linear Score
#'
#'@description: Calculates the Single Attribute Value Function (SAVF) score for a linearly increasing or decreasing function.
#'It calculates the score based on the midpoint value method.
#'
#'@param x Attribute raw value
#'@param x_low Lowest value
#'@pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quest_functions.R
\name{valids_test}
\alias{valids_test}
\title{Test for Invalid Elements in Data}
\usage{
valids_test(data, vrb.nm, valid, na.rm = TRUE)
}
\arguments{
\item{data}{data.frame of data.}
\item{vrb.nm}{character vector of colnam... | /man/valids_test.Rd | no_license | cran/quest | R | false | true | 1,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quest_functions.R
\name{valids_test}
\alias{valids_test}
\title{Test for Invalid Elements in Data}
\usage{
valids_test(data, vrb.nm, valid, na.rm = TRUE)
}
\arguments{
\item{data}{data.frame of data.}
\item{vrb.nm}{character vector of colnam... |
#' A Function to Z transform a vector of data
#'
#' A Function to Z transform a vector of data
#' @param data the vector of data to be transformed
#' @export
#' @examples
#' ztransform()
ztransform = function (data) {
m = mean(data, na.rm = TRUE)
s = sd(data, na.rm = TRUE)
out = (data - m)/s
return( out )
}
| /R/ztransform.R | no_license | hughesevoanth/iPVs | R | false | false | 318 | r | #' A Function to Z transform a vector of data
#'
#' A Function to Z transform a vector of data
#' @param data the vector of data to be transformed
#' @export
#' @examples
#' ztransform()
ztransform = function (data) {
m = mean(data, na.rm = TRUE)
s = sd(data, na.rm = TRUE)
out = (data - m)/s
return( out )
}
|
/3. Модуль 3/3.6. Разработка telegram ботов на языке R/rym_tg.R | no_license | selesnow/r_for_marketing | R | false | false | 3,554 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frequencyAnalysis.R
\name{transitionFrequencies}
\alias{transitionFrequencies}
\title{Transition frequencies of combinatorial states}
\usage{
transitionFrequencies(multi.hmms = NULL, combined.hmm = NULL,
zero.states = "[]", combstates = NUL... | /man/transitionFrequencies.Rd | no_license | zorrodong/chromstaR | R | false | true | 1,359 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frequencyAnalysis.R
\name{transitionFrequencies}
\alias{transitionFrequencies}
\title{Transition frequencies of combinatorial states}
\usage{
transitionFrequencies(multi.hmms = NULL, combined.hmm = NULL,
zero.states = "[]", combstates = NUL... |
# The main test script
library(dplyr)
head(mtcars)
filter(mtcars, mpg > 20, cyl > 5) # no cars with mpg > 20 and more than 6 cylinders
head(arrange(mtcars, cyl,desc(wt)))
head(select(mtcars, mpg, hp))
distinct(mtcars, gear)
x = mtcars %>% as_tibble() %>% mutate(
Performance = hp/wt
)
head(x)
mean(mtg,mpg)
summari... | /TestScript.r | no_license | BasalGanglia/RAnalyses | R | false | false | 10,189 | r | # The main test script
library(dplyr)
head(mtcars)
filter(mtcars, mpg > 20, cyl > 5) # no cars with mpg > 20 and more than 6 cylinders
head(arrange(mtcars, cyl,desc(wt)))
head(select(mtcars, mpg, hp))
distinct(mtcars, gear)
x = mtcars %>% as_tibble() %>% mutate(
Performance = hp/wt
)
head(x)
mean(mtg,mpg)
summari... |
###########################################
### TECHNIKI WIZUALIZACJI DANYCH ###
### LABORATORIUM 1 ###
###########################################
## 0) Prowadzący.
# Hubert Baniecki/Anna Kozak
# Kontakt: MS Teams lub mail
# a.kozak@mini.pw.edu.pl
## 1) Materiały
# Repozytorium... | /homeworks/hw0/Wojewoda_Malwina/Lab_1.R | no_license | Owain-S/2022Z-DataVisualizationTechniques | R | false | false | 2,278 | r | ###########################################
### TECHNIKI WIZUALIZACJI DANYCH ###
### LABORATORIUM 1 ###
###########################################
## 0) Prowadzący.
# Hubert Baniecki/Anna Kozak
# Kontakt: MS Teams lub mail
# a.kozak@mini.pw.edu.pl
## 1) Materiały
# Repozytorium... |
library(compiler)
library(data.table)
# Parse XML from URL
getSitemapUrls <- cmpfun(function(sitemapURL){
sitemap <- htmlTreeParse(sitemapURL, useInternalNodes = T)
urls <- data.frame(URL=xpathSApply(sitemap, "//url/loc", xmlValue))
return(urls)
})
# Parse XML from file
getSitemapUrlsFromFile <- cmpfun(function... | /www/global.R | no_license | IronistM/ganalyticsauditapp | R | false | false | 5,072 | r | library(compiler)
library(data.table)
# Parse XML from URL
getSitemapUrls <- cmpfun(function(sitemapURL){
sitemap <- htmlTreeParse(sitemapURL, useInternalNodes = T)
urls <- data.frame(URL=xpathSApply(sitemap, "//url/loc", xmlValue))
return(urls)
})
# Parse XML from file
getSitemapUrlsFromFile <- cmpfun(function... |
# analyze/ plot results of RunRollout.R (only those w/o childhood vaccination - ages 5-12)
library(foreach)
# set up parallel, might need to change for your system
library(doParallel)
registerDoParallel(cores=4)
library(HutchCOVID)
source("covid-model-plotting.R")
load("../data/wa_counties_aggr.Rdata")
# data from ... | /Vaccine Rollout/Analyze_Rollout_schools_KIDS.R | no_license | FredHutch/COVID_modeling_schools | R | false | false | 2,992 | r | # analyze/ plot results of RunRollout.R (only those w/o childhood vaccination - ages 5-12)
library(foreach)
# set up parallel, might need to change for your system
library(doParallel)
registerDoParallel(cores=4)
library(HutchCOVID)
source("covid-model-plotting.R")
load("../data/wa_counties_aggr.Rdata")
# data from ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lambda_operations.R
\name{lambda_update_event_source_mapping}
\alias{lambda_update_event_source_mapping}
\title{Updates an event source mapping}
\usage{
lambda_update_event_source_mapping(
UUID,
FunctionName = NULL,
Enabled = NULL,
Ba... | /cran/paws.compute/man/lambda_update_event_source_mapping.Rd | permissive | paws-r/paws | R | false | true | 5,487 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lambda_operations.R
\name{lambda_update_event_source_mapping}
\alias{lambda_update_event_source_mapping}
\title{Updates an event source mapping}
\usage{
lambda_update_event_source_mapping(
UUID,
FunctionName = NULL,
Enabled = NULL,
Ba... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confrontation.R
\name{check_that}
\alias{check_that}
\title{Simple data validation interface}
\usage{
check_that(dat, ...)
}
\arguments{
\item{dat}{an R object carrying data}
\item{...}{a comma-separated set of validating expressions.}
}
\va... | /man/check_that.Rd | no_license | cran/validate | R | false | true | 1,365 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/confrontation.R
\name{check_that}
\alias{check_that}
\title{Simple data validation interface}
\usage{
check_that(dat, ...)
}
\arguments{
\item{dat}{an R object carrying data}
\item{...}{a comma-separated set of validating expressions.}
}
\va... |
# -------------------------------------------------------------------------
# Proyecto de Movilidad --------------------------------------------------
# -------------------------------------------------------------------------
# Cargar libreiras --------------------------------------------------------
require(pa... | /02_01_makeMaps_surveys.R | no_license | fabiolexcastro/MovilidadUV | R | false | false | 29,428 | r | # -------------------------------------------------------------------------
# Proyecto de Movilidad --------------------------------------------------
# -------------------------------------------------------------------------
# Cargar libreiras --------------------------------------------------------
require(pa... |
# Project: compareHD_MVN
# Objective: function to generate data according to a CFA model
# Author: Edoardo Costantini
# Created: 2021-07-30
# Modified: 2021-07-30
dataGen <- function(parms, cond){
## Inputs ##
# cond <- conds[1, ]
## Body ##
# 1. Generate covariance matrix ---------------------------... | /code/functions/dataGen.R | no_license | EdoardoCostantini/compareHD_MVN | R | false | false | 1,060 | r | # Project: compareHD_MVN
# Objective: function to generate data according to a CFA model
# Author: Edoardo Costantini
# Created: 2021-07-30
# Modified: 2021-07-30
dataGen <- function(parms, cond){
## Inputs ##
# cond <- conds[1, ]
## Body ##
# 1. Generate covariance matrix ---------------------------... |
#' A package for ridge regression model fitting
#'
#' @description A package to fit a ridge regression model
#' to a data set after a formula specified by the user.
#' A ridge constant, chosen by the user, is used.
#' @docType package
#' @name lab7sarasara
#' @author Sara Jesperson and Sara Johansson
NULL
| /lab7sarasara/R/lab7sarasara.R | no_license | rjkhan/AdvancedRlab7 | R | false | false | 309 | r | #' A package for ridge regression model fitting
#'
#' @description A package to fit a ridge regression model
#' to a data set after a formula specified by the user.
#' A ridge constant, chosen by the user, is used.
#' @docType package
#' @name lab7sarasara
#' @author Sara Jesperson and Sara Johansson
NULL
|
#' Calls EONET webservice
#'
#' Calls NASA's Earth Observatory Natural Event Tracker (EONET) webservice and
#' returns a list containing individual events as \code{data.frame}.
#'
#' @param status Accepts "open" or "closed".
#' Defaults to "all", which includes both.
#' @param sources Accepts character id... | /R/eonet.R | no_license | Eflores89/nasadata | R | false | false | 6,367 | r | #' Calls EONET webservice
#'
#' Calls NASA's Earth Observatory Natural Event Tracker (EONET) webservice and
#' returns a list containing individual events as \code{data.frame}.
#'
#' @param status Accepts "open" or "closed".
#' Defaults to "all", which includes both.
#' @param sources Accepts character id... |
##################### HOUSEKEEPING ###########################
library(shiny); library(dplyr); library(ggplot2); library(reshape2); library(heatmap3)
#library(biomaRt); (Migrating to using AWS RDS for all data)
library(R.utils); library(networkD3); library(tidyr); library(caret); library(DT); require(stringr)
#librar... | /server.R | no_license | ed-lau/proturnyze | R | false | false | 1,320 | r | ##################### HOUSEKEEPING ###########################
library(shiny); library(dplyr); library(ggplot2); library(reshape2); library(heatmap3)
#library(biomaRt); (Migrating to using AWS RDS for all data)
library(R.utils); library(networkD3); library(tidyr); library(caret); library(DT); require(stringr)
#librar... |
c1 <- c(1,1,8,2,3,7,6,6,7,5,4)
c2 <- c(6,7,6,4,3,7,5,3,4,3,2)
points <- data.frame(c1,c2)
# prepare hierarchical cluster
hc = hclust(dist(points), method = "complete")
# very simple dendrogram
plot(hc)
data <- read.table("AlgHW12.txt", sep = ' ', header = TRUE, row.names = 1)
sums <- data.frame()
for (i in 1:nrow(... | /hw12/12_5.R | no_license | yellowananas/algorithmics | R | false | false | 537 | r | c1 <- c(1,1,8,2,3,7,6,6,7,5,4)
c2 <- c(6,7,6,4,3,7,5,3,4,3,2)
points <- data.frame(c1,c2)
# prepare hierarchical cluster
hc = hclust(dist(points), method = "complete")
# very simple dendrogram
plot(hc)
data <- read.table("AlgHW12.txt", sep = ' ', header = TRUE, row.names = 1)
sums <- data.frame()
for (i in 1:nrow(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sctkTagging.R
\name{expData,ANY,character-method}
\alias{expData,ANY,character-method}
\title{expData
Get data item from an input \code{SingleCellExperiment} object. The data item can be an \code{assay}, \code{altExp} (subset) or a \code{redu... | /man/expData-ANY-character-method.Rd | permissive | irzamsarfraz/singleCellTK | R | false | true | 811 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sctkTagging.R
\name{expData,ANY,character-method}
\alias{expData,ANY,character-method}
\title{expData
Get data item from an input \code{SingleCellExperiment} object. The data item can be an \code{assay}, \code{altExp} (subset) or a \code{redu... |
#For this problem we will start with a simulation in order to find out how large n needs
#to be for the binomial distribution to be approximated by the normal
#distribution.
#We will take m samples from the binomial distribution for some n and p.
#1.(4pts.) Let's let p=1/2, use the rbinom function to generate the sam... | /SimulationProj.R | no_license | ptiagi/Rprojects | R | false | false | 10,039 | r | #For this problem we will start with a simulation in order to find out how large n needs
#to be for the binomial distribution to be approximated by the normal
#distribution.
#We will take m samples from the binomial distribution for some n and p.
#1.(4pts.) Let's let p=1/2, use the rbinom function to generate the sam... |
testlist <- list(Beta = 0, CVLinf = 6.04913193528569e+44, FM = 1.39067116156709e-309, L50 = 0, L95 = 0, LenBins = c(2.79530346463353e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 5.0300450... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829978-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 474 | r | testlist <- list(Beta = 0, CVLinf = 6.04913193528569e+44, FM = 1.39067116156709e-309, L50 = 0, L95 = 0, LenBins = c(2.79530346463353e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 5.0300450... |
# Salary
myplot_param_default(Salary)
myplot_param_default(Salary/Games)
myplot_param_default(Salary/FieldGoals)
# Ingame Metrics
myplot_param_default(MinutesPlayed)
myplot_param_default(Points)
# Ingame metrics normalized
myplot_param_default(FieldGoals/Games)
myplot_param_default(FieldGoals/FieldGoalAttempts)
myplot... | /basketball_insights.R | no_license | Kartik-Mishra99/R-basics | R | false | false | 623 | r | # Salary
myplot_param_default(Salary)
myplot_param_default(Salary/Games)
myplot_param_default(Salary/FieldGoals)
# Ingame Metrics
myplot_param_default(MinutesPlayed)
myplot_param_default(Points)
# Ingame metrics normalized
myplot_param_default(FieldGoals/Games)
myplot_param_default(FieldGoals/FieldGoalAttempts)
myplot... |
rm(list=ls())
###Data Wrangling in R###
library("ggplot2")
data("USPersonalExpenditure")
#creating new dataframe
uspe = USPersonalExpenditure
amount = rep(t(uspe),1)
year = rep(colnames(uspe), nrow(uspe))
category = as.vector(sapply(rownames(uspe), rep, ncol(uspe)))
USPersonalExpenditure_Long = data.frame(category, y... | /DataVisualizationandSQL.R | no_license | jerrylin96/Data-Visualization-and-SQL-in-R | R | false | false | 2,371 | r | rm(list=ls())
###Data Wrangling in R###
library("ggplot2")
data("USPersonalExpenditure")
#creating new dataframe
uspe = USPersonalExpenditure
amount = rep(t(uspe),1)
year = rep(colnames(uspe), nrow(uspe))
category = as.vector(sapply(rownames(uspe), rep, ncol(uspe)))
USPersonalExpenditure_Long = data.frame(category, y... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVD.R
\name{SVD}
\alias{SVD}
\title{Single Value Decomposition (Maximum Covariance Analysis)}
\usage{
SVD(
vary,
varx,
laty = NULL,
latx = NULL,
nmodes = 15,
corr = FALSE,
weight = TRUE
)
}
\arguments{
\item{vary}{Array containi... | /man/SVD.Rd | no_license | rpkgs/s2dverification | R | false | true | 4,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SVD.R
\name{SVD}
\alias{SVD}
\title{Single Value Decomposition (Maximum Covariance Analysis)}
\usage{
SVD(
vary,
varx,
laty = NULL,
latx = NULL,
nmodes = 15,
corr = FALSE,
weight = TRUE
)
}
\arguments{
\item{vary}{Array containi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neuro_surface.R
\docType{methods}
\name{[,NeuroSurfaceVector,missing,missing,ANY-method}
\alias{[,NeuroSurfaceVector,missing,missing,ANY-method}
\title{extractor}
\usage{
\S4method{[}{NeuroSurfaceVector,missing,missing,ANY}(x, i, j, ...,
dr... | /man/sub-NeuroSurfaceVector-missing-missing-ANY-method.Rd | no_license | bbuchsbaum/neurosurf | R | false | true | 494 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neuro_surface.R
\docType{methods}
\name{[,NeuroSurfaceVector,missing,missing,ANY-method}
\alias{[,NeuroSurfaceVector,missing,missing,ANY-method}
\title{extractor}
\usage{
\S4method{[}{NeuroSurfaceVector,missing,missing,ANY}(x, i, j, ...,
dr... |
/cAIC4/R/cnms2formula.R | no_license | ingted/R-Examples | R | false | false | 881 | r | ||
/02_CWM and FD.R | permissive | elisa-vancleemput/invasion-impacts-traits | R | false | false | 18,775 | r | ||
table(var1, var2, ... , varN)
#使用N个类别型变量创建一个N维列联表
xtabs(formula, data)
#根据一个公式和一个矩阵或数据框创建一个N维列联表
prop.table(table, margins)
#依margins定义的边际列表将表中条目表示为分数形式
margin.table(table, margins)
#依margins定义的边际列表计算表中条目的和
addmargins(table, margins)
#将概述边margins(默认是求和结果)放入表中
ftable(table)
#创建一个紧凑的“平铺”式列联表 | /R in Action/07基本统计分析/01Frequency_table&contingency_tabl/01FrequencyTable.R | no_license | XscapeCn/RLearning | R | false | false | 509 | r | table(var1, var2, ... , varN)
#使用N个类别型变量创建一个N维列联表
xtabs(formula, data)
#根据一个公式和一个矩阵或数据框创建一个N维列联表
prop.table(table, margins)
#依margins定义的边际列表将表中条目表示为分数形式
margin.table(table, margins)
#依margins定义的边际列表计算表中条目的和
addmargins(table, margins)
#将概述边margins(默认是求和结果)放入表中
ftable(table)
#创建一个紧凑的“平铺”式列联表 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_ids.R
\encoding{UTF-8}
\name{parse_ids}
\alias{parse_ids}
\title{Parse IDs from a string of delimited list of values.}
\usage{
parse_ids(
str,
num = NULL,
sep = ":",
id_length = "standard",
perc = 0.6,
nThread = 4
)
}
\argum... | /man/parse_ids.Rd | no_license | yuluc/parseRPDR | R | false | true | 1,879 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_ids.R
\encoding{UTF-8}
\name{parse_ids}
\alias{parse_ids}
\title{Parse IDs from a string of delimited list of values.}
\usage{
parse_ids(
str,
num = NULL,
sep = ":",
id_length = "standard",
perc = 0.6,
nThread = 4
)
}
\argum... |
#' Read a file from sql++ with columns seperated by |
#'
#' @param file xxx
#' @param col.names xxx
#' @param stop.on.error xxx
#' @param ... xxx
#'
#' @export
read.sql <- function (file,
col.names,
stop.on.error = T,
...)
{
n <- count.fields(file, se... | /R/read.sql.R | no_license | einarhjorleifsson/fjolst2 | R | false | false | 668 | r | #' Read a file from sql++ with columns seperated by |
#'
#' @param file xxx
#' @param col.names xxx
#' @param stop.on.error xxx
#' @param ... xxx
#'
#' @export
read.sql <- function (file,
col.names,
stop.on.error = T,
...)
{
n <- count.fields(file, se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miRBaseConvert.R
\name{miRNA_NameToAccession}
\alias{miRNA_NameToAccession}
\title{The miRBase miRNA names with specified version to Accessions}
\usage{
miRNA_NameToAccession(miRNANames, version = "v21")
}
\arguments{
\item{miRNAName... | /man/miRNA_NameToAccession.Rd | no_license | xtsvm/discard-miRBaseConverter- | R | false | true | 1,540 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/miRBaseConvert.R
\name{miRNA_NameToAccession}
\alias{miRNA_NameToAccession}
\title{The miRBase miRNA names with specified version to Accessions}
\usage{
miRNA_NameToAccession(miRNANames, version = "v21")
}
\arguments{
\item{miRNAName... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xtab_helpers.R
\name{xtab_path_for_code}
\alias{xtab_path_for_code}
\title{cache path for statcan data with given code}
\usage{
xtab_path_for_code(code)
}
\description{
cache path for statcan data with given code
}
| /man/xtab_path_for_code.Rd | no_license | mountainMath/cancensusHelpers | R | false | true | 293 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xtab_helpers.R
\name{xtab_path_for_code}
\alias{xtab_path_for_code}
\title{cache path for statcan data with given code}
\usage{
xtab_path_for_code(code)
}
\description{
cache path for statcan data with given code
}
|
#discrimant analysis
dim(filter2)
cancer = apply(filter2[,1:16],1,mean,na.rm=T)
normal = apply(filter2[,17:32],1,mean,na.rm=T)
fold = cancer - normal
fold2 = sort(fold)
discriminant.g = names(fold2[c(1:5,3786:3790)])
discriminant.g
| /discriminant_analysis.R | no_license | lkogant1/Marray_analysis | R | false | false | 232 | r | #discrimant analysis
dim(filter2)
cancer = apply(filter2[,1:16],1,mean,na.rm=T)
normal = apply(filter2[,17:32],1,mean,na.rm=T)
fold = cancer - normal
fold2 = sort(fold)
discriminant.g = names(fold2[c(1:5,3786:3790)])
discriminant.g
|
# Codes to run a gbm algorithm with a 8-fold CV of the HUNT2 samples in R.
# The outcome is a future breast cancer and the variables are serum metabolite and lipoprotein concentrations, measured by NMR,
# which are in the columns E to EA in the Molecules.xlsx file, while the outcome is stored in column A.
# Data ... | /gbm.R | no_license | juliadebik/HUNT2_BCstudy | R | false | false | 2,388 | r | # Codes to run a gbm algorithm with a 8-fold CV of the HUNT2 samples in R.
# The outcome is a future breast cancer and the variables are serum metabolite and lipoprotein concentrations, measured by NMR,
# which are in the columns E to EA in the Molecules.xlsx file, while the outcome is stored in column A.
# Data ... |
###################
# endocrown.R
##########################################################################
# Data Dictionary
# MF = Maxim Force
# Group I..: Cemented with Dual resin cement;
# Group II.: Cemented with chemical polymerization resin cement;
# Group III: cemented with zinc phosphate;
# Group IV.: cemente... | /endocrown.R | no_license | ecacarva/endocrown | R | false | false | 3,008 | r | ###################
# endocrown.R
##########################################################################
# Data Dictionary
# MF = Maxim Force
# Group I..: Cemented with Dual resin cement;
# Group II.: Cemented with chemical polymerization resin cement;
# Group III: cemented with zinc phosphate;
# Group IV.: cemente... |
<<<<<<< HEAD
#################################################
# Company : Stevens
# Project : CART
# Purpose : HW5.2
# First Name : Jiaxian
# Last Name : Xing
# Id : 10439460
# Date : 04/09
# Comments :
#################################################
rm(list = ls())
#in... | /CS-513-2019S/hw5&6/HW_CART_Another.R | permissive | Master-Alcy/StevensCodes | R | false | false | 2,894 | r | <<<<<<< HEAD
#################################################
# Company : Stevens
# Project : CART
# Purpose : HW5.2
# First Name : Jiaxian
# Last Name : Xing
# Id : 10439460
# Date : 04/09
# Comments :
#################################################
rm(list = ls())
#in... |
QIC.gee <-
function(object) {
model=object$model
data=object$data
id=object$id
corstr=object$corstr
family=object$family
### data information;
if (length(id) != nrow(data)){
stop("variable lengths differ (found for '(id)')")}
m <- model.frame(model, data, na.action='na.pass')
cluster<-cluster.... | /R/QIC.gee.R | no_license | cran/wgeesel | R | false | false | 2,553 | r | QIC.gee <-
function(object) {
model=object$model
data=object$data
id=object$id
corstr=object$corstr
family=object$family
### data information;
if (length(id) != nrow(data)){
stop("variable lengths differ (found for '(id)')")}
m <- model.frame(model, data, na.action='na.pass')
cluster<-cluster.... |
testlist <- list(doy = c(2.12530129086192e-42, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, -1.18078903777423e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-7... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615836376-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 821 | r | testlist <- list(doy = c(2.12530129086192e-42, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, -1.18078903777423e-90, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-7... |
\name{PlotFits}
\alias{PlotFits}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
PlotFits
}
\description{
PlotFits produces base R plots of each modelled waveform in the batch, including component waves and baselines.
}
\usage{
PlotFits(beats_in, ppg, beat2, gs = model2.GetSegment, rb = model2.Re... | /man/PlotFits.Rd | permissive | stw32/PulseWaveform | R | false | false | 1,641 | rd | \name{PlotFits}
\alias{PlotFits}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
PlotFits
}
\description{
PlotFits produces base R plots of each modelled waveform in the batch, including component waves and baselines.
}
\usage{
PlotFits(beats_in, ppg, beat2, gs = model2.GetSegment, rb = model2.Re... |
#dada la matriz de adyacencia adjConectado
# y la matriz de expresion matrixx
filtradoFinal = function(adjConectado,matrixx,stdd, perc){
###defino para el filtrado las funciones correspondientes
desvStandarCuadrado = function(e){
desvStandr = 0
eMean = mean(e)
#desvStandr = vector()
for (i in seq(1,(length(e)... | /Trabajo/VarianceNeighbourhood/ahoraSi/EstudioOrdenTemporal/std1-vol2/filtradoFinal.R | no_license | rominay/tesis | R | false | false | 3,433 | r | #dada la matriz de adyacencia adjConectado
# y la matriz de expresion matrixx
filtradoFinal = function(adjConectado,matrixx,stdd, perc){
###defino para el filtrado las funciones correspondientes
desvStandarCuadrado = function(e){
desvStandr = 0
eMean = mean(e)
#desvStandr = vector()
for (i in seq(1,(length(e)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.