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
calcLog <- function(b, x) { s <- log(x, base = b) s }
/rsrc/log_calc.R
no_license
lranasingha/python-to-r
R
false
false
58
r
calcLog <- function(b, x) { s <- log(x, base = b) s }
# Defines varlabels methods # # surveydata/R/varlabels.R by Andrie de Vries Copyright (C) 2011-2017 # # 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 2 or 3 of the License #...
/R/varlabels.R
no_license
emountier/surveydata
R
false
false
1,598
r
# Defines varlabels methods # # surveydata/R/varlabels.R by Andrie de Vries Copyright (C) 2011-2017 # # 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 2 or 3 of the License #...
# Getting and Cleaning Data - Quiz 1 # Question 1 setwd("C:/Users/dongh/Desktop/R 공부/Coursera") quiz_1<-read.csv("getdata_data_ss06hid.csv") value<-quiz_1$VAL value_new<-value[!is.na(value)] sum(value_new) # My Answer:53 # Question 2 # My Answer: FES variable measures the family type and their economic sta...
/Quiz 1.R
no_license
ndonghwi16/Getting-and-Cleaning-Data-Coursera-
R
false
false
1,582
r
# Getting and Cleaning Data - Quiz 1 # Question 1 setwd("C:/Users/dongh/Desktop/R 공부/Coursera") quiz_1<-read.csv("getdata_data_ss06hid.csv") value<-quiz_1$VAL value_new<-value[!is.na(value)] sum(value_new) # My Answer:53 # Question 2 # My Answer: FES variable measures the family type and their economic sta...
test_that("vld_numeric", { expect_true(vld_numeric(1)) expect_true(vld_numeric(matrix(1:3))) expect_true(vld_numeric(integer(0))) expect_false(vld_numeric(NULL)) expect_false(vld_numeric("1")) expect_false(vld_numeric(NA)) }) test_that("chk_numeric", { expect_identical(chk_numeric(1), 1) expect_invisib...
/tests/testthat/test-chk-numeric.R
permissive
poissonconsulting/chk
R
false
false
485
r
test_that("vld_numeric", { expect_true(vld_numeric(1)) expect_true(vld_numeric(matrix(1:3))) expect_true(vld_numeric(integer(0))) expect_false(vld_numeric(NULL)) expect_false(vld_numeric("1")) expect_false(vld_numeric(NA)) }) test_that("chk_numeric", { expect_identical(chk_numeric(1), 1) expect_invisib...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/error_vars.R \name{error_vars} \alias{error_vars} \title{Generate Variables for Error Loop} \usage{ error_vars(marginal, support, method, means, vars, constants, lam, size, prob, mu, Sigma, rho_calc, q, r, k_cat, k_cont, k_pois, k_nb, Y_cat...
/man/error_vars.Rd
no_license
guhjy/SimMultiCorrData
R
false
true
3,805
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/error_vars.R \name{error_vars} \alias{error_vars} \title{Generate Variables for Error Loop} \usage{ error_vars(marginal, support, method, means, vars, constants, lam, size, prob, mu, Sigma, rho_calc, q, r, k_cat, k_cont, k_pois, k_nb, Y_cat...
testlist <- list(x = structure(c(3.47306054607043e-164, 1.35248279137169e-309, 5.13764326887284e-312, 2.69342553704527e-164, 7.27917492813415e-95, 8.10541286714173e+228, 0, 0, 1.31099742193234e-178, 0, 1.35248279137049e-309, 1.92311388516708e-168, 0, 0, 0, 1.11658835960122e-321, 5.4323092248711e-312, 0, 0, 4.300347...
/bravo/inst/testfiles/colSumSq_matrix/libFuzzer_colSumSq_matrix/colSumSq_matrix_valgrind_files/1609959598-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,264
r
testlist <- list(x = structure(c(3.47306054607043e-164, 1.35248279137169e-309, 5.13764326887284e-312, 2.69342553704527e-164, 7.27917492813415e-95, 8.10541286714173e+228, 0, 0, 1.31099742193234e-178, 0, 1.35248279137049e-309, 1.92311388516708e-168, 0, 0, 0, 1.11658835960122e-321, 5.4323092248711e-312, 0, 0, 4.300347...
df <- read.csv(file='./Data/dsstudents2.csv') #Data stored in Data Frame df #data frame anyNA(df) #returns whether there is any missing value in the whole df is.na(df) #returns whether there is any missing value in each column ?anyNA ?is.na table(is.na(df)) all(is.na(df)) ?all complete.cases(df) ?complete.cases !comple...
/DH/missing.R
no_license
KSTVCHATTERJEE/R_in_Action
R
false
false
863
r
df <- read.csv(file='./Data/dsstudents2.csv') #Data stored in Data Frame df #data frame anyNA(df) #returns whether there is any missing value in the whole df is.na(df) #returns whether there is any missing value in each column ?anyNA ?is.na table(is.na(df)) all(is.na(df)) ?all complete.cases(df) ?complete.cases !comple...
best <- function(state, outcome) { # 1. Read from outcome-of-care-measures.csv file data <- read.csv("data/outcome-of-care-measures.csv", colClasses = "character") # 2. Extract the data of the required 5 columns only: # hospital(2), state(7), heart attack (11), heart failure (17), pn...
/best.R
no_license
SanjaySomraj/RProgramming_Week4
R
false
false
1,626
r
best <- function(state, outcome) { # 1. Read from outcome-of-care-measures.csv file data <- read.csv("data/outcome-of-care-measures.csv", colClasses = "character") # 2. Extract the data of the required 5 columns only: # hospital(2), state(7), heart attack (11), heart failure (17), pn...
library(rrepast) ### Name: Load ### Title: The Scenario loader ### Aliases: Load ### ** Examples ## Not run: ##D d<- "C:/usr/models/your-model-directory" ##D m<- Model(d) ##D Load(m) ## End(Not run)
/data/genthat_extracted_code/rrepast/examples/Load.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
217
r
library(rrepast) ### Name: Load ### Title: The Scenario loader ### Aliases: Load ### ** Examples ## Not run: ##D d<- "C:/usr/models/your-model-directory" ##D m<- Model(d) ##D Load(m) ## End(Not run)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mm_filter_hours.R \name{mm_filter_hours} \alias{mm_filter_hours} \title{Limit to a specific time range on each date} \usage{ mm_filter_hours(data, day_start, day_end) } \arguments{ \item{data}{a data.frame containing date and solar.time colum...
/man/mm_filter_hours.Rd
permissive
lsdeel/streamMetabolizer
R
false
true
811
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mm_filter_hours.R \name{mm_filter_hours} \alias{mm_filter_hours} \title{Limit to a specific time range on each date} \usage{ mm_filter_hours(data, day_start, day_end) } \arguments{ \item{data}{a data.frame containing date and solar.time colum...
coxDKplsDR <- function (Xplan, ...) UseMethod("coxDKplsDR")
/plsRcox/R/coxDKplsDR.R
no_license
ingted/R-Examples
R
false
false
61
r
coxDKplsDR <- function (Xplan, ...) UseMethod("coxDKplsDR")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pcabiplot.R \name{pcabiplot} \alias{pcabiplot} \title{Biplot of a PCA object} \usage{ pcabiplot( PC, x = "PC1", y = "PC2", var.line = TRUE, colobj = rep(1, nrow(PC$x)), o.size = 1 ) } \arguments{ \item{PC}{A pca ob...
/man/pcabiplot.Rd
no_license
cran/kmed
R
false
true
1,397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pcabiplot.R \name{pcabiplot} \alias{pcabiplot} \title{Biplot of a PCA object} \usage{ pcabiplot( PC, x = "PC1", y = "PC2", var.line = TRUE, colobj = rep(1, nrow(PC$x)), o.size = 1 ) } \arguments{ \item{PC}{A pca ob...
## MIF2 algorithm codes #' @include pfilter_methods.R NULL #' @title PIF: Panel iterated filtering #' @description Tools for applying iterated filtering algorithms to panel data. #' The panel iterated filtering of Breto et al. (2018) extends to #' panel models the improved iterated filtering algorithm (Ionides et al...
/R/mif2.R
no_license
regicid/panelPomp
R
false
false
11,907
r
## MIF2 algorithm codes #' @include pfilter_methods.R NULL #' @title PIF: Panel iterated filtering #' @description Tools for applying iterated filtering algorithms to panel data. #' The panel iterated filtering of Breto et al. (2018) extends to #' panel models the improved iterated filtering algorithm (Ionides et al...
gene <- scan("ecs171.dataset.txt", what = '') pattern <- grep("T[0-9]{3}", gene) gene_index_start <- c(1, pattern) gene_index_end <- c(pattern - 1, length(gene)) row_num <- length(gene_index_start) col_num <- gene_index_end[1] - gene_index_start[1] + 1 gene_data_raw <- Map(function(i, j) gene[i:j], gene_index_start, g...
/ECS171/hw/hw3/ECS171_hw3_Rhelper.R
no_license
minjay/UCDavis
R
false
false
1,089
r
gene <- scan("ecs171.dataset.txt", what = '') pattern <- grep("T[0-9]{3}", gene) gene_index_start <- c(1, pattern) gene_index_end <- c(pattern - 1, length(gene)) row_num <- length(gene_index_start) col_num <- gene_index_end[1] - gene_index_start[1] + 1 gene_data_raw <- Map(function(i, j) gene[i:j], gene_index_start, g...
#Libraries library(readr) library(tidyr) library(dplyr) library(stringr) setwd("C:/Users/colle/Documents/R/co2aviation/Code") #Call function aggregations source("read_avia_par.R") source("read_avia_paocc.R") source("base_avia_comp.R") ###### Load data directory and read files name ##### setwd("C:/Users/colle/Document...
/Code/verifications.R
no_license
CharlesCollet/co2aviation
R
false
false
3,929
r
#Libraries library(readr) library(tidyr) library(dplyr) library(stringr) setwd("C:/Users/colle/Documents/R/co2aviation/Code") #Call function aggregations source("read_avia_par.R") source("read_avia_paocc.R") source("base_avia_comp.R") ###### Load data directory and read files name ##### setwd("C:/Users/colle/Document...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dbWipe} \alias{dbWipe} \title{Wipe out all tables in a database} \usage{ dbWipe(conn, ...) } \arguments{ \item{conn}{A \linkS4class{DBIConnection} object, as returned by \code{\link[=dbConnect]{dbConnect()}}.} \item{...}{Other ...
/man/dbWipe.Rd
no_license
niannucci/etl
R
false
true
470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dbWipe} \alias{dbWipe} \title{Wipe out all tables in a database} \usage{ dbWipe(conn, ...) } \arguments{ \item{conn}{A \linkS4class{DBIConnection} object, as returned by \code{\link[=dbConnect]{dbConnect()}}.} \item{...}{Other ...
context("TMLE Spec") library(sl3) library(tmle3) data(sample_rf_data) nodes <- list( strata = c("study_id"), W = c( "apgar1", "apgar5", "gagebrth", "mage", "meducyrs", "sexn" ), A = "parity_cat", Y = "haz" ) # drop missing values processed <- process_missing(sample_rf_data, nodes, complete_nodes = c(...
/tests/testthat/test-tmle-spec.R
no_license
child-growth/longbowRiskFactors
R
false
false
1,435
r
context("TMLE Spec") library(sl3) library(tmle3) data(sample_rf_data) nodes <- list( strata = c("study_id"), W = c( "apgar1", "apgar5", "gagebrth", "mage", "meducyrs", "sexn" ), A = "parity_cat", Y = "haz" ) # drop missing values processed <- process_missing(sample_rf_data, nodes, complete_nodes = c(...
library(plumber) setwd('/Users/eunicerodas/Documents/Maestria/ProductDev/proyecto-product-dev/api') r <- plumb("prediction_api.R") r$run(host = "0.0.0.0", port = 8001)
/api/run_api.R
no_license
eunrod16/ProjectProductDev
R
false
false
171
r
library(plumber) setwd('/Users/eunicerodas/Documents/Maestria/ProductDev/proyecto-product-dev/api') r <- plumb("prediction_api.R") r$run(host = "0.0.0.0", port = 8001)
# Convert coordinate system from shapefile # import shapefile library (maptools) data<-readShapePoints("data/databysite.shp") # define coordinate system library (rgdal) proj4string(data) <- CRS("+init=epsg:32631") #WGS84 UTM 31 # transform projection data.latlon<- spTransform(data, CRS=CRS("+init=epsg:4326")) # exp...
/geo/UTM_to_degrees.R
no_license
dmarch/r-cookbook
R
false
false
448
r
# Convert coordinate system from shapefile # import shapefile library (maptools) data<-readShapePoints("data/databysite.shp") # define coordinate system library (rgdal) proj4string(data) <- CRS("+init=epsg:32631") #WGS84 UTM 31 # transform projection data.latlon<- spTransform(data, CRS=CRS("+init=epsg:4326")) # exp...
qphat <- function(p, n, mu=0, sigma=1, type="known", LSL=-3, USL=3, nodes=30) { if ( n < 1 ) stop("n must be >= 1") if ( sigma<1e-10 ) stop("sigma much too small") ctyp <- -1 + pmatch(type, c("known", "estimated")) if ( is.na(ctyp) ) stop("invalid sigma mode") if ( LSL >= USL ) stop("wrong...
/R/qphat.R
no_license
cran/spc
R
false
false
866
r
qphat <- function(p, n, mu=0, sigma=1, type="known", LSL=-3, USL=3, nodes=30) { if ( n < 1 ) stop("n must be >= 1") if ( sigma<1e-10 ) stop("sigma much too small") ctyp <- -1 + pmatch(type, c("known", "estimated")) if ( is.na(ctyp) ) stop("invalid sigma mode") if ( LSL >= USL ) stop("wrong...
##### Non-Detect Levels by Permittee ######################################################################## #color_list <- c("#999999", "#56B4E9", "brown", "#009E73", "#F0E442", "#D55E00", "#CC79A7", "#000000", "#0072B2","red", "dark green", ) color_list<-c("#000000","#00FF7F", "#7FFFD4","#458B00","#CD661D","#6495E...
/scripts/Plot_byParam_sub5_CensorLevels.r
permissive
ethankale/ecy-wa-s8d
R
false
false
2,915
r
##### Non-Detect Levels by Permittee ######################################################################## #color_list <- c("#999999", "#56B4E9", "brown", "#009E73", "#F0E442", "#D55E00", "#CC79A7", "#000000", "#0072B2","red", "dark green", ) color_list<-c("#000000","#00FF7F", "#7FFFD4","#458B00","#CD661D","#6495E...
testlist <- list(phi = c(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), x = c(1.36656528938164e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609868643-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
831
r
testlist <- list(phi = c(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), x = c(1.36656528938164e-311, -1.657912...
## This script plots frequency against Global Active Power and saves into a png file. data <- read.table("household_power_consumption.txt", sep = ";") data[] <- lapply(data, as.character) names(data) <- data[1,] data <- data[2:2075260,] data$DateTime <- paste(data$Date, data$Time) data$DateTime <- strptime(data$DateTi...
/plot3.R
no_license
Isometrick/ExData_Plotting1
R
false
false
982
r
## This script plots frequency against Global Active Power and saves into a png file. data <- read.table("household_power_consumption.txt", sep = ";") data[] <- lapply(data, as.character) names(data) <- data[1,] data <- data[2:2075260,] data$DateTime <- paste(data$Date, data$Time) data$DateTime <- strptime(data$DateTi...
# National by province map (PDF format)---- globalVariables(c('VALUE', 'DPA_PROVIN', 'DPA_DESPRO', 'LABEL', 'X', 'Y', '.', ':=', 'font_add_google')) #' @export choropleth_ma...
/R/choropleth_map_prov_pdf.R
no_license
Regulus1492/mapsEcuador
R
false
false
9,102
r
# National by province map (PDF format)---- globalVariables(c('VALUE', 'DPA_PROVIN', 'DPA_DESPRO', 'LABEL', 'X', 'Y', '.', ':=', 'font_add_google')) #' @export choropleth_ma...
# Created by Luke Zappia, githubID: lazappi # #' Get tree nodes #' #' Get the nodes required for a clustering tree #' #' @param clusterings data.frame describing clusterings at different #' resolutions. Columns must be named "res.X" where X is numeric and indicates #' the clustering resolution. #' @param tSNE data.fram...
/Laura_Pipeline/clustering_tree.R
no_license
tallulandrews/LiverTumouroidsScripts
R
false
false
12,811
r
# Created by Luke Zappia, githubID: lazappi # #' Get tree nodes #' #' Get the nodes required for a clustering tree #' #' @param clusterings data.frame describing clusterings at different #' resolutions. Columns must be named "res.X" where X is numeric and indicates #' the clustering resolution. #' @param tSNE data.fram...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/convert.input.R \name{convert.input} \alias{convert.input} \title{convert.input} \usage{ convert.input(input.id, outfolder, formatname, mimetype, site.id, start_date, end_date, pkg, fcn, username, con = con, hostname = "localhost", ...
/utils/man/convert.input.Rd
permissive
davidjpmoore/pecan
R
false
false
477
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/convert.input.R \name{convert.input} \alias{convert.input} \title{convert.input} \usage{ convert.input(input.id, outfolder, formatname, mimetype, site.id, start_date, end_date, pkg, fcn, username, con = con, hostname = "localhost", ...
mtcars #git config --global user.email "kokate.nupur@gmail.com" #git config --global user.name "nupurkok"
/file1.R
no_license
nupurkok/analytics
R
false
false
105
r
mtcars #git config --global user.email "kokate.nupur@gmail.com" #git config --global user.name "nupurkok"
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bijectors.R \name{tfb_softmax_centered} \alias{tfb_softmax_centered} \title{Computes \verb{Y = g(X) = exp([X 0]) / sum(exp([X 0]))}} \usage{ tfb_softmax_centered(validate_args = FALSE, name = "softmax_centered") } \arguments{ \item{validate_a...
/man/tfb_softmax_centered.Rd
no_license
cran/tfprobability
R
false
true
3,672
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bijectors.R \name{tfb_softmax_centered} \alias{tfb_softmax_centered} \title{Computes \verb{Y = g(X) = exp([X 0]) / sum(exp([X 0]))}} \usage{ tfb_softmax_centered(validate_args = FALSE, name = "softmax_centered") } \arguments{ \item{validate_a...
# Logistic Regression with QUEDOU,QUEGAR Seedlings # # Author: Meagan F. Oldfather # Date Created: 20150530 # I added one line to try a push and commit # clear workspace rm(list=ls()) library("RCurl") library("data.table") library("picante") #function to source html source_https <- function(url, ...) { # parse ...
/Analyses/BlueOregonLogistic.R
no_license
dackerly/PepperwoodVegPlots
R
false
false
4,752
r
# Logistic Regression with QUEDOU,QUEGAR Seedlings # # Author: Meagan F. Oldfather # Date Created: 20150530 # I added one line to try a push and commit # clear workspace rm(list=ls()) library("RCurl") library("data.table") library("picante") #function to source html source_https <- function(url, ...) { # parse ...
# system.time({ # library(MASS) # result <- kmeans(Boston,4,nstart=100000) # }) library(snow) library(parallel) library(foreach) library(doParallel) system.time({ data(Boston) cl <- makeCluster(2,type='SOCK') clusterExport(cl,'Boston') results <- clusterApply(cl,rep(50000,2),function(nstart) kmeans(Boston,4...
/spider.r
no_license
git874997967/Rontes
R
false
false
1,406
r
# system.time({ # library(MASS) # result <- kmeans(Boston,4,nstart=100000) # }) library(snow) library(parallel) library(foreach) library(doParallel) system.time({ data(Boston) cl <- makeCluster(2,type='SOCK') clusterExport(cl,'Boston') results <- clusterApply(cl,rep(50000,2),function(nstart) kmeans(Boston,4...
=begin =@FolderParameter String @FolderParameter(String folder, String name) ==説明 folderで指定されたフォルダのnameで指定されたパラメータの値を返します。 folderにはフラグを調べたいフォルダの完全名を指定します。指定されたフォルダが見つからないとエラーになります。nameには取得するパラメータの名前を指定します。指定されたパラメータが設定されていなかった場合には空文字列を返します。 ==引数 :String folder フォルダ名 :String name パラメータ名 =...
/docs/FolderParameterFunction.rd
permissive
snakamura/q3
R
false
false
892
rd
=begin =@FolderParameter String @FolderParameter(String folder, String name) ==説明 folderで指定されたフォルダのnameで指定されたパラメータの値を返します。 folderにはフラグを調べたいフォルダの完全名を指定します。指定されたフォルダが見つからないとエラーになります。nameには取得するパラメータの名前を指定します。指定されたパラメータが設定されていなかった場合には空文字列を返します。 ==引数 :String folder フォルダ名 :String name パラメータ名 =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shield_operations.R \name{shield_create_protection_group} \alias{shield_create_protection_group} \title{Creates a grouping of protected resources so they can be handled as a collective} \usage{ shield_create_protection_group(ProtectionGroupId...
/cran/paws.security.identity/man/shield_create_protection_group.Rd
permissive
TWarczak/paws
R
false
true
2,867
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shield_operations.R \name{shield_create_protection_group} \alias{shield_create_protection_group} \title{Creates a grouping of protected resources so they can be handled as a collective} \usage{ shield_create_protection_group(ProtectionGroupId...
plot4 <- function (NEI=plotreadRDS ('summarySCC_PM25.rds'), SCC=readRDS ('Source_Classification_Code.rds'), outFile='plot4.png', substr='coal') { png (filename=outFile, width=480, height=480) # Select and clean relevant data data <- merge (NEI, SCC, by='...
/plot4.R
no_license
vobine/Coursera-Exploratory-Data-Analysis
R
false
false
621
r
plot4 <- function (NEI=plotreadRDS ('summarySCC_PM25.rds'), SCC=readRDS ('Source_Classification_Code.rds'), outFile='plot4.png', substr='coal') { png (filename=outFile, width=480, height=480) # Select and clean relevant data data <- merge (NEI, SCC, by='...
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # EU strategy objective 4 (so4) - Mitigating and adapting to climate change # +001 COMPUTE CORRELATIONS # CORRELATIONS ARE COMPUTED BETWEEN 2 INDICATORS & FOR 1 YEAR & ALL MEMBER STATES # This script is linke...
/Documents/clone/r_scripts/s2_correlations_so4.R
no_license
sarahwertz/JRC-bioeconomy-MonitSyst-indicators
R
false
false
4,714
r
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # EU strategy objective 4 (so4) - Mitigating and adapting to climate change # +001 COMPUTE CORRELATIONS # CORRELATIONS ARE COMPUTED BETWEEN 2 INDICATORS & FOR 1 YEAR & ALL MEMBER STATES # This script is linke...
# 0| +++++ Preparing data cleaning +++++ # require packages require("stringr") # set working and data directory setwd("C:/Users/Mario/Desktop/docs LSHTM/R analysis") data.dir <- "C:/Users/Mario/Desktop/docs LSHTM/ODK data/" # read in survey data hcw.data <- read.csv(paste0(data.dir, "Health worker Sur...
/hcwsurvey.cleaning.R
no_license
MarioJendrossek/slhwsurvey
R
false
false
18,052
r
# 0| +++++ Preparing data cleaning +++++ # require packages require("stringr") # set working and data directory setwd("C:/Users/Mario/Desktop/docs LSHTM/R analysis") data.dir <- "C:/Users/Mario/Desktop/docs LSHTM/ODK data/" # read in survey data hcw.data <- read.csv(paste0(data.dir, "Health worker Sur...
#Cutlet csv cutlet <- read.csv(file.choose()) View(cutlet) attach(cutlet) #2 sample t test# #alpha=0.05 colnames(cutlet) #Normality test shapiro.test(Unit.A) #P- value = 0.32 >0.05 as P value in high it follows normal distribution shapiro.test(Unit.B) #P-value = 0.52 as P value is grreater than 0.05 it follows normal d...
/Cutlet.R
no_license
belenamita/namita
R
false
false
981
r
#Cutlet csv cutlet <- read.csv(file.choose()) View(cutlet) attach(cutlet) #2 sample t test# #alpha=0.05 colnames(cutlet) #Normality test shapiro.test(Unit.A) #P- value = 0.32 >0.05 as P value in high it follows normal distribution shapiro.test(Unit.B) #P-value = 0.52 as P value is grreater than 0.05 it follows normal d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_variable_profile.R \name{calculate_variable_split} \alias{calculate_variable_split} \title{Internal Function for Split Points for Selected Variables} \usage{ calculate_variable_split(data, variables = colnames(data), grid_points =...
/man/calculate_variable_split.Rd
no_license
tkonopka/ingredients
R
false
true
1,435
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_variable_profile.R \name{calculate_variable_split} \alias{calculate_variable_split} \title{Internal Function for Split Points for Selected Variables} \usage{ calculate_variable_split(data, variables = colnames(data), grid_points =...
# More simplified scenario just altering final demand for plastic and fruits/vegs library(purrr) # Codes for each sector plastic_film_code <- '326110' freshfruit_code <- '111200' freshveg_code <- '111300' freshfv_code <- c(freshfruit_code, freshveg_code) # Load original demand vector. all_codes <- read.csv('~/Dropb...
/USEEIO/scenario_script2.r
no_license
qdread/fwe
R
false
false
2,091
r
# More simplified scenario just altering final demand for plastic and fruits/vegs library(purrr) # Codes for each sector plastic_film_code <- '326110' freshfruit_code <- '111200' freshveg_code <- '111300' freshfv_code <- c(freshfruit_code, freshveg_code) # Load original demand vector. all_codes <- read.csv('~/Dropb...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vi_permute.R \name{vi_permute} \alias{vi_permute} \alias{vi_permute.default} \title{Permutation-Based Variable Importance} \usage{ vi_permute(object, ...) \method{vi_permute}{default}(object, feature_names, train, pred_fun = stats::predict...
/man/vi_permute.Rd
no_license
NanaAkwasiAbayieBoateng/vip
R
false
true
2,614
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vi_permute.R \name{vi_permute} \alias{vi_permute} \alias{vi_permute.default} \title{Permutation-Based Variable Importance} \usage{ vi_permute(object, ...) \method{vi_permute}{default}(object, feature_names, train, pred_fun = stats::predict...
There is no dynamic section in this file\. Relocation section '\.rel\.dyn' at offset 0x8000 contains 3 entries: Offset Info Type Sym\.Value Sym\. Name 0001100c ......a0 R_ARM_IRELATIVE 00011014 ......a0 R_ARM_IRELATIVE 00011010 ......a0 R_ARM_IRELATIVE
/external/binutils-2.38/ld/testsuite/ld-arm/ifunc-1.rd
permissive
zhmu/ananas
R
false
false
284
rd
There is no dynamic section in this file\. Relocation section '\.rel\.dyn' at offset 0x8000 contains 3 entries: Offset Info Type Sym\.Value Sym\. Name 0001100c ......a0 R_ARM_IRELATIVE 00011014 ......a0 R_ARM_IRELATIVE 00011010 ......a0 R_ARM_IRELATIVE
\name{binned_sum} \alias{binned_sum} \alias{binned_sum.default} \alias{binned_sum.ff} \title{Fast summing in different bins} \usage{ binned_sum(x, bin, nbins = max(bin), ...) \method{binned_sum}{default} (x, bin, nbins = max(bin), ...) \method{binned_sum}{default} (x, bin, nbins = max(bin), ...) } \argu...
/pkg/man/binned_sum.Rd
no_license
nalimilan/ffbase
R
false
false
714
rd
\name{binned_sum} \alias{binned_sum} \alias{binned_sum.default} \alias{binned_sum.ff} \title{Fast summing in different bins} \usage{ binned_sum(x, bin, nbins = max(bin), ...) \method{binned_sum}{default} (x, bin, nbins = max(bin), ...) \method{binned_sum}{default} (x, bin, nbins = max(bin), ...) } \argu...
# Loading and manipulating data in R data <- read.csv("data/seed_root_herbivores.csv", strip.white = TRUE) data$Height data[["Height"]] coln <- c("Plot", "Height") data[coln] data$coln data[,5] seq(5, 30, by=1) idx <- sample(1:nrow(data), 10, replace=FALSE) data[idx,] idx <- data$Plot != "plot-12" & data$Seed.he...
/analysis.R
no_license
jmadinlab/himbr
R
false
false
805
r
# Loading and manipulating data in R data <- read.csv("data/seed_root_herbivores.csv", strip.white = TRUE) data$Height data[["Height"]] coln <- c("Plot", "Height") data[coln] data$coln data[,5] seq(5, 30, by=1) idx <- sample(1:nrow(data), 10, replace=FALSE) data[idx,] idx <- data$Plot != "plot-12" & data$Seed.he...
#!/usr/bin/env Rscript # https://stackoverflow.com/questions/18306362/run-r-script-from-command-line # Clear workspace rm(list = ls()) args <- commandArgs(trailingOnly = TRUE) if (length(args) > 0) { print("Taking cli arguments.") workspace = args[1] print(paste("Changing to workspace:", workspace)) ...
/old interfaces/main-fit.R
no_license
AMCeScience/R-topicmodelling
R
false
false
1,267
r
#!/usr/bin/env Rscript # https://stackoverflow.com/questions/18306362/run-r-script-from-command-line # Clear workspace rm(list = ls()) args <- commandArgs(trailingOnly = TRUE) if (length(args) > 0) { print("Taking cli arguments.") workspace = args[1] print(paste("Changing to workspace:", workspace)) ...
# Please note: This file involves the code for the creation of the specific plot only. # These functions can be invoked either seperately on the console or by sourcing # "commons.R" and invoking the method "writeAllPlots". Reading the data from the web-source is also # provided in commons.R buildGAPHistogram <- func...
/plot1.R
no_license
olinux/ExData_Plotting1
R
false
false
648
r
# Please note: This file involves the code for the creation of the specific plot only. # These functions can be invoked either seperately on the console or by sourcing # "commons.R" and invoking the method "writeAllPlots". Reading the data from the web-source is also # provided in commons.R buildGAPHistogram <- func...
###################################################################################################### ### Author: Fahimeh Baftizadeh ####################################################################### ### Date: 2/20/2021 ###################################################################### ###########...
/External_mapping_barplots_riverplots.R
no_license
Fahimeh1983/Patchseq-Rcodes
R
false
false
16,376
r
###################################################################################################### ### Author: Fahimeh Baftizadeh ####################################################################### ### Date: 2/20/2021 ###################################################################### ###########...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{encode690} \alias{encode690} \title{encode690} \format{S4Vectors DataFrame instance} \usage{ encode690 } \description{ encode690 } \keyword{datasets}
/man/encode690.Rd
no_license
shwetagopaul92/visByGene
R
false
true
256
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{encode690} \alias{encode690} \title{encode690} \format{S4Vectors DataFrame instance} \usage{ encode690 } \description{ encode690 } \keyword{datasets}
#' Guesses the type of identifiers provided. #' #' This was extracted from the `guess_id_type` in the DenaliSigDb package. #' We are using it as temporary bandaid to extract the "feature space" from #' results. These should be straightforward to extract when all analyses are #' going through some type of FacileDataStor...
/R/feature-types.R
permissive
edavidaja/FacileAnalysis
R
false
false
2,390
r
#' Guesses the type of identifiers provided. #' #' This was extracted from the `guess_id_type` in the DenaliSigDb package. #' We are using it as temporary bandaid to extract the "feature space" from #' results. These should be straightforward to extract when all analyses are #' going through some type of FacileDataStor...
library(gfilmm) library(AOV1R) library(rstanarm) options(mc.cores = parallel::detectCores()) mu <- 10000 # grand mean sigmaWithin <- 1 ratio <- 50 sigmaBetween <- sigmaWithin * ratio I <- 10L # number of groups J <- 5L # sample size per group nsims <- 15L fidIntervals <- freqIn...
/inst/stan/AOV1R_highRatio_simulations.R
no_license
stla/gfilmm
R
false
false
6,725
r
library(gfilmm) library(AOV1R) library(rstanarm) options(mc.cores = parallel::detectCores()) mu <- 10000 # grand mean sigmaWithin <- 1 ratio <- 50 sigmaBetween <- sigmaWithin * ratio I <- 10L # number of groups J <- 5L # sample size per group nsims <- 15L fidIntervals <- freqIn...
library(ggplot2) fit_r2_f <- snakemake@input[["fit_r2_slope"]] r2_plot_f <- snakemake@output[["r2_plot"]] delta_plot_f <- snakemake@output[["delta_plot"]] log_f <- snakemake@log[["log"]] r2_thr <- as.numeric(snakemake@params[['r2_thr']]) subcl_thr <- as.numeric(snakemake@params[['subcl_thr']]) #r2_thr <- 0.9 #subcl_t...
/local/src/fit_r2_plots.R
no_license
vodkatad/snakegatk
R
false
false
2,784
r
library(ggplot2) fit_r2_f <- snakemake@input[["fit_r2_slope"]] r2_plot_f <- snakemake@output[["r2_plot"]] delta_plot_f <- snakemake@output[["delta_plot"]] log_f <- snakemake@log[["log"]] r2_thr <- as.numeric(snakemake@params[['r2_thr']]) subcl_thr <- as.numeric(snakemake@params[['subcl_thr']]) #r2_thr <- 0.9 #subcl_t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EnsErrorss.R \name{EnsErrorss} \alias{EnsErrorss} \alias{EnsMaess} \alias{EnsMsess} \alias{EnsRmsess} \title{Ensemble Mean Error Skill scores} \usage{ EnsErrorss(ens, ens.ref, obs, type) EnsMaess(ens, ens.ref, obs) EnsMsess(ens, ens.ref, ob...
/easyVerification/man/EnsErrorss.Rd
no_license
akhikolla/InformationHouse
R
false
true
1,209
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EnsErrorss.R \name{EnsErrorss} \alias{EnsErrorss} \alias{EnsMaess} \alias{EnsMsess} \alias{EnsRmsess} \title{Ensemble Mean Error Skill scores} \usage{ EnsErrorss(ens, ens.ref, obs, type) EnsMaess(ens, ens.ref, obs) EnsMsess(ens, ens.ref, ob...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coerce-functions.R \name{as.data.frame} \alias{as.data.frame} \alias{as.data.frame.JobList} \alias{as.data.frame.BandList} \alias{as.data.frame.CollectionList} \alias{as.data.frame.VersionsList} \alias{as.data.frame.FileTypesList} \title{Coer...
/man/as.data.frame.Rd
permissive
przell/openeo-r-client
R
false
true
1,122
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coerce-functions.R \name{as.data.frame} \alias{as.data.frame} \alias{as.data.frame.JobList} \alias{as.data.frame.BandList} \alias{as.data.frame.CollectionList} \alias{as.data.frame.VersionsList} \alias{as.data.frame.FileTypesList} \title{Coer...
#### variant type compare setwd("~/Desktop/KCDC/long_read/analysis/03.check/04.withoutMulti.allele/inter/anno/") type1 <- read.table("0000.variant.type.txt",header = F) type2 <- read.table("0001.variant.type.txt",header = F) inter <- read.table("0002.variant.type.txt",header = F) head(inter) colnames(type1) <-c("CHR...
/KCDC/HLA_imputataion/longRead/01.compare/02.variant.type.table.R
no_license
ksmpooh/SungminCode
R
false
false
1,126
r
#### variant type compare setwd("~/Desktop/KCDC/long_read/analysis/03.check/04.withoutMulti.allele/inter/anno/") type1 <- read.table("0000.variant.type.txt",header = F) type2 <- read.table("0001.variant.type.txt",header = F) inter <- read.table("0002.variant.type.txt",header = F) head(inter) colnames(type1) <-c("CHR...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plot.R \name{plot.ggthemr} \alias{plot.ggthemr} \title{Create colour plot of ggthemr palette} \usage{ \method{plot}{ggthemr}(x, ...) } \arguments{ \item{x}{ggthemr object.} \item{...}{other arguments to plot() (these will be ignored)...
/man/plot.ggthemr.Rd
no_license
gitter-badger/ggthemr
R
false
false
380
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plot.R \name{plot.ggthemr} \alias{plot.ggthemr} \title{Create colour plot of ggthemr palette} \usage{ \method{plot}{ggthemr}(x, ...) } \arguments{ \item{x}{ggthemr object.} \item{...}{other arguments to plot() (these will be ignored)...
#------------------------------------------------------------------------------- #'*------------------------- ERROR MESSAGES FOR USER --------------------------* #------------------------------------------------------------------------------- kableError <- data.frame( "invalid data" = "check your data carefully" ) w...
/s_errorMessages.R
no_license
Carnuntum/agree
R
false
false
7,749
r
#------------------------------------------------------------------------------- #'*------------------------- ERROR MESSAGES FOR USER --------------------------* #------------------------------------------------------------------------------- kableError <- data.frame( "invalid data" = "check your data carefully" ) w...
#' --- #' title: Analysis outline #' author: Melissa Chen #' output: github_document #' --- #' #' #' EDA: #' - How should you adjust BD estimates (done) #' - Check for duplicates, missing data, etc (done) #' - ** Check controls and contaminants; plot ** #' - #' #' #' How many otus are shared over time on the same...
/5sp_analysis_outline.R
no_license
mech3132/Project_5sp
R
false
false
3,132
r
#' --- #' title: Analysis outline #' author: Melissa Chen #' output: github_document #' --- #' #' #' EDA: #' - How should you adjust BD estimates (done) #' - Check for duplicates, missing data, etc (done) #' - ** Check controls and contaminants; plot ** #' - #' #' #' How many otus are shared over time on the same...
setwd("~/_Projects/Coursera Classes/EDA/EDA") ##Read in data frame to powerdf powerdf <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", colClasses=c("character","character","numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"), ...
/plot3.R
no_license
mhward/ExData_Plotting1
R
false
false
1,369
r
setwd("~/_Projects/Coursera Classes/EDA/EDA") ##Read in data frame to powerdf powerdf <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", colClasses=c("character","character","numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"), ...
859e9a282547ce5b88c75573ffc6ca9e query15_query23_1344.qdimacs 1 2
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query15_query23_1344/query15_query23_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
65
r
859e9a282547ce5b88c75573ffc6ca9e query15_query23_1344.qdimacs 1 2
suppressMessages(suppressWarnings(library(yarg))) dataDir <- "0_data" densDir <- "0_ProcessTetraDENSITYData/" outDir <- "1_PrepareDiversityData/" cat('Loading database extracts\n') diversity<-readRDS(paste(dataDir,"/database.rds",sep="")) cat('Selecting appropriate data\n') diversity <- droplevels(diversity[(diver...
/1_PrepareDiversityData.R
no_license
timnewbold/RarityStudyPublic
R
false
false
2,344
r
suppressMessages(suppressWarnings(library(yarg))) dataDir <- "0_data" densDir <- "0_ProcessTetraDENSITYData/" outDir <- "1_PrepareDiversityData/" cat('Loading database extracts\n') diversity<-readRDS(paste(dataDir,"/database.rds",sep="")) cat('Selecting appropriate data\n') diversity <- droplevels(diversity[(diver...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initproject.r \name{build} \alias{build} \title{Build distribution package} \usage{ build(path = getwd(), ...) } \arguments{ \item{path}{Path} } \description{ Build distribution package }
/man/build.Rd
permissive
nx10/r-floutil
R
false
true
266
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initproject.r \name{build} \alias{build} \title{Build distribution package} \usage{ build(path = getwd(), ...) } \arguments{ \item{path}{Path} } \description{ Build distribution package }
\name{MSstats-package} \alias{MSstats-package} \alias{MSstats} \docType{package} \title{Tools for protein significance analysis in DDA,SRM and DIA proteomic experiments for label-free workflows or workflows with stable isotope labeled reference} \description{A set of tools for protein significance analysis in SRM, DDA ...
/man/MSstats-package.Rd
no_license
danielemarcotulli/MSstats
R
false
false
3,211
rd
\name{MSstats-package} \alias{MSstats-package} \alias{MSstats} \docType{package} \title{Tools for protein significance analysis in DDA,SRM and DIA proteomic experiments for label-free workflows or workflows with stable isotope labeled reference} \description{A set of tools for protein significance analysis in SRM, DDA ...
# Open file png(filename = "plot1.png", width = 480, height = 480) # Read in data and convert Date column from character to Date data_raw = read.table('household_power_consumption.txt', sep=';', na.strings = '?', header = T, colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric"...
/plot1.R
no_license
JolienJM/ExData_Plotting1
R
false
false
668
r
# Open file png(filename = "plot1.png", width = 480, height = 480) # Read in data and convert Date column from character to Date data_raw = read.table('household_power_consumption.txt', sep=';', na.strings = '?', header = T, colClasses = c("character", "character", "numeric", "numeric", "numeric", "numeric", "numeric"...
## Tested by first typing ## x <- makeCacheMatrix(matrix(1:4,2,2)) ## then ## cacheSolve(x) ## This first function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setin...
/cachematrix.R
no_license
vinvanveen/ProgrammingAssignment2
R
false
false
1,014
r
## Tested by first typing ## x <- makeCacheMatrix(matrix(1:4,2,2)) ## then ## cacheSolve(x) ## This first function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { x <<- y i <<- NULL } get <- function() x setin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ft_links.R \name{ft_links} \alias{ft_links} \alias{ft_links_ls} \title{Get full text links} \usage{ ft_links(x, from = NULL, plosopts = list(), crossrefopts = list(), entrezopts = list(), bmcopts = list(), ...) ft_links_ls() } \arguments{ ...
/man/ft_links.Rd
permissive
vrishankvajpayee/fulltext
R
false
true
4,572
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ft_links.R \name{ft_links} \alias{ft_links} \alias{ft_links_ls} \title{Get full text links} \usage{ ft_links(x, from = NULL, plosopts = list(), crossrefopts = list(), entrezopts = list(), bmcopts = list(), ...) ft_links_ls() } \arguments{ ...
#' @keywords internal #' @importFrom forecast auto.arima #' @importFrom forecast Arima #' @autoglobal auto_whiten <- function(Y, modelmat, method=c("auto", "ar1", "ar2", "arma")) { method <- match.arg(method) out <- foreach( i = seq(1,ncol(Y)), .combine=cbind) %dopar% { y0 <- Y[,i] lm.1 = lm(y0 ~ modelmat-1...
/R/whiten.R
no_license
bbuchsbaum/fmrireg
R
false
false
2,572
r
#' @keywords internal #' @importFrom forecast auto.arima #' @importFrom forecast Arima #' @autoglobal auto_whiten <- function(Y, modelmat, method=c("auto", "ar1", "ar2", "arma")) { method <- match.arg(method) out <- foreach( i = seq(1,ncol(Y)), .combine=cbind) %dopar% { y0 <- Y[,i] lm.1 = lm(y0 ~ modelmat-1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotRiskSet.R \name{plotRiskSet} \alias{plotRiskSet} \title{Title} \usage{ plotRiskSet( data.rdu, xlab = paste("Time in", get.time.units(data.rdu)), ylab = ifelse(proportion, "Proportion at Risk", "Number in Risk Set"), proportion = F...
/man/plotRiskSet.Rd
no_license
anhnguyendepocen/SMRD
R
false
true
852
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotRiskSet.R \name{plotRiskSet} \alias{plotRiskSet} \title{Title} \usage{ plotRiskSet( data.rdu, xlab = paste("Time in", get.time.units(data.rdu)), ylab = ifelse(proportion, "Proportion at Risk", "Number in Risk Set"), proportion = F...
context("test-verb-compute") test_that("collect equivalent to as.data.frame/as_tibble", { mf <- memdb_frame(letters) expect_equal(as.data.frame(mf), data.frame(letters, stringsAsFactors = FALSE)) expect_equal(tibble::as_tibble(mf), tibble::tibble(letters)) expect_equal(collect(mf), tibble::tibble(letters)) })...
/tests/testthat/test-verb-compute.R
permissive
OssiLehtinen/dbplyr
R
false
false
2,159
r
context("test-verb-compute") test_that("collect equivalent to as.data.frame/as_tibble", { mf <- memdb_frame(letters) expect_equal(as.data.frame(mf), data.frame(letters, stringsAsFactors = FALSE)) expect_equal(tibble::as_tibble(mf), tibble::tibble(letters)) expect_equal(collect(mf), tibble::tibble(letters)) })...
## ---- warning=FALSE, message = FALSE, results = "hide"------------------- library(magrittr) library(jpmesh) library(dplyr) library(purrr) library(sf) library(ggplot2) library(leaflet) ## ---- include = FALSE---------------------------------------------------- library(testthat) expect_equal( compareVersion( as...
/jpmesh_demo.R
no_license
uribo/binder_demo
R
false
false
2,765
r
## ---- warning=FALSE, message = FALSE, results = "hide"------------------- library(magrittr) library(jpmesh) library(dplyr) library(purrr) library(sf) library(ggplot2) library(leaflet) ## ---- include = FALSE---------------------------------------------------- library(testthat) expect_equal( compareVersion( as...
# Run with R version 3.0.2 or earlier because that is the version # required in the DESCRIPTION file R package sped (where these data # are going foo <- getRversion() foo <- as.character(foo) foo if (utils::compareVersion(foo, "3.2.0") > 0) stop("must use R version 3.2.0 or earlier") # Figure 1 of Thomp...
/data/bar.R
no_license
cjgeyer/sped
R
false
false
1,171
r
# Run with R version 3.0.2 or earlier because that is the version # required in the DESCRIPTION file R package sped (where these data # are going foo <- getRversion() foo <- as.character(foo) foo if (utils::compareVersion(foo, "3.2.0") > 0) stop("must use R version 3.2.0 or earlier") # Figure 1 of Thomp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measures.r \name{print.indexIntensity} \alias{print.indexIntensity} \title{Print method for class indexIntensity.} \usage{ \method{print}{indexIntensity}(x, digits = 2, ...) } \arguments{ \item{x}{Object of class indexIntensity.} \item{digit...
/man/print.indexIntensity.Rd
no_license
artoo-git/OpenRepGrid
R
false
true
490
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/measures.r \name{print.indexIntensity} \alias{print.indexIntensity} \title{Print method for class indexIntensity.} \usage{ \method{print}{indexIntensity}(x, digits = 2, ...) } \arguments{ \item{x}{Object of class indexIntensity.} \item{digit...
power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007") subpower$Date <...
/plot3.R
no_license
charlieKenobi/exploratoryDataAnalysisW1
R
false
false
1,057
r
power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007") subpower$Date <...
# Default settings Sys.setlocale("LC_TIME","English") windows.options(width=480, height=480) # Read and process data temp<-read.csv("./household_power_consumption.txt",sep=";") temp$Date<-as.Date(strptime(temp$Date,"%d/%m/%Y")) # Extract only required rows newdat<-temp[temp$Date>=as.Date(strptime("01/02/2007","%d/%m/%Y...
/plot1.R
no_license
Kristijan-K/ExData_Plotting1
R
false
false
657
r
# Default settings Sys.setlocale("LC_TIME","English") windows.options(width=480, height=480) # Read and process data temp<-read.csv("./household_power_consumption.txt",sep=";") temp$Date<-as.Date(strptime(temp$Date,"%d/%m/%Y")) # Extract only required rows newdat<-temp[temp$Date>=as.Date(strptime("01/02/2007","%d/%m/%Y...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ti_scorpius.R, R/ti_container.R \name{ti_scorpius} \alias{ti_scorpius} \alias{ti_scorpius} \title{Inferring trajectories with SCORPIUS} \usage{ ti_scorpius(docker = TRUE, distance_method = "spearman", ndim = 3, k = 4, thresh = 0.001, maxit ...
/man/ti_scorpius.Rd
no_license
flying-sheep/dynmethods
R
false
true
2,249
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ti_scorpius.R, R/ti_container.R \name{ti_scorpius} \alias{ti_scorpius} \alias{ti_scorpius} \title{Inferring trajectories with SCORPIUS} \usage{ ti_scorpius(docker = TRUE, distance_method = "spearman", ndim = 3, k = 4, thresh = 0.001, maxit ...
library( LatticeKrig) source( "fig1DApprox.R") setwd("~/Dropbox/Home/Current_talks/SARCarpentry") pdf("pix/fig1DApproxA.pdf", height=6, width=6) fields.style() fig1DApprox(22, TRUE) dev.off() pdf("pix/fig1DApproxB.pdf", height=6, width=6) fields.style() fig1DApprox(22, FALSE) dev.off()
/LatticeKrig/SARCarpentry/plots.R
no_license
dnychka/STATMOSShortCourse
R
false
false
287
r
library( LatticeKrig) source( "fig1DApprox.R") setwd("~/Dropbox/Home/Current_talks/SARCarpentry") pdf("pix/fig1DApproxA.pdf", height=6, width=6) fields.style() fig1DApprox(22, TRUE) dev.off() pdf("pix/fig1DApproxB.pdf", height=6, width=6) fields.style() fig1DApprox(22, FALSE) dev.off()
#check if required libraries are installed, if not, install these libraries and load them if (!("plyr" %in% rownames(installed.packages())) ) { install.packages("plyr") } library(plyr) # A simple function to read the required files with less typing. readFile<-function(path,item){ if (path=="") {addSep<-""; undScore<...
/run_analysis.R
no_license
JasonLim87/Getting-CleaningDataCourseProject
R
false
false
5,722
r
#check if required libraries are installed, if not, install these libraries and load them if (!("plyr" %in% rownames(installed.packages())) ) { install.packages("plyr") } library(plyr) # A simple function to read the required files with less typing. readFile<-function(path,item){ if (path=="") {addSep<-""; undScore<...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){x<<-y inv<<- NULL} get <-function()x setInverse<-function(inverse) inv<<- inverse getInvers...
/cachematrix.R
no_license
xchen689/ProgrammingAssignment2
R
false
false
790
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()) { inv <- NULL set <- function(y){x<<-y inv<<- NULL} get <-function()x setInverse<-function(inverse) inv<<- inverse getInvers...
#first way of reading header and writing new header file library(readr) headerFileToString <- function(rFilePath) { codeString <-read_file(rFilePath) return(codeString) } writeRFile <- function(fileName,rHeaderFile){ if(!file.exists(fileName)){ template <- headerFileToString(rHeaderFile) fil...
/writeHeader.R
no_license
parmsam/header
R
false
false
813
r
#first way of reading header and writing new header file library(readr) headerFileToString <- function(rFilePath) { codeString <-read_file(rFilePath) return(codeString) } writeRFile <- function(fileName,rHeaderFile){ if(!file.exists(fileName)){ template <- headerFileToString(rHeaderFile) fil...
install.packages("dplyr") library(dplyr) #Load the file, skip 2 rows which contain information about survey questions Facebook <- read.csv("Facebook.csv", header=TRUE, skip=c(1,3)) #Remove unnecessary rows (contain test responses) and columns that will now be analyzed Facebook <- Facebook[-c(1,2),-c(1:5,7:17)] #Chec...
/Facebook Analysis.R
no_license
aidasalova/facebook_survey_analysis
R
false
false
8,457
r
install.packages("dplyr") library(dplyr) #Load the file, skip 2 rows which contain information about survey questions Facebook <- read.csv("Facebook.csv", header=TRUE, skip=c(1,3)) #Remove unnecessary rows (contain test responses) and columns that will now be analyzed Facebook <- Facebook[-c(1,2),-c(1:5,7:17)] #Chec...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/theme_kable.R \name{theme_kable} \alias{theme_kable} \title{Customizes appearance of condformat object} \usage{ theme_kable(x, ...) } \arguments{ \item{x}{The condformat object} \item{...}{Arguments to be passed to knitr::kable (see examples...
/man/theme_kable.Rd
no_license
cran/condformat
R
false
true
551
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/theme_kable.R \name{theme_kable} \alias{theme_kable} \title{Customizes appearance of condformat object} \usage{ theme_kable(x, ...) } \arguments{ \item{x}{The condformat object} \item{...}{Arguments to be passed to knitr::kable (see examples...
## File Name: IRT_frequencies_default.R ## File Version: 0.09 IRT_frequencies_default <- function(data, post, probs, weights=NULL) { dim_probs <- dim(probs) K <- dim_probs[2] I <- dim_probs[1] TP <- dim_probs[3] N <- nrow(data) #--- preparation item response data dat <- data ...
/CDM/R/IRT_frequencies_default.R
no_license
akhikolla/InformationHouse
R
false
false
3,587
r
## File Name: IRT_frequencies_default.R ## File Version: 0.09 IRT_frequencies_default <- function(data, post, probs, weights=NULL) { dim_probs <- dim(probs) K <- dim_probs[2] I <- dim_probs[1] TP <- dim_probs[3] N <- nrow(data) #--- preparation item response data dat <- data ...
# # This test file has been generated by kwb.test::create_test_files() # test_that("read_logger_LT_EDGE_M100_xle() works", { expect_error( kwb.logger:::read_logger_LT_EDGE_M100_xle(file = 1) # ung?ltiges 'file' Argument ) expect_error( kwb.logger:::read_logger_LT_EDGE_M100_xle(file = 1:2) # XML...
/tests/testthat/test-function-read_logger_LT_EDGE_M100_xle.R
permissive
KWB-R/kwb.logger
R
false
false
810
r
# # This test file has been generated by kwb.test::create_test_files() # test_that("read_logger_LT_EDGE_M100_xle() works", { expect_error( kwb.logger:::read_logger_LT_EDGE_M100_xle(file = 1) # ung?ltiges 'file' Argument ) expect_error( kwb.logger:::read_logger_LT_EDGE_M100_xle(file = 1:2) # XML...
source("loadData.R") firstPlot <- function() { with(data, hist(Global_active_power, xlab="Global Active Power (kilowatts)", ylab="Frequency", col = "red", main="Global Active Power")) } createFirstPlotPng <- function() { plotToFile(firstPlot, "plot1") }
/plot1.R
no_license
zemadz/ExData_Plotting1
R
false
false
255
r
source("loadData.R") firstPlot <- function() { with(data, hist(Global_active_power, xlab="Global Active Power (kilowatts)", ylab="Frequency", col = "red", main="Global Active Power")) } createFirstPlotPng <- function() { plotToFile(firstPlot, "plot1") }
predict.augSIMEX<-function(object, newdata = NULL, type = c("link", "response", "terms"), se.fit = FALSE, dispersion = NULL, terms = NULL, na.action = na.pass, ...) { type <- match.arg(type) na.act <- object$na.action object$na.action <- NULL class(...
/augSIMEX/R/predict.augSIMEX.R
no_license
akhikolla/InformationHouse
R
false
false
1,995
r
predict.augSIMEX<-function(object, newdata = NULL, type = c("link", "response", "terms"), se.fit = FALSE, dispersion = NULL, terms = NULL, na.action = na.pass, ...) { type <- match.arg(type) na.act <- object$na.action object$na.action <- NULL class(...
## See Vertex_0_Notes document for details ## September 2019 ## tobias.estime@gmail.com setwd("spatial_toolbox/vertex_sequence/") source("../utility/Functions_General.R") source("Vertex_Definitions_Regions.R") ARGS <- commandArgs(TRUE) PATCHES <- pathArgument(ARGS[1]) ORIGINALS <- pathArgument(ARGS[2]) REGIONS <- ...
/vertex_sequence/Vertex_1_Save.R
no_license
tobiasestime/spatial_toolbox
R
false
false
1,091
r
## See Vertex_0_Notes document for details ## September 2019 ## tobias.estime@gmail.com setwd("spatial_toolbox/vertex_sequence/") source("../utility/Functions_General.R") source("Vertex_Definitions_Regions.R") ARGS <- commandArgs(TRUE) PATCHES <- pathArgument(ARGS[1]) ORIGINALS <- pathArgument(ARGS[2]) REGIONS <- ...
solve3 <- function(n){ ok <- 0 cnt <- 0 x <- rep(c(0), times=n) while (ok == 0) { timp <- Sys.time() ora <- hour(timp) min <- minute(timp) sec <- round(second(timp),0) t1 <- min*100 + sec if (t1 %% 17 ==0) {x[1] <- rnorm(1,min,sec) cnt <- 0 ok <- 1} else if(t...
/Anul II/Probabilitate_si_Statistica/ex3.R
no_license
StaicuBogdan/UniStuff
R
false
false
1,195
r
solve3 <- function(n){ ok <- 0 cnt <- 0 x <- rep(c(0), times=n) while (ok == 0) { timp <- Sys.time() ora <- hour(timp) min <- minute(timp) sec <- round(second(timp),0) t1 <- min*100 + sec if (t1 %% 17 ==0) {x[1] <- rnorm(1,min,sec) cnt <- 0 ok <- 1} else if(t...
# Feature Effect --------------------------------------------------------------- #' @title Effect of a feature on predictions #' #' @description `FeatureEffect` computes and plots (individual) feature effects #' of prediction models. #' #' @importFrom data.table melt setkeyv #' @importFrom stats cmdscale ecdf quanti...
/R/FeatureEffect.R
permissive
palexbg/iml
R
false
false
28,371
r
# Feature Effect --------------------------------------------------------------- #' @title Effect of a feature on predictions #' #' @description `FeatureEffect` computes and plots (individual) feature effects #' of prediction models. #' #' @importFrom data.table melt setkeyv #' @importFrom stats cmdscale ecdf quanti...
##Read the dataset ##Convert the date variable data <- read.table("household_power_consumption.txt", header = T, sep = ";", na.strings = "?") data$Date <- as.Date(data$Date, format = "%d/%m/%Y") ##Subset the data ##Convert the dates data <- subset(data, subset = (Date >= "2007-02-01" & Date <= "2007-02-02")) data$date...
/plot4.R
no_license
donatomato/Exploratory-Data-Analysis---Course-Project-1
R
false
false
1,220
r
##Read the dataset ##Convert the date variable data <- read.table("household_power_consumption.txt", header = T, sep = ";", na.strings = "?") data$Date <- as.Date(data$Date, format = "%d/%m/%Y") ##Subset the data ##Convert the dates data <- subset(data, subset = (Date >= "2007-02-01" & Date <= "2007-02-02")) data$date...
#包的安装 local({r <- getOption("repos") r["CRAN"] <- "http://mirrors.tuna.tsinghua.edu.cn/CRAN/" options(repos=r)}) if (!requireNamespace("BiocManager", quietly=TRUE)){ install.packages("BiocManager") } options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor") BiocManager::install("TCGAbiolinks") librar...
/tcga_download.R
no_license
zhangmin-debug/upload
R
false
false
4,210
r
#包的安装 local({r <- getOption("repos") r["CRAN"] <- "http://mirrors.tuna.tsinghua.edu.cn/CRAN/" options(repos=r)}) if (!requireNamespace("BiocManager", quietly=TRUE)){ install.packages("BiocManager") } options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor") BiocManager::install("TCGAbiolinks") librar...
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #+++ Unit tests for fConvertTimeToPosix functions +++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Author: TW #require(testthat) context("partGL") #++++++++++++++...
/inst/tests/test_partGL.R
no_license
trevorkeenan/REddyProc
R
false
false
62,810
r
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #+++ Unit tests for fConvertTimeToPosix functions +++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Author: TW #require(testthat) context("partGL") #++++++++++++++...
paper <- read.csv("paperdata.csv") hist(paper$NSE,main="Distribution by social class") plot(paper$xpos,paper$vote, main="Figure 1: GLM Probit model for probability of vote choice", xlab="Ideology",ylab="Probability of voting for Piñera") abline(h = c(0,1), lty = 3) # (paper$xpos,paper$Voto1) probit.1 <- glm(paper$vote...
/R/Bayesian hierarchical probit model/paper.R
no_license
rarmijok/Analytical-Politics
R
false
false
1,986
r
paper <- read.csv("paperdata.csv") hist(paper$NSE,main="Distribution by social class") plot(paper$xpos,paper$vote, main="Figure 1: GLM Probit model for probability of vote choice", xlab="Ideology",ylab="Probability of voting for Piñera") abline(h = c(0,1), lty = 3) # (paper$xpos,paper$Voto1) probit.1 <- glm(paper$vote...
fileURL <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' download.file(fileURL, destfile='data/data_extract.zip') unzip("data/data_extract.zip", exdir="data") data <- read.delim("data/household_power_consumption.txt", sep=";", na.strings="?") library(dplyr) library(lubridate) ...
/scripts/assignmentWeek1.R
no_license
aaronmah/ExData_Plotting1
R
false
false
2,247
r
fileURL <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' download.file(fileURL, destfile='data/data_extract.zip') unzip("data/data_extract.zip", exdir="data") data <- read.delim("data/household_power_consumption.txt", sep=";", na.strings="?") library(dplyr) library(lubridate) ...
getAnalysisTimeSeries <- function(datasetX, refArea, data) { id <- digest(paste0(datasetX, refArea), algo="sha1", serialize=FALSE) write.csv(data, file=paste0("www/csv/", id, ".csv")) meta <- data.frame("n"= nrow(data$x)) return(list("datasetX"=datasetX, "refArea"=refArea, "data"=data, "meta"=meta, "...
/lib/timeseries/analysis.R
permissive
annakrebs/lsd-analysis
R
false
false
2,526
r
getAnalysisTimeSeries <- function(datasetX, refArea, data) { id <- digest(paste0(datasetX, refArea), algo="sha1", serialize=FALSE) write.csv(data, file=paste0("www/csv/", id, ".csv")) meta <- data.frame("n"= nrow(data$x)) return(list("datasetX"=datasetX, "refArea"=refArea, "data"=data, "meta"=meta, "...
library("data.table") # Actually, this script is no longer necessary. A better, faster way is to use the following shell command: # sed 's/\x01/,/g' scene_mbr_dim.del | 's/ *,/,/g' | sed 's/, +/,/g' > ../../scene-csv/full/raw/scene_mbr_dim.csv # sed 's/\x01/,/g' scene_mbr_acct_dim.del | sed 's/ *,/,/g' | sed 's/, +/,...
/del2csv.R
no_license
stepthom/scene-scripts
R
false
false
6,124
r
library("data.table") # Actually, this script is no longer necessary. A better, faster way is to use the following shell command: # sed 's/\x01/,/g' scene_mbr_dim.del | 's/ *,/,/g' | sed 's/, +/,/g' > ../../scene-csv/full/raw/scene_mbr_dim.csv # sed 's/\x01/,/g' scene_mbr_acct_dim.del | sed 's/ *,/,/g' | sed 's/, +/,...
library(Rnightlights) ### Name: upgradeRnightlights ### Title: Perform upgrade functions to new package versions as required ### Aliases: upgradeRnightlights ### ** Examples ## Not run: ##D Rnightlights:::upgradeRnightlights() ##D #returns TRUE/FALSE ## End(Not run)
/data/genthat_extracted_code/Rnightlights/examples/upgradeRnightlights.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
279
r
library(Rnightlights) ### Name: upgradeRnightlights ### Title: Perform upgrade functions to new package versions as required ### Aliases: upgradeRnightlights ### ** Examples ## Not run: ##D Rnightlights:::upgradeRnightlights() ##D #returns TRUE/FALSE ## End(Not run)
SGD <- function(X, y, max_iter = 1000, learning_rate = .01, min_improvement = 0) { X <- cbind(1, as.matrix(X)) n <- length(y) beta <- matrix(0, nrow = ncol(X)) for (i in seq_len(max_iter)) { # reshuffle data before each iteration new_obs_order <- sample.int(n) X <- X[new_obs_order, ] y <- y[new...
/R/SGD.R
no_license
DominikRafacz/scrAMbLedeggs
R
false
false
1,025
r
SGD <- function(X, y, max_iter = 1000, learning_rate = .01, min_improvement = 0) { X <- cbind(1, as.matrix(X)) n <- length(y) beta <- matrix(0, nrow = ncol(X)) for (i in seq_len(max_iter)) { # reshuffle data before each iteration new_obs_order <- sample.int(n) X <- X[new_obs_order, ] y <- y[new...
npvMicroLabelMatrizes = function(matriz1, matriz2){ if(ncol(matriz1) != ncol(matriz2)){ print("incompatibilidade entre as colunas das matrizes"); return(); } indiceMatriz1 = c(); for(i in 1:nrow(matriz1)){ if(any(matriz1[i,])){ indiceMatriz1 = c(indiceMatriz1, i); } } indiceMat...
/npvMicroLabelsMatrizes.R
no_license
rnpeclat/A2E
R
false
false
916
r
npvMicroLabelMatrizes = function(matriz1, matriz2){ if(ncol(matriz1) != ncol(matriz2)){ print("incompatibilidade entre as colunas das matrizes"); return(); } indiceMatriz1 = c(); for(i in 1:nrow(matriz1)){ if(any(matriz1[i,])){ indiceMatriz1 = c(indiceMatriz1, i); } } indiceMat...
# Randomly Assigning Days for Exercise: library(dplyr) library(randomizr) dates <- seq(as.Date("2019-10-10"),as.Date("2019-11-25"),1) weekdays <- weekdays(dates) df <- data.frame(dates,weekdays) df$DayType <- ifelse(df$weekdays %in% c("Monday", "Wednesday"), "MW", ifelse(df$weekdays %in% c("Tue...
/Code:Data/00_Assignment_of_Experiment.R
no_license
GmanB3398/iGotoTheGym
R
false
false
764
r
# Randomly Assigning Days for Exercise: library(dplyr) library(randomizr) dates <- seq(as.Date("2019-10-10"),as.Date("2019-11-25"),1) weekdays <- weekdays(dates) df <- data.frame(dates,weekdays) df$DayType <- ifelse(df$weekdays %in% c("Monday", "Wednesday"), "MW", ifelse(df$weekdays %in% c("Tue...
# the list of functions that disk.frame can handle SUMM_FNS = c("sum", "mean", "var", "sd", "min", "max", "median", "n", "length", "any", "all", "n_distinct", "quantile", "IQF") BASIC_OPS = c("/", "*", "+", "-", "!") #' Bring the disk.frame into R #' #' Bring the disk.frame into RAM by loading the data and run...
/R/collect.summarized_disk.frame.r
no_license
cran/disk.frame
R
false
false
7,531
r
# the list of functions that disk.frame can handle SUMM_FNS = c("sum", "mean", "var", "sd", "min", "max", "median", "n", "length", "any", "all", "n_distinct", "quantile", "IQF") BASIC_OPS = c("/", "*", "+", "-", "!") #' Bring the disk.frame into R #' #' Bring the disk.frame into RAM by loading the data and run...
#' fortify LINEX models #' #' @param model a LINEX model #' @param data a data frame. Typically this is not needed #' since the data are extracted from `model`. But this allows #' a drop in replacement data set, if desired. #' @param ... additional arguments (not currently used) #' @keywords internal #' @export #' fo...
/R/fortify.R
no_license
anhnguyendepocen/MacroGrowth
R
false
false
1,046
r
#' fortify LINEX models #' #' @param model a LINEX model #' @param data a data frame. Typically this is not needed #' since the data are extracted from `model`. But this allows #' a drop in replacement data set, if desired. #' @param ... additional arguments (not currently used) #' @keywords internal #' @export #' fo...
plotCodonBarplot <- function (data, main) { # Copied from chip/scripts/correlation-plots.R:plotCodonsByType # Refactoring, yay. # We shuffle the order of the colours to avoid giving the misleading # impression of a gradient. grays <- gray.colors(length(colors) - 1)[c(3, 6, 2, 5, 1, 4, 7)] # Set...
/common/scripts/plot-codons.R
permissive
klmr/trna
R
false
false
1,388
r
plotCodonBarplot <- function (data, main) { # Copied from chip/scripts/correlation-plots.R:plotCodonsByType # Refactoring, yay. # We shuffle the order of the colours to avoid giving the misleading # impression of a gradient. grays <- gray.colors(length(colors) - 1)[c(3, 6, 2, 5, 1, 4, 7)] # Set...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.train} \alias{catboost.train} \title{Train the model} \usage{ catboost.train(learn_pool, test_pool = NULL, params = list()) } \arguments{ \item{learn_pool}{The dataset used for training the model. Default value: Req...
/catboost/R-package/man/catboost.train.Rd
permissive
kizill/catboost
R
false
true
30,339
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/catboost.R \name{catboost.train} \alias{catboost.train} \title{Train the model} \usage{ catboost.train(learn_pool, test_pool = NULL, params = list()) } \arguments{ \item{learn_pool}{The dataset used for training the model. Default value: Req...