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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LoadData.R \name{LoadData} \alias{LoadData} \title{LoadData} \usage{ LoadData( functionNames = NULL, custom = FALSE, filepath = NULL, interactiveMode = interactive(), tidy = TRUE, DaysOld = 30, minimumpercapitaactivecases = 0, ...
/man/LoadData.Rd
permissive
sjbeckett/localcovid19now
R
false
true
2,347
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LoadData.R \name{LoadData} \alias{LoadData} \title{LoadData} \usage{ LoadData( functionNames = NULL, custom = FALSE, filepath = NULL, interactiveMode = interactive(), tidy = TRUE, DaysOld = 30, minimumpercapitaactivecases = 0, ...
#' @name deleteFromFileRepository #' @title Delete a Single File from the File Repository #' #' @description Deletes a single file from the File Repository based on #' its document ID. #' #' @param rcon A \code{redcapConnection} object. #' @param doc_id \code{integerish(1)} The document ID of the file to be #' ...
/R/deleteFromFileRepository.R
no_license
nutterb/redcapAPI
R
false
false
4,444
r
#' @name deleteFromFileRepository #' @title Delete a Single File from the File Repository #' #' @description Deletes a single file from the File Repository based on #' its document ID. #' #' @param rcon A \code{redcapConnection} object. #' @param doc_id \code{integerish(1)} The document ID of the file to be #' ...
###--------------------------------------------------------------------------### ### Author: Arman Oganisian ### Conduct partial pooling analysis ###--------------------------------------------------------------------------### ## Load Packages library(rstan) library(LaplacesDemon) library(latex2exp) set.seed(66) ####...
/code/CATE_example.R
no_license
JosueMA/StanCon2020_BayesCausal
R
false
false
3,671
r
###--------------------------------------------------------------------------### ### Author: Arman Oganisian ### Conduct partial pooling analysis ###--------------------------------------------------------------------------### ## Load Packages library(rstan) library(LaplacesDemon) library(latex2exp) set.seed(66) ####...
#' @method print cv.relaxed #' @export print.cv.relaxed <- function(x, digits = max(3, getOption("digits") - 3), ...) { cat("\nCall: ", deparse(x$call), "\n\n") cat("Measure:", x$name,"\n\n") x=x$relaxed optlams=c(x$lambda.min,x$lambda.1se) wg1=match(x$gamma.min,x$gamma) wl1=match(x$lambda.min,x...
/R/print.cv.relaxed.R
no_license
nfultz/glmnet-mirror
R
false
false
831
r
#' @method print cv.relaxed #' @export print.cv.relaxed <- function(x, digits = max(3, getOption("digits") - 3), ...) { cat("\nCall: ", deparse(x$call), "\n\n") cat("Measure:", x$name,"\n\n") x=x$relaxed optlams=c(x$lambda.min,x$lambda.1se) wg1=match(x$gamma.min,x$gamma) wl1=match(x$lambda.min,x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitSexMix.R \name{fitSexMix} \alias{fitSexMix} \title{simple function for plotting a mixture model for sex from XY stats} \usage{ fitSexMix(x, ...) } \arguments{ \item{x}{a GenomicRatioSet, or an XYstats matrix} \item{...}{arguments to pass ...
/man/fitSexMix.Rd
no_license
ttriche/miser
R
false
true
554
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fitSexMix.R \name{fitSexMix} \alias{fitSexMix} \title{simple function for plotting a mixture model for sex from XY stats} \usage{ fitSexMix(x, ...) } \arguments{ \item{x}{a GenomicRatioSet, or an XYstats matrix} \item{...}{arguments to pass ...
##### STA243 HW5 ### STA 243 HM 5 Tongbi Tu & Yuan Chen ## Problem 1 #(a) #Implement the cross-validation and generalized cross-validation methods for choosing the smoothing parameter . #(b) # use the AICc criterion library(MASS) n = 200 xi = seq(0.5/n, 199.5/n, by = 1/n) Xi = runif(n, 0, 1) e = rnorm(n,0,1) phi = ...
/STA243_HW5_simulation study.R
no_license
anhnguyendepocen/Computational_Statistics
R
false
false
8,159
r
##### STA243 HW5 ### STA 243 HM 5 Tongbi Tu & Yuan Chen ## Problem 1 #(a) #Implement the cross-validation and generalized cross-validation methods for choosing the smoothing parameter . #(b) # use the AICc criterion library(MASS) n = 200 xi = seq(0.5/n, 199.5/n, by = 1/n) Xi = runif(n, 0, 1) e = rnorm(n,0,1) phi = ...
#' Number of states getter #' nstates <- function(x) { UseMethod("nstates") } #' @rdname nstates nstates.HMM <- function(x) return(length(x$states$names)) #' Number of transition parameters getter #' ntransitions <- function(x) { UseMethod("ntransitions") } #' @rdname ntransitions ntransitions.HMM <- function(x) r...
/MobileNetworkDataSimulationTemplate/code/src/destim/R/getters.R
no_license
Lorencrack3/TFG-Lorenzo
R
false
false
2,796
r
#' Number of states getter #' nstates <- function(x) { UseMethod("nstates") } #' @rdname nstates nstates.HMM <- function(x) return(length(x$states$names)) #' Number of transition parameters getter #' ntransitions <- function(x) { UseMethod("ntransitions") } #' @rdname ntransitions ntransitions.HMM <- function(x) r...
# Getting the Bang and Olufsen data from the lmerTest-package: library(lmerTest) # (Udviklet af os) data(TVbo) # Each of 8 assessors scored each of 12 combinations 2 times # Let's look at only a single picture and one of the two reps: # And let us look at the sharpness TVbosubset <- subset(TVbo,Picture==1 & Repeat==1)...
/snippets/week11.R
no_license
andreasharmuth/statistics
R
false
false
5,161
r
# Getting the Bang and Olufsen data from the lmerTest-package: library(lmerTest) # (Udviklet af os) data(TVbo) # Each of 8 assessors scored each of 12 combinations 2 times # Let's look at only a single picture and one of the two reps: # And let us look at the sharpness TVbosubset <- subset(TVbo,Picture==1 & Repeat==1)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_reads.R \name{write_reads} \alias{write_reads} \title{write sequencing reads to disk} \usage{ write_reads(reads, fname, readlen, paired = TRUE, gzip, offset = 1L) } \arguments{ \item{reads}{DNAStringSet representing sequencing reads} \...
/man/write_reads.Rd
no_license
Christina-hshi/polyester-LC
R
false
true
2,718
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_reads.R \name{write_reads} \alias{write_reads} \title{write sequencing reads to disk} \usage{ write_reads(reads, fname, readlen, paired = TRUE, gzip, offset = 1L) } \arguments{ \item{reads}{DNAStringSet representing sequencing reads} \...
#this is the implied theorethical probabilities based on normality pc_PI <- function(rho, th.y1, th.y2) { nth.y1 <- length(th.y1); nth.y2 <- length(th.y2) pth.y1 <- stats::pnorm(th.y1); pth.y2 <- stats::pnorm(th.y2) # catch special case: rho = 0.0 if(rho == 0.0) { rowPI <- diff(c(0,pth.y1,1)) colPI ...
/R/pc_PI.R
no_license
njaalf/discnorm
R
false
false
1,110
r
#this is the implied theorethical probabilities based on normality pc_PI <- function(rho, th.y1, th.y2) { nth.y1 <- length(th.y1); nth.y2 <- length(th.y2) pth.y1 <- stats::pnorm(th.y1); pth.y2 <- stats::pnorm(th.y2) # catch special case: rho = 0.0 if(rho == 0.0) { rowPI <- diff(c(0,pth.y1,1)) colPI ...
#' Bind all list members by column #' #' @param .data \code{list} #' @name list.cbind #' @export #' @examples #' \dontrun{ #' x <- list(data.frame(i=1:5,x=rnorm(5)), #' data.frame(y=rnorm(5),z=rnorm(5))) #' list.cbind(x) #' } list.cbind <- function(.data) { list.do(.data,cbind) }
/R/list.cbind.R
permissive
timelyportfolio/rlist
R
false
false
286
r
#' Bind all list members by column #' #' @param .data \code{list} #' @name list.cbind #' @export #' @examples #' \dontrun{ #' x <- list(data.frame(i=1:5,x=rnorm(5)), #' data.frame(y=rnorm(5),z=rnorm(5))) #' list.cbind(x) #' } list.cbind <- function(.data) { list.do(.data,cbind) }
# Bivariate Plots Section ld <- read.csv('prosperLoanData.csv') ld2 <- data.frame(ld$ListingCreationDate,ld$ListingCategory..numeric., ld$IncomeRange, ld$CreditGrade, ld$Term, ld$LoanStatus, ld$ClosedDate, ld$BorrowerAPR,ld$LenderYield, ld$BorrowerState, ld$Occupation, ld$MonthlyLoanPayment, ld$StatedMonthlyIncome, l...
/bivariate.R
no_license
mpiplani/Prosper-Loan-Data-Exploration
R
false
false
2,901
r
# Bivariate Plots Section ld <- read.csv('prosperLoanData.csv') ld2 <- data.frame(ld$ListingCreationDate,ld$ListingCategory..numeric., ld$IncomeRange, ld$CreditGrade, ld$Term, ld$LoanStatus, ld$ClosedDate, ld$BorrowerAPR,ld$LenderYield, ld$BorrowerState, ld$Occupation, ld$MonthlyLoanPayment, ld$StatedMonthlyIncome, l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polar_data.R \docType{data} \name{polar_data} \alias{polar_data} \title{Example data for polarMap function} \format{Data frame with example data from four sites in London in 2009.} \source{ \code{polar_data} was compiled from data using the \...
/man/polar_data.Rd
no_license
bodartv/openairmaps
R
false
true
874
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polar_data.R \docType{data} \name{polar_data} \alias{polar_data} \title{Example data for polarMap function} \format{Data frame with example data from four sites in London in 2009.} \source{ \code{polar_data} was compiled from data using the \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.lightsail_operations.R \name{reboot_instance} \alias{reboot_instance} \title{Restarts a specific instance} \usage{ reboot_instance(instanceName) } \arguments{ \item{instanceName}{[required] The name of the instance to reboot.} } \descrip...
/service/paws.lightsail/man/reboot_instance.Rd
permissive
CR-Mercado/paws
R
false
true
765
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.lightsail_operations.R \name{reboot_instance} \alias{reboot_instance} \title{Restarts a specific instance} \usage{ reboot_instance(instanceName) } \arguments{ \item{instanceName}{[required] The name of the instance to reboot.} } \descrip...
SI2_onepop<-function(dd,ind){ fls=as.factor(ind) m=length(dd[1,]) a=length(levels(fls)) popdd=array(0,dim=c(m,a)) colnames(popdd)=levels(fls) rownames(popdd)=colnames(dd) for (i in 1:m){ popdd[i,]=tapply(dd[,i],fls,sum) } f=array(0,dim=c(1,a)) colnames(f)=colnames(popdd) for (i in 1:a){ f[,i]=length(popdd[...
/R/SI2_onepop.r
no_license
cran/flower
R
false
false
712
r
SI2_onepop<-function(dd,ind){ fls=as.factor(ind) m=length(dd[1,]) a=length(levels(fls)) popdd=array(0,dim=c(m,a)) colnames(popdd)=levels(fls) rownames(popdd)=colnames(dd) for (i in 1:m){ popdd[i,]=tapply(dd[,i],fls,sum) } f=array(0,dim=c(1,a)) colnames(f)=colnames(popdd) for (i in 1:a){ f[,i]=length(popdd[...
# Problem 1 #The area of a triangle is 0.5*base*height TrangleArea <- function(b, h){ base <- b height <-h TriangleArea<- base * height *0.5 return(TriangleArea) } TrangleArea(10,9)#example #Problem 2 #Created a function that obtained the absolute value for numeric vectors...Sam you sneaky devil! myabs <- fun...
/Labs/Lab07.Carter.R
no_license
JavanCarter/CompBioLabsAndHomework
R
false
false
1,870
r
# Problem 1 #The area of a triangle is 0.5*base*height TrangleArea <- function(b, h){ base <- b height <-h TriangleArea<- base * height *0.5 return(TriangleArea) } TrangleArea(10,9)#example #Problem 2 #Created a function that obtained the absolute value for numeric vectors...Sam you sneaky devil! myabs <- fun...
library(data.table) library(ggplot2) library(httr) library(XML) library(rvest) rm(list=ls()) ########################################## # Theme ################################## ########################################## t <- theme(plot.title = element_text(face="bold", margin=margin(t = 15, r = 0, b = ...
/analysis.R
no_license
RoelPi/names
R
false
false
4,133
r
library(data.table) library(ggplot2) library(httr) library(XML) library(rvest) rm(list=ls()) ########################################## # Theme ################################## ########################################## t <- theme(plot.title = element_text(face="bold", margin=margin(t = 15, r = 0, b = ...
########## Tidy Tuesday: Super Bowl Ads########## ##### Created by: Nikolas Yousefi ############# ##### Updated on: 2021-03-02 ############### ### Load libraries ##################### library(tidyverse) library(here) library(tidytuesdayR) library(ggeasy) library(ghibli) ### Load data ########################## youtub...
/TT_2021-03-02/Scripts/TT_SuperBowlAds_2021-03-02_Script.R
no_license
nayousefi/TidyTuesday
R
false
false
2,494
r
########## Tidy Tuesday: Super Bowl Ads########## ##### Created by: Nikolas Yousefi ############# ##### Updated on: 2021-03-02 ############### ### Load libraries ##################### library(tidyverse) library(here) library(tidytuesdayR) library(ggeasy) library(ghibli) ### Load data ########################## youtub...
# Clear the Environment rm(list=ls()) # Read csv file as a DataFrame # setwd("C:\\Users\\sarathy\\Documents\\2019-Teaching\\Fall2019\\Fall2019-MSIS5503\\MSIS-5503-Data") df <- read.table('ClassData.csv', header = TRUE, sep = ',') #Assign variable names to DataFrame Column objects id <- df$ID name <-...
/inferential_stats/Descriptive Statistics/DescriptiveStat.R
no_license
pickle-donut/RScripts
R
false
false
2,696
r
# Clear the Environment rm(list=ls()) # Read csv file as a DataFrame # setwd("C:\\Users\\sarathy\\Documents\\2019-Teaching\\Fall2019\\Fall2019-MSIS5503\\MSIS-5503-Data") df <- read.table('ClassData.csv', header = TRUE, sep = ',') #Assign variable names to DataFrame Column objects id <- df$ID name <-...
library(data.table) #check whether the data file exists or not dir.list <- dir() total.matches <- length(dir.list[dir.list == 'household_power_consumption.txt']) #download file if not available if(total.matches == 0) { url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' ...
/rcode/plot3.R
no_license
moizmuhammad/ExData_Plotting1
R
false
false
1,447
r
library(data.table) #check whether the data file exists or not dir.list <- dir() total.matches <- length(dir.list[dir.list == 'household_power_consumption.txt']) #download file if not available if(total.matches == 0) { url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip' ...
library(shiny) library(rCharts) library(rMaps) shinyServer(function(input, output) { output$myplot<- renderChart2({ d1 <- ichoropleth( Population ~ name, labels = TRUE, data = info1, pal = input$pal, ncuts = input$ncuts, legend = TRUE, # anim...
/server.R
no_license
Arevaju/shiny-maps
R
false
false
1,283
r
library(shiny) library(rCharts) library(rMaps) shinyServer(function(input, output) { output$myplot<- renderChart2({ d1 <- ichoropleth( Population ~ name, labels = TRUE, data = info1, pal = input$pal, ncuts = input$ncuts, legend = TRUE, # anim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_frame_functions.R \name{df_winsorise} \alias{df_winsorise} \title{Winsorsise data} \usage{ df_winsorise(x, variables = NULL, z = NULL, rz = NULL, centile = NULL) } \arguments{ \item{x}{Data frame} \item{variables}{Names of variables to ...
/man/df_winsorise.Rd
permissive
Deleetdk/kirkegaard
R
false
true
740
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_frame_functions.R \name{df_winsorise} \alias{df_winsorise} \title{Winsorsise data} \usage{ df_winsorise(x, variables = NULL, z = NULL, rz = NULL, centile = NULL) } \arguments{ \item{x}{Data frame} \item{variables}{Names of variables to ...
library(devtools) install.packages("optparse") devtools::install_github("l-gorman/rhomis-R-package")
/R/setup.R
no_license
ilri/rhomis-server-R-scripts
R
false
false
101
r
library(devtools) install.packages("optparse") devtools::install_github("l-gorman/rhomis-R-package")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polygonal-2d.R \name{plotable_tess} \alias{plotable_tess} \title{Create Plotable Tesselation from a Point Pattern.} \usage{ plotable_tess(points) } \arguments{ \item{points}{2D point pattern object created by package \code{\link{spa...
/man/plotable_tess.Rd
no_license
alex-trueman/declustr
R
false
true
1,504
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/polygonal-2d.R \name{plotable_tess} \alias{plotable_tess} \title{Create Plotable Tesselation from a Point Pattern.} \usage{ plotable_tess(points) } \arguments{ \item{points}{2D point pattern object created by package \code{\link{spa...
#fit LBA to incong and none trials setwd("C:/Users/toelch/Dropbox/DMC_Europe_2016-update/") setwd("C:/Users/ulf/Dropbox/DMC_Europe_2016-update/") # Current working directory must be set to the top-level folder # containing the dmc and tutorial subfolders source ("tutorial/file_utils.R") load_model ("lba_B.R") #prepa...
/fit_LBA_with_SP_NONE_giter.R
no_license
sprocketsullivan/metaDPrime
R
false
false
2,237
r
#fit LBA to incong and none trials setwd("C:/Users/toelch/Dropbox/DMC_Europe_2016-update/") setwd("C:/Users/ulf/Dropbox/DMC_Europe_2016-update/") # Current working directory must be set to the top-level folder # containing the dmc and tutorial subfolders source ("tutorial/file_utils.R") load_model ("lba_B.R") #prepa...
#### Exploring Economic Variables related to Entrepreneurship #### install.packages("tidycensus") # tidycensus is great for working with population characteristics, but not all available APIs install.packages("censusapi") # censusapi package allows us to access all available APIs provided by the Census Bureau in...
/Codes/R/05_Entrepreneurship_measure_explore.R
permissive
jwroycechoi/broadband-entrepreneurship
R
false
false
11,148
r
#### Exploring Economic Variables related to Entrepreneurship #### install.packages("tidycensus") # tidycensus is great for working with population characteristics, but not all available APIs install.packages("censusapi") # censusapi package allows us to access all available APIs provided by the Census Bureau in...
rm(list=ls(all.names=TRUE)) rm(list=objects(all.names=TRUE)) #dev.off() ######################################################################## ## This script merges the train_set data, with other relevant tables ######################################################################## ###############################...
/RS2_XGBoost.R
no_license
snandi/Rscripts_Springleaf
R
false
false
2,462
r
rm(list=ls(all.names=TRUE)) rm(list=objects(all.names=TRUE)) #dev.off() ######################################################################## ## This script merges the train_set data, with other relevant tables ######################################################################## ###############################...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 blassoconditional <- function(Y, X, XtY, XtX, tau2, sigma2) { .Call('_unbiasedmcmc_blassoconditional', PACKAGE = 'unbiasedmcmc', Y, X, XtY, XtX, tau2, sigma2) } blassoconditional_coupled <...
/R/RcppExports.R
no_license
shizelong1985/unbiasedmcmc
R
false
false
4,417
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 blassoconditional <- function(Y, X, XtY, XtX, tau2, sigma2) { .Call('_unbiasedmcmc_blassoconditional', PACKAGE = 'unbiasedmcmc', Y, X, XtY, XtX, tau2, sigma2) } blassoconditional_coupled <...
setwd("E:/Computer Engg/Machine learning/RScripts"); train<-read.csv("data.csv"); train_data<-train[!is.na(train$shot_made_flag),] test_data<-train[is.na(train$shot_made_flag),] #head(train_data) train_data$game_event_id<-NULL train_data$game_id<-NULL train_data$team_id<-NULL train_data$team_name<-NULL train_data$game_...
/Kaggle/BasketBallgoal/bb.R
no_license
PrajwalaTM/Machine-Learning
R
false
false
2,398
r
setwd("E:/Computer Engg/Machine learning/RScripts"); train<-read.csv("data.csv"); train_data<-train[!is.na(train$shot_made_flag),] test_data<-train[is.na(train$shot_made_flag),] #head(train_data) train_data$game_event_id<-NULL train_data$game_id<-NULL train_data$team_id<-NULL train_data$team_name<-NULL train_data$game_...
% Generated by roxygen2 (4.1.0.9001): do not edit by hand % Please edit documentation in R/makenames_MSF.R \name{makenames_MSF} \alias{makenames_MSF} \title{A function that given common gene names in dermatology, create expression with special character (like greek symbols).} \usage{ makenames_MSF(vs) } \argume...
/man/makenames_MSF.Rd
no_license
mssm-msf-2019/BiostatsALL
R
false
false
454
rd
% Generated by roxygen2 (4.1.0.9001): do not edit by hand % Please edit documentation in R/makenames_MSF.R \name{makenames_MSF} \alias{makenames_MSF} \title{A function that given common gene names in dermatology, create expression with special character (like greek symbols).} \usage{ makenames_MSF(vs) } \argume...
ad = read.csv("data/Advertising.csv") mlr <- function(x, y) { beta_hat <- solve(t(x) %*% x) %*% t(x) %*% y y_hat = x %*% beta_hat X = x - mean(x) Y = y - mean(y) e = y - y_hat rss = sum(e^2) tss = sum(Y^2) R_squared = 1 - rss/tss RSE = sqrt(rss / (length(x) - 2)) # corr = sum (X * Y)...
/data-analytics/5_multiple_linear_regression..R
permissive
rhtrajssm/course-repo
R
false
false
552
r
ad = read.csv("data/Advertising.csv") mlr <- function(x, y) { beta_hat <- solve(t(x) %*% x) %*% t(x) %*% y y_hat = x %*% beta_hat X = x - mean(x) Y = y - mean(y) e = y - y_hat rss = sum(e^2) tss = sum(Y^2) R_squared = 1 - rss/tss RSE = sqrt(rss / (length(x) - 2)) # corr = sum (X * Y)...
#' sp bbox to poly #' @param sp #' @export bbox_to_sp <- function(sp) { bbox <- bbox(sp) x <- c(bbox[1, 1], bbox[1, 1], bbox[1, 2], bbox[1, 2], bbox[1, 1]) y <- c(bbox[2, 1], bbox[2, 2], bbox[2, 2], bbox[2, 1], bbox[2, 1]) p <- Polygon(cbind(x, y)) ps <- Polygons(list(p), "p1") sp <- SpatialPoly...
/R/bbox_to_sp.R
permissive
jhollist/miscPackage
R
false
false
393
r
#' sp bbox to poly #' @param sp #' @export bbox_to_sp <- function(sp) { bbox <- bbox(sp) x <- c(bbox[1, 1], bbox[1, 1], bbox[1, 2], bbox[1, 2], bbox[1, 1]) y <- c(bbox[2, 1], bbox[2, 2], bbox[2, 2], bbox[2, 1], bbox[2, 1]) p <- Polygon(cbind(x, y)) ps <- Polygons(list(p), "p1") sp <- SpatialPoly...
# Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of SkeletonExistingPredictionModelStudy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:...
/R/MeasurementCovariateCode.R
no_license
mi-erasmusmc/EmcDementiaPredictionTable1
R
false
false
11,226
r
# Copyright 2020 Observational Health Data Sciences and Informatics # # This file is part of SkeletonExistingPredictionModelStudy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/avaible_syllable_funs.R \name{print.available} \alias{print.available} \title{Prints an available Object.} \usage{ \method{print}{available}(x, ...) } \arguments{ \item{x}{The available object} \item{\ldots}{ignored} } \description{ Prints a...
/man/print.available.Rd
no_license
trinker/syllable
R
false
true
343
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/avaible_syllable_funs.R \name{print.available} \alias{print.available} \title{Prints an available Object.} \usage{ \method{print}{available}(x, ...) } \arguments{ \item{x}{The available object} \item{\ldots}{ignored} } \description{ Prints a...
library(shiny) source("src/metric_correlations.R") library(shinydashboard) library(vistime) library(plotly) ui = tabsetPanel( tabPanel("Performance Metric Interplay",fluidPage( sidebarLayout( sidebarPanel( helpText("Explore the interation between two performance metrics for a cho...
/Terapixel Project/CSC8634-Results-App.R
no_license
LukeBattle/Terapixel
R
false
false
4,354
r
library(shiny) source("src/metric_correlations.R") library(shinydashboard) library(vistime) library(plotly) ui = tabsetPanel( tabPanel("Performance Metric Interplay",fluidPage( sidebarLayout( sidebarPanel( helpText("Explore the interation between two performance metrics for a cho...
data<-read.table("household_power_consumption.txt",header=TRUE,sep=";", colClasses=c("character","character","double", "double","double","double","double","double","numeric"), na.strings="?") data_s<-subset(data, data$Date=="1/2/2007"|data$Date=="2/2/2007") data_s$Date <- as.Date(data_s$Date, format = "%d/%m/%Y") data_...
/ExData_Plotting1-master/Plot2.R
no_license
luw517/Data-Science-Specialization
R
false
false
535
r
data<-read.table("household_power_consumption.txt",header=TRUE,sep=";", colClasses=c("character","character","double", "double","double","double","double","double","numeric"), na.strings="?") data_s<-subset(data, data$Date=="1/2/2007"|data$Date=="2/2/2007") data_s$Date <- as.Date(data_s$Date, format = "%d/%m/%Y") data_...
\name{statsr-package} \alias{statsr-package} \alias{statsr} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide a more detai...
/man/statsr-package.Rd
permissive
daesik82/statsr
R
false
false
780
rd
\name{statsr-package} \alias{statsr-package} \alias{statsr} \docType{package} \title{ A short title line describing what the package does } \description{ A more detailed description of what the package does. A length of about one to five lines is recommended. } \details{ This section should provide a more detai...
#' @rdname CST_RainFARM #' @title RainFARM stochastic precipitation downscaling of a CSTools object #' #' @author Jost von Hardenberg - ISAC-CNR, \email{j.vonhardenberg@isac.cnr.it} #' #' @description This function implements the RainFARM stochastic precipitation #' downscaling method and accepts a CSTools object (an o...
/R/CST_RainFARM.R
no_license
rpkgs/CSTools
R
false
false
21,124
r
#' @rdname CST_RainFARM #' @title RainFARM stochastic precipitation downscaling of a CSTools object #' #' @author Jost von Hardenberg - ISAC-CNR, \email{j.vonhardenberg@isac.cnr.it} #' #' @description This function implements the RainFARM stochastic precipitation #' downscaling method and accepts a CSTools object (an o...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Factor Loading Curve Sampling Algorithm #' #' Sample the factor loading curve basis coefficients subject to #' an orthonormality constraint. #' #' @param BtY \code{J x T} matrix \code{B.t()*...
/R/RcppExports.R
no_license
drkowal/dfosr
R
false
false
5,360
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Factor Loading Curve Sampling Algorithm #' #' Sample the factor loading curve basis coefficients subject to #' an orthonormality constraint. #' #' @param BtY \code{J x T} matrix \code{B.t()*...
library(limma) library(edgeR) library(ggplot2) library(gplots) library(Rtsne) library(org.Rn.eg.db) library(AnnotationDbi) library(ComplexHeatmap) GSE93272<-read.csv(file = 'D:\\work\\Rheumatoid arthritis\\data\\GSE93272.csv', row.names = 1, header = TRUE, sep = ',') GSE45291<-read.csv(file = 'D:\\work\\Rheu...
/Rheumatoid Arthritis-Code/R/data_preprocessing.R
no_license
fdgey34/RA-CODE
R
false
false
4,694
r
library(limma) library(edgeR) library(ggplot2) library(gplots) library(Rtsne) library(org.Rn.eg.db) library(AnnotationDbi) library(ComplexHeatmap) GSE93272<-read.csv(file = 'D:\\work\\Rheumatoid arthritis\\data\\GSE93272.csv', row.names = 1, header = TRUE, sep = ',') GSE45291<-read.csv(file = 'D:\\work\\Rheu...
library(httr) library(tidyverse) library(xml2) library(rvest) library(stringr) library(rebus) library(lubridate) library(ggthemes) library(ggdark) library(scales) library(extrafont) library(shiny) library(shinythemes) library(reactable) library(ggplot2) library(extrafont) #library(ggchicklet) library(b...
/global.R
no_license
katiesegreti/NBA
R
false
false
26,006
r
library(httr) library(tidyverse) library(xml2) library(rvest) library(stringr) library(rebus) library(lubridate) library(ggthemes) library(ggdark) library(scales) library(extrafont) library(shiny) library(shinythemes) library(reactable) library(ggplot2) library(extrafont) #library(ggchicklet) library(b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cloudhsmv2_operations.R \name{restore_backup} \alias{restore_backup} \title{Restores a specified AWS CloudHSM backup that is in the PENDING_DELETION state} \usage{ restore_backup(BackupId) } \arguments{ \item{BackupId}{[required] The ID ...
/service/paws.cloudhsmv2/man/restore_backup.Rd
permissive
CR-Mercado/paws
R
false
true
670
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cloudhsmv2_operations.R \name{restore_backup} \alias{restore_backup} \title{Restores a specified AWS CloudHSM backup that is in the PENDING_DELETION state} \usage{ restore_backup(BackupId) } \arguments{ \item{BackupId}{[required] The ID ...
## Setup ---- setwd("/data/Data") rm(list = ls()) packages <- c("raster", "ncdf4", "rgdal", "data.table", "devtools") if(max(!packages %in% installed.packages())>=1)install.packages(packages[!packages %in% installed.packages()]) lapply(packages, require, character.only = TRUE) install_github("cszang/pdsi") # (on Linu...
/Rscripts/Weather/Palmer_drought.R
no_license
XPTG6/weathershocks
R
false
false
2,306
r
## Setup ---- setwd("/data/Data") rm(list = ls()) packages <- c("raster", "ncdf4", "rgdal", "data.table", "devtools") if(max(!packages %in% installed.packages())>=1)install.packages(packages[!packages %in% installed.packages()]) lapply(packages, require, character.only = TRUE) install_github("cszang/pdsi") # (on Linu...
library(shiny) shinyServer( function(input, output) { output$arcFrame <- renderUI({ HTML(' <style> .embed-container { position: relative; padding-bottom: 80%; height: 0; max-width: 100%; } </style> <iframe ...
/soArc/server.r
no_license
joelnc/ShinyProjects
R
false
false
2,339
r
library(shiny) shinyServer( function(input, output) { output$arcFrame <- renderUI({ HTML(' <style> .embed-container { position: relative; padding-bottom: 80%; height: 0; max-width: 100%; } </style> <iframe ...
rm(list = ls()) best_sets <- c("~/data/RTM/current_samples_Kalacska_priors_all.rds", "~/data/RTM/current_samples_Marvin.rds", "~/data/RTM/current_samples_Sanchez_all.rds", "~/data/RTM/current_samples_Foster_all.rds") best_sets <- c("~/data/RTM/current_samples_Sanchez_all.r...
/scripts/plot_spectra_from_posterior_canopy.R
no_license
femeunier/LianaAlbedo
R
false
false
2,801
r
rm(list = ls()) best_sets <- c("~/data/RTM/current_samples_Kalacska_priors_all.rds", "~/data/RTM/current_samples_Marvin.rds", "~/data/RTM/current_samples_Sanchez_all.rds", "~/data/RTM/current_samples_Foster_all.rds") best_sets <- c("~/data/RTM/current_samples_Sanchez_all.r...
##' Fonction \code{calc_spread} ##' ##' Cette fonction permet de calculer les spread pour un PTF obligataire. ##' ##' @name calc_spread ##' @docType methods ##' @param obligation est un objet de type \code{\link{Obligation}}. ##' @param yield_curve est un vecteur \code{numeric}. ##' @author Damien Tichit pour Sia Part...
/R/Obligation-calc_spread.R
no_license
DTichit/ALModel
R
false
false
2,078
r
##' Fonction \code{calc_spread} ##' ##' Cette fonction permet de calculer les spread pour un PTF obligataire. ##' ##' @name calc_spread ##' @docType methods ##' @param obligation est un objet de type \code{\link{Obligation}}. ##' @param yield_curve est un vecteur \code{numeric}. ##' @author Damien Tichit pour Sia Part...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_info.R \name{user_contributions} \alias{user_contributions} \title{Retrieve user contributions} \usage{ user_contributions(language = NULL, project = NULL, domain = NULL, username, properties = c("ids", "title", "timestamp", "comment",...
/man/user_contributions.Rd
permissive
cran/WikipediR
R
false
true
3,039
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/user_info.R \name{user_contributions} \alias{user_contributions} \title{Retrieve user contributions} \usage{ user_contributions(language = NULL, project = NULL, domain = NULL, username, properties = c("ids", "title", "timestamp", "comment",...
getwd() list.files() pf <- read.csv('pseudo_facebook.tsv', sep= '\t') #install.packages('ggplot2') library('ggplot2') library(ggthemes) theme_set(theme_minimal(24)) names(pf) qplot(x = dob_day, data = pf) + scale_x_continuous(breaks=1:31) ggplot(aes(x = dob_day), data = pf) + geom_histogram(binwidth = 1) +...
/lesson1.R
no_license
m3hm3taydin/Explore-and-Summarize-Data
R
false
false
2,525
r
getwd() list.files() pf <- read.csv('pseudo_facebook.tsv', sep= '\t') #install.packages('ggplot2') library('ggplot2') library(ggthemes) theme_set(theme_minimal(24)) names(pf) qplot(x = dob_day, data = pf) + scale_x_continuous(breaks=1:31) ggplot(aes(x = dob_day), data = pf) + geom_histogram(binwidth = 1) +...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/redshift_operations.R \name{redshift_describe_snapshot_schedules} \alias{redshift_describe_snapshot_schedules} \title{Returns a list of snapshot schedules} \usage{ redshift_describe_snapshot_schedules(ClusterIdentifier, ScheduleIdentifier, ...
/cran/paws.database/man/redshift_describe_snapshot_schedules.Rd
permissive
TWarczak/paws
R
false
true
2,439
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/redshift_operations.R \name{redshift_describe_snapshot_schedules} \alias{redshift_describe_snapshot_schedules} \title{Returns a list of snapshot schedules} \usage{ redshift_describe_snapshot_schedules(ClusterIdentifier, ScheduleIdentifier, ...
library(forecast) #http://www.statmethods.net/advstats/timeseries.html regressionthists <- function(thists){ tomorrowsvalue=0 timeseriesversion = ts(adjustedmatrix[,]) # simple exponential - models level fit <- HoltWinters(timeseriesversion, beta=FALSE, gamma=FALSE) # double exponential - models level and tre...
/predictiveanalytics/regressionfuntions.R
permissive
keithaumiller/unicorninvesting
R
false
false
514
r
library(forecast) #http://www.statmethods.net/advstats/timeseries.html regressionthists <- function(thists){ tomorrowsvalue=0 timeseriesversion = ts(adjustedmatrix[,]) # simple exponential - models level fit <- HoltWinters(timeseriesversion, beta=FALSE, gamma=FALSE) # double exponential - models level and tre...
rm(list=ls(all=T)) setwd("C:/Users/Lenovo/Documents/LM/EdWisor/Projects/Project 1") getwd() ###############################LOAD LIBRARIES ################################ x=c("ggplot2", "DMwR", "corrgram", "Hmisc", "rpart", "randomForest", "geosphere") install.packages(x) lapply(x, require, character....
/Project_Cab_Fare.R
no_license
ranjankumarhashedin/Cab-Fare-Prediction
R
false
false
10,381
r
rm(list=ls(all=T)) setwd("C:/Users/Lenovo/Documents/LM/EdWisor/Projects/Project 1") getwd() ###############################LOAD LIBRARIES ################################ x=c("ggplot2", "DMwR", "corrgram", "Hmisc", "rpart", "randomForest", "geosphere") install.packages(x) lapply(x, require, character....
library(smrdfortran) library(SMRD) test = 2 if(test == 1){ ndist1 = 1 ndist2 = 3 beta0 = 30.27241 beta1 = -5.100121 stress = 270 sigma = 0.2894549 ugamma = 5.365834 sgamma = 0.03140004 w = logb(5000) } if(test == 2){ ndist1 = 1 ndist2 = 2 beta0 = 9.3562771160 beta1 = -2.9350357450 sigma = 0.0002000000 ugamma = ...
/inst/test_objs/SXPDF3_test.R
no_license
anhnguyendepocen/SMRD
R
false
false
2,700
r
library(smrdfortran) library(SMRD) test = 2 if(test == 1){ ndist1 = 1 ndist2 = 3 beta0 = 30.27241 beta1 = -5.100121 stress = 270 sigma = 0.2894549 ugamma = 5.365834 sgamma = 0.03140004 w = logb(5000) } if(test == 2){ ndist1 = 1 ndist2 = 2 beta0 = 9.3562771160 beta1 = -2.9350357450 sigma = 0.0002000000 ugamma = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scatter.R \name{scatterServer} \alias{scatterServer} \title{scatterServer: shiny module server for scatterplot.} \usage{ scatterServer(id, data, data_label, data_varStruct = NULL, nfactor.limit = 10) } \arguments{ \item{id}{id} \item{data}{R...
/man/scatterServer.Rd
permissive
jinseob2kim/jsmodule
R
false
true
1,216
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scatter.R \name{scatterServer} \alias{scatterServer} \title{scatterServer: shiny module server for scatterplot.} \usage{ scatterServer(id, data, data_label, data_varStruct = NULL, nfactor.limit = 10) } \arguments{ \item{id}{id} \item{data}{R...
############################################################################################# ###### master script part 1 - setting up and creating or loading of wide data table ######### ############################################################################################# # This script sets up a run of th...
/pp.sst/scripts/01.master.setup.R
permissive
jasa-acs/Multivariate-Postprocessing-Methods-for-High-Dimensional-Seasonal-Weather-Forecasts
R
false
false
2,291
r
############################################################################################# ###### master script part 1 - setting up and creating or loading of wide data table ######### ############################################################################################# # This script sets up a run of th...
library(Rcpp) cppFunction(' NumericVector diffc(NumericVector b, NumericVector deg, NumericVector freq) { int n=b.size(); NumericVector diff(n); int i,j; for(i=0;i<n;i++) { diff[i]=deg[i]; for(j=0;j<n;j++) { diff[i]-=freq[j]/(1+exp(-b[i]-b[j])); } } return diff; } ') library(rootSolve) solvebeta=fu...
/WeibinResults/seq316_dbroot_z/solve_root.R
no_license
Erich-McMillan/physics-research
R
false
false
1,123
r
library(Rcpp) cppFunction(' NumericVector diffc(NumericVector b, NumericVector deg, NumericVector freq) { int n=b.size(); NumericVector diff(n); int i,j; for(i=0;i<n;i++) { diff[i]=deg[i]; for(j=0;j<n;j++) { diff[i]-=freq[j]/(1+exp(-b[i]-b[j])); } } return diff; } ') library(rootSolve) solvebeta=fu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{nycc_cd_23} \alias{nycc_cd_23} \title{2023-2033 Council District Shapefile} \format{ ## `nycc_cd_23` An sf collection with 51 rows and 7 columns w/ multiploygon geography: \describe{ \item{coun_dist}{Council Dist...
/man/nycc_cd_23.Rd
permissive
NewYorkCityCouncil/councildown
R
false
true
734
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{nycc_cd_23} \alias{nycc_cd_23} \title{2023-2033 Council District Shapefile} \format{ ## `nycc_cd_23` An sf collection with 51 rows and 7 columns w/ multiploygon geography: \describe{ \item{coun_dist}{Council Dist...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/insert_econ_datastore.R \name{insert_econ_datastore} \alias{insert_econ_datastore} \title{Inserts economy datastore data} \usage{ insert_econ_datastore(log = "") } \arguments{ \item{log}{log file to save output to - defaults to} } \value{ Log...
/man/insert_econ_datastore.Rd
permissive
joeheywood/resdata
R
false
true
424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/insert_econ_datastore.R \name{insert_econ_datastore} \alias{insert_econ_datastore} \title{Inserts economy datastore data} \usage{ insert_econ_datastore(log = "") } \arguments{ \item{log}{log file to save output to - defaults to} } \value{ Log...
library(tswge) # psi-weights for simple MA(1) model (theta) X(t)=(1-.8B)a(t) psi.weights.wge(theta=.8,lag.max=5) # psi-weights for simple AR(1) model (phi) (1-.8B)X(t)=a(t) psi.weights.wge(phi=.8,lag.max=5) #note that psi(j)=.8j # psi-weights for ARMA(2,1) model (1-1.2B+.6B2)X(t)=(1-.5B)a(t) psi.weights.wge(phi=c(1...
/Unit05/psi weights.R
no_license
cmadding/MSDS6373
R
false
false
485
r
library(tswge) # psi-weights for simple MA(1) model (theta) X(t)=(1-.8B)a(t) psi.weights.wge(theta=.8,lag.max=5) # psi-weights for simple AR(1) model (phi) (1-.8B)X(t)=a(t) psi.weights.wge(phi=.8,lag.max=5) #note that psi(j)=.8j # psi-weights for ARMA(2,1) model (1-1.2B+.6B2)X(t)=(1-.5B)a(t) psi.weights.wge(phi=c(1...
library(SensusR) ### Name: sensus.plot.lag.cdf ### Title: Plot the CDF of inter-reading time lags. ### Aliases: sensus.plot.lag.cdf ### ** Examples data.path = system.file("extdata", "example-data", package="SensusR") data = sensus.read.json.files(data.path) sensus.plot.lag.cdf(data$AccelerometerDatum)
/data/genthat_extracted_code/SensusR/examples/sensus.plot.lag.cdf.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
311
r
library(SensusR) ### Name: sensus.plot.lag.cdf ### Title: Plot the CDF of inter-reading time lags. ### Aliases: sensus.plot.lag.cdf ### ** Examples data.path = system.file("extdata", "example-data", package="SensusR") data = sensus.read.json.files(data.path) sensus.plot.lag.cdf(data$AccelerometerDatum)
meanmed <- function(n=10,lambda=1,nSim=100000) { dump("meanmed","c:\\StatBook\\meanmed.r") s=sample(x=c(-1,1),replace=T,size=n*nSim,prob=c(.5,.5)) Y=matrix(s*rexp(n=n*nSim,rate=lambda),ncol=n) med=apply(X=Y,MARGIN=1,FUN=median) mea=apply(X=Y,MARGIN=1,FUN=mean) print(paste("Variance of median=",var(med))) print...
/RcodeData/meanmed.r
no_license
PepSalehi/advancedstatistics
R
false
false
404
r
meanmed <- function(n=10,lambda=1,nSim=100000) { dump("meanmed","c:\\StatBook\\meanmed.r") s=sample(x=c(-1,1),replace=T,size=n*nSim,prob=c(.5,.5)) Y=matrix(s*rexp(n=n*nSim,rate=lambda),ncol=n) med=apply(X=Y,MARGIN=1,FUN=median) mea=apply(X=Y,MARGIN=1,FUN=mean) print(paste("Variance of median=",var(med))) print...
library(dplyr) data <- read.csv('./aplicada2/datos_ex2') acum <- 0 for (y_i in data$y) { acum <- y_i^2 + acum } t(data$y)%*%data$y m <- lm( y ~ ., data=data) beta <- as.matrix(coefficients(m)) X <- data %>% select( -y ) %>% mutate(x0 = 1) X <- as.matrix(X[,c(5,1,2,3,4)]) Y <- as.matrix(data %>% select( y )) n_y_barr...
/e.R
no_license
andrscyv/aplicada2
R
false
false
691
r
library(dplyr) data <- read.csv('./aplicada2/datos_ex2') acum <- 0 for (y_i in data$y) { acum <- y_i^2 + acum } t(data$y)%*%data$y m <- lm( y ~ ., data=data) beta <- as.matrix(coefficients(m)) X <- data %>% select( -y ) %>% mutate(x0 = 1) X <- as.matrix(X[,c(5,1,2,3,4)]) Y <- as.matrix(data %>% select( y )) n_y_barr...
require(bio.survey) require(bio.lobster) require(bio.groundfish) p = bio.lobster::load.environment() p$libs = NULL ff = "LFA35-38Assessment" fp1 = file.path(project.datadirectory('bio.lobster'),"analysis",ff) fpf1 = file.path(project.figuredirectory('bio.lobster'),ff) dir.create(fpf1,showWarnings=F) dir.create(fp1,sho...
/inst/Assessments/LFA35-38Assessment/3.stratifiedAnalysisCommercial.r
no_license
LobsterScience/bio.lobster
R
false
false
1,673
r
require(bio.survey) require(bio.lobster) require(bio.groundfish) p = bio.lobster::load.environment() p$libs = NULL ff = "LFA35-38Assessment" fp1 = file.path(project.datadirectory('bio.lobster'),"analysis",ff) fpf1 = file.path(project.figuredirectory('bio.lobster'),ff) dir.create(fpf1,showWarnings=F) dir.create(fp1,sho...
# Installare pacchetti #install.packages("xts") library("xts") #install.packages("TTR") library("TTR") library("plotrix") library("hydroTSM") library("zoo") library("tsbox") # caricare file excel SAmbrogio<-read.csv2(file="c:/Users/Marianna/Documents/Universita/Tesi/R - S. Ambrogio/NoOutliers_S.Ambrogio.CSV", header=...
/Master Thesis/R - S. Ambrogio/S.Ambrogio Trend and Seasonality/SA _TS IN/15. SA - TS_Ptotin_Ntotin.R
no_license
maricorsi17/University-Projects
R
false
false
3,481
r
# Installare pacchetti #install.packages("xts") library("xts") #install.packages("TTR") library("TTR") library("plotrix") library("hydroTSM") library("zoo") library("tsbox") # caricare file excel SAmbrogio<-read.csv2(file="c:/Users/Marianna/Documents/Universita/Tesi/R - S. Ambrogio/NoOutliers_S.Ambrogio.CSV", header=...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Tcells.R \name{Tcells} \alias{Tcells} \title{Tcells: an R package to estimate cell dynamics with mixed models.} \usage{ Tcells() } \description{ Collection of pdMat, varClasses and corClasses objects and function to fit cell dynamic m...
/man/Tcells.Rd
no_license
gmonette/Tcells
R
false
false
644
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/Tcells.R \name{Tcells} \alias{Tcells} \title{Tcells: an R package to estimate cell dynamics with mixed models.} \usage{ Tcells() } \description{ Collection of pdMat, varClasses and corClasses objects and function to fit cell dynamic m...
# Ian Castillo Rosales # R Programming - Assignment 3 # 30062014 rankhospital <- function(estado, resultado, num) { # Lectura de los datos data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") data <- data[c(2, 7, 11, 17, 23)] names(data) <- c("name", "state", "heart...
/R Programming/ProgrammingAssignment3/rankhospital.R
no_license
donelianc/coursera-data-science
R
false
false
1,782
r
# Ian Castillo Rosales # R Programming - Assignment 3 # 30062014 rankhospital <- function(estado, resultado, num) { # Lectura de los datos data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") data <- data[c(2, 7, 11, 17, 23)] names(data) <- c("name", "state", "heart...
## 36106 - Data Algorithms and Meaning ## Assignment 2 Part A: Linear Regression ## ## Mutaz Abu Ghazaleh ## 13184383 ## ## linear model for location 1 industry 1 ## Library library(dplyr) library(ggplot2) library(readr) library(tidyr) library(lubridate) library(scales) library(RcppRoll) # used to calculate rolling ...
/at2a/03 - modelling.R
no_license
mutazag/DAM
R
false
false
4,095
r
## 36106 - Data Algorithms and Meaning ## Assignment 2 Part A: Linear Regression ## ## Mutaz Abu Ghazaleh ## 13184383 ## ## linear model for location 1 industry 1 ## Library library(dplyr) library(ggplot2) library(readr) library(tidyr) library(lubridate) library(scales) library(RcppRoll) # used to calculate rolling ...
# ======== Packages required ========= options(java.parameters = c("-XX:+UseConcMarkSweepGC", "-Xmx16384m")) # Rcran packages<-c('Xmisc') for (package in packages){ if(package %in% rownames(installed.packages()) == FALSE) { install.packages(package)} } # Bioconductor if (!requireNamespace("BiocManager", quietly =...
/Rhisat2_index_cl.R
no_license
plague1981/RNAseq_Hisat2_Stringtie_ballgown
R
false
false
2,070
r
# ======== Packages required ========= options(java.parameters = c("-XX:+UseConcMarkSweepGC", "-Xmx16384m")) # Rcran packages<-c('Xmisc') for (package in packages){ if(package %in% rownames(installed.packages()) == FALSE) { install.packages(package)} } # Bioconductor if (!requireNamespace("BiocManager", quietly =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp654} \alias{spp654} \title{species function} \usage{ spp654(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental para...
/man/spp654.Rd
permissive
Djeppschmidt/Model.Microbiome
R
false
true
456
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Functions.R \name{spp654} \alias{spp654} \title{species function} \usage{ spp654(a, b, c, d, e) } \arguments{ \item{a}{environmental parameter} \item{b}{environmental parameter} \item{c}{environmental parameter} \item{d}{environmental para...
library(dplyr) source("fun.R") # part 1 # test t1 <- read.csv("test1.txt", header = FALSE)[[1]] r1_test <- t1 %>% get_differences() %>% table() r1_test["1"] == 7 & r1_test["3"] == 5 t2 <- read.csv("test2.txt", header = FALSE)[[1]] r2_test <- t2 %>% get_differences() %>% table() r2_test["1"] == 22 & r2_test["...
/Day10/day10.R
no_license
Darius-Jaraminas/advent_of_code_2020
R
false
false
755
r
library(dplyr) source("fun.R") # part 1 # test t1 <- read.csv("test1.txt", header = FALSE)[[1]] r1_test <- t1 %>% get_differences() %>% table() r1_test["1"] == 7 & r1_test["3"] == 5 t2 <- read.csv("test2.txt", header = FALSE)[[1]] r2_test <- t2 %>% get_differences() %>% table() r2_test["1"] == 22 & r2_test["...
### Title: Pool Results of Imputed DV Simulation ### Author: Kyle M. Lang ### Created: 2015-11-16 ### Modified: 2019-11-05 rm(list = ls(all = TRUE)) source("../supportFunctions.R") plotDir <- "../../plots/study2/" outDir <- "../../output/study2/" saveDir <- "../../results/study2/" saveDate <- format(Sys.ti...
/code/analysis/pre2019/poolResults.R
permissive
kylelang/impDvSim
R
false
false
2,522
r
### Title: Pool Results of Imputed DV Simulation ### Author: Kyle M. Lang ### Created: 2015-11-16 ### Modified: 2019-11-05 rm(list = ls(all = TRUE)) source("../supportFunctions.R") plotDir <- "../../plots/study2/" outDir <- "../../output/study2/" saveDir <- "../../results/study2/" saveDate <- format(Sys.ti...
library(trialr) library(dplyr) library(loo) # Code ---- #' Class of models fit by \pkg{trialr} using the EffTox design. #' #' @name efftox_fit-class #' @aliases efftox_fit #' @docType class #' #' @details #' See \code{methods(class = "efftox_fit")} for an overview of available #' methods. #' #' @slot ...
/Scratch/developing-stan_efftox.R
no_license
statwonk/trialr
R
false
false
15,510
r
library(trialr) library(dplyr) library(loo) # Code ---- #' Class of models fit by \pkg{trialr} using the EffTox design. #' #' @name efftox_fit-class #' @aliases efftox_fit #' @docType class #' #' @details #' See \code{methods(class = "efftox_fit")} for an overview of available #' methods. #' #' @slot ...
#Original code sourced from https://www.r-bloggers.com/exploratory-factor-analysis-in-r/ #Installing the Psych package and loading it install.packages("psych") library(psych) #Loading the dataset bfi_data=bfi #Remove rows with missing values and keep only complete cases bfi_data=bfi_data[complete.cases(bfi...
/EFA Intro.R
no_license
ashishgalande/MR-Sample-Code
R
false
false
546
r
#Original code sourced from https://www.r-bloggers.com/exploratory-factor-analysis-in-r/ #Installing the Psych package and loading it install.packages("psych") library(psych) #Loading the dataset bfi_data=bfi #Remove rows with missing values and keep only complete cases bfi_data=bfi_data[complete.cases(bfi...
\name{qdensity} \alias{qdensity} \title{Draw a univariate density plot} \usage{ qdensity(x, data, binwidth = NULL, main = "", xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL) } \arguments{ \item{x}{variable name which designates variable displayed on the horizontal axis} \item{data}{a mutaframe created b...
/man/qdensity.Rd
no_license
eejd/cranvas
R
false
false
2,231
rd
\name{qdensity} \alias{qdensity} \title{Draw a univariate density plot} \usage{ qdensity(x, data, binwidth = NULL, main = "", xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL) } \arguments{ \item{x}{variable name which designates variable displayed on the horizontal axis} \item{data}{a mutaframe created b...
setwd('E:/MOOCs/Coursera/Data Science - Specialization/Exploratory Data Analysis/Course Project 1') filename <- 'household_power_consumption.txt' colNames <- c("date", "time", "global_active_power", "global_reactive_power", "voltage", "global_intensity", "sub_metering1", "sub_metering2", "sub_metering3") colClasses ...
/ExploratoryDataAnalysis/CourseProject1/plot1.R
no_license
mjimcua/datasciencecoursera-1
R
false
false
785
r
setwd('E:/MOOCs/Coursera/Data Science - Specialization/Exploratory Data Analysis/Course Project 1') filename <- 'household_power_consumption.txt' colNames <- c("date", "time", "global_active_power", "global_reactive_power", "voltage", "global_intensity", "sub_metering1", "sub_metering2", "sub_metering3") colClasses ...
#Carregar bibliotecas options(max.print = 99999999) #Carrega functions library(tools) source(file_path_as_absolute("functions.R")) #Configuracoes DATABASE <- "icwsm-2016" clearConsole(); dadosQ1 <- query("SELECT id, q1 as resposta, textParser, textoParserEmoticom as textoCompleto, hashtags FROM tweets WHERE situacao ...
/icwsm-2016/teste.R
no_license
MarcosGrzeca/R-testes
R
false
false
9,388
r
#Carregar bibliotecas options(max.print = 99999999) #Carrega functions library(tools) source(file_path_as_absolute("functions.R")) #Configuracoes DATABASE <- "icwsm-2016" clearConsole(); dadosQ1 <- query("SELECT id, q1 as resposta, textParser, textoParserEmoticom as textoCompleto, hashtags FROM tweets WHERE situacao ...
find_EWSR1_FLI1_fusions <- function( breakpoints, GOI_list, patient_df, dilution_df ) { # load function and define GOI regions: find_fusions <- dget(paste0(func_dir, "find_fusions.R")) all_GOI <- c( GOI_list$EWSR1, GOI_list$FLI1, GOI_list$ERG, GOI_list$ETV1, GOI_list$ETV4, GOI...
/functions/find_EWSR1_FLI1_fusions.R
no_license
james-torpy/ewing_ctDNA
R
false
false
5,788
r
find_EWSR1_FLI1_fusions <- function( breakpoints, GOI_list, patient_df, dilution_df ) { # load function and define GOI regions: find_fusions <- dget(paste0(func_dir, "find_fusions.R")) all_GOI <- c( GOI_list$EWSR1, GOI_list$FLI1, GOI_list$ERG, GOI_list$ETV1, GOI_list$ETV4, GOI...
#read file data <- read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?") #extract subset data usable <- subset(data, Date %in% c("1/2/2007","2/2/2007")) #convert date and time from string to Date usable$datetime <- paste(usable$Date, usable$Time) usable$datetime <- strptime(usable$dateti...
/plot3.R
no_license
kanwarujjaval/ExData_Plotting1
R
false
false
831
r
#read file data <- read.table("household_power_consumption.txt", header=T, sep=";", na.strings="?") #extract subset data usable <- subset(data, Date %in% c("1/2/2007","2/2/2007")) #convert date and time from string to Date usable$datetime <- paste(usable$Date, usable$Time) usable$datetime <- strptime(usable$dateti...
#install.packages("randtoolbox") library(ggplot2, quietly=TRUE) library(randtoolbox, quietly=TRUE) ## library(tools, quietly=TRUE) ## library(scales, quietly=TRUE) greyscale <- TRUE n <- 400 # Generate Sobol sequence sobol_sequence <- sobol(n, dim = 2) sobol_frame <- data.frame(x=sobol_sequence[,1],y=sobol_sequen...
/tex/report/graphics/quasi-random-graphs.R
no_license
HIPERFIT/vectorprogramming
R
false
false
989
r
#install.packages("randtoolbox") library(ggplot2, quietly=TRUE) library(randtoolbox, quietly=TRUE) ## library(tools, quietly=TRUE) ## library(scales, quietly=TRUE) greyscale <- TRUE n <- 400 # Generate Sobol sequence sobol_sequence <- sobol(n, dim = 2) sobol_frame <- data.frame(x=sobol_sequence[,1],y=sobol_sequen...
#!/usr/bin/env Rscript #library(scales) library(ggplot2) library(phyloseq) library(tidyverse) setwd("/data/projects/glyphosate/reads/mothur_processed/") load("glyphosate_mothur_in_phyloseq.RData") # get data per water OTU, setting threshold for samples and clusters community_subset_water <- droplevels(subset(mothur_r...
/16S-analysis_phyloseq/Figure_02_community_area_plots.r
no_license
RJ333/Glyphosate_gene_richness
R
false
false
7,756
r
#!/usr/bin/env Rscript #library(scales) library(ggplot2) library(phyloseq) library(tidyverse) setwd("/data/projects/glyphosate/reads/mothur_processed/") load("glyphosate_mothur_in_phyloseq.RData") # get data per water OTU, setting threshold for samples and clusters community_subset_water <- droplevels(subset(mothur_r...
#' Index a New Comment #' #' @param id Notebook ID #' @param content The new comment content #' @param comment.id The comment ID #' #' @export solr.post.comment <- function(id, content, comment.id) { update_solr_id(id) } #' Modify Index for a Comment #' #' @param id Notebook ID #' @param content New comment content ...
/R/comment-doc.R
no_license
att/rcloud.solr
R
false
false
920
r
#' Index a New Comment #' #' @param id Notebook ID #' @param content The new comment content #' @param comment.id The comment ID #' #' @export solr.post.comment <- function(id, content, comment.id) { update_solr_id(id) } #' Modify Index for a Comment #' #' @param id Notebook ID #' @param content New comment content ...
## Wavelet example for thesis #working directory setwd("\\\\filestore.soton.ac.uk\\users\\ch19g17\\mydocuments\\Wavelet\\Example Wavelet Work") ##Load prerequisites #source("//filestore.soton.ac.uk/users/ch19g17/mydocuments/Wavelet/Comparison/getWaveletFile.R") require(wmtsa) require(biwavelet) require(fields) ## Cr...
/Chapter_5/Example/WaveletExample2.R
no_license
chorscroft/PhD-Thesis
R
false
false
16,284
r
## Wavelet example for thesis #working directory setwd("\\\\filestore.soton.ac.uk\\users\\ch19g17\\mydocuments\\Wavelet\\Example Wavelet Work") ##Load prerequisites #source("//filestore.soton.ac.uk/users/ch19g17/mydocuments/Wavelet/Comparison/getWaveletFile.R") require(wmtsa) require(biwavelet) require(fields) ## Cr...
\name{micro_S} \alias{micro_S} \docType{data} \title{ Stimulated dataset } \description{ This is the stimulated data part of the GSE39411 dataset, \url{https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE39411}. Data were normalized and are ready to use. } \usage{data(micro_S)} \format{A data frame with 54613 probese...
/man/micro_S.Rd
no_license
Bhanditz/CascadeData
R
false
false
1,220
rd
\name{micro_S} \alias{micro_S} \docType{data} \title{ Stimulated dataset } \description{ This is the stimulated data part of the GSE39411 dataset, \url{https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE39411}. Data were normalized and are ready to use. } \usage{data(micro_S)} \format{A data frame with 54613 probese...
require(mxnet) # A basic neural net training # To run this, run python/mxnet/test_io.py to get data first # Network configuration batch.size <- 100 data <- mx.symbol.Variable("data") fc1 <- mx.symbol.FullyConnected(data, name="fc1", num_hidden=128) act1 <- mx.symbol.Activation(fc1, name="relu1", act_type="relu") fc2 <...
/R-package/demo/basic_nn.R
permissive
wpande/mxnet
R
false
false
2,396
r
require(mxnet) # A basic neural net training # To run this, run python/mxnet/test_io.py to get data first # Network configuration batch.size <- 100 data <- mx.symbol.Variable("data") fc1 <- mx.symbol.FullyConnected(data, name="fc1", num_hidden=128) act1 <- mx.symbol.Activation(fc1, name="relu1", act_type="relu") fc2 <...
pdf("distribution.pdf", width=6, height=6) data <- read.table("times.txt", header=F, stringsAsFactors=F) x = as.numeric(as.character(data$V1)) h<-hist(x, breaks=20, col="blue", xlab="Milliseconds per Request",    main="Frequency for each time bucket") xfit<-seq(0, 1020,length=80) yfit<-dnorm(xfit,mean=mean(x),sd=s...
/results/getStats.R
no_license
wangzhao1988/WebClient
R
false
false
420
r
pdf("distribution.pdf", width=6, height=6) data <- read.table("times.txt", header=F, stringsAsFactors=F) x = as.numeric(as.character(data$V1)) h<-hist(x, breaks=20, col="blue", xlab="Milliseconds per Request",    main="Frequency for each time bucket") xfit<-seq(0, 1020,length=80) yfit<-dnorm(xfit,mean=mean(x),sd=s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{NorthSeaCod} \alias{NorthSeaCod} \title{Atlantic Cod Recruits} \format{A data frame with 39 observations of one variable. \describe{ \item{log10.recruits}{} }} \source{ \emph{inferred from} Beaugrand, G., K.M. ...
/man/NorthSeaCod.Rd
no_license
mdlama/abd
R
false
true
798
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{NorthSeaCod} \alias{NorthSeaCod} \title{Atlantic Cod Recruits} \format{A data frame with 39 observations of one variable. \describe{ \item{log10.recruits}{} }} \source{ \emph{inferred from} Beaugrand, G., K.M. ...
[ { "title": "Running sparklyr – RStudio’s R Interface to Spark on Amazon EMR", "href": "https://aws.amazon.com/cn/blogs/big-data/running-sparklyr-rstudios-r-interface-to-spark-on-amazon-emr/", "des": "" }, { "title": "RStudio in the Cloud II: Syncing Code & Data with AWS", "href": "http://str...
/json/399.r
no_license
rweekly/rweekly.org
R
false
false
10,126
r
[ { "title": "Running sparklyr – RStudio’s R Interface to Spark on Amazon EMR", "href": "https://aws.amazon.com/cn/blogs/big-data/running-sparklyr-rstudios-r-interface-to-spark-on-amazon-emr/", "des": "" }, { "title": "RStudio in the Cloud II: Syncing Code & Data with AWS", "href": "http://str...
#' Train a cell type classifier #' #' This function takes single-cell expression data in the form of a CDS object #' and a cell type definition file (marker file) and trains a multinomial #' classifier to assign cell types. The resulting \code{garnett_classifier} #' object can be used to classify the cells in the same...
/R/train_cell_classifier.R
permissive
PUMC-FWYY-Lab/garnett
R
false
false
30,628
r
#' Train a cell type classifier #' #' This function takes single-cell expression data in the form of a CDS object #' and a cell type definition file (marker file) and trains a multinomial #' classifier to assign cell types. The resulting \code{garnett_classifier} #' object can be used to classify the cells in the same...
library("pracma") library("numbers") library("MASS") library("xtable") n=300 f1=rep(0, n*(n+1)/2) f2=rep(0, n*(n+1)/2) l=0 for (j in 1:n) { s=(1:j)^2 f1[(l+1):(l+j)]=s f2[(l+1):(l+j)]= (s %% j) l=l+j } #basic plots par(mfrow=c(1,1)) par(pty="m", mar=c(2,2,1,1), mgp=c(1,.35,0)) plot(x=c(0:(l...
/scripts/square_modulus_triangle.R
no_license
somasushma/R-code
R
false
false
4,686
r
library("pracma") library("numbers") library("MASS") library("xtable") n=300 f1=rep(0, n*(n+1)/2) f2=rep(0, n*(n+1)/2) l=0 for (j in 1:n) { s=(1:j)^2 f1[(l+1):(l+j)]=s f2[(l+1):(l+j)]= (s %% j) l=l+j } #basic plots par(mfrow=c(1,1)) par(pty="m", mar=c(2,2,1,1), mgp=c(1,.35,0)) plot(x=c(0:(l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/operators.R \name{mx} \alias{mx} \alias{\%mx\%} \title{Numerical and Symbolic Matrix Product} \usage{ mx(x, y) x \%mx\% y } \arguments{ \item{x}{\code{numeric} or \code{character} matrix.} \item{y}{\code{numeric} or \code{character} matrix....
/man/mx.Rd
no_license
cran/calculus
R
false
true
1,397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/operators.R \name{mx} \alias{mx} \alias{\%mx\%} \title{Numerical and Symbolic Matrix Product} \usage{ mx(x, y) x \%mx\% y } \arguments{ \item{x}{\code{numeric} or \code{character} matrix.} \item{y}{\code{numeric} or \code{character} matrix....
# THIS NEEDS WORK - tighten up the value-checking. Integrate Campbell's 7999 value => should set 'D' flag library(RMySQL) options(scipen=999) #This disables scientific notation for values #Process the ME limno dat at the end of each day when buoy data in available from AOS. This should run between #1930-midnight on t...
/ME/update_ME_limno_hires_byday.R
no_license
xujunjiejack/LTER-Buoys
R
false
false
4,485
r
# THIS NEEDS WORK - tighten up the value-checking. Integrate Campbell's 7999 value => should set 'D' flag library(RMySQL) options(scipen=999) #This disables scientific notation for values #Process the ME limno dat at the end of each day when buoy data in available from AOS. This should run between #1930-midnight on t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PdPDB.R \name{PdPDB} \alias{PdPDB} \title{Pattern Discovery in PDB Structures of Metalloproteins} \usage{ PdPDB(path, metal, n, perc, interactive, dropsReplicate) } \arguments{ \item{path}{A string containing the path to the PDB directory.} ...
/man/PdPDB.Rd
no_license
cran/PdPDB
R
false
true
5,168
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PdPDB.R \name{PdPDB} \alias{PdPDB} \title{Pattern Discovery in PDB Structures of Metalloproteins} \usage{ PdPDB(path, metal, n, perc, interactive, dropsReplicate) } \arguments{ \item{path}{A string containing the path to the PDB directory.} ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{ordinal.gamma} \alias{ordinal.gamma} \title{Compute the ordinal gamma association statistic} \usage{ ordinal.gamma(mat) } \arguments{ \item{mat}{a cross tabulation matrix} } \description{ Compute the ordinal gamma association statistic } \examples{ # Example da...
/man/ordinal.gamma.Rd
no_license
mhunter1/rpf
R
false
false
541
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{ordinal.gamma} \alias{ordinal.gamma} \title{Compute the ordinal gamma association statistic} \usage{ ordinal.gamma(mat) } \arguments{ \item{mat}{a cross tabulation matrix} } \description{ Compute the ordinal gamma association statistic } \examples{ # Example da...
# Create a line graph of friend_count vs. age # so that each year_joined.bucket is a line # tracking the median user friend_count across # age. This means you should have four different # lines on your plot. # You should subset the data to exclude the users # whose year_joined.bucket is NA. # If you need a hint, see ...
/Data Analysis with R/L5 Explore Many Variables/PlottingitallTogether.R
no_license
DataUnicorn/Udacity
R
false
false
903
r
# Create a line graph of friend_count vs. age # so that each year_joined.bucket is a line # tracking the median user friend_count across # age. This means you should have four different # lines on your plot. # You should subset the data to exclude the users # whose year_joined.bucket is NA. # If you need a hint, see ...
## Topic modeling, take 2 # # The plan: # 1. Compress cleaned noexcludes into a single file in MALLET-ready format # 2. Set up MALLET to analyze that file, but don't run yet # a. to import the instances from that single file, use system() to run MALLET outside of R # (as in Ben Warwick's 'R2MALLET.r); use my token r...
/topic modeling 3.R
no_license
benmiller314/Dissertation-Research
R
false
false
15,184
r
## Topic modeling, take 2 # # The plan: # 1. Compress cleaned noexcludes into a single file in MALLET-ready format # 2. Set up MALLET to analyze that file, but don't run yet # a. to import the instances from that single file, use system() to run MALLET outside of R # (as in Ben Warwick's 'R2MALLET.r); use my token r...
options(java.parameters = "-Xmx8g" ) library(shiny) library(DT) library(png) library(rJava) library(rcdk) library(fingerprint) library(enrichR) library(webchem) library(plyr) library(tidyverse) library(plotly) library(shinyBS) library(shinythemes) library(visNetwork) library(igraph) library(shinyjs) library(shinycsslo...
/global.R
permissive
xschildw/polypharmacology-db
R
false
false
10,759
r
options(java.parameters = "-Xmx8g" ) library(shiny) library(DT) library(png) library(rJava) library(rcdk) library(fingerprint) library(enrichR) library(webchem) library(plyr) library(tidyverse) library(plotly) library(shinyBS) library(shinythemes) library(visNetwork) library(igraph) library(shinyjs) library(shinycsslo...
source("/data2/3to5/I35/scripts/analysisfunctions.R") library(ncdf4) library(maps) library(mapdata) library(maptools) library(fields) library(sp) library(raster) library(rasterVis) library(ggplot2) library(modi) weighted.var2 <- function(x, w, na.rm = FALSE) { if (na.rm) { w <- w[i <- !is.na(x)] x <- x[i] ...
/Sanderson/CalcChecks.R
no_license
amwootte/analysisscripts
R
false
false
29,817
r
source("/data2/3to5/I35/scripts/analysisfunctions.R") library(ncdf4) library(maps) library(mapdata) library(maptools) library(fields) library(sp) library(raster) library(rasterVis) library(ggplot2) library(modi) weighted.var2 <- function(x, w, na.rm = FALSE) { if (na.rm) { w <- w[i <- !is.na(x)] x <- x[i] ...
context("getOMLTask") test_that("getOMLTask", { measures = listOMLEvaluationMeasures(session.hash)$name task = getOMLTask(1L, session.hash) expect_is(task, "OMLTask") expect_is(task$input$data.set, "OMLDataSet") expect_true(is.data.frame(task$input$data.set$data)) tf = task$input$data.set$target.features...
/tests/testthat/test_base_getOMLTask.R
no_license
parthasen/r-6
R
false
false
636
r
context("getOMLTask") test_that("getOMLTask", { measures = listOMLEvaluationMeasures(session.hash)$name task = getOMLTask(1L, session.hash) expect_is(task, "OMLTask") expect_is(task$input$data.set, "OMLDataSet") expect_true(is.data.frame(task$input$data.set$data)) tf = task$input$data.set$target.features...
library(rebus) library(dplyr) library(tastyworks) # Location of the confirmations path <- file.path("~", "Documents", "Options Trading", "Tastyworks", "Confirmations") # Confirmation file name example: "2017-08-30-5WT38480-confirmation.pdf" filename_pattern <- START %R% YMD %R% "-" %R% repeated(ALNUM, 8) %R% "-conf...
/transactions.R
no_license
tourko/profitzone
R
false
false
678
r
library(rebus) library(dplyr) library(tastyworks) # Location of the confirmations path <- file.path("~", "Documents", "Options Trading", "Tastyworks", "Confirmations") # Confirmation file name example: "2017-08-30-5WT38480-confirmation.pdf" filename_pattern <- START %R% YMD %R% "-" %R% repeated(ALNUM, 8) %R% "-conf...
#' @name dtMotifMatch #' @title Compute the augmented matching subsequence on SNP and reference allele #' s. #' @description Calculate the best matching augmented subsequences on both SNP #' and reference alleles for motifs. Obtain extra unmatching position on the #' best matching augmented subsequence of the reference...
/R/graphic.R
no_license
chandlerzuo/atSNP
R
false
false
18,713
r
#' @name dtMotifMatch #' @title Compute the augmented matching subsequence on SNP and reference allele #' s. #' @description Calculate the best matching augmented subsequences on both SNP #' and reference alleles for motifs. Obtain extra unmatching position on the #' best matching augmented subsequence of the reference...
install.packages("tidyverse") library(tidyverse) browseVignettes("ggplot2") browseVignettes("dplyr") installed.packages()
/R/Week23.R
no_license
ashokjha/dataanalytics
R
false
false
129
r
install.packages("tidyverse") library(tidyverse) browseVignettes("ggplot2") browseVignettes("dplyr") installed.packages()