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
#' ReporteRs lets you create Microsoft Word, Microsoft PowerPoint #' and html documents. #' #' To get an r document object: #' \itemize{ #' \item \code{\link{docx}} Create a Microsoft Word document object #' \item \code{\link{pptx}} Create a Microsoft PowerPoint document object #' \item \code{\link{bsdoc}} Create...
/ReporteRs/R/ReporteRs.R
no_license
ingted/R-Examples
R
false
false
4,522
r
#' ReporteRs lets you create Microsoft Word, Microsoft PowerPoint #' and html documents. #' #' To get an r document object: #' \itemize{ #' \item \code{\link{docx}} Create a Microsoft Word document object #' \item \code{\link{pptx}} Create a Microsoft PowerPoint document object #' \item \code{\link{bsdoc}} Create...
\name{validConnection} \alias{validConnection} \title{ Determine connection validity } \description{ Determine if a connection to an HTML page can be written to or not. } \usage{ validConnection(htmlRep) } \arguments{ \item{htmlRep}{ An object of class \code{HTMLReport}. } } \value{ Returns TRUE if the pa...
/man/validConnection.Rd
no_license
JasonHackney/ReportingTools
R
false
false
862
rd
\name{validConnection} \alias{validConnection} \title{ Determine connection validity } \description{ Determine if a connection to an HTML page can be written to or not. } \usage{ validConnection(htmlRep) } \arguments{ \item{htmlRep}{ An object of class \code{HTMLReport}. } } \value{ Returns TRUE if the pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dirr.R \name{dirr} \alias{dirr} \title{Directory listing of R-related files/folders} \usage{ dirr(path = ".", ignore.case = TRUE, ...) } \arguments{ \item{path}{A file path string, optional, default is current working directory.} \item{ignor...
/man/dirr.Rd
no_license
ejanalysis/analyze.stuff
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dirr.R \name{dirr} \alias{dirr} \title{Directory listing of R-related files/folders} \usage{ dirr(path = ".", ignore.case = TRUE, ...) } \arguments{ \item{path}{A file path string, optional, default is current working directory.} \item{ignor...
#### ---- Project: APHRC Wash Data ---- #### ---- Task: Modeling real data ---- #### ---- Fit switch data ---- #### ---- By: Steve and Jonathan ---- #### ---- Date: 2019 Dec 24 (Tue) ---- library(splines) library(dplyr) library(tidyr) library(data.table) library(tibble) library(lme4) load("washModeldata.rda") ## Inp...
/washModelfit_inter_pglmerS.R
no_license
CYGUBICKO/wash
R
false
false
945
r
#### ---- Project: APHRC Wash Data ---- #### ---- Task: Modeling real data ---- #### ---- Fit switch data ---- #### ---- By: Steve and Jonathan ---- #### ---- Date: 2019 Dec 24 (Tue) ---- library(splines) library(dplyr) library(tidyr) library(data.table) library(tibble) library(lme4) load("washModeldata.rda") ## Inp...
## ----setup, echo = FALSE, results = "hide"------------------------------- ##allows to knit with errors for pedagogical purposes knitr::opts_chunk$set(error = TRUE) ## ------------------------------------------------------------------------ # Create a vector filled with random values # we want to use a loop to get th...
/download/day2/programming day two functions and apply.R
permissive
bstewart/princeton_methods_camp
R
false
false
14,594
r
## ----setup, echo = FALSE, results = "hide"------------------------------- ##allows to knit with errors for pedagogical purposes knitr::opts_chunk$set(error = TRUE) ## ------------------------------------------------------------------------ # Create a vector filled with random values # we want to use a loop to get th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/areacircle.R \name{area_of_a_circle} \alias{area_of_a_circle} \title{Calculate the Area of a Circle} \usage{ area_of_a_circle(r) } \arguments{ \item{r}{The radius of the circle} } \value{ The area of the circle } \description{ To calculate th...
/man/area_of_a_circle.Rd
no_license
twn-wi11i4m/areacircle
R
false
true
427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/areacircle.R \name{area_of_a_circle} \alias{area_of_a_circle} \title{Calculate the Area of a Circle} \usage{ area_of_a_circle(r) } \arguments{ \item{r}{The radius of the circle} } \value{ The area of the circle } \description{ To calculate th...
#' tsBET #' #' Testing for batch effets in temporal scRNA-seq data #' batch effect test for temporal scRNA-seq data #' #' @param x a M by M sparse matrix representing the adjacency graph of the cells #' @param batch a numeric vector indicating the batch labels of each cell #' @param time.table a binary matrix indicati...
/R/tsBET.r
no_license
zhanghao-njmu/scNCA
R
false
false
2,597
r
#' tsBET #' #' Testing for batch effets in temporal scRNA-seq data #' batch effect test for temporal scRNA-seq data #' #' @param x a M by M sparse matrix representing the adjacency graph of the cells #' @param batch a numeric vector indicating the batch labels of each cell #' @param time.table a binary matrix indicati...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{simReTrm} \alias{simReTrm} \title{Simulate from a random effects term} \usage{ simReTrm(object) } \arguments{ \item{object}{\code{\link{reTrmStruct}} object} } \value{ a numeric vector of length equal to the number of rows of the model matrix for the term. } \d...
/man/simReTrm.Rd
no_license
stevencarlislewalker/lme4ord
R
false
false
535
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{simReTrm} \alias{simReTrm} \title{Simulate from a random effects term} \usage{ simReTrm(object) } \arguments{ \item{object}{\code{\link{reTrmStruct}} object} } \value{ a numeric vector of length equal to the number of rows of the model matrix for the term. } \d...
head(mutate(t, y = '2000', y1 = '2020')) head(mutate(t, disp_rank = rank(disp))) distinct(t, hp) distinct(t, gear) distinct(t, hp, cyl, gear)
/7일차/test07-04.R
no_license
dksktjdrhks2/R_programming
R
false
false
155
r
head(mutate(t, y = '2000', y1 = '2020')) head(mutate(t, disp_rank = rank(disp))) distinct(t, hp) distinct(t, gear) distinct(t, hp, cyl, gear)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cdn_kronecker_matrix.R \name{cdn_kronecker_matrix} \alias{cdn_kronecker_matrix} \title{cdn_kronecker_matrix} \usage{ cdn_kronecker_matrix(r) } \arguments{ \item{r}{integer} } \value{ 12 or NULL } \description{ Checks Hadamard M...
/man/cdn_kronecker_matrix.Rd
no_license
cran/HadamardR
R
false
true
659
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cdn_kronecker_matrix.R \name{cdn_kronecker_matrix} \alias{cdn_kronecker_matrix} \title{cdn_kronecker_matrix} \usage{ cdn_kronecker_matrix(r) } \arguments{ \item{r}{integer} } \value{ 12 or NULL } \description{ Checks Hadamard M...
require(dplyr, warn.conflicts = FALSE) require(data.table, warn.conflicts = FALSE) require(hashr) CreateBigrams <- function(tokens) { # Creates a simple matrix with a row for each bigram and a column # for each word. # # Args: # tokens: A vector of words # # Returns: # A matrix with a row for ea...
/model-functions.R
permissive
chrislill/next-word
R
false
false
10,543
r
require(dplyr, warn.conflicts = FALSE) require(data.table, warn.conflicts = FALSE) require(hashr) CreateBigrams <- function(tokens) { # Creates a simple matrix with a row for each bigram and a column # for each word. # # Args: # tokens: A vector of words # # Returns: # A matrix with a row for ea...
#1st plot for Exploratory Data Analysis Course #Peer-graded Assignment: Course Project 1 #This script supposes that your cwd is "~/ExData_Plotting1". If not, set it with setwd(). library("lubridate") #Download the zip folder and extract the dataset url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhouseho...
/plot1.R
no_license
AGiugno86/ExData_Plotting1
R
false
false
1,555
r
#1st plot for Exploratory Data Analysis Course #Peer-graded Assignment: Course Project 1 #This script supposes that your cwd is "~/ExData_Plotting1". If not, set it with setwd(). library("lubridate") #Download the zip folder and extract the dataset url = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhouseho...
## Since matrix inversion is usually costly, these two functions allow for the ## inverse of a matrix to be cached rather than computing it repeatadly. ## Creates a special matrix that can cache it's inverse makeCacheMatrix <- function(x = matrix()) { inverted <- NULL set <- function(y) { x <<- y inverte...
/cachematrix.R
no_license
qwertyfire/ProgrammingAssignment2
R
false
false
1,100
r
## Since matrix inversion is usually costly, these two functions allow for the ## inverse of a matrix to be cached rather than computing it repeatadly. ## Creates a special matrix that can cache it's inverse makeCacheMatrix <- function(x = matrix()) { inverted <- NULL set <- function(y) { x <<- y inverte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{sim_biallelic} \alias{sim_biallelic} \title{Simulate biallelic data} \usage{ sim_biallelic( COIs = c(1, 1), haplotypematrix = matrix(1, 2, 2), shape1 = 1, shape2 = 1, coverage = 100, alpha = 1, overdispersion = 0, ...
/man/sim_biallelic.Rd
permissive
nickbrazeau/polySimIBD
R
false
true
2,890
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{sim_biallelic} \alias{sim_biallelic} \title{Simulate biallelic data} \usage{ sim_biallelic( COIs = c(1, 1), haplotypematrix = matrix(1, 2, 2), shape1 = 1, shape2 = 1, coverage = 100, alpha = 1, overdispersion = 0, ...
\name{rkafka.readPoll} \alias{rkafka.readPoll} %- Also NEED an '\alias' for EACH other topic documented here. \title{ KAFKA consumer reading messages(batch) } \description{ This function reads messages received by a KAFKA consumer. It returns a batch of messages } \usage{ rkafka.readPoll(ConsumerObj) } %- maybe also 'u...
/man/rkafka.readPoll.Rd
permissive
jurbanhost/rkafka
R
false
false
1,543
rd
\name{rkafka.readPoll} \alias{rkafka.readPoll} %- Also NEED an '\alias' for EACH other topic documented here. \title{ KAFKA consumer reading messages(batch) } \description{ This function reads messages received by a KAFKA consumer. It returns a batch of messages } \usage{ rkafka.readPoll(ConsumerObj) } %- maybe also 'u...
#this files aimed for initial data cleaning library(bit64) library(magrittr) library(lubridate) library(dplyr) library(tidyr) library(xlsx) beneficiary<-readRDS('../dataset/beneficiary.RData') #print out first 5 observations from beneficiary dataset head(beneficiary) #convert date variable into date format: beneficia...
/data_clean.R
no_license
precision-analytics/SynPUFs
R
false
false
4,430
r
#this files aimed for initial data cleaning library(bit64) library(magrittr) library(lubridate) library(dplyr) library(tidyr) library(xlsx) beneficiary<-readRDS('../dataset/beneficiary.RData') #print out first 5 observations from beneficiary dataset head(beneficiary) #convert date variable into date format: beneficia...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/COCOA.R \name{getTopRegions} \alias{getTopRegions} \title{Get regions that are most associated with target variable} \usage{ getTopRegions( signal, signalCoord, regionSet, signalCol = c("PC1", "PC2"), cutoff = 0.8, returnQuantile ...
/man/getTopRegions.Rd
permissive
databio/COCOA
R
false
true
2,869
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/COCOA.R \name{getTopRegions} \alias{getTopRegions} \title{Get regions that are most associated with target variable} \usage{ getTopRegions( signal, signalCoord, regionSet, signalCol = c("PC1", "PC2"), cutoff = 0.8, returnQuantile ...
is_corpus_df <- function(corpus) { stopifnot(inherits(corpus, "data.frame"), ncol(corpus) >= 2, all(names(corpus)[1L:2L] == c("doc_id", "text")), is.character(corpus$doc_id), is.character(corpus$doc_id), nrow(corpus) > 0) TRUE # if it doesn't fail from the...
/fuzzedpackages/tokenizers/R/coercion.R
no_license
akhikolla/testpackages
R
false
false
555
r
is_corpus_df <- function(corpus) { stopifnot(inherits(corpus, "data.frame"), ncol(corpus) >= 2, all(names(corpus)[1L:2L] == c("doc_id", "text")), is.character(corpus$doc_id), is.character(corpus$doc_id), nrow(corpus) > 0) TRUE # if it doesn't fail from the...
source("./forest_plots_helper_functions.R") ## 1exp:Mout source("./one_exp_many_out.R") ########################################################################################## newtestdata <- read.delim("../inst/data/lungcancer.txt", as.is = TRUE) newtestplot <- one_exp_many_out(inpt_Df = newtestdata, eff_Col = "...
/R/lung_example.R
permissive
mightyphil2000/ForestPlots
R
false
false
688
r
source("./forest_plots_helper_functions.R") ## 1exp:Mout source("./one_exp_many_out.R") ########################################################################################## newtestdata <- read.delim("../inst/data/lungcancer.txt", as.is = TRUE) newtestplot <- one_exp_many_out(inpt_Df = newtestdata, eff_Col = "...
library(readr) library(tidyverse) library(lubridate) library(ggplot2) library(dplyr) library(plotly) # Load data---- household_power_consumption <- read_delim("household_power_consumption.txt", delim = ";", escape_double = FALSE, col_types = cols(Date = col_date(format...
/Model IoT.R
no_license
NatasjaFortuin/Iot_Analytics
R
false
false
7,423
r
library(readr) library(tidyverse) library(lubridate) library(ggplot2) library(dplyr) library(plotly) # Load data---- household_power_consumption <- read_delim("household_power_consumption.txt", delim = ";", escape_double = FALSE, col_types = cols(Date = col_date(format...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simpl.R \name{test_gurobi} \alias{test_gurobi} \title{Test the Gurobi MILP solver} \usage{ test_gurobi() } \description{ Test the Gurobi MILP solver }
/man/test_gurobi.Rd
no_license
pauljensen/cutfree
R
false
true
230
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simpl.R \name{test_gurobi} \alias{test_gurobi} \title{Test the Gurobi MILP solver} \usage{ test_gurobi() } \description{ Test the Gurobi MILP solver }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{plotTotalCases} \alias{plotTotalCases} \title{plotTotalCases} \usage{ plotTotalCases(covid19Filtered, plotPath, ylims = NA, ncols = 4) } \arguments{ \item{covid19Filtered}{data.frame with (filtered) data} \item{plotPath}{full p...
/man/plotTotalCases.Rd
no_license
mesontau/covid19
R
false
true
506
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{plotTotalCases} \alias{plotTotalCases} \title{plotTotalCases} \usage{ plotTotalCases(covid19Filtered, plotPath, ylims = NA, ncols = 4) } \arguments{ \item{covid19Filtered}{data.frame with (filtered) data} \item{plotPath}{full p...
# libraries ###### library(dplyr) library(tidyr) library(stringr) library(purrr) # Subjects #### subject_train = read.csv("./data/subject_train.txt", header = FALSE) subject_test = read.csv("./data/subject_test.txt", header = FALSE) colnames(subject_train) = "subject" colnames(subject_test) = "subject" subj...
/run_analysis.R
no_license
hatemgkotb/R-Data-Cleaning
R
false
false
3,171
r
# libraries ###### library(dplyr) library(tidyr) library(stringr) library(purrr) # Subjects #### subject_train = read.csv("./data/subject_train.txt", header = FALSE) subject_test = read.csv("./data/subject_test.txt", header = FALSE) colnames(subject_train) = "subject" colnames(subject_test) = "subject" subj...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_celltype_associations.r \name{plot_celltype_associations} \alias{plot_celltype_associations} \title{Plot celltype associations calculated using MAGMA} \usage{ plot_celltype_associations(ctAssocs, useSignificanceLine = TRUE, savePDF = T...
/man/plot_celltype_associations.Rd
no_license
gyd1990/MAGMA_Celltyping
R
false
true
847
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_celltype_associations.r \name{plot_celltype_associations} \alias{plot_celltype_associations} \title{Plot celltype associations calculated using MAGMA} \usage{ plot_celltype_associations(ctAssocs, useSignificanceLine = TRUE, savePDF = T...
hist(menu$Carbohydrates, main = "Carbohydrates consumed", xlab = "Carbohydrates", ylab = "Percentage") hist(menu$Protein, main = "Protein in Mcdonald menu", xlab = "Protein", ylab = "Qauntity in grams") barplot(table(menu$Sugars), main = "Sugar in McDonald's meals", ylab = "Frequency", xlab = "Sugar Quantity") barplot(...
/Project codes.R
no_license
Amaltaha1989/My-project-Mat-327
R
false
false
414
r
hist(menu$Carbohydrates, main = "Carbohydrates consumed", xlab = "Carbohydrates", ylab = "Percentage") hist(menu$Protein, main = "Protein in Mcdonald menu", xlab = "Protein", ylab = "Qauntity in grams") barplot(table(menu$Sugars), main = "Sugar in McDonald's meals", ylab = "Frequency", xlab = "Sugar Quantity") barplot(...
/gnome1/third_party_lib/qt libraries/RIncludes/ConditionalMacros.r
permissive
NOAA-ORR-ERD/PyGnome
R
false
false
13,891
r
# VisaDoorScraper.R rm(list=ls()) # libraries library(XML) library(rvest) library(data.table) library(qdap) library(stringr) library(xlsx) library(dplyr) library(magrittr) library(tidyr) library(pbapply) library(progress) # set folder setwd("/Users/pedrorodriguez/Dropbox/Venezuela/DiasporaVenezuela/VisaDoor") # Summ...
/visadoor-scraper/Code/VisaDoorScraperAll.R
no_license
prodriguezsosa/Diaspora-Venezuela
R
false
false
16,171
r
# VisaDoorScraper.R rm(list=ls()) # libraries library(XML) library(rvest) library(data.table) library(qdap) library(stringr) library(xlsx) library(dplyr) library(magrittr) library(tidyr) library(pbapply) library(progress) # set folder setwd("/Users/pedrorodriguez/Dropbox/Venezuela/DiasporaVenezuela/VisaDoor") # Summ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/randomize.R \name{randomize_block} \alias{randomize_block} \title{Title} \usage{ randomize_block(block_data, unit_id, intervention_type = "percentage", intervention_quantity = 50, baseline_vars = NULL) } \arguments{ \item{unit_id}{} } \desc...
/man/randomize_block.Rd
no_license
mathematica-mpr/edtechrce
R
false
true
351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/randomize.R \name{randomize_block} \alias{randomize_block} \title{Title} \usage{ randomize_block(block_data, unit_id, intervention_type = "percentage", intervention_quantity = 50, baseline_vars = NULL) } \arguments{ \item{unit_id}{} } \desc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reclass.r \name{reclass} \alias{reclass} \alias{reclass<-} \title{reclass} \usage{ reclass(x, value) reclass(x) <- value } \arguments{ \item{x}{The x getting the new class} \item{value}{The new class} } \value{ The original x with the class...
/man/reclass.Rd
no_license
jaredlander/useful
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reclass.r \name{reclass} \alias{reclass} \alias{reclass<-} \title{reclass} \usage{ reclass(x, value) reclass(x) <- value } \arguments{ \item{x}{The x getting the new class} \item{value}{The new class} } \value{ The original x with the class...
################### Create tree map start ############# setwd("E:/eKart/visualization/treeMap/") library(treemap) # Read files which contain the hub data and colour mapping treeMap = read.csv("hub_load_utilization.csv") colourMapping<-read.csv("colorMapping.csv") treeMap=merge(treeMap, colourMapping, by = c...
/R/visualization/treeMap/treeMap.R
no_license
sudhakar-settipalli/ekart-analytics
R
false
false
1,032
r
################### Create tree map start ############# setwd("E:/eKart/visualization/treeMap/") library(treemap) # Read files which contain the hub data and colour mapping treeMap = read.csv("hub_load_utilization.csv") colourMapping<-read.csv("colorMapping.csv") treeMap=merge(treeMap, colourMapping, by = c...
library(LCMCR) ### Name: lcmCR_PostSampl ### Title: Generate Samples from the Posterior Distribution of Population ### Size under a LCMCR Model ### Aliases: lcmCR_PostSampl ### ** Examples data(kosovo_aggregate) sampler <- lcmCR(captures = kosovo_aggregate, tabular = FALSE, in_list_label = '1', not_in_list_...
/data/genthat_extracted_code/LCMCR/examples/lcmCR_PostSampl.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
503
r
library(LCMCR) ### Name: lcmCR_PostSampl ### Title: Generate Samples from the Posterior Distribution of Population ### Size under a LCMCR Model ### Aliases: lcmCR_PostSampl ### ** Examples data(kosovo_aggregate) sampler <- lcmCR(captures = kosovo_aggregate, tabular = FALSE, in_list_label = '1', not_in_list_...
Bay_Arrival = A <- rain.long[t,"Shabeellaha_Dhexe_rain"] B <- arrs.long[(t-1),"Woqooyi_Galbeed_Arrival"] C <- mean(arrs.long[(t-6):t,"Togdheer_Arrival"]) E <- 2.84291053988138*arrs.long[t,"Bakool_Arrival"] Fa <- 1.90605269499887*arrs.long[t,"Bari_Arrival"] G <- 0.582938861571093*deps.long[t,"Bay_D...
/Bay.R
no_license
sofiaqiriazi/Monthly_Engine
R
false
false
10,223
r
Bay_Arrival = A <- rain.long[t,"Shabeellaha_Dhexe_rain"] B <- arrs.long[(t-1),"Woqooyi_Galbeed_Arrival"] C <- mean(arrs.long[(t-6):t,"Togdheer_Arrival"]) E <- 2.84291053988138*arrs.long[t,"Bakool_Arrival"] Fa <- 1.90605269499887*arrs.long[t,"Bari_Arrival"] G <- 0.582938861571093*deps.long[t,"Bay_D...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testWikiPage.R \name{testWikiPage} \alias{testWikiPage} \title{internal function testWikiPage} \usage{ testWikiPage(page = NULL, domain = "en") } \arguments{ \item{page}{numeric identifier or character title of the specific wikipedia...
/man/testWikiPage.Rd
no_license
fxjollois/WikipediaR
R
false
true
1,427
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testWikiPage.R \name{testWikiPage} \alias{testWikiPage} \title{internal function testWikiPage} \usage{ testWikiPage(page = NULL, domain = "en") } \arguments{ \item{page}{numeric identifier or character title of the specific wikipedia...
\name{MetaCcmd} \alias{MetaCcmd} \title{Internal anRpackage objects} \description{Internal anRpackage objects.} \details{These are not to be called by the user.} \keyword{internal}
/man/MetaCcmd.Rd
no_license
cran/RcmdrPlugin.MA
R
false
false
185
rd
\name{MetaCcmd} \alias{MetaCcmd} \title{Internal anRpackage objects} \description{Internal anRpackage objects.} \details{These are not to be called by the user.} \keyword{internal}
library(filesstrings) trafficName <- c('celkova_nehodovost','zraneni','usmrteni') nameDirs <- c("Ap_index", "Dst_index", "Kp_index", "Lyman_alpha_index", "R_sunspot_number", "Solar_index_F10.7", "Proton_flux_over_10_MeV", "Proton_flux_over_30_MeV", "Proton_flux_over_60_MeV", "Solar_wind_temperature", "Solar_wind_dens...
/spracovane_data/2010-2018/6-rocna_korelacia/2011-2016/Statistika/porovnanieParametrov/porovnanieParametrov.r
no_license
astronomer93/dopravna_nehodovost
R
false
false
4,498
r
library(filesstrings) trafficName <- c('celkova_nehodovost','zraneni','usmrteni') nameDirs <- c("Ap_index", "Dst_index", "Kp_index", "Lyman_alpha_index", "R_sunspot_number", "Solar_index_F10.7", "Proton_flux_over_10_MeV", "Proton_flux_over_30_MeV", "Proton_flux_over_60_MeV", "Solar_wind_temperature", "Solar_wind_dens...
#!/usr/bin/env Rscript ################################################ ################################################ ## LOAD LIBRARIES ## ################################################ ################################################ library(optparse) library(UpSetR) ###############...
/bin/plot_peak_intersect.r
permissive
nf-core/atacseq
R
false
false
2,669
r
#!/usr/bin/env Rscript ################################################ ################################################ ## LOAD LIBRARIES ## ################################################ ################################################ library(optparse) library(UpSetR) ###############...
colzone<-as.data.frame(table(merged_dataset$Zone.x)) library(plotly) x <- colzone$Var1 y <- colzone$Freq #text <- c('27% market share', '24% market share', '19% market share') data <- data.frame(x, y) p <- plot_ly(data, x = ~x, y = ~y, type = 'bar', marker = list(color = 'rgb(158,202,225)', ...
/hackapr17/t23-hackapr17/egov scripts/complaints received zone wise.R
no_license
egovernments/Hackathon
R
false
false
598
r
colzone<-as.data.frame(table(merged_dataset$Zone.x)) library(plotly) x <- colzone$Var1 y <- colzone$Freq #text <- c('27% market share', '24% market share', '19% market share') data <- data.frame(x, y) p <- plot_ly(data, x = ~x, y = ~y, type = 'bar', marker = list(color = 'rgb(158,202,225)', ...
# This script imports incubation data from excel file saves data to .rds files and plots cumulative mineralization plots # Author: Itamar Shabtai # Version: 2020-01-26 # Libraries library(tidyverse) library(here) library(readxl) # files---- data_file_in <- here("raw-data/Soil respiration/national_soil_respiration_g...
/scripts/soil_incubation_script_group4b.R
no_license
itamshab/National-soils
R
false
false
5,188
r
# This script imports incubation data from excel file saves data to .rds files and plots cumulative mineralization plots # Author: Itamar Shabtai # Version: 2020-01-26 # Libraries library(tidyverse) library(here) library(readxl) # files---- data_file_in <- here("raw-data/Soil respiration/national_soil_respiration_g...
#!/usr/bin/env Rscript # This is a helper script to install packages and start Shiny # Install checkpoint package to install other packages if (!require(checkpoint)) install.packages("checkpoint") library(checkpoint) # The following command downloads other required packages found in project folder # The packages ar...
/run.R
permissive
SavoniaUAS/sami-analysis
R
false
false
496
r
#!/usr/bin/env Rscript # This is a helper script to install packages and start Shiny # Install checkpoint package to install other packages if (!require(checkpoint)) install.packages("checkpoint") library(checkpoint) # The following command downloads other required packages found in project folder # The packages ar...
best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures.csv") ## Check that state and outcome are valid states <- data[, 7] state_name <- FALSE for(i in 1:length(states)){ if(state == states[i]){ state_name <- TRUE } } if(state_name == FALSE...
/Course 2 Assignment/best.R
no_license
yujie0124/datasciencecoursera
R
false
false
947
r
best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures.csv") ## Check that state and outcome are valid states <- data[, 7] state_name <- FALSE for(i in 1:length(states)){ if(state == states[i]){ state_name <- TRUE } } if(state_name == FALSE...
\name{batsmanPerfBoxHist} \alias{batsmanPerfBoxHist} \title{ Make a boxplot and a histogram of the runs scored by the batsman } \description{ Make a boxplot and histogram of the runs scored by the batsman. Plot the Mean, Median, 25th and 75th quantile } \usage{ batsmanPerfBoxHist(file, name="A Hitter") } %- maybe also ...
/SPL/cricketr-master/cricketr-master/man/batsmanPerfBoxHist.Rd
no_license
revanth465/CricketStats
R
false
false
1,543
rd
\name{batsmanPerfBoxHist} \alias{batsmanPerfBoxHist} \title{ Make a boxplot and a histogram of the runs scored by the batsman } \description{ Make a boxplot and histogram of the runs scored by the batsman. Plot the Mean, Median, 25th and 75th quantile } \usage{ batsmanPerfBoxHist(file, name="A Hitter") } %- maybe also ...
#' @title Auxiliary function for the log-likelihood estimation of GeCUB models. #' @aliases Qunogecub #' @description Define the opposite one of the two scalar functions that are maximized when running the E-M algorithm #' for GeCUB models with covariates for feeling, uncertainty and overdispersion. #' @keywords in...
/R/Qunogecub.R
no_license
cran/CUB
R
false
false
1,034
r
#' @title Auxiliary function for the log-likelihood estimation of GeCUB models. #' @aliases Qunogecub #' @description Define the opposite one of the two scalar functions that are maximized when running the E-M algorithm #' for GeCUB models with covariates for feeling, uncertainty and overdispersion. #' @keywords in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sg_1hd.R \name{sg_average} \alias{sg_average} \title{Function for calculating Average Specific Gravity} \usage{ sg_average(...) } \arguments{ \item{sgs1_1hd}{Specific gravity sample 1 (First harvest date)} \item{sgs2_1hd}{Specific gravity sa...
/man/sg_average.Rd
permissive
c5sire/sbformula
R
false
true
1,175
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sg_1hd.R \name{sg_average} \alias{sg_average} \title{Function for calculating Average Specific Gravity} \usage{ sg_average(...) } \arguments{ \item{sgs1_1hd}{Specific gravity sample 1 (First harvest date)} \item{sgs2_1hd}{Specific gravity sa...
source('dldata.R') plot1 <- function() { tbl <- prepareData() png(filename = "plot1.png", width = 480, height = 480, units = "px") hist(tbl$Global_active_power, main="Global Active Power", xlab="Global Active Power (kilowatts)", col="red") dev.off() } plot2 <- function() { tbl <- prepareData()...
/plotGraph.R
no_license
vkrit/ExData_Plotting1
R
false
false
1,970
r
source('dldata.R') plot1 <- function() { tbl <- prepareData() png(filename = "plot1.png", width = 480, height = 480, units = "px") hist(tbl$Global_active_power, main="Global Active Power", xlab="Global Active Power (kilowatts)", col="red") dev.off() } plot2 <- function() { tbl <- prepareData()...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_read_years} \alias{fars_read_years} \title{Read Multiple Years of Accident Data} \usage{ fars_read_years(years) } \arguments{ \item{years}{A vector of years.} } \value{ A list of \code{data_frames} containing the m...
/man/fars_read_years.Rd
permissive
acjackman/building_r_packages
R
false
true
726
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_read_years} \alias{fars_read_years} \title{Read Multiple Years of Accident Data} \usage{ fars_read_years(years) } \arguments{ \item{years}{A vector of years.} } \value{ A list of \code{data_frames} containing the m...
#' @title retrieve basic financial data #' #' @description `get_basic_financials` retrieves basic financial information for a given company #' #' @param symbol the stock symbol to retrieve data for #' @param api.key your API token from finnhub.io #' @param metric.type the type of metric to retrieve data for #' @param w...
/R/get_basic_financials.R
no_license
atamalu/finntools
R
false
false
1,348
r
#' @title retrieve basic financial data #' #' @description `get_basic_financials` retrieves basic financial information for a given company #' #' @param symbol the stock symbol to retrieve data for #' @param api.key your API token from finnhub.io #' @param metric.type the type of metric to retrieve data for #' @param w...
# Define server logic server <- shinyServer(function(input, output, session) { observeEvent(input$run,{ req(input$file) counts <- read.table(input$file$datapath, header = T, sep = "\t", row.names = 1) counts = counts[ , order...
/inst/app/server.R
no_license
bixBeta/deseq2shiny
R
false
false
20,630
r
# Define server logic server <- shinyServer(function(input, output, session) { observeEvent(input$run,{ req(input$file) counts <- read.table(input$file$datapath, header = T, sep = "\t", row.names = 1) counts = counts[ , order...
#------------------------------------------------------------------------------- if(!is.loaded('BesselBeamsP')) { cat("Loading shared library \"BesselBeamsP.so\".\n") dyn.load("BesselBeamsP.so") #}else{ # cat("Shared library \"BesselBeamsP.so\" already loaded.\n") # cat("Unloading shared library \"BesselBeams...
/BesselBeamsP.r
no_license
aneves76/R-VSWF
R
false
false
1,149
r
#------------------------------------------------------------------------------- if(!is.loaded('BesselBeamsP')) { cat("Loading shared library \"BesselBeamsP.so\".\n") dyn.load("BesselBeamsP.so") #}else{ # cat("Shared library \"BesselBeamsP.so\" already loaded.\n") # cat("Unloading shared library \"BesselBeams...
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/upper_aerodigestive_tract.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="mae",alpha=0.55,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/upper_aerodige...
/Model/EN/ReliefF/upper_aerodigestive_tract/upper_aerodigestive_tract_063.R
no_license
leon1003/QSMART
R
false
false
409
r
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/upper_aerodigestive_tract.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="mae",alpha=0.55,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/upper_aerodige...
########################## ### growing a classification tree ########################## phone <- read.csv("phone.csv") View(phone) ### we will predict whether a customer will abandon the company ### the target variable is churn (1 - yes, 0 - no) ### the predictors are tenure, age, income, education and f...
/code/ml-r-files/lect041-classification-tree.R
no_license
zhou100/ML_prediction
R
false
false
1,113
r
########################## ### growing a classification tree ########################## phone <- read.csv("phone.csv") View(phone) ### we will predict whether a customer will abandon the company ### the target variable is churn (1 - yes, 0 - no) ### the predictors are tenure, age, income, education and f...
################## DMC Lesson 3: Sampling # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # # THESE LESSONS REQUIRE PACKAGES # # snowfall AND rlecuyer # # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # ### Lesson 3.1: Sampling a single LNR subject # In a Bayesian context we fit a model and obtain estimates of its parameters # that ...
/DMC-MBN18/tutorial/dmc_3_1_LNRsampling.R
no_license
StevenM1/summerschool_mbn_2018
R
false
false
12,012
r
################## DMC Lesson 3: Sampling # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # # THESE LESSONS REQUIRE PACKAGES # # snowfall AND rlecuyer # # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # ### Lesson 3.1: Sampling a single LNR subject # In a Bayesian context we fit a model and obtain estimates of its parameters # that ...
p_ineffs <- function (loop.data, slope, intercept) { flip.x <- loop.data$flip.x flip.y <- loop.data$flip.y # Upper left and lower right if ( (flip.x == flip.y) && (is.na(slope) || slope <= 1E-3) ) { return( list(x=NA, y=NA, abs=NA, rel=NA) ) } # Lower left and upper right if ( (flip.x != flip.y) && (...
/R/p_ineffs.R
no_license
cran/NCA
R
false
false
2,134
r
p_ineffs <- function (loop.data, slope, intercept) { flip.x <- loop.data$flip.x flip.y <- loop.data$flip.y # Upper left and lower right if ( (flip.x == flip.y) && (is.na(slope) || slope <= 1E-3) ) { return( list(x=NA, y=NA, abs=NA, rel=NA) ) } # Lower left and upper right if ( (flip.x != flip.y) && (...
## this program creates the first plot ## assume the working directory contains the downloaded file ## we use sql to read in only the dates we need library("sqldf") hpcdata <- read.csv.sql("household_power_consumption.txt",sep = ";",sql = 'select * from file where Date = "1/2/2007" OR Date = "2/2/2007" ') ## create a d...
/plot1.R
no_license
gregdistler/ExData_Plotting1
R
false
false
605
r
## this program creates the first plot ## assume the working directory contains the downloaded file ## we use sql to read in only the dates we need library("sqldf") hpcdata <- read.csv.sql("household_power_consumption.txt",sep = ";",sql = 'select * from file where Date = "1/2/2007" OR Date = "2/2/2007" ') ## create a d...
## this function will calculate the inverse of a matrix and store it ##in the cache to use it later ## in the make cache matrix function you will define the matrix and make the setup to call it from the cache makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x ...
/cachematrix.R
no_license
arturo971/ProgrammingAssignment2
R
false
false
1,067
r
## this function will calculate the inverse of a matrix and store it ##in the cache to use it later ## in the make cache matrix function you will define the matrix and make the setup to call it from the cache makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x ...
#' Calculate a web link to download Oceanographic data #' #' This function is able to construct universal resource locators (URLs) #' that can be used with \code{\link{download.file}} to download data from #' several common Oceanographic repositories. The goal of this function is to #' spare users the task of finding s...
/R/repo.R
no_license
SvenGastauer/oce
R
false
false
10,614
r
#' Calculate a web link to download Oceanographic data #' #' This function is able to construct universal resource locators (URLs) #' that can be used with \code{\link{download.file}} to download data from #' several common Oceanographic repositories. The goal of this function is to #' spare users the task of finding s...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # # sendSweetAlert(text = "Unable to login with username/password", type = "error", closeOnClickOutside = TRUE, title...
/old/prev_app.R
no_license
bfatemi/loginModule
R
false
false
4,725
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # # sendSweetAlert(text = "Unable to login with username/password", type = "error", closeOnClickOutside = TRUE, title...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadTileWholeNL.R \name{loadTileWholeNL} \alias{loadTileWholeNL} \title{Load Tiles} \usage{ loadTileWholeNL(filepath) } \arguments{ \item{filepath}{path to the LAS files} } \description{ Load tiles for the whole Netherlands } \details{ Load t...
/man/loadTileWholeNL.Rd
no_license
AnneMossink/SkyViewFactor
R
false
true
344
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadTileWholeNL.R \name{loadTileWholeNL} \alias{loadTileWholeNL} \title{Load Tiles} \usage{ loadTileWholeNL(filepath) } \arguments{ \item{filepath}{path to the LAS files} } \description{ Load tiles for the whole Netherlands } \details{ Load t...
totalRecords <- (sum(lengths(heartRateData[1]))) time <- max (heartRateData$nMillisecondsElapsed)/1000 frameRate <- totalRecords/time #GET JADE S <- cbind(heartRateData$nRed, heartRateData$nGreen, heartRateData$nBlue, heartRateData$nIr) A <- matrix(rnorm(16), ncol=4) X <- S %*% t(A) res<-JADE(X,4) ica1 <- res$S[,...
/KinectHeartRateResearch/KinectHeartRateResearch/RScripts/KinectHeartRate_JADE.R
no_license
ronaldboehm/Kinectv2HeartRate
R
false
false
1,355
r
totalRecords <- (sum(lengths(heartRateData[1]))) time <- max (heartRateData$nMillisecondsElapsed)/1000 frameRate <- totalRecords/time #GET JADE S <- cbind(heartRateData$nRed, heartRateData$nGreen, heartRateData$nBlue, heartRateData$nIr) A <- matrix(rnorm(16), ncol=4) X <- S %*% t(A) res<-JADE(X,4) ica1 <- res$S[,...
library(Ecdat) library(forecast) data("Macrodat") fedFunds_rate=Macrodat[,3] plot(fedFunds_rate) plot(diff(fedFunds_rate)) plot(diff(log(fedFunds_rate))) acf(as.vector(diff(log(fedFunds_rate))),main="as ts") fit1 = auto.arima(log(fedFunds_rate), ic="bic", trace = TRUE, seasonal=FALSE) fit2 = auto.arima(log(fe...
/financial engineering programmation/ARIMA.R
no_license
ancgate/financial-engineering-programmation
R
false
false
408
r
library(Ecdat) library(forecast) data("Macrodat") fedFunds_rate=Macrodat[,3] plot(fedFunds_rate) plot(diff(fedFunds_rate)) plot(diff(log(fedFunds_rate))) acf(as.vector(diff(log(fedFunds_rate))),main="as ts") fit1 = auto.arima(log(fedFunds_rate), ic="bic", trace = TRUE, seasonal=FALSE) fit2 = auto.arima(log(fe...
\name{summary.MclustDR} \alias{summary.MclustDR} \alias{print.summary.MclustDR} \title{Summarizing dimension reduction method for model-based clustering and classification} \description{Summary method for class \code{"MclustDR"}.} \usage{ \method{summary}{MclustDR}(object, numdir, std = FALSE, \dots) \method{print}{...
/Current-stuff/R/mclust/man/summary.MclustDR.Rd
no_license
tonyc2700/phd
R
false
false
1,262
rd
\name{summary.MclustDR} \alias{summary.MclustDR} \alias{print.summary.MclustDR} \title{Summarizing dimension reduction method for model-based clustering and classification} \description{Summary method for class \code{"MclustDR"}.} \usage{ \method{summary}{MclustDR}(object, numdir, std = FALSE, \dots) \method{print}{...
#' Light wrapper around the aprof function #' #' @param expr Expression to profile #' @param sourceFile The file with the source code to be profiled #' @return An aprof object #' #' @examples #' # The function to profile #' f = function(n, sim) { #' # Simulate some data #' x = rnorm(n, mean = 0, sd = 2) #' t = da...
/R/aprofWrapper.R
no_license
mdjbru-R-packages/aprofW
R
false
false
1,028
r
#' Light wrapper around the aprof function #' #' @param expr Expression to profile #' @param sourceFile The file with the source code to be profiled #' @return An aprof object #' #' @examples #' # The function to profile #' f = function(n, sim) { #' # Simulate some data #' x = rnorm(n, mean = 0, sd = 2) #' t = da...
conc <- function (net, nr, irot, inv, flip, mirror = c("N", "X", "Y", "D", "L"), ...) { n <- dim(net)[1] if (isTRUE(is.null(dimnames(net)[1]) == TRUE | is.null(dimnames(net)[1][[1]])) == FALSE) { lbs <- dimnames(net)[[1]] } else { lbs <- seq_len(n) } if...
/R/conc.R
no_license
mplex/multigraph
R
false
false
5,390
r
conc <- function (net, nr, irot, inv, flip, mirror = c("N", "X", "Y", "D", "L"), ...) { n <- dim(net)[1] if (isTRUE(is.null(dimnames(net)[1]) == TRUE | is.null(dimnames(net)[1][[1]])) == FALSE) { lbs <- dimnames(net)[[1]] } else { lbs <- seq_len(n) } if...
#' Create Gene Level Plots #' #' To scale and flip contributions from a cross validation multi-omics analysis in order to be align with the contributions from the full analysis. #' @param actorObj Output from actor model #' @param isoData Sample data to be included in heatmap. First column must be "gene_id" and second ...
/R/makeGenePlots.R
no_license
mccabes292/actor
R
false
false
2,947
r
#' Create Gene Level Plots #' #' To scale and flip contributions from a cross validation multi-omics analysis in order to be align with the contributions from the full analysis. #' @param actorObj Output from actor model #' @param isoData Sample data to be included in heatmap. First column must be "gene_id" and second ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.MIXcluster.R \name{plot.MIXcluster} \alias{plot.MIXcluster} \title{Plotting clustering results for "\code{MIXcluster}" objects} \usage{ \method{plot}{MIXcluster}(x, type = c("heatmap", "chain")[1], chain.obj = c("n.cluster", "a", "b", ...
/man/plot.MIXcluster.Rd
no_license
tonycanale/BNPMIXcluster
R
false
true
1,601
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.MIXcluster.R \name{plot.MIXcluster} \alias{plot.MIXcluster} \title{Plotting clustering results for "\code{MIXcluster}" objects} \usage{ \method{plot}{MIXcluster}(x, type = c("heatmap", "chain")[1], chain.obj = c("n.cluster", "a", "b", ...
## File Name: slca_calc_likelihood.R ## File Version: 0.07 slca_calc_likelihood <- function(G, use.freqpatt, ind.group, p.xi.aj, pi.k, weights ) { ll <- 0 for (gg in 1:G){ #-- do not use frequency pattern if ( ! use.freqpatt ){ ind.gg <- ind.group[[gg]] ll <- ll + sum( w...
/R/slca_calc_likelihood.R
no_license
alexanderrobitzsch/CDM
R
false
false
901
r
## File Name: slca_calc_likelihood.R ## File Version: 0.07 slca_calc_likelihood <- function(G, use.freqpatt, ind.group, p.xi.aj, pi.k, weights ) { ll <- 0 for (gg in 1:G){ #-- do not use frequency pattern if ( ! use.freqpatt ){ ind.gg <- ind.group[[gg]] ll <- ll + sum( w...
[ { "title": "The RStudio CRAN mirror", "href": "https://blog.rstudio.org/2013/06/10/rstudio-cran-mirror/" }, { "title": "Analyzing VC investment strategies with Crunchbase data", "href": "http://beautifuldata.net/2014/04/analyzing-vc-investment-strategies-with-crunchbase-data/" }, { "titl...
/json/176.r
no_license
rweekly/rweekly.org
R
false
false
8,019
r
[ { "title": "The RStudio CRAN mirror", "href": "https://blog.rstudio.org/2013/06/10/rstudio-cran-mirror/" }, { "title": "Analyzing VC investment strategies with Crunchbase data", "href": "http://beautifuldata.net/2014/04/analyzing-vc-investment-strategies-with-crunchbase-data/" }, { "titl...
library( "dplyr" ) library( "DESeq2" ) library( "biomaRt" ) library( "pheatmap" ) library( "clusterProfiler" ) library( "org.Dm.eg.db" ) library( "pathview" ) library( "readr") library( "tibble" ) library( "forcats" ) library( "ggplot2" ) #customized results for domain type FBgnLookup <- read_tsv("~/git/polycomb-deve...
/PcGRNAseq_Methods.R
permissive
ciwemb/polycomb-development
R
false
false
9,757
r
library( "dplyr" ) library( "DESeq2" ) library( "biomaRt" ) library( "pheatmap" ) library( "clusterProfiler" ) library( "org.Dm.eg.db" ) library( "pathview" ) library( "readr") library( "tibble" ) library( "forcats" ) library( "ggplot2" ) #customized results for domain type FBgnLookup <- read_tsv("~/git/polycomb-deve...
library("data.table") library("ggplot2") library(reshape2) setwd('c:/Users/abhmalat/OneDrive - Indiana University/MMRF_CoMMpass_IA16a') gisticAmpGenesFile <- 'gistic2/amp_genes.conf_90.txt' ensembl <- useMart(host="grch37.ensembl.org", biomart = "ENSEMBL_MART_ENSEMBL", dataset =...
/DT_CREATE_GISTIC_DATA_FILE.r
no_license
iuabhmalat/mmrf_scripts
R
false
false
4,943
r
library("data.table") library("ggplot2") library(reshape2) setwd('c:/Users/abhmalat/OneDrive - Indiana University/MMRF_CoMMpass_IA16a') gisticAmpGenesFile <- 'gistic2/amp_genes.conf_90.txt' ensembl <- useMart(host="grch37.ensembl.org", biomart = "ENSEMBL_MART_ENSEMBL", dataset =...
#File Name: Basic Regression.R #Description: This file contains a sample for construction a linear model and #improving accuracy by eliminating high leverage points and outliers #Reference to the Textbook ISLR (James) #Author(s): Chris VanKerkhove #LINEAR REGRESSION setwd("~/Desktop/ML Samples") ####Data Preprocess###...
/R-ML Samples/Basic Regression.R
no_license
cvankerkhove/Machine-Learning-Samples
R
false
false
2,058
r
#File Name: Basic Regression.R #Description: This file contains a sample for construction a linear model and #improving accuracy by eliminating high leverage points and outliers #Reference to the Textbook ISLR (James) #Author(s): Chris VanKerkhove #LINEAR REGRESSION setwd("~/Desktop/ML Samples") ####Data Preprocess###...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{dd} \alias{dd} \title{Double density plots} \usage{ dd(x, g) } \arguments{ \item{x}{A numeric vector containing the values.} \item{g}{A vector containing two unique values, indicating the groups.} } \value{ An object of class `...
/man/dd.Rd
no_license
EdwinTh/mytools
R
false
true
637
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{dd} \alias{dd} \title{Double density plots} \usage{ dd(x, g) } \arguments{ \item{x}{A numeric vector containing the values.} \item{g}{A vector containing two unique values, indicating the groups.} } \value{ An object of class `...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/projectKNNs.R \name{sgdBatches} \alias{sgdBatches} \title{sgdBatches} \usage{ sgdBatches(N, E = 150 * N/2) } \arguments{ \item{N}{Number of vertices.} \item{E}{Number of edges.} } \value{ The recommended number of sgd batches. } \description...
/man/sgdBatches.Rd
no_license
idroz/largeVis-R
R
false
true
913
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/projectKNNs.R \name{sgdBatches} \alias{sgdBatches} \title{sgdBatches} \usage{ sgdBatches(N, E = 150 * N/2) } \arguments{ \item{N}{Number of vertices.} \item{E}{Number of edges.} } \value{ The recommended number of sgd batches. } \description...
#download data setwd('c:\\DataScience\\ExData_Plotting1') if(!file.exists('ElectricPowerConsumption')) dir.create('ElectricPowerConsumption') fileUrl <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' download.file(fileUrl, destfile = './ElectricPowerConsumption/household_power_c...
/CleanData.R
no_license
end0rph1n/ExData_Plotting1
R
false
false
1,127
r
#download data setwd('c:\\DataScience\\ExData_Plotting1') if(!file.exists('ElectricPowerConsumption')) dir.create('ElectricPowerConsumption') fileUrl <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' download.file(fileUrl, destfile = './ElectricPowerConsumption/household_power_c...
# 29.07.2016 # Alberto.Rovellini@vuw.ac.nz # script to average the benthic % cover from all the stations in the Wakatobi from 2014 and plot # it. At the moment only a simple barchart for the cover, can come up with something better though. # next step is to include some formal statistic to tell the sites apart (althoug...
/trunk/simpleCover.R
no_license
somros/exploratoryHoga
R
false
false
7,905
r
# 29.07.2016 # Alberto.Rovellini@vuw.ac.nz # script to average the benthic % cover from all the stations in the Wakatobi from 2014 and plot # it. At the moment only a simple barchart for the cover, can come up with something better though. # next step is to include some formal statistic to tell the sites apart (althoug...
library(tidyverse) first_test <- read_csv(here::here("data", "First Test.csv")) second_test <- read_csv(here::here("data", "Second Test.csv")) joined <- left_join(second_test, first_test, by = c("first_name", "last_name")) joined write_csv(joined, here::here("data", "joined.csv"))
/examples/example_joining-data.R
no_license
tarensanders/intro-to-data-science
R
false
false
286
r
library(tidyverse) first_test <- read_csv(here::here("data", "First Test.csv")) second_test <- read_csv(here::here("data", "Second Test.csv")) joined <- left_join(second_test, first_test, by = c("first_name", "last_name")) joined write_csv(joined, here::here("data", "joined.csv"))
require(base) # require(raster) require(readxl) require(xlsx) require(tidyr) require(dplyr) require(Hmisc) require(graphics) require(ggplot2) require(gridExtra) require(stringr) require(viridis) setwd('C:/Users/min/IIASA/DLE - Documents/WS2 - Documents/Analysis/Final results') file='DLE Pathway construction.xlsx' dat...
/obsolete (old codes - may be reusable)/Reshape-DLE-Timeseries_JM.R
no_license
Jihoon/DLE_scripts
R
false
false
7,822
r
require(base) # require(raster) require(readxl) require(xlsx) require(tidyr) require(dplyr) require(Hmisc) require(graphics) require(ggplot2) require(gridExtra) require(stringr) require(viridis) setwd('C:/Users/min/IIASA/DLE - Documents/WS2 - Documents/Analysis/Final results') file='DLE Pathway construction.xlsx' dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale3.R \name{scale3} \alias{scale3} \title{scale3} \usage{ scale3(A, center = TRUE, scale = TRUE, bias = TRUE) } \arguments{ \item{A}{A list of J blocks} \item{center}{if TRUE, all variables are centered} \item{scale}{if TRUE, all variabl...
/man/scale3.Rd
no_license
slkarkar/RGCCA
R
false
true
662
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scale3.R \name{scale3} \alias{scale3} \title{scale3} \usage{ scale3(A, center = TRUE, scale = TRUE, bias = TRUE) } \arguments{ \item{A}{A list of J blocks} \item{center}{if TRUE, all variables are centered} \item{scale}{if TRUE, all variabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{mcp_family} \alias{mcp_family} \title{Add A family object to store link functions between R and JAGS.} \usage{ mcp_family(family) } \arguments{ \item{family}{A family object, e.g., \code{binomial(link = "identity")}.} } \descript...
/man/mcp_family.Rd
no_license
gdmcdonald/mcp
R
false
true
419
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc.R \name{mcp_family} \alias{mcp_family} \title{Add A family object to store link functions between R and JAGS.} \usage{ mcp_family(family) } \arguments{ \item{family}{A family object, e.g., \code{binomial(link = "identity")}.} } \descript...
############################################# #GSEA Analysis on both gene expression and mutation survival output files . Ranking the genes by summing up each analysis rank and then ranking again. ############################################## expression_survival = read.csv("/media/pathway/48F918113AE39451/New_results/...
/GSEA_analysis_wilcox_test_KEGG2013.R
no_license
AnubhavKafle/Lab_rotation_1_final
R
false
false
2,647
r
############################################# #GSEA Analysis on both gene expression and mutation survival output files . Ranking the genes by summing up each analysis rank and then ranking again. ############################################## expression_survival = read.csv("/media/pathway/48F918113AE39451/New_results/...
library(tidyverse) library(behindbarstools) library(kableExtra) # Load data scorecard <- googlesheets4::read_sheet( "1fHhRAjwYGVmgoHLUENvcYffHDjEQnpp7Rwt9tLeX_Xk", sheet = "October", range = "C1:S56") # Specify max points! MAX_POINTS <- 32 # Assign scores scores <- scorecard %>% slice(-(1:2)) %>%...
/scorecards/scorecards-scoring.R
no_license
uclalawcovid19behindbars/transparency-projects
R
false
false
1,971
r
library(tidyverse) library(behindbarstools) library(kableExtra) # Load data scorecard <- googlesheets4::read_sheet( "1fHhRAjwYGVmgoHLUENvcYffHDjEQnpp7Rwt9tLeX_Xk", sheet = "October", range = "C1:S56") # Specify max points! MAX_POINTS <- 32 # Assign scores scores <- scorecard %>% slice(-(1:2)) %>%...
testlist <- list(m = -1711276032L, r = 1.43886644829247e+190, y = numeric(0)) result <- do.call(mcmcsae:::CrCRT,testlist) str(result)
/mcmcsae/inst/testfiles/CrCRT/libFuzzer_CrCRT/CrCRT_valgrind_files/1612793094-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
133
r
testlist <- list(m = -1711276032L, r = 1.43886644829247e+190, y = numeric(0)) result <- do.call(mcmcsae:::CrCRT,testlist) str(result)
# set up ## load packages,functions, model library(deSolve) library(rootSolve) library(plotrix) library(parallel) library(doParallel) library(foreach) library(doRNG) source("~/Documents/GitHub/covid_vaccines_virulence_evolution/functions.R") system("R CMD SHLIB ~/Documents/GitHub/covid_vaccines_virulence_evolution/ep...
/cluster/dir.14/analysis.cluster.R
no_license
ianfmiller/covid_vaccines_virulence_evolution
R
false
false
4,337
r
# set up ## load packages,functions, model library(deSolve) library(rootSolve) library(plotrix) library(parallel) library(doParallel) library(foreach) library(doRNG) source("~/Documents/GitHub/covid_vaccines_virulence_evolution/functions.R") system("R CMD SHLIB ~/Documents/GitHub/covid_vaccines_virulence_evolution/ep...
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
/dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609866761-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
830
r
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.657912...
clean_stdareas <- function(dat) { # code_table <- table(dat$area_code) # remove duplicates in the standard_areas table # code_table <- code_table[code_table==1] # dat <- dat[dat$area_code %in% names(code_table),] dat$area_code <- gsub(" ","",as.character(dat$area_code)) dat$area_code <- as.factor(as.characte...
/clean_stdareas.r
permissive
hoyles/R4MFCLdata
R
false
false
1,277
r
clean_stdareas <- function(dat) { # code_table <- table(dat$area_code) # remove duplicates in the standard_areas table # code_table <- code_table[code_table==1] # dat <- dat[dat$area_code %in% names(code_table),] dat$area_code <- gsub(" ","",as.character(dat$area_code)) dat$area_code <- as.factor(as.characte...
#' Ignore a load ramp record #' #' This function updates a record in the MongoDB database. You can only access this function if you have read and write permission #' @name loadrampignore #' @param RFID this is a list of cattle RFID numbers #' @param username if you don't have a username set up using the dmaccess functi...
/R/loadrampignore.R
no_license
vijaydairyf/DMMongoDB
R
false
false
1,550
r
#' Ignore a load ramp record #' #' This function updates a record in the MongoDB database. You can only access this function if you have read and write permission #' @name loadrampignore #' @param RFID this is a list of cattle RFID numbers #' @param username if you don't have a username set up using the dmaccess functi...
### zlepek róznych kodów, ale ostatecznie prawie daje to co potrzebuje, obrys budynku! #gdzies gubi jedna wsporzedna po drodze row36 zamienia sie na Na i musiałem go wywalic :/ library(XML) Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_101') # for 64-bit version %>% library(OpenStreetMap) library(lubri...
/Scripts/GEO.R
no_license
jachuR/WiFi-project
R
false
false
3,226
r
### zlepek róznych kodów, ale ostatecznie prawie daje to co potrzebuje, obrys budynku! #gdzies gubi jedna wsporzedna po drodze row36 zamienia sie na Na i musiałem go wywalic :/ library(XML) Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_101') # for 64-bit version %>% library(OpenStreetMap) library(lubri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pinpointemail_operations.R \name{pinpointemail_list_email_identities} \alias{pinpointemail_list_email_identities} \title{Returns a list of all of the email identities that are associated with your Amazon Pinpoint account} \usage{ pinpointemai...
/cran/paws.customer.engagement/man/pinpointemail_list_email_identities.Rd
permissive
johnnytommy/paws
R
false
true
1,267
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pinpointemail_operations.R \name{pinpointemail_list_email_identities} \alias{pinpointemail_list_email_identities} \title{Returns a list of all of the email identities that are associated with your Amazon Pinpoint account} \usage{ pinpointemai...
preprocessgvp <- function(x, dp = 2, tp = 3, gp = 31, ts = 5, df = "yyyy/mm/dd", tf = "hh:mm:ss", all = FALSE, type = "normal") { if(dim(x)[1] == 0) { stop("Dimension of data-set must be higher than 0.") } if(!is.numeric(dp)) { sto...
/R/preprocessgvp.R
no_license
cran/gluvarpro
R
false
false
30,451
r
preprocessgvp <- function(x, dp = 2, tp = 3, gp = 31, ts = 5, df = "yyyy/mm/dd", tf = "hh:mm:ss", all = FALSE, type = "normal") { if(dim(x)[1] == 0) { stop("Dimension of data-set must be higher than 0.") } if(!is.numeric(dp)) { sto...
# packages to load generic # Katie Palof # katie.palof@alaska.gov # 2018-3-23, 2019-8-12 # load ----- library(tidyverse) #library(xlsx) library(readxl) library(reshape2) library(scales) library(extrafont) library(grid) library(knitr) library(pander) library(data.table) library(readr) library(purrr) library(stringr) op...
/SMBKC/code/packages.R
no_license
commfish/BSAI_crab_assessments
R
false
false
647
r
# packages to load generic # Katie Palof # katie.palof@alaska.gov # 2018-3-23, 2019-8-12 # load ----- library(tidyverse) #library(xlsx) library(readxl) library(reshape2) library(scales) library(extrafont) library(grid) library(knitr) library(pander) library(data.table) library(readr) library(purrr) library(stringr) op...
testlist <- list(Beta = 0, CVLinf = 1.82091600988993e+43, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(3.86615409272094e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.2731...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615830503-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
485
r
testlist <- list(Beta = 0, CVLinf = 1.82091600988993e+43, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(3.86615409272094e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 1.2731...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-codonFreq.R \name{codonPlot,codonFreq-method} \alias{codonPlot,codonFreq-method} \alias{biasPlot,codonFreq-method} \alias{gcPlot,codonFreq-method} \title{Plot the relative frequencies of codons in a \code{codonFreq} object.} \usage{ \...
/man/plot-codonFreq.Rd
permissive
adamd3/codondiffR
R
false
true
4,065
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods-codonFreq.R \name{codonPlot,codonFreq-method} \alias{codonPlot,codonFreq-method} \alias{biasPlot,codonFreq-method} \alias{gcPlot,codonFreq-method} \title{Plot the relative frequencies of codons in a \code{codonFreq} object.} \usage{ \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_PresAttrPages.R \name{clip-path-presentationAttribute} \alias{clip-path-presentationAttribute} \title{clip.path} \description{ Specifies path for clipping. } \section{Available Attribute Values}{ \describe{ \item{<clipPath-Element>}{Sp...
/man/clip-path-presentationAttribute.Rd
permissive
mslegrand/svgR
R
false
true
1,711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_PresAttrPages.R \name{clip-path-presentationAttribute} \alias{clip-path-presentationAttribute} \title{clip.path} \description{ Specifies path for clipping. } \section{Available Attribute Values}{ \describe{ \item{<clipPath-Element>}{Sp...
testlist <- list(hi = 2.6461938649929e-260, lo = 3.25060610368331e-318, mu = 2.64220863374229e-260, sig = 2.6461938652295e-260) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
/gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610044556-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
189
r
testlist <- list(hi = 2.6461938649929e-260, lo = 3.25060610368331e-318, mu = 2.64220863374229e-260, sig = 2.6461938652295e-260) result <- do.call(gjam:::tnormRcpp,testlist) str(result)
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/treemap.R \name{renderTreemap} \alias{renderTreemap} \title{Widget render function for use in Shiny} \usage{ renderTreemap(expr, env = parent.frame(), quoted = FALSE) } \description{ Widget render function for use in Shiny }
/man/renderTreemap.Rd
no_license
SwedishPensionsAgency/pmtreemap
R
false
false
312
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/treemap.R \name{renderTreemap} \alias{renderTreemap} \title{Widget render function for use in Shiny} \usage{ renderTreemap(expr, env = parent.frame(), quoted = FALSE) } \description{ Widget render function for use in Shiny }
################ Checking Admixture Performance (K=2) ####################### omega_modern <- c(0.9,0.1) omega_ancient_1 <- c(0.75,0.25); theta1 <- rep(1/6,6); ## equal prob to 6 types of mutations theta2 <- c(1,rep(0,5)) rep.row<-function(x,n){ matrix(rep(x,each=n),nrow=n) } rep.col<-function(x,n){ matrix...
/src/test_topic_model_k_2.R
no_license
halasadi/ancient-damage
R
false
false
4,157
r
################ Checking Admixture Performance (K=2) ####################### omega_modern <- c(0.9,0.1) omega_ancient_1 <- c(0.75,0.25); theta1 <- rep(1/6,6); ## equal prob to 6 types of mutations theta2 <- c(1,rep(0,5)) rep.row<-function(x,n){ matrix(rep(x,each=n),nrow=n) } rep.col<-function(x,n){ matrix...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/lambdaSel.R \name{print.lambda_select} \alias{print.lambda_select} \title{Print lambda_select} \usage{ \method{print}{lambda_select}(x) } \arguments{ \item{x}{print S3 method for class lambda_select} } \description{ Print lambda_selec...
/man/print.lambda_select.Rd
no_license
yfyang86/optimise2
R
false
false
325
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/lambdaSel.R \name{print.lambda_select} \alias{print.lambda_select} \title{Print lambda_select} \usage{ \method{print}{lambda_select}(x) } \arguments{ \item{x}{print S3 method for class lambda_select} } \description{ Print lambda_selec...
library(tidyverse) # data manipulation library(cluster) # clustering algorithms library(factoextra) # clustering algorithms & visualization library(DESeq2) #differential expression analysis library(tximport) #data import library(readr) #read in data library("RColorBrewer") #color for plot library(gplots) #plotting ...
/Project_tropTadpoles_DE/scripts/hierarchical_clustering.R
no_license
evansbenj/Ideas_for_Xue
R
false
false
1,386
r
library(tidyverse) # data manipulation library(cluster) # clustering algorithms library(factoextra) # clustering algorithms & visualization library(DESeq2) #differential expression analysis library(tximport) #data import library(readr) #read in data library("RColorBrewer") #color for plot library(gplots) #plotting ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_tfidf_ngrams.R \name{calc_tfidf_ngrams} \alias{calc_tfidf_ngrams} \title{Calculate TF-IDFs for unigrams or bigrams} \usage{ calc_tfidf_ngrams( x, target_col_name, text_col_name, filter_class = NULL, ngrams_type = c("Unigrams", ...
/man/calc_tfidf_ngrams.Rd
permissive
CDU-data-science-team/experienceAnalysis
R
false
true
2,716
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_tfidf_ngrams.R \name{calc_tfidf_ngrams} \alias{calc_tfidf_ngrams} \title{Calculate TF-IDFs for unigrams or bigrams} \usage{ calc_tfidf_ngrams( x, target_col_name, text_col_name, filter_class = NULL, ngrams_type = c("Unigrams", ...
library(ggplot2) h_a_goals_comp <- as.data.frame(t(summarized_ecl_data[, c("Total Home goals", "Total Away goals")])) h_a_goals_comp$goals <- row.names(h_a_goals_comp) leg_goals_comp <- as.data.frame(t(summarized_ecl_data[, c("Total 1st leg goals", "Total 2nd leg goals")])) leg_goals_comp$goals <- row.names(leg_goal...
/UCL_PROJECT_TEST.R
no_license
seanh21/UCL_Awat_Goal_Rule_Analysis
R
false
false
933
r
library(ggplot2) h_a_goals_comp <- as.data.frame(t(summarized_ecl_data[, c("Total Home goals", "Total Away goals")])) h_a_goals_comp$goals <- row.names(h_a_goals_comp) leg_goals_comp <- as.data.frame(t(summarized_ecl_data[, c("Total 1st leg goals", "Total 2nd leg goals")])) leg_goals_comp$goals <- row.names(leg_goal...
#' Checks if an object can be used to perform survival analysis #' #' The \code{survDataCheck} function can be used to check if an object #' containing survival data is formatted according to the expectations of the #' \code{survData} function. #' #' #' @aliases survDataCheck #' #' @param data any object #' @...
/morse/R/survDataCheck.R
no_license
ingted/R-Examples
R
false
false
6,802
r
#' Checks if an object can be used to perform survival analysis #' #' The \code{survDataCheck} function can be used to check if an object #' containing survival data is formatted according to the expectations of the #' \code{survData} function. #' #' #' @aliases survDataCheck #' #' @param data any object #' @...
library(shiny) library(tidyverse) library(shinythemes) library(RColorBrewer) marvel <- read_csv("marvel-wikia-data.csv") marvel$SEX[(is.na(marvel$SEX))] <- "Not Specified" #create the user interface ui <- fluidPage( theme = shinytheme("slate"), titlePanel("Marvel Characters"), sidebarLayout( sidebarPanel( ...
/marvel_crap/app.R
permissive
raefuhrman/esm-244-lab-2
R
false
false
857
r
library(shiny) library(tidyverse) library(shinythemes) library(RColorBrewer) marvel <- read_csv("marvel-wikia-data.csv") marvel$SEX[(is.na(marvel$SEX))] <- "Not Specified" #create the user interface ui <- fluidPage( theme = shinytheme("slate"), titlePanel("Marvel Characters"), sidebarLayout( sidebarPanel( ...