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
library(dplyr) library(stats) library(sqldf) library(ggplot2) library(reshape2) library(gridExtra) df<-read.csv("C:/Users/Mooda Meghana/Downloads/adult.csv") summary(df) df$income<-ifelse(df$income=='>50K',1,0) df$workclass<-ifelse(df$workclass=='?','Unknown',as.character(df$workclass)) Work_class<-sqldf('SELECT workcl...
/predicting income/untitled.R
no_license
moodameghana/Predicting_Income
R
false
false
1,971
r
library(dplyr) library(stats) library(sqldf) library(ggplot2) library(reshape2) library(gridExtra) df<-read.csv("C:/Users/Mooda Meghana/Downloads/adult.csv") summary(df) df$income<-ifelse(df$income=='>50K',1,0) df$workclass<-ifelse(df$workclass=='?','Unknown',as.character(df$workclass)) Work_class<-sqldf('SELECT workcl...
library(ggplot2) library(zoo) library(scales) rm(list = ls()) load("DataSet.Rda") RawData$Date <- as.Date(RawData$Date) LastDate <- max(RawData$Date, na.rm=TRUE) Last6mRaw <- RawData[RawData$Date > as.Date(as.yearmon(LastDate) - 0.5, frac = 1) & (!is.na(RawData$CCYExpos...
/PlotHiRange.R
no_license
mcastagnaa/CCYexp
R
false
false
1,700
r
library(ggplot2) library(zoo) library(scales) rm(list = ls()) load("DataSet.Rda") RawData$Date <- as.Date(RawData$Date) LastDate <- max(RawData$Date, na.rm=TRUE) Last6mRaw <- RawData[RawData$Date > as.Date(as.yearmon(LastDate) - 0.5, frac = 1) & (!is.na(RawData$CCYExpos...
library(IONiseR) library(magrittr) library(dplyr) library(ShortRead) library(rlist) library(mclust) library(factoextra)
/backend/src/main/resources/r_scripts/loadLibraries.R
permissive
ambro01/NanoporeQC
R
false
false
119
r
library(IONiseR) library(magrittr) library(dplyr) library(ShortRead) library(rlist) library(mclust) library(factoextra)
#' @rdname proportion.test.onesample.approximate.simple proportion.test.onesample.approximate <- function( x ,success.value = 1 #Can be anything that compares with x with == ,null.hypothesis.proportion = .5 ,alternative = c("two.sided", "less", "greater") ,conf.level = .95 ,continuity.correction = T ) { ...
/R/proportion.test.onesample.approximate.R
permissive
burrm/lolcat
R
false
false
732
r
#' @rdname proportion.test.onesample.approximate.simple proportion.test.onesample.approximate <- function( x ,success.value = 1 #Can be anything that compares with x with == ,null.hypothesis.proportion = .5 ,alternative = c("two.sided", "less", "greater") ,conf.level = .95 ,continuity.correction = T ) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pecan-functions.R \name{arrhenius.scaling} \alias{arrhenius.scaling} \title{Scale temperature dependent trait from measurement temperature to reference temperature} \usage{ arrhenius.scaling(observed.value, old.temp, new.temp = 25) } \argumen...
/man/arrhenius.scaling.Rd
permissive
ashiklom/fortebaseline
R
false
true
730
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pecan-functions.R \name{arrhenius.scaling} \alias{arrhenius.scaling} \title{Scale temperature dependent trait from measurement temperature to reference temperature} \usage{ arrhenius.scaling(observed.value, old.temp, new.temp = 25) } \argumen...
require(POT) # perform stastical analyses of peaks over a threshold (POT) weather.df <- read.csv("/home/christopher/git/AnalysisOfSpatioTemporalData/data/data/environment/weather-dwd-2667/weather-dwd-10091.csv") colnames(weather.df) <- c("datum", "qual", "bedeckung", "relfeuchte", "dampfdruck", "ltemp", "ldruck", "wg...
/Wather_Station_Analysis/windmax_10091.R
no_license
ChristopherStephan/AnalysisOfSpatioTemporalData
R
false
false
3,676
r
require(POT) # perform stastical analyses of peaks over a threshold (POT) weather.df <- read.csv("/home/christopher/git/AnalysisOfSpatioTemporalData/data/data/environment/weather-dwd-2667/weather-dwd-10091.csv") colnames(weather.df) <- c("datum", "qual", "bedeckung", "relfeuchte", "dampfdruck", "ltemp", "ldruck", "wg...
write.dir = "./" user.wd <- "../" #"~/work/ICES/MGWG/SS_vs_SCAA/R/ccgomyt/" user.od <- write.dir model.id <- "Pollock" ices.id = "POLLOCK_" Fbar.ages = 5:7 library(TMB) library(wham) library(dplyr) library(tidyr) source("../../helper_code/convert_ICES_to_ASAP.r") source("../../helper_code/wham_tab1.r") source("../../h...
/state-space/Pollock/WHAM/fit_wham_models.r
no_license
ices-eg/wg_MGWG
R
false
false
2,089
r
write.dir = "./" user.wd <- "../" #"~/work/ICES/MGWG/SS_vs_SCAA/R/ccgomyt/" user.od <- write.dir model.id <- "Pollock" ices.id = "POLLOCK_" Fbar.ages = 5:7 library(TMB) library(wham) library(dplyr) library(tidyr) source("../../helper_code/convert_ICES_to_ASAP.r") source("../../helper_code/wham_tab1.r") source("../../h...
olx_data <- read.csv(file = "Detail_info_Add.csv", header = TRUE, sep = ",") new_mobile_data <- read.csv(file = "new_mobile_phones.csv", header = TRUE, sep = ",") for (i in 1: length(new_mobile_data$Name)) { patterns <- strsplit(as.character(new_mobile_data$Name[i]), " ")[[1]] for (j in 1: length(patterns)) { ...
/Assignment # 2/map.R
no_license
Waleedhafiz/Project-and-All-Assignments
R
false
false
1,239
r
olx_data <- read.csv(file = "Detail_info_Add.csv", header = TRUE, sep = ",") new_mobile_data <- read.csv(file = "new_mobile_phones.csv", header = TRUE, sep = ",") for (i in 1: length(new_mobile_data$Name)) { patterns <- strsplit(as.character(new_mobile_data$Name[i]), " ")[[1]] for (j in 1: length(patterns)) { ...
lyon_validation_t1_rf <- read.table('Lyon_validations_cal_meteo_t1.csv', sep=';', header=TRUE) lyon_validation_t1_rf$JVScolaire <- factor(lyon_validation_t1_rf$JVScolaire) lyon_validation_t1_rf$JFerie <- factor(lyon_validation_t1_rf$JFerie) lyon_validation_t1_rf$JGreve <- factor(lyon_validation_t1_rf$JGreve) lyon_val...
/R/RandomForest.R
no_license
ndjido/Data-Analysis-code-example
R
false
false
1,953
r
lyon_validation_t1_rf <- read.table('Lyon_validations_cal_meteo_t1.csv', sep=';', header=TRUE) lyon_validation_t1_rf$JVScolaire <- factor(lyon_validation_t1_rf$JVScolaire) lyon_validation_t1_rf$JFerie <- factor(lyon_validation_t1_rf$JFerie) lyon_validation_t1_rf$JGreve <- factor(lyon_validation_t1_rf$JGreve) lyon_val...
library(datasets) data("iris") str(iris) mean(iris[iris$Species == 'virginica',]$Sepal.Length) with(iris, mean(Sepal.Length[Species == 'virginica'])) data("mtcars") str(mtcars) sapply(split(mtcars$mpg, mtcars$cyl), mean) with(mtcars, tapply(mpg, cyl, mean)) tapply(mtcars$mpg, mtcars$cyl, mean) abs(mean(mtcars[mtcars$...
/rprog-032/quiz3.R
no_license
wangjiezhe/cousera
R
false
false
431
r
library(datasets) data("iris") str(iris) mean(iris[iris$Species == 'virginica',]$Sepal.Length) with(iris, mean(Sepal.Length[Species == 'virginica'])) data("mtcars") str(mtcars) sapply(split(mtcars$mpg, mtcars$cyl), mean) with(mtcars, tapply(mpg, cyl, mean)) tapply(mtcars$mpg, mtcars$cyl, mean) abs(mean(mtcars[mtcars$...
#' \code{Ri2b2casecontrol} package #' #' i2b2 R package to run case-control analysis #' #' See the README on #' \href{https://gitlab.partners.org/vc070/Ri2b2casecontrol}{GitHub} #' #' @docType package #' @name Ri2b2casecontrol #' @importFrom dplyr %>% NULL ## quiets concerns of R CMD check re: the .'s that appear in p...
/R/Ri2b2casecontrol.R
no_license
vcastro/Ri2b2casecontrol
R
false
false
741
r
#' \code{Ri2b2casecontrol} package #' #' i2b2 R package to run case-control analysis #' #' See the README on #' \href{https://gitlab.partners.org/vc070/Ri2b2casecontrol}{GitHub} #' #' @docType package #' @name Ri2b2casecontrol #' @importFrom dplyr %>% NULL ## quiets concerns of R CMD check re: the .'s that appear in p...
# Generated by Target Markdown in targets 0.4.2.9000: do not edit by hand library(targets) lapply( list.files( "_targets_r/globals", pattern = "\\.R$", full.names = TRUE ), source ) lapply( list.files( "_targets_r/targets", pattern = "\\.R$", full.names = TRUE ), function(x) source(x...
/LDM/_targets.R
no_license
brownag/sANDREWbox
R
false
false
330
r
# Generated by Target Markdown in targets 0.4.2.9000: do not edit by hand library(targets) lapply( list.files( "_targets_r/globals", pattern = "\\.R$", full.names = TRUE ), source ) lapply( list.files( "_targets_r/targets", pattern = "\\.R$", full.names = TRUE ), function(x) source(x...
fuelOctaneRatings <- c( 88.5, 94.7, 84.3, 90.1, 89.0, 89.8, 91.6, 90.3, 90.0, 91.5, 89.9, 98.8, 88.3, 90.4, 91.2, 90.6, 92.2, 87.7, 91.1, 86.7, 93.4, 96.1, 89.6, 90.4, 91.6, 90.7, 88.6, 88.3, 94.2, 85.3, 90.1, 89.3, 91.1, 92.2, 83.4, 91.0, 88.2, 88.5, 93.3, 87.4, 91.1, 90.5, 100.3, 87.6, 92.7, 87.9, 93.0, 94.4, ...
/Chapter 6/Exercise 6.30.r
no_license
kmahoski/Statistical-Data-Analysis-in-R
R
false
false
981
r
fuelOctaneRatings <- c( 88.5, 94.7, 84.3, 90.1, 89.0, 89.8, 91.6, 90.3, 90.0, 91.5, 89.9, 98.8, 88.3, 90.4, 91.2, 90.6, 92.2, 87.7, 91.1, 86.7, 93.4, 96.1, 89.6, 90.4, 91.6, 90.7, 88.6, 88.3, 94.2, 85.3, 90.1, 89.3, 91.1, 92.2, 83.4, 91.0, 88.2, 88.5, 93.3, 87.4, 91.1, 90.5, 100.3, 87.6, 92.7, 87.9, 93.0, 94.4, ...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 28078 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 28078 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#130.A#48.c#.w#9.s#50.asp/ctrl.e#1.a#3.E#130.A#48.c#.w#9.s#50.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
732
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 28078 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 28078 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
# Copyright {2015} Yuxiang Tan # # 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 # # Unless required by applicable law or agreed t...
/QueryFuse_v1/subtract_psl.R
permissive
yuxiangtan/QueryFuse
R
false
false
3,078
r
# Copyright {2015} Yuxiang Tan # # 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 # # Unless required by applicable law or agreed t...
\name{synPrintEntity} \alias{synPrintEntity} \docType{methods} \title{ synPrintEntity } \description{ Pretty prints an Entity. } \usage{ synPrintEntity(entity, ensure_ascii=TRUE) } \arguments{ \item{entity}{ The entity to be printed.\cr } \item{ensure_ascii}{ If TRUE, escapes all non-ASCII characters} } \examples{ \d...
/man/synPrintEntity.Rd
permissive
Sage-Bionetworks/synapser
R
false
false
359
rd
\name{synPrintEntity} \alias{synPrintEntity} \docType{methods} \title{ synPrintEntity } \description{ Pretty prints an Entity. } \usage{ synPrintEntity(entity, ensure_ascii=TRUE) } \arguments{ \item{entity}{ The entity to be printed.\cr } \item{ensure_ascii}{ If TRUE, escapes all non-ASCII characters} } \examples{ \d...
library(tidyverse) bookings <- read_csv("datasets/bookings.csv") properties <- read_csv("datasets/properties.csv") # Your turn 1 ---- # Create a new tibble `x` that # # - only contains the columns `room_nights` and `review_score`, and # - only contains the bookings with a price per night of less than 80. ...
/exercises/ex-tidyverse.R
no_license
stfnrpplngr/DataSciR20
R
false
false
3,969
r
library(tidyverse) bookings <- read_csv("datasets/bookings.csv") properties <- read_csv("datasets/properties.csv") # Your turn 1 ---- # Create a new tibble `x` that # # - only contains the columns `room_nights` and `review_score`, and # - only contains the bookings with a price per night of less than 80. ...
#' Process data for fitting distance sampling detection function #' #' Sets up dataframe and does some basic error checking. Adds needed fields to #' dataframe and to \code{meta.data}. #' #' The function does a number of error checking tasks, creating fields and #' adding to \code{meta.data} including: #' #' 1)...
/mrds/R/process.data.R
no_license
ingted/R-Examples
R
false
false
8,103
r
#' Process data for fitting distance sampling detection function #' #' Sets up dataframe and does some basic error checking. Adds needed fields to #' dataframe and to \code{meta.data}. #' #' The function does a number of error checking tasks, creating fields and #' adding to \code{meta.data} including: #' #' 1)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{print.sam} \alias{print.sam} \title{Print sam object} \usage{ \method{print}{sam}(x, ...) } \arguments{ \item{x}{the fitted object as returned from the \code{\link{sam.fit}} function} \item{...}{extra arguments} } \descriptio...
/stockassessment/man/print.sam.Rd
no_license
fishfollower/SAM
R
false
true
414
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{print.sam} \alias{print.sam} \title{Print sam object} \usage{ \method{print}{sam}(x, ...) } \arguments{ \item{x}{the fitted object as returned from the \code{\link{sam.fit}} function} \item{...}{extra arguments} } \descriptio...
#' Available models in autoML #' #' Returns a list of models to select from when using autoML #' #' @return List of models #' @export #' #' @examples #' availableLearners() #' @author #' Xander Horn availableLearners <- function(){ library(mlr) tempClassifTask <- generateTask(x = iris, y = "Spec...
/R/availableLearners.R
permissive
hansvomkreuz/autoML
R
false
false
943
r
#' Available models in autoML #' #' Returns a list of models to select from when using autoML #' #' @return List of models #' @export #' #' @examples #' availableLearners() #' @author #' Xander Horn availableLearners <- function(){ library(mlr) tempClassifTask <- generateTask(x = iris, y = "Spec...
#' --- #' title: HW 1 #' author: Aidan Dunleavy #' date: 01/20/2021 #' --- #' PROBLEM 1 data = read.csv("https://raw.githubusercontent.com/AidanDunleavy/Fall-2020-STAT-40001/master/paper.csv") data$Group <- ordered(data$Group, levels = c("4", "4.75", "5.5", "6")) names(data) <- c("time...
/main/works/hw1.R
no_license
AidanDunleavy/Spring2021-Kuhn
R
false
false
1,151
r
#' --- #' title: HW 1 #' author: Aidan Dunleavy #' date: 01/20/2021 #' --- #' PROBLEM 1 data = read.csv("https://raw.githubusercontent.com/AidanDunleavy/Fall-2020-STAT-40001/master/paper.csv") data$Group <- ordered(data$Group, levels = c("4", "4.75", "5.5", "6")) names(data) <- c("time...
library(tidyverse) library(here) ## Challlenge 1 species_df <- read_csv(here("data", "20191024_species.csv"), na = "") ### Set columns `species_id` and `taxa` lowercase species_df$species_id <- str_to_lower(species_df$species_id) species_df$taxa <- str_to_lower(species_df$taxa) # or using tidyverse functions (dply...
/src/20191024_challenges_commented_solution.R
permissive
Yasmine-Verzelen/coding-club
R
false
false
6,173
r
library(tidyverse) library(here) ## Challlenge 1 species_df <- read_csv(here("data", "20191024_species.csv"), na = "") ### Set columns `species_id` and `taxa` lowercase species_df$species_id <- str_to_lower(species_df$species_id) species_df$taxa <- str_to_lower(species_df$taxa) # or using tidyverse functions (dply...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ELMER.data.R \docType{data} \name{Human_genes__GRCh37_p13} \alias{Human_genes__GRCh37_p13} \title{A matrix containing ENSEMBL hg19 gene metadata accessed using biomart This data is used if ensembl cannot be reached} \format{A matrix with meta...
/man/Human_genes__GRCh37_p13.Rd
no_license
tiagochst/ELMER.data
R
false
true
528
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ELMER.data.R \docType{data} \name{Human_genes__GRCh37_p13} \alias{Human_genes__GRCh37_p13} \title{A matrix containing ENSEMBL hg19 gene metadata accessed using biomart This data is used if ensembl cannot be reached} \format{A matrix with meta...
## The following function creates a special "matrix" object ## that can cache its inverse. ## It creates a list containing functions to ## 1. set the matrix ## 2. get the matrix ## 3. set the inverse of the matrix ## 4. get the inverse of the matrix makeCacheMatrix <- function(x = mat...
/cachematrix.R
no_license
BichTran91/datasciencecoursera
R
false
false
1,334
r
## The following function creates a special "matrix" object ## that can cache its inverse. ## It creates a list containing functions to ## 1. set the matrix ## 2. get the matrix ## 3. set the inverse of the matrix ## 4. get the inverse of the matrix makeCacheMatrix <- function(x = mat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/07_calc_myreg_mreg_linear_yreg_logistic.R \name{calc_myreg_mreg_linear_yreg_logistic} \alias{calc_myreg_mreg_linear_yreg_logistic} \title{Create calculators for effects and se (mreg linear / yreg logistic)} \usage{ calc_myreg_mreg_linear_yreg...
/man/calc_myreg_mreg_linear_yreg_logistic.Rd
no_license
linzn1008/regmedint
R
false
true
1,998
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/07_calc_myreg_mreg_linear_yreg_logistic.R \name{calc_myreg_mreg_linear_yreg_logistic} \alias{calc_myreg_mreg_linear_yreg_logistic} \title{Create calculators for effects and se (mreg linear / yreg logistic)} \usage{ calc_myreg_mreg_linear_yreg...
#' Kaplan-Meier Estimates #' #' For two strata, estimates the standard error of the difference in two #' Kaplan-Meier estimates at each value of times, and plots half-width #' of confidence level for the difference, centered at the midpoint #' of the survival estimates. #' #' details #' #' @param fit survfit object. Se...
/R/Misc.R
no_license
harrelfe/rreport
R
false
false
14,627
r
#' Kaplan-Meier Estimates #' #' For two strata, estimates the standard error of the difference in two #' Kaplan-Meier estimates at each value of times, and plots half-width #' of confidence level for the difference, centered at the midpoint #' of the survival estimates. #' #' details #' #' @param fit survfit object. Se...
#' Simple chronometer. #' Has a little display and avoids wrapping everything in `system.time()`. #' @noRd chrono <- function(start, display = TRUE) { if(missing(start)) ans <- proc.time() else { ans <- proc.time() - start ans <- as.numeric(ans[3]) if(display) message("Execution time: ", round(a...
/R/chrono.R
no_license
mlysy/msde
R
false
false
357
r
#' Simple chronometer. #' Has a little display and avoids wrapping everything in `system.time()`. #' @noRd chrono <- function(start, display = TRUE) { if(missing(start)) ans <- proc.time() else { ans <- proc.time() - start ans <- as.numeric(ans[3]) if(display) message("Execution time: ", round(a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rehydratoR.R \name{rehydratoR} \alias{rehydratoR} \title{Get tweets for given statuses (tweet IDs).} \usage{ rehydratoR(consumer_key, consumer_secret, access_token, access_secret, status_ids, base_path = NULL, group_start = 1) } \arguments{...
/man/rehydratoR.Rd
permissive
kevincoakley/rehydratoR
R
false
true
1,563
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rehydratoR.R \name{rehydratoR} \alias{rehydratoR} \title{Get tweets for given statuses (tweet IDs).} \usage{ rehydratoR(consumer_key, consumer_secret, access_token, access_secret, status_ids, base_path = NULL, group_start = 1) } \arguments{...
## The following functions shall be used to cache a given matrix and calculate ## and cache its inverse ## "makeCacheMatrix" function is used to cache a given matrix ## ## to set a matrix and cache it, type: ## > x <- makeCacheMatrix() ## > x$setmat(y) ## where y is the matrix to be cached ## with each setting for th...
/cachematrix.R
no_license
hsalaheldin/ProgrammingAssignment2
R
false
false
1,399
r
## The following functions shall be used to cache a given matrix and calculate ## and cache its inverse ## "makeCacheMatrix" function is used to cache a given matrix ## ## to set a matrix and cache it, type: ## > x <- makeCacheMatrix() ## > x$setmat(y) ## where y is the matrix to be cached ## with each setting for th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WQcompos.R \name{WQcompos} \alias{WQcompos} \title{Combine multiple samples into one composite sample (loads and concentrations)} \usage{ WQcompos(df.samples, sampleID, parms, volume = "Evolume", bdate, edate, codes) } \arguments{ \item{df.sa...
/man/WQcompos.Rd
permissive
joshuaeveleth/USGSHydroTools
R
false
true
1,464
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WQcompos.R \name{WQcompos} \alias{WQcompos} \title{Combine multiple samples into one composite sample (loads and concentrations)} \usage{ WQcompos(df.samples, sampleID, parms, volume = "Evolume", bdate, edate, codes) } \arguments{ \item{df.sa...
source('./R/utils_av.R') country_name <- "Bolivia" # this is the "stata" option (demetra + always include a constant even if D+d = 2). Approx 20 sec in my PC. ARG 30 sec tic() arima_res <- get_arima_results(country_name = country_name, use_demetra = TRUE, ...
/R/use_new_get_arima_results.R
no_license
Allisterh/sarimax_var_search
R
false
false
2,227
r
source('./R/utils_av.R') country_name <- "Bolivia" # this is the "stata" option (demetra + always include a constant even if D+d = 2). Approx 20 sec in my PC. ARG 30 sec tic() arima_res <- get_arima_results(country_name = country_name, use_demetra = TRUE, ...
library(tidyverse) library(cowplot) library(ggplot2) library(funk) library(scales) library(here) library(piecewiseSEM) library(lme4) setwd(here('grazing-gradients')) ## get diversity # data load load("data/wio_herb_benthic_merged.Rdata") # estimate mean biomass per site per FG h <- pred %>% filter(FG == 'Herbivore ...
/scripts/models/04_scrape_residuals.R
no_license
jpwrobinson/grazing-gradients
R
false
false
5,229
r
library(tidyverse) library(cowplot) library(ggplot2) library(funk) library(scales) library(here) library(piecewiseSEM) library(lme4) setwd(here('grazing-gradients')) ## get diversity # data load load("data/wio_herb_benthic_merged.Rdata") # estimate mean biomass per site per FG h <- pred %>% filter(FG == 'Herbivore ...
library(RSQLite) args <- commandArgs(trailingOnly = TRUE) file.db <- args[1] #'/home/trn/Desktop/diploma-thesis/R/scripts/data-preparation/learning2.db' save.dir <- args[2] #'/home/trn/Desktop/diploma-thesis/R/scripts/learning/dummy-region.csv' file.analysis.addr <- args[3] #'/home/trn/Desktop/diploma-thesis/R/script...
/core/scripts/dummy-region.r
no_license
martintomas/iterative_prediction_of_pollutants
R
false
false
924
r
library(RSQLite) args <- commandArgs(trailingOnly = TRUE) file.db <- args[1] #'/home/trn/Desktop/diploma-thesis/R/scripts/data-preparation/learning2.db' save.dir <- args[2] #'/home/trn/Desktop/diploma-thesis/R/scripts/learning/dummy-region.csv' file.analysis.addr <- args[3] #'/home/trn/Desktop/diploma-thesis/R/script...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.btfit.R \name{summary.btfit} \alias{summary.btfit} \title{Summarizing Bradley-Terry Fits} \usage{ \method{summary}{btfit}(object, subset = NULL, ref = NULL, SE = FALSE, ...) } \arguments{ \item{object}{An object of class "btfit", ty...
/man/summary.btfit.Rd
no_license
cran/BradleyTerryScalable
R
false
true
3,649
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary.btfit.R \name{summary.btfit} \alias{summary.btfit} \title{Summarizing Bradley-Terry Fits} \usage{ \method{summary}{btfit}(object, subset = NULL, ref = NULL, SE = FALSE, ...) } \arguments{ \item{object}{An object of class "btfit", ty...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{Dest} \alias{Dest} \title{Estimation Joost's Dest parameter} \usage{ Dest(x, stratum = "Population", nperm = 0, size.correct = FALSE) } \arguments{ \item{x}{A vector of \code{\link{locus}} objects or a \code{data.frame} with \code{locus} objects.} \item{stratu...
/man/Dest.Rd
no_license
hbwxf/gstudio
R
false
false
1,624
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{Dest} \alias{Dest} \title{Estimation Joost's Dest parameter} \usage{ Dest(x, stratum = "Population", nperm = 0, size.correct = FALSE) } \arguments{ \item{x}{A vector of \code{\link{locus}} objects or a \code{data.frame} with \code{locus} objects.} \item{stratu...
#load the data #set working directory facebook_data= read.table("facebook_user.tsv", header=TRUE) library("dplyr") getwd() #load data fb= read.table("facebook_user.tsv",header=TRUE) library("dplyr") #1.Which day has the highest number of birthdays ? fb$birthdate=as.Date(with(fb,paste(dob_day,dob_month,dob_y...
/Assignment1.R
no_license
mukullokhande99/DS_ML_R
R
false
false
1,511
r
#load the data #set working directory facebook_data= read.table("facebook_user.tsv", header=TRUE) library("dplyr") getwd() #load data fb= read.table("facebook_user.tsv",header=TRUE) library("dplyr") #1.Which day has the highest number of birthdays ? fb$birthdate=as.Date(with(fb,paste(dob_day,dob_month,dob_y...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{d} \alias{d} \title{make data frame alias} \usage{ d(x) } \description{ make data frame alias }
/man/d.Rd
no_license
Philipp-Neubauer/euphemisms
R
false
false
156
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{d} \alias{d} \title{make data frame alias} \usage{ d(x) } \description{ make data frame alias }
#' Search NOAA datasets #' #' From the NOAA API docs: All of our data are in datasets. To retrieve any data #' from us, you must know what dataset it is in. #' #' @export #' #' @template rnoaa #' @template rnoaa2 #' @template datasets #' @param datasetid (optional) Accepts a single valid dataset id. Data returned will ...
/R/ncdc_datasets.r
permissive
bestwpw/rnoaa
R
false
false
3,317
r
#' Search NOAA datasets #' #' From the NOAA API docs: All of our data are in datasets. To retrieve any data #' from us, you must know what dataset it is in. #' #' @export #' #' @template rnoaa #' @template rnoaa2 #' @template datasets #' @param datasetid (optional) Accepts a single valid dataset id. Data returned will ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{transform} \alias{transform} \title{Transformations Performs log or logit transformations.} \usage{ transform(x, type = c("identity", "log", "logit", "none", NA_character_)) } \arguments{ \item{x}{value to transform} \item{ty...
/man/transform.Rd
no_license
cran/confidence
R
false
true
460
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{transform} \alias{transform} \title{Transformations Performs log or logit transformations.} \usage{ transform(x, type = c("identity", "log", "logit", "none", NA_character_)) } \arguments{ \item{x}{value to transform} \item{ty...
\name{mongo.gridfile.seek} \alias{mongo.gridfile.seek} \title{Seek to a position in a mongo.gridfile} \usage{ mongo.gridfile.seek(gridfile, offset) } \arguments{ \item{gridfile}{A (\link{mongo.gridfile}) object.} \item{offset}{(as.double) The position to which to seek.} } \value{ (double) The position set. This m...
/man/mongo.gridfile.seek.Rd
no_license
StefanoSpada/rmongodb
R
false
false
1,655
rd
\name{mongo.gridfile.seek} \alias{mongo.gridfile.seek} \title{Seek to a position in a mongo.gridfile} \usage{ mongo.gridfile.seek(gridfile, offset) } \arguments{ \item{gridfile}{A (\link{mongo.gridfile}) object.} \item{offset}{(as.double) The position to which to seek.} } \value{ (double) The position set. This m...
######################################################################################### # Prepared for Gabor's Data Analysis # # Data Analysis for Business, Economics, and Policy # by Gabor Bekes and Gabor Kezdi # Cambridge University Press 2021 # # gabors-data-analysis.com # # License: Free to share, modify and us...
/ch12-time-series-simulations/ch12-randomwalk-serialcorr-simull.R
no_license
LIKE4986/da_case_studies
R
false
false
4,120
r
######################################################################################### # Prepared for Gabor's Data Analysis # # Data Analysis for Business, Economics, and Policy # by Gabor Bekes and Gabor Kezdi # Cambridge University Press 2021 # # gabors-data-analysis.com # # License: Free to share, modify and us...
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","household_power_consumption.zip") unzip("household_power_consumption.zip") library(dplyr) # Read only 1st 2 days of February 2007. household.power.consumption <- tbl_df(read.table(pipe('grep "^[1-2]/2/2007" "househol...
/plot4.R
no_license
yongish/ExData_Plotting1
R
false
false
2,210
r
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","household_power_consumption.zip") unzip("household_power_consumption.zip") library(dplyr) # Read only 1st 2 days of February 2007. household.power.consumption <- tbl_df(read.table(pipe('grep "^[1-2]/2/2007" "househol...
# The high level actions performed by the VIT Canvas. The details of how these methods accomplish their goals is set by loadDetails, which chooses the appropriate method based on the type of sata and the statistic being examined #initialize_actions <- function(e){ #' Creates the initial plot of the data PLOT_DATA <...
/R/actions.R
no_license
garrettgman/Visual-Inference-Tools
R
false
false
4,699
r
# The high level actions performed by the VIT Canvas. The details of how these methods accomplish their goals is set by loadDetails, which chooses the appropriate method based on the type of sata and the statistic being examined #initialize_actions <- function(e){ #' Creates the initial plot of the data PLOT_DATA <...
#' Cluster robust standard errors #' #' Take a model and cluster variable and returns summary output #' @param model A model eg from lm #' @param cluster A variable #' @keywords Cluster, Robust #' @export #' @examples #' cluster_robust(lm(time~temp, data = beaver1), beaver1$day) #' cluster_robust <- function(model, c...
/R/0 helper cluster_robust.R
no_license
macartan/VDW-H-SDS_2018
R
false
false
3,127
r
#' Cluster robust standard errors #' #' Take a model and cluster variable and returns summary output #' @param model A model eg from lm #' @param cluster A variable #' @keywords Cluster, Robust #' @export #' @examples #' cluster_robust(lm(time~temp, data = beaver1), beaver1$day) #' cluster_robust <- function(model, c...
load('Dane/train.rda') load('Dane/train_interpunction.rda') load('Dane/train_Boruta.rda') load('Dane/test.rda') load('Dane/test_interpunction.rda') load('Dane/test_Boruta.rda') library(e1071) bayesAll <- naiveBayes(Classes~.,data=train[,-348], laplace=0.2) bayesAll_interpunction <- naiveBayes(Classes~., ...
/R_codes/11_naiveBayes.R
no_license
mi2-warsaw/eRka-Onet-findTeam
R
false
false
1,079
r
load('Dane/train.rda') load('Dane/train_interpunction.rda') load('Dane/train_Boruta.rda') load('Dane/test.rda') load('Dane/test_interpunction.rda') load('Dane/test_Boruta.rda') library(e1071) bayesAll <- naiveBayes(Classes~.,data=train[,-348], laplace=0.2) bayesAll_interpunction <- naiveBayes(Classes~., ...
\name{WPGM.select} \alias{WPGM.select} \title{ Winsorized Poisson Graphical Model (WPGM) } \description{ Fitting the WPGM using efficient, parallel algorithm named Poisson Graphical Lasso. This algorithm employs neighborhood selection to infer network structure. Stability selection method "star" was used in select...
/PGMs/Package_Trial/T3/expMRF/man/WPGM.select.Rd
no_license
zhandong/XFam
R
false
false
4,355
rd
\name{WPGM.select} \alias{WPGM.select} \title{ Winsorized Poisson Graphical Model (WPGM) } \description{ Fitting the WPGM using efficient, parallel algorithm named Poisson Graphical Lasso. This algorithm employs neighborhood selection to infer network structure. Stability selection method "star" was used in select...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_bbox_centroid.R \name{get_bbox_centroid} \alias{get_bbox_centroid} \title{Get the great-circle centroid for a given bounding box.} \usage{ get_bbox_centroid(bbox) } \arguments{ \item{bbox}{The bounding box to find a centroid for. If not a...
/man/get_bbox_centroid.Rd
permissive
mikejohnson51/terrainr
R
false
true
929
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_bbox_centroid.R \name{get_bbox_centroid} \alias{get_bbox_centroid} \title{Get the great-circle centroid for a given bounding box.} \usage{ get_bbox_centroid(bbox) } \arguments{ \item{bbox}{The bounding box to find a centroid for. If not a...
library(shiny) library(foreign) library(rCharts) library(dplyr) library(Hmisc) library(reshape) library(zoo) rm(list=ls()) ###change the max size of the file (5MB by defoult) options(shiny.maxRequestSize=100*1024^2) ###check what would be a reasonable here ########################## #Function to get the data #####...
/server.R
no_license
Dorota-Lewandowska/YG_van_Wastendorp
R
false
false
8,814
r
library(shiny) library(foreign) library(rCharts) library(dplyr) library(Hmisc) library(reshape) library(zoo) rm(list=ls()) ###change the max size of the file (5MB by defoult) options(shiny.maxRequestSize=100*1024^2) ###check what would be a reasonable here ########################## #Function to get the data #####...
# *****************Hierarchal Clustering***************** library(fields) library(ggplot2) # dist() calculates the pairwise distances # hclust() takes the pairwise dist. variable and gives a dendogram # To view your dendogram you need plot() to plot it # plot with as.dendogram() for a neater one # heatmap() creates a h...
/Graphs/Clustering.R
no_license
greywind7/R-language-notes
R
false
false
1,770
r
# *****************Hierarchal Clustering***************** library(fields) library(ggplot2) # dist() calculates the pairwise distances # hclust() takes the pairwise dist. variable and gives a dendogram # To view your dendogram you need plot() to plot it # plot with as.dendogram() for a neater one # heatmap() creates a h...
##' @title Simulation 1 ##' @param alpha gene correlation parameter, larger alpha creates larger correlation ##' @param sim_disp gene dispersion from breast cancer data ##' @param empirical_dist average gene expression from breast cancer data ##' @return data with correlated genes for simulation 3. ##' @references Rahm...
/snbClust/R/Sim.Corr.R
no_license
YujiaLi1994/snbClust
R
false
false
3,347
r
##' @title Simulation 1 ##' @param alpha gene correlation parameter, larger alpha creates larger correlation ##' @param sim_disp gene dispersion from breast cancer data ##' @param empirical_dist average gene expression from breast cancer data ##' @return data with correlated genes for simulation 3. ##' @references Rahm...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) source("setup_import.R") # Define UI for application that draws a histogram ui <- fluidPage( ...
/app.R
no_license
samsrabin/crossword-plot
R
false
false
8,635
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) source("setup_import.R") # Define UI for application that draws a histogram ui <- fluidPage( ...
library(randomForest) model<- randomForest(Species~., data=trainData, nTree=500) summary(model) prediction <- predict(model, newdata=testData, type='class') table(prediction, testData$Species) importance(model) library(adabag) iris.adaboost <- boosting(Species~., data=iristrain, boost=TRUE, mfinal=5) iris.a...
/Bagging_and_Boosting.R
no_license
vkrit/chula_datamining
R
false
false
344
r
library(randomForest) model<- randomForest(Species~., data=trainData, nTree=500) summary(model) prediction <- predict(model, newdata=testData, type='class') table(prediction, testData$Species) importance(model) library(adabag) iris.adaboost <- boosting(Species~., data=iristrain, boost=TRUE, mfinal=5) iris.a...
#' Various utility functions #' #' Miscellaneous set of functions that can be used with results from the #' package. #' #' Function \code{extract.indices} extracts the parameter indices from the #' parameter index matrices (PIMS) for a particular type of \code{parameter} #' that match a set of group numbers an...
/RMark/R/utility.r
no_license
wchallenger/RMark
R
false
false
12,374
r
#' Various utility functions #' #' Miscellaneous set of functions that can be used with results from the #' package. #' #' Function \code{extract.indices} extracts the parameter indices from the #' parameter index matrices (PIMS) for a particular type of \code{parameter} #' that match a set of group numbers an...
library(stringr) Letter_dirs<-dir('../../RESULTS/CTTV015_Landers_Sabatini_Library_analysis/outComes/') nLetters<-length(Letter_dirs) load('../../DATA/CTTV015_Landers_Sabatini_Library_analysis/R/alreadyincludedGuides.rdata') # includedGuides<-read.table('../../DATA/CTTV015_Landers_Sabatini_Library_analysis/internal/C...
/Lander_Sabatini_old_Analysis/AssembleResults.R
no_license
francescojm/OT-CPI-Pipelines
R
false
false
1,928
r
library(stringr) Letter_dirs<-dir('../../RESULTS/CTTV015_Landers_Sabatini_Library_analysis/outComes/') nLetters<-length(Letter_dirs) load('../../DATA/CTTV015_Landers_Sabatini_Library_analysis/R/alreadyincludedGuides.rdata') # includedGuides<-read.table('../../DATA/CTTV015_Landers_Sabatini_Library_analysis/internal/C...
library(CvM2SL2Test) library(MASS) library(verification) OPAM.project.dataset.RNAi <- function( input.ds, output.ds, gene.set.databases, gene.set.selection = "ALL", # "ALL" or list with names of gene sets sample.norm.type = "rank", # "rank", "log" or "log.rank" weight = 0.25...
/project_scripts/pablo_NMF_scripts/OPAM.library.v7.R
no_license
lhogstrom/jailbird
R
false
false
359,323
r
library(CvM2SL2Test) library(MASS) library(verification) OPAM.project.dataset.RNAi <- function( input.ds, output.ds, gene.set.databases, gene.set.selection = "ALL", # "ALL" or list with names of gene sets sample.norm.type = "rank", # "rank", "log" or "log.rank" weight = 0.25...
library(countrycode) library(ggplot2) library(treemap) # Read the csv file popfem <- read.csv('/home/ubuntu/Dropbox/Manoj/MSAN622_DataViz_Sophie/data/tot_pop_female_2050.csv', header=TRUE, stringsAsFactors=FALSE) # extract Continent popfem$continent <- as.factor(countrycode(popfem$country, "country...
/final-project/dataprep.R
no_license
manoj-v/msan622
R
false
false
4,439
r
library(countrycode) library(ggplot2) library(treemap) # Read the csv file popfem <- read.csv('/home/ubuntu/Dropbox/Manoj/MSAN622_DataViz_Sophie/data/tot_pop_female_2050.csv', header=TRUE, stringsAsFactors=FALSE) # extract Continent popfem$continent <- as.factor(countrycode(popfem$country, "country...
"SI" "VC" "IN" "CO" "BD" "MR" "VP" "FW" "PCm" "DS" "AR" "LN" "SS" "CD" "CA" 1.00 0.74 0.64 0.71 0.49 0.51 0.44 0.53 0.44 0.48 0.54 0.45 0.35 0.41 0.23 0.74 1.00 0.73 0.74 0.45 0.51 0.42 0.53 0.39 0.50 0.57 0.48 0.34 0.41 0.24 0.64 0.73 1.00 0.66 0.44 0.49 0.43 0.51 0.41 0.43 0.57 0.43 0.34 0.34 0.22 0.71 0.74 0.66 ...
/WAISData.R
no_license
KJKan/nwsem
R
false
false
1,221
r
"SI" "VC" "IN" "CO" "BD" "MR" "VP" "FW" "PCm" "DS" "AR" "LN" "SS" "CD" "CA" 1.00 0.74 0.64 0.71 0.49 0.51 0.44 0.53 0.44 0.48 0.54 0.45 0.35 0.41 0.23 0.74 1.00 0.73 0.74 0.45 0.51 0.42 0.53 0.39 0.50 0.57 0.48 0.34 0.41 0.24 0.64 0.73 1.00 0.66 0.44 0.49 0.43 0.51 0.41 0.43 0.57 0.43 0.34 0.34 0.22 0.71 0.74 0.66 ...
############### library(ChemmineR) library(hwriter) library(parallel) ############### #data(apset) #data(sdfsample) #sdfset<-sdfsample #smiset<-sdf2smiles(sdfset) apset<-sdf2ap(sdfset) #fpset<-desc2fp(apset) ## naebors<-8 nnm <- nearestNeighbors(apset,numNbrs=naebors) ############### png<-list.files(pattern="smi.png",r...
/Figure3/ToxCast_nnm/WorkHere/hwriteMore.R
permissive
andrewdefries/ToxCast
R
false
false
2,554
r
############### library(ChemmineR) library(hwriter) library(parallel) ############### #data(apset) #data(sdfsample) #sdfset<-sdfsample #smiset<-sdf2smiles(sdfset) apset<-sdf2ap(sdfset) #fpset<-desc2fp(apset) ## naebors<-8 nnm <- nearestNeighbors(apset,numNbrs=naebors) ############### png<-list.files(pattern="smi.png",r...
testlist <- list(mu = 5.43230922490124e-311, var = 0) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
/metafolio/inst/testfiles/est_beta_params/libFuzzer_est_beta_params/est_beta_params_valgrind_files/1612988126-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
121
r
testlist <- list(mu = 5.43230922490124e-311, var = 0) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
library(sp) function(points_with_cluster_id, subject){ # Get CHULL for each cluster of points get_chull_poly <- function(points_to_chull){ chull_coords <- points_to_chull[chull(points_to_chull),] polys <- Polygons(list(Polygon(chull_coords)), "ID") } chull_polys <-...
/function/get_cluster_chulls.R
permissive
disarm-platform/fn-dbscan-clusterer
R
false
false
865
r
library(sp) function(points_with_cluster_id, subject){ # Get CHULL for each cluster of points get_chull_poly <- function(points_to_chull){ chull_coords <- points_to_chull[chull(points_to_chull),] polys <- Polygons(list(Polygon(chull_coords)), "ID") } chull_polys <-...
#' @include globals.R NULL #' Create a logger #' #' The logger emits log events in a format that is #' consistent with [`logga`](https://github.com/stencila/logga): #' newline-delimited JSON streamed to `stderr`, with the `tag`, #' a `message` string and an integer `level`: #' #' - 0: error #' - 1: warning #' - 2: inf...
/R/logger.R
permissive
stencila/rasta
R
false
false
1,743
r
#' @include globals.R NULL #' Create a logger #' #' The logger emits log events in a format that is #' consistent with [`logga`](https://github.com/stencila/logga): #' newline-delimited JSON streamed to `stderr`, with the `tag`, #' a `message` string and an integer `level`: #' #' - 0: error #' - 1: warning #' - 2: inf...
#' Load and select auxiliary plot trees-VRI specific #' #' @description This function loads and selects auxiliary data (\code{vi_i}, cardi) based on cluster/plot header. #' #' #' @param clusterplotHeader data.table, Cluster and plot level attributes, an output from \code{\link{VRIInit_clusterplot}}. #' #' @param dataSo...
/R/VRIInit_auxTree.R
permissive
bcgov/FAIBCompiler
R
false
false
2,560
r
#' Load and select auxiliary plot trees-VRI specific #' #' @description This function loads and selects auxiliary data (\code{vi_i}, cardi) based on cluster/plot header. #' #' #' @param clusterplotHeader data.table, Cluster and plot level attributes, an output from \code{\link{VRIInit_clusterplot}}. #' #' @param dataSo...
run_analysis <- function() { ## Assume that this script is run in the following directory of the ## unzipped files "UCI HAR Dataset" ## load libraries library(dplyr) library(reshape2) ## read in test data test_data <- read.table("./test/X_test.txt", header=F) test_subject <- read.table(...
/run_analysis.R
no_license
bbqsatay/GettingAndCleaningDataRepo
R
false
false
4,060
r
run_analysis <- function() { ## Assume that this script is run in the following directory of the ## unzipped files "UCI HAR Dataset" ## load libraries library(dplyr) library(reshape2) ## read in test data test_data <- read.table("./test/X_test.txt", header=F) test_subject <- read.table(...
test_that("HostHttpServer$stop+start", { s1 = HostHttpServer$new(NULL) s2 = HostHttpServer$new(NULL) expect_equal(s1$url, NULL) s1$start() expect_true(str_detect(s1$url, '^http://127.0.0.1')) s2$start() p1 <- as.integer(str_match(s1$url, '^http://127.0.0.1:(\\d+)')[1, 2]) p2 <- as.integer(str_match(s...
/tests/testthat/test-host-http-server.R
permissive
RaoOfPhysics/r
R
false
false
5,420
r
test_that("HostHttpServer$stop+start", { s1 = HostHttpServer$new(NULL) s2 = HostHttpServer$new(NULL) expect_equal(s1$url, NULL) s1$start() expect_true(str_detect(s1$url, '^http://127.0.0.1')) s2$start() p1 <- as.integer(str_match(s1$url, '^http://127.0.0.1:(\\d+)')[1, 2]) p2 <- as.integer(str_match(s...
context("super") test_that("it should call the parent method once", { calls <- integer(0) function1 <- function() { calls <<- c(calls, 1L) } local({ function1 <- function() { calls <<- c(calls, 2L) super::super() } function1() }) expect_equal(calls, c(2L, 1L)) }) test_that("it shoul...
/tests/testthat/test-super.R
no_license
robertzk/super
R
false
false
4,799
r
context("super") test_that("it should call the parent method once", { calls <- integer(0) function1 <- function() { calls <<- c(calls, 1L) } local({ function1 <- function() { calls <<- c(calls, 2L) super::super() } function1() }) expect_equal(calls, c(2L, 1L)) }) test_that("it shoul...
install.packages("dplyr") install.packages("ggplot2") install.packages("ggmap") install.packages("parallel") install.packages("doParallel") install.packages("caret") install.packages("dplyr") install.packages("randomForest") library("randomForest") library("dplyr") library("caret") library("doParallel") library("paral...
/wifi_last_2.R
no_license
niluucar/wifi
R
false
false
12,137
r
install.packages("dplyr") install.packages("ggplot2") install.packages("ggmap") install.packages("parallel") install.packages("doParallel") install.packages("caret") install.packages("dplyr") install.packages("randomForest") library("randomForest") library("dplyr") library("caret") library("doParallel") library("paral...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interface.R \name{save.obj} \alias{save.obj} \title{Save a object to persistent storage.} \usage{ save.obj(obj, name, rev = NULL, backend = NULL) } \arguments{ \item{obj}{object to save.} \item{name}{object name on the storage.} \item{rev}{...
/man/save.obj.Rd
no_license
hskksk/rstore
R
false
true
565
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/interface.R \name{save.obj} \alias{save.obj} \title{Save a object to persistent storage.} \usage{ save.obj(obj, name, rev = NULL, backend = NULL) } \arguments{ \item{obj}{object to save.} \item{name}{object name on the storage.} \item{rev}{...
#'@name stackSp #' #'@title Join species files #' #'@description Join all independent files into a single multi-species file. #' #'@param data Vector of characters. Name of the input file. #' #'@param rd.frmt Vector of characters. The file format to read. #'By default it will be read as a R object using the #' \code...
/R/stackSp.R
no_license
Dmirandae/geocleaMT
R
false
false
2,872
r
#'@name stackSp #' #'@title Join species files #' #'@description Join all independent files into a single multi-species file. #' #'@param data Vector of characters. Name of the input file. #' #'@param rd.frmt Vector of characters. The file format to read. #'By default it will be read as a R object using the #' \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/state_fips.R \docType{data} \name{state_fips} \alias{state_fips} \title{Dataset with the lat. / long. of county FIPS codes used for mapping.} \format{A data frame with 57 rows and 4 variables} \usage{ data(state_fips) } \description{ Built-in...
/man/state_fips.Rd
no_license
xtmgah/blscrapeR
R
false
true
698
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/state_fips.R \docType{data} \name{state_fips} \alias{state_fips} \title{Dataset with the lat. / long. of county FIPS codes used for mapping.} \format{A data frame with 57 rows and 4 variables} \usage{ data(state_fips) } \description{ Built-in...
#!/usr/bin/env Rscript # Copyright (c) 2018 ISciences, LLC. # All rights reserved. # # WSIM is 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. # # Unl...
/wsim_flow.R
permissive
isciences/wsim
R
false
false
3,910
r
#!/usr/bin/env Rscript # Copyright (c) 2018 ISciences, LLC. # All rights reserved. # # WSIM is 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. # # Unl...
#' Easily summarize quantitative data #' #' @description \code{ezsummary_quantitative()} summarizes quantitative data. #' #' @param tbl A vector, a data.frame or a \code{dplyr} \code{tbl}. #' @param total a T/F value; total counts of records including both missing #' and read data records. Default is \code{FALSE}. #' @...
/R/ezsummary_quantitative.r
no_license
cran/ezsummary
R
false
false
7,575
r
#' Easily summarize quantitative data #' #' @description \code{ezsummary_quantitative()} summarizes quantitative data. #' #' @param tbl A vector, a data.frame or a \code{dplyr} \code{tbl}. #' @param total a T/F value; total counts of records including both missing #' and read data records. Default is \code{FALSE}. #' @...
# keras model used in ENDGAME LSTM 2016 paper + recurrent dropout default_keras_model_lstm_endgame_recurrent_dropout_parameters_tune=list( lstm_size = c(128,64,32), embedingdim = c(128,50,32), dropout = c(0.5) ) #default_keras_model_cnn_argencon_parameters_tune=list( # nb_filter = c(256,128), # kernel_size = c...
/model_lstm_endgame_recurrent_dropout.R
permissive
harpomaxx/deepseq
R
false
false
1,478
r
# keras model used in ENDGAME LSTM 2016 paper + recurrent dropout default_keras_model_lstm_endgame_recurrent_dropout_parameters_tune=list( lstm_size = c(128,64,32), embedingdim = c(128,50,32), dropout = c(0.5) ) #default_keras_model_cnn_argencon_parameters_tune=list( # nb_filter = c(256,128), # kernel_size = c...
#' @title Prepare GDC data #' @description #' Reads the data downloaded and prepare it into an R object #' @param query A query for GDCquery function #' @param save Save result as RData object? #' @param save.filename Name of the file to be save if empty an automatic will be created #' @param directory Directory/Fol...
/R/prepare.R
no_license
Sergiollaneza/TCGAbiolinks
R
false
false
61,770
r
#' @title Prepare GDC data #' @description #' Reads the data downloaded and prepare it into an R object #' @param query A query for GDCquery function #' @param save Save result as RData object? #' @param save.filename Name of the file to be save if empty an automatic will be created #' @param directory Directory/Fol...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/overlapping.R \name{overlapping} \alias{overlapping} \alias{overlapping.default} \alias{overlapping.formula} \title{Measures of overlapping} \usage{ overlapping(...) \method{overlapping}{default}(x, y, measures = "all", summary = c("mean",...
/man/overlapping.Rd
no_license
cran/ECoL
R
false
true
3,474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/overlapping.R \name{overlapping} \alias{overlapping} \alias{overlapping.default} \alias{overlapping.formula} \title{Measures of overlapping} \usage{ overlapping(...) \method{overlapping}{default}(x, y, measures = "all", summary = c("mean",...
neural<-function() #This script, so far, only uses synthesized data to train the neural network. The goal is to use this function to create a neural network that will then be used to #create our prices for our warehouses. #This script works, but we need to find a way to create better training data #Train neura...
/simulation/neural.R
no_license
awiddy/WARIE
R
false
false
1,764
r
neural<-function() #This script, so far, only uses synthesized data to train the neural network. The goal is to use this function to create a neural network that will then be used to #create our prices for our warehouses. #This script works, but we need to find a way to create better training data #Train neura...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input.R \docType{data} \name{input} \alias{input} \title{Dane wejsciowe dla funkcji \code{emisjadk()}} \format{ Ramka danych zawiera: \describe{ \item{Nat}{Natezenie ruchu} \item{Segment}{Rodzaj nadwozia samochodu} \item{Fuel}{Rodzaj uzywaneg...
/man/input.Rd
permissive
Gryzzle/emisjaspal
R
false
true
506
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/input.R \docType{data} \name{input} \alias{input} \title{Dane wejsciowe dla funkcji \code{emisjadk()}} \format{ Ramka danych zawiera: \describe{ \item{Nat}{Natezenie ruchu} \item{Segment}{Rodzaj nadwozia samochodu} \item{Fuel}{Rodzaj uzywaneg...
#' Custom tryCatch to return result, errors and warnings. #' Copied from http://stackoverflow.com/a/24569739/2271856. #' #' @noRd #' @keywords internal tryCatchExt <- function(expr) { warn <- err <- NULL value <- withCallingHandlers( tryCatch(expr, error = function(e) { err <<- conditionMessage(e...
/R/utils.R
no_license
ntduc11/statgenSTA
R
false
false
23,815
r
#' Custom tryCatch to return result, errors and warnings. #' Copied from http://stackoverflow.com/a/24569739/2271856. #' #' @noRd #' @keywords internal tryCatchExt <- function(expr) { warn <- err <- NULL value <- withCallingHandlers( tryCatch(expr, error = function(e) { err <<- conditionMessage(e...
ui = navbarPage(title = 'at7987', collapsible = T, position = 'fixed-top', theme = teachingApps::add_theme(getShinyOption('theme')), header = teachingApps::add_css(), footer = teachingApps::add_logo(), tabPanel("Data Set",DT::dataTableO...
/inst/apps/at7987_data/ui.R
no_license
Ammar-K/SMRD
R
false
false
1,720
r
ui = navbarPage(title = 'at7987', collapsible = T, position = 'fixed-top', theme = teachingApps::add_theme(getShinyOption('theme')), header = teachingApps::add_css(), footer = teachingApps::add_logo(), tabPanel("Data Set",DT::dataTableO...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMNN_data.R \docType{data} \name{data_SMNN} \alias{data_SMNN} \title{A list of two expression matrices for two batches. The first batch contains 400 cells of three cell types, fibroblasts, macrophages and endothelial cells. And the second bat...
/man/data_SMNN.Rd
no_license
yycunc/SMNN
R
false
true
1,631
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SMNN_data.R \docType{data} \name{data_SMNN} \alias{data_SMNN} \title{A list of two expression matrices for two batches. The first batch contains 400 cells of three cell types, fibroblasts, macrophages and endothelial cells. And the second bat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_gifti.R \name{write_surf_gifti} \alias{write_surf_gifti} \title{Write CIFTI surface data to GIFTI} \usage{ write_surf_gifti( x, gifti_fname, hemisphere = c("left", "right"), encoding = NULL, endian = c("LittleEndian...
/man/write_surf_gifti.Rd
no_license
yoaman/r-cran-ciftiTools
R
false
true
1,247
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write_gifti.R \name{write_surf_gifti} \alias{write_surf_gifti} \title{Write CIFTI surface data to GIFTI} \usage{ write_surf_gifti( x, gifti_fname, hemisphere = c("left", "right"), encoding = NULL, endian = c("LittleEndian...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ELISAtools_IO.R \name{saveDataText} \alias{saveDataText} \title{Save elisa_batch analysis results} \usage{ saveDataText(batches, file.name) } \arguments{ \item{batches}{list of elisa batch data to be serialized.} \item{file.name}{character s...
/man/saveDataText.Rd
no_license
cran/ELISAtools
R
false
true
1,281
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ELISAtools_IO.R \name{saveDataText} \alias{saveDataText} \title{Save elisa_batch analysis results} \usage{ saveDataText(batches, file.name) } \arguments{ \item{batches}{list of elisa batch data to be serialized.} \item{file.name}{character s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculations.R \name{total_THMs} \alias{total_THMs} \title{Calculate the total THMs Calculate the total THMs, equal to the sum of bromodichloromethane, bromoform, chlorodibromomethane, chloroform} \usage{ total_THMs(column_names, labdat) } \a...
/man/total_THMs.Rd
permissive
biogeochem/bpwtpR
R
false
true
936
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculations.R \name{total_THMs} \alias{total_THMs} \title{Calculate the total THMs Calculate the total THMs, equal to the sum of bromodichloromethane, bromoform, chlorodibromomethane, chloroform} \usage{ total_THMs(column_names, labdat) } \a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{fmi_stations} \alias{fmi_stations} \alias{fmi_weather_stations} \title{Get a list of active FMI observation stations.} \usage{ fmi_stations(groups = NULL, quiet = FALSE) } \arguments{ \item{groups}{a character vector of observat...
/man/fmi_stations.Rd
permissive
jlintusaari/fmi
R
false
true
1,065
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{fmi_stations} \alias{fmi_stations} \alias{fmi_weather_stations} \title{Get a list of active FMI observation stations.} \usage{ fmi_stations(groups = NULL, quiet = FALSE) } \arguments{ \item{groups}{a character vector of observat...
#SIR.model <- function(t, b, g, m){ require(deSolve) t=250 deaths <- 3 N <- 1000 tinfec <- 14 gamma <- 1/tinfec R0 <- 5 #numero medio de pessoas infectadas a partir de um infectado beta <- (gamma*R0)/N mu=deaths/N init <- c(S=N-1,I=1,R=0, D=0) parameters <- c(bet=beta,gamm=gamma, mmu=mu) time <- seq(0,t,by=1) eqn <- f...
/blog_posts/26-03-2020/Corona/SIR_Model.R
no_license
fsbmat-ufv/fsbmat-ufv.github.io
R
false
false
8,016
r
#SIR.model <- function(t, b, g, m){ require(deSolve) t=250 deaths <- 3 N <- 1000 tinfec <- 14 gamma <- 1/tinfec R0 <- 5 #numero medio de pessoas infectadas a partir de um infectado beta <- (gamma*R0)/N mu=deaths/N init <- c(S=N-1,I=1,R=0, D=0) parameters <- c(bet=beta,gamm=gamma, mmu=mu) time <- seq(0,t,by=1) eqn <- f...
generate_prob <- function(sequencing_error_model,unit_theta,unit_gamma,unit_mu,number_br, number_cell,normal_genotype,mutation_genotype,initial_obs,ts){ # for this gene or location, variable singletip_exclude are those sample equal '-', variable tip_exclude are all those equal '-' ...
/simulation/FiguresS2_S3_Scenarios3_4/Scenario4_result/MO_Ternary_20missing/MO_Ternary_Simulation_Study_5.R
no_license
DavidSimone/MO
R
false
false
47,782
r
generate_prob <- function(sequencing_error_model,unit_theta,unit_gamma,unit_mu,number_br, number_cell,normal_genotype,mutation_genotype,initial_obs,ts){ # for this gene or location, variable singletip_exclude are those sample equal '-', variable tip_exclude are all those equal '-' ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{addLayers} \alias{addLayers} \title{addLayers} \usage{ addLayers(OSMMap1, OSMMap2) } \arguments{ \item{OSMMap1}{a map object resulting from the call to OSMMap} \item{OSMMap2}{another map object resulting from a call to OSMMap} } \description{ Take two maps and...
/man/addLayers.Rd
no_license
greentheo/OpenStreetMapR
R
false
false
576
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{addLayers} \alias{addLayers} \title{addLayers} \usage{ addLayers(OSMMap1, OSMMap2) } \arguments{ \item{OSMMap1}{a map object resulting from the call to OSMMap} \item{OSMMap2}{another map object resulting from a call to OSMMap} } \description{ Take two maps and...
# Lesson 2: Working Directory getwd() # Current working directory setwd() # Set working directory list.files() # Objects in current working directory dir() # Also the same result ls() # Objects in current workspace args(list.files) # Arguments of the function dir.create("testdir") # Creates a new directory file.create(...
/course-2/week_1/swirl.R
no_license
storyteller-aditya/datasciencecoursera
R
false
false
2,463
r
# Lesson 2: Working Directory getwd() # Current working directory setwd() # Set working directory list.files() # Objects in current working directory dir() # Also the same result ls() # Objects in current workspace args(list.files) # Arguments of the function dir.create("testdir") # Creates a new directory file.create(...
if(!require(checkpoint)){ install.packages("checkpoint") library(checkpoint) } checkpoint("2016-01-13") if(!(require(readr) & require(ggplot2) & require(tidyr) & require(plyr) & require(dplyr) & require(rstan) & require(rstudioapi) & require(codetools) & require(readxl))){ install.packages(c("rstan", "ggplot2", "...
/RunModel_MultiPlate_4p.R
no_license
jonaudet/Logistic_ELISA_std
R
false
false
9,810
r
if(!require(checkpoint)){ install.packages("checkpoint") library(checkpoint) } checkpoint("2016-01-13") if(!(require(readr) & require(ggplot2) & require(tidyr) & require(plyr) & require(dplyr) & require(rstan) & require(rstudioapi) & require(codetools) & require(readxl))){ install.packages(c("rstan", "ggplot2", "...
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelion <- function(JD){ .Call("CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelion", JD) }
/R/CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelion.R
no_license
helixcn/skycalc
R
false
false
142
r
CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelion <- function(JD){ .Call("CAAElementsPlanetaryOrbit_NeptuneLongitudePerihelion", JD) }
library(glmnet) mydata = read.table("./TrainingSet/RF/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.6,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/lymphoid/lymphoid_066.txt',append...
/Model/EN/Classifier/lymphoid/lymphoid_066.R
no_license
leon1003/QSMART
R
false
false
356
r
library(glmnet) mydata = read.table("./TrainingSet/RF/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.6,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/lymphoid/lymphoid_066.txt',append...
AppendPlotList <- function(item) { if( .GlobalEnv$counter == .GlobalEnv$size ) { length(.GlobalEnv$plotlist) <- .GlobalEnv$size <- .GlobalEnv$Size * 2 } .GlobalEnv$counter <- .GlobalEnv$counter + 1 .GlobalEnv$plotlist[[.GlobalEnv$counter]] <- item }
/Week 1 - Clustering/AddItemToList.R
no_license
Merlijn-van-Breugel/Machine-Learning
R
false
false
287
r
AppendPlotList <- function(item) { if( .GlobalEnv$counter == .GlobalEnv$size ) { length(.GlobalEnv$plotlist) <- .GlobalEnv$size <- .GlobalEnv$Size * 2 } .GlobalEnv$counter <- .GlobalEnv$counter + 1 .GlobalEnv$plotlist[[.GlobalEnv$counter]] <- item }
#' @name .TVPBVAR_linear_wrapper #' @noRd #' @importFrom abind adrop #' @importFrom utils capture.output .TVPBVAR_linear_wrapper <- function(Yraw, prior, plag, draws, burnin, cons, trend, SV, thin, default_hyperpara, Ex, applyfun, cores, eigen, trim){ class(Yraw) <- "numeric" prior_in <- prior if(default_hyperpar...
/R/utils_tvpbvar.R
no_license
MacroFinanceHub/BTSM
R
false
false
62,780
r
#' @name .TVPBVAR_linear_wrapper #' @noRd #' @importFrom abind adrop #' @importFrom utils capture.output .TVPBVAR_linear_wrapper <- function(Yraw, prior, plag, draws, burnin, cons, trend, SV, thin, default_hyperpara, Ex, applyfun, cores, eigen, trim){ class(Yraw) <- "numeric" prior_in <- prior if(default_hyperpar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colPerc.R \name{colPerc} \alias{colPerc} \title{Column Percents} \usage{ colPerc(tab) } \arguments{ \item{tab}{A two way table, e.g., the result of \code{xtabs(~var1+var2,data=DataFrame)}.} } \value{ An object of class \code{table}, giving co...
/man/colPerc.Rd
no_license
umeshach/tigerstats
R
false
true
579
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colPerc.R \name{colPerc} \alias{colPerc} \title{Column Percents} \usage{ colPerc(tab) } \arguments{ \item{tab}{A two way table, e.g., the result of \code{xtabs(~var1+var2,data=DataFrame)}.} } \value{ An object of class \code{table}, giving co...
\name{crmsens} \alias{crmsens} \alias{print.dxcrm} \title{Model Sensitivity in the CRM} \description{ Evaluate the model sensitivity in the CRM by indifference intervals.} \usage{ crmsens(prior, target, model = "empiric", intcpt = 3, eps = 1e-06, maxit = 100, detail = FALSE) } \arguments{ \item{prior}{A vec...
/man/crmsens.Rd
no_license
cran/dfcrm
R
false
false
1,858
rd
\name{crmsens} \alias{crmsens} \alias{print.dxcrm} \title{Model Sensitivity in the CRM} \description{ Evaluate the model sensitivity in the CRM by indifference intervals.} \usage{ crmsens(prior, target, model = "empiric", intcpt = 3, eps = 1e-06, maxit = 100, detail = FALSE) } \arguments{ \item{prior}{A vec...
source('modelsetup.r') source('SummarizeImputation.r') cores <- as.integer(commandArgs(TRUE)[1]) current.core <- as.integer(commandArgs(TRUE)[2]) mtd <- tolower(commandArgs(TRUE)[3]) if(is.na(cores)) { cores <- 1 } if(is.na(current.core)) { current.core <- 1 } if(is.na(mtd)) { mtd <- "lwd" } base.dir <- getwd() #...
/deploy/run.models.r
no_license
grstearns/Missingness
R
false
false
7,525
r
source('modelsetup.r') source('SummarizeImputation.r') cores <- as.integer(commandArgs(TRUE)[1]) current.core <- as.integer(commandArgs(TRUE)[2]) mtd <- tolower(commandArgs(TRUE)[3]) if(is.na(cores)) { cores <- 1 } if(is.na(current.core)) { current.core <- 1 } if(is.na(mtd)) { mtd <- "lwd" } base.dir <- getwd() #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seasFolder.R \name{seasFolder} \alias{seasFolder} \title{Get path to folder with seasonality analysis + data} \usage{ seasFolder(..., warnonly = FALSE, path = NA) } \arguments{ \item{\dots}{Optional filename(s) that will be appended.} \item{...
/man/seasFolder.Rd
no_license
kbSSR/rfs
R
false
true
818
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seasFolder.R \name{seasFolder} \alias{seasFolder} \title{Get path to folder with seasonality analysis + data} \usage{ seasFolder(..., warnonly = FALSE, path = NA) } \arguments{ \item{\dots}{Optional filename(s) that will be appended.} \item{...
library(RPostgreSQL) con <- dbConnect(PostgreSQL(), user="manjarid", password="fath1Heim", dbname="manjarid", host="sculptor.stat.cmu.edu") result = dbSendQuery(con, "select hood from neighborhoodpolice;") data = dbFetch(result) dbClearResult(result) hoods = unlist(data) datafile = read.csv("stdin", ...
/crime_data/ingest_data.R
no_license
mqnjqrid/assignments
R
false
false
2,757
r
library(RPostgreSQL) con <- dbConnect(PostgreSQL(), user="manjarid", password="fath1Heim", dbname="manjarid", host="sculptor.stat.cmu.edu") result = dbSendQuery(con, "select hood from neighborhoodpolice;") data = dbFetch(result) dbClearResult(result) hoods = unlist(data) datafile = read.csv("stdin", ...
################################################################################################################## ######### WHO 2007 ##### ######### Department of Nutrition for Health and Development ...
/who2007_r/who2007.r
no_license
calzzone/Dr-szbo-pedi-2
R
false
false
30,395
r
################################################################################################################## ######### WHO 2007 ##### ######### Department of Nutrition for Health and Development ...
random_numbers <- c(-2, -8, 5, -3, 5, 10, 13, 1, 1) positive_numbers <- random_numbers > 0 positive_numbers
/1 - Basic/2 - Vectors/14.personalizado.R
no_license
TopicosSelectos/tutoriales-2019-2-abel-rodriguez
R
false
false
108
r
random_numbers <- c(-2, -8, 5, -3, 5, 10, 13, 1, 1) positive_numbers <- random_numbers > 0 positive_numbers
\alias{gtkWindowResize} \name{gtkWindowResize} \title{gtkWindowResize} \description{Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call \code{\link{gtkWidgetSetSizeReque...
/man/gtkWindowResize.Rd
no_license
cran/RGtk2.10
R
false
false
962
rd
\alias{gtkWindowResize} \name{gtkWindowResize} \title{gtkWindowResize} \description{Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call \code{\link{gtkWidgetSetSizeReque...