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{sshzd2d} \alias{sshzd2d} \alias{sshzd2d1} \title{Estimating 2-D Hazard Function Using Smoothing Splines} \description{ Estimate 2-D hazard function using smoothing spline ANOVA models. } \usage{ sshzd2d(formula1, formula2, symmetry=FALSE, data, alpha=1.4, weights=NULL, subset=NULL, id.basis=NULL, nbas...
/man/sshzd2d.Rd
no_license
cran/gss
R
false
false
5,337
rd
\name{sshzd2d} \alias{sshzd2d} \alias{sshzd2d1} \title{Estimating 2-D Hazard Function Using Smoothing Splines} \description{ Estimate 2-D hazard function using smoothing spline ANOVA models. } \usage{ sshzd2d(formula1, formula2, symmetry=FALSE, data, alpha=1.4, weights=NULL, subset=NULL, id.basis=NULL, nbas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoscaling_operations.R \name{autoscaling_describe_policies} \alias{autoscaling_describe_policies} \title{Describes the policies for the specified Auto Scaling group} \usage{ autoscaling_describe_policies(AutoScalingGroupName, PolicyNames, ...
/cran/paws.management/man/autoscaling_describe_policies.Rd
permissive
TWarczak/paws
R
false
true
3,145
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoscaling_operations.R \name{autoscaling_describe_policies} \alias{autoscaling_describe_policies} \title{Describes the policies for the specified Auto Scaling group} \usage{ autoscaling_describe_policies(AutoScalingGroupName, PolicyNames, ...
rm(list=ls(all=TRUE)); graphics.off(); require(mgcv); require(lme4); state<-"Kansas" i<-3 dataDir<-paste0("C:/repos/driversdata/Data/",state,"/speciesData") setwd("C:/repos/driversdata/data/kansas/speciesData") info<-read.csv("quadrat_info.csv",header=T) subinfo<-data.frame(quad=info$shapefiles, Group=info$g...
/data/site_data/Kansas/speciesData/assignGDGroups.R
permissive
atredennick/oppm
R
false
false
1,097
r
rm(list=ls(all=TRUE)); graphics.off(); require(mgcv); require(lme4); state<-"Kansas" i<-3 dataDir<-paste0("C:/repos/driversdata/Data/",state,"/speciesData") setwd("C:/repos/driversdata/data/kansas/speciesData") info<-read.csv("quadrat_info.csv",header=T) subinfo<-data.frame(quad=info$shapefiles, Group=info$g...
## Set working directory setwd(paste('f:/Users/GT/Desktop/Coursera', '/Data Science/Cleaning Data/', 'Project/UCI HAR Dataset',sep='')) ##-------------------------------------------- ## Read all training data into R ##-------------------------------------------- ## Feature name fname=read.table...
/run_analysis.R
no_license
alex002/cleaningdata
R
false
false
1,767
r
## Set working directory setwd(paste('f:/Users/GT/Desktop/Coursera', '/Data Science/Cleaning Data/', 'Project/UCI HAR Dataset',sep='')) ##-------------------------------------------- ## Read all training data into R ##-------------------------------------------- ## Feature name fname=read.table...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/buildsteps_templates.R \name{cr_buildstep_decrypt} \alias{cr_buildstep_decrypt} \title{Create a build step for decrypting files via KMS} \usage{ cr_buildstep_decrypt(cipher, plain, keyring, key, location = "global", ...) } \arguments{ \item...
/man/cr_buildstep_decrypt.Rd
no_license
j450h1/googleCloudRunner
R
false
true
1,399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/buildsteps_templates.R \name{cr_buildstep_decrypt} \alias{cr_buildstep_decrypt} \title{Create a build step for decrypting files via KMS} \usage{ cr_buildstep_decrypt(cipher, plain, keyring, key, location = "global", ...) } \arguments{ \item...
thetas.tpm <- function (thetas, type, constraint, p) { if (is.null(constraint)) { if (type == "rasch") matrix(c(thetas[-length(thetas)], abs(rep(thetas[length(thetas)], p))), p, 3) else matrix(thetas, p, 3) } else { thetas <- rep(thetas, length.out = 3 * p...
/R/thetas.tpm.R
no_license
cran/ltm
R
false
false
694
r
thetas.tpm <- function (thetas, type, constraint, p) { if (is.null(constraint)) { if (type == "rasch") matrix(c(thetas[-length(thetas)], abs(rep(thetas[length(thetas)], p))), p, 3) else matrix(thetas, p, 3) } else { thetas <- rep(thetas, length.out = 3 * p...
library(phtt) ### Name: Eup ### Title: Eup-Routine ### Aliases: Eup Eup.default ### ** Examples ## See the example in 'help(Cigar)' in order to take a look at the ## data set 'Cigar' ########## ## DATA ## ########## data(Cigar) ## Panel-Dimensions: N <- 46 T <- 30 ## Dependent variable: ## Cigarette-Sales per C...
/data/genthat_extracted_code/phtt/examples/Eup.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
865
r
library(phtt) ### Name: Eup ### Title: Eup-Routine ### Aliases: Eup Eup.default ### ** Examples ## See the example in 'help(Cigar)' in order to take a look at the ## data set 'Cigar' ########## ## DATA ## ########## data(Cigar) ## Panel-Dimensions: N <- 46 T <- 30 ## Dependent variable: ## Cigarette-Sales per C...
data$clear_weather <- ifelse(data$weathersit ==1, 1, 0) data$cloudy_weather <- ifelse(data$weathersit ==2, 1, 0) data$lightprecp_weather <- ifelse(data$weathersit ==3, 1, 0) data$heavyprecp_weather <- ifelse(data$weathersit ==4, 1, 0)
/group-project/src/disc.r
no_license
pavanred/ml_spring14
R
false
false
235
r
data$clear_weather <- ifelse(data$weathersit ==1, 1, 0) data$cloudy_weather <- ifelse(data$weathersit ==2, 1, 0) data$lightprecp_weather <- ifelse(data$weathersit ==3, 1, 0) data$heavyprecp_weather <- ifelse(data$weathersit ==4, 1, 0)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcs.R \name{vChapman} \alias{vChapman} \title{Estimated Variance of the Chapman Estimator} \usage{ vChapman(n1, n2, m2) } \arguments{ \item{n1}{Number of individuals captured and marked in the first sample. This may be a single number or ve...
/man/vChapman.Rd
no_license
mbtyers/recapr
R
false
true
1,619
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcs.R \name{vChapman} \alias{vChapman} \title{Estimated Variance of the Chapman Estimator} \usage{ vChapman(n1, n2, m2) } \arguments{ \item{n1}{Number of individuals captured and marked in the first sample. This may be a single number or ve...
raindrops <- function(number) { res <- "" if (number %% 3 == 0) { res = "Pling" } if (number %% 5 == 0) { res = paste(res, "Plang", sep="") } if (number %% 7 == 0) { res = paste(res, "Plong", sep="") } if (res == "") { return(as.character(number)) } return(res) }
/r/raindrops/raindrops.R
no_license
johncornflake/exercism
R
false
false
289
r
raindrops <- function(number) { res <- "" if (number %% 3 == 0) { res = "Pling" } if (number %% 5 == 0) { res = paste(res, "Plang", sep="") } if (number %% 7 == 0) { res = paste(res, "Plong", sep="") } if (res == "") { return(as.character(number)) } return(res) }
### GMSE sims in parallel rm(list=ls()) library(GMSE) library(parallel) library(doParallel) library(foreach) source("helpers.R") foldername = "sim_set_3" YRS = 20 SIMS = 100 par(mfrow=c(1,1)) OUT = list() #PARS = expand.grid(STAKEHOLDERS = 12, USR_YLD_BUDGET = seq(0,0.45,0.05), OWNERSHIP_VAR = seq(0.1,1,0.1)) PARS...
/sim_set_3/sims3.R
no_license
jejoenje/gmse_equity
R
false
false
2,720
r
### GMSE sims in parallel rm(list=ls()) library(GMSE) library(parallel) library(doParallel) library(foreach) source("helpers.R") foldername = "sim_set_3" YRS = 20 SIMS = 100 par(mfrow=c(1,1)) OUT = list() #PARS = expand.grid(STAKEHOLDERS = 12, USR_YLD_BUDGET = seq(0,0.45,0.05), OWNERSHIP_VAR = seq(0.1,1,0.1)) PARS...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/features.R \name{bme_vmonth_transf} \alias{bme_vmonth_transf} \title{bme_vmonth_transf} \usage{ bme_vmonth_transf(data) } \arguments{ \item{data}{dataframe with categorical variable "visit_date" indicating date of visit in a given restaurant}...
/RecruitPackage/recruitjapan/man/bme_vmonth_transf.Rd
permissive
ALaks96/Kaggle_competition_Restaurant_Visit_Forecast
R
false
true
494
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/features.R \name{bme_vmonth_transf} \alias{bme_vmonth_transf} \title{bme_vmonth_transf} \usage{ bme_vmonth_transf(data) } \arguments{ \item{data}{dataframe with categorical variable "visit_date" indicating date of visit in a given restaurant}...
testlist <- list(Rs = numeric(0), atmp = c(-1.49815227045093e+197, 2.16562581831091e+161, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, -7.88781071482505e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615848957-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
522
r
testlist <- list(Rs = numeric(0), atmp = c(-1.49815227045093e+197, 2.16562581831091e+161, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, -7.88781071482505e+93, 1.0823131123826e-105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
library(tidyverse) library(googlesheets) library(dplyr) library(RMySQL) library(lubridate) library(stringr) library(lazyeval) tmp_gs_dir = "/media/data2/rstudio/birds/old_googlesheets" #' http://stackoverflow.com/questions/5090082/handling-field-types-in-database-interaction-with-r dbGetTypes = function(con,table){ ...
/db.R
no_license
bradleycolquitt/expression-utils
R
false
false
17,089
r
library(tidyverse) library(googlesheets) library(dplyr) library(RMySQL) library(lubridate) library(stringr) library(lazyeval) tmp_gs_dir = "/media/data2/rstudio/birds/old_googlesheets" #' http://stackoverflow.com/questions/5090082/handling-field-types-in-database-interaction-with-r dbGetTypes = function(con,table){ ...
library("pracma") #part a A <- matrix(c(3,1,3,4,3,6,-4,-1,-4),3); A w <- c(1,0,0); w T <- cbind(w, A%*%w, A%*%A%*%w, A%*%A%*%A%*%w); T rref(T) # So A^3w = -2w + Aw + 2A^2w, so p(t)= t^3 - 2t^2 - t + 2 # p(t) = (t-2)(t-1)(t+1), so the eigenvalues are 2, 1, and -1 lam1 <- 2; lam2 <- 1; lam3 <- -1 I <- diag(c(1,1,1),3); ...
/Linear_algebra_scripts/ElbertGongPset4Prob10.R
permissive
elbertgong/2015fallprojects
R
false
false
1,351
r
library("pracma") #part a A <- matrix(c(3,1,3,4,3,6,-4,-1,-4),3); A w <- c(1,0,0); w T <- cbind(w, A%*%w, A%*%A%*%w, A%*%A%*%A%*%w); T rref(T) # So A^3w = -2w + Aw + 2A^2w, so p(t)= t^3 - 2t^2 - t + 2 # p(t) = (t-2)(t-1)(t+1), so the eigenvalues are 2, 1, and -1 lam1 <- 2; lam2 <- 1; lam3 <- -1 I <- diag(c(1,1,1),3); ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kernel.est.R \name{kernel.est} \alias{kernel.est} \title{Estimate the probability in state and restricted mean time in an illness-death model with component-wise censoring} \usage{ kernel.est( dat, bandwidth, tau2, prob.times = NULL, ...
/man/kernel.est.Rd
permissive
anneae/cwcens
R
false
true
4,018
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kernel.est.R \name{kernel.est} \alias{kernel.est} \title{Estimate the probability in state and restricted mean time in an illness-death model with component-wise censoring} \usage{ kernel.est( dat, bandwidth, tau2, prob.times = NULL, ...
rm(list = ls()) set.seed(1985) setwd('~/Dropbox/Share/Cheng&Yan/matinv/Simulation/') library('MASS') library('Rcpp') library('Matrix') library('fastclime') library('glasso') library('BigQuic') library('scio') library('EQUAL') sourceCpp('hp.cpp') id=3; ## Select Omega ttime<-function(obj) {t1<-proc.time(); obj t2<-as.ve...
/Simulation/sim1.R
no_license
cescwang85/EQUAL
R
false
false
1,494
r
rm(list = ls()) set.seed(1985) setwd('~/Dropbox/Share/Cheng&Yan/matinv/Simulation/') library('MASS') library('Rcpp') library('Matrix') library('fastclime') library('glasso') library('BigQuic') library('scio') library('EQUAL') sourceCpp('hp.cpp') id=3; ## Select Omega ttime<-function(obj) {t1<-proc.time(); obj t2<-as.ve...
getwd() setwd("D:/Courses/2nd Year/Final exam/Exam/8") BSI=read.csv("BSE_Sensex_Index.csv",header = TRUE) library(dplyr) new_BSI=mutate(BSI,sgr=lead((lag(Close)- Close) / Close)) #last row in sgr column lc=nrow(new_BSI) a=new_BSI$sgr[lc-1] b=new_BSI$sgr[lc-2] c=new_BSI$sgr[lc-3] new_BSI$sgr[lc]=mean...
/Intro to Data Mining/Final exam/Exam/8/8.R
no_license
mranirudhboddu/-Sp-Data_Science_2019501125
R
false
false
598
r
getwd() setwd("D:/Courses/2nd Year/Final exam/Exam/8") BSI=read.csv("BSE_Sensex_Index.csv",header = TRUE) library(dplyr) new_BSI=mutate(BSI,sgr=lead((lag(Close)- Close) / Close)) #last row in sgr column lc=nrow(new_BSI) a=new_BSI$sgr[lc-1] b=new_BSI$sgr[lc-2] c=new_BSI$sgr[lc-3] new_BSI$sgr[lc]=mean...
#' Easily Build Function Factories #' #' @param fun An anonymous function to turn into a factory. #' @param ... Arguments for the factory function. If the argument should not #' have a default, use the somewhat strange construction \code{a =}. This also #' applies for \code{...}, so \code{... =}. Things on the RHS ...
/R/factory.R
permissive
trinker/factory
R
false
false
2,444
r
#' Easily Build Function Factories #' #' @param fun An anonymous function to turn into a factory. #' @param ... Arguments for the factory function. If the argument should not #' have a default, use the somewhat strange construction \code{a =}. This also #' applies for \code{...}, so \code{... =}. Things on the RHS ...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # library(shiny) library(leaflet) library(naturecounts) source("mapfunction.R") # Define UI ---- ui <- fluidPage( titlePanel("Find Feathered Friends", windowTitle = "Find Feather Friends"), sid...
/app.R
no_license
irisquan/find-feathered-friends
R
false
false
1,129
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # library(shiny) library(leaflet) library(naturecounts) source("mapfunction.R") # Define UI ---- ui <- fluidPage( titlePanel("Find Feathered Friends", windowTitle = "Find Feather Friends"), sid...
v <- c( 1:10, 12:15, 20) is.unsorted(v) # [1] FALSE w <- c(12:15, 1:10, 20) is.unsorted(w) # [1] TRUE u <- sort(v) is.unsorted(u) # [1] FALSE
/functions/is.unsorted.R
no_license
ReneNyffenegger/about-r
R
false
false
145
r
v <- c( 1:10, 12:15, 20) is.unsorted(v) # [1] FALSE w <- c(12:15, 1:10, 20) is.unsorted(w) # [1] TRUE u <- sort(v) is.unsorted(u) # [1] FALSE
#Data Management Exercises #1 #1a ?load() getwd() setwd("C:/Users/USER/Desktop/esta aplicada 2018-I/R") getwd() download.file("https://github.com/franciscorosales-marticorena/ApplStatsR/raw/master/Exercises/knee.txt",destfile ="Knee.txt") read.table("Knee.txt",header=TRUE) #si en header se pone false , no co...
/Homework/ejercicios data management.R
no_license
chinomandarin77/ApplStatsR
R
false
false
3,008
r
#Data Management Exercises #1 #1a ?load() getwd() setwd("C:/Users/USER/Desktop/esta aplicada 2018-I/R") getwd() download.file("https://github.com/franciscorosales-marticorena/ApplStatsR/raw/master/Exercises/knee.txt",destfile ="Knee.txt") read.table("Knee.txt",header=TRUE) #si en header se pone false , no co...
#' @include service.R #' @include stream.R NULL ################################################################################ bucket_name_from_req_params <- function(request) { request_params <- request$params bucket <- request_params["Bucket"] if (is.null(bucket)) return(NULL) bucket_name <- bucket[[1]]...
/paws.common/R/custom_s3.R
permissive
lorenzwalthert/paws
R
false
false
5,137
r
#' @include service.R #' @include stream.R NULL ################################################################################ bucket_name_from_req_params <- function(request) { request_params <- request$params bucket <- request_params["Bucket"] if (is.null(bucket)) return(NULL) bucket_name <- bucket[[1]]...
weather <- read.csv("./raw_weather.csv",stringsAsFactors = F ,na.strings= c("999", "NA", " ", "")) weather <- weather[,c(1,3,9,15,18,22)] weather$Events[is.na(weather$Events)] <- "Sunny" colnames(weather) <- c('date', 'Mean.Temp','Mena.Humidity','Mean.Visib','Mean.Wind','Types') weather$date <- as.Date(weather$...
/weather.r
no_license
abdulazizasz/Pittsburgh-Bike-Share-Project
R
false
false
382
r
weather <- read.csv("./raw_weather.csv",stringsAsFactors = F ,na.strings= c("999", "NA", " ", "")) weather <- weather[,c(1,3,9,15,18,22)] weather$Events[is.na(weather$Events)] <- "Sunny" colnames(weather) <- c('date', 'Mean.Temp','Mena.Humidity','Mean.Visib','Mean.Wind','Types') weather$date <- as.Date(weather$...
#=================================================================================================== # # load packages used by the App LoadPackages <- function() { library(shiny) library(tidyverse) # Imports: broom, DBI, dplyr, forcats, ggplot2, haven, httr, hms, jsonlite, lubridate, magrittr, modelr, purrr, readr...
/ShinyApps/ClinicalAccuracyAndUtility/testPVplots.R
no_license
NIHRDECncl/R-tools
R
false
false
6,301
r
#=================================================================================================== # # load packages used by the App LoadPackages <- function() { library(shiny) library(tidyverse) # Imports: broom, DBI, dplyr, forcats, ggplot2, haven, httr, hms, jsonlite, lubridate, magrittr, modelr, purrr, readr...
library(stringr) library(httr) library(jsonlite) library(jpeg) library(purrr) dir.create("img", showWarnings = FALSE) card_names <- readLines("fifteen_card_highlander.txt") for (n in card_names) { path <- paste0("cards/named?exact=", str_replace_all(n, " ", "+")) res <- GET(url = "https://api.scryfall.com/", pat...
/fetch_cards.R
no_license
bodkan/cube
R
false
false
1,096
r
library(stringr) library(httr) library(jsonlite) library(jpeg) library(purrr) dir.create("img", showWarnings = FALSE) card_names <- readLines("fifteen_card_highlander.txt") for (n in card_names) { path <- paste0("cards/named?exact=", str_replace_all(n, " ", "+")) res <- GET(url = "https://api.scryfall.com/", pat...
### R code from vignette source 'GSVA.Rnw' ### Encoding: UTF-8 ################################################### ### code chunk number 1: options ################################################### options(width=60) pdf.options(useDingbats=FALSE) ################################################### ### code chunk n...
/source/macOS/R-Portable-Mac/library/GSVA/doc/GSVA.R
permissive
romanhaa/Cerebro
R
false
false
23,312
r
### R code from vignette source 'GSVA.Rnw' ### Encoding: UTF-8 ################################################### ### code chunk number 1: options ################################################### options(width=60) pdf.options(useDingbats=FALSE) ################################################### ### code chunk n...
library(BoutrosLab.plotting.general) ### Name: save.session.profile ### Title: Save Session Profile ### Aliases: save.session.profile ### Keywords: utilities ### ** Examples ## Not run: ##D x <- rnorm(1e8); ##D save.session.profile(paste0(paste0(tempdir(),"/"), ##D generate.filename('Test', 'Session.Profile', 'tx...
/data/genthat_extracted_code/BoutrosLab.plotting.general/examples/save.session.profile.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
346
r
library(BoutrosLab.plotting.general) ### Name: save.session.profile ### Title: Save Session Profile ### Aliases: save.session.profile ### Keywords: utilities ### ** Examples ## Not run: ##D x <- rnorm(1e8); ##D save.session.profile(paste0(paste0(tempdir(),"/"), ##D generate.filename('Test', 'Session.Profile', 'tx...
#read data mydata1<-read.table("household_power_consumption.txt",header = T,sep=";",stringsAsFactors=F) #subset #x:2007-02-01 x<-subset(mydata1,Date=="1/2/2007",select = Date:Sub_metering_3) #y:2007-02-01 y<-subset(mydata1,Date=="2/2/2007",select = Date:Sub_metering_3) #row bined #mydataSubset=x+y mydataSubset<-rbind(...
/Plot3.R
no_license
lixiaoyi315/ExData_Plotting1
R
false
false
1,337
r
#read data mydata1<-read.table("household_power_consumption.txt",header = T,sep=";",stringsAsFactors=F) #subset #x:2007-02-01 x<-subset(mydata1,Date=="1/2/2007",select = Date:Sub_metering_3) #y:2007-02-01 y<-subset(mydata1,Date=="2/2/2007",select = Date:Sub_metering_3) #row bined #mydataSubset=x+y mydataSubset<-rbind(...
#' --- #' title: "Regression and Other Stories: Gay" #' author: "Andrew Gelman, Aki Vehtari" #' date: "`r format(Sys.Date())`" #' --- #' Nonlinear models (Loess, B-spline, GP-spline, and BART) and #' political attitudes as a function of age #' #' ------------- #' #+ setup, include=FALSE knitr::opts_chunk$set(messag...
/Gay/gay.R
no_license
seekshreyas/RAOS-Examples
R
false
false
9,445
r
#' --- #' title: "Regression and Other Stories: Gay" #' author: "Andrew Gelman, Aki Vehtari" #' date: "`r format(Sys.Date())`" #' --- #' Nonlinear models (Loess, B-spline, GP-spline, and BART) and #' political attitudes as a function of age #' #' ------------- #' #+ setup, include=FALSE knitr::opts_chunk$set(messag...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ggmgsa.R \name{ggmgsa_singlesplit} \alias{ggmgsa_singlesplit} \title{Single-split GGMGSA} \usage{ ggmgsa_singlesplit(x1, x2, gene.sets, gene.names, method.p.adjust = "fdr", verbose = TRUE, ...) } \arguments{ \item{x1}{centered (scal...
/man/ggmgsa_singlesplit.Rd
no_license
FrankD/NetHet_old
R
false
false
779
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/ggmgsa.R \name{ggmgsa_singlesplit} \alias{ggmgsa_singlesplit} \title{Single-split GGMGSA} \usage{ ggmgsa_singlesplit(x1, x2, gene.sets, gene.names, method.p.adjust = "fdr", verbose = TRUE, ...) } \arguments{ \item{x1}{centered (scal...
R0 <- 6371e3 G <- 6.67428e-11 # m^(3)*kg^(-1)*s^(-2) e_dens_single <- function(r) { x <- abs(r / R0) if (abs(r) < 1221.5e3) q <- 13.0885 - 8.8381*x^2 else if (abs(r) < 3480e3) q <- 12.5815 - 1.2638*x - 3.6426*x^2 - 5.5281*x^3 else if (abs(r) < 5701e3) q <- 7.9565 -6.4761*x + 5.5283*x^2 - 3.0807*x^3 els...
/book_in_earth_simulation.R
no_license
daniel-rodak/sdmid
R
false
false
4,341
r
R0 <- 6371e3 G <- 6.67428e-11 # m^(3)*kg^(-1)*s^(-2) e_dens_single <- function(r) { x <- abs(r / R0) if (abs(r) < 1221.5e3) q <- 13.0885 - 8.8381*x^2 else if (abs(r) < 3480e3) q <- 12.5815 - 1.2638*x - 3.6426*x^2 - 5.5281*x^3 else if (abs(r) < 5701e3) q <- 7.9565 -6.4761*x + 5.5283*x^2 - 3.0807*x^3 els...
# Aula 7 - Clusterização m <- mtcars plot(m$mpg~m$wt) # Calculando k-means set.seed(33) k <- kmeans(m[,c("mpg", "wt")],6) plot(m$mpg~m$wt, col=k$cluster, pch=k$cluster) # Colocando na mesma escala m$wt_2 <- m$wt * 6 plot(m$mpg~m$wt_2) # Recalculando o kmeans set.seed(33) k <- kmeans(m[,c("mpg", "wt_2")],4) plot(m$mp...
/SHIFT/202009/Aula7.R
no_license
Uemura84/FIAP
R
false
false
2,627
r
# Aula 7 - Clusterização m <- mtcars plot(m$mpg~m$wt) # Calculando k-means set.seed(33) k <- kmeans(m[,c("mpg", "wt")],6) plot(m$mpg~m$wt, col=k$cluster, pch=k$cluster) # Colocando na mesma escala m$wt_2 <- m$wt * 6 plot(m$mpg~m$wt_2) # Recalculando o kmeans set.seed(33) k <- kmeans(m[,c("mpg", "wt_2")],4) plot(m$mp...
#' Stub an http request #' #' @export #' @param method (character) HTTP method, one of "get", "post", "put", "patch", #' "head", "delete", "options" - or the special "any" (for any method) #' @param uri (character) The request uri. Can be a full uri, partial, or a #' regular expression to match many incantations of a u...
/R/stub_request.R
permissive
Jenaimarr/webmockr
R
false
false
3,843
r
#' Stub an http request #' #' @export #' @param method (character) HTTP method, one of "get", "post", "put", "patch", #' "head", "delete", "options" - or the special "any" (for any method) #' @param uri (character) The request uri. Can be a full uri, partial, or a #' regular expression to match many incantations of a u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/URs.R \name{URs} \alias{URs} \title{Use Report (UR)} \usage{ URs(data) } \arguments{ \item{data}{is an ethnobotany data set with column 1 'informant' and 2 'sp_name' as row identifiers of informants and of species names respectively. The rest...
/man/URs.Rd
no_license
CWWhitney/ethnobotanyR
R
false
true
1,933
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/URs.R \name{URs} \alias{URs} \title{Use Report (UR)} \usage{ URs(data) } \arguments{ \item{data}{is an ethnobotany data set with column 1 'informant' and 2 'sp_name' as row identifiers of informants and of species names respectively. The rest...
library(devtools) load_all() data=matrix(c(1,1,1, 1,1,2, 3,1,2, 2,2,2, 1,1,1),5,3,byrow=T) clusterMatrix(data) fout2 <- findKNN(data,k=2,BNPARAM=VptreeParam(distance="Hamming")) fout2$index data
/Prova 2.R
no_license
lorenzonegro/ProveTesi
R
false
false
253
r
library(devtools) load_all() data=matrix(c(1,1,1, 1,1,2, 3,1,2, 2,2,2, 1,1,1),5,3,byrow=T) clusterMatrix(data) fout2 <- findKNN(data,k=2,BNPARAM=VptreeParam(distance="Hamming")) fout2$index data
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{mantelStat} \alias{mantelStat} \title{Mantel statistic} \usage{ mantelStat(xr, Wr) } \arguments{ \item{xr}{a matrix of traits.} \item{Wr}{a matrix of weights.} } \description{ Mantel statistic }
/man/mantelStat.Rd
no_license
fkeck/phylosignal
R
false
true
294
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{mantelStat} \alias{mantelStat} \title{Mantel statistic} \usage{ mantelStat(xr, Wr) } \arguments{ \item{xr}{a matrix of traits.} \item{Wr}{a matrix of weights.} } \description{ Mantel statistic }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/StMoMo2iMoMo.R \name{StMoMo2iMoMo} \alias{StMoMo2iMoMo} \title{Transform a mortality rate model to an improvement rate model} \usage{ StMoMo2iMoMo( model, type = c("indirect", "direct"), constFun = function(ax, bx, kt, b0x, gc, wxt, age...
/man/StMoMo2iMoMo.Rd
no_license
amvillegas/iMoMo
R
false
true
1,457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/StMoMo2iMoMo.R \name{StMoMo2iMoMo} \alias{StMoMo2iMoMo} \title{Transform a mortality rate model to an improvement rate model} \usage{ StMoMo2iMoMo( model, type = c("indirect", "direct"), constFun = function(ax, bx, kt, b0x, gc, wxt, age...
setwd("C:/Users/NP/Desktop/SPRINGBOARD/Machine learning") movies<- read.table("movielens.txt", header=FALSE, sep="|", quote="\"") str(movies) colnames(movies)=c("ID","Title","ReleaseDate","VideoReleaseDate","IMDB","Unknown","Action","Adventure","Animation","Childrens","Comedy","Crime","Documentary","Drama","Fantasy"...
/MovieLensClustering.R
no_license
Patelnk687/Machine-Learning-Unit-Practice
R
false
false
1,009
r
setwd("C:/Users/NP/Desktop/SPRINGBOARD/Machine learning") movies<- read.table("movielens.txt", header=FALSE, sep="|", quote="\"") str(movies) colnames(movies)=c("ID","Title","ReleaseDate","VideoReleaseDate","IMDB","Unknown","Action","Adventure","Animation","Childrens","Comedy","Crime","Documentary","Drama","Fantasy"...
sapply(list.files(pattern="[.]r$", path="../../modellingscripts", full.names=TRUE), source); scrubtweet <- function(tweet) { patterns <- c("[@]\\w+[ ,.:]?|\\n|[?_#.]{2,}|&amp;|[\"]|http[s?]://\\w+.\\w+[/\\w+]{0,}|^RT|[#2]{0,1}[Mm][Ee][Tt][Oo]{2}[_]{0,1}") tweet <- str_replace_all(tweet, patterns, "") tweet...
/data/MeToo/analyzeMeTooTweets.r
no_license
moorbra/metoo
R
false
false
960
r
sapply(list.files(pattern="[.]r$", path="../../modellingscripts", full.names=TRUE), source); scrubtweet <- function(tweet) { patterns <- c("[@]\\w+[ ,.:]?|\\n|[?_#.]{2,}|&amp;|[\"]|http[s?]://\\w+.\\w+[/\\w+]{0,}|^RT|[#2]{0,1}[Mm][Ee][Tt][Oo]{2}[_]{0,1}") tweet <- str_replace_all(tweet, patterns, "") tweet...
# Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). # If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. # # For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 1...
/problem21.R
no_license
shannonrush/euler
R
false
false
1,186
r
# Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). # If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. # # For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 1...
# You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Ctrl + Shift + B' # Check Package: 'Ctrl + Shift + E' # Test Package: 'Ctrl + Shift + T' ## che...
/R/hello.R
no_license
caocloud/handouts
R
false
false
4,008
r
# You can learn more about package authoring with RStudio at: # # http://r-pkgs.had.co.nz/ # # Some useful keyboard shortcuts for package authoring: # # Build and Reload Package: 'Ctrl + Shift + B' # Check Package: 'Ctrl + Shift + E' # Test Package: 'Ctrl + Shift + T' ## che...
## Source: https://github.com/fdryan/R/blob/master/ggplot2_formatter.r require(plyr) require(scales) # --------------------------------------------------------------------------------------------- # Formatting functions for ggplot graph axis # -------------------------------------------------------------------------...
/3. Multiple Linear Regression/kc_house_data/ggplot2_formatter.r
no_license
nikita-barsukov/udemy-machine-learning
R
false
false
2,190
r
## Source: https://github.com/fdryan/R/blob/master/ggplot2_formatter.r require(plyr) require(scales) # --------------------------------------------------------------------------------------------- # Formatting functions for ggplot graph axis # -------------------------------------------------------------------------...
#' @title Evaluate multiple expressions created with symbol substitution #' (raw version). #' @export #' @family Metaprogramming utilities #' @description Loop over a grid of values, create an expression object #' from each one, and then evaluate that expression. #' Helps with general metaprogramming. Unlike [tar...
/R/tar_eval_raw.R
permissive
ropensci/tarchetypes
R
false
false
2,161
r
#' @title Evaluate multiple expressions created with symbol substitution #' (raw version). #' @export #' @family Metaprogramming utilities #' @description Loop over a grid of values, create an expression object #' from each one, and then evaluate that expression. #' Helps with general metaprogramming. Unlike [tar...
library(testthat) library(golfSimulator) test_check("golfSimulator")
/tests/testthat.R
no_license
williamschwalbe/golfSimulator-1
R
false
false
70
r
library(testthat) library(golfSimulator) test_check("golfSimulator")
library('lattice') library('nutshell') # HISTOGRAM birth.weight.by.number <- function(...) { data(births2006.smpl); histogram(~DBWT|DPLURAL, data=births2006.smpl, ...); } stack.birth.weight.by.number <- function() { birth.weight.by.number(layout=c(1, 5)); }
/charts/lattice/hist.R
no_license
vmandrade/r_notes
R
false
false
267
r
library('lattice') library('nutshell') # HISTOGRAM birth.weight.by.number <- function(...) { data(births2006.smpl); histogram(~DBWT|DPLURAL, data=births2006.smpl, ...); } stack.birth.weight.by.number <- function() { birth.weight.by.number(layout=c(1, 5)); }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild_functions.R \name{projects.triggers.patch} \alias{projects.triggers.patch} \title{Updates a `BuildTrigger` by its project ID and trigger ID.This API is experimental.} \usage{ projects.triggers.patch(BuildTrigger, projectId, trigger...
/man/projects.triggers.patch.Rd
no_license
FvD/googleContainerBuilderR
R
false
true
1,185
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild_functions.R \name{projects.triggers.patch} \alias{projects.triggers.patch} \title{Updates a `BuildTrigger` by its project ID and trigger ID.This API is experimental.} \usage{ projects.triggers.patch(BuildTrigger, projectId, trigger...
#PAGE=357 a=c(4.5,6.4,7.2,6.7) b=c(8.8,7.8,9.6,7) c=c(5.9,6.8,5.7,5.2) r1=sum(a) r2=sum(b) r3=sum(c) m1=mean(a) m2=mean(b) m3=mean(c) d1=c(a[1],b[1],c[1]) d2=c(a[2],b[2],c[2]) d3=c(a[3],b[3],c[3]) d4=c(a[4],b[4],c[4]) c1=sum(d1) c2=sum(d2) c3=sum(d3) c4=sum(d4) m4=mean(d1) m5=mean(d2) m6=mean(d3) m...
/Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH16/EX16.16.12/Ex16_16_12.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
615
r
#PAGE=357 a=c(4.5,6.4,7.2,6.7) b=c(8.8,7.8,9.6,7) c=c(5.9,6.8,5.7,5.2) r1=sum(a) r2=sum(b) r3=sum(c) m1=mean(a) m2=mean(b) m3=mean(c) d1=c(a[1],b[1],c[1]) d2=c(a[2],b[2],c[2]) d3=c(a[3],b[3],c[3]) d4=c(a[4],b[4],c[4]) c1=sum(d1) c2=sum(d2) c3=sum(d3) c4=sum(d4) m4=mean(d1) m5=mean(d2) m6=mean(d3) m...
load("E:\\U course\\TrainingMessages.rda") trm=trainMessages # 1 isSpam<-function(i){ # whether mail is Spam (TRUE) or Ham (FALSE) grepl("[S|s]pam",names(trm)[i]) } # 2 isRe<-function(i){ # if the string Re: appears as the first word in the subject of the message if(sum(grep("^Subject$", names(...
/Feature Selection/Feature Selected Code.R
no_license
SXLBILL/Classifying-and-Predicting-Emails-as-SPAM-or-HAM-with-R
R
false
false
9,620
r
load("E:\\U course\\TrainingMessages.rda") trm=trainMessages # 1 isSpam<-function(i){ # whether mail is Spam (TRUE) or Ham (FALSE) grepl("[S|s]pam",names(trm)[i]) } # 2 isRe<-function(i){ # if the string Re: appears as the first word in the subject of the message if(sum(grep("^Subject$", names(...
library(testthat) expect_equal( ngram_tokenizer(1)(""), character(0) ) expect_equal( ngram_tokenizer(1)("I'm an aspiring data scientist"), c( "I'm", "an", "aspiring", "data", "scientist") ) expect_equal( ngram_tokenizer(2)("I'm an aspiring data scientist"), c("I'm an", "an aspiring", "aspirin...
/tests/testthat/test_ngram_tokenizer.R
permissive
shameer/r-snippets
R
false
false
703
r
library(testthat) expect_equal( ngram_tokenizer(1)(""), character(0) ) expect_equal( ngram_tokenizer(1)("I'm an aspiring data scientist"), c( "I'm", "an", "aspiring", "data", "scientist") ) expect_equal( ngram_tokenizer(2)("I'm an aspiring data scientist"), c("I'm an", "an aspiring", "aspirin...
library(shiny) library(leaflet) library(sf) library(dplyr) library(shiny) #runGitHub( "transport_network_study", "aarsundaram") filepath=getwd() setwd(filepath) ###Load your data: bridges <- read.csv('CandV_Bridges.csv', header=TRUE, sep=',') # Define UI for application that draws a histogram ui <- shinyUI(f...
/ShinyAppZip/bridges_CV_analysis.R
no_license
aarsundaram/transport_network_study
R
false
false
2,437
r
library(shiny) library(leaflet) library(sf) library(dplyr) library(shiny) #runGitHub( "transport_network_study", "aarsundaram") filepath=getwd() setwd(filepath) ###Load your data: bridges <- read.csv('CandV_Bridges.csv', header=TRUE, sep=',') # Define UI for application that draws a histogram ui <- shinyUI(f...
#################### REAL DATA: CV + HELD OUT TEST SET ################ # Data data <- read.csv(paste0(path,"data/wagedata.csv")) head(data); dim(data) # Visualize cor(data); pairs(data) # Add Variables data$EDUC2 <- data$EDUC^2 data$EDUCROOT <- sqrt(data$EDUC) data$EDUCEXP <- data$EDUC*data$EXPERIENCE ...
/scripts/cross_validation_on_real_data_regression.R
no_license
yiqiao-yin/Advanced-Data-Analysis-Project
R
false
false
12,097
r
#################### REAL DATA: CV + HELD OUT TEST SET ################ # Data data <- read.csv(paste0(path,"data/wagedata.csv")) head(data); dim(data) # Visualize cor(data); pairs(data) # Add Variables data$EDUC2 <- data$EDUC^2 data$EDUCROOT <- sqrt(data$EDUC) data$EDUCEXP <- data$EDUC*data$EXPERIENCE ...
library(tidyr) library(dplyr) library(ggrepel) library(ggplot2) library(stringr) u = read.csv("../landscapes_2.6_new.R.tsv", sep=" ") %>% select(Language, Family, OSSameSide, OSSameSide_Real, OSSameSide_Real_Prob) ######################### ######################### u = rbind(u, data.frame(Language=c("ISWOC_Old_Engli...
/analysis/visualize_historical/landscapes_2.6_Historical_Years2_Q_OrnUhl_Layout_New.R
no_license
m-hahn/optimization-landscapes
R
false
false
11,329
r
library(tidyr) library(dplyr) library(ggrepel) library(ggplot2) library(stringr) u = read.csv("../landscapes_2.6_new.R.tsv", sep=" ") %>% select(Language, Family, OSSameSide, OSSameSide_Real, OSSameSide_Real_Prob) ######################### ######################### u = rbind(u, data.frame(Language=c("ISWOC_Old_Engli...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/palm.R \name{Palm} \alias{Palm} \title{Generates a palm tree plot from a table of data.} \usage{ Palm(table, global.font.family = "Arial", global.font.color = rgb(44, 44, 44, maxColorValue = 255), title = "", title.font.family = global.fo...
/man/Palm.Rd
no_license
deyanlazarov/flipStandardCharts
R
false
true
5,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/palm.R \name{Palm} \alias{Palm} \title{Generates a palm tree plot from a table of data.} \usage{ Palm(table, global.font.family = "Arial", global.font.color = rgb(44, 44, 44, maxColorValue = 255), title = "", title.font.family = global.fo...
#' Get working directory #' #' @export #' bdy.getwd <- function(){ command=paste('BaiduPCS-Go.exe pwd') x <- system(command = command, intern = T,show.output.on.console = F) Encoding(x) = 'UTF-8' cat(paste0(x,collapse = '\n')) }
/R/bdy.getwd.R
permissive
yikeshu0611/RBaiduYun
R
false
false
261
r
#' Get working directory #' #' @export #' bdy.getwd <- function(){ command=paste('BaiduPCS-Go.exe pwd') x <- system(command = command, intern = T,show.output.on.console = F) Encoding(x) = 'UTF-8' cat(paste0(x,collapse = '\n')) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/classroom_objects.R \name{DriveFile} \alias{DriveFile} \title{DriveFile Object} \usage{ DriveFile(id = NULL, title = NULL, alternateLink = NULL, thumbnailUrl = NULL) } \arguments{ \item{id}{Drive API resource ID} \item{title}{Title of the ...
/googleclassroomv1.auto/man/DriveFile.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/classroom_objects.R \name{DriveFile} \alias{DriveFile} \title{DriveFile Object} \usage{ DriveFile(id = NULL, title = NULL, alternateLink = NULL, thumbnailUrl = NULL) } \arguments{ \item{id}{Drive API resource ID} \item{title}{Title of the ...
# R code of package 'mnormpow' pmnormpow <- function(x, varcov, ...) sadmvng(lower=rep(-Inf, length(x)), upper=x, varcov, ...) imnormpow <- function(lower,upper, varcov, ...) sadmvng(lower=lower, upper=upper, varcov, ...) sadmvng <- function(lower, upper, varcov, ipuiss=1, puiss=0, ...
/mnormpow/R/mnormpow.R
no_license
ingted/R-Examples
R
false
false
2,188
r
# R code of package 'mnormpow' pmnormpow <- function(x, varcov, ...) sadmvng(lower=rep(-Inf, length(x)), upper=x, varcov, ...) imnormpow <- function(lower,upper, varcov, ...) sadmvng(lower=lower, upper=upper, varcov, ...) sadmvng <- function(lower, upper, varcov, ipuiss=1, puiss=0, ...
% --- Source file: gower_dist.Rd --- \name{gower.dist} \alias{gower.dist} \title{Computes the Gower's Distance} \description{ This function computes the Gower's distance (dissimilarity) between units in a dataset or between observations in two distinct datasets. } \usage{ gower.dist(data.x, data.y=data.x, rngs=NULL...
/StatMatch_1.4.1/man/gower.dist.Rd
no_license
marcellodo/StatMatch
R
false
false
7,167
rd
% --- Source file: gower_dist.Rd --- \name{gower.dist} \alias{gower.dist} \title{Computes the Gower's Distance} \description{ This function computes the Gower's distance (dissimilarity) between units in a dataset or between observations in two distinct datasets. } \usage{ gower.dist(data.x, data.y=data.x, rngs=NULL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_confounder_effects.R \name{plot_confounder_effects} \alias{plot_confounder_effects} \title{Plot confounder effects} \usage{ plot_confounder_effects( object, confounders = character(), fvars, color_var = "subgroup" ) } \arguments{...
/autonomics.find/man/plot_confounder_effects.Rd
no_license
bhagwataditya/autonomics0
R
false
true
491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_confounder_effects.R \name{plot_confounder_effects} \alias{plot_confounder_effects} \title{Plot confounder effects} \usage{ plot_confounder_effects( object, confounders = character(), fvars, color_var = "subgroup" ) } \arguments{...
############################################################ # Master analysis for MS NMA Prediction MODEL ############################################################ ########################################################## ############### LIBRARIES ################################# ###load the needed li...
/Trial_CE/MASTER.R
no_license
htx-r/Reproduce-results-from-papers
R
false
false
8,293
r
############################################################ # Master analysis for MS NMA Prediction MODEL ############################################################ ########################################################## ############### LIBRARIES ################################# ###load the needed li...
#notes 8 examples for generating RV's c = 6 n = 10000 k = 0 # counter for acceptance j = 0 ##number of iterations x <- rep(NA,n) while(k<n){ y = runif(1) j = j+1 u = runif(1) if(u<=4*y*(1-y)){ k = k+1 x[k] = y } } hist(x) j #Transform method lambda = 1 n = 10000 a = 2 b = ...
/notes 8 examples.R
no_license
nockbarry/AMS-597-Statistical-Computing
R
false
false
760
r
#notes 8 examples for generating RV's c = 6 n = 10000 k = 0 # counter for acceptance j = 0 ##number of iterations x <- rep(NA,n) while(k<n){ y = runif(1) j = j+1 u = runif(1) if(u<=4*y*(1-y)){ k = k+1 x[k] = y } } hist(x) j #Transform method lambda = 1 n = 10000 a = 2 b = ...
# Download all the Little tree map shapefiles from USGS # Matthew Kling # March 2016 library(stringr) # paths to source website and target folder url <- "http://esp.cr.usgs.gov/data/little/" destination <- "C:/Lab_projects/2016_Phylomodelling/Data/Species/Little_trees/" # get unique urls for every species html <- p...
/Scripts/scrape_little_tree_data.r
no_license
ackerlylab/2016_Phylomodelling
R
false
false
1,197
r
# Download all the Little tree map shapefiles from USGS # Matthew Kling # March 2016 library(stringr) # paths to source website and target folder url <- "http://esp.cr.usgs.gov/data/little/" destination <- "C:/Lab_projects/2016_Phylomodelling/Data/Species/Little_trees/" # get unique urls for every species html <- p...
setwd("C:/Users/Lenovo/Desktop/week6_assignment") train=read.csv("kc_house_data_small_train.csv") valid=read.csv("kc_house_data_validation.csv") test=read.csv("kc_house_data_small_test.csv") normalize <- function(x) { return ( x / sqrt(sum(x^2))) } norm <- function(x) { return (sqrt(sum(x^2))) } ...
/week6/HW6.R
permissive
jessie-sun927/UW-Machine-Learning-Regression
R
false
false
2,685
r
setwd("C:/Users/Lenovo/Desktop/week6_assignment") train=read.csv("kc_house_data_small_train.csv") valid=read.csv("kc_house_data_validation.csv") test=read.csv("kc_house_data_small_test.csv") normalize <- function(x) { return ( x / sqrt(sum(x^2))) } norm <- function(x) { return (sqrt(sum(x^2))) } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SolveRationalMatrixEquaton.R \name{QRdecompose} \alias{QRdecompose} \title{QR Decomposition} \usage{ QRdecompose(mat) } \arguments{ \item{mat}{a matrix of real numbers} } \value{ list containing Q and R matrices } \description{ Decompose a ma...
/man/QRdecompose.Rd
no_license
cran/SolveRationalMatrixEquation
R
false
true
447
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SolveRationalMatrixEquaton.R \name{QRdecompose} \alias{QRdecompose} \title{QR Decomposition} \usage{ QRdecompose(mat) } \arguments{ \item{mat}{a matrix of real numbers} } \value{ list containing Q and R matrices } \description{ Decompose a ma...
## These two functions are designed to be used to calculate the inverse of a matrix. ## However, instead of calling solve() directly on the matrix, they can be ## used in conjunction in order to cache the inverse if the matrix has not ## been changed since the last request for the inverse of the matrix. ## This fun...
/cachematrix.R
no_license
clairetaylor352/ProgrammingAssignment2
R
false
false
1,324
r
## These two functions are designed to be used to calculate the inverse of a matrix. ## However, instead of calling solve() directly on the matrix, they can be ## used in conjunction in order to cache the inverse if the matrix has not ## been changed since the last request for the inverse of the matrix. ## This fun...
\name{linmodel} \alias{linmodel} \title{Gottman-Murray Marriage Model with Linear Influence} \description{ Fit the Gottman-Murray marriage model with a linear influence function. } \usage{ linmodel(observations) } \arguments{ \item{observations}{A data frame with two columns, one for the wife (person ...
/man/linmodel.Rd
no_license
cran/dyad
R
false
false
3,852
rd
\name{linmodel} \alias{linmodel} \title{Gottman-Murray Marriage Model with Linear Influence} \description{ Fit the Gottman-Murray marriage model with a linear influence function. } \usage{ linmodel(observations) } \arguments{ \item{observations}{A data frame with two columns, one for the wife (person ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appsync_operations.R \name{appsync_create_data_source} \alias{appsync_create_data_source} \title{Creates a DataSource object} \usage{ appsync_create_data_source(apiId, name, description, type, serviceRoleArn, dynamodbConfig, lambdaConfig, e...
/cran/paws.mobile/man/appsync_create_data_source.Rd
permissive
johnnytommy/paws
R
false
true
2,360
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appsync_operations.R \name{appsync_create_data_source} \alias{appsync_create_data_source} \title{Creates a DataSource object} \usage{ appsync_create_data_source(apiId, name, description, type, serviceRoleArn, dynamodbConfig, lambdaConfig, e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coding.tools.R \name{is.date.text} \alias{is.date.text} \title{is.date.text} \usage{ is.date.text(x) } \arguments{ \item{x}{- An input string} } \value{ Function returns logical, to indicate whether the string could be turned into a date. } \...
/man/is.date.text.Rd
no_license
christiantillich/AnaliTools
R
false
true
348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coding.tools.R \name{is.date.text} \alias{is.date.text} \title{is.date.text} \usage{ is.date.text(x) } \arguments{ \item{x}{- An input string} } \value{ Function returns logical, to indicate whether the string could be turned into a date. } \...
#' @param max.alteri A \code{numeric} giving the maximum number of alteri.
/man-roxygen/max_alteri.R
no_license
tilltnet/egonetR
R
false
false
75
r
#' @param max.alteri A \code{numeric} giving the maximum number of alteri.
#' Calculate graph global, local, or nodal efficiency #' #' This function calculates the global efficiency of a graph or the local or #' nodal efficiency of each vertex of a graph. The global efficiency is equal #' to the mean of all nodal efficiencies. #' #' Global efficiency for graph \emph{G} with \emph{N} ver...
/R/graph_efficiency.R
no_license
nagyistge/brainGraph
R
false
false
3,293
r
#' Calculate graph global, local, or nodal efficiency #' #' This function calculates the global efficiency of a graph or the local or #' nodal efficiency of each vertex of a graph. The global efficiency is equal #' to the mean of all nodal efficiencies. #' #' Global efficiency for graph \emph{G} with \emph{N} ver...
model_tavg <- function (tmin = 0.0, tmax = 0.0){ #'- Name: Tavg -Version: 1.0, -Time step: 1 #'- Description: #' * Title: Mean temperature calculation #' * Author: STICS #' * Reference: doi:http://dx.doi.org/10.1016/j.agrformet.2014.05.002 #' ...
/snow_pkg/src/r/STICS_SNOW/Tavg.r
permissive
AgriculturalModelExchangeInitiative/Tutorial
R
false
false
1,959
r
model_tavg <- function (tmin = 0.0, tmax = 0.0){ #'- Name: Tavg -Version: 1.0, -Time step: 1 #'- Description: #' * Title: Mean temperature calculation #' * Author: STICS #' * Reference: doi:http://dx.doi.org/10.1016/j.agrformet.2014.05.002 #' ...
#################################################### # PLSC 503 -- Spring 2020: Code for Day Thirteen #################################################### library(RCurl) library(MASS) library(sem) # <-- install if needed library(car) options(scipen = 6) # bias against scientific notation options(digits = 4) # show fe...
/Code/PLSC503-2020-DayThirteen.R
no_license
karthy257/PLSC503-2020-git
R
false
false
2,368
r
#################################################### # PLSC 503 -- Spring 2020: Code for Day Thirteen #################################################### library(RCurl) library(MASS) library(sem) # <-- install if needed library(car) options(scipen = 6) # bias against scientific notation options(digits = 4) # show fe...
c13a <- read.csv("MERGED2013_PP.csv", header = TRUE, sep = ",") c13 <- c13a[which(c13a$STABBR=='NY' | c13a$STABBR=='NJ' | c13a$STABBR=='CT' | c13a$STABBR=='DE' | c13a$STABBR=='DC' | c13a$STABBR=='MD' | c13a$STABBR=='PA' | c13a$STABBR=='VT' | c13a$STABBR=='MA' | c13a$STABBR=='RI' | c13a$STABBR=='OH' | c13a$STABBR=='VR'...
/Scripts/Script.R
no_license
fdrgiit/DADM
R
false
false
13,272
r
c13a <- read.csv("MERGED2013_PP.csv", header = TRUE, sep = ",") c13 <- c13a[which(c13a$STABBR=='NY' | c13a$STABBR=='NJ' | c13a$STABBR=='CT' | c13a$STABBR=='DE' | c13a$STABBR=='DC' | c13a$STABBR=='MD' | c13a$STABBR=='PA' | c13a$STABBR=='VT' | c13a$STABBR=='MA' | c13a$STABBR=='RI' | c13a$STABBR=='OH' | c13a$STABBR=='VR'...
##============================================================================## # Helper functions for: # Creating basic shapefiles for Metro Data Warehouse # # David Harshbarger # August 2019 ##============================================================================## libs <- c("dplyr", "tigris", "sf") libs_una...
/data-raw/create_basic_geometries_helper.R
no_license
BrookingsInstitution/metro-data-warehouse
R
false
false
5,885
r
##============================================================================## # Helper functions for: # Creating basic shapefiles for Metro Data Warehouse # # David Harshbarger # August 2019 ##============================================================================## libs <- c("dplyr", "tigris", "sf") libs_una...
#This script reproduces the single cell RNAseq analysis of KF and KFCA mice described in Menjivar et al., 2023 #Data was processed in line with the Seurat workflow: #Website: https://satijalab.org/seurat/index.html # #Reference: Stuart et al., Comprehensive Integration of Single-Cell Data. #Cell, 2019;177(7):1888-1902...
/Menjivar et al 2023 Arg1 Script.R
no_license
PascaDiMagliano-Lab/Arginase-1-is-a-key-driver-of-immune-suppression-in-pancreatic-cancer
R
false
false
26,751
r
#This script reproduces the single cell RNAseq analysis of KF and KFCA mice described in Menjivar et al., 2023 #Data was processed in line with the Seurat workflow: #Website: https://satijalab.org/seurat/index.html # #Reference: Stuart et al., Comprehensive Integration of Single-Cell Data. #Cell, 2019;177(7):1888-1902...
function(input, output) { output$vbox <- renderValueBox(vb) output$vbox2 <- renderValueBox(vb2) output$vbox3 <- renderValueBox(vb3) output$candle <- renderPlotly(plot4) #output$table <- renderDataTable(BBCA.JK[,c("BBCA.JK.Open","BBCA.JK.Close","BBCA.JK.High","BBCA.JK.Low","BBCA.JK.Adjusted","BBCA.JK....
/stockanalyze/server.R
no_license
rizuchaa/stock-analyzer-r
R
false
false
381
r
function(input, output) { output$vbox <- renderValueBox(vb) output$vbox2 <- renderValueBox(vb2) output$vbox3 <- renderValueBox(vb3) output$candle <- renderPlotly(plot4) #output$table <- renderDataTable(BBCA.JK[,c("BBCA.JK.Open","BBCA.JK.Close","BBCA.JK.High","BBCA.JK.Low","BBCA.JK.Adjusted","BBCA.JK....
library(ggplot2) ggplot(metadata, x="sample", y="genome_size",
/script/plot_ecoli.R
no_license
Paic315/igcrworkshop
R
false
false
64
r
library(ggplot2) ggplot(metadata, x="sample", y="genome_size",
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Possion.R \name{plotPo} \alias{plotPo} \title{This function plots a distribution cantainig n Possian random variables with parameter lambda*t using ggplot2} \usage{ plotPo(numbers, lambda, t) } \arguments{ \item{numbers:}{number of r...
/rvGenerator/man/plotPo.Rd
no_license
AtaJadidAhari/Random-Variables
R
false
true
670
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Possion.R \name{plotPo} \alias{plotPo} \title{This function plots a distribution cantainig n Possian random variables with parameter lambda*t using ggplot2} \usage{ plotPo(numbers, lambda, t) } \arguments{ \item{numbers:}{number of r...
cropROI <- function(img, n=512) { img <- imgRGB2Grey(img) w <- ncol(img) h <- nrow(img) plot(img) xy <- locator(n, type="o") polygon(xy) xy <- lapply(xy, round) png(filename = "../../temp.png", width = w, height = h, bg = "black") par(plt=c(0, 1, 0, 1), xaxs="i", yaxs="i") plot(xy[[1]], xy...
/RImageBook/R/cropROI.R
no_license
tkatsuki/rimagebook
R
false
false
809
r
cropROI <- function(img, n=512) { img <- imgRGB2Grey(img) w <- ncol(img) h <- nrow(img) plot(img) xy <- locator(n, type="o") polygon(xy) xy <- lapply(xy, round) png(filename = "../../temp.png", width = w, height = h, bg = "black") par(plt=c(0, 1, 0, 1), xaxs="i", yaxs="i") plot(xy[[1]], xy...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_helpers.R \name{get_planning_dates} \alias{get_planning_dates} \title{Find the date for the wanted next week day} \usage{ get_planning_dates(starting_date = Sys.Date()) } \arguments{ \item{starting_date}{A character. Date you are starti...
/man/get_planning_dates.Rd
permissive
szego/dinnR
R
false
true
480
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils_helpers.R \name{get_planning_dates} \alias{get_planning_dates} \title{Find the date for the wanted next week day} \usage{ get_planning_dates(starting_date = Sys.Date()) } \arguments{ \item{starting_date}{A character. Date you are starti...
### Script to setup our system and create necessary grid files to generate SDAP forecasts. # We first need these two R packages to use the method. require(ncdf4) #To open netcdf files require(spheRlab) #To generate contours, plots and other grid functions. #https://github.com/FESOM/spheRlab require(tictoc) #optional,...
/S0_Setup.R
no_license
earthlybimo/SpatialDampedAnomalyPersistence-SDAP
R
false
false
8,670
r
### Script to setup our system and create necessary grid files to generate SDAP forecasts. # We first need these two R packages to use the method. require(ncdf4) #To open netcdf files require(spheRlab) #To generate contours, plots and other grid functions. #https://github.com/FESOM/spheRlab require(tictoc) #optional,...
## plot 4 ## read data and create column for DateTime library(datasets) household_power_consumption <- read.csv("~/Desktop/Coursera/ household_power_consumption.txt",sep=";") dateTime <- strptime((paste(household_power_consumption$Date, household_powe...
/plot4.R
no_license
cberryma/ExData_Plotting1
R
false
false
2,156
r
## plot 4 ## read data and create column for DateTime library(datasets) household_power_consumption <- read.csv("~/Desktop/Coursera/ household_power_consumption.txt",sep=";") dateTime <- strptime((paste(household_power_consumption$Date, household_powe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sclero-package.R \docType{package} \name{sclero} \alias{sclero} \alias{sclero-package} \title{Measure Growth Patterns and Align Sampling Spots in Photographs} \description{ Provides functions to measure growth patterns and align sampling spot...
/sclero/man/sclero.Rd
no_license
albrizre/spatstat.revdep
R
false
true
1,028
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sclero-package.R \docType{package} \name{sclero} \alias{sclero} \alias{sclero-package} \title{Measure Growth Patterns and Align Sampling Spots in Photographs} \description{ Provides functions to measure growth patterns and align sampling spot...
#### Traffic Monitoring data: Data Preparation 1 #### ## 00 - Load required helper functions helperParentDir = "./helper_scripts/01_data_prep/" source(file.path(helperParentDir, "general_helpers_01.R")) source(file.path(helperParentDir, "helpers-traffic_data_prep_01.R")) source(file.path(helperParentDir, "helpers-traf...
/01_Data_Prep/traffic/traffic_data_source_prep_01.R
no_license
drbulu/healthyAir_DSc_proj
R
false
false
1,964
r
#### Traffic Monitoring data: Data Preparation 1 #### ## 00 - Load required helper functions helperParentDir = "./helper_scripts/01_data_prep/" source(file.path(helperParentDir, "general_helpers_01.R")) source(file.path(helperParentDir, "helpers-traffic_data_prep_01.R")) source(file.path(helperParentDir, "helpers-traf...
#' @include utilities.R NULL #'Visualizing Multivariate Analyse Outputs #'@description Generic function to create a scatter plot of multivariate analyse #' outputs, including PCA, CA, MCA and MFA. #'@inheritParams facto_summarize #'@param geom a text specifying the geometry to be used for the graph. Default #' value ...
/R/fviz.R
no_license
yzhlinscau/factoextra
R
false
false
16,887
r
#' @include utilities.R NULL #'Visualizing Multivariate Analyse Outputs #'@description Generic function to create a scatter plot of multivariate analyse #' outputs, including PCA, CA, MCA and MFA. #'@inheritParams facto_summarize #'@param geom a text specifying the geometry to be used for the graph. Default #' value ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.R \name{MapTrees} \alias{MapTrees} \alias{Project} \title{Graphical user interface for mapping distances and analysing tree space} \usage{ MapTrees() Project() } \description{ \code{MapTrees()} launches a "Shiny" application for the vi...
/man/MapTrees.Rd
no_license
ms609/TreeDist
R
false
true
5,146
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.R \name{MapTrees} \alias{MapTrees} \alias{Project} \title{Graphical user interface for mapping distances and analysing tree space} \usage{ MapTrees() Project() } \description{ \code{MapTrees()} launches a "Shiny" application for the vi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stj.R \docType{package} \name{stj} \alias{stj} \alias{stj-package} \title{\code{stj} package} \description{ Baixa e organiza decisões do STJ }
/man/stj.Rd
permissive
thgmoraes/stj
R
false
true
223
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stj.R \docType{package} \name{stj} \alias{stj} \alias{stj-package} \title{\code{stj} package} \description{ Baixa e organiza decisões do STJ }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remap.R \name{remap_fillcolor_by_concept_class} \alias{remap_fillcolor_by_concept_class} \alias{remap_fillcolor_by_invalid_reason} \title{FUNCTION_TITLE} \usage{ remap_fillcolor_by_concept_class( omop_graph, fillcolor_from = concept_class...
/man/remap_fillcolor_by_concept_class.Rd
no_license
meerapatelmd/chariotViz
R
false
true
882
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remap.R \name{remap_fillcolor_by_concept_class} \alias{remap_fillcolor_by_concept_class} \alias{remap_fillcolor_by_invalid_reason} \title{FUNCTION_TITLE} \usage{ remap_fillcolor_by_concept_class( omop_graph, fillcolor_from = concept_class...
#' --- #' title: "Offline Chinotype With Fake Data in Flat Files" #' css: "production.css" #' --- #' #' ### Settings #' #' In the below two lines are the minimum script-level settings you need. #' The `.projpackages` object has the names of the packages you need installed #' if necessary and then loaded for this s...
/example_analysis.R
permissive
bokov/offline_chinotype
R
false
false
4,964
r
#' --- #' title: "Offline Chinotype With Fake Data in Flat Files" #' css: "production.css" #' --- #' #' ### Settings #' #' In the below two lines are the minimum script-level settings you need. #' The `.projpackages` object has the names of the packages you need installed #' if necessary and then loaded for this s...
library(rayshader) library(geoviz) library(plotKML) # for reading GPX files require(extrafont) # to curl fonts from OS. library(magick) # Set the working directory setwd("C:/Users/sebas/documents/github/panorama/r") rgl::clear3d() #from https://github.com/wcmbishop/rayshader-demo/blob/master/R/find-image-coordinate...
/R/geoviz-ex.R
permissive
seblinyo/panorama
R
false
false
10,502
r
library(rayshader) library(geoviz) library(plotKML) # for reading GPX files require(extrafont) # to curl fonts from OS. library(magick) # Set the working directory setwd("C:/Users/sebas/documents/github/panorama/r") rgl::clear3d() #from https://github.com/wcmbishop/rayshader-demo/blob/master/R/find-image-coordinate...
# Script to generate Venn diagram # myR # R version 3.0.2 Patched (2014-01-16 r64804) -- "Frisbee Sailing" # install.packages("gplots") # install.packages("gtools", type="source") # install.packages('venneuler',,'http://www.rforge.net/') # If required, update rJava # R CMD javareconf -e # install.packages("rJava") # in...
/R-scripts/EIF4A3_Venn_si_drug-Supp.R
no_license
oncoapop/data_reporting
R
false
false
4,948
r
# Script to generate Venn diagram # myR # R version 3.0.2 Patched (2014-01-16 r64804) -- "Frisbee Sailing" # install.packages("gplots") # install.packages("gtools", type="source") # install.packages('venneuler',,'http://www.rforge.net/') # If required, update rJava # R CMD javareconf -e # install.packages("rJava") # in...
\name{EventDurationAndTimeDifference} \alias{EventDurationAndTimeDifference} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculate Duration of Events and Time Difference between Events } \description{ High level function that calculates time difference between events (if more than one) and du...
/man/EventDurationAndTimeDifference.Rd
no_license
Mthrun/TSAT
R
false
false
3,602
rd
\name{EventDurationAndTimeDifference} \alias{EventDurationAndTimeDifference} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculate Duration of Events and Time Difference between Events } \description{ High level function that calculates time difference between events (if more than one) and du...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/highlight.R \name{mask} \alias{mask} \alias{mask_regexp} \title{Blanks out part of the code} \usage{ mask(.string, pattern, ...) mask_regexp(.string, pattern, ...) } \arguments{ \item{.string}{A string object} \item{pattern}{A regular expre...
/man/mask.Rd
permissive
EvaMaeRey/demoR
R
false
true
457
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/highlight.R \name{mask} \alias{mask} \alias{mask_regexp} \title{Blanks out part of the code} \usage{ mask(.string, pattern, ...) mask_regexp(.string, pattern, ...) } \arguments{ \item{.string}{A string object} \item{pattern}{A regular expre...
library(tidyverse) library(car) library(extrafont) library(fst) library(xlsx) gss <- read.fst("C://gss.fst") gss <- gss %>% filter(year >=2008) gss <- gss %>% mutate(age2 = age - 18) gss <- gss %>% mutate(age2 = age2/71) gss <- gss %>% mutate(inc = income06/25) gss <- gss %>% mutate(black = recode(race, "2=1; els...
/rr/cleaning.R
no_license
ryanburge/deus_ex_machina
R
false
false
3,011
r
library(tidyverse) library(car) library(extrafont) library(fst) library(xlsx) gss <- read.fst("C://gss.fst") gss <- gss %>% filter(year >=2008) gss <- gss %>% mutate(age2 = age - 18) gss <- gss %>% mutate(age2 = age2/71) gss <- gss %>% mutate(inc = income06/25) gss <- gss %>% mutate(black = recode(race, "2=1; els...
# # 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/ # library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( ...
/ui.R
no_license
larui529/carrier_mobility
R
false
false
1,501
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/ # library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( ...
library(NLP) library(tm) library(ggplot2) library(RWeka) library(RColorBrewer) library(gridExtra) setwd("/Users/michelle/Desktop/DataScience/DSCapstone-JHU") swiftKeyZipURL <- "https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip" # set the download file name swiftKeyZipFile <- "Coursera-Sw...
/DatasetGenerator.R
no_license
chen0350/DSCapstone-JHU
R
false
false
3,492
r
library(NLP) library(tm) library(ggplot2) library(RWeka) library(RColorBrewer) library(gridExtra) setwd("/Users/michelle/Desktop/DataScience/DSCapstone-JHU") swiftKeyZipURL <- "https://d396qusza40orc.cloudfront.net/dsscapstone/dataset/Coursera-SwiftKey.zip" # set the download file name swiftKeyZipFile <- "Coursera-Sw...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prestep.R \name{prestep2} \alias{prestep2} \title{prestep2 - Run preprocessing} \usage{ prestep2(x, y) } \arguments{ \item{x}{dataset} \item{y}{y_values of dataset} } \value{ Returns x dataset excluding missing and outlier values of y } \des...
/man/prestep2.Rd
no_license
hogi76/DXLSS1
R
false
true
391
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/prestep.R \name{prestep2} \alias{prestep2} \title{prestep2 - Run preprocessing} \usage{ prestep2(x, y) } \arguments{ \item{x}{dataset} \item{y}{y_values of dataset} } \value{ Returns x dataset excluding missing and outlier values of y } \des...
rm(list=ls()) ################################################################################################################# # Загрузка данных и описание их ################################################################################################################# # Загружаем нужные библиотеки и ставим локацию...
/KaggleGoToHack2/kaggle.R
no_license
kazanzhy/datalytics
R
false
false
7,400
r
rm(list=ls()) ################################################################################################################# # Загрузка данных и описание их ################################################################################################################# # Загружаем нужные библиотеки и ставим локацию...
baseDir <- "/Users/jbyrne/MYGEVA/results" #This plots the best and average results for a single run to the same graph experimentPlot <- function(experiment) { generations <- 201 experimentDir <- paste(baseDir, experiment , sep="/") print(experimentDir); files = list.files(path=experimentDir, pattern = ".da...
/Rscripts/oldScripts/comparebestAvr.r
no_license
squeakus/bitsandbytes
R
false
false
1,381
r
baseDir <- "/Users/jbyrne/MYGEVA/results" #This plots the best and average results for a single run to the same graph experimentPlot <- function(experiment) { generations <- 201 experimentDir <- paste(baseDir, experiment , sep="/") print(experimentDir); files = list.files(path=experimentDir, pattern = ".da...
rm(list=ls()) # Clear memory library(httr) library(jsonlite) library(RCurl) library(dplyr) library(purrr) library(readr) library(tidyr) library(stringr) library(plyr) ### Source functions---- galib <- getURL("https://raw.githubusercontent.com/UWAMEGFisheries/globalarchive-api/master/R/galib.R", ssl.verifypeer = FALSE...
/DEMO_get_campaigns_by_project_lobster_data.R
no_license
BrookeGibbons/BIOL4408
R
false
false
2,337
r
rm(list=ls()) # Clear memory library(httr) library(jsonlite) library(RCurl) library(dplyr) library(purrr) library(readr) library(tidyr) library(stringr) library(plyr) ### Source functions---- galib <- getURL("https://raw.githubusercontent.com/UWAMEGFisheries/globalarchive-api/master/R/galib.R", ssl.verifypeer = FALSE...