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
#------------------------------------------------------------------------------- # Copyright (c) 2012 University of Illinois, NCSA. # All rights reserved. This program and the accompanying materials # are made available under the terms of the # University of Illinois/NCSA Open Source License # which accompanies this di...
/models/linkages/R/met2model.LINKAGES.R
permissive
araiho/pecan
R
false
false
4,662
r
#------------------------------------------------------------------------------- # Copyright (c) 2012 University of Illinois, NCSA. # All rights reserved. This program and the accompanying materials # are made available under the terms of the # University of Illinois/NCSA Open Source License # which accompanies this di...
# Clear plots if(!is.null(dev.list())) dev.off() # Clean workspace rm(list=ls()) # Clear console cat("\014") #function that generate a dataset by sampling from the model with given parameters # Sp is the number of species # nsamples is the number of sites # r is the number of latent factors # K_t is the number of uni...
/WIP_code/Simulate_dataset.R
no_license
angelopasquale/bayesian_statistics_project
R
false
false
5,031
r
# Clear plots if(!is.null(dev.list())) dev.off() # Clean workspace rm(list=ls()) # Clear console cat("\014") #function that generate a dataset by sampling from the model with given parameters # Sp is the number of species # nsamples is the number of sites # r is the number of latent factors # K_t is the number of uni...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_rocket_users.R \name{get_rocket_users} \alias{get_rocket_users} \title{Retrieve a list of all users in a Rocket.chat server} \usage{ get_rocket_users(url, user_id, auth_token) } \arguments{ \item{url}{The url of the rocket.chat server (ha...
/man/get_rocket_users.Rd
no_license
paeselhz/rocketeer
R
false
true
1,385
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_rocket_users.R \name{get_rocket_users} \alias{get_rocket_users} \title{Retrieve a list of all users in a Rocket.chat server} \usage{ get_rocket_users(url, user_id, auth_token) } \arguments{ \item{url}{The url of the rocket.chat server (ha...
# Coursera Data Science Specialization # Course 4: Exploratory data analysis # Week 1 assignment - plot1.R # 2016-01-29 library(lubridate) # Read data file, mind header, separator and "NA" hpc_dfr <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", strin...
/plot1.R
no_license
vgarzon/ExData_Plotting1
R
false
false
905
r
# Coursera Data Science Specialization # Course 4: Exploratory data analysis # Week 1 assignment - plot1.R # 2016-01-29 library(lubridate) # Read data file, mind header, separator and "NA" hpc_dfr <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", strin...
# Load placebo dataset (vote share) dat3pvs <- as.data.frame(read.csv("/Users/zeno/Dropbox/Green and Vasudevan (2015) Data (1)/4. Analysis/Matlab Data/voteshare3_placebo.csv")) names(dat3pvs) # Placebo test (vote share) placebovs <- lm(voteshare_spec3_2014 ~ treatany + voteshare_spec3_2009, dat3pvs) summary(placebovs)...
/R Scripts/Placebo Tests.R
no_license
adcoop/Replication-Collaboration
R
false
false
625
r
# Load placebo dataset (vote share) dat3pvs <- as.data.frame(read.csv("/Users/zeno/Dropbox/Green and Vasudevan (2015) Data (1)/4. Analysis/Matlab Data/voteshare3_placebo.csv")) names(dat3pvs) # Placebo test (vote share) placebovs <- lm(voteshare_spec3_2014 ~ treatany + voteshare_spec3_2009, dat3pvs) summary(placebovs)...
library(dplyr, warn.conflicts = FALSE) library(maptools) # Download US state shape files ------------------------------------------ url = "http://www2.census.gov/geo/tiger/GENZ2010/gz_2010_us_040_00_20m.zip" fil = "data-raw/gz_2010_us_040_00_20m.zip" if (!file.exists(fil)) downloader::download(url, fil) unzip(fil, e...
/data-raw/state.R
no_license
jjchern/usmapdata
R
false
false
2,327
r
library(dplyr, warn.conflicts = FALSE) library(maptools) # Download US state shape files ------------------------------------------ url = "http://www2.census.gov/geo/tiger/GENZ2010/gz_2010_us_040_00_20m.zip" fil = "data-raw/gz_2010_us_040_00_20m.zip" if (!file.exists(fil)) downloader::download(url, fil) unzip(fil, e...
library(dplyr) a <- data.frame(nunb = c(1, 2, 3, 4, 5), city = c("Istanbul", "Lviv", "Kyiv", "Kyiv", "Minsk")) # nunb city # 1 Istanbul # 2 Lviv # 3 Kyiv # 4 Kyiv # 5 Minsk b <- data.frame(city = c("Istanbul", "Istanbul", "Lviv", "Kyiv", "Kyiv", "Ankara", "Lo...
/joins.R
no_license
romanmilyanik/my-simple-examples
R
false
false
3,039
r
library(dplyr) a <- data.frame(nunb = c(1, 2, 3, 4, 5), city = c("Istanbul", "Lviv", "Kyiv", "Kyiv", "Minsk")) # nunb city # 1 Istanbul # 2 Lviv # 3 Kyiv # 4 Kyiv # 5 Minsk b <- data.frame(city = c("Istanbul", "Istanbul", "Lviv", "Kyiv", "Kyiv", "Ankara", "Lo...
library(KoNLP) library(stringr) library(wordVectors) library(dplyr) library(ggplot2) library(wordcloud) library(tsne) train <- read.csv('ratings_train-Copy1.txt', sep = '\t', header = T, fileEncoding = 'UTF-8', stringsAsFactors = F) train_label <- train[,3] train_text <- train[,2] write.table(train_text, fi...
/KOR_R.R
permissive
songhune/CCMP202
R
false
false
1,414
r
library(KoNLP) library(stringr) library(wordVectors) library(dplyr) library(ggplot2) library(wordcloud) library(tsne) train <- read.csv('ratings_train-Copy1.txt', sep = '\t', header = T, fileEncoding = 'UTF-8', stringsAsFactors = F) train_label <- train[,3] train_text <- train[,2] write.table(train_text, fi...
setwd("C:/Documents and Settings/chenjm/Desktop") filename="gafr-fst-aafd.txt" data <- read.table(filename, header=TRUE, sep="\t") #col is border, bg is background colors <- c("black", "orange", "blue", "red", "green", "magenta", "lightblue1") #zoomed plot x11() plot(data$Fst, data$GAFR, xlab="Fst", ylab="...
/biplot-hsa.r
no_license
cjieming/R_codes
R
false
false
1,243
r
setwd("C:/Documents and Settings/chenjm/Desktop") filename="gafr-fst-aafd.txt" data <- read.table(filename, header=TRUE, sep="\t") #col is border, bg is background colors <- c("black", "orange", "blue", "red", "green", "magenta", "lightblue1") #zoomed plot x11() plot(data$Fst, data$GAFR, xlab="Fst", ylab="...
setwd("C:/Users/212312659/Desktop/Utility/Essentials/Coursera/Exploratory Data Analysis/Project 1") # supress all warnings options(warn=-1) # reading specific two days data from file fh<-file("household_power_consumption.txt","r"); data <- read.table(text = grep("^[1,2]/2/2007",readLines(fh),value=TRUE) ) data <- dat...
/Plot2.R
no_license
arjunvshenoy/ExData_Plotting1
R
false
false
760
r
setwd("C:/Users/212312659/Desktop/Utility/Essentials/Coursera/Exploratory Data Analysis/Project 1") # supress all warnings options(warn=-1) # reading specific two days data from file fh<-file("household_power_consumption.txt","r"); data <- read.table(text = grep("^[1,2]/2/2007",readLines(fh),value=TRUE) ) data <- dat...
#Testing Ice-on, Ice-off setwd("/Users/krsalkgu/Documents/SourceTree/Lake227/Postproc_code/L227") library(ggplot2) library(knitr) library(tidyverse) knitr::opts_chunk$set(echo=FALSE, warning=FALSE, message=FALSE) theme_std <- function (base_size = 16, base_family = "") { theme_grey(base_size = base_size, base_fami...
/Postproc_code/L227/IcePerformanceAnalysis.R
no_license
biogeochemistry/MyLake_Lake-227
R
false
false
5,208
r
#Testing Ice-on, Ice-off setwd("/Users/krsalkgu/Documents/SourceTree/Lake227/Postproc_code/L227") library(ggplot2) library(knitr) library(tidyverse) knitr::opts_chunk$set(echo=FALSE, warning=FALSE, message=FALSE) theme_std <- function (base_size = 16, base_family = "") { theme_grey(base_size = base_size, base_fami...
View(mtcars) library(tidyverse) library(glmnet) library(caret) modelData <- mtcars %>% mutate( cyl = as.factor(cyl), vs = as.factor(vs), am = as.factor(am), gear = as.factor(gear), carb = as.factor(carb) ) clas...
/Bölüm 19 - Makine Öğrenmesi II - Regresyon Modelleri/21.40 - Regresyon - Lasso Regresyon 3 - Cross Validation Lambda Değeri Tayin Etme.R
no_license
sudedanisman/RUdemy
R
false
false
1,168
r
View(mtcars) library(tidyverse) library(glmnet) library(caret) modelData <- mtcars %>% mutate( cyl = as.factor(cyl), vs = as.factor(vs), am = as.factor(am), gear = as.factor(gear), carb = as.factor(carb) ) clas...
############################## ## RC1 PRELIM DATA ANALYSIS ## ############################## rc1<- read.csv("19RC1 MASTER.csv") str(rc1) rc1$Rep<- as.factor(rc1$Rep) library(ggplot2) library(Rmisc) ## Rye wt qplot(x=Trt, y=Ryewt*10, data=rc1, geom="boxplot") + theme_classic() qplot(x=Rep, y=Ryewt*10, data=rc1, g...
/RC1 Prelim data analysis.R
no_license
hbrackenridge/RC2019
R
false
false
1,461
r
############################## ## RC1 PRELIM DATA ANALYSIS ## ############################## rc1<- read.csv("19RC1 MASTER.csv") str(rc1) rc1$Rep<- as.factor(rc1$Rep) library(ggplot2) library(Rmisc) ## Rye wt qplot(x=Trt, y=Ryewt*10, data=rc1, geom="boxplot") + theme_classic() qplot(x=Rep, y=Ryewt*10, data=rc1, g...
skip_on_cran() test_that("setting themes", { expect_error( theme_gtsummary_journal("jama"), NA) expect_error( set_gtsummary_theme(theme_gtsummary_journal("jama")), NA) expect_error( set_gtsummary_theme(theme_gtsummary_journal("nejm")), NA) expect_error( set_gtsummary_theme(theme_...
/tests/testthat/test-set_gtsummary_theme.R
permissive
raphidoc/gtsummary
R
false
false
1,638
r
skip_on_cran() test_that("setting themes", { expect_error( theme_gtsummary_journal("jama"), NA) expect_error( set_gtsummary_theme(theme_gtsummary_journal("jama")), NA) expect_error( set_gtsummary_theme(theme_gtsummary_journal("nejm")), NA) expect_error( set_gtsummary_theme(theme_...
library(ArchR) set.seed(1) addArchRGenome("hg38") # all_data <- "All_Tonsils_pre_peaks" # output_directory <- "All_tonsils_high_res_unanalyzed" all_data <- "All_Tonsils_new_chromvar" output_directory <- "All_Tonsils_new_chromvar" b_cell <- "B_cells" t_cell <- "T_cells" # Remove the doublet cluster proj_all <- ...
/ATAC_seq/scripts/05_archr_add_b_and_t_clusters.R
no_license
kwells4/ATAC_RNA_Tonsils
R
false
false
2,673
r
library(ArchR) set.seed(1) addArchRGenome("hg38") # all_data <- "All_Tonsils_pre_peaks" # output_directory <- "All_tonsils_high_res_unanalyzed" all_data <- "All_Tonsils_new_chromvar" output_directory <- "All_Tonsils_new_chromvar" b_cell <- "B_cells" t_cell <- "T_cells" # Remove the doublet cluster proj_all <- ...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 calc_FstStats <- function(n_ind, n_allele, n_loc, n_st, ploidy, strata, locus, ind_allele_freq) { .Call(`_strataG_calc_FstStats`, n_ind, n_allele, n_loc, n_st, ploidy, strata, locus, ind_al...
/R/RcppExports.R
no_license
EricArcher/strataG
R
false
false
687
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 calc_FstStats <- function(n_ind, n_allele, n_loc, n_st, ploidy, strata, locus, ind_allele_freq) { .Call(`_strataG_calc_FstStats`, n_ind, n_allele, n_loc, n_st, ploidy, strata, locus, ind_al...
# libraries -------------------------------------------------------------------- library(here) # scripts in a data pipeline # pipeline: import --> clean --> eda --> modelling # import ----------------------------------------------------------------------- source(here("src", "01-import_from_google_drive.R")) # data ...
/src/00-config.R
no_license
garlandxie/roots_greenroofs
R
false
false
1,159
r
# libraries -------------------------------------------------------------------- library(here) # scripts in a data pipeline # pipeline: import --> clean --> eda --> modelling # import ----------------------------------------------------------------------- source(here("src", "01-import_from_google_drive.R")) # data ...
#EasyShu团队出品,更多文章请关注微信公众号【EasyShu】 #如有问题修正与深入学习,可联系微信:EasyCharts library(rgdal) #提供readOGR()函数 library(ggplot2) library(dplyr) #(a) 陆地岛屿 dataProjected <- readOGR("Virtual_Map0.shp") dataProjected@data$id <- rownames(dataProjected@data) watershedPoints <- fortify(dataProjected) df_Map <- merge(watershedPoints, data...
/第11章 地理空间型图表/图11-1-6_虚拟地图的绘制.R
no_license
EasyChart/Beautiful-Visualization-with-R
R
false
false
870
r
#EasyShu团队出品,更多文章请关注微信公众号【EasyShu】 #如有问题修正与深入学习,可联系微信:EasyCharts library(rgdal) #提供readOGR()函数 library(ggplot2) library(dplyr) #(a) 陆地岛屿 dataProjected <- readOGR("Virtual_Map0.shp") dataProjected@data$id <- rownames(dataProjected@data) watershedPoints <- fortify(dataProjected) df_Map <- merge(watershedPoints, data...
\name{modelCoef-methods} \docType{methods} \alias{modelCoef-methods} \alias{modelCoef,Autocorrelations,ComboAutocorrelations,missing-method} \alias{modelCoef,Autocorrelations,PartialAutocorrelations,missing-method} \alias{modelCoef,Autocovariances,Autocorrelations,missing-method} \alias{modelCoef,Autocovariances,ComboA...
/man/modelCoef-methods.Rd
no_license
GeoBosh/sarima
R
false
false
6,706
rd
\name{modelCoef-methods} \docType{methods} \alias{modelCoef-methods} \alias{modelCoef,Autocorrelations,ComboAutocorrelations,missing-method} \alias{modelCoef,Autocorrelations,PartialAutocorrelations,missing-method} \alias{modelCoef,Autocovariances,Autocorrelations,missing-method} \alias{modelCoef,Autocovariances,ComboA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/learn.R \name{learn} \alias{learn} \title{the ML part} \usage{ learn( data, demographics, augment = FALSE, tst.size = 0.2, save.model = FALSE, classifier = "glmboost", note = "mlho_terst_run", aoi, multicore = FALSE ) } \arg...
/man/learn.Rd
no_license
medical-projects/mlho
R
false
true
844
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/learn.R \name{learn} \alias{learn} \title{the ML part} \usage{ learn( data, demographics, augment = FALSE, tst.size = 0.2, save.model = FALSE, classifier = "glmboost", note = "mlho_terst_run", aoi, multicore = FALSE ) } \arg...
#' @title Helper function to select all NA rows #' #' @description This function is used to determine which rows in data.frame or #' data.table are completely empty. #' @param x Either data.table or data.frame. #' @keywords narows #' @export #' @examples #' # data.frame #' # first row is made all NA #' mtcars[1,] <- NA...
/R/all_na_rows.R
permissive
martincadek/rascut
R
false
false
425
r
#' @title Helper function to select all NA rows #' #' @description This function is used to determine which rows in data.frame or #' data.table are completely empty. #' @param x Either data.table or data.frame. #' @keywords narows #' @export #' @examples #' # data.frame #' # first row is made all NA #' mtcars[1,] <- NA...
rm(list = ls()) # Install install <- function(paquete) { if (!require(paquete,character.only = TRUE, quietly = TRUE, warn.conflicts = FALSE)) { install.packages(as.character(paquete), dependecies = TRUE, repos = "http://cran.us.r-project.org") library(paquete, character.only = TRUE, quietly = TRUE, warn.con...
/global.R
permissive
rsanchezavalos/CrimeCDMX
R
false
false
2,113
r
rm(list = ls()) # Install install <- function(paquete) { if (!require(paquete,character.only = TRUE, quietly = TRUE, warn.conflicts = FALSE)) { install.packages(as.character(paquete), dependecies = TRUE, repos = "http://cran.us.r-project.org") library(paquete, character.only = TRUE, quietly = TRUE, warn.con...
context("specifier") test_that("creation", { s <- new_specifier(NULL, 'key') expect_s3_class(s, 'specifier') expect_s3_class(s, 'key') expect_true(is_specifier(s)) }) test_that("print artifacts by tag", { q <- sample_query() verify_specifier <- function (key) { s <- unwrap(dollar_name(q, key)) p ...
/tests/testthat/test-specifier.R
permissive
lbartnik/ui
R
false
false
745
r
context("specifier") test_that("creation", { s <- new_specifier(NULL, 'key') expect_s3_class(s, 'specifier') expect_s3_class(s, 'key') expect_true(is_specifier(s)) }) test_that("print artifacts by tag", { q <- sample_query() verify_specifier <- function (key) { s <- unwrap(dollar_name(q, key)) p ...
testlist <- list(data = structure(c(1.03896660324094e+34, 2.41737052176352e+35, 4.1802196998767e-309, 8.28892007171841e-317), .Dim = c(4L, 1L )), q = -1.85984423528271e-35) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610555720-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
243
r
testlist <- list(data = structure(c(1.03896660324094e+34, 2.41737052176352e+35, 4.1802196998767e-309, 8.28892007171841e-317), .Dim = c(4L, 1L )), q = -1.85984423528271e-35) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
source("./de_analysis.R") ################# # Load WTA data # ################# wta.counts <- read.delim("data/Broad-COVID_WTA_Q3Norm_TargetCountMatrix.txt", row.names=1) df_segments <- read.delim("data/Broad-COVID_WTA_SegmentProperties.txt", row.names=1) rownames(df_segments) <- str_replace_all(rownames(df_segments)...
/SpatialAnalysis/WTA_Patient_vs_Control.R
no_license
malihhhh/covid19-autopsy
R
false
false
2,682
r
source("./de_analysis.R") ################# # Load WTA data # ################# wta.counts <- read.delim("data/Broad-COVID_WTA_Q3Norm_TargetCountMatrix.txt", row.names=1) df_segments <- read.delim("data/Broad-COVID_WTA_SegmentProperties.txt", row.names=1) rownames(df_segments) <- str_replace_all(rownames(df_segments)...
#' @import BBmisc #' @import checkmate #' @import parallelMap #' @import ParamHelpers #' @import smoof #' @import stats #' @import stringi #' @useDynLib rcoco NULL
/R/zzz.R
permissive
berndbischl/rcoco
R
false
false
164
r
#' @import BBmisc #' @import checkmate #' @import parallelMap #' @import ParamHelpers #' @import smoof #' @import stats #' @import stringi #' @useDynLib rcoco NULL
library(forestmodel) panels <- list( list(width = 0.03), list( width = 0.1, display = ~ variable, fontface = "bold", heading = "Variable" ), list(width = 0.1, display = ~ level), list( width = 0.03, item = "vline", hjust = 0.5 ), list( width = 0.75, item = "forest", ...
/panels.R
permissive
ecorreig/covid-pollution
R
false
false
1,199
r
library(forestmodel) panels <- list( list(width = 0.03), list( width = 0.1, display = ~ variable, fontface = "bold", heading = "Variable" ), list(width = 0.1, display = ~ level), list( width = 0.03, item = "vline", hjust = 0.5 ), list( width = 0.75, item = "forest", ...
setwd("~/R/ExData_Plotting1") # Read the data file housing <- read.csv("household_power_consumption.txt", header = T, sep=";",stringsAsFactors = F) # Convert the date column from string representation to a date object housing$Date <- as.Date(housing$Date , "%d/%m/%Y") # Trim the data set to only include dates from ...
/plot4.R
no_license
SteenAndersen/ExData_Plotting1
R
false
false
1,754
r
setwd("~/R/ExData_Plotting1") # Read the data file housing <- read.csv("household_power_consumption.txt", header = T, sep=";",stringsAsFactors = F) # Convert the date column from string representation to a date object housing$Date <- as.Date(housing$Date , "%d/%m/%Y") # Trim the data set to only include dates from ...
# Tipos básicos de dados em R # Obs.: Caso tenha problemas com a acentuação, consulte este llink: # https://support.rstudio.com/hc/en-us/articles/200532197-Character-Encoding # Configurando o diretório de trabalho # Coloque entre aspas o diretório de trabalho que você está usando no seu computador # Não use diretório...
/Cap02/04-TiposDados.R
no_license
titokenzo/r_studies
R
false
false
1,797
r
# Tipos básicos de dados em R # Obs.: Caso tenha problemas com a acentuação, consulte este llink: # https://support.rstudio.com/hc/en-us/articles/200532197-Character-Encoding # Configurando o diretório de trabalho # Coloque entre aspas o diretório de trabalho que você está usando no seu computador # Não use diretório...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pmc_table.R \name{pmc_table} \alias{pmc_table} \title{Convert table nodes to tibbles} \usage{ pmc_table(doc) } \arguments{ \item{doc}{\code{xml_document} from PubMed Central} } \value{ a list of tibbles } \description{ Convert PubMed Central ...
/man/pmc_table.Rd
no_license
fgh95/tidypmc
R
false
true
734
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pmc_table.R \name{pmc_table} \alias{pmc_table} \title{Convert table nodes to tibbles} \usage{ pmc_table(doc) } \arguments{ \item{doc}{\code{xml_document} from PubMed Central} } \value{ a list of tibbles } \description{ Convert PubMed Central ...
library(callr) ### Name: rcmd_process_options ### Title: Create options for an rcmd_process object ### Aliases: rcmd_process_options ### ** Examples ## List all options and their default values: rcmd_process_options()
/data/genthat_extracted_code/callr/examples/rcmd_process_options.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
225
r
library(callr) ### Name: rcmd_process_options ### Title: Create options for an rcmd_process object ### Aliases: rcmd_process_options ### ** Examples ## List all options and their default values: rcmd_process_options()
## This script plots line graphs of the energy sub metering for three meters in ## a single household on Febuary 1 and 2 in 2007 as a function of time # Set working directory setwd("C:/Users/Carl/Desktop/Coursera Data Science/exdata-data-household_power_consumption") # Ensure that the data.table package is installed...
/plot3.R
no_license
carlfulp/ExData_Plotting1
R
false
false
1,800
r
## This script plots line graphs of the energy sub metering for three meters in ## a single household on Febuary 1 and 2 in 2007 as a function of time # Set working directory setwd("C:/Users/Carl/Desktop/Coursera Data Science/exdata-data-household_power_consumption") # Ensure that the data.table package is installed...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pull.R \name{pull.} \alias{pull.} \title{Pull out a single variable} \usage{ pull.(.df, var = -1) } \arguments{ \item{.df}{A data.frame or data.table} \item{var}{The column to pull from the data.table as: \itemize{ \item a variable name \ite...
/man/pull..Rd
permissive
echukwuka/tidytable
R
false
true
729
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pull.R \name{pull.} \alias{pull.} \title{Pull out a single variable} \usage{ pull.(.df, var = -1) } \arguments{ \item{.df}{A data.frame or data.table} \item{var}{The column to pull from the data.table as: \itemize{ \item a variable name \ite...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initialize.R \name{process_initialize} \alias{process_initialize} \title{Start a process} \usage{ process_initialize(self, private, command, args, commandline, stdout, stderr, cleanup, echo_cmd, supervise, windows_verbatim_args, windows_hid...
/man/process_initialize.Rd
permissive
ktaranov/processx
R
false
true
868
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initialize.R \name{process_initialize} \alias{process_initialize} \title{Start a process} \usage{ process_initialize(self, private, command, args, commandline, stdout, stderr, cleanup, echo_cmd, supervise, windows_verbatim_args, windows_hid...
#' @title Lee-Carter Estimation #' @description Estimate Lee-Carter parameters (Lee and Carter 1992). #' @details #' The function estimates parameters of \eqn{\log(m_x(t)) = a_x + b_x k(t) + \epsilon_x(t)} (Lee and Carter 1992). #' The argument \code{ax.index} determines which time periods to use to #' estimate the ...
/R/LC.R
no_license
patrick-gerland/MortCast
R
false
false
14,535
r
#' @title Lee-Carter Estimation #' @description Estimate Lee-Carter parameters (Lee and Carter 1992). #' @details #' The function estimates parameters of \eqn{\log(m_x(t)) = a_x + b_x k(t) + \epsilon_x(t)} (Lee and Carter 1992). #' The argument \code{ax.index} determines which time periods to use to #' estimate the ...
squaresNumber = function(value){ return(value^2) }
/someExampleFile.R
no_license
wrisling/My-Repository
R
false
false
52
r
squaresNumber = function(value){ return(value^2) }
## Textify performs whisker rendering ## First parameter is a list of objects. ## Second parameter is the name of a template file. ## Each object is rendered using the template of the same name ## found within the template file. Partial templates can also ## be present in the template file and will be used if neede...
/R/VIMethod3_TH.R
no_license
zorkow/BrailleR
R
false
false
23,230
r
## Textify performs whisker rendering ## First parameter is a list of objects. ## Second parameter is the name of a template file. ## Each object is rendered using the template of the same name ## found within the template file. Partial templates can also ## be present in the template file and will be used if neede...
library(PerFit) ### Name: plot PerFit ### Title: Plot method for objects of class "PerFit" ### Aliases: plot.PerFit ### Keywords: univar ### ** Examples # Load the inadequacy scale data (dichotomous item scores): data(InadequacyData) # Compute the ZU3 scores: ZU3.out <- ZU3(InadequacyData) # Plot the sampling dis...
/data/genthat_extracted_code/PerFit/examples/plot.PerFit.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
481
r
library(PerFit) ### Name: plot PerFit ### Title: Plot method for objects of class "PerFit" ### Aliases: plot.PerFit ### Keywords: univar ### ** Examples # Load the inadequacy scale data (dichotomous item scores): data(InadequacyData) # Compute the ZU3 scores: ZU3.out <- ZU3(InadequacyData) # Plot the sampling dis...
#' Guess the cell type of a contig from the chain ID #' #' This function is likely dependent on annotations from 10X and #' may change or break #' as their pipeline changes. #' @param chain `character` which will be parsed to try to infer celltype #' #' @return contig table with `celltype` column #' @seealso [crosstab_...
/R/auxiliary.R
no_license
zr0719/CellaRepertorium
R
false
false
1,590
r
#' Guess the cell type of a contig from the chain ID #' #' This function is likely dependent on annotations from 10X and #' may change or break #' as their pipeline changes. #' @param chain `character` which will be parsed to try to infer celltype #' #' @return contig table with `celltype` column #' @seealso [crosstab_...
## ************************************************************ rm(list=ls()) cat('manage/functional_traits/lkm/bee.syr.R\n') source('src/misc.R') library('bipartite') traits.bee <- read.csv('original/functional_traits/lkm/bee.csv', as.is=TRUE, row.names='GenusSpecies') traits.syr <- read.csv('o...
/functional_traits/lkm/bee.syr.R
no_license
leithen/hedgerow-manage
R
false
false
2,872
r
## ************************************************************ rm(list=ls()) cat('manage/functional_traits/lkm/bee.syr.R\n') source('src/misc.R') library('bipartite') traits.bee <- read.csv('original/functional_traits/lkm/bee.csv', as.is=TRUE, row.names='GenusSpecies') traits.syr <- read.csv('o...
add_parsnip_tabnet <- function() { parsnip::set_new_model("tabnet") parsnip::set_model_mode(model = "tabnet", mode = "classification") parsnip::set_model_mode(model = "tabnet", mode = "regression") parsnip::set_model_engine( "tabnet", mode = "classification", eng = "torch" ) parsnip::set_mode...
/R/parsnip.R
permissive
zerweck/tabnet
R
false
false
7,451
r
add_parsnip_tabnet <- function() { parsnip::set_new_model("tabnet") parsnip::set_model_mode(model = "tabnet", mode = "classification") parsnip::set_model_mode(model = "tabnet", mode = "regression") parsnip::set_model_engine( "tabnet", mode = "classification", eng = "torch" ) parsnip::set_mode...
### create input input <- set(set("a"), set("a","b"), set("a","c"), set("d","e"), set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e")) input ### convert to knowledge structure kst <- kstructure(input) kst ### compute domain of knowledge structure kdomain(kst) ### compute notions of k...
/demo/kst.R
no_license
cran/kst
R
false
false
1,752
r
### create input input <- set(set("a"), set("a","b"), set("a","c"), set("d","e"), set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e")) input ### convert to knowledge structure kst <- kstructure(input) kst ### compute domain of knowledge structure kdomain(kst) ### compute notions of k...
## * load packages library(testthat) library(BuyseTest) library(lava) library(data.table) library(survival) library(riskRegression) library(prodlim) ## * run tests ## setwd("~/Documents/GitHub/BuyseTest/tests/") ## source("~/Documents/GitHub/BuyseTest/tests/testthat/test-BuyseTest-engine.R") test_check("BuyseTest") ...
/fuzzedpackages/BuyseTest/tests/testthat.R
no_license
akhikolla/testpackages
R
false
false
1,039
r
## * load packages library(testthat) library(BuyseTest) library(lava) library(data.table) library(survival) library(riskRegression) library(prodlim) ## * run tests ## setwd("~/Documents/GitHub/BuyseTest/tests/") ## source("~/Documents/GitHub/BuyseTest/tests/testthat/test-BuyseTest-engine.R") test_check("BuyseTest") ...
############# spatial rescale ################ # # INPUT # # # OUTPUT # # # DESCRIPTIO # mt_angles = function(data, use = 'trajectories', dimensions = c('xpos','ypos'), overwrite = FALSE, replace_NAs = FALSE ...
/R/mt_angles.R
no_license
jmbh/mta2
R
false
false
1,516
r
############# spatial rescale ################ # # INPUT # # # OUTPUT # # # DESCRIPTIO # mt_angles = function(data, use = 'trajectories', dimensions = c('xpos','ypos'), overwrite = FALSE, replace_NAs = FALSE ...
print(.libPaths()) .libPaths("/mnt/home/rjparker/Rlib") print(.libPaths()) setwd("/mnt/home/rjparker/git/ns_cov") which_exp <- 3 which_part <- 20 source("R/sim_study.R")
/beo/sim3/sim3_20.R
no_license
ryanjparker/ns_cov
R
false
false
171
r
print(.libPaths()) .libPaths("/mnt/home/rjparker/Rlib") print(.libPaths()) setwd("/mnt/home/rjparker/git/ns_cov") which_exp <- 3 which_part <- 20 source("R/sim_study.R")
joined_data_vehicles <- NEI[NEI$SCC %in% SCC$SCC[grep("Vehicles",SCC$EI.Sector)] & NEI$fips == "24510",] plot(joined_data_vehicles$Emissions, xlab="year", ylab = "Motor Vehicle Emissions - Baltimore", xaxt = "n", type="l") axis(1,at = c(0,350,700,1000), labels = c("1999", "2002", "2005", "2008")) dev.copy(png,"Plot5...
/Plot5.R
no_license
namanrastogi88/ExDataPlotting3
R
false
false
337
r
joined_data_vehicles <- NEI[NEI$SCC %in% SCC$SCC[grep("Vehicles",SCC$EI.Sector)] & NEI$fips == "24510",] plot(joined_data_vehicles$Emissions, xlab="year", ylab = "Motor Vehicle Emissions - Baltimore", xaxt = "n", type="l") axis(1,at = c(0,350,700,1000), labels = c("1999", "2002", "2005", "2008")) dev.copy(png,"Plot5...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iotthingsgraph_operations.R \name{iotthingsgraph_create_flow_template} \alias{iotthingsgraph_create_flow_template} \title{Creates a workflow template} \usage{ iotthingsgraph_create_flow_template(definition, compatibleNamespaceVersion) } \ar...
/paws/man/iotthingsgraph_create_flow_template.Rd
permissive
sanchezvivi/paws
R
false
true
1,133
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iotthingsgraph_operations.R \name{iotthingsgraph_create_flow_template} \alias{iotthingsgraph_create_flow_template} \title{Creates a workflow template} \usage{ iotthingsgraph_create_flow_template(definition, compatibleNamespaceVersion) } \ar...
# Make files for Mississippi Delta and Appalachia region library(dplyr) library(tidyr) library(readxl) library(sf) library(ggplot2) state_fips <- read.csv("data/fips-states.csv", colClasses = "character") ########################################################################### # Clean up Excel file of regions ###...
/scripts/make-delta-appalachia-region.R
no_license
TeodoroJMartinez/2021-delta-appalachia-stroke-access
R
false
false
3,433
r
# Make files for Mississippi Delta and Appalachia region library(dplyr) library(tidyr) library(readxl) library(sf) library(ggplot2) state_fips <- read.csv("data/fips-states.csv", colClasses = "character") ########################################################################### # Clean up Excel file of regions ###...
pipeline.sampleSimilarityAnalysisCor <- function() { mixColors<-function(c1, c2,alpha=122 ) { do.call( rgb, as.list( c( colMeans( sapply(c(2,4,6),function(i) c( strtoi(substr(c1,i,i+1),16), strtoi(substr(c2,i,i+1),16) ) ) ), alpha ) /255 ) ) } ...
/R/sample_similarity_analysis_cor.r
no_license
MariaNikoghosyan/oposSOM
R
false
false
11,693
r
pipeline.sampleSimilarityAnalysisCor <- function() { mixColors<-function(c1, c2,alpha=122 ) { do.call( rgb, as.list( c( colMeans( sapply(c(2,4,6),function(i) c( strtoi(substr(c1,i,i+1),16), strtoi(substr(c2,i,i+1),16) ) ) ), alpha ) /255 ) ) } ...
keygen <- function(){ set.seed(sum(as.numeric(charToRaw("Missing_Values")))) pran <- function(n = 1){ replicate(n, sample(c(LETTERS, letters, 0:9), 1)) } ks <- replicate(4, paste0(pran(4), collapse = "")) set.seed(NULL) pn <- sample(1:16, 1) kn <- sample(1:4, 1) sss <- paste(sample(c(LETTERS, letter...
/Missing_Values/customTests.R
no_license
pammehta2017/The_R_Programming_Environment
R
false
false
3,954
r
keygen <- function(){ set.seed(sum(as.numeric(charToRaw("Missing_Values")))) pran <- function(n = 1){ replicate(n, sample(c(LETTERS, letters, 0:9), 1)) } ks <- replicate(4, paste0(pran(4), collapse = "")) set.seed(NULL) pn <- sample(1:16, 1) kn <- sample(1:4, 1) sss <- paste(sample(c(LETTERS, letter...
setGeneric("enrichmentCalc", function(x, ...) standardGeneric("enrichmentCalc")) setMethod("enrichmentCalc", "GRangesList", function(x, verbose = TRUE, ...) { samp.names <- if(is.null(names(x))) 1:length(x) else names(x) ans <- lapply(1:length(x), function(i) { if(verbose) ...
/R/enrichmentCalc.R
no_license
clark-lab-robot/Repitools_bioc
R
false
false
1,080
r
setGeneric("enrichmentCalc", function(x, ...) standardGeneric("enrichmentCalc")) setMethod("enrichmentCalc", "GRangesList", function(x, verbose = TRUE, ...) { samp.names <- if(is.null(names(x))) 1:length(x) else names(x) ans <- lapply(1:length(x), function(i) { if(verbose) ...
## Makes an exemplar gene set vs. background performance plot ## ## by Artem Sokolov library( tidyverse ) source( "../plot.R" ) ## Figure shows the intuition of comparing gene set of interest against background performance panelC <- function() { GSBK_lbl <- tibble( AUC = c(0.69, 0.55, 0.67), y = c(0.3, 2, 5), ...
/plots/figs/Fig1/panelC.R
permissive
bioinfonerd/amp-ad
R
false
false
1,355
r
## Makes an exemplar gene set vs. background performance plot ## ## by Artem Sokolov library( tidyverse ) source( "../plot.R" ) ## Figure shows the intuition of comparing gene set of interest against background performance panelC <- function() { GSBK_lbl <- tibble( AUC = c(0.69, 0.55, 0.67), y = c(0.3, 2, 5), ...
library(readxl) rData <- read_excel("Train_data.xlsx", col_names = FALSE) rData1 <- rData[-1] Train <- rData1[-1] dim(Train) tData <- read_excel("Test_data.xlsx", col_names = FALSE) tData1 <- tData[-1] Test <- tData1[-1] dim(Test) library(rpart) library(rpart.plot) library(rattle) library(RColorBrewer) ...
/Decision tree/Decision tree/tree.R
no_license
firdausyh/Music-Recommender
R
false
false
760
r
library(readxl) rData <- read_excel("Train_data.xlsx", col_names = FALSE) rData1 <- rData[-1] Train <- rData1[-1] dim(Train) tData <- read_excel("Test_data.xlsx", col_names = FALSE) tData1 <- tData[-1] Test <- tData1[-1] dim(Test) library(rpart) library(rpart.plot) library(rattle) library(RColorBrewer) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_enrichment_summaries.R \name{plot_enrichment_summaries} \alias{plot_enrichment_summaries} \title{Plotting Prognostic Enrichment Estimates} \usage{ plot_enrichment_summaries(x, text.size.x.axis = 10, text.size.y.axis = 10, text.size.plo...
/man/plot_enrichment_summaries.Rd
no_license
cran/BioPET
R
false
true
2,099
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_enrichment_summaries.R \name{plot_enrichment_summaries} \alias{plot_enrichment_summaries} \title{Plotting Prognostic Enrichment Estimates} \usage{ plot_enrichment_summaries(x, text.size.x.axis = 10, text.size.y.axis = 10, text.size.plo...
flights_date = flights %>% mutate(date = ymd(glue("{year} {month} {day}"))) %>% count(date) plt = ggplot(flights_date, aes(x = weekdays(date), y = n)) plt + geom_boxplot() flights_date = flights_date %>% mutate(day_of_week = weekdays(date), day_of_week = fct_reorder(day_of_week, n), day_of_...
/docs/lecture/l07/flights_day_of_week.R
no_license
tanzylove/bst430-fall2021-site
R
false
false
453
r
flights_date = flights %>% mutate(date = ymd(glue("{year} {month} {day}"))) %>% count(date) plt = ggplot(flights_date, aes(x = weekdays(date), y = n)) plt + geom_boxplot() flights_date = flights_date %>% mutate(day_of_week = weekdays(date), day_of_week = fct_reorder(day_of_week, n), day_of_...
transform_x <- function(test_data){ x<-test_data[2] lambda<-seq(-2, 2, 0.1) temp<-0 temp$x1<-(x**lambda[1]) for (i in 2:length(lambda)){ if (lambda[i]<0){ temp$xi<--(x**lambda[i]) } else if (lambda[i]>0){ temp$xi<x**lambda[i] } else if (lambda[i]==0){ temp$xi<log(x) ...
/Learning/Stepic_stat/transform_x.R
no_license
danrd/R
R
false
false
363
r
transform_x <- function(test_data){ x<-test_data[2] lambda<-seq(-2, 2, 0.1) temp<-0 temp$x1<-(x**lambda[1]) for (i in 2:length(lambda)){ if (lambda[i]<0){ temp$xi<--(x**lambda[i]) } else if (lambda[i]>0){ temp$xi<x**lambda[i] } else if (lambda[i]==0){ temp$xi<log(x) ...
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
/BEMTOOL-ver2.5-2018_0901/src/biol/bmtSTF/STF/scripts/saveobject.r
no_license
gresci/BEMTOOL2.5
R
false
false
2,584
r
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
setClass("EBMTP",representation(statistic="numeric", estimate="numeric", sampsize="numeric", rawp="numeric", adjp="numeric", reject="matrix", ...
/R/EBzzz.R
no_license
qiuxing/xmulttest
R
false
false
31,732
r
setClass("EBMTP",representation(statistic="numeric", estimate="numeric", sampsize="numeric", rawp="numeric", adjp="numeric", reject="matrix", ...
#build a decision tree using rpart library(rpart) winetrain <- read.csv("winedata.csv") #shamelessly stolen from the rpart_in_lession script cfit <- rpart(as.factor(c)~.,data=winetrain,method="class") name1="decision_tree_wine" num=1 ext=".pdf" name2=paste(name1,num,ext,sep='') pdf(name2) plot(cfit,uniform=T,main="Deci...
/Homework_2/HW2_wine.R
no_license
kerleyc98/Machine_Learning
R
false
false
1,150
r
#build a decision tree using rpart library(rpart) winetrain <- read.csv("winedata.csv") #shamelessly stolen from the rpart_in_lession script cfit <- rpart(as.factor(c)~.,data=winetrain,method="class") name1="decision_tree_wine" num=1 ext=".pdf" name2=paste(name1,num,ext,sep='') pdf(name2) plot(cfit,uniform=T,main="Deci...
## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. ## The function should return a data frame where the first column is the name of the file and the second column is the number of complete cases. ## A prototype of this function follows complet...
/complete.R
no_license
ksjpswaroop/ExData_Plotting1
R
false
false
1,027
r
## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. ## The function should return a data frame where the first column is the name of the file and the second column is the number of complete cases. ## A prototype of this function follows complet...
#' Stata color palettes (discrete) #' #' Stata color palettes. See Stata documentation for a description of #' the schemes, \url{http://www.stata.com/help.cgi?schemes}. #' #' @param scheme \code{character}. One of \code{"s2color"}, #' \code{"s1rcolor"}, \code{"s1color"}, or \code{"mono"}. #' #' @export #' @family stata...
/R/stata.R
no_license
ctguxp/ggthemes
R
false
false
13,900
r
#' Stata color palettes (discrete) #' #' Stata color palettes. See Stata documentation for a description of #' the schemes, \url{http://www.stata.com/help.cgi?schemes}. #' #' @param scheme \code{character}. One of \code{"s2color"}, #' \code{"s1rcolor"}, \code{"s1color"}, or \code{"mono"}. #' #' @export #' @family stata...
testlist <- list(reference = numeric(0), values = 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)) result <- do.call(diversityForest:::numSm...
/diversityForest/inst/testfiles/numSmaller/libFuzzer_numSmaller/numSmaller_valgrind_files/1610037179-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
347
r
testlist <- list(reference = numeric(0), values = 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)) result <- do.call(diversityForest:::numSm...
skip_on_livy() skip_on_arrow_devel() skip_databricks_connect() test_that("ml_evaluate() works for logistic regression", { test_requires_version("2.0.0", "multiclass logreg requires spark 2+") sc <- testthat_spark_connection() iris_tbl <- testthat_tbl("iris") model <- ml_logistic_regression(iris_tbl, Species ~ ...
/tests/testthat/test-ml-evaluate.R
permissive
yitao-li/sparklyr
R
false
false
6,968
r
skip_on_livy() skip_on_arrow_devel() skip_databricks_connect() test_that("ml_evaluate() works for logistic regression", { test_requires_version("2.0.0", "multiclass logreg requires spark 2+") sc <- testthat_spark_connection() iris_tbl <- testthat_tbl("iris") model <- ml_logistic_regression(iris_tbl, Species ~ ...
\name{url2data} \alias{url2data} \title{ Create local copies of files read from urls. } \description{ Call 'download.file' with each element of a vector of character strings assumed to be URLs, create a local copy for each, and return a character matrix summarizing what was done. } \usage{ url2data(url...
/man/url2data.Rd
no_license
cran/FinTS
R
false
false
947
rd
\name{url2data} \alias{url2data} \title{ Create local copies of files read from urls. } \description{ Call 'download.file' with each element of a vector of character strings assumed to be URLs, create a local copy for each, and return a character matrix summarizing what was done. } \usage{ url2data(url...
# trial_3 library(tidytext) library(dplyr) library(tm) library(SnowballC) data<-plot_summaries n<-nrow(data) strings<-data$V2 doc<-vector() for(i in c(1:n)) { doc[i]=as.character(strings[i]) } doc.list<-list() for(i in c(1:n)) { doc.list[i]<-doc[i] } N.docs<-length(doc.list) names(do...
/UTD R for Data Science Class Project/Project 6/trail_3.R
no_license
xiemeigongzi88/R_Project
R
false
false
2,783
r
# trial_3 library(tidytext) library(dplyr) library(tm) library(SnowballC) data<-plot_summaries n<-nrow(data) strings<-data$V2 doc<-vector() for(i in c(1:n)) { doc[i]=as.character(strings[i]) } doc.list<-list() for(i in c(1:n)) { doc.list[i]<-doc[i] } N.docs<-length(doc.list) names(do...
library(dplyr) library(data.table) library(optparse) # Load arguments ---------------------------------------------------------- # Environment: R 3.6.1 parse <- OptionParser() option_list <- list( make_option('--checklist', type='character', help="file for checklist", action='store') ) args = commandAr...
/util/check_files_toreturn.R
permissive
xshen796/PRS_protocol_multi-site
R
false
false
826
r
library(dplyr) library(data.table) library(optparse) # Load arguments ---------------------------------------------------------- # Environment: R 3.6.1 parse <- OptionParser() option_list <- list( make_option('--checklist', type='character', help="file for checklist", action='store') ) args = commandAr...
mydata=data(iris) attach(iris) # Analizamos el dataset head(iris) summary(iris) # Scatterplots plot(iris) pairs(iris[1:4], pch = 21, bg = c("darkblue", "darkgreen", "red")[unclass(iris$Species)]) #boxplot boxplot(iris$Petal.Length~iris$Species, xlab="Especie", ylab="Longitud del petalo", col = c("darkblue",...
/iris_UP.R
no_license
mboaglio/clase_ml
R
false
false
1,691
r
mydata=data(iris) attach(iris) # Analizamos el dataset head(iris) summary(iris) # Scatterplots plot(iris) pairs(iris[1:4], pch = 21, bg = c("darkblue", "darkgreen", "red")[unclass(iris$Species)]) #boxplot boxplot(iris$Petal.Length~iris$Species, xlab="Especie", ylab="Longitud del petalo", col = c("darkblue",...
# # factor_an_static(X) performs the Factor Analysis; # The initial factor pattern is extracted using the principal component # method, followed by a VARIMAX rotation to insure orthogonality of the factors. factor_an_static <- function(X) { n1 = nrow(X); m = colMeans(X, na.rm = FALSE, dims = 1) # stand...
/DFA_cryptos/factor_an_static.R
no_license
QuantLet/Genus_proximum_cryptos
R
false
false
1,239
r
# # factor_an_static(X) performs the Factor Analysis; # The initial factor pattern is extracted using the principal component # method, followed by a VARIMAX rotation to insure orthogonality of the factors. factor_an_static <- function(X) { n1 = nrow(X); m = colMeans(X, na.rm = FALSE, dims = 1) # stand...
## Load Libraries x = c("ggplot2", "corrgram", "DMwR", "caret", "randomForest", "unbalanced", "C50", "dummies", "e1071", "Information", "MASS", "rpart", "gbm", "ROSE", 'sampling', 'DataCombine', 'inTrees') # install.packages(x) lapply(x, require, character.only = TRUE) rm(x) ## Set Working Directory setwd("/Us...
/Churn Reduction.R
no_license
akashdash/Churn-reduction-in-telecom-company
R
false
false
11,386
r
## Load Libraries x = c("ggplot2", "corrgram", "DMwR", "caret", "randomForest", "unbalanced", "C50", "dummies", "e1071", "Information", "MASS", "rpart", "gbm", "ROSE", 'sampling', 'DataCombine', 'inTrees') # install.packages(x) lapply(x, require, character.only = TRUE) rm(x) ## Set Working Directory setwd("/Us...
listings <- read.csv("~/Downloads/listings.csv") ## removing listings where availability=0 newlistings <- listings[!listings$availability_365==0,] #replacing NAs with zero in review_per_month newlistings$reviews_per_month[newlistings$number_of_reviews==0] <- 0 ####summary statistics of numeric variables only optio...
/IDSD574-cleansing data.R
no_license
CharlesT28/ISDS-574
R
false
false
3,736
r
listings <- read.csv("~/Downloads/listings.csv") ## removing listings where availability=0 newlistings <- listings[!listings$availability_365==0,] #replacing NAs with zero in review_per_month newlistings$reviews_per_month[newlistings$number_of_reviews==0] <- 0 ####summary statistics of numeric variables only optio...
#' Basic Data Import for Water Flow Data #' #' Imports data from user-supplied data file. Specifically used to import water flow data for use in the WRTDS package. #' For WRTDS usage, the first column is expected to be dates, the second column measured values. #' The third column is optional, it contains any remark cod...
/R/getDataFromFile.r
permissive
Kevin-M-Smith/dataRetrieval
R
false
false
1,658
r
#' Basic Data Import for Water Flow Data #' #' Imports data from user-supplied data file. Specifically used to import water flow data for use in the WRTDS package. #' For WRTDS usage, the first column is expected to be dates, the second column measured values. #' The third column is optional, it contains any remark cod...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eutil.R, R/elink.R, R/esearch.R \docType{methods} \name{uid} \alias{uid} \alias{uid,elink-method} \alias{uid,entrez_linkset-method} \alias{uid,entrez_uid-method} \alias{uid,esearch-method} \title{uid} \usage{ uid(x, ...) \S4method{uid}{entre...
/man/uid.Rd
no_license
cran/reutils
R
false
true
1,176
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eutil.R, R/elink.R, R/esearch.R \docType{methods} \name{uid} \alias{uid} \alias{uid,elink-method} \alias{uid,entrez_linkset-method} \alias{uid,entrez_uid-method} \alias{uid,esearch-method} \title{uid} \usage{ uid(x, ...) \S4method{uid}{entre...
stop("don't source me") ## about ---- ## writes 3dDeconvolve and 3dREMLfit commands for GLMs. ## ## to be executed from ccplinux1. ## ## mike freund, 2019-02-20 ## adapted for new project directory 2019-12-24 ## setup ---- library(here) library(mikeutils) library(magrittr) library(dplyr) library(data.table) source...
/code/glms/2_glm_write_afni_commands_downsamp.R
no_license
clara1989/stroop-rsa
R
false
false
4,526
r
stop("don't source me") ## about ---- ## writes 3dDeconvolve and 3dREMLfit commands for GLMs. ## ## to be executed from ccplinux1. ## ## mike freund, 2019-02-20 ## adapted for new project directory 2019-12-24 ## setup ---- library(here) library(mikeutils) library(magrittr) library(dplyr) library(data.table) source...
library(twiitteR) library(ROAuth) library(ggplot2) ARG.list <- searchTwitter('#BRA #FIFA', n=1000, cainfo="cacert.pem") BRA.df = twListToDF(BRA.list) GER.list <- searchTwiiter('#GER #FIFA', n=1000, cainfo="cacert.pem") GER.df = twListtoDF(GER.list) NED.list <- searchTwiiter('#NED #FIFA', n=1000, cainfo="cacert.pem")...
/Tweet Count.R
no_license
RohanGupta24/Hello-World
R
false
false
2,652
r
library(twiitteR) library(ROAuth) library(ggplot2) ARG.list <- searchTwitter('#BRA #FIFA', n=1000, cainfo="cacert.pem") BRA.df = twListToDF(BRA.list) GER.list <- searchTwiiter('#GER #FIFA', n=1000, cainfo="cacert.pem") GER.df = twListtoDF(GER.list) NED.list <- searchTwiiter('#NED #FIFA', n=1000, cainfo="cacert.pem")...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.3580...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615828006-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
487
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.3580...
hpc = read.table("household_power_consumption.txt",header=TRUE,sep=";",na.string="?") hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y") hpc <- hpc[hpc$Date >= as.Date("2007-02-01") & hpc$Date <= as.Date("2007-02-02"), ] hpc$Timestamp <- strptime(paste(hpc$Date, hpc$Time), format="%Y-%m-%d %H:%M:%S", tz="EST") png(fil...
/plot4.R
no_license
CFStumpf/ExData_Plotting1
R
false
false
1,148
r
hpc = read.table("household_power_consumption.txt",header=TRUE,sep=";",na.string="?") hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y") hpc <- hpc[hpc$Date >= as.Date("2007-02-01") & hpc$Date <= as.Date("2007-02-02"), ] hpc$Timestamp <- strptime(paste(hpc$Date, hpc$Time), format="%Y-%m-%d %H:%M:%S", tz="EST") png(fil...
# setwd("Homeworks/Week1") # cleanup rm(list = ls()) # A) use it to determine how many participants in the survey were female Democrats who own guns. gsl <- read.csv("lib/GSSLogical.csv") attach(gsl) answerA <- length(which(!Male & !Republican & GunOwner)); answerA #37 detach(gsl) #B) Use it to find the shortest dura...
/Homeworks/Week1/Problem2.R
no_license
ihimawan/math23c
R
false
false
2,065
r
# setwd("Homeworks/Week1") # cleanup rm(list = ls()) # A) use it to determine how many participants in the survey were female Democrats who own guns. gsl <- read.csv("lib/GSSLogical.csv") attach(gsl) answerA <- length(which(!Male & !Republican & GunOwner)); answerA #37 detach(gsl) #B) Use it to find the shortest dura...
#Removes all columns with only NaN values library(grid) library(ggplot2) removeNACol <- function(df){ df[ , colSums(is.na(df))!=nrow(df)] } removeNArow<-function(df){ df[rowSums(is.na(df))+1!=ncol(df) , ] } #Removes columns that have any instance of string removeString <-function(df){ df[!sapply(df, is.fact...
/PCAFunc.R
no_license
pavan8632/SyndromicPlot
R
false
false
1,177
r
#Removes all columns with only NaN values library(grid) library(ggplot2) removeNACol <- function(df){ df[ , colSums(is.na(df))!=nrow(df)] } removeNArow<-function(df){ df[rowSums(is.na(df))+1!=ncol(df) , ] } #Removes columns that have any instance of string removeString <-function(df){ df[!sapply(df, is.fact...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gl.filter.callrate.loc.pop.r \name{gl.filter.callrate.loc.pop} \alias{gl.filter.callrate.loc.pop} \title{Filter loci in a genlight adegenet object based on call rate and population level.} \usage{ gl.filter.callrate.loc.pop(x, threshold) } \a...
/man/gl.filter.callrate.loc.pop.Rd
no_license
Konoutan/dartR
R
false
true
888
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gl.filter.callrate.loc.pop.r \name{gl.filter.callrate.loc.pop} \alias{gl.filter.callrate.loc.pop} \title{Filter loci in a genlight adegenet object based on call rate and population level.} \usage{ gl.filter.callrate.loc.pop(x, threshold) } \a...
### Load necessary packages source("load_packages.R") ### Download data from figshare if(!file.exists("raw_data/environmental_data")){ dir.create("raw_data/environmental_data") path = "raw_data/environmental_data/" # 2005 wind u download.file("https://ndownloader.figshare.com/files/10364952", paste0(path, "uw...
/analysis_make_environ_data.R
no_license
dsjohnson/ctsmc_movement
R
false
false
8,086
r
### Load necessary packages source("load_packages.R") ### Download data from figshare if(!file.exists("raw_data/environmental_data")){ dir.create("raw_data/environmental_data") path = "raw_data/environmental_data/" # 2005 wind u download.file("https://ndownloader.figshare.com/files/10364952", paste0(path, "uw...
library(ggplot2) library(gridExtra) library(plyr) library(reshape) library(dplyr) library(sp) if(!grepl("ch120", Sys.info()[4])){ library(spacetime) library(gstat) } if(Sys.info()[1]=="Linux"){ library(CompRandFld) } #library(spdep) #library(fields) #library(RandomFields) library(sqldf) library(MASS) library(snht...
/functions.R
no_license
joshbrowning2358/SmartGeo
R
false
false
38,783
r
library(ggplot2) library(gridExtra) library(plyr) library(reshape) library(dplyr) library(sp) if(!grepl("ch120", Sys.info()[4])){ library(spacetime) library(gstat) } if(Sys.info()[1]=="Linux"){ library(CompRandFld) } #library(spdep) #library(fields) #library(RandomFields) library(sqldf) library(MASS) library(snht...
\name{getChildren} \alias{getChildren} \alias{getChildren-methods} \alias{getChildren,GatingHierarchy,character-method} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Returns a list of child populations of the current node in the \code{GatingHierarchy} } \description{ Returns a character vector...
/man/getChildren.Rd
no_license
petterbrodin/flowWorkspace
R
false
false
1,266
rd
\name{getChildren} \alias{getChildren} \alias{getChildren-methods} \alias{getChildren,GatingHierarchy,character-method} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Returns a list of child populations of the current node in the \code{GatingHierarchy} } \description{ Returns a character vector...
# Statistical Computing Homework10 # author:Yuchao Tao StudentID:16081045 rm(list = ls()) setwd("/Users/tyc_219/Desktop/data") houseprice <- read.csv("maindata.csv", header = TRUE) library(MASS) #use the power method to solve pagerank problem pagerank <- function(A, max.iter) { i <- 0 n <- nrow(A) x <- matrix...
/SC2019Lab-10-陶宇超-16081045.R
no_license
anhnguyendepocen/SC2019-assignments
R
false
false
1,626
r
# Statistical Computing Homework10 # author:Yuchao Tao StudentID:16081045 rm(list = ls()) setwd("/Users/tyc_219/Desktop/data") houseprice <- read.csv("maindata.csv", header = TRUE) library(MASS) #use the power method to solve pagerank problem pagerank <- function(A, max.iter) { i <- 0 n <- nrow(A) x <- matrix...
library(Devore7) ### Name: ex06.01 ### Title: R Data set: ex06.01 ### Aliases: ex06.01 ### Keywords: datasets ### ** Examples data(ex06.01) str(ex06.01)
/data/genthat_extracted_code/Devore7/examples/ex06.01.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
160
r
library(Devore7) ### Name: ex06.01 ### Title: R Data set: ex06.01 ### Aliases: ex06.01 ### Keywords: datasets ### ** Examples data(ex06.01) str(ex06.01)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ti_celltree.R, R/ti_container.R \name{ti_celltree_maptpx} \alias{ti_celltree_maptpx} \alias{ti_celltree_maptpx} \title{Inferring trajectories with cellTree} \usage{ ti_celltree_maptpx(docker = TRUE, method = "maptpx", sd_filter = 0.5, absol...
/man/ti_celltree_maptpx.Rd
no_license
sumonahmedUoM/dynmethods
R
false
true
3,365
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ti_celltree.R, R/ti_container.R \name{ti_celltree_maptpx} \alias{ti_celltree_maptpx} \alias{ti_celltree_maptpx} \title{Inferring trajectories with cellTree} \usage{ ti_celltree_maptpx(docker = TRUE, method = "maptpx", sd_filter = 0.5, absol...
source('readdata.R') #確認資料會不會跟著選擇的颱風進行篩選 output$data_W <- renderTable({ dt2_W = dt_W[dt_W$days==input$day_W, ] dt2_W = dt2_W[dt2_W$disaster.event==input$winter, ] dt2_W })
/tab_winter.R
no_license
LaTingLiu/R_final_project
R
false
false
220
r
source('readdata.R') #確認資料會不會跟著選擇的颱風進行篩選 output$data_W <- renderTable({ dt2_W = dt_W[dt_W$days==input$day_W, ] dt2_W = dt2_W[dt2_W$disaster.event==input$winter, ] dt2_W })
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/browse_directory.R \name{JSON_to_app} \alias{JSON_to_app} \title{Launch app from JSON} \usage{ JSON_to_app(json, reminder = T) } \arguments{ \item{json}{character; the JSON string containing the data.} \item{reminder}{T or F; should USAGE be...
/man/JSON_to_app.Rd
permissive
kcf-jackson/browse
R
false
true
372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/browse_directory.R \name{JSON_to_app} \alias{JSON_to_app} \title{Launch app from JSON} \usage{ JSON_to_app(json, reminder = T) } \arguments{ \item{json}{character; the JSON string containing the data.} \item{reminder}{T or F; should USAGE be...
exams2html <- function(file, n = 1L, nsamp = NULL, dir = ".", template = "plain.html", name = NULL, quiet = TRUE, edir = NULL, tdir = NULL, sdir = NULL, verbose = FALSE, rds = FALSE, question = "<h4>Question</h4>", solution = "<h4>Solution</h4>", mathjax = NULL, resolution = 100, width = 4, height = 4, svg = FALS...
/R/exams2html.R
no_license
cran/exams
R
false
false
10,900
r
exams2html <- function(file, n = 1L, nsamp = NULL, dir = ".", template = "plain.html", name = NULL, quiet = TRUE, edir = NULL, tdir = NULL, sdir = NULL, verbose = FALSE, rds = FALSE, question = "<h4>Question</h4>", solution = "<h4>Solution</h4>", mathjax = NULL, resolution = 100, width = 4, height = 4, svg = FALS...
library("flowcatchR") data("MesenteriumSubset") # printing summary information for the MesenteriumSubset object MesenteriumSubset plateletsMesenterium <- channel.Frames(MesenteriumSubset, mode="red") plateletsMesenterium preprocessedPlatelets <- preprocess.Frames(plateletsMesenterium, ...
/demo_fullRun.R
no_license
federicomarini/flowstudio
R
false
false
1,612
r
library("flowcatchR") data("MesenteriumSubset") # printing summary information for the MesenteriumSubset object MesenteriumSubset plateletsMesenterium <- channel.Frames(MesenteriumSubset, mode="red") plateletsMesenterium preprocessedPlatelets <- preprocess.Frames(plateletsMesenterium, ...
# # glibc_evo-summary.R, 25 Apr 20 # # Data from: # Studying the laws of software evolution in a long-lived FLOSS project # Jesus M. Gonzalez-Barahona and Gregorio Robles and Israel Herraiz and Felipe Ortega # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones #...
/ecosystems/glibc_evo-summary.R
no_license
Tsechun/ESEUR-code-data
R
false
false
1,138
r
# # glibc_evo-summary.R, 25 Apr 20 # # Data from: # Studying the laws of software evolution in a long-lived FLOSS project # Jesus M. Gonzalez-Barahona and Gregorio Robles and Israel Herraiz and Felipe Ortega # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones #...
library(ape) testtree <- read.tree("10076_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10076_0_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/10076_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("10076_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10076_0_unrooted.txt")
library(shiny) library(DT) server <- function(input, output){ # Get new data set upon clicking on the activeButton # by getting a new random seed # id <- eventReactive(input$newdata, { # sample(1:10^6,1) # }) cl <- reactive({ if (is.na(input$id)){ return(NA) }else{ # Plant the ...
/server.R
no_license
yt-lu/sta126-key
R
false
false
4,872
r
library(shiny) library(DT) server <- function(input, output){ # Get new data set upon clicking on the activeButton # by getting a new random seed # id <- eventReactive(input$newdata, { # sample(1:10^6,1) # }) cl <- reactive({ if (is.na(input$id)){ return(NA) }else{ # Plant the ...
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22420317539424e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
/multivariance/inst/testfiles/fastdist/AFL_fastdist/fastdist_valgrind_files/1613097183-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
303
r
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22420317539424e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance::fastdist,testlist) str(result)
#' @title Operative Environmental Temperature of an Ectotherm based on Campbell and Norman (1988) #' #' @description The function estimates body temperatures (C, operative environmental temperature) of an ectotherm using an approximation based on \insertCite{Campbell1998;textual}{TrenchR} and \insertCite{Mitchell1976;...
/R/OperativeTemperatureFunctions.R
permissive
trenchproject/TrenchR
R
false
false
14,532
r
#' @title Operative Environmental Temperature of an Ectotherm based on Campbell and Norman (1988) #' #' @description The function estimates body temperatures (C, operative environmental temperature) of an ectotherm using an approximation based on \insertCite{Campbell1998;textual}{TrenchR} and \insertCite{Mitchell1976;...
library(shiny) library(shinythemes) library(raster) library(tmap) library(tmaptools) library(leaflet) library(leaflet.extras) load("MunComVAL.RData", verbose=TRUE) breaks<-c(0,100,500,1000,5000,10000,30000,50000,100000,500000,800000) paleta<-tmaptools::get_brewer_pal("Oranges", n = 10, contrast = c(0, 0...
/Visualizacion_datos_espaciales/Shiny_maps/app.R
no_license
MariaBellver/Repository_Master_Data_Science
R
false
false
1,858
r
library(shiny) library(shinythemes) library(raster) library(tmap) library(tmaptools) library(leaflet) library(leaflet.extras) load("MunComVAL.RData", verbose=TRUE) breaks<-c(0,100,500,1000,5000,10000,30000,50000,100000,500000,800000) paleta<-tmaptools::get_brewer_pal("Oranges", n = 10, contrast = c(0, 0...
library(photobiology) ### Name: clip_wl ### Title: Clip head and/or tail of a spectrum ### Aliases: clip_wl clip_wl.default clip_wl.generic_spct ### clip_wl.generic_mspct clip_wl.waveband clip_wl.list ### ** Examples clip_wl(sun.spct, range = c(400, 500)) clip_wl(sun.spct, range = c(NA, 500)) clip_wl(sun.spct, ra...
/data/genthat_extracted_code/photobiology/examples/clip_wl.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
342
r
library(photobiology) ### Name: clip_wl ### Title: Clip head and/or tail of a spectrum ### Aliases: clip_wl clip_wl.default clip_wl.generic_spct ### clip_wl.generic_mspct clip_wl.waveband clip_wl.list ### ** Examples clip_wl(sun.spct, range = c(400, 500)) clip_wl(sun.spct, range = c(NA, 500)) clip_wl(sun.spct, ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/character.R, R/dataframe.R, R/lime.R \name{lime} \alias{lime} \alias{lime.character} \alias{lime.data.frame} \title{Create a model explanation function based on training data} \usage{ \method{lime}{character}(x, model, preprocess, tokenizat...
/man/lime.Rd
no_license
sourabhsparkala/lime
R
false
true
3,243
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/character.R, R/dataframe.R, R/lime.R \name{lime} \alias{lime} \alias{lime.character} \alias{lime.data.frame} \title{Create a model explanation function based on training data} \usage{ \method{lime}{character}(x, model, preprocess, tokenizat...
library(plyr) list.of.packages <- c("tidyverse", "dplyr", "plyr", "mirt", "ComplexHeatmap") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)){install.packages(new.packages)} l_ply(list.of.packages, require, character.only = TRUE) knitr::write_bib(c(....
/Codes/My-Functions/my.library.loader.R
no_license
psyguy/Emotion-Dynamics
R
false
false
645
r
library(plyr) list.of.packages <- c("tidyverse", "dplyr", "plyr", "mirt", "ComplexHeatmap") new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] if(length(new.packages)){install.packages(new.packages)} l_ply(list.of.packages, require, character.only = TRUE) knitr::write_bib(c(....
library(survey) library(mase) data(api) out <- gregTree(y = apisrs$api00, xsample = apisrs[c("col.grad", "awards", "snum", "dnum", "cnum", "pcttest", "meals", "sch.wide")], xpop = apipop[c("col.grad", "awards", "snum", "dnum", "cnum", "pcttest", "meals", "sch.wide")], var_est = T, ...
/tests/testthat/test-gregTree.R
no_license
mcconvil/mase
R
false
false
556
r
library(survey) library(mase) data(api) out <- gregTree(y = apisrs$api00, xsample = apisrs[c("col.grad", "awards", "snum", "dnum", "cnum", "pcttest", "meals", "sch.wide")], xpop = apipop[c("col.grad", "awards", "snum", "dnum", "cnum", "pcttest", "meals", "sch.wide")], var_est = T, ...
library(ggmap) corvallis <- c(lon = -123.2620, lat = 44.5646) # Get map at zoom level 5: map_5 map_sat <- get_map(location=corvallis, zoom = 5, scale = 1,maptype="satellite") ggmap(map_sat) #google terrain map_toner <- get_map(location=corvallis, zoom = 5, scale = 1,maptype="terrain") ggmap(map_toner) #stemer toner map...
/R/geospatial/other_maptypes.R
no_license
bithu30/myRepo
R
false
false
570
r
library(ggmap) corvallis <- c(lon = -123.2620, lat = 44.5646) # Get map at zoom level 5: map_5 map_sat <- get_map(location=corvallis, zoom = 5, scale = 1,maptype="satellite") ggmap(map_sat) #google terrain map_toner <- get_map(location=corvallis, zoom = 5, scale = 1,maptype="terrain") ggmap(map_toner) #stemer toner map...