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
create_intImg3 <- function(in_img){ h <- length(in_img[1,1,]) l <- length(in_img[,1,1]) w <- length(in_img[1,,1]) intImg3 <- array(dim = c(l, w, h)) for (k in 1:h){ intImg <- matrix(nrow = l, ncol = w) # create the kth plane with same mehtod for 2d algorithm for(i in 1:l){ sumImg <- 0 ...
/create_intImg3.R
no_license
guyujia98/adaptive_threshold
R
false
false
727
r
create_intImg3 <- function(in_img){ h <- length(in_img[1,1,]) l <- length(in_img[,1,1]) w <- length(in_img[1,,1]) intImg3 <- array(dim = c(l, w, h)) for (k in 1:h){ intImg <- matrix(nrow = l, ncol = w) # create the kth plane with same mehtod for 2d algorithm for(i in 1:l){ sumImg <- 0 ...
library(dplyr) library(lattice) library(ggplot2) library(stringr) library(outliers) library(RColorBrewer) library(plyr) #downloading the file : #setwd("C:/Users/abhishek.katyal/Documents/ds") setwd("C:/Users/Portal X/Documents/Data Science Coursera/data") url <- "https://d396qusza40orc.cloudfront....
/plot2.R
no_license
AgentAnalytic/Exploratory-Data-Analysis-Pollution-in-American-Cities-Using-R
R
false
false
2,041
r
library(dplyr) library(lattice) library(ggplot2) library(stringr) library(outliers) library(RColorBrewer) library(plyr) #downloading the file : #setwd("C:/Users/abhishek.katyal/Documents/ds") setwd("C:/Users/Portal X/Documents/Data Science Coursera/data") url <- "https://d396qusza40orc.cloudfront....
% Generated by roxygen2 (4.0.0): do not edit by hand \name{wide2long} \alias{wide2long} \title{Reshapes Paired Comparison Data} \usage{ wide2long(data, paircomp, names=NULL, ...) } \arguments{ \item{data}{a data frame in 'wide' format.} \item{paircomp}{a character vector specifying the columns from \code{dat...
/man/wide2long.Rd
no_license
cran/ordBTL
R
false
false
2,143
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{wide2long} \alias{wide2long} \title{Reshapes Paired Comparison Data} \usage{ wide2long(data, paircomp, names=NULL, ...) } \arguments{ \item{data}{a data frame in 'wide' format.} \item{paircomp}{a character vector specifying the columns from \code{dat...
"jcleanData"<- function(df, dropPilot=TRUE, drop504=TRUE, drop4983=TRUE, drop5348=TRUE, drop6054=TRUE, drop6067=TRUE, dropBackToSchool=TRUE, dropGOAT=TRUE) { # WebId's 4983 5348 6054 6067 are incomplete shows on J Archive require("stringr", quietly=TRUE, warn.conflicts=FALSE, character.only=TRUE) # Nel...
/jcleanData.R
no_license
spkaluzny/jeopardy
R
false
false
10,263
r
"jcleanData"<- function(df, dropPilot=TRUE, drop504=TRUE, drop4983=TRUE, drop5348=TRUE, drop6054=TRUE, drop6067=TRUE, dropBackToSchool=TRUE, dropGOAT=TRUE) { # WebId's 4983 5348 6054 6067 are incomplete shows on J Archive require("stringr", quietly=TRUE, warn.conflicts=FALSE, character.only=TRUE) # Nel...
library(CohortDiagnostics) library("CovCoagOutcomeDiagnosticsStudy") packageName <- "CovCoagOutcomeDiagnosticsStudy" connectionSpecifications <- cdmSources %>% dplyr::filter(sequence == 1) %>% dplyr::filter(database == "truven_ccae") dbms <- connectionSpecifications$dbms port <- connectionSpecifications$port server...
/diagCovCoagOutcomes/extras/CodeToRunRedShift.R
permissive
gowthamrao/CovCoagOutcomeDiagnostics
R
false
false
4,422
r
library(CohortDiagnostics) library("CovCoagOutcomeDiagnosticsStudy") packageName <- "CovCoagOutcomeDiagnosticsStudy" connectionSpecifications <- cdmSources %>% dplyr::filter(sequence == 1) %>% dplyr::filter(database == "truven_ccae") dbms <- connectionSpecifications$dbms port <- connectionSpecifications$port server...
##This script uses the gmapsdistance package to compute distances between two sets of points ##Before starting, get an API from Google Matrix: https://developers.google.com/maps/documentation/distance-matrix/intro ##Google provides 2,500 queries for free each day, though you can pay for more. ##See the usage limits her...
/Google_Distance_Matrix/distancematrix.R
no_license
jshannon75/Teaching_scripts
R
false
false
2,192
r
##This script uses the gmapsdistance package to compute distances between two sets of points ##Before starting, get an API from Google Matrix: https://developers.google.com/maps/documentation/distance-matrix/intro ##Google provides 2,500 queries for free each day, though you can pay for more. ##See the usage limits her...
#=============================================== # # Formate un nombre à imprimer # #=============================================== #' @title formate un nombre #' @description formate un nombre en ajoutant un espace pour les milliers #' une virgule décimale #' ...
/Routines_Package/Rpu2/R/Rapport.R
no_license
jcrb/RPU_Doc
R
false
false
87,626
r
#=============================================== # # Formate un nombre à imprimer # #=============================================== #' @title formate un nombre #' @description formate un nombre en ajoutant un espace pour les milliers #' une virgule décimale #' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotmath.R \name{as_plotmath.spork} \alias{as_plotmath.spork} \title{Convert Spork to Plotmath} \usage{ \method{as_plotmath}{spork}(x, ...) } \arguments{ \item{x}{spork} \item{...}{passed to \code{\link{as_plotmath.spar}}} } \value{ plotmath...
/man/as_plotmath.spork.Rd
no_license
bergsmat/spork
R
false
true
1,991
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotmath.R \name{as_plotmath.spork} \alias{as_plotmath.spork} \title{Convert Spork to Plotmath} \usage{ \method{as_plotmath}{spork}(x, ...) } \arguments{ \item{x}{spork} \item{...}{passed to \code{\link{as_plotmath.spar}}} } \value{ plotmath...
# Define degree-day bins (create `boundList`) bound.list <- c(0,5,8,10,12,15,20,25,29,30,31,32,33,34) # Set the sample of years to use (1950-2017) yearMin <- 2012 yearMax <- 2014 year.list <- c(yearMin:yearMax) year.names <- as.character(year.list) # Define growing season monthBegin <- 4 dayMonthBegin <- 1 monthEnd ...
/parameters.R
no_license
cas3ymau3/SR09_serverscripts
R
false
false
1,523
r
# Define degree-day bins (create `boundList`) bound.list <- c(0,5,8,10,12,15,20,25,29,30,31,32,33,34) # Set the sample of years to use (1950-2017) yearMin <- 2012 yearMax <- 2014 year.list <- c(yearMin:yearMax) year.names <- as.character(year.list) # Define growing season monthBegin <- 4 dayMonthBegin <- 1 monthEnd ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicecatalog_operations.R \name{servicecatalog_scan_provisioned_products} \alias{servicecatalog_scan_provisioned_products} \title{Lists the provisioned products that are available (not terminated)} \usage{ servicecatalog_scan_provisioned_pr...
/paws/man/servicecatalog_scan_provisioned_products.Rd
permissive
sanchezvivi/paws
R
false
true
1,226
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/servicecatalog_operations.R \name{servicecatalog_scan_provisioned_products} \alias{servicecatalog_scan_provisioned_products} \title{Lists the provisioned products that are available (not terminated)} \usage{ servicecatalog_scan_provisioned_pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vignettes.R \name{build_vignettes} \alias{build_vignettes} \title{Build package vignettes.} \usage{ build_vignettes(pkg = ".", dependencies = "VignetteBuilder", clean = TRUE, upgrade = TRUE, quiet = TRUE, install = TRUE, keep_md = TRUE) }...
/man/build_vignettes.Rd
no_license
2954722256/devtools
R
false
true
2,594
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vignettes.R \name{build_vignettes} \alias{build_vignettes} \title{Build package vignettes.} \usage{ build_vignettes(pkg = ".", dependencies = "VignetteBuilder", clean = TRUE, upgrade = TRUE, quiet = TRUE, install = TRUE, keep_md = TRUE) }...
## Code for creating the US Cities basefile -- This creates a static file by getting the ## state, elevation, and population data for from geonames.org. This file requires a username ## from geonames.org, which is rate-limited -- hence the creation of a static basefile. ### Downloaded the Cities file from http://b...
/create_location_basefile.R
no_license
amydrummond/weekend_plans
R
false
false
2,323
r
## Code for creating the US Cities basefile -- This creates a static file by getting the ## state, elevation, and population data for from geonames.org. This file requires a username ## from geonames.org, which is rate-limited -- hence the creation of a static basefile. ### Downloaded the Cities file from http://b...
clustervector<-function(x, rg, min.split.reads=1){ cl=rep(0,length(x)); zz=0; center=vector(); while(length(cl[cl==0]) > 0){ zz=zz+1; tx=table(x[cl==0]); cc=as.numeric(names(which.max(tx))) center=append(center, cc); tag=cl==0 & x > cc-rg & x < cc+rg; if(length(tag[tag]) < min.split.reads) brea...
/lib/TSD/cluster_fragment.r
no_license
stevemmarshall/tsd
R
false
false
1,380
r
clustervector<-function(x, rg, min.split.reads=1){ cl=rep(0,length(x)); zz=0; center=vector(); while(length(cl[cl==0]) > 0){ zz=zz+1; tx=table(x[cl==0]); cc=as.numeric(names(which.max(tx))) center=append(center, cc); tag=cl==0 & x > cc-rg & x < cc+rg; if(length(tag[tag]) < min.split.reads) brea...
###MACS Analysis in R### ###Set of consecutively more strict models### #Set working directory setwd("C:/Users/Dev Dalal/Dropbox/APSY 753--Spring 2017/Data Examples") #Install and Load Packages install.packages("lavaan", dependencies=TRUE) library(lavaan) ##Load Data MACS <- read.csv("MACS Data.csv", ...
/MACSanalysis.R
no_license
mattdickson93/psychometricsCode
R
false
false
4,354
r
###MACS Analysis in R### ###Set of consecutively more strict models### #Set working directory setwd("C:/Users/Dev Dalal/Dropbox/APSY 753--Spring 2017/Data Examples") #Install and Load Packages install.packages("lavaan", dependencies=TRUE) library(lavaan) ##Load Data MACS <- read.csv("MACS Data.csv", ...
## this script will create all the subsetted data .csv's for Matlab for bivariate 'Capelin' & 'Sandlance' and Univariate analyses ## libraries library(ggplot2) library(reshape2) library(dplyr) ## Source functions source("c:/Users/rystanley/Documents/GitHub/Groundfish/Code/CatchPlots.R") source("c:/Users/rystanley/On...
/Code/CatchPlots2.R
no_license
rystanley/Groundfish
R
false
false
5,738
r
## this script will create all the subsetted data .csv's for Matlab for bivariate 'Capelin' & 'Sandlance' and Univariate analyses ## libraries library(ggplot2) library(reshape2) library(dplyr) ## Source functions source("c:/Users/rystanley/Documents/GitHub/Groundfish/Code/CatchPlots.R") source("c:/Users/rystanley/On...
boxplot(mpg~cyl,data=mtcars,xlab="no.of cylinders",ylab="miles per gallon",main="milleage data",col=c("blue","pink","purple"))
/boxplot.R
no_license
sarikamohan08/R-programs
R
false
false
126
r
boxplot(mpg~cyl,data=mtcars,xlab="no.of cylinders",ylab="miles per gallon",main="milleage data",col=c("blue","pink","purple"))
library("testthat") context("getTicks") test_that("Check the getTicks function", { expect_true(length(getTicks(0, 1)) > 2, info = "Ticks should return more than 2 ticks regardless of span size" ) expect_true(length(getTicks(0, .01)) > 2, info = "Ticks should return more than 2 ticks regardless of span si...
/tests/testthat/test-getTicks.R
no_license
gforge/forestplot
R
false
false
700
r
library("testthat") context("getTicks") test_that("Check the getTicks function", { expect_true(length(getTicks(0, 1)) > 2, info = "Ticks should return more than 2 ticks regardless of span size" ) expect_true(length(getTicks(0, .01)) > 2, info = "Ticks should return more than 2 ticks regardless of span si...
library(shiny) shinyUI(fluidPage( titlePanel("Miles Per Gallon (MPG) Prediction Model"), sidebarLayout( sidebarPanel( helpText("Please input the specifications of your car based on the minimum and maximum value of the model"), h3(helpText("Select:")), ...
/ui.R
no_license
artickavenger/Course-Project-Shiny-Application-and-Reproducible-Pitch
R
false
false
1,174
r
library(shiny) shinyUI(fluidPage( titlePanel("Miles Per Gallon (MPG) Prediction Model"), sidebarLayout( sidebarPanel( helpText("Please input the specifications of your car based on the minimum and maximum value of the model"), h3(helpText("Select:")), ...
# Coded by Anderson Borba data: 07/07/2020 version 1.0 # Article submitted # Fusion of Evidences in Intensities Channels for Edge Detection in PolSAR Images # GRSL - IEEE Geoscience and Remote Sensing Letters # Anderson A. de Borba, Maurı́cio Marengoni, and Alejandro C Frery # Despriction # Finds evince edge in each...
/Code_r/evidencias_im_real_sa_param_mu_L.R
permissive
anderborba/Code_GRSL_2020_1
R
false
false
2,568
r
# Coded by Anderson Borba data: 07/07/2020 version 1.0 # Article submitted # Fusion of Evidences in Intensities Channels for Edge Detection in PolSAR Images # GRSL - IEEE Geoscience and Remote Sensing Letters # Anderson A. de Borba, Maurı́cio Marengoni, and Alejandro C Frery # Despriction # Finds evince edge in each...
# James Rekow identifyNumSubgroups = function(infoMat){ # ARGS: infoMat - matrix of info weights corresponding to pairs of samples from an abundance list # # RETURNS: numClust - predicted number of clusters in infoMat library(cluster) # B = 100 works pretty well, but is slow. Left as a...
/identifyNumSubgroups.r
permissive
JamesRekow/Canine_Cohort_GLV_Model
R
false
false
2,335
r
# James Rekow identifyNumSubgroups = function(infoMat){ # ARGS: infoMat - matrix of info weights corresponding to pairs of samples from an abundance list # # RETURNS: numClust - predicted number of clusters in infoMat library(cluster) # B = 100 works pretty well, but is slow. Left as a...
# https://rdrr.io/github/satijalab/seurat/man/AddModuleScore.html # https://academic.oup.com/nar/article/47/21/e133/5531181#185740462 # Marker_file_Name <- c("GRUETZMANN_PANCREATIC_CANCER_UP") # Marker_Name <- c("PDAC_Marker") Monocle3_AddModuleScore <- function(Marker_file_Name,Marker_Name,marrow,cds) { PathName =...
/Monocle3_AddModuleScore.R
no_license
Charlene717/Fuction_GetFilePathOfFuctions
R
false
false
1,324
r
# https://rdrr.io/github/satijalab/seurat/man/AddModuleScore.html # https://academic.oup.com/nar/article/47/21/e133/5531181#185740462 # Marker_file_Name <- c("GRUETZMANN_PANCREATIC_CANCER_UP") # Marker_Name <- c("PDAC_Marker") Monocle3_AddModuleScore <- function(Marker_file_Name,Marker_Name,marrow,cds) { PathName =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{rrefBal} \alias{rrefBal} \title{title} \usage{ rrefBal(M) } \arguments{ \item{x}{x} } \value{ a vector } \description{ description } \details{ details } \examples{ } \seealso{ func } \author{ Raphaël Jauslin \email{raphae...
/man/rrefBal.Rd
no_license
RJauslin/IneqCube
R
false
true
343
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{rrefBal} \alias{rrefBal} \title{title} \usage{ rrefBal(M) } \arguments{ \item{x}{x} } \value{ a vector } \description{ description } \details{ details } \examples{ } \seealso{ func } \author{ Raphaël Jauslin \email{raphae...
library(mefa) ### Name: melt ### Title: Melt (Convert) an Object of Class 'mefa' Into 'stcs' ### Aliases: melt melt.mefa ### Keywords: methods manip ### ** Examples data(dol.count, dol.samp, dol.taxa) x <- mefa(stcs(dol.count), dol.samp, dol.taxa) ## Long format with original segments melt(x) ## Long format with un...
/data/genthat_extracted_code/mefa/examples/melt.mefa.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
744
r
library(mefa) ### Name: melt ### Title: Melt (Convert) an Object of Class 'mefa' Into 'stcs' ### Aliases: melt melt.mefa ### Keywords: methods manip ### ** Examples data(dol.count, dol.samp, dol.taxa) x <- mefa(stcs(dol.count), dol.samp, dol.taxa) ## Long format with original segments melt(x) ## Long format with un...
tables <- dbListTables(con_sqlite) table <- tables[1] query = paste( 'SELECT ', table, '.* FROM ', table, ';', sep = '') df_XY <- dbGetQuery(con_sqlite, query) head(df_XY) df_XY$Very_High <- ifelse(df_XY$Severity_Level == 'Very High', 1, 0) df_XY$High <- ifelse(df_XY$Severity_Level == 'High', 1, 0) ...
/_analyze/stats.r
no_license
andrewcistola/Wednesday
R
false
false
7,775
r
tables <- dbListTables(con_sqlite) table <- tables[1] query = paste( 'SELECT ', table, '.* FROM ', table, ';', sep = '') df_XY <- dbGetQuery(con_sqlite, query) head(df_XY) df_XY$Very_High <- ifelse(df_XY$Severity_Level == 'Very High', 1, 0) df_XY$High <- ifelse(df_XY$Severity_Level == 'High', 1, 0) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/N-class.R \docType{methods} \name{getOldErrors,N-method} \alias{getOldErrors,N-method} \title{Get beta errors from previous iterations for \linkS4class{N}} \usage{ \S4method{getOldErrors}{N}(object) } \arguments{ \item{object}{Object of class...
/man/getOldErrors-N-method.Rd
no_license
BussemakerLab/SelexGLM
R
false
true
417
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/N-class.R \docType{methods} \name{getOldErrors,N-method} \alias{getOldErrors,N-method} \title{Get beta errors from previous iterations for \linkS4class{N}} \usage{ \S4method{getOldErrors}{N}(object) } \arguments{ \item{object}{Object of class...
## This function make a inverse of input matrix ## and returne inverse matrix from the cash if the matrix alredy solved makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setsolve <- function(solve) m <<- solve ge...
/cachematrix.R
no_license
Anatra-KAS/ProgrammingAssignment2
R
false
false
1,014
r
## This function make a inverse of input matrix ## and returne inverse matrix from the cash if the matrix alredy solved makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setsolve <- function(solve) m <<- solve ge...
#' Add Willoughby inputs and parameters #' #' Calculates a number of inputs and parameters needed for the Willoughby model #' for each observation of a storm track. This function intakes an imputed storm #' track and calculates these parameters for each observation in the storm #' tracks.These inputs and parameters are...
/R/my_wind_code.R
no_license
MyGitHubSite/stormwindmodel
R
false
false
17,204
r
#' Add Willoughby inputs and parameters #' #' Calculates a number of inputs and parameters needed for the Willoughby model #' for each observation of a storm track. This function intakes an imputed storm #' track and calculates these parameters for each observation in the storm #' tracks.These inputs and parameters are...
source(file.path(path.package('swirl'), 'Courses', 'r_programming_dbs', 'basis.R')) dbs_on_demand <- function() { return(submit_dbs_on_demand('r_missing_values')) }
/Missing_Values/customTests.R
no_license
darrenredmond/r_programming_dbs
R
false
false
168
r
source(file.path(path.package('swirl'), 'Courses', 'r_programming_dbs', 'basis.R')) dbs_on_demand <- function() { return(submit_dbs_on_demand('r_missing_values')) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/images.R \name{image_diff} \alias{image_diff} \title{Compare Images} \usage{ image_diff(reference, new, dir = tempdir()) } \arguments{ \item{reference}{Path to a reference image} \item{new}{Path to an image to compare to the reference image}...
/man/image_diff.Rd
no_license
SVA-SE/mill
R
false
true
596
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/images.R \name{image_diff} \alias{image_diff} \title{Compare Images} \usage{ image_diff(reference, new, dir = tempdir()) } \arguments{ \item{reference}{Path to a reference image} \item{new}{Path to an image to compare to the reference image}...
#install.packages('dplyr') #install.packages("tidyverse") #install.packages("tibble") #install.packages("MASS") library(dplyr) library(tidyverse) library(tibble) library(car) library(MASS) #Crime Data set used: https://archive.ics.uci.edu/ml/datasets/Communities+and+Crime #Crime Data set has 128 columns,...
/Final Project/E&D Stat 308 Final Project Part 2.R
no_license
daniellapombo/Linear-Regression-R
R
false
false
31,898
r
#install.packages('dplyr') #install.packages("tidyverse") #install.packages("tibble") #install.packages("MASS") library(dplyr) library(tidyverse) library(tibble) library(car) library(MASS) #Crime Data set used: https://archive.ics.uci.edu/ml/datasets/Communities+and+Crime #Crime Data set has 128 columns,...
#' Title: Text 2 Vector #' Purpose: Explore text2Vec #' Author: Ted Kwartler #' email: edwardkwartler@fas.harvard.edu #' License: GPL>=3 #' Date: Feb 22 2021 #' # Wd setwd("~/Desktop/Harvard_NLP_Student/lessons/H_text2Vec_documentClassification/data") # Libs library(text2vec) library(fst) library(tm) library(data.tab...
/lessons/H_text2Vec_documentClassification/scripts/D_text2Vec.R
no_license
mkspwr/Harvard_NLP_Student
R
false
false
2,321
r
#' Title: Text 2 Vector #' Purpose: Explore text2Vec #' Author: Ted Kwartler #' email: edwardkwartler@fas.harvard.edu #' License: GPL>=3 #' Date: Feb 22 2021 #' # Wd setwd("~/Desktop/Harvard_NLP_Student/lessons/H_text2Vec_documentClassification/data") # Libs library(text2vec) library(fst) library(tm) library(data.tab...
############################## ## Collection and combination of all regulon analysis results ############################## setwd("~/rimod/CAGE/cage_analysis/regulon_all_frontal/") #### # MAPT regulons #### # Up-regulated mapt_up_bg <- readRDS("regulon_analysis_250418/mapt/mapt_sig_regulons.rds") mapt_up_degbg <- rea...
/kevin/rimod-analysis/network_analysis/regulon_results_collection.R
no_license
dznetubingen/analysis_scripts
R
false
false
2,700
r
############################## ## Collection and combination of all regulon analysis results ############################## setwd("~/rimod/CAGE/cage_analysis/regulon_all_frontal/") #### # MAPT regulons #### # Up-regulated mapt_up_bg <- readRDS("regulon_analysis_250418/mapt/mapt_sig_regulons.rds") mapt_up_degbg <- rea...
# Exercise 2: working with data frames # Create a vector of 100 employees ("Employee 1", "Employee 2", ... "Employee 100") # Hint: use the `paste()` function and vector recycling to add a number to the word # "Employee" employees <- c(paste("Employee", 1:100)) print(employees) # Create a vector of 100 random salarie...
/chapter-10-exercises/exercise-2/exercise.R
permissive
tmroach75/book-exercises
R
false
false
2,834
r
# Exercise 2: working with data frames # Create a vector of 100 employees ("Employee 1", "Employee 2", ... "Employee 100") # Hint: use the `paste()` function and vector recycling to add a number to the word # "Employee" employees <- c(paste("Employee", 1:100)) print(employees) # Create a vector of 100 random salarie...
# Create static maps of Norfolk Island sites rm(list = ls()) # remove everything stored in environment # load libraries library(ggplot2) library(ggmap) library(maps) library(mapdata) library(ggrepel) library(grid) # set google api source("C:/Users/Jeremy/Box Sync/R_functions/Google_maps_API_token.R") # load data sur...
/Codes/static_maps.R
no_license
jms5151/Norfolk_Island_March2020
R
false
false
2,720
r
# Create static maps of Norfolk Island sites rm(list = ls()) # remove everything stored in environment # load libraries library(ggplot2) library(ggmap) library(maps) library(mapdata) library(ggrepel) library(grid) # set google api source("C:/Users/Jeremy/Box Sync/R_functions/Google_maps_API_token.R") # load data sur...
# Motivaing question: # Is there an observable difference in baby weight for smokers / non-smokers? # Install/library the `openintro package # install.packages('openintro') library(openintro) library(dplyr) # You should now be able to `View` the `births` dataset View(births) # ?births # What are the mean birth weig...
/t-tests/birth-weights.R
permissive
CalvinKorver/class
R
false
false
1,295
r
# Motivaing question: # Is there an observable difference in baby weight for smokers / non-smokers? # Install/library the `openintro package # install.packages('openintro') library(openintro) library(dplyr) # You should now be able to `View` the `births` dataset View(births) # ?births # What are the mean birth weig...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/perform.sc3.reduction.cluster.R \name{perform.sc3.reduction.cluster} \alias{perform.sc3.reduction.cluster} \title{Performs SC3 clustering on reduced embeddings} \usage{ perform.sc3.reduction.cluster( object, assay, reduction, dims, ...
/man/perform.sc3.reduction.cluster.Rd
no_license
jcogan1/IBRAP
R
false
true
1,252
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/perform.sc3.reduction.cluster.R \name{perform.sc3.reduction.cluster} \alias{perform.sc3.reduction.cluster} \title{Performs SC3 clustering on reduced embeddings} \usage{ perform.sc3.reduction.cluster( object, assay, reduction, dims, ...
testlist <- list(b = 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), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
/metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615769659-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
726
r
testlist <- list(b = 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), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ...
library(ggplot2) dd = read.table("beijing_speeds_5.csv.final") dd$city = "Beijing" dd2 = read.table("napoli_speeds_5.csv.final") dd2$city = "Napoli" dd3 = read.table("milano_speeds_5.csv.final") dd3$city = "Milano" dd4 = read.table("roma_speeds_5.csv.final") dd4$city = "Roma" dd5 = read.table("torino_speeds_5.csv.fina...
/CDF_RED.R
no_license
lbedogni/cleanGPS
R
false
false
1,015
r
library(ggplot2) dd = read.table("beijing_speeds_5.csv.final") dd$city = "Beijing" dd2 = read.table("napoli_speeds_5.csv.final") dd2$city = "Napoli" dd3 = read.table("milano_speeds_5.csv.final") dd3$city = "Milano" dd4 = read.table("roma_speeds_5.csv.final") dd4$city = "Roma" dd5 = read.table("torino_speeds_5.csv.fina...
#' Calculate Information Value for character or factor columns #' #' This function calculates information value for character or factor columns of data frame. #' #' @param df data frame with at least two columns (predictor x and outcome y) #' @param x column (character or factor) for which Information Value should be ...
/R/iv.str.r
no_license
SailingHe/woe_self
R
false
false
3,995
r
#' Calculate Information Value for character or factor columns #' #' This function calculates information value for character or factor columns of data frame. #' #' @param df data frame with at least two columns (predictor x and outcome y) #' @param x column (character or factor) for which Information Value should be ...
testlist <- list(doy = c(0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-2.36757568622891e-150, NaN, 0, 0, 0, -2.36757568622891e-150, -5.59813476050972e+303, 3.23785921002061e-319, 0, 0)) result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist) str(result)
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612736257-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
263
r
testlist <- list(doy = c(0, 0, 0, 0, 0), latitude = numeric(0), temp = c(-2.36757568622891e-150, NaN, 0, 0, 0, -2.36757568622891e-150, -5.59813476050972e+303, 3.23785921002061e-319, 0, 0)) result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist) str(result)
q <- p.adjust(as.numeric(scan(commandArgs(TRUE))), method="BH") write(q,
/hdc/adjustp.R
no_license
sowmyaiyer/new_repo
R
false
false
73
r
q <- p.adjust(as.numeric(scan(commandArgs(TRUE))), method="BH") write(q,
# smooth for contour line representations smooth_var <- function(dta, group_vars, smooth_var, smooth_par){ dta_ss <- dta[, c("age", "year", group_vars, smooth_var)] smooth_subfn <- function(xx){ yy <- xx %>% spread(key=age, value=var_to_smooth) years <- yy$year yy$year <- NULL yy <- as.ma...
/scripts/smoother_function.R
no_license
JonMinton/driving_segregation
R
false
false
1,565
r
# smooth for contour line representations smooth_var <- function(dta, group_vars, smooth_var, smooth_par){ dta_ss <- dta[, c("age", "year", group_vars, smooth_var)] smooth_subfn <- function(xx){ yy <- xx %>% spread(key=age, value=var_to_smooth) years <- yy$year yy$year <- NULL yy <- as.ma...
#!/usr/bin/env Rscript # Author: Maria Nattestad # github.com/marianattestad/assemblytics library(ggplot2) library(scales) args<-commandArgs(TRUE) prefix <- args[1] filename_ref <- paste(prefix, ".coords.ref.genome", sep="") filename_query <- paste(prefix, ".coords.query.genome", sep="") ref.data <- read.csv(f...
/scripts/Assemblytics_Nchart.R
permissive
mym88mym/Assemblytics
R
false
false
3,602
r
#!/usr/bin/env Rscript # Author: Maria Nattestad # github.com/marianattestad/assemblytics library(ggplot2) library(scales) args<-commandArgs(TRUE) prefix <- args[1] filename_ref <- paste(prefix, ".coords.ref.genome", sep="") filename_query <- paste(prefix, ".coords.query.genome", sep="") ref.data <- read.csv(f...
library(ape) testtree <- read.tree("9230_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9230_0_unrooted.txt")
/codeml_files/newick_trees_processed/9230_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("9230_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9230_0_unrooted.txt")
\name{CCA_chisq_test} \alias{CCA_chisq_test} \title{ Chi-square Test for Canonical Correlation Analysis } \description{ Calculate the chi-square test for canonical correlation analysis. } \usage{ CCA_chisq_test(rho, n, p, q) } \arguments{ \item{rho}{ a vector of correlation coefficients. } \item{n}{ ...
/man/CCA_chisq_test.Rd
no_license
cran/QRFCCA
R
false
false
744
rd
\name{CCA_chisq_test} \alias{CCA_chisq_test} \title{ Chi-square Test for Canonical Correlation Analysis } \description{ Calculate the chi-square test for canonical correlation analysis. } \usage{ CCA_chisq_test(rho, n, p, q) } \arguments{ \item{rho}{ a vector of correlation coefficients. } \item{n}{ ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vec-chr.R \name{chr_unserialise_unicode} \alias{chr_unserialise_unicode} \title{Translate unicode points to UTF-8} \usage{ chr_unserialise_unicode(chr) } \arguments{ \item{chr}{A character vector.} } \description{ For historical reasons, R tr...
/man/chr_unserialise_unicode.Rd
no_license
COMODr/rlang
R
false
true
1,362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vec-chr.R \name{chr_unserialise_unicode} \alias{chr_unserialise_unicode} \title{Translate unicode points to UTF-8} \usage{ chr_unserialise_unicode(chr) } \arguments{ \item{chr}{A character vector.} } \description{ For historical reasons, R tr...
# Libraries. library(mvtnorm) library(coda) library(microbenchmark) library(mixtools) library(MASS) library(RColorBrewer) # # Normal functions. # # Normal draws. r.normal = function(n, params) { rnorm(n, mean = params[1], sd = params[2]) } # Normal density. d.normal = function(params, data) { sum(dnorm(data, me...
/normal_functions.R
no_license
marshallzhang/old_thesis
R
false
false
6,528
r
# Libraries. library(mvtnorm) library(coda) library(microbenchmark) library(mixtools) library(MASS) library(RColorBrewer) # # Normal functions. # # Normal draws. r.normal = function(n, params) { rnorm(n, mean = params[1], sd = params[2]) } # Normal density. d.normal = function(params, data) { sum(dnorm(data, me...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zone_functions.R \name{zone_time} \alias{zone_time} \title{Calculate time in zones.} \usage{ zone_time(data, column = "power.W", zbounds, pct = FALSE, character.only = FALSE) } \arguments{ \item{data}{a "cycleRdata" object, produced from a ...
/cycleRtools/man/zone_time.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
1,136
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zone_functions.R \name{zone_time} \alias{zone_time} \title{Calculate time in zones.} \usage{ zone_time(data, column = "power.W", zbounds, pct = FALSE, character.only = FALSE) } \arguments{ \item{data}{a "cycleRdata" object, produced from a ...
#install.packages("ggplot2") library(ggplot2) #install.packages("devtools") library("devtools") #install_github("RRisto/riigiteenused") library(riigiteenused) #install.packages("rjson") library(rjson) omavalituste_register=andmedSisse("https://www.riigiteenused.ee/api/et/all") #install.packages("dplyr") library("dplyr...
/nimi.R
no_license
hannatuus/EL-toetuste-saajad-ja-andjad
R
false
false
505
r
#install.packages("ggplot2") library(ggplot2) #install.packages("devtools") library("devtools") #install_github("RRisto/riigiteenused") library(riigiteenused) #install.packages("rjson") library(rjson) omavalituste_register=andmedSisse("https://www.riigiteenused.ee/api/et/all") #install.packages("dplyr") library("dplyr...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyUI(fluidPage( # Application title titlePanel("Fahrenheit to Celsius Calculator"), h6("Choose the ...
/ui.R
no_license
alexfding/shiny1
R
false
false
1,854
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) shinyUI(fluidPage( # Application title titlePanel("Fahrenheit to Celsius Calculator"), h6("Choose the ...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615836076-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
setwd('/home/kushwanth/machinelearning/r_practice/DataScience_Specialization/R programming/') electric_data = read.table("household_power_consumption.txt",sep=";",header=TRUE) #electric_data$Date<-as.character(electric_data$Date) #electric_data$Time<-as.character(electric_data$Time) electric_data$Date_Time<-strptime(...
/plot3.R
no_license
tkngoutham/ExData_Plotting1
R
false
false
1,671
r
setwd('/home/kushwanth/machinelearning/r_practice/DataScience_Specialization/R programming/') electric_data = read.table("household_power_consumption.txt",sep=";",header=TRUE) #electric_data$Date<-as.character(electric_data$Date) #electric_data$Time<-as.character(electric_data$Time) electric_data$Date_Time<-strptime(...
library(P1) s = phyl2(seed=runif(1,1,100000)) par(mfrow=(c(1,2))) # 1 row but 2 plot panels plot(s$newick,direction = 'upwards',show.tip.label=FALSE,edge.width=4,edge.color = 'purple',type="fan") dropex <- drop.fossil(s$newick) # drop extinct species plot(dropex,direction = 'upwards',show.tip.label=FALSE,edge.width=4,e...
/P1v2/visual.R
no_license
franciscorichter/Project1
R
false
false
3,073
r
library(P1) s = phyl2(seed=runif(1,1,100000)) par(mfrow=(c(1,2))) # 1 row but 2 plot panels plot(s$newick,direction = 'upwards',show.tip.label=FALSE,edge.width=4,edge.color = 'purple',type="fan") dropex <- drop.fossil(s$newick) # drop extinct species plot(dropex,direction = 'upwards',show.tip.label=FALSE,edge.width=4,e...
# ========================================================================== # Package: Cognitivemodels # File: model-cpt.R # Author: Jana B. Jarecki # ========================================================================== # ========================================================================== # Cognitive Mod...
/R/model-cpt.R
permissive
anhnguyendepocen/cognitivemodels
R
false
false
12,289
r
# ========================================================================== # Package: Cognitivemodels # File: model-cpt.R # Author: Jana B. Jarecki # ========================================================================== # ========================================================================== # Cognitive Mod...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/textFunctions.R \name{doc_clean_process} \alias{doc_clean_process} \title{Cleans documents performing many common tasks .} \usage{ doc_clean_process(corpusname) } \arguments{ \item{corpus}{corpus to clean} } \value{ a cleaned tm corpus } \des...
/man/doc_clean_process.Rd
permissive
ryscott5/eparTextTools
R
false
true
499
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/textFunctions.R \name{doc_clean_process} \alias{doc_clean_process} \title{Cleans documents performing many common tasks .} \usage{ doc_clean_process(corpusname) } \arguments{ \item{corpus}{corpus to clean} } \value{ a cleaned tm corpus } \des...
####Libraries#### library(easypackages) libs<-c("haven", "readr", "tidyverse", "car") libraries(libs) ####Read in the Data#### dat <- read_sav("Pretest Data.sav") ####Get out frequencies for all items#### for(x in 1:238){ cat("-----------", "\n") print(attributes(dat[,x])$names) print(table(dat[,x])) cat("\n", ...
/Pretest Check.R
no_license
tylerleigh94/Amerispeak-Wave-5
R
false
false
328
r
####Libraries#### library(easypackages) libs<-c("haven", "readr", "tidyverse", "car") libraries(libs) ####Read in the Data#### dat <- read_sav("Pretest Data.sav") ####Get out frequencies for all items#### for(x in 1:238){ cat("-----------", "\n") print(attributes(dat[,x])$names) print(table(dat[,x])) cat("\n", ...
## Getting and Cleaning Data - Course Project ## Download data and unzip it in working directory fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, destfile = "./projectfilesUCI_HAR_Dataset.zip", mode = 'wb') unzip("projectfilesUCI_HAR_Dataset.zip...
/run_analysis.R
no_license
prvanduyl/GCDCourseProject
R
false
false
3,975
r
## Getting and Cleaning Data - Course Project ## Download data and unzip it in working directory fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, destfile = "./projectfilesUCI_HAR_Dataset.zip", mode = 'wb') unzip("projectfilesUCI_HAR_Dataset.zip...
add_theme <- function(p, theme) { if (theme$base_size == CONST_DEFAULT_THEME_BASE_SIZE) { if (theme$theme != CONST_DEFAULT_THEME) p <- p %++% !!call2(sym(theme$theme)) } else { p <- p %++% !!call2(sym(theme$theme), base_size = as.numeric(theme$base_size)) } p }
/R/add-theme.R
no_license
wcmbishop/gogoplot
R
false
false
285
r
add_theme <- function(p, theme) { if (theme$base_size == CONST_DEFAULT_THEME_BASE_SIZE) { if (theme$theme != CONST_DEFAULT_THEME) p <- p %++% !!call2(sym(theme$theme)) } else { p <- p %++% !!call2(sym(theme$theme), base_size = as.numeric(theme$base_size)) } p }
adjust_display_start <- function(previous_page, nb_rows) { if(previous_page > nb_rows) NULL else previous_page } new_dosage_output <- function(id) { ns <- NS(id) DT::dataTableOutput(ns("table_Dosage")) } shinyInput <- function(FUN, len, start, id, ...) { inputs <- character(len) if(len > 0) { for (i in ...
/Generate_Files/module_dosage.R
no_license
Dyze95/ANSM-Stock-Database
R
false
false
5,882
r
adjust_display_start <- function(previous_page, nb_rows) { if(previous_page > nb_rows) NULL else previous_page } new_dosage_output <- function(id) { ns <- NS(id) DT::dataTableOutput(ns("table_Dosage")) } shinyInput <- function(FUN, len, start, id, ...) { inputs <- character(len) if(len > 0) { for (i in ...
plot1 <- function(){ # Set working directory setwd("C:/Coursera/4_Exploratory_Data_Analysis/Week_1/DataSet") # read data set tt <- read.csv2("household_power_consumption.txt", sep=";") # Convert date to a format that is usable tt$Date1 <- as.Date(tt$Date, format="%d/%m/%Y") # extract just the data we ...
/plot1.R
no_license
ThurstonT/ExData_Plotting1
R
false
false
1,446
r
plot1 <- function(){ # Set working directory setwd("C:/Coursera/4_Exploratory_Data_Analysis/Week_1/DataSet") # read data set tt <- read.csv2("household_power_consumption.txt", sep=";") # Convert date to a format that is usable tt$Date1 <- as.Date(tt$Date, format="%d/%m/%Y") # extract just the data we ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen-namespace-docs.R, % R/gen-namespace-examples.R, R/gen-namespace.R \name{torch_pixel_shuffle} \alias{torch_pixel_shuffle} \title{Pixel_shuffle} \usage{ torch_pixel_shuffle(self, upscale_factor) } \arguments{ \item{self}{(Tensor) the inpu...
/man/torch_pixel_shuffle.Rd
permissive
mlverse/torch
R
false
true
849
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen-namespace-docs.R, % R/gen-namespace-examples.R, R/gen-namespace.R \name{torch_pixel_shuffle} \alias{torch_pixel_shuffle} \title{Pixel_shuffle} \usage{ torch_pixel_shuffle(self, upscale_factor) } \arguments{ \item{self}{(Tensor) the inpu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/daily_indicators.R \name{daily_indicators} \alias{daily_indicators} \title{Get daily indicators} \usage{ daily_indicators(ticker, period, type, api_key = api) } \arguments{ \item{ticker}{Required. The name of the ticker.} \item{period}{Requi...
/financeR/man/daily_indicators.Rd
no_license
oliealex/Stock-analysis
R
false
true
767
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/daily_indicators.R \name{daily_indicators} \alias{daily_indicators} \title{Get daily indicators} \usage{ daily_indicators(ticker, period, type, api_key = api) } \arguments{ \item{ticker}{Required. The name of the ticker.} \item{period}{Requi...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/asNetwork.R \name{asNetwork} \alias{asNetwork} \alias{asNetwork.data.frame} \alias{asNetwork.igraph} \title{Convert objects to class "network"} \usage{ asNetwork(x, ...) \method{asNetwork}{data.frame}(x, directed = TRUE, vertices = N...
/man/asNetwork.Rd
no_license
arturochian/intergraph
R
false
false
2,322
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/asNetwork.R \name{asNetwork} \alias{asNetwork} \alias{asNetwork.data.frame} \alias{asNetwork.igraph} \title{Convert objects to class "network"} \usage{ asNetwork(x, ...) \method{asNetwork}{data.frame}(x, directed = TRUE, vertices = N...
library(dplyr) # for data manipulation library(ggplot2) # for pretty charts library(ggcorrplot) # unnecessary but pretty correlation plot library(NbClust) # helps estimate optimum number of clusters ### Read the data df <-- read.csv("clustering.csv") head(df) movie.data <- data.frame(df$Movies, d...
/BUSA3020 (Former MGMT320); Advanced Analytics Techniques/Assignment 3 - Clustering/MovieData PCA and Clustering.R
no_license
MadLambo/past-uni-assignments
R
false
false
4,007
r
library(dplyr) # for data manipulation library(ggplot2) # for pretty charts library(ggcorrplot) # unnecessary but pretty correlation plot library(NbClust) # helps estimate optimum number of clusters ### Read the data df <-- read.csv("clustering.csv") head(df) movie.data <- data.frame(df$Movies, d...
#(December 8 2015). # The R arguments (R_rows, R_cols) can be a character string specifying an option (e.g. "normal", "VAlow", etc), or a numeric vector of length 1 or length == number of rows or columns. If a single number is given, this number is applied to all species in that guild. # unluckyGuild options: c("rows"...
/Analysis/functions/netcascade_JO.R
no_license
jimmyodonnell/extinction_dynamics
R
false
false
15,018
r
#(December 8 2015). # The R arguments (R_rows, R_cols) can be a character string specifying an option (e.g. "normal", "VAlow", etc), or a numeric vector of length 1 or length == number of rows or columns. If a single number is given, this number is applied to all species in that guild. # unluckyGuild options: c("rows"...
rm(list=ls()) library(fields) require(graphics) require(maps) library(ncdf4) library(mapdata) library(RColorBrewer) #x11(width=12,height=8) source("image.plot_Erwan.R") #par(mfrow=c(2,3),mar=c(4,3,4,4)) #par(oma=c(3,3,1,1)) ######### SEGRIGATING THE PRECIPITATION FOR LANINA and ELNINA ###### dir7<-"/gpfs/ahrenshsmfs...
/FIG8/gcm_cli_prec_ano_lanina_INT.R
no_license
pothapakulapraveen/ESD
R
false
false
4,931
r
rm(list=ls()) library(fields) require(graphics) require(maps) library(ncdf4) library(mapdata) library(RColorBrewer) #x11(width=12,height=8) source("image.plot_Erwan.R") #par(mfrow=c(2,3),mar=c(4,3,4,4)) #par(oma=c(3,3,1,1)) ######### SEGRIGATING THE PRECIPITATION FOR LANINA and ELNINA ###### dir7<-"/gpfs/ahrenshsmfs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadImagSelect.R \name{loadImagSelect} \alias{loadImagSelect} \title{read image file} \usage{ loadImagSelect(pathFile, nameFileImag) } \arguments{ \item{pathFile}{: string (path)} \item{nameFileImag}{: string (file name)} } \value{ NULL or i...
/man/loadImagSelect.Rd
permissive
DanGit01/ToImagen
R
false
true
470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/loadImagSelect.R \name{loadImagSelect} \alias{loadImagSelect} \title{read image file} \usage{ loadImagSelect(pathFile, nameFileImag) } \arguments{ \item{pathFile}{: string (path)} \item{nameFileImag}{: string (file name)} } \value{ NULL or i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utlis.R \name{get_observations_list} \alias{get_observations_list} \title{Generates list of rownames of each observation from each batch} \usage{ get_observations_list(arena) } \arguments{ \item{arena}{live or static arena object} } \value{ l...
/man/get_observations_list.Rd
no_license
cran/arenar
R
false
true
428
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utlis.R \name{get_observations_list} \alias{get_observations_list} \title{Generates list of rownames of each observation from each batch} \usage{ get_observations_list(arena) } \arguments{ \item{arena}{live or static arena object} } \value{ l...
library(rebus) library(tidyverse) library(tidytext) df_1 <- readRDS("Intermediate/df_1.rds") df_2 <- readRDS("Intermediate/df_2.rds") original_df <- readRDS("Input/cds_marketing_original.rds") # df_2 are been cleaned manually so there is no need to clean that column # DESCR COLUMN TEXT CLEANING BY RU...
/Toscana-Open-Research-main - Copia/Skills Extraction CdS Marketing/Script/CDS_2_text-cleaning-tier-one.R
no_license
SimoneBarandoni/Toscana-Open-Research
R
false
false
3,222
r
library(rebus) library(tidyverse) library(tidytext) df_1 <- readRDS("Intermediate/df_1.rds") df_2 <- readRDS("Intermediate/df_2.rds") original_df <- readRDS("Input/cds_marketing_original.rds") # df_2 are been cleaned manually so there is no need to clean that column # DESCR COLUMN TEXT CLEANING BY RU...
# Set working directory setwd("~/School Related Documents/Coursera/datascience/Exploratory Data Analysis/Project 1") # Read in, format, and subset data data <- read.table("household_power_consumption.txt", header=TRUE, sep=";") data$datetime <- paste(as.character(data$Date), as.character(data$Time)) data$datetime ...
/plot3.R
no_license
zbsullivan/ExData_Plotting1
R
false
false
1,067
r
# Set working directory setwd("~/School Related Documents/Coursera/datascience/Exploratory Data Analysis/Project 1") # Read in, format, and subset data data <- read.table("household_power_consumption.txt", header=TRUE, sep=";") data$datetime <- paste(as.character(data$Date), as.character(data$Time)) data$datetime ...
# 1. while 문과 조건문을 이용하여 아래와 같이 출력하는 코드를 작성하시오. # * * # *** *** # ********** # *** *** # * * line_num = 6 total_txt = '' while ((line_num = line_num - 1)) { magic_num = abs(3 - line_num) space_num = c(magic_num * 2, magic_num) aster_num = c(5 - space_num[1], 5 - 2 * space_num[2]) line_txt = '' wh...
/practice6.R
no_license
kyeongmincho/Practice__R
R
false
false
3,826
r
# 1. while 문과 조건문을 이용하여 아래와 같이 출력하는 코드를 작성하시오. # * * # *** *** # ********** # *** *** # * * line_num = 6 total_txt = '' while ((line_num = line_num - 1)) { magic_num = abs(3 - line_num) space_num = c(magic_num * 2, magic_num) aster_num = c(5 - space_num[1], 5 - 2 * space_num[2]) line_txt = '' wh...
library("data.table") df=fread("C:/Users/divij.a/Desktop/RPractice/4Expolratory_analysis/household_power_consumption.txt",na.strings="?") df[["DateTime"]]= as.POSIXct(paste(df[["Date"]],df[["Time"]],sep=" ") ,format="%d/%m/%Y %H:%M:%S") df<-df[(DateTime>="2007-02-01") & (DateTime<"2007-02-0...
/plot2.R
no_license
divij0907/ExData_Plotting1
R
false
false
475
r
library("data.table") df=fread("C:/Users/divij.a/Desktop/RPractice/4Expolratory_analysis/household_power_consumption.txt",na.strings="?") df[["DateTime"]]= as.POSIXct(paste(df[["Date"]],df[["Time"]],sep=" ") ,format="%d/%m/%Y %H:%M:%S") df<-df[(DateTime>="2007-02-01") & (DateTime<"2007-02-0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tratadocumento.R \name{trata_cpf} \alias{trata_cpf} \title{Correct Brazilian cpf document.} \usage{ trata_cpf(entrada) } \arguments{ \item{entrada}{Character or numeric of the document that will be adjusted.} } \value{ Entrada adjusted. } \de...
/man/trata_cpf.Rd
no_license
ipea/validaRA
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tratadocumento.R \name{trata_cpf} \alias{trata_cpf} \title{Correct Brazilian cpf document.} \usage{ trata_cpf(entrada) } \arguments{ \item{entrada}{Character or numeric of the document that will be adjusted.} } \value{ Entrada adjusted. } \de...
################################################################## ######## SUBJECT SPECIFIC PARAMETERS ESTIMATION FOR SECTION 4.2.2 ################################################################## pathnames <- list.files(pattern="[.]R$", path="function_model_and_sims//", full.names=TRUE); sapply(pathnames, FUN...
/NLME_ODE_estimation_via_optimal_control/script_test_insulin_model_misspe_inner_crit.R
no_license
melanieprague/NLME_ODE_estimation_via_optimal_control
R
false
false
6,262
r
################################################################## ######## SUBJECT SPECIFIC PARAMETERS ESTIMATION FOR SECTION 4.2.2 ################################################################## pathnames <- list.files(pattern="[.]R$", path="function_model_and_sims//", full.names=TRUE); sapply(pathnames, FUN...
library(ggplot2) library(mice) library(dplyr) library(mi) library(MASS) library(normalr) #library(caret) #library(car) #Clear everything in the environment rm(list = ls()) #Import the interested pums_person_interest pums_person_interest <- rio::import("~/git/comm_fairfax/data/comm_fairfax/working/PUMS_person_interest....
/src/zarni90/mice_fairfax_impute.R
no_license
uva-bi-sdad/comm_fairfax
R
false
false
7,598
r
library(ggplot2) library(mice) library(dplyr) library(mi) library(MASS) library(normalr) #library(caret) #library(car) #Clear everything in the environment rm(list = ls()) #Import the interested pums_person_interest pums_person_interest <- rio::import("~/git/comm_fairfax/data/comm_fairfax/working/PUMS_person_interest....
context("Creating igraphs from data frames") test_that("Disassembling to d.f and assembling back to igraph gives the same result", { # convert to data frames l <- asDF(exIgraph) # assemble back g <- asIgraph( l$edges, vertices=l$vertexes) expect_identical(g, exIgraph) } ) test_that("Providing non-existin...
/inst/tests/test-asIgraph.R
no_license
arturochian/intergraph
R
false
false
1,843
r
context("Creating igraphs from data frames") test_that("Disassembling to d.f and assembling back to igraph gives the same result", { # convert to data frames l <- asDF(exIgraph) # assemble back g <- asIgraph( l$edges, vertices=l$vertexes) expect_identical(g, exIgraph) } ) test_that("Providing non-existin...
testlist <- list(doy = c(-2.91265718700665e+133, 5.32948612168953e-320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(2.22593114480675e-308, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831220-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
800
r
testlist <- list(doy = c(-2.91265718700665e+133, 5.32948612168953e-320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(2.22593114480675e-308, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952...
library(UStatBookABSC) ### Name: WLS ### Title: Computes a weighted least squares linear regression on possibly ### multivariate responses ### Aliases: WLS ### ** Examples ## Not run: ##D DataY = cbind(CCU12_Precip$Precip, CCU12_Precip$TMax); ##D DataX = cbind(rep(1, length(CCU12_Precip$Precip)), CCU12_Precip$...
/data/genthat_extracted_code/UStatBookABSC/examples/WLS.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
397
r
library(UStatBookABSC) ### Name: WLS ### Title: Computes a weighted least squares linear regression on possibly ### multivariate responses ### Aliases: WLS ### ** Examples ## Not run: ##D DataY = cbind(CCU12_Precip$Precip, CCU12_Precip$TMax); ##D DataX = cbind(rep(1, length(CCU12_Precip$Precip)), CCU12_Precip$...
#' getVideoCategories #' #' @description Returns a list of categories that can be associated with #' YouTube videos. #' #' @param token #' Your token as returned by \code{\link{youOAuth}}. #' @param id #' Specifies a comma-separated list of video category IDs for the resources #' that you are retrieving. #' @para...
/R/get_video_categories.R
no_license
JohnCoene/youTubeDataR
R
false
false
2,489
r
#' getVideoCategories #' #' @description Returns a list of categories that can be associated with #' YouTube videos. #' #' @param token #' Your token as returned by \code{\link{youOAuth}}. #' @param id #' Specifies a comma-separated list of video category IDs for the resources #' that you are retrieving. #' @para...
# Simple Linear Regression # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set = subset(dataset, split == TRUE) test_set...
/Part 2 - Regression/Section 4 - Simple Linear Regression/simple_linear_regression.R
no_license
AtmiyaVaghela/udemy-machinelearning
R
false
false
1,492
r
# Simple Linear Regression # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set = subset(dataset, split == TRUE) test_set...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chimeras.R \name{isBimeraDenovoTable} \alias{isBimeraDenovoTable} \title{Identify bimeras in a sequence table.} \usage{ isBimeraDenovoTable(seqtab, minSampleFraction = 0.9, ignoreNNegatives = 1, minFoldParentOverAbundance = 1, minParentAbun...
/man/isBimeraDenovoTable.Rd
no_license
giriarteS/dada2
R
false
true
3,243
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chimeras.R \name{isBimeraDenovoTable} \alias{isBimeraDenovoTable} \title{Identify bimeras in a sequence table.} \usage{ isBimeraDenovoTable(seqtab, minSampleFraction = 0.9, ignoreNNegatives = 1, minFoldParentOverAbundance = 1, minParentAbun...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/survivalData.R \name{getZeroTimes} \alias{getZeroTimes} \title{Output details of subjects with zero times for any endpoint} \usage{ getZeroTimes(object) } \arguments{ \item{object}{(SurvivalData object)} } \value{ (character) containing detai...
/man/getZeroTimes.Rd
no_license
scientific-computing-solutions/sibyl
R
false
true
485
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/survivalData.R \name{getZeroTimes} \alias{getZeroTimes} \title{Output details of subjects with zero times for any endpoint} \usage{ getZeroTimes(object) } \arguments{ \item{object}{(SurvivalData object)} } \value{ (character) containing detai...
pricing_function <- function(days_left, tickets_left, demand_level){ t=tickets_left d=days_left dl=demand_level #possible values of "d" and "t" dValues=seq(0,d) tValues = seq(0,t) dN=length(dValues) tN=length(tValues) #Value function matrix V = matrix(NA,dN,tN) rownames(V) = dValues # add rownames a...
/Dynamic Programming for Pricing Optimization.R
no_license
mohammedsaqib/Hackerrank-30-Days-of-Code
R
false
false
1,383
r
pricing_function <- function(days_left, tickets_left, demand_level){ t=tickets_left d=days_left dl=demand_level #possible values of "d" and "t" dValues=seq(0,d) tValues = seq(0,t) dN=length(dValues) tN=length(tValues) #Value function matrix V = matrix(NA,dN,tN) rownames(V) = dValues # add rownames a...
library(testthat) library(gov.uk.taxonomy) test_check("gov.uk.taxonomy")
/tests/testthat.R
no_license
mattmalcher/gov.uk.taxonomy
R
false
false
74
r
library(testthat) library(gov.uk.taxonomy) test_check("gov.uk.taxonomy")
#' convert phased variants in VCF to tidy data frame of haplotypes #' #' If the ancestral state is listed this gets put out there too #' @param V the path to the VCF. Note that the allele separator has to be "|" for #' everything, as it has to be phased. #' @param Anc if NULL (the default) this is ignored. If non-nu...
/R/vcf_haplos2tidy.R
permissive
eriqande/ecaRbioinf
R
false
false
3,030
r
#' convert phased variants in VCF to tidy data frame of haplotypes #' #' If the ancestral state is listed this gets put out there too #' @param V the path to the VCF. Note that the allele separator has to be "|" for #' everything, as it has to be phased. #' @param Anc if NULL (the default) this is ignored. If non-nu...
#source("plotvenn.R") vennChart <- function(A_all , B_all , C_all , AandB , AandC , BandC, plot = TRUE, colors = list(rgb(0,0,1,0.3), rgb(1,0, 0, 0.3), rgb(0, 1, 0, 0.3)), frameadj = 1.5, line = NA, lwd = 2, ...
/rfiles/vennchart.R
no_license
weitingwlin/vennchart
R
false
false
1,000
r
#source("plotvenn.R") vennChart <- function(A_all , B_all , C_all , AandB , AandC , BandC, plot = TRUE, colors = list(rgb(0,0,1,0.3), rgb(1,0, 0, 0.3), rgb(0, 1, 0, 0.3)), frameadj = 1.5, line = NA, lwd = 2, ...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829107-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
469
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
PIPointAttribute <- function(name = NULL, value = NULL, links = NULL, webException = NULL) { if (is.null(name) == FALSE) { if (is.character(name) == FALSE) { return (print(paste0("Error: name must be a string."))) } } if (is.null(value) == FALSE) { } if (is.null(links) == FALSE) { className <- attr(links,...
/R/PIPointAttribute.r
permissive
frbl/PI-Web-API-Client-R
R
false
false
988
r
PIPointAttribute <- function(name = NULL, value = NULL, links = NULL, webException = NULL) { if (is.null(name) == FALSE) { if (is.character(name) == FALSE) { return (print(paste0("Error: name must be a string."))) } } if (is.null(value) == FALSE) { } if (is.null(links) == FALSE) { className <- attr(links,...
library("tidyverse") library("nycflights13") library("tidyr") library("stringr") library("dplyr") library("tibble") library("readr") tbl = read.csv("eddypro.csv", skip = 1, na =c("","NA","-9999","-9999.0"), comment=c("[")) tbl = tbl[-1,] tbl tbl=tbl[tbl$DOY > 244 & tbl$DOY < 346,] tbl tbl=tbl[tbl$daytim...
/курсовая.R
no_license
AnnaP9/AnnaP9.github.io
R
false
false
1,880
r
library("tidyverse") library("nycflights13") library("tidyr") library("stringr") library("dplyr") library("tibble") library("readr") tbl = read.csv("eddypro.csv", skip = 1, na =c("","NA","-9999","-9999.0"), comment=c("[")) tbl = tbl[-1,] tbl tbl=tbl[tbl$DOY > 244 & tbl$DOY < 346,] tbl tbl=tbl[tbl$daytim...
# Rename this file to "Inclass_02_YourName.R", where `YourName` is changed to your own name. # Name: zewahyu (Revision) # ID: ################## Task 4: Matrices ########################## # (a) Define a variable `x.vec` to contain the integers 1 through 100. # Add up the numbers in `x.vec`, by calling a built-in...
/topic2/Inclass_02.R
no_license
zoyaew/0933MOSI
R
false
false
4,761
r
# Rename this file to "Inclass_02_YourName.R", where `YourName` is changed to your own name. # Name: zewahyu (Revision) # ID: ################## Task 4: Matrices ########################## # (a) Define a variable `x.vec` to contain the integers 1 through 100. # Add up the numbers in `x.vec`, by calling a built-in...
library("ArrayExpress", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.5") library(affy) library(dplyr) library(gcrma) library(arrayQualityMetrics) #query ATsets = queryAE(species = "Arabidopsis+thaliana") #keep ones with raw data ATsetsfiltered<-ATsets %>% filter(tolower(Species)=="arabidopsis thaliana") %>% filter(tolow...
/athalAffy.R
no_license
urmi-21/RNAseq
R
false
false
999
r
library("ArrayExpress", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.5") library(affy) library(dplyr) library(gcrma) library(arrayQualityMetrics) #query ATsets = queryAE(species = "Arabidopsis+thaliana") #keep ones with raw data ATsetsfiltered<-ATsets %>% filter(tolower(Species)=="arabidopsis thaliana") %>% filter(tolow...
library(ape) testtree <- read.tree("11790_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11790_0_unrooted.txt")
/codeml_files/newick_trees_processed/11790_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("11790_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11790_0_unrooted.txt")
Martingale <- function(Q, H, error, fcast){ cyc <- cycle(Q) len <- length(Q) frq <- frequency(Q) cycF <- matrix(rep(cyc, length.out = H * len + (H - 1))[-((1 : (H-1) * len + 1) + seq(0,1, length.out = H - 1))],ncol = H) fcast_error <- rep(error, H) fcast_matrix <- matrix(rep(Q, len),nrow = len, byrow = T...
/MMFE.R
no_license
swd-turner/MMFE
R
false
false
1,345
r
Martingale <- function(Q, H, error, fcast){ cyc <- cycle(Q) len <- length(Q) frq <- frequency(Q) cycF <- matrix(rep(cyc, length.out = H * len + (H - 1))[-((1 : (H-1) * len + 1) + seq(0,1, length.out = H - 1))],ncol = H) fcast_error <- rep(error, H) fcast_matrix <- matrix(rep(Q, len),nrow = len, byrow = T...
library(Seurat) library(fishpond) library(tximeta) library(SummarizedExperiment) library(org.Mm.eg.db) library(samr) library(DESeq2) source("../samseq_func.R") source("../scrna/sc_funcs.R") load(file = "data/mouse_900_sample_lower_filter_y_se.rda") seed <- 131 set.seed(seed) dds <- DESeqDataSetFromMatrix(round(assa...
/scrna/de_analysis.R
no_license
azhu513/swishPaper
R
false
false
726
r
library(Seurat) library(fishpond) library(tximeta) library(SummarizedExperiment) library(org.Mm.eg.db) library(samr) library(DESeq2) source("../samseq_func.R") source("../scrna/sc_funcs.R") load(file = "data/mouse_900_sample_lower_filter_y_se.rda") seed <- 131 set.seed(seed) dds <- DESeqDataSetFromMatrix(round(assa...
with(aa485404e20d34fed91bd38dacbee1bf0, {ROOT <- 'C:/semoss/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';FRAME951665$Long[FRAME951665$Location == ""] <- 0;});
/f6ba5938-ef1b-4430-b7b0-261d1cc8174d/R/Temp/aYQFxmzD2hLBd.R
no_license
ayanmanna8/test
R
false
false
220
r
with(aa485404e20d34fed91bd38dacbee1bf0, {ROOT <- 'C:/semoss/semosshome/db/Atadata2__3b3e4a3b-d382-4e98-9950-9b4e8b308c1c/version/f6ba5938-ef1b-4430-b7b0-261d1cc8174d';FRAME951665$Long[FRAME951665$Location == ""] <- 0;});
options(stringsAsFactors = FALSE) library(caret) library(stringr) library(foreach) library(doMC) registerDoMC(7) models <- read.csv('caret_models.csv') table(models$Type) # Number of packages getReqPackages <- function(package_list) { packs <- paste0(models$Packages, collapse=', ') packs <- str_split(packs, ', ')[...
/run_all_classifiers_caret.R
no_license
yangboyubyron/R_meetup_Aug25_2015_slidify
R
false
false
1,303
r
options(stringsAsFactors = FALSE) library(caret) library(stringr) library(foreach) library(doMC) registerDoMC(7) models <- read.csv('caret_models.csv') table(models$Type) # Number of packages getReqPackages <- function(package_list) { packs <- paste0(models$Packages, collapse=', ') packs <- str_split(packs, ', ')[...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covid19_genomic.R \name{c19.fasta.data} \alias{c19.fasta.data} \title{function to obtain FASTA sequence of the SARS-CoV-2 virus} \usage{ c19.fasta.data(src = "livedata") } \arguments{ \item{src}{argument to indicate where the data is being re...
/vignettes/man/c19.fasta.data.Rd
no_license
cran/covid19.analytics
R
false
true
410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/covid19_genomic.R \name{c19.fasta.data} \alias{c19.fasta.data} \title{function to obtain FASTA sequence of the SARS-CoV-2 virus} \usage{ c19.fasta.data(src = "livedata") } \arguments{ \item{src}{argument to indicate where the data is being re...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/get_publication.R \name{get_publication.download} \alias{get_publication.download} \title{A function to get publications for downloads in the Neotoma Database using the API.} \usage{ \method{get_publication}{download}(x, ...) } \argum...
/man/get_publication.download.Rd
no_license
parthasen/neotoma
R
false
false
589
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/get_publication.R \name{get_publication.download} \alias{get_publication.download} \title{A function to get publications for downloads in the Neotoma Database using the API.} \usage{ \method{get_publication}{download}(x, ...) } \argum...
## Removes leading & trailing whitespace from strings. trim <- function (x) gsub("^\\s+|\\s+$", "", x) ## Removes \r and \n characters from strings. cleanup <- function (x) gsub("[\r\n]", "", x) ## Creates a table given a Olé statistics url scrapPositions <- function (url = "http://www.ole.com.ar/estadisticas/futbol/...
/GettingAndCleaning/Week2/olescrapping.R
permissive
llattes/datasciencecoursera
R
false
false
2,357
r
## Removes leading & trailing whitespace from strings. trim <- function (x) gsub("^\\s+|\\s+$", "", x) ## Removes \r and \n characters from strings. cleanup <- function (x) gsub("[\r\n]", "", x) ## Creates a table given a Olé statistics url scrapPositions <- function (url = "http://www.ole.com.ar/estadisticas/futbol/...
library(gld) ### Name: starship.adaptivegrid ### Title: Carry out the "starship" estimation method for the generalised ### lambda distribution using a grid-based search ### Aliases: starship.adaptivegrid ### Keywords: distribution ### ** Examples data <- rgl(100,0,1,.2,.2) starship.adaptivegrid(data,list(lcvect=(...
/data/genthat_extracted_code/gld/examples/starship.adaptivegrid.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
349
r
library(gld) ### Name: starship.adaptivegrid ### Title: Carry out the "starship" estimation method for the generalised ### lambda distribution using a grid-based search ### Aliases: starship.adaptivegrid ### Keywords: distribution ### ** Examples data <- rgl(100,0,1,.2,.2) starship.adaptivegrid(data,list(lcvect=(...