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
\name{File-class} \Rdversion{1.1} \docType{class} \alias{File-class} \alias{File} \title{Class \code{File}} \description{ A Rook application that serves static files from a root directory, according to the path info of the Rook request. } \examples{ # This example serves all your files in /etc (on UNIX and Mac only). ...
/man/File-class.Rd
no_license
cran/Rook
R
false
false
908
rd
\name{File-class} \Rdversion{1.1} \docType{class} \alias{File-class} \alias{File} \title{Class \code{File}} \description{ A Rook application that serves static files from a root directory, according to the path info of the Rook request. } \examples{ # This example serves all your files in /etc (on UNIX and Mac only). ...
## P398: Assignment 3 ## Matthias Orlowski ## 02/08/12 ## R script to plot run times generated with HW3timetest.py library(ggplot2) RT <- read.table("/Users/mo/Documents/Uni/Duke/ComputationSoc/PS398-HW1/HW3/runtimes.csv", header=F, as.is=T, sep=",") names(RT) <- c("algorithm","type","length","runtime") # correct typo...
/HW3/HW3plot.r
no_license
mace84/PS398-HW1
R
false
false
1,453
r
## P398: Assignment 3 ## Matthias Orlowski ## 02/08/12 ## R script to plot run times generated with HW3timetest.py library(ggplot2) RT <- read.table("/Users/mo/Documents/Uni/Duke/ComputationSoc/PS398-HW1/HW3/runtimes.csv", header=F, as.is=T, sep=",") names(RT) <- c("algorithm","type","length","runtime") # correct typo...
# The model requires a constant coefficient for the reaction speed # and a spline function for the coefficient of the forcing function, # which in this model is the unit function. # The estimated coefficient function is a step function, # or a spline function of order one, with 20 steps. # load the fda script dat...
/MSc-SimSci/ACM41000-Uncertainty-Quantification/assignement3/Data2LD_Fix/Data2LD_Fix/demo/FDAScript.R
no_license
iantowey/sandbox
R
false
false
7,122
r
# The model requires a constant coefficient for the reaction speed # and a spline function for the coefficient of the forcing function, # which in this model is the unit function. # The estimated coefficient function is a step function, # or a spline function of order one, with 20 steps. # load the fda script dat...
# add points to section plot ---------------------------------------------- add_points = function(wd, pos, pt_col, pt_pch = 21, cex = 2){ x = as.POSIXct(wd$time) y = rep(pos, length(x)) points(x, y, pch = pt_pch, bg = pt_col, cex = cex) } # plot section ----------------------------------------------------...
/helper.R
no_license
hansenjohnson/live_glider
R
false
false
2,371
r
# add points to section plot ---------------------------------------------- add_points = function(wd, pos, pt_col, pt_pch = 21, cex = 2){ x = as.POSIXct(wd$time) y = rep(pos, length(x)) points(x, y, pch = pt_pch, bg = pt_col, cex = cex) } # plot section ----------------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adexchangebuyer_objects.R \name{Creative.servingRestrictions} \alias{Creative.servingRestrictions} \title{Creative.servingRestrictions Object} \usage{ Creative.servingRestrictions(Creative.servingRestrictions.contexts = NULL, Creative.servi...
/googleadexchangebuyerv14.auto/man/Creative.servingRestrictions.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,386
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/adexchangebuyer_objects.R \name{Creative.servingRestrictions} \alias{Creative.servingRestrictions} \title{Creative.servingRestrictions Object} \usage{ Creative.servingRestrictions(Creative.servingRestrictions.contexts = NULL, Creative.servi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils2.R \name{tabler_resp} \alias{tabler_resp} \title{Response table} \usage{ tabler_resp( x, r_or_better = levels(x)[3:1], conf = 0.95, digits = 0L, frac = TRUE, show_conf = TRUE, pct.sign = TRUE, total = FALSE, two_stage ...
/man/tabler_resp.Rd
no_license
Huaichao2018/rawr
R
false
true
3,234
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils2.R \name{tabler_resp} \alias{tabler_resp} \title{Response table} \usage{ tabler_resp( x, r_or_better = levels(x)[3:1], conf = 0.95, digits = 0L, frac = TRUE, show_conf = TRUE, pct.sign = TRUE, total = FALSE, two_stage ...
StnChkCoordsProcs <- function(GeneralParameters){ if(!dir.exists(GeneralParameters$output)){ Insert.Messages.Out(paste(GeneralParameters$output, "did not find"), format = TRUE) return(NULL) } if(GeneralParameters$data.type == "cdtcoords") { don0 <- getStnOpenData(GeneralParameters$infile) if(is.null(don0)...
/R/cdtStnCoords_Procs.R
no_license
heureux1985/CDT
R
false
false
11,079
r
StnChkCoordsProcs <- function(GeneralParameters){ if(!dir.exists(GeneralParameters$output)){ Insert.Messages.Out(paste(GeneralParameters$output, "did not find"), format = TRUE) return(NULL) } if(GeneralParameters$data.type == "cdtcoords") { don0 <- getStnOpenData(GeneralParameters$infile) if(is.null(don0)...
# library, download model data, functions ==== source("code/modeling/data_prep_updated_hour.R") # source("code/modeling/data_prep_updated_other_aggregation.R") # source("code/modeling/data_prep_updated_day.R") library(ggplot2) # ls() unit_flow <- unit_flow_hour # unit_flow <- unit_flow_shift # unit_flow <- unit_flow_d...
/code/modeling/variations/waiting_curves_updated.R
no_license
aleixrvr/bayesian-hospital
R
false
false
4,350
r
# library, download model data, functions ==== source("code/modeling/data_prep_updated_hour.R") # source("code/modeling/data_prep_updated_other_aggregation.R") # source("code/modeling/data_prep_updated_day.R") library(ggplot2) # ls() unit_flow <- unit_flow_hour # unit_flow <- unit_flow_shift # unit_flow <- unit_flow_d...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # require(shiny) require(leaflet) # Define UI for application that draws a histogram shinyUI(...
/ui.R
no_license
damarals/shiny-leaflet
R
false
false
1,133
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # require(shiny) require(leaflet) # Define UI for application that draws a histogram shinyUI(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FScolar.R \name{FScolar} \alias{FScolar} \title{Cola dois paramentros de entrada} \usage{ FScolar(a, b) } \arguments{ \item{a}{primeiro parametro} \item{b}{segundo parametro} } \value{ o paste dos dois parametros } \description{ Recebe dois ...
/man/FScolar.Rd
no_license
fabiosalle/FScolar
R
false
true
369
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FScolar.R \name{FScolar} \alias{FScolar} \title{Cola dois paramentros de entrada} \usage{ FScolar(a, b) } \arguments{ \item{a}{primeiro parametro} \item{b}{segundo parametro} } \value{ o paste dos dois parametros } \description{ Recebe dois ...
context("t") test_that("result equivalence of tc", { expect_equal(c(1:5), tc(1:5), info="simple sequence") expect_equal(c(1:5), tc(1:5, ), info="simple sequence with extra comma") expect_equal(c(1, 2, 3), tc(1, 2, 3), info="individual parameters") expect_equal(c(1, 2, 3), tc(1, 2, 3, ), info="individual parame...
/inst/tests/test-t.R
no_license
krlmlr-archive/sweetnR
R
false
false
1,002
r
context("t") test_that("result equivalence of tc", { expect_equal(c(1:5), tc(1:5), info="simple sequence") expect_equal(c(1:5), tc(1:5, ), info="simple sequence with extra comma") expect_equal(c(1, 2, 3), tc(1, 2, 3), info="individual parameters") expect_equal(c(1, 2, 3), tc(1, 2, 3, ), info="individual parame...
#' Computes a vector or matrix norm. #' #' If `A` is complex valued, it computes the norm of `A$abs()` #' Supports input of float, double, cfloat and cdouble dtypes. #' Whether this function computes a vector or matrix norm is determined as follows: #' #' * If `dim` is an int, the vector norm will be computed. #'...
/R/linalg.R
permissive
dominikj2/torch
R
false
false
52,101
r
#' Computes a vector or matrix norm. #' #' If `A` is complex valued, it computes the norm of `A$abs()` #' Supports input of float, double, cfloat and cdouble dtypes. #' Whether this function computes a vector or matrix norm is determined as follows: #' #' * If `dim` is an int, the vector norm will be computed. #'...
# --------------------------------------------------------------------------- # # ASCE-ASME paper - code for Fig 1 # --------------------------------------------------------------------------- # source("weibull-sys-functions.R") source("plotdefs.R") # example for Fig 1: assume mean ft = 9 beta <- 2 y0 <- failuretolam...
/figure1.R
no_license
geeeero/asce-asme2016
R
false
false
1,438
r
# --------------------------------------------------------------------------- # # ASCE-ASME paper - code for Fig 1 # --------------------------------------------------------------------------- # source("weibull-sys-functions.R") source("plotdefs.R") # example for Fig 1: assume mean ft = 9 beta <- 2 y0 <- failuretolam...
# Loading the gapminder and dplyr packages # # Before you can work with the gapminder dataset, you'll need to load two R # packages that contain the tools for working with it, then display the gapminder # dataset so that you can see what it contains. # # To your right, you'll see two windows inside which you ...
/Introduction to Tidyverse.R
no_license
pranjalshandilya/DataCamp-R-Data-Scientist
R
false
false
11,079
r
# Loading the gapminder and dplyr packages # # Before you can work with the gapminder dataset, you'll need to load two R # packages that contain the tools for working with it, then display the gapminder # dataset so that you can see what it contains. # # To your right, you'll see two windows inside which you ...
\name{overallmean} \alias{overallmean} \title{ Global mean matrix } \description{ This function returns the global mean matrix of an input matrix } \usage{ overallmean(x) } \arguments{ \item{x}{ The input matrix. Make sure this is a matrix object } } \details{ This function calculates the mean of all cells within ...
/man/overallmean.Rd
no_license
cran/svdvisual
R
false
false
1,070
rd
\name{overallmean} \alias{overallmean} \title{ Global mean matrix } \description{ This function returns the global mean matrix of an input matrix } \usage{ overallmean(x) } \arguments{ \item{x}{ The input matrix. Make sure this is a matrix object } } \details{ This function calculates the mean of all cells within ...
pollutantmean <- function(directory, pollutant, id = 1:332) { setwd(paste(getwd(), directory, sep = "/")) temp <- paste(formatC(id, width = 3, flag = "0"), ".csv", sep = "") sourceframe <- do.call("rbind", lapply(temp, read.csv, header = TRUE)) ifelse(pollutant == "sulfate", round(mean(sourcefr...
/pollutantmean variants pretty/post-5093.R
no_license
aa989190f363e46d/pm.bench.shiny
R
false
false
417
r
pollutantmean <- function(directory, pollutant, id = 1:332) { setwd(paste(getwd(), directory, sep = "/")) temp <- paste(formatC(id, width = 3, flag = "0"), ".csv", sep = "") sourceframe <- do.call("rbind", lapply(temp, read.csv, header = TRUE)) ifelse(pollutant == "sulfate", round(mean(sourcefr...
#' Friedman rank sum test #' #' Perform Friedman rank sum test on sensory table. #' #' @param tbl_sensory a sensory table #' #' @importFrom dplyr select group_by mutate arrange #' @importFrom tidyr gather spread nest unnest #' @importFrom purrr map map_dbl #' @importFrom broom tidy #' @importFrom tibble new_tibble p...
/R/perform-friedman.R
permissive
isoletslicer/sensehubr
R
false
false
1,588
r
#' Friedman rank sum test #' #' Perform Friedman rank sum test on sensory table. #' #' @param tbl_sensory a sensory table #' #' @importFrom dplyr select group_by mutate arrange #' @importFrom tidyr gather spread nest unnest #' @importFrom purrr map map_dbl #' @importFrom broom tidy #' @importFrom tibble new_tibble p...
#' Cummulative commits plot #' #' @export #' @param x File name, e.g., github_commits_2016-05-19.csv. Default is \code{NULL}, #' and if so, we look for file with most recent date in its file name in #' \code{rappdirs::user_cache_dir("rostats")} + "/commits/" #' @param exclude (character) github user names to exclude #'...
/R/cumcommits.R
no_license
ropensci/rostats
R
false
false
1,103
r
#' Cummulative commits plot #' #' @export #' @param x File name, e.g., github_commits_2016-05-19.csv. Default is \code{NULL}, #' and if so, we look for file with most recent date in its file name in #' \code{rappdirs::user_cache_dir("rostats")} + "/commits/" #' @param exclude (character) github user names to exclude #'...
plot.mc.N<-function(mc.object, spp.string, quants=c(0.2, 0.5, 0.8), plot.trials = TRUE, annual.plots = TRUE, connector = "avg", page.layout = c(4, 4), Nylimits = c(0, 3), color.tags = NULL) { # auxiliary function to plot abundances from Monte Carlo trials # George Watters # code last edited 18 July 2006 # if...
/plot.mc.N.r
no_license
EmilyKlein/KPFM2
R
false
false
7,020
r
plot.mc.N<-function(mc.object, spp.string, quants=c(0.2, 0.5, 0.8), plot.trials = TRUE, annual.plots = TRUE, connector = "avg", page.layout = c(4, 4), Nylimits = c(0, 3), color.tags = NULL) { # auxiliary function to plot abundances from Monte Carlo trials # George Watters # code last edited 18 July 2006 # if...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/thyroid.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.5,family="gaussian",standardize=FALSE) sink('./thyroid_060.txt',append=TRUE) pri...
/Model/EN/Lasso/thyroid/thyroid_060.R
no_license
esbgkannan/QSMART
R
false
false
346
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/thyroid.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.5,family="gaussian",standardize=FALSE) sink('./thyroid_060.txt',append=TRUE) pri...
#' @title get.dgp #' @description randomly creates a dgp and attempts to satisfy user specs. Number of covariates #' is not limited but may take a while beyond d = 20 with too many terms. Limit time with depth #' and maxterms parameters. #' @param n, sample size #' @param d, dimension of potential confounders #' @para...
/R/remakeDGP.R
no_license
jlstiles/Simulations
R
false
false
8,719
r
#' @title get.dgp #' @description randomly creates a dgp and attempts to satisfy user specs. Number of covariates #' is not limited but may take a while beyond d = 20 with too many terms. Limit time with depth #' and maxterms parameters. #' @param n, sample size #' @param d, dimension of potential confounders #' @para...
#' If NULL then ... #' #' Replace NULL #' #' @param x A value to check #' @param y A value to substitute if x is null #' @examples #' \dontrun{ #' x <- NULL #' x <- x %||% "none" #' x <- x %||% NA #' } #' #' @name if_null_then `%||%` <- function(x, y) if (is.null(x)) y else x is_not_class <- function(x...
/R/utils.R
no_license
cran/openxlsx
R
false
false
1,351
r
#' If NULL then ... #' #' Replace NULL #' #' @param x A value to check #' @param y A value to substitute if x is null #' @examples #' \dontrun{ #' x <- NULL #' x <- x %||% "none" #' x <- x %||% NA #' } #' #' @name if_null_then `%||%` <- function(x, y) if (is.null(x)) y else x is_not_class <- function(x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bind_miss.R \name{mindx} \alias{mindx} \title{Missing index} \usage{ mindx(data, drop_empty = TRUE) } \arguments{ \item{data}{a data set with missing values.} \item{drop_empty}{a logical value. If \code{TRUE}, columns in \code{data} without ...
/man/mindx.Rd
permissive
bcjaeger/ipa
R
false
true
666
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bind_miss.R \name{mindx} \alias{mindx} \title{Missing index} \usage{ mindx(data, drop_empty = TRUE) } \arguments{ \item{data}{a data set with missing values.} \item{drop_empty}{a logical value. If \code{TRUE}, columns in \code{data} without ...
# Author: Sharan Naribole # Filename: helpers.R # H-1B Visa Petitions Dashboard web application to enable exploratory data analysis # on H-1B Visa applications disclosure data in the period 2011-2016 require(lazyeval) require(dplyr) job_filter <- function(df,input_vec) { # Function to filter only the rows from data...
/Project1-ExploreVis&Shiny/H1B_Sharan/helpers.R
no_license
yunweidashuju/online_bootcamp_project
R
false
false
8,111
r
# Author: Sharan Naribole # Filename: helpers.R # H-1B Visa Petitions Dashboard web application to enable exploratory data analysis # on H-1B Visa applications disclosure data in the period 2011-2016 require(lazyeval) require(dplyr) job_filter <- function(df,input_vec) { # Function to filter only the rows from data...
model <- function(t, state, parms) { with(as.list(c(state,parms)), { dFIR <- rFIR*FIR*(1-FIR/K1) - p * FIR * MOOSE; dMOOSE <- rMOOSE*MOOSE*(1-MOOSE/K2) - e*MOOSE*WOLF/(h+MOOSE); dWOLF <- c*e*MOOSE*WOLF/(h+MOOSE) - deathWOLF*WOLF; return(list(c(dFIR, dMOOSE, dWOLF))) }) } p <- c(rFIR=10,rMOOSE=0.5...
/IsleRoyale2.R
no_license
PieterKnops/BiologicalModelling
R
false
false
4,957
r
model <- function(t, state, parms) { with(as.list(c(state,parms)), { dFIR <- rFIR*FIR*(1-FIR/K1) - p * FIR * MOOSE; dMOOSE <- rMOOSE*MOOSE*(1-MOOSE/K2) - e*MOOSE*WOLF/(h+MOOSE); dWOLF <- c*e*MOOSE*WOLF/(h+MOOSE) - deathWOLF*WOLF; return(list(c(dFIR, dMOOSE, dWOLF))) }) } p <- c(rFIR=10,rMOOSE=0.5...
source('./process_data.R') source('./plotting.R') par(mfrow=c(2,3)) par(mar=c(4.5,5,3,1)) setwd('../data/nissle') address=getwd() data<-ProcessData(address) medians<-GetMedians(data) groups<-c('nissle','og241','oxb19','patol','loxb19','lpatol') letters<-c('A)','B)','C)','D)','E)','F)') count=1 for (item in groups){ ...
/R/figure_S9.R
no_license
davidtgonzales/Bayesian-Fitting
R
false
false
1,604
r
source('./process_data.R') source('./plotting.R') par(mfrow=c(2,3)) par(mar=c(4.5,5,3,1)) setwd('../data/nissle') address=getwd() data<-ProcessData(address) medians<-GetMedians(data) groups<-c('nissle','og241','oxb19','patol','loxb19','lpatol') letters<-c('A)','B)','C)','D)','E)','F)') count=1 for (item in groups){ ...
\name{svystdres} \alias{svystdres} \title{ Standardized residuals for models fitted with complex survey data } \description{ Compute standardized residuals for fixed effects, linear regression models fitted with data collected from one- and two-stage complex survey designs. } \usage{ svystdres(mobj, stvar=NU...
/man/svystdres.Rd
no_license
nicholaskarlson/svydiags
R
false
false
3,235
rd
\name{svystdres} \alias{svystdres} \title{ Standardized residuals for models fitted with complex survey data } \description{ Compute standardized residuals for fixed effects, linear regression models fitted with data collected from one- and two-stage complex survey designs. } \usage{ svystdres(mobj, stvar=NU...
#library(jsonlite) library(dplyr) library(stringr) library(ggplot2) library(magrittr) # Question 1 edu_103_full <- read.csv("/Users/macbook/Desktop/三下/107bigdatacguimhw1-jason19970210/Input/103年各教育程度別初任人員經常性薪資─按大職類分.csv",stringsAsFactors = F) edu_104_full <- read.csv("/Users/macbook/Desktop/三下/107bigdatacguimhw1-jaso...
/DataAnalysis.R
no_license
CGUIM-BigDataAnalysis/107bigdatacguimhw1-jason19970210
R
false
false
10,324
r
#library(jsonlite) library(dplyr) library(stringr) library(ggplot2) library(magrittr) # Question 1 edu_103_full <- read.csv("/Users/macbook/Desktop/三下/107bigdatacguimhw1-jason19970210/Input/103年各教育程度別初任人員經常性薪資─按大職類分.csv",stringsAsFactors = F) edu_104_full <- read.csv("/Users/macbook/Desktop/三下/107bigdatacguimhw1-jaso...
#' Data from Experiment 2 in Gauvrit, Singmann, Soler-Toscano & Zenil #' #' Responses of one participant (42 years old) to 200 randomly generated strings of length 10 from an alphabet of 6 symbols. #' For each string, the participant was asked to indicate whther or not the string appears random or not. #' #' @docType d...
/R/exp2-data.R
no_license
singmann/acss
R
false
false
635
r
#' Data from Experiment 2 in Gauvrit, Singmann, Soler-Toscano & Zenil #' #' Responses of one participant (42 years old) to 200 randomly generated strings of length 10 from an alphabet of 6 symbols. #' For each string, the participant was asked to indicate whther or not the string appears random or not. #' #' @docType d...
#load libraries #install.packages("ggpubr") library(tidyr) library(ggplot2) library(ggpubr) library(nlme) library(dplyr) library(lme4) library(lmerTest) # MOLT SIZES #set up working directory setwd("C:/Users/emma.reinhardt/Desktop/Research/Size/Data") #read in file allMolts <- read.csv("molts.csv", strin...
/moltAnalysis.R
no_license
KROVINSKI/19-Hollings-Size-Data
R
false
false
14,016
r
#load libraries #install.packages("ggpubr") library(tidyr) library(ggplot2) library(ggpubr) library(nlme) library(dplyr) library(lme4) library(lmerTest) # MOLT SIZES #set up working directory setwd("C:/Users/emma.reinhardt/Desktop/Research/Size/Data") #read in file allMolts <- read.csv("molts.csv", strin...
#1 library(MASS) library(dplyr) rm(list=ls()) #2 sum(is.na(survey)) #3 newsurvey=na.omit(survey) #4 table(newsurvey$Sex) #5 table(newsurvey$W.Hnd) #6 freq=table(newsurvey$W.Hnd) rel=freq/nrow(newsurvey) round(rel,2) #7 c=newsurvey[which(newsurvey$W.Hnd=='Left'),] cbind(table(c$Sex)) #8 c=newsurvey[which(newsurv...
/RStudio/SEM I/Lab6/6.R
no_license
r-harini/Code
R
false
false
1,231
r
#1 library(MASS) library(dplyr) rm(list=ls()) #2 sum(is.na(survey)) #3 newsurvey=na.omit(survey) #4 table(newsurvey$Sex) #5 table(newsurvey$W.Hnd) #6 freq=table(newsurvey$W.Hnd) rel=freq/nrow(newsurvey) round(rel,2) #7 c=newsurvey[which(newsurvey$W.Hnd=='Left'),] cbind(table(c$Sex)) #8 c=newsurvey[which(newsurv...
##' class method bind data ##' ##' binds data ##' ##' ##' @keywords internal ##' @export bind "bind" <- function(a,...) { UseMethod("bind") } ## default is just to use rbind ##' data binding ##' ##' binds data ##' ##' ##' @keywords internal ##' @export "bind.default" <- function(...) { rbind(...) } ...
/R/bind.R
no_license
IPS-LMU/emuR
R
false
false
1,276
r
##' class method bind data ##' ##' binds data ##' ##' ##' @keywords internal ##' @export bind "bind" <- function(a,...) { UseMethod("bind") } ## default is just to use rbind ##' data binding ##' ##' binds data ##' ##' ##' @keywords internal ##' @export "bind.default" <- function(...) { rbind(...) } ...
#' APIS function that assigns with observed data #' #' This function performs the APIS procedure #' @param off.genotype Offspring genotypes | Matrix (n*p) #' where n = number of individuals #' p = number of markers #' rownames(offspring) = labels of offspring #' marker coding = "All1/All2" example: "A/A", "A/B", "NA/NA...
/R/APIS_functions.R
no_license
rgriot/APIS
R
false
false
38,689
r
#' APIS function that assigns with observed data #' #' This function performs the APIS procedure #' @param off.genotype Offspring genotypes | Matrix (n*p) #' where n = number of individuals #' p = number of markers #' rownames(offspring) = labels of offspring #' marker coding = "All1/All2" example: "A/A", "A/B", "NA/NA...
#----------------------------------------------- # Load packages and prepare data #----------------------------------------------- # load packages # Don't forget to install required packages if needed... library(resemble);library(prospectr) library(ggplot2) library(foreach); library(reshape2) # load dataset from the ...
/code_ex.R
no_license
antoinestevens/resemble
R
false
false
16,016
r
#----------------------------------------------- # Load packages and prepare data #----------------------------------------------- # load packages # Don't forget to install required packages if needed... library(resemble);library(prospectr) library(ggplot2) library(foreach); library(reshape2) # load dataset from the ...
download <- function() { # create a directory for downloads if it doesnt't exist if(!file.exists("./downloads")) { dir.create("./downloads/") } ## download & unzip the file fileUrl <-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, destf...
/download.R
no_license
honto-ming/getdata-011-proj
R
false
false
460
r
download <- function() { # create a directory for downloads if it doesnt't exist if(!file.exists("./downloads")) { dir.create("./downloads/") } ## download & unzip the file fileUrl <-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, destf...
\name{twoSamplePermutationTestProportion} \alias{twoSamplePermutationTestProportion} \title{ Randomization (Permutation) Test to Compare Two Proportions (Fisher's Exact Test) } \description{ Perform a two-sample randomization (permutation) test to compare two proportions. This is also called Fisher's exa...
/man/twoSamplePermutationTestProportion.Rd
no_license
alexkowa/EnvStats
R
false
false
15,120
rd
\name{twoSamplePermutationTestProportion} \alias{twoSamplePermutationTestProportion} \title{ Randomization (Permutation) Test to Compare Two Proportions (Fisher's Exact Test) } \description{ Perform a two-sample randomization (permutation) test to compare two proportions. This is also called Fisher's exa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetSettledSpecialFixtures.R \name{GetSettledSpecialFixtures} \alias{GetSettledSpecialFixtures} \title{Get Settled Special Fixtures} \usage{ GetSettledSpecialFixtures(sportid, leagueids = NULL, since = NULL) } \arguments{ \item{sportid}{(optio...
/man/GetSettledSpecialFixtures.Rd
no_license
marcoblume/pinnacle.API
R
false
true
853
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetSettledSpecialFixtures.R \name{GetSettledSpecialFixtures} \alias{GetSettledSpecialFixtures} \title{Get Settled Special Fixtures} \usage{ GetSettledSpecialFixtures(sportid, leagueids = NULL, since = NULL) } \arguments{ \item{sportid}{(optio...
############################################################# #DADA2 Pipeline Tutorial (version 1.12) #notes: - tutorial and data found at: https://benjjneb.github.io/dada2/tutorial.html # - instructions to install DADA2 provided at: https://benjjneb.github.io/dada2/dada-installation.html # - running DA...
/DADA2 pipeline tutorial script.R
no_license
3mila/Introduction-to-Metagenomics-Summer-Workshop-2019
R
false
false
5,414
r
############################################################# #DADA2 Pipeline Tutorial (version 1.12) #notes: - tutorial and data found at: https://benjjneb.github.io/dada2/tutorial.html # - instructions to install DADA2 provided at: https://benjjneb.github.io/dada2/dada-installation.html # - running DA...
# ---- nm_fun ---- nm_ <- nm_fun("TEST-drive_ls", user_run = FALSE) # ---- clean ---- if (CLEAN) { drive_trash(c( nm_("list-me"), nm_("list-a-folder-shortcut"), nm_("this-should-not-exist"), nm_("topdir") )) } # ---- setup ---- if (SETUP) { drive_mkdir(nm_("list-me")) drive_upload( system....
/tests/testthat/test-drive_ls.R
permissive
tidyverse/googledrive
R
false
false
3,903
r
# ---- nm_fun ---- nm_ <- nm_fun("TEST-drive_ls", user_run = FALSE) # ---- clean ---- if (CLEAN) { drive_trash(c( nm_("list-me"), nm_("list-a-folder-shortcut"), nm_("this-should-not-exist"), nm_("topdir") )) } # ---- setup ---- if (SETUP) { drive_mkdir(nm_("list-me")) drive_upload( system....
#read in data files NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # find row indices for sources (SCC) associated with motor vehicles in SCC data frame # using Short.Name column, searching for term "veh" as proxy for motor vehicle mv <- grep("veh",tolower(SCC$Short.Name)) # su...
/Course4_ExploratoryDataAnalysis/Project2/plot5.R
no_license
younger-once/JHU_DataScience_Specialization
R
false
false
840
r
#read in data files NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # find row indices for sources (SCC) associated with motor vehicles in SCC data frame # using Short.Name column, searching for term "veh" as proxy for motor vehicle mv <- grep("veh",tolower(SCC$Short.Name)) # su...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psiFuns.R \name{opt} \alias{opt} \title{Tuning parameter for a rho function in the (asymptotic bias-) optimal family} \usage{ opt(e) } \arguments{ \item{e}{the desired efficiency of the corresponding regression estimator for Gaussian errors} ...
/man/opt.Rd
no_license
msalibian/RobStatTM
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/psiFuns.R \name{opt} \alias{opt} \title{Tuning parameter for a rho function in the (asymptotic bias-) optimal family} \usage{ opt(e) } \arguments{ \item{e}{the desired efficiency of the corresponding regression estimator for Gaussian errors} ...
\name{rhDNase} \alias{rhDNase} \docType{data} \title{rhDNASE data set} \description{ Results of a randomized trial of rhDNase for the treatment of cystic fibrosis. } \format{ A data frame with 767 observations on the following 8 variables. \describe{ \item{\code{id}}{subeject id} \item{\code{inst}}{enro...
/man/rhDNase.Rd
no_license
Infie/survival
R
false
false
3,954
rd
\name{rhDNase} \alias{rhDNase} \docType{data} \title{rhDNASE data set} \description{ Results of a randomized trial of rhDNase for the treatment of cystic fibrosis. } \format{ A data frame with 767 observations on the following 8 variables. \describe{ \item{\code{id}}{subeject id} \item{\code{inst}}{enro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ml_objective_epistasis.R \name{ml_objective_epistasis} \alias{ml_objective_epistasis} \title{ml_objective for epistasis calculation} \usage{ ml_objective_epistasis(gamma, MAF_input1, MAF_input2, all_tumors, gene1, gene2, variant1, variant2,...
/man/ml_objective_epistasis.Rd
no_license
BacemDataScience/cancereffectsizeR
R
false
true
1,201
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ml_objective_epistasis.R \name{ml_objective_epistasis} \alias{ml_objective_epistasis} \title{ml_objective for epistasis calculation} \usage{ ml_objective_epistasis(gamma, MAF_input1, MAF_input2, all_tumors, gene1, gene2, variant1, variant2,...
#' Create a vector of pi Dirichlet priors with specified values for one or more collections #' #' This handles a case in which the user provides a data frame for \code{pi_prior}. The #' data frame lists desired Dirichlet parameter priors for at least one reference collection, #' and/or a default value for all unspecifi...
/R/custom_pi_prior.R
no_license
eriqande/rubias
R
false
false
1,207
r
#' Create a vector of pi Dirichlet priors with specified values for one or more collections #' #' This handles a case in which the user provides a data frame for \code{pi_prior}. The #' data frame lists desired Dirichlet parameter priors for at least one reference collection, #' and/or a default value for all unspecifi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{data_states} \alias{data_states} \title{FWS data on 7yr ESA implementation plan} \format{A data frame with 1120 rows and 12 variables \describe{ \item{\code{Package.Name}}{Species grouping} \item{\code{Species.name...
/man/data_states.Rd
no_license
mjevans26/esapriorities
R
false
true
1,241
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{data_states} \alias{data_states} \title{FWS data on 7yr ESA implementation plan} \format{A data frame with 1120 rows and 12 variables \describe{ \item{\code{Package.Name}}{Species grouping} \item{\code{Species.name...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/merge.R \name{merge} \alias{merge} \alias{merge,SilacProteinExperiment,ANY-method} \alias{merge,SilacPeptideExperiment,ANY-method} \alias{merge,SilacProteomicsExperiment,ANY-method} \title{Merge} \usage{ \S4method{merge}{SilacProteinExperimen...
/man/merge.Rd
no_license
marcpaga/pulsedSilac
R
false
true
2,525
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/merge.R \name{merge} \alias{merge} \alias{merge,SilacProteinExperiment,ANY-method} \alias{merge,SilacPeptideExperiment,ANY-method} \alias{merge,SilacProteomicsExperiment,ANY-method} \title{Merge} \usage{ \S4method{merge}{SilacProteinExperimen...
require(DT) render_tables <- function(data, currency = NULL, percentage = NULL, round = NULL, dom = 'ftirp'){ DT::renderDataTable(expr = { if(!is.null(currency)){ currency <- currency[currency %in% colnames(data())] } else if(!is.null(percentage)){ percentage <- percentage[percentage %in% co...
/6. Viz/shiny/src/functions/render_table.R
permissive
ds4a82/secop-analysis
R
false
false
960
r
require(DT) render_tables <- function(data, currency = NULL, percentage = NULL, round = NULL, dom = 'ftirp'){ DT::renderDataTable(expr = { if(!is.null(currency)){ currency <- currency[currency %in% colnames(data())] } else if(!is.null(percentage)){ percentage <- percentage[percentage %in% co...
timeshift=read.csv("chap15e1KneesWhoSayNight.csv") stripchart(timeshift$shift~timeshift$treatment,vertical=TRUE,method="jitter",xlab="Treatment",ylab="Shift (h)") ###Run an Anova #Create a linear model first. timeshift.lm=lm(timeshift$shift~timeshift$treatment) #Then create the Anova table. anova(timeshift.lm) ...
/anova.part2.R
no_license
AHdeRojas/Experimental-Design-and-Biometry-R-
R
false
false
3,306
r
timeshift=read.csv("chap15e1KneesWhoSayNight.csv") stripchart(timeshift$shift~timeshift$treatment,vertical=TRUE,method="jitter",xlab="Treatment",ylab="Shift (h)") ###Run an Anova #Create a linear model first. timeshift.lm=lm(timeshift$shift~timeshift$treatment) #Then create the Anova table. anova(timeshift.lm) ...
#' @param notification_id \code{character}; the Salesforce Id assigned to a created #' analytics notification. It will start with \code{"0Au"}.
/man-roxygen/notification_id.R
permissive
StevenMMortimer/salesforcer
R
false
false
145
r
#' @param notification_id \code{character}; the Salesforce Id assigned to a created #' analytics notification. It will start with \code{"0Au"}.
#!/usr/bin/env Rscript # Written by: # Gustavo Burin <gustavoburin@usp.br> # In collaboration with: # Equipe Observatório COVID-19 BR ##################################### ##################################### ### B-Diversitree is a module that runs a bayesian implementation of the Musse, Geosse and Classe models pre...
/master_report.R
no_license
covid19br/reports
R
false
false
7,707
r
#!/usr/bin/env Rscript # Written by: # Gustavo Burin <gustavoburin@usp.br> # In collaboration with: # Equipe Observatório COVID-19 BR ##################################### ##################################### ### B-Diversitree is a module that runs a bayesian implementation of the Musse, Geosse and Classe models pre...
corner_number <- function(nrow, ncol, index_vector = NULL, give_indexes = FALSE){ corner_indexes <- c(1, ncol, nrow*ncol,(nrow*ncol) - (ncol -1)) if (give_indexes){ return(corner_indexes) }else { corner_number <- 0 for(i in index_vector){ if ( i %in% corner_indexes){ corner_number <- ...
/Simulations/corner_number.R
permissive
mccabete/SpatialAdjacency
R
false
false
459
r
corner_number <- function(nrow, ncol, index_vector = NULL, give_indexes = FALSE){ corner_indexes <- c(1, ncol, nrow*ncol,(nrow*ncol) - (ncol -1)) if (give_indexes){ return(corner_indexes) }else { corner_number <- 0 for(i in index_vector){ if ( i %in% corner_indexes){ corner_number <- ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{sj.setGeomColors} \alias{sj.setGeomColors} \title{Helper function to set geom colors} \usage{ sj.setGeomColors(plot, geom.colors, pal.len, show.guide = TRUE, labels = NULL) } \arguments{ \item{plot}{a ggplot object where scales (geom colors) should be set} \...
/man/sj.setGeomColors.Rd
no_license
wilpi/devel
R
false
false
626
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{sj.setGeomColors} \alias{sj.setGeomColors} \title{Helper function to set geom colors} \usage{ sj.setGeomColors(plot, geom.colors, pal.len, show.guide = TRUE, labels = NULL) } \arguments{ \item{plot}{a ggplot object where scales (geom colors) should be set} \...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ggcyto-flowSet.R \name{as.filterList.data.frame} \alias{as.filterList.data.frame} \title{Convert data.frame back to filterList} \usage{ as.filterList.data.frame(df, pcols = ".rownames") } \arguments{ \item{pcols}{the pData columns} } ...
/man/as.filterList.data.frame.Rd
no_license
kdh4win4/ggcyto
R
false
false
462
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/ggcyto-flowSet.R \name{as.filterList.data.frame} \alias{as.filterList.data.frame} \title{Convert data.frame back to filterList} \usage{ as.filterList.data.frame(df, pcols = ".rownames") } \arguments{ \item{pcols}{the pData columns} } ...
#Module with functions for campare gene expression distributions between controls and treatment source('cp_plots_pert.R') #takes as input the gene_id of the gene and the cp_name, the name of the treatment to compare with the control gene_ttest <- function(mod_df, ctl_df, gene_id, cp_name){ ctl_gene <- ctl_df %...
/cp_hypothesis_tests.R
no_license
heimannch/immunocmap
R
false
false
4,286
r
#Module with functions for campare gene expression distributions between controls and treatment source('cp_plots_pert.R') #takes as input the gene_id of the gene and the cp_name, the name of the treatment to compare with the control gene_ttest <- function(mod_df, ctl_df, gene_id, cp_name){ ctl_gene <- ctl_df %...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listOMLFlows.R \name{listOMLFlows} \alias{listOMLFlows} \title{List all registered OpenML flows.} \usage{ listOMLFlows(tag = NULL, limit = NULL, offset = NULL, verbosity = NULL) } \arguments{ \item{tag}{[\code{character}]\cr If not \code{NU...
/man/listOMLFlows.Rd
permissive
annakrystalli/openml-r
R
false
true
2,409
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/listOMLFlows.R \name{listOMLFlows} \alias{listOMLFlows} \title{List all registered OpenML flows.} \usage{ listOMLFlows(tag = NULL, limit = NULL, offset = NULL, verbosity = NULL) } \arguments{ \item{tag}{[\code{character}]\cr If not \code{NU...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sample-covariates.R \name{summary.eav_covariates} \alias{summary.eav_covariates} \title{Provides a summary table of sample covariates.} \usage{ \method{summary}{eav_covariates}(object, expanded = FALSE, droplevels = TRUE, ...) } \arguments{ \...
/man/summary.eav_covariates.Rd
permissive
jonocarroll/FacileData
R
false
true
1,488
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sample-covariates.R \name{summary.eav_covariates} \alias{summary.eav_covariates} \title{Provides a summary table of sample covariates.} \usage{ \method{summary}{eav_covariates}(object, expanded = FALSE, droplevels = TRUE, ...) } \arguments{ \...
# Load data tree_lines <- do.call(rbind, strsplit(readLines("./3/input.txt"), "")) # Part 1 ## Clunky solution but it works get_path <- function(trees, x, y){ its <- (nrow(trees)-1) %/% y width <- ((its*x) %/% ncol(trees))+1 trees <- matrix(trees, ncol = ncol(trees)*width, nrow = nrow(trees)) mat <- cbind(...
/3/day_3.R
no_license
clanfear/advent_2020
R
false
false
711
r
# Load data tree_lines <- do.call(rbind, strsplit(readLines("./3/input.txt"), "")) # Part 1 ## Clunky solution but it works get_path <- function(trees, x, y){ its <- (nrow(trees)-1) %/% y width <- ((its*x) %/% ncol(trees))+1 trees <- matrix(trees, ncol = ncol(trees)*width, nrow = nrow(trees)) mat <- cbind(...
## This dataset is publicly available. I extracted it from the 'hake' ## dataset from the 'rcsurplus' package oldwd <- getwd() setwd("data-raw") hake <- read.csv("hake.csv") str(hake) hake$cpue <- exp(hake$log_cpue) all.equal(hake$catch/hake$effort, hake$cpue) ## Keep only CPUE hake <- hake[, -4] str(hake) save(hake, f...
/data-raw/hake.R
no_license
fernandomayer/dmfs
R
false
false
359
r
## This dataset is publicly available. I extracted it from the 'hake' ## dataset from the 'rcsurplus' package oldwd <- getwd() setwd("data-raw") hake <- read.csv("hake.csv") str(hake) hake$cpue <- exp(hake$log_cpue) all.equal(hake$catch/hake$effort, hake$cpue) ## Keep only CPUE hake <- hake[, -4] str(hake) save(hake, f...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## makeCacheMatrix takes in a matrix and gives out a list of four functions. ## set function sets the variables of parent environment ## get function returns the matrix passed into make...
/cachematrix.R
no_license
manasac/ProgrammingAssignment2
R
false
false
1,838
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## makeCacheMatrix takes in a matrix and gives out a list of four functions. ## set function sets the variables of parent environment ## get function returns the matrix passed into make...
`colkd.temp.abs` <- function () { colkd.temp.abs.v2() }
/src/colkd.temp.abs.R
no_license
jonasbhend/re-calibration
R
false
false
56
r
`colkd.temp.abs` <- function () { colkd.temp.abs.v2() }
# load the train and test files into memory testd <- read.table("UCI/test/X_test.txt", header=F,sep="") train <- read.table("UCI/train/X_train.txt", header=F,sep="") # now load the header features <- read.table("UCI/features.txt", header=F,sep="") # we only want the mean and std columns f_mean_and_std_only <- feature...
/run_analysis.R
no_license
davidtam/getData
R
false
false
2,478
r
# load the train and test files into memory testd <- read.table("UCI/test/X_test.txt", header=F,sep="") train <- read.table("UCI/train/X_train.txt", header=F,sep="") # now load the header features <- read.table("UCI/features.txt", header=F,sep="") # we only want the mean and std columns f_mean_and_std_only <- feature...
\name{utility.aggregate.mix} \alias{utility.aggregate.mix} \title{Mixed aggregation of values and utilities} \description{ Function to perform a mixed aggregation of values and utilities. The mixture consists of a weighted mean of the additive, minimum and geometric aggregation techniques. } \usage{ ut...
/man/utility.aggregate.mix.Rd
no_license
cran/utility
R
false
false
4,200
rd
\name{utility.aggregate.mix} \alias{utility.aggregate.mix} \title{Mixed aggregation of values and utilities} \description{ Function to perform a mixed aggregation of values and utilities. The mixture consists of a weighted mean of the additive, minimum and geometric aggregation techniques. } \usage{ ut...
context("type bioc") test_that("parse_remote", { pr <- parse_remotes("bioc::Biobase")[[1]] expect_equal(pr$package, "Biobase") expect_equal(pr$atleast, "") expect_equal(pr$version, "") expect_equal(pr$ref, "bioc::Biobase") expect_equal(pr$type, "bioc") expect_true("remote_ref_bioc" %in% class(pr)) ex...
/tests/testthat/test-type-bioc.R
permissive
dpastoor/pkgdepends
R
false
false
5,377
r
context("type bioc") test_that("parse_remote", { pr <- parse_remotes("bioc::Biobase")[[1]] expect_equal(pr$package, "Biobase") expect_equal(pr$atleast, "") expect_equal(pr$version, "") expect_equal(pr$ref, "bioc::Biobase") expect_equal(pr$type, "bioc") expect_true("remote_ref_bioc" %in% class(pr)) ex...
install.packages("data.table") install.packages("magrittr") install.packages("corrplot") install.packages("psych") install.packages("dplyr") install.packages("plyr") library(corrplot) library(data.table) library(magrittr) library(dplyr) library(psych) library(plyr) df_total_alta = read.csv(file = './src/alta-regiao-...
/exercicios/2-b.r
no_license
SamLucas/Trabalho-do-Ramon
R
false
false
4,319
r
install.packages("data.table") install.packages("magrittr") install.packages("corrplot") install.packages("psych") install.packages("dplyr") install.packages("plyr") library(corrplot) library(data.table) library(magrittr) library(dplyr) library(psych) library(plyr) df_total_alta = read.csv(file = './src/alta-regiao-...
#' @param minMAF The minimum valid minor allele frequency (MAF). Large differences between the variances of two variables in the same model can cause optimization failures that invalidate the model. Further, very small minor allele frequencies are more affected by outliers or influential observations. Accordingly, user...
/man-roxygen/args-minmaf.R
no_license
jpritikin/gwsem
R
false
false
583
r
#' @param minMAF The minimum valid minor allele frequency (MAF). Large differences between the variances of two variables in the same model can cause optimization failures that invalidate the model. Further, very small minor allele frequencies are more affected by outliers or influential observations. Accordingly, user...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.helpers.R \name{get_run_ids} \alias{get_run_ids} \title{Get vector of run IDs for a given workflow ID} \usage{ get_run_ids(bety, workflow_id) } \arguments{ \item{bety}{BETYdb connection, as opened by `betyConnect()`} \item{workflow_id}...
/visualization/man/get_run_ids.Rd
permissive
Viskari/pecan
R
false
true
399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.helpers.R \name{get_run_ids} \alias{get_run_ids} \title{Get vector of run IDs for a given workflow ID} \usage{ get_run_ids(bety, workflow_id) } \arguments{ \item{bety}{BETYdb connection, as opened by `betyConnect()`} \item{workflow_id}...
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/kidney.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.15,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/kidney/kidney_031.txt',append=TRUE...
/Model/EN/Lasso/kidney/kidney_031.R
no_license
leon1003/QSMART
R
false
false
351
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/kidney.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.15,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/kidney/kidney_031.txt',append=TRUE...
## File Name: nedelsky.latresp.R ## File Version: 0.10 #---- latent responses for Nedelksy function nedelsky.latresp <- function(K) { nodes <- c(0,1) ndim <- K combis <- as.matrix( expand.grid( as.data.frame( matrix( rep(nodes, ndim), ncol=ndim )))) return(combis) }
/sirt/R/nedelsky.latresp.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
297
r
## File Name: nedelsky.latresp.R ## File Version: 0.10 #---- latent responses for Nedelksy function nedelsky.latresp <- function(K) { nodes <- c(0,1) ndim <- K combis <- as.matrix( expand.grid( as.data.frame( matrix( rep(nodes, ndim), ncol=ndim )))) return(combis) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CPT-POT-extract.R \name{extract-cpt} \alias{extract-cpt} \alias{extractCPT} \alias{extractCPT.data.frame} \alias{extractCPT.table} \alias{extractPOT} \alias{extractPOT.data.frame} \alias{extractPOT.table} \title{Extract conditional probabilit...
/man/extract-cpt.Rd
no_license
ktargows/gRain
R
false
true
2,895
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CPT-POT-extract.R \name{extract-cpt} \alias{extract-cpt} \alias{extractCPT} \alias{extractCPT.data.frame} \alias{extractCPT.table} \alias{extractPOT} \alias{extractPOT.data.frame} \alias{extractPOT.table} \title{Extract conditional probabilit...
fluidPage( titlePanel("Probabilty Prediction given Radius"), title = 'Formular', withMathJax(), uiOutput('ex1'), uiOutput('ex2'), uiOutput('ex3'), uiOutput('ex4'), sidebarPanel( sidebarLayout(position = "left", selectInput("Country", label = "Select a Country", ...
/Data Fest Project/R_Shiny/ProbabilityModel-Rshiny/PD2/ui.R
no_license
sileyang/Sile_Yang
R
false
false
1,219
r
fluidPage( titlePanel("Probabilty Prediction given Radius"), title = 'Formular', withMathJax(), uiOutput('ex1'), uiOutput('ex2'), uiOutput('ex3'), uiOutput('ex4'), sidebarPanel( sidebarLayout(position = "left", selectInput("Country", label = "Select a Country", ...
# if statement var1 <- 1 var2 <- 2 if (var1 > var2){ cat("var1 큼") } else { cat("var2 큼") } cat(ifelse(var1>var2, "var1 큼", "var2 큼")) # switch statement # switch(EXPR=수치데이터, 식1, 식2, 식3, ...) # switch(EXPR=문자열데이터, 비교값1=식1, 비교값2=식2, 비교값3=, 비교값4=식3, ..., 식4) switch(EXPR=var1, "월", "화", "수", "목", "금", "토", "일") var...
/control_statement_study.R
no_license
eunjjeong/R_study
R
false
false
833
r
# if statement var1 <- 1 var2 <- 2 if (var1 > var2){ cat("var1 큼") } else { cat("var2 큼") } cat(ifelse(var1>var2, "var1 큼", "var2 큼")) # switch statement # switch(EXPR=수치데이터, 식1, 식2, 식3, ...) # switch(EXPR=문자열데이터, 비교값1=식1, 비교값2=식2, 비교값3=, 비교값4=식3, ..., 식4) switch(EXPR=var1, "월", "화", "수", "목", "금", "토", "일") var...
output$currUI <- renderUI({ if(logged$status == "notlogged"){ fluidRow(align="center", br(),br(),br(),br(),br(), imageOutput("login_header",inline = T), textInput("username", "username:"), passwordInput("password", "password:"), tags$style(type="tex...
/backend/scripts/reactive/loginUi.R
permissive
mwang87/MetaboShiny
R
false
false
121,735
r
output$currUI <- renderUI({ if(logged$status == "notlogged"){ fluidRow(align="center", br(),br(),br(),br(),br(), imageOutput("login_header",inline = T), textInput("username", "username:"), passwordInput("password", "password:"), tags$style(type="tex...
library(psych) library(caTools) library(dplyr) library(caret) library(ggplot2) library(ggthemes) library(ROCR) library(car) library(MASS) library(gridExtra) library(data.table) library(scales) setwd("~/Documents/PhD2/project") newdata=read.csv('newdata.csv', header=TRUE) data_train=read.csv('data_train.csv', header=T...
/classification_lda_qda.R
no_license
zhalisheva/ML
R
false
false
3,379
r
library(psych) library(caTools) library(dplyr) library(caret) library(ggplot2) library(ggthemes) library(ROCR) library(car) library(MASS) library(gridExtra) library(data.table) library(scales) setwd("~/Documents/PhD2/project") newdata=read.csv('newdata.csv', header=TRUE) data_train=read.csv('data_train.csv', header=T...
# # This is a Plumber API. You can run the API by clicking # the 'Run API' button above. # # Find out more about building APIs with Plumber here: # # https://www.rplumber.io/ # library(plumber) library(config) library(reticulate) library(PepTools) # Get pinned model from RStudio Connect con <- config::get(file = h...
/part3/immunotherapy-master/plumber/plumber.R
no_license
graemeleehickey/Workshop-R-Tensorflow-Scientific-Computing
R
false
false
1,619
r
# # This is a Plumber API. You can run the API by clicking # the 'Run API' button above. # # Find out more about building APIs with Plumber here: # # https://www.rplumber.io/ # library(plumber) library(config) library(reticulate) library(PepTools) # Get pinned model from RStudio Connect con <- config::get(file = h...
library(ape) testtree <- read.tree("4245_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4245_0_unrooted.txt")
/codeml_files/newick_trees_processed/4245_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("4245_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4245_0_unrooted.txt")
##barley barley<-read.csv("C:\\Users\\nick\\Documents\\Newcastle\\Fourth Year\\BIO8068 Management and Visualisation of Data\\test_BIO8068_1\\Day2 barley.csv") library(ggplot2) library(car) library(RVAideMemoire) library(mosaic) head(barley)#looking at top few rows str(barley)#so you can check the characteristics of th...
/Day2 t-test practice.R
no_license
CSellwood1/test_BIO8068
R
false
false
1,631
r
##barley barley<-read.csv("C:\\Users\\nick\\Documents\\Newcastle\\Fourth Year\\BIO8068 Management and Visualisation of Data\\test_BIO8068_1\\Day2 barley.csv") library(ggplot2) library(car) library(RVAideMemoire) library(mosaic) head(barley)#looking at top few rows str(barley)#so you can check the characteristics of th...
# Load packages library(data.table) library(phytools) library(phangorn) # Set working directory setwd(here("analysis_rerun/results/mtree/gains_losses")) # Source helper functions source(here("R/aic-rate-summary.R")) source(here("R/gains-losses.R")) # Read in tree and traits------------------------------------------...
/analysis_rerun/results/mtree/gains_losses/mtree-gains-losses.R
no_license
jagault/evolution-photosymbiosis
R
false
false
7,265
r
# Load packages library(data.table) library(phytools) library(phangorn) # Set working directory setwd(here("analysis_rerun/results/mtree/gains_losses")) # Source helper functions source(here("R/aic-rate-summary.R")) source(here("R/gains-losses.R")) # Read in tree and traits------------------------------------------...
# build matrix for data # 7 March 2020 library(reshape2) library(TTR) library(dplyr) library(DataCombine) create_data_frame <- function() { For_Eval <- data.frame() Corr <- 0.5 Max_sample <- 3 R_sample <- integer(48) Hocount_sample <- integer(48) LengthOfStay <- integer(48) AvgCleaning <- integer...
/create_data.R
no_license
wangqi12240205/JHH-risk-prediction
R
false
false
3,134
r
# build matrix for data # 7 March 2020 library(reshape2) library(TTR) library(dplyr) library(DataCombine) create_data_frame <- function() { For_Eval <- data.frame() Corr <- 0.5 Max_sample <- 3 R_sample <- integer(48) Hocount_sample <- integer(48) LengthOfStay <- integer(48) AvgCleaning <- integer...
x=seq(7.45,32.45,5) a=c(2,9,29,54,11,5) b=c(9,11,18,32,27,13) na=sum(a) nb=sum(b) mean_a=sum(x*a)/sum(a) mean_a mean_b=sum(x*b)/sum(b) mean_b A=22.45 d=x-A fd=a*d fdd=a*d*d var_a= (sum(fdd)/na) - (sum(fd)/na)^2 sd_a=sqrt(var_a) sd_a #now for b fdb=b*d fddb=fdb*d var_b = sum(fd...
/Stats-Lab/DA1/q2_script.R
no_license
theProgrammerDavid/VIT-LABs
R
false
false
368
r
x=seq(7.45,32.45,5) a=c(2,9,29,54,11,5) b=c(9,11,18,32,27,13) na=sum(a) nb=sum(b) mean_a=sum(x*a)/sum(a) mean_a mean_b=sum(x*b)/sum(b) mean_b A=22.45 d=x-A fd=a*d fdd=a*d*d var_a= (sum(fdd)/na) - (sum(fd)/na)^2 sd_a=sqrt(var_a) sd_a #now for b fdb=b*d fddb=fdb*d var_b = sum(fd...
library("ggplot2") experiment.one <- read.table("samples/survey_1_2.csv", header = TRUE, sep=",") # Tables for the follow the herd experiment AB.herd <- matrix(c( # control A , treatment A added experiment.one[c(1,3),3] - experiment.one[c(1,3), 6], # c...
/analysis.r
no_license
sandbox/wine-test
R
false
false
6,904
r
library("ggplot2") experiment.one <- read.table("samples/survey_1_2.csv", header = TRUE, sep=",") # Tables for the follow the herd experiment AB.herd <- matrix(c( # control A , treatment A added experiment.one[c(1,3),3] - experiment.one[c(1,3), 6], # c...
library(plotly) d<-read.csv("/Users/darshak/Documents/Projects/YALM/uniformResults.csv") matplot(d$Hot....Almost., cbind(d$tier1.time, d$tier2.time, d$Sum), pch=c(0,1), col = c("Red", "Blue", "Green"), main="Hot % vs Time", ylab = "Values", xlab = "Hot %", type = "l", lw = c(1,0.75), lt = c(1,1,1)) legend("topright", ...
/Other/Graphs.R
no_license
NeeharikaSompalli/YALM
R
false
false
4,731
r
library(plotly) d<-read.csv("/Users/darshak/Documents/Projects/YALM/uniformResults.csv") matplot(d$Hot....Almost., cbind(d$tier1.time, d$tier2.time, d$Sum), pch=c(0,1), col = c("Red", "Blue", "Green"), main="Hot % vs Time", ylab = "Values", xlab = "Hot %", type = "l", lw = c(1,0.75), lt = c(1,1,1)) legend("topright", ...
library(ape) testtree <- read.tree("6434_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6434_0_unrooted.txt")
/codeml_files/newick_trees_processed/6434_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("6434_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6434_0_unrooted.txt")
setwd("C:/Govinda/PU2376/project/Desktop/Desktop/Data Science/Edu Pristine/Yogesh Sir Batch/timeseriesandclustering") rain=read.csv("rain.csv") # converting to a time series data format raints=ts(rain,start=c(1817)) plot(raints) ######################################################################## # ...
/R/9. Time Series/TSA.R
no_license
abhijitvp/DS
R
false
false
3,065
r
setwd("C:/Govinda/PU2376/project/Desktop/Desktop/Data Science/Edu Pristine/Yogesh Sir Batch/timeseriesandclustering") rain=read.csv("rain.csv") # converting to a time series data format raints=ts(rain,start=c(1817)) plot(raints) ######################################################################## # ...
n1=function(perm){ #swap two neighbour elements l=length(perm) res=matrix(nrow=l-1,ncol=l) for(i in 1:(l-1)){ tmp=perm tmp[i:(i+1)]=rev(tmp[i:(i+1)]) #print(tmp) res[i,]=tmp } res } n2=function(perm){#swap two parts of permutation l=length(perm) res=matrix(nrow=l-1,ncol=l) for(i in 1:(l-1)){ res[i,]=...
/vnsearch.R
no_license
mtsch/rzhp-seminarska
R
false
false
1,637
r
n1=function(perm){ #swap two neighbour elements l=length(perm) res=matrix(nrow=l-1,ncol=l) for(i in 1:(l-1)){ tmp=perm tmp[i:(i+1)]=rev(tmp[i:(i+1)]) #print(tmp) res[i,]=tmp } res } n2=function(perm){#swap two parts of permutation l=length(perm) res=matrix(nrow=l-1,ncol=l) for(i in 1:(l-1)){ res[i,]=...
mark_type <- function(cls){ stopifnot(is.character(cls)) if (length(cls) == 1) return(cls) support_types = c('tbl_df', 'data.frame', 'list', 'matrix', 'factor', 'logical', 'integer', 'numeric', 'character') for (i in support_types){ if (i %in% cls) return(i) } return(cls[1]) } #' Pr...
/R/compare.R
no_license
vishalbelsare/autotest
R
false
false
11,318
r
mark_type <- function(cls){ stopifnot(is.character(cls)) if (length(cls) == 1) return(cls) support_types = c('tbl_df', 'data.frame', 'list', 'matrix', 'factor', 'logical', 'integer', 'numeric', 'character') for (i in support_types){ if (i %in% cls) return(i) } return(cls[1]) } #' Pr...
library(data.table) library(lubridate) HousingData = fread("https://s3.amazonaws.com/reubenworkshopdata/Sessions/Session+1/kc_house_data.csv") head(HousingData) str(HousingData) summary(HousingData) HousingData = HousingData[,.( price, bedrooms = ceiling(bedrooms), bathrooms = ceiling(bathrooms), sq...
/dataR 12_6_2017.R
no_license
kbwcan/Datascience
R
false
false
4,010
r
library(data.table) library(lubridate) HousingData = fread("https://s3.amazonaws.com/reubenworkshopdata/Sessions/Session+1/kc_house_data.csv") head(HousingData) str(HousingData) summary(HousingData) HousingData = HousingData[,.( price, bedrooms = ceiling(bedrooms), bathrooms = ceiling(bathrooms), sq...
# Geography --------------------------------------------------------------- #' Swedish health care regional codes #' #' Key-value codes for the Swedish health care regions (1-6). #' #' @docType data #' @keywords datasets #' @name region #' @family key_value_data NULL #' Swedish county codes #' #' Key-...
/R/datasets_keyvalue.R
no_license
gil906/decoder
R
false
false
11,653
r
# Geography --------------------------------------------------------------- #' Swedish health care regional codes #' #' Key-value codes for the Swedish health care regions (1-6). #' #' @docType data #' @keywords datasets #' @name region #' @family key_value_data NULL #' Swedish county codes #' #' Key-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FFTreesdata_doc.R \docType{data} \name{fertility} \alias{fertility} \title{Fertility data} \format{ A data frame containing 100 rows and 10 columns. \describe{ \item{season}{Season in which the analysis was performed. (winter, spring, sum...
/man/fertility.Rd
no_license
cran/FFTrees
R
false
true
2,425
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FFTreesdata_doc.R \docType{data} \name{fertility} \alias{fertility} \title{Fertility data} \format{ A data frame containing 100 rows and 10 columns. \describe{ \item{season}{Season in which the analysis was performed. (winter, spring, sum...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vsnc.R \name{vsnc} \alias{vsnc} \title{A package that provide data and analysis code in Agri} \description{ That contains plant breeding, forest breeding, animal breeding etc. It also have some functions that assist asreml package. } \author{...
/man/vsnc.Rd
no_license
dengfei2013/learnasreml
R
false
true
345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vsnc.R \name{vsnc} \alias{vsnc} \title{A package that provide data and analysis code in Agri} \description{ That contains plant breeding, forest breeding, animal breeding etc. It also have some functions that assist asreml package. } \author{...
#!/usr/bin/env Rscript setwd("~/fb/") source("fb_common.R") #remDr <- remoteDriver(remoteServerAddr = "localhost", port = 4446L, browserName = "firefox") remDr <- remoteDriver(remoteServerAddr = "localhost", port = 4446L, browserName = "firefox") remDr$open(silent = T) remDr$navigate("http://www.facebook.com") fb_log...
/fb_scraper2.R
no_license
RomanKyrychenko/fb
R
false
false
1,168
r
#!/usr/bin/env Rscript setwd("~/fb/") source("fb_common.R") #remDr <- remoteDriver(remoteServerAddr = "localhost", port = 4446L, browserName = "firefox") remDr <- remoteDriver(remoteServerAddr = "localhost", port = 4446L, browserName = "firefox") remDr$open(silent = T) remDr$navigate("http://www.facebook.com") fb_log...
# SETUP install.packages("plyr") library("plyr") install.packages("gdata") library("gdata") install.packages("ROCR") library(ROCR) install.packages("leaps") library(leaps) install.packages("stat") library("stat") install.packages("glmnet") install.packages("pROC") library("glmnet") library("pROC") library(ggplot2) l...
/imp1_script_logreg.R
no_license
apaetsch/ACCT399-AnnalectAnalyticsProject
R
false
false
19,739
r
# SETUP install.packages("plyr") library("plyr") install.packages("gdata") library("gdata") install.packages("ROCR") library(ROCR) install.packages("leaps") library(leaps) install.packages("stat") library("stat") install.packages("glmnet") install.packages("pROC") library("glmnet") library("pROC") library(ggplot2) l...
# Prepare a few descriptive plots and statistics for the PAA proposal library(tidyverse) library(data.table) library(foreign) library(survival) library(broom) # 0.1 load data # -------------- # EDAD households and follow up data load('follow.up.RData') # # load('EDAD2008Hogares.RData') # # # make datatable functi...
/PAA2019CFP.R
no_license
mvoigt87/EDAD
R
false
false
9,567
r
# Prepare a few descriptive plots and statistics for the PAA proposal library(tidyverse) library(data.table) library(foreign) library(survival) library(broom) # 0.1 load data # -------------- # EDAD households and follow up data load('follow.up.RData') # # load('EDAD2008Hogares.RData') # # # make datatable functi...
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_aglu_land_input_2_xml #' #' Construct XML data structure for \code{land_input_2.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{command}: either a ve...
/input/gcamdata/R/zaglu_xml_land_input_2.R
permissive
JGCRI/gcam-core
R
false
false
2,592
r
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file. #' module_aglu_land_input_2_xml #' #' Construct XML data structure for \code{land_input_2.xml}. #' #' @param command API command to execute #' @param ... other optional parameters, depending on command #' @return Depends on \code{command}: either a ve...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Plate_Layout.R \name{Plate_Layout_count} \alias{Plate_Layout_count} \title{Return the number of wells} \value{ the number of wells } \description{ Return the number of wells } \seealso{ Other PLATE_LAYOUT: \code{\link{Create_Plate_Lay...
/man/Plate_Layout_count.Rd
no_license
BigelowLab/plateLayout
R
false
false
827
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Plate_Layout.R \name{Plate_Layout_count} \alias{Plate_Layout_count} \title{Return the number of wells} \value{ the number of wells } \description{ Return the number of wells } \seealso{ Other PLATE_LAYOUT: \code{\link{Create_Plate_Lay...
# Create the data data <- Data(x=c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10), y=c(0, 0, 0, 0, 0, 0, 1, 0), cohort=c(0, 1, 2, 3, 4, 5, 5, 5), doseGrid= c(0.1, 0.5, 1.5, 3, 6, seq(from=10, to=80, by=2))) # Initialize the CRM model used to model the data mode...
/examples/Rules-method-stopTrial-StoppingPatientsNearDose.R
no_license
insightsengineering/crmPack
R
false
false
1,858
r
# Create the data data <- Data(x=c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10), y=c(0, 0, 0, 0, 0, 0, 1, 0), cohort=c(0, 1, 2, 3, 4, 5, 5, 5), doseGrid= c(0.1, 0.5, 1.5, 3, 6, seq(from=10, to=80, by=2))) # Initialize the CRM model used to model the data mode...
## download data from url address for data file provided in assignment url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, "zipfile.zip") ## read data table into R library(data.table) data <- read.table(unz("zipfile.zip", "household_power_consumption.txt"),...
/plot3.R
no_license
dmwieskeds/ExData_Plotting1
R
false
false
1,396
r
## download data from url address for data file provided in assignment url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, "zipfile.zip") ## read data table into R library(data.table) data <- read.table(unz("zipfile.zip", "household_power_consumption.txt"),...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "blood-transfusion-service-center") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Clas...
/models/openml_blood-transfusion-service-center/classification_Class/46a4d44f60c4a12d1d599236ec041a84/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
729
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "blood-transfusion-service-center") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "Clas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getLikesByMediaCode.R \name{getLikesByMediaCode} \alias{getLikesByMediaCode} \title{Get Likes By Media Code} \usage{ getLikesByMediaCode(code, n = 10, maxID = "", ...) } \arguments{ \item{code}{An Instagram shortcode for a media post} \item{...
/man/getLikesByMediaCode.Rd
no_license
AFIT-R/instaExtract
R
false
true
769
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getLikesByMediaCode.R \name{getLikesByMediaCode} \alias{getLikesByMediaCode} \title{Get Likes By Media Code} \usage{ getLikesByMediaCode(code, n = 10, maxID = "", ...) } \arguments{ \item{code}{An Instagram shortcode for a media post} \item{...
# plots the world contour lines in maps data(World) map_layer <- tm_shape(World) + tm_borders() + tm_format("World", earth.boundary = TRUE, frame = FALSE) + tm_layout(between.margin = 0.1)
/5_day/2_multi_testing/R/lib/map_layer.R
no_license
giscience-fsu/daad_summerschool
R
false
false
198
r
# plots the world contour lines in maps data(World) map_layer <- tm_shape(World) + tm_borders() + tm_format("World", earth.boundary = TRUE, frame = FALSE) + tm_layout(between.margin = 0.1)
library(ape) testtree <- read.tree("6187_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6187_0_unrooted.txt")
/codeml_files/newick_trees_processed/6187_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("6187_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="6187_0_unrooted.txt")