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
startTime <- Sys.time() cat(paste0("> Rscript AUC_coexprDist_withFam_sortNoDup_otherTADfile_otherFamFile.R\n")) options(scipen=100) buildTable <- TRUE printAndLog <- function(text, logFile = ""){ cat(text) cat(text, append =T , file = logFile) } suppressPackageStartupMessages(library(foreach, warn.conflicts = F...
/AUC_coexprDist_withFam_sortNoDup_otherTADfile_otherFamFile.R
no_license
marzuf/CORRECT_Yuanlong_Cancer_HiC_data_TAD_DA
R
false
false
26,452
r
startTime <- Sys.time() cat(paste0("> Rscript AUC_coexprDist_withFam_sortNoDup_otherTADfile_otherFamFile.R\n")) options(scipen=100) buildTable <- TRUE printAndLog <- function(text, logFile = ""){ cat(text) cat(text, append =T , file = logFile) } suppressPackageStartupMessages(library(foreach, warn.conflicts = F...
context("Screen flow data") test_that("creates a dataframe with the proper columns", { skip_on_cran() skip_on_ci() data <- screen_flow_data(station_number = "08NM116", include_symbols = FALSE) expect_true(is.data.frame(data) & ncol(data) == 22 & all(c("Year","n_days","n_...
/tests/testthat/test-screen_flow_data.R
no_license
cran/fasstr
R
false
false
3,714
r
context("Screen flow data") test_that("creates a dataframe with the proper columns", { skip_on_cran() skip_on_ci() data <- screen_flow_data(station_number = "08NM116", include_symbols = FALSE) expect_true(is.data.frame(data) & ncol(data) == 22 & all(c("Year","n_days","n_...
> ###Random Forest top 5 variables based on importance: strikeouts, wins, earned run average, at bats, and innings pitched > ###Find players who have same minimum amount of strikeouts, wins, earned run average, at bats, and innings pitched as award winners > Pitching_Stats_Full_Dataset <- read_csv("E:/Grad School...
/Pitching Candidates.R
no_license
dlacomb/RMACPitchingVoting
R
false
false
2,717
r
> ###Random Forest top 5 variables based on importance: strikeouts, wins, earned run average, at bats, and innings pitched > ###Find players who have same minimum amount of strikeouts, wins, earned run average, at bats, and innings pitched as award winners > Pitching_Stats_Full_Dataset <- read_csv("E:/Grad School...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_mbsts.R \name{predict.mbsts} \alias{predict.mbsts} \title{Predictions for a given multivariate Bayesian structural time series model} \usage{ \method{predict}{mbsts}(object, steps.ahead, newdata = NULL, ...) } \arguments{ \item{object...
/man/predict.mbsts.Rd
no_license
FMenchetti/CausalMBSTS
R
false
true
2,562
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_mbsts.R \name{predict.mbsts} \alias{predict.mbsts} \title{Predictions for a given multivariate Bayesian structural time series model} \usage{ \method{predict}{mbsts}(object, steps.ahead, newdata = NULL, ...) } \arguments{ \item{object...
#' timeFloor #' #' This function acts like a floor function execpt for time. #' #' @param timeValue typically a column of time Values to take the floor function #' @param timeIntervalValue the value of the time interval #' @param timeIntervalUnits the units of the time interval #' @keywords time #' @examples #...
/R/timeFloor.R
permissive
JerryHMartin/EmissionsHelper
R
false
false
1,661
r
#' timeFloor #' #' This function acts like a floor function execpt for time. #' #' @param timeValue typically a column of time Values to take the floor function #' @param timeIntervalValue the value of the time interval #' @param timeIntervalUnits the units of the time interval #' @keywords time #' @examples #...
AL.Batting=read.table("AL.Batting.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) AL.Pitching=read.table("AL.Pitching.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) AL.Fielding=read.table("AL.Fielding.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) NL.Batting=read.table("NL.Batting.txt",sep=",",header=TRUE,stringsA...
/mlb.R
no_license
ShaneKao/SportsLottery
R
false
false
3,560
r
AL.Batting=read.table("AL.Batting.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) AL.Pitching=read.table("AL.Pitching.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) AL.Fielding=read.table("AL.Fielding.txt",sep=",",header=TRUE,stringsAsFactors=FALSE) NL.Batting=read.table("NL.Batting.txt",sep=",",header=TRUE,stringsA...
#' BUS #' #' The class BUS #' #' @field n total number of buses #' @field index bus indexes #' @field int internal nus number #' @field Pg active power injected in the network by generators #' @field Qg reactive power injected in the network by generators #' @field Pl active power absorbed from the network by loads #...
/R/class_BUS.R
no_license
Jingfan-Sun/powerr
R
false
false
5,440
r
#' BUS #' #' The class BUS #' #' @field n total number of buses #' @field index bus indexes #' @field int internal nus number #' @field Pg active power injected in the network by generators #' @field Qg reactive power injected in the network by generators #' @field Pl active power absorbed from the network by loads #...
dat <- sp500ret$sp500RET ts.plot(dt) acf(dat) # doesnt tell you to look at 2nd order acf(dat^2) McLeod.Li.test(y=dat) # want to reject the null hypothesis McLeod.Li.test(y=mod$residuals) # fGarch uses ljung box # https://quant.stackexchange.com/questions/11019/garch-model-and-prediction
/TimeSeries/Week8_Intervention_ARCH/McLeod_Li_test.R
no_license
jfnavarro21/MSCA_Python_R
R
false
false
291
r
dat <- sp500ret$sp500RET ts.plot(dt) acf(dat) # doesnt tell you to look at 2nd order acf(dat^2) McLeod.Li.test(y=dat) # want to reject the null hypothesis McLeod.Li.test(y=mod$residuals) # fGarch uses ljung box # https://quant.stackexchange.com/questions/11019/garch-model-and-prediction
kernelFun <- function(type=c('truncated','bartlett','daniell','QS','parzen'),z){ type <- match.arg(type) if (missing(type)) stop("Kernel type is missing. Type must be one of 'truncated','bartlett','daniell','QS','parzen'") if (type != "truncated" && type != "bartlett" && type != "daniell" && type != "QS" && type...
/dCovTS/R/kernelFun.R
no_license
ingted/R-Examples
R
false
false
1,112
r
kernelFun <- function(type=c('truncated','bartlett','daniell','QS','parzen'),z){ type <- match.arg(type) if (missing(type)) stop("Kernel type is missing. Type must be one of 'truncated','bartlett','daniell','QS','parzen'") if (type != "truncated" && type != "bartlett" && type != "daniell" && type != "QS" && type...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GraphFunctions.R \name{isConnected.adjMatrixGraph} \alias{isConnected.adjMatrixGraph} \title{A Graph Function} \usage{ \method{isConnected}{adjMatrixGraph}(graph) } \arguments{ \item{graph}{the graph obj} } \value{ a list containi...
/man/isConnected.adjMatrixGraph.Rd
no_license
TheBell/Graph
R
false
true
440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GraphFunctions.R \name{isConnected.adjMatrixGraph} \alias{isConnected.adjMatrixGraph} \title{A Graph Function} \usage{ \method{isConnected}{adjMatrixGraph}(graph) } \arguments{ \item{graph}{the graph obj} } \value{ a list containi...
source('simulation/sim_model.R') #install.packages(c("MFPCA","funData")) #install.packages("funData") source('nafpca.R') source('../../classification.R') library(MFPCA);library(funData) library(dplyr) library(ggplot2) scaling <- function(x,k) { #x = abs(x) out = (x - min(x)) / (max(x) - min(x)) / k return(out)...
/nafpca/simulation/sim_plots.R
no_license
CodeJSong/Functional-Dimension-Reduction
R
false
false
37,420
r
source('simulation/sim_model.R') #install.packages(c("MFPCA","funData")) #install.packages("funData") source('nafpca.R') source('../../classification.R') library(MFPCA);library(funData) library(dplyr) library(ggplot2) scaling <- function(x,k) { #x = abs(x) out = (x - min(x)) / (max(x) - min(x)) / k return(out)...
require(readr) require(plyr) require(igraph) require(rgexf) # set working directory getwd() setwd("../query_results/merge_scripts/complete_merge/") # read node and edges into dataframe with the name expected by igraph nodes <- read.csv("time_slice_1536_complete_merge_budé_and_era_correspondents.csv", fileEncoding="UT...
/intersections_budé_erasmus/r_scripts/complete_merge_time_slices_gexf_created_by_r/create_gexf_complete_merge_budé_era_1536.R
no_license
CKudella/corr_data
R
false
false
4,292
r
require(readr) require(plyr) require(igraph) require(rgexf) # set working directory getwd() setwd("../query_results/merge_scripts/complete_merge/") # read node and edges into dataframe with the name expected by igraph nodes <- read.csv("time_slice_1536_complete_merge_budé_and_era_correspondents.csv", fileEncoding="UT...
#' Spark ML -- Survival Regression #' #' Perform survival regression on a Spark DataFrame, using an Accelerated #' failure time (AFT) model with potentially right-censored data. #' #' @template roxlate-ml-x #' @template roxlate-ml-response #' @template roxlate-ml-features #' @template roxlate-ml-intercept #' @param cen...
/R/ml_survival_regression.R
permissive
irichgreen/sparklyr
R
false
false
2,528
r
#' Spark ML -- Survival Regression #' #' Perform survival regression on a Spark DataFrame, using an Accelerated #' failure time (AFT) model with potentially right-censored data. #' #' @template roxlate-ml-x #' @template roxlate-ml-response #' @template roxlate-ml-features #' @template roxlate-ml-intercept #' @param cen...
# # antlrpdg.R, 17 Jan 20 # # Data from: # Hussain Abdullah A. Al-Mutawa # On the Classification of Cyclic Dependencies in Java Programs # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG Java dependency-cycles source("ESEUR_config.r") library("igra...
/ecosystems/antlrpdg.R
no_license
sebastianBIanalytics/ESEUR-code-data
R
false
false
1,445
r
# # antlrpdg.R, 17 Jan 20 # # Data from: # Hussain Abdullah A. Al-Mutawa # On the Classification of Cyclic Dependencies in Java Programs # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG Java dependency-cycles source("ESEUR_config.r") library("igra...
library(tidyverse) library(R.utils) library(DiagrammeR) library(igraph) getUnobservedInts <- function(df, desiredResponsesMask, boolLen, str4true) { # This function first turns the dataframe of parameter-sweep results # (i.e. observed responses), written in 'pos' and 'neg' format, into # a vector of bina...
/qualmodfunc/findPCU.R
no_license
yhan178/qualitative-modeling-r
R
false
false
12,226
r
library(tidyverse) library(R.utils) library(DiagrammeR) library(igraph) getUnobservedInts <- function(df, desiredResponsesMask, boolLen, str4true) { # This function first turns the dataframe of parameter-sweep results # (i.e. observed responses), written in 'pos' and 'neg' format, into # a vector of bina...
#' @name osrmTable #' @title Get Travel Time Matrices Between Points #' @description Build and send OSRM API queries to get travel time matrices #' between points. This function interfaces the \emph{table} OSRM service. #' @param loc a data frame containing 3 fields: points identifiers, longitudes #' and latitudes (...
/R/osrmTable.R
permissive
IsmailTan35/osrm-backend
R
false
false
6,869
r
#' @name osrmTable #' @title Get Travel Time Matrices Between Points #' @description Build and send OSRM API queries to get travel time matrices #' between points. This function interfaces the \emph{table} OSRM service. #' @param loc a data frame containing 3 fields: points identifiers, longitudes #' and latitudes (...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{extract_ILDIS} \alias{extract_ILDIS} \title{Extract geographical records data from ILDIS species page html} \usage{ extract_ILDIS(html_file) } \arguments{ \item{html_file}{The path of the html file to process} } \description{ Extract geographical records data f...
/man/extract_ILDIS.Rd
permissive
rdinnager/GlobalNfix
R
false
false
465
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{extract_ILDIS} \alias{extract_ILDIS} \title{Extract geographical records data from ILDIS species page html} \usage{ extract_ILDIS(html_file) } \arguments{ \item{html_file}{The path of the html file to process} } \description{ Extract geographical records data f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim_bessel_layers.R \name{simulate_layered_brownian_bridge_bessel} \alias{simulate_layered_brownian_bridge_bessel} \title{Layered Brownian Bridge sampler} \usage{ simulate_layered_brownian_bridge_bessel(x, y, s, t, a, l, sim_times) } \argumen...
/man/simulate_layered_brownian_bridge_bessel.Rd
no_license
rchan26/RlayeredBB
R
false
true
1,231
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sim_bessel_layers.R \name{simulate_layered_brownian_bridge_bessel} \alias{simulate_layered_brownian_bridge_bessel} \title{Layered Brownian Bridge sampler} \usage{ simulate_layered_brownian_bridge_bessel(x, y, s, t, a, l, sim_times) } \argumen...
source("knnPerformanceNoCV.R") DPI_list = c(100,200,300); k_list = seq(1,40,1); GroupNumber = 2; MemberNumber = 2; sigma_list = c(1.5,2.5,3.5); n_list = seq(500,4000,500); DPI_tests <- list() i=1 DPI=DPI_list[i] sigma=sigma_list[i] DataList = loadSinglePersonsData(DPI,GroupNumber,MemberNumber,sigma) for(j in 1:10)...
/Rcode/test-k-NN-trainingSetPerformance.R
no_license
madsherlock/SML-F16
R
false
false
1,530
r
source("knnPerformanceNoCV.R") DPI_list = c(100,200,300); k_list = seq(1,40,1); GroupNumber = 2; MemberNumber = 2; sigma_list = c(1.5,2.5,3.5); n_list = seq(500,4000,500); DPI_tests <- list() i=1 DPI=DPI_list[i] sigma=sigma_list[i] DataList = loadSinglePersonsData(DPI,GroupNumber,MemberNumber,sigma) for(j in 1:10)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ordinal_ridge.R \name{evaluateRanking} \alias{evaluateRanking} \title{Evaluate rank prediction performance} \usage{ evaluateRanking(scores, labels) } \arguments{ \item{scores}{Numeric vector of a score ranking the observations in the predicte...
/man/evaluateRanking.Rd
permissive
ArtemSokolov/ordinalRidge
R
false
true
542
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ordinal_ridge.R \name{evaluateRanking} \alias{evaluateRanking} \title{Evaluate rank prediction performance} \usage{ evaluateRanking(scores, labels) } \arguments{ \item{scores}{Numeric vector of a score ranking the observations in the predicte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg_version.R \name{pkg_version} \alias{pkg_version} \title{Retrieve Package version} \usage{ pkg_version(pkgs_col) } \arguments{ \item{pkgs_col}{Package name.} } \value{ A character vector with the package version. } \description{ Internal h...
/man/pkg_version.Rd
permissive
luisDVA/annotater
R
false
true
338
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg_version.R \name{pkg_version} \alias{pkg_version} \title{Retrieve Package version} \usage{ pkg_version(pkgs_col) } \arguments{ \item{pkgs_col}{Package name.} } \value{ A character vector with the package version. } \description{ Internal h...
options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } ) # we need that to not crash galaxy with an UTF8 error on German LC settings. loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") suppressPackageStartupMessages({ library(ChIPseeker) library(GenomicF...
/tools/chipseeker/chipseeker.R
no_license
wm75/galaxytools
R
false
false
3,034
r
options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } ) # we need that to not crash galaxy with an UTF8 error on German LC settings. loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") suppressPackageStartupMessages({ library(ChIPseeker) library(GenomicF...
## Kaggle - NIPS 2015 Papers # Packages library(readr) library(dplyr) # Read input data authors = read_csv("input/Authors.csv") paperAuthors = read_csv("input/PaperAuthors.csv") papers = read_csv("input/Papers.csv") #Look at type of events at NIPS table(papers$EventType) #Function to find last name for each row fin...
/NIPS 2015 Papers/exploratory.R
no_license
Anithaponnuru/Kaggle
R
false
false
1,188
r
## Kaggle - NIPS 2015 Papers # Packages library(readr) library(dplyr) # Read input data authors = read_csv("input/Authors.csv") paperAuthors = read_csv("input/PaperAuthors.csv") papers = read_csv("input/Papers.csv") #Look at type of events at NIPS table(papers$EventType) #Function to find last name for each row fin...
source("2__scripts/1__R/3__Release/RTools.R") Instal_Required("data.table") Instal_Required("ade4") Instal_Required("tree") Instal_Required("lda") Instal_Required("ggplot2") Instal_Required("randomForest") #setwd(dir = "C:/Users/felix.rougier/Documents/Challenge/DataScienceNet/maif/") maif_train <- fread("1__data/1_...
/2__scripts/1__R/1__AD/AD_crm.R
no_license
romainjouen/KaggleMAIF
R
false
false
2,251
r
source("2__scripts/1__R/3__Release/RTools.R") Instal_Required("data.table") Instal_Required("ade4") Instal_Required("tree") Instal_Required("lda") Instal_Required("ggplot2") Instal_Required("randomForest") #setwd(dir = "C:/Users/felix.rougier/Documents/Challenge/DataScienceNet/maif/") maif_train <- fread("1__data/1_...
source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/code/figure_scripts/figure_res_wrapper.R') if(!exists('rel_df')){ source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/code/workspace_scripts/subject_data.R') source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/co...
/code/figure_scripts/Variance_Breakdown_Plot.R
no_license
zenkavi/SRO_Retest_Analyses
R
false
false
5,646
r
source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/code/figure_scripts/figure_res_wrapper.R') if(!exists('rel_df')){ source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/code/workspace_scripts/subject_data.R') source('/Users/zeynepenkavi/Dropbox/PoldrackLab/SRO_Retest_Analyses/co...
## Copyright (C) 2019 Prim'Act, Quentin Guibert ## ## This program is free software; you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the Free Software ## Foundation; either version 3 of the License, or (at your option) any later ## version. ## ## This...
/5-profit_sharing.R
no_license
RebeccaWel/Environnement
R
false
false
7,869
r
## Copyright (C) 2019 Prim'Act, Quentin Guibert ## ## This program is free software; you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the Free Software ## Foundation; either version 3 of the License, or (at your option) any later ## version. ## ## This...
xdistance <- function(x, y, method = "euclidean") { # calculate cross-dissimilarities between # rows of x and rows of y # returns a nonsymmetric matrix where # d[a, b] is the dissimilarity between # x[a, ] and y[b, ] # Sarah Goslee 2017-02-17, modified from legacy Splus code dated 01/01/01 ...
/R/xdistance.R
no_license
cran/ecodist
R
false
false
980
r
xdistance <- function(x, y, method = "euclidean") { # calculate cross-dissimilarities between # rows of x and rows of y # returns a nonsymmetric matrix where # d[a, b] is the dissimilarity between # x[a, ] and y[b, ] # Sarah Goslee 2017-02-17, modified from legacy Splus code dated 01/01/01 ...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_water_water_demand_industry_xml #' #' Construct XML data structure for \code{water_demand_industry.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{co...
/input/gcamdata/R/zwater_xml_water_demand_industry.R
permissive
JGCRI/gcam-core
R
false
false
1,336
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_water_water_demand_industry_xml #' #' Construct XML data structure for \code{water_demand_industry.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{co...
library("ggspatial") library("ggplot2") theme_set(theme_bw()) library("sf") library("rnaturalearth") library("rnaturalearthdata") world <- ne_countries(scale = "medium", returnclass = "sf") class(world) # black and white map with compass and distance legend ggplot(data = world) + geom_sf() + annotation_scale(locat...
/charts/map.with.compass.and.distance.r
no_license
gsdavis1959/R_examples
R
false
false
2,074
r
library("ggspatial") library("ggplot2") theme_set(theme_bw()) library("sf") library("rnaturalearth") library("rnaturalearthdata") world <- ne_countries(scale = "medium", returnclass = "sf") class(world) # black and white map with compass and distance legend ggplot(data = world) + geom_sf() + annotation_scale(locat...
plot4 <- function(ucifile = "C:/Users/cwilhelm/Documents/Coursera/exdata%2Fdata%2Fhousehold_power_consumption/household_power_consumption.txt") { ucidata <- read.table(ucifile,header=TRUE,sep=";",na.strings="?") subfirst <- subset(ucidata,Date=="1/2/2007") subsecond <- subset(ucidata,Date=="2/2/2007") subdata <...
/Plot4.R
no_license
cwilhelm486/ExData_Plotting1
R
false
false
1,324
r
plot4 <- function(ucifile = "C:/Users/cwilhelm/Documents/Coursera/exdata%2Fdata%2Fhousehold_power_consumption/household_power_consumption.txt") { ucidata <- read.table(ucifile,header=TRUE,sep=";",na.strings="?") subfirst <- subset(ucidata,Date=="1/2/2007") subsecond <- subset(ucidata,Date=="2/2/2007") subdata <...
\name{FastRCS-package} \alias{FastPCS-package} \docType{package} \title{Code to compute the FastRCS regression outlyingness index.} \description{ Uses the FastRCS algorithm to compute the RCS outlyingness index of regression. } \details{ \tabular{ll}{ Package: \tab FastRCS\cr Type: \tab Package\cr Version: \tab 0.1.1...
/fuzzedpackages/FastRCS/man/FastRCS-package.Rd
no_license
akhikolla/testpackages
R
false
false
1,109
rd
\name{FastRCS-package} \alias{FastPCS-package} \docType{package} \title{Code to compute the FastRCS regression outlyingness index.} \description{ Uses the FastRCS algorithm to compute the RCS outlyingness index of regression. } \details{ \tabular{ll}{ Package: \tab FastRCS\cr Type: \tab Package\cr Version: \tab 0.1.1...
#' @title To explain how to initialize clusters for the divisive algorithm. #' @description To explain how to initialize clusters for the divisive algorithm. #' @param initList is a clusters list. It will contain clusters with one element. #' @details This function will explain how to calculate every cluster that ca...
/R/initClusters.details.R
no_license
cran/LearnClust
R
false
false
3,054
r
#' @title To explain how to initialize clusters for the divisive algorithm. #' @description To explain how to initialize clusters for the divisive algorithm. #' @param initList is a clusters list. It will contain clusters with one element. #' @details This function will explain how to calculate every cluster that ca...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/fsldilate.R \name{fsldilate} \alias{fsldilate} \title{Dilate image using FSL} \usage{ fsldilate(file, outfile = NULL, retimg = FALSE, reorient = FALSE, intern = TRUE, kopts = "", opts = "", verbose = TRUE, ...) } \arguments{ \item{f...
/man/fsldilate.Rd
no_license
emsweene/fslr
R
false
false
1,583
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/fsldilate.R \name{fsldilate} \alias{fsldilate} \title{Dilate image using FSL} \usage{ fsldilate(file, outfile = NULL, retimg = FALSE, reorient = FALSE, intern = TRUE, kopts = "", opts = "", verbose = TRUE, ...) } \arguments{ \item{f...
# update package if necessary ---- devtools::install_github("kassandra-ru/kassandr") # load packages ---- library(docxtractr) library(kassandr) library(tidyverse) library(rio) library(lubridate) # set data folder ---- info = Sys.info() # получаем информацию о системе if (info[1] == "Linux") { set_libreoffice_pat...
/2021-01-25/downloader_v2.R
no_license
kassandra-ru/model
R
false
false
15,021
r
# update package if necessary ---- devtools::install_github("kassandra-ru/kassandr") # load packages ---- library(docxtractr) library(kassandr) library(tidyverse) library(rio) library(lubridate) # set data folder ---- info = Sys.info() # получаем информацию о системе if (info[1] == "Linux") { set_libreoffice_pat...
## These are a pair of functions that cache the inverse of a matrix. Matrix inversion is usually a costly computation and caching the inverse of a matrix can prove to be efficient for large matrices. ## Usage: If x is the matrix inverse of which to be calculated; cachedmatrix <- makeCacheMatrix(x). Then call cacheSolve...
/cachematrix.R
no_license
emelaktas/ProgrammingAssignment2
R
false
false
1,153
r
## These are a pair of functions that cache the inverse of a matrix. Matrix inversion is usually a costly computation and caching the inverse of a matrix can prove to be efficient for large matrices. ## Usage: If x is the matrix inverse of which to be calculated; cachedmatrix <- makeCacheMatrix(x). Then call cacheSolve...
# definitions of groups of variables: var_smd = c("origin", "site", "quadrat", "latitude", "longitude") var_defense = c("tannin", "lignin", "saponins", "flavonoid", "trichome", "cn", "sla", "ssl") var_clim = c("MAT", "MAXT", "MINT", "ST", "AP", "WP", "DP", "SP") var_clim = c("CPC1", "CPC2") var_symb = c("infection", "s...
/code/utils.R
permissive
Augustpan/Latitudinal_Defense_Syndromes
R
false
false
8,268
r
# definitions of groups of variables: var_smd = c("origin", "site", "quadrat", "latitude", "longitude") var_defense = c("tannin", "lignin", "saponins", "flavonoid", "trichome", "cn", "sla", "ssl") var_clim = c("MAT", "MAXT", "MINT", "ST", "AP", "WP", "DP", "SP") var_clim = c("CPC1", "CPC2") var_symb = c("infection", "s...
\name{Huber} \alias{Huber} \title{Huber Loss } \description{Evaluates the Huber loss function defined as \deqn{ f(r) = \left\{ \begin{array}{ll} \frac{1}{2}|r|^2 & |r| \le c \\ c(|r|-\frac{1}{2}c) & |r| > c \end{array} \right. }{f(r)=(1/2)*r^2 if |r|<=c} \deqn{}{f(r)=c*(|r|-(1/2)*c) if |r|>c } } \usage{ Huber(r, c...
/man/Huber.Rd
no_license
cran/qrmix
R
false
false
585
rd
\name{Huber} \alias{Huber} \title{Huber Loss } \description{Evaluates the Huber loss function defined as \deqn{ f(r) = \left\{ \begin{array}{ll} \frac{1}{2}|r|^2 & |r| \le c \\ c(|r|-\frac{1}{2}c) & |r| > c \end{array} \right. }{f(r)=(1/2)*r^2 if |r|<=c} \deqn{}{f(r)=c*(|r|-(1/2)*c) if |r|>c } } \usage{ Huber(r, c...
\name{xmb} \alias{xmb} \title{More robust test of whether something is NA or null. Should not give an error or NA, whatever x is.} \usage{ xmb(x, y = "") } \arguments{ \item{x}{The object to be tested. May not even exist.} \item{y}{true if missing or null or y, otherwise false. NOTE IT GIVES F IF IT IS ANY DATA ...
/man/xmb.Rd
no_license
stevepowell99/omnivr
R
false
false
467
rd
\name{xmb} \alias{xmb} \title{More robust test of whether something is NA or null. Should not give an error or NA, whatever x is.} \usage{ xmb(x, y = "") } \arguments{ \item{x}{The object to be tested. May not even exist.} \item{y}{true if missing or null or y, otherwise false. NOTE IT GIVES F IF IT IS ANY DATA ...
dataset <- read.csv("C:/Users/jensb/Documents/dataanalyse/dataanalyse/datasets/dataset-82167.csv") View(dataset.82167) # geef de namen van de variabelen weer names(dataset) # geef enkel de variabele hd weer dataset$hd
/eerstetest.R
no_license
embobrecht/dataanalyse
R
false
false
225
r
dataset <- read.csv("C:/Users/jensb/Documents/dataanalyse/dataanalyse/datasets/dataset-82167.csv") View(dataset.82167) # geef de namen van de variabelen weer names(dataset) # geef enkel de variabele hd weer dataset$hd
with(a5db1d12f78c845b4a783167e77071f2f, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';rm(list=ls())});
/80bb2a25-ac5d-47d0-abfc-b3f3811f0936/R/Temp/aMgSCnlb73PO6.R
no_license
ayanmanna8/test
R
false
false
212
r
with(a5db1d12f78c845b4a783167e77071f2f, {ROOT <- 'D:/SEMOSS_v4.0.0_x64/SEMOSS_v4.0.0_x64/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/80bb2a25-ac5d-47d0-abfc-b3f3811f0936';rm(list=ls())});
.libPaths("/data/hydro/R_libs35") .libPaths() library(data.table) library(dplyr) library(tidyverse) library(lubridate) source_path = "/home/hnoorazar/chilling_codes/current_draft/chill_core.R" source(source_path) options(digit=9) options(digits=9) start_time <- Sys.time() ###########################################...
/chilling/03_frost_bloom_aeolus/d_read_binary_for_frost_obs.R
permissive
HNoorazar/Ag
R
false
false
3,213
r
.libPaths("/data/hydro/R_libs35") .libPaths() library(data.table) library(dplyr) library(tidyverse) library(lubridate) source_path = "/home/hnoorazar/chilling_codes/current_draft/chill_core.R" source(source_path) options(digit=9) options(digits=9) start_time <- Sys.time() ###########################################...
context("messages") test_that("messages in callr::r do not crash session", { ret <- r(function() { cliapp::cli_text("fooobar"); 1 + 1 }) expect_identical(ret, 2) gc() }) test_that("messages in callr::r_bg do not crash session", { skip_in_covr() # TODO: what wrong with this on Windows? rx <- r_bg(function...
/tests/testthat/test-messages.R
permissive
bedantaguru/callr
R
false
false
596
r
context("messages") test_that("messages in callr::r do not crash session", { ret <- r(function() { cliapp::cli_text("fooobar"); 1 + 1 }) expect_identical(ret, 2) gc() }) test_that("messages in callr::r_bg do not crash session", { skip_in_covr() # TODO: what wrong with this on Windows? rx <- r_bg(function...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deviationFunctions.R \name{sortedIndex} \alias{sortedIndex} \title{Index map for data set} \usage{ sortedIndex(dt) } \arguments{ \item{dt}{data.table} } \value{ A data.table is returned that consists of indexes for the order of each column. E...
/man/sortedIndex.Rd
no_license
holtri/R-subcon
R
false
true
632
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/deviationFunctions.R \name{sortedIndex} \alias{sortedIndex} \title{Index map for data set} \usage{ sortedIndex(dt) } \arguments{ \item{dt}{data.table} } \value{ A data.table is returned that consists of indexes for the order of each column. E...
# Have you ever been on the data.gov.uk and been completely perplexed to where the data is available to download # ** hand shoots up ** # Well I've just found a brilliant stackoverflow post (https://stackoverflow.com/questions/32034495/list-aviable-wfs-layers-and-read-into-data-frame-with-rgdal) # that will enable yo...
/readingWFSfiles.R
no_license
markocherrie/Helpful_Code
R
false
false
1,505
r
# Have you ever been on the data.gov.uk and been completely perplexed to where the data is available to download # ** hand shoots up ** # Well I've just found a brilliant stackoverflow post (https://stackoverflow.com/questions/32034495/list-aviable-wfs-layers-and-read-into-data-frame-with-rgdal) # that will enable yo...
### Initialization #### library('RPostgres') library('RPostgreSQL') ### Creating connector db <- 'INSERT YOUR DB NAME HERE' host_db <- 'INSERT YOUR HOST NUMBER HERE' db_port <- 'INSERT YOUR DB PORT HERE' db_user <- 'INSERT YOUR USER NAME HERE' db_password <- 'INSERT YOUR PASSWORD HERE' con <- dbConnect(RPo...
/postgre_connector.R
no_license
marcosemn/Connectors
R
false
false
437
r
### Initialization #### library('RPostgres') library('RPostgreSQL') ### Creating connector db <- 'INSERT YOUR DB NAME HERE' host_db <- 'INSERT YOUR HOST NUMBER HERE' db_port <- 'INSERT YOUR DB PORT HERE' db_user <- 'INSERT YOUR USER NAME HERE' db_password <- 'INSERT YOUR PASSWORD HERE' con <- dbConnect(RPo...
# ---------------------------------------------------------------------------------------------------- # Hidden Markov Models # Faits stylisés des rendements financiers # ---------------------------------------------------------------------------------------------------- # written # Gabriel LEMYRE # -------------------...
/package/HMM/Faits_Stylises.R
no_license
GabrielLemyre/HHMM
R
false
false
12,168
r
# ---------------------------------------------------------------------------------------------------- # Hidden Markov Models # Faits stylisés des rendements financiers # ---------------------------------------------------------------------------------------------------- # written # Gabriel LEMYRE # -------------------...
library(tidyverse) library(lubridate) library(janitor) library(miceadds) source.all("functions/") dir.create("4_clean_data/temp") # Home Nations countries <- c("england", "scotland", "wales", "ireland") for (i in 1:length(countries)){ country <- countries[i] file_path <- paste("2_raw_data/", country, ".csv",...
/3_cleaning_scripts/1_home_nations_clean_data.R
no_license
hgw2/rugby_players_project
R
false
false
2,030
r
library(tidyverse) library(lubridate) library(janitor) library(miceadds) source.all("functions/") dir.create("4_clean_data/temp") # Home Nations countries <- c("england", "scotland", "wales", "ireland") for (i in 1:length(countries)){ country <- countries[i] file_path <- paste("2_raw_data/", country, ".csv",...
# Package Start-up Functions .onAttach <- function(libname, pkgname) { if (interactive() && is.null(options('bhklab.startup_'))) { oldOpts <- options() options(warn=-1) on.exit(options(oldOpts)) packageStartupMessage( " RadioGx package brought to you by: \u2588\u2588\u258...
/R/zzz.R
no_license
bhklab/RadioGx
R
false
false
1,977
r
# Package Start-up Functions .onAttach <- function(libname, pkgname) { if (interactive() && is.null(options('bhklab.startup_'))) { oldOpts <- options() options(warn=-1) on.exit(options(oldOpts)) packageStartupMessage( " RadioGx package brought to you by: \u2588\u2588\u258...
require(dplyr) require(ggplot2) require(tidyr) require(reshape2) require(gtools) require(mice) require(dummies) require(e1071) require(mice) require(scales) set.seed(12345) #load data sets sessions_df <- read.csv("sessions.csv", header=TRUE) train_df_start <- read.csv("train_users_2.csv", header=TRUE) summarystats_df ...
/wrangle_code.R
no_license
zrodnick/airbnb_capstone
R
false
false
9,055
r
require(dplyr) require(ggplot2) require(tidyr) require(reshape2) require(gtools) require(mice) require(dummies) require(e1071) require(mice) require(scales) set.seed(12345) #load data sets sessions_df <- read.csv("sessions.csv", header=TRUE) train_df_start <- read.csv("train_users_2.csv", header=TRUE) summarystats_df ...
library(xml2) library(rvest) setwd("C:/Users/xia/Desktop/splcml-result/data1/") datasets <-c('nr','gpcr','ic','e') for (j in 1:4){ data <-read.csv(paste0(datasets[j],"_admat_dgc.csv"),header=F) data<- t(data[1,-1]) m<-dim(data)[1] dgname <- matrix(data=0,nrow = m,ncol = 1) for (i in 1:m){ site <- paste0(...
/code for SPLCMF/rcode/drugIDtoName.R
no_license
Macau-LYXia/SPLCMF-DTI
R
false
false
846
r
library(xml2) library(rvest) setwd("C:/Users/xia/Desktop/splcml-result/data1/") datasets <-c('nr','gpcr','ic','e') for (j in 1:4){ data <-read.csv(paste0(datasets[j],"_admat_dgc.csv"),header=F) data<- t(data[1,-1]) m<-dim(data)[1] dgname <- matrix(data=0,nrow = m,ncol = 1) for (i in 1:m){ site <- paste0(...
#how much memory the dataset will require print(object.size(read.delim("hh_power.txt", sep = ";",stringsAsFactors = FALSE)),units="Mb") #its okay to load the whole file & take a subset after power <- read.delim("hh_power.txt", sep = ";",stringsAsFactors = FALSE) #subset data powerss <- power[power$Date=="1/2/2007" | po...
/plot4.R
no_license
mamack/exploratory-graphs
R
false
false
2,096
r
#how much memory the dataset will require print(object.size(read.delim("hh_power.txt", sep = ";",stringsAsFactors = FALSE)),units="Mb") #its okay to load the whole file & take a subset after power <- read.delim("hh_power.txt", sep = ";",stringsAsFactors = FALSE) #subset data powerss <- power[power$Date=="1/2/2007" | po...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nma.R \name{nameTreatments} \alias{nameTreatments} \title{Match treatment names to ID numbers} \usage{ nameTreatments(results, coding, ...) } \arguments{ \item{results}{A data frame as returned by \code{extractComparison}} \item{coding}{A da...
/man/nameTreatments.Rd
no_license
RichardBirnie/mautils
R
false
true
1,444
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nma.R \name{nameTreatments} \alias{nameTreatments} \title{Match treatment names to ID numbers} \usage{ nameTreatments(results, coding, ...) } \arguments{ \item{results}{A data frame as returned by \code{extractComparison}} \item{coding}{A da...
#' @param taxonKey A taxon key from the GBIF backbone. All included and synonym taxa #' are included in the search, so a search for aves with taxononKey=212 #' (i.e. /occurrence/search?taxonKey=212) will match all birds, no matter which #' species. You can pass many keys by passing occ_search in a call to an #...
/man-roxygen/occsearch.r
permissive
jarioksa/rgbif
R
false
false
12,780
r
#' @param taxonKey A taxon key from the GBIF backbone. All included and synonym taxa #' are included in the search, so a search for aves with taxononKey=212 #' (i.e. /occurrence/search?taxonKey=212) will match all birds, no matter which #' species. You can pass many keys by passing occ_search in a call to an #...
#' Analyse SAR TL measurements #' #' The function performs a SAR TL analysis on a #' \code{\linkS4class{RLum.Analysis}} object including growth curve fitting. #' #' This function performs a SAR TL analysis on a set of curves. The SAR #' procedure in general is given by Murray and Wintle (2000). For the #' calculation o...
/Luminescence/R/analyse_SAR.TL.R
no_license
ingted/R-Examples
R
false
false
18,691
r
#' Analyse SAR TL measurements #' #' The function performs a SAR TL analysis on a #' \code{\linkS4class{RLum.Analysis}} object including growth curve fitting. #' #' This function performs a SAR TL analysis on a set of curves. The SAR #' procedure in general is given by Murray and Wintle (2000). For the #' calculation o...
complete <- function(directory, id = 1:332){ data <- NULL result <- NULL # get a list of all files in the specified directory that end in .csv files <- list.files(directory, pattern="*.csv") # loop through the monitors specified for(index in id) { # build a path to the file ...
/Week2/complete.R
no_license
XAGV1YBGAdk34WDPVVLn/datasciencecoursera
R
false
false
1,212
r
complete <- function(directory, id = 1:332){ data <- NULL result <- NULL # get a list of all files in the specified directory that end in .csv files <- list.files(directory, pattern="*.csv") # loop through the monitors specified for(index in id) { # build a path to the file ...
# Set working direcotory this.dir <- dirname(parent.frame(2)$ofile) setwd(this.dir) library(dplyr) library(rpart) library(rpart.plot) library(party) library(readr) #Feature Engineering train <- read_csv('HR_comma_sep.csv') train$sales <- as.factor(train$sales) train$salary <- as.factor(train$salary) #Fitting a C...
/HR Analytics/HR_Analytics.R
no_license
kshirasaagar/Kaggle
R
false
false
841
r
# Set working direcotory this.dir <- dirname(parent.frame(2)$ofile) setwd(this.dir) library(dplyr) library(rpart) library(rpart.plot) library(party) library(readr) #Feature Engineering train <- read_csv('HR_comma_sep.csv') train$sales <- as.factor(train$sales) train$salary <- as.factor(train$salary) #Fitting a C...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lime-package.r \docType{package} \name{lime-package} \alias{lime-package} \alias{_PACKAGE} \title{lime: Local Interpretable Model-Agnostic Explanations} \description{ \if{html}{\figure{logo.png}{options: align='right'}} When building complex...
/man/lime-package.Rd
permissive
goodekat/lime
R
false
true
2,303
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lime-package.r \docType{package} \name{lime-package} \alias{lime-package} \alias{_PACKAGE} \title{lime: Local Interpretable Model-Agnostic Explanations} \description{ \if{html}{\figure{logo.png}{options: align='right'}} When building complex...
\name{calendarHeat} \alias{calendarHeat} \title{An R function to display time-series data as a calendar heatmap} \usage{ calendarHeat(dates, values, ncolors = 99, color = "r2g", varname = "Values", date.form = "\%Y-\%m-\%d", ...) } \arguments{ \item{dates}{vector of Dates} \item{values}{vector of values} ...
/man/calendarHeat.Rd
no_license
jbryer/makeR
R
false
false
927
rd
\name{calendarHeat} \alias{calendarHeat} \title{An R function to display time-series data as a calendar heatmap} \usage{ calendarHeat(dates, values, ncolors = 99, color = "r2g", varname = "Values", date.form = "\%Y-\%m-\%d", ...) } \arguments{ \item{dates}{vector of Dates} \item{values}{vector of values} ...
\name{countries} \alias{countries} \docType{data} \title{Socioeconomic data for the most populous countries.} \description{ Socioeconomic data for the most populous countries. } \usage{data(countries)} \format{ A data frame with 42 observations on the following 7 variables. \describe{ \item{Country}{...
/man/countries.Rd
no_license
cran/klaR
R
false
false
731
rd
\name{countries} \alias{countries} \docType{data} \title{Socioeconomic data for the most populous countries.} \description{ Socioeconomic data for the most populous countries. } \usage{data(countries)} \format{ A data frame with 42 observations on the following 7 variables. \describe{ \item{Country}{...
install.packages("qdap") install.packages("qdapTools") library(qdapTools) library(tm) Source_dir <- c("d:/data") Find_word <- c("management") mylist <-c("here is the list") files1 <-list.files(Source_dir,pattern=".docx") # files1 # # count1 <-length(table(files1)) # count1 # # files1[1] # # na...
/Finding the right document_1.R
no_license
karankkamra1987/R-Practice
R
false
false
1,425
r
install.packages("qdap") install.packages("qdapTools") library(qdapTools) library(tm) Source_dir <- c("d:/data") Find_word <- c("management") mylist <-c("here is the list") files1 <-list.files(Source_dir,pattern=".docx") # files1 # # count1 <-length(table(files1)) # count1 # # files1[1] # # na...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nn.R \name{nn} \alias{nn} \title{Get names and class of all columns in a data frame} \usage{ nn(df) } \arguments{ \item{df}{A data.frame.} } \value{ A data.frame with index and class. } \description{ Get names and class of all columns in a da...
/man/nn.Rd
no_license
gmaubach/Tmisc
R
false
true
416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nn.R \name{nn} \alias{nn} \title{Get names and class of all columns in a data frame} \usage{ nn(df) } \arguments{ \item{df}{A data.frame.} } \value{ A data.frame with index and class. } \description{ Get names and class of all columns in a da...
library(magick) library(grid) ggname = ggimage:::ggname color_image = ggimage:::color_image # color_image = function (img, color, alpha = NULL) # { # if (is.null(color)) # return(img) # if (length(color) > 1) { # stop("color should be a vector of length 1") # } # bitmap <- img[[1]] # ...
/geom_image.rect.R
no_license
jrboyd/waldron
R
false
false
7,889
r
library(magick) library(grid) ggname = ggimage:::ggname color_image = ggimage:::color_image # color_image = function (img, color, alpha = NULL) # { # if (is.null(color)) # return(img) # if (length(color) > 1) { # stop("color should be a vector of length 1") # } # bitmap <- img[[1]] # ...
regwqComp <- function (formula, data, alpha=.05) { # this is a reworked version of regwq.R from the mutoss package # rounding is removed # output is reordered in a standard order # sqrt(2) factor removed from test statistic (and adjusted elsewhere) # # important - the adjusted p values are compared to the ...
/R/regwqComp.R
no_license
DataScienceUWL/DS705data
R
false
false
4,060
r
regwqComp <- function (formula, data, alpha=.05) { # this is a reworked version of regwq.R from the mutoss package # rounding is removed # output is reordered in a standard order # sqrt(2) factor removed from test statistic (and adjusted elsewhere) # # important - the adjusted p values are compared to the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CINNA.R \name{print.visualize.heatmap} \alias{print.visualize.heatmap} \title{Print the heatmap plot of centrality measures} \usage{ \method{print}{visualize.heatmap}(x, scale = TRUE, file = NULL) } \arguments{ \item{x}{a list indicating calc...
/man/print.visualize.heatmap.Rd
no_license
jafarilab/CINNA
R
false
true
791
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CINNA.R \name{print.visualize.heatmap} \alias{print.visualize.heatmap} \title{Print the heatmap plot of centrality measures} \usage{ \method{print}{visualize.heatmap}(x, scale = TRUE, file = NULL) } \arguments{ \item{x}{a list indicating calc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-SingleBatchModel.R \name{MarginalModelList} \alias{MarginalModelList} \title{Constructor for list of single-batch models} \usage{ MarginalModelList(data = numeric(), k = numeric(), mcmc.params = McmcParams(), ...) } \arguments{ \ite...
/man/MarginalModelList.Rd
no_license
muschellij2/CNPBayes
R
false
true
1,001
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-SingleBatchModel.R \name{MarginalModelList} \alias{MarginalModelList} \title{Constructor for list of single-batch models} \usage{ MarginalModelList(data = numeric(), k = numeric(), mcmc.params = McmcParams(), ...) } \arguments{ \ite...
#' Plots an FFTrees object. #' #' @description Plots an FFTrees object created by the FFTrees() function. #' @param x A FFTrees object created from \code{"FFTrees()"} #' @param data One of two strings 'train' or 'test'. In this case, the corresponding dataset in the x object will be used. #' @param what string. What sh...
/R/plotFFTrees_function.R
no_license
guhjy/FFTrees
R
false
false
57,366
r
#' Plots an FFTrees object. #' #' @description Plots an FFTrees object created by the FFTrees() function. #' @param x A FFTrees object created from \code{"FFTrees()"} #' @param data One of two strings 'train' or 'test'. In this case, the corresponding dataset in the x object will be used. #' @param what string. What sh...
if(FALSE) { getIfValue(findIfInFun(foo)[[1]]) i = findIfInFun(foo)[[1]] } foo = function(x) { y = 2 if(length(x)) y = y + 3 else y = 10 y } foo2 = function(x) { y = 2L names(y) = "a" y[2] = 11 # changes to numeric. if(length(x)) y = y + 3 else ...
/explorations/ifAnalysis/egIf.R
no_license
duncantl/CodeAnalysis
R
false
false
415
r
if(FALSE) { getIfValue(findIfInFun(foo)[[1]]) i = findIfInFun(foo)[[1]] } foo = function(x) { y = 2 if(length(x)) y = y + 3 else y = 10 y } foo2 = function(x) { y = 2L names(y) = "a" y[2] = 11 # changes to numeric. if(length(x)) y = y + 3 else ...
# --- # title: "1" # objective: "Function as tangents" # author: "Daniel Resende" # date: "January 24, 2015" # output: html_document # --- # Always loads source('~/workspace/math/constants.R') cat("\014") # Chart pallete <- c('1B305D', '32557B', 'A59750', '6B7D31', '3B461B') pallete <- paste('#', pallete, sep='') gra...
/002-drawing-tangents/main.R
no_license
resendedaniel/math2
R
false
false
841
r
# --- # title: "1" # objective: "Function as tangents" # author: "Daniel Resende" # date: "January 24, 2015" # output: html_document # --- # Always loads source('~/workspace/math/constants.R') cat("\014") # Chart pallete <- c('1B305D', '32557B', 'A59750', '6B7D31', '3B461B') pallete <- paste('#', pallete, sep='') gra...
#source("http://bioconductor.org/biocLite.R") #biocLite("ShortRead") library(reshape) library(stringr) library(plyr) library(ShortRead) require(RMySQL) session <- dbConnect(MySQL(), host="XXX", db="YYY",user="ZZZ", password="QQQ") reads=readFastq("reads.out.fq") filenames=list.files(".",pattern="*.table") samples=str...
/RCode/merA.R
no_license
seninp-bioinfo/jKEGG
R
false
false
3,137
r
#source("http://bioconductor.org/biocLite.R") #biocLite("ShortRead") library(reshape) library(stringr) library(plyr) library(ShortRead) require(RMySQL) session <- dbConnect(MySQL(), host="XXX", db="YYY",user="ZZZ", password="QQQ") reads=readFastq("reads.out.fq") filenames=list.files(".",pattern="*.table") samples=str...
library(testthat) library(TimeWindowMaker2) test_check("TimeWindowMaker2")
/tests/testthat.R
no_license
itsaquestion/TimeWindowMaker2
R
false
false
76
r
library(testthat) library(TimeWindowMaker2) test_check("TimeWindowMaker2")
#' Change the absolute path of a file #' #' \code{convertPaths} is simply a wrapper around \code{gsub} for changing the #' first part of a path. #' \code{convertRasterPaths} is useful for changing the path to a file-backed #' raster (e.g., after copying the file to a new location). #' #' @param x For \code{...
/R/convertPaths.R
no_license
mdsumner/reproducible
R
false
false
6,066
r
#' Change the absolute path of a file #' #' \code{convertPaths} is simply a wrapper around \code{gsub} for changing the #' first part of a path. #' \code{convertRasterPaths} is useful for changing the path to a file-backed #' raster (e.g., after copying the file to a new location). #' #' @param x For \code{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bar.R \name{bar} \alias{bar} \title{Bar Plot data file} \usage{ bar(data, map, value = c("count", "identity")) } \arguments{ \item{data}{data.frame to make plot-ready data for} \item{map}{data.frame with at least two columns (id, plotRef) in...
/man/bar.Rd
no_license
d-callan/plot.data
R
false
true
953
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bar.R \name{bar} \alias{bar} \title{Bar Plot data file} \usage{ bar(data, map, value = c("count", "identity")) } \arguments{ \item{data}{data.frame to make plot-ready data for} \item{map}{data.frame with at least two columns (id, plotRef) in...
# Master File library(dplyr) library(ggplot2) library(shiny) library(leaflet) library(mapview) library(rsconnect) library(geojsonio) library(htmltools) library(reshape2) source("code.R") source("EmanHardcode.R") # Define server logic required to draw a histogram shinyServer(function(input, output) { # Home Tab ...
/server.R
no_license
nehay100/SHENFinalProject
R
false
false
5,450
r
# Master File library(dplyr) library(ggplot2) library(shiny) library(leaflet) library(mapview) library(rsconnect) library(geojsonio) library(htmltools) library(reshape2) source("code.R") source("EmanHardcode.R") # Define server logic required to draw a histogram shinyServer(function(input, output) { # Home Tab ...
# Demonstrating side effects x<-1 good <- function() { x <- 5} good() print(x) ## [1] 1 bad <- function() { x <<- 5} bad() print(x) ## [1] 5
/datascience_course/上課程式碼/week_2/sideEff.R
no_license
bill0812/course_study
R
false
false
141
r
# Demonstrating side effects x<-1 good <- function() { x <- 5} good() print(x) ## [1] 1 bad <- function() { x <<- 5} bad() print(x) ## [1] 5
### ### imomknown.R.R ### imomknown <- function(theta1hat,V1,n,nuisance.theta,g=1,nu=1,theta0,sigma,method='adapt',B=10^5) { if (missing(sigma)) stop('sigma must be specified') if (missing(theta0)) theta0 <- rep(0,length(theta1hat)) f <- function(z) { ans <- (n*gi/z)^((nu+p1)/2) * exp(-n*gi/z); ans[z==0] <- 0; return(...
/mombf/R/imomknown.R
no_license
ingted/R-Examples
R
false
false
886
r
### ### imomknown.R.R ### imomknown <- function(theta1hat,V1,n,nuisance.theta,g=1,nu=1,theta0,sigma,method='adapt',B=10^5) { if (missing(sigma)) stop('sigma must be specified') if (missing(theta0)) theta0 <- rep(0,length(theta1hat)) f <- function(z) { ans <- (n*gi/z)^((nu+p1)/2) * exp(-n*gi/z); ans[z==0] <- 0; return(...
`mu.varknown` <- function(len,lambda,n0,level=0.95) { # Returns the minimal sample size to ensure an average prob. coverage of # 'level' with a symmetric region about the posterior mean # when sampling from a normal distribution with known variance (Adcock, 1988) # Using the same notation as Adcock v...
/R/mu.varknown.R
no_license
cran/SampleSizeMeans
R
false
false
435
r
`mu.varknown` <- function(len,lambda,n0,level=0.95) { # Returns the minimal sample size to ensure an average prob. coverage of # 'level' with a symmetric region about the posterior mean # when sampling from a normal distribution with known variance (Adcock, 1988) # Using the same notation as Adcock v...
## timestart timediff 2020-06-20 #' @title Collect the difftime between two events #' #' @description #' \code{timestart} starts the timer and saved the value in an object named #' \code{time0} stored in \code{.GlobalEnv}. #' #' \code{timediff} stops the timer, remove the \code{time0} objet from \code{.Gl...
/R/timestart-timediff.R
no_license
cran/NNbenchmark
R
false
false
1,137
r
## timestart timediff 2020-06-20 #' @title Collect the difftime between two events #' #' @description #' \code{timestart} starts the timer and saved the value in an object named #' \code{time0} stored in \code{.GlobalEnv}. #' #' \code{timediff} stops the timer, remove the \code{time0} objet from \code{.Gl...
# Coded by Anderson Borba data: 22/06/2020 version 1.0 # The total log-likelihood presented in equation (X) in the article # Article to appear # XXXXX # Anderson A. de Borba, Maurı́cio Marengoni, and Alejandro C Frery # # - The program reads an image of two halves 400 X 400 (channels hh, hv and vv) finds the paramete...
/Code/Code_art_rem_sen_2020/evidencias_im_sim_param_prod_mag.R
no_license
c-l-k/ufal_mack
R
false
false
3,476
r
# Coded by Anderson Borba data: 22/06/2020 version 1.0 # The total log-likelihood presented in equation (X) in the article # Article to appear # XXXXX # Anderson A. de Borba, Maurı́cio Marengoni, and Alejandro C Frery # # - The program reads an image of two halves 400 X 400 (channels hh, hv and vv) finds the paramete...
library(openxlsx) # This library is used to open xlsx files directly in R library(chron) # This library is used for time manipulation library(data.table) # Used to join rows one after another # file = "Tata.xlsx" # SUS_NO = "9058786086" # imp_row = 4 # raw_sheet = 1 infile = readline(prompt="Input file: ") ...
/Tata.R
no_license
aakanksha287/Cell-Phone-Theft-problem
R
false
false
3,793
r
library(openxlsx) # This library is used to open xlsx files directly in R library(chron) # This library is used for time manipulation library(data.table) # Used to join rows one after another # file = "Tata.xlsx" # SUS_NO = "9058786086" # imp_row = 4 # raw_sheet = 1 infile = readline(prompt="Input file: ") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/strataMethods.R \docType{methods} \name{strata} \alias{strata} \alias{strata,genind-method} \alias{strata,genlight-method} \alias{strata<-} \alias{strata<-,genind-method} \alias{strata<-,genlight-method} \alias{nameStrata} \alias{nameStrata,g...
/man/strata-methods.Rd
no_license
thibautjombart/adegenet
R
false
true
6,376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/strataMethods.R \docType{methods} \name{strata} \alias{strata} \alias{strata,genind-method} \alias{strata,genlight-method} \alias{strata<-} \alias{strata<-,genind-method} \alias{strata<-,genlight-method} \alias{nameStrata} \alias{nameStrata,g...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jackse.R \name{jackse} \alias{jackse} \title{Jackknife standard errors} \usage{ jackse(x, theta, bycol = TRUE, ...) } \arguments{ \item{x}{A vector or matrix to be summarized.} \item{theta}{The summary statistic to be used. For example, \cod...
/man/jackse.Rd
no_license
my1120/smurf
R
false
true
725
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jackse.R \name{jackse} \alias{jackse} \title{Jackknife standard errors} \usage{ jackse(x, theta, bycol = TRUE, ...) } \arguments{ \item{x}{A vector or matrix to be summarized.} \item{theta}{The summary statistic to be used. For example, \cod...
#install.packages('rsconnect') #library(rsconnect) #install.packages("shinyjs") options(scipen=999) # imports ----------------------------------------------------------------- library(shiny) library(shinyjs) library(leaflet) library(RColorBrewer) library(scales) library(lattice) library(dplyr) library(ggplot2) libr...
/group_n/app.R
no_license
pratishta/Group_N_NYCdata
R
false
false
66,717
r
#install.packages('rsconnect') #library(rsconnect) #install.packages("shinyjs") options(scipen=999) # imports ----------------------------------------------------------------- library(shiny) library(shinyjs) library(leaflet) library(RColorBrewer) library(scales) library(lattice) library(dplyr) library(ggplot2) libr...
home <- tabPanel("Home", sidebarLayout(sidebarPanel( p( "Hi there, my name is Bayan Hammami and I'm a data scientist who loves data. This is my interactive data-driven resume. I h...
/ui-components/nav-panels/ui-home.R
no_license
BayanHammami/resume-shiny
R
false
false
2,557
r
home <- tabPanel("Home", sidebarLayout(sidebarPanel( p( "Hi there, my name is Bayan Hammami and I'm a data scientist who loves data. This is my interactive data-driven resume. I h...
###tidy_tuesday ###4/10/21 ###richard rachman ####################### ### library library(tidyverse) library(tidytuesdayR) library(here) library(viridis) library(hrbrthemes) ### data forest <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-06/forest.csv') vi...
/script/tidytuesday_4-12-21.R
no_license
awanderingecologist/tidytuesday
R
false
false
1,211
r
###tidy_tuesday ###4/10/21 ###richard rachman ####################### ### library library(tidyverse) library(tidytuesdayR) library(here) library(viridis) library(hrbrthemes) ### data forest <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-04-06/forest.csv') vi...
library(bigMap) ### Name: bdm.pakde ### Title: Perplexity-adaptive kernel density estimation ### Aliases: bdm.pakde ### ** Examples # --- load mapped dataset bdm.example() # --- run paKDE ## Not run: ##D exMap <- bdm.pakde(exMap, threads = 4, ppx = 200, g = 200, g.exp = 3) ## End(Not run) # --- plot paKDE output ...
/data/genthat_extracted_code/bigMap/examples/bdm.pakde.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
339
r
library(bigMap) ### Name: bdm.pakde ### Title: Perplexity-adaptive kernel density estimation ### Aliases: bdm.pakde ### ** Examples # --- load mapped dataset bdm.example() # --- run paKDE ## Not run: ##D exMap <- bdm.pakde(exMap, threads = 4, ppx = 200, g = 200, g.exp = 3) ## End(Not run) # --- plot paKDE output ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clear_selection.R \name{clear_selection} \alias{clear_selection} \title{Clear a selection of nodes or edges in a graph} \usage{ clear_selection(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph} that is created using \...
/man/clear_selection.Rd
no_license
timelyportfolio/DiagrammeR
R
false
true
1,169
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clear_selection.R \name{clear_selection} \alias{clear_selection} \title{Clear a selection of nodes or edges in a graph} \usage{ clear_selection(graph) } \arguments{ \item{graph}{a graph object of class \code{dgr_graph} that is created using \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/givenNamesDB_authorships.R \docType{data} \name{givenNamesDB_authorships} \alias{givenNamesDB_authorships} \title{Gender data for authorship sample} \format{A data.table object with 872 rows and 4 variables: \describe{ \item{name}{A...
/man/givenNamesDB_authorships.Rd
permissive
cran/genderizeR
R
false
true
913
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/givenNamesDB_authorships.R \docType{data} \name{givenNamesDB_authorships} \alias{givenNamesDB_authorships} \title{Gender data for authorship sample} \format{A data.table object with 872 rows and 4 variables: \describe{ \item{name}{A...
sidebar <- dashboardSidebar( sidebarMenu( menuItem("Webinar Participation", tabName = "social_location", icon = icon("user", lib = "glyphicon"), badgeLabel = "main", badgeColor = "green"), menuItem("User Journey", icon = icon("send", lib = "glyphicon"), tabName = "landing_page" #, ...
/ui.R
no_license
Debs20/data-proj-syn
R
false
false
2,527
r
sidebar <- dashboardSidebar( sidebarMenu( menuItem("Webinar Participation", tabName = "social_location", icon = icon("user", lib = "glyphicon"), badgeLabel = "main", badgeColor = "green"), menuItem("User Journey", icon = icon("send", lib = "glyphicon"), tabName = "landing_page" #, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spline-correlog.r \name{print.spline.correlog} \alias{print.spline.correlog} \title{Print function for spline.correlog objects} \usage{ \method{print}{spline.correlog}(x, ...) } \arguments{ \item{x}{an object of class "spline.correlog", usual...
/man/print.spline.correlog.Rd
no_license
objornstad/ncf
R
false
true
571
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spline-correlog.r \name{print.spline.correlog} \alias{print.spline.correlog} \title{Print function for spline.correlog objects} \usage{ \method{print}{spline.correlog}(x, ...) } \arguments{ \item{x}{an object of class "spline.correlog", usual...
plot_case_studies <- function(cs1, cs2, performance_stats, perf_summaries, case_studies, cs_name = "realistic", lcomp_years = "max", plot_variable = "f", plot_period = "middle", modelo_name) { if (lcomp_years == "max"){ lyears <- m...
/functions/plot_case_studies.R
permissive
DanOvando/scrooge
R
false
false
3,140
r
plot_case_studies <- function(cs1, cs2, performance_stats, perf_summaries, case_studies, cs_name = "realistic", lcomp_years = "max", plot_variable = "f", plot_period = "middle", modelo_name) { if (lcomp_years == "max"){ lyears <- m...
# For compatibility with 2.2.21 .get_course_path <- function(){ tryCatch(swirl:::swirl_courses_dir(), error = function(c) {file.path(find.package("swirl"),"Courses")} ) } # Put initialization code in this file. path_to_course <- file.path(.get_course_path(), "R_102 - Getting_and_Cleaning_Data","ODBC")...
/R_102 - Getting_and_Cleaning_Data/ODBC/initLesson.R
no_license
ImprovementPathSystems/IPS_swirl_beta
R
false
false
321
r
# For compatibility with 2.2.21 .get_course_path <- function(){ tryCatch(swirl:::swirl_courses_dir(), error = function(c) {file.path(find.package("swirl"),"Courses")} ) } # Put initialization code in this file. path_to_course <- file.path(.get_course_path(), "R_102 - Getting_and_Cleaning_Data","ODBC")...
#' Change PCA Table names #' #' @param table created with the \code{sas_prcomp_PCA_table_function} function. #' @description First create a table from SAS output, then use this function to change the values of a couple of columns. #' #' @export sas_PCA_table_names <- function(table) { table %<>% mutate(`Summary St...
/R/SAS_PCA_table_names.R
no_license
ksauby/modresproc
R
false
false
4,101
r
#' Change PCA Table names #' #' @param table created with the \code{sas_prcomp_PCA_table_function} function. #' @description First create a table from SAS output, then use this function to change the values of a couple of columns. #' #' @export sas_PCA_table_names <- function(table) { table %<>% mutate(`Summary St...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { ## Initialize the inverse property i <- NULL ## Method to set the matrix set <- function( matrix ) { m <<- matrix ...
/cachematrix.R
no_license
manavjain174/ProgrammingAssignment2
R
false
false
1,362
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()) { ## Initialize the inverse property i <- NULL ## Method to set the matrix set <- function( matrix ) { m <<- matrix ...
testlist <- list(testX = c(191493125665849920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX ...
/dann/inst/testfiles/calc_distance_C/AFL_calc_distance_C/calc_distance_C_valgrind_files/1609867112-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,199
r
testlist <- list(testX = c(191493125665849920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), trainX ...
library(here) library(keras) library(tidytext) library(tidyverse) set.seed(55) tweets <- read_csv(here("tweets", "truthdata_allrounds.csv")) %>% mutate(accident = NA) %>% mutate(accident = replace(accident, accident_truth == "No", 0)) %>% mutate(accident = replace(accident, accident_truth == "Yes", 1)) %>% se...
/scripts/classify_32_300_90.R
no_license
robtenorio/classify-accidents
R
false
false
8,390
r
library(here) library(keras) library(tidytext) library(tidyverse) set.seed(55) tweets <- read_csv(here("tweets", "truthdata_allrounds.csv")) %>% mutate(accident = NA) %>% mutate(accident = replace(accident, accident_truth == "No", 0)) %>% mutate(accident = replace(accident, accident_truth == "Yes", 1)) %>% se...
context("list") skip_on_cran() skip_if_not_installed("modeltests") library(modeltests) test_that("not all lists can be tidied", { nl <- list(a = NULL) expect_error(tidy(nl), "No tidy method recognized for this list.") expect_error(glance(nl), "No glance method recognized for this list.") })
/tests/testthat/test-list.R
permissive
tidymodels/broom
R
false
false
302
r
context("list") skip_on_cran() skip_if_not_installed("modeltests") library(modeltests) test_that("not all lists can be tidied", { nl <- list(a = NULL) expect_error(tidy(nl), "No tidy method recognized for this list.") expect_error(glance(nl), "No glance method recognized for this list.") })
\name{edbGetActiveParticipants} \alias{edbGetActiveParticipants} \title{Returns dataframe with info about all active participants} \description{ Returns dataframe with info about all active participants } \usage{edbGetActiveParticipants(d)} \arguments{ \item{d}{cleaned enrollment database as dataframe} } \value{Retur...
/man/edbGetActiveParticipants.Rd
no_license
jjcurtin/StudySupport
R
false
false
385
rd
\name{edbGetActiveParticipants} \alias{edbGetActiveParticipants} \title{Returns dataframe with info about all active participants} \description{ Returns dataframe with info about all active participants } \usage{edbGetActiveParticipants(d)} \arguments{ \item{d}{cleaned enrollment database as dataframe} } \value{Retur...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/export.r \name{CreateCsv} \alias{CreateCsv} \title{Create CSV} \usage{ CreateCsv(ediData, filePath) } \arguments{ \item{ediData}{The EDI data in format of data frame or ffdf containing the data to be inserted.} \item{filePath}{path and file ...
/man/CreateCsv.Rd
permissive
parkyijoo/EdiToOmop
R
false
true
425
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/export.r \name{CreateCsv} \alias{CreateCsv} \title{Create CSV} \usage{ CreateCsv(ediData, filePath) } \arguments{ \item{ediData}{The EDI data in format of data frame or ffdf containing the data to be inserted.} \item{filePath}{path and file ...
library(CaDENCE) ### Name: cadence.predict ### Title: Predict conditional distribution parameters from a fitted CDEN ### model ### Aliases: cadence.predict cadence.evaluate ### ** Examples data(FraserSediment) lnorm.distribution.fixed <- list(density.fcn = dlnorm, para...
/data/genthat_extracted_code/CaDENCE/examples/cadence.predict.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
882
r
library(CaDENCE) ### Name: cadence.predict ### Title: Predict conditional distribution parameters from a fitted CDEN ### model ### Aliases: cadence.predict cadence.evaluate ### ** Examples data(FraserSediment) lnorm.distribution.fixed <- list(density.fcn = dlnorm, para...
\name{b.com.est} \alias{b.com.est} \title{ Common slope estimation } \description{ Estimates a common slope from bivariate data for several independent groups. Called by \code{\link{slope.com}}. } \usage{ b.com.est(z, n, method, lambda = 1, res.df) } \arguments{ \item{z}{ Variances and covariances o...
/man/b.com.est.Rd
no_license
cran/smatr
R
false
false
714
rd
\name{b.com.est} \alias{b.com.est} \title{ Common slope estimation } \description{ Estimates a common slope from bivariate data for several independent groups. Called by \code{\link{slope.com}}. } \usage{ b.com.est(z, n, method, lambda = 1, res.df) } \arguments{ \item{z}{ Variances and covariances o...