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
rmarkdown::render("quantify-missingness.Rmd", params = list( data_dir= "/4ceData/Input", my_dir= "/4ceData", dateFormat= "%d-%b-%y", site= "APHP" ))
/knit_rmd_aphp.R
no_license
aneuraz/missing-data-4ce
R
false
false
157
r
rmarkdown::render("quantify-missingness.Rmd", params = list( data_dir= "/4ceData/Input", my_dir= "/4ceData", dateFormat= "%d-%b-%y", site= "APHP" ))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NVT-init.R \name{NVTinit} \alias{NVTinit} \title{Initialize and load input data into a NVTobject} \usage{ NVTinit(housekeeping_gene_list, expression_list_1, expression_list_2, normalization_method, feat_length) } \arguments{ \item{housekeep...
/man/NVTinit.Rd
permissive
Edert/NVT
R
false
true
1,648
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NVT-init.R \name{NVTinit} \alias{NVTinit} \title{Initialize and load input data into a NVTobject} \usage{ NVTinit(housekeeping_gene_list, expression_list_1, expression_list_2, normalization_method, feat_length) } \arguments{ \item{housekeep...
args <- commandArgs(TRUE) ## # dir <- args[1] # dataf = args[1] a = read.table("readsName", header=F) temp = unique(a$V1) numLines = length(temp) print( numLines )
/RNA_seq/sortData.R
no_license
bnv2103/NGS
R
false
false
165
r
args <- commandArgs(TRUE) ## # dir <- args[1] # dataf = args[1] a = read.table("readsName", header=F) temp = unique(a$V1) numLines = length(temp) print( numLines )
# # 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) library(sf) library(shinythemes) library(tmap) library(leaflet) ca_tidy<-read_s...
/CaliforniaCountyMap/map.R
no_license
annaclairemarley/244-Final
R
false
false
1,767
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) library(sf) library(shinythemes) library(tmap) library(leaflet) ca_tidy<-read_s...
#TITLE ###Dynamic Relative Abundance Plots #DESCRIPTION: ###Plots relative abundance plots for multiple taxonomic levels ###First, specify either Phylum, Class, Order, and Family. ###Second, specify which taxa to plot. ###Finally, Adds stats test ###E.g. LEVEL: Phylum; TAXA: Firmicutes #AUTHOR: ###Date Created: ...
/Pups and Adults/Class Relative Abundance/P19/Related Files/dynamic_individual_abundance_C7C9_P19.R
no_license
Gregg-Lab/Plot_Info_MetPN
R
false
false
6,262
r
#TITLE ###Dynamic Relative Abundance Plots #DESCRIPTION: ###Plots relative abundance plots for multiple taxonomic levels ###First, specify either Phylum, Class, Order, and Family. ###Second, specify which taxa to plot. ###Finally, Adds stats test ###E.g. LEVEL: Phylum; TAXA: Firmicutes #AUTHOR: ###Date Created: ...
#' Complementary Gaussian Error Function #' #' Erfc stands for the Complementary Gaussian Error Function. #' This mathematical formula can be used as a squashing function. #' Consider \code{x} a numeric vector representing the squared error of #' base models in a given observation. By applying the erfc function on #' t...
/sources/tests_tsensembler/tsensembler3/R/utils.R
no_license
postyear/ModelSelection
R
false
false
11,612
r
#' Complementary Gaussian Error Function #' #' Erfc stands for the Complementary Gaussian Error Function. #' This mathematical formula can be used as a squashing function. #' Consider \code{x} a numeric vector representing the squared error of #' base models in a given observation. By applying the erfc function on #' t...
## Assignment 2 ## Question 2.1 ## 3) par(mgp=c(2, 0.7,0), mar=c(3,3,2,1)) sim <- matrix(NA,200,10) for (i in 1:10){ sim[,i] <- arima.sim(model=list(ar=0.9,ma=c(2,0.5),order=c(1,0,2)), n =200) plot(sim[,i],type="l",col="red", main=paste("Arima(1,0,2) simulation",i),xlab="Time...
/Assignment_2.R
no_license
Jordan-A2/TSA
R
false
false
3,652
r
## Assignment 2 ## Question 2.1 ## 3) par(mgp=c(2, 0.7,0), mar=c(3,3,2,1)) sim <- matrix(NA,200,10) for (i in 1:10){ sim[,i] <- arima.sim(model=list(ar=0.9,ma=c(2,0.5),order=c(1,0,2)), n =200) plot(sim[,i],type="l",col="red", main=paste("Arima(1,0,2) simulation",i),xlab="Time...
# 21/11/2018 # k-hit # + Each mutation has an ID (ID) and a growth advantage (s) as a tuple # ``[(ID1, s1)]`` # + Each clone contains a certain number of mutations, so could be defined as a list of the mutation, fitness effect tuples # ``[(ID1, s1),(ID2, s2)....]`` # + Each clone also needs an associated size (n)...
/Simulation validation/R codes/MASTER CODE correlation check Bolton ages parameters.R
no_license
blundelllab/Genetic-hitchhiking
R
false
false
36,460
r
# 21/11/2018 # k-hit # + Each mutation has an ID (ID) and a growth advantage (s) as a tuple # ``[(ID1, s1)]`` # + Each clone contains a certain number of mutations, so could be defined as a list of the mutation, fitness effect tuples # ``[(ID1, s1),(ID2, s2)....]`` # + Each clone also needs an associated size (n)...
library(rmisc) require.all("ggplot2", "grid", "gridExtra", "scales") source("src/load_functional.R") # in zeile 46 hinzufügen # colnames(mdf)[3] <- "Abundance" fixInNamespace(psmelt, pos = "package:phyloseq") #creat copy func <- functional # filter func <- prune_taxa(taxa_sums(func) > 1, func) func <- subset_taxa(fun...
/src/bar_plots.R
permissive
psikon/functional.analysis
R
false
false
11,988
r
library(rmisc) require.all("ggplot2", "grid", "gridExtra", "scales") source("src/load_functional.R") # in zeile 46 hinzufügen # colnames(mdf)[3] <- "Abundance" fixInNamespace(psmelt, pos = "package:phyloseq") #creat copy func <- functional # filter func <- prune_taxa(taxa_sums(func) > 1, func) func <- subset_taxa(fun...
library(shiny) library(shinydashboard) library(shinyjs) library(DT) library(plyr) library(dplyr) library(tidyr) library(digest) options(scipen=200) num_fails_to_lockout<-10 mainbody <- div( tabItems( # First tab content tabItem(tabName = "news_and_WAS", tabsetPanel( ...
/server8/server.R
no_license
RachelAnqi/Sales_training_programme
R
false
false
727,369
r
library(shiny) library(shinydashboard) library(shinyjs) library(DT) library(plyr) library(dplyr) library(tidyr) library(digest) options(scipen=200) num_fails_to_lockout<-10 mainbody <- div( tabItems( # First tab content tabItem(tabName = "news_and_WAS", tabsetPanel( ...
library(dplyr) library(lubridate) library(data.table) path <- getwd() unzip(zipfile = "exdata_data_household_power_consumption.zip", exdir = path) householdData <- read.table(file = "household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") # Subsetting Data to the rig...
/plot2.R
no_license
anjanaxramesh/ExData_Plotting1
R
false
false
826
r
library(dplyr) library(lubridate) library(data.table) path <- getwd() unzip(zipfile = "exdata_data_household_power_consumption.zip", exdir = path) householdData <- read.table(file = "household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".") # Subsetting Data to the rig...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveGlobals.R \name{vdbGlobalsExist} \alias{vdbGlobalsExist} \title{Check to see if the VDB-wide global data file exists} \usage{ vdbGlobalsExist(conn = getOption("vdbConn")) } \arguments{ \item{conn}{vdb connection} } \value{ logical } \desc...
/man/vdbGlobalsExist.Rd
permissive
jcheng5/trelliscope
R
false
true
443
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveGlobals.R \name{vdbGlobalsExist} \alias{vdbGlobalsExist} \title{Check to see if the VDB-wide global data file exists} \usage{ vdbGlobalsExist(conn = getOption("vdbConn")) } \arguments{ \item{conn}{vdb connection} } \value{ logical } \desc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cohortAnalyseBatch.R \name{cohortAnalyseBatchContrast} \alias{cohortAnalyseBatchContrast} \title{Analyse individuals for reccuring mutations} \usage{ cohortAnalyseBatchContrast(metaDataFile, outputDirectories, project, subgroups1, subgroups...
/man/cohortAnalyseBatchContrast.Rd
permissive
shulp2211/superFreq
R
false
true
3,097
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cohortAnalyseBatch.R \name{cohortAnalyseBatchContrast} \alias{cohortAnalyseBatchContrast} \title{Analyse individuals for reccuring mutations} \usage{ cohortAnalyseBatchContrast(metaDataFile, outputDirectories, project, subgroups1, subgroups...
library(tidyverse) library(data.table) library(readr) library(lubridate) memory.limit(size = 16000000) santander <- fread('train_ver2.csv') # 1.0, 2.0 등이 1, 2 등과 구별되어 있어서 같게 해주는 과정 santander$indrel_1mes[santander$indrel_1mes == "1.0"] <- "1" santander$indrel_1mes[santander$indrel_1mes == "2.0"] <- "2" santander$indr...
/고급빅데이터분석/santander/wanttofinal/feature_engineering_f.R
no_license
BenHeo/SNU
R
false
false
13,865
r
library(tidyverse) library(data.table) library(readr) library(lubridate) memory.limit(size = 16000000) santander <- fread('train_ver2.csv') # 1.0, 2.0 등이 1, 2 등과 구별되어 있어서 같게 해주는 과정 santander$indrel_1mes[santander$indrel_1mes == "1.0"] <- "1" santander$indrel_1mes[santander$indrel_1mes == "2.0"] <- "2" santander$indr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-rgl.R \name{plot_tumor3d} \alias{plot_tumor3d} \alias{snapshot_surface} \alias{add_col} \title{3D plotting with rgl} \usage{ plot_tumor3d(.tbl = NULL, limits = NULL) snapshot_surface(.tbl, filename = tempfile("rgl_", fileext = ".png"), ...
/man/plot-rgl.Rd
permissive
heavywatal/rtumopp
R
false
true
1,087
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot-rgl.R \name{plot_tumor3d} \alias{plot_tumor3d} \alias{snapshot_surface} \alias{add_col} \title{3D plotting with rgl} \usage{ plot_tumor3d(.tbl = NULL, limits = NULL) snapshot_surface(.tbl, filename = tempfile("rgl_", fileext = ".png"), ...
# weather by hour --------------------------------------------------------- context("weather by hour") setup({options("weathercan.time.message" = TRUE)}) test_that("weather_dl hour alerts to change in time handling", { skip_on_cran() options("weathercan.time.message" = FALSE) vcr::use_cassette("weather_hour_5...
/tests/testthat/test_06_weather_dl_1_hour.R
no_license
cran/weathercan
R
false
false
8,410
r
# weather by hour --------------------------------------------------------- context("weather by hour") setup({options("weathercan.time.message" = TRUE)}) test_that("weather_dl hour alerts to change in time handling", { skip_on_cran() options("weathercan.time.message" = FALSE) vcr::use_cassette("weather_hour_5...
library(grDevices) x <- colorRamp(c("red", "blue")) x y <- colorRampPalette(c("red", "yellow")) y rgb(0, 0, 0, 0.2) s <- "she likes rum raisin after running hard" regex <- "^s(.*?)r" regexpr(regex, s) ?setOldClass
/compdata/week4/quiz4.R
no_license
sedhour/R-1
R
false
false
217
r
library(grDevices) x <- colorRamp(c("red", "blue")) x y <- colorRampPalette(c("red", "yellow")) y rgb(0, 0, 0, 0.2) s <- "she likes rum raisin after running hard" regex <- "^s(.*?)r" regexpr(regex, s) ?setOldClass
library(ape) testtree <- read.tree("5919_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5919_0_unrooted.txt")
/codeml_files/newick_trees_processed/5919_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("5919_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="5919_0_unrooted.txt")
#' Get a user's watchlist #' #' \code{trakt.user.watchlist} pulls a user's watchlist. #' @param user Target user. Defaults to \code{getOption("trakt.username")} #' @param type Either \code{shows} (default) or \code{movies} #' @return A \code{data.frame} containing stats. #' @export #' @note See \href{http://docs.trakt...
/R/trakt.user.watchlist.R
no_license
arturochian/tRakt
R
false
false
1,447
r
#' Get a user's watchlist #' #' \code{trakt.user.watchlist} pulls a user's watchlist. #' @param user Target user. Defaults to \code{getOption("trakt.username")} #' @param type Either \code{shows} (default) or \code{movies} #' @return A \code{data.frame} containing stats. #' @export #' @note See \href{http://docs.trakt...
# including libraries library(tidyr) library(MASS) library("car") carDf <- read.csv("CarPrice_Assignment.csv") View(carDf) str(carDf) # Data Cleaning # Splitting carName column carDf$CarName <- as.character(carDf$CarName) carDf <- separate(carDf,CarName, into=c('brand','model'),sep=' ') carDf <- carDf[,-which(names(c...
/carPrice_solution.R
no_license
anurag3290/Automobile-consulting-Linear-Regression-R
R
false
false
21,611
r
# including libraries library(tidyr) library(MASS) library("car") carDf <- read.csv("CarPrice_Assignment.csv") View(carDf) str(carDf) # Data Cleaning # Splitting carName column carDf$CarName <- as.character(carDf$CarName) carDf <- separate(carDf,CarName, into=c('brand','model'),sep=' ') carDf <- carDf[,-which(names(c...
prune <- function(net,reach.up=numeric(0),reach.dn=numeric(0),verbose=TRUE) UseMethod("prune") prune.rivernet <- function(net,reach.up=numeric(0),reach.dn=numeric(0),verbose=TRUE) { # check input: n.reach <- length(net$reaches) if ( length(reach.dn) > 0 ) { ind.illegal <- which(reach.dn < 1 | r...
/R/prune.rivernet.r
no_license
cran/rivernet
R
false
false
4,398
r
prune <- function(net,reach.up=numeric(0),reach.dn=numeric(0),verbose=TRUE) UseMethod("prune") prune.rivernet <- function(net,reach.up=numeric(0),reach.dn=numeric(0),verbose=TRUE) { # check input: n.reach <- length(net$reaches) if ( length(reach.dn) > 0 ) { ind.illegal <- which(reach.dn < 1 | r...
library("rslurm") library(np) library(survival) source("markDensSim_tholzman_20181031.R") source("../markHR.R") source("../covEst.R") # load data #dataDir <- "T:/vaccine/rtss_malaria_sieve/Stephanie's work/AMP" dataDir <- "../data" mascola <- read.csv(file.path(dataDir,"Mascola_Acute_Clade_C_VRC01.csv"), header=TRU...
/code/markPowerCladeC_tholzman_20181031.R
no_license
smwu/sievePower
R
false
false
6,503
r
library("rslurm") library(np) library(survival) source("markDensSim_tholzman_20181031.R") source("../markHR.R") source("../covEst.R") # load data #dataDir <- "T:/vaccine/rtss_malaria_sieve/Stephanie's work/AMP" dataDir <- "../data" mascola <- read.csv(file.path(dataDir,"Mascola_Acute_Clade_C_VRC01.csv"), header=TRU...
# Path to data library(swirl) .datapath <- file.path(path.package('swirl'), 'Courses', 'R_Programming_E', 'Looking_at_Data', 'plant-data.txt') # Read in data plants <- read.csv(.datapath, strip.white=TRUE, na.strings="") # Remove annoying columns .cols2rm <- c('Accepted.Sym...
/02_data_munging_summarizing_R_git/Problem6.R
no_license
Peng0618/STAT_5014
R
false
false
1,756
r
# Path to data library(swirl) .datapath <- file.path(path.package('swirl'), 'Courses', 'R_Programming_E', 'Looking_at_Data', 'plant-data.txt') # Read in data plants <- read.csv(.datapath, strip.white=TRUE, na.strings="") # Remove annoying columns .cols2rm <- c('Accepted.Sym...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bulamed.R \name{lista_todos_remedios} \alias{lista_todos_remedios} \title{Pegar nome de todos os remédios} \usage{ lista_todos_remedios(progress = T) } \value{ lista de todos os remédios } \description{ Pegar nome de todos os remédios } \note...
/man/lista_todos_remedios.Rd
no_license
dfalbel/rbulamed
R
false
true
393
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bulamed.R \name{lista_todos_remedios} \alias{lista_todos_remedios} \title{Pegar nome de todos os remédios} \usage{ lista_todos_remedios(progress = T) } \value{ lista de todos os remédios } \description{ Pegar nome de todos os remédios } \note...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgcpStructures.R \name{postcov.lgcpPredictSpatialOnlyPlusParameters} \alias{postcov.lgcpPredictSpatialOnlyPlusParameters} \title{postcov.lgcpPredictSpatialOnlyPlusParameters function} \usage{ "postcov(obj,qts=c(0.025,0.5,0.975),covmodel=NULL,...
/man/postcov.lgcpPredictSpatialOnlyPlusParameters.Rd
no_license
jmarshallnz/lgcp
R
false
true
1,290
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgcpStructures.R \name{postcov.lgcpPredictSpatialOnlyPlusParameters} \alias{postcov.lgcpPredictSpatialOnlyPlusParameters} \title{postcov.lgcpPredictSpatialOnlyPlusParameters function} \usage{ "postcov(obj,qts=c(0.025,0.5,0.975),covmodel=NULL,...
#Library initiation library("readxl") library("xlsx") library("Rmpfr") #Load the main excel files - stble1 (master table), stable 2(track reference) and stable 3 (ENIGMA+ClinVar reference variants) stable1 = as.data.frame(read_excel("Sup_tables_GIM_AUG_2020 REV FINAL.xlsx", sheet = "STable 1", col_names = TRUE...
/FYI_BRCA1_Sup_Tables_V1.r
no_license
FunctionalAssaYIntegration/FYI_BRCA1
R
false
false
72,090
r
#Library initiation library("readxl") library("xlsx") library("Rmpfr") #Load the main excel files - stble1 (master table), stable 2(track reference) and stable 3 (ENIGMA+ClinVar reference variants) stable1 = as.data.frame(read_excel("Sup_tables_GIM_AUG_2020 REV FINAL.xlsx", sheet = "STable 1", col_names = TRUE...
testlist <- list(type = 805306368L, z = 0) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609890516-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
96
r
testlist <- list(type = 805306368L, z = 0) result <- do.call(esreg::G1_fun,testlist) str(result)
'Distribution ver4' library(tidyverse) library(readr) library(readxl) library(stringr) library(RColorBrewer) library(pdftools) read_csv('men.txt', col_names = str_c('x',(1+1949):(111+1949),sep = '')) -> men read_csv('women.txt', col_names = str_c('x',(1+1949):(111+1949),sep = '')) ->...
/Distribution_Chart/Distributionver4.R
no_license
dpftu/Data-Visualization-in-R
R
false
false
3,097
r
'Distribution ver4' library(tidyverse) library(readr) library(readxl) library(stringr) library(RColorBrewer) library(pdftools) read_csv('men.txt', col_names = str_c('x',(1+1949):(111+1949),sep = '')) -> men read_csv('women.txt', col_names = str_c('x',(1+1949):(111+1949),sep = '')) ->...
#'@title Generate Spectral Data #' #'@description Generate a dataset with spectral distribution. #' #'@references Bicici, E., & Yuret, D. (2007). Locally Scaled Density Based Clustering. International Conference on Adaptive and Natural Computing Algorithms (pp. 739-748). Berlin: Springer. #' #'@return dataframe ...
/R/get_spectral.R
no_license
cran/lsdbc
R
false
false
985
r
#'@title Generate Spectral Data #' #'@description Generate a dataset with spectral distribution. #' #'@references Bicici, E., & Yuret, D. (2007). Locally Scaled Density Based Clustering. International Conference on Adaptive and Natural Computing Algorithms (pp. 739-748). Berlin: Springer. #' #'@return dataframe ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/rasterWriter.R \name{rasterWriter} \alias{rasterWriter} \title{Function for generating a raster from a shapefile} \usage{ rasterWriter(shp, res, rastOut) } \arguments{ \item{shp}{a shape file to be converted to raster} \item{res}{the...
/man/rasterWriter.Rd
no_license
kkeenan02/spcaHelper
R
false
false
550
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/rasterWriter.R \name{rasterWriter} \alias{rasterWriter} \title{Function for generating a raster from a shapefile} \usage{ rasterWriter(shp, res, rastOut) } \arguments{ \item{shp}{a shape file to be converted to raster} \item{res}{the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getVariant.R \name{getVariant} \alias{getVariant} \title{getVariant function} \usage{ getVariant(host, variantId, asVCF = TRUE) } \arguments{ \item{host}{URL of GA4GH API data server.} \item{variantId}{The ID of the Variant to be retrieved.}...
/man/getVariant.Rd
no_license
labbcb/GA4GHclient
R
false
true
1,347
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getVariant.R \name{getVariant} \alias{getVariant} \title{getVariant function} \usage{ getVariant(host, variantId, asVCF = TRUE) } \arguments{ \item{host}{URL of GA4GH API data server.} \item{variantId}{The ID of the Variant to be retrieved.}...
\name{munk} \docType{data} \alias{munk} \title{Munk's (1966) temperature profile} \description{Temperature profile digitized from the left-hand panel of Munk's Figure 1.} \usage{data(munk)} \examples{ \dontrun{ library(ocedata) data(munk) plot(munk$temperature, munk$depth, ylim=rev(range(munk$depth)), xl...
/man/munk.Rd
no_license
richardsc/ocedata
R
false
false
477
rd
\name{munk} \docType{data} \alias{munk} \title{Munk's (1966) temperature profile} \description{Temperature profile digitized from the left-hand panel of Munk's Figure 1.} \usage{data(munk)} \examples{ \dontrun{ library(ocedata) data(munk) plot(munk$temperature, munk$depth, ylim=rev(range(munk$depth)), xl...
setwd(here::here()) library(tidyverse) library(ggplot2) library(cowplot) library(edgeR) source("r_code/functions.R") theme_set(theme_bw(base_size = 9)) source("r_code/bcbio_isomir_commonality.R") source("r_code/mirge_isomir_commonality.R") source("r_code/isomirsea_isomir_commonality.R") source("r_code/srnabench_isomir...
/projects/tewari/r_code/run_isomir_commonality.R
no_license
vbarrera/incubator
R
false
false
339
r
setwd(here::here()) library(tidyverse) library(ggplot2) library(cowplot) library(edgeR) source("r_code/functions.R") theme_set(theme_bw(base_size = 9)) source("r_code/bcbio_isomir_commonality.R") source("r_code/mirge_isomir_commonality.R") source("r_code/isomirsea_isomir_commonality.R") source("r_code/srnabench_isomir...
source("downloadArchive.R") # Load the NEI & SCC data frames. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Subset coal combustion related NEI data combustionRelated <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE) coalRelated <- grepl("coal", SCC$SCC.Level.Four, ignor...
/plot4.R
no_license
P053R/ExploratoryData2
R
false
false
916
r
source("downloadArchive.R") # Load the NEI & SCC data frames. NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Subset coal combustion related NEI data combustionRelated <- grepl("comb", SCC$SCC.Level.One, ignore.case=TRUE) coalRelated <- grepl("coal", SCC$SCC.Level.Four, ignor...
## ## ## markcorr.R ## ## $Revision: 1.72 $ $Date: 2015/02/24 01:42:41 $ ## ## Estimate the mark correlation function ## and related functions ## ## ------------------------------------------------------------------------ markvario <- local({ halfsquarediff <- function(m1, m2) { ((m1-m2)^2)/2 } ...
/R/markcorr.R
no_license
jmetz/spatstat
R
false
false
20,470
r
## ## ## markcorr.R ## ## $Revision: 1.72 $ $Date: 2015/02/24 01:42:41 $ ## ## Estimate the mark correlation function ## and related functions ## ## ------------------------------------------------------------------------ markvario <- local({ halfsquarediff <- function(m1, m2) { ((m1-m2)^2)/2 } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LaplacianKernelLeastSquaresClassifier.R \name{adjacency_knn} \alias{adjacency_knn} \title{Calculate knn adjacency matrix} \usage{ adjacency_knn(X, distance = "euclidean", k = 6) } \arguments{ \item{X}{matrix; input matrix} \item{distance}{ch...
/man/adjacency_knn.Rd
no_license
jkrijthe/RSSL
R
false
true
609
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LaplacianKernelLeastSquaresClassifier.R \name{adjacency_knn} \alias{adjacency_knn} \title{Calculate knn adjacency matrix} \usage{ adjacency_knn(X, distance = "euclidean", k = 6) } \arguments{ \item{X}{matrix; input matrix} \item{distance}{ch...
#' @title A method to query Opencga Files #' @aliases OpencgaFiles #' @description This method allow the user to create, update and explore #' files data and metadta #' @export setMethod("OpencgaFiles", "Opencga", definition = function(object, id=NULL, ac...
/R/OpencgaFiles-methods.R
permissive
melsiddieg/opencgaR
R
false
false
592
r
#' @title A method to query Opencga Files #' @aliases OpencgaFiles #' @description This method allow the user to create, update and explore #' files data and metadta #' @export setMethod("OpencgaFiles", "Opencga", definition = function(object, id=NULL, ac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vc_email.R \name{vc_email} \alias{vc_email} \title{Validates If Email} \usage{ vc_email(data, x, ...) } \arguments{ \item{data}{A data frame.} \item{x}{Column name from \code{data} (character string).} \item{\dots}{ignored.} } \description{...
/man/vc_email.Rd
no_license
data-steve/valiData
R
false
true
539
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vc_email.R \name{vc_email} \alias{vc_email} \title{Validates If Email} \usage{ vc_email(data, x, ...) } \arguments{ \item{data}{A data frame.} \item{x}{Column name from \code{data} (character string).} \item{\dots}{ignored.} } \description{...
library(stargazer) library(MASS) side_lenght_hypercube <- 10 number_of_points_to_generate <-4000 maximum_dimension <- 200 minimum_dimension <- 2 corner_of_hypercube = NA parameters_beetwen_points = matrix(NA, nrow = 200, ncol = 3) parameters_beetwen_point_and_corner = matrix(NA, nrow = 200, ncol = 3) colnames(param...
/RandomPointsInHyperCube.r
no_license
mmajews/RScripts
R
false
false
5,190
r
library(stargazer) library(MASS) side_lenght_hypercube <- 10 number_of_points_to_generate <-4000 maximum_dimension <- 200 minimum_dimension <- 2 corner_of_hypercube = NA parameters_beetwen_points = matrix(NA, nrow = 200, ncol = 3) parameters_beetwen_point_and_corner = matrix(NA, nrow = 200, ncol = 3) colnames(param...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/10-Datatype-Class.R \docType{class} \name{PrimitiveSingleEnum-class} \alias{ComplexEnum} \alias{ComplexSingleEnum-class} \alias{DatatypeEnum} \alias{DatatypeSingleEnum-class} \alias{PrimitiveEnum} \alias{PrimitiveSingleEnum-class} \ti...
/man/Enum.Rd
no_license
tengfei/cwl.R
R
false
false
525
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/10-Datatype-Class.R \docType{class} \name{PrimitiveSingleEnum-class} \alias{ComplexEnum} \alias{ComplexSingleEnum-class} \alias{DatatypeEnum} \alias{DatatypeSingleEnum-class} \alias{PrimitiveEnum} \alias{PrimitiveSingleEnum-class} \ti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multiscaleSVDxpts.R \name{knnSmoothImage} \alias{knnSmoothImage} \title{k-nearest neighbors constrained image smoothing} \usage{ knnSmoothImage( img, mask, radius, intensityWeight = 0.1, spatialSigma = 20, iterations = 1, return...
/man/knnSmoothImage.Rd
permissive
ANTsX/ANTsR
R
false
true
1,274
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multiscaleSVDxpts.R \name{knnSmoothImage} \alias{knnSmoothImage} \title{k-nearest neighbors constrained image smoothing} \usage{ knnSmoothImage( img, mask, radius, intensityWeight = 0.1, spatialSigma = 20, iterations = 1, return...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service NULL METADATA <- list( service_name = "es", endpoints = list("*" = "es.{region}.amazonaws.com", "cn-*" = "es.{region}.amazonaws.com.cn"), service_id = "Elasticsearch Service", api_version = "201...
/service/paws.elasticsearchservice/R/paws.elasticsearchservice_service.R
permissive
CR-Mercado/paws
R
false
false
511
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service NULL METADATA <- list( service_name = "es", endpoints = list("*" = "es.{region}.amazonaws.com", "cn-*" = "es.{region}.amazonaws.com.cn"), service_id = "Elasticsearch Service", api_version = "201...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_methods.R \name{project_methods} \alias{project_methods} \title{Functions for calculating rates used for projecting} \description{ The functions defined in the file project_methods calculate the various quantities needed to project th...
/man/project_methods.Rd
no_license
gustavdelius/mizer
R
false
true
1,860
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/project_methods.R \name{project_methods} \alias{project_methods} \title{Functions for calculating rates used for projecting} \description{ The functions defined in the file project_methods calculate the various quantities needed to project th...
library(shiny) # Define UI for dataset viewer application shinyUI(fluidPage( # Application title. titlePanel("Amsterdam Transportation"), # Sidebar with controls to select a dataset and specify the # number of observations to view. The helpText function is # also used to include clarifying text. Most notab...
/ui.R
no_license
Const4nce/amsterdam-transportation-data-product-course
R
false
false
1,791
r
library(shiny) # Define UI for dataset viewer application shinyUI(fluidPage( # Application title. titlePanel("Amsterdam Transportation"), # Sidebar with controls to select a dataset and specify the # number of observations to view. The helpText function is # also used to include clarifying text. Most notab...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_wyniki_wyskalowane.R \name{pobierz_wyniki_wyskalowane} \alias{pobierz_wyniki_wyskalowane} \title{Pobieranie surowych wynikow egzaminu} \usage{ pobierz_wyniki_wyskalowane( rodzajEgzaminu, lata = NULL, nadpisz = FALSE, daneKonte...
/man/pobierz_wyniki_wyskalowane.Rd
permissive
tzoltak/EWDdane
R
false
true
3,250
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_wyniki_wyskalowane.R \name{pobierz_wyniki_wyskalowane} \alias{pobierz_wyniki_wyskalowane} \title{Pobieranie surowych wynikow egzaminu} \usage{ pobierz_wyniki_wyskalowane( rodzajEgzaminu, lata = NULL, nadpisz = FALSE, daneKonte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.R \name{read_hla_xml} \alias{read_hla_xml} \alias{update_hla_xml} \title{Fetch or update the IPD-IMGT/HLA hla.xml file} \usage{ read_hla_xml(db_path = getOption("hlatools.local_repos"), remote = FALSE) update_hla_xml(db_path = getOpt...
/man/read_hla_xml.Rd
no_license
Mingchenchen/hlatools
R
false
true
800
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse.R \name{read_hla_xml} \alias{read_hla_xml} \alias{update_hla_xml} \title{Fetch or update the IPD-IMGT/HLA hla.xml file} \usage{ read_hla_xml(db_path = getOption("hlatools.local_repos"), remote = FALSE) update_hla_xml(db_path = getOpt...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/contains.R \name{contains.boolmat} \alias{contains.boolmat} \title{Determine if a boolean matrix contains \code{var}} \usage{ \method{contains}{boolmat}(A, ind, var) } \arguments{ \item{A}{array} \item{ind}{index} \item{var}{variabl...
/pkg/man/contains.boolmat.Rd
no_license
jenifferYingyiWu/editrules
R
false
false
416
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/contains.R \name{contains.boolmat} \alias{contains.boolmat} \title{Determine if a boolean matrix contains \code{var}} \usage{ \method{contains}{boolmat}(A, ind, var) } \arguments{ \item{A}{array} \item{ind}{index} \item{var}{variabl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_visuals.R \name{spatDimCellPlot} \alias{spatDimCellPlot} \title{spatDimCellPlot} \usage{ spatDimCellPlot(gobject, ...) } \arguments{ \item{gobject}{giotto object} \item{plot_alignment}{direction to align plot} \item{spat_enr_names}{...
/man/spatDimCellPlot.Rd
permissive
skyyuntian/Giotto
R
false
true
3,842
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_visuals.R \name{spatDimCellPlot} \alias{spatDimCellPlot} \title{spatDimCellPlot} \usage{ spatDimCellPlot(gobject, ...) } \arguments{ \item{gobject}{giotto object} \item{plot_alignment}{direction to align plot} \item{spat_enr_names}{...
context("occ_search") # Search by key key <- 3119195 tt <- occ_search(taxonKey=key, limit=2) uu <- occ_search(taxonKey=key, limit=20) vv <- occ_search(taxonKey=key, return='meta') test_that("returns the correct class", { expect_is(tt$meta, "list") expect_is(tt$meta$endOfRecords, "logical") expect_is(tt$data, "d...
/tests/testthat/test-occ_search.r
permissive
imclab/rgbif
R
false
false
2,687
r
context("occ_search") # Search by key key <- 3119195 tt <- occ_search(taxonKey=key, limit=2) uu <- occ_search(taxonKey=key, limit=20) vv <- occ_search(taxonKey=key, return='meta') test_that("returns the correct class", { expect_is(tt$meta, "list") expect_is(tt$meta$endOfRecords, "logical") expect_is(tt$data, "d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/col_is_logical.R \name{col_is_logical} \alias{col_is_logical} \alias{expect_col_is_logical} \alias{test_col_is_logical} \title{Do the columns contain logical values?} \usage{ col_is_logical(x, columns, actions = NULL, brief = NULL, active = T...
/man/col_is_logical.Rd
permissive
jordanmllr5/pointblank
R
false
true
7,390
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/col_is_logical.R \name{col_is_logical} \alias{col_is_logical} \alias{expect_col_is_logical} \alias{test_col_is_logical} \title{Do the columns contain logical values?} \usage{ col_is_logical(x, columns, actions = NULL, brief = NULL, active = T...
# Kaplan Violante # need min of 3 periods for identification, so pre-recession sample is 2003,5,7; post-recession is 2007,09,11 # sample selection #We start with the PSID Core Sample and drop households with #missing information on race, education, or state of residence, and those whose income #grows more than 500 pe...
/DoFiles/KV.R
no_license
racheljoyforshaw/hetCyclicalMPCS
R
false
false
25,095
r
# Kaplan Violante # need min of 3 periods for identification, so pre-recession sample is 2003,5,7; post-recession is 2007,09,11 # sample selection #We start with the PSID Core Sample and drop households with #missing information on race, education, or state of residence, and those whose income #grows more than 500 pe...
# Get & reshape JHU data # Source: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data library(magrittr) # Arguments # data = c("cumulative", "daily") # anomaly_threshold = minimum death count above which to adjust anomalies (e.g 100) # check_adjustmente = boolean, if TRUE prints which states ...
/utils/get-us-data.R
permissive
signaturescience/covid-us-forecasts
R
false
false
6,088
r
# Get & reshape JHU data # Source: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data library(magrittr) # Arguments # data = c("cumulative", "daily") # anomaly_threshold = minimum death count above which to adjust anomalies (e.g 100) # check_adjustmente = boolean, if TRUE prints which states ...
library(dplyr) mtcars<-mtcars #July_26_day6 #ANOVA : Analysis of variance: is the test to find out the group means #whether group means are same or different #H0: in anova is always that there is no difference between means and #H1: is always that the means are not all equal #DEP VAR MUST BE : CONTINOUS VAR #INDEP ...
/July26/R-Analysis.R
no_license
hackergambler/R-Program-DS
R
false
false
2,260
r
library(dplyr) mtcars<-mtcars #July_26_day6 #ANOVA : Analysis of variance: is the test to find out the group means #whether group means are same or different #H0: in anova is always that there is no difference between means and #H1: is always that the means are not all equal #DEP VAR MUST BE : CONTINOUS VAR #INDEP ...
# Setup ------------------------------------------------------------------- rm(list=ls()) # Clears workspace #system("sudo apt install libgeos-dev libproj-dev libgdal-dev libudunits2-dev -y") # Install linux geospatial dependencies # Install/call libraries #install.packages("renv") #renv::init() PKG <- c("googledri...
/2019Celldata-processing.R
no_license
rmgriffin/NOAA-ESLR
R
false
false
2,915
r
# Setup ------------------------------------------------------------------- rm(list=ls()) # Clears workspace #system("sudo apt install libgeos-dev libproj-dev libgdal-dev libudunits2-dev -y") # Install linux geospatial dependencies # Install/call libraries #install.packages("renv") #renv::init() PKG <- c("googledri...
auc = function(df, span = 0.3){ # standard normalize between 0 - 1 normalize = function(x){ (x - min(x, na.rm=TRUE))/(max(x,na.rm=TRUE) - min(x, na.rm=TRUE)) } # sort things, database isn't ordered gcc = df$gcc[order(df$date)] date = df$date[order(df$date)] # create a complete time series (...
/auc_new.r
no_license
bnkramer/analysis_cropmonitor
R
false
false
992
r
auc = function(df, span = 0.3){ # standard normalize between 0 - 1 normalize = function(x){ (x - min(x, na.rm=TRUE))/(max(x,na.rm=TRUE) - min(x, na.rm=TRUE)) } # sort things, database isn't ordered gcc = df$gcc[order(df$date)] date = df$date[order(df$date)] # create a complete time series (...
cprdata=read.csv("CPR Training in Middle Schools recode.csv",header=TRUE,sep=",") ################ frequency analysis ############# sum(cprdata$has_responded == "True") summary(cprdata$has_responded) options(digits=4) prop.table(table(cprdata$I.am)) ## demographic descriptive with(cprdata,addmargins(table(cprd...
/Dr Moschella's project/CPR and AED project/cpr code middle.R
no_license
heli0001/ghs_projects
R
false
false
8,721
r
cprdata=read.csv("CPR Training in Middle Schools recode.csv",header=TRUE,sep=",") ################ frequency analysis ############# sum(cprdata$has_responded == "True") summary(cprdata$has_responded) options(digits=4) prop.table(table(cprdata$I.am)) ## demographic descriptive with(cprdata,addmargins(table(cprd...
#nbp ui.R shinyUI(fluidPage( titlePanel("NBP Monthly Abundance Index"), sidebarLayout( sidebarPanel( selectInput("species","Species:",levels(factor(sp.months$Species)),multiple=T, selected=c("Barn Swallow","Tree Swallow","Violet-green Swallow","Cliff Swallow", ...
/ui.R
no_license
cjbattey/NBP
R
false
false
695
r
#nbp ui.R shinyUI(fluidPage( titlePanel("NBP Monthly Abundance Index"), sidebarLayout( sidebarPanel( selectInput("species","Species:",levels(factor(sp.months$Species)),multiple=T, selected=c("Barn Swallow","Tree Swallow","Violet-green Swallow","Cliff Swallow", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/composition_metrics.R \name{pct_hydro_ept} \alias{pct_hydro_ept} \title{Percentage EPT Individuals Identified as Hydropsychids} \usage{ pct_hydro_ept(order.wide, family.wide) } \arguments{ \item{order.wide}{Taxonomic counts aggregated at the ...
/man/pct_hydro_ept.Rd
no_license
esocid/Benthos
R
false
true
839
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/composition_metrics.R \name{pct_hydro_ept} \alias{pct_hydro_ept} \title{Percentage EPT Individuals Identified as Hydropsychids} \usage{ pct_hydro_ept(order.wide, family.wide) } \arguments{ \item{order.wide}{Taxonomic counts aggregated at the ...
## for the dashboard ## ## For leaf 1 library(leaflet) library(ggdag) library(dagitty) g <- dagitty('dag { Pathology [pos="0,3"] Slope [pos="1,2"] Survival [pos="1,4"] CR [pos="1,1"] BaseBrain [pos="2,4"] CogLevel [pos="2,3"] Tr...
/JTalks/DAG_plots.R
no_license
Teresa1207/JTalks
R
false
false
3,606
r
## for the dashboard ## ## For leaf 1 library(leaflet) library(ggdag) library(dagitty) g <- dagitty('dag { Pathology [pos="0,3"] Slope [pos="1,2"] Survival [pos="1,4"] CR [pos="1,1"] BaseBrain [pos="2,4"] CogLevel [pos="2,3"] Tr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{female_avg_pop} \alias{female_avg_pop} \title{Average frmale population by district} \format{A data frame with 120 rows and 3 variables: \itemize{ \item \code{district}: name of the district without accent ...
/man/female_avg_pop.Rd
no_license
LucieContamin/HCM
R
false
true
883
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{female_avg_pop} \alias{female_avg_pop} \title{Average frmale population by district} \format{A data frame with 120 rows and 3 variables: \itemize{ \item \code{district}: name of the district without accent ...
read_fun <- function(){ fun2fun<-read.csv("data/funToTheFun.csv") fun2fun <- tidyr::spread(fun2fun,key = trait_name,value = value,convert = TRUE) return(fun2fun) } fun_to_counts<- function(fun2fun) { #get rid of variables not used fun2fun <- fun2fun[,-which(names(fun2fun) %in% c("obj_id","species","studyName...
/fun_processing.R
no_license
IvanV87/fungaltraits
R
false
false
5,982
r
read_fun <- function(){ fun2fun<-read.csv("data/funToTheFun.csv") fun2fun <- tidyr::spread(fun2fun,key = trait_name,value = value,convert = TRUE) return(fun2fun) } fun_to_counts<- function(fun2fun) { #get rid of variables not used fun2fun <- fun2fun[,-which(names(fun2fun) %in% c("obj_id","species","studyName...
library('ggplot2') #------------------------------------------------------- #------- Data Incubator Challenge: Question 3 ---------- #-------- Fantasy Football and Data Science ------------ #------------------------------------------------------- rm(list = ls()) gc(verbose = FALSE) # Load the data into a dataframe ---...
/Fantasy-Football.R
no_license
MiguelR90/DataIncubator
R
false
false
1,576
r
library('ggplot2') #------------------------------------------------------- #------- Data Incubator Challenge: Question 3 ---------- #-------- Fantasy Football and Data Science ------------ #------------------------------------------------------- rm(list = ls()) gc(verbose = FALSE) # Load the data into a dataframe ---...
# function to create artificial trades data, with prices for each instrument drawn from a log-normal distribution # each row represents an unique trading symbol # arguments: number of instruments and maximum number of trades for a single instrument symbol_data_creator <- function( n_instruments, max_n_trades...
/combine_by_price_similarity.R
no_license
morchius/r_snippets
R
false
false
3,794
r
# function to create artificial trades data, with prices for each instrument drawn from a log-normal distribution # each row represents an unique trading symbol # arguments: number of instruments and maximum number of trades for a single instrument symbol_data_creator <- function( n_instruments, max_n_trades...
library(tidyr) library(dplyr) library(ggplot2) library(readr) library(sampling) library(ggthemes) source('R/models.r') ### Treating survey data as population pums <- read_csv('Data/ss14pmn.csv') pums <- pums %>% dplyr::select(PUMA, PWGTP, SEX, RAC1P, POVPIP, HICOV) %>% remove_missing() %>% mutate(PWGTP=as.numeri...
/R/example.R
no_license
paparker/Unit_Level_Non-Gaussian
R
false
false
3,797
r
library(tidyr) library(dplyr) library(ggplot2) library(readr) library(sampling) library(ggthemes) source('R/models.r') ### Treating survey data as population pums <- read_csv('Data/ss14pmn.csv') pums <- pums %>% dplyr::select(PUMA, PWGTP, SEX, RAC1P, POVPIP, HICOV) %>% remove_missing() %>% mutate(PWGTP=as.numeri...
library(loo) library(tidyverse) library(rstan) library(ggridges) library(rethinking) # Data load(file = "./data/snod.RData") set.seed(125) d %<>% filter(image %in% sample(unique(image),20), subj %in% sample(unique(subj),20)) %>% mutate(image = as.integer(factor(image)), subj = as.integer(fact...
/scripts/posterior_check_ARspell2MoG2.R
no_license
jensroes/SNODNAME
R
false
false
4,966
r
library(loo) library(tidyverse) library(rstan) library(ggridges) library(rethinking) # Data load(file = "./data/snod.RData") set.seed(125) d %<>% filter(image %in% sample(unique(image),20), subj %in% sample(unique(subj),20)) %>% mutate(image = as.integer(factor(image)), subj = as.integer(fact...
setwd("C:/Users/miqui/OneDrive/R Projects/MinitabReadWrite Project") library(rio) library(foreign) install_formats() import("AutoSpecs.mwx") # Doesn't work read.mtp("AutoSpecs.MTW") read.mtp("AutoSpecs.mwx")
/MinitabReadWrite.R
no_license
N3uralN3twork/R-Projects
R
false
false
211
r
setwd("C:/Users/miqui/OneDrive/R Projects/MinitabReadWrite Project") library(rio) library(foreign) install_formats() import("AutoSpecs.mwx") # Doesn't work read.mtp("AutoSpecs.MTW") read.mtp("AutoSpecs.mwx")
# Tabulate index changes library(redux) library(RQuantLib) library(quantmod) library(zoo) options(scipen=999) #data.env<- new.env() if(is.null(getOption("datafolder"))){ datafolder="/home/psharma/Dropbox/rfiles/data/" }else{ datafolder=getOption("datafolder") } specify_decimal <- function(x, k) as.numeric(trimws...
/R/SupportFunctions.R
no_license
pankaj3009/rtrade
R
false
false
96,570
r
# Tabulate index changes library(redux) library(RQuantLib) library(quantmod) library(zoo) options(scipen=999) #data.env<- new.env() if(is.null(getOption("datafolder"))){ datafolder="/home/psharma/Dropbox/rfiles/data/" }else{ datafolder=getOption("datafolder") } specify_decimal <- function(x, k) as.numeric(trimws...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check-files-manifest.R \name{check_files_manifest} \alias{check_files_manifest} \title{Check that files are present in manifest} \usage{ check_files_manifest(manifest, filenames, strict = FALSE, success_msg = "All required files are present...
/man/check_files_manifest.Rd
permissive
brucehoff/dccvalidator
R
false
true
1,387
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check-files-manifest.R \name{check_files_manifest} \alias{check_files_manifest} \title{Check that files are present in manifest} \usage{ check_files_manifest(manifest, filenames, strict = FALSE, success_msg = "All required files are present...
install.packages("caret") library(caret) confusion_test <- total_sample[1:20000, best_feat[1:5] ] confusion_train <- total_sample[20001: 60000, best_feat[1:5] ] confusion_train$target <- as.factor(total_sample[20001: 60000, "target"]) confusion_targets <- as.factor(total_sample[1:20000, "target"]) confusi...
/Confusion-Matrix.R
no_license
munozmiguel15/189Final
R
false
false
612
r
install.packages("caret") library(caret) confusion_test <- total_sample[1:20000, best_feat[1:5] ] confusion_train <- total_sample[20001: 60000, best_feat[1:5] ] confusion_train$target <- as.factor(total_sample[20001: 60000, "target"]) confusion_targets <- as.factor(total_sample[1:20000, "target"]) confusi...
# Unit 3, The Framingham Heart Study # Video 3 # Read in the dataset framingham = read.csv("framingham.csv") # Look at structure str(framingham) # Load the library caTools library(caTools) # Randomly split the data into training and testing sets set.seed(1000) split = sample.split(framingham$TenYearCHD, SplitRatio...
/Week3/Unit3_Framingham.R
no_license
wiflore/Analytics-on-Edge
R
false
false
973
r
# Unit 3, The Framingham Heart Study # Video 3 # Read in the dataset framingham = read.csv("framingham.csv") # Look at structure str(framingham) # Load the library caTools library(caTools) # Randomly split the data into training and testing sets set.seed(1000) split = sample.split(framingham$TenYearCHD, SplitRatio...
context( "sfc_multipoints " ) test_that("various objects converted to sfc_MULTIPOINT objects",{ m <- matrix() expect_error( sfheaders:::rcpp_sfc_multipoint( m, NULL, NULL ), "sfheaders - unsupported multipoint type") m <- matrix(c(0,0), ncol = 2) res <- sfheaders:::rcpp_sfc_multipoint( m, NULL, NULL ) exp...
/tests/testthat/test-sfc_multipoint.R
no_license
mdsumner/sfheaders
R
false
false
7,225
r
context( "sfc_multipoints " ) test_that("various objects converted to sfc_MULTIPOINT objects",{ m <- matrix() expect_error( sfheaders:::rcpp_sfc_multipoint( m, NULL, NULL ), "sfheaders - unsupported multipoint type") m <- matrix(c(0,0), ncol = 2) res <- sfheaders:::rcpp_sfc_multipoint( m, NULL, NULL ) exp...
#1. F<-function(v) v[1]*v[3]-v[2]^2 v0 <- c(4,2,1) g<-function(v) c(v[1]^2, v[1]*v[2]^2, v[2]^4) v1<-c(2, 1) #a) Dg <- jacobian(g, v1); Dg #since the basis is the image of Dg #the basis is c(4,1,0) c(0,4,4) #b) #since the basis of the image is in the kernel of dF DF <- grad(F, v0); DF DF%*%Dg[,1] DF%*%Dg[,2] ...
/code.R
no_license
nm1874/week12_workshop
R
false
false
955
r
#1. F<-function(v) v[1]*v[3]-v[2]^2 v0 <- c(4,2,1) g<-function(v) c(v[1]^2, v[1]*v[2]^2, v[2]^4) v1<-c(2, 1) #a) Dg <- jacobian(g, v1); Dg #since the basis is the image of Dg #the basis is c(4,1,0) c(0,4,4) #b) #since the basis of the image is in the kernel of dF DF <- grad(F, v0); DF DF%*%Dg[,1] DF%*%Dg[,2] ...
setwd("~/RData3/exdata-data-household_power_consumption") energy <- read.table("household_power_consumption.txt", header = TRUE, sep= ";", na.strings = "?", stringsAsFactors = FALSE) str(energy) summary(energy) energy$ddd <- energy$Date feb2007 <- subset(energy, energy$ddd == "1/2/2007" | energy$ddd == "2/2/2007") fe...
/plot2.R
no_license
rdun2564/ExData_Plotting1
R
false
false
695
r
setwd("~/RData3/exdata-data-household_power_consumption") energy <- read.table("household_power_consumption.txt", header = TRUE, sep= ";", na.strings = "?", stringsAsFactors = FALSE) str(energy) summary(energy) energy$ddd <- energy$Date feb2007 <- subset(energy, energy$ddd == "1/2/2007" | energy$ddd == "2/2/2007") fe...
### Connect to Cytoscape via CyREST # # This script will show you how to connect to Cytoscape from R using CyREST. It will also cover # the installation and check of Cytosacpe Apps and demonstrate some basic functionality of CyREST, # commands and r2cytoscape. # # This is helpful to run PRIOR to workshops and other tu...
/for-scripters/R/check-cytoscape-connection.R
permissive
vivelespoireaux/cytoscape-automation
R
false
false
4,731
r
### Connect to Cytoscape via CyREST # # This script will show you how to connect to Cytoscape from R using CyREST. It will also cover # the installation and check of Cytosacpe Apps and demonstrate some basic functionality of CyREST, # commands and r2cytoscape. # # This is helpful to run PRIOR to workshops and other tu...
############## # loadingplot ############## #' @export loadingplot <- function (x, ...) UseMethod("loadingplot") #' @method loadingplot default #' @export loadingplot.default <- function(x, at=NULL, threshold=quantile(x,0.75), axis=1, fac=NULL, byfac=FALSE, lab=NULL, cex.lab=0.7, cex.fac=1, lab...
/R/loadingplot.R
no_license
thibautjombart/adegenet
R
false
false
2,827
r
############## # loadingplot ############## #' @export loadingplot <- function (x, ...) UseMethod("loadingplot") #' @method loadingplot default #' @export loadingplot.default <- function(x, at=NULL, threshold=quantile(x,0.75), axis=1, fac=NULL, byfac=FALSE, lab=NULL, cex.lab=0.7, cex.fac=1, lab...
library(DESeq2); library(reshape2); library(ggplot2) source("D:\\Dropbox\\R programming\\My functions\\namesplit.R") df <- read.csv("D:\\Dropbox\\Hsieh Lab\\Data Analysis\\Foxp3 RORgt Figures\\CleanedFoxp3RORgt.csv", header = T) tis <- "Colon" a <- 0.05 df.1 <- subset(df, tissue == tis) df.1 <- subset(df.1,...
/2 - Comparative sequence figures/Volcano plot DESeq.R
no_license
BenSolomon/ManuscriptFigureAnalysis
R
false
false
3,916
r
library(DESeq2); library(reshape2); library(ggplot2) source("D:\\Dropbox\\R programming\\My functions\\namesplit.R") df <- read.csv("D:\\Dropbox\\Hsieh Lab\\Data Analysis\\Foxp3 RORgt Figures\\CleanedFoxp3RORgt.csv", header = T) tis <- "Colon" a <- 0.05 df.1 <- subset(df, tissue == tis) df.1 <- subset(df.1,...
setClass("rectangle", representation(width="numeric", height="numeric"), prototype(width=0, height=0), contains=("shape") ) # accessors for the width & height setGeneric("getWidth", function(this) standardGeneric("getWidth")) setMethod("getWidth", "rectangle", function(this) { this@width } ) set...
/classRectangle.R
no_license
nurur/R-Programming
R
false
false
1,075
r
setClass("rectangle", representation(width="numeric", height="numeric"), prototype(width=0, height=0), contains=("shape") ) # accessors for the width & height setGeneric("getWidth", function(this) standardGeneric("getWidth")) setMethod("getWidth", "rectangle", function(this) { this@width } ) set...
#' Transcript x Protein Domain matrix: small matrix for examples #' #' #' @name TxD #' #' @return A matrix containing the relates Transcripts with Protein Domains #' #' @format A \code{matrix} object #' #' @usage data(TxD) NULL
/R/TxD.R
no_license
jpromeror/EventPointer
R
false
false
228
r
#' Transcript x Protein Domain matrix: small matrix for examples #' #' #' @name TxD #' #' @return A matrix containing the relates Transcripts with Protein Domains #' #' @format A \code{matrix} object #' #' @usage data(TxD) NULL
is.t <- function(x,m,a=10,n0=NULL) { p=rep(0,m+2); y=rep(0,m+2); q=0; x2=var(x); if(is.null(n0)) { n0=2*x2/(x2+1); df=m; } else { df=m+1; } if(n0>0) { di=max(x)-min(x); for(i in 1:m) { p[i]=pt(min(x)+di*i/m,n0)-pt(min(x)+di*(i-1)/m,n0); if(p[i]==0) { ...
/DnE/R/is.t.R
no_license
ingted/R-Examples
R
false
false
1,019
r
is.t <- function(x,m,a=10,n0=NULL) { p=rep(0,m+2); y=rep(0,m+2); q=0; x2=var(x); if(is.null(n0)) { n0=2*x2/(x2+1); df=m; } else { df=m+1; } if(n0>0) { di=max(x)-min(x); for(i in 1:m) { p[i]=pt(min(x)+di*i/m,n0)-pt(min(x)+di*(i-1)/m,n0); if(p[i]==0) { ...
# Course :CS 513 Data Mining # First Name : Neil # Last Name : Gupte # Id : 10445674 # purpose : hw 8 hclust rm(list=ls()) cancer<-read.csv("wisc_bc_ContinuousVar.csv",na.strings = '?') View(cancer) summary(cancer) table(cancer$diagnosis) #To factor the data set cancer<-...
/hw8 clust/hw8_hclust.R
no_license
neilgupte75/CS_513_KDD_Stevens_Neil
R
false
false
504
r
# Course :CS 513 Data Mining # First Name : Neil # Last Name : Gupte # Id : 10445674 # purpose : hw 8 hclust rm(list=ls()) cancer<-read.csv("wisc_bc_ContinuousVar.csv",na.strings = '?') View(cancer) summary(cancer) table(cancer$diagnosis) #To factor the data set cancer<-...
context("get.tau.permute") test_that("get.tau.permute returns appropriate values for test case 1 (equilateral triangle)" ,{ x <- rbind(c(1,0,0), c(1,1,0),c(2,.5,sqrt(.75))) colnames(x) <-c("type","x","y") test <- function(a,b) { if (a[1] != 1) return(3) if (b[1] == 2) return(1) re...
/inst/tests/test-gettaupermute.r
no_license
HopkinsIDD/IDSpatialStats
R
false
false
5,987
r
context("get.tau.permute") test_that("get.tau.permute returns appropriate values for test case 1 (equilateral triangle)" ,{ x <- rbind(c(1,0,0), c(1,1,0),c(2,.5,sqrt(.75))) colnames(x) <-c("type","x","y") test <- function(a,b) { if (a[1] != 1) return(3) if (b[1] == 2) return(1) re...
#' International Classification of Activities for Time Use Statistics 2016 #' #' See \url{https://unstats.un.org/unsd/classifications/Family/Detail/2083} #' #' @source \url{https://unstats.un.org/unsd/demographic-social/time-use/icatus-2016/} "icatus_2016" #' Australia Time Use Acitivity Classification #' #' See \url{...
/R/data.R
no_license
asiripanich/timeuse
R
false
false
637
r
#' International Classification of Activities for Time Use Statistics 2016 #' #' See \url{https://unstats.un.org/unsd/classifications/Family/Detail/2083} #' #' @source \url{https://unstats.un.org/unsd/demographic-social/time-use/icatus-2016/} "icatus_2016" #' Australia Time Use Acitivity Classification #' #' See \url{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eafPlot.R \name{.eafPlot} \alias{.eafPlot} \title{Auxiliary function for \code{eafPlot}} \usage{ .eafPlot( x, freq_x, freq_reference, inverse_freq_x, inverse_freq_reference, title = NULL ) } \description{ Auxiliary function for \c...
/man/dot-eafPlot.Rd
permissive
isglobal-brge/dsOmicsClient
R
false
true
335
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eafPlot.R \name{.eafPlot} \alias{.eafPlot} \title{Auxiliary function for \code{eafPlot}} \usage{ .eafPlot( x, freq_x, freq_reference, inverse_freq_x, inverse_freq_reference, title = NULL ) } \description{ Auxiliary function for \c...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arepa.R \docType{package} \name{arepa} \alias{arepa} \alias{arepa-package} \title{An R Package for EPA data retrieving and processing} \description{ arepa allows for downloading and processing EPA AQS data. }
/man/arepa.Rd
no_license
gpapadog/arepa
R
false
false
296
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arepa.R \docType{package} \name{arepa} \alias{arepa} \alias{arepa-package} \title{An R Package for EPA data retrieving and processing} \description{ arepa allows for downloading and processing EPA AQS data. }
% Generated by roxygen2: do not edit by hand % Please edit documentation in Helpers/FDRControlHelpers.R \name{ExpectedFDR_trueFDR_Power} \alias{ExpectedFDR_trueFDR_Power} \title{compute expeted true FDR and power} \usage{ ExpectedFDR_trueFDR_Power(pvalue, outlier) } \arguments{ \item{pvalue}{a vector of pvalue for each...
/ThesisRpackage/man/ExpectedFDR_trueFDR_Power.Rd
permissive
cayek/Thesis
R
false
true
498
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in Helpers/FDRControlHelpers.R \name{ExpectedFDR_trueFDR_Power} \alias{ExpectedFDR_trueFDR_Power} \title{compute expeted true FDR and power} \usage{ ExpectedFDR_trueFDR_Power(pvalue, outlier) } \arguments{ \item{pvalue}{a vector of pvalue for each...
library(factorstochvol) ### Name: factorstochvol-package ### Title: Bayesian Estimation of (Sparse) Latent Factor Stochastic ### Volatility Models through MCMC ### Aliases: factorstochvol-package ### Keywords: models package ts ### ** Examples ## Not run: ##D set.seed(1) ##D ##D # simulate data from a (small) f...
/data/genthat_extracted_code/factorstochvol/examples/factorstochvol-package.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,577
r
library(factorstochvol) ### Name: factorstochvol-package ### Title: Bayesian Estimation of (Sparse) Latent Factor Stochastic ### Volatility Models through MCMC ### Aliases: factorstochvol-package ### Keywords: models package ts ### ** Examples ## Not run: ##D set.seed(1) ##D ##D # simulate data from a (small) f...
library(plyr) library(ggplot2) s <- read.csv("<filename.csv>", sep=",", row.names=NULL) colnames(s) <- c("date", "type", "desc", "value", "balance", "acc") s$date <- as.Date(s$date, format="%d/%m/%Y") s <- s[,1:5] s$month <- as.Date(cut(s$date, breaks="month")) s <- subset(s, s$value < 0) # Build simple reg...
/StatementAnalyzer.R
no_license
andreabragantini/BankStatementAnalyzer
R
false
false
1,559
r
library(plyr) library(ggplot2) s <- read.csv("<filename.csv>", sep=",", row.names=NULL) colnames(s) <- c("date", "type", "desc", "value", "balance", "acc") s$date <- as.Date(s$date, format="%d/%m/%Y") s <- s[,1:5] s$month <- as.Date(cut(s$date, breaks="month")) s <- subset(s, s$value < 0) # Build simple reg...
library(europepmc) library(tidyr) library(tidyverse) library(ggplot2) library(stringr) library(shiny) library(shinybusy) # Create a shiny app that displays top 10 journals, publication counts and publisher names # Create user interface ui <- fluidPage( # Add in a spinner to show progress add_busy_spinner(spin = ...
/shiny_app_euroPMC_explorer.R
no_license
andrewliew86/Basic-expert-identification-profiling-app-with-R
R
false
false
4,368
r
library(europepmc) library(tidyr) library(tidyverse) library(ggplot2) library(stringr) library(shiny) library(shinybusy) # Create a shiny app that displays top 10 journals, publication counts and publisher names # Create user interface ui <- fluidPage( # Add in a spinner to show progress add_busy_spinner(spin = ...
#!/usr/bin/env Rscript args<-commandArgs(TRUE) indels<-read.table(args[1], sep="\t", header=TRUE) mapped <- indels[indels$mapped == 1,] # sum(indels$insertions + indels$deletions) / sum(indels$rlen) * 100 # sum(indels$insertions + indels$deletions) / nrow(indels) indels_per_cent <- sum(mapped$insertions + mapped$deleti...
/scripts/indels.R
no_license
nickloman/benchtop-sequencing-comparison
R
false
false
478
r
#!/usr/bin/env Rscript args<-commandArgs(TRUE) indels<-read.table(args[1], sep="\t", header=TRUE) mapped <- indels[indels$mapped == 1,] # sum(indels$insertions + indels$deletions) / sum(indels$rlen) * 100 # sum(indels$insertions + indels$deletions) / nrow(indels) indels_per_cent <- sum(mapped$insertions + mapped$deleti...
### import the data (either click import or use the function "read.csv"...) and name it "dat" # deal with non-numeric value (same procedure for other variables...) dat$employment <- as.numeric(as.character(dat$bq_current_employees_plan)) dat$employment <- as.numeric(as.character(dat$global_rank)) dat=dat[1:100,] #I on...
/data analysis.R
no_license
Maggiezhang94/GFDP-project-in-R
R
false
false
2,968
r
### import the data (either click import or use the function "read.csv"...) and name it "dat" # deal with non-numeric value (same procedure for other variables...) dat$employment <- as.numeric(as.character(dat$bq_current_employees_plan)) dat$employment <- as.numeric(as.character(dat$global_rank)) dat=dat[1:100,] #I on...
#' @docType package #' #' @importFrom methods as #' NULL
/R/codec-package.R
no_license
BAAQMD/codec
R
false
false
57
r
#' @docType package #' #' @importFrom methods as #' NULL
library(akima) library(zoo) library(sqldf) JpegName <<- paste(TN1,"_OV_MetricTons.jpg",sep="") jpeg(JpegName, width = 1000, height = 800,quality = 100) FileName <-NewCalcName2 FileData2 <- read.csv(file=NewCalcName2 , header=TRUE, sep=",") FileData2$MetricTons <- log10(FileData2$MetricTons) ## log 10 transfo...
/MapWizardi/Tools/scripts/RAEF/Package/AuxFiles/RScripts/PlotOV103018.R
permissive
Joonasha/MapWizard
R
false
false
19,416
r
library(akima) library(zoo) library(sqldf) JpegName <<- paste(TN1,"_OV_MetricTons.jpg",sep="") jpeg(JpegName, width = 1000, height = 800,quality = 100) FileName <-NewCalcName2 FileData2 <- read.csv(file=NewCalcName2 , header=TRUE, sep=",") FileData2$MetricTons <- log10(FileData2$MetricTons) ## log 10 transfo...
#-----------------------------------# # "PValueMat" CLASS DEFINITION # #-----------------------------------# #' Univariate P-Value Matrix #' #' Contains the raw \emph{p}-values and the \emph{p}-values adjusted for #' multiplicity for each pairwise comparison in each variable separately. #' This allows to s...
/SOUP/R/PValueMat.R
no_license
ingted/R-Examples
R
false
false
4,334
r
#-----------------------------------# # "PValueMat" CLASS DEFINITION # #-----------------------------------# #' Univariate P-Value Matrix #' #' Contains the raw \emph{p}-values and the \emph{p}-values adjusted for #' multiplicity for each pairwise comparison in each variable separately. #' This allows to s...
################################################################################## # Building Anamations of Strange Attractors # by: Isaac J. Faber # some source code used from: https://codingclubuc3m.rbind.io/post/2019-10-15/ # make sure to set your working directory ##################################################...
/strange_attractors/strange_attractor_anamation.R
no_license
Adebayomadebayo/tinker
R
false
false
2,563
r
################################################################################## # Building Anamations of Strange Attractors # by: Isaac J. Faber # some source code used from: https://codingclubuc3m.rbind.io/post/2019-10-15/ # make sure to set your working directory ##################################################...
library(glmnet) library(progress) set.seed(123) ## load data load(file="faces400.rda") load(file ="faces100.rda") Xtest <- rbind(test[1:50,],X[351:400,]) Xtrain <- rbind(test[51:100,],X[1:350,]) ind <- sample(1:400,10,replace = FALSE) Xtr <- Xtrain[ind,] ## set parameters art <- "NMF" #"AMr","AMp","OLr...
/bhat-train.R
no_license
danielahertrich/masterthesis
R
false
false
15,293
r
library(glmnet) library(progress) set.seed(123) ## load data load(file="faces400.rda") load(file ="faces100.rda") Xtest <- rbind(test[1:50,],X[351:400,]) Xtrain <- rbind(test[51:100,],X[1:350,]) ind <- sample(1:400,10,replace = FALSE) Xtr <- Xtrain[ind,] ## set parameters art <- "NMF" #"AMr","AMp","OLr...
library(testthat) source("~/anRpackage/myrepo/tests/test-myrepo.R") test_result <- test_dir("~/anRpackage/myrepo/tests", reporter="summary")
/tests/testthat/run_tests.R
no_license
amandineRobert/myrepo
R
false
false
144
r
library(testthat) source("~/anRpackage/myrepo/tests/test-myrepo.R") test_result <- test_dir("~/anRpackage/myrepo/tests", reporter="summary")
UNICODE_WARNING <- paste(c( 'Your code contains a unicode char which cannot be displayed in your ', 'current locale and R will silently convert it to an escaped form when the ', 'R kernel executes this code. This can lead to subtle errors if you use ', 'such chars to do comparisons. For more information...
/R/compat.r
no_license
poplav/IRkernel
R
false
false
1,054
r
UNICODE_WARNING <- paste(c( 'Your code contains a unicode char which cannot be displayed in your ', 'current locale and R will silently convert it to an escaped form when the ', 'R kernel executes this code. This can lead to subtle errors if you use ', 'such chars to do comparisons. For more information...
# plot_integer_matrix ---------------------------------------------------------- #' Plot Matrix of Integer as Coloured Squares #' #' @param x matrix of integer #' @export #' @examples #' plot_integer_matrix(matrix(nrow = 5, byrow = TRUE, c( #' 2, 2, 2, 2, 2, #' 2, 0, 1, 0, 2, #' 2, 1, 1, 1, 2, #' 2, 0, 1, 0, 2...
/R/plot_integer_matrix.R
no_license
hsonne/findblobs
R
false
false
1,048
r
# plot_integer_matrix ---------------------------------------------------------- #' Plot Matrix of Integer as Coloured Squares #' #' @param x matrix of integer #' @export #' @examples #' plot_integer_matrix(matrix(nrow = 5, byrow = TRUE, c( #' 2, 2, 2, 2, 2, #' 2, 0, 1, 0, 2, #' 2, 1, 1, 1, 2, #' 2, 0, 1, 0, 2...
# app_id <- "AAAAAA" # app_secret <- "YYYYYXXXXYYY" # token <- instaOAuth(app_id, app_secret) load("~/Dropbox/credentials/instagram/insta_token") library(instaR) # getting pictures with #euromaidan hashtag euromaidan <- searchInstagram("euromaidan", token, n=100, folder="euromaidan") # getting pictures with #obama h...
/examples.R
no_license
jonneguyt/instaR
R
false
false
1,530
r
# app_id <- "AAAAAA" # app_secret <- "YYYYYXXXXYYY" # token <- instaOAuth(app_id, app_secret) load("~/Dropbox/credentials/instagram/insta_token") library(instaR) # getting pictures with #euromaidan hashtag euromaidan <- searchInstagram("euromaidan", token, n=100, folder="euromaidan") # getting pictures with #obama h...
library(tidyverse) library(ggpubr) library(gridExtra) # import daftar_file <- list.files("./data-raw", pattern="001", full.names = TRUE) list_data <- map(daftar_file, read_csv) df <- map_dfc(daftar_file, read_csv) df2 <- map_dfc(list_data, bind_cols) df2 <- as_tibble(df2) identical(df$hari_promosi1,df$hari_promos...
/script/001_studi-kasus-ok-clean.R
no_license
retuyu88/capstone
R
false
false
1,644
r
library(tidyverse) library(ggpubr) library(gridExtra) # import daftar_file <- list.files("./data-raw", pattern="001", full.names = TRUE) list_data <- map(daftar_file, read_csv) df <- map_dfc(daftar_file, read_csv) df2 <- map_dfc(list_data, bind_cols) df2 <- as_tibble(df2) identical(df$hari_promosi1,df$hari_promos...