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
library(parallel) no_cores <- detectCores() - 1 cl <- makeCluster(no_cores) primary <- '192.168.1.235' machineAddresses <- list( list(host=primary,user='johnmount', ncore=4), list(host='192.168.1.70',user='johnmount', ncore=4) ) spec <- lapply(machineAddresses, function(m...
/multimachine.r
no_license
RWS-data-science/NWB_floating_car_data
R
false
false
688
r
library(parallel) no_cores <- detectCores() - 1 cl <- makeCluster(no_cores) primary <- '192.168.1.235' machineAddresses <- list( list(host=primary,user='johnmount', ncore=4), list(host='192.168.1.70',user='johnmount', ncore=4) ) spec <- lapply(machineAddresses, function(m...
##################################### # Polynomial Harmonic Visualization # # Version 1.3 # # # # February 6, 2018 # # Thomas Kaunzinger # # XCerra Corp. # ##################################### # Libr...
/R/Signal Harmonic Polynomial Visualizer/polynomial.R
no_license
McNibbler/public-projects
R
false
false
4,328
r
##################################### # Polynomial Harmonic Visualization # # Version 1.3 # # # # February 6, 2018 # # Thomas Kaunzinger # # XCerra Corp. # ##################################### # Libr...
# Template setup for n-choice LBA, B=b-A parameterization # External parameters types: A, B, t0, mean_v, sd_v, st0 = 0 (optional) # Internal parameters types: A, b, t0, mean_v, sd_v, st0 = 0 (optional) # Allows for a variable number of accumulators by passing parameter for number # of accumulators in p.df$N[1] #...
/dmc/models/LBA/lbaN_B.R
no_license
lukestrickland/PMcost_inddiffs
R
false
false
2,743
r
# Template setup for n-choice LBA, B=b-A parameterization # External parameters types: A, B, t0, mean_v, sd_v, st0 = 0 (optional) # Internal parameters types: A, b, t0, mean_v, sd_v, st0 = 0 (optional) # Allows for a variable number of accumulators by passing parameter for number # of accumulators in p.df$N[1] #...
print.tpsSim <- function(x, ...) { ## cat("Number of simulations, B:",x$B,"\n") ## if(!is.list(x$strata)) { if(max(x$strata) == 0) { cat("Phase I stratification variable(s):\n") cat("\tAll combinations of\n") for(i in 1:length(x$strataNames)) cat("\t", i, ":", x$strataNames[i], "\n") } ...
/osDesign/R/print.tpsSim.R
no_license
ingted/R-Examples
R
false
false
2,083
r
print.tpsSim <- function(x, ...) { ## cat("Number of simulations, B:",x$B,"\n") ## if(!is.list(x$strata)) { if(max(x$strata) == 0) { cat("Phase I stratification variable(s):\n") cat("\tAll combinations of\n") for(i in 1:length(x$strataNames)) cat("\t", i, ":", x$strataNames[i], "\n") } ...
## Put comments here that give an overall description of what your ## functions do # This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL # init inv set <- function(m) { # set the matrix x x <<- m inv <<- NULL }...
/cachematrix.R
no_license
sibemberg/ProgrammingAssignment2
R
false
false
1,164
r
## Put comments here that give an overall description of what your ## functions do # This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { inv <- NULL # init inv set <- function(m) { # set the matrix x x <<- m inv <<- NULL }...
# --------------------------------------------------- # # Author: Marius D. Pascariu # License: MIT # Last update: Mon Nov 25 19:41:17 2019 # --------------------------------------------------- # # Wrong index expect_error(ReadAHMD(what = "DxDD")) # Wrong country expect_error(ReadAHMD(what = "Dx", ...
/tests/testthat/test_ReadAHMD.R
permissive
palmargisla/MortalityLaws
R
false
false
1,477
r
# --------------------------------------------------- # # Author: Marius D. Pascariu # License: MIT # Last update: Mon Nov 25 19:41:17 2019 # --------------------------------------------------- # # Wrong index expect_error(ReadAHMD(what = "DxDD")) # Wrong country expect_error(ReadAHMD(what = "Dx", ...
context("Model rent assistance") test_that("Values", { library(data.table) sample <- CJ(rent = 1:500, n_dependants = 0, has_partner = FALSE, is_homeowner = FALSE, lives_in_sharehouse = FALSE) m1819_3 <- function(p = 0.75, maxr = 300, minr = 0, ret = "ne...
/grattan/tests/testthat/test_model_rent_assistance.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
5,745
r
context("Model rent assistance") test_that("Values", { library(data.table) sample <- CJ(rent = 1:500, n_dependants = 0, has_partner = FALSE, is_homeowner = FALSE, lives_in_sharehouse = FALSE) m1819_3 <- function(p = 0.75, maxr = 300, minr = 0, ret = "ne...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitGLM.R \name{fitGLM} \alias{fitGLM} \title{fitGLM} \usage{ fitGLM(res, condition, subject_effect = TRUE, pairwise = TRUE, fixed_only = FALSE, verbose = TRUE) } \arguments{ \item{res}{results from \code{scDC_noClustering}, \code{scDC_clust...
/man/fitGLM.Rd
no_license
anu-bioinfo/scdney
R
false
true
1,134
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitGLM.R \name{fitGLM} \alias{fitGLM} \title{fitGLM} \usage{ fitGLM(res, condition, subject_effect = TRUE, pairwise = TRUE, fixed_only = FALSE, verbose = TRUE) } \arguments{ \item{res}{results from \code{scDC_noClustering}, \code{scDC_clust...
#install.packages("rvest") #library(rvest) #URL of the HTML webpage we want to scrape url="http://www.fia.com/events/formula-1-world-championship/season-2015/qualifying-classification" pageGrabber=function(url,extender=FALSE,path='http://www.fia.com'){ if (extender) url=paste(path,url,sep='') #Grab the page rves...
/R/fia_classification_scraper.R
permissive
f1datajunkie/f1djR
R
false
false
7,829
r
#install.packages("rvest") #library(rvest) #URL of the HTML webpage we want to scrape url="http://www.fia.com/events/formula-1-world-championship/season-2015/qualifying-classification" pageGrabber=function(url,extender=FALSE,path='http://www.fia.com'){ if (extender) url=paste(path,url,sep='') #Grab the page rves...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reproduces.r \name{mate.selfpol} \alias{mate.selfpol} \title{Self-pollination} \usage{ mate.selfpol( pop1, pop1.geno.id, pop1.geno, incols = 2, ind.stay, num.prog, ratio ) } \arguments{ \item{pop1}{population information of popu...
/man/mate.selfpol.Rd
permissive
kant/SIMER
R
false
true
1,279
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reproduces.r \name{mate.selfpol} \alias{mate.selfpol} \title{Self-pollination} \usage{ mate.selfpol( pop1, pop1.geno.id, pop1.geno, incols = 2, ind.stay, num.prog, ratio ) } \arguments{ \item{pop1}{population information of popu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Quartile.R \name{Quartile} \alias{Quartile} \title{Calculate quartiles of input table} \usage{ Quartile(df) } \arguments{ \item{df}{Numeric 2 dimension vector} } \value{ Good way: named numeric vector - quartiles of whole input table Bad way...
/man/Quartile.Rd
no_license
Ortem-a/mypackage
R
false
true
563
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Quartile.R \name{Quartile} \alias{Quartile} \title{Calculate quartiles of input table} \usage{ Quartile(df) } \arguments{ \item{df}{Numeric 2 dimension vector} } \value{ Good way: named numeric vector - quartiles of whole input table Bad way...
plot_heatmap = function(mat, cl, min_term = 5, order_by_size = TRUE, exclude_words = character(0), max_words = 10) { cl = as.character(cl) cl_tb = table(cl) cl[cl %in% names(cl_tb[cl_tb < min_term])] = "0" cl = factor(cl, levels = c(setdiff(names(sort(table(cl), decreasing = TRUE)), "0"), "0")) keywords = tapp...
/R/plot.R
no_license
chenx-bob/simplifyGO
R
false
false
2,594
r
plot_heatmap = function(mat, cl, min_term = 5, order_by_size = TRUE, exclude_words = character(0), max_words = 10) { cl = as.character(cl) cl_tb = table(cl) cl[cl %in% names(cl_tb[cl_tb < min_term])] = "0" cl = factor(cl, levels = c(setdiff(names(sort(table(cl), decreasing = TRUE)), "0"), "0")) keywords = tapp...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { j <- NULL set <- function(y){ x <<- y j <<- NULL } get <- function()x setInverse <- function(inverse) j <<- inverse getInverse <- functi...
/cachematrix.R
no_license
Alagowee/ProgrammingAssignment2
R
false
false
717
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { j <- NULL set <- function(y){ x <<- y j <<- NULL } get <- function()x setInverse <- function(inverse) j <<- inverse getInverse <- functi...
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, -4.74825134930961e+189, -6.80033518...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615845858-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
737
r
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, -4.74825134930961e+189, -6.80033518...
# Daily TRMM binary files: # ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42_V7/Daily/YYYY/3B42_daily.YYYY.MM.DD.7.bin # 3-Hourly TRMM binary files: # ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/3B42_V7/YYYYMM/3B42.YYMMDD.HHz.7.precipitation.bin ###############################################...
/scripts/Rscripts/trmmbin2nc.R
permissive
dtcenter/MET
R
false
false
8,019
r
# Daily TRMM binary files: # ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42_V7/Daily/YYYY/3B42_daily.YYYY.MM.DD.7.bin # 3-Hourly TRMM binary files: # ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/3B42_V7/YYYYMM/3B42.YYMMDD.HHz.7.precipitation.bin ###############################################...
#----Vectors---- # A vector is a one-dimensional array. # We can create a vector with all the basic data type # The simplest way to build a vector is to use the c command. # Creating a Numerical Vector: vec_num <- c(1, 10, 49) vec_num class(vec_num) # Creating a Character Vector: vec_chr...
/analytics r edge.R
no_license
luv-gif/analytics-edge-R
R
false
false
2,033
r
#----Vectors---- # A vector is a one-dimensional array. # We can create a vector with all the basic data type # The simplest way to build a vector is to use the c command. # Creating a Numerical Vector: vec_num <- c(1, 10, 49) vec_num class(vec_num) # Creating a Character Vector: vec_chr...
#Opening library required library(dplyr) #download and read data download_url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(download_url, destfile = "data.zip") unzip (zipfile = "data.zip") NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ##...
/plot2.R
no_license
legomar/CourseProject2_ExplorDataAnalysis
R
false
false
1,076
r
#Opening library required library(dplyr) #download and read data download_url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(download_url, destfile = "data.zip") unzip (zipfile = "data.zip") NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ##...
# Workshop 4, Part 2 (Out of class exercise) # # For Part 2, you'll have one week to take the following code and automate the sections labeled: # - Loads Set 1 Data (Lines 88-105) # - Loads Set 2 Data (Lines 106-124) # - Loads Set 3 Data (Lines 125-143) # Each set should be identical, but you'll need to automate how y...
/Workshops/Workshop4/Part2.R
no_license
lindsaywaldrop/CPSC229-Fall2019
R
false
false
6,731
r
# Workshop 4, Part 2 (Out of class exercise) # # For Part 2, you'll have one week to take the following code and automate the sections labeled: # - Loads Set 1 Data (Lines 88-105) # - Loads Set 2 Data (Lines 106-124) # - Loads Set 3 Data (Lines 125-143) # Each set should be identical, but you'll need to automate how y...
#install.packages("pastecs") library(pastecs) library(readr) #importing csv files library(dplyr) #general analysis library(ggplot2) #making charts library(lubridate) #date functions library(reshape2) #use this for melt function to create one record for each team library(tidyr) library(janitor) #use this for doing cro...
/scripts/build_data.R
no_license
striblab/201901-achievementgap
R
false
false
16,001
r
#install.packages("pastecs") library(pastecs) library(readr) #importing csv files library(dplyr) #general analysis library(ggplot2) #making charts library(lubridate) #date functions library(reshape2) #use this for melt function to create one record for each team library(tidyr) library(janitor) #use this for doing cro...
# Download USGS CAWSC discrete chl-a and nutrient data #Cache Slough stations #11455315 - Liberty Island #14455350 - Cache at Ryer #14455385 - Cache abv Ryer Island #above Liberty Island #11455276 - Shag Slough #381829121413401 #11455139 - Toe Drain South (south of Stair Step) #11455140 - Toe Drain North (north of St...
/scripts/functions/f_get_usgs_cawsc_chla_nuts.R
no_license
Delta-Stewardship-Council/swg-21-connectivity
R
false
false
2,916
r
# Download USGS CAWSC discrete chl-a and nutrient data #Cache Slough stations #11455315 - Liberty Island #14455350 - Cache at Ryer #14455385 - Cache abv Ryer Island #above Liberty Island #11455276 - Shag Slough #381829121413401 #11455139 - Toe Drain South (south of Stair Step) #11455140 - Toe Drain North (north of St...
# This is a modified version of the public kernel by Pranav Pandya: # https://www.kaggle.com/pranav84/single-lightgbm-in-r-with-75-mln-rows-lb-0-9690 # Many thanks to Pranav for his work on the original code. # # What is new? # 1. Added 4 new Features. # For simplicity define an (ip,device,os) combination as a user in...
/src/data/dataset/r-lgbm-single-model-40m-rows-lb-0-9736.R
no_license
peppyguy/u-kaggle
R
false
false
10,272
r
# This is a modified version of the public kernel by Pranav Pandya: # https://www.kaggle.com/pranav84/single-lightgbm-in-r-with-75-mln-rows-lb-0-9690 # Many thanks to Pranav for his work on the original code. # # What is new? # 1. Added 4 new Features. # For simplicity define an (ip,device,os) combination as a user in...
context("lazy-ops") # op_vars ----------------------------------------------------------------- test_that("select reduces variables", { out <- mtcars %>% tbl_lazy() %>% select(mpg:disp) expect_equal(op_vars(out), c("mpg", "cyl", "disp")) }) test_that("rename preserves existing", { out <- data_frame(x = 1, y = ...
/tests/testthat/test-lazy-ops.R
permissive
nemochina2008/dbplyr
R
false
false
4,081
r
context("lazy-ops") # op_vars ----------------------------------------------------------------- test_that("select reduces variables", { out <- mtcars %>% tbl_lazy() %>% select(mpg:disp) expect_equal(op_vars(out), c("mpg", "cyl", "disp")) }) test_that("rename preserves existing", { out <- data_frame(x = 1, y = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jip_approximations.R \name{jip_approx} \alias{jip_approx} \title{Approximate Joint-Inclusion Probabilities} \usage{ jip_approx(pik, method) } \arguments{ \item{pik}{numeric vector of first-order inclusion probabilities for all population unit...
/man/jip_approx.Rd
no_license
rhobis/jipApprox
R
false
true
4,877
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jip_approximations.R \name{jip_approx} \alias{jip_approx} \title{Approximate Joint-Inclusion Probabilities} \usage{ jip_approx(pik, method) } \arguments{ \item{pik}{numeric vector of first-order inclusion probabilities for all population unit...
library(binaryLogic) ### Name: as.binary ### Title: as binary digit. ### Aliases: as.binary ### ** Examples as.binary(0xAF) as.binary(42) as.binary(42, littleEndian=TRUE) as.binary(c(0xAF, 0xBF, 0xFF)) as.binary(c(2,4,8,16,32), signed=TRUE, size=1) as.binary(-1, signed=TRUE, size=1) as.binary(1:7, n=3) as.binary(sa...
/data/genthat_extracted_code/binaryLogic/examples/as.binary.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
427
r
library(binaryLogic) ### Name: as.binary ### Title: as binary digit. ### Aliases: as.binary ### ** Examples as.binary(0xAF) as.binary(42) as.binary(42, littleEndian=TRUE) as.binary(c(0xAF, 0xBF, 0xFF)) as.binary(c(2,4,8,16,32), signed=TRUE, size=1) as.binary(-1, signed=TRUE, size=1) as.binary(1:7, n=3) as.binary(sa...
#1 = BP86/SVP 2 = B3LYP/SVP 3 = PBE0/SVP 4 = BH&HLYP/SVP 5 = M06-2X/SVP #6 = HF/SVP 7 = BP86/TZVP 8 = B3LYP/TZVP 9 = PBE0/TZVP df_1 <- read.table("testlr.dat",skip = 2,strip.white = TRUE,sep = ",", col.names=c("ID","SMILES","f1","f2","f3","f4","f5","f6","f7","f8","f9"), ...
/052115_Dataset_MostStable/DFT_Dataset_MostStable.R
no_license
achiiin/Project-DFT
R
false
false
348
r
#1 = BP86/SVP 2 = B3LYP/SVP 3 = PBE0/SVP 4 = BH&HLYP/SVP 5 = M06-2X/SVP #6 = HF/SVP 7 = BP86/TZVP 8 = B3LYP/TZVP 9 = PBE0/TZVP df_1 <- read.table("testlr.dat",skip = 2,strip.white = TRUE,sep = ",", col.names=c("ID","SMILES","f1","f2","f3","f4","f5","f6","f7","f8","f9"), ...
# This function returns the number of complete cases in the files in a directory. # It takes 2 arguments: 'directory', 'id' # 'directory' is a character vector of length 1 indicating the location of files. # 'id' is an integer vector indicating the monitor ID numbers # Return a data frame of the form # id nobs # 1 ...
/complete.R
no_license
kc113/datasciencecoursera
R
false
false
691
r
# This function returns the number of complete cases in the files in a directory. # It takes 2 arguments: 'directory', 'id' # 'directory' is a character vector of length 1 indicating the location of files. # 'id' is an integer vector indicating the monitor ID numbers # Return a data frame of the form # id nobs # 1 ...
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation bet...
/corr.R
no_license
Bahramif/Sample-codes
R
false
false
1,132
r
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variables) required to compute the correlation bet...
#input : mat - matrix conatining orderering # n - number of columns # v - numver of row or vertex names #sco function: return kendall tau distance between rankings # #output: # returns local optimised kemeny ranking sco<- function(mat1,v, n){ scor <- 0 for(i in seq(n)){ scor <- scor + kendall.tau(m...
/Code/Kemeny.R
no_license
prajwal-MP/WSC_PROJECT_GROUP_11
R
false
false
1,242
r
#input : mat - matrix conatining orderering # n - number of columns # v - numver of row or vertex names #sco function: return kendall tau distance between rankings # #output: # returns local optimised kemeny ranking sco<- function(mat1,v, n){ scor <- 0 for(i in seq(n)){ scor <- scor + kendall.tau(m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/n_row.R \name{n_row} \alias{n_row} \title{Row counter} \usage{ n_row( list_obj, col_var = NULL, newdata = FALSE, missing = NULL, overall = NULL ) } \arguments{ \item{list_obj}{the name of the tbl_start object previously initialized....
/man/n_row.Rd
permissive
romainfrancois/tangram.pipe
R
false
true
1,066
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/n_row.R \name{n_row} \alias{n_row} \title{Row counter} \usage{ n_row( list_obj, col_var = NULL, newdata = FALSE, missing = NULL, overall = NULL ) } \arguments{ \item{list_obj}{the name of the tbl_start object previously initialized....
# Multiple plot function # # ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects) # - cols: Number of columns in layout # - layout: A matrix specifying the layout. If present, 'cols' is ignored. # # If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE), # then plot 1 will...
/motrotrendcode.R
no_license
l4zz/Motortrend
R
false
false
4,864
r
# Multiple plot function # # ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects) # - cols: Number of columns in layout # - layout: A matrix specifying the layout. If present, 'cols' is ignored. # # If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE), # then plot 1 will...
#Reading data from a text file mydat<-data.frame(x1=c(2,2,3,3,1,1), x2=c(.3, 1, 2.1, 2.2, .1, .2), x3=0.01*c(1,11,4,2,10,6)) mydat #The R working directory getwd() setwd("c:/otherdatadir") mydat<-read.table("data.exercise5.1.dat", skip =1,header=TRUE) head(mydat) # The read.table()| function options(deparse.cutoff...
/5.Reading in Data/Reading in Data.R
no_license
stephaneb20017/Data-Sciences
R
false
false
2,389
r
#Reading data from a text file mydat<-data.frame(x1=c(2,2,3,3,1,1), x2=c(.3, 1, 2.1, 2.2, .1, .2), x3=0.01*c(1,11,4,2,10,6)) mydat #The R working directory getwd() setwd("c:/otherdatadir") mydat<-read.table("data.exercise5.1.dat", skip =1,header=TRUE) head(mydat) # The read.table()| function options(deparse.cutoff...
#runNF diffex require(synapser) require(limma) require(tidyverse) #get the tidied data with annotations synLogin() syn_file='syn18349249' expData<-read.csv(gzfile(synGet(syn_file)$path))%>%subset(Symbol!='') conts=which(is.na(expData$tumorType)) levels(expData$tumorType)<-c(levels(expData$tumorType),'Schwann') expDa...
/analysis/2019-02-19/rnaSeqDiffEx.R
no_license
sgosline/NEXUS
R
false
false
1,195
r
#runNF diffex require(synapser) require(limma) require(tidyverse) #get the tidied data with annotations synLogin() syn_file='syn18349249' expData<-read.csv(gzfile(synGet(syn_file)$path))%>%subset(Symbol!='') conts=which(is.na(expData$tumorType)) levels(expData$tumorType)<-c(levels(expData$tumorType),'Schwann') expDa...
## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. ## The function should return a data frame where the first column is the name of the file and the second column is the number ## of complete cases. A prototype of this function follows comp...
/ProgrammingAssignment1/complete.R
no_license
chan00/RProgramming
R
false
false
967
r
## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. ## The function should return a data frame where the first column is the name of the file and the second column is the number ## of complete cases. A prototype of this function follows comp...
#!/usr/bin/env Rscript #options(error=traceback) args <- commandArgs(trailingOnly=TRUE) counts <- args[[1]] metadataf <- args[[2]] design <- args[[3]] prefix <- args[[4]] # if all do not filter, otherwise keep ^prefix_ only genes. #useful for xeno mice-man counts matrices made by Ivan's pipeline. outprefix <- args[[5]...
/local/src/deseq2_qc.R
no_license
vodkatad/biodiversa_DE
R
false
false
3,401
r
#!/usr/bin/env Rscript #options(error=traceback) args <- commandArgs(trailingOnly=TRUE) counts <- args[[1]] metadataf <- args[[2]] design <- args[[3]] prefix <- args[[4]] # if all do not filter, otherwise keep ^prefix_ only genes. #useful for xeno mice-man counts matrices made by Ivan's pipeline. outprefix <- args[[5]...
### Demonstrate ggdendrogram library(ggplot2) hc <- hclust(dist(USArrests), "ave") # Demonstrate plotting directly from object class hclust p <- ggdendrogram(hc, rotate = FALSE) print(p) ggdendrogram(hc, rotate = TRUE) # demonstrate converting hclust to dendro using dendro_data first hcdata <- dendro_data(hc) ggdend...
/ggdendro/examples/example_ggdendrogram.R
permissive
solgenomics/R_libs
R
false
false
403
r
### Demonstrate ggdendrogram library(ggplot2) hc <- hclust(dist(USArrests), "ave") # Demonstrate plotting directly from object class hclust p <- ggdendrogram(hc, rotate = FALSE) print(p) ggdendrogram(hc, rotate = TRUE) # demonstrate converting hclust to dendro using dendro_data first hcdata <- dendro_data(hc) ggdend...
# Generated by rstantools. Do not edit by hand. # names of stan models stanmodels <- c("exp_cf_fixed", "exp_relative_mix", "exp_relative_mix_full", "weibull_cf_fixed", "weibull_relative_mix", "weibull_relative_mix_full") # load each stan module Rcpp::loadModule("stan_fit4exp_cf_fixed_mod", what = TRUE) Rcpp::loadMod...
/R/stanmodels.R
no_license
han-tun/rstanbmcm
R
false
false
1,487
r
# Generated by rstantools. Do not edit by hand. # names of stan models stanmodels <- c("exp_cf_fixed", "exp_relative_mix", "exp_relative_mix_full", "weibull_cf_fixed", "weibull_relative_mix", "weibull_relative_mix_full") # load each stan module Rcpp::loadModule("stan_fit4exp_cf_fixed_mod", what = TRUE) Rcpp::loadMod...
/2011_10_04_SesionR-CalculoVarianzaDesviacionTipica.R
no_license
marcosmarva/POSTDATA_LIBRO
R
false
false
1,264
r
library(shiny) library(shinyjs) library(shinyFiles) library(ComplexHeatmap) library(limma) library(ggplot2) library(plotly) library(data.table) library(colourpicker) library(gridExtra) library(cluster) library(ggtree) library(ape) library(GSVA) library(GSVAdata) library(shinyalert) library(enrichR) library(matrixStats)...
/inst/shiny/ui.R
permissive
ykoga07/singleCellTK
R
false
false
8,272
r
library(shiny) library(shinyjs) library(shinyFiles) library(ComplexHeatmap) library(limma) library(ggplot2) library(plotly) library(data.table) library(colourpicker) library(gridExtra) library(cluster) library(ggtree) library(ape) library(GSVA) library(GSVAdata) library(shinyalert) library(enrichR) library(matrixStats)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_dirichlet_multinomial} \alias{tfd_dirichlet_multinomial} \title{Dirichlet-Multinomial compound distribution} \usage{ tfd_dirichlet_multinomial(total_count, concentration, validate_args = FALSE, allow_nan_stats = TR...
/man/tfd_dirichlet_multinomial.Rd
permissive
dfalbel/tfprobability
R
false
true
6,578
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distributions.R \name{tfd_dirichlet_multinomial} \alias{tfd_dirichlet_multinomial} \title{Dirichlet-Multinomial compound distribution} \usage{ tfd_dirichlet_multinomial(total_count, concentration, validate_args = FALSE, allow_nan_stats = TR...
# This function reads in the input file "household_power_consumption.txt" # and extracts rows corresponding to the header and Feb 1, 2007 and Feb 2, 2007 # and writes it to the ouput file "household_power_consumption_subset.txt". # # The input file is expected to be in the current working directory. # The output file ...
/plot2.R
no_license
ullaschadaga/ExData_Plotting1
R
false
false
2,164
r
# This function reads in the input file "household_power_consumption.txt" # and extracts rows corresponding to the header and Feb 1, 2007 and Feb 2, 2007 # and writes it to the ouput file "household_power_consumption_subset.txt". # # The input file is expected to be in the current working directory. # The output file ...
# gdURL <- "http://tiny.cc/gapminder" # gDat <- read.delim(gdURL) gDat <- read.delim("gapminderDataFiveYear.txt") str(gDat) head(gDat) tail(gDat) names(gDat) dim(gDat) nrow(gDat) ncol(gDat) rownames(gDat) head(rownames(gDat)) length(gDat) summary(gDat) gDat$lifeExp summary(gDat["lifeExp"]) hist(gDat$lifeExp) class(...
/session02_care-feeding-objects.r
no_license
sampathweb/swc_uw_r
R
false
false
2,057
r
# gdURL <- "http://tiny.cc/gapminder" # gDat <- read.delim(gdURL) gDat <- read.delim("gapminderDataFiveYear.txt") str(gDat) head(gDat) tail(gDat) names(gDat) dim(gDat) nrow(gDat) ncol(gDat) rownames(gDat) head(rownames(gDat)) length(gDat) summary(gDat) gDat$lifeExp summary(gDat["lifeExp"]) hist(gDat$lifeExp) class(...
#' PlotSplitGroupDEGs #' #' For a given Seurat object and a list of intragroup DEGs, for each grouping #' plot the genes that were differentially expressed between each comparison_group. #' The results for each comparison within the group will be plotted in its own #' bubbleplot, and all comparisons for that group are ...
/R/PlotSplitGroupDEGs.R
permissive
milescsmith/DEGcompareR
R
false
false
2,858
r
#' PlotSplitGroupDEGs #' #' For a given Seurat object and a list of intragroup DEGs, for each grouping #' plot the genes that were differentially expressed between each comparison_group. #' The results for each comparison within the group will be plotted in its own #' bubbleplot, and all comparisons for that group are ...
## Getting full dataset # raw data (.txt) files are saved to 'path_to_working_folder/ExData_Plotting1/Data/' dataset_raw <- read.csv("./ExData_Plotting1/Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quo...
/plot1.R
no_license
nhchi/ExData_Plotting1
R
false
false
853
r
## Getting full dataset # raw data (.txt) files are saved to 'path_to_working_folder/ExData_Plotting1/Data/' dataset_raw <- read.csv("./ExData_Plotting1/Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quo...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nassqs.R \name{nassqs_parse.xml} \alias{nassqs_parse.xml} \title{Parse a NASS QS request returned as XML.} \usage{ nassqs_parse.xml(text, as = c("data.frame", "list", "raw"), ...) } \arguments{ \item{text}{the text returned from \code...
/man/nassqs_parse.xml.Rd
permissive
mespe/rnassqs
R
false
false
568
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nassqs.R \name{nassqs_parse.xml} \alias{nassqs_parse.xml} \title{Parse a NASS QS request returned as XML.} \usage{ nassqs_parse.xml(text, as = c("data.frame", "list", "raw"), ...) } \arguments{ \item{text}{the text returned from \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{data_corpus_irish30} \alias{data_corpus_irish30} \title{Irish Dail speeches from 2007-2011} \format{ The corpus object for the 30th Dail speeches, with document-level variables for speaker, debate, and speaker's...
/man/data_corpus_irish30.Rd
no_license
kbenoit/wordshoal
R
false
true
886
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{data_corpus_irish30} \alias{data_corpus_irish30} \title{Irish Dail speeches from 2007-2011} \format{ The corpus object for the 30th Dail speeches, with document-level variables for speaker, debate, and speaker's...
#' Read COSMO DE grib file #' #' This function reads a COSMO DE file as provided by the DWD #' #' @param cosmo.root root path (folder or URL) to COSMO DE files (.grib2 or .bz2) #' @param cosmo.parameter COSMO DE parameter #' @param timestamp requested timestamp for the COSMO DE model output #' @param previous if a time...
/R/CosmoDE.R
no_license
NicolasLooschen/xtruso_R
R
false
false
13,013
r
#' Read COSMO DE grib file #' #' This function reads a COSMO DE file as provided by the DWD #' #' @param cosmo.root root path (folder or URL) to COSMO DE files (.grib2 or .bz2) #' @param cosmo.parameter COSMO DE parameter #' @param timestamp requested timestamp for the COSMO DE model output #' @param previous if a time...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.4407944983479e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615774808-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.4407944983479e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
library(tidyverse) library(extrafont) library(gganimate) ps <- seq(0.05,0.9,by=0.025) #Generamos el grid de valores para el parámetro p #Realizamos las simulaciones de las binomiales con n = 30 y p = p y las Poisson con lambda = 30*p datos<-data.frame(p=rep(ps,each=10000), media_pois = rep(ps*30,...
/30-dias-de-graficos/dia-27.R
no_license
msm-mario/DatosDeMiercoles
R
false
false
2,606
r
library(tidyverse) library(extrafont) library(gganimate) ps <- seq(0.05,0.9,by=0.025) #Generamos el grid de valores para el parámetro p #Realizamos las simulaciones de las binomiales con n = 30 y p = p y las Poisson con lambda = 30*p datos<-data.frame(p=rep(ps,each=10000), media_pois = rep(ps*30,...
#Functions EvenOdd<-function(num= 4,a=4,z=7){ #Defining a function with parameters #conditional statements if(num%%2==1) { return("Odd") } else { return("Even") } } #invoking function EvenOdd()
/DAY - 2/Class/FunctionsAssigningParameters.R
no_license
Sajeth-s-a/Data-Science---R-programming-
R
false
false
239
r
#Functions EvenOdd<-function(num= 4,a=4,z=7){ #Defining a function with parameters #conditional statements if(num%%2==1) { return("Odd") } else { return("Even") } } #invoking function EvenOdd()
################################################-# # Deep Arbitrage-Free Learning # ################################################-# # Implementation for the paper of: # Anastasis Kratsios - ETH, Zurich, Switzerland # Cody Hyndman - Concordia, Montreal, Canada # 2019 # Notes: Both Experiment...
/dPCA/Main_dPCA.R
no_license
AnastasisKratsios/Deep_Arbitrage_Free_Regularization
R
false
false
1,330
r
################################################-# # Deep Arbitrage-Free Learning # ################################################-# # Implementation for the paper of: # Anastasis Kratsios - ETH, Zurich, Switzerland # Cody Hyndman - Concordia, Montreal, Canada # 2019 # Notes: Both Experiment...
library(tidyverse) source("scripts/common/plot-settings.R") source("scripts/common/mcmc-util.R") sim_settings <- readRDS("rds/surv-example/simulation-settings-and-joint-data.rds") # psi_2 first point_est <- readRDS("rds/surv-example/point-est-psi-2-samples.rds") point_est_1_meld_23 <- readRDS( "rds/surv-example/po...
/scripts/surv-example/diagnose-point-est-all-plots.R
no_license
hhau/melding-multiple-phi
R
false
false
2,049
r
library(tidyverse) source("scripts/common/plot-settings.R") source("scripts/common/mcmc-util.R") sim_settings <- readRDS("rds/surv-example/simulation-settings-and-joint-data.rds") # psi_2 first point_est <- readRDS("rds/surv-example/point-est-psi-2-samples.rds") point_est_1_meld_23 <- readRDS( "rds/surv-example/po...
#setup---- library(ggplot2) library(dplyr) library(knitr) library(tidyr) library(broom) # library(grid) library(relaimpo) library(leaps) library(stringr) library(cladoRcpp) library(boot) library(ggpubr) source('Adamhelperfunctions.R') source('fixationanalysisfunctions.R') select<- dplyr::select # sp<-readRDS('DCstim-5...
/Vergence/2018INCStimulation.R
no_license
AdamPallus/NPH-Analysis
R
false
false
11,272
r
#setup---- library(ggplot2) library(dplyr) library(knitr) library(tidyr) library(broom) # library(grid) library(relaimpo) library(leaps) library(stringr) library(cladoRcpp) library(boot) library(ggpubr) source('Adamhelperfunctions.R') source('fixationanalysisfunctions.R') select<- dplyr::select # sp<-readRDS('DCstim-5...
\name{dcov.test} \alias{distance covariance} \alias{dcov.test} \alias{dcor.test} \title{ Distance Covariance Test and Distance Correlation test} \description{ Distance covariance test and distance correlation test of multivariate independence. Distance covariance and distance correlation are multivariate measures of...
/man/dcov.test.Rd
no_license
cran/energy
R
false
false
5,370
rd
\name{dcov.test} \alias{distance covariance} \alias{dcov.test} \alias{dcor.test} \title{ Distance Covariance Test and Distance Correlation test} \description{ Distance covariance test and distance correlation test of multivariate independence. Distance covariance and distance correlation are multivariate measures of...
## ----setup, include=FALSE----------------------------------------------------- knitr::opts_chunk$set(echo = TRUE) Sys.setenv(event_study_api_key = "0245ed2e1d5011d8b87ba116f06e36ea") ## ---- message=F, echo=T, eval=FALSE------------------------------------------- # library(tidyquant) # library(dplyr) # library(re...
/inst/doc/use_case_dieselgate.R
no_license
cran/EventStudy
R
false
false
6,206
r
## ----setup, include=FALSE----------------------------------------------------- knitr::opts_chunk$set(echo = TRUE) Sys.setenv(event_study_api_key = "0245ed2e1d5011d8b87ba116f06e36ea") ## ---- message=F, echo=T, eval=FALSE------------------------------------------- # library(tidyquant) # library(dplyr) # library(re...
################################################ # Author: Dijun Chen (chendijun2012@gmail.com) # Update on Mar. 12, 2015 ################################################ ## install required R packages pks <- c('ade4','reshape2','fmsb','klaR','gplots','outliers','ape','glmnet','randomGLM','randomForest','nnet','rpart',...
/run.R
no_license
htpmod/HTPmod
R
false
false
45,391
r
################################################ # Author: Dijun Chen (chendijun2012@gmail.com) # Update on Mar. 12, 2015 ################################################ ## install required R packages pks <- c('ade4','reshape2','fmsb','klaR','gplots','outliers','ape','glmnet','randomGLM','randomForest','nnet','rpart',...
context("sjmisc, row_count") library(sjmisc) dat <- data.frame( c1 = c(1, 2, 3, 1, 3, NA), c2 = c(3, 2, 1, 2, NA, 3), c3 = c(1, 1, 2, 1, 3, NA), c4 = c(1, 1, 3, 2, 1, 2) ) test_that("row_count", { expect_equal(sum(row_count(dat, count = 1, append = FALSE)), 9) }) test_that("row_count", { ...
/packrat/lib/x86_64-redhat-linux-gnu/3.5.1/sjmisc/tests/testthat/test-rowcnt.R
no_license
teyden/asthma-research
R
false
false
497
r
context("sjmisc, row_count") library(sjmisc) dat <- data.frame( c1 = c(1, 2, 3, 1, 3, NA), c2 = c(3, 2, 1, 2, NA, 3), c3 = c(1, 1, 2, 1, 3, NA), c4 = c(1, 1, 3, 2, 1, 2) ) test_that("row_count", { expect_equal(sum(row_count(dat, count = 1, append = FALSE)), 9) }) test_that("row_count", { ...
####################################################################################################################################### # # beta.pd.decompo # # R function to quantify phylogenetic beta diversity (PBD) and its 'true' turnover and phylogenetic diversity (PD) components based on the UniFrac and PhyloSor in...
/R/Leprieuretal2012.R
permissive
sgraham9319/PhyloDiv
R
false
false
9,864
r
####################################################################################################################################### # # beta.pd.decompo # # R function to quantify phylogenetic beta diversity (PBD) and its 'true' turnover and phylogenetic diversity (PD) components based on the UniFrac and PhyloSor in...
if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } fh <-file("household_power_consumption.txt") ba <- read.table(text=grep("^[1,2]/2/200...
/Plot1.R
no_license
12182007/ExData_Plotting1
R
false
false
901
r
if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } fh <-file("household_power_consumption.txt") ba <- read.table(text=grep("^[1,2]/2/200...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{na_interp} \alias{na_interp} \title{Interpolate \code{NA} values} \usage{ na_interp(x) } \arguments{ \item{x}{numeric vector} } \description{ Fill in \code{NA} values by linear interpolation }
/man/na_interp.Rd
no_license
kdauria/wellz
R
false
false
253
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{na_interp} \alias{na_interp} \title{Interpolate \code{NA} values} \usage{ na_interp(x) } \arguments{ \item{x}{numeric vector} } \description{ Fill in \code{NA} values by linear interpolation }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_connections_on_interconnect} \alias{directconnect_describe_connections_on_interconnect} \title{Deprecated} \usage{ directconnect_describe_connections_on_interconnect(interconnectId) } \a...
/paws/man/directconnect_describe_connections_on_interconnect.Rd
permissive
sanchezvivi/paws
R
false
true
733
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_connections_on_interconnect} \alias{directconnect_describe_connections_on_interconnect} \title{Deprecated} \usage{ directconnect_describe_connections_on_interconnect(interconnectId) } \a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_delete_integration_association} \alias{connect_delete_integration_association} \title{This API is in preview release for Amazon Connect and is subject to change} \usage{ connect_delete_integration_associatio...
/cran/paws.customer.engagement/man/connect_delete_integration_association.Rd
permissive
sanchezvivi/paws
R
false
true
944
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_delete_integration_association} \alias{connect_delete_integration_association} \title{This API is in preview release for Amazon Connect and is subject to change} \usage{ connect_delete_integration_associatio...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_hyp.R \name{predict_hyp} \alias{predict_hyp} \title{Predict hydroxyproline positions in plant proteins based on primary structure} \usage{ predict_hyp(data = NULL, sequence, id, tprob = 0.3, split = 1) } \arguments{ \item{data}{A data...
/man/predict_hyp.Rd
permissive
TS404/ragp
R
false
true
2,730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict_hyp.R \name{predict_hyp} \alias{predict_hyp} \title{Predict hydroxyproline positions in plant proteins based on primary structure} \usage{ predict_hyp(data = NULL, sequence, id, tprob = 0.3, split = 1) } \arguments{ \item{data}{A data...
2698798036bed6864a17517608d01894 dungeon_i10-m5-u10-v0.pddl_planlen=129.qdimacs 26751 72198
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i10-m5-u10-v0.pddl_planlen=129/dungeon_i10-m5-u10-v0.pddl_planlen=129.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
91
r
2698798036bed6864a17517608d01894 dungeon_i10-m5-u10-v0.pddl_planlen=129.qdimacs 26751 72198
# https://api.raindrop.io/rest/v1/collections #' @export get_root_collections <- function(api_key = raindrop_api_token()) { httr::GET( url = "https://api.raindrop.io/rest/v1/collections", .RAINDROP_UA, raindrop_auth() ) -> res httr::stop_for_status(res) out <- httr::content(res, as = "text") ...
/R/collections.R
permissive
hrbrmstr/bacharach
R
false
false
1,414
r
# https://api.raindrop.io/rest/v1/collections #' @export get_root_collections <- function(api_key = raindrop_api_token()) { httr::GET( url = "https://api.raindrop.io/rest/v1/collections", .RAINDROP_UA, raindrop_auth() ) -> res httr::stop_for_status(res) out <- httr::content(res, as = "text") ...
# Schedule MLC survey triggered closures schedule_triggered_closure <- function(pop_df, date_md){ # # Closure date # yr <- max(year(pop_df$date)) # date_dummy <- paste(date_md, "2000", sep="/") %>% mdy() # date_close <- ymd(paste(yr, month(date_dummy), mday(date_dummy), sep="-")) # # # Schedule closu...
/models/popdy/v2/functions/schedule_triggered_closures.R
no_license
vrsaccomanno/dungeness
R
false
false
552
r
# Schedule MLC survey triggered closures schedule_triggered_closure <- function(pop_df, date_md){ # # Closure date # yr <- max(year(pop_df$date)) # date_dummy <- paste(date_md, "2000", sep="/") %>% mdy() # date_close <- ymd(paste(yr, month(date_dummy), mday(date_dummy), sep="-")) # # # Schedule closu...
RNGversion("2.11.0") set.seed(0) test.chron <- function() { ## Setup N <- 500 srs1 <- pmax(rnorm(N, 1, 0.4), 0.1) dat1 <- data.frame(srs1 - 0.05, srs1, srs1 + 0.05) res1.1 <- chron(dat1, prefix = "xxx", biweight = FALSE, prewhiten = TRUE) res1.2 <- chron(dat1, prefix = "xxx", biweight = TRUE, p...
/packrat/lib/x86_64-apple-darwin13.1.0/3.1.1/dplR/unitTests/runit.chron.R
no_license
alexanderm10/TreeRings-to-Biomass
R
false
false
1,436
r
RNGversion("2.11.0") set.seed(0) test.chron <- function() { ## Setup N <- 500 srs1 <- pmax(rnorm(N, 1, 0.4), 0.1) dat1 <- data.frame(srs1 - 0.05, srs1, srs1 + 0.05) res1.1 <- chron(dat1, prefix = "xxx", biweight = FALSE, prewhiten = TRUE) res1.2 <- chron(dat1, prefix = "xxx", biweight = TRUE, p...
panel <- rp.control(option1="Option", option2="Exit") rp.radiogroup(panel, option1, pos=list(column=0, row=0), title="Choose", labels=c("File","Option","Exit"), action=function(panel){ print(panel$option1); print(panel$option2); panel }) rp.radiogroup(panel, option2, pos=list(column=0, row=1), background="Green", tit...
/demo/rp.radiogroup.r
no_license
cran/rpanel
R
false
false
445
r
panel <- rp.control(option1="Option", option2="Exit") rp.radiogroup(panel, option1, pos=list(column=0, row=0), title="Choose", labels=c("File","Option","Exit"), action=function(panel){ print(panel$option1); print(panel$option2); panel }) rp.radiogroup(panel, option2, pos=list(column=0, row=1), background="Green", tit...
map_mean <- function(.x, .f, ...) { (map(.x, .f, ...) %>% reduce(`+`)) / length(.x) }
/R/map_mean.R
permissive
McChickenNuggets/blblm
R
false
false
88
r
map_mean <- function(.x, .f, ...) { (map(.x, .f, ...) %>% reduce(`+`)) / length(.x) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_mgamViz.R \name{plot.mgamViz} \alias{plot.mgamViz} \title{Plotting multiple quantile GAMs} \usage{ \method{plot}{mgamViz}(x, n = 100, n2 = 40, select = NULL, allTerms = FALSE, ...) } \arguments{ \item{x}{an object of class \code{mgamViz}...
/man/plot.mgamViz.Rd
no_license
cran/mgcViz
R
false
true
2,963
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_mgamViz.R \name{plot.mgamViz} \alias{plot.mgamViz} \title{Plotting multiple quantile GAMs} \usage{ \method{plot}{mgamViz}(x, n = 100, n2 = 40, select = NULL, allTerms = FALSE, ...) } \arguments{ \item{x}{an object of class \code{mgamViz}...
###################################################################################################################################### ###################################################################################################################################### ### Sella and Hirsh model for nucleotides #######...
/R/selon.R
no_license
GilchristLab/selac
R
false
false
116,292
r
###################################################################################################################################### ###################################################################################################################################### ### Sella and Hirsh model for nucleotides #######...
library(rubias) ### Name: tcf2long ### Title: Convert Two-Column Genetic Data to Long Format ### Aliases: tcf2long ### Keywords: internal ### ** Examples ## Convert the alewife dataset for further processing # the data frame passed into this function must have had # character collections and repunits converted to f...
/data/genthat_extracted_code/rubias/examples/tcf2long.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
562
r
library(rubias) ### Name: tcf2long ### Title: Convert Two-Column Genetic Data to Long Format ### Aliases: tcf2long ### Keywords: internal ### ** Examples ## Convert the alewife dataset for further processing # the data frame passed into this function must have had # character collections and repunits converted to f...
# Yige Wu @WashU Aug 2020 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
/visualize_expression/featureplot/featureplot_C3L-00079-T1.R
no_license
ding-lab/ccRCC_snRNA_analysis
R
false
false
3,415
r
# Yige Wu @WashU Aug 2020 # set up libraries and output directory ----------------------------------- ## set working directory dir_base = "~/Box/Ding_Lab/Projects_Current/RCC/ccRCC_snRNA/" setwd(dir_base) source("./ccRCC_snRNA_analysis/load_pkgs.R") source("./ccRCC_snRNA_analysis/functions.R") source("./ccRCC_snRNA_an...
dt = iris[, -5] dt_group = iris[, 5] pca_dt = prcomp(dt, center = T, scale = T) pca_dt plot(pca_dt, type="l") summary(pca_dt) #install.packages("devtools") library(devtools) #install.packages("ggbiplot") # ggbiplot 설치 실패
/prcomp.R
no_license
No-longlong/algorithm-practice-with-R-
R
false
false
231
r
dt = iris[, -5] dt_group = iris[, 5] pca_dt = prcomp(dt, center = T, scale = T) pca_dt plot(pca_dt, type="l") summary(pca_dt) #install.packages("devtools") library(devtools) #install.packages("ggbiplot") # ggbiplot 설치 실패
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cal_mean.R \name{cal_mean} \alias{cal_mean} \title{Calculate the mean of the nearest N stations} \usage{ cal_mean(id, dt, N = 5, BYcols = c("Year", "Month", "Day"), ...) } \arguments{ \item{id}{The ID of the desired station} \item{dt}{A \cod...
/man/cal_mean.Rd
no_license
hxfan1227/cmdcr
R
false
true
797
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cal_mean.R \name{cal_mean} \alias{cal_mean} \title{Calculate the mean of the nearest N stations} \usage{ cal_mean(id, dt, N = 5, BYcols = c("Year", "Month", "Day"), ...) } \arguments{ \item{id}{The ID of the desired station} \item{dt}{A \cod...
`sgpSummary` <- function(sgp.groups.to.summarize, produce.confidence.interval, tmp.simulation.dt, state, sgp.summaries, confidence.interval.groups, my.sgp, sgp_key, variables.for.summaries, sim.info) { WEIGHT <- MEDIAN_SGP_with_SHRINKAGE <- NULL tmp.sgp.summaries <- sgp.summaries sgp.summaries.names <- u...
/SGP/R/summarizeSGP_Utilities.R
no_license
ingted/R-Examples
R
false
false
8,090
r
`sgpSummary` <- function(sgp.groups.to.summarize, produce.confidence.interval, tmp.simulation.dt, state, sgp.summaries, confidence.interval.groups, my.sgp, sgp_key, variables.for.summaries, sim.info) { WEIGHT <- MEDIAN_SGP_with_SHRINKAGE <- NULL tmp.sgp.summaries <- sgp.summaries sgp.summaries.names <- u...
rm(list=ls()) #args=(commandArgs(TRUE)) #for(p in 1:length(args)){ # eval(parse(text=args[[p]])) # } #print(i) #i1 <- i #commandarg <- commandArgs(trailingOnly=F) #myarg <- commandarg[length(commandarg)] #myarg <- sub("-","",myarg) #i <- as.numeric(myarg) #print(i) #pheno is ICOGS,data2 is onco_array arg <- comm...
/whole_genome_age/ONCO/intrinsic_subtypes/code/intrinsic_subtype_onco.R
no_license
andrewhaoyu/breast_cancer_data_analysis
R
false
false
7,124
r
rm(list=ls()) #args=(commandArgs(TRUE)) #for(p in 1:length(args)){ # eval(parse(text=args[[p]])) # } #print(i) #i1 <- i #commandarg <- commandArgs(trailingOnly=F) #myarg <- commandarg[length(commandarg)] #myarg <- sub("-","",myarg) #i <- as.numeric(myarg) #print(i) #pheno is ICOGS,data2 is onco_array arg <- comm...
# This is the code for creating return, given stock list and weights , every rebalancing date ##################################################### Libraries library("xts") library("zoo") library("matrixStats") ############################ Inputs to the code setwd("D:/LFT/Template/tester/R test data/full si...
/GSEC_AVG.R
no_license
VivekVerma25/codingground
R
false
false
25,007
r
# This is the code for creating return, given stock list and weights , every rebalancing date ##################################################### Libraries library("xts") library("zoo") library("matrixStats") ############################ Inputs to the code setwd("D:/LFT/Template/tester/R test data/full si...
#Simple Linear Regression # Data Preprocessing Template # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set...
/Part 2 - Regression/Section 4 - Simple Linear Regression/simple_linear_regression_wd.R
no_license
raja17021998/Exciting-Machine-Learning-Journey-on-Python-and-R
R
false
false
2,103
r
#Simple Linear Regression # Data Preprocessing Template # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set...
testlist <- list(id = integer(0), x = c(7.29112200597562e-304, NaN, 1.39610338822394e-309, 0, -5.48612408082518e+303, 7.2911220195564e-304, 0, -5.48612406885949e+303, 1.80107138361425e-255, 3.57566671405164e-318, 0, 0, 1.80105948256033e-255, 131072.00539288, 1.80107167340655e-255, -1.89413912260042e-161, NaN, NaN, ...
/ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1610029830-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
513
r
testlist <- list(id = integer(0), x = c(7.29112200597562e-304, NaN, 1.39610338822394e-309, 0, -5.48612408082518e+303, 7.2911220195564e-304, 0, -5.48612406885949e+303, 1.80107138361425e-255, 3.57566671405164e-318, 0, 0, 1.80105948256033e-255, 131072.00539288, 1.80107167340655e-255, -1.89413912260042e-161, NaN, NaN, ...
testlist <- list(a = 9.96646033844891e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615925990-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 9.96646033844891e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LLddUniPrior.R \name{LLddUniPrior} \alias{LLddUniPrior} \title{loglikelihood for model} \usage{ LLddUniPrior(hr, thetaX1, thetaY1, betaXdy, betaXdy2, betaXhr, betaXhr2, betaYdy, betaYdy2, betaYhr, betaYhr2, delta, phi, kappa1, sigX, sigY, d...
/man/LLddUniPrior.Rd
no_license
jayverhoef/IliamnaSealsTrendPVA
R
false
true
1,781
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LLddUniPrior.R \name{LLddUniPrior} \alias{LLddUniPrior} \title{loglikelihood for model} \usage{ LLddUniPrior(hr, thetaX1, thetaY1, betaXdy, betaXdy2, betaXhr, betaXhr2, betaYdy, betaYdy2, betaYhr, betaYhr2, delta, phi, kappa1, sigX, sigY, d...
## For details about these files, see ## http://www.proteinatlas.org/about/download getAsDataframe <- function(url, filename, ...) { if (missing(filename)) filename <- sub("\\.zip", "", basename(url)) tf <- tempfile() on.exit(unlink(tf)) download.file(url, tf) unzip(tf) x <- read.csv...
/inst/scripts/getHpaData.R
no_license
MiguelCos/hpar
R
false
false
3,434
r
## For details about these files, see ## http://www.proteinatlas.org/about/download getAsDataframe <- function(url, filename, ...) { if (missing(filename)) filename <- sub("\\.zip", "", basename(url)) tf <- tempfile() on.exit(unlink(tf)) download.file(url, tf) unzip(tf) x <- read.csv...
## toexport gpm_imerg.download.dods <- function(GalParams, nbfile = 3, GUI = TRUE, verbose = TRUE){ on.exit(curl::handle_reset(handle)) rdate <- table.format.date.time(GalParams$tstep, GalParams$date.range, GalParams$minhour) # rdate <- table.format.date.time("daily", GalParams$date.range, GalParams$minho...
/R/cdtDownloadRFE_gpm_imerg.R
no_license
rijaf-iri/CDT
R
false
false
7,320
r
## toexport gpm_imerg.download.dods <- function(GalParams, nbfile = 3, GUI = TRUE, verbose = TRUE){ on.exit(curl::handle_reset(handle)) rdate <- table.format.date.time(GalParams$tstep, GalParams$date.range, GalParams$minhour) # rdate <- table.format.date.time("daily", GalParams$date.range, GalParams$minho...
########################################################################### ## General DBPDInfo Classes ########################################################################### setClass("DBPDInfo", representation=representation( getdb="function", tableInfo="data.frame", geom...
/R/AllClasses.R
no_license
jmacdon/oligoClasses
R
false
false
6,172
r
########################################################################### ## General DBPDInfo Classes ########################################################################### setClass("DBPDInfo", representation=representation( getdb="function", tableInfo="data.frame", geom...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/listOMLFlows.R \name{listOMLFlows} \alias{listOMLFlows} \title{List all registered OpenML flows.} \usage{ listOMLFlows(session.hash = getSessionHash(), verbosity = NULL) } \arguments{ \item{session.hash}{[\code{character(1)}]\cr A ses...
/man/listOMLFlows.Rd
no_license
parthasen/r-6
R
false
false
1,086
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/listOMLFlows.R \name{listOMLFlows} \alias{listOMLFlows} \title{List all registered OpenML flows.} \usage{ listOMLFlows(session.hash = getSessionHash(), verbosity = NULL) } \arguments{ \item{session.hash}{[\code{character(1)}]\cr A ses...
# Rscript gene_variance_scaling_noTCGA.R <exprType> # Rscript gene_variance_scaling_noTCGA.R fpkm # Rscript gene_variance_scaling_noTCGA.R log2fpkm # Rscript gene_variance_scaling_noTCGA.R NBvar # Rscript gene_variance_scaling_noTCGA.R voom cat("> START: gene_variance_scaling_noTCGA.R\n") SSHFS <- FALSE setDir <- ifel...
/gene_variance_scaling_noTCGA.R
no_license
marzuf/TAD_DE_pipeline_v2_11_18
R
false
false
25,577
r
# Rscript gene_variance_scaling_noTCGA.R <exprType> # Rscript gene_variance_scaling_noTCGA.R fpkm # Rscript gene_variance_scaling_noTCGA.R log2fpkm # Rscript gene_variance_scaling_noTCGA.R NBvar # Rscript gene_variance_scaling_noTCGA.R voom cat("> START: gene_variance_scaling_noTCGA.R\n") SSHFS <- FALSE setDir <- ifel...
library(caper) ### Name: clade.matrix ### Title: Create a clade matrix from a phylogeny ### Aliases: clade.matrix ### Keywords: manip utilities ### ** Examples data(perissodactyla) clade.matrix(perissodactyla.tree)
/data/genthat_extracted_code/caper/examples/clade.matrix.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
222
r
library(caper) ### Name: clade.matrix ### Title: Create a clade matrix from a phylogeny ### Aliases: clade.matrix ### Keywords: manip utilities ### ** Examples data(perissodactyla) clade.matrix(perissodactyla.tree)
fill_vector = function(input_vector, replacement_vector){ nas = is.na(input_vector) if(any(!nas & !is.na(replacement_vector))) stop("can't fill vector with replacement, non NA overlap") input_vector[nas] = replacement_vector[nas] return(input_vector) } #' @import stringr #' @import dplyr trimall = function...
/R/utils.R
no_license
SNStatComp/blaise
R
false
false
741
r
fill_vector = function(input_vector, replacement_vector){ nas = is.na(input_vector) if(any(!nas & !is.na(replacement_vector))) stop("can't fill vector with replacement, non NA overlap") input_vector[nas] = replacement_vector[nas] return(input_vector) } #' @import stringr #' @import dplyr trimall = function...
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(7.91061047994322e-34, -1.88886122406994e+52, 1.0343873965288e-98, 1.03438734775072e-98, 5.20194489337118e+173, -1.56898424065867e+82, 3.82435243885773e+226, -1.65565998247686e+306, 6.94671210607508e-310, -7.91632775760669e+93, -5.48635212212223e+303...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831079-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
568
r
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(7.91061047994322e-34, -1.88886122406994e+52, 1.0343873965288e-98, 1.03438734775072e-98, 5.20194489337118e+173, -1.56898424065867e+82, 3.82435243885773e+226, -1.65565998247686e+306, 6.94671210607508e-310, -7.91632775760669e+93, -5.48635212212223e+303...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllClasses.R \name{MetaboliteSet-class} \alias{MetaboliteSet-class} \title{MetaboliteSet class extenstion for MultiDataSet object} \description{ This class is specific to metabolomics data and will then be stored into the class \code{MultiDat...
/man/MetaboliteSet-class.Rd
no_license
Mathelab/IntLIM
R
false
true
487
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllClasses.R \name{MetaboliteSet-class} \alias{MetaboliteSet-class} \title{MetaboliteSet class extenstion for MultiDataSet object} \description{ This class is specific to metabolomics data and will then be stored into the class \code{MultiDat...
#This project is Submitted by Ankush Sharma Roll no 442 For Big data Analytics #Cleaning the workspace Before begining any processing rm(list=ls()) # Step 1 : Installing the caret (Classification and REgression TRaining package, used to build predictive models) #install.packages(c("caret","tm","wordcloud"))...
/Ankush Sharma 442 (Big Data Analytics).R
no_license
ankush290307/Big-Data-Analytics-using-R
R
false
false
4,114
r
#This project is Submitted by Ankush Sharma Roll no 442 For Big data Analytics #Cleaning the workspace Before begining any processing rm(list=ls()) # Step 1 : Installing the caret (Classification and REgression TRaining package, used to build predictive models) #install.packages(c("caret","tm","wordcloud"))...
testthat::test_that("Pushgateway interaction works as expected", { reg <- registry() register_default_metrics(reg) counter <- counter_metric( "count_bytes", "Custom counter.", unit = "bytes", registry = reg ) counter$inc(5) hist <- histogram_metric( "dist", "Custom histogram.", labels = c("method",...
/tests/testthat/test-pushgateway.R
permissive
cran/openmetrics
R
false
false
1,439
r
testthat::test_that("Pushgateway interaction works as expected", { reg <- registry() register_default_metrics(reg) counter <- counter_metric( "count_bytes", "Custom counter.", unit = "bytes", registry = reg ) counter$inc(5) hist <- histogram_metric( "dist", "Custom histogram.", labels = c("method",...
library(tidyverse) library(ggplot2) district_data <- read_csv("~/Downloads/District2019AllStudents.csv") View(district_data) sizes <- district_data %>% select(`DISTRICT NAME`, `PK12 TOTAL`, `SCHOOL YEAR`) %>% arrange(`PK12 TOTAL`) # Get average of NYC school district sizes: district_data %>% select(`DISTRICT ...
/nyc-school-data-analysis.R
no_license
AumitLeon/ny-state-school-analysis
R
false
false
3,097
r
library(tidyverse) library(ggplot2) district_data <- read_csv("~/Downloads/District2019AllStudents.csv") View(district_data) sizes <- district_data %>% select(`DISTRICT NAME`, `PK12 TOTAL`, `SCHOOL YEAR`) %>% arrange(`PK12 TOTAL`) # Get average of NYC school district sizes: district_data %>% select(`DISTRICT ...
################### ##Moscow Scrape ## ##Sean Norton ## ##Started 27.6.18## ################### ## This script scrapes Moscow's electoral data ##LIBRARY----------------------------------------------------------------------- library(rvest) #webscraping library(RSelenium) #webscraping library(httr) #s...
/moscowscrape.R
permissive
stnorton/russia-election-scraper
R
false
false
14,046
r
################### ##Moscow Scrape ## ##Sean Norton ## ##Started 27.6.18## ################### ## This script scrapes Moscow's electoral data ##LIBRARY----------------------------------------------------------------------- library(rvest) #webscraping library(RSelenium) #webscraping library(httr) #s...
# read alignment files and construct bin-level files constructBins <- function( infile=NULL, fileFormat=NULL, outfileLoc="./", byChr=FALSE, useChrfile=FALSE, chrfile=NULL, excludeChr=NULL, PET=FALSE, fragLen=200, binSize=200, capping=0, perl = "perl" ) { # preprocessing perl script embedded in "mosai...
/R/constructBins.R
no_license
jdavisturak/mosaics
R
false
false
12,522
r
# read alignment files and construct bin-level files constructBins <- function( infile=NULL, fileFormat=NULL, outfileLoc="./", byChr=FALSE, useChrfile=FALSE, chrfile=NULL, excludeChr=NULL, PET=FALSE, fragLen=200, binSize=200, capping=0, perl = "perl" ) { # preprocessing perl script embedded in "mosai...
# ui.R library(plotly) shinyUI(fluidPage( mainPanel( # Add a selectInput (with a proper id) that allows you to select a variable to map selectInput("value", label = "picker here (Variable to Map)", choices = list("Population" = 'population', 'Electoral Votes' = 'votes', 'Votes / Population' = 'ratio')), #...
/exercise-3/ui.R
permissive
KinsTran/m18-shiny
R
false
false
385
r
# ui.R library(plotly) shinyUI(fluidPage( mainPanel( # Add a selectInput (with a proper id) that allows you to select a variable to map selectInput("value", label = "picker here (Variable to Map)", choices = list("Population" = 'population', 'Electoral Votes' = 'votes', 'Votes / Population' = 'ratio')), #...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 threadcheck <- function(i) { .Call('flashr_threadcheck', PACKAGE = 'flashr', i) } vec_to_mat <- function(x_) { .Call('flashr_vec_to_mat', PACKAGE = 'flashr', x_) } SquaredVec <- funct...
/R/RcppExports.R
no_license
kkdey/flashr
R
false
false
1,593
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 threadcheck <- function(i) { .Call('flashr_threadcheck', PACKAGE = 'flashr', i) } vec_to_mat <- function(x_) { .Call('flashr_vec_to_mat', PACKAGE = 'flashr', x_) } SquaredVec <- funct...
#' run_prenomfrance #' Fonction qui permet de lancer l'app shiny #' #' @return lance l'app shiny #' @export #' run_prenomfrance <- function() { appDir <- system.file("shiny", package = "prenomfrance") if (appDir == "") { stop("Could not find directory. Try re-installing `prenomfrance`.", call. = FALSE) } ...
/R/run_prenomfrance.R
permissive
Douxvalkyn/prenomfrance
R
false
false
453
r
#' run_prenomfrance #' Fonction qui permet de lancer l'app shiny #' #' @return lance l'app shiny #' @export #' run_prenomfrance <- function() { appDir <- system.file("shiny", package = "prenomfrance") if (appDir == "") { stop("Could not find directory. Try re-installing `prenomfrance`.", call. = FALSE) } ...
rm(list = ls()) #Reading the data clases<-c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric") energyDataSet<-read.table(file="household_power_consumption.txt",sep=";",colClasses=clases, dec=".",header = TRUE,na.strings = "?") energyDataSet$DataTime<-strptime(paste(energyData...
/plot2.R
no_license
carlosrios10/ExData_Plotting1
R
false
false
658
r
rm(list = ls()) #Reading the data clases<-c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric") energyDataSet<-read.table(file="household_power_consumption.txt",sep=";",colClasses=clases, dec=".",header = TRUE,na.strings = "?") energyDataSet$DataTime<-strptime(paste(energyData...
library(d3heatmap) library(dplyr) library(tidyverse) library(ggplot2) #%in% makes multiple choices #function(input, output) { # output$distancePlot <- renderPlot({ # flights %>% # filter(carrier %in% input$airline) %>% # ggplot(aes(distance, air_time)) + # geom_point() # }) # output$flightInfo <-...
/server.R
no_license
WL-Biol185-ShinyProjects/music-data
R
false
false
3,175
r
library(d3heatmap) library(dplyr) library(tidyverse) library(ggplot2) #%in% makes multiple choices #function(input, output) { # output$distancePlot <- renderPlot({ # flights %>% # filter(carrier %in% input$airline) %>% # ggplot(aes(distance, air_time)) + # geom_point() # }) # output$flightInfo <-...