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
#if the needed file isn't in the working directory #unzip or dl as needed. if (!file.exists("household_power_consumption.txt")){ if (!file.exists("exdata_data_household_power_consumption.zip")){ message("Downloading data") download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_co...
/plot2.R
no_license
NewPagodi/ExData_Plotting1
R
false
false
965
r
#if the needed file isn't in the working directory #unzip or dl as needed. if (!file.exists("household_power_consumption.txt")){ if (!file.exists("exdata_data_household_power_consumption.zip")){ message("Downloading data") download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_co...
1+2 2+3 x = c(1,2,3,4) y = c(23,19,8,39) plot(x,y*x,typ="l") s <- c(50,63,49,38,29,60,55) mean(s) var(s) sd(s) resp <-c(1,2,0,1) n <- length(resp) n dat = read.csv("joined_jfk_responses.csv", header = TRUE) head(dat) mod.los <- coxph(Surv(time,status) ~ gender, data = dat) survival::clogit(MAINMODE ~ zipcode + ...
/models/survey_regression.R
no_license
mu529/airport_modes
R
false
false
348
r
1+2 2+3 x = c(1,2,3,4) y = c(23,19,8,39) plot(x,y*x,typ="l") s <- c(50,63,49,38,29,60,55) mean(s) var(s) sd(s) resp <-c(1,2,0,1) n <- length(resp) n dat = read.csv("joined_jfk_responses.csv", header = TRUE) head(dat) mod.los <- coxph(Surv(time,status) ~ gender, data = dat) survival::clogit(MAINMODE ~ zipcode + ...
library(riskRegression) ### Name: getSplitMethod ### Title: Input for data splitting algorithms ### Aliases: getSplitMethod ### ** Examples # 3-fold crossvalidation getSplitMethod("cv3",B=4,N=37) # bootstrap with replacement getSplitMethod("loob",B=4,N=37) # bootstrap without replacement getSplitMethod("loob",B=4...
/data/genthat_extracted_code/riskRegression/examples/getSplitMethod.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
336
r
library(riskRegression) ### Name: getSplitMethod ### Title: Input for data splitting algorithms ### Aliases: getSplitMethod ### ** Examples # 3-fold crossvalidation getSplitMethod("cv3",B=4,N=37) # bootstrap with replacement getSplitMethod("loob",B=4,N=37) # bootstrap without replacement getSplitMethod("loob",B=4...
# Housing Affordability Index # Example Calculation IR = 0.0486 MEDPRICE =113000 MEDINC = 44073 PMT = MEDPRICE*0.8*(IR/12)/(1-(1/(1+IR/12)^360)) # Necessary_monthly_income MINC = ((PMT*12)/MEDINC)*100 # qualifying_income QINC = PMT * 4 * 12 # Affordability Index affordability_index = (MEDINC/QINC)*100 # Key # ...
/housing_affordability_index.R
no_license
tranducquy/Real-Estate-1
R
false
false
4,571
r
# Housing Affordability Index # Example Calculation IR = 0.0486 MEDPRICE =113000 MEDINC = 44073 PMT = MEDPRICE*0.8*(IR/12)/(1-(1/(1+IR/12)^360)) # Necessary_monthly_income MINC = ((PMT*12)/MEDINC)*100 # qualifying_income QINC = PMT * 4 * 12 # Affordability Index affordability_index = (MEDINC/QINC)*100 # Key # ...
### Function plotNorm ### #' Function plotNorm #' #' Takes a DGEobj (containing counts) or a counts matrix as input. Returns a ggplot object containing #' a faceted plot of log2CPM before/after normalization. Either a box plot or density plot #' type can be chosen. #' #' Normalization is performed by edgeR::calc...
/R/plotNorm.R
no_license
jrthompson54/DGE.Tools2
R
false
false
3,361
r
### Function plotNorm ### #' Function plotNorm #' #' Takes a DGEobj (containing counts) or a counts matrix as input. Returns a ggplot object containing #' a faceted plot of log2CPM before/after normalization. Either a box plot or density plot #' type can be chosen. #' #' Normalization is performed by edgeR::calc...
library(metafor) args = commandArgs(trailingOnly=TRUE) input_file = args[1] bb = args[2] d = read.table(input_file) nc = dim(d)[2] seq_b = seq(2,nc,2) seq_s = seq(3,nc,2) beta = as.matrix(d[,seq_b]) sd = as.matrix(d[,seq_s]) p = dim(d)[1] pval_egger =c() pval_Q = c() for (i in 1:p){ yi = beta[i,] se = sd[i,...
/wen_code/batch_eff/scripts/analyze_batch_multi_grp_metafor.R
no_license
ArtemisZhao/Bayes-model-checking
R
false
false
545
r
library(metafor) args = commandArgs(trailingOnly=TRUE) input_file = args[1] bb = args[2] d = read.table(input_file) nc = dim(d)[2] seq_b = seq(2,nc,2) seq_s = seq(3,nc,2) beta = as.matrix(d[,seq_b]) sd = as.matrix(d[,seq_s]) p = dim(d)[1] pval_egger =c() pval_Q = c() for (i in 1:p){ yi = beta[i,] se = sd[i,...
#--------------------------------------------------------------------- # mapping gene ids with gene name for Staphyloccuce areuse #--------------------------------------------------------------------- #--------------------------------------------------------------------- # find gene names f...
/Source/mapGeneIdUniprot.R
no_license
kimiaameri/Protein_Active
R
false
false
1,113
r
#--------------------------------------------------------------------- # mapping gene ids with gene name for Staphyloccuce areuse #--------------------------------------------------------------------- #--------------------------------------------------------------------- # find gene names f...
#.79909 Top 20% Kaggle #Titanic library(ggplot2); library(tidyverse);library(caret);library(randomForest); library(caTools) setwd("G:/Personal/Kaggle/Titanic") ############################################################################################ Data Processing #Import tidydata rawdata <- read.csv2("...
/titanicv2.R
no_license
chrisselig/TitanicCompetition
R
false
false
10,191
r
#.79909 Top 20% Kaggle #Titanic library(ggplot2); library(tidyverse);library(caret);library(randomForest); library(caTools) setwd("G:/Personal/Kaggle/Titanic") ############################################################################################ Data Processing #Import tidydata rawdata <- read.csv2("...
################################################################################ # Barcelona Graduate School of Economics # Master's Degree in Data Science ################################################################################ # Project : Computing Lab # Script : 00_index.R ##########################...
/project/syntax/00_index.R
no_license
nitimkc/complab
R
false
false
2,152
r
################################################################################ # Barcelona Graduate School of Economics # Master's Degree in Data Science ################################################################################ # Project : Computing Lab # Script : 00_index.R ##########################...
#' Randomly shuffle a vector #' #' Randomly re-order the elements in a vector. #' This is just a convenience function for \code{\link[base]{sample}} where \code{size} is the length of the vector. #' #' @param x a vector #' #' @examples #' x <- 1:10 #' shuffle(x) #' #' @seealso \code{\link[base]{sample}} #' #' @export...
/pkg/R/shuffle.R
no_license
rosemm/rexamples
R
false
false
414
r
#' Randomly shuffle a vector #' #' Randomly re-order the elements in a vector. #' This is just a convenience function for \code{\link[base]{sample}} where \code{size} is the length of the vector. #' #' @param x a vector #' #' @examples #' x <- 1:10 #' shuffle(x) #' #' @seealso \code{\link[base]{sample}} #' #' @export...
## Read in the Data File DF <- read.table("household_power_consumption.txt", header=T, sep=';', dec=".", stringsAsFactors=F, na.strings="?", nrows=2075259, comment.char="") ## Convert the Date DF$Date <- as.Date(DF$Date, format="%d/%m/%Y") ## Subset the Data File DF subDF <- subset(DF, subset=(Date >= "2007-02-01"...
/plot4.R
no_license
A-Tripathi/ExData_Plotting1
R
false
false
1,262
r
## Read in the Data File DF <- read.table("household_power_consumption.txt", header=T, sep=';', dec=".", stringsAsFactors=F, na.strings="?", nrows=2075259, comment.char="") ## Convert the Date DF$Date <- as.Date(DF$Date, format="%d/%m/%Y") ## Subset the Data File DF subDF <- subset(DF, subset=(Date >= "2007-02-01"...
# Цель: регрессионный анализ датасета world_values_survey.xlsx # Inputs: final_data/world_values_survey.xlsx # intermediate_data/SCI_matrix_wvs.xlsx # intermediate_data/distance_matrix_wvs.xlsx # Outputs: - # Дата: 2021-03-24 library(haven) library(tidyverse) library(plm) library(splm)...
/regressions/WVS_Conf_in_civil_services.r
no_license
szhizherin/Social-connections-and-views-in-Europe
R
false
false
8,440
r
# Цель: регрессионный анализ датасета world_values_survey.xlsx # Inputs: final_data/world_values_survey.xlsx # intermediate_data/SCI_matrix_wvs.xlsx # intermediate_data/distance_matrix_wvs.xlsx # Outputs: - # Дата: 2021-03-24 library(haven) library(tidyverse) library(plm) library(splm)...
library(OrgMassSpecR) ### Name: RetentionIndex ### Title: Non-Isothermal Retention Index Calculation ### Aliases: RetentionIndex ### ** Examples RetentionIndex(8, 30, 28, 33)
/data/genthat_extracted_code/OrgMassSpecR/examples/RetentionIndex.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
180
r
library(OrgMassSpecR) ### Name: RetentionIndex ### Title: Non-Isothermal Retention Index Calculation ### Aliases: RetentionIndex ### ** Examples RetentionIndex(8, 30, 28, 33)
names <- c(' minute_0 ' , ' minute_1 ' , ' minute_2 ' , ' minute_3 ' , ' minute_4 ' , ' minute_5 ' , ' minute_6 ' , ' minute_7 ' , ' minute_8 ' , ' minute_9 ' , ' minute_10 ' , ' minute_11 ' , ...
/R/feature_names.R
no_license
jche/GumGum
R
false
false
69,986
r
names <- c(' minute_0 ' , ' minute_1 ' , ' minute_2 ' , ' minute_3 ' , ' minute_4 ' , ' minute_5 ' , ' minute_6 ' , ' minute_7 ' , ' minute_8 ' , ' minute_9 ' , ' minute_10 ' , ' minute_11 ' , ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wb_colors.R \docType{data} \name{wb_colors} \alias{wb_colors} \title{World Bank Colors} \format{ A character vector of color names and hex values } \source{ Colors come from the World Bank's official \href{http://pubdocs.worldbank.org/en/5463...
/man/wb_colors.Rd
no_license
t-emery/wbhelpr
R
false
true
688
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wb_colors.R \docType{data} \name{wb_colors} \alias{wb_colors} \title{World Bank Colors} \format{ A character vector of color names and hex values } \source{ Colors come from the World Bank's official \href{http://pubdocs.worldbank.org/en/5463...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_tac_estimated_vs_realized.R \name{calc_tac_est_vs_real} \alias{calc_tac_est_vs_real} \title{Calculated the estimated TAC vs the Realized TAC (from data)} \usage{ calc_tac_est_vs_real(catch_floor = 180000) } \arguments{ \item{catch_floor}...
/man/calc_tac_est_vs_real.Rd
no_license
aaronmberger-nwfsc/pacifichakemse-1
R
false
true
1,070
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_tac_estimated_vs_realized.R \name{calc_tac_est_vs_real} \alias{calc_tac_est_vs_real} \title{Calculated the estimated TAC vs the Realized TAC (from data)} \usage{ calc_tac_est_vs_real(catch_floor = 180000) } \arguments{ \item{catch_floor}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inferenceSimPrintResults.R \name{inferenceSimPrintResults} \alias{inferenceSimPrintResults} \title{Print the inference simulation results in Latex format} \usage{ inferenceSimPrintResults(inPath, outPath) } \arguments{ \item{inPath}{Path to l...
/PredictingBlackSwans/man/inferenceSimPrintResults.Rd
permissive
PabloRMira/PredictingBlackSwans
R
false
true
537
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inferenceSimPrintResults.R \name{inferenceSimPrintResults} \alias{inferenceSimPrintResults} \title{Print the inference simulation results in Latex format} \usage{ inferenceSimPrintResults(inPath, outPath) } \arguments{ \item{inPath}{Path to l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/packaging.R \name{filter_packaging_statements} \alias{filter_packaging_statements} \title{Filter statements related to packaging} \usage{ filter_packaging_statements(statements) } \arguments{ \item{statements}{(data.frame) A set of Statements...
/man/filter_packaging_statements.Rd
permissive
eodean/arcticdatautils
R
false
true
1,072
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/packaging.R \name{filter_packaging_statements} \alias{filter_packaging_statements} \title{Filter statements related to packaging} \usage{ filter_packaging_statements(statements) } \arguments{ \item{statements}{(data.frame) A set of Statements...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_subspace.R \name{create_subspace} \alias{create_subspace} \title{A constructor function for the subspace class} \usage{ create_subspace( x, components = NULL, decomposition = c("svd", "eigen"), verbose = FALSE, ... ) } \argum...
/man/create_subspace.Rd
no_license
WenlanzZ/dimension
R
false
true
1,737
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_subspace.R \name{create_subspace} \alias{create_subspace} \title{A constructor function for the subspace class} \usage{ create_subspace( x, components = NULL, decomposition = c("svd", "eigen"), verbose = FALSE, ... ) } \argum...
shinyServer(function(input, output) { output$ui <- renderUI({ if (is.null(input$input_type)) return() # Depending on input$input_type, we'll generate a different # UI component and send it to the client. switch(input$input_type, "slider" = sliderInput("dynamic", "Dynamic", min = 1, max = 20, value = 10), "text" = t...
/alok-examples/dynamic-UI/server.R
no_license
junejaalok/ddp-2014
R
false
false
1,317
r
shinyServer(function(input, output) { output$ui <- renderUI({ if (is.null(input$input_type)) return() # Depending on input$input_type, we'll generate a different # UI component and send it to the client. switch(input$input_type, "slider" = sliderInput("dynamic", "Dynamic", min = 1, max = 20, value = 10), "text" = t...
\name{imputeSS} \alias{imputeSS} \title{Missing values' imputation} \description{ \code{imputeSS} imputes missing values for a gjrm model object. } \usage{ imputeSS(x, m = 10) } \arguments{ \item{x}{A fitted \code{gjrm} object.} \item{m}{Number of imputed response vectors.} } ...
/man/imputeSS.Rd
no_license
cran/GJRM
R
false
false
1,628
rd
\name{imputeSS} \alias{imputeSS} \title{Missing values' imputation} \description{ \code{imputeSS} imputes missing values for a gjrm model object. } \usage{ imputeSS(x, m = 10) } \arguments{ \item{x}{A fitted \code{gjrm} object.} \item{m}{Number of imputed response vectors.} } ...
# Creates RISK PMML model library(lubridate) library(dplyr) library(ggplot2) library(caret) library(randomForest) library(pmml) datadir <- "data" modeldir <- "models" # The base date should be the same as the "DemoDate" set in the global # control parameters of the DMSample application. BaseDateString <- 'Mon Nov 5 ...
/dmsample/scripts/createriskmodel.R
permissive
shishehchi/cdh-datascientist-tools
R
false
false
7,794
r
# Creates RISK PMML model library(lubridate) library(dplyr) library(ggplot2) library(caret) library(randomForest) library(pmml) datadir <- "data" modeldir <- "models" # The base date should be the same as the "DemoDate" set in the global # control parameters of the DMSample application. BaseDateString <- 'Mon Nov 5 ...
#! /usr/bin/Rscript # Rscript heatmap.r output/report/comparsion.txt ./ library(devtools) library(Biobase) library(dendextend) library(gplots) library(preprocessCore) options(echo=TRUE) args <- commandArgs(trailingOnly = TRUE) fn<-args[1] dir<-args[2] ec<-read.table(fn, header = TRUE, row.names = 1, sep = ...
/script_backup/DGE/heatmap_eachSample.R
no_license
kent5438/sharing-github
R
false
false
1,032
r
#! /usr/bin/Rscript # Rscript heatmap.r output/report/comparsion.txt ./ library(devtools) library(Biobase) library(dendextend) library(gplots) library(preprocessCore) options(echo=TRUE) args <- commandArgs(trailingOnly = TRUE) fn<-args[1] dir<-args[2] ec<-read.table(fn, header = TRUE, row.names = 1, sep = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_NPV.R \name{compute_NPV} \alias{compute_NPV} \title{compute_NPV} \usage{ compute_NPV(value, time, discount) } \arguments{ \item{time}{in the future that cost/value occurs (years)} \item{discount}{rate} \item{value/cost}{($)} } \valu...
/working/rainbow/man/compute_NPV.Rd
no_license
rubensanchezramirez/ESM262-rubensanchezramirez
R
false
true
378
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_NPV.R \name{compute_NPV} \alias{compute_NPV} \title{compute_NPV} \usage{ compute_NPV(value, time, discount) } \arguments{ \item{time}{in the future that cost/value occurs (years)} \item{discount}{rate} \item{value/cost}{($)} } \valu...
all_data <- readRDS("list_df_full.RDS") for (i in seq(length(all_data))) { rmarkdown::render( "popler_data_report.Rmd", params = list( dataset_index = i), output_file = paste0("data_report-", i, ".md") ) } # x %>% # select(year, month, day, # sppcode, # starts_with("spati...
/summarize_data_organization_hierarchies.R
no_license
ha0ye/popler
R
false
false
679
r
all_data <- readRDS("list_df_full.RDS") for (i in seq(length(all_data))) { rmarkdown::render( "popler_data_report.Rmd", params = list( dataset_index = i), output_file = paste0("data_report-", i, ".md") ) } # x %>% # select(year, month, day, # sppcode, # starts_with("spati...
jd_tsvar<-function(s, name){ .jnew("ec.tstoolkit.timeseries.regression.TsVariable", name, ts_r2jd(s)) } jd_registerVariable<-function(s, name, group="vars"){ var<-jd_tsvar(s, name) jd_context<-.jcall("ec/tstoolkit/algorithm/ProcessingContext", "Lec/tstoolkit/algorithm/ProcessingContext;", "getActiveContext") j...
/R/jd_regression.R
no_license
alexkowa/rjdemetra
R
false
false
1,538
r
jd_tsvar<-function(s, name){ .jnew("ec.tstoolkit.timeseries.regression.TsVariable", name, ts_r2jd(s)) } jd_registerVariable<-function(s, name, group="vars"){ var<-jd_tsvar(s, name) jd_context<-.jcall("ec/tstoolkit/algorithm/ProcessingContext", "Lec/tstoolkit/algorithm/ProcessingContext;", "getActiveContext") j...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpaca4R.R \name{get_bars} \alias{get_bars} \title{Get Bars function} \usage{ get_bars(url_data, headers, ticker, from) } \arguments{ \item{headers}{Header object containing your KeyID & SecretID to your user API. Use add_headers('APCA-API-KE...
/man/get_bars.Rd
no_license
abunsen/AlpacaforR
R
false
true
1,040
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alpaca4R.R \name{get_bars} \alias{get_bars} \title{Get Bars function} \usage{ get_bars(url_data, headers, ticker, from) } \arguments{ \item{headers}{Header object containing your KeyID & SecretID to your user API. Use add_headers('APCA-API-KE...
library(Hmisc) setwd("/Volumes/snyder/ibm_captivity/OUTPUT/") #jwillou/ or scratch/ ####run parameters#### startcap = c(75,100,115,123,124,1000) endcap = 125 controly = 1000 RRS = c(0.1,0) gens = 250 poorenv = 1000 fixedenv = 1000 nloci = 50 capfounders = 1 ####data#### csum = rbind(read.table("crane/...
/plot/selection_cbduration.R
no_license
jwillou/captivebreeding-IBM
R
false
false
11,408
r
library(Hmisc) setwd("/Volumes/snyder/ibm_captivity/OUTPUT/") #jwillou/ or scratch/ ####run parameters#### startcap = c(75,100,115,123,124,1000) endcap = 125 controly = 1000 RRS = c(0.1,0) gens = 250 poorenv = 1000 fixedenv = 1000 nloci = 50 capfounders = 1 ####data#### csum = rbind(read.table("crane/...
read.snpdata.mach <- function(fileroot, tol.af = 0.01, phenotypes = NULL, isuffix = ".mlinfo", dsuffix = ".mldose") { if (substr(isuffix, nchar(isuffix) - 2, nchar(isuffix)) == ".gz") { mlinfo <- read.table(gzfile(paste(fileroot, isuffix, sep = "")), header = TRUE, colClasses = "character") } else { mlinfo ...
/R/input.R
no_license
chuangaocornell/gtx2
R
false
false
10,132
r
read.snpdata.mach <- function(fileroot, tol.af = 0.01, phenotypes = NULL, isuffix = ".mlinfo", dsuffix = ".mldose") { if (substr(isuffix, nchar(isuffix) - 2, nchar(isuffix)) == ".gz") { mlinfo <- read.table(gzfile(paste(fileroot, isuffix, sep = "")), header = TRUE, colClasses = "character") } else { mlinfo ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CovariateData.R \name{createEmptyCovariateData} \alias{createEmptyCovariateData} \title{Creates an empty covariate data object} \usage{ createEmptyCovariateData(cohortId, aggregated, temporal) } \arguments{ \item{cohortId}{cohort number} \it...
/man/createEmptyCovariateData.Rd
permissive
OHDSI/FeatureExtraction
R
false
true
617
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CovariateData.R \name{createEmptyCovariateData} \alias{createEmptyCovariateData} \title{Creates an empty covariate data object} \usage{ createEmptyCovariateData(cohortId, aggregated, temporal) } \arguments{ \item{cohortId}{cohort number} \it...
\name{CF} \alias{CF} \title{Central Feature (CF) Calculator} \description{Identifies the central feature within a set of point locations.} \usage{CF(id=1, filename="CF_Output.txt", points=activities)} \arguments{ \item{id}{A unique integer to identify the CF} \item{filename}{A string indicating the ASCII tex...
/man/CF.Rd
no_license
cran/aspace
R
false
false
1,469
rd
\name{CF} \alias{CF} \title{Central Feature (CF) Calculator} \description{Identifies the central feature within a set of point locations.} \usage{CF(id=1, filename="CF_Output.txt", points=activities)} \arguments{ \item{id}{A unique integer to identify the CF} \item{filename}{A string indicating the ASCII tex...
rm(list=ls(all.names=TRUE)) ### practice_3 ### Crawler Example ### Crawler_Example with rvest ##################################################################### # 參考:https://blog.gtwang.org/r/rvest-web-scraping-with-r/ rm(list = ls()) library(rvest) # Set url prefix <- "https://www.ptt.cc/bbs/TW_Entertain/inde...
/final_project/PTT.R
no_license
b03602023/1062CSX_project
R
false
false
2,057
r
rm(list=ls(all.names=TRUE)) ### practice_3 ### Crawler Example ### Crawler_Example with rvest ##################################################################### # 參考:https://blog.gtwang.org/r/rvest-web-scraping-with-r/ rm(list = ls()) library(rvest) # Set url prefix <- "https://www.ptt.cc/bbs/TW_Entertain/inde...
## Copied from https://github.com/snystrom/cmdfun/blob/master/R/cmd_args.R ## with permission from Spencer Nystrom while ## cmdfun is approved at CRAN. ## This is in relation to the Bioconductor submission at ## https://github.com/Bioconductor/Contributions/issues/1696 # use_package("magrittr") # use_package("purrr") ...
/R/cmdfun.R
no_license
liangdp1984/megadepth
R
false
false
5,684
r
## Copied from https://github.com/snystrom/cmdfun/blob/master/R/cmd_args.R ## with permission from Spencer Nystrom while ## cmdfun is approved at CRAN. ## This is in relation to the Bioconductor submission at ## https://github.com/Bioconductor/Contributions/issues/1696 # use_package("magrittr") # use_package("purrr") ...
##------------------------------------------------------------------------------- ## 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 ...
/settings/R/clean.settings.R
permissive
davidjpmoore/pecan
R
false
false
2,080
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 ...
/Vorjahresklausur-deformation.R
no_license
paulzwoelfer/AKIT2
R
false
false
13,168
r
\name{GenomicAnnotationsFromLibrary} \alias{GenomicAnnotationsFromLibrary} \title{ Function extracting a GenomicAnnotations object from a Bioconductor annotation library } \description{ Function extracting a GenomicAnnotations object from a Bioconductor annotation library } \usage{ GenomicAnnotationsFromLibrary(annotLi...
/man/GenomicAnnotationsFromLibrary.Rd
no_license
bernatgel/PREDAsam
R
false
false
1,619
rd
\name{GenomicAnnotationsFromLibrary} \alias{GenomicAnnotationsFromLibrary} \title{ Function extracting a GenomicAnnotations object from a Bioconductor annotation library } \description{ Function extracting a GenomicAnnotations object from a Bioconductor annotation library } \usage{ GenomicAnnotationsFromLibrary(annotLi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MakeAlk.R \name{MakeAlk} \alias{MakeAlk} \title{XXX} \usage{ MakeAlk(kvarnir, tegund, kyn = F, kynth = F, okynth.gildi = 1, kynth.gildi = c(2:4), lengd, aldur, Stodvar, FilterAldurLengd = T, NAOkynthAge = 3) } \arguments{ \item{kvarnir}{X...
/man/MakeAlk.Rd
no_license
einarhjorleifsson/husky
R
false
true
630
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MakeAlk.R \name{MakeAlk} \alias{MakeAlk} \title{XXX} \usage{ MakeAlk(kvarnir, tegund, kyn = F, kynth = F, okynth.gildi = 1, kynth.gildi = c(2:4), lengd, aldur, Stodvar, FilterAldurLengd = T, NAOkynthAge = 3) } \arguments{ \item{kvarnir}{X...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{extractAIC.MxModel} \alias{extractAIC.MxModel} \title{Extract AIC from MxModel} \usage{ \method{extractAIC}{MxModel}(fit, scale, k, ...) } \arguments{ \item{fit}{an fitted \code{\link[=mxModel]{mxModel()}} from which...
/man/extractAIC.MxModel.Rd
no_license
bwiernik/umx
R
false
true
1,552
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_and_reporting.R \name{extractAIC.MxModel} \alias{extractAIC.MxModel} \title{Extract AIC from MxModel} \usage{ \method{extractAIC}{MxModel}(fit, scale, k, ...) } \arguments{ \item{fit}{an fitted \code{\link[=mxModel]{mxModel()}} from which...
#' VPU Boundaries #' Vector Processing Unit boundaries #' @docType data #' @format An object of class \code{"sf"} #' @keywords data "vpu_boundaries" #' RPU Boundaries #' Raster Processing Unit boundaries #' @docType data #' @format An object of class \code{"sf"} #' @keywords data "rpu_boundaries"
/R/boundary_datasets.R
permissive
jsta/nhdplusTools
R
false
false
299
r
#' VPU Boundaries #' Vector Processing Unit boundaries #' @docType data #' @format An object of class \code{"sf"} #' @keywords data "vpu_boundaries" #' RPU Boundaries #' Raster Processing Unit boundaries #' @docType data #' @format An object of class \code{"sf"} #' @keywords data "rpu_boundaries"
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contributions.R \name{contributions} \alias{contributions} \title{Compute contribution} \usage{ contributions(X, sets, type = 1) } \arguments{ \item{X}{- the raw matrix need to be dealt with} \item{sets}{- list of vectors indicating the set...
/MFA/man/contributions.Rd
no_license
shuang0321/stat243
R
false
true
703
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contributions.R \name{contributions} \alias{contributions} \title{Compute contribution} \usage{ contributions(X, sets, type = 1) } \arguments{ \item{X}{- the raw matrix need to be dealt with} \item{sets}{- list of vectors indicating the set...
# Unit 4 - "Keeping an Eye on Healthcare Costs" Lecture # VIDEO 6 # Read in the data Claims = read.csv("ClaimsData.csv") str(Claims) # Percentage of patients in each cost bucket table(Claims$bucket2009)/nrow(Claims) # Split the data library(caTools) set.seed(88) spl = sample.split(Claims$bucket2009, SplitRatio ...
/Analytics_Edge/Unit 4/Unit4_D2Hawkeye.R
no_license
Andrewcraig1/LearningR
R
false
false
2,597
r
# Unit 4 - "Keeping an Eye on Healthcare Costs" Lecture # VIDEO 6 # Read in the data Claims = read.csv("ClaimsData.csv") str(Claims) # Percentage of patients in each cost bucket table(Claims$bucket2009)/nrow(Claims) # Split the data library(caTools) set.seed(88) spl = sample.split(Claims$bucket2009, SplitRatio ...
#' Check the GDAL version in use #' #' @return \code{numeric_version} #' #' @author Alex Chubaty and Eliot McIntire #' @export #' @importFrom magrittr %>% getGDALVersion <- function() { if (.requireNamespace("rgdal")) { vers <- tryCatch(rgdal::getGDALVersionInfo(), error = function(e) NA_real_) if (!is.na(ve...
/R/gis.R
no_license
gitter-badger/reproducible
R
false
false
12,646
r
#' Check the GDAL version in use #' #' @return \code{numeric_version} #' #' @author Alex Chubaty and Eliot McIntire #' @export #' @importFrom magrittr %>% getGDALVersion <- function() { if (.requireNamespace("rgdal")) { vers <- tryCatch(rgdal::getGDALVersionInfo(), error = function(e) NA_real_) if (!is.na(ve...
# # This is the user-interface definition of a Shiny web application. You can # run the application by downloading both tye ui.R and the server.R, and run both in R. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws...
/ui.R
no_license
lfasanchez/Developing_Data
R
false
false
1,897
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by downloading both tye ui.R and the server.R, and run both in R. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws...
#' @title Przeksztalcanie normalizacji ekwikwantylowej #' @description #' Funkcja służy do sklejania ze sobą najniższych wartości skali znormalizowanej #' ekwikwantylowo, przeliczając jednocześnie wartości skali. #' @param wynikiZnorm wektor wartości na skali znormalizowanej #' @param wynikiSurowe wektor wartości surow...
/R/sklej_normy.R
permissive
tzoltak/EWDwskazniki
R
false
false
2,361
r
#' @title Przeksztalcanie normalizacji ekwikwantylowej #' @description #' Funkcja służy do sklejania ze sobą najniższych wartości skali znormalizowanej #' ekwikwantylowo, przeliczając jednocześnie wartości skali. #' @param wynikiZnorm wektor wartości na skali znormalizowanej #' @param wynikiSurowe wektor wartości surow...
context("Checking the threshold fucntion for linear testing") ## Simulating data p <- 10 cov.mat <- diag(p) set.seed(959) y <- c(15, rnorm(p - 1)) a.vec <- rep(1, p) first.threshold <- qchisq(0.95, p) alpha <- 0.05 testthat::test_that('thresholdWrapperQuadratic returns the expected outputs, defa...
/tests/testthat/test_quadratic_threshold.R
no_license
tfrostig/PSAT
R
false
false
920
r
context("Checking the threshold fucntion for linear testing") ## Simulating data p <- 10 cov.mat <- diag(p) set.seed(959) y <- c(15, rnorm(p - 1)) a.vec <- rep(1, p) first.threshold <- qchisq(0.95, p) alpha <- 0.05 testthat::test_that('thresholdWrapperQuadratic returns the expected outputs, defa...
##' This test is designed to explore whether all the data in the ##' production domain met the data requirement. ##' ##' All values within the selected sets are imputed ## ##' Definition of the set: ##' ##' 1. Required list of country, item, element and years provided ##' by the user. ##' ##' 2. The reco...
/modules/status_report/main.R
no_license
SWS-Methodology/faoswsProduction
R
false
false
3,124
r
##' This test is designed to explore whether all the data in the ##' production domain met the data requirement. ##' ##' All values within the selected sets are imputed ## ##' Definition of the set: ##' ##' 1. Required list of country, item, element and years provided ##' by the user. ##' ##' 2. The reco...
library(ape) testtree <- read.tree("611_62.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="611_62_unrooted.txt")
/codeml_files/newick_trees_processed/611_62/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("611_62.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="611_62_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gutils.R \name{cume_dist_min} \alias{cume_dist_min} \title{Return an alternate empirical cumulative distribution, counting only values with a lower rank.} \usage{ cume_dist_min(x) } \description{ For every value of x, return the number of val...
/man/cume_dist_min.Rd
no_license
tanaylab/gpatterns
R
false
true
361
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gutils.R \name{cume_dist_min} \alias{cume_dist_min} \title{Return an alternate empirical cumulative distribution, counting only values with a lower rank.} \usage{ cume_dist_min(x) } \description{ For every value of x, return the number of val...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Rfun_sBoundsPh2.R \name{sBoundsPh2} \alias{sBoundsPh2} \title{Critical boundaries for the secondary endpoint in the partially hierarchical group sequential design} \usage{ sBoundsPh2( alpha, alpha0, t0, t1, tc0 = t0, tc1 = t1, r...
/man/sBoundsPh2.Rd
no_license
cran/triggerstrategy
R
false
true
2,611
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Rfun_sBoundsPh2.R \name{sBoundsPh2} \alias{sBoundsPh2} \title{Critical boundaries for the secondary endpoint in the partially hierarchical group sequential design} \usage{ sBoundsPh2( alpha, alpha0, t0, t1, tc0 = t0, tc1 = t1, r...
\name{loss.robchis} \alias{loss.robchis} \title{ Hetroscedastic chi-square robust loss function. } \description{Compute the robustified chi-square pseoudo log likelihood,based on varaince model function. \deqn{\ell (\boldsymbol{\theta},\tau )=\sum\{ w_i \log (H({x_i};\tau) + \rho \left[\sqrt {{z_i}/ H({x_i};{\s...
/man/loss.robchis.Rd
no_license
Allisterh/nlr
R
false
false
3,831
rd
\name{loss.robchis} \alias{loss.robchis} \title{ Hetroscedastic chi-square robust loss function. } \description{Compute the robustified chi-square pseoudo log likelihood,based on varaince model function. \deqn{\ell (\boldsymbol{\theta},\tau )=\sum\{ w_i \log (H({x_i};\tau) + \rho \left[\sqrt {{z_i}/ H({x_i};{\s...
#------------------------------------------------------------------------------- # Program: getDF.R # Objective: transform data in suitable form for graph # Authors: Chourrout Elise # Creation: 15/02/2019 # Update: #------------------------------------------------------------------------------- ##' @title Get Data fro...
/R/getDataVarPretty.R
no_license
niio972/opencpu-webapp
R
false
false
2,368
r
#------------------------------------------------------------------------------- # Program: getDF.R # Objective: transform data in suitable form for graph # Authors: Chourrout Elise # Creation: 15/02/2019 # Update: #------------------------------------------------------------------------------- ##' @title Get Data fro...
\name{MAT} \alias{MAT} \alias{predict.MAT} \alias{paldist} \alias{paldist2} \alias{performance.MAT} \alias{crossval.MAT} \alias{print.MAT} \alias{summary.MAT} \alias{plot.MAT} \alias{fitted.MAT} \alias{residuals.MAT} \alias{screeplot.MAT} \title{Palaeoenvironmental reconstruction using the Modern Analogue Technique (M...
/man/MAT.Rd
no_license
nsj3/rioja
R
false
false
9,033
rd
\name{MAT} \alias{MAT} \alias{predict.MAT} \alias{paldist} \alias{paldist2} \alias{performance.MAT} \alias{crossval.MAT} \alias{print.MAT} \alias{summary.MAT} \alias{plot.MAT} \alias{fitted.MAT} \alias{residuals.MAT} \alias{screeplot.MAT} \title{Palaeoenvironmental reconstruction using the Modern Analogue Technique (M...
## The 1st function sets and outputs cache matrix created by users. ## The 2nd function calculates the inverse of the initial matrix provided by the 1st function. ## Please see the detailed comments inside the 1st function makeCacheMatrix <- function(x = matrix()) { # Create the initial varlabie 'inv' as NULL ...
/cachematrix.R
no_license
thebigshow500/ProgrammingAssignment2
R
false
false
1,478
r
## The 1st function sets and outputs cache matrix created by users. ## The 2nd function calculates the inverse of the initial matrix provided by the 1st function. ## Please see the detailed comments inside the 1st function makeCacheMatrix <- function(x = matrix()) { # Create the initial varlabie 'inv' as NULL ...
### Rpoject_data builds the specized data frame for Analysis ### and for the NCIS Tracker Shiny APP ## if (!file.exists("C:/Users/PMB/Dropbox/data/class9project1/pop10_14.csv")) { download.file("http://www.census.gov/popest/data/national/totals/2014/files/NST-EST2014-popchg2010_2014.csv", "pop10_14.csv")} pop_10_...
/Rproject_data.R
no_license
pburdi/DS9_Project
R
false
false
4,576
r
### Rpoject_data builds the specized data frame for Analysis ### and for the NCIS Tracker Shiny APP ## if (!file.exists("C:/Users/PMB/Dropbox/data/class9project1/pop10_14.csv")) { download.file("http://www.census.gov/popest/data/national/totals/2014/files/NST-EST2014-popchg2010_2014.csv", "pop10_14.csv")} pop_10_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/validCountries.R \name{validCountries} \alias{validCountries} \title{Valid Country Codes of HS Lookups} \usage{ validCountries() } \value{ Returns a named character vector. The names are the valid country codes that can be passed to the ACT ...
/man/validCountries.Rd
no_license
wbuchanan/actR
R
false
true
477
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/validCountries.R \name{validCountries} \alias{validCountries} \title{Valid Country Codes of HS Lookups} \usage{ validCountries() } \value{ Returns a named character vector. The names are the valid country codes that can be passed to the ACT ...
library(ape) testtree <- read.tree("8055_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8055_0_unrooted.txt")
/codeml_files/newick_trees_processed/8055_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("8055_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8055_0_unrooted.txt")
library(hmmm) ### Name: accident ### Title: factory accident data ### Aliases: accident ### Keywords: datasets ### ** Examples data(accident)
/data/genthat_extracted_code/hmmm/examples/accident.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
147
r
library(hmmm) ### Name: accident ### Title: factory accident data ### Aliases: accident ### Keywords: datasets ### ** Examples data(accident)
#Relationship to base and plyr functions #purrr: split->apply->combine ##why not base? library(purrr) install.packages("repurrrsive") library(tidyverse) #lapply() vs purrr::map() ##dos exercicios com got e wesanderson devtools::install_github("MangoTheCat/GoTr") install.packages("listviewer") repurrrsive::got_chars %...
/cap8 extra.R
no_license
pedroceciliocn/projs-R-for-Data-Science
R
false
false
1,138
r
#Relationship to base and plyr functions #purrr: split->apply->combine ##why not base? library(purrr) install.packages("repurrrsive") library(tidyverse) #lapply() vs purrr::map() ##dos exercicios com got e wesanderson devtools::install_github("MangoTheCat/GoTr") install.packages("listviewer") repurrrsive::got_chars %...
q_otumap = read.table( "final_otu_map_mc1.txt", sep="\t", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt"); q_otumap = read.table( "final_otu_map_mc1.txt") q_otumap = read.tabl...
/data_scripts/sofar.R
permissive
rosaak/JLT
R
false
false
2,070
r
q_otumap = read.table( "final_otu_map_mc1.txt", sep="\t", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt", header=FALSE ); q_otumap = read.table( "final_otu_map_mc1.txt"); q_otumap = read.table( "final_otu_map_mc1.txt") q_otumap = read.tabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kp_misc_stats.R \name{kp_game_attrs} \alias{kp_game_attrs} \title{Get Game Attributes} \usage{ kp_game_attrs(year = most_recent_mbb_season(), attr = "Excitement") } \arguments{ \item{year}{Year of data to pull} \item{attr}{Game Attribute, va...
/man/kp_game_attrs.Rd
permissive
mrcaseb/hoopR
R
false
true
568
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kp_misc_stats.R \name{kp_game_attrs} \alias{kp_game_attrs} \title{Get Game Attributes} \usage{ kp_game_attrs(year = most_recent_mbb_season(), attr = "Excitement") } \arguments{ \item{year}{Year of data to pull} \item{attr}{Game Attribute, va...
%% %% WARNING! DO NOT EDIT! %% This file is automatically generated from set.default.arguments.R %% \name{control.group} \alias{control.group} \alias{inla.control.group} \alias{inla.set.control.group.default} \alias{set.control.group.default} \alias{control.group.default} \title{Control variables in control.group} \des...
/man/control.group.Rd
no_license
xc308/INLA
R
false
false
2,423
rd
%% %% WARNING! DO NOT EDIT! %% This file is automatically generated from set.default.arguments.R %% \name{control.group} \alias{control.group} \alias{inla.control.group} \alias{inla.set.control.group.default} \alias{set.control.group.default} \alias{control.group.default} \title{Control variables in control.group} \des...
library(GEOmap) ### Name: plotusa ### Title: Map of USA ### Aliases: plotusa ### Keywords: hplot ### ** Examples ## Not run: ##D library(geomapdata) ##D data(package='geomapdata', "USAmap") ##D plotusa(USAmap) ##D ## End(Not run)
/data/genthat_extracted_code/GEOmap/examples/plotusa.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
240
r
library(GEOmap) ### Name: plotusa ### Title: Map of USA ### Aliases: plotusa ### Keywords: hplot ### ** Examples ## Not run: ##D library(geomapdata) ##D data(package='geomapdata', "USAmap") ##D plotusa(USAmap) ##D ## End(Not run)
#' write_rbr #' #' @param x output from read_rbr #' @param folder_path the folder to export files to #' @param datetime_format one of "ISO","squash","epoch","write.csv" #' @param ... arguments to pass to fwrite #' #' @return #' @export #' write_rbr <- function(x, folder_path, datetime_format = 'write.csv', ...) { fo...
/R/write_rbr.R
no_license
jkennel/transducer
R
false
false
916
r
#' write_rbr #' #' @param x output from read_rbr #' @param folder_path the folder to export files to #' @param datetime_format one of "ISO","squash","epoch","write.csv" #' @param ... arguments to pass to fwrite #' #' @return #' @export #' write_rbr <- function(x, folder_path, datetime_format = 'write.csv', ...) { fo...
source("renv/activate.R") # fix Hugo version options(blogdown.hugo.version = "0.79.0")
/.Rprofile
no_license
petrbouchal/petrbouchal.github.io
R
false
false
88
rprofile
source("renv/activate.R") # fix Hugo version options(blogdown.hugo.version = "0.79.0")
library(dplyr) library(sparklyr) sc Noshow01<-spark_read_csv(sc = sc ,path = "/user/thyrstudio/noshow_data/noshow_dataset_201401.csv",name = "Noshow01",infer_schema = TRUE,header =TRUE,delimiter = ";") spark_read_csv(sc = sc ,path = "/user/thyrstudio/noshow_data/noshow_dataset_201406.csv",name = "Noshow02",infe...
/projects/recep/connect2hdfs.R
no_license
rcpbayindir/overbooking
R
false
false
2,829
r
library(dplyr) library(sparklyr) sc Noshow01<-spark_read_csv(sc = sc ,path = "/user/thyrstudio/noshow_data/noshow_dataset_201401.csv",name = "Noshow01",infer_schema = TRUE,header =TRUE,delimiter = ";") spark_read_csv(sc = sc ,path = "/user/thyrstudio/noshow_data/noshow_dataset_201406.csv",name = "Noshow02",infe...
# A list of R libraries often used if (require(devtools)==FALSE){install.packages("devtools"); library(devtools)} if (require(slidifyLibraries)==FALSE){install_github("slidifyLibraries", "ramnathv"); library(slidifyLibraries)} if (require(slidify)==FALSE){install_github("slidify", "ramnathv")}; library(slidify) if (r...
/lib/allPublicLibraries.R
no_license
Datascience102/SpeedDating
R
false
false
2,565
r
# A list of R libraries often used if (require(devtools)==FALSE){install.packages("devtools"); library(devtools)} if (require(slidifyLibraries)==FALSE){install_github("slidifyLibraries", "ramnathv"); library(slidifyLibraries)} if (require(slidify)==FALSE){install_github("slidify", "ramnathv")}; library(slidify) if (r...
#' --- #' title: "Data: thirst" #' author: "Ivan Jacob Agaloos Pesigan" #' date: "`r Sys.Date()`" #' output: #' rmarkdown::html_vignette: #' toc: true #' --- #' #+ data thirst <- read.csv( "data_raw_thirst.csv", ) head(thirst) str(thirst) #' #+ usedata usethis::use_data( thirst, overwrite = TRUE )
/data_raw/data_raw_thirst.R
permissive
jeksterslabds/jeksterslabRdatarepo
R
false
false
311
r
#' --- #' title: "Data: thirst" #' author: "Ivan Jacob Agaloos Pesigan" #' date: "`r Sys.Date()`" #' output: #' rmarkdown::html_vignette: #' toc: true #' --- #' #+ data thirst <- read.csv( "data_raw_thirst.csv", ) head(thirst) str(thirst) #' #+ usedata usethis::use_data( thirst, overwrite = TRUE )
## advanced vis df <- readCensus(local=FALSE) df$popChange <- df$july11pop - df$july10pop df$percentChange <- df$popChange/df$july10pop * 100 # coloured fill graph g_fill <- ggplot(df, aes(x=reorder(stateName, july11pop), y=july11pop, fill=percentChange)) g_fill <- g_fill + ...
/ch12/advanced_vis.R
no_license
gertsfert/intro_ds
R
false
false
2,376
r
## advanced vis df <- readCensus(local=FALSE) df$popChange <- df$july11pop - df$july10pop df$percentChange <- df$popChange/df$july10pop * 100 # coloured fill graph g_fill <- ggplot(df, aes(x=reorder(stateName, july11pop), y=july11pop, fill=percentChange)) g_fill <- g_fill + ...
spamPath = "C:/Users/dbozdog/Desktop/FE582/Lecture_8/RSpamData" list.dirs(spamPath, full.names = FALSE) list.files(path = paste(spamPath, "messages", sep = .Platform$file.sep)) head(list.files(path = paste(spamPath, "messages", "spam", sep = .Platform$file.sep)))...
/lectures/week12/Lecture_8_R_code_S21.R
no_license
nnagarajan/MSFA-FE582
R
false
false
11,153
r
spamPath = "C:/Users/dbozdog/Desktop/FE582/Lecture_8/RSpamData" list.dirs(spamPath, full.names = FALSE) list.files(path = paste(spamPath, "messages", sep = .Platform$file.sep)) head(list.files(path = paste(spamPath, "messages", "spam", sep = .Platform$file.sep)))...
## ## download.R - download the dataset for the project ## ---------------------------------------------------------- ## "Getting and Cleaning Data" Course Project: ## https://class.coursera.org/getdata-014 ## ---------------------------------------------------------- ## Solution (c) Thiago Sigrist 2015. ## library(do...
/download.R
permissive
sigriston/getdata-014-project
R
false
false
503
r
## ## download.R - download the dataset for the project ## ---------------------------------------------------------- ## "Getting and Cleaning Data" Course Project: ## https://class.coursera.org/getdata-014 ## ---------------------------------------------------------- ## Solution (c) Thiago Sigrist 2015. ## library(do...
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, NaN, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, NA, 6.68889884134308e+51, Inf, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, NaN, 1.86807199752012e+112, 2.0865...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615768494-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
598
r
testlist <- list(b = numeric(0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, NaN, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, NA, 6.68889884134308e+51, Inf, -3.52601820453991e+43, -1.49815227045093e+197, -2.61605817623304e+76, NaN, 1.86807199752012e+112, 2.0865...
library(tidyverse) df1 <- structure(list(ID = 1:5, hello = c(NA, NA, 10L, 4L, NA), world = c(NA, NA, 8L, 17L, NA), hockey = c(7L, 2L, 8L, 5L, 3L), soccer = c(4L, 5L, 23L, 12L, 43L)), row.names = c(NA, -5L), class = c("tbl_df", "tbl", "data.frame"), spec = structure(list(cols = list(ID = structure(list(), class = c("col...
/stackoverflow/merge_with_missings.R
no_license
Zedseayou/reprexes
R
false
false
1,569
r
library(tidyverse) df1 <- structure(list(ID = 1:5, hello = c(NA, NA, 10L, 4L, NA), world = c(NA, NA, 8L, 17L, NA), hockey = c(7L, 2L, 8L, 5L, 3L), soccer = c(4L, 5L, 23L, 12L, 43L)), row.names = c(NA, -5L), class = c("tbl_df", "tbl", "data.frame"), spec = structure(list(cols = list(ID = structure(list(), class = c("col...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GRS_analysis_functions.R \name{calculate.llk.grid.wrapper} \alias{calculate.llk.grid.wrapper} \title{Wrapper function to use with parallel package} \usage{ calculate.llk.grid.wrapper(d) } \arguments{ \item{d}{input} } \description{ Wrapper fu...
/TreeWAS/man/man/calculate.llk.grid.wrapper.Rd
permissive
alenzhao/TreeWAS
R
false
true
401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GRS_analysis_functions.R \name{calculate.llk.grid.wrapper} \alias{calculate.llk.grid.wrapper} \title{Wrapper function to use with parallel package} \usage{ calculate.llk.grid.wrapper(d) } \arguments{ \item{d}{input} } \description{ Wrapper fu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_covid_sources.R \name{get_who_covid} \alias{get_who_covid} \title{get_who_covid} \usage{ get_who_covid(countries_dates) } \arguments{ \item{countries_dates}{Optional. If not provided, will use the package provided countries_data and add_c...
/man/get_who_covid.Rd
permissive
randyyee/ITFAnalytics
R
false
true
471
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_covid_sources.R \name{get_who_covid} \alias{get_who_covid} \title{get_who_covid} \usage{ get_who_covid(countries_dates) } \arguments{ \item{countries_dates}{Optional. If not provided, will use the package provided countries_data and add_c...
"tacvfARMA" <- function(phi = numeric(0), theta = numeric(0), maxlag = 20, useCt = TRUE, sigma2 = 1) { if(useCt) { dd <- function(x, y, ml) .C("tacvfARMA_C", as.double(x), as.integer(length(x)), as.double(y), as.integer(length(y)), as.integer(ml), res = double(ml+1))$res return(sigma2*dd(phi, theta, max...
/cents/R/tacfARMA.R
no_license
ingted/R-Examples
R
false
false
1,659
r
"tacvfARMA" <- function(phi = numeric(0), theta = numeric(0), maxlag = 20, useCt = TRUE, sigma2 = 1) { if(useCt) { dd <- function(x, y, ml) .C("tacvfARMA_C", as.double(x), as.integer(length(x)), as.double(y), as.integer(length(y)), as.integer(ml), res = double(ml+1))$res return(sigma2*dd(phi, theta, max...
#' Randomly sample within a stratification raster extent. #' @family sample functions #' #' @param sraster spatRaster. Stratification raster to be used for sampling. #' @param n Numeric. Number of desired samples. #' @param mindist Numeric. Minimum allowable distance between selected #' samples. Default = 100. #' @par...
/R/sample_srs.R
permissive
rubenvalpue/sgsR
R
false
false
5,187
r
#' Randomly sample within a stratification raster extent. #' @family sample functions #' #' @param sraster spatRaster. Stratification raster to be used for sampling. #' @param n Numeric. Number of desired samples. #' @param mindist Numeric. Minimum allowable distance between selected #' samples. Default = 100. #' @par...
#' Get title for \code{view_xifti_surface} or \code{view_xifti_volume} #' #' Determine the title(s) for the cortical surface or subcortical volume plot, #' if it was not provided by the user. #' #' @param title Title text or \code{NULL} #' @param xifti_meta \code{xifti$meta} #' @param this_idx The index #' @param ce...
/R/view_xifti.R
no_license
mandymejia/ciftiTools
R
false
false
15,051
r
#' Get title for \code{view_xifti_surface} or \code{view_xifti_volume} #' #' Determine the title(s) for the cortical surface or subcortical volume plot, #' if it was not provided by the user. #' #' @param title Title text or \code{NULL} #' @param xifti_meta \code{xifti$meta} #' @param this_idx The index #' @param ce...
# Performace library(ROCR) ix.remove = (ad.test$OperatingSystem == "Windows 2000") | (ad.test$StateRegion == "NB") # Temporary yhat.fwd = predict(fit.fwd.select, newdata = ad.test[!ix.remove,ix], type = "response") pred.fwd = prediction(yhat.fwd, ad.test$TotalConversions[!ix.remove]) auc.fwd = performance(pred.fwd,...
/andrew/bin/2014.2.29_08.50/performance.R
no_license
aph2126/ADA-Project
R
false
false
389
r
# Performace library(ROCR) ix.remove = (ad.test$OperatingSystem == "Windows 2000") | (ad.test$StateRegion == "NB") # Temporary yhat.fwd = predict(fit.fwd.select, newdata = ad.test[!ix.remove,ix], type = "response") pred.fwd = prediction(yhat.fwd, ad.test$TotalConversions[!ix.remove]) auc.fwd = performance(pred.fwd,...
####rrBLUP method ####import the genotype data myY <- read.csv("data/myY.112.4877.csv") myGD <- read.csv("data/myGD.112.4877.csv",row.names=1) myGM <- read.csv("data/myGM.112.4877.csv") myQ<- read.csv("data/myQ.112.4877.csv",row.names=1) str(myQ) ###tansform the genotype data set into rrblup data set myGDt <- t(myGD)-1...
/7-1RR-BLUP-gwas.R
no_license
dumplinggy/Miscanthus
R
false
false
2,738
r
####rrBLUP method ####import the genotype data myY <- read.csv("data/myY.112.4877.csv") myGD <- read.csv("data/myGD.112.4877.csv",row.names=1) myGM <- read.csv("data/myGM.112.4877.csv") myQ<- read.csv("data/myQ.112.4877.csv",row.names=1) str(myQ) ###tansform the genotype data set into rrblup data set myGDt <- t(myGD)-1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{OrdersCreateTestOrderRequest} \alias{OrdersCreateTestOrderRequest} \title{OrdersCreateTestOrderRequest Object} \usage{ OrdersCreateTestOrderRequest(templateName = NULL, testOrder = NULL) } \arguments{ \item{templateNam...
/googlecontentv2.auto/man/OrdersCreateTestOrderRequest.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
690
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content_objects.R \name{OrdersCreateTestOrderRequest} \alias{OrdersCreateTestOrderRequest} \title{OrdersCreateTestOrderRequest Object} \usage{ OrdersCreateTestOrderRequest(templateName = NULL, testOrder = NULL) } \arguments{ \item{templateNam...
library(restez) ### Name: count_db_ids ### Title: Return the number of ids ### Aliases: count_db_ids ### ** Examples library(restez) restez_path_set(filepath = tempdir()) demo_db_create(n = 5) restez_connect() (count_db_ids()) # delete demo after example db_delete(everything = TRUE)
/data/genthat_extracted_code/restez/examples/count_db_ids.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
292
r
library(restez) ### Name: count_db_ids ### Title: Return the number of ids ### Aliases: count_db_ids ### ** Examples library(restez) restez_path_set(filepath = tempdir()) demo_db_create(n = 5) restez_connect() (count_db_ids()) # delete demo after example db_delete(everything = TRUE)
/scripts_old/scripts/ejemplo_170810.R
no_license
EncisoAlvaJC/TESIS
R
false
false
9,226
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EAS_to_TAS.R \name{EAS_to_TAS} \alias{EAS_to_TAS} \title{Convert Equivalent Airspeed to True Airspeed} \source{ US Navy, FAA (1965-01-02) Aerodynamics for Naval Aviators (NAVAIR/NAVWEPS 00-80T-80) \url{https://www.faa.gov/regulations_policies...
/man/EAS_to_TAS.Rd
no_license
peconeto/safetydata
R
false
true
1,641
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EAS_to_TAS.R \name{EAS_to_TAS} \alias{EAS_to_TAS} \title{Convert Equivalent Airspeed to True Airspeed} \source{ US Navy, FAA (1965-01-02) Aerodynamics for Naval Aviators (NAVAIR/NAVWEPS 00-80T-80) \url{https://www.faa.gov/regulations_policies...
#time series analysis rm(list=ls()) tic <- Sys.time() Sys <- Sys.info() source('HILL_BiOp_functions.R') library(jagsUI) library(coda) save.RData <- T save.fig <- T plot.fig <- T MCMC.n.chains <- 5 MCMC.n.samples <- 250000 MCMC.n.burnin <- 150000 MCMC.n.thin <- 50 MCMC.params <- list(n.chains = MCMC.n.chains, ...
/time_series_JM_SSAR1_pois_pois_var_theta_1999_jagsUI.R
no_license
mteguchi/HILL_BiOp
R
false
false
5,901
r
#time series analysis rm(list=ls()) tic <- Sys.time() Sys <- Sys.info() source('HILL_BiOp_functions.R') library(jagsUI) library(coda) save.RData <- T save.fig <- T plot.fig <- T MCMC.n.chains <- 5 MCMC.n.samples <- 250000 MCMC.n.burnin <- 150000 MCMC.n.thin <- 50 MCMC.params <- list(n.chains = MCMC.n.chains, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tfunctions.r \name{amprod} \alias{amprod} \title{Array-matrix product} \usage{ amprod(A, M, k) } \arguments{ \item{A}{a real valued array} \item{M}{a real matrix} \item{k}{an integer, a mode of \code{A}} } \description{ Multiply an array by...
/man/amprod.Rd
no_license
MikeKozelMSU/mcmcFunc
R
false
true
572
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tfunctions.r \name{amprod} \alias{amprod} \title{Array-matrix product} \usage{ amprod(A, M, k) } \arguments{ \item{A}{a real valued array} \item{M}{a real matrix} \item{k}{an integer, a mode of \code{A}} } \description{ Multiply an array by...
testlist <- list(bytes1 = c(-1583242847L, -1583242847L, -1583242847L, -1583242847L, -1583284224L, 33751253L, -583864960L, 128L, 524416L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612802610-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
486
r
testlist <- list(bytes1 = c(-1583242847L, -1583242847L, -1583242847L, -1583242847L, -1583284224L, 33751253L, -583864960L, 128L, 524416L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
library(shiny) bigrams <- readRDS("data/bigrams.rds") cleanPhrase <- function(phrase) { # drop letter case phrase <- tolower(phrase) # remove punctuation phrase <- gsub('[[:punct:]’]', ' ', phrase) # remove non-words phrase <- gsub('[^[:lower:] ]', '', phrase) # get word list words <- ...
/capstone/prediction_app/server.R
permissive
popotam/datasciencecoursera
R
false
false
2,055
r
library(shiny) bigrams <- readRDS("data/bigrams.rds") cleanPhrase <- function(phrase) { # drop letter case phrase <- tolower(phrase) # remove punctuation phrase <- gsub('[[:punct:]’]', ' ', phrase) # remove non-words phrase <- gsub('[^[:lower:] ]', '', phrase) # get word list words <- ...
library(forecast) library(rminer) cat("read time series:") TS=read.table("hourly-males.ts",header=TRUE,sep=",") TS=TS$ts # vector of numeric mpause("show graph") tsdisplay(TS) L=length(TS) H=84 # number of predictions # time series monthly object: TR=ts(TS,frequency=84,start=1,end=L-H) # holt winters: mpause("model...
/P1/hourly-males_7days.R
no_license
NunoEFreitas/SAIN---2015---R
R
false
false
1,564
r
library(forecast) library(rminer) cat("read time series:") TS=read.table("hourly-males.ts",header=TRUE,sep=",") TS=TS$ts # vector of numeric mpause("show graph") tsdisplay(TS) L=length(TS) H=84 # number of predictions # time series monthly object: TR=ts(TS,frequency=84,start=1,end=L-H) # holt winters: mpause("model...
## code to retrieve and import the edited BBS bibliographygoes here dir<-here::here("data-raw") # grab bbs citations (exported to the package via their webpage) ----------------------------------- path <- tolower(list.files( dir, pattern = "bbs-enhanced.csv", full.names = TRUE )) bbs.enhanced <- read.c...
/data-raw/bbsenhanced.R
permissive
trashbirdecology/pwrcbibs
R
false
false
855
r
## code to retrieve and import the edited BBS bibliographygoes here dir<-here::here("data-raw") # grab bbs citations (exported to the package via their webpage) ----------------------------------- path <- tolower(list.files( dir, pattern = "bbs-enhanced.csv", full.names = TRUE )) bbs.enhanced <- read.c...
#' @templateVar class speedglm #' @template title_desc_tidy #' #' @param x A `speedglm` object returned from [speedglm::speedglm()]. #' @template param_confint #' @template param_exponentiate #' @template param_unused_dots #' #' @evalRd return_tidy(regression = TRUE) #' #' @examples #' #' library(speedglm) #' #' clot...
/R/speedglm-speedglm-tidiers.R
no_license
Proloy2018/broom
R
false
false
1,974
r
#' @templateVar class speedglm #' @template title_desc_tidy #' #' @param x A `speedglm` object returned from [speedglm::speedglm()]. #' @template param_confint #' @template param_exponentiate #' @template param_unused_dots #' #' @evalRd return_tidy(regression = TRUE) #' #' @examples #' #' library(speedglm) #' #' clot...
library(tauturri) ### Name: get_user_ips ### Title: Get User IPs ### Aliases: get_user_ips ### ** Examples ## Not run: ##D get_user_ips(user_id = 192023) ## End(Not run)
/data/genthat_extracted_code/tauturri/examples/get_user_ips.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
178
r
library(tauturri) ### Name: get_user_ips ### Title: Get User IPs ### Aliases: get_user_ips ### ** Examples ## Not run: ##D get_user_ips(user_id = 192023) ## End(Not run)
# Function draws sub-metering data for a two day data period # (01/02/2007-02/02/2007) from the Electric Power Consumption dataset from the # UC Irvine Machine Learning Repository : http://archive.ics.uci.edu/ml/ # # Args: # - filename: if provided, a png file with the provided name will be created, otherwise, #...
/plot3.R
no_license
maciekrb/ExData_Plotting1
R
false
false
1,472
r
# Function draws sub-metering data for a two day data period # (01/02/2007-02/02/2007) from the Electric Power Consumption dataset from the # UC Irvine Machine Learning Repository : http://archive.ics.uci.edu/ml/ # # Args: # - filename: if provided, a png file with the provided name will be created, otherwise, #...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{PartialRisk} \alias{PartialRisk} \title{Partial risk components} \usage{ PartialRisk(fit, newZ = fit$Z, groups = fit$groups) } \arguments{ \item{fit}{The CoxRFX fit} \item{newZ}{New data, defaults to fit$Z} \item{groups}{The groups, defaults to fit$groups} } ...
/CoxHD/man/PartialRisk.Rd
no_license
mg14/CoxHD
R
false
false
420
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{PartialRisk} \alias{PartialRisk} \title{Partial risk components} \usage{ PartialRisk(fit, newZ = fit$Z, groups = fit$groups) } \arguments{ \item{fit}{The CoxRFX fit} \item{newZ}{New data, defaults to fit$Z} \item{groups}{The groups, defaults to fit$groups} } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-dotplot.r \name{geom_dotplot} \alias{geom_dotplot} \title{Dot plot} \usage{ geom_dotplot( mapping = NULL, data = NULL, position = "identity", ..., binwidth = NULL, binaxis = "x", method = "dotdensity", binpositions = "byg...
/man/geom_dotplot.Rd
permissive
zawkzaw/ggplot2
R
false
true
8,042
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-dotplot.r \name{geom_dotplot} \alias{geom_dotplot} \title{Dot plot} \usage{ geom_dotplot( mapping = NULL, data = NULL, position = "identity", ..., binwidth = NULL, binaxis = "x", method = "dotdensity", binpositions = "byg...
# load required libraries library("RSQLite") library(stringr) library(plyr) library(dplyr) # Open SQL Database con = dbConnect(SQLite(), dbname="bpscrape.sqlite") # get a list of all tables alltables = dbListTables(con) # get the Escorts table as a data.frame escorts = dbGetQuery( con,'select * from Escorts' ) # get ...
/bptrafficking.R
no_license
gbelton/bptrafficking
R
false
false
4,719
r
# load required libraries library("RSQLite") library(stringr) library(plyr) library(dplyr) # Open SQL Database con = dbConnect(SQLite(), dbname="bpscrape.sqlite") # get a list of all tables alltables = dbListTables(con) # get the Escorts table as a data.frame escorts = dbGetQuery( con,'select * from Escorts' ) # get ...
reconstruct <- function(WT, my.series = 1, lvl = 0, only.coi = FALSE, only.sig = TRUE, siglvl = 0.05, only.ridge = FALSE, sel.period = NULL, sel.lower = NULL, sel.upper = NULL, rescale = TRUE, plot.waves = FALSE, plot.rec = TRUE, lty = 1, lwd = 1, col = 1:2, ylim = NULL,...
/R/reconstruct.R
no_license
Losses/WaveletComp
R
false
false
26,315
r
reconstruct <- function(WT, my.series = 1, lvl = 0, only.coi = FALSE, only.sig = TRUE, siglvl = 0.05, only.ridge = FALSE, sel.period = NULL, sel.lower = NULL, sel.upper = NULL, rescale = TRUE, plot.waves = FALSE, plot.rec = TRUE, lty = 1, lwd = 1, col = 1:2, ylim = NULL,...
library(ggplot2) NEI<-readRDS("summarySCC_PM25.rds") SCC<-readRDS("Source_Classification_Code.rds") Coal<-SCC[grep("Coal",SCC$SCC.Level.Three),] g<-NEI[NEI$SCC %in% Coal$SCC,] png("plot4.png",width=480,height=480) ggplot(g,aes(x=as.factor(year),y=Emissions))+stat_summary(fun.y=mean,geom="bar")+xlab(label="Years") dev.o...
/Project2/Plot4.R
no_license
muammara/JHExploratoryDataAnalysis
R
false
false
325
r
library(ggplot2) NEI<-readRDS("summarySCC_PM25.rds") SCC<-readRDS("Source_Classification_Code.rds") Coal<-SCC[grep("Coal",SCC$SCC.Level.Three),] g<-NEI[NEI$SCC %in% Coal$SCC,] png("plot4.png",width=480,height=480) ggplot(g,aes(x=as.factor(year),y=Emissions))+stat_summary(fun.y=mean,geom="bar")+xlab(label="Years") dev.o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_and_split.R \name{split_population.agraph_fit} \alias{split_population.agraph_fit} \title{Reverse a projection of samples to populations.} \usage{ \method{split_population}{agraph_fit}(x) } \arguments{ \item{x}{The projected data or a...
/man/split_population.agraph_fit.Rd
no_license
guzhongru/admixture_graph
R
false
true
422
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_and_split.R \name{split_population.agraph_fit} \alias{split_population.agraph_fit} \title{Reverse a projection of samples to populations.} \usage{ \method{split_population}{agraph_fit}(x) } \arguments{ \item{x}{The projected data or a...
RsqGLM <- function(model = NULL, obs = NULL, pred = NULL, use = "pairwise.complete.obs", plot = TRUE, plot.type = "lollipop", ...) { # version 1.9 (5 Jan 2023) model.provided <- ifelse(is.null(model), FALSE, TRUE) if (model.provided) { if (!("glm" %in% class(model))) stop ("'model' must b...
/R/RsqGLM.R
no_license
cran/modEvA
R
false
false
3,533
r
RsqGLM <- function(model = NULL, obs = NULL, pred = NULL, use = "pairwise.complete.obs", plot = TRUE, plot.type = "lollipop", ...) { # version 1.9 (5 Jan 2023) model.provided <- ifelse(is.null(model), FALSE, TRUE) if (model.provided) { if (!("glm" %in% class(model))) stop ("'model' must b...
#Zadanie 1 podzielnoscLiczb <- function(a,b) { if(a %% b == 0) return(TRUE) else return(FALSE) } print(podzielnoscLiczb(4,2)) print(podzielnoscLiczb(5,2)) #Zadanie 2 print("Średnia predkosc z calej trasy: ") print((120 + 90)/2) # Zadanie 3 x<- c(1,2,1,3,1) y<- c(1,1,1,1,2) pearsonCalc <-function(x,y){ if(...
/MichalWiewiorko1.R
no_license
Horytnik/R_Training
R
false
false
2,385
r
#Zadanie 1 podzielnoscLiczb <- function(a,b) { if(a %% b == 0) return(TRUE) else return(FALSE) } print(podzielnoscLiczb(4,2)) print(podzielnoscLiczb(5,2)) #Zadanie 2 print("Średnia predkosc z calej trasy: ") print((120 + 90)/2) # Zadanie 3 x<- c(1,2,1,3,1) y<- c(1,1,1,1,2) pearsonCalc <-function(x,y){ if(...