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
shinyServer(function(input, output, session) { token <- callModule(googleAuth, "Google_login") ga_accounts <- reactive({ validate(need(token(), "Googleアカウントと連携してください")) with_shiny(ga_account_list, shiny_access_token = token()) }) selected_id <- callModule(authDropdown, "viewId_select", ga.table = ...
/0ShinyBook-梅津/ShinyBook-master/chapter05/07-app-versin4.0/server.R
no_license
luka3117/JcShiny
R
false
false
10,126
r
shinyServer(function(input, output, session) { token <- callModule(googleAuth, "Google_login") ga_accounts <- reactive({ validate(need(token(), "Googleアカウントと連携してください")) with_shiny(ga_account_list, shiny_access_token = token()) }) selected_id <- callModule(authDropdown, "viewId_select", ga.table = ...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.5381825207517e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112923-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
250
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.5381825207517e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
testlist <- list(x = NaN, y = c(1.29849269277858e+219, 1.29849269277858e+219, 1.29849269277858e+219, 1.29849269277858e+219, 2.77595245382422e-309, NaN, -0.124019607843137, -0.124019607843137, -0.124019607843137, -0.124019607843137, -0.124019607843137, -2.22949197607924e+307, NaN, NaN, 1.29849269428443e+219, 1.29849...
/netrankr/inst/testfiles/checkPairs/libFuzzer_checkPairs/checkPairs_valgrind_files/1612798739-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
876
r
testlist <- list(x = NaN, y = c(1.29849269277858e+219, 1.29849269277858e+219, 1.29849269277858e+219, 1.29849269277858e+219, 2.77595245382422e-309, NaN, -0.124019607843137, -0.124019607843137, -0.124019607843137, -0.124019607843137, -0.124019607843137, -2.22949197607924e+307, NaN, NaN, 1.29849269428443e+219, 1.29849...
#cycler_id <- 2 #game_state <- game_status estimate_best_strategy <- function(game_state, deck_status, strategy, cycler_id) { #temp_state[CYCLER_ID > 0] #deck_status[CYCLER_ID == cycler_id] winner_state <- NULL temp_state <- game_state[1 != 0, .(PIECE_ATTRIBUTE, FINISH, GAME_SLOT_ID, SQUARE_ID, CYCLER_ID)] ...
/scripts/old/estimate_best_strategy.R
no_license
Laurigit/flAImme
R
false
false
1,508
r
#cycler_id <- 2 #game_state <- game_status estimate_best_strategy <- function(game_state, deck_status, strategy, cycler_id) { #temp_state[CYCLER_ID > 0] #deck_status[CYCLER_ID == cycler_id] winner_state <- NULL temp_state <- game_state[1 != 0, .(PIECE_ATTRIBUTE, FINISH, GAME_SLOT_ID, SQUARE_ID, CYCLER_ID)] ...
#' Identify regions data by a coverage filter and get a count matrix #' #' Given a set of un-filtered coverage data (see \link{fullCoverage}), create #' candidate regions by applying a cutoff on the coverage values, #' and obtain a count matrix where the number of rows corresponds to the number #' of candidate regions ...
/R/regionMatrix.R
no_license
alexg9010/derfinder
R
false
false
6,406
r
#' Identify regions data by a coverage filter and get a count matrix #' #' Given a set of un-filtered coverage data (see \link{fullCoverage}), create #' candidate regions by applying a cutoff on the coverage values, #' and obtain a count matrix where the number of rows corresponds to the number #' of candidate regions ...
# Source: https://www.r-bloggers.com/naive-bayes-classification-in-r-part-2/ # Data: http://archive.ics.uci.edu/ml/datasets/Breast+Cancer?ref=datanews.io setwd('../naive_bayes') breast_cancer <- read.csv("dataset_13_breast-cancer.csv")#, stringsAsFactors = TRUE) #install.packages('e1071') library(e1071) model <- naiv...
/examples/naive_bayes/bayes_cancer.R
no_license
rosstelli/ml
R
false
false
876
r
# Source: https://www.r-bloggers.com/naive-bayes-classification-in-r-part-2/ # Data: http://archive.ics.uci.edu/ml/datasets/Breast+Cancer?ref=datanews.io setwd('../naive_bayes') breast_cancer <- read.csv("dataset_13_breast-cancer.csv")#, stringsAsFactors = TRUE) #install.packages('e1071') library(e1071) model <- naiv...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Filter.R \name{tiledb_filter_type} \alias{tiledb_filter_type} \title{Returns the type of the filter used} \usage{ tiledb_filter_type(object) } \arguments{ \item{object}{tiledb_filter} } \value{ TileDB filter type string } \description{ Return...
/man/tiledb_filter_type.Rd
permissive
aaronwolen/TileDB-R
R
false
true
415
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Filter.R \name{tiledb_filter_type} \alias{tiledb_filter_type} \title{Returns the type of the filter used} \usage{ tiledb_filter_type(object) } \arguments{ \item{object}{tiledb_filter} } \value{ TileDB filter type string } \description{ Return...
# Biblioteca de titulos publicos # Inicio de desenvolvimento: Aula 3 #' Truncagem de numeros #' #' @param x vetor de numeros para truncagem #' @param n Casas decimais de truncagem #' #' @return vetor truncado #' @export #' #' @examples truncar(1.12345678) truncar = function(x, n) { return(trunc(x * ...
/R/lib/TPF-Br.r
no_license
btebaldi/MetodosQuantitativos
R
false
false
3,259
r
# Biblioteca de titulos publicos # Inicio de desenvolvimento: Aula 3 #' Truncagem de numeros #' #' @param x vetor de numeros para truncagem #' @param n Casas decimais de truncagem #' #' @return vetor truncado #' @export #' #' @examples truncar(1.12345678) truncar = function(x, n) { return(trunc(x * ...
# Changing themes server <- function(input, output, session) {} library(shinythemes) # adding the shinythemese package ui <- fluidPage(themeSelector(), # displaying the different themes, replace this line when publishing with theme = shinytheme("darkly") titlePanel(strong("The STRONG...
/01-basics/07-themes/app.R
no_license
nellac77/interactive-shiny
R
false
false
1,402
r
# Changing themes server <- function(input, output, session) {} library(shinythemes) # adding the shinythemese package ui <- fluidPage(themeSelector(), # displaying the different themes, replace this line when publishing with theme = shinytheme("darkly") titlePanel(strong("The STRONG...
## test_that("ggeffects + sdmTMB", { ## skip_on_cran() ## skip_on_ci() ## skip_if_not_installed("INLA") ## skip_if_not_installed("ggeffects") ## skip_if_not_installed("ggplot2") ## ## pcod_2011$fyear <- as.factor(pcod_2011$year) ## fit <- sdmTMB(present ~ depth_scaled + I(depth_scaled^2) + fyear, ## d...
/tests/testthat/test-ggeffect.R
no_license
pbs-assess/sdmTMB
R
false
false
4,979
r
## test_that("ggeffects + sdmTMB", { ## skip_on_cran() ## skip_on_ci() ## skip_if_not_installed("INLA") ## skip_if_not_installed("ggeffects") ## skip_if_not_installed("ggplot2") ## ## pcod_2011$fyear <- as.factor(pcod_2011$year) ## fit <- sdmTMB(present ~ depth_scaled + I(depth_scaled^2) + fyear, ## d...
(x=c(1,2,3,4,5)) #(x2=c(1,2,,4, ,5)) (x2=c(1,2,NA,4,NA,5)) sum(x2) ?sum sum(x2, na.rm=T) is.na(x2) length(x2) sum(is.na(x2)) length(is.na(x2)) sum(is.na(x2))/length(x2) mean(x2, na.rm=T) x2[is.na(x2)]= mean(x2,na.rm=T) x2 library(VIM) pinstall <- c('rpart', 'rpart.plot', 'catools', 'caret', 'arules', 'arulesviz', 'fac...
/Day3.R
no_license
SabyasachiSadhu/analytics
R
false
false
3,298
r
(x=c(1,2,3,4,5)) #(x2=c(1,2,,4, ,5)) (x2=c(1,2,NA,4,NA,5)) sum(x2) ?sum sum(x2, na.rm=T) is.na(x2) length(x2) sum(is.na(x2)) length(is.na(x2)) sum(is.na(x2))/length(x2) mean(x2, na.rm=T) x2[is.na(x2)]= mean(x2,na.rm=T) x2 library(VIM) pinstall <- c('rpart', 'rpart.plot', 'catools', 'caret', 'arules', 'arulesviz', 'fac...
library(testthat) library(jagstools) test_check("jagstools")
/tests/testthat.R
permissive
al00014/r-jagstools
R
false
false
62
r
library(testthat) library(jagstools) test_check("jagstools")
\name{cosmoFns-package} \alias{cosmoFns-package} \alias{cosmoFns} \docType{package} \title{ Cosmology functions } \description{ Package contains functions for computation of distances and luminosities in a flat cosmology. } \details{ \tabular{ll}{ Package: \tab cosmoFns\cr Type: \tab Package\cr Version: ...
/man/cosmoFns-package.Rd
no_license
cran/cosmoFns
R
false
false
943
rd
\name{cosmoFns-package} \alias{cosmoFns-package} \alias{cosmoFns} \docType{package} \title{ Cosmology functions } \description{ Package contains functions for computation of distances and luminosities in a flat cosmology. } \details{ \tabular{ll}{ Package: \tab cosmoFns\cr Type: \tab Package\cr Version: ...
rm(list=ls()); mh = read.csv("levy-mh.csv") #generate row labels mh$label = paste( mh[,1], mh[,2], mh[,3]) mh$label mh[10:12, ] #change -1 to 0.01 for( r in 1:length(mh[,1])) { #row for ( c in 4:11) { #columns if (mh[r,c] == -1) { mh[r,c] = 0.0001 } if (mh[r,c] == 0) { mh[r,c] = 0.001 } } } #row data = ...
/bio386students,project,folders2012Fall/DorseyBIO386/6.gene.expression/levy-morehouse/qin-v2.R
no_license
hongqin/2012spelman.research.day
R
false
false
1,268
r
rm(list=ls()); mh = read.csv("levy-mh.csv") #generate row labels mh$label = paste( mh[,1], mh[,2], mh[,3]) mh$label mh[10:12, ] #change -1 to 0.01 for( r in 1:length(mh[,1])) { #row for ( c in 4:11) { #columns if (mh[r,c] == -1) { mh[r,c] = 0.0001 } if (mh[r,c] == 0) { mh[r,c] = 0.001 } } } #row data = ...
getwd() hpc <- read.table("C:/R_test/coursera/data/household_power_consumption.txt", header=T, sep=";") hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y") a <- hpc[(hpc$Date=="2007-02-01") | (hpc$Date=="2007-02-02"),] a$Global_active_power <- as.numeric(as.character(a$Global_active_power)) a$Global_reactive_power <- as....
/plot.R
no_license
Moonswng/ExData_Plotting1
R
false
false
958
r
getwd() hpc <- read.table("C:/R_test/coursera/data/household_power_consumption.txt", header=T, sep=";") hpc$Date <- as.Date(hpc$Date, format="%d/%m/%Y") a <- hpc[(hpc$Date=="2007-02-01") | (hpc$Date=="2007-02-02"),] a$Global_active_power <- as.numeric(as.character(a$Global_active_power)) a$Global_reactive_power <- as....
library(tm) library(SnowballC) datasetog= read.delim('Restaurant_Reviews.tsv', quote='', stringsAsFactors = FALSE) corpus=VCorpus(VectorSource(datasetog$Review)) corpus= tm_map(corpus, content_transformer(tolower)) corpus= tm_map(corpus, removePunctuation) corpus= tm_map(corpus, removeNumbers) corpus= tm_map(cor...
/Section 36 - Natural Language Processing/NLP.R
no_license
siddhantpk/Machinelearningcodes
R
false
false
1,036
r
library(tm) library(SnowballC) datasetog= read.delim('Restaurant_Reviews.tsv', quote='', stringsAsFactors = FALSE) corpus=VCorpus(VectorSource(datasetog$Review)) corpus= tm_map(corpus, content_transformer(tolower)) corpus= tm_map(corpus, removePunctuation) corpus= tm_map(corpus, removeNumbers) corpus= tm_map(cor...
context('test_RawData') testFileAddress <- system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package = 'geoelectrics') test_that('Test RawData Constructor Missing Address', { # 'argument \'address\' is missing, with no default' expect_that(rawData <- new('RawData'), ...
/tests/testthat/test_RawData.r
no_license
kleebaum/geoelectrics
R
false
false
1,350
r
context('test_RawData') testFileAddress <- system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package = 'geoelectrics') test_that('Test RawData Constructor Missing Address', { # 'argument \'address\' is missing, with no default' expect_that(rawData <- new('RawData'), ...
library("data.table") library("ggplot2") path <- getwd() # Load the NEI & SCC data frames. NEI <- data.table::as.data.table(x = readRDS("summarySCC_PM25.rds")) SCC <- data.table::as.data.table(x = readRDS("Source_Classification_Code.rds")) baltimoreMotor <- subset(NEI, NEI$fips == "24510" & NEI$type == "ON-ROAD") ...
/4 - Exploratory Data Analysis/proj 2/plot5.R
no_license
sdmuzel/Data-Science-Specialization
R
false
false
697
r
library("data.table") library("ggplot2") path <- getwd() # Load the NEI & SCC data frames. NEI <- data.table::as.data.table(x = readRDS("summarySCC_PM25.rds")) SCC <- data.table::as.data.table(x = readRDS("Source_Classification_Code.rds")) baltimoreMotor <- subset(NEI, NEI$fips == "24510" & NEI$type == "ON-ROAD") ...
# Scatter diagram of a Football-shaped cloud # Chapter 8: Correlation # Page 120-127 library(shiny) library(MASS) # find the y-max value for ylim in barplot() find_ymax <- function(x, num) { if (is_multiple(x, num)) { return(max(prop_points)) } else { return(ymax <- num * ((x %/% num) + 1)) } } # Defin...
/ch08-football-shape/server.R
permissive
gastonstat/shiny-introstats
R
false
false
1,100
r
# Scatter diagram of a Football-shaped cloud # Chapter 8: Correlation # Page 120-127 library(shiny) library(MASS) # find the y-max value for ylim in barplot() find_ymax <- function(x, num) { if (is_multiple(x, num)) { return(max(prop_points)) } else { return(ymax <- num * ((x %/% num) + 1)) } } # Defin...
trainNB <- function(X, Y, id) { set.seed(id) tunegrid <- data.frame(.usekernel = FALSE, .fL = 0, .adjust = 1) fitControl.noCV <- trainControl( method = "none", summaryFunction = twoClassSummary, classProbs = TRUE, verboseIter = TRUE) re...
/models/NB_resubst.R
no_license
mmaitenat/ideafix-behind
R
false
false
934
r
trainNB <- function(X, Y, id) { set.seed(id) tunegrid <- data.frame(.usekernel = FALSE, .fL = 0, .adjust = 1) fitControl.noCV <- trainControl( method = "none", summaryFunction = twoClassSummary, classProbs = TRUE, verboseIter = TRUE) re...
library(R330) ### Name: budworm.df ### Title: Budworm data ### Aliases: budworm.df ### Keywords: datasets ### ** Examples data(budworm.df) bugs.glm<-glm(s/n~sex+dose,family=binomial,weights=n,data=budworm.df) summary(bugs.glm)
/data/genthat_extracted_code/R330/examples/budworm.df.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
234
r
library(R330) ### Name: budworm.df ### Title: Budworm data ### Aliases: budworm.df ### Keywords: datasets ### ** Examples data(budworm.df) bugs.glm<-glm(s/n~sex+dose,family=binomial,weights=n,data=budworm.df) summary(bugs.glm)
#' Formant measurements from 564 vowel midpoints #' #' A dataset containing formant measurements from the midpoints of 564 vowel #' tokens. These came from generated nonce words. This dataset is relatively #' clean and can be used for vowel formant example data. #' #' This dataset is a subset of the coronals dataframe....
/R/midpoints.R
permissive
JoeyStanley/joeysvowels
R
false
false
1,163
r
#' Formant measurements from 564 vowel midpoints #' #' A dataset containing formant measurements from the midpoints of 564 vowel #' tokens. These came from generated nonce words. This dataset is relatively #' clean and can be used for vowel formant example data. #' #' This dataset is a subset of the coronals dataframe....
\name{boxplotdbl-package} \alias{boxplotdbl-package} \alias{boxplotdbl} \docType{package} \title{ \packageTitle{boxplotdbl} } \description{ \packageDescription{boxplotdbl} } \details{ The DESCRIPTION file: \packageDESCRIPTION{boxplotdbl} \packageIndices{boxplotdbl} This package contains boxplotdou function. It is use...
/contributed/cran/boxplotdbl/man/boxplotdbl-package.Rd
no_license
osubera/cowares-excel-hello
R
false
false
843
rd
\name{boxplotdbl-package} \alias{boxplotdbl-package} \alias{boxplotdbl} \docType{package} \title{ \packageTitle{boxplotdbl} } \description{ \packageDescription{boxplotdbl} } \details{ The DESCRIPTION file: \packageDESCRIPTION{boxplotdbl} \packageIndices{boxplotdbl} This package contains boxplotdou function. It is use...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include pricing_service.R NULL #' Returns the metadata for one service or a list of the metadata for all #' services #' #' Returns the metadata for one service or a list of t...
/cran/paws.cost.management/R/pricing_operations.R
permissive
johnnytommy/paws
R
false
false
7,000
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include pricing_service.R NULL #' Returns the metadata for one service or a list of the metadata for all #' services #' #' Returns the metadata for one service or a list of t...
#' @export calc_quantile_MCIB <- function(p, data_pnad, groups = NULL, known_groupMeans = NULL, topBracket_method = c("gpinter","RPME")){ if(is.null(groups)){ data_pnad <- data_pnad %>% mutate(ID = 1) %>% arrange(ID, min_faixa) }else{ ...
/R/calc_quantile_MCIB.R
no_license
antrologos/tableInequality
R
false
false
7,495
r
#' @export calc_quantile_MCIB <- function(p, data_pnad, groups = NULL, known_groupMeans = NULL, topBracket_method = c("gpinter","RPME")){ if(is.null(groups)){ data_pnad <- data_pnad %>% mutate(ID = 1) %>% arrange(ID, min_faixa) }else{ ...
library(tidyverse) library(mice) library(MASS) library(glmnet) #library(texreg) library(randomForest) X <- read.csv("train.csv",header = TRUE,na.strings = (c("NA","")),stringsAsFactors = TRUE) Y <- read.csv("test.csv",header = TRUE,na.strings = (c("NA","")),stringsAsFactors = TRUE) summary(X) ColNameX <- colnames(X...
/Titanic/TitanicPred.R
no_license
8-u8/Kaggle
R
false
false
1,359
r
library(tidyverse) library(mice) library(MASS) library(glmnet) #library(texreg) library(randomForest) X <- read.csv("train.csv",header = TRUE,na.strings = (c("NA","")),stringsAsFactors = TRUE) Y <- read.csv("test.csv",header = TRUE,na.strings = (c("NA","")),stringsAsFactors = TRUE) summary(X) ColNameX <- colnames(X...
#### Script Description Header #### # File Name: PGE DLAP MOER Data Cleaning.R # File Location: "~/Desktop/PGE_JARP_GRC_Testimony_Workpapers/Marginal Emissions Data/Clean Marginal Emissions Data" # Project: PG&E JARP GRC Testimony # Description: Cleans marginal emissions data for use in PG&E JARP analysis. #### Load ...
/Marginal Emissions Data/Clean Marginal Emissions Data/PGE DLAP MOER Data Cleaning.R
no_license
RyanCMann/PGE_JARP_GRC_Testimony_Workpapers
R
false
false
2,242
r
#### Script Description Header #### # File Name: PGE DLAP MOER Data Cleaning.R # File Location: "~/Desktop/PGE_JARP_GRC_Testimony_Workpapers/Marginal Emissions Data/Clean Marginal Emissions Data" # Project: PG&E JARP GRC Testimony # Description: Cleans marginal emissions data for use in PG&E JARP analysis. #### Load ...
FDR <- function(test_statistics, t_0) { m2 <- mean(test_statistics^2) m4 <- mean(test_statistics^4) mu <- sqrt((3 - (6*m2) + m4)/(m2 - 1)) theta <- ((m2 - 1)^2)/(3 - (6*m2) + m4) return((1 - theta) * pnorm(-t_0) / (((1 - theta) * pnorm(-t_0)) + (theta * (pnorm(mu - t_0) + pnorm(-mu - t_0)) / 2))) }
/R/FDR.R
no_license
cran/ManyTests
R
false
false
314
r
FDR <- function(test_statistics, t_0) { m2 <- mean(test_statistics^2) m4 <- mean(test_statistics^4) mu <- sqrt((3 - (6*m2) + m4)/(m2 - 1)) theta <- ((m2 - 1)^2)/(3 - (6*m2) + m4) return((1 - theta) * pnorm(-t_0) / (((1 - theta) * pnorm(-t_0)) + (theta * (pnorm(mu - t_0) + pnorm(-mu - t_0)) / 2))) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.template.R \name{render.template} \alias{render.template} \title{Render method for "template" class.} \usage{ \method{render}{template}(x, ...) } \arguments{ \item{x}{an object of class "template", a model input file with addi...
/man/render.template.Rd
no_license
cran/spup
R
false
true
550
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/render.template.R \name{render.template} \alias{render.template} \title{Render method for "template" class.} \usage{ \method{render}{template}(x, ...) } \arguments{ \item{x}{an object of class "template", a model input file with addi...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 rcppLissage <- function(vXobservations, vYobservations, vIndicesX, vIndicesY, iPas, iRayon, iNeighbor, mVar, mXcentroides, mYcentroides, mIcentroides, iNbCentroides, updateProgress = NULL) {...
/R/RcppExports.R
no_license
ArlindoDosSantos/btb
R
false
false
950
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 rcppLissage <- function(vXobservations, vYobservations, vIndicesX, vIndicesY, iPas, iRayon, iNeighbor, mVar, mXcentroides, mYcentroides, mIcentroides, iNbCentroides, updateProgress = NULL) {...
varsimbvs <- function (X, y, sigma, sa, log10q, a, b, ca) { # These two parameters specify the inverse gamma prior on the # variance of the residual (sigma). I use the uninformative prior, # which is the limit of the inverse gamma as the scale and shape # parameters approach zero. as <- 0.01 bs <- 0.01 ...
/varbvs/R/varsimbvs.R
no_license
ingted/R-Examples
R
false
false
4,056
r
varsimbvs <- function (X, y, sigma, sa, log10q, a, b, ca) { # These two parameters specify the inverse gamma prior on the # variance of the residual (sigma). I use the uninformative prior, # which is the limit of the inverse gamma as the scale and shape # parameters approach zero. as <- 0.01 bs <- 0.01 ...
# Fitting SVM to the Training set # install.packages('e1071') library(e1071) svm_model<-svm(Survived ~ Pclass + Sex + Age + SibSp + Parch + Fare + Embarked + Child +Title + FamilySize, data=train_Featured, method = "class") summary(svm_model) my_Prediction <- predict(svm_model, test_Featured, type = "class") ...
/Titanic Survival - SVM.R
no_license
juhiie/Titanic_Survival-in-R
R
false
false
477
r
# Fitting SVM to the Training set # install.packages('e1071') library(e1071) svm_model<-svm(Survived ~ Pclass + Sex + Age + SibSp + Parch + Fare + Embarked + Child +Title + FamilySize, data=train_Featured, method = "class") summary(svm_model) my_Prediction <- predict(svm_model, test_Featured, type = "class") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clust_Method.R \name{KeyFeature} \alias{KeyFeature} \title{Determine key features of each overlap clusters.} \usage{ KeyFeature(cdata, cri, sum.clu) } \arguments{ \item{cdata}{Overlap clustering result.} \item{cri}{A tuning parameter, if p v...
/man/KeyFeature.Rd
no_license
cran/boclust
R
false
true
949
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Clust_Method.R \name{KeyFeature} \alias{KeyFeature} \title{Determine key features of each overlap clusters.} \usage{ KeyFeature(cdata, cri, sum.clu) } \arguments{ \item{cdata}{Overlap clustering result.} \item{cri}{A tuning parameter, if p v...
##### ### Matching PB to non-PB voters - implementing district-level controls ############################################################################################################################## ### ### NYC PB Voters Project ### Matching pb/non-pb voters ### Carolina Johnson ### ### 1. Create exact match ...
/rr_vf_matching_iterate.R
no_license
csjohns/pb-voter-turnout
R
false
false
3,104
r
##### ### Matching PB to non-PB voters - implementing district-level controls ############################################################################################################################## ### ### NYC PB Voters Project ### Matching pb/non-pb voters ### Carolina Johnson ### ### 1. Create exact match ...
source("NCAA_Hoops_PBP_Scraper.R") dict <- read.csv("ESPN_NCAA_Dict.csv", as.is = T) wp_hoops <- read.csv("wp_hoops.csv", as.is = T) y <- read.csv("https://raw.githubusercontent.com/lbenz730/NCAA_Hoops/master/2.0_Files/Results/2017-18/NCAA_Hoops_Results_3_14_2018.csv", as.is = T) x <- read.csv("https://r...
/wp_charts.R
no_license
bryansp/NCAA_Hoops_Play_By_Play
R
false
false
5,537
r
source("NCAA_Hoops_PBP_Scraper.R") dict <- read.csv("ESPN_NCAA_Dict.csv", as.is = T) wp_hoops <- read.csv("wp_hoops.csv", as.is = T) y <- read.csv("https://raw.githubusercontent.com/lbenz730/NCAA_Hoops/master/2.0_Files/Results/2017-18/NCAA_Hoops_Results_3_14_2018.csv", as.is = T) x <- read.csv("https://r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeStructFuncs.R \name{getPL} \alias{getPL} \title{getPL Gets the path length from the root to the position of a particular node.} \usage{ getPL(tree, startnode = NA, node) } \description{ getPL Gets the path length from the root to the posi...
/man/getPL.Rd
no_license
hferg/bayestraitr
R
false
true
368
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/treeStructFuncs.R \name{getPL} \alias{getPL} \title{getPL Gets the path length from the root to the position of a particular node.} \usage{ getPL(tree, startnode = NA, node) } \description{ getPL Gets the path length from the root to the posi...
#Read in survival file setwd('~/Documents/public-datasets/TCGA/clinicalData/') survival = read.delim('clinical_patient_gbm-sanitised.txt') sur.sub = survival[,c(1,2,3,5,6,7,8,9,10,13,19,20,26,30)] surv.time = sur.sub[,c(1,7)] head(surv.time) #strip the paitient ID to match the expression data barcodeStrip = gsub('-F.....
/PhD/120727-TCGAclinicalInfo.R
no_license
dvbrown/Rscripts
R
false
false
1,044
r
#Read in survival file setwd('~/Documents/public-datasets/TCGA/clinicalData/') survival = read.delim('clinical_patient_gbm-sanitised.txt') sur.sub = survival[,c(1,2,3,5,6,7,8,9,10,13,19,20,26,30)] surv.time = sur.sub[,c(1,7)] head(surv.time) #strip the paitient ID to match the expression data barcodeStrip = gsub('-F.....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_fs_surface.R \name{parse.stl.ascii.face} \alias{parse.stl.ascii.face} \title{Parse a single ASCII STL face.} \usage{ parse.stl.ascii.face(stl_face_lines) } \arguments{ \item{stl_face_lines}{vector of exactly 7 character strings, the line...
/man/parse.stl.ascii.face.Rd
permissive
dfsp-spirit/freesurferformats
R
false
true
704
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_fs_surface.R \name{parse.stl.ascii.face} \alias{parse.stl.ascii.face} \title{Parse a single ASCII STL face.} \usage{ parse.stl.ascii.face(stl_face_lines) } \arguments{ \item{stl_face_lines}{vector of exactly 7 character strings, the line...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jla_wd_functions.R \name{jla_wd} \alias{jla_wd} \title{jla_wd} \usage{ jla_wd(wd) } \arguments{ \item{wd}{A mac or windows working directory} } \description{ Changes working directy to its mac or windows equivalent }
/man/jla_wd.Rd
no_license
adbecker/jlatools
R
false
true
295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jla_wd_functions.R \name{jla_wd} \alias{jla_wd} \title{jla_wd} \usage{ jla_wd(wd) } \arguments{ \item{wd}{A mac or windows working directory} } \description{ Changes working directy to its mac or windows equivalent }
source("setup.R") source("load-data.R") library(R.matlab) library(nnet) library(cvTools) library(mclust) # install.packages("mclust") # package that can be used to fit a gaussian mixture model. This package does not allow random starts of the algorithm. It is faster than the algorithm in mixtools. graphics.off() c(d...
/gmm-clustering-hp.R
no_license
nightflight-dk/intr-ml-dm
R
false
false
1,553
r
source("setup.R") source("load-data.R") library(R.matlab) library(nnet) library(cvTools) library(mclust) # install.packages("mclust") # package that can be used to fit a gaussian mixture model. This package does not allow random starts of the algorithm. It is faster than the algorithm in mixtools. graphics.off() c(d...
#!/usr/bin/Rscript ## Plot first two principal components, color by metadata column ## Diego Garrido Martín ## 15/09/2018 ## Load libraries suppressPackageStartupMessages(library(optparse)) suppressPackageStartupMessages(library(data.table)) suppressPackageStartupMessages(library(ggplot2)) ## Parse arguments ...
/data/eQTL/bin/pcaPlot.R
no_license
leennabraham/uvic_msc
R
false
false
2,004
r
#!/usr/bin/Rscript ## Plot first two principal components, color by metadata column ## Diego Garrido Martín ## 15/09/2018 ## Load libraries suppressPackageStartupMessages(library(optparse)) suppressPackageStartupMessages(library(data.table)) suppressPackageStartupMessages(library(ggplot2)) ## Parse arguments ...
## Pair of functions that cache the inverse of a matrix ## This function creates a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y){ x <<- y m <<- NULL } get <- function() x setMatrix <- function(solve) m <<- solve getMatrix <- function() m l...
/cachematrix.R
no_license
jeanbee/ProgrammingAssignment2
R
false
false
796
r
## Pair of functions that cache the inverse of a matrix ## This function creates a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y){ x <<- y m <<- NULL } get <- function() x setMatrix <- function(solve) m <<- solve getMatrix <- function() m l...
\encoding{UTF-8} \name{snpposi} \alias{snpposi.plot} \alias{snpposi.plot.integer} \alias{snpposi.plot.numeric} \alias{snpposi.plot.DNAbin} \alias{snpposi.test} \alias{snpposi.test.integer} \alias{snpposi.test.numeric} \alias{snpposi.test.DNAbin} \title{Analyse the position of polymorphic sites} \description{ These...
/man/snpposi.Rd
no_license
thibautjombart/adegenet
R
false
false
3,094
rd
\encoding{UTF-8} \name{snpposi} \alias{snpposi.plot} \alias{snpposi.plot.integer} \alias{snpposi.plot.numeric} \alias{snpposi.plot.DNAbin} \alias{snpposi.test} \alias{snpposi.test.integer} \alias{snpposi.test.numeric} \alias{snpposi.test.DNAbin} \title{Analyse the position of polymorphic sites} \description{ These...
#Plot in-sample calibration fits for all 74 fungal taxonomic and functional groups. rm(list=ls()) source('paths.r') #Set output path motif for multiple plot outputs.---- #setting output path motif. Number of output paths depends on number of taxa we are plotting. 25 per panel. #output.path_motif <- 'test' output.path_...
/ITS/figure_scripts/ddirch_forecast_validation_plots/calibration_ITS_panels_all_fits.r
permissive
ytjwang/NEFI_microbe
R
false
false
3,306
r
#Plot in-sample calibration fits for all 74 fungal taxonomic and functional groups. rm(list=ls()) source('paths.r') #Set output path motif for multiple plot outputs.---- #setting output path motif. Number of output paths depends on number of taxa we are plotting. 25 per panel. #output.path_motif <- 'test' output.path_...
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param sleeptime PARAM_DESCRIPTION, Default: 100 #' @param indicator PARAM_DESCRIPTION, Default: indicator #' @param indicator_group PARAM_DESCRIPTION, Default: indicator_group #' @param run_date PARAM_DESCRIPTION, Default: run_date #' @param strata PARAM...
/mbg/mbg_core_code/mbg_central/LBDCore/R/waitforpostesttofinish.R
no_license
The-Oxford-GBD-group/typhi_paratyphi_modelling_code
R
false
false
2,028
r
#' @title FUNCTION_TITLE #' @description FUNCTION_DESCRIPTION #' @param sleeptime PARAM_DESCRIPTION, Default: 100 #' @param indicator PARAM_DESCRIPTION, Default: indicator #' @param indicator_group PARAM_DESCRIPTION, Default: indicator_group #' @param run_date PARAM_DESCRIPTION, Default: run_date #' @param strata PARAM...
data<-read.csv("/Users/A5coupe/Desktop/STA303/Assignment 2/bbw.csv") detach(data) #1 maturity=array(0,length(gestation)) MatSmoke=array(0,length(smoke)) for (i in 1:length(gestation)) { if (gestation[i]<259) {maturity[i]=1} else if (gestation[i]>293) {maturity[i]=3} else {maturity[i]=2} } for (i in 1:length(...
/Assignment2/a2 functions.R
no_license
Mirandadada/Methods-of-Data-Analysis-II
R
false
false
4,283
r
data<-read.csv("/Users/A5coupe/Desktop/STA303/Assignment 2/bbw.csv") detach(data) #1 maturity=array(0,length(gestation)) MatSmoke=array(0,length(smoke)) for (i in 1:length(gestation)) { if (gestation[i]<259) {maturity[i]=1} else if (gestation[i]>293) {maturity[i]=3} else {maturity[i]=2} } for (i in 1:length(...
## To avoid performing the expensive Inverse Matrix operation ## more than once, we create a pseudo-object inside a list (sic) ## that stores a matrix and its inverse. ## Creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(theMatrix = matrix()) { theInverse <- NULL getMat...
/cachematrix.R
no_license
Migdalin/ProgrammingAssignment2
R
false
false
1,648
r
## To avoid performing the expensive Inverse Matrix operation ## more than once, we create a pseudo-object inside a list (sic) ## that stores a matrix and its inverse. ## Creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(theMatrix = matrix()) { theInverse <- NULL getMat...
#` this is a description #` ## code to prepare `census_tract` dataset goes here date <- format(Sys.time(), "%Y%m%d") # pkgload::load_all() requireNamespace("readxl", quietly = TRUE) requireNamespace("fs", quietly = TRUE) requireNamespace("tigris", quietly = TRUE) requireNamespace("janitor", quietly = TRUE) #########...
/data-raw/input_tract_data.R
permissive
carogeo/economic-values-atlas
R
false
false
7,386
r
#` this is a description #` ## code to prepare `census_tract` dataset goes here date <- format(Sys.time(), "%Y%m%d") # pkgload::load_all() requireNamespace("readxl", quietly = TRUE) requireNamespace("fs", quietly = TRUE) requireNamespace("tigris", quietly = TRUE) requireNamespace("janitor", quietly = TRUE) #########...
library(vegan); mat <- read.table("/home/rvlab/jobs2/demo@gmail.com/job12/softLagoonAbundance.csv", header = TRUE, sep=",",row.names=1); mat <- t(mat); vegdist <- vegdist(mat, method = "euclidean",binary=FALSE, diag=FALSE, upper=FALSE,na.rm = FALSE) save(vegdist, ascii=TRUE, file = "/home/rvlab/jobs2/demo@gmail.com/job...
/tests/completed/vegdist/job12.R
permissive
agougousis/rvlab2
R
false
false
356
r
library(vegan); mat <- read.table("/home/rvlab/jobs2/demo@gmail.com/job12/softLagoonAbundance.csv", header = TRUE, sep=",",row.names=1); mat <- t(mat); vegdist <- vegdist(mat, method = "euclidean",binary=FALSE, diag=FALSE, upper=FALSE,na.rm = FALSE) save(vegdist, ascii=TRUE, file = "/home/rvlab/jobs2/demo@gmail.com/job...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse...
/cachematrix.R
no_license
ibonaranburu/ProgrammingAssignment2
R
false
false
762
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse...
#' Title #' #' @param data.ld #' @param distribution #' @param gamthr #' @param stresses #' @param group.var #' @param xlab #' @param ylab #' @param conf.level #' @param xlim #' @param ylim #' @param time.range #' @param dump #' @param grids #' @param my.title #' @param cex #' @param linear.axes #' @par...
/R/groupi.mleprobplot.R
no_license
Ammar-K/SMRD
R
false
false
5,955
r
#' Title #' #' @param data.ld #' @param distribution #' @param gamthr #' @param stresses #' @param group.var #' @param xlab #' @param ylab #' @param conf.level #' @param xlim #' @param ylim #' @param time.range #' @param dump #' @param grids #' @param my.title #' @param cex #' @param linear.axes #' @par...
#Reza Abdi, rabdi@mines.edu #Aug., 2020 #Code calculates the thermal metrics from hourly data. # Clearing the environment rm(list=ls(all=TRUE)) # Weekely data analysis output <- read.csv("sample.csv", header=T) dd <- dim(output) output_mat <- as.matrix(output) dayNm <- dd[1]/24 x <- seq_along(output[...
/input_data/LAR_WaterTemperature/weeklyDataAnalysis.R
no_license
ksirving/flow_eco_mech
R
false
false
1,895
r
#Reza Abdi, rabdi@mines.edu #Aug., 2020 #Code calculates the thermal metrics from hourly data. # Clearing the environment rm(list=ls(all=TRUE)) # Weekely data analysis output <- read.csv("sample.csv", header=T) dd <- dim(output) output_mat <- as.matrix(output) dayNm <- dd[1]/24 x <- seq_along(output[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{CW} \alias{CW} \title{EQ-5D-5L Crosswalk data} \format{An object of class \code{data.frame} with 3125 rows and 10 columns.} \source{ van Hout B, Janssen MF, et al. Interim scoring for the EQ-5D-5L: Mapping the EQ-5...
/man/CW.Rd
permissive
maislind/eq5d
R
false
true
871
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{CW} \alias{CW} \title{EQ-5D-5L Crosswalk data} \format{An object of class \code{data.frame} with 3125 rows and 10 columns.} \source{ van Hout B, Janssen MF, et al. Interim scoring for the EQ-5D-5L: Mapping the EQ-5...
## Data set up for models on ADA - 5 fold cross validation ## Run on ADA ## Sets up multiple Cross validation on ADA. ## 0. Contents ##### ## 1. Gets data from github with criteria below ## 2. Creates k folds and sets up tuning grid, and results table for grid runs per k ## 3. Creates scaled data sets per k, runs, ...
/Hmsc_CD/oregon_ada/code_sjSDM/r20210225a/b1_sjSDM_CV_models.r
permissive
dougwyu/HJA_analyses_Kelpie
R
false
false
19,389
r
## Data set up for models on ADA - 5 fold cross validation ## Run on ADA ## Sets up multiple Cross validation on ADA. ## 0. Contents ##### ## 1. Gets data from github with criteria below ## 2. Creates k folds and sets up tuning grid, and results table for grid runs per k ## 3. Creates scaled data sets per k, runs, ...
library(tidyverse) library(devtools) boys <- read_csv("https://data.ontario.ca/dataset/eb4c585c-6ada-4de7-8ff1-e876fb1a6b0b/resource/919b7260-aafd-4af1-a427-38a51dbc8436/download/ontario_top_baby_names_male_1917-2018_en_fr.csv") girls <- read_csv("https://data.ontario.ca/dataset/4d339626-98f9-49fe-aede-d64f03fa914f/re...
/data-raw/onbabynames.R
no_license
desautm/onbabynames
R
false
false
1,162
r
library(tidyverse) library(devtools) boys <- read_csv("https://data.ontario.ca/dataset/eb4c585c-6ada-4de7-8ff1-e876fb1a6b0b/resource/919b7260-aafd-4af1-a427-38a51dbc8436/download/ontario_top_baby_names_male_1917-2018_en_fr.csv") girls <- read_csv("https://data.ontario.ca/dataset/4d339626-98f9-49fe-aede-d64f03fa914f/re...
context("Getting or selection of last-created nodes or edges in a graph") test_that("getting or selecting the last edges created is possible", { # Create a graph, add a cycle, and then # add a tree graph <- create_graph() %>% add_cycle( n = 3, type = "cycle", rel = "a") %>% add_bal...
/tests/testthat/test-get_select_last_nodes_edges_created.R
permissive
carlosal1015/DiagrammeR
R
false
false
3,625
r
context("Getting or selection of last-created nodes or edges in a graph") test_that("getting or selecting the last edges created is possible", { # Create a graph, add a cycle, and then # add a tree graph <- create_graph() %>% add_cycle( n = 3, type = "cycle", rel = "a") %>% add_bal...
###################### # Define the UI ###################### library(googleAuthR) library(googleAnalyticsR) library(shiny) ui <- fluidPage( # So you can track stuff. You can also just put the google analytics script in here- just go to your admin in google analytics and # then go to your property and create ...
/UI.R
no_license
thesmarthomeninja/site_search_wordcloud_analysis
R
false
false
6,867
r
###################### # Define the UI ###################### library(googleAuthR) library(googleAnalyticsR) library(shiny) ui <- fluidPage( # So you can track stuff. You can also just put the google analytics script in here- just go to your admin in google analytics and # then go to your property and create ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/mycsv.R \name{mycsv.cbind.mytable} \alias{mycsv.cbind.mytable} \title{Export to csv file for class "cbind.mytable"} \usage{ \method{mycsv}{cbind.mytable}(x, row.names = FALSE, ...) } \arguments{ \item{x}{An object of class "cbind.myta...
/man/mycsv.cbind.mytable.Rd
no_license
mkim0710/moonBook
R
false
false
802
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/mycsv.R \name{mycsv.cbind.mytable} \alias{mycsv.cbind.mytable} \title{Export to csv file for class "cbind.mytable"} \usage{ \method{mycsv}{cbind.mytable}(x, row.names = FALSE, ...) } \arguments{ \item{x}{An object of class "cbind.myta...
#Wrapper code to perform data processing associated with nutrient experiment 2 # July to September 2019 rm(list = ls()) #Code to extract surface water measurements from profile data at fixed sites library(readxl) library(plyr) library(dplyr) library(tidyr) library(viridis) library(lubridate) library(ggplot2) libra...
/R/Workflow_NutrientExperiment2.R
no_license
lukeloken/USBRDelta
R
false
false
3,284
r
#Wrapper code to perform data processing associated with nutrient experiment 2 # July to September 2019 rm(list = ls()) #Code to extract surface water measurements from profile data at fixed sites library(readxl) library(plyr) library(dplyr) library(tidyr) library(viridis) library(lubridate) library(ggplot2) libra...
library(tidyverse) xn <- rnorm(100, mean = 0, sd = 1) xp <- rpois(100, lambda = 1.5) xln <- rlnorm(100, mean = 0, sd = 1.1) sd(xn) sd(xp) min(xn) max(xn) quantile(xln, 0.66) myfn <- ecdf(xln) myfn(1.379433 ) myfn(1) myfn(1.4) myfn(1.4) - myfn(0.9) c(min(xp), max(xp), sd(xp)) c(min(xn), max(xn), sd(xn)) summary(...
/clase7intro.R
no_license
ricardomayerb/ico8306
R
false
false
719
r
library(tidyverse) xn <- rnorm(100, mean = 0, sd = 1) xp <- rpois(100, lambda = 1.5) xln <- rlnorm(100, mean = 0, sd = 1.1) sd(xn) sd(xp) min(xn) max(xn) quantile(xln, 0.66) myfn <- ecdf(xln) myfn(1.379433 ) myfn(1) myfn(1.4) myfn(1.4) - myfn(0.9) c(min(xp), max(xp), sd(xp)) c(min(xn), max(xn), sd(xn)) summary(...
##################################################### # Extract covariates in R #Set working directory setwd("F:/iDiv/MLU Biodiversity_2021/Metadata") #install and load packages packages <- c("raster","sp","rgdal") package.check <- lapply(packages,FUN=function(x) { if(!require(x,character.only=TRUE)){...
/week 3/2 - Tuesday/Metadata/Metadata_covariates.R
permissive
chase-lab/biodiv-patterns-course-2021
R
false
false
5,142
r
##################################################### # Extract covariates in R #Set working directory setwd("F:/iDiv/MLU Biodiversity_2021/Metadata") #install and load packages packages <- c("raster","sp","rgdal") package.check <- lapply(packages,FUN=function(x) { if(!require(x,character.only=TRUE)){...
#' Set up initial parameters for Cosmos DB querying #' #' @param sql.what String for specifying what fields to retrieve. Typically called select condition #' @param sql.where String for specifying what filter to use on data. Typically called search condition #' @return String containing a full SELECT statement for the ...
/R/constructQuery.R
permissive
aaron2012r2/cosmosR
R
false
false
832
r
#' Set up initial parameters for Cosmos DB querying #' #' @param sql.what String for specifying what fields to retrieve. Typically called select condition #' @param sql.where String for specifying what filter to use on data. Typically called search condition #' @return String containing a full SELECT statement for the ...
# library library(datasets) library(boot) # bootstrap from scratch num_proc <- 1000 n <- length(acme) # resample with replacement resamples <- matrix(sample(acmep[, 1], n * num_proc, replace = TRUE), B, n) # medians medians <- apply(resamples, 1, median) # sd sd(medians) # CI quantile(medians, c(.025, .975)) # bo...
/bootstrap.R
no_license
Joker-Jerome/R_in_action
R
false
false
462
r
# library library(datasets) library(boot) # bootstrap from scratch num_proc <- 1000 n <- length(acme) # resample with replacement resamples <- matrix(sample(acmep[, 1], n * num_proc, replace = TRUE), B, n) # medians medians <- apply(resamples, 1, median) # sd sd(medians) # CI quantile(medians, c(.025, .975)) # bo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/classes.R \name{cut.df.from.start} \alias{cut.df.from.start} \title{Cut df} \usage{ \method{cut}{df.from.start}(df, len) } \arguments{ \item{df}{data.frame} \item{len}{integer} } \value{ data.frame } \description{ Removes first \code{nrow(df...
/man/cut.df.from.start.Rd
permissive
mkhlgrv/rmen
R
false
true
455
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/classes.R \name{cut.df.from.start} \alias{cut.df.from.start} \title{Cut df} \usage{ \method{cut}{df.from.start}(df, len) } \arguments{ \item{df}{data.frame} \item{len}{integer} } \value{ data.frame } \description{ Removes first \code{nrow(df...
## code to extract color map # This is a ramp, so need to fix limits # Urls url <- "http://89.16.175.95/pub/cpt-city/esri/hypsometry/eu/spain.cpt" local <- file.path("./data-raw", "cpt", basename(url)) # download.file(url, # local, # mode = "wb" # ) # Extract colors for cpt file library(tidyverse) lines <- rea...
/data-raw/cpt/spain.R
permissive
dieghernan/tidyterra
R
false
false
2,830
r
## code to extract color map # This is a ramp, so need to fix limits # Urls url <- "http://89.16.175.95/pub/cpt-city/esri/hypsometry/eu/spain.cpt" local <- file.path("./data-raw", "cpt", basename(url)) # download.file(url, # local, # mode = "wb" # ) # Extract colors for cpt file library(tidyverse) lines <- rea...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{exLong} \alias{exLong} \title{Simulated Data set to Demonstrate Longitudinal Measurement Invariance} \format{ A \code{data.frame} with 200 observations of 10 variables. \describe{ \item{sex}{Sex of respondents} \it...
/semTools/man/exLong.Rd
no_license
simsem/semTools
R
false
true
852
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{exLong} \alias{exLong} \title{Simulated Data set to Demonstrate Longitudinal Measurement Invariance} \format{ A \code{data.frame} with 200 observations of 10 variables. \describe{ \item{sex}{Sex of respondents} \it...
library(R2OpenBUGS) setwd("~/hubiC/Git Projects/Bayes-Computational-Methods/Bayes-Computational-Methods/8-Schools") model <- function() { for (i in 1:8) { eta[i] ~ dnorm(0,1) theta[i] <- mu + tau * eta[i] y[i] ~ dnorm(theta[i], sigma[i]) } mu ~ dunif(-10000,10000) tau ~ dunif(0,1000) }c11 schools_...
/8-Schools/8-Schools-bugs.R
no_license
lnsongxf/Bayes-Computational-Methods
R
false
false
1,199
r
library(R2OpenBUGS) setwd("~/hubiC/Git Projects/Bayes-Computational-Methods/Bayes-Computational-Methods/8-Schools") model <- function() { for (i in 1:8) { eta[i] ~ dnorm(0,1) theta[i] <- mu + tau * eta[i] y[i] ~ dnorm(theta[i], sigma[i]) } mu ~ dunif(-10000,10000) tau ~ dunif(0,1000) }c11 schools_...
# Temas a tratar # # # # # # setwd("/Users/natorro/Desktop/r-bits") pacman::p_load(char = c("readxl")) # En Windows: #my_data <- read.table(file = "clipboard", # sep = "\t", header=TRUE) filesheets <- excel_sheets("composicion_y_estructura_de_la_poblacion.xlsx") filesheets population_data <- r...
/s01e04.R
no_license
massivetrend/r-bits
R
false
false
3,307
r
# Temas a tratar # # # # # # setwd("/Users/natorro/Desktop/r-bits") pacman::p_load(char = c("readxl")) # En Windows: #my_data <- read.table(file = "clipboard", # sep = "\t", header=TRUE) filesheets <- excel_sheets("composicion_y_estructura_de_la_poblacion.xlsx") filesheets population_data <- r...
\name{sample_dataset} \alias{sample_dataset} \docType{data} \title{ household dataset to be used as an example } \description{ This dataset comes from the Host Community Multi Sector Needs Assessment conducted in 2018 by IMPACT/REACH on behalf of the ISCG and funded by ECHO. This is a sample of the data collected in bo...
/man/sample_dataset.Rd
permissive
axmedmaxamuud/HighFrequencyChecks
R
false
false
550
rd
\name{sample_dataset} \alias{sample_dataset} \docType{data} \title{ household dataset to be used as an example } \description{ This dataset comes from the Host Community Multi Sector Needs Assessment conducted in 2018 by IMPACT/REACH on behalf of the ISCG and funded by ECHO. This is a sample of the data collected in bo...
# main.R # Assumes the working directory is the root folder of the forecastic project. # If this is not the case, set it using setwd("/your/path/to/forecastic") #' @author Henning Schulz source("R/install-packages.R") source("R/utils.R") source("R/logger.R") source("R/eureka-client.R") source("R/elastic-client.R") sou...
/R/main.R
permissive
Henning-Schulz/forecastic
R
false
false
4,477
r
# main.R # Assumes the working directory is the root folder of the forecastic project. # If this is not the case, set it using setwd("/your/path/to/forecastic") #' @author Henning Schulz source("R/install-packages.R") source("R/utils.R") source("R/logger.R") source("R/eureka-client.R") source("R/elastic-client.R") sou...
# Project: Diseffusion # Author: Zinaida Good # Contact: zinaida@stanford.edu # Version: v5 (28 February 2018) # Clear objects from the workspace. rm(list = ls()) ############################### Libraries ############################### #source("http://bioconductor.org/biocLite.R") # Connect to BioConductor #biocLit...
/Diseffusion-v5.R
no_license
nolanlab/diseffusion
R
false
false
3,125
r
# Project: Diseffusion # Author: Zinaida Good # Contact: zinaida@stanford.edu # Version: v5 (28 February 2018) # Clear objects from the workspace. rm(list = ls()) ############################### Libraries ############################### #source("http://bioconductor.org/biocLite.R") # Connect to BioConductor #biocLit...
summarised_test <- summarise_trace( trace_asco( weather = newM_weather, paddock_length = 100, paddock_width = 100, initial_infection = "1998-05-10", sowing_date = as.POSIXct("1998-05-09"), harvest_date = as.POSIXct("1998-05-12"), time_zone = "Australia/Perth", primary_infection_foci = ...
/tests/testthat/test-summarise_trace.R
permissive
IhsanKhaliq/ascotraceR
R
false
false
802
r
summarised_test <- summarise_trace( trace_asco( weather = newM_weather, paddock_length = 100, paddock_width = 100, initial_infection = "1998-05-10", sowing_date = as.POSIXct("1998-05-09"), harvest_date = as.POSIXct("1998-05-12"), time_zone = "Australia/Perth", primary_infection_foci = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{create.commit} \alias{create.commit} \title{create a commit} \usage{ create.commit(owner, repo, content, ctx = get.github.context()) } \arguments{ \item{owner}{the repo owner} \item{repo}{the name of the repo} \item{content}{th...
/man/create.commit.Rd
permissive
cscheid/rgithub
R
false
true
458
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \name{create.commit} \alias{create.commit} \title{create a commit} \usage{ create.commit(owner, repo, content, ctx = get.github.context()) } \arguments{ \item{owner}{the repo owner} \item{repo}{the name of the repo} \item{content}{th...
source("Module_A.R") source("Module_B.R") #' set data saving path sPath1 <- "./QuickStartExample/Part1_DownloadedData" sPath2 <- "./QuickStartExample/Part2_BasicDataProcessingResult" sPath3 <- "./QuickStartExample/Part3_AdvancedDataProcessingResult" #' choose a cancer type sCancer <- "LUAD" path_geneExp <- Downloa...
/Cancer.R
no_license
procaffeinator/Analysis_of_gene_expression_data
R
false
false
463
r
source("Module_A.R") source("Module_B.R") #' set data saving path sPath1 <- "./QuickStartExample/Part1_DownloadedData" sPath2 <- "./QuickStartExample/Part2_BasicDataProcessingResult" sPath3 <- "./QuickStartExample/Part3_AdvancedDataProcessingResult" #' choose a cancer type sCancer <- "LUAD" path_geneExp <- Downloa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f4_sub2.R \name{hrm.2w.2f} \alias{hrm.2w.2f} \title{Test for influence of factor A} \usage{ hrm.2w.2f(X, alpha, group, subgroup, factor1, factor2, subject, data, H, text = "", nonparametric, ranked, varQGlobal) } \arguments{ \item{X}{datafr...
/man/hrm.2w.2f.Rd
no_license
happma/HRM
R
false
true
1,070
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f4_sub2.R \name{hrm.2w.2f} \alias{hrm.2w.2f} \title{Test for influence of factor A} \usage{ hrm.2w.2f(X, alpha, group, subgroup, factor1, factor2, subject, data, H, text = "", nonparametric, ranked, varQGlobal) } \arguments{ \item{X}{datafr...
args = commandArgs(trailingOnly=TRUE) if (length(args)!=3) { stop("A countmatrix csv file (first arg), a sample csv file (second arg), design (third arg) and output file location (fourth arg) should be supplied", call.=FALSE) } else if (length(args)==3) { print('using the files supplied') print((paste("supplied...
/code_review/code_review_27_01_21/RunDeseq2.R
no_license
vanheeringen-lab/GroupMeetings
R
false
false
1,137
r
args = commandArgs(trailingOnly=TRUE) if (length(args)!=3) { stop("A countmatrix csv file (first arg), a sample csv file (second arg), design (third arg) and output file location (fourth arg) should be supplied", call.=FALSE) } else if (length(args)==3) { print('using the files supplied') print((paste("supplied...
# This file contains various constants and utility functions # Test types .UV_GOF_WXN = as.integer(0) .UV_GOF_AD = as.integer(1) .UV_GOF_CVM_KS = as.integer(2) .UV_GOF_DCOV = as.integer(3) .UV_GOF_XDP2 = as.integer(4) .UV_GOF_XDP3 = as.integer(5) .UV_GOF_...
/R/HHG_utils.R
no_license
barakbri/HHG
R
false
false
8,095
r
# This file contains various constants and utility functions # Test types .UV_GOF_WXN = as.integer(0) .UV_GOF_AD = as.integer(1) .UV_GOF_CVM_KS = as.integer(2) .UV_GOF_DCOV = as.integer(3) .UV_GOF_XDP2 = as.integer(4) .UV_GOF_XDP3 = as.integer(5) .UV_GOF_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emailing.R \name{stock_msg_body} \alias{stock_msg_body} \title{Provide simple email message body components: body} \usage{ stock_msg_body() } \value{ Text suitable for the \code{msg_body} arguments of \code{\link[=email_blast]{email_blast()}}...
/man/stock_msg_body.Rd
permissive
LDalby/pointblank
R
false
true
788
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emailing.R \name{stock_msg_body} \alias{stock_msg_body} \title{Provide simple email message body components: body} \usage{ stock_msg_body() } \value{ Text suitable for the \code{msg_body} arguments of \code{\link[=email_blast]{email_blast()}}...
numPerPatch97500 <- c(2494,2506)
/NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch97500.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch97500 <- c(2494,2506)
################################ # Install packages and libraries ################################ if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org") if(!require(caret)) install.packages("caret", repos = "http://cran.us.r-project.org") if(!require(data.table)) install...
/BC.R
no_license
happycheers/BreastCancer
R
false
false
6,032
r
################################ # Install packages and libraries ################################ if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org") if(!require(caret)) install.packages("caret", repos = "http://cran.us.r-project.org") if(!require(data.table)) install...
# Attributes for both student-mat.csv (Math course) and student-por.csv # (Portuguese language course) datasets: " 1 school - student's school (binary: 'GP' - Gabriel Pereira or 'MS' - Mousinho da Silveira) 2 sex - student's sex (binary: 'F' - female or 'M' - male) 3 age - student's age (numeric: from 15 to 22) 4 add...
/script/README.R
no_license
JonathanRyanW/Student_Performance_ML
R
false
false
3,027
r
# Attributes for both student-mat.csv (Math course) and student-por.csv # (Portuguese language course) datasets: " 1 school - student's school (binary: 'GP' - Gabriel Pereira or 'MS' - Mousinho da Silveira) 2 sex - student's sex (binary: 'F' - female or 'M' - male) 3 age - student's age (numeric: from 15 to 22) 4 add...
# Read in Q_UN_EXIO_e edited version Q_UN_EXIO_e <- read_excel("H:/MyDocuments/IO work/Bridging/CES-COICOP/COICOIP_EXIO_Qual_UN_Edited.xlsx") Q_UN_EXIO_e <- as.matrix(Q_UN_EXIO_e[-dim(Q_UN_EXIO_e)[1],-c(1,dim(Q_UN_EXIO_e)[2])]) # Make a new qual mapping between ICP (instead of NTNU109) and EXIO # temp <- icp_ntnu[!is....
/Generate_base_ICP-EXIO_mapping.R
no_license
iiasa/DLE_scripts
R
false
false
2,731
r
# Read in Q_UN_EXIO_e edited version Q_UN_EXIO_e <- read_excel("H:/MyDocuments/IO work/Bridging/CES-COICOP/COICOIP_EXIO_Qual_UN_Edited.xlsx") Q_UN_EXIO_e <- as.matrix(Q_UN_EXIO_e[-dim(Q_UN_EXIO_e)[1],-c(1,dim(Q_UN_EXIO_e)[2])]) # Make a new qual mapping between ICP (instead of NTNU109) and EXIO # temp <- icp_ntnu[!is....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/medialive_operations.R \name{medialive_list_input_device_transfers} \alias{medialive_list_input_device_transfers} \title{List input devices that are currently being transferred} \usage{ medialive_list_input_device_transfers(MaxResults, NextTo...
/cran/paws.media.services/man/medialive_list_input_device_transfers.Rd
permissive
sanchezvivi/paws
R
false
true
805
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/medialive_operations.R \name{medialive_list_input_device_transfers} \alias{medialive_list_input_device_transfers} \title{List input devices that are currently being transferred} \usage{ medialive_list_input_device_transfers(MaxResults, NextTo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kolowy.R \name{kolowy} \alias{kolowy} \title{Wykres kolowy, pokazujacy zamiany} \usage{ kolowy(m) } \description{ Generuje wykres kolowy wymian } \author{ Hanna Kranas, Alicja Gosiewska, Agnieszka Ciepielewska }
/man/kolowy.Rd
no_license
byrolew/SuperFarmerMAPA
R
false
true
291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kolowy.R \name{kolowy} \alias{kolowy} \title{Wykres kolowy, pokazujacy zamiany} \usage{ kolowy(m) } \description{ Generuje wykres kolowy wymian } \author{ Hanna Kranas, Alicja Gosiewska, Agnieszka Ciepielewska }
library(testthat) library(semnet) test_check("semnet")
/tests/testthat.r
permissive
shouwangbuqi/semnet
R
false
false
56
r
library(testthat) library(semnet) test_check("semnet")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/il_gradebook_metadata.R \name{il_gradebook_metadata} \alias{il_gradebook_metadata} \title{Illuminate Gradebook Metadata} \usage{ il_gradebook_metadata(connection) } \arguments{ \item{connection}{The connection object from your \code{il_connec...
/man/il_gradebook_metadata.Rd
no_license
upeducationnetwork/illuminater
R
false
true
708
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/il_gradebook_metadata.R \name{il_gradebook_metadata} \alias{il_gradebook_metadata} \title{Illuminate Gradebook Metadata} \usage{ il_gradebook_metadata(connection) } \arguments{ \item{connection}{The connection object from your \code{il_connec...
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, 2.16562581831091e+161, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, -7.8878107148250...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615832478-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
732
r
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -5.58551357556946e+160, 2.00994342527714e-162, 1.81541609400943e-79, 7.89363005545926e+139, 2.3317908961407e-93, 2.16562581831091e+161, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, -7.8878107148250...
###################################################################################################### # D06b Moving average and sum methods; Stock market decline and recession # By William Yu, UCLA Anderson Forecast # 10/27/2018 ##########################################################################################...
/Project 6/D06b_recession.R
no_license
gosselinmarcantoine/UCLA-Projects
R
false
false
2,403
r
###################################################################################################### # D06b Moving average and sum methods; Stock market decline and recession # By William Yu, UCLA Anderson Forecast # 10/27/2018 ##########################################################################################...
library(tidyverse) library(readr) library(sf) library(sp) library(ussf) library(expm) CZ_characteristics <- read_csv("data/table8.csv") CZ_quintiles <- read_csv("data/table6.csv") CZ_map <- boundaries(geography = "cz", projection = "albers") CZ_geom <- CZ_map[[4]] CZ_quintiles$geom = CZ_geom #make sure they all ha...
/markov.R
no_license
bodensjc/socialMobility
R
false
false
9,168
r
library(tidyverse) library(readr) library(sf) library(sp) library(ussf) library(expm) CZ_characteristics <- read_csv("data/table8.csv") CZ_quintiles <- read_csv("data/table6.csv") CZ_map <- boundaries(geography = "cz", projection = "albers") CZ_geom <- CZ_map[[4]] CZ_quintiles$geom = CZ_geom #make sure they all ha...
"P.polytile03" <- function (filename="polytile03.pdf") { if(length(filename)) { pdf(file=filename, height=3, width=5) par(mar=c(0,0,0,0) + .1, cex.axis=.7, cex.lab=.7) } polytile(seed=7) if(length(filename)) dev.off() }
/TaoTeProgramming/R/P.polytile03.R
no_license
ingted/R-Examples
R
false
false
295
r
"P.polytile03" <- function (filename="polytile03.pdf") { if(length(filename)) { pdf(file=filename, height=3, width=5) par(mar=c(0,0,0,0) + .1, cex.axis=.7, cex.lab=.7) } polytile(seed=7) if(length(filename)) dev.off() }
StatSignif <- ggplot2::ggproto("StatSignif", ggplot2::Stat, required_aes = c("x", "y", "group"), setup_params = function(data, params) { # if(any(data$group == -1)|| any(data$group != data$x)){ if(any(data$group == -1)){ ...
/R/significance_annotation.R
no_license
YTLogos/ggsignif
R
false
false
16,545
r
StatSignif <- ggplot2::ggproto("StatSignif", ggplot2::Stat, required_aes = c("x", "y", "group"), setup_params = function(data, params) { # if(any(data$group == -1)|| any(data$group != data$x)){ if(any(data$group == -1)){ ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.3,family="gaussian",standardize=FALSE) sink('./NSCLC_042.txt',append=TRUE) p...
/Model/EN/Correlation/NSCLC/NSCLC_042.R
no_license
esbgkannan/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.3,family="gaussian",standardize=FALSE) sink('./NSCLC_042.txt',append=TRUE) p...
# Coursera - Exploratory Data Analysis, Week 1, Course Project 1 # Set working directory and read in the data setwd("C:/Users/Jenny/Documents/COURSERA/4 - Exploratory Data/Week 1") HPCdata <- read.csv(file = "household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE, dec=".") # Inst...
/plot4.R
no_license
fire-elf/ExData_Plotting1
R
false
false
2,609
r
# Coursera - Exploratory Data Analysis, Week 1, Course Project 1 # Set working directory and read in the data setwd("C:/Users/Jenny/Documents/COURSERA/4 - Exploratory Data/Week 1") HPCdata <- read.csv(file = "household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE, dec=".") # Inst...
#################################################################################################################### # Try to analyze individual runs of STEPPS prediction #################################################################################################################### library(rioja) ############### #...
/R/difference_maps_holocene.R
no_license
mtrachs/stepps_full_prediciton
R
false
false
4,485
r
#################################################################################################################### # Try to analyze individual runs of STEPPS prediction #################################################################################################################### library(rioja) ############### #...
# Packages used. library(stringdist) library(data.table) library(beepr) # Optional. # Save path to directory in a variable to enhance portability. project.directory <- "/d/projects/u/cd002" setwd(project.directory) directories <- list.dirs(path = ".", full.names = F, recursive = F) # In this version of the code all ...
/metrics_analysis.R
no_license
copepodito/msc_project
R
false
false
7,943
r
# Packages used. library(stringdist) library(data.table) library(beepr) # Optional. # Save path to directory in a variable to enhance portability. project.directory <- "/d/projects/u/cd002" setwd(project.directory) directories <- list.dirs(path = ".", full.names = F, recursive = F) # In this version of the code all ...
# preprocess data first # read data from file adult <- read.csv("adult.csv", header = TRUE) # first inspect the data head(adult) summary(adult) str(adult) dim(adult) # remove id column adult <- adult[,-1] # read test data set that we will make predictions on adult_test <- read.csv("adult_test.csv", header = TRUE) #...
/income-prediction.R
no_license
LynnWan9/income-prediction
R
false
false
7,335
r
# preprocess data first # read data from file adult <- read.csv("adult.csv", header = TRUE) # first inspect the data head(adult) summary(adult) str(adult) dim(adult) # remove id column adult <- adult[,-1] # read test data set that we will make predictions on adult_test <- read.csv("adult_test.csv", header = TRUE) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as.data.frame.dust.R \name{as.data.frame.dust} \alias{as.data.frame.dust} \alias{as.data.frame.dust_list} \title{Convert \code{dust} Object to Data Frame} \usage{ \method{as.data.frame}{dust}(x, ..., sprinkled = TRUE) \method{as.data.frame}{...
/man/as.data.frame.dust.Rd
no_license
mufflyt/pixiedust
R
false
true
2,264
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/as.data.frame.dust.R \name{as.data.frame.dust} \alias{as.data.frame.dust} \alias{as.data.frame.dust_list} \title{Convert \code{dust} Object to Data Frame} \usage{ \method{as.data.frame}{dust}(x, ..., sprinkled = TRUE) \method{as.data.frame}{...
require(caret) require(caretEnsemble) require(doParallel) require(dplyr) require(usdm) require(tidyverse) require(randomForest) require(ROCR) require(MASS) require(glmnet) require(dplyr) require(neuralnet) require(tidyselect) require(Hmisc) require(corrplot) require(GGally) require(elasticnet) require(brnn) require(obl...
/project.R
no_license
Yuqizhoujoe/Deloitte-March-Data-Crunch-Madness-Competition-Kickoff
R
false
false
8,241
r
require(caret) require(caretEnsemble) require(doParallel) require(dplyr) require(usdm) require(tidyverse) require(randomForest) require(ROCR) require(MASS) require(glmnet) require(dplyr) require(neuralnet) require(tidyselect) require(Hmisc) require(corrplot) require(GGally) require(elasticnet) require(brnn) require(obl...
#' Set edge attributes with an edge selection #' @description From a graph object of class #' \code{dgr_graph} or an edge data frame, set edge #' attribute properties for one or more edges. #' #' Selections of edges can be performed using #' the following \code{select_...} functions: #' \code{select_edges()}, #' \code{...
/R/set_edge_attrs_ws.R
permissive
FeifanXie/DiagrammeR
R
false
false
3,409
r
#' Set edge attributes with an edge selection #' @description From a graph object of class #' \code{dgr_graph} or an edge data frame, set edge #' attribute properties for one or more edges. #' #' Selections of edges can be performed using #' the following \code{select_...} functions: #' \code{select_edges()}, #' \code{...
library(tidyverse) library(class) library(gmodels) wbcd <- read.csv('/Users/kirkw/R_code/machine_learning/9781789618006_Code/Data/wisc_bc_data.csv', stringsAsFactors = FALSE) # drop first column wbcd <- wbcd[-1] # benign or malignant table(wbcd$diagnosis) # classify as a factor and give better names wbcd$diagnosis ...
/knn_breatcancer.R
no_license
kwythers/machine_learning
R
false
false
2,286
r
library(tidyverse) library(class) library(gmodels) wbcd <- read.csv('/Users/kirkw/R_code/machine_learning/9781789618006_Code/Data/wisc_bc_data.csv', stringsAsFactors = FALSE) # drop first column wbcd <- wbcd[-1] # benign or malignant table(wbcd$diagnosis) # classify as a factor and give better names wbcd$diagnosis ...