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
#Creates TotalAsIs_stl plot png("Plots/TotalAsIs_stl.png") plot(TotalAsIs_stl, col="black", main="TotalAsIs_stl") dev.off()
/Plots/TotalAsIs_stl.r
no_license
clairecDS/DoingDataScience_CaseStudy2
R
false
false
124
r
#Creates TotalAsIs_stl plot png("Plots/TotalAsIs_stl.png") plot(TotalAsIs_stl, col="black", main="TotalAsIs_stl") dev.off()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_group_analysis.R \name{subject_tmpfile} \alias{subject_tmpfile} \title{Create temp file in subject module folder} \usage{ subject_tmpfile(module_id, fun_name = "", project_name, subject_code, pattern = "file_") } \arguments{ \item{modu...
/man/subject_tmpfile.Rd
no_license
dipterix/rave
R
false
true
583
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_group_analysis.R \name{subject_tmpfile} \alias{subject_tmpfile} \title{Create temp file in subject module folder} \usage{ subject_tmpfile(module_id, fun_name = "", project_name, subject_code, pattern = "file_") } \arguments{ \item{modu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SCR.R \name{JMAn} \alias{JMAn} \title{A function computing the Jackknife Model Average (JMA) least-squares estimates for pure nested candimate models.} \usage{ JMAn(y, x) } \arguments{ \item{y}{n×1 dependent varables} \item{x}{n×p regressor...
/man/JMAn.Rd
no_license
WaANGly/statcomp20034
R
false
true
702
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SCR.R \name{JMAn} \alias{JMAn} \title{A function computing the Jackknife Model Average (JMA) least-squares estimates for pure nested candimate models.} \usage{ JMAn(y, x) } \arguments{ \item{y}{n×1 dependent varables} \item{x}{n×p regressor...
# # 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/ # library(shiny) library(tidyverse) # Define UI for application ui <- fluidPage( titlePanel("This is my title"...
/Day2/sample app/app.R
no_license
amzoss/RVis-DM2017
R
false
false
961
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/ # library(shiny) library(tidyverse) # Define UI for application ui <- fluidPage( titlePanel("This is my title"...
## Purpose: Run reburn transition models ## Project: Reburn_Resilience library(tidyverse) library(brms) ## read in standardize data (see orig_data files for unstandardized values) de_s <- readRDS("Data/earlymodel_data.rds") dl_s <- readRDS("Data/forestmodel_data.rds") ## Run the models options(mc.cores = paralle...
/Code/transition_models.R
no_license
zacksteel/Reburn_Resilience
R
false
false
1,550
r
## Purpose: Run reburn transition models ## Project: Reburn_Resilience library(tidyverse) library(brms) ## read in standardize data (see orig_data files for unstandardized values) de_s <- readRDS("Data/earlymodel_data.rds") dl_s <- readRDS("Data/forestmodel_data.rds") ## Run the models options(mc.cores = paralle...
\name{hodar.rpart.reg.plot} \alias{hodar.rpart.reg.plot} \title{ hodar.rpart.reg } \description{ Plots a regression tree generated by rpart } \usage{ hodar.rpart.reg.plot(model) } \arguments{ \item{model}{ The tree model we want to plot } } \value{ No return value -- just plots the tree. } \author{ Viswa Viswanat...
/Docs/hodar/man/hodar.rpart.reg.plot.Rd
no_license
kwlee58/zmPDSwR_Class
R
false
false
850
rd
\name{hodar.rpart.reg.plot} \alias{hodar.rpart.reg.plot} \title{ hodar.rpart.reg } \description{ Plots a regression tree generated by rpart } \usage{ hodar.rpart.reg.plot(model) } \arguments{ \item{model}{ The tree model we want to plot } } \value{ No return value -- just plots the tree. } \author{ Viswa Viswanat...
#' @name wald_betas #' @rdname wald_betas #' #' @title Wald tests on the \emph{beta} coefficients of the equation of #' the SUR model #' #' #' @description #' The function \code{\link{wald_betas}} can be seen as a complement #' to the restricted estimation procedures included in the functions #' \code{\li...
/R/wald_betas.R
no_license
shizelong1985/spsur
R
false
false
7,393
r
#' @name wald_betas #' @rdname wald_betas #' #' @title Wald tests on the \emph{beta} coefficients of the equation of #' the SUR model #' #' #' @description #' The function \code{\link{wald_betas}} can be seen as a complement #' to the restricted estimation procedures included in the functions #' \code{\li...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdhelper.r \name{assign.spp.v3} \alias{assign.spp.v3} \title{Assign species to the landscape (v3)} \usage{ assign.spp.v3(p, loc.rtd, land.rtd, land.sp.num, patch.sp.num, unq.rtds, SpTraits) } \arguments{ \item{p}{The number of cells in a sq...
/man/assign.spp.v3.Rd
no_license
akeyel/spatialdemography
R
false
true
1,149
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdhelper.r \name{assign.spp.v3} \alias{assign.spp.v3} \title{Assign species to the landscape (v3)} \usage{ assign.spp.v3(p, loc.rtd, land.rtd, land.sp.num, patch.sp.num, unq.rtds, SpTraits) } \arguments{ \item{p}{The number of cells in a sq...
#' @title greedyRegistration #' @description find transform between two image spaces #' @param fixed target image (or vector/list of images) #' @param moving moving image space (or vector/list of images) #' @param metric metric #' @param mode mode #' @param parameters list of parameters obtained from greedyParameters()...
/R/greedyRegistration.R
no_license
jeffduda/greedyr
R
false
false
917
r
#' @title greedyRegistration #' @description find transform between two image spaces #' @param fixed target image (or vector/list of images) #' @param moving moving image space (or vector/list of images) #' @param metric metric #' @param mode mode #' @param parameters list of parameters obtained from greedyParameters()...
## Dale W.R. Rosenthal, 2018 ## You are free to distribute and use this code so long as you attribute ## it to me or cite the text. ## The legal disclaimer in _A Quantitative Primer on Investments with R_ ## applies to this code. Use or distribution without these comment lines ## is forbidden. ## B = Bloomberg Barcla...
/Quantitative Primer/samples/ch9-two-risky-assets.r
permissive
bmoretz/Quantitative-Investments
R
false
false
2,111
r
## Dale W.R. Rosenthal, 2018 ## You are free to distribute and use this code so long as you attribute ## it to me or cite the text. ## The legal disclaimer in _A Quantitative Primer on Investments with R_ ## applies to this code. Use or distribution without these comment lines ## is forbidden. ## B = Bloomberg Barcla...
##Factors library(tidyverse) install.packages("forcats") library(forcats) ##Creating a factor vector for months of the year data <- c("Jan", "Dec", "Apr", "Sep") #the data we'd like to make a factor #a vector of all possible levels that data can take on month_levels <- c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul...
/Code_Demonstrations/Factors.R
no_license
jdwilson4/Intro-Data-Science
R
false
false
3,548
r
##Factors library(tidyverse) install.packages("forcats") library(forcats) ##Creating a factor vector for months of the year data <- c("Jan", "Dec", "Apr", "Sep") #the data we'd like to make a factor #a vector of all possible levels that data can take on month_levels <- c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/c3co.R \name{c3co} \alias{c3co} \title{Cancer subclone Inference function} \usage{ c3co(dat, lambda1.grid = NULL, lambda2.grid = NULL, nb.arch.grid = 2:(length(dat) - 1), stat = "C1C2", saveResults = FALSE, pathSeg = NULL, output.dir = "r...
/man/c3co.Rd
no_license
mpierrejean/c3co
R
false
true
2,433
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/c3co.R \name{c3co} \alias{c3co} \title{Cancer subclone Inference function} \usage{ c3co(dat, lambda1.grid = NULL, lambda2.grid = NULL, nb.arch.grid = 2:(length(dat) - 1), stat = "C1C2", saveResults = FALSE, pathSeg = NULL, output.dir = "r...
## stienen.R ## ## Stienen diagram with border correction ## ## $Revision: 1.9 $ $Date: 2020/12/19 05:25:06 $ stienen <- function(X, ..., bg="grey", border=list(bg=NULL)) { Xname <- short.deparse(substitute(X)) stopifnot(is.ppp(X)) if(npoints(X) <= 1) { W <- Window(X) dont.complain.about(W) do.call...
/R/stienen.R
no_license
spatstat/spatstat.core
R
false
false
2,154
r
## stienen.R ## ## Stienen diagram with border correction ## ## $Revision: 1.9 $ $Date: 2020/12/19 05:25:06 $ stienen <- function(X, ..., bg="grey", border=list(bg=NULL)) { Xname <- short.deparse(substitute(X)) stopifnot(is.ppp(X)) if(npoints(X) <= 1) { W <- Window(X) dont.complain.about(W) do.call...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dist_gaussian_utils.R \name{fit_gaussian_base} \alias{fit_gaussian_base} \title{Generate a Gaussian From a KDE} \usage{ fit_gaussian_base(kde, height, show = FALSE) } \arguments{ \item{kde}{The input kde} \item{height}{The height at which th...
/man/fit_gaussian_base.Rd
no_license
rogerswt/wadeTools
R
false
true
588
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dist_gaussian_utils.R \name{fit_gaussian_base} \alias{fit_gaussian_base} \title{Generate a Gaussian From a KDE} \usage{ fit_gaussian_base(kde, height, show = FALSE) } \arguments{ \item{kde}{The input kde} \item{height}{The height at which th...
makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() {x} setInverse <- function(inverse) {inv <<- inverse} getInverse <- function() {inv} list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) } cacheSolve <- f...
/makeCacheMatrix.R
no_license
dvwoud09/ProgrammingAssignment2
R
false
false
508
r
makeCacheMatrix <- function(x = matrix()){ inv <- NULL set <- function(y){ x <<- y inv <<- NULL } get <- function() {x} setInverse <- function(inverse) {inv <<- inverse} getInverse <- function() {inv} list(set = set, get = get, setInverse = setInverse, getInverse = getInverse) } cacheSolve <- f...
test_that("my_knn function works fine", { expect_is(my_knn_cv(my_gapminder, my_gapminder$continent, 1, 5), "list") })
/tests/testthat/test-my_rnn_cv.R
no_license
atlasyao/happypackage
R
false
false
120
r
test_that("my_knn function works fine", { expect_is(my_knn_cv(my_gapminder, my_gapminder$continent, 1, 5), "list") })
#!/usr/bin/env Rscript ################################################ ################################################ ## REQUIREMENTS ## ################################################ ################################################ ## PCA, HEATMAP AND SCATTERPLOTS FOR SAMPLES IN CO...
/bin/deseq2_qc.r
permissive
nf-core/atacseq
R
false
false
11,701
r
#!/usr/bin/env Rscript ################################################ ################################################ ## REQUIREMENTS ## ################################################ ################################################ ## PCA, HEATMAP AND SCATTERPLOTS FOR SAMPLES IN CO...
#' Tidying methods for anova and AOV objects #' #' Tidies the result of an analysis of variance into an ANOVA table. #' Only a \code{tidy} method is provided, not an \code{augment} or #' \code{glance} method. #' #' @param x An object of class "anova", "aov", or "aovlist" #' @param ... extra arguments (not used) #' #...
/R/anova_tidiers.R
no_license
mcdussault/broom
R
false
false
2,172
r
#' Tidying methods for anova and AOV objects #' #' Tidies the result of an analysis of variance into an ANOVA table. #' Only a \code{tidy} method is provided, not an \code{augment} or #' \code{glance} method. #' #' @param x An object of class "anova", "aov", or "aovlist" #' @param ... extra arguments (not used) #' #...
#' @rdname dimred #' @export dimred_mds_smacof <- function(x, ndim = 2, distance_method) { # `install_packages()` checks whether the required package is installed. # If the session is interactive and the package is not installed, # The user will be prompted about whether it should be installed. install_packages...
/R/dimred_mds_smacof.R
permissive
minghao2016/dyndimred
R
false
false
659
r
#' @rdname dimred #' @export dimred_mds_smacof <- function(x, ndim = 2, distance_method) { # `install_packages()` checks whether the required package is installed. # If the session is interactive and the package is not installed, # The user will be prompted about whether it should be installed. install_packages...
load("D:/瑞丰银行工作/ATM/atm_mth6.rda") M<-atm_mth6[,c(1,2,9:19,21:23,25,29)] M$rent_y_area[M$rent_y_area==0]<-NA M$price[M$price==0]<-NA ############################################# 房租缺失值补平均值 ########################################### fzmean<-mean(M$rent_y_area,na.rm=TRUE) M$rent_y_area[is.na(M$rent_y_area)]<-fzmean cbme...
/pca.R
no_license
xumeng914/R_tools
R
false
false
1,640
r
load("D:/瑞丰银行工作/ATM/atm_mth6.rda") M<-atm_mth6[,c(1,2,9:19,21:23,25,29)] M$rent_y_area[M$rent_y_area==0]<-NA M$price[M$price==0]<-NA ############################################# 房租缺失值补平均值 ########################################### fzmean<-mean(M$rent_y_area,na.rm=TRUE) M$rent_y_area[is.na(M$rent_y_area)]<-fzmean cbme...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sessions_visualize.R \name{sessions_visualize} \alias{sessions_visualize} \title{Visualize sessions length} \usage{ sessions_visualize(streaming_history, mins, as_percentage = TRUE) } \arguments{ \item{streaming_history}{A data.table containi...
/man/sessions_visualize.Rd
no_license
mabuszka/SpotifyViz
R
false
true
651
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sessions_visualize.R \name{sessions_visualize} \alias{sessions_visualize} \title{Visualize sessions length} \usage{ sessions_visualize(streaming_history, mins, as_percentage = TRUE) } \arguments{ \item{streaming_history}{A data.table containi...
library(tidyverse) input = tibble(tiles = read_lines("solutions/day20/input")) # Part I only ---- n_columns = str_count(input$tiles[2]) tiles = input %>% mutate(id = parse_number(tiles)) %>% fill(id, .direction = "down") %>% filter(str_detect(tiles, "\\.|#")) %>% group_by(id) %>% mutate(row = row_num...
/solutions/day20/jurrasic_jigsaw.R
no_license
riinuots/advent2020
R
false
false
1,928
r
library(tidyverse) input = tibble(tiles = read_lines("solutions/day20/input")) # Part I only ---- n_columns = str_count(input$tiles[2]) tiles = input %>% mutate(id = parse_number(tiles)) %>% fill(id, .direction = "down") %>% filter(str_detect(tiles, "\\.|#")) %>% group_by(id) %>% mutate(row = row_num...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alignment.R \name{do_align} \alias{do_align} \title{Align two surface cross cuts using cross correlation} \usage{ do_align(y1, y2, min.overlap = 0.1 * max(length(y1), length(y2))) } \arguments{ \item{y1}{vector of striation marks (assuming eq...
/man/do_align.Rd
no_license
erichare/bulletr
R
false
true
1,056
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/alignment.R \name{do_align} \alias{do_align} \title{Align two surface cross cuts using cross correlation} \usage{ do_align(y1, y2, min.overlap = 0.1 * max(length(y1), length(y2))) } \arguments{ \item{y1}{vector of striation marks (assuming eq...
# Column 1 - Birds x <- data.frame(x = length(unlist(BC_Bird_mean[upper.tri(BC_Bird_mean)])), # BayesComm - Bird y = unlist(BC_Bird_mean[upper.tri(BC_Bird_mean)])) dens <- density(x$y, bw = 0.1) df <- data.frame(x = dens$x, y = dens$y) probs <- c(0,0.05, 0.95, 1) quantiles <- quantile(x$y, probs = pr...
/Plots/All species/Rho/ggplot density test 3.R
no_license
dansmi-hub/JSDM_Inference
R
false
false
14,628
r
# Column 1 - Birds x <- data.frame(x = length(unlist(BC_Bird_mean[upper.tri(BC_Bird_mean)])), # BayesComm - Bird y = unlist(BC_Bird_mean[upper.tri(BC_Bird_mean)])) dens <- density(x$y, bw = 0.1) df <- data.frame(x = dens$x, y = dens$y) probs <- c(0,0.05, 0.95, 1) quantiles <- quantile(x$y, probs = pr...
#' @keywords internal "_PACKAGE" ## usethis namespace: start #' @importFrom magrittr %>% #' @importFrom dplyr select #' @importFrom pracma coth #' @importFrom Rdpack reprompt #' @import gsl ## usethis namespace: end NULL aquifer_predict_interface <- function(aquifer_lst, time_lst) { m3_to_...
/R/aquifer_interface.R
no_license
cran/Raquifer
R
false
false
30,865
r
#' @keywords internal "_PACKAGE" ## usethis namespace: start #' @importFrom magrittr %>% #' @importFrom dplyr select #' @importFrom pracma coth #' @importFrom Rdpack reprompt #' @import gsl ## usethis namespace: end NULL aquifer_predict_interface <- function(aquifer_lst, time_lst) { m3_to_...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{rprintv} \alias{rprintv} \title{Build a character vector or list with variable-based string formatting} \usage{ rprintv(x, ...) } \arguments{ \item{x}{The character vector or list to be transformed} \item{...}{The arguments that specify the set of values to be...
/man/rprintv.Rd
permissive
jcizel/rprintf
R
false
false
861
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{rprintv} \alias{rprintv} \title{Build a character vector or list with variable-based string formatting} \usage{ rprintv(x, ...) } \arguments{ \item{x}{The character vector or list to be transformed} \item{...}{The arguments that specify the set of values to be...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bgvar.R \name{vcov} \alias{vcov} \alias{vcov.bgvar} \title{Extract Variance-covariance Matrix of Bayesian GVAR} \usage{ \method{vcov}{bgvar}(object, ..., quantile = 0.5) } \arguments{ \item{object}{an object of class \code{bgvar}.} \item{......
/fuzzedpackages/BGVAR/man/vcov.Rd
no_license
akhikolla/testpackages
R
false
true
956
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bgvar.R \name{vcov} \alias{vcov} \alias{vcov.bgvar} \title{Extract Variance-covariance Matrix of Bayesian GVAR} \usage{ \method{vcov}{bgvar}(object, ..., quantile = 0.5) } \arguments{ \item{object}{an object of class \code{bgvar}.} \item{......
# load required libraries library(INLA) library(ggplot2) # load data data = read.delim(file = "skijump.txt",header=T) plm <- ggplot() + geom_point(data = as.data.frame(data),aes(x=Year,y=Length)) + geom_line(data = data.frame(Year = data$Year, Length = predict(lm(Length~Year, data= data),data=data$Year)),aes(x=Ye...
/project-2/Exercise3.R
permissive
berild/MA8702
R
false
false
4,883
r
# load required libraries library(INLA) library(ggplot2) # load data data = read.delim(file = "skijump.txt",header=T) plm <- ggplot() + geom_point(data = as.data.frame(data),aes(x=Year,y=Length)) + geom_line(data = data.frame(Year = data$Year, Length = predict(lm(Length~Year, data= data),data=data$Year)),aes(x=Ye...
\name{.to.greek} \alias{.to.greek} \title{ Parse strings containing names of greek letters. } \description{ Convert character vector with greek letters to an expression suitable for plotting greek symbols in titles and labels. } \usage{ .to.greek(instr) } \arguments{ \item{instr}{ a character vecto...
/man/to.greek.Rd
no_license
cran/mcmcplots
R
false
false
566
rd
\name{.to.greek} \alias{.to.greek} \title{ Parse strings containing names of greek letters. } \description{ Convert character vector with greek letters to an expression suitable for plotting greek symbols in titles and labels. } \usage{ .to.greek(instr) } \arguments{ \item{instr}{ a character vecto...
/Aula 01.R
no_license
PedroBSB/IntroducaoR
R
false
false
1,937
r
#create an inversible matrix and allow caching of matrix makeCacheMatrix <- function(x = matrix()) { theCache <- NULL # cache the given argument cacheInverse <- function(solve) { theCache <<- solve } # get the cached value ...
/cachematrix.R
no_license
wmotter/ProgrammingAssignment2
R
false
false
1,709
r
#create an inversible matrix and allow caching of matrix makeCacheMatrix <- function(x = matrix()) { theCache <- NULL # cache the given argument cacheInverse <- function(solve) { theCache <<- solve } # get the cached value ...
library(sjmisc) ### Name: rec ### Title: Recode variables ### Aliases: rec rec_if ### ** Examples data(efc) table(efc$e42dep, useNA = "always") # replace NA with 5 table(rec(efc$e42dep, rec = "1=1;2=2;3=3;4=4;NA=5"), useNA = "always") # recode 1 to 2 into 1 and 3 to 4 into 2 table(rec(efc$e42dep, rec = "1,2=1; 3,...
/data/genthat_extracted_code/sjmisc/examples/rec.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,709
r
library(sjmisc) ### Name: rec ### Title: Recode variables ### Aliases: rec rec_if ### ** Examples data(efc) table(efc$e42dep, useNA = "always") # replace NA with 5 table(rec(efc$e42dep, rec = "1=1;2=2;3=3;4=4;NA=5"), useNA = "always") # recode 1 to 2 into 1 and 3 to 4 into 2 table(rec(efc$e42dep, rec = "1,2=1; 3,...
library(ape) library(ggplot2) library(reshape2) library(plyr) library(dplyr) library(vegan) library(RColorBrewer) library(phyloseq) library(DESeq2) darte_ed_16s <- import_mothur(mothur_shared_file = "stability.opti_mcc.shared", mothur_constaxonomy_file = "stability.cons.taxonomy") metadata <- read.csv("GrinnellMise...
/Grinnell Miseq SOP 083118 manureonlyOTU.R
permissive
Ed-L/Grinnell-MiSeq
R
false
false
19,425
r
library(ape) library(ggplot2) library(reshape2) library(plyr) library(dplyr) library(vegan) library(RColorBrewer) library(phyloseq) library(DESeq2) darte_ed_16s <- import_mothur(mothur_shared_file = "stability.opti_mcc.shared", mothur_constaxonomy_file = "stability.cons.taxonomy") metadata <- read.csv("GrinnellMise...
#' Check Date Time #' #' Checks if x is a datetime (non-missing unnamed POSIXct scalar). #' #' @param x The object to check. #' @param coerce A flag indicating whether to coerce a date to a dttm (using the time zone tzone) and remove names. #' @param tzone A string of the time zone where "" is the current time zone. #...
/R/dttm.R
permissive
cran/checkr
R
false
false
1,652
r
#' Check Date Time #' #' Checks if x is a datetime (non-missing unnamed POSIXct scalar). #' #' @param x The object to check. #' @param coerce A flag indicating whether to coerce a date to a dttm (using the time zone tzone) and remove names. #' @param tzone A string of the time zone where "" is the current time zone. #...
## CORE METADATA # recordId - unique per task # healthCode - unique per participant # phoneInfo - the type of phone coreNames <- c("recordId", "healthCode", "createdOn", "appVersion", "phoneInfo") # Registered versions of the app (anything else is taken as test data) releaseVersions <- c("version 1.0, build 7", "versi...
/R/toLevel1.R
no_license
hunaa/mPowerProcessing
R
false
false
21,867
r
## CORE METADATA # recordId - unique per task # healthCode - unique per participant # phoneInfo - the type of phone coreNames <- c("recordId", "healthCode", "createdOn", "appVersion", "phoneInfo") # Registered versions of the app (anything else is taken as test data) releaseVersions <- c("version 1.0, build 7", "versi...
# Summation of primes # Problem 10 # The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. # Find the sum of all the primes below two million. m <- 2000000 primes <- c(2,3) n <- 5 while (max(primes^2) < m) { if(any(n %% primes[primes < n/2] == 0)) n <- n + 2 else { primes <- c(primes,n) n <- n + 2 } } primes <- ...
/R/problem010.R
no_license
joshlemaitre/euler
R
false
false
668
r
# Summation of primes # Problem 10 # The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. # Find the sum of all the primes below two million. m <- 2000000 primes <- c(2,3) n <- 5 while (max(primes^2) < m) { if(any(n %% primes[primes < n/2] == 0)) n <- n + 2 else { primes <- c(primes,n) n <- n + 2 } } primes <- ...
# create model datasets --------------------------------------------------- train_df <- features_function(train_df_ts) validation_df <- features_function(validation_df_ts) test_df <- features_function(test_df_ts) # write files ------------------------------------------------------------- # write_csv(train_df, "dat...
/R/model_df.R
no_license
phm16/cdm_prediction
R
false
false
2,165
r
# create model datasets --------------------------------------------------- train_df <- features_function(train_df_ts) validation_df <- features_function(validation_df_ts) test_df <- features_function(test_df_ts) # write files ------------------------------------------------------------- # write_csv(train_df, "dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{sim_cat_data} \alias{sim_cat_data} \title{Example simulated data with categorical DV} \format{ A data frame with 401400 rows and 4 variables: \describe{ \item{PID_code}{Subject identifier} \item{IVAR}...
/man/sim_cat_data.Rd
no_license
cran/tidyvpc
R
false
true
604
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{sim_cat_data} \alias{sim_cat_data} \title{Example simulated data with categorical DV} \format{ A data frame with 401400 rows and 4 variables: \describe{ \item{PID_code}{Subject identifier} \item{IVAR}...
library(data.table); setDTthreads(4) library(stringr) #Load annotation ara11 <- fread("grep -v '^#' ~/Documents/datasets/Araport11_GFF3_genes_transposons.201606.gff") setnames(ara11, c("chromosome", "db", "type", "start" ,"end", "score", "strand", "frame", "descript")) ara11[,"gene":=sub(".*ID=(AT.G[0-9]{5}).*", "\\1"...
/ara11.collapse.genes.R
no_license
red-plant/handy_scripts
R
false
false
3,873
r
library(data.table); setDTthreads(4) library(stringr) #Load annotation ara11 <- fread("grep -v '^#' ~/Documents/datasets/Araport11_GFF3_genes_transposons.201606.gff") setnames(ara11, c("chromosome", "db", "type", "start" ,"end", "score", "strand", "frame", "descript")) ara11[,"gene":=sub(".*ID=(AT.G[0-9]{5}).*", "\\1"...
####Scraper 2016_2017 #Scraper 2.0 require(polite) library(polite) library(rvest) library(dplyr) url <- "https://fip-web.azurewebsites.net/PlayerStats.aspx?Type=T&id=21&rg=LO" session <- bow(url, user_agent = "cevaboyz") totalstat2017 <- scrape(session) %>% html_nodes("table.ElencoGiocatori") test <- html_table(t...
/Scraper1617.R
no_license
cevaboyz/basketball_project_rb
R
false
false
1,798
r
####Scraper 2016_2017 #Scraper 2.0 require(polite) library(polite) library(rvest) library(dplyr) url <- "https://fip-web.azurewebsites.net/PlayerStats.aspx?Type=T&id=21&rg=LO" session <- bow(url, user_agent = "cevaboyz") totalstat2017 <- scrape(session) %>% html_nodes("table.ElencoGiocatori") test <- html_table(t...
# Before we can load headers we need some paths defined. They # may be provided by a system environment variable or just # having already been set in the workspace if( !exists( "EMISSPROC_DIR" ) ){ if( Sys.getenv( "EMISSIONSPROC" ) != "" ){ EMISSPROC_DIR <- Sys.getenv( "EMISSIONSPROC" ) } else { ...
/input/gcam-data-system/emissions-processing-code/level1/L114.bcoc_en_R_S_T_Y.R
permissive
bgmishra/gcam-core
R
false
false
9,865
r
# Before we can load headers we need some paths defined. They # may be provided by a system environment variable or just # having already been set in the workspace if( !exists( "EMISSPROC_DIR" ) ){ if( Sys.getenv( "EMISSIONSPROC" ) != "" ){ EMISSPROC_DIR <- Sys.getenv( "EMISSIONSPROC" ) } else { ...
# create json for multigraph multigraphJSON <- function(multi,multinames,dir){ json <- character(length(multi)) for(i in seq_along(multi)){ graph <- multi[[i]] gClass <- class(graph) jsongraph <- "{}" if(gClass == "netCoin"){ if("images" %in% names(graph)) graph$nodes[["image"]] <- images2net(graph$im...
/R/multigraph.R
no_license
roegger/netCoin
R
false
false
1,997
r
# create json for multigraph multigraphJSON <- function(multi,multinames,dir){ json <- character(length(multi)) for(i in seq_along(multi)){ graph <- multi[[i]] gClass <- class(graph) jsongraph <- "{}" if(gClass == "netCoin"){ if("images" %in% names(graph)) graph$nodes[["image"]] <- images2net(graph$im...
# here a comment for a2 is missing # to check if it will be added by the update_autocomment_roclet #' automatice title #' #' @param a1 see method arguments #' @s4methods #' @autocomment setGeneric( name="G1", def=function (a1,a2){ standardGeneric("G1") } ) # here the documented parameter a3 i...
/tests/R6Unit/test_resources/example_packages/SignaturesMinimalWithOutdatedAutoComments/R/source.R
no_license
mamueller/roxygen2
R
false
false
679
r
# here a comment for a2 is missing # to check if it will be added by the update_autocomment_roclet #' automatice title #' #' @param a1 see method arguments #' @s4methods #' @autocomment setGeneric( name="G1", def=function (a1,a2){ standardGeneric("G1") } ) # here the documented parameter a3 i...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{pr.elixhauser.points.30} \alias{pr.elixhauser.points.30} \title{Score points for Elixhauser's comorbidity count} \usage{ pr.elixhauser.points.30(input.frame) } \arguments{ \item{input.frame}{This is a data frame with 5 digit ICD-9-CM codes as XXX.XX This ca...
/man/pr.elixhauser.points.30.Rd
no_license
pbgerrard/comorbidities.icd10
R
false
false
696
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{pr.elixhauser.points.30} \alias{pr.elixhauser.points.30} \title{Score points for Elixhauser's comorbidity count} \usage{ pr.elixhauser.points.30(input.frame) } \arguments{ \item{input.frame}{This is a data frame with 5 digit ICD-9-CM codes as XXX.XX This ca...
library(vcd) library(car) # for Anova() library(MASS) data("Arthritis", package="vcd") arth.polr <- polr(Improved ~ Sex + Treatment + Age, data=Arthritis, Hess=TRUE) summary(arth.polr) Anova(arth.polr) # Type II tests # p-values (ctable <- coef(summary(arth.polr))) # normal approximation p <- 2* pnorm(a...
/ch07/R/arthritis-propodds.R
no_license
friendly/VCDR
R
false
false
5,111
r
library(vcd) library(car) # for Anova() library(MASS) data("Arthritis", package="vcd") arth.polr <- polr(Improved ~ Sex + Treatment + Age, data=Arthritis, Hess=TRUE) summary(arth.polr) Anova(arth.polr) # Type II tests # p-values (ctable <- coef(summary(arth.polr))) # normal approximation p <- 2* pnorm(a...
\name{GrubbsOutlierTest} \alias{GrubbsOutlierTest} \title{ performs an Grubbs test for identifying outliers returns the possible Outliers and the corresponding Pvalues } \usage{GrubbsOutlierTest(X)} \arguments{ \item{X}{(1:n) data, may contain NaN} } \value{Outlier(1:o): possible outliers in X} \de...
/DbtTools/Statistics/man/GrubbsOutlierTest.Rd
no_license
markus-flicke/KD_Projekt_1
R
false
false
498
rd
\name{GrubbsOutlierTest} \alias{GrubbsOutlierTest} \title{ performs an Grubbs test for identifying outliers returns the possible Outliers and the corresponding Pvalues } \usage{GrubbsOutlierTest(X)} \arguments{ \item{X}{(1:n) data, may contain NaN} } \value{Outlier(1:o): possible outliers in X} \de...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{src_sqlite} \alias{src_sqlite} \alias{tbl.src_sqlite} \title{Connect to a sqlite database.} \usage{ src_sqlite(path, create = FALSE) \method{tbl}{src_sqlite}(src, from, ...) } \arguments{ \item{path}{Path to SQLite database} \item{create}{if \code{FALSE},...
/man/src_sqlite.Rd
no_license
Errrriikkkk/dplyr
R
false
false
5,840
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{src_sqlite} \alias{src_sqlite} \alias{tbl.src_sqlite} \title{Connect to a sqlite database.} \usage{ src_sqlite(path, create = FALSE) \method{tbl}{src_sqlite}(src, from, ...) } \arguments{ \item{path}{Path to SQLite database} \item{create}{if \code{FALSE},...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "humandevel") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLe...
/models/openml_humandevel/classification_binaryClass/cb452f1edcdb756c40254d0c711d9910/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
687
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "humandevel") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLe...
library(rJava) library(xlsxjars) library(xlsx) library(gplots) data <- read.xlsx("WY20170823#19.xlsx",1,encoding="UTF-8") row.names(data) <- data[,1] #将第一列设为行标题 data <- data[,-1] df <- as.matrix(scale(data)) #归一化,矩阵化 #df <- as.matrix(data) #heatmap.2(df,scale = "none",col = bluered(100), trace = "none",density.info =...
/heatmap2.r
no_license
qihaowei89/my_rscript
R
false
false
1,424
r
library(rJava) library(xlsxjars) library(xlsx) library(gplots) data <- read.xlsx("WY20170823#19.xlsx",1,encoding="UTF-8") row.names(data) <- data[,1] #将第一列设为行标题 data <- data[,-1] df <- as.matrix(scale(data)) #归一化,矩阵化 #df <- as.matrix(data) #heatmap.2(df,scale = "none",col = bluered(100), trace = "none",density.info =...
# R practicals # read data and compute correlation and p-value # read data from KeyWestAnnualMeanTemperature.Rdata load(file = "/home/nelson/Documents/CMEECoursework/Week3/MyRCoursework/Data/KeyWestAnnualMeanTemperature.RData") # correlation correlation <- cor(ats[,2][1:99],ats[,2][2:100]) # function of compute rand...
/Week3/Code/TAutoCorr.R
no_license
NelsonZhouwenhua/CMEECoursework
R
false
false
766
r
# R practicals # read data and compute correlation and p-value # read data from KeyWestAnnualMeanTemperature.Rdata load(file = "/home/nelson/Documents/CMEECoursework/Week3/MyRCoursework/Data/KeyWestAnnualMeanTemperature.RData") # correlation correlation <- cor(ats[,2][1:99],ats[,2][2:100]) # function of compute rand...
ssa.engine.exact = function( p, res ) { res <- with (p, { on.exit( browser()) # to debug dir.create( outdir, recursive=TRUE, showWarnings=FALSE ) tio = tout = 0 while(res$simtime <= t.end ) { # NOTE: using .Internal is not good syntax but this gives a major perfance boost > 40% ! prop...
/model.ssa/src/_Rfunctions/ssa.engine.exact.r
no_license
AMCOOK/ecomod
R
false
false
2,984
r
ssa.engine.exact = function( p, res ) { res <- with (p, { on.exit( browser()) # to debug dir.create( outdir, recursive=TRUE, showWarnings=FALSE ) tio = tout = 0 while(res$simtime <= t.end ) { # NOTE: using .Internal is not good syntax but this gives a major perfance boost > 40% ! prop...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportToJson.R \name{exportProcedureToJson} \alias{exportProcedureToJson} \title{exportProcedureToJson} \usage{ exportProcedureToJson(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema, outputPath = getwd(), vocabDatabaseSchema =...
/man/exportProcedureToJson.Rd
permissive
julianflowers/Achilles
R
false
true
1,500
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/exportToJson.R \name{exportProcedureToJson} \alias{exportProcedureToJson} \title{exportProcedureToJson} \usage{ exportProcedureToJson(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema, outputPath = getwd(), vocabDatabaseSchema =...
############################################################################### # parametros canales = c('C3','C4','CZ','F3','F4','F7','F8','FP1','FP2','FZ','O1','O2', 'P3','P4','PZ','ROG','T3','T4','T5','T6','EMG','LOG') ver_avance = T no_repetir = F filtrar = F usar_loess = T ############...
/scripts_old/scripts/multipsr03_paralelizado.R
no_license
EncisoAlvaJC/TESIS
R
false
false
4,281
r
############################################################################### # parametros canales = c('C3','C4','CZ','F3','F4','F7','F8','FP1','FP2','FZ','O1','O2', 'P3','P4','PZ','ROG','T3','T4','T5','T6','EMG','LOG') ver_avance = T no_repetir = F filtrar = F usar_loess = T ############...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spm.r \name{plotlag} \alias{plotlag} \title{plotlag plots the effect of a lag between two variables} \usage{ plotlag( x, driver = "catch", react = "cpue", lag = 0, interval = "year", filename = "", resol = 200, fnt = 7 ) } \ar...
/man/plotlag.Rd
no_license
haddonm/MQMF
R
false
true
2,121
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spm.r \name{plotlag} \alias{plotlag} \title{plotlag plots the effect of a lag between two variables} \usage{ plotlag( x, driver = "catch", react = "cpue", lag = 0, interval = "year", filename = "", resol = 200, fnt = 7 ) } \ar...
\alias{gtkTreeViewGetReorderable} \name{gtkTreeViewGetReorderable} \title{gtkTreeViewGetReorderable} \description{Retrieves whether the user can reorder the tree via drag-and-drop. See \code{\link{gtkTreeViewSetReorderable}}.} \usage{gtkTreeViewGetReorderable(object)} \arguments{\item{\verb{object}}{a \code{\link{GtkTr...
/RGtk2/man/gtkTreeViewGetReorderable.Rd
no_license
lawremi/RGtk2
R
false
false
462
rd
\alias{gtkTreeViewGetReorderable} \name{gtkTreeViewGetReorderable} \title{gtkTreeViewGetReorderable} \description{Retrieves whether the user can reorder the tree via drag-and-drop. See \code{\link{gtkTreeViewSetReorderable}}.} \usage{gtkTreeViewGetReorderable(object)} \arguments{\item{\verb{object}}{a \code{\link{GtkTr...
# # Neural Network experiments for: # Credit Classifier # # Citations; # Normalize() function from book by Brett Lantz. Some other code snippets may have been borrowed from this book as well: # Lantz, Brett. Machine Learning with R: Learn How to Use R to Apply Powerful Machine Learning Methods and Gain an Insig...
/assignment1/jhughes63/code/Letters-NNET.R
no_license
aten2001/cs7641-5
R
false
false
4,131
r
# # Neural Network experiments for: # Credit Classifier # # Citations; # Normalize() function from book by Brett Lantz. Some other code snippets may have been borrowed from this book as well: # Lantz, Brett. Machine Learning with R: Learn How to Use R to Apply Powerful Machine Learning Methods and Gain an Insig...
View(bankloan1) install.packages('caTools',dependencies = T) library(caTools) set.seed(88) split<-sample.split(bankloan$default,SplitRatio = 0.75) #get training and test data dresstrain <- subset(bankloan1, split == TRUE) dresstest <- subset(bankloan1, split == FALSE) model <- glm (default ~ ., data =...
/Bankloan_default.R
no_license
Devrajhp/R-code
R
false
false
1,040
r
View(bankloan1) install.packages('caTools',dependencies = T) library(caTools) set.seed(88) split<-sample.split(bankloan$default,SplitRatio = 0.75) #get training and test data dresstrain <- subset(bankloan1, split == TRUE) dresstest <- subset(bankloan1, split == FALSE) model <- glm (default ~ ., data =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diff_utils.R \name{ch2_subset} \alias{ch2_subset} \title{Subset for Paired Two-Channel ExpressionSet} \usage{ ch2_subset(eset, prev_anal) } \arguments{ \item{eset}{Annotated ExpressionSet. Created by \code{load_raw}.} \item{prev_anal}{One it...
/man/ch2_subset.Rd
no_license
alexvpickering/crossmeta
R
false
true
773
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diff_utils.R \name{ch2_subset} \alias{ch2_subset} \title{Subset for Paired Two-Channel ExpressionSet} \usage{ ch2_subset(eset, prev_anal) } \arguments{ \item{eset}{Annotated ExpressionSet. Created by \code{load_raw}.} \item{prev_anal}{One it...
context("SES") library(psychTestR) app <- AppTester$new("apps/SES_DE") app$expect_ui_text("Bitte gib Deine ID ein Weiter") app$set_inputs(p_id = "abcde") app$click_next() app$expect_ui_text("Welchen höchsten Bildungsabschluss hat deine Mutter? Keinen Schulabschluss Haupt- oder Realschulabschluss Berufsausbildung Fac...
/tests/testthat/test-SES_3-2_4-2_DE.R
permissive
fmhoeger/psyquest
R
false
false
4,083
r
context("SES") library(psychTestR) app <- AppTester$new("apps/SES_DE") app$expect_ui_text("Bitte gib Deine ID ein Weiter") app$set_inputs(p_id = "abcde") app$click_next() app$expect_ui_text("Welchen höchsten Bildungsabschluss hat deine Mutter? Keinen Schulabschluss Haupt- oder Realschulabschluss Berufsausbildung Fac...
# set working directory where input files are stored setwd("c:\\users\\pdhingra\\Documents\\Coursera\\Exploratory-Data-Analysis\\Project\\") # Q5 - How have emissions from motor vehicle sources changed from 1999-2008 in Baltimore City? # Read Data NEI <- readRDS("summarySCC_PM25.rds") SRC <- readRDS("Source_Cla...
/plot5.R
no_license
prashdesh/Exploratory-Data-Analysis-Project-2
R
false
false
913
r
# set working directory where input files are stored setwd("c:\\users\\pdhingra\\Documents\\Coursera\\Exploratory-Data-Analysis\\Project\\") # Q5 - How have emissions from motor vehicle sources changed from 1999-2008 in Baltimore City? # Read Data NEI <- readRDS("summarySCC_PM25.rds") SRC <- readRDS("Source_Cla...
## program: word_frequency_comp.r ## task: compare frequencies of word by global warming or climate change ## project: climate tweets ## author: jsc ## date: 2017-05-17 # Program setup library(tidyverse) library(tidytext) library(scales) library(ggthemes) # set up variable for file name to ...
/word_frequency_comp.r
no_license
jscarlton/Climate-tweets
R
false
false
1,457
r
## program: word_frequency_comp.r ## task: compare frequencies of word by global warming or climate change ## project: climate tweets ## author: jsc ## date: 2017-05-17 # Program setup library(tidyverse) library(tidytext) library(scales) library(ggthemes) # set up variable for file name to ...
# ##################################################################################### # R package factorstochvol by # Gregor Kastner Copyright (C) 2016-2020 # Darjus Hosszejni Copyright (C) 2019-2020 # # This file is part of the R package factorstochvol: Bayesian Estimation # of (Sparse) Latent Factor S...
/fuzzedpackages/factorstochvol/R/zzz.R
no_license
akhikolla/testpackages
R
false
false
1,461
r
# ##################################################################################### # R package factorstochvol by # Gregor Kastner Copyright (C) 2016-2020 # Darjus Hosszejni Copyright (C) 2019-2020 # # This file is part of the R package factorstochvol: Bayesian Estimation # of (Sparse) Latent Factor S...
#generate missing values based on MMSE/Addenbrooke's scores (translating the missingness structure from clinical data) require(readr) lookuptable <- read_csv("BHI-missing-data/lookuptable.csv", col_types = cols(Addenbrook = col_number(), MMSE = col_number(), `Midpoint rounded down` = col_number())) colnames(lookupta...
/step 2 generate list of datasets with missing values.R
no_license
JonathanBailiss/BHI-missing-data
R
false
false
1,636
r
#generate missing values based on MMSE/Addenbrooke's scores (translating the missingness structure from clinical data) require(readr) lookuptable <- read_csv("BHI-missing-data/lookuptable.csv", col_types = cols(Addenbrook = col_number(), MMSE = col_number(), `Midpoint rounded down` = col_number())) colnames(lookupta...
#Load package to get and unzip data library(data.table); library(reshape2) fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileURL, destfile = "./data.zip") unzip(zipfile = "data.zip") #Read in activity labels activity_labels <- read.delim("./UCI HAR ...
/run_analysis.R
no_license
kaushiknyn/run_analysis
R
false
false
3,155
r
#Load package to get and unzip data library(data.table); library(reshape2) fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileURL, destfile = "./data.zip") unzip(zipfile = "data.zip") #Read in activity labels activity_labels <- read.delim("./UCI HAR ...
\name{sample.split} \alias{sample.split} \title{Split Data into Test and Train Set} \description{Split data from vector Y into two sets in predefined ratio while preserving relative ratios of different labels in Y. Used to split the data used during classification into train and test subsets. } \usage{ sample.sp...
/man/sample.split.Rd
no_license
cran/caTools
R
false
false
3,431
rd
\name{sample.split} \alias{sample.split} \title{Split Data into Test and Train Set} \description{Split data from vector Y into two sets in predefined ratio while preserving relative ratios of different labels in Y. Used to split the data used during classification into train and test subsets. } \usage{ sample.sp...
# # run_Analysis.R # orgdir <- getwd() file_url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(file_url,destfile="./Dataset.zip") unzip(zipfile="./Dataset.zip") data_dir <- "UCI HAR Dataset" # Read train data x_train <- read.table(paste(data_dir, "/train/X...
/run_Analysis.R
no_license
briskwalking53/GettingandCleaningData
R
false
false
2,605
r
# # run_Analysis.R # orgdir <- getwd() file_url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(file_url,destfile="./Dataset.zip") unzip(zipfile="./Dataset.zip") data_dir <- "UCI HAR Dataset" # Read train data x_train <- read.table(paste(data_dir, "/train/X...
library(ggplot2) library(scales) this_base <- "fig07-20_blood-level-data-variation-in-ratio" my_data <- data.frame(time = as.Date(c("1990-11-01", "1991-06-01", "1991-12-01", "1992-05-01", "1993-06-01", "1994-07-01", "1995-06-01", "1996-07-01", "1997-01-01"...
/B_analysts_sources_github/jennybc/r-graph-catalog/fig07-20_blood-level-data-variation-in-ratio.R
no_license
Irbis3/crantasticScrapper
R
false
false
1,256
r
library(ggplot2) library(scales) this_base <- "fig07-20_blood-level-data-variation-in-ratio" my_data <- data.frame(time = as.Date(c("1990-11-01", "1991-06-01", "1991-12-01", "1992-05-01", "1993-06-01", "1994-07-01", "1995-06-01", "1996-07-01", "1997-01-01"...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/_check/test_code/ins/r_codes/totPOP_poverty_ins_lt65_2003.R
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
2,612
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.R \name{libs} \alias{libs} \title{load libraries} \usage{ libs(...) } \arguments{ \item{...}{library names as string} } \value{ \itemize{ \item \code{\link[=libs]{libs()}} } } \description{ \code{libs} allows loading multipl...
/man/libs.Rd
no_license
MATA62N/umx
R
false
true
974
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/misc_and_utility.R \name{libs} \alias{libs} \title{load libraries} \usage{ libs(...) } \arguments{ \item{...}{library names as string} } \value{ \itemize{ \item \code{\link[=libs]{libs()}} } } \description{ \code{libs} allows loading multipl...
install.packages("vars") install.packages("shiny") install.packages("tidyverse") install.packages("mapproj") install.packages("maps") install.packages("devtools") devtools::install_github("https://github.com/ineswilms/bigtime", ref = "development")
/install.R
no_license
enweg/SnT_BigTime
R
false
false
249
r
install.packages("vars") install.packages("shiny") install.packages("tidyverse") install.packages("mapproj") install.packages("maps") install.packages("devtools") devtools::install_github("https://github.com/ineswilms/bigtime", ref = "development")
#' Extract data from a gridded dataset #' #' @description This function extracts data from a gridded dataset based on given coordinates. #' @param grid a RasterBrick or RasterStack object or a path to a NetCDF file. #' @param varname a character string specifying the name of the variable to extract in NetCDF file. #' @...
/R/dataFromGrid.R
no_license
cran/agroclim
R
false
false
4,668
r
#' Extract data from a gridded dataset #' #' @description This function extracts data from a gridded dataset based on given coordinates. #' @param grid a RasterBrick or RasterStack object or a path to a NetCDF file. #' @param varname a character string specifying the name of the variable to extract in NetCDF file. #' @...
# Original code used to find results in manuscript. Only difference compared # to findDesis that this function also obtains composite results are obtained. findDesSubmission <- function(K=default.K, m=default.m, J=default.J, rho.vec=default.cor, ...
/R/MOconts-functions.R
permissive
martinlaw/moms
R
false
false
78,607
r
# Original code used to find results in manuscript. Only difference compared # to findDesis that this function also obtains composite results are obtained. findDesSubmission <- function(K=default.K, m=default.m, J=default.J, rho.vec=default.cor, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{imports_delete_projects} \alias{imports_delete_projects} \title{Remove a JobTypes::Import from a project} \usage{ imports_delete_projects(id, project_id) } \arguments{ \item{id}{integer required. The ID of the resourc...
/man/imports_delete_projects.Rd
no_license
ajchin/civis-r
R
false
true
477
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{imports_delete_projects} \alias{imports_delete_projects} \title{Remove a JobTypes::Import from a project} \usage{ imports_delete_projects(id, project_id) } \arguments{ \item{id}{integer required. The ID of the resourc...
\encoding{UTF-8} \name{get_movie_comments} \alias{get_movie_comments} \title{ 获取豆瓣电影的短评} \description{获取豆瓣电影和电视剧的短评.} \usage{get_movie_comments(movieid,n=100,verbose=TRUE,...)} \arguments{ \item{movieid}{豆瓣电影和电视剧的ID,由数字组成的字符串,可通过每部电影或电视剧的豆瓣主页查询.} \item{n}{获取短评的数量,默认n=100.} \item{verbose}{当\code{verbos...
/Rdouban/man/get_movie_comments.Rd
no_license
illy/Rdouban
R
false
false
1,270
rd
\encoding{UTF-8} \name{get_movie_comments} \alias{get_movie_comments} \title{ 获取豆瓣电影的短评} \description{获取豆瓣电影和电视剧的短评.} \usage{get_movie_comments(movieid,n=100,verbose=TRUE,...)} \arguments{ \item{movieid}{豆瓣电影和电视剧的ID,由数字组成的字符串,可通过每部电影或电视剧的豆瓣主页查询.} \item{n}{获取短评的数量,默认n=100.} \item{verbose}{当\code{verbos...
## import data set for analysis data_power <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_power$Date <- as.Date(data_power$Date, format="%d/%m/%Y") ## Subset the data set data...
/Course Project 1/plot4.R
no_license
keithtan87/Coursera_Exploratory_Data_Analysis
R
false
false
1,295
r
## import data set for analysis data_power <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_power$Date <- as.Date(data_power$Date, format="%d/%m/%Y") ## Subset the data set data...
library(here) library(rvest) library(tidyverse) source(here('data-get', 'fbref', 'utils.R')) summaries = read_csv(here('data-get', 'fbref', 'processed', 'match-urls.csv'), col_types = cols(.default = 'c')) # restricting to just this data summaries = summaries %>% filter(szn >= '2014-2015') twoleggedties = summaries...
/data-get/fbref/03_scrape-games.R
permissive
ryanvmenezes/tiepredict
R
false
false
3,183
r
library(here) library(rvest) library(tidyverse) source(here('data-get', 'fbref', 'utils.R')) summaries = read_csv(here('data-get', 'fbref', 'processed', 'match-urls.csv'), col_types = cols(.default = 'c')) # restricting to just this data summaries = summaries %>% filter(szn >= '2014-2015') twoleggedties = summaries...
#packages library(foreign) library(sp) library(rgdal) library(sm) library(shapefiles) library(rgeos) #r at home cant open these costa_rica_sp_0 <- readOGR("CRI_adm/",layer="CRI_adm0") costa_rica_sp_1 <- readOGR("CRI_adm/",layer="CRI_adm1") costa_rica_sp_2 <- readOGR("CRI_adm/",layer="CRI_adm2") save(costa_rica_sp_0,c...
/spatial.r
no_license
RyanNaughton/infrastructure
R
false
false
5,088
r
#packages library(foreign) library(sp) library(rgdal) library(sm) library(shapefiles) library(rgeos) #r at home cant open these costa_rica_sp_0 <- readOGR("CRI_adm/",layer="CRI_adm0") costa_rica_sp_1 <- readOGR("CRI_adm/",layer="CRI_adm1") costa_rica_sp_2 <- readOGR("CRI_adm/",layer="CRI_adm2") save(costa_rica_sp_0,c...
1 # 45.MakeKeys 2 # 3 # source("45.MakeKeys.r",echo=TRUE) 4 # 5 rm(list=ls()) 6 7 #library(knitr) 8 library(gdata) 9 library(rms) 10 library(gdata) 11 library(gmodels) 12 library(RMySQL) 13 library(Hmisc) 14 15 load("../Data/mihow.RDa...
/45.MakeKeysLN.r
no_license
IRRDDv45/Scripts
R
false
false
3,938
r
1 # 45.MakeKeys 2 # 3 # source("45.MakeKeys.r",echo=TRUE) 4 # 5 rm(list=ls()) 6 7 #library(knitr) 8 library(gdata) 9 library(rms) 10 library(gdata) 11 library(gmodels) 12 library(RMySQL) 13 library(Hmisc) 14 15 load("../Data/mihow.RDa...
library(tlmec) ### Name: UTIdata ### Title: Data set for Unstructured Treatment Interruption Study ### Aliases: UTIdata ### Keywords: datasets ### ** Examples ## Not run: ##D ##D ## load data ##D data(UTIdata) ##D ##D ## Sort the data by Patient and visit ##D o <- order(UTIdata$Patid, UTIdata$Fup) ##D UTIdata ...
/data/genthat_extracted_code/tlmec/examples/UTIdata.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,211
r
library(tlmec) ### Name: UTIdata ### Title: Data set for Unstructured Treatment Interruption Study ### Aliases: UTIdata ### Keywords: datasets ### ** Examples ## Not run: ##D ##D ## load data ##D data(UTIdata) ##D ##D ## Sort the data by Patient and visit ##D o <- order(UTIdata$Patid, UTIdata$Fup) ##D UTIdata ...
"elimination" <- function(n) { d <- duplication(n) return(solve(t(d) %*% d) %*% t(d)) }
/R/elimination.R
no_license
cran/rggm
R
false
false
93
r
"elimination" <- function(n) { d <- duplication(n) return(solve(t(d) %*% d) %*% t(d)) }
\name{plot_heatmap} \alias{plot_heatmap} \title{Create an ecologically-organized heatmap using ggplot2 graphics} \usage{ plot_heatmap(physeq, method = "NMDS", distance = "bray", sample.label = NULL, taxa.label = NULL, low = "#000033", high = "#66CCFF", na.value = "black", trans = log_trans(4), max.label = 250, ...
/man/plot_heatmap.Rd
no_license
xinchoubiology/phyloseq
R
false
false
10,835
rd
\name{plot_heatmap} \alias{plot_heatmap} \title{Create an ecologically-organized heatmap using ggplot2 graphics} \usage{ plot_heatmap(physeq, method = "NMDS", distance = "bray", sample.label = NULL, taxa.label = NULL, low = "#000033", high = "#66CCFF", na.value = "black", trans = log_trans(4), max.label = 250, ...
#Load packages #CTRL + D 1行削除 #CTRL + ALT + ↑ or ↓ カーソル複製  library(tidyverse) library(lubridate) library(gnnlab) library(magick) library(showtext) library(readxl) library(patchwork) #plots color=viridis::viridis(6) font_add_google("Noto Sans JP","notosans-jp") font_add_google("Noto Sans","notosans") showtext_auto() #...
/午後001.R
no_license
kabeyamam/2021R-practice
R
false
false
4,718
r
#Load packages #CTRL + D 1行削除 #CTRL + ALT + ↑ or ↓ カーソル複製  library(tidyverse) library(lubridate) library(gnnlab) library(magick) library(showtext) library(readxl) library(patchwork) #plots color=viridis::viridis(6) font_add_google("Noto Sans JP","notosans-jp") font_add_google("Noto Sans","notosans") showtext_auto() #...
library(dplyr) load("/home/shared/data/assessment/chlorophyll/chla_SeaWiFS_1997_2001.Rdata") # object is loaded as "chla" p1.chla<- tbl_df(chla) load("/home/shared/data/assessment/chlorophyll/chla_MODISA_2002_2007.Rdata") p2.chla<- tbl_df(chla) load("/home/shared/data/assessment/chlorophyll/chla_MODISA_2008_2013.Rda...
/inst/old/rt_plots/chlorophyll_summary_plots.R
no_license
AustralianAntarcticDivision/aceecostats
R
false
false
7,821
r
library(dplyr) load("/home/shared/data/assessment/chlorophyll/chla_SeaWiFS_1997_2001.Rdata") # object is loaded as "chla" p1.chla<- tbl_df(chla) load("/home/shared/data/assessment/chlorophyll/chla_MODISA_2002_2007.Rdata") p2.chla<- tbl_df(chla) load("/home/shared/data/assessment/chlorophyll/chla_MODISA_2008_2013.Rda...
# Chad R Bhatti # 01.02.2017 # aggregate.R # Read (or reload) the .RData object as an R data frame sample.df <- readRDS('C:\\Users\\Chad R Bhatti\\Dropbox\\Northwestern_MSPA\\Predict_410_R\\Data\\ames_sample.Rdata'); # Check it str(sample.df) # Subset to our training data set train.df <- subset(sample.df,...
/Week 3/aggregate.R
no_license
zeelat7/RegressionMultivariateAnalysis
R
false
false
1,198
r
# Chad R Bhatti # 01.02.2017 # aggregate.R # Read (or reload) the .RData object as an R data frame sample.df <- readRDS('C:\\Users\\Chad R Bhatti\\Dropbox\\Northwestern_MSPA\\Predict_410_R\\Data\\ames_sample.Rdata'); # Check it str(sample.df) # Subset to our training data set train.df <- subset(sample.df,...
#' @name SurveyDate #' #' @docType data #' #' @title Dataset containing survey details for each subject, for each year #' #' @description Each row represents a survey that a subject completed (or didn't complete). #' It can be very helpful when restructuring the NLS investigator extracts into a #' longitudinal dataset...
/R/survey-date-doc.R
no_license
okeep/NlsyLinks
R
false
false
3,501
r
#' @name SurveyDate #' #' @docType data #' #' @title Dataset containing survey details for each subject, for each year #' #' @description Each row represents a survey that a subject completed (or didn't complete). #' It can be very helpful when restructuring the NLS investigator extracts into a #' longitudinal dataset...
library(shiny) library(shinyIncubator) library(car) library(tools) library(foreign) library(ggplot2) library(gridExtra) library(R.utils) library(agricolae) shinyServer(function(input, output) { # making a local copy of a few commonly used dataset mtcars <- mtcars mtcars$vs <- as.factor(mtcars$vs) mtcars$am <- a...
/contrib/agronomy/server.R
no_license
marcionicolau/metis-web
R
false
false
1,310
r
library(shiny) library(shinyIncubator) library(car) library(tools) library(foreign) library(ggplot2) library(gridExtra) library(R.utils) library(agricolae) shinyServer(function(input, output) { # making a local copy of a few commonly used dataset mtcars <- mtcars mtcars$vs <- as.factor(mtcars$vs) mtcars$am <- a...
# Read data subdata <- read.csv("subdata.csv", header = TRUE) # convert dates subdata$DateTime <- as.POSIXct(subdata$DateTime) # plot data plot(subdata$Global_active_power~subdata$DateTime, ylab="Global Active Power (kilowatts)", type="l", xlab="") # saving to png file dev.copy(png, file="plot2.png...
/Exploratory_Analysis_4/Week1_Project/plot2.R
no_license
rajashreebaradur/datasciencecoursera
R
false
false
355
r
# Read data subdata <- read.csv("subdata.csv", header = TRUE) # convert dates subdata$DateTime <- as.POSIXct(subdata$DateTime) # plot data plot(subdata$Global_active_power~subdata$DateTime, ylab="Global Active Power (kilowatts)", type="l", xlab="") # saving to png file dev.copy(png, file="plot2.png...
# model validation # <- {wd}/model-input.rds # <- {wd}/model-calib.rds # -> {wd}/model-valid.rds start <- lubridate::now(tzone = "US/Eastern") cat("starting model-valid: ", as.character(start, tz = "US/Eastern"), "\n", sep = "") suppressPackageStartupMessages(library(AUC)) suppressPackageStartupMessages(library(lme4)...
/r/model-valid.R
no_license
bletcher/sheds-bto-model
R
false
false
2,331
r
# model validation # <- {wd}/model-input.rds # <- {wd}/model-calib.rds # -> {wd}/model-valid.rds start <- lubridate::now(tzone = "US/Eastern") cat("starting model-valid: ", as.character(start, tz = "US/Eastern"), "\n", sep = "") suppressPackageStartupMessages(library(AUC)) suppressPackageStartupMessages(library(lme4)...
# tidying functions for the survival package # http://cran.r-project.org/web/packages/survival/index.html # In particular, tidies objects of the following classes: # - aareg # - cch # - coxph # - pyears # - survexp # - survfit # - survreg #' Tidiers for aareg objects #' #' These tidy the coefficients o...
/R/survival_tidiers.R
no_license
mcdussault/broom
R
false
false
20,654
r
# tidying functions for the survival package # http://cran.r-project.org/web/packages/survival/index.html # In particular, tidies objects of the following classes: # - aareg # - cch # - coxph # - pyears # - survexp # - survfit # - survreg #' Tidiers for aareg objects #' #' These tidy the coefficients o...
library(anytime) library(tscount) library(SAPP) library(lubridate) library(fitdistrplus) source('~/SEPP_Fcn.R') load('~/wiki_de_tstp.RData') wiki_de_tstp <- unique(wiki_de_tstp) de_iet_hrs <- (diff(wiki_de_tstp)/3600) de_days <- cumsum(de_iet_hrs)/24 DE = 'Europe/Berlin' delta = 1/24/12 p = 150 c = 0 x = ((1:p)-0.5...
/wiki_de_exp_Rds.R
permissive
tw398/NetworkGrowth
R
false
false
2,037
r
library(anytime) library(tscount) library(SAPP) library(lubridate) library(fitdistrplus) source('~/SEPP_Fcn.R') load('~/wiki_de_tstp.RData') wiki_de_tstp <- unique(wiki_de_tstp) de_iet_hrs <- (diff(wiki_de_tstp)/3600) de_days <- cumsum(de_iet_hrs)/24 DE = 'Europe/Berlin' delta = 1/24/12 p = 150 c = 0 x = ((1:p)-0.5...
library(tidyverse) psmc_result<-function(file,i.iteration=25, mu=1e-8, s=100, g=1) { X<-scan(file=file,what="",sep="\n",quiet=TRUE) START<-grep("^RD",X) END<-grep("^//",X) X<-X[START[i.iteration+1]:END[i.iteration+1]] TR<-grep("^TR",X,value=TRUE) RS<-grep("^RS",X,value=TRUE) w...
/scripts/r_scripts/plot_msout_psmc.R
no_license
ulrikhorn/PSMC_migration
R
false
false
1,504
r
library(tidyverse) psmc_result<-function(file,i.iteration=25, mu=1e-8, s=100, g=1) { X<-scan(file=file,what="",sep="\n",quiet=TRUE) START<-grep("^RD",X) END<-grep("^//",X) X<-X[START[i.iteration+1]:END[i.iteration+1]] TR<-grep("^TR",X,value=TRUE) RS<-grep("^RS",X,value=TRUE) w...
\name{checkValidity} \alias{checkValidity} \title{This function checks the supplied biopax model for validity.} \usage{ checkValidity(biopax) } \arguments{ \item{biopax}{A biopax model} } \value{ logical. Returns TRUE is the biopax model is valid Biopax Level 2, or FALSE otherwise. } \description{ This function check...
/man/checkValidity.Rd
no_license
nirupamaBenis/rBiopaxParser
R
false
false
481
rd
\name{checkValidity} \alias{checkValidity} \title{This function checks the supplied biopax model for validity.} \usage{ checkValidity(biopax) } \arguments{ \item{biopax}{A biopax model} } \value{ logical. Returns TRUE is the biopax model is valid Biopax Level 2, or FALSE otherwise. } \description{ This function check...
#These steps will help you combine the outputs #from your spatial interpolation with your income data. # Convert your interpolation into a raster and map it: tmaptools::palette_explorer() #Tool for selecting pallettes r <- raster(r.m) sufaceMap <- tm_shape(r.m) + tm_raster(n=5,palette = "YlOrBr", title...
/combiningCensus.R
no_license
juliakcarr/Geog418FinalProject
R
false
false
919
r
#These steps will help you combine the outputs #from your spatial interpolation with your income data. # Convert your interpolation into a raster and map it: tmaptools::palette_explorer() #Tool for selecting pallettes r <- raster(r.m) sufaceMap <- tm_shape(r.m) + tm_raster(n=5,palette = "YlOrBr", title...
\encoding{UTF-8} \name{hacide} \alias{hacide.train} \alias{hacide.test} \title{Half circle filled data} \description{ Simulated training and test set for imbalanced binary classification. The rare class may be described as a half circle depleted filled with the prevalent class, which is normally distributed and has ell...
/man/hacide.Rd
no_license
ramnathv/ROSE
R
false
false
2,564
rd
\encoding{UTF-8} \name{hacide} \alias{hacide.train} \alias{hacide.test} \title{Half circle filled data} \description{ Simulated training and test set for imbalanced binary classification. The rare class may be described as a half circle depleted filled with the prevalent class, which is normally distributed and has ell...
##equivalent for systems of equations LrTestJoint <- function(mod.restricted, mod.unrestricted){ # library(nonnest2) library(gtools) library(systemfit) my.lrtest <- lrtest(mod.restricted, mod.unrestricted) print(my.lrtest) } ##compute myself log likelihood ratio test from errors (see systemfit package ...
/model estimations/likelihood_ratio_test.R
permissive
MacroFinanceHub/commodity-realized-volatility-forecasting
R
false
false
1,988
r
##equivalent for systems of equations LrTestJoint <- function(mod.restricted, mod.unrestricted){ # library(nonnest2) library(gtools) library(systemfit) my.lrtest <- lrtest(mod.restricted, mod.unrestricted) print(my.lrtest) } ##compute myself log likelihood ratio test from errors (see systemfit package ...
Company_Data <- read.csv("G:\\ExcelR\\Assignments\\Decision Tree\\company Data\\Company_Data.csv") data1<- Company_Data str(Company_Data) mean(Company_Data$Sales) median(Company_Data$Sales) hist(Company_Data$Sales) box<-boxplot(Company_Data$Sales) str(box) summary(Company_Data$Sales) Company_...
/random forest assignment -12/company_new.R
no_license
honeyjayachandran/RANDOM-FOREST
R
false
false
1,250
r
Company_Data <- read.csv("G:\\ExcelR\\Assignments\\Decision Tree\\company Data\\Company_Data.csv") data1<- Company_Data str(Company_Data) mean(Company_Data$Sales) median(Company_Data$Sales) hist(Company_Data$Sales) box<-boxplot(Company_Data$Sales) str(box) summary(Company_Data$Sales) Company_...
prompt_memuse_factory <- function() { size <- 0 unit <- "MiB" function(...) { current <- memuse::Sys.procmem()[[1]] size <<- memuse::mu.size(current) unit <<- memuse::mu.unit(current) cat( grey()( paste0(round(size, 1), " ", unit, " ") ) ) } } #' Prompt that shows ...
/R/prompt_memuse.R
permissive
cstepper/promptr
R
false
false
462
r
prompt_memuse_factory <- function() { size <- 0 unit <- "MiB" function(...) { current <- memuse::Sys.procmem()[[1]] size <<- memuse::mu.size(current) unit <<- memuse::mu.unit(current) cat( grey()( paste0(round(size, 1), " ", unit, " ") ) ) } } #' Prompt that shows ...
# https://cran.rstudio.com/web/packages/nhdR/index.html library(nhdR) library(FedData) library(sf) library(dplyr) library(ggplot2) states <- st_as_sf(maps::map("state", plot = FALSE, fill = TRUE)) # nhdny <- st_read("NHD_H_New_York_State_Shape/Shape/", "NHDArea") # # https://geodata.lib.utexas.edu/catalog/cugir-0077...
/nhd_analysis.R
no_license
jjborrelli/adklakes
R
false
false
32,650
r
# https://cran.rstudio.com/web/packages/nhdR/index.html library(nhdR) library(FedData) library(sf) library(dplyr) library(ggplot2) states <- st_as_sf(maps::map("state", plot = FALSE, fill = TRUE)) # nhdny <- st_read("NHD_H_New_York_State_Shape/Shape/", "NHDArea") # # https://geodata.lib.utexas.edu/catalog/cugir-0077...
#' @title Projection of 3-simplex points #' #' @export #' @description This function projects 3-simplex points to a 2D triangle #' @param points Simplex points to be projected plotSimplex <- function(points){ df.points <- data.frame(L = points[ ,1], rope = points[ ,2], R = points[ ,3], d =...
/rNPBST/R/plot.R
no_license
JacintoCC/TFG
R
false
false
2,204
r
#' @title Projection of 3-simplex points #' #' @export #' @description This function projects 3-simplex points to a 2D triangle #' @param points Simplex points to be projected plotSimplex <- function(points){ df.points <- data.frame(L = points[ ,1], rope = points[ ,2], R = points[ ,3], d =...
284f8fded00522f836dea10829c2fd28 gttt_2_2_0010_3x3_torus_b.qdimacs 1181 3148
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Diptarama-Jordan-Shinohara/Generalized-Tic-Tac-Toe/gttt_2_2_0010_3x3_torus_b/gttt_2_2_0010_3x3_torus_b.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
76
r
284f8fded00522f836dea10829c2fd28 gttt_2_2_0010_3x3_torus_b.qdimacs 1181 3148