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
see.beta.tck<-function () { if (!exists("slider.env")) slider.env <- NULL; suppressWarnings(rm(slider.env)); slider.env <<- new.env()# Dummy to trick R CMD check alpha <- 1 beta<-1 assign("alpha", tclVar(alpha), envir = slider.env) assign("beta", tclVar(beta), envir = slider.env) ...
/R/see.betacdf.r
no_license
neiljun/asbio
R
false
false
6,339
r
see.beta.tck<-function () { if (!exists("slider.env")) slider.env <- NULL; suppressWarnings(rm(slider.env)); slider.env <<- new.env()# Dummy to trick R CMD check alpha <- 1 beta<-1 assign("alpha", tclVar(alpha), envir = slider.env) assign("beta", tclVar(beta), envir = slider.env) ...
library(igraph) library(RSelenium) library(rvest) library(data.table) library(stringr) checkForServer(update = TRUE) # example of commandline passing startServer(args = c("-port 4455"), log = FALSE, invisible = FALSE) remDr <- remoteDriver(browserName = "firefox", port = 4455) remDr$open() ERA...
/Eres tennistiques.R
no_license
Reinaldodos/Tennis
R
false
false
2,350
r
library(igraph) library(RSelenium) library(rvest) library(data.table) library(stringr) checkForServer(update = TRUE) # example of commandline passing startServer(args = c("-port 4455"), log = FALSE, invisible = FALSE) remDr <- remoteDriver(browserName = "firefox", port = 4455) remDr$open() ERA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_RegAttrPages.R \name{feOffsetDyAttribute} \alias{feOffsetDyAttribute} \title{dy} \description{ Sets how much of an offset, the input graphics should have along the y-axis. } \section{Available Attribute Values}{ The value is defined as...
/man/feOffsetDyAttribute.Rd
permissive
mslegrand/svgR
R
false
true
793
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_RegAttrPages.R \name{feOffsetDyAttribute} \alias{feOffsetDyAttribute} \title{dy} \description{ Sets how much of an offset, the input graphics should have along the y-axis. } \section{Available Attribute Values}{ The value is defined as...
\name{poscar.getatomlayerindices} \alias{poscar.getatomlayerindices} \title{Gives layerindices for all atoms} \usage{ poscar.getatomlayerindices(poscar, layers) } \arguments{ \item{poscar}{object of class poscar} \item{layers}{total layer count} } \description{ \code{poscar.getatomlayerindices} will give a vec...
/Rvasp/man/poscar.getatomlayerindices.Rd
permissive
gokhansurucu/Rvasp
R
false
false
430
rd
\name{poscar.getatomlayerindices} \alias{poscar.getatomlayerindices} \title{Gives layerindices for all atoms} \usage{ poscar.getatomlayerindices(poscar, layers) } \arguments{ \item{poscar}{object of class poscar} \item{layers}{total layer count} } \description{ \code{poscar.getatomlayerindices} will give a vec...
################################################### ### chunk number 1: ################################################### someColors <- c("black", "red", "blue", "brown", "green", "yellow", "purple", paste("grey", seq(10,90,by=10), sep="")) ##########################################...
/books/rgui/ProgGUIInR/inst/Examples/ch-gWidgets/ex-gWidgets-add-icons.R
no_license
lawremi/RGtk2
R
false
false
1,380
r
################################################### ### chunk number 1: ################################################### someColors <- c("black", "red", "blue", "brown", "green", "yellow", "purple", paste("grey", seq(10,90,by=10), sep="")) ##########################################...
y <- c(0, 3, 5, 0, 4, 7, 4, 2, 3, 6, 7, 0, 0, 3, 7, 5, 5, 0, 4, 0, 4, 4, 6, 3, 7, 5, 3, 0, 0, 2, 0, 1, 0, 1, 5, 4, 4, 2, 3, 6, 4, 5, 0, 7, 7, 4, 4, 4, 0, 6, 1, 5, 6, 5, 6, 7, 3, 6, 2, 3, 0, 2, 0, 6, 6, 0, 3, 4, 4, 5, 5, 0, 5, 7, 5, 5, 6, 4, 2, 3, 4, 6, 4, 6, 6, 4, 0, 6, 5, 5, 7, 0, 1, 6, 7, 0, 5, ...
/Labs/Lab5/count-data.R
permissive
psrajoria/2018-cs109b
R
false
false
1,624
r
y <- c(0, 3, 5, 0, 4, 7, 4, 2, 3, 6, 7, 0, 0, 3, 7, 5, 5, 0, 4, 0, 4, 4, 6, 3, 7, 5, 3, 0, 0, 2, 0, 1, 0, 1, 5, 4, 4, 2, 3, 6, 4, 5, 0, 7, 7, 4, 4, 4, 0, 6, 1, 5, 6, 5, 6, 7, 3, 6, 2, 3, 0, 2, 0, 6, 6, 0, 3, 4, 4, 5, 5, 0, 5, 7, 5, 5, 6, 4, 2, 3, 4, 6, 4, 6, 6, 4, 0, 6, 5, 5, 7, 0, 1, 6, 7, 0, 5, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cantonal_ch_federalBallot.R \name{processFederalBallotByCantons} \alias{processFederalBallotByCantons} \title{Process Portraits regionaux de la Suisse canton px file to be used by loadCantonsCHFederalBallot This will download the px file from...
/man/processFederalBallotByCantons.Rd
no_license
tamedia-ddj/tamMap
R
false
true
1,190
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cantonal_ch_federalBallot.R \name{processFederalBallotByCantons} \alias{processFederalBallotByCantons} \title{Process Portraits regionaux de la Suisse canton px file to be used by loadCantonsCHFederalBallot This will download the px file from...
# for some reasons, you should install this packages at first options(encoding = 'UTF-8') options("repos" = c(CRAN="https://https://cran.microsoft.com")) options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor") require_packages = c( "AlgDesign", "ape", "arules", "BayesTree", "Ball", # for deb...
/scripts_install/pkgs.R
permissive
wangshun1121/leoatchina-datasci
R
false
false
3,846
r
# for some reasons, you should install this packages at first options(encoding = 'UTF-8') options("repos" = c(CRAN="https://https://cran.microsoft.com")) options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor") require_packages = c( "AlgDesign", "ape", "arules", "BayesTree", "Ball", # for deb...
####Initiliazing required packages library(tensorr) #### Creating the society that will interact within to transate with sex ## First we define the dimension of the person (number of attributes) Personality = 8 #This parameters will be 1 for time, 2 for sex, 3 for appareance #4 for richness, 5 for int...
/Society_Final.R
no_license
Crillboy314/Natalidad-Un-modelo-computacional
R
false
false
5,038
r
####Initiliazing required packages library(tensorr) #### Creating the society that will interact within to transate with sex ## First we define the dimension of the person (number of attributes) Personality = 8 #This parameters will be 1 for time, 2 for sex, 3 for appareance #4 for richness, 5 for int...
#' Parse data from TCGA barcode #' #' This function returns the specified snippet of information obtained from #' the TCGA barcode. #' #' @param barcodes A character vector of TCGA barcodes #' @param participant Logical (default TRUE) participant identifier chunk #' @param sample Logical (default FALSE) includes the nu...
/R/TCGAbarcode.R
no_license
mutual-ai/TCGAutils
R
false
false
1,946
r
#' Parse data from TCGA barcode #' #' This function returns the specified snippet of information obtained from #' the TCGA barcode. #' #' @param barcodes A character vector of TCGA barcodes #' @param participant Logical (default TRUE) participant identifier chunk #' @param sample Logical (default FALSE) includes the nu...
#뉴튼랩슨은 여러 해 중 하나의 해를 부정확하게 찾아줌! #무한루프 돌지 않기 위해 maximum iteration 필요 #x가 특정 범위를 벗어나지 않아야 함 #근에 가기 전에 기울기가 0 인 x 등장할 수 있음 #while 조건 : maximum iteration, x_n+1과 x_n의 차이가 작을 경우, x_n의 기울기가 0일 경우 ## condition 1: f(X) == 0 ## condition 2 : abs(x.new - x.old) is small ## condition 3 : iterations < 10^6 f = function(x...
/Newton Raphson Algorithm.R
no_license
rhawl97/TIL_R
R
false
false
3,521
r
#뉴튼랩슨은 여러 해 중 하나의 해를 부정확하게 찾아줌! #무한루프 돌지 않기 위해 maximum iteration 필요 #x가 특정 범위를 벗어나지 않아야 함 #근에 가기 전에 기울기가 0 인 x 등장할 수 있음 #while 조건 : maximum iteration, x_n+1과 x_n의 차이가 작을 경우, x_n의 기울기가 0일 경우 ## condition 1: f(X) == 0 ## condition 2 : abs(x.new - x.old) is small ## condition 3 : iterations < 10^6 f = function(x...
## Plot 1 of Week 1 Project 1 url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, destfile = "power_consumption.zip") unzip("power_consumption.zip", exdir = ".") ## Load data into R powerData <- read.table("household_power_consumption.txt", header =...
/plot1.R
no_license
wmatthe/ExData_Plotting1
R
false
false
1,288
r
## Plot 1 of Week 1 Project 1 url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, destfile = "power_consumption.zip") unzip("power_consumption.zip", exdir = ".") ## Load data into R powerData <- read.table("household_power_consumption.txt", header =...
#1) carlories_consumed -> predict weight gained using calories consumed cal.wt<- calories_consumed View(cal.wt) summary(cal.wt) attach(cal.wt) colnames(cal.wt)<-c("weight_gained","calories_consumed") colnames(cal.wt) library(lattice) # Graphical Representation # plot for calories consumed dotplot(`Calor...
/SLR R.R
no_license
Puny-hue/SimpleLinearRegression
R
false
false
19,760
r
#1) carlories_consumed -> predict weight gained using calories consumed cal.wt<- calories_consumed View(cal.wt) summary(cal.wt) attach(cal.wt) colnames(cal.wt)<-c("weight_gained","calories_consumed") colnames(cal.wt) library(lattice) # Graphical Representation # plot for calories consumed dotplot(`Calor...
\name{calcTableLesion} \title{Vertical distribution of the lesion} \alias{calcTableLesion} \alias{calcTableLesion,MRIaggr-method} \description{ Compute the number of lesion observations at each slice. } \usage{ \S4method{calcTableLesion}{MRIaggr}(object, maskN, mask = NULL, numeric2logical = FALSE, verbose = o...
/man/MRIaggr-calcTableLesion.Rd
no_license
bozenne/MRIaggr
R
false
false
1,587
rd
\name{calcTableLesion} \title{Vertical distribution of the lesion} \alias{calcTableLesion} \alias{calcTableLesion,MRIaggr-method} \description{ Compute the number of lesion observations at each slice. } \usage{ \S4method{calcTableLesion}{MRIaggr}(object, maskN, mask = NULL, numeric2logical = FALSE, verbose = o...
# Coursera - Exploratory Data Analysis - Rafael Espericueta # Project 1 # # plot1.R - Code to generate plot1.png # # Dataset: Electric power consumption (UCI) # Download and read the power consumption data. fileName <- "household_power_consumption.txt" fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fda...
/plot1.R
no_license
rafaelespericueta/ExData_Plotting1
R
false
false
1,118
r
# Coursera - Exploratory Data Analysis - Rafael Espericueta # Project 1 # # plot1.R - Code to generate plot1.png # # Dataset: Electric power consumption (UCI) # Download and read the power consumption data. fileName <- "household_power_consumption.txt" fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fda...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FittedExcess.R \name{FittedExcess} \alias{FittedExcess} \title{Fitted values in excess} \usage{ FittedExcess(..., cutoff = 1, rnd = 3) } \arguments{ \item{...}{objects of \code{\link{class}} \code{inla} with fitted values.} \item{cutoff}{val...
/man/FittedExcess.Rd
no_license
oswaldosantos/INLAOutputs
R
false
true
1,259
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FittedExcess.R \name{FittedExcess} \alias{FittedExcess} \title{Fitted values in excess} \usage{ FittedExcess(..., cutoff = 1, rnd = 3) } \arguments{ \item{...}{objects of \code{\link{class}} \code{inla} with fitted values.} \item{cutoff}{val...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpmt.R \name{minMedian} \alias{minMedian} \title{Minimal median} \usage{ minMedian(x) } \arguments{ \item{x}{a vector or matrix of real numbers. if a matrix, then the minimal median will be computed for each column.} } \value{ the minimal me...
/man/minMedian.Rd
no_license
cran/kpmt
R
false
true
441
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kpmt.R \name{minMedian} \alias{minMedian} \title{Minimal median} \usage{ minMedian(x) } \arguments{ \item{x}{a vector or matrix of real numbers. if a matrix, then the minimal median will be computed for each column.} } \value{ the minimal me...
require(shiny) require(flexdashboard) #source("src/segregation.R") ## Generate grid neighborhood_df <- reactive({ draw_risk_frame(alpha = input$punvax, hor = input$hor, qor = input$qor, nor = input$nor, bor = input$bor) }) neighborhood_df_long <- reactive({ long_risk_frame(neighborhood_df()) }) output$initialPlo...
/segregation-measures/src/server.R
no_license
epibayes/epitutorials
R
false
false
2,998
r
require(shiny) require(flexdashboard) #source("src/segregation.R") ## Generate grid neighborhood_df <- reactive({ draw_risk_frame(alpha = input$punvax, hor = input$hor, qor = input$qor, nor = input$nor, bor = input$bor) }) neighborhood_df_long <- reactive({ long_risk_frame(neighborhood_df()) }) output$initialPlo...
library(intubate) ### Name: mda ### Title: Interfaces for mda package for data science pipelines. ### Aliases: ntbt_fda ntbt_mda ### Keywords: intubate magrittr mda fda mda ### ** Examples ## Not run: ##D library(intubate) ##D library(magrittr) ##D library(mda) ##D ##D ## ntbt_fda: Flexible Discriminant Analysis ...
/data/genthat_extracted_code/intubate/examples/mda.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
925
r
library(intubate) ### Name: mda ### Title: Interfaces for mda package for data science pipelines. ### Aliases: ntbt_fda ntbt_mda ### Keywords: intubate magrittr mda fda mda ### ** Examples ## Not run: ##D library(intubate) ##D library(magrittr) ##D library(mda) ##D ##D ## ntbt_fda: Flexible Discriminant Analysis ...
#----------------------------# # PRACTICAL MACHINE LEARNING # #----------------------------# #---------------------------# # PROJECT FOR ASSIGNMENT 1 # #---------------------------# setwd("C:/Users/Sofia Cividini/Documents/COURSERA COURSES/Data Science Specialization_JHU/Practical Machine Learning/ Assignment1_Write...
/Rcode.R
no_license
SofiaIT/PracticalMachineLearning2
R
false
false
2,410
r
#----------------------------# # PRACTICAL MACHINE LEARNING # #----------------------------# #---------------------------# # PROJECT FOR ASSIGNMENT 1 # #---------------------------# setwd("C:/Users/Sofia Cividini/Documents/COURSERA COURSES/Data Science Specialization_JHU/Practical Machine Learning/ Assignment1_Write...
rm(list=ls()) require(twitteR) require(RCurl) require(tm) library(qdap) library(ROAuth) library(chron) library(SnowballC) library(ggplot2) library(RColorBrewer) library(wordcloud) library(topicmodels) library(data.table) library(stringi) library(rmarkdown) #install.packages("bitops") library(devtools) #install_github('...
/twitteranalytics-capstone/step5_amazon_word_corelation.R
permissive
anshumanbiswal26121981/businessAnalytics_R
R
false
false
2,887
r
rm(list=ls()) require(twitteR) require(RCurl) require(tm) library(qdap) library(ROAuth) library(chron) library(SnowballC) library(ggplot2) library(RColorBrewer) library(wordcloud) library(topicmodels) library(data.table) library(stringi) library(rmarkdown) #install.packages("bitops") library(devtools) #install_github('...
###Neha Shah R Code ##Plot 4 #Reading and setting up power consumption data power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- s...
/plot4.R
no_license
nshah67/ExData_Plotting1
R
false
false
1,788
r
###Neha Shah R Code ##Plot 4 #Reading and setting up power consumption data power <- read.table("household_power_consumption.txt",skip=1,sep=";") names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") subpower <- s...
# Q1 # Which of the following are steps in building a machine learning algorithm? "" # Q2 # Suppose we build a prediction algorithm on a data set and it is 100% accurate on that data set. Why might the algorithm not work well if we collect a new data set? "Our algorithm may be overfitting the training data, predic...
/Practical Machine Learning/Quiz 1.R
no_license
neeraj5699/datasciencecoursera-2
R
false
false
1,013
r
# Q1 # Which of the following are steps in building a machine learning algorithm? "" # Q2 # Suppose we build a prediction algorithm on a data set and it is 100% accurate on that data set. Why might the algorithm not work well if we collect a new data set? "Our algorithm may be overfitting the training data, predic...
# # title : plotTraceUQPriorCO222.R # purpose : R script to plot the 95% uncertainty band of the prior # : uncertainty predictions of the liquid carryover (DP) # : FEBA Test No. 222 # author : WD41, LRS/EPFL/PSI # date : Dec. 2017 # # Load required libraries ---------------------------...
/figures/chapter2/r-scripts/plotTraceUQPriorCO222.R
no_license
damar-wicaksono/wd41-thesis
R
false
false
888
r
# # title : plotTraceUQPriorCO222.R # purpose : R script to plot the 95% uncertainty band of the prior # : uncertainty predictions of the liquid carryover (DP) # : FEBA Test No. 222 # author : WD41, LRS/EPFL/PSI # date : Dec. 2017 # # Load required libraries ---------------------------...
extract_py_script_paths <- function(folder){ files <- list.files(folder, recursive = TRUE, full.names = TRUE) %>% stringr::str_extract(".*\\.py$") %>% na.omit() return(files) }
/R/extract_py_script_paths.R
permissive
benjaminschwetz/Rchitecture
R
false
false
189
r
extract_py_script_paths <- function(folder){ files <- list.files(folder, recursive = TRUE, full.names = TRUE) %>% stringr::str_extract(".*\\.py$") %>% na.omit() return(files) }
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 vcf_parser_map <- function(vcf_file, out) { .Call(`_rMVP_vcf_parser_map`, vcf_file, out) } vcf_parser_genotype <- function(vcf_file, pBigMat, maxLine, threads = 0L, verbose = TRUE) { i...
/R/RcppExports.R
permissive
otrnda/rMVP
R
false
false
1,084
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 vcf_parser_map <- function(vcf_file, out) { .Call(`_rMVP_vcf_parser_map`, vcf_file, out) } vcf_parser_genotype <- function(vcf_file, pBigMat, maxLine, threads = 0L, verbose = TRUE) { i...
library(ggplot2) library(scales) library(plotly) # Output pdf args = commandArgs(trailingOnly = TRUE) if (length(args) > 1) { device = "pdf"; pdffile = args[2]; } else if (length(args) > 2) { device = args[3]; } else { pdffile = paste0(args[1], ".pdf"); device = "pdf"; } if (device == "pdf") { pdf(pdffile) } el...
/scripts/stats.R
permissive
medcelerate/alfred
R
false
false
13,918
r
library(ggplot2) library(scales) library(plotly) # Output pdf args = commandArgs(trailingOnly = TRUE) if (length(args) > 1) { device = "pdf"; pdffile = args[2]; } else if (length(args) > 2) { device = args[3]; } else { pdffile = paste0(args[1], ".pdf"); device = "pdf"; } if (device == "pdf") { pdf(pdffile) } el...
#calculating spatial signal in taxa by phylo scale across NEON, using entire network. rm(list=ls()) source('paths.r') library(boot) library(RCurl) script <- getURL("https://raw.githubusercontent.com/colinaverill/NEFI_microbe/master/paths.r", ssl.verifypeer = FALSE) eval(parse(text = script)) source('paths_fall2019.r') ...
/16S/figure_scripts/spatial_analysis_NEON/Fig4.morans_I_16S.r
permissive
saracg-forks/NEFI_microbe
R
false
false
6,452
r
#calculating spatial signal in taxa by phylo scale across NEON, using entire network. rm(list=ls()) source('paths.r') library(boot) library(RCurl) script <- getURL("https://raw.githubusercontent.com/colinaverill/NEFI_microbe/master/paths.r", ssl.verifypeer = FALSE) eval(parse(text = script)) source('paths_fall2019.r') ...
if(!file.exists("household_power_consumption.txt")) { message("Data file not present, downloading and unzipping..."); download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_power_consumption.zip") unzip("household...
/plot3.R
no_license
nickcotter/ExData_Plotting1
R
false
false
1,185
r
if(!file.exists("household_power_consumption.txt")) { message("Data file not present, downloading and unzipping..."); download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_power_consumption.zip") unzip("household...
getwd() # Trying to understand the following stata data # clonevar wave = cs08a_m # foreach y of numlist 1/374 379/407 { # local Y : di %03.0f `y' # clonevar csvar`Y' = cs08a`Y' # } # drop cs08* # # append using "4 Social Integration and Leisure\cs09b_1p_EN.dta", gen(panel) # replace year = 2009 if panel...
/src/02_Creating_the_panel_dataset.R
no_license
UniLuFS2020-ReplicationSeminar/krasniqi
R
false
false
1,045
r
getwd() # Trying to understand the following stata data # clonevar wave = cs08a_m # foreach y of numlist 1/374 379/407 { # local Y : di %03.0f `y' # clonevar csvar`Y' = cs08a`Y' # } # drop cs08* # # append using "4 Social Integration and Leisure\cs09b_1p_EN.dta", gen(panel) # replace year = 2009 if panel...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test.R \name{datapath} \alias{datapath} \title{Data} \usage{ datapath(file) } \arguments{ \item{file}{File name.} } \value{ Full path to file. } \description{ Rerturns full path to test files. }
/man/datapath.Rd
permissive
news-r/gensimr
R
false
true
273
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test.R \name{datapath} \alias{datapath} \title{Data} \usage{ datapath(file) } \arguments{ \item{file}{File name.} } \value{ Full path to file. } \description{ Rerturns full path to test files. }
library(fastDummies) library(data.table) data=data.frame(A=c(5,2,4),B=c('male','male','female'),C=c(1,3,5)) shinyServer( function(input, output){ #Select Explanatory Nominal Variables output$ColumnSelector_dummy <- renderUI({ selectInput("SelectedDummy","Select Nominal Variables (values: male,female)",...
/app.R
no_license
yogesh1612/data_pre-process_shinyapp
R
false
false
1,930
r
library(fastDummies) library(data.table) data=data.frame(A=c(5,2,4),B=c('male','male','female'),C=c(1,3,5)) shinyServer( function(input, output){ #Select Explanatory Nominal Variables output$ColumnSelector_dummy <- renderUI({ selectInput("SelectedDummy","Select Nominal Variables (values: male,female)",...
## Coursera Programming in R: Week 2 Practice Assignment ## ## Documented here: https://github.com/rdpeng/practice_assignment/blob/master/Practice_Assignment.pdf ## # Step 1: Unzip the Data dataset_url <- "http://s3.amazonaws.com/practice_assignment/diet_data.zip" download.file(dataset_url, "diet_data.zip") unzip("die...
/swirl/rprog_week2_practice_assignment.R
no_license
mchemotti/data-science-specialization
R
false
false
7,131
r
## Coursera Programming in R: Week 2 Practice Assignment ## ## Documented here: https://github.com/rdpeng/practice_assignment/blob/master/Practice_Assignment.pdf ## # Step 1: Unzip the Data dataset_url <- "http://s3.amazonaws.com/practice_assignment/diet_data.zip" download.file(dataset_url, "diet_data.zip") unzip("die...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/choose_param.R \name{DU_rearrangement} \alias{DU_rearrangement} \title{Reorganization of results matrix after the multiple test.} \usage{ DU_rearrangement(multiple_tests, simu_data, multiple_values) } \arguments{ \item{multiple_tests}{The res...
/man/DU_rearrangement.Rd
no_license
mrliuw/penda
R
false
true
862
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/choose_param.R \name{DU_rearrangement} \alias{DU_rearrangement} \title{Reorganization of results matrix after the multiple test.} \usage{ DU_rearrangement(multiple_tests, simu_data, multiple_values) } \arguments{ \item{multiple_tests}{The res...
rm(list=ls()) # ------------ tibble() BASICS --------------------------------------------- # # Throughout this book we work with "tibbles" instead of R's tradi- # tional data.frame. Tibbles are data frames, but they tweak some # older behaviors to make life a little easier. # If this chapter leaves you wanting to le...
/r-for-data-science/Chapter07_tibbles_with_tibble/tibbles.R
no_license
cholzkorn/data-science
R
false
false
4,871
r
rm(list=ls()) # ------------ tibble() BASICS --------------------------------------------- # # Throughout this book we work with "tibbles" instead of R's tradi- # tional data.frame. Tibbles are data frames, but they tweak some # older behaviors to make life a little easier. # If this chapter leaves you wanting to le...
library(glm2) library(caret) source("R/preprocessing.R") # We perform 0-1 classification using logistic regression model. # Outcome variable is the log odds that a given pixel is cloudy. # Explanatory variables are standardized NDAI, SD, and CORR. # Prediction accuracy is assessed using: # 1) 3-fold cross validatio...
/lab4/R/logistic_regression.R
no_license
ssaxena00/stat215a
R
false
false
3,229
r
library(glm2) library(caret) source("R/preprocessing.R") # We perform 0-1 classification using logistic regression model. # Outcome variable is the log odds that a given pixel is cloudy. # Explanatory variables are standardized NDAI, SD, and CORR. # Prediction accuracy is assessed using: # 1) 3-fold cross validatio...
dataset = read.csv('2006 .csv') # Taking care of missing data #jan dataset$Jan = ifelse(is.na(dataset$Jan), ave(dataset$Jan, FUN = function(x) mean(x, na.rm = TRUE)), dataset$Jan) #feb dataset$Feb = ifelse(is.na(dataset$Feb), ave(dataset$Feb, FUN = funct...
/Missing data/r/rh/missing_2006.R
permissive
LordChampa31/Agricultural-crop-production-prediction-Analytics
R
false
false
2,162
r
dataset = read.csv('2006 .csv') # Taking care of missing data #jan dataset$Jan = ifelse(is.na(dataset$Jan), ave(dataset$Jan, FUN = function(x) mean(x, na.rm = TRUE)), dataset$Jan) #feb dataset$Feb = ifelse(is.na(dataset$Feb), ave(dataset$Feb, FUN = funct...
# load required libraries source("./src/load_libraries.R", local = TRUE, encoding = "UTF-8") # load data source("./src/load_data.R", local = TRUE, encoding = "UTF-8") my_data <- tidy_tuesday$get_games() games <- my_data %>% distinct(gamename) %>% arrange(gamename) gsub("<U\\+(....)>", "\\\\u\\1", games$gamename)...
/test/test.R
no_license
dmancilla85/r-shiny-tidytuesday
R
false
false
1,792
r
# load required libraries source("./src/load_libraries.R", local = TRUE, encoding = "UTF-8") # load data source("./src/load_data.R", local = TRUE, encoding = "UTF-8") my_data <- tidy_tuesday$get_games() games <- my_data %>% distinct(gamename) %>% arrange(gamename) gsub("<U\\+(....)>", "\\\\u\\1", games$gamename)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/csShine.R \name{csShine} \alias{csShine} \title{Shiny app for the \code{condir} package} \usage{ csShine() } \description{ Launches a Shiny app for performing the core analyses included in \code{condir} } \details{ The function can be called ...
/man/csShine.Rd
no_license
AngelosPsy/condir
R
false
true
688
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/csShine.R \name{csShine} \alias{csShine} \title{Shiny app for the \code{condir} package} \usage{ csShine() } \description{ Launches a Shiny app for performing the core analyses included in \code{condir} } \details{ The function can be called ...
plan <- drake_plan( tree = read.tree("dinoflag.edited.tree"), data = GetLatidunalRangesForAllSpecies(tree), data.no.na = na.omit(data), data.range = cbind(range <- data.no.na[,4]), data.range = cbind(range = data.no.na[,4]), row.names(data.range) <- data.no.na[,1], cleaned.cont = CleanData(tree, data.rang...
/ContinuousCharacters/R/plan.R
no_license
atruchon4/phylometh_exercises
R
false
false
2,001
r
plan <- drake_plan( tree = read.tree("dinoflag.edited.tree"), data = GetLatidunalRangesForAllSpecies(tree), data.no.na = na.omit(data), data.range = cbind(range <- data.no.na[,4]), data.range = cbind(range = data.no.na[,4]), row.names(data.range) <- data.no.na[,1], cleaned.cont = CleanData(tree, data.rang...
library(tidyverse) library(here) library(janitor) library(sf) # Get Data ---------------------------------------------------------------- kreadiness <- read_csv(here::here("data-clean", "kreadiness-merged.csv")) %>% rename("school_id" = "institution_id") %>% add_count(school_id) %>% filter(n == 2) ...
/R/plots.R
no_license
dgkeyes/multnomah-kindergarten-readiness
R
false
false
1,645
r
library(tidyverse) library(here) library(janitor) library(sf) # Get Data ---------------------------------------------------------------- kreadiness <- read_csv(here::here("data-clean", "kreadiness-merged.csv")) %>% rename("school_id" = "institution_id") %>% add_count(school_id) %>% filter(n == 2) ...
makeTravisCoordsFromGRangesList <- function(comp, noBins=100, collapseGene=FALSE) { # get all the check points tx_length <- as.numeric(sum(width(comp))) checkpoints_interval <- tx_length/noBins # get transcript name...
/R/makeTravisCoordsFromGRangesList.R
no_license
lzcyzm/Travis_Dev
R
false
false
2,308
r
makeTravisCoordsFromGRangesList <- function(comp, noBins=100, collapseGene=FALSE) { # get all the check points tx_length <- as.numeric(sum(width(comp))) checkpoints_interval <- tx_length/noBins # get transcript name...
library(datasets) data(iris) ?iris head(iris) mean(iris$Sepal.Length[iris$Species == 'virginica']) colMeans(iris) apply(iris[,1:4], 2, mean) ?apply data(mtcars) ?mtcars head(mtcars) tapply(mtcars$cyl, mtcars$mpg, mean) sapply(split(mtcars$mpg, mtcars$cyl), mean) ?sapply ?split split(mtcars$mpg, mtcars$cyl) head(mtc...
/course-2-quiz-3.R
no_license
trh178/datasciencecoursera
R
false
false
384
r
library(datasets) data(iris) ?iris head(iris) mean(iris$Sepal.Length[iris$Species == 'virginica']) colMeans(iris) apply(iris[,1:4], 2, mean) ?apply data(mtcars) ?mtcars head(mtcars) tapply(mtcars$cyl, mtcars$mpg, mean) sapply(split(mtcars$mpg, mtcars$cyl), mean) ?sapply ?split split(mtcars$mpg, mtcars$cyl) head(mtc...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(7.63019012132298e-306, 1.50381668603039e-270, 9.40631266598962e+235, 2.10747668061271e+101, 5.78517196954163e+98, 1.26506375318766e-79, 0), .Dim = c(7L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615773210-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
317
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(7.63019012132298e-306, 1.50381668603039e-270, 9.40631266598962e+235, 2.10747668061271e+101, 5.78517196954163e+98, 1.26506375318766e-79, 0), .Dim = c(7L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) str(result)
e_df <- write.csv(e.df, file = "e.df.csv")
/fraud-detection/src/main/r/2_creating_model/save_edges.R
no_license
kubrasoykan/rproje
R
false
false
44
r
e_df <- write.csv(e.df, file = "e.df.csv")
#install.packages('lasso2') library(leaps) library(lasso2) rm(list=ls()) data(Prostate) cor(Prostate) test = lm(lpsa ~ ., data = Prostate) summary(test) nvmax = c(1:7) regfit_full = regsubsets(lpsa ~ ., data = Prostate, nvmax = nvmax) coef(regfit_full,2)
/hw1/HW1.R
no_license
cdldl/Stat-ML
R
false
false
256
r
#install.packages('lasso2') library(leaps) library(lasso2) rm(list=ls()) data(Prostate) cor(Prostate) test = lm(lpsa ~ ., data = Prostate) summary(test) nvmax = c(1:7) regfit_full = regsubsets(lpsa ~ ., data = Prostate, nvmax = nvmax) coef(regfit_full,2)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotseries.R \name{getPlotColors} \alias{getPlotColors} \title{Define colors for plot series} \usage{ getPlotColors(ps, col, opacity, cgroup, colmap) } \arguments{ \item{ps}{`plotseries` object} \item{col}{color specified by user (if any)} ...
/man/getPlotColors.Rd
permissive
svkucheryavski/mdatools
R
false
true
501
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotseries.R \name{getPlotColors} \alias{getPlotColors} \title{Define colors for plot series} \usage{ getPlotColors(ps, col, opacity, cgroup, colmap) } \arguments{ \item{ps}{`plotseries` object} \item{col}{color specified by user (if any)} ...
setwd("D:/Aaron/Bio/turin/test") library(data.table) dnam_raw <- fread("GSE40279.txt", header = TRUE, sep = "\t") setDF(dnam_raw) dnam <- dnam_raw[-1] row.names(dnam) <- dnam_raw$ID_REF dnam_keys <- fread("GSE40279_sample_key.txt", header = FALSE, sep = "\t") setDF(dnam_keys) column_names = list() i <- 1 while(i < nro...
/dna-methylation/r/cells/compute_SEMs_results.R
no_license
GillianGrayson/dna-methylation
R
false
false
3,043
r
setwd("D:/Aaron/Bio/turin/test") library(data.table) dnam_raw <- fread("GSE40279.txt", header = TRUE, sep = "\t") setDF(dnam_raw) dnam <- dnam_raw[-1] row.names(dnam) <- dnam_raw$ID_REF dnam_keys <- fread("GSE40279_sample_key.txt", header = FALSE, sep = "\t") setDF(dnam_keys) column_names = list() i <- 1 while(i < nro...
gdis<-ada(Y~.,data=training[,-c(10)],iter=1000,nu=1,type="discrete") gdis=addtest(gdis,testing[,-31],testing[,31]) plot(gdis,TRUE,TRUE) varplot(gdis) pairs(gdis,testing[,-31],maxvar=2) adares <- predict(gdis, newdata = test) adares_prob <- predict(gdis, newdata = test ,type="prob") export <- adares_prob[,2] MLmetri...
/adaboost.R
permissive
ksetdekov/made_2020
R
false
false
352
r
gdis<-ada(Y~.,data=training[,-c(10)],iter=1000,nu=1,type="discrete") gdis=addtest(gdis,testing[,-31],testing[,31]) plot(gdis,TRUE,TRUE) varplot(gdis) pairs(gdis,testing[,-31],maxvar=2) adares <- predict(gdis, newdata = test) adares_prob <- predict(gdis, newdata = test ,type="prob") export <- adares_prob[,2] MLmetri...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/solr_all.r \name{solr_all} \alias{solr_all} \title{All purpose function to do search, faceting, grouping, mlt, etc.} \usage{ solr_all(q = "*:*", sort = NULL, start = 0, rows = NULL, pageDoc = NULL, pageScore = NULL, fq = NULL, fl = ...
/man/solr_all.Rd
permissive
adymimos/solr
R
false
false
4,320
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/solr_all.r \name{solr_all} \alias{solr_all} \title{All purpose function to do search, faceting, grouping, mlt, etc.} \usage{ solr_all(q = "*:*", sort = NULL, start = 0, rows = NULL, pageDoc = NULL, pageScore = NULL, fq = NULL, fl = ...
######################################################################## # Fonction densite chaque loi conditionelle pour les returns # ######################################################################## densite <- function(para_distribution,para_h,l){ alpha=para_distribution[1] beta=para_dis...
/Simulation_juin2018/Estimation Paper 2 juin 2016/GJR-verification/QMLNIG VIX GJR.R
no_license
Fanirisoa/dynamic_pricing
R
false
false
2,416
r
######################################################################## # Fonction densite chaque loi conditionelle pour les returns # ######################################################################## densite <- function(para_distribution,para_h,l){ alpha=para_distribution[1] beta=para_dis...
library(xlsx) expr <- read.xlsx2("expressions.xlsx", 1, header = TRUE, colClasses = c("character", rep("numeric",12))) anal <- logical(7) keep <- logical(nrow(expr)) for (i in 1:nrow(expr)) { for (j in 3:9) { if (expr[i,j] < expr[i,j-1]) anal[j-2]<-FALSE else anal[j-2]<-TRUE } if ...
/filter.mother.genes.r
no_license
BOREA-UNICAEN/MeDIPSeq-Dev-Gigas
R
false
false
370
r
library(xlsx) expr <- read.xlsx2("expressions.xlsx", 1, header = TRUE, colClasses = c("character", rep("numeric",12))) anal <- logical(7) keep <- logical(nrow(expr)) for (i in 1:nrow(expr)) { for (j in 3:9) { if (expr[i,j] < expr[i,j-1]) anal[j-2]<-FALSE else anal[j-2]<-TRUE } if ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/raoQ.R \name{raoQ} \alias{raoQ} \title{Rao's quadratic entropy Q for pooled assemblages of N sites} \source{ \url{https://github.com/AnneChao/FunD/blob/master/FunD_Rcode.txt} } \usage{ raoQ(data, dij, datatype) } \arguments{ \item{data}{a lis...
/man/raoQ.Rd
no_license
chihlinwei/nema
R
false
true
1,294
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/raoQ.R \name{raoQ} \alias{raoQ} \title{Rao's quadratic entropy Q for pooled assemblages of N sites} \source{ \url{https://github.com/AnneChao/FunD/blob/master/FunD_Rcode.txt} } \usage{ raoQ(data, dij, datatype) } \arguments{ \item{data}{a lis...
#!/usr/bin/env Rscript library(lme4) library(tidyverse) source("../utils.R") # Paramsothy ---------------------------------------------------------- paramsothy <- read_tsv( "../paramsothy/patient-data.tsv", col_types = cols(patient = "c", treatment = "c", .default = "i") ) %>% filter(arm != "placebo") # get ...
/pools/analyze.R
no_license
openbiome/donor-effects
R
false
false
1,278
r
#!/usr/bin/env Rscript library(lme4) library(tidyverse) source("../utils.R") # Paramsothy ---------------------------------------------------------- paramsothy <- read_tsv( "../paramsothy/patient-data.tsv", col_types = cols(patient = "c", treatment = "c", .default = "i") ) %>% filter(arm != "placebo") # get ...
\name{mappingFunctions} \alias{mappingFunctions} \alias{naiveRangeMapper} \alias{probeRangeMapper} \alias{geneRangeMapper} \title{Mapping Functions used in \link{makeSummarizedExperimentFromExpressionSet}} \description{ These mapping functions are used in the \code{mapFun} argument to \link{makeSummarizedExperim...
/man/mappingFunctions.Rd
no_license
jimhester/GenomicRanges
R
false
false
1,371
rd
\name{mappingFunctions} \alias{mappingFunctions} \alias{naiveRangeMapper} \alias{probeRangeMapper} \alias{geneRangeMapper} \title{Mapping Functions used in \link{makeSummarizedExperimentFromExpressionSet}} \description{ These mapping functions are used in the \code{mapFun} argument to \link{makeSummarizedExperim...
\name{ENlisib} \alias{ENlisib} \title{Graph readability} \description{ This function allows to improve the MCA factor map readability. } \usage{ ENlisib(res.mca,nbvar,nbind,axes=c(1,2)) } \arguments{ \item{res.mca}{results from an MCA} \item{nbvar}{chosen percentage or number for categories} ...
/man/ENlisib.Rd
no_license
cran/EnQuireR
R
false
false
1,163
rd
\name{ENlisib} \alias{ENlisib} \title{Graph readability} \description{ This function allows to improve the MCA factor map readability. } \usage{ ENlisib(res.mca,nbvar,nbind,axes=c(1,2)) } \arguments{ \item{res.mca}{results from an MCA} \item{nbvar}{chosen percentage or number for categories} ...
library(plotrix) pop_af_hist <- function(df, pops, sing=T, doub=T, trip=T, breaks=c(-Inf,0.001,0.01,0.05,Inf), pop_spec=F, count_alleles=F) { pop_acs <- data.frame(df[,paste("ac",pops,sep="_")]) ac_adj <- rowSums(pop_acs) pop_ans <- data.frame(df[,paste("an",pops,sep="_")]) pop_afs <- data.frame(pop_acs/pop_an...
/analysis/lof/pop_af_hist.R
permissive
tpall/exac_2015
R
false
false
3,839
r
library(plotrix) pop_af_hist <- function(df, pops, sing=T, doub=T, trip=T, breaks=c(-Inf,0.001,0.01,0.05,Inf), pop_spec=F, count_alleles=F) { pop_acs <- data.frame(df[,paste("ac",pops,sep="_")]) ac_adj <- rowSums(pop_acs) pop_ans <- data.frame(df[,paste("an",pops,sep="_")]) pop_afs <- data.frame(pop_acs/pop_an...
\name{ GSE20565_eset } \alias{ GSE20565_eset } \docType{data} \title{ A genomic and transcriptomic approach for a differential diagnosis between primary and secondary ovarian carcinomas in patients with a previous history of breast cancer. } \description{ The distinction between primary and secondary ovarian tumors may...
/man/GSE20565_eset.Rd
no_license
shbrief/curatedOvarianData
R
false
false
4,482
rd
\name{ GSE20565_eset } \alias{ GSE20565_eset } \docType{data} \title{ A genomic and transcriptomic approach for a differential diagnosis between primary and secondary ovarian carcinomas in patients with a previous history of breast cancer. } \description{ The distinction between primary and secondary ovarian tumors may...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dist.R \name{get_dist_def} \alias{get_dist_def} \title{Get a Parameters that Define a Discrete Distribution} \usage{ get_dist_def( values, verbose = FALSE, samples = 1, bootstraps = 1, bootstrap_samples = 250 ) } \arguments{ \item{v...
/man/get_dist_def.Rd
permissive
goldingn/EpiNow
R
false
true
1,638
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dist.R \name{get_dist_def} \alias{get_dist_def} \title{Get a Parameters that Define a Discrete Distribution} \usage{ get_dist_def( values, verbose = FALSE, samples = 1, bootstraps = 1, bootstrap_samples = 250 ) } \arguments{ \item{v...
#include dplyr, set up read of file require(dplyr) fname <- "household_power_consumption.txt" df <- read.table(fname,header=TRUE,sep=';',colClasses = c("character","character",rep("numeric",7)),strip.white=TRUE,stringsAsFactors=FALSE,check.names=FALSE,encoding="UTF-8",comment.char='',na.strings='?') # modify an...
/plot1.R
no_license
rcgardner/ExData_Plotting1
R
false
false
917
r
#include dplyr, set up read of file require(dplyr) fname <- "household_power_consumption.txt" df <- read.table(fname,header=TRUE,sep=';',colClasses = c("character","character",rep("numeric",7)),strip.white=TRUE,stringsAsFactors=FALSE,check.names=FALSE,encoding="UTF-8",comment.char='',na.strings='?') # modify an...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_manipulation_functions.R \name{replace_values_if_col_value_in_list} \alias{replace_values_if_col_value_in_list} \title{Replace Values If Column Values In List This function replaces values in a list of columns, with a value, if a given c...
/man/replace_values_if_col_value_in_list.Rd
permissive
jaybee84/projectlive.modules
R
false
true
918
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_manipulation_functions.R \name{replace_values_if_col_value_in_list} \alias{replace_values_if_col_value_in_list} \title{Replace Values If Column Values In List This function replaces values in a list of columns, with a value, if a given c...
library(tidyverse) #...set your working directory here... setwd("~/DSAP/DATA - Swansea University contract/data08") #defunct code #enrol_08 <- read.csv('C:\\Users\\colli\\Documents\\DSAP\\csvFilesDSAP\\csvFilesDSAP\\Data Accelerator Programme\\DATA - Swansea University contract\\Ac Yr FINAL 2007-08\\ENROLEMENT.CSV',h...
/AdultLearning.R
no_license
collierb/DSAP
R
false
false
41,272
r
library(tidyverse) #...set your working directory here... setwd("~/DSAP/DATA - Swansea University contract/data08") #defunct code #enrol_08 <- read.csv('C:\\Users\\colli\\Documents\\DSAP\\csvFilesDSAP\\csvFilesDSAP\\Data Accelerator Programme\\DATA - Swansea University contract\\Ac Yr FINAL 2007-08\\ENROLEMENT.CSV',h...
#' @title Akaike's An Information Criterion (AIC) for a (hurdle) CBFM fit #' #' @description #' `r lifecycle::badge("experimental")` #' #' Calculates Akaike's "An Information Criterion" (AIC, Akaike, 1974) from a fitted \code{CBFM} or \code{CBFM_hurdle} object. This can also be generalized to other information crite...
/R/AIC.CBFM.R
no_license
fhui28/CBFM
R
false
false
6,204
r
#' @title Akaike's An Information Criterion (AIC) for a (hurdle) CBFM fit #' #' @description #' `r lifecycle::badge("experimental")` #' #' Calculates Akaike's "An Information Criterion" (AIC, Akaike, 1974) from a fitted \code{CBFM} or \code{CBFM_hurdle} object. This can also be generalized to other information crite...
source("util.R") # draw! splot <- function(dir, simulation, key, output_file, ylabel, xlabel, logy) { CLOSE_TO_ZERO <- 0.0000001 load_dependencies(c("RColorBrewer")) files <- list.files(dir) # read all files ls <- lapply( files, function(file) { json(c(dir, file))[[key]] } ) # log ax...
/priv/evaluation/boxplot.R
permissive
gyounes/trcb_exp
R
false
false
1,463
r
source("util.R") # draw! splot <- function(dir, simulation, key, output_file, ylabel, xlabel, logy) { CLOSE_TO_ZERO <- 0.0000001 load_dependencies(c("RColorBrewer")) files <- list.files(dir) # read all files ls <- lapply( files, function(file) { json(c(dir, file))[[key]] } ) # log ax...
#!/usr/bin/env Rscript library(dplyr) d0 = readr::read_tsv("~/Downloads/anki/tatoeba_sentences/sentence_ids_eng.tsv", quote = "@") ds = readr::read_tsv("sheets_top_words", quote = "@") d1 = ds %>% dplyr::left_join(d0, by = "example_en") %>% dplyr::mutate(mp3_url = sprintf("https://audio.tatoeba.org/sentences/eng/%s....
/scripts/anki_sheets_top_words_2_anki_txt.R
permissive
mertnuhoglu/anki_english
R
false
false
626
r
#!/usr/bin/env Rscript library(dplyr) d0 = readr::read_tsv("~/Downloads/anki/tatoeba_sentences/sentence_ids_eng.tsv", quote = "@") ds = readr::read_tsv("sheets_top_words", quote = "@") d1 = ds %>% dplyr::left_join(d0, by = "example_en") %>% dplyr::mutate(mp3_url = sprintf("https://audio.tatoeba.org/sentences/eng/%s....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make360.R \name{make360} \alias{make360} \title{Convert Longitudes to (0,360)} \usage{ make360(lon) } \arguments{ \item{lon}{A vector of longitudes} } \value{ A vector of longitudes all mapped to (0,360) } \description{ Convert Longitudes to ...
/man/make360.Rd
no_license
nahin29/xtractomatic
R
false
true
583
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make360.R \name{make360} \alias{make360} \title{Convert Longitudes to (0,360)} \usage{ make360(lon) } \arguments{ \item{lon}{A vector of longitudes} } \value{ A vector of longitudes all mapped to (0,360) } \description{ Convert Longitudes to ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xmu.R \name{xmu_check_levels_identical} \alias{xmu_check_levels_identical} \title{xmu_check_levels_identical} \usage{ xmu_check_levels_identical(df, selDVs, sep, action = c("stop", "ignore")) } \arguments{ \item{df}{data.frame containing the ...
/man/xmu_check_levels_identical.Rd
no_license
bwiernik/umx
R
false
true
3,248
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xmu.R \name{xmu_check_levels_identical} \alias{xmu_check_levels_identical} \title{xmu_check_levels_identical} \usage{ xmu_check_levels_identical(df, selDVs, sep, action = c("stop", "ignore")) } \arguments{ \item{df}{data.frame containing the ...
source('server/helpers.R', local=TRUE) function(input, output, session) { my <- reactiveValues(dataset_original=NULL, dataset=NULL, dataset_grouped=NULL, theme=NULL) c <- reactiveValues(date=NULL, group=NULL, feature=NULL, value=NULL) plot_title_dbnce <- reactive({ input$title }) %>% debounce(millis=3000) ...
/server/server.R
permissive
fresh2dev/shinyGEM
R
false
false
61,330
r
source('server/helpers.R', local=TRUE) function(input, output, session) { my <- reactiveValues(dataset_original=NULL, dataset=NULL, dataset_grouped=NULL, theme=NULL) c <- reactiveValues(date=NULL, group=NULL, feature=NULL, value=NULL) plot_title_dbnce <- reactive({ input$title }) %>% debounce(millis=3000) ...
rm(list=ls()) source('functions.R') dataFiles <- dir(path='./rawData/',pattern='\\.txt') rawData <- c() for (fileNo in 1:length(dataFiles)) { rawData <- rbind(rawData, read_raw_data(dataFiles[fileNo]) #read_raw_data() from functions.R ) } splitVars <- c('participant','condition','filename') d...
/fingerTransferTest/analysis.R
no_license
SDAMcIntyre/sidewaysOptaconStim
R
false
false
1,393
r
rm(list=ls()) source('functions.R') dataFiles <- dir(path='./rawData/',pattern='\\.txt') rawData <- c() for (fileNo in 1:length(dataFiles)) { rawData <- rbind(rawData, read_raw_data(dataFiles[fileNo]) #read_raw_data() from functions.R ) } splitVars <- c('participant','condition','filename') d...
context("canvasXpress Web Charts - Pie") test_that("cXpie1", { check_ui_test(cXpie1()) warning('pie changes color on mouseover (if plot is not resized) - RStudio Viewer') }) test_that("cXpie2", { check_ui_test(cXpie2()) warning('pie changes color on mouseover (if plot is not resized) - RStudio View...
/tests/testthat/test-ui-pie.R
no_license
kar-agg-gen/canvasXpress
R
false
false
329
r
context("canvasXpress Web Charts - Pie") test_that("cXpie1", { check_ui_test(cXpie1()) warning('pie changes color on mouseover (if plot is not resized) - RStudio Viewer') }) test_that("cXpie2", { check_ui_test(cXpie2()) warning('pie changes color on mouseover (if plot is not resized) - RStudio View...
#makeCacheMatrix() : returns a list containing accessor methods to set and get the matrix and its inverse from cache #cachSolve(): tries to get the inverse from cache, if not present computes the inverse, sets in cache and returns the inverse matrix. #makeCacgeMatrix takes a matrix input #setter getter methods ...
/cachematrix.R
no_license
sdurgamohanti/ProgrammingAssignment2
R
false
false
1,415
r
#makeCacheMatrix() : returns a list containing accessor methods to set and get the matrix and its inverse from cache #cachSolve(): tries to get the inverse from cache, if not present computes the inverse, sets in cache and returns the inverse matrix. #makeCacgeMatrix takes a matrix input #setter getter methods ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbind.R \name{dbind} \alias{dbind} \title{Bind matrices diagonally} \usage{ dbind(..., .fill = NULL) } \arguments{ \item{...}{Matrices.} \item{.fill}{Value to fill the off-"diagonal" values. If \code{NULL}, the value is the default value of ...
/man/dbind.Rd
no_license
mattansb/MSBMisc
R
false
true
665
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbind.R \name{dbind} \alias{dbind} \title{Bind matrices diagonally} \usage{ dbind(..., .fill = NULL) } \arguments{ \item{...}{Matrices.} \item{.fill}{Value to fill the off-"diagonal" values. If \code{NULL}, the value is the default value of ...
# 날짜 : 2020/08/04 # 이름 : 권기민 # 내용 : Excel 파일 데이터프레임 생성 # 패키지 설치 install.packages('readxl') # 패키지 로드 library(readxl) df_exam <- read_excel('../file/exam.xlsx') View(df_exam) # 합 sum_math <- sum(df_exam$math) sum_math mean_math <- mean(df_exam$math) mean_math
/Ch03/3-2.R
no_license
ligr00vefe/R-2020
R
false
false
326
r
# 날짜 : 2020/08/04 # 이름 : 권기민 # 내용 : Excel 파일 데이터프레임 생성 # 패키지 설치 install.packages('readxl') # 패키지 로드 library(readxl) df_exam <- read_excel('../file/exam.xlsx') View(df_exam) # 합 sum_math <- sum(df_exam$math) sum_math mean_math <- mean(df_exam$math) mean_math
library(testthat) library(fastgenomicsRclient) test_check("fastgenomicsRclient")
/tests/testthat.R
permissive
ChristianSauer/r_client
R
false
false
82
r
library(testthat) library(fastgenomicsRclient) test_check("fastgenomicsRclient")
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.55,family="gaussian",standardize=FALSE) sink('./NSCLC_064.txt',append=TRUE) print(...
/Model/EN/Lasso/NSCLC/NSCLC_064.R
no_license
esbgkannan/QSMART
R
false
false
343
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.55,family="gaussian",standardize=FALSE) sink('./NSCLC_064.txt',append=TRUE) print(...
`clearirrarcs` <- function(adjin){ # (c) Karl Kuschner, Qian Si and William Cooke, College of William and Mary, Dept. of Physics, 2009. # # CLEARIRRARCS clears arcs that are not C->V or C->V<->V # # DESCRIPTION # Given an adjacency matrix with V<->V arcs in a square matrix and an # additional row ...
/R/clearirrarcs.R
no_license
cran/rWMBAT
R
false
false
2,441
r
`clearirrarcs` <- function(adjin){ # (c) Karl Kuschner, Qian Si and William Cooke, College of William and Mary, Dept. of Physics, 2009. # # CLEARIRRARCS clears arcs that are not C->V or C->V<->V # # DESCRIPTION # Given an adjacency matrix with V<->V arcs in a square matrix and an # additional row ...
# Calculation of functional diversity of mammals. # Author: QDR # Project: NEON ITV # Created: 29 June 2016 # Last modified: 21 July 2016 data_path <- '/mnt/research/neon' # Modified on 30 June: new mammal data was added to NEON database # Load data. #load('allorganismal2016Feb25.r') # Organismal data load(file.path...
/code/analysis/mammalFD.r
no_license
NEON-biodiversity/mammalitv
R
false
false
7,919
r
# Calculation of functional diversity of mammals. # Author: QDR # Project: NEON ITV # Created: 29 June 2016 # Last modified: 21 July 2016 data_path <- '/mnt/research/neon' # Modified on 30 June: new mammal data was added to NEON database # Load data. #load('allorganismal2016Feb25.r') # Organismal data load(file.path...
######################################################################################################################################################## #SCRIPT TO PREPARE DATA FOR ANALYSIS 1) VISITS~ POLL. FUNCTIONAL GROUP*PRINCIPAL COMPONENTS ###########################################################################...
/Scripts/4_Data_Preparation_Analysis_1_Non_Apis.R
no_license
JoseBSL/Reproductive-traits
R
false
false
3,347
r
######################################################################################################################################################## #SCRIPT TO PREPARE DATA FOR ANALYSIS 1) VISITS~ POLL. FUNCTIONAL GROUP*PRINCIPAL COMPONENTS ###########################################################################...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arc-package.R \docType{package} \name{arcgisbinding} \alias{arc} \alias{arcgisbinding} \alias{arcgisbinding-package} \title{Bindings for ArcGIS} \description{ This package provides classes for loading, converting and exporting ArcGIS ...
/src/package/man/arcgisbinding.Rd
permissive
hhkaos/r-bridge
R
false
false
681
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/arc-package.R \docType{package} \name{arcgisbinding} \alias{arc} \alias{arcgisbinding} \alias{arcgisbinding-package} \title{Bindings for ArcGIS} \description{ This package provides classes for loading, converting and exporting ArcGIS ...
rm(list = ls()) library(diffnet) source("../comparision/refinement.R") dyn.load("../comparision/assymmetric_apg/assymmetric_apg.so") source("../comparision/assymmetric_apg/assymmetric_apg.R") dyn.load("../comparision/symmetric_admm/symmetric_admm.so") source("../comparision/symmetric_admm/Functionsnew.R") iter = 10 i...
/simulation/comparision2_lasso.R
no_license
cescwang85/Diffnet
R
false
false
5,257
r
rm(list = ls()) library(diffnet) source("../comparision/refinement.R") dyn.load("../comparision/assymmetric_apg/assymmetric_apg.so") source("../comparision/assymmetric_apg/assymmetric_apg.R") dyn.load("../comparision/symmetric_admm/symmetric_admm.so") source("../comparision/symmetric_admm/Functionsnew.R") iter = 10 i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load_ld.R \name{load_ld} \alias{load_ld} \title{Load and parse an LD matrix in the format returned by LDGds workflow} \usage{ load_ld(file = NULL, df = NULL, ld_ref = NULL) } \arguments{ \item{file}{filepath to LD data, stored as a plain, del...
/man/load_ld.Rd
no_license
manning-lab/WGSregionalPlot
R
false
true
780
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load_ld.R \name{load_ld} \alias{load_ld} \title{Load and parse an LD matrix in the format returned by LDGds workflow} \usage{ load_ld(file = NULL, df = NULL, ld_ref = NULL) } \arguments{ \item{file}{filepath to LD data, stored as a plain, del...
## function that gets an n\times p matrix of p genotypes of n individuals, and a null model, and tests the genotypes associations with the outcomes. ## Genetic data are always assumed complete. ## Types of tests: ## Single variant: Wald, score, BinomiRare, interaction. ## Variant set: SKAT, burden, SKAT-O. Multipl...
/R/testGeno.R
no_license
SatoshiO49/GENESIS
R
false
false
7,952
r
## function that gets an n\times p matrix of p genotypes of n individuals, and a null model, and tests the genotypes associations with the outcomes. ## Genetic data are always assumed complete. ## Types of tests: ## Single variant: Wald, score, BinomiRare, interaction. ## Variant set: SKAT, burden, SKAT-O. Multipl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_factorize_matrix.R \name{counts_to_tpm} \alias{counts_to_tpm} \title{Convert counts to transcripts per million (TPM).} \usage{ counts_to_tpm(counts, featureLength, meanFragmentLength) } \arguments{ \item{counts}{A numeric matrix of ...
/man/counts_to_tpm.Rd
no_license
ssarda/genomeutils
R
false
true
730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/normalize_factorize_matrix.R \name{counts_to_tpm} \alias{counts_to_tpm} \title{Convert counts to transcripts per million (TPM).} \usage{ counts_to_tpm(counts, featureLength, meanFragmentLength) } \arguments{ \item{counts}{A numeric matrix of ...
Decile_MD <- MD [,.(HHID,Total_Consumption_Month_per,Size,Weight)] Decile_MD <- Decile_MD[order(Total_Consumption_Month_per)] Decile_MD <- Decile_MD[,crw:=cumsum(Weight*Size)/sum(Weight*Size)] Decile_MD <- Decile_MD[,Decile_non_real:=cut(crw,breaks = seq(0,1,.1),labels = 1:10)] #MD <- merge(MD,Decile_MD[,c("HHID","Dec...
/R/Archive/Decile/decile_real.R
no_license
IPRCIRI/IRHEIS
R
false
false
6,243
r
Decile_MD <- MD [,.(HHID,Total_Consumption_Month_per,Size,Weight)] Decile_MD <- Decile_MD[order(Total_Consumption_Month_per)] Decile_MD <- Decile_MD[,crw:=cumsum(Weight*Size)/sum(Weight*Size)] Decile_MD <- Decile_MD[,Decile_non_real:=cut(crw,breaks = seq(0,1,.1),labels = 1:10)] #MD <- merge(MD,Decile_MD[,c("HHID","Dec...
#==================== Kappa Metrics Function ===================================================================== kappa.metrics.fun <- function(rater, set.num){ #browser() #rater <- r #print(class(rater)) switch(set.num, #check the number of set {n = 11 rater = rater - 1}, #check the N...
/Kappa_Metrics_Function.R
no_license
vfulco/DataScience-6
R
false
false
1,476
r
#==================== Kappa Metrics Function ===================================================================== kappa.metrics.fun <- function(rater, set.num){ #browser() #rater <- r #print(class(rater)) switch(set.num, #check the number of set {n = 11 rater = rater - 1}, #check the N...
#' @title Retrieve available kingdoms of life #' @description A short list of available kingdoms of life #' @param db a character string specifying the database from which the genome #' shall be retrieved: \code{db = "refseq"}, \code{db = "genbank"}, #' \code{db = "ensembl"}, \code{db = "ensemblgenomes"}. #' Default...
/R/getKingdoms.R
no_license
ropensci/biomartr
R
false
false
2,202
r
#' @title Retrieve available kingdoms of life #' @description A short list of available kingdoms of life #' @param db a character string specifying the database from which the genome #' shall be retrieved: \code{db = "refseq"}, \code{db = "genbank"}, #' \code{db = "ensembl"}, \code{db = "ensemblgenomes"}. #' Default...
library(brms) #trt2=atrazine; trt3=selenium; trt4=combined# #####EMERGENCE MODEL USING BRMS package#### ###create factors as needed biodivnew$trt0f<-as.factor(biodivnew$trt) biodivnew$date0f<-as.factor(biodivnew$date) #######Model and Plot####### get_prior(totno~date0f+trt0f+date0f*trt0f +(1|tank),data=b...
/Abund_relevant.R
no_license
briannahenry/LRR-
R
false
false
15,767
r
library(brms) #trt2=atrazine; trt3=selenium; trt4=combined# #####EMERGENCE MODEL USING BRMS package#### ###create factors as needed biodivnew$trt0f<-as.factor(biodivnew$trt) biodivnew$date0f<-as.factor(biodivnew$date) #######Model and Plot####### get_prior(totno~date0f+trt0f+date0f*trt0f +(1|tank),data=b...
\name{makeUnique} \alias{makeUnique} \title{Make Values of Character Vector Unique} \description{ Paste characters on to values of a character vector to make them unique. } \usage{ makeUnique(x) } \arguments{ \item{x}{object to be coerced to a character vector} } \details{ Repeat values of \code{x} are labelled with ...
/man/makeunique.Rd
no_license
SynBioTek/limma2
R
false
false
631
rd
\name{makeUnique} \alias{makeUnique} \title{Make Values of Character Vector Unique} \description{ Paste characters on to values of a character vector to make them unique. } \usage{ makeUnique(x) } \arguments{ \item{x}{object to be coerced to a character vector} } \details{ Repeat values of \code{x} are labelled with ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zxx.R \name{sample_each} \alias{sample_each} \title{Sample each} \usage{ sample_each(x, n = 1L) } \arguments{ \item{x}{a character, factor, or numeric vector} \item{n}{number to sample from each unique group in order; if \code{x} is a factor...
/man/sample_each.Rd
no_license
raredd/rawr
R
false
true
1,007
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/zxx.R \name{sample_each} \alias{sample_each} \title{Sample each} \usage{ sample_each(x, n = 1L) } \arguments{ \item{x}{a character, factor, or numeric vector} \item{n}{number to sample from each unique group in order; if \code{x} is a factor...
#' Random position #' #' @export #' @param count (integer/numeric) number of Polygons. Default: 1 #' @param bbox (integer/numeric) lat/long bounding box for the centers of the #' polygons, numeric vector of the form #' \code{west (long), south (lat), east (long), north (lat)}. optional #' @return A list, each element i...
/R/rg_position.R
permissive
noamross/randgeo
R
false
false
702
r
#' Random position #' #' @export #' @param count (integer/numeric) number of Polygons. Default: 1 #' @param bbox (integer/numeric) lat/long bounding box for the centers of the #' polygons, numeric vector of the form #' \code{west (long), south (lat), east (long), north (lat)}. optional #' @return A list, each element i...
# R code for remote sensing data analysis to monitor ecosystem changes in space and time! # install.packages(c("raster", "RStoolbox"))
/R_code_remote_sensing.r
no_license
ducciorocchini/monitoring_2021
R
false
false
136
r
# R code for remote sensing data analysis to monitor ecosystem changes in space and time! # install.packages(c("raster", "RStoolbox"))
test_that("Fibanocci 1",{ expect_equal(fibanocci_1(0),0) expect_equal(fibanocci_1(1),1) expect_equal(fibanocci_1(2),1) expect_equal(fibanocci_1(3),2) expect_equal(fibanocci_1(4),3) shows_message(fibanocci_1(-1),"Ingrese un entero mayor a 0") shows_message(fibanocci_1(1.1),"Ingrese un entero mayor a 0") }...
/tests/testthat/tests.R
no_license
OscarBarranco/Fibanocci
R
false
false
966
r
test_that("Fibanocci 1",{ expect_equal(fibanocci_1(0),0) expect_equal(fibanocci_1(1),1) expect_equal(fibanocci_1(2),1) expect_equal(fibanocci_1(3),2) expect_equal(fibanocci_1(4),3) shows_message(fibanocci_1(-1),"Ingrese un entero mayor a 0") shows_message(fibanocci_1(1.1),"Ingrese un entero mayor a 0") }...
############ Kirchmann Example with latent variable ############ kirch <- foreign::read.spss("private/data/kirchmann.sav", to.data.frame=T) mmtest <- generateMeasurementModel(names=c("eta2", "eta1"), indicators=list("eta2"=c("CESD_13","CESD_23"), ...
/tests/tests_with_private_data.R
no_license
miaviles/EffectLiteR
R
false
false
2,913
r
############ Kirchmann Example with latent variable ############ kirch <- foreign::read.spss("private/data/kirchmann.sav", to.data.frame=T) mmtest <- generateMeasurementModel(names=c("eta2", "eta1"), indicators=list("eta2"=c("CESD_13","CESD_23"), ...
#------------------- # Autor: Alberto Fernandez # Fecha: 2021_04_07 # Inputs: Datos 15_fe_menos_10000_lumping_mediana_freq_abs_categoricas_mas_logicas.R # Salida: Modelo autoML con h2o # Comentarios: #------------------- #--- Cargo librerías suppressPackageStartupMessages({ library(dplyr) # Manipulac...
/scripts/21_h2o.R
no_license
AlbertoUAH/AplicacionesBigDataEmpresa
R
false
false
4,116
r
#------------------- # Autor: Alberto Fernandez # Fecha: 2021_04_07 # Inputs: Datos 15_fe_menos_10000_lumping_mediana_freq_abs_categoricas_mas_logicas.R # Salida: Modelo autoML con h2o # Comentarios: #------------------- #--- Cargo librerías suppressPackageStartupMessages({ library(dplyr) # Manipulac...
# plot of PrPC expression vs incubation time png('~/d/j/cureffi/media/2018/07/expression-level-incubation-time.png',width=800,height=400,res=135) # colors tk = '#24AFB2' sk = '#E67E23' # data from Fischer 1996 PMID: 8635458 Table I explevel = c(.5,1,3.5,6.5,10) # PrPC expression level terminal = c(415,166,100,68,62) ...
/media/2018/07/expression-level-incubation-time.R
no_license
ericminikel/cureffi
R
false
false
1,742
r
# plot of PrPC expression vs incubation time png('~/d/j/cureffi/media/2018/07/expression-level-incubation-time.png',width=800,height=400,res=135) # colors tk = '#24AFB2' sk = '#E67E23' # data from Fischer 1996 PMID: 8635458 Table I explevel = c(.5,1,3.5,6.5,10) # PrPC expression level terminal = c(415,166,100,68,62) ...
library(ModelMetrics) ### Name: rmse ### Title: Root-Mean Square Error ### Aliases: rmse rmse.default rmse.lm rmse.glm ### ** Examples data(testDF) glmModel <- glm(y ~ ., data = testDF, family="binomial") Preds <- predict(glmModel, type = 'response') rmse(testDF$y, Preds)
/data/genthat_extracted_code/ModelMetrics/examples/rmse.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
282
r
library(ModelMetrics) ### Name: rmse ### Title: Root-Mean Square Error ### Aliases: rmse rmse.default rmse.lm rmse.glm ### ** Examples data(testDF) glmModel <- glm(y ~ ., data = testDF, family="binomial") Preds <- predict(glmModel, type = 'response') rmse(testDF$y, Preds)
library(bnutil) library(shiny) library(reshape2) library(pgBatch) library(combatapp) library(ggplot2) library(dplyr) getdata = function() { aData = AnnotatedData$new(data = combat_testdf, metadata =combat_testmetadf) } setResult = function(annotatedResult){ print(annotatedResult) result = annotatedResult$data }...
/workspace.r
no_license
pamgene/combatapp_nosync
R
false
false
556
r
library(bnutil) library(shiny) library(reshape2) library(pgBatch) library(combatapp) library(ggplot2) library(dplyr) getdata = function() { aData = AnnotatedData$new(data = combat_testdf, metadata =combat_testmetadf) } setResult = function(annotatedResult){ print(annotatedResult) result = annotatedResult$data }...
stop("Adapt from Rondonia to Raoraima") # Split brick into mini brick for testing models. library(dply) library(lubridate) brick_dir <- "/http/s2/S2_10_16D_STK/v001/079082" stopifnot(dir.exists(brick_dir)) time_interval <- lubridate::interval(start = lubridate::as_date("2018-08-01"), ...
/roraima/scripts/create_mini_cube.R
permissive
albhasan/bdc_amazonia
R
false
false
5,318
r
stop("Adapt from Rondonia to Raoraima") # Split brick into mini brick for testing models. library(dply) library(lubridate) brick_dir <- "/http/s2/S2_10_16D_STK/v001/079082" stopifnot(dir.exists(brick_dir)) time_interval <- lubridate::interval(start = lubridate::as_date("2018-08-01"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qerror.R \name{qerror} \alias{qerror} \title{Estimated conditional prediction error quantile functions} \usage{ qerror(p, xs) } \arguments{ \item{p}{A vector of probabilities.} \item{xs}{A vector of the indices of the test observations for w...
/man/qerror.Rd
no_license
vathymut/forestError
R
false
true
2,301
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/qerror.R \name{qerror} \alias{qerror} \title{Estimated conditional prediction error quantile functions} \usage{ qerror(p, xs) } \arguments{ \item{p}{A vector of probabilities.} \item{xs}{A vector of the indices of the test observations for w...
#! /usr/bin/Rscript # usage: # ./make_slides module0_introduction # ./make_slides module1_basics # etc. library(knitr) module <- commandArgs(trailingOnly = TRUE) source <- paste(module, ".Rmd", sep = "") if (file.exists(source)){ knit(source, envir = new.env()) system(paste("pandoc -s --webtex -t slidy ", pa...
/modules/make_slides
no_license
berkeley-scf/r-bridge-2019
R
false
false
521
#! /usr/bin/Rscript # usage: # ./make_slides module0_introduction # ./make_slides module1_basics # etc. library(knitr) module <- commandArgs(trailingOnly = TRUE) source <- paste(module, ".Rmd", sep = "") if (file.exists(source)){ knit(source, envir = new.env()) system(paste("pandoc -s --webtex -t slidy ", pa...