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
suppressMessages(library(dplyr)) suppressMessages(library(lintr)) suppressMessages(library(ggplot2)) suppressMessages(library(tidyr)) juvenile_df <- read.csv("data/juvenile_crime.csv", stringsAsFactors = FALSE) totals <- function(df, col_name) { age_gender_total <- df %>% select(all_of(col_name)) %>% ...
/scripts/age_and_gender.R
permissive
umoazzam/uwinfo201_final_project
R
false
false
1,354
r
suppressMessages(library(dplyr)) suppressMessages(library(lintr)) suppressMessages(library(ggplot2)) suppressMessages(library(tidyr)) juvenile_df <- read.csv("data/juvenile_crime.csv", stringsAsFactors = FALSE) totals <- function(df, col_name) { age_gender_total <- df %>% select(all_of(col_name)) %>% ...
## Diebold Mariano simulations library(tidyverse) library(xtable) load("/Users/alexanderbech/Dropbox/Project/diebold_sim.RData") DB.a.50 = sapply(1:50, function(i) MC.a.50[[i]]$`Diebold Mariano test`) %>% rowMeans() %>% matrix(.,nrow = 10) DB.a.100 = sapply(1:50, function(i) MC.a.100[[i]]$`Diebold Mariano test`)...
/R/Sim_tidying.R
no_license
andreaslillevangbech/M2-project
R
false
false
7,062
r
## Diebold Mariano simulations library(tidyverse) library(xtable) load("/Users/alexanderbech/Dropbox/Project/diebold_sim.RData") DB.a.50 = sapply(1:50, function(i) MC.a.50[[i]]$`Diebold Mariano test`) %>% rowMeans() %>% matrix(.,nrow = 10) DB.a.100 = sapply(1:50, function(i) MC.a.100[[i]]$`Diebold Mariano test`)...
#' Estimate photosynthesis parameters for C4 species using Sharkey's fitting procedure #' #' Using the gas exchange measurement (A_Ci curve), C4 photosynthesis model without #' carbonic anhydrase and Sharkey et al. (2007) fitting processure to do nonlinear #' curve fitting (using nlminb package) for estimating photosyn...
/R/C4EstimateWithoutCAT.R
no_license
zhouhaoran06/C4-Parameter-Estimation
R
false
false
12,934
r
#' Estimate photosynthesis parameters for C4 species using Sharkey's fitting procedure #' #' Using the gas exchange measurement (A_Ci curve), C4 photosynthesis model without #' carbonic anhydrase and Sharkey et al. (2007) fitting processure to do nonlinear #' curve fitting (using nlminb package) for estimating photosyn...
date() packageVersion("nlmeU") message("Code for first part of Chapter 17 (from Panel R17.1 til R17.13) is executed below.") message("Code for remaining panels pertaining to pdKronecker class is distributed with nlmeUpdK package (Jun.10, 2013)") ################################################### ### code chunk: Chap...
/inst/scriptsR2.15.0/Ch17part1.R
no_license
cran/nlmeU
R
false
false
15,129
r
date() packageVersion("nlmeU") message("Code for first part of Chapter 17 (from Panel R17.1 til R17.13) is executed below.") message("Code for remaining panels pertaining to pdKronecker class is distributed with nlmeUpdK package (Jun.10, 2013)") ################################################### ### code chunk: Chap...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fasttext_interface.R \name{inner_elapsed_time} \alias{inner_elapsed_time} \title{inner function of 'compute_elapsed_time'} \usage{ inner_elapsed_time(secs, estimated = FALSE) } \arguments{ \item{secs}{a numeric value specifying the seconds} ...
/man/inner_elapsed_time.Rd
no_license
mlampros/fastText
R
false
true
553
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fasttext_interface.R \name{inner_elapsed_time} \alias{inner_elapsed_time} \title{inner function of 'compute_elapsed_time'} \usage{ inner_elapsed_time(secs, estimated = FALSE) } \arguments{ \item{secs}{a numeric value specifying the seconds} ...
#' Run the MSE for a number of runs for any scenarios #' #' @details Saves the output of the MSE runs to the files specified in `fns`, in the directories #' specified in `results_root_dir` and `results_dir` #' #' @param n_runs Then number of runs to do for each simulation #' @param n_sim_yrs The number of years to simu...
/R/run_mses.R
no_license
aaronmberger-nwfsc/pacifichakemse-1
R
false
false
8,253
r
#' Run the MSE for a number of runs for any scenarios #' #' @details Saves the output of the MSE runs to the files specified in `fns`, in the directories #' specified in `results_root_dir` and `results_dir` #' #' @param n_runs Then number of runs to do for each simulation #' @param n_sim_yrs The number of years to simu...
## Setup #### require(socialmixr) require(magrittr) require(stringr) require(reshape2) require(dplyr) require(ggplot2) require(truncnorm) source("asyptomatic_age.R") age.limits <- c(0,5,10,15,20,25,35,45,55,60,65,75,85,90) prop_symptomatic <- c(0.141, 0.106, 0.074, 0.184, 0.293, 0.387, 0.438, ...
/Baltimore_20200405.R
no_license
sberube3/Baltimore_City_Modeling
R
false
false
6,045
r
## Setup #### require(socialmixr) require(magrittr) require(stringr) require(reshape2) require(dplyr) require(ggplot2) require(truncnorm) source("asyptomatic_age.R") age.limits <- c(0,5,10,15,20,25,35,45,55,60,65,75,85,90) prop_symptomatic <- c(0.141, 0.106, 0.074, 0.184, 0.293, 0.387, 0.438, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clustering.R \name{getClusterSimilarity} \alias{getClusterSimilarity} \title{getClusterSimilarity} \usage{ getClusterSimilarity(gobject, expression_values = c("normalized", "scaled", "custom"), cluster_column, cor = c("pearson", "spearman")...
/man/getClusterSimilarity.Rd
permissive
kanliu0205/Giotto
R
false
true
946
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clustering.R \name{getClusterSimilarity} \alias{getClusterSimilarity} \title{getClusterSimilarity} \usage{ getClusterSimilarity(gobject, expression_values = c("normalized", "scaled", "custom"), cluster_column, cor = c("pearson", "spearman")...
\name{yb} \alias{yb} \docType{data} \title{ Youden and Beale's Data on Lesions of Half-Leaves of Tobacco Plant } \description{ A simple and innovative design is often priceless. Youden and Beale (1934) sought to find the effect of two preparations of virus on tobacco plants. One half of a tobacco leaf was rubbed with ...
/man/yb.Rd
no_license
cran/ACSWR
R
false
false
1,177
rd
\name{yb} \alias{yb} \docType{data} \title{ Youden and Beale's Data on Lesions of Half-Leaves of Tobacco Plant } \description{ A simple and innovative design is often priceless. Youden and Beale (1934) sought to find the effect of two preparations of virus on tobacco plants. One half of a tobacco leaf was rubbed with ...
\name{np.order} \title{Sample Size Determination for Tolerance Limits Based on Order Statistics} \alias{np.order} \usage{ np.order(m, alpha = 0.05, P = 0.99, indices = FALSE) } \description{ For given values of \code{m}, \code{alpha}, and \code{P}, this function solves the necessary sample size such that the ...
/man/nporder.Rd
no_license
cran/tolerance
R
false
false
3,131
rd
\name{np.order} \title{Sample Size Determination for Tolerance Limits Based on Order Statistics} \alias{np.order} \usage{ np.order(m, alpha = 0.05, P = 0.99, indices = FALSE) } \description{ For given values of \code{m}, \code{alpha}, and \code{P}, this function solves the necessary sample size such that the ...
rm(list = ls()) # Dados banco <- bodPercentfat banco head(banco) attach(banco) names(banco) typeof(banco) # Avaliando a variável y,no caso a variável Percent, que tem uma observação que é 0 # e isso tem bloqueado que diversos outros modelos possam rodar. # Dado essa situação uma alternativa é somar uma constante. P...
/Script_MLG_validacao_cruzada.R
no_license
conexaomundom/Regressao
R
false
false
23,838
r
rm(list = ls()) # Dados banco <- bodPercentfat banco head(banco) attach(banco) names(banco) typeof(banco) # Avaliando a variável y,no caso a variável Percent, que tem uma observação que é 0 # e isso tem bloqueado que diversos outros modelos possam rodar. # Dado essa situação uma alternativa é somar uma constante. P...
#s=0, simple LR, without regularization #nTimes runs #LOO cross-validation. require(glmnet) require(caret) require(ROCR) require(bioDist) LOOCV_Glmnet_simple<- function(dataFrame, targetVec, logisticRegression = FALSE, useAUC = TRUE, useHamming = FALSE, useProbPearson = FALSE, useKendallTau = FALSE){ if (logisticRegr...
/LOOCV_Glmnet_simple.R
no_license
jasonzhao0307/R_lib_jason
R
false
false
2,500
r
#s=0, simple LR, without regularization #nTimes runs #LOO cross-validation. require(glmnet) require(caret) require(ROCR) require(bioDist) LOOCV_Glmnet_simple<- function(dataFrame, targetVec, logisticRegression = FALSE, useAUC = TRUE, useHamming = FALSE, useProbPearson = FALSE, useKendallTau = FALSE){ if (logisticRegr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_Theta.R \name{compute_Theta} \alias{compute_Theta} \title{compute_Theta} \usage{ compute_Theta(Phi, B_0) } \arguments{ \item{B_0}{} } \value{ } \description{ Helper function used to compute Theta coefficients as in Kilian, Luetkepohl...
/man/compute_Theta.Rd
permissive
pat-alt/deepvars
R
false
true
323
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/compute_Theta.R \name{compute_Theta} \alias{compute_Theta} \title{compute_Theta} \usage{ compute_Theta(Phi, B_0) } \arguments{ \item{B_0}{} } \value{ } \description{ Helper function used to compute Theta coefficients as in Kilian, Luetkepohl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/status.R \name{status} \alias{status} \title{Status} \usage{ status(project = NULL) } \arguments{ \item{project}{The project directory. If \code{NULL}, then the active project will be used. If no project has been specifically activated, the c...
/man/status.Rd
no_license
shrektan/renv
R
false
true
478
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/status.R \name{status} \alias{status} \title{Status} \usage{ status(project = NULL) } \arguments{ \item{project}{The project directory. If \code{NULL}, then the active project will be used. If no project has been specifically activated, the c...
rm(list = ls()) set.seed(1985) dig=3 setwd('~/Dropbox/Share/Cheng&Yan/matinv/Simulation/') library('stargazer') TT<-array(0,dim=c(8,500,3)); for (id in 1:3) { TT[,,id]=readRDS(paste('time',id,'-tab1','.rds',sep =''))[-(1:5),] } Re<-matrix(0,24,5) ff<-function(obj){ m<-format(round(apply(obj,1,mean,na.rm=TRUE),dig),...
/Simulation/tab1.R
no_license
cescwang85/EQUAL
R
false
false
797
r
rm(list = ls()) set.seed(1985) dig=3 setwd('~/Dropbox/Share/Cheng&Yan/matinv/Simulation/') library('stargazer') TT<-array(0,dim=c(8,500,3)); for (id in 1:3) { TT[,,id]=readRDS(paste('time',id,'-tab1','.rds',sep =''))[-(1:5),] } Re<-matrix(0,24,5) ff<-function(obj){ m<-format(round(apply(obj,1,mean,na.rm=TRUE),dig),...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cognitoidentityprovider_operations.R \name{admin_create_user} \alias{admin_create_user} \title{Creates a new user in the specified user pool} \usage{ admin_create_user(UserPoolId, Username, UserAttributes = NULL, ValidationData = NULL,...
/service/paws.cognitoidentityprovider/man/admin_create_user.Rd
permissive
CR-Mercado/paws
R
false
true
6,032
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.cognitoidentityprovider_operations.R \name{admin_create_user} \alias{admin_create_user} \title{Creates a new user in the specified user pool} \usage{ admin_create_user(UserPoolId, Username, UserAttributes = NULL, ValidationData = NULL,...
library(hhh4contacts) ### Name: adaptP ### Title: Adapt a Transition Matrix to a Specific Stationary Distribution ### Aliases: adaptP ### ** Examples ## a row-normalized contact matrix C <- matrix(c(0.8, 0.1, 0.1, 0.2, 0.6, 0.2, 0.1, 0.2, 0.7), byrow=TRUE, ncol=3, nrow=3) stationary(C) #...
/data/genthat_extracted_code/hhh4contacts/examples/adaptP.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
609
r
library(hhh4contacts) ### Name: adaptP ### Title: Adapt a Transition Matrix to a Specific Stationary Distribution ### Aliases: adaptP ### ** Examples ## a row-normalized contact matrix C <- matrix(c(0.8, 0.1, 0.1, 0.2, 0.6, 0.2, 0.1, 0.2, 0.7), byrow=TRUE, ncol=3, nrow=3) stationary(C) #...
calc = function(x, y, operator){ num = is.numeric(x) & is.numeric(y) num = ifelse(num, "numeric", "none") ans = switch(num, "numeric" = { res = operator(x, y) paste(x, substitute(operator), y, "is", res) }, "none" = { paste("Nah dude. Wrong operandos") }) return(ans) }
/calc.R
no_license
AlexeiSleptcov/R_examples
R
false
false
296
r
calc = function(x, y, operator){ num = is.numeric(x) & is.numeric(y) num = ifelse(num, "numeric", "none") ans = switch(num, "numeric" = { res = operator(x, y) paste(x, substitute(operator), y, "is", res) }, "none" = { paste("Nah dude. Wrong operandos") }) return(ans) }
#' Lambertian (diffuse) Material #' #' @param color Default `white`. The color of the surface. Can be either #' a hexadecimal code, R color string, or a numeric rgb vector listing three intensities between `0` and `1`. #' @param checkercolor Default `NA`. If not `NA`, determines the secondary color of the checkered sur...
/R/materials.R
no_license
javierluraschi/rayrender
R
false
false
8,978
r
#' Lambertian (diffuse) Material #' #' @param color Default `white`. The color of the surface. Can be either #' a hexadecimal code, R color string, or a numeric rgb vector listing three intensities between `0` and `1`. #' @param checkercolor Default `NA`. If not `NA`, determines the secondary color of the checkered sur...
\name{boot.yhat} \alias{boot.yhat} \title{Bootstrap metrics produced from /code{calc.yhat}} \description{ This function is input to \code{boot} to bootstrap metrics computed from \code{calc.yhat}. } \usage{ boot.yhat(data, indices, lmOut,regrout0) } \arguments{ \item{data}{ Original dataset ...
/man/boot.yhat.Rd
no_license
NLangenfeldMcCoy/yhat
R
false
false
1,847
rd
\name{boot.yhat} \alias{boot.yhat} \title{Bootstrap metrics produced from /code{calc.yhat}} \description{ This function is input to \code{boot} to bootstrap metrics computed from \code{calc.yhat}. } \usage{ boot.yhat(data, indices, lmOut,regrout0) } \arguments{ \item{data}{ Original dataset ...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % equals.default.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{equals} \alias{equa...
/man/equals.Rd
no_license
HenrikBengtsson/R.oo
R
false
false
1,755
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % equals.default.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{equals} \alias{equa...
library(tolBasis) ### Name: as.xts ### Title: eXtensible Time-Series (xts) Compatibility ### Aliases: as.xts.Serie ### Keywords: xts ### ** Examples ## Not run: ##D library(xts) ##D s1 <- Serie(rnorm(12), Monthly, as.Date(ymd("2001-01-01"))) ##D xts1 <- as.xts(s1) ## End(Not run)
/data/genthat_extracted_code/tolBasis/examples/as.xts.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
289
r
library(tolBasis) ### Name: as.xts ### Title: eXtensible Time-Series (xts) Compatibility ### Aliases: as.xts.Serie ### Keywords: xts ### ** Examples ## Not run: ##D library(xts) ##D s1 <- Serie(rnorm(12), Monthly, as.Date(ymd("2001-01-01"))) ##D xts1 <- as.xts(s1) ## End(Not run)
source('helper.R') testMiddleNA <- function() { data <- data.frame( "ReadingDateTime"=c( '1/1/2009 0:00', '1/1/2009 1:00', '1/1/2009 2:00', '1/1/2009 3:00', '1/1/2009 4:00', '1/1/2009 5:00', '1/1/2009 6:00', '1/1/2009 7:00', '1/1/2009 8:00', '1/1/2009 9:00', '1/1/2009 10:00', '1/1/2009 11:00', '1/1/2009 12...
/test.R
no_license
daoleen/RAir
R
false
false
10,014
r
source('helper.R') testMiddleNA <- function() { data <- data.frame( "ReadingDateTime"=c( '1/1/2009 0:00', '1/1/2009 1:00', '1/1/2009 2:00', '1/1/2009 3:00', '1/1/2009 4:00', '1/1/2009 5:00', '1/1/2009 6:00', '1/1/2009 7:00', '1/1/2009 8:00', '1/1/2009 9:00', '1/1/2009 10:00', '1/1/2009 11:00', '1/1/2009 12...
library(quanteda) ### Name: ntoken ### Title: Count the number of tokens or types ### Aliases: ntoken ntype ### ** Examples # simple example txt <- c(text1 = "This is a sentence, this.", text2 = "A word. Repeated repeated.") ntoken(txt) ntype(txt) ntoken(char_tolower(txt)) # same ntype(char_tolower(txt)) # fewer...
/data/genthat_extracted_code/quanteda/examples/ntoken.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
721
r
library(quanteda) ### Name: ntoken ### Title: Count the number of tokens or types ### Aliases: ntoken ntype ### ** Examples # simple example txt <- c(text1 = "This is a sentence, this.", text2 = "A word. Repeated repeated.") ntoken(txt) ntype(txt) ntoken(char_tolower(txt)) # same ntype(char_tolower(txt)) # fewer...
require(data.table) require(icd) load("source/dt.sim.RData") dt.dx <- dt.sim dt.dx length(unique(dt.dx$Patient_ID)) length(unique(dt.dx$Record)) # 995 map <- fread("source/icd9_codes_2018_07_21.csv", colClasses = c("character")) l1 <- as.comorbidity_map(split(x = map$code, ...
/source/icd9_convert_v1.R
no_license
CVIRU/shiny.icd
R
false
false
1,052
r
require(data.table) require(icd) load("source/dt.sim.RData") dt.dx <- dt.sim dt.dx length(unique(dt.dx$Patient_ID)) length(unique(dt.dx$Record)) # 995 map <- fread("source/icd9_codes_2018_07_21.csv", colClasses = c("character")) l1 <- as.comorbidity_map(split(x = map$code, ...
library(gdata) library(chron) library(sqldf) library(RMySQL) library(RSQLite) library(ggplot2) library(lubridate) library(pryr) library(tcltk2) ## Reading the data with SQL program alldata<- c("C:/Users/Andres/Desktop/Online_courses/Exploratory Analysis/Project_1/household_power_consumption.txt") data <- read.csv.sq...
/plot3.R
no_license
aazqueta/Exploratory-Data
R
false
false
1,295
r
library(gdata) library(chron) library(sqldf) library(RMySQL) library(RSQLite) library(ggplot2) library(lubridate) library(pryr) library(tcltk2) ## Reading the data with SQL program alldata<- c("C:/Users/Andres/Desktop/Online_courses/Exploratory Analysis/Project_1/household_power_consumption.txt") data <- read.csv.sq...
library(BBmisc) ### Name: clipString ### Title: Shortens strings to a given length. ### Aliases: clipString ### ** Examples print(clipString("abcdef", 10)) print(clipString("abcdef", 5))
/data/genthat_extracted_code/BBmisc/examples/clipString.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
194
r
library(BBmisc) ### Name: clipString ### Title: Shortens strings to a given length. ### Aliases: clipString ### ** Examples print(clipString("abcdef", 10)) print(clipString("abcdef", 5))
#works with snapshots data to get information on page ¨likes¨ and ¨PTAT¨ over time library(ggplot2) library(scales) library(dplyr) #Reading Data m <- read.csv("data/output-microsoft.csv", sep=",", header = TRUE) m$created <- substr(m$created_at, 0, 10) m$created <- as.Date(m$created) names(m) <- c("mlikes","mtalking"...
/snapshots.r
no_license
smc-dta/Facebook-Pages-Analysis-Corporate
R
false
false
3,143
r
#works with snapshots data to get information on page ¨likes¨ and ¨PTAT¨ over time library(ggplot2) library(scales) library(dplyr) #Reading Data m <- read.csv("data/output-microsoft.csv", sep=",", header = TRUE) m$created <- substr(m$created_at, 0, 10) m$created <- as.Date(m$created) names(m) <- c("mlikes","mtalking"...
# Pedram Jahangiry # this is a quick review for the R programming ## data types in R # print ? before any function you want to know more about. #--------------------------------------------------------------------------------------- # 1- integer (if you don't put "L" then it will be double by default) x <- 2L ...
/Classes/3-4 Introduction to R and markdown/R basics/R_basics.R
no_license
PJalgotrader/Econometrics-USU-SP21
R
false
false
6,711
r
# Pedram Jahangiry # this is a quick review for the R programming ## data types in R # print ? before any function you want to know more about. #--------------------------------------------------------------------------------------- # 1- integer (if you don't put "L" then it will be double by default) x <- 2L ...
testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661288170191e-10, 6.95356800386775e-310, 2.32903286132618e+96, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,...
/dynutils/inst/testfiles/project_to_segments/AFL_project_to_segments/project_to_segments_valgrind_files/1609871406-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
409
r
testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661288170191e-10, 6.95356800386775e-310, 2.32903286132618e+96, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/admin_functions.R \name{directory.asps.list} \alias{directory.asps.list} \title{List the ASPs issued by a user.} \usage{ directory.asps.list(userKey) } \arguments{ \item{userKey}{Identifies the user in the API request} } \description{ Autogen...
/googleadmindirectoryv1.auto/man/directory.asps.list.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
845
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/admin_functions.R \name{directory.asps.list} \alias{directory.asps.list} \title{List the ASPs issued by a user.} \usage{ directory.asps.list(userKey) } \arguments{ \item{userKey}{Identifies the user in the API request} } \description{ Autogen...
plot(0, xlim = c(-10,10), ylim = c(-10,10), type="n", xlab = "", ylab = "", bty = "n", xaxt = "n",yaxt = "n", main = "Población vs. Muestra") draw.circle(0,0,6.4, border = "black", col = "yellow") draw.circle(3,0,3, border = "black", col = "red") text(-3.5,0, "Población", font = 2) text(3,0, "Muestra", font = 2)
/Tendencia_Central/mod1_pop_vs_samp.R
no_license
alcideschaux/Analisis_de_Datos
R
false
false
316
r
plot(0, xlim = c(-10,10), ylim = c(-10,10), type="n", xlab = "", ylab = "", bty = "n", xaxt = "n",yaxt = "n", main = "Población vs. Muestra") draw.circle(0,0,6.4, border = "black", col = "yellow") draw.circle(3,0,3, border = "black", col = "red") text(-3.5,0, "Población", font = 2) text(3,0, "Muestra", font = 2)
#' Create the ss3sim logo #' #' Generate and save, if \code{outfile} is provided, #' the ss3sim logo using the built-in data. #' #' @template outfile #' @examples #' ss3sim:::create_logo() #' dev.off() #' @return A \code{png} file or a graphics device with the #' logo used for the \code{ss3sim} project. #' @author K...
/R/create_logo.R
no_license
realsmak88/ss3sim
R
false
false
1,659
r
#' Create the ss3sim logo #' #' Generate and save, if \code{outfile} is provided, #' the ss3sim logo using the built-in data. #' #' @template outfile #' @examples #' ss3sim:::create_logo() #' dev.off() #' @return A \code{png} file or a graphics device with the #' logo used for the \code{ss3sim} project. #' @author K...
##' .. Given the populations at two places and the distances between ##' them, returns the flow vector under the specified model .. ##' The models are : gravity and radiation. ##' ##' @title ##' @param K ##' @param alpha ##' @param beta ##' @param gamma ##' @param model ##' @return ##' @author Sangeeta Bhatia flow_vect...
/R/spatial_processing.R
no_license
annecori/mRIIDSprocessData
R
false
false
5,710
r
##' .. Given the populations at two places and the distances between ##' them, returns the flow vector under the specified model .. ##' The models are : gravity and radiation. ##' ##' @title ##' @param K ##' @param alpha ##' @param beta ##' @param gamma ##' @param model ##' @return ##' @author Sangeeta Bhatia flow_vect...
# # 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(flui...
/ui.R
no_license
CarlaLouw/PokemonGoShinyApp
R
false
false
4,610
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(flui...
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615827541-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
734
r
testlist <- list(doy = -1.72131968218895e+83, latitude = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6...
#LIBRARIES library(readxl) library(RPostgreSQL) library(rpostgis) library(stringr) library(geosphere) library(tidyr) library(dplyr) library(sf) #CONFIG config_path <- '~/shared/rural_planner/config_files/config_br' source(config_path) #VARIABLES input_path <- paste0(input_path_infrastructure,"/intermediate outputs",...
/scripts_r/br/infrastructure/06_infrastructure_consolidation.R
no_license
Telefonica/rural-planner
R
false
false
2,706
r
#LIBRARIES library(readxl) library(RPostgreSQL) library(rpostgis) library(stringr) library(geosphere) library(tidyr) library(dplyr) library(sf) #CONFIG config_path <- '~/shared/rural_planner/config_files/config_br' source(config_path) #VARIABLES input_path <- paste0(input_path_infrastructure,"/intermediate outputs",...
# Prepare the data rowIndex <- sample(1:nrow(diamonds), 0.01*nrow(diamonds)) dSmall <- diamonds[rowIndex, ] qplot(carat, price, data=dSmall, geom=c("point", "smooth")) qplot(carat, price, data=dSmall, geom=c("point", "smooth"), span=0.1) qplot(carat, price, data=dSmall, geom=c("point", "smooth"), span=0.8) # Adjust ...
/ggplot2/ggplot_script.R
no_license
Sudhindra0803/myjunk
R
false
false
2,135
r
# Prepare the data rowIndex <- sample(1:nrow(diamonds), 0.01*nrow(diamonds)) dSmall <- diamonds[rowIndex, ] qplot(carat, price, data=dSmall, geom=c("point", "smooth")) qplot(carat, price, data=dSmall, geom=c("point", "smooth"), span=0.1) qplot(carat, price, data=dSmall, geom=c("point", "smooth"), span=0.8) # Adjust ...
#Low Tide (Strata) vs. Abundances (Biological) #Clear Yer Stuff rm(list=ls()) #Load Data TotalData<- read.csv("C:/Users/Jessica/Documents/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv") ######### Make new data set with only salinities and abundances######### #Gives Salinities at high tide unique(...
/Team B Code/Salinity vs abundance species R codes/SalinityVsAbundance ab_m3_Glycera_dibrachiata.R
permissive
ohara-patrick/Dal-Intertidal-2014
R
false
false
2,009
r
#Low Tide (Strata) vs. Abundances (Biological) #Clear Yer Stuff rm(list=ls()) #Load Data TotalData<- read.csv("C:/Users/Jessica/Documents/GitHub/Dal-Intertidal-2014/Intertidal_Master_Data_Sheet_2014.csv") ######### Make new data set with only salinities and abundances######### #Gives Salinities at high tide unique(...
\name{getLanguages} \alias{getLanguages} \title{ Return list of languages } \description{ Return list of languages: rows from lang_lst table } \usage{ getLanguages(dbCon) } \arguments{ \item{dbCon}{ database connection } } \details{ Read from database and return data frame of language list (lang_lst) table rows...
/openMpp/man/getLanguages.Rd
permissive
openmpp/R
R
false
false
917
rd
\name{getLanguages} \alias{getLanguages} \title{ Return list of languages } \description{ Return list of languages: rows from lang_lst table } \usage{ getLanguages(dbCon) } \arguments{ \item{dbCon}{ database connection } } \details{ Read from database and return data frame of language list (lang_lst) table rows...
#' Print a Color Chart for a Palette #' #' \code{ColorChart()} creates a visual reference of a color palette as it #' would appear to trichromat viewers and to viewers with three types of #' color blindness: #' deuteranopia (red-green color blindness; 1\% of males), #' protanopia (red-green color blindness; 1\% of male...
/R/color-chart.R
no_license
patrickreidy/callierr
R
false
false
4,432
r
#' Print a Color Chart for a Palette #' #' \code{ColorChart()} creates a visual reference of a color palette as it #' would appear to trichromat viewers and to viewers with three types of #' color blindness: #' deuteranopia (red-green color blindness; 1\% of males), #' protanopia (red-green color blindness; 1\% of male...
get_data_spsur <- function(formula, mf, Durbin = FALSE, listw = NULL, zero.policy = NULL, N = NULL, Tm = NULL) { # Function to get data ordered for spatio-temporal SUR # Assumption: Data Frame ordered by space (N) # Order of data N*G*Tm if (is.null(zer...
/R/get_data_spsur.R
no_license
cran/spsur
R
false
false
7,182
r
get_data_spsur <- function(formula, mf, Durbin = FALSE, listw = NULL, zero.policy = NULL, N = NULL, Tm = NULL) { # Function to get data ordered for spatio-temporal SUR # Assumption: Data Frame ordered by space (N) # Order of data N*G*Tm if (is.null(zer...
ProvincieNaam <- "Noord-Brabant" Gems <- c("GM0738","GM0748","GM0758","GM1719","GM0777","GM0779","GM1655","GM1709","GM0826","GM1674","GM0840","GM0851","GM0870","GM0873","GM0874","GM0879","GM1723","GM0744","GM0766","GM0784","GM0785","GM0797","GM0798","GM0809","GM0824","GM0855","GM0867","GM1721","GM0755","GM0756","GM0757...
/provinciesInR/NoordBrabant.r
no_license
edwindj/eugrid
R
false
false
693
r
ProvincieNaam <- "Noord-Brabant" Gems <- c("GM0738","GM0748","GM0758","GM1719","GM0777","GM0779","GM1655","GM1709","GM0826","GM1674","GM0840","GM0851","GM0870","GM0873","GM0874","GM0879","GM1723","GM0744","GM0766","GM0784","GM0785","GM0797","GM0798","GM0809","GM0824","GM0855","GM0867","GM1721","GM0755","GM0756","GM0757...
################################################################################ # AUTHOR: Rhys Jan van den Handel # DATE: November 2020 # Name: FIFA 2019 Player Ratings ################################################################################ ####################################################...
/FIFA_Player_Ratings/FIFA_2019_Player_Ratings_2.R
no_license
rhysvdh/EdxDataScience
R
false
false
21,920
r
################################################################################ # AUTHOR: Rhys Jan van den Handel # DATE: November 2020 # Name: FIFA 2019 Player Ratings ################################################################################ ####################################################...
#BAIRT #Bayesian Analysis of Item Response Theory Models #Autor: Javier Martinez <martinezjavier243@gmail.com> # #object.coda # ############################################################################### ############################################################################### #' @title Creating an mcmc.list ...
/R/object.coda.R
no_license
cran/bairt
R
false
false
5,282
r
#BAIRT #Bayesian Analysis of Item Response Theory Models #Autor: Javier Martinez <martinezjavier243@gmail.com> # #object.coda # ############################################################################### ############################################################################### #' @title Creating an mcmc.list ...
# stroop ---- #' Stroop Task #' #' 50 simulated subject in a stroop task viewing all combinations of word and ink colours blue, purple, green, red, and brown, 5 times each. Subjects respond with the ink colour. Subjects who do not respond in time have NA for response and rt. #' #' @format A data frame with 12500 rows a...
/R/data_stroop.R
permissive
PsyTeachR/psyteachrdata
R
false
false
669
r
# stroop ---- #' Stroop Task #' #' 50 simulated subject in a stroop task viewing all combinations of word and ink colours blue, purple, green, red, and brown, 5 times each. Subjects respond with the ink colour. Subjects who do not respond in time have NA for response and rt. #' #' @format A data frame with 12500 rows a...
## Cache the Inversion of a Matrix ## Caching is usefull to minimize avoidable computation by storing ## information in memory when no changes are verified on the input data. ## Overall Goal: Storing a Matrix and caching the reverse ## Step 1: Create a Matrix that can cache its inverse makeCacheMatrix ...
/cachematrix.R
no_license
oe-antunes/ProgrammingAssignment2
R
false
false
1,380
r
## Cache the Inversion of a Matrix ## Caching is usefull to minimize avoidable computation by storing ## information in memory when no changes are verified on the input data. ## Overall Goal: Storing a Matrix and caching the reverse ## Step 1: Create a Matrix that can cache its inverse makeCacheMatrix ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elnet_coord.R \name{elnet_coord} \alias{elnet_coord} \title{Elastic Net} \usage{ elnet_coord( y, X, beta0 = NA, alpha = 0, lambda = 0, niter = 10000, tol = 1e-05 ) } \arguments{ \item{y}{The constant vector} \item{X}{The regres...
/man/elnet_coord.Rd
permissive
xw547/hwpkg
R
false
true
912
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elnet_coord.R \name{elnet_coord} \alias{elnet_coord} \title{Elastic Net} \usage{ elnet_coord( y, X, beta0 = NA, alpha = 0, lambda = 0, niter = 10000, tol = 1e-05 ) } \arguments{ \item{y}{The constant vector} \item{X}{The regres...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster_export.R \name{cluster_export} \alias{cluster_export} \title{Export a column with cluster results} \usage{ cluster_export( spe, cluster_var, cluster_dir = file.path(tempdir(), "exported_clusters"), overwrite = TRUE ) } \argume...
/man/cluster_export.Rd
no_license
LieberInstitute/spatialLIBD
R
false
true
1,750
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cluster_export.R \name{cluster_export} \alias{cluster_export} \title{Export a column with cluster results} \usage{ cluster_export( spe, cluster_var, cluster_dir = file.path(tempdir(), "exported_clusters"), overwrite = TRUE ) } \argume...
# Script to read in a csv file of subsetted Apple mobility data for any US state # and write a new csv file only including transportation tallies for this subset # using function in the code/functions directory # Madison Ng # February 24, 2021 # mtng2@dons.usfca.edu # load function source("code/functions/city_county_...
/code/archived_code/02_count_up_cities_counties_original.R
no_license
ngmadison/analyze_apple_covid_mobility_data
R
false
false
796
r
# Script to read in a csv file of subsetted Apple mobility data for any US state # and write a new csv file only including transportation tallies for this subset # using function in the code/functions directory # Madison Ng # February 24, 2021 # mtng2@dons.usfca.edu # load function source("code/functions/city_county_...
library('stringr') library('ggplot2') library('grid') library('gridExtra') ### Plot some ADC samples from a capacitor discharge or constant ### charge/distcharge looking at curve/line fitting and distribution ### of the samples ### This could be a lot neater ### A (different) example fo what was executed ...
/clue-metal-detector/graphing/adc-sample-analysis-v6.R
permissive
kevinjwalters/mini-projects
R
false
false
63,211
r
library('stringr') library('ggplot2') library('grid') library('gridExtra') ### Plot some ADC samples from a capacitor discharge or constant ### charge/distcharge looking at curve/line fitting and distribution ### of the samples ### This could be a lot neater ### A (different) example fo what was executed ...
#!/usr/bin/env Rscript # via https://geoinformatics.uk/posts/r-patterns.html obj_file = function(path) { return(source(path)$value) } main = function() { f = obj_file("object.R") for (x in 2:6) { print(f(x)) } print(ls()) } if (sys.nframe() == 0) { main() }
/class/main.R
no_license
albertgoncalves/r_designs
R
false
false
296
r
#!/usr/bin/env Rscript # via https://geoinformatics.uk/posts/r-patterns.html obj_file = function(path) { return(source(path)$value) } main = function() { f = obj_file("object.R") for (x in 2:6) { print(f(x)) } print(ls()) } if (sys.nframe() == 0) { main() }
library(tidyverse) library(dplyr) library(tidyr) library(ggplot2) # to create a visualization based on dataset that shows which democratic party candidate # has the most weekly cable channel video/audio clips from CNN FOX MSNBC # December 30th, 2018, to September 8th, 2019 # line graph to see which candidate has most ...
/Democratic Candidates Commercials.R
no_license
artwang31/Democractic-Candidates-Exposure-Visualization
R
false
false
1,679
r
library(tidyverse) library(dplyr) library(tidyr) library(ggplot2) # to create a visualization based on dataset that shows which democratic party candidate # has the most weekly cable channel video/audio clips from CNN FOX MSNBC # December 30th, 2018, to September 8th, 2019 # line graph to see which candidate has most ...
#' @export cellNames = function(v){ v = v@colData v = sapply(1:nrow(v), function(i){paste0(v[i,1], '-', v[i,2]) }) # n * 2 ? return(v) }
/R/cellNames.R
permissive
unistbig/CellEnrich
R
false
false
144
r
#' @export cellNames = function(v){ v = v@colData v = sapply(1:nrow(v), function(i){paste0(v[i,1], '-', v[i,2]) }) # n * 2 ? return(v) }
testlist <- list(bytes1 = c(-1L, NA, -1L), pmutation = NaN) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612886945-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
123
r
testlist <- list(bytes1 = c(-1L, NA, -1L), pmutation = NaN) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
library(fwPackage, lib.loc = "package") library(lattice) library(tikzDevice) ltheme <- canonical.theme(color = FALSE) ## in-built B&W theme ltheme$strip.background$col <- "transparent" ## change strip bg lattice.options(default.theme = ltheme) ## set as default dbc <- dbConnect(dbDriver("SQLite"), dbna...
/R/mc-clarkwestsize.R
no_license
grayclhn/oos-overfit
R
false
false
1,395
r
library(fwPackage, lib.loc = "package") library(lattice) library(tikzDevice) ltheme <- canonical.theme(color = FALSE) ## in-built B&W theme ltheme$strip.background$col <- "transparent" ## change strip bg lattice.options(default.theme = ltheme) ## set as default dbc <- dbConnect(dbDriver("SQLite"), dbna...
library(Amelia) library(dplyr) library(magrittr) dat <- readr::read_csv("data/model_data.csv", na="<NA>") %>% unique %>% arrange(entry, year) to_skip <- c( "country_name", "iso3c", "no_report", # "pol_shift", "pol_shift_left", "pol_shift_right", "continent", "who_region", "signature", "sum_art...
/data/multiple-imputation.r
no_license
gvegayon/fctc
R
false
false
3,929
r
library(Amelia) library(dplyr) library(magrittr) dat <- readr::read_csv("data/model_data.csv", na="<NA>") %>% unique %>% arrange(entry, year) to_skip <- c( "country_name", "iso3c", "no_report", # "pol_shift", "pol_shift_left", "pol_shift_right", "continent", "who_region", "signature", "sum_art...
library("dplyr") addSemiFrequencies <- function(pop_df) { pop_df <- pop_df %>% group_by_(~Generation) %>% mutate(Frequency = (Population / sum(Population)) / 2) %>% ungroup() pop_df$Population <- pop_df$Population / 2 # because of the duplication pop_df$Frequency[is.nan(pop_df$Frequency)] <- 0 return(pop_df)...
/tests/data/scripts_ggmuller/rscript.getmullerdf.addsemifrequencies.r
permissive
cdeitrick/Lolipop
R
false
false
519
r
library("dplyr") addSemiFrequencies <- function(pop_df) { pop_df <- pop_df %>% group_by_(~Generation) %>% mutate(Frequency = (Population / sum(Population)) / 2) %>% ungroup() pop_df$Population <- pop_df$Population / 2 # because of the duplication pop_df$Frequency[is.nan(pop_df$Frequency)] <- 0 return(pop_df)...
library(ggplot2) source("linear_regression.R") lr_model <- LinearRegression() set.seed(1234) # geberate N x D data samples N <- 200 # number of all data point (test and train) D <- 4 # number of features/attributes data <- data.frame(matrix(runif(D * N), nrow = N, ncol = D)) # generate the labels coeff <- matrix(c(-...
/linear_regression_demo.R
permissive
ControlNet/ml-algorithms
R
false
false
1,251
r
library(ggplot2) source("linear_regression.R") lr_model <- LinearRegression() set.seed(1234) # geberate N x D data samples N <- 200 # number of all data point (test and train) D <- 4 # number of features/attributes data <- data.frame(matrix(runif(D * N), nrow = N, ncol = D)) # generate the labels coeff <- matrix(c(-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_formals.R \name{extract_formals} \alias{extract_formals} \title{Extract the formals from a \code{roxy_block} object} \usage{ extract_formals(roxy_block) } \arguments{ \item{roxy_block}{A \code{roxy_block} object} } \value{ A \code{dat...
/man/extract_formals.Rd
permissive
amoeba/pkgsci
R
false
true
469
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract_formals.R \name{extract_formals} \alias{extract_formals} \title{Extract the formals from a \code{roxy_block} object} \usage{ extract_formals(roxy_block) } \arguments{ \item{roxy_block}{A \code{roxy_block} object} } \value{ A \code{dat...
library(magrittr) library(tidyverse) library(broom) basic_load <- read.csv( "file:///C:/Users/rrogers/Documents/personalcode/COVID19_comparison_graph/data/nst-est2019-alldata.csv", na.strings = c(".", "NA", "", "?"), strip.white = TRUE, encoding = "UTF-8", stringsAsFactors = FALSE ) summaryinfo <- basic_load...
/simple test.R
no_license
rowrowrowyourboat/COVID19_comparison_graph
R
false
false
971
r
library(magrittr) library(tidyverse) library(broom) basic_load <- read.csv( "file:///C:/Users/rrogers/Documents/personalcode/COVID19_comparison_graph/data/nst-est2019-alldata.csv", na.strings = c(".", "NA", "", "?"), strip.white = TRUE, encoding = "UTF-8", stringsAsFactors = FALSE ) summaryinfo <- basic_load...
################################# #### Double Sort load("F:/我的论文/第五篇/RData/da_all_m.RData") #load("F:/我的论文/第五篇/RData/da_beta_5y.RData") load("F:/我的论文/第五篇/主代码/beta anomaly/monthly data in five years/RData/da_beta_5y.RData") da_m <- merge(da_all_m,da_beta_5y,by=c("ym","SecCode")) #### ym_index <- sort(unique(da_m$ym)...
/double_sort_beta_controlled_5y.R
no_license
jaynewton/paper_5
R
false
false
3,573
r
################################# #### Double Sort load("F:/我的论文/第五篇/RData/da_all_m.RData") #load("F:/我的论文/第五篇/RData/da_beta_5y.RData") load("F:/我的论文/第五篇/主代码/beta anomaly/monthly data in five years/RData/da_beta_5y.RData") da_m <- merge(da_all_m,da_beta_5y,by=c("ym","SecCode")) #### ym_index <- sort(unique(da_m$ym)...
#!/usr/bin/env Rscript # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib Authors. # # 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://www.apache.org/licenses/LICENSE-2.0 # #...
/lib/node_modules/@stdlib/stats/ttest/test/fixtures/r/runner.R
permissive
doc22940/stdlib
R
false
false
5,267
r
#!/usr/bin/env Rscript # # @license Apache-2.0 # # Copyright (c) 2018 The Stdlib Authors. # # 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://www.apache.org/licenses/LICENSE-2.0 # #...
#' Cleans source data from NOAA #' #' \code{eq_clean_data} cleans date, latitude and longitude, and location name #' from the source NOAA data #' #' @param data A data frame with raw data obtained from NOAA website #' #' @return A data frame with cleaned date, latitude, longitude and location #' columns #' #' @details...
/R/data_prep.R
permissive
JimMeister/capstoneJH
R
false
false
2,376
r
#' Cleans source data from NOAA #' #' \code{eq_clean_data} cleans date, latitude and longitude, and location name #' from the source NOAA data #' #' @param data A data frame with raw data obtained from NOAA website #' #' @return A data frame with cleaned date, latitude, longitude and location #' columns #' #' @details...
library(httptest) library(here) # First evaluate the API KEY if available api_key <- Sys.getenv("NASSQS_TOKEN") api_file <- here::here("tests/testthat/api-key.txt") if(nchar(Sys.getenv("NASSQS_TOKEN") ) != 36 & file.exists(api_file)) { Sys.setenv(NASSQS_TOKEN = readLines(api_file)) } # Parameters params <- list( ...
/tests/testthat/setup.R
permissive
ropensci/rnassqs
R
false
false
1,823
r
library(httptest) library(here) # First evaluate the API KEY if available api_key <- Sys.getenv("NASSQS_TOKEN") api_file <- here::here("tests/testthat/api-key.txt") if(nchar(Sys.getenv("NASSQS_TOKEN") ) != 36 & file.exists(api_file)) { Sys.setenv(NASSQS_TOKEN = readLines(api_file)) } # Parameters params <- list( ...
train <- function(dat_train, label_train, par=NULL){ #dat_train is a dataframe which the first 512 columns are the rgb features extracted by ourselves, the rest 5000 columns are the SIFT features #label_train must be 0 and 1 in numeric type (not character or factor!!!) #dat_train1= dat_train[,1:512] #dat_train...
/train 2.R
no_license
panyijia1269/spr2017-proj3-group-14-master
R
false
false
5,080
r
train <- function(dat_train, label_train, par=NULL){ #dat_train is a dataframe which the first 512 columns are the rgb features extracted by ourselves, the rest 5000 columns are the SIFT features #label_train must be 0 and 1 in numeric type (not character or factor!!!) #dat_train1= dat_train[,1:512] #dat_train...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/format_CHO.R \name{create_capture_CHO} \alias{create_capture_CHO} \title{Create capture data table for Choupal, Portugal.} \usage{ create_capture_CHO(data) } \arguments{ \item{data}{Data frame. Primary data from Choupal.} } \value{ A data fra...
/man/create_capture_CHO.Rd
no_license
SPI-Birds/pipelines
R
false
true
420
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/format_CHO.R \name{create_capture_CHO} \alias{create_capture_CHO} \title{Create capture data table for Choupal, Portugal.} \usage{ create_capture_CHO(data) } \arguments{ \item{data}{Data frame. Primary data from Choupal.} } \value{ A data fra...
source("../Calculations/TwolociA4/R/hap.R") source("../Calculations/TwolociX4/R/female_hap.R") source("../Calculations/TwolociX4/R/male_hap.R") r <- seq(0, 0.5, len=251) #k <- c(0:19, 500) k <- c(0:6, 500) hapA <- array(dim=c(length(r), 3, length(k))) hapXm <- hapXf <- array(dim=c(length(r), 4, length(k))) dimnames(ha...
/R/happrob_fig.R
permissive
kbroman/preCCProbPaper
R
false
false
2,681
r
source("../Calculations/TwolociA4/R/hap.R") source("../Calculations/TwolociX4/R/female_hap.R") source("../Calculations/TwolociX4/R/male_hap.R") r <- seq(0, 0.5, len=251) #k <- c(0:19, 500) k <- c(0:6, 500) hapA <- array(dim=c(length(r), 3, length(k))) hapXm <- hapXf <- array(dim=c(length(r), 4, length(k))) dimnames(ha...
# Process nofib data #library(dplyr) #library(rlang) gm_mean = function(x, na.rm=TRUE){ exp(sum(log(x[x > 0]), na.rm=na.rm) / length(x)) } resultPath <- "ben_1/" compiler <- "allCalls" #get list of files files <- list.files(resultPath, pattern="*.csv", all.files=FALSE, full.names=FALSE, ignore....
/libs/xeno/xeno_eval.R
permissive
AndreasPK/bench_hc_libs
R
false
false
2,428
r
# Process nofib data #library(dplyr) #library(rlang) gm_mean = function(x, na.rm=TRUE){ exp(sum(log(x[x > 0]), na.rm=na.rm) / length(x)) } resultPath <- "ben_1/" compiler <- "allCalls" #get list of files files <- list.files(resultPath, pattern="*.csv", all.files=FALSE, full.names=FALSE, ignore....
load("Y:/Offshore/Assessment/Data/Survey_data/2019/Survey_summary_output/Survey_all_results.RData") Ban <- all.surv.dat[all.surv.dat$bank %in% c("Ban", "BanIce"),] Ban <- arrange(Ban, year, cruise, date, tow) write.csv(Ban, "Y:/Offshore/Assessment/2022/Supporting_tasks/Banquereau_survey_data.csv")
/2022/banquereau_data_extraction.R
no_license
Mar-scal/Supporting_task_code
R
false
false
302
r
load("Y:/Offshore/Assessment/Data/Survey_data/2019/Survey_summary_output/Survey_all_results.RData") Ban <- all.surv.dat[all.surv.dat$bank %in% c("Ban", "BanIce"),] Ban <- arrange(Ban, year, cruise, date, tow) write.csv(Ban, "Y:/Offshore/Assessment/2022/Supporting_tasks/Banquereau_survey_data.csv")
library(dplyr) library(ggplot2) batting <- read.csv('Batting.csv') print(head(batting)) batting$BA <- batting$H/batting$AB batting$OBP <- (batting$H + batting$BB + batting$HBP)/(batting$AB + batting$BB + batting$HBP + batting$SF) batting$X1B <- batting$H - batting$X2B - batting$X3B - batting$HR batting$SLG <- ((1 * b...
/moneyBall.R
no_license
G-M-C/MoneyBall
R
false
false
1,240
r
library(dplyr) library(ggplot2) batting <- read.csv('Batting.csv') print(head(batting)) batting$BA <- batting$H/batting$AB batting$OBP <- (batting$H + batting$BB + batting$HBP)/(batting$AB + batting$BB + batting$HBP + batting$SF) batting$X1B <- batting$H - batting$X2B - batting$X3B - batting$HR batting$SLG <- ((1 * b...
setwd("/Users/jiemingchen/Documents/varimed/pcawg/dz_risk_var_varimed_staging_LR_final_ext_sex_eth_spop_zm") ## my own library source("/Users/jiemingchen/R_codes/jmRlib.R") library(ggplot2) library(RColorBrewer) library(plyr) library(dplyr) library(reshape2) library(magrittr) ## input combined risks for 1KGp3 ## note...
/varimed_1KG_TCGA_plots.R
no_license
cjieming/R_codes
R
false
false
37,177
r
setwd("/Users/jiemingchen/Documents/varimed/pcawg/dz_risk_var_varimed_staging_LR_final_ext_sex_eth_spop_zm") ## my own library source("/Users/jiemingchen/R_codes/jmRlib.R") library(ggplot2) library(RColorBrewer) library(plyr) library(dplyr) library(reshape2) library(magrittr) ## input combined risks for 1KGp3 ## note...
library(shiny) fluidPage( # Application title titlePanel("Biggie vs. 2Pac: Word Cloud"), sidebarLayout( # Sidebar with a slider and selection inputs sidebarPanel( selectInput("selection", "Choose a Rapper:", choices = rappers), actionButton("update", "Change"), hr()...
/shiny_twitter_wc/ui.R
no_license
anahitabahri/Rap-Twitter-Analysis
R
false
false
647
r
library(shiny) fluidPage( # Application title titlePanel("Biggie vs. 2Pac: Word Cloud"), sidebarLayout( # Sidebar with a slider and selection inputs sidebarPanel( selectInput("selection", "Choose a Rapper:", choices = rappers), actionButton("update", "Change"), hr()...
getmBIC <- function(K,lv,mu,CGHo){ M = length(names(mu)) N = M*mu[[1]]$end[dim(mu[[1]])[1]] Ent = sum(unlist(lapply(mu,FUN = function(x){log(x$end-x$begin+1)}))) if (CGHo["calling"]==FALSE){ mBIC = ((N-K+1)/2)*(lv*(2/N)+1+log(2*pi))-0.5*Ent -(K-M)*log(N)+lgamma((N-K+1)/2)-((N-K+1)/2)*log(N) } else ...
/R/getmBIC.R
no_license
cran/cghseg
R
false
false
609
r
getmBIC <- function(K,lv,mu,CGHo){ M = length(names(mu)) N = M*mu[[1]]$end[dim(mu[[1]])[1]] Ent = sum(unlist(lapply(mu,FUN = function(x){log(x$end-x$begin+1)}))) if (CGHo["calling"]==FALSE){ mBIC = ((N-K+1)/2)*(lv*(2/N)+1+log(2*pi))-0.5*Ent -(K-M)*log(N)+lgamma((N-K+1)/2)-((N-K+1)/2)*log(N) } else ...
library(ggplot2) library(grid) library(yaml) library(ggthemes) library(scales) args = commandArgs(trailingOnly = T) options(bitmapType='cairo') # Rscript boxplot_based_on_one_column_with_header.R <input_file> <columd id to use for group plot> <column id to use for boxplot> <output file> <pseudo chip> <title> <label...
/scripts/boxplot_chip_no_negative.R
no_license
satyanarayan-rao/tf_nucleosome_dynamics
R
false
false
9,169
r
library(ggplot2) library(grid) library(yaml) library(ggthemes) library(scales) args = commandArgs(trailingOnly = T) options(bitmapType='cairo') # Rscript boxplot_based_on_one_column_with_header.R <input_file> <columd id to use for group plot> <column id to use for boxplot> <output file> <pseudo chip> <title> <label...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/labels_warning.R \name{labels_warning} \alias{labels_warning} \title{Get description label for a protein architecture identifier} \usage{ labels_warning(arch_ids) } \arguments{ \item{arch_ids}{A string with the architecture electronic identif...
/man/labels_warning.Rd
permissive
NCBI-Hackathons/GeneHummus
R
false
true
441
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/labels_warning.R \name{labels_warning} \alias{labels_warning} \title{Get description label for a protein architecture identifier} \usage{ labels_warning(arch_ids) } \arguments{ \item{arch_ids}{A string with the architecture electronic identif...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ns.R \name{step_ns} \alias{step_ns} \alias{tidy.step_ns} \title{Nature Spline Basis Functions} \usage{ step_ns( recipe, ..., role = "predictor", trained = FALSE, objects = NULL, deg_free = 2, options = list(), skip = FALSE, ...
/man/step_ns.Rd
no_license
jyuu/recipes
R
false
true
3,330
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ns.R \name{step_ns} \alias{step_ns} \alias{tidy.step_ns} \title{Nature Spline Basis Functions} \usage{ step_ns( recipe, ..., role = "predictor", trained = FALSE, objects = NULL, deg_free = 2, options = list(), skip = FALSE, ...
#' @export #' @importFrom httr GET ApiAppSettingsGet <- function() { base_url <- "https://api.lykkex.com/api/" get_url <- paste0(base_url, "AppSettings", "?") res <- GET(get_url) return(content(res)) }
/R/ApiAppSettingsGet.r
no_license
voigtstefan/lykke
R
false
false
228
r
#' @export #' @importFrom httr GET ApiAppSettingsGet <- function() { base_url <- "https://api.lykkex.com/api/" get_url <- paste0(base_url, "AppSettings", "?") res <- GET(get_url) return(content(res)) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcmc.R \name{clean_state} \alias{clean_state} \title{Remove the derived quantities from state} \usage{ clean_state(state) } \arguments{ \item{state}{A moprobit state container.} } \value{ The state container with derived quantities removed. }...
/man/clean_state.Rd
no_license
mculbert/moprobit
R
false
true
434
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcmc.R \name{clean_state} \alias{clean_state} \title{Remove the derived quantities from state} \usage{ clean_state(state) } \arguments{ \item{state}{A moprobit state container.} } \value{ The state container with derived quantities removed. }...
library(cellWise) ### Name: estLocScale ### Title: Estimate robust location and scale ### Aliases: estLocScale ### ** Examples library(MASS) set.seed(12345) n = 100; d = 10 X = mvrnorm(n, rep(0, 10), diag(10)) locScale = estLocScale(X)
/data/genthat_extracted_code/cellWise/examples/estLocScale.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
245
r
library(cellWise) ### Name: estLocScale ### Title: Estimate robust location and scale ### Aliases: estLocScale ### ** Examples library(MASS) set.seed(12345) n = 100; d = 10 X = mvrnorm(n, rep(0, 10), diag(10)) locScale = estLocScale(X)
\name{ApplyNaiveBayesClassifier} \alias{ApplyNaiveBayesClassifier} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ApplyNaiveBayesClassifier } \description{ Anwendung eines Naiven Bayes Klassifiers: } \usage{ ApplyNaiveBayesClassifiern(Data,UniqueClasses,MeanPerClass,StdPerClass,Weight...
/DbtTools/classifiers/man/ApplyNaiveBayesClassifier.Rd
no_license
markus-flicke/KD_Projekt_1
R
false
false
1,023
rd
\name{ApplyNaiveBayesClassifier} \alias{ApplyNaiveBayesClassifier} %- Also NEED an '\alias' for EACH other topic documented here. \title{ ApplyNaiveBayesClassifier } \description{ Anwendung eines Naiven Bayes Klassifiers: } \usage{ ApplyNaiveBayesClassifiern(Data,UniqueClasses,MeanPerClass,StdPerClass,Weight...
####################################################################3 # Gather results and plot model diagnostics library(brms) library(tidyverse) library(performance, lib.loc = "/projappl/project_2003061/Rpackages/") library(bayesplot) library(tidybayes, lib.loc = "/projappl/project_2003061/Rpackages/") library(post...
/scripts/08_gather_modelling_results.R
no_license
poniitty/ITV_grids
R
false
false
2,634
r
####################################################################3 # Gather results and plot model diagnostics library(brms) library(tidyverse) library(performance, lib.loc = "/projappl/project_2003061/Rpackages/") library(bayesplot) library(tidybayes, lib.loc = "/projappl/project_2003061/Rpackages/") library(post...
op <- function(Printattava_teksti){ full.fpath <- tryCatch(normalizePath(parent.frame(2)$ofile), # works when using source error=function(e) # works when using R CMD normalizePath(unlist(strsplit(commandArgs()[grep('^--file=', commandArgs())], '='))[2])) #print(paste0(Pr...
/dev_tools/get_current_file_location.R
no_license
Laurigit/mstat
R
false
false
384
r
op <- function(Printattava_teksti){ full.fpath <- tryCatch(normalizePath(parent.frame(2)$ofile), # works when using source error=function(e) # works when using R CMD normalizePath(unlist(strsplit(commandArgs()[grep('^--file=', commandArgs())], '='))[2])) #print(paste0(Pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{calc_lda_r2} \alias{calc_lda_r2} \title{Calculate R-squared for a tidylda Model} \usage{ calc_lda_r2(dtm, theta, phi, batch_size, ...) } \arguments{ \item{dtm}{must be of class dgCMatrix} \item{theta}{a theta matrix} \item{phi...
/man/calc_lda_r2.Rd
permissive
knapply/tidylda
R
false
true
546
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{calc_lda_r2} \alias{calc_lda_r2} \title{Calculate R-squared for a tidylda Model} \usage{ calc_lda_r2(dtm, theta, phi, batch_size, ...) } \arguments{ \item{dtm}{must be of class dgCMatrix} \item{theta}{a theta matrix} \item{phi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FilterDFNA.R \name{FilterDFNA} \alias{FilterDFNA} \title{FilterDFNA -- a fast function to check and filter cases based on bad behavioral data. Used when fastSwE is set to true} \usage{ FilterDFNA(external_df, notation) } \arguments{ \item{ext...
/man/FilterDFNA.Rd
no_license
tjhendrickson/MarginalModelCIFTI
R
false
true
739
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FilterDFNA.R \name{FilterDFNA} \alias{FilterDFNA} \title{FilterDFNA -- a fast function to check and filter cases based on bad behavioral data. Used when fastSwE is set to true} \usage{ FilterDFNA(external_df, notation) } \arguments{ \item{ext...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 7568 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 7568 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_ntrivil_1344/query09_ntrivil_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
711
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 7568 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 7568 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
initialize <- function(filepath) { #if(!("fields" %in% rownames(installed.packages()))) #{ # require("fields") #} library("fields") mydata1 <- read.csv(filepath) menu(mydata1) } #--------(A)----Displaying the Lat and Long Co-ordinates------- menu <- function(mydata1) { lat <- mydata1$lat lon <- myda...
/VariousAnalyticalDistancesofDataScience.R
no_license
Vipulvaibhav/CodeSamples
R
false
false
7,161
r
initialize <- function(filepath) { #if(!("fields" %in% rownames(installed.packages()))) #{ # require("fields") #} library("fields") mydata1 <- read.csv(filepath) menu(mydata1) } #--------(A)----Displaying the Lat and Long Co-ordinates------- menu <- function(mydata1) { lat <- mydata1$lat lon <- myda...
# tocID <- "scripts/ABC-dbUtilities.R" # # Purpose: Database utilities for ABC learning units. # # Version 2.2 # # Date: 2017-11 - 2020-10 # Author: Boris Steipe (boris.steipe@utoronto.ca) # # Versions: # 2.2 Bugfixes # 2.1 Add JSON export functions # 2.0 Test all JSON import an...
/scripts/ABC-dbUtilities.R
no_license
liushangjian/ABC-units
R
false
false
22,881
r
# tocID <- "scripts/ABC-dbUtilities.R" # # Purpose: Database utilities for ABC learning units. # # Version 2.2 # # Date: 2017-11 - 2020-10 # Author: Boris Steipe (boris.steipe@utoronto.ca) # # Versions: # 2.2 Bugfixes # 2.1 Add JSON export functions # 2.0 Test all JSON import an...
concrete <- read.csv(file.choose()) str(concrete) hist(concrete$strength, probability = T, breaks = 30) lines(density(concrete$strength)) hist(concrete$age, probability = T, breaks = 30) lines(density(concrete$age)) hist(concrete$fineagg, probability = T, breaks = 30) lines(density(concrete$fineagg)) hi...
/Concrete_NN_R.R
no_license
sindhu19460/Neural_Networks
R
false
false
2,140
r
concrete <- read.csv(file.choose()) str(concrete) hist(concrete$strength, probability = T, breaks = 30) lines(density(concrete$strength)) hist(concrete$age, probability = T, breaks = 30) lines(density(concrete$age)) hist(concrete$fineagg, probability = T, breaks = 30) lines(density(concrete$fineagg)) hi...
#TeamFI - we use an Elastic Net, Lasso, and XGB ensemble model to predict total international viewership. library(randomForest) library(mlbench) library(caret) library(e1071) library(MASS) library(ggparallel) library(rpart) library(rpart.plot) library(RColorBrewer) library(MatchIt) library(splitstackshape) library(gbm...
/nba_hackathon_TeamFI.R
no_license
juandixonformvp/nba_hackathon
R
false
false
15,040
r
#TeamFI - we use an Elastic Net, Lasso, and XGB ensemble model to predict total international viewership. library(randomForest) library(mlbench) library(caret) library(e1071) library(MASS) library(ggparallel) library(rpart) library(rpart.plot) library(RColorBrewer) library(MatchIt) library(splitstackshape) library(gbm...
#Loading the libraries in order to visualize the data library(ggplot2) library(ggmap) US=map_data("state") #Calculating the area of the US States and displaying it through the map with the help of a particular color code Area=ggplot(merged_data, aes(map_id=stateName)) + geom_map(map=US, aes(fill=area),color="black")...
/Plotting.R
no_license
fall2018-wallace/hw7_ist687_drsharma
R
false
false
732
r
#Loading the libraries in order to visualize the data library(ggplot2) library(ggmap) US=map_data("state") #Calculating the area of the US States and displaying it through the map with the help of a particular color code Area=ggplot(merged_data, aes(map_id=stateName)) + geom_map(map=US, aes(fill=area),color="black")...
#' Elastic net imputation #' #' `glmnet` is used to impute missing values. #' For more details, see [glmnet][glmnet::glmnet()] #' #' @inheritParams impute_soft #' #' @param fit a list of lists of strings that contain formulas #' from previously fitted imputation models. This input variable #' is created using `da...
/R/impute_net.R
permissive
bcjaeger/ipa
R
false
false
11,372
r
#' Elastic net imputation #' #' `glmnet` is used to impute missing values. #' For more details, see [glmnet][glmnet::glmnet()] #' #' @inheritParams impute_soft #' #' @param fit a list of lists of strings that contain formulas #' from previously fitted imputation models. This input variable #' is created using `da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cropImage.R \name{cropImage} \alias{cropImage} \title{crop a sub-image via a mask} \usage{ cropImage(image, labelImage, label = 1) } \arguments{ \item{image}{antsImage to crop} \item{labelImage}{antsImage with label values. If not supplied, ...
/man/cropImage.Rd
permissive
alainlompo/ANTsR
R
false
true
706
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cropImage.R \name{cropImage} \alias{cropImage} \title{crop a sub-image via a mask} \usage{ cropImage(image, labelImage, label = 1) } \arguments{ \item{image}{antsImage to crop} \item{labelImage}{antsImage with label values. If not supplied, ...
#' Title #' #' When you are looking to filter out items that appear in another dataframe, #' negating an %in% filter returns all records if you mistakenly refer to a column that #' does not exist in the comparison dataframe. This function protects against code #' running smoothly and the risk of missing the mistake by...
/R/filter_not_in.R
permissive
patdkeller/instR
R
false
false
1,694
r
#' Title #' #' When you are looking to filter out items that appear in another dataframe, #' negating an %in% filter returns all records if you mistakenly refer to a column that #' does not exist in the comparison dataframe. This function protects against code #' running smoothly and the risk of missing the mistake by...
## Generating Plot 3 setwd(choose.dir()) datafile <- file("household_power_consumption.txt") HPC <- read.table(text = grep("^[1,2]/2/2007", readLines(datafile), value = TRUE),col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_meteri...
/project1-plot3.R
no_license
MonHab/ExData_Plotting1
R
false
false
836
r
## Generating Plot 3 setwd(choose.dir()) datafile <- file("household_power_consumption.txt") HPC <- read.table(text = grep("^[1,2]/2/2007", readLines(datafile), value = TRUE),col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_meteri...
V_W1 <- read.table("V_W1.txt") xrange <- range(0,500) yrange <- range(0.12,0.4) plot(xrange,yrange,type="n",ann=FALSE) lines(V_W1, type="l", col="red") V_W1b <-read.table("../2/V_W1.txt") lines(V_W1b, type="l", col="blue") V_W1c <-read.table("../3/V_W1.txt") lines(V_W1c, type="l", col="black") V_W1d <-read.tab...
/dados e graficos/taxa0.1/300 clientes, 500 rodadas/gerar graficos(V_W1) .R
no_license
rocanaan/proj-aguiar-2011
R
false
false
731
r
V_W1 <- read.table("V_W1.txt") xrange <- range(0,500) yrange <- range(0.12,0.4) plot(xrange,yrange,type="n",ann=FALSE) lines(V_W1, type="l", col="red") V_W1b <-read.table("../2/V_W1.txt") lines(V_W1b, type="l", col="blue") V_W1c <-read.table("../3/V_W1.txt") lines(V_W1c, type="l", col="black") V_W1d <-read.tab...
#!/usr/local/bin/Rscript system("clear"); cat("Please wait! The process is ongoing...\n"); invisible(Sys.setlocale("LC_ALL", 'en_US.UTF-8')) options(warn=-1) pck_ <- c("rvest","stringr","data.table","corpus","qdapRegex","countrycode","priceR") pck <- pck_[!(pck_ %in% installed.packages()[,"Package"])] if(length(pck...
/cost.R
no_license
egeor90/cost_of_living
R
false
false
7,697
r
#!/usr/local/bin/Rscript system("clear"); cat("Please wait! The process is ongoing...\n"); invisible(Sys.setlocale("LC_ALL", 'en_US.UTF-8')) options(warn=-1) pck_ <- c("rvest","stringr","data.table","corpus","qdapRegex","countrycode","priceR") pck <- pck_[!(pck_ %in% installed.packages()[,"Package"])] if(length(pck...
#' @importFrom readr read_csv #' @import dplyr #' @export loadTennessee <- function() { countyNameFIPSMapping <- getCountyNameFIPSMapping('47') %>% mutate(CountyName=toupper(CountyName)) df <- read_csv("data-raw/tn/RptSixMonthSumJune2016.csv", col_names=paste0('X', 1:7), col_types=paste0(rep('c', 7), collapse...
/r-packages/uselections/R/tn.R
no_license
jilmun/voter-fraud
R
false
false
796
r
#' @importFrom readr read_csv #' @import dplyr #' @export loadTennessee <- function() { countyNameFIPSMapping <- getCountyNameFIPSMapping('47') %>% mutate(CountyName=toupper(CountyName)) df <- read_csv("data-raw/tn/RptSixMonthSumJune2016.csv", col_names=paste0('X', 1:7), col_types=paste0(rep('c', 7), collapse...
#Load required libraries library(ggplot2) library(e1071) library(randomForest) library(MASS) library(caret) library(dplyr) library(class) library(FNN) library(tree) library(gbm) library(knitr) library(tidyr) #Helper functions #KNN classification make_knn_pred = function(k = 1, train_X, test_X, train_Y, test_Y) { pre...
/FinalHelper.R
no_license
rwest-ncsu/Wine-Quality-Project
R
false
false
714
r
#Load required libraries library(ggplot2) library(e1071) library(randomForest) library(MASS) library(caret) library(dplyr) library(class) library(FNN) library(tree) library(gbm) library(knitr) library(tidyr) #Helper functions #KNN classification make_knn_pred = function(k = 1, train_X, test_X, train_Y, test_Y) { pre...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/AddEdge.R \name{updateImagesOnEdgeAdded} \alias{updateImagesOnEdgeAdded} \title{Update images after adding an edge} \usage{ updateImagesOnEdgeAdded(cn, net, dropImages, from, to) } \arguments{ \item{cn}{An open RODBC connection.} \it...
/man/updateImagesOnEdgeAdded.Rd
permissive
mickash/Adaptive-Bayesian-Networks
R
false
false
667
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/AddEdge.R \name{updateImagesOnEdgeAdded} \alias{updateImagesOnEdgeAdded} \title{Update images after adding an edge} \usage{ updateImagesOnEdgeAdded(cn, net, dropImages, from, to) } \arguments{ \item{cn}{An open RODBC connection.} \it...