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
#' Disease and antimicrobial surveillance in chicken farms #' #' Data collected in the ViParc project (http://viparc.org). #' #' @format A data frame with 2226 rows and 9 variables: #' \describe{ #' \item{FARMCODE}{code of the farm, character.} #' \item{CYCLE}{number of the cycle, integer.} #' \item{WEEK}{number ...
/R/data.R
no_license
viparc/viparc
R
false
false
4,041
r
#' Disease and antimicrobial surveillance in chicken farms #' #' Data collected in the ViParc project (http://viparc.org). #' #' @format A data frame with 2226 rows and 9 variables: #' \describe{ #' \item{FARMCODE}{code of the farm, character.} #' \item{CYCLE}{number of the cycle, integer.} #' \item{WEEK}{number ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{xml_atts} \alias{xml_atts} \title{Extract the attributes from a simple xml_node object} \usage{ xml_atts(x) } \arguments{ \item{x}{xml_node with attributes} } \value{ character vector of the attributes } \description{ Extract the...
/man/xml_atts.Rd
permissive
BigelowLab/ndfd
R
false
true
365
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{xml_atts} \alias{xml_atts} \title{Extract the attributes from a simple xml_node object} \usage{ xml_atts(x) } \arguments{ \item{x}{xml_node with attributes} } \value{ character vector of the attributes } \description{ Extract the...
expect_identical(make_filename(2013), 'accident_2013.csv.bz2')
/test/test.R
no_license
cregexp/MyPackage
R
false
false
62
r
expect_identical(make_filename(2013), 'accident_2013.csv.bz2')
#' Risk Aversion Task #' #' @description #' Hierarchical Bayesian Modeling of the Risk Aversion Task with the following parameters: "rho" (risk aversion), "lambda" (loss aversion), and "tau" (inverse temp). #' #' \strong{MODEL:} #' Prospect Theory (Sokol-Hessner et al., 2009, PNAS) #' #' @param data A .txt file contain...
/R/ra_prospect.R
no_license
youngahn/hBayesDM
R
false
false
16,502
r
#' Risk Aversion Task #' #' @description #' Hierarchical Bayesian Modeling of the Risk Aversion Task with the following parameters: "rho" (risk aversion), "lambda" (loss aversion), and "tau" (inverse temp). #' #' \strong{MODEL:} #' Prospect Theory (Sokol-Hessner et al., 2009, PNAS) #' #' @param data A .txt file contain...
/attributeselect.R
no_license
hying99/teachers
R
false
false
7,297
r
library(ggmap) library(rgdal) library(gtable) library(maps) library(mapdata) library(rgeos) source(paste(DIR$'General functions',"\\get_first_number.R",sep="")) source(paste(DIR$'General functions',"formatShape.R",sep="")) this_run<-"base" this_out<-paste("TestPL2",sep="") # basePath<-paste(DIR$'Base',"AT...
/(2)Diagnostic_plots/(01c)plotGivenTracerByBoxAndLayerInclMap.R
no_license
mcgregorv/AtlantisRscripts
R
false
false
6,940
r
library(ggmap) library(rgdal) library(gtable) library(maps) library(mapdata) library(rgeos) source(paste(DIR$'General functions',"\\get_first_number.R",sep="")) source(paste(DIR$'General functions',"formatShape.R",sep="")) this_run<-"base" this_out<-paste("TestPL2",sep="") # basePath<-paste(DIR$'Base',"AT...
##' calculate cepstral coefficients using libassp ##' ##' Short-term cepstral analysis of the signal in <listOfFiles> ##' using the Fast Fourier Transform. The number of ##' coefficients per output record will also equal the ##' FFT length / 2 + 1 (i.e. be non-mirrored). ##' Analysis results will be written to a file w...
/R/cepstrum.R
no_license
IPS-LMU/wrassp
R
false
false
5,864
r
##' calculate cepstral coefficients using libassp ##' ##' Short-term cepstral analysis of the signal in <listOfFiles> ##' using the Fast Fourier Transform. The number of ##' coefficients per output record will also equal the ##' FFT length / 2 + 1 (i.e. be non-mirrored). ##' Analysis results will be written to a file w...
#' plotProtospacerDistribution Function #' #' @param Dat The CRISPRTarget file that is loaded #' @param pval The cutoff pvalue to use for clustering. Default is 0.01 #' @export #' @examples #' plotProtospacerDistribution() plotProtospacerDistribution <- function(Subtype.label = "I-F", dat = targets.dat){ binwidth.va...
/plotProtospacerDistribution.R
no_license
TJN25/CRISPRSpacerTools
R
false
false
3,871
r
#' plotProtospacerDistribution Function #' #' @param Dat The CRISPRTarget file that is loaded #' @param pval The cutoff pvalue to use for clustering. Default is 0.01 #' @export #' @examples #' plotProtospacerDistribution() plotProtospacerDistribution <- function(Subtype.label = "I-F", dat = targets.dat){ binwidth.va...
library(tidyverse) library(tidymodels) trn_targ <- vroom::vroom(here::here("moa/Data/train_targets_scored.csv")) trn <- vroom::vroom(here::here("moa/Data/train_features.csv")) test <- vroom::vroom(here::here("moa/data/test_features.csv")) #getting names outs <- names(trn_targ[,2:207]) trn <- trn %>% mutate(cp_tim...
/moa/R/moa init rf.R
no_license
ekholme/kaggle
R
false
false
1,315
r
library(tidyverse) library(tidymodels) trn_targ <- vroom::vroom(here::here("moa/Data/train_targets_scored.csv")) trn <- vroom::vroom(here::here("moa/Data/train_features.csv")) test <- vroom::vroom(here::here("moa/data/test_features.csv")) #getting names outs <- names(trn_targ[,2:207]) trn <- trn %>% mutate(cp_tim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBResult.R \name{dbFetch} \alias{dbFetch} \alias{fetch} \title{Fetch records from a previously executed query} \usage{ dbFetch(res, n = -1, ...) fetch(res, n = -1, ...) } \arguments{ \item{res}{An object inheriting from \linkS4class{DBIResul...
/man/dbFetch.Rd
no_license
jamieon/DBI
R
false
true
4,840
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DBResult.R \name{dbFetch} \alias{dbFetch} \alias{fetch} \title{Fetch records from a previously executed query} \usage{ dbFetch(res, n = -1, ...) fetch(res, n = -1, ...) } \arguments{ \item{res}{An object inheriting from \linkS4class{DBIResul...
# source("http://bioconductor.org/biocLite.R") # biocLite("GOSim") library(GOSim)
/R_scripts/enrichment.R
no_license
DawnEve/bioToolKit
R
false
false
83
r
# source("http://bioconductor.org/biocLite.R") # biocLite("GOSim") library(GOSim)
#set your own path setwd("~") # Model Selection ---------------- # * AIC Type Criteria ---------------- # local optimum # May need to try different initial models # Where do AIC and BIC comes from? KL divergence/ Bayesian theorem # When do you want to use AIC? What about BIC? library(MASS) example(birthwt) # birth...
/BST 223/LAB2_Model_Selection_Diagnostics.R
no_license
zoubohao/UC_Davis_STA_CS_Coureses
R
false
false
5,698
r
#set your own path setwd("~") # Model Selection ---------------- # * AIC Type Criteria ---------------- # local optimum # May need to try different initial models # Where do AIC and BIC comes from? KL divergence/ Bayesian theorem # When do you want to use AIC? What about BIC? library(MASS) example(birthwt) # birth...
--- title: "R Notebook" output: html_notebook --- ```{r} #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Age.csv") #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Gender.csv") #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Income.csv") data = read.csv("C...
/code/Datathon.R
no_license
mtanghu/Citadel-Central-Datathon-Fall21
R
false
false
8,264
r
--- title: "R Notebook" output: html_notebook --- ```{r} #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Age.csv") #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Gender.csv") #data = read.csv("C:/Users/Jun/Desktop/Courses/Datathon/isCurrent2018Income.csv") data = read.csv("C...
setwd("/work/STAT/ajsage") source("Imputation_VI_Functions.R") library(parallel) library(mlbench) data("BostonHousing") xyabv <- BostonHousing xyabv$chas <- as.numeric(as.character(xyabv$chas)) names(xyabv)[14]="y" #xabv=xyabv[,-14] #yabv=xyabv$y # Calculate the number of cores no_cores <- detectCores() - 1 # Ini...
/Sims/Housing_MNAR.R
no_license
AndrewjSage/Imputation_Variable_Importance
R
false
false
924
r
setwd("/work/STAT/ajsage") source("Imputation_VI_Functions.R") library(parallel) library(mlbench) data("BostonHousing") xyabv <- BostonHousing xyabv$chas <- as.numeric(as.character(xyabv$chas)) names(xyabv)[14]="y" #xabv=xyabv[,-14] #yabv=xyabv$y # Calculate the number of cores no_cores <- detectCores() - 1 # Ini...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-mSet.R \docType{class} \name{mSet-class} \alias{mSet-class} \title{A virtual S4 class to store an quantitative experiment data.} \description{ This is a virtual S4 class to store the entire dataset from a quantitative experiment, such a...
/man/mSet-class.Rd
no_license
zivkovic-lab/Metabase
R
false
true
1,850
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-mSet.R \docType{class} \name{mSet-class} \alias{mSet-class} \title{A virtual S4 class to store an quantitative experiment data.} \description{ This is a virtual S4 class to store the entire dataset from a quantitative experiment, such a...
testlist <- list(x1 = 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), x2 = numeric(0), y1 = numeric(0), y2 = numeric(0)) result <- do.call(palm:::euc_distances,testlist) str(result)
/palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612969062-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
284
r
testlist <- list(x1 = 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), x2 = numeric(0), y1 = numeric(0), y2 = numeric(0)) result <- do.call(palm:::euc_distances,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{compute_contour_vals} \alias{compute_contour_vals} \title{compute contour vals for each pixel} \usage{ compute_contour_vals(marks, now_rates, now_seeds) } \arguments{ \item{marks}{matrix of pixels} \item{now_rates}{the ra...
/man/compute_contour_vals.Rd
permissive
raonyguimaraes/plotmaps
R
false
true
537
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{compute_contour_vals} \alias{compute_contour_vals} \title{compute contour vals for each pixel} \usage{ compute_contour_vals(marks, now_rates, now_seeds) } \arguments{ \item{marks}{matrix of pixels} \item{now_rates}{the ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_spotify_api_token.R \name{get_spotify_api_token} \alias{get_spotify_api_token} \title{Gets a Spotify API token} \usage{ get_spotify_api_token(client_id, client_secret) } \arguments{ \item{client_id}{Your client id. Required.} \item{clien...
/man/get_spotify_api_token.Rd
permissive
LennyyGH/spotidy
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_spotify_api_token.R \name{get_spotify_api_token} \alias{get_spotify_api_token} \title{Gets a Spotify API token} \usage{ get_spotify_api_token(client_id, client_secret) } \arguments{ \item{client_id}{Your client id. Required.} \item{clien...
# multiMSE <- function(MOM, MPs = list(c("AvC","DCAC"),c("FMSYref","curE")), # CheckMPs = FALSE, timelimit = 1, Hist=FALSE, ntrials=50, fracD=0.05, CalcBlow=FALSE, # HZN=2, Bfrac=0.5, AnnualMSY=TRUE, silent=FALSE, PPD=FALSE, parallel=FALSE, # save_name=NULL...
/R/multiMSE_unused.R
no_license
DLMtool/multiMSE
R
false
false
882
r
# multiMSE <- function(MOM, MPs = list(c("AvC","DCAC"),c("FMSYref","curE")), # CheckMPs = FALSE, timelimit = 1, Hist=FALSE, ntrials=50, fracD=0.05, CalcBlow=FALSE, # HZN=2, Bfrac=0.5, AnnualMSY=TRUE, silent=FALSE, PPD=FALSE, parallel=FALSE, # save_name=NULL...
## ----eval=FALSE---------------------------------------------------------- # # If you don't have it yet, install 'devtools': # # install.packages('devtools') # library(devtools) # install_github('IVFL-BOKU/sentinel2') ## ------------------------------------------------------------------------ library(sentinel2) ...
/vignettes/introduction.R
no_license
intiluna/sentinel2
R
false
false
2,939
r
## ----eval=FALSE---------------------------------------------------------- # # If you don't have it yet, install 'devtools': # # install.packages('devtools') # library(devtools) # install_github('IVFL-BOKU/sentinel2') ## ------------------------------------------------------------------------ library(sentinel2) ...
#' @export #' @title Additive-Mean-Standard-Deviation Portfolio Utility Function #' @aliases AMSDP #' @description Compute the utility function x \%*\% mp - gamma^theta * (t(x) \%*\% Cov \%*\% x)^(0.5 * theta) / theta for a portfolio x. #' @param x a numeric n-vector representing a portfolio. #' @param mp a numeri...
/R/AMSDP.R
no_license
cran/GE
R
false
false
1,812
r
#' @export #' @title Additive-Mean-Standard-Deviation Portfolio Utility Function #' @aliases AMSDP #' @description Compute the utility function x \%*\% mp - gamma^theta * (t(x) \%*\% Cov \%*\% x)^(0.5 * theta) / theta for a portfolio x. #' @param x a numeric n-vector representing a portfolio. #' @param mp a numeri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/silicate.R \name{sc_triangle} \alias{sc_triangle} \alias{sc_triangle.default} \alias{sc_triangle.mesh3d} \title{Silicate methods} \usage{ sc_triangle(x, ...) \method{sc_triangle}{default}(x, ...) \method{sc_triangle}{mesh3d}(x, ...) } \argu...
/man/sc_triangle.Rd
no_license
mdsumner/scrgl
R
false
true
496
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/silicate.R \name{sc_triangle} \alias{sc_triangle} \alias{sc_triangle.default} \alias{sc_triangle.mesh3d} \title{Silicate methods} \usage{ sc_triangle(x, ...) \method{sc_triangle}{default}(x, ...) \method{sc_triangle}{mesh3d}(x, ...) } \argu...
#' Medical info on 100,000 randomly sampled births in the US in 2014 #' #' The Centers for Disease Control collects data on all births registered #' in the US (50 states + DC). The #' full data set is provided by the `natality2014` package. #' `Births_2014` is a simplified version of `natality_2014::Natality_2014_100k`...
/R/Births_2014.R
no_license
dtkaplan/SDSdata
R
false
false
2,256
r
#' Medical info on 100,000 randomly sampled births in the US in 2014 #' #' The Centers for Disease Control collects data on all births registered #' in the US (50 states + DC). The #' full data set is provided by the `natality2014` package. #' `Births_2014` is a simplified version of `natality_2014::Natality_2014_100k`...
# The syntax for creating new binary operators in R is unlike anything else in # R, but it allows you to define a new syntax for your function. I would only # recommend making your own binary operator if you plan on using it often! # # User-defined binary operators have the following syntax: # %[whatever]% # wher...
/bin_op.R
no_license
dateshaile/R-Programming
R
false
false
1,042
r
# The syntax for creating new binary operators in R is unlike anything else in # R, but it allows you to define a new syntax for your function. I would only # recommend making your own binary operator if you plan on using it often! # # User-defined binary operators have the following syntax: # %[whatever]% # wher...
source("correlation_features.R") run_features <- function(){ b_quick = T if (b_quick) { filename="../data/train_1/1_999_0.mat" df_1 <- process_file_windows_single(filename) filename="../data/train_1/1_1_1.mat" df_2 <- process_file_windows_single(filename) df <- rbind(df_1, df_2) ...
/R/calc_correlation_features.R
no_license
telvis07/kaggle-melbourne-university-seizure-prediction
R
false
false
2,068
r
source("correlation_features.R") run_features <- function(){ b_quick = T if (b_quick) { filename="../data/train_1/1_999_0.mat" df_1 <- process_file_windows_single(filename) filename="../data/train_1/1_1_1.mat" df_2 <- process_file_windows_single(filename) df <- rbind(df_1, df_2) ...
# Correct hand entry mistakes, and missing information ### INITIALISE ---- # load library library(tidyverse) library(here) # library(validate) library(openxlsx) library(readxl) # load functions from pIndex-00-cache.R path2cache <- here("spreadsheets/cache/pIndex/") # read dataframe index1 <- read_csv(paste0(path2...
/scripts/pIndex-01-correct_names.R
permissive
cynthiahqy/dataset-pcmag
R
false
false
3,176
r
# Correct hand entry mistakes, and missing information ### INITIALISE ---- # load library library(tidyverse) library(here) # library(validate) library(openxlsx) library(readxl) # load functions from pIndex-00-cache.R path2cache <- here("spreadsheets/cache/pIndex/") # read dataframe index1 <- read_csv(paste0(path2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nareit.R \name{get_data_reit_funds} \alias{get_data_reit_funds} \title{REIT fund manager data.} \usage{ get_data_reit_funds(parse_fund_details = TRUE, return_message = TRUE) } \arguments{ \item{parse_fund_details}{\code{TRUE} parses fund deta...
/man/get_data_reit_funds.Rd
permissive
ajiang38740/fundManageR
R
false
true
2,490
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nareit.R \name{get_data_reit_funds} \alias{get_data_reit_funds} \title{REIT fund manager data.} \usage{ get_data_reit_funds(parse_fund_details = TRUE, return_message = TRUE) } \arguments{ \item{parse_fund_details}{\code{TRUE} parses fund deta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_data.R \name{get_data} \alias{get_data} \title{Retrieve sensor or annotation data from package contents} \usage{ get_data(plot_name, type) } \arguments{ \item{plot_name}{A plot name.} \item{type}{Which data object should be returned: "rg...
/man/get_data.Rd
no_license
weecology/NeonTreeEvaluation_package
R
false
true
700
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_data.R \name{get_data} \alias{get_data} \title{Retrieve sensor or annotation data from package contents} \usage{ get_data(plot_name, type) } \arguments{ \item{plot_name}{A plot name.} \item{type}{Which data object should be returned: "rg...
temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) data <- read.table(unz(temp, "household_power_consumption.txt"),header = TRUE, sep = ";",na.strings = "?") unlink(temp) data$Time<-strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S") dat...
/plot3.R
no_license
philipmustang/ExData_Plotting1
R
false
false
800
r
temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) data <- read.table(unz(temp, "household_power_consumption.txt"),header = TRUE, sep = ";",na.strings = "?") unlink(temp) data$Time<-strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S") dat...
14cf7f547ddcd5bf6c48136d7c3343c4 c4_BMC_p2_k2.qdimacs 304 774
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Mangassarian-Veneris/BMC/c4_BMC_p2_k2/c4_BMC_p2_k2.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
61
r
14cf7f547ddcd5bf6c48136d7c3343c4 c4_BMC_p2_k2.qdimacs 304 774
profileBySubHull <- function(fixedlist=NA, otherlist=NULL, extrap=F, locchull=NULL, templateinkg=blackbox.getOption("rosglobal")$par, ##but another $par can be passed if this one is not in locchull subHull_V_and_H, max.only=T, ##this is for generateInitpts() ...
/blackbox/R/profileFn.R
no_license
ingted/R-Examples
R
false
false
16,360
r
profileBySubHull <- function(fixedlist=NA, otherlist=NULL, extrap=F, locchull=NULL, templateinkg=blackbox.getOption("rosglobal")$par, ##but another $par can be passed if this one is not in locchull subHull_V_and_H, max.only=T, ##this is for generateInitpts() ...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function (y) { x <<- y inv <<- NULL } get <- function() x setinverse ...
/cachematrix.R
no_license
ThayaSubramanian/ProgrammingAssignment2
R
false
false
731
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function (y) { x <<- y inv <<- NULL } get <- function() x setinverse ...
#Principal Component analysis #This method is used to find similar patterns/features in dataset # Perform scaled PCA: pr.out pr.out=prcomp(x=pokemon,scale=TRUE,center=TRUE) # Inspect model output summary(pr.out) # Variability of each principal component: pr.var pr.var <- pr.out$sdev^2 # Variance explain...
/pca.r
no_license
yashreds/hello-world
R
false
false
3,158
r
#Principal Component analysis #This method is used to find similar patterns/features in dataset # Perform scaled PCA: pr.out pr.out=prcomp(x=pokemon,scale=TRUE,center=TRUE) # Inspect model output summary(pr.out) # Variability of each principal component: pr.var pr.var <- pr.out$sdev^2 # Variance explain...
library(PASWR2) X <- COWS$butterfat[COWS$breed =="Ayrshire"] Y <- COWS$butterfat[COWS$breed =="Canadian"] t.test(X, Y) FAT <- c(X, Y) R <- 10^4 - 1 TS <- numeric(R) for(i in 1:R){ index <- sample(20, 20, replace = FALSE) TS[i] <- mean(FAT[index]) - mean(FAT[-index]) } pvalue <- ((sum(TS >= abs(t.test(X, Y)$stat)))*...
/Rscripts/Jan21_16.R
permissive
calebjbdavis/STT5812CourseRepo
R
false
false
1,005
r
library(PASWR2) X <- COWS$butterfat[COWS$breed =="Ayrshire"] Y <- COWS$butterfat[COWS$breed =="Canadian"] t.test(X, Y) FAT <- c(X, Y) R <- 10^4 - 1 TS <- numeric(R) for(i in 1:R){ index <- sample(20, 20, replace = FALSE) TS[i] <- mean(FAT[index]) - mean(FAT[-index]) } pvalue <- ((sum(TS >= abs(t.test(X, Y)$stat)))*...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in Rtmph3UnEb/file63ef12109ec3 \name{reshape_comparison_results} \alias{reshape_comparison_results} \title{Convert comparison results to a more general format} \usage{ reshape_comparison_results(oneComparisonResult, includeVars = TRUE, i...
/packages/nimble/man/reshape_comparison_results.Rd
no_license
nxdao2000/nimble
R
false
false
1,236
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in Rtmph3UnEb/file63ef12109ec3 \name{reshape_comparison_results} \alias{reshape_comparison_results} \title{Convert comparison results to a more general format} \usage{ reshape_comparison_results(oneComparisonResult, includeVars = TRUE, i...
9a7c441e00be21932e4e6946add35ca4 query64_query31_1344n.qdimacs 1291 3161
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query64_query31_1344n/query64_query31_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
72
r
9a7c441e00be21932e4e6946add35ca4 query64_query31_1344n.qdimacs 1291 3161
require(ggplot2) require(dplyr) income <- read.csv(file="../01 Data/census-income-data.csv", header=TRUE, sep=",") fatalPoliceShootings <- read.csv(file="../01 Data/fatal-police-shootings-data.csv", header=TRUE, sep=",") incomeOfTheFatallyShot <- read.csv(file="../01 Data/fatal-police-shootings-and-census-income-data...
/data/finalplots.R
no_license
carlos-loya/police-stats
R
false
false
8,050
r
require(ggplot2) require(dplyr) income <- read.csv(file="../01 Data/census-income-data.csv", header=TRUE, sep=",") fatalPoliceShootings <- read.csv(file="../01 Data/fatal-police-shootings-data.csv", header=TRUE, sep=",") incomeOfTheFatallyShot <- read.csv(file="../01 Data/fatal-police-shootings-and-census-income-data...
#### Test differences for within and between group distances for beta ###################################################################### #For PCoA by body sites sep, color by infant pcoa_dir_baby <- paste(main_fp, "beta_div/PCOA_baby/", sep='/') names(baby_colors) <- unique(mapping$subject_id) for(b in 1:length(be...
/bin/beta.div.r
no_license
TonyaWard/fungal_infant1
R
false
false
2,959
r
#### Test differences for within and between group distances for beta ###################################################################### #For PCoA by body sites sep, color by infant pcoa_dir_baby <- paste(main_fp, "beta_div/PCOA_baby/", sep='/') names(baby_colors) <- unique(mapping$subject_id) for(b in 1:length(be...
require(pacman) p_load(tidyverse,RODBC,tidycensus) # create an empty database in MS access # build connection to that database # (must specify full file path, apparently) dta <- odbcConnectAccess2007("C:/Users/Joem/Dropbox (University of Oregon)/My PC (DESKTOP-8RMGF3S)/Documents/howdb/wapo_shootings.accdb") # get th...
/practice1.R
no_license
JoeMitchellNelson/howdb
R
false
false
3,883
r
require(pacman) p_load(tidyverse,RODBC,tidycensus) # create an empty database in MS access # build connection to that database # (must specify full file path, apparently) dta <- odbcConnectAccess2007("C:/Users/Joem/Dropbox (University of Oregon)/My PC (DESKTOP-8RMGF3S)/Documents/howdb/wapo_shootings.accdb") # get th...
## SIA-BRA_biomes # Diniz-Reis et al 2021 # GEB # MixSiar install.packages("MixSIAR") install.packages("ggplot2") library(MixSIAR) library(mcmc) library(ggplot2) # Consumers: 'fish_consumer', 'mammal_consumer','bird_consumer' mix.filename <- system.file("extdata", "consumer.csv", package = "MixSIAR") ...
/SIA_BRA_biomes_MixSIAR.R
permissive
SIA-BRA/SIA-BRA
R
false
false
3,583
r
## SIA-BRA_biomes # Diniz-Reis et al 2021 # GEB # MixSiar install.packages("MixSIAR") install.packages("ggplot2") library(MixSIAR) library(mcmc) library(ggplot2) # Consumers: 'fish_consumer', 'mammal_consumer','bird_consumer' mix.filename <- system.file("extdata", "consumer.csv", package = "MixSIAR") ...
install.packages("e1071") library(e1071) regressor1=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",gamma=1,cost=0.01) regressor2=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",gamma=1,cost=0.1) regressor3=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",g...
/svm_cost.R
no_license
F4rbod/Learning_ML
R
false
false
1,134
r
install.packages("e1071") library(e1071) regressor1=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",gamma=1,cost=0.01) regressor2=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",gamma=1,cost=0.1) regressor3=svm(formula=Profit~R.D.Spend,data=training_set,type="eps-regression",g...
#@since 1.9.1 require rdoc/parser require rdoc/parser/ruby require rdoc/known_classes #@else require rdoc/code_objects require rdoc/parsers/parserfactory require rdoc/options require rdoc/rdoc #@end C 언어 소스 코드에서 내장 클래스와 모듈의 문서를 분석하는 서브 라이브러리입니다. C언어로 쓰여진 확장 라이브러를 분석하는 용도로 쓰입니다. [[f:rb_define_class]]나 [[f:rb_define_me...
/target/rubydoc/refm/api/src/rdoc/parsers/parse_c.rd
no_license
nacyot/omegat-rurima-ruby
R
false
false
4,094
rd
#@since 1.9.1 require rdoc/parser require rdoc/parser/ruby require rdoc/known_classes #@else require rdoc/code_objects require rdoc/parsers/parserfactory require rdoc/options require rdoc/rdoc #@end C 언어 소스 코드에서 내장 클래스와 모듈의 문서를 분석하는 서브 라이브러리입니다. C언어로 쓰여진 확장 라이브러를 분석하는 용도로 쓰입니다. [[f:rb_define_class]]나 [[f:rb_define_me...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_feature_parameters.R \name{calc_df_eff} \alias{calc_df_eff} \title{Calculate the effective degrees of freedom} \usage{ calc_df_eff(X, experimental_design) } \description{ The effective degrees of freedom are the sum of all non NA observat...
/man/calc_df_eff.Rd
no_license
const-ae/proDD
R
false
true
387
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_feature_parameters.R \name{calc_df_eff} \alias{calc_df_eff} \title{Calculate the effective degrees of freedom} \usage{ calc_df_eff(X, experimental_design) } \description{ The effective degrees of freedom are the sum of all non NA observat...
## preparation of success value purchase_volume <- curve(curve31, sales_performance_of_all_companies_previous_period) ## success_value <- list(average_customer_relationship = curve(curve45, average_customer_relationship), ...
/Codes/useless/cal_success_value.R
no_license
RachelAnqi/Sales_training_programme
R
false
false
707
r
## preparation of success value purchase_volume <- curve(curve31, sales_performance_of_all_companies_previous_period) ## success_value <- list(average_customer_relationship = curve(curve45, average_customer_relationship), ...
#' Box plot of the water quality data by month #' #' @description #' Data come from named list, which contains a Sample dataframe with the sample data, #' and an INFO dataframe with metadata. #' #' Box widths are proportional to the square root of the number of samples in the month. #' #' Although there are a lot ...
/R/boxConcMonth.R
permissive
ldecicco-USGS/EGRET
R
false
false
6,670
r
#' Box plot of the water quality data by month #' #' @description #' Data come from named list, which contains a Sample dataframe with the sample data, #' and an INFO dataframe with metadata. #' #' Box widths are proportional to the square root of the number of samples in the month. #' #' Although there are a lot ...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' @describeIn imager.colourspaces RGB to HSL conversion #' @export RGBtoHSL <- function(im) { .Call(`_imager_RGBtoHSL`, im) } #' @describeIn imager.colourspaces CIE RGB to CIE XYZ (1931)...
/R/RcppExports.R
no_license
jalgos/imager
R
false
false
34,505
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' @describeIn imager.colourspaces RGB to HSL conversion #' @export RGBtoHSL <- function(im) { .Call(`_imager_RGBtoHSL`, im) } #' @describeIn imager.colourspaces CIE RGB to CIE XYZ (1931)...
# Decision Making a_matrix = matrix(data = 1:9, nrow = 3, byrow = TRUE) a_list = list(c(1:9), a_matrix) if(is.list(a_list)){ print("A pretty list") }else{ print("Pity!!") } cat("\n") words = c("This", "is", "R Programming") if("R Programming" %in% words){ print("Happy!!") }else{ print("Woe!!") }
/2_Decision_Making_Loops_and_Functions/1_Decision_Making_in_R.R
no_license
officialPrasanta/R_basics
R
false
false
308
r
# Decision Making a_matrix = matrix(data = 1:9, nrow = 3, byrow = TRUE) a_list = list(c(1:9), a_matrix) if(is.list(a_list)){ print("A pretty list") }else{ print("Pity!!") } cat("\n") words = c("This", "is", "R Programming") if("R Programming" %in% words){ print("Happy!!") }else{ print("Woe!!") }
# Zadanie1 set.seed(10) # sianie nasionka n1 = 5 n2 = 10 s1 = 1 s2 = 5 u1 = 0 u2 = 0 Welch <- function(a,n1,n2,u1,u2,s1,s2){ symNum = 10000 #ilosc powtorzen eksperymentu Xe=matrix(rnorm(n1*symNum,u1,s1),n1,symNum) Ye=matrix(rnorm(n2*symNum,u2,s2),n2,symNum) Xme=apply(Xe,2,mean) Xs=c(1:symNum) for (i in 1...
/Lista2/z1.R
no_license
majsylw/statistical-methods-in-biology
R
false
false
1,271
r
# Zadanie1 set.seed(10) # sianie nasionka n1 = 5 n2 = 10 s1 = 1 s2 = 5 u1 = 0 u2 = 0 Welch <- function(a,n1,n2,u1,u2,s1,s2){ symNum = 10000 #ilosc powtorzen eksperymentu Xe=matrix(rnorm(n1*symNum,u1,s1),n1,symNum) Ye=matrix(rnorm(n2*symNum,u2,s2),n2,symNum) Xme=apply(Xe,2,mean) Xs=c(1:symNum) for (i in 1...
packages<-function(x, repos="https://cloud.r-project.org/", ...){ x<-as.character(match.call()[[2]]) if (!require(x,character.only=TRUE)){ install.packages(pkgs=x, repos=repos, ...) require(x,character.only=TRUE) } } packages(arm) packages(dplyr) packages(lattice) pack...
/R_code/FrontMatter.R
no_license
songsqian/mc-chla
R
false
false
1,484
r
packages<-function(x, repos="https://cloud.r-project.org/", ...){ x<-as.character(match.call()[[2]]) if (!require(x,character.only=TRUE)){ install.packages(pkgs=x, repos=repos, ...) require(x,character.only=TRUE) } } packages(arm) packages(dplyr) packages(lattice) pack...
#=============================================================================# # Authors: Alex Perkins, Sean Cavany, Sean Moore, Rachel Oidtman, Anita Lerch, Marya Poterek # project: Estimating unobserved SARS-CoV-2 infections in the United States # Year: 2020 # # Code to generate all figures and results from main te...
/code/script_main.R
permissive
kmfolgar/sarscov2_unobserved
R
false
false
19,559
r
#=============================================================================# # Authors: Alex Perkins, Sean Cavany, Sean Moore, Rachel Oidtman, Anita Lerch, Marya Poterek # project: Estimating unobserved SARS-CoV-2 infections in the United States # Year: 2020 # # Code to generate all figures and results from main te...
library(caTools) library(rms) df = read.csv("./data/redwine.csv") str(df) length(unique(df$quality)) unique(df$quality) library(nnet) s1 = sample.split(df$quality,SplitRatio = 0.8) train = subset(df,s1==T) test = subset(df,s1==F) str(train) str(test) m1 = multinom(quality~.,data=train) pred = predict(m1,test) pred[1:5]...
/Modelling/redwine.R
no_license
gosh76/Rinaction
R
false
false
794
r
library(caTools) library(rms) df = read.csv("./data/redwine.csv") str(df) length(unique(df$quality)) unique(df$quality) library(nnet) s1 = sample.split(df$quality,SplitRatio = 0.8) train = subset(df,s1==T) test = subset(df,s1==F) str(train) str(test) m1 = multinom(quality~.,data=train) pred = predict(m1,test) pred[1:5]...
## Put comments here that give an overall description of what your ## functions do # Creat a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { invX <- NULL set <- function(y) { x <<- y invX <<- NULL } get <- function() x setInv <- function(inv) invX <<- inv getI...
/cachematrix.R
no_license
koenma/ProgrammingAssignment2
R
false
false
656
r
## Put comments here that give an overall description of what your ## functions do # Creat a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { invX <- NULL set <- function(y) { x <<- y invX <<- NULL } get <- function() x setInv <- function(inv) invX <<- inv getI...
library(tidyverse) tbl <- read_table2( "Yr Geo Obs1 Obs2 2001 Dist1 1 3 2002 Dist1 2 5 2003 Dist1 4 2 2004 Dist1 2 1 2001 Dist2 1 3 2002 Dist2 .9 5 2003 Dist2 6 8 2004 Dist2 2 .2" ) tbl %>% gather("obsnum", "obs", Obs1, Obs2) %>%...
/stackoverflow/spread_multiple.R
no_license
Zedseayou/reprexes
R
false
false
434
r
library(tidyverse) tbl <- read_table2( "Yr Geo Obs1 Obs2 2001 Dist1 1 3 2002 Dist1 2 5 2003 Dist1 4 2 2004 Dist1 2 1 2001 Dist2 1 3 2002 Dist2 .9 5 2003 Dist2 6 8 2004 Dist2 2 .2" ) tbl %>% gather("obsnum", "obs", Obs1, Obs2) %>%...
singlemap <- function(IMG =data$demoimage1, CORRECTIONMAT=data$DIFF50, VERBOSE=TRUE, reps=1, LEVEL=6) { #-------------------------------------------------------------- # # TITLE: singlemap() # AUTHOR: TARMO REMMEL # DATE: 23 January 2020 # CALLS: findrow(), findcol(), CARsimu(), cal...
/R/singlemap.R
no_license
cran/ShapePattern
R
false
false
4,071
r
singlemap <- function(IMG =data$demoimage1, CORRECTIONMAT=data$DIFF50, VERBOSE=TRUE, reps=1, LEVEL=6) { #-------------------------------------------------------------- # # TITLE: singlemap() # AUTHOR: TARMO REMMEL # DATE: 23 January 2020 # CALLS: findrow(), findcol(), CARsimu(), cal...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') library(gbm) test.GBM.smallcat <- function(conn) { # Training set has 26 categories from A to Z # Categories A, C, E, G, ... are perfect predictors of y = 1 # Categories B, D, F, H, ... are perfect predictors of y ...
/h2o-r/tests/testdir_algos/gbm/runit_GBM_groupsplit_smallcat.R
permissive
engr3os/h2o-dev
R
false
false
2,950
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') library(gbm) test.GBM.smallcat <- function(conn) { # Training set has 26 categories from A to Z # Categories A, C, E, G, ... are perfect predictors of y = 1 # Categories B, D, F, H, ... are perfect predictors of y ...
t_generalize <- function(w1, w2, cnames1, cnames2) { # Arguments # # w1 = wave1 dataset # w2 = wave2 dataset, which is w1 and w2 merged, actually. # cnames1; cnames2 = character vector of column names; must be same name # Error Handling # if( !identical(cnames1, cnames2) ) { stop("Error: cnames1 and cn...
/R/t_generalize.R
no_license
lorenc5/Rmturkcheck
R
false
false
1,193
r
t_generalize <- function(w1, w2, cnames1, cnames2) { # Arguments # # w1 = wave1 dataset # w2 = wave2 dataset, which is w1 and w2 merged, actually. # cnames1; cnames2 = character vector of column names; must be same name # Error Handling # if( !identical(cnames1, cnames2) ) { stop("Error: cnames1 and cn...
library(EBImage) library(CRImage) require(plyr) require(foreach) require(doSNOW) ncluster <-4 setMKLthreads(n=2) cl <- makeCluster(ncluster) registerDoSNOW(cl) FILES<-dir(path = 'Images/Sample_0_Crop_5_10/',full.names = T)[1:6] areas<-foreach(filei=FILES,.packages = 'EBImage') %dopar% { img<-readImage(filei) ...
/Sample_0_Crop_5_10.R
no_license
mariofajardo/ASWAT
R
false
false
3,484
r
library(EBImage) library(CRImage) require(plyr) require(foreach) require(doSNOW) ncluster <-4 setMKLthreads(n=2) cl <- makeCluster(ncluster) registerDoSNOW(cl) FILES<-dir(path = 'Images/Sample_0_Crop_5_10/',full.names = T)[1:6] areas<-foreach(filei=FILES,.packages = 'EBImage') %dopar% { img<-readImage(filei) ...
##### Set working directory setwd("/Users/tanyangfan/Desktop/data") ##### R packages library(magrittr) library(ISLR) library(caret) library(dplyr) ##### Data work # Read data from xls file exp_clothing <- readxl::read_excel("exp_clothing.xls") # Define the Mean Square Error function mse <- function(x,y) {mean((x-y)...
/Q9.R
no_license
yangfantan1997/localR
R
false
false
1,091
r
##### Set working directory setwd("/Users/tanyangfan/Desktop/data") ##### R packages library(magrittr) library(ISLR) library(caret) library(dplyr) ##### Data work # Read data from xls file exp_clothing <- readxl::read_excel("exp_clothing.xls") # Define the Mean Square Error function mse <- function(x,y) {mean((x-y)...
# importing dataset household_power_consumption <- read.table("household_power_consumption.txt", stringsAsFactors= F, header = T, sep=";", na.strings = "?") #import dataset # convert dates and times household_power_consumption$Time <- strptime(paste(household_power_consumption$Date, household_power_consumption$Time, s...
/plot3.R
no_license
ankitpurohit7/ExData_Plotting1
R
false
false
1,280
r
# importing dataset household_power_consumption <- read.table("household_power_consumption.txt", stringsAsFactors= F, header = T, sep=";", na.strings = "?") #import dataset # convert dates and times household_power_consumption$Time <- strptime(paste(household_power_consumption$Date, household_power_consumption$Time, s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outline_workflow.R \name{outline_workflow} \alias{outline_workflow} \title{Provide a useful outline of a typical tidymodels workflow} \usage{ outline_workflow(prefix = NULL) } \arguments{ \item{prefix}{a character vector} } \value{ a characte...
/man/outline_workflow.Rd
permissive
seanlee0622/sometools
R
false
true
437
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outline_workflow.R \name{outline_workflow} \alias{outline_workflow} \title{Provide a useful outline of a typical tidymodels workflow} \usage{ outline_workflow(prefix = NULL) } \arguments{ \item{prefix}{a character vector} } \value{ a characte...
library(dplyr) library(ggplot2) wyniki <- read.csv("../dane/przetworzone/sumy_laureaty.csv") ggplot(wyniki, aes(j_polski_podstawowa, matematyka_podstawowa)) + geom_bin2d(binwidth=c(1, 1), drop=FALSE)
/eksploracje/histogramy2d.r
no_license
stared/delab-matury
R
false
false
204
r
library(dplyr) library(ggplot2) wyniki <- read.csv("../dane/przetworzone/sumy_laureaty.csv") ggplot(wyniki, aes(j_polski_podstawowa, matematyka_podstawowa)) + geom_bin2d(binwidth=c(1, 1), drop=FALSE)
myarray <- array(dim = c(2, 2, 2)) myarray[2, 1, 1] <- 0 myarray[1, 2, 1] <- 1 myarray[1, 1, 2] <- 2 myarray x <- mat[1,] + 1 myarray[x[1], x[2], x[3]] example(sum) replicate(5,{ n <- 10 rnorm(n) }) system.time({ n <- 10 rnorm() }) order(c(1, 6, 8, 2, 2), c(0, 0, 0, 2, 1)) ? rank(c(1, 6, 8, 2, 2))? rank(c(1, ...
/exercise.R
no_license
lucyliu666/test2
R
false
false
2,416
r
myarray <- array(dim = c(2, 2, 2)) myarray[2, 1, 1] <- 0 myarray[1, 2, 1] <- 1 myarray[1, 1, 2] <- 2 myarray x <- mat[1,] + 1 myarray[x[1], x[2], x[3]] example(sum) replicate(5,{ n <- 10 rnorm(n) }) system.time({ n <- 10 rnorm() }) order(c(1, 6, 8, 2, 2), c(0, 0, 0, 2, 1)) ? rank(c(1, 6, 8, 2, 2))? rank(c(1, ...
\name{di.fn} \alias{di.fn} \title{ \bold{di} function } \description{ Calculates a drug's dosing interval. } \usage{ di.fn(msc, mec, ke) } \arguments{ \item{msc}{ Drug's maximum safe concentration or Cmax (peak) concentration. } \item{mec}{ Drug's minimum effective concentration or Cmin (trough) con...
/man/di.fn.Rd
no_license
cran/cpk
R
false
false
698
rd
\name{di.fn} \alias{di.fn} \title{ \bold{di} function } \description{ Calculates a drug's dosing interval. } \usage{ di.fn(msc, mec, ke) } \arguments{ \item{msc}{ Drug's maximum safe concentration or Cmax (peak) concentration. } \item{mec}{ Drug's minimum effective concentration or Cmin (trough) con...
#' Compute the Hoover coefficient of specialization from regions - industries matrices #' #' This function computes the Hoover coefficient of specialization from regions - industries matrices. The higher the coefficient, the greater the regional specialization. This index is closely related to the Krugman specialisatio...
/R/spec.coeff.r
no_license
PABalland/EconGeo
R
false
false
1,317
r
#' Compute the Hoover coefficient of specialization from regions - industries matrices #' #' This function computes the Hoover coefficient of specialization from regions - industries matrices. The higher the coefficient, the greater the regional specialization. This index is closely related to the Krugman specialisatio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cloudsearch_operations.R \name{delete_index_field} \alias{delete_index_field} \title{Removes an IndexField from the search domain} \usage{ delete_index_field(DomainName, IndexFieldName) } \arguments{ \item{DomainName}{[required]} \item{...
/service/paws.cloudsearch/man/delete_index_field.Rd
permissive
CR-Mercado/paws
R
false
true
828
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cloudsearch_operations.R \name{delete_index_field} \alias{delete_index_field} \title{Removes an IndexField from the search domain} \usage{ delete_index_field(DomainName, IndexFieldName) } \arguments{ \item{DomainName}{[required]} \item{...
#' Calculate negative log posterior #' #' @param theta Correlation parameters #' @param SGGP SGGP object #' @param y Measured values of SGGP$design #' @param ... Just a placeholder #' @param Xs Supplementary input data #' @param ys Supplementary output data #' @param HandlingSuppData How should supplementary data be ha...
/scratch/OldScratch/BackupBeforeBigChanges20190310/R/SGGP_speedup_neglogpost.R
no_license
CollinErickson/CGGP
R
false
false
10,750
r
#' Calculate negative log posterior #' #' @param theta Correlation parameters #' @param SGGP SGGP object #' @param y Measured values of SGGP$design #' @param ... Just a placeholder #' @param Xs Supplementary input data #' @param ys Supplementary output data #' @param HandlingSuppData How should supplementary data be ha...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outputs.R \name{fuzz_results} \alias{fuzz_results} \alias{fuzz_value} \alias{fuzz_call} \title{Access individual fuzz test results} \usage{ fuzz_value(fr, index = NULL, ...) fuzz_call(fr, index = NULL, ...) } \arguments{ \item{fr}{\code{fuzz...
/man/fuzz_results.Rd
no_license
mdlincoln/fuzzr
R
false
true
933
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outputs.R \name{fuzz_results} \alias{fuzz_results} \alias{fuzz_value} \alias{fuzz_call} \title{Access individual fuzz test results} \usage{ fuzz_value(fr, index = NULL, ...) fuzz_call(fr, index = NULL, ...) } \arguments{ \item{fr}{\code{fuzz...
x <- 0:3 p_x <- dhyper(x, 4,5,3) print(p_x[1] + p_x[2] + p_x[3]) #8 with replacement x <- 0:5 p_x <- dbinom(x, 5, 20/130) dist <- data.frame(x, p_x, digits=3) print(dist) #8 without x <- 0:5 p_x <- dhyper(x, 20, 110, 5) dist <- data.frame(x, p_x, digits=3) print(dist) #10b dpois(10,8) #10c dpois(30,32) #11b a <- ...
/notes_ch3.R
no_license
teemal/stats_scripts
R
false
false
567
r
x <- 0:3 p_x <- dhyper(x, 4,5,3) print(p_x[1] + p_x[2] + p_x[3]) #8 with replacement x <- 0:5 p_x <- dbinom(x, 5, 20/130) dist <- data.frame(x, p_x, digits=3) print(dist) #8 without x <- 0:5 p_x <- dhyper(x, 20, 110, 5) dist <- data.frame(x, p_x, digits=3) print(dist) #10b dpois(10,8) #10c dpois(30,32) #11b a <- ...
library(replicationInterval) ### Name: ri.d.demo ### Title: Simulation to demonstrate the meaning of the d-value replication ### interval ### Aliases: ri.d.demo ### ** Examples ri.d.demo(n1=50,n2=50,rep.n1=100,rep.n2=100,pop.d=.50,number.trials=10)
/data/genthat_extracted_code/replicationInterval/examples/ri.d.demo.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
258
r
library(replicationInterval) ### Name: ri.d.demo ### Title: Simulation to demonstrate the meaning of the d-value replication ### interval ### Aliases: ri.d.demo ### ** Examples ri.d.demo(n1=50,n2=50,rep.n1=100,rep.n2=100,pop.d=.50,number.trials=10)
#' CUSUM change detection for a stream in R with known prechange parameters #' #' Original implementation in R of CUSUM change detector, but now #' expecting the prechange mean and variance to be specified. #' #' #' @param stream The stream of observations. #' #' @param BL The burn-in length - this won't actually be us...
/ffstream/R/originalRcodePrechange.R
no_license
akhikolla/InformationHouse
R
false
false
21,101
r
#' CUSUM change detection for a stream in R with known prechange parameters #' #' Original implementation in R of CUSUM change detector, but now #' expecting the prechange mean and variance to be specified. #' #' #' @param stream The stream of observations. #' #' @param BL The burn-in length - this won't actually be us...
# globals expected # processCounties(counties) -> populousCounties #processWB(hhsdata,plans) -> stateSummary #counties <- read.csv("./CO-EST2013-Alldata.csv") processCountyPlans <- function(ctyplans) { state = ctyplans[1,"State"] allCounties[[ctyplans[1,"State"]]] -> popCounties gsub(" COUNTY$","",popCounties[...
/processCountyPlans.R
no_license
rlump/allplans
R
false
false
9,819
r
# globals expected # processCounties(counties) -> populousCounties #processWB(hhsdata,plans) -> stateSummary #counties <- read.csv("./CO-EST2013-Alldata.csv") processCountyPlans <- function(ctyplans) { state = ctyplans[1,"State"] allCounties[[ctyplans[1,"State"]]] -> popCounties gsub(" COUNTY$","",popCounties[...
###For mu_F=0.1 rm(list=ls()) #setwd("C:\\Users\\jiaojin1\\Downloads\\PhD work") library(deSolve) library(reshape) library(ggplot2) library(scales) library(pheatmap) library(tidyverse) ################test #####L is fishing ground while T is MPAs, total area is S JAP08<-functi...
/Fig. S5 code copy.R
permissive
jiaojiaojing84/Ecology_2477
R
false
false
19,074
r
###For mu_F=0.1 rm(list=ls()) #setwd("C:\\Users\\jiaojin1\\Downloads\\PhD work") library(deSolve) library(reshape) library(ggplot2) library(scales) library(pheatmap) library(tidyverse) ################test #####L is fishing ground while T is MPAs, total area is S JAP08<-functi...
#=============================================================================== # gscp_7_set_up_dbms.R #=============================================================================== # Start adding dbms code to replace data frames. # Most of this part is cloned from dbms.initialise.melb.g...
/projects/rdvPackages/biodivprobgen/R/gscp_7_set_up_dbms.R
no_license
langfob/rdv-framework-frozen-google-code-export-do-not-change
R
false
false
2,933
r
#=============================================================================== # gscp_7_set_up_dbms.R #=============================================================================== # Start adding dbms code to replace data frames. # Most of this part is cloned from dbms.initialise.melb.g...
#' Git information #' #' Displays git information from the repository of the current working space. #' #' @param position character with position of the parameter. Default "top right". #' #' @import git2r #' @import shiny #' @import glue #' @export git_info <- function(position = "top right") { repo <- tryCatch({ ...
/R/git.R
no_license
tomdewar/shiny.info
R
false
false
1,151
r
#' Git information #' #' Displays git information from the repository of the current working space. #' #' @param position character with position of the parameter. Default "top right". #' #' @import git2r #' @import shiny #' @import glue #' @export git_info <- function(position = "top right") { repo <- tryCatch({ ...
library(plyr) library(ggplot2) ##pulling data without nas clean <- activity[!is.na(activity$steps),] ##create average number of steps per interval intervalTable <- ddply(clean, .(interval), summarize, Avg = mean(steps)) ##Create line plot of average number of steps per interval p <- ggplot(intervalTable, aes(x=interv...
/averstpr - Copy.R
no_license
Jennik3379/reproducible1
R
false
false
497
r
library(plyr) library(ggplot2) ##pulling data without nas clean <- activity[!is.na(activity$steps),] ##create average number of steps per interval intervalTable <- ddply(clean, .(interval), summarize, Avg = mean(steps)) ##Create line plot of average number of steps per interval p <- ggplot(intervalTable, aes(x=interv...
#' parPBADownloader #' #' @export parPBADownloader #' #' @param concellos Municipality name based on the pbaurls (availables in data) #' @param outdir directory where file structure of downloads and products will be created #' @param ncores number of cores used for the process #' #' @description función to do the same ...
/R/parPBADownloader.R
no_license
cesarkero/PBADownloader
R
false
false
2,132
r
#' parPBADownloader #' #' @export parPBADownloader #' #' @param concellos Municipality name based on the pbaurls (availables in data) #' @param outdir directory where file structure of downloads and products will be created #' @param ncores number of cores used for the process #' #' @description función to do the same ...
#' Search shards. #' #' @export #' @param index One or more indeces #' @param routing A character vector of routing values to take into account #' when determining which shards a request would be executed against. #' @param preference Controls a preference of which shard replicas to execute #' the search request on. ...
/R/search_shards.R
permissive
dpmccabe/elastic
R
false
false
1,475
r
#' Search shards. #' #' @export #' @param index One or more indeces #' @param routing A character vector of routing values to take into account #' when determining which shards a request would be executed against. #' @param preference Controls a preference of which shard replicas to execute #' the search request on. ...
library(plotly) setwd('~/Downloads/battleship/data_visualization') # board size x runtime, for model 1, for 3 propagators (propagators scaling with board size) plot = read.csv('../results/large_board_runtime_model.csv') plot = na.omit(plot) p = plot_ly(plot, x = ~board.size, y = ~bt.runtime1, name = 'model1 BT', ty...
/data_visualization/adv.R
no_license
pyliaorachel/battleship-ai
R
false
false
2,338
r
library(plotly) setwd('~/Downloads/battleship/data_visualization') # board size x runtime, for model 1, for 3 propagators (propagators scaling with board size) plot = read.csv('../results/large_board_runtime_model.csv') plot = na.omit(plot) p = plot_ly(plot, x = ~board.size, y = ~bt.runtime1, name = 'model1 BT', ty...
directory <- "Z:/Covid-19 researches/Movement data" setwd(directory) library(chron) library(gplots) library(signal) library(splines) #movement_data_table <- rbind(read.csv("2020_GR_Region_Mobility_Report.csv",stringsAsFactors=FALSE),read.csv("2021_GR_Region_Mobility_Report.csv",stringsAsFactors=FALSE)) movement_data_t...
/Re-analysis [2021-04-11]/Movement data/Movement data analysis.R
no_license
Hector-Xavier/COVID-19_in_Greece
R
false
false
4,409
r
directory <- "Z:/Covid-19 researches/Movement data" setwd(directory) library(chron) library(gplots) library(signal) library(splines) #movement_data_table <- rbind(read.csv("2020_GR_Region_Mobility_Report.csv",stringsAsFactors=FALSE),read.csv("2021_GR_Region_Mobility_Report.csv",stringsAsFactors=FALSE)) movement_data_t...
library(rgdal) library(plotly) library(gwtools) library(pracma) # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # CREATE MESH INPUT FILE ----------------- # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # load the mesh shapefile and write it to cvhm_mesh_shp <- readOGR(dsn = "../gis_data/", layer = "CVHM_mesh_3310") ...
/Rcvhm/PrepareNPSATproperties.R
no_license
giorgk/CVHM_NPSAT
R
false
false
7,348
r
library(rgdal) library(plotly) library(gwtools) library(pracma) # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # CREATE MESH INPUT FILE ----------------- # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # load the mesh shapefile and write it to cvhm_mesh_shp <- readOGR(dsn = "../gis_data/", layer = "CVHM_mesh_3310") ...
setwd("~/study/GettingData/work_scripts/course project") if(!file.exists("./data")){dir.create("./data")} #setting pathes to read files #folders rootPath <- "./data/" testPath <- "./data/test/" trainPath <- "./data/train/" #test files subjectTestPath <- paste(testPath, "subject_test.txt", sep="") xTestPath <- paste(tes...
/run_analysis.R
no_license
alevashov/getdatacourseproject
R
false
false
3,219
r
setwd("~/study/GettingData/work_scripts/course project") if(!file.exists("./data")){dir.create("./data")} #setting pathes to read files #folders rootPath <- "./data/" testPath <- "./data/test/" trainPath <- "./data/train/" #test files subjectTestPath <- paste(testPath, "subject_test.txt", sep="") xTestPath <- paste(tes...
###final.mod-prediction model ###baselineVar-baseline covariates ###numCarlo-number of monte carlo runs use in G computation ###here I use A0-to denote the first treatment indicator ###treat-treatment indicator (for the treatment that you are interested in estimating the associated potential outcomes) ###treat...
/oneTimePointSimulation/Functions/gcomputeFunc.R
no_license
jasa-acs/Penalized-Spline-of-Propensity-Methods-for-Treatment-Comparison
R
false
false
1,944
r
###final.mod-prediction model ###baselineVar-baseline covariates ###numCarlo-number of monte carlo runs use in G computation ###here I use A0-to denote the first treatment indicator ###treat-treatment indicator (for the treatment that you are interested in estimating the associated potential outcomes) ###treat...
prep_title_fun <- function(title_cfg){ plot_fun <- function(){ # coordinate space (edges, width, height) coord_space <- par()$usr font_y_multiplier <- 1.2 # some extra spacing for Abel str_height <- strheight(title_cfg$subtitle) title_x <- coord_space[1] + title_cfg$x_pos * diff(coord_space[1:2...
/6_visualize/src/prep_title_fun.R
no_license
mhines-usgs/gage-conditions-gif
R
false
false
1,268
r
prep_title_fun <- function(title_cfg){ plot_fun <- function(){ # coordinate space (edges, width, height) coord_space <- par()$usr font_y_multiplier <- 1.2 # some extra spacing for Abel str_height <- strheight(title_cfg$subtitle) title_x <- coord_space[1] + title_cfg$x_pos * diff(coord_space[1:2...
#' @name data_mrn_raw #' #' @title Example of mrn.txt output from RPDR. #' #' @description A mrn.txt output from RPDR loaded into a data table in R using \emph{data.table::fread()}. #' #' **NOTE**: Due to potential issues with PHI and PPI, the example datasets can be downloaded from the #' Partners Gitlab repository un...
/R/data_mrn_raw.R
no_license
yuluc/parseRPDR
R
false
false
1,922
r
#' @name data_mrn_raw #' #' @title Example of mrn.txt output from RPDR. #' #' @description A mrn.txt output from RPDR loaded into a data table in R using \emph{data.table::fread()}. #' #' **NOTE**: Due to potential issues with PHI and PPI, the example datasets can be downloaded from the #' Partners Gitlab repository un...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hdma2.R \name{wrap_mediation} \alias{wrap_mediation} \title{Run mediation analysis for a set of markers} \usage{ wrap_mediation(qval, X, Y, M, covar = NULL, U = NULL, FDR = 0.1, sims = 3, ...) } \arguments{ \item{qval}{set of qValues from max...
/man/wrap_mediation.Rd
no_license
jumentib/hdma2
R
false
true
2,951
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hdma2.R \name{wrap_mediation} \alias{wrap_mediation} \title{Run mediation analysis for a set of markers} \usage{ wrap_mediation(qval, X, Y, M, covar = NULL, U = NULL, FDR = 0.1, sims = 3, ...) } \arguments{ \item{qval}{set of qValues from max...
# entire data frame data_firstread <- read.csv("household_power_consumption.txt", header=TRUE, sep=';', na.strings="?", stringsAsFactors=FALSE, dec="." ) # Date class update data_firstread$Date <- as.Date(data_firstread$Date, format="%d/%m/%Y") #summary(data_fir...
/plot2.R
no_license
mahuq/ExData_Plotting1
R
false
false
941
r
# entire data frame data_firstread <- read.csv("household_power_consumption.txt", header=TRUE, sep=';', na.strings="?", stringsAsFactors=FALSE, dec="." ) # Date class update data_firstread$Date <- as.Date(data_firstread$Date, format="%d/%m/%Y") #summary(data_fir...
############################################### # Code for Decompression Census data cleaning # ############################################### ##################### #Import libraries library(data.table) library(stringr) library(dplyr) transpose_data <- function(dat){ headers <- c("shift", "lane", "clicker", "skipV...
/combine_data_entry_forms.R
no_license
gridge/bm-census-decomp-2017
R
false
false
3,335
r
############################################### # Code for Decompression Census data cleaning # ############################################### ##################### #Import libraries library(data.table) library(stringr) library(dplyr) transpose_data <- function(dat){ headers <- c("shift", "lane", "clicker", "skipV...
# 16-10-2018 # Week 3 #Peer-graded assigment: R Markdown Presentation & Plotly #Read car and truck values from tab-delimited autos.dat autos_data <- read.table("C:/R/autos.dat", header=T, sep="\t") # Compute the largest y value used in the data (or we could # just use range again) max_y <- max(autos_data...
/peer-graded assigment r markdown presentation plotly.r
no_license
Sudhanshu0809/R-Markdown-Presentation-Plotly
R
false
false
1,923
r
# 16-10-2018 # Week 3 #Peer-graded assigment: R Markdown Presentation & Plotly #Read car and truck values from tab-delimited autos.dat autos_data <- read.table("C:/R/autos.dat", header=T, sep="\t") # Compute the largest y value used in the data (or we could # just use range again) max_y <- max(autos_data...
library(data.table) library(data.cube) ### no hierarchy ---------------------------------------------------------- set.seed(1L) ar.dimnames = list(color = sort(c("green","yellow","red")), year = as.character(2011:2015), status = sort(c("active","inactive","archived","removed"))...
/tests/tests-format.R
no_license
AndreMikulec/data.cube
R
false
false
5,059
r
library(data.table) library(data.cube) ### no hierarchy ---------------------------------------------------------- set.seed(1L) ar.dimnames = list(color = sort(c("green","yellow","red")), year = as.character(2011:2015), status = sort(c("active","inactive","archived","removed"))...
# T test # set working directory setwd("~/Desktop/calc_score/matched_stability/graphing/cor_entropy_RSA/") # Load packages library(tidyr) library(ggplot2) library(dplyr) # read data evolved_matched <- read.csv("graph_mean_data_evolved_matched.csv", header = TRUE, sep = "") rosetta_matched <- read.csv("graph_mean_da...
/graphing/cor_entropy_RSA_combo/t_test.R
no_license
clauswilke/evol_sim_vs_rosetta
R
false
false
1,047
r
# T test # set working directory setwd("~/Desktop/calc_score/matched_stability/graphing/cor_entropy_RSA/") # Load packages library(tidyr) library(ggplot2) library(dplyr) # read data evolved_matched <- read.csv("graph_mean_data_evolved_matched.csv", header = TRUE, sep = "") rosetta_matched <- read.csv("graph_mean_da...
# plt_sizeComps.R # Agorithm for sorting factors so plots descend in rows. # 1. get length of 1d ribbon (n) # 2. determine ncol = ceiling(n/sqrt(n)) # 3. determine nrow = ceiling(n/ncol) # 4. convert year vector into matrix with nrow & ncol # 5. transpose & vectorize as.vector(t(matrix(yr,nrow,ncol))) # 6. Use...
/gmr/R4GMACS/plt_sizeComps.R
no_license
seacode/gmacs
R
false
false
4,773
r
# plt_sizeComps.R # Agorithm for sorting factors so plots descend in rows. # 1. get length of 1d ribbon (n) # 2. determine ncol = ceiling(n/sqrt(n)) # 3. determine nrow = ceiling(n/ncol) # 4. convert year vector into matrix with nrow & ncol # 5. transpose & vectorize as.vector(t(matrix(yr,nrow,ncol))) # 6. Use...
#' Compile trial-by-trial results #' #' Compiles a data frame of trial-by-trial results for each participant. #' This function is intended to be called once data have been collected #' for several participants; it allows the researcher to inspect #' test results on a trial-by-trial level. #' #' Suppose that a participa...
/R/compile-trial-by-trial-results.R
permissive
pmcharrison/psychTestRCAT
R
false
false
3,510
r
#' Compile trial-by-trial results #' #' Compiles a data frame of trial-by-trial results for each participant. #' This function is intended to be called once data have been collected #' for several participants; it allows the researcher to inspect #' test results on a trial-by-trial level. #' #' Suppose that a participa...
playoffs = read.csv("data/EM2004.2012.publ.txt", header=TRUE, sep="\t") ## Change attributes to factors playoffs$host = as.factor(playoffs$host) playoffs$host_opponent = as.factor(playoffs$host_opponent) playoffs$vicinity = as.factor(playoffs$vicinity) playoffs$vicinity_opponent = as.factor(playoffs$vicinity_opponent)...
/dataprep.R
no_license
taimir/football_2016
R
false
false
8,350
r
playoffs = read.csv("data/EM2004.2012.publ.txt", header=TRUE, sep="\t") ## Change attributes to factors playoffs$host = as.factor(playoffs$host) playoffs$host_opponent = as.factor(playoffs$host_opponent) playoffs$vicinity = as.factor(playoffs$vicinity) playoffs$vicinity_opponent = as.factor(playoffs$vicinity_opponent)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.os.R \name{os.predict} \alias{os.predict} \title{os.predict} \usage{ os.predict( data, year = 10, age.start, screen, size, grade, nodes, er, her2, ki67, generation, horm, traz, bis ) } \arguments{ \item{dat...
/man/os.predict.Rd
no_license
cran/nhs.predict
R
false
true
2,180
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.os.R \name{os.predict} \alias{os.predict} \title{os.predict} \usage{ os.predict( data, year = 10, age.start, screen, size, grade, nodes, er, her2, ki67, generation, horm, traz, bis ) } \arguments{ \item{dat...
############################################################################### # Function for Regression Stability Analysis # Raul H. Eyzaguirre P. ############################################################################### ## Required functions if ('mve.rcbd.met' %in% lsf.str() == F) if ('MissValEst.R' %in% l...
/RegStab/RegStab.R
no_license
lagvier/StatTools
R
false
false
6,101
r
############################################################################### # Function for Regression Stability Analysis # Raul H. Eyzaguirre P. ############################################################################### ## Required functions if ('mve.rcbd.met' %in% lsf.str() == F) if ('MissValEst.R' %in% l...
setClass("closure", representation( hypotheses = "character", # names of hypotheses alpha = "numeric", # stores chosen alpha for testing adjusted = "numeric", # stores adjusted p-values # (has value 1 if adjusted p > alpha) ...
/R/closed.R
no_license
cran/cherry
R
false
false
10,614
r
setClass("closure", representation( hypotheses = "character", # names of hypotheses alpha = "numeric", # stores chosen alpha for testing adjusted = "numeric", # stores adjusted p-values # (has value 1 if adjusted p > alpha) ...
if (!exists("all.terms")) { message("Loading all possible terms from file ...") load("/Users/khozzy/GodStemIt/IsItGood/src/main/resources/R/data/all.terms.RData") }
/IsItGood/src/main/resources/R/loadAllTerms.R
no_license
Libardo1/GodStemIt
R
false
false
168
r
if (!exists("all.terms")) { message("Loading all possible terms from file ...") load("/Users/khozzy/GodStemIt/IsItGood/src/main/resources/R/data/all.terms.RData") }
#' Unit Conversion - SI Prefixes - Base to Mega- #' #' Mega- millions, 1 000 000, or 10^6 #' #' Performs a conversion from base units to mega-units (ex. grams to megagrams). #' #' @param x Vector - Values in units of base units #' #' @return x, but converted to mega-units #' #' @references #' NIST. Metric (SI) Pr...
/R/unitconversion.siprefix.base.to.mega.R
permissive
burrm/lolcat
R
false
false
7,028
r
#' Unit Conversion - SI Prefixes - Base to Mega- #' #' Mega- millions, 1 000 000, or 10^6 #' #' Performs a conversion from base units to mega-units (ex. grams to megagrams). #' #' @param x Vector - Values in units of base units #' #' @return x, but converted to mega-units #' #' @references #' NIST. Metric (SI) Pr...
# Copyright (C) 2013 - 2019 Metrum Research Group, LLC # # This file is part of mrgsolve. # # mrgsolve is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) an...
/data/genthat_extracted_code/mrgsolve/tests/test-rng.R
no_license
surayaaramli/typeRrh
R
false
false
1,764
r
# Copyright (C) 2013 - 2019 Metrum Research Group, LLC # # This file is part of mrgsolve. # # mrgsolve is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) an...
library(mlbench) data("Ionosphere") dummy<-Ionosphere[ , c(sample(ncol(Ionosphere)-2,15), ncol(Ionosphere)) ] #datos <- Ionosphere[,c(sample(ncol(Ionosphere)-1,15),ncol(Ionosphere))] head(dummy) help("trainControl") #separo datos en train y test datos<- Ionosphere[,c(sample(ncol(Ionosphere)-2,14),ncol(Ionosphere))] i...
/posgrado/clase-2/randomCmds.R
no_license
martinezmelisapamela/r-learning
R
false
false
1,639
r
library(mlbench) data("Ionosphere") dummy<-Ionosphere[ , c(sample(ncol(Ionosphere)-2,15), ncol(Ionosphere)) ] #datos <- Ionosphere[,c(sample(ncol(Ionosphere)-1,15),ncol(Ionosphere))] head(dummy) help("trainControl") #separo datos en train y test datos<- Ionosphere[,c(sample(ncol(Ionosphere)-2,14),ncol(Ionosphere))] i...