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
testlist <- list(A = structure(c(1.38997190089718e-309, 3.81575932257023e-236, 3.81571458063891e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613126055-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
226
r
testlist <- list(A = structure(c(1.38997190089718e-309, 3.81575932257023e-236, 3.81571458063891e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
data_path <- "../server_get/twitterdata" rter_id <- read.csv(paste(data_path, "tweets", "612121494232145920", sep = "/"))$id # 609418768578674688 # 628783838190305280 rter <- c() for(id in rter_id) { rter <- rbind(rter, rters[rters$id == id,]) } rter_id <- c(fusion$id, rev(intersect(rter_id, dir(paste(data_path,...
/visualization_app/shinyApp/test.R
no_license
latuji/fusion_capstone_project
R
false
false
1,026
r
data_path <- "../server_get/twitterdata" rter_id <- read.csv(paste(data_path, "tweets", "612121494232145920", sep = "/"))$id # 609418768578674688 # 628783838190305280 rter <- c() for(id in rter_id) { rter <- rbind(rter, rters[rters$id == id,]) } rter_id <- c(fusion$id, rev(intersect(rter_id, dir(paste(data_path,...
"concareaExampleKola" <- function(x, y, z, zname = deparse(substitute(z)), caname = deparse(substitute(z)), borders="bordersKola", logx = FALSE, ifjit = FALSE, ifrev = FALSE, ngrid = 100, ncp = 0, xlim = NULL, xcoord = "Easting", ycoord = "Northing", ifbw = FALSE, x.logfinetick=c(2,5,10),y.logfinetick=c(2,5,10))...
/R/concareaExampleKola.R
no_license
cran/StatDA
R
false
false
5,982
r
"concareaExampleKola" <- function(x, y, z, zname = deparse(substitute(z)), caname = deparse(substitute(z)), borders="bordersKola", logx = FALSE, ifjit = FALSE, ifrev = FALSE, ngrid = 100, ncp = 0, xlim = NULL, xcoord = "Easting", ycoord = "Northing", ifbw = FALSE, x.logfinetick=c(2,5,10),y.logfinetick=c(2,5,10))...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spdep-tidiers.R \name{glance.sarlm} \alias{glance.sarlm} \title{Glance at a(n) spatialreg object} \usage{ \method{glance}{sarlm}(x, ...) } \arguments{ \item{x}{An object returned from \code{\link[spatialreg:ML_models]{spatialreg::lagsarlm()}}...
/man/glance.sarlm.Rd
permissive
tidymodels/broom
R
false
true
3,764
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spdep-tidiers.R \name{glance.sarlm} \alias{glance.sarlm} \title{Glance at a(n) spatialreg object} \usage{ \method{glance}{sarlm}(x, ...) } \arguments{ \item{x}{An object returned from \code{\link[spatialreg:ML_models]{spatialreg::lagsarlm()}}...
\name{decomma} \alias{decomma} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ decomma(x) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{...
/man/decomma.Rd
no_license
Libardo1/eeptools
R
false
false
1,271
rd
\name{decomma} \alias{decomma} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ decomma(x) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{x}{...
# # U s e f u l f o r M a n u a l D e b u g g i n g # # NOTE: When running locally, make sure to turn off the setwd call at the start of each routine. # and make sure that the file name location is one that you want. # # Running full plot for splined texture # generateSplinedPlotTexture(...
/R/soil-diagram-generator.R
no_license
pascal082/aqpplot
R
false
false
19,116
r
# # U s e f u l f o r M a n u a l D e b u g g i n g # # NOTE: When running locally, make sure to turn off the setwd call at the start of each routine. # and make sure that the file name location is one that you want. # # Running full plot for splined texture # generateSplinedPlotTexture(...
# October 26, 2018 #' Class \code{ExpSurrogate} #' #' Exponential surrogate for 0/1 loss. #' #' @name ExpSurrogate-class #' #' @keywords internal #' #' @include L_Surrogate.R setClass(Class = "ExpSurrogate", contains = "Surrogate") ########## ## METHODS ########## #' Methods Available for Objects of C...
/R/L_ExpSurrogate.R
no_license
cran/DynTxRegime
R
false
false
1,030
r
# October 26, 2018 #' Class \code{ExpSurrogate} #' #' Exponential surrogate for 0/1 loss. #' #' @name ExpSurrogate-class #' #' @keywords internal #' #' @include L_Surrogate.R setClass(Class = "ExpSurrogate", contains = "Surrogate") ########## ## METHODS ########## #' Methods Available for Objects of C...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_window.R \name{network_window} \alias{network_window} \title{Create network window zones} \usage{ network_window(adjacency_matrix, dist_matrix, type, cluster_max) } \arguments{ \item{adjacency_matrix}{A boolean matrix, with element (\...
/man/network_window.Rd
permissive
uribo/ssrn
R
false
true
735
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_window.R \name{network_window} \alias{network_window} \title{Create network window zones} \usage{ network_window(adjacency_matrix, dist_matrix, type, cluster_max) } \arguments{ \item{adjacency_matrix}{A boolean matrix, with element (\...
library(ape) testtree <- read.tree("9045_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9045_0_unrooted.txt")
/codeml_files/newick_trees_processed/9045_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("9045_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9045_0_unrooted.txt")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/location.R \name{pull_location} \alias{pull_location} \title{Read an HDX location} \usage{ pull_location(identifier = NULL, include_datasets = FALSE, configuration = NULL, ...) } \arguments{ \item{identifier}{Character location uuid} \item...
/man/pull_location.Rd
permissive
bmpacifique/rhdx
R
false
true
586
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/location.R \name{pull_location} \alias{pull_location} \title{Read an HDX location} \usage{ pull_location(identifier = NULL, include_datasets = FALSE, configuration = NULL, ...) } \arguments{ \item{identifier}{Character location uuid} \item...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shape_measures.R \name{LER} \alias{LER} \title{Life Expectancy Ratio} \usage{ LER(x, nx, ex, harmonized) } \description{ Life Expectancy Ratio } \keyword{internal}
/man/LER.Rd
no_license
jschoeley/pash
R
false
true
242
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shape_measures.R \name{LER} \alias{LER} \title{Life Expectancy Ratio} \usage{ LER(x, nx, ex, harmonized) } \description{ Life Expectancy Ratio } \keyword{internal}
### Use mvabund and model selection to determine which wood traits best explain variation in OTU abundances #- Author: Marissa Lee #- Type: modified project code #- Test data source: https://github.com/Zanne-Lab/woodEndophytes # -------------------------------------------------------------------# # A bit of intro int...
/code/modelselection_mvabund.R
no_license
neiljun/tutorials_communityAnalyses
R
false
false
9,915
r
### Use mvabund and model selection to determine which wood traits best explain variation in OTU abundances #- Author: Marissa Lee #- Type: modified project code #- Test data source: https://github.com/Zanne-Lab/woodEndophytes # -------------------------------------------------------------------# # A bit of intro int...
# Authors: Clémentine Decamps, UGA # clementine.decamps@univ-grenoble-alpes.fr # #--------------------------------------------- #'detect_zero_value #' #' This function detects genes with more than threshold percent of expression values under the min value. #' NA expression values are not considered. #' #'@param control...
/R/ranking.R
no_license
privefl/penda
R
false
false
5,027
r
# Authors: Clémentine Decamps, UGA # clementine.decamps@univ-grenoble-alpes.fr # #--------------------------------------------- #'detect_zero_value #' #' This function detects genes with more than threshold percent of expression values under the min value. #' NA expression values are not considered. #' #'@param control...
ccdf$maxowe = apply(ccdf[, c('Amount_owe1', 'Amount_owe2', 'Amount_owe3', 'Amount_owe4', 'Amount_owe5', 'Amount_owe6')], 1, max) ccdf$maxloan = apply(ccdf[, c('Loan_amount1', 'Loan_amount2', 'Loan_amount3', 'Loan_amount4'...
/temp2.R
no_license
pobch/R_NCB
R
false
false
951
r
ccdf$maxowe = apply(ccdf[, c('Amount_owe1', 'Amount_owe2', 'Amount_owe3', 'Amount_owe4', 'Amount_owe5', 'Amount_owe6')], 1, max) ccdf$maxloan = apply(ccdf[, c('Loan_amount1', 'Loan_amount2', 'Loan_amount3', 'Loan_amount4'...
library(shiny) shinyUI( pageWithSidebar( headerPanel('Predict Age of Abalone'), sidebarPanel( img(src="AbaloneMeatByJackLikins.jpg",height=175,width=245), a("Documentation", href="doc.html", target="_blank"), h3('Inputs'), radioButtons("infantNonInfan...
/ui.R
no_license
calvins/DataProducts_AbaloneApp
R
false
false
1,050
r
library(shiny) shinyUI( pageWithSidebar( headerPanel('Predict Age of Abalone'), sidebarPanel( img(src="AbaloneMeatByJackLikins.jpg",height=175,width=245), a("Documentation", href="doc.html", target="_blank"), h3('Inputs'), radioButtons("infantNonInfan...
####################################################################################### ### Purpose: Estimate Sex-ratio and crosswalks for GBD2019 ####################################################################################### bundle_id <- 159 acause <-"mental_unipolar_mdd" covariates <- c("cv_recall_1yr", "c...
/gbd_2019/nonfatal_code/mental_unipolar_mdd/mr_brt_crosswalks/crosswalking_mdd_cleaned.R
no_license
Nermin-Ghith/ihme-modeling
R
false
false
16,489
r
####################################################################################### ### Purpose: Estimate Sex-ratio and crosswalks for GBD2019 ####################################################################################### bundle_id <- 159 acause <-"mental_unipolar_mdd" covariates <- c("cv_recall_1yr", "c...
\name{dist.Horseshoe} \alias{dhs} \alias{rhs} \title{Horseshoe Distribution} \description{ This is the density function and random generation from the horseshoe distribution. } \usage{ dhs(x, lambda, tau, sigma, log=FALSE) rhs(n, lambda, tau, sigma) } \arguments{ \item{n}{This is the number of draws ...
/man/dist.Horseshoe.Rd
permissive
benmarwick/LaplacesDemon
R
false
false
4,234
rd
\name{dist.Horseshoe} \alias{dhs} \alias{rhs} \title{Horseshoe Distribution} \description{ This is the density function and random generation from the horseshoe distribution. } \usage{ dhs(x, lambda, tau, sigma, log=FALSE) rhs(n, lambda, tau, sigma) } \arguments{ \item{n}{This is the number of draws ...
library(testthat) library(mjcstats) test_package("mjcstats")
/tests/test-all.R
no_license
drmjc/mjcstats
R
false
false
62
r
library(testthat) library(mjcstats) test_package("mjcstats")
#'eucli_dist #' #'A function to compute adapted eucliddean distance on differential methylation profile. This function is called by dmDistance and dmDistance_translocate functions. #' #'@param m1 a dmProfile to be compared with another one. #'@param m2 the other one dmProfile. #' #'@example examples/example-dmRandomD...
/R/eucli_dist.R
no_license
pterzian/dmprocr
R
false
false
776
r
#'eucli_dist #' #'A function to compute adapted eucliddean distance on differential methylation profile. This function is called by dmDistance and dmDistance_translocate functions. #' #'@param m1 a dmProfile to be compared with another one. #'@param m2 the other one dmProfile. #' #'@example examples/example-dmRandomD...
\name{pcovsum} \alias{pcovsum} \title{Print covariate summary Latex} \usage{ pcovsum(data, covs, maincov = NULL, numobs = NULL, TeX = F) } \arguments{ \item{data}{dataframe containing data} \item{covs}{character vector with the names of columns to include in table} \item{maincov}{covariate to stratify t...
/man/pcovsum.Rd
no_license
cran/reportRx
R
false
false
685
rd
\name{pcovsum} \alias{pcovsum} \title{Print covariate summary Latex} \usage{ pcovsum(data, covs, maincov = NULL, numobs = NULL, TeX = F) } \arguments{ \item{data}{dataframe containing data} \item{covs}{character vector with the names of columns to include in table} \item{maincov}{covariate to stratify t...
test_dbGetInfo_connection <- function() { db <- dbConnect(SQLite(), dbname = ":memory:") on.exit(dbDisconnect(db)) info <- dbGetInfo(db) checkEquals(6L, length(info)) checkEquals(":memory:", info[["dbname"]]) checkEquals("3.7.9", info[["serverVersion"]]) checkEquals(integer(0), info[["rsId"...
/R-library/RSQLite/UnitTests/dbGetInfo_test.R
permissive
jmswenson/src-from-orona
R
false
false
1,082
r
test_dbGetInfo_connection <- function() { db <- dbConnect(SQLite(), dbname = ":memory:") on.exit(dbDisconnect(db)) info <- dbGetInfo(db) checkEquals(6L, length(info)) checkEquals(":memory:", info[["dbname"]]) checkEquals("3.7.9", info[["serverVersion"]]) checkEquals(integer(0), info[["rsId"...
# test fou_tmb.cpp compiled on-the-fly require(testthat) require(TMB) compile("fou_tmb.cpp", PKG_CXXFLAGS = paste0("-I", system.file("include", package = "realPSD"))) dyn.load(dynlib("fou_tmb")) model <- "fou_tmb" # helper function: calculate the psd in R fou_psd_r <- function(f, phi) { psd <- abs(f)^(1-2*phi[1]) / ...
/tests/dontrun/old/test-fou.R
no_license
mlysy/realPSD
R
false
false
1,945
r
# test fou_tmb.cpp compiled on-the-fly require(testthat) require(TMB) compile("fou_tmb.cpp", PKG_CXXFLAGS = paste0("-I", system.file("include", package = "realPSD"))) dyn.load(dynlib("fou_tmb")) model <- "fou_tmb" # helper function: calculate the psd in R fou_psd_r <- function(f, phi) { psd <- abs(f)^(1-2*phi[1]) / ...
if(!is.factor(train$datetime)) train$datetime = factor(train$datetime) r2 = rep(0,length(columns)); fstatistic = rep(0,length(columns)) indexes = sample(1:length(train$count), size=length(train$count)/2) indexes.v = sample(setdiff(1:length(train$count), indexes)) x = train[columns] y = log(train$count) x.v = x[inde...
/scripts/linearModel.R
no_license
snate/bike_sharing_demand
R
false
false
1,297
r
if(!is.factor(train$datetime)) train$datetime = factor(train$datetime) r2 = rep(0,length(columns)); fstatistic = rep(0,length(columns)) indexes = sample(1:length(train$count), size=length(train$count)/2) indexes.v = sample(setdiff(1:length(train$count), indexes)) x = train[columns] y = log(train$count) x.v = x[inde...
set.seed(2) source("ABMASE-function.R") logistic <- function(x){ exp(x)/(1+exp(x)) } # settings p <- 30 # maximum number of covariates N <- 10000 # population size n <- 400 # sample size # covariates rho <- 0.2 C <- matrix(NA,p,p) for(j in 1:p){ for(k in 1:p){ C[k,j] <- rho^(abs(j-k)) } } D <- diag( rep(...
/sim-logistic.R
no_license
sshonosuke/ABMASE
R
false
false
2,867
r
set.seed(2) source("ABMASE-function.R") logistic <- function(x){ exp(x)/(1+exp(x)) } # settings p <- 30 # maximum number of covariates N <- 10000 # population size n <- 400 # sample size # covariates rho <- 0.2 C <- matrix(NA,p,p) for(j in 1:p){ for(k in 1:p){ C[k,j] <- rho^(abs(j-k)) } } D <- diag( rep(...
# May 2 2017 ## Goal: Power check for multiple regression (NOT MV) # selected x1 SCSADFI outcome, as germaine demand in the revision rm(list=ls()) # clear workspace; # ls() # list objects in the workspace cat("\014") # same as ctrl-L options(max.print=3000) # default 1000, and rstudio set at 5000 options(warn=1) # ...
/src/2 power_f2_SCSADFI.R
permissive
jakemkc/ewas_sample_size
R
false
false
25,563
r
# May 2 2017 ## Goal: Power check for multiple regression (NOT MV) # selected x1 SCSADFI outcome, as germaine demand in the revision rm(list=ls()) # clear workspace; # ls() # list objects in the workspace cat("\014") # same as ctrl-L options(max.print=3000) # default 1000, and rstudio set at 5000 options(warn=1) # ...
## Reuse code to get the data for the plots source("GetData.R") powsub <- getdata() ## Plot 1 - Global Active Power histogram png(filename="plot1.png", width=480, height=480) hist(powsub$Global_active_power, breaks=12, col="red", main="Global Active Power", xlab="Global Active Power (kilowatts)", ylab="Frequen...
/plotAll.R
no_license
mauricesingleton/ExData_Plotting1
R
false
false
1,714
r
## Reuse code to get the data for the plots source("GetData.R") powsub <- getdata() ## Plot 1 - Global Active Power histogram png(filename="plot1.png", width=480, height=480) hist(powsub$Global_active_power, breaks=12, col="red", main="Global Active Power", xlab="Global Active Power (kilowatts)", ylab="Frequen...
setwd("D:/workspace/R") score <- read.csv("score.csv", header = TRUE) # test1 test2 final # 1 3 2 1 # 2 5 4 5 # 3 1 2 5 # 4 2 9 10 # 5 10 10 10 # 6 9 8 9 head(score) str(score) index_v <- rep(FALSE, 11) index_v[2:5] <- TRUE # FALSE TRUE TRUE T...
/5.which.R
no_license
dgjung0220/R_Study
R
false
false
1,049
r
setwd("D:/workspace/R") score <- read.csv("score.csv", header = TRUE) # test1 test2 final # 1 3 2 1 # 2 5 4 5 # 3 1 2 5 # 4 2 9 10 # 5 10 10 10 # 6 9 8 9 head(score) str(score) index_v <- rep(FALSE, 11) index_v[2:5] <- TRUE # FALSE TRUE TRUE T...
test_that("dssSetOption and dssGetOption work", { x <- dssSetOption(list(stringsAsFactors = FALSE), datasources = opals) expect_true(x[[1]]) expect_false(dssGetOption('stringsAsFactors', datasources = opals)[[1]][[1]]) })
/tests/testthat/test-dssSetOption.R
no_license
IulianD/dsSwissKnifeClient
R
false
false
229
r
test_that("dssSetOption and dssGetOption work", { x <- dssSetOption(list(stringsAsFactors = FALSE), datasources = opals) expect_true(x[[1]]) expect_false(dssGetOption('stringsAsFactors', datasources = opals)[[1]][[1]]) })
rm(list = ls()) library(forecast) library(readxl) library(MASS) library(randomForest) library(dplyr) library(DMwR) library(gdata) pacman::p_load("caret","partykit","ROCR","lift","rpart","e1071","glmnet","MASS","xgboost") credit_data<- read_excel(file.choose()) application_data <-read_excel(file.choose...
/Credit Prediction.R
no_license
liansiulokman/Credit-Prediction
R
false
false
6,170
r
rm(list = ls()) library(forecast) library(readxl) library(MASS) library(randomForest) library(dplyr) library(DMwR) library(gdata) pacman::p_load("caret","partykit","ROCR","lift","rpart","e1071","glmnet","MASS","xgboost") credit_data<- read_excel(file.choose()) application_data <-read_excel(file.choose...
#=============================================================================== # 2021-06-16 -- MPIDR dataviz # Dataviz challenge -- Altmetric top-100 2019 # Ilya Kashnitsky, ilya.kashnitsky@gmail.com #=============================================================================== # Altmetric is a company that tracks...
/day3/dataviz-challenge-altmetric.R
permissive
rashey/dataviz-mpidr
R
false
false
1,574
r
#=============================================================================== # 2021-06-16 -- MPIDR dataviz # Dataviz challenge -- Altmetric top-100 2019 # Ilya Kashnitsky, ilya.kashnitsky@gmail.com #=============================================================================== # Altmetric is a company that tracks...
### fe msim <- m_dist(fe_mlsn) gsim <- g_dist(d$FeM3) m_values <- msim[[1]] max_mlsn <- msim[[2]] g_values <- gsim[[1]] max_gss <- gsim[[2]] # choose max and a pretty max that divides for scale real.max <- max(c(max_mlsn, max_gss)) pretty.max <- max(pretty(c(0, max(c(max_mlsn, max_gss))))) # plot with sim data p <...
/r/plots/exact_fe_plot.R
no_license
micahwoods/gss
R
false
false
1,952
r
### fe msim <- m_dist(fe_mlsn) gsim <- g_dist(d$FeM3) m_values <- msim[[1]] max_mlsn <- msim[[2]] g_values <- gsim[[1]] max_gss <- gsim[[2]] # choose max and a pretty max that divides for scale real.max <- max(c(max_mlsn, max_gss)) pretty.max <- max(pretty(c(0, max(c(max_mlsn, max_gss))))) # plot with sim data p <...
setwd("~/R-Code") projectData = read.table("Sea Ice and Temperature Data.txt", sep = ",", header = T) #reads our data into the global environment attach(projectData) boxplot(Temperature.Anomalies.based.on.20th.century.averages...C., names = c("Temperature.Anomalies.based.on.20th.century.averages...C.")) boxplot(Mini...
/Boxplot.R
no_license
JohnLi002/ProbabilityAndStatisticsProject
R
false
false
441
r
setwd("~/R-Code") projectData = read.table("Sea Ice and Temperature Data.txt", sep = ",", header = T) #reads our data into the global environment attach(projectData) boxplot(Temperature.Anomalies.based.on.20th.century.averages...C., names = c("Temperature.Anomalies.based.on.20th.century.averages...C.")) boxplot(Mini...
# slajd 1 curve(dnorm,-5,5,main="Density of N(0,1) distribution", ylab="Probability",lwd=2,col="blue") lines(c(0,0),c(-1,1),lty=2) curve(dexp,0.0001,5,main="Density of Exp(1) distribution", ylab="Probability",lwd=2,col="red") f <- function(x){ 0.5*dnorm(x)+0.5*dnorm(x,4,1) } curve(f,-5,9, main...
/magisterskie/5_rok/1_semestr/Seminarium/slajdy.R
no_license
sommermarta/studia
R
false
false
8,551
r
# slajd 1 curve(dnorm,-5,5,main="Density of N(0,1) distribution", ylab="Probability",lwd=2,col="blue") lines(c(0,0),c(-1,1),lty=2) curve(dexp,0.0001,5,main="Density of Exp(1) distribution", ylab="Probability",lwd=2,col="red") f <- function(x){ 0.5*dnorm(x)+0.5*dnorm(x,4,1) } curve(f,-5,9, main...
#***************************************************************8 #FROM HERE #HAS TO HAVE THE MARKDF from before. install.packages("tm") library(jsonlite) library(wordcloud) library(tm) MARKDF <-fromJSON("test.JSON", flatten = TRUE) myCorpus <- Corpus(VectorSource(MARKDF$text)) myCorpus <- tm_map(myCorpus, ...
/WordCloudMaker.R
no_license
calebdre/culture-fit
R
false
false
1,885
r
#***************************************************************8 #FROM HERE #HAS TO HAVE THE MARKDF from before. install.packages("tm") library(jsonlite) library(wordcloud) library(tm) MARKDF <-fromJSON("test.JSON", flatten = TRUE) myCorpus <- Corpus(VectorSource(MARKDF$text)) myCorpus <- tm_map(myCorpus, ...
# JAGS script Scape_Fraction.R # Copyright (C) 2015 Rafael S. de Souza # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License version 3 as published by #the Free Software Foundation. #This program is distributed in the hope that it will be usef...
/scripts/old/Scape_Fraction_Logistic.R
no_license
RafaelSdeSouza/Beta_regression
R
false
false
2,296
r
# JAGS script Scape_Fraction.R # Copyright (C) 2015 Rafael S. de Souza # #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License version 3 as published by #the Free Software Foundation. #This program is distributed in the hope that it will be usef...
## caching the inverse of a matrix ## Matrix inversion may be some benefit to caching the inverse of a matrix ## rather than compute it repeatedly makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULl } get <- ...
/cachematrix.R
no_license
YurouWang/ProgrammingAssignment2
R
false
false
1,195
r
## caching the inverse of a matrix ## Matrix inversion may be some benefit to caching the inverse of a matrix ## rather than compute it repeatedly makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y){ x <<- y inv <<- NULl } get <- ...
library(TxDb.Hsapiens.UCSC.hg19.knownGene) library(SummarizedExperiment) library(BSgenome.Hsapiens.UCSC.hg19) library(fitCons.UCSC.hg19) library(phastCons100way.UCSC.hg19) library(caret) library(ROCR) library(pROC) library(m6ALogisticModel) source("/home/kunqi/m7G/method/class1.R") source("/home/kunqi/m7G/method/class2...
/web_script/eif3a_exon_prob.R
no_license
yuxuanwu17/m6a_ML
R
false
false
2,647
r
library(TxDb.Hsapiens.UCSC.hg19.knownGene) library(SummarizedExperiment) library(BSgenome.Hsapiens.UCSC.hg19) library(fitCons.UCSC.hg19) library(phastCons100way.UCSC.hg19) library(caret) library(ROCR) library(pROC) library(m6ALogisticModel) source("/home/kunqi/m7G/method/class1.R") source("/home/kunqi/m7G/method/class2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_gdrive.R \name{init_gdrive} \alias{init_gdrive} \title{Create folder structure on goodle drive} \usage{ init_gdrive(gdrive_path = NULL, folders = c("literature_search/", "screening/", ...
/man/init_gdrive.Rd
permissive
nthun/metamanager
R
false
true
1,045
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_gdrive.R \name{init_gdrive} \alias{init_gdrive} \title{Create folder structure on goodle drive} \usage{ init_gdrive(gdrive_path = NULL, folders = c("literature_search/", "screening/", ...
# Load all your packages before calling make(). # workflow library(drake) library(rmarkdown) # data processing library(tidyverse) library(lubridate) library(stackr) # bayes library(rstan) library(rstanarm) library(tidybayes)
/R/packages.R
no_license
odaniel1/bayes-binary-timeseries
R
false
false
228
r
# Load all your packages before calling make(). # workflow library(drake) library(rmarkdown) # data processing library(tidyverse) library(lubridate) library(stackr) # bayes library(rstan) library(rstanarm) library(tidybayes)
library(tidyverse) library(glue) sim <- readRDS("./data/simulation_v5_week11_posWaivers.rds") sim$teams %>% select(teamId, name, imageUrl, week.stats) %>% unnest(week.stats) %>% filter(week==.week) %>% inner_join(sim$teams_sim, by="teamId") %>% select(-simulation) %>% rename(sim=simulation.org) %>% ...
/R/_draft/new_roster_comparation_chart.R
no_license
GiulSposito/DudesFantasyFootball
R
false
false
2,699
r
library(tidyverse) library(glue) sim <- readRDS("./data/simulation_v5_week11_posWaivers.rds") sim$teams %>% select(teamId, name, imageUrl, week.stats) %>% unnest(week.stats) %>% filter(week==.week) %>% inner_join(sim$teams_sim, by="teamId") %>% select(-simulation) %>% rename(sim=simulation.org) %>% ...
library(roxygen2) roxygen2::roxygenize("R/")
/Rsrc/roxygenize.R
no_license
LarryJacobson/gmacs
R
false
false
45
r
library(roxygen2) roxygen2::roxygenize("R/")
#' Jackknife_Variance #' @description This function takes a dataset with stacked multiple imputation and a model fit and applies jackknife to estimate the covariance matrix accounting for imputation uncertainty. #' #' @param fit object with corresponding vcov method (e.g. glm, coxph, survreg, etc.) from fitting to t...
/R/Jackknife_Variance.R
no_license
lbeesleyBIOSTAT/StackImpute
R
false
false
3,522
r
#' Jackknife_Variance #' @description This function takes a dataset with stacked multiple imputation and a model fit and applies jackknife to estimate the covariance matrix accounting for imputation uncertainty. #' #' @param fit object with corresponding vcov method (e.g. glm, coxph, survreg, etc.) from fitting to t...
#!/usr/bin/env Rscript ## A class that contains bam file information ## Copyright 2014, Sahil Seth ## licence: MIT ## sahil.seth@me.com ## A few functions to supplement those already in this package. ## URL: github.com/sahilseth/rfun ## URL: docs.flowr.space #### ----------------------- ## -------- incase of issues sw...
/rfun
no_license
yzharold/rfun
R
false
false
3,618
#!/usr/bin/env Rscript ## A class that contains bam file information ## Copyright 2014, Sahil Seth ## licence: MIT ## sahil.seth@me.com ## A few functions to supplement those already in this package. ## URL: github.com/sahilseth/rfun ## URL: docs.flowr.space #### ----------------------- ## -------- incase of issues sw...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{poly_md_dset} \alias{poly_md_dset} \title{Uncorrelated Multidimensional Polytomous Data Set} \format{ An object of class \code{data.frame} with 301 rows and 18 columns. } \usage{ data(poly_md_dset) } \description{ ...
/man/poly_md_dset.Rd
no_license
fwijayanto/autoRasch
R
false
true
470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{poly_md_dset} \alias{poly_md_dset} \title{Uncorrelated Multidimensional Polytomous Data Set} \format{ An object of class \code{data.frame} with 301 rows and 18 columns. } \usage{ data(poly_md_dset) } \description{ ...
library(shiny) shinyServer(function(input, output){ output$selected_var <- renderText({ paste("Izbrana država je", input$var, "!") }) output$drzava <- renderUI( selectInput("var", label = "Izberite državo", choices = c("Slovenia", "Latvia", "Bulgaria"...
/shiny/server.R
permissive
nezahabjan/APPR-2017-18
R
false
false
2,232
r
library(shiny) shinyServer(function(input, output){ output$selected_var <- renderText({ paste("Izbrana država je", input$var, "!") }) output$drzava <- renderUI( selectInput("var", label = "Izberite državo", choices = c("Slovenia", "Latvia", "Bulgaria"...
rm(list=ls()) library(ggplot2) library(stringr) # for str_to_title() library(gridExtra) setwd("C:/Users/Michel/Documents/eukaryotes/rscripts") source('euk_functions.R') f <- create.df.species() df.soilData <- getSoilData(f,colnames = MYCOLNAMES) my.color = 'deepskyblue4' createBoxplot <- function(df,colname,head...
/rscripts/soildata_boxplots.R
no_license
OldMortality/eukaryotes
R
false
false
2,752
r
rm(list=ls()) library(ggplot2) library(stringr) # for str_to_title() library(gridExtra) setwd("C:/Users/Michel/Documents/eukaryotes/rscripts") source('euk_functions.R') f <- create.df.species() df.soilData <- getSoilData(f,colnames = MYCOLNAMES) my.color = 'deepskyblue4' createBoxplot <- function(df,colname,head...
\name{cuEventQuery} \alias{cuEventQuery} \title{Queries an event's status} \description{ Query the status of all device work preceding the most recent call to \code{cuEventRecord}() (in the appropriate compute streams, as specified by the arguments to \code{cuEventRecord}()).} \usage{cuEventQuery(hEvent)} \arguments{...
/man/cuEventQuery.Rd
no_license
chen0031/RCUDA
R
false
false
627
rd
\name{cuEventQuery} \alias{cuEventQuery} \title{Queries an event's status} \description{ Query the status of all device work preceding the most recent call to \code{cuEventRecord}() (in the appropriate compute streams, as specified by the arguments to \code{cuEventRecord}()).} \usage{cuEventQuery(hEvent)} \arguments{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stan_biglm.R, R/stan_biglm.fit.R \name{stan_biglm} \alias{stan_biglm} \alias{stan_biglm.fit} \title{Bayesian regularized linear but big models via Stan} \usage{ stan_biglm(biglm, xbar, ybar, s_y, ..., prior = R2(stop("'location' must be spe...
/man/stan_biglm.Rd
no_license
fartist/rstanarm
R
false
true
5,680
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stan_biglm.R, R/stan_biglm.fit.R \name{stan_biglm} \alias{stan_biglm} \alias{stan_biglm.fit} \title{Bayesian regularized linear but big models via Stan} \usage{ stan_biglm(biglm, xbar, ybar, s_y, ..., prior = R2(stop("'location' must be spe...
#' @title Current Probability of Failure for LV UGB #' @description This function calculates the current #' annual probability of failure for LV UGB #' The function is a cubic curve that is based on #' the first three terms of the Taylor series for an #' exponential function. For more information about the #' probabili...
/R/pof_lv_ugb.R
permissive
scoultersdcoe/CNAIM
R
false
false
8,737
r
#' @title Current Probability of Failure for LV UGB #' @description This function calculates the current #' annual probability of failure for LV UGB #' The function is a cubic curve that is based on #' the first three terms of the Taylor series for an #' exponential function. For more information about the #' probabili...
##Data Science - Johns Hopkins University ##coursera ## course 3 - R ##week3 #checking factor behavior cat("\014") yesno <- sample(c("yes","no"), size=10, replace=TRUE) yesno yesnofac = factor(yesno, levels=c("yes","no")) as.numeric(yesnofac) yesnofac
/Johns Hopkins Data Science/course 3/c3-w3-factor.R
no_license
tmPolla/R
R
false
false
267
r
##Data Science - Johns Hopkins University ##coursera ## course 3 - R ##week3 #checking factor behavior cat("\014") yesno <- sample(c("yes","no"), size=10, replace=TRUE) yesno yesnofac = factor(yesno, levels=c("yes","no")) as.numeric(yesnofac) yesnofac
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/i.R \name{i_point} \alias{i_point} \title{Identify Points} \usage{ i_point(spdata) } \description{ Identify Points } \keyword{internal}
/man/i_point.Rd
no_license
wintercmin/quickmapr
R
false
false
223
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/i.R \name{i_point} \alias{i_point} \title{Identify Points} \usage{ i_point(spdata) } \description{ Identify Points } \keyword{internal}
#' @title Compute the integration constant for distance density functions #' #' @description Using numerical integration, this function computes #' the area under a distance function between two limits (\code{w.lo} #' and \code{w.hi}). #' #' @param dist Vector of detection distance values. #' #' @param density ...
/R/integration.constant.R
no_license
cran/Rdistance
R
false
false
13,178
r
#' @title Compute the integration constant for distance density functions #' #' @description Using numerical integration, this function computes #' the area under a distance function between two limits (\code{w.lo} #' and \code{w.hi}). #' #' @param dist Vector of detection distance values. #' #' @param density ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/knit_print.R \name{knit_print.fmt_uni_regression} \alias{knit_print.fmt_uni_regression} \title{Print \code{fmt_uni_regression} objects in Rmarkdown} \usage{ \method{knit_print}{fmt_uni_regression}(x, options, ...) } \arguments{ \item{x}{objec...
/man/knit_print.fmt_uni_regression.Rd
permissive
shijianasdf/clintable
R
false
true
788
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/knit_print.R \name{knit_print.fmt_uni_regression} \alias{knit_print.fmt_uni_regression} \title{Print \code{fmt_uni_regression} objects in Rmarkdown} \usage{ \method{knit_print}{fmt_uni_regression}(x, options, ...) } \arguments{ \item{x}{objec...
library(shiny) ui <- fluidPage( sliderInput(inputId = "num", label = "Choose a number", value = 25, min = 1, max = 100), textInput(inputId ="title", label = "Write a title", value = "Histogram of Random Normal Values"), #t...
/app.R
no_license
kchauhan295/app1
R
false
false
1,731
r
library(shiny) ui <- fluidPage( sliderInput(inputId = "num", label = "Choose a number", value = 25, min = 1, max = 100), textInput(inputId ="title", label = "Write a title", value = "Histogram of Random Normal Values"), #t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Eggs} \alias{Eggs} \title{Number of eggs versus amounts of feed supplement} \format{ A data frame/tibble with 12 observations on two variables \describe{ \item{feed}{amount of feed supplement} \item{eggs}...
/man/Eggs.Rd
no_license
alanarnholt/BSDA
R
false
true
721
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BSDA-package.R \docType{data} \name{Eggs} \alias{Eggs} \title{Number of eggs versus amounts of feed supplement} \format{ A data frame/tibble with 12 observations on two variables \describe{ \item{feed}{amount of feed supplement} \item{eggs}...
# project euler question 4 palyndromic number rm(list=ls()) is_pal <- function(n){ a <- n b <- as.numeric(paste(rev(strsplit(as.character(a),"")[[1]]),collapse="")) if(a==b){ return(1) } else{ return(0) } } v1 <- c() for( i in 101:(999*999)){ if(is_pal(i)==1){ v1 <- appe...
/project euler 4.R
no_license
mpommer/Project-euler
R
false
false
553
r
# project euler question 4 palyndromic number rm(list=ls()) is_pal <- function(n){ a <- n b <- as.numeric(paste(rev(strsplit(as.character(a),"")[[1]]),collapse="")) if(a==b){ return(1) } else{ return(0) } } v1 <- c() for( i in 101:(999*999)){ if(is_pal(i)==1){ v1 <- appe...
{ #Se borran las columnas innecesarias que causaran distorcion sobre los nombres finales de las columnas ACCESSES2<-ACCESSES ACCESSES2[["Acceso"]]<-NULL ACCESSES2[["Proveedor"]]<-NULL ACCESSES2[["Tipo"]]<-NULL ACCESSES2[["Estado"]]<-NULL # se une uso con ACCESSES Consolidado <- merge(uso, ...
/pj_igm.R
no_license
neobiscorp/NewCargaBI
R
false
false
2,708
r
{ #Se borran las columnas innecesarias que causaran distorcion sobre los nombres finales de las columnas ACCESSES2<-ACCESSES ACCESSES2[["Acceso"]]<-NULL ACCESSES2[["Proveedor"]]<-NULL ACCESSES2[["Tipo"]]<-NULL ACCESSES2[["Estado"]]<-NULL # se une uso con ACCESSES Consolidado <- merge(uso, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Evaluation.r \name{mcEvaluate} \alias{mcEvaluate} \title{Evaluates the number of occurrences of predicted next clicks} \usage{ mcEvaluate(mc, startPattern, testCLS) } \arguments{ \item{mc}{a markovchain object (this should have been built fro...
/man/mcEvaluate.Rd
no_license
cran/clickstream
R
false
true
1,459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Evaluation.r \name{mcEvaluate} \alias{mcEvaluate} \title{Evaluates the number of occurrences of predicted next clicks} \usage{ mcEvaluate(mc, startPattern, testCLS) } \arguments{ \item{mc}{a markovchain object (this should have been built fro...
# 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 # source("mainScript.R") source("mongo.R") library(shiny) library(shinyBS) library("scatterplot3d") library("threejs") shinyUI(navbarPage...
/ui.R
no_license
jbjares/sfmrshiny
R
false
false
1,693
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 # source("mainScript.R") source("mongo.R") library(shiny) library(shinyBS) library("scatterplot3d") library("threejs") shinyUI(navbarPage...
# People who more responds to others is highlighted / layout: 'stress' #Project Data Visualization # http://pablobarbera.com/big-data-upf/html/02a-networks-intro-visualization.html #Federico Ferrero #10/25/2020 # Clear environment rm(list=ls()) #call library library(igraph) # reading in the data g <- read.delim("/U...
/social_network_analysis.R
no_license
federico-jf/Data-Visualization-UTD-EPPS-6356
R
false
false
8,013
r
# People who more responds to others is highlighted / layout: 'stress' #Project Data Visualization # http://pablobarbera.com/big-data-upf/html/02a-networks-intro-visualization.html #Federico Ferrero #10/25/2020 # Clear environment rm(list=ls()) #call library library(igraph) # reading in the data g <- read.delim("/U...
#!/usr/bin/env Rscript library(plyr) root.path <- "output1of3" score.matrix.path <- paste(root.path, "matrix.csv", sep="/") train.questions.path <- paste(root.path, "itemID_train.txt", sep="/") test.questions.path <- paste(root.path, "itemID_test.txt", sep="/") train.users.path <- paste(root.path, "userID_t...
/src/calculate_question_count.R
no_license
arturosaco/StackOverflowRecommendations
R
false
false
1,570
r
#!/usr/bin/env Rscript library(plyr) root.path <- "output1of3" score.matrix.path <- paste(root.path, "matrix.csv", sep="/") train.questions.path <- paste(root.path, "itemID_train.txt", sep="/") test.questions.path <- paste(root.path, "itemID_test.txt", sep="/") train.users.path <- paste(root.path, "userID_t...
#' Get Air Resistance #' #' \code{get_air_resistance} estimates air resitance in Newtons #' #' @param velocity Instantaneous running velocity in meters per second (m/s) #' @param bodymass In kilograms (kg) #' @param bodyheight In meters (m) #' @param barometric_pressure In Torrs #' @param air_temperature In Celzius (C)...
/R/get_air_resistance.R
permissive
Arielnasc/shorts
R
false
false
2,162
r
#' Get Air Resistance #' #' \code{get_air_resistance} estimates air resitance in Newtons #' #' @param velocity Instantaneous running velocity in meters per second (m/s) #' @param bodymass In kilograms (kg) #' @param bodyheight In meters (m) #' @param barometric_pressure In Torrs #' @param air_temperature In Celzius (C)...
\alias{gFileAttributeMatcherMatchesOnly} \name{gFileAttributeMatcherMatchesOnly} \title{gFileAttributeMatcherMatchesOnly} \description{Checks if a attribute matcher only matches a given attribute. Always returns \code{FALSE} if "*" was used when creating the matcher.} \usage{gFileAttributeMatcherMatchesOnly(object, att...
/RGtk2/man/gFileAttributeMatcherMatchesOnly.Rd
no_license
lawremi/RGtk2
R
false
false
622
rd
\alias{gFileAttributeMatcherMatchesOnly} \name{gFileAttributeMatcherMatchesOnly} \title{gFileAttributeMatcherMatchesOnly} \description{Checks if a attribute matcher only matches a given attribute. Always returns \code{FALSE} if "*" was used when creating the matcher.} \usage{gFileAttributeMatcherMatchesOnly(object, att...
################################################################################ # Ita Coin Analysis ################################################################################ # load packages library(readxl) library(ggplot2) library(dplyr) ########################################################################...
/Programmatic_Download_Bancit_ECB/Ita_Coin.R
no_license
tom-finance/R_Web-Scraping
R
false
false
1,327
r
################################################################################ # Ita Coin Analysis ################################################################################ # load packages library(readxl) library(ggplot2) library(dplyr) ########################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mapleaflet.R \name{map_leaf} \alias{map_leaf} \title{Make an interactive map locally} \usage{ map_leaf(input, lat = NULL, lon = NULL, basemap = "Stamen.Toner", ...) } \arguments{ \item{input}{Input object} \item{lat}{Name of latitude varia...
/man/map_leaf.Rd
permissive
Zwens/geojsonio
R
false
true
4,481
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mapleaflet.R \name{map_leaf} \alias{map_leaf} \title{Make an interactive map locally} \usage{ map_leaf(input, lat = NULL, lon = NULL, basemap = "Stamen.Toner", ...) } \arguments{ \item{input}{Input object} \item{lat}{Name of latitude varia...
\name{hpcc.data.layout} \alias{hpcc.data.layout} %- Also NEED an '\alias' for EACH other topic documented here. \title{ title } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ hpcc.data.layout(logicalfilename) } %- maybe also 'usage' for other objects documented here. \arg...
/man/hpcc.data.layout.Rd
no_license
Saulus/rHpcc
R
false
false
2,736
rd
\name{hpcc.data.layout} \alias{hpcc.data.layout} %- Also NEED an '\alias' for EACH other topic documented here. \title{ title } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ hpcc.data.layout(logicalfilename) } %- maybe also 'usage' for other objects documented here. \arg...
## ----setup, cache=TRUE, echo=FALSE, message=FALSE, warning=FALSE--------- # setwd("C:/Users/Jon/Dropbox/immig_exp") # rm(list = ls()) # setwd("C:/Users/Jon/Documents/immigrant_labor_competition/pre_analysis_plan") Sys.setenv(TEXINPUTS=getwd(), BIBINPUTS=getwd(), BSTINPUTS=getwd()) library(MASS) ...
/pre_analysis_plan/immig_writeup.R
no_license
jon-mellon/immigrant_labor_competition
R
false
false
19,901
r
## ----setup, cache=TRUE, echo=FALSE, message=FALSE, warning=FALSE--------- # setwd("C:/Users/Jon/Dropbox/immig_exp") # rm(list = ls()) # setwd("C:/Users/Jon/Documents/immigrant_labor_competition/pre_analysis_plan") Sys.setenv(TEXINPUTS=getwd(), BIBINPUTS=getwd(), BSTINPUTS=getwd()) library(MASS) ...
#Open the data setwd("/Users/aditya/Dropbox/CovariateTesting/NeuralData/FDRreg-master/data") synchrony_smithkohn2008 = read.csv('synchrony_smithkohn2008.csv', header=TRUE) sys = synchrony_smithkohn2008 #Only the last three columns seem relevant to us. It is not clear though as to how the Dist variable is calculated. z ...
/NeuralData/FDRreg-master/Our Code/RCodeforKnightLabTalkAG13March2017.R
no_license
NabarunD/NPMLEmix
R
false
false
18,212
r
#Open the data setwd("/Users/aditya/Dropbox/CovariateTesting/NeuralData/FDRreg-master/data") synchrony_smithkohn2008 = read.csv('synchrony_smithkohn2008.csv', header=TRUE) sys = synchrony_smithkohn2008 #Only the last three columns seem relevant to us. It is not clear though as to how the Dist variable is calculated. z ...
doc_extract = function(file, location=FALSE){ require(textreadr) require(tidyverse) data_df <- read_dir(file, combine=TRUE, ocr = TRUE, doc.col = "title") %>% as_tibble() data_df <- data_df %>% mutate(date = str_extract(content, "\\d{2}.\\d{2}.\\d{4}") %>% parse_date("%d...
/preprocessing/doc_extract.R
no_license
ihsankahveci/pols559_final
R
false
false
882
r
doc_extract = function(file, location=FALSE){ require(textreadr) require(tidyverse) data_df <- read_dir(file, combine=TRUE, ocr = TRUE, doc.col = "title") %>% as_tibble() data_df <- data_df %>% mutate(date = str_extract(content, "\\d{2}.\\d{2}.\\d{4}") %>% parse_date("%d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AOO_functions.R \name{createGrid} \alias{createGrid} \title{Create empty Area of Occupancy (AOO) Grid.} \usage{ createGrid(input.data, grid.size) } \arguments{ \item{input.data}{Object of an ecosystem or species distribution. Accepts either r...
/man/createGrid.Rd
no_license
dondealban/redlistr
R
false
true
1,307
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AOO_functions.R \name{createGrid} \alias{createGrid} \title{Create empty Area of Occupancy (AOO) Grid.} \usage{ createGrid(input.data, grid.size) } \arguments{ \item{input.data}{Object of an ecosystem or species distribution. Accepts either r...
leitorPDF <- function(diretorioLISTA){ dfTotal <- data.frame() for (index in 1:length(diretorioLISTA)) { df<- lerPdf(diretorioLISTA[index]) dfTotal <- rbind.data.frame(dfTotal,df) } # end for return(dfTotal) } #diretorioLISTA <- c("C:\\Users\\Jordão Alves\\Desktop\\analisarAtesta...
/leitorPDF.R
no_license
jordaoalves/Analisar-Gratificacoes---IPERN
R
false
false
572
r
leitorPDF <- function(diretorioLISTA){ dfTotal <- data.frame() for (index in 1:length(diretorioLISTA)) { df<- lerPdf(diretorioLISTA[index]) dfTotal <- rbind.data.frame(dfTotal,df) } # end for return(dfTotal) } #diretorioLISTA <- c("C:\\Users\\Jordão Alves\\Desktop\\analisarAtesta...
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) # Summarizes sequencing coverage from BAM summary data produced by SummarizeBAM version 1.21 # and AnnotateVariants version 1.13. library(tidyverse) # Verify that the correct number of arguments are given. if(length(args)!=3){ stop("The following argumen...
/scripts/SummarizeCoverage/SummarizeCoverage.r
no_license
ksxue/within-vs-between-hosts-influenza
R
false
false
1,655
r
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) # Summarizes sequencing coverage from BAM summary data produced by SummarizeBAM version 1.21 # and AnnotateVariants version 1.13. library(tidyverse) # Verify that the correct number of arguments are given. if(length(args)!=3){ stop("The following argumen...
# Faktoren object.size(c("test","test2","test")) object.size(as.factor(c("test","test1","test"))) object.size(rep(c("test","test2","test"),10000)) object.size(rep(as.factor(c("test","test2","test")),10000)) # Erst installieren # library(ggplot2) library(foreign) # fertige Daten sin...
/CAS Datenanalyse/Tooling & Datamanagement/lesson3.R
no_license
huli/mas-data-science
R
false
false
4,654
r
# Faktoren object.size(c("test","test2","test")) object.size(as.factor(c("test","test1","test"))) object.size(rep(c("test","test2","test"),10000)) object.size(rep(as.factor(c("test","test2","test")),10000)) # Erst installieren # library(ggplot2) library(foreign) # fertige Daten sin...
#!/usr/bin/env Rscript ### run ./ReadLengthPlot.r library("RColorBrewer") #library(ggplot2) start= 0.4 step= 0.2 end = 0.8 count = (end - start) / step + 1 #dir <- "/cbcb/project-scratch/fdorri/Code/methylFlow/testing/cpg/" wdir <- "/Users/faezeh/Projects/methylFlow/exps/compelet/" #data[1]= 1 #wdir <- getwd();...
/compelet/mixedCompeletPlot.r
no_license
hcorrada/methylFlow_analyses
R
false
false
3,474
r
#!/usr/bin/env Rscript ### run ./ReadLengthPlot.r library("RColorBrewer") #library(ggplot2) start= 0.4 step= 0.2 end = 0.8 count = (end - start) / step + 1 #dir <- "/cbcb/project-scratch/fdorri/Code/methylFlow/testing/cpg/" wdir <- "/Users/faezeh/Projects/methylFlow/exps/compelet/" #data[1]= 1 #wdir <- getwd();...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shield_operations.R \name{shield_list_protections} \alias{shield_list_protections} \title{Retrieves Protection objects for the account} \usage{ shield_list_protections( NextToken = NULL, MaxResults = NULL, InclusionFilters = NULL ) } \a...
/cran/paws.security.identity/man/shield_list_protections.Rd
permissive
paws-r/paws
R
false
true
2,278
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shield_operations.R \name{shield_list_protections} \alias{shield_list_protections} \title{Retrieves Protection objects for the account} \usage{ shield_list_protections( NextToken = NULL, MaxResults = NULL, InclusionFilters = NULL ) } \a...
library("data.table") setwd("D:/machine learning using R/datasciencejhon/exdata_data_household_power_consumption") #Reads in data from file then subsets data for specified dates powerDT <- data.table::fread(input = "household_power_consumption.txt" , na.strings="?" ) # Prevents ...
/exploratory data analysis/plot3.R
no_license
satish605/datasciencejhon
R
false
false
1,183
r
library("data.table") setwd("D:/machine learning using R/datasciencejhon/exdata_data_household_power_consumption") #Reads in data from file then subsets data for specified dates powerDT <- data.table::fread(input = "household_power_consumption.txt" , na.strings="?" ) # Prevents ...
#' Compiled datasets of HLA class I and class II epitopes associated with autoimmune diseases. #' #' Datasets were compiled from source files attached in the package. #' #' @docType data #' @keywords datasets #' @name Dataset #' @rdname Dataset "autoimmunityDT" #' @name Dataset #' @rdname Dataset "Summar...
/R/Datasets.R
permissive
masato-ogishi/DPA
R
false
false
478
r
#' Compiled datasets of HLA class I and class II epitopes associated with autoimmune diseases. #' #' Datasets were compiled from source files attached in the package. #' #' @docType data #' @keywords datasets #' @name Dataset #' @rdname Dataset "autoimmunityDT" #' @name Dataset #' @rdname Dataset "Summar...
library(dplyr) library(readr) library(configr) library(futile.logger) library(patchwork) library(ShortRead) library(Biostrings) library(dada2) library(charlier) library(dadautils) #' main processing step - tries to operate as a pipeline returning 0 (success) or #' failure ( > 0) #' #' @param CFG list, configurat...
/dada2_16S.R
no_license
BigelowLab/edna-dada2
R
false
false
9,650
r
library(dplyr) library(readr) library(configr) library(futile.logger) library(patchwork) library(ShortRead) library(Biostrings) library(dada2) library(charlier) library(dadautils) #' main processing step - tries to operate as a pipeline returning 0 (success) or #' failure ( > 0) #' #' @param CFG list, configurat...
setwd('C:/Users/hnjyzdc/Desktop/从数据到结论') x=scan('gs.txt') pbinom(sum(x>100),25,0.5) #符号检验,sum表示了大于100的个数,25为样本量,0.5为想要检验的概率,输出为p值 wilcox.test(x,m=100,alt='less') #Wilcoxon符号秩检验,m为检验均值,alt表示单侧,双侧,分别为less(小于),greater(大于), install.packages('tseries') library(tseries) y = scan('run1.txt') runs.test(factor(y)) #随机游程检验,用来检...
/books/从数据到结论/R/非参数检验.R
permissive
yuanqingmei/Statistics_with_R
R
false
false
787
r
setwd('C:/Users/hnjyzdc/Desktop/从数据到结论') x=scan('gs.txt') pbinom(sum(x>100),25,0.5) #符号检验,sum表示了大于100的个数,25为样本量,0.5为想要检验的概率,输出为p值 wilcox.test(x,m=100,alt='less') #Wilcoxon符号秩检验,m为检验均值,alt表示单侧,双侧,分别为less(小于),greater(大于), install.packages('tseries') library(tseries) y = scan('run1.txt') runs.test(factor(y)) #随机游程检验,用来检...
\name{grasp.adm.dump} \alias{grasp.adm.dump} \title{ Internal GRASP function } \description{ This function saves the current version of your GRASP functions in a dump file that can be transported to another R session or to another computer. } \usage{ grasp.adm.dump() } \author{ Anthony.Lehmann@unige.ch } \see...
/man/grasp.adm.dump.Rd
no_license
cran/grasp
R
false
false
405
rd
\name{grasp.adm.dump} \alias{grasp.adm.dump} \title{ Internal GRASP function } \description{ This function saves the current version of your GRASP functions in a dump file that can be transported to another R session or to another computer. } \usage{ grasp.adm.dump() } \author{ Anthony.Lehmann@unige.ch } \see...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PWMScanHeatmap.R \docType{methods} \name{PWMScanHeatmap} \alias{PWMScanHeatmap} \alias{PWMScanHeatmap,DNAStringSet,matrix-method} \title{Generate a Heatmap of PWM Scores in DNA sequnce} \usage{ PWMScanHeatmap(seq, pwm, ...) \S4method{PWMScan...
/man/PWMScanHeatmap.Rd
no_license
mgperry/heatmaps
R
false
true
1,145
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PWMScanHeatmap.R \docType{methods} \name{PWMScanHeatmap} \alias{PWMScanHeatmap} \alias{PWMScanHeatmap,DNAStringSet,matrix-method} \title{Generate a Heatmap of PWM Scores in DNA sequnce} \usage{ PWMScanHeatmap(seq, pwm, ...) \S4method{PWMScan...
library(readr) library(dplyr) insurance <- read_csv("./BIDS/data/insurance.csv") df <- as_tibble(insurance) View(df) summary(df) ### convert to factor (categories) df$sex <- factor(df$sex) df$smoker <- factor(df$smoker) df$region <- factor(df$region) summary(df) ### create graphs par(mfrow=c(3,2...
/R/analysis_example.R
no_license
alxdubov/DataScience
R
false
false
6,000
r
library(readr) library(dplyr) insurance <- read_csv("./BIDS/data/insurance.csv") df <- as_tibble(insurance) View(df) summary(df) ### convert to factor (categories) df$sex <- factor(df$sex) df$smoker <- factor(df$smoker) df$region <- factor(df$region) summary(df) ### create graphs par(mfrow=c(3,2...
merge_trips <- function(kobo_trips_2, trips_from_points){ require(dplyr) trips_with_imei <- trips_from_points %>% filter(!is.na(imei)) kobo_trips_2 %>% dplyr::full_join(trips_with_imei, by = c("trip_imei" = "imei", "trip_date" = "trip_end_date_pds")) }
/R/merge_trips.R
permissive
WorldFishCenter/timor-catch-estimation
R
false
false
319
r
merge_trips <- function(kobo_trips_2, trips_from_points){ require(dplyr) trips_with_imei <- trips_from_points %>% filter(!is.na(imei)) kobo_trips_2 %>% dplyr::full_join(trips_with_imei, by = c("trip_imei" = "imei", "trip_date" = "trip_end_date_pds")) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OneThousandBackground.R \name{OneThousandBackground} \alias{OneThousandBackground} \title{Process module: OneThousandBackground} \usage{ OneThousandBackground(.data, seed = NULL) } \arguments{ \item{.data}{\strong{Internal parameter, do not u...
/man/OneThousandBackground.Rd
no_license
smwindecker/modules
R
false
true
1,604
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OneThousandBackground.R \name{OneThousandBackground} \alias{OneThousandBackground} \title{Process module: OneThousandBackground} \usage{ OneThousandBackground(.data, seed = NULL) } \arguments{ \item{.data}{\strong{Internal parameter, do not u...
\name{plausibility} \alias{plausibility} \title{Compute word (or compound) plausibility} \encoding{latin1} \description{Gives measures of semantic transparency (plausibility) for words or compounds} \details{ The format of \code{x} should be of the kind \code{x <- "word1 word2 word3"} instead of\cr\code{x <- c("word1...
/man/plausibility.Rd
no_license
codymarquart/LSAfun2
R
false
false
3,449
rd
\name{plausibility} \alias{plausibility} \title{Compute word (or compound) plausibility} \encoding{latin1} \description{Gives measures of semantic transparency (plausibility) for words or compounds} \details{ The format of \code{x} should be of the kind \code{x <- "word1 word2 word3"} instead of\cr\code{x <- c("word1...
## Coursera Hopkins Exploratory Data Course assignment 1: Plot 4 data <- read.csv2(".//household_power_consumption.txt", stringsAsFactor=FALSE) data$Date <- as.Date(as.character(data$Date), "%d/%m/%Y") dataSelected <- subset(data, Date >= "2007-02-01" & Date <= "2007-02-02") ## Clean up any NAs dataClean <- na.omit(da...
/work/plot4.R
no_license
mrmra/ExData_Plotting1
R
false
false
2,033
r
## Coursera Hopkins Exploratory Data Course assignment 1: Plot 4 data <- read.csv2(".//household_power_consumption.txt", stringsAsFactor=FALSE) data$Date <- as.Date(as.character(data$Date), "%d/%m/%Y") dataSelected <- subset(data, Date >= "2007-02-01" & Date <= "2007-02-02") ## Clean up any NAs dataClean <- na.omit(da...
function (X, max_number_of_iterations) { e <- get("data.env", .GlobalEnv) e[["translate_to_binary"]][[length(e[["translate_to_binary"]]) + 1]] <- list(X = X, max_number_of_iterations = max_number_of_iterations) .Call("_xyz_translate_to_binary", X, max_number_of_iterations) }
/valgrind_test_dir/translate_to_binary-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
298
r
function (X, max_number_of_iterations) { e <- get("data.env", .GlobalEnv) e[["translate_to_binary"]][[length(e[["translate_to_binary"]]) + 1]] <- list(X = X, max_number_of_iterations = max_number_of_iterations) .Call("_xyz_translate_to_binary", X, max_number_of_iterations) }
#------------------------ # Archimedes with an iPod #------------------------ theta=10*pi*(0:1000)/1000 r=.1+theta/(2*pi)+.5*sin(10*theta) x=r*cos(theta) y=r*sin(theta) par(pin=c(4,4)) plot(x,y,type="l",lty=1)
/Archimedes with an iPod.R
no_license
AndyTian-Devops/RLearning
R
false
false
209
r
#------------------------ # Archimedes with an iPod #------------------------ theta=10*pi*(0:1000)/1000 r=.1+theta/(2*pi)+.5*sin(10*theta) x=r*cos(theta) y=r*sin(theta) par(pin=c(4,4)) plot(x,y,type="l",lty=1)
# Tests for multi_dittoDimPlotVaryCells function # library(dittoSeq); library(testthat); source("setup.R"); source("test-multi_VaryCells.R") sce$number <- as.numeric(seq_along(colnames(sce))) grp <- "age" cont <- "gene2" disc <- "groups" test_that("VaryCells fxn can show continuous or discrete data", { expect_s3_...
/tests/testthat/test-multi_VaryCells.R
permissive
dtm2451/dittoSeq
R
false
false
3,256
r
# Tests for multi_dittoDimPlotVaryCells function # library(dittoSeq); library(testthat); source("setup.R"); source("test-multi_VaryCells.R") sce$number <- as.numeric(seq_along(colnames(sce))) grp <- "age" cont <- "gene2" disc <- "groups" test_that("VaryCells fxn can show continuous or discrete data", { expect_s3_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{managers} \alias{managers} \title{time-series data} \source{ TBA } \usage{ data("managers") } \description{ Hypothetical Alternative Asset Manager and Benchmark Data for Time Series Factor Model Fi...
/man/managers.Rd
permissive
kecoli/PCRM
R
false
true
326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{managers} \alias{managers} \title{time-series data} \source{ TBA } \usage{ data("managers") } \description{ Hypothetical Alternative Asset Manager and Benchmark Data for Time Series Factor Model Fi...
################################################################################ ################## Portfolio Functions ################## ################################################################################ library('Sim.DiffProc') library('dplyr') library('tidyverse') library...
/Functions/PortfolioFunctions_v1.R
no_license
JulioCesar-MS/Portfolio-Analysis
R
false
false
9,133
r
################################################################################ ################## Portfolio Functions ################## ################################################################################ library('Sim.DiffProc') library('dplyr') library('tidyverse') library...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PrisonersDilemmaStratTourn.R \name{Memory.Random.Play.PD} \alias{Memory.Random.Play.PD} \title{Generate Memory where strategies play against a random strategy} \usage{ Memory.Random.Play.PD(game.object, algo.par) } \arguments{ \item{game.obje...
/man/Memory.Random.Play.PD.Rd
no_license
MartinKies/RLR
R
false
true
954
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PrisonersDilemmaStratTourn.R \name{Memory.Random.Play.PD} \alias{Memory.Random.Play.PD} \title{Generate Memory where strategies play against a random strategy} \usage{ Memory.Random.Play.PD(game.object, algo.par) } \arguments{ \item{game.obje...
#' plotARRW #' @description plot signal, y datapoints and changepoints on a same graph #' @param y An object created by the dataARRW function plotARRW <- function(y) { ylim <- c(min(y$mu,y$y), max(y$mu,y$y)) plot(y$y, col = 1, ylim = ylim, pch = '+', ylab = "")# y in blue par(new= TRUE) plot(y$mu, col = 2, ylim...
/R/plot.R
no_license
aminaghoul/ARRWestim
R
false
false
1,572
r
#' plotARRW #' @description plot signal, y datapoints and changepoints on a same graph #' @param y An object created by the dataARRW function plotARRW <- function(y) { ylim <- c(min(y$mu,y$y), max(y$mu,y$y)) plot(y$y, col = 1, ylim = ylim, pch = '+', ylab = "")# y in blue par(new= TRUE) plot(y$mu, col = 2, ylim...
/Practica_5/Codigo/P5_N.R
no_license
xoce15/Simulacion_Sistemas
R
false
false
4,316
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cfbd_metrics.R \name{cfbd_metrics_wp_pregame} \alias{cfbd_metrics_wp_pregame} \title{\strong{Get pre-game win probability data from API}} \usage{ cfbd_metrics_wp_pregame( year = NULL, week = NULL, team = NULL, season_type = "regular" ...
/man/cfbd_metrics_wp_pregame.Rd
permissive
Engy-22/cfbfastR
R
false
true
1,578
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cfbd_metrics.R \name{cfbd_metrics_wp_pregame} \alias{cfbd_metrics_wp_pregame} \title{\strong{Get pre-game win probability data from API}} \usage{ cfbd_metrics_wp_pregame( year = NULL, week = NULL, team = NULL, season_type = "regular" ...
bio <- read.csv('http://openmv.net/file/bioreactor-yields.csv') summary(bio) # Temperature-Yield model model.temp <- lm(bio$yield ~ bio$temperature) summary(model.temp) # Impeller speed-Yield model model.speed <- lm(bio$yield ~ bio$speed) summary(model.speed) # Baffles-Yield model model.baffles <- lm(bio$yield ~ bio...
/least-squares/bioreactor-regression-assignment.R
no_license
kgdunn/figures
R
false
false
493
r
bio <- read.csv('http://openmv.net/file/bioreactor-yields.csv') summary(bio) # Temperature-Yield model model.temp <- lm(bio$yield ~ bio$temperature) summary(model.temp) # Impeller speed-Yield model model.speed <- lm(bio$yield ~ bio$speed) summary(model.speed) # Baffles-Yield model model.baffles <- lm(bio$yield ~ bio...
library(ncdf) output.addr <- '/home/trn/Desktop/diploma-thesis/data' save.addr <- '/home/trn/diploma-thesis/R/scripts/measurements/artificial-measurements3' #name of file without end (.csv or .rda) func.addr <- '/home/trn/diploma-thesis/R/scripts/measurements' #where is create-ncdf & clear measurements files script wa...
/measurements/artificial-measurements.r
no_license
martintomas/iterative_prediction_of_pollutants
R
false
false
4,701
r
library(ncdf) output.addr <- '/home/trn/Desktop/diploma-thesis/data' save.addr <- '/home/trn/diploma-thesis/R/scripts/measurements/artificial-measurements3' #name of file without end (.csv or .rda) func.addr <- '/home/trn/diploma-thesis/R/scripts/measurements' #where is create-ncdf & clear measurements files script wa...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{distance} \alias{distance} \title{Collection of distance matrix computation functions.} \usage{ distance(measure = "JS") } \arguments{ \item{method}{character string. Specifies which distance measure to use. 'JS' and 'KL' are currently supported.} } \value{...
/man/distance.Rd
permissive
tcarnus/LDAvis
R
false
false
689
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{distance} \alias{distance} \title{Collection of distance matrix computation functions.} \usage{ distance(measure = "JS") } \arguments{ \item{method}{character string. Specifies which distance measure to use. 'JS' and 'KL' are currently supported.} } \value{...
dataFile <- "./household_power_consumption.txt" data <- read.table(dataFile, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007"),] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep = " "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as....
/plot2.R
no_license
shubhambansal1996/exploratory_data_analysis1
R
false
false
508
r
dataFile <- "./household_power_consumption.txt" data <- read.table(dataFile, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007"),] datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep = " "), "%d/%m/%Y %H:%M:%S") globalActivePower <- as....
## When adding new options, be sure to update the VALID_OPTIONS list ## (define your own custom validators by assigning a function) ## and update the initOptions + documentation below VALID_OPTIONS <- list( auto.snapshot = function(x) x %in% c(TRUE, FALSE), vcs.ignore.lib = list(TRUE, FALSE), vcs.ignore.src = li...
/R/options.R
no_license
robertzk/packrat
R
false
false
3,383
r
## When adding new options, be sure to update the VALID_OPTIONS list ## (define your own custom validators by assigning a function) ## and update the initOptions + documentation below VALID_OPTIONS <- list( auto.snapshot = function(x) x %in% c(TRUE, FALSE), vcs.ignore.lib = list(TRUE, FALSE), vcs.ignore.src = li...