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(glmnet) mydata = read.table("./TrainingSet/LassoBIC/pleura.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/pleura/pleura_019.txt',append=TRUE...
/Model/EN/Lasso/pleura/pleura_019.R
no_license
leon1003/QSMART
R
false
false
351
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/pleura.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.04,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/pleura/pleura_019.txt',append=TRUE...
% Generated by roxygen2 (4.0.2.9000): do not edit by hand % Please edit documentation in R/adapter.r \name{fetch_adapter} \alias{fetch_adapter} \title{Fetch a syberia IO adapter.} \usage{ fetch_adapter(keyword) } \arguments{ \item{keyword}{character. The keyword for the adapter (e.g., 'file', 's3', etc.)} } \value{ an ...
/man/fetch_adapter.Rd
permissive
kirillseva/syberiaStages
R
false
false
982
rd
% Generated by roxygen2 (4.0.2.9000): do not edit by hand % Please edit documentation in R/adapter.r \name{fetch_adapter} \alias{fetch_adapter} \title{Fetch a syberia IO adapter.} \usage{ fetch_adapter(keyword) } \arguments{ \item{keyword}{character. The keyword for the adapter (e.g., 'file', 's3', etc.)} } \value{ an ...
n = 100 # Sample size N0 = 1000000 # Population size mu = 1e-8 # number of mutations per generation per bp theta = 0.04 # Scaled mutation rate l = 10000 # number of base pairs alph = 7/(4*N0) #alph = 0 nloops = 200 xsi = matrix(0, ncol = (n-1)) for (il in 1:nloops) { gen =...
/Homeworks/A2/R/P2.R
no_license
mldmort/CSE-280A
R
false
false
2,189
r
n = 100 # Sample size N0 = 1000000 # Population size mu = 1e-8 # number of mutations per generation per bp theta = 0.04 # Scaled mutation rate l = 10000 # number of base pairs alph = 7/(4*N0) #alph = 0 nloops = 200 xsi = matrix(0, ncol = (n-1)) for (il in 1:nloops) { gen =...
foo_action <- function(x){ v <- x v[is.na(x)] <- 0 v <- 1*(v > 0) return(v) } construct_qlearning_ready_data <- function(){ # keep nb rows n <- nrow(tmp_) # learning dataset (tm was for transition matrix, but surely a better name would be suited) tm <- data.frame( 'daytime_0' = tmp_$daytime_d...
/construct_qlearning_ready_data.R
no_license
FredericLoge/diabetesPresc
R
false
false
989
r
foo_action <- function(x){ v <- x v[is.na(x)] <- 0 v <- 1*(v > 0) return(v) } construct_qlearning_ready_data <- function(){ # keep nb rows n <- nrow(tmp_) # learning dataset (tm was for transition matrix, but surely a better name would be suited) tm <- data.frame( 'daytime_0' = tmp_$daytime_d...
#Abrir librerías library(readxl) library(ggplot2) library(dplyr) # #Descargar archivo url <- paste0("http://www.supersociedades.gov.co/asuntos-economicos-y-contables/", "estudios-y-supervision-por-riesgos/SIREM/Documents/2015.zip") file <- "datos.zip" download.file(url, file) #Descomprimir archivo unzip(file) ...
/DB SuperFinanciera/analisis.R
permissive
eledero/RDatelligence
R
false
false
2,492
r
#Abrir librerías library(readxl) library(ggplot2) library(dplyr) # #Descargar archivo url <- paste0("http://www.supersociedades.gov.co/asuntos-economicos-y-contables/", "estudios-y-supervision-por-riesgos/SIREM/Documents/2015.zip") file <- "datos.zip" download.file(url, file) #Descomprimir archivo unzip(file) ...
library(forecast) ### Name: rwf ### Title: Naive and Random Walk Forecasts ### Aliases: rwf naive print.naive snaive ### Keywords: ts ### ** Examples gold.fcast <- rwf(gold[1:60], h=50) plot(gold.fcast) plot(naive(gold,h=50),include=200) plot(snaive(wineind))
/data/genthat_extracted_code/forecast/examples/naive.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
273
r
library(forecast) ### Name: rwf ### Title: Naive and Random Walk Forecasts ### Aliases: rwf naive print.naive snaive ### Keywords: ts ### ** Examples gold.fcast <- rwf(gold[1:60], h=50) plot(gold.fcast) plot(naive(gold,h=50),include=200) plot(snaive(wineind))
# Analyze correlation coeeficient score # Written by Son Doan, Nov, 2010 # Input, table include data by the following format # Year week no \t week no \t CDC \t GFT \ Total tweets \t Cullota_best \t Tweet-flu \t Syndromes \t Synd + Flu # Read input data data1 <- read.table('tmp-count') data <- read.table('dat.txt') #...
/report_score.R
no_license
sondoan/RCorellation
R
false
false
2,059
r
# Analyze correlation coeeficient score # Written by Son Doan, Nov, 2010 # Input, table include data by the following format # Year week no \t week no \t CDC \t GFT \ Total tweets \t Cullota_best \t Tweet-flu \t Syndromes \t Synd + Flu # Read input data data1 <- read.table('tmp-count') data <- read.table('dat.txt') #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Workout3.R \name{bin_variable} \alias{bin_variable} \title{Binomial Variable} \usage{ bin_variable(trials, prob) } \arguments{ \item{trials}{an integer with number of trials} \item{prob}{the probability of the success occur} } \value{ a 'bin...
/binomial/man/bin_variable.Rd
no_license
stat133-sp19/hw-stat133-H4O2
R
false
true
524
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Workout3.R \name{bin_variable} \alias{bin_variable} \title{Binomial Variable} \usage{ bin_variable(trials, prob) } \arguments{ \item{trials}{an integer with number of trials} \item{prob}{the probability of the success occur} } \value{ a 'bin...
textChooseDir <- function(path=".", pattern="[^~]$", ..., history=TRUE, verbose=FALSE) { # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Validate arguments # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Argument 'path': path <- Arguments$getReadablePat...
/R/textChooseDir.R
no_license
HenrikBengtsson/R.menu
R
false
false
4,147
r
textChooseDir <- function(path=".", pattern="[^~]$", ..., history=TRUE, verbose=FALSE) { # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Validate arguments # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Argument 'path': path <- Arguments$getReadablePat...
#' Plot 3D brain parcellations #' #' \code{ggseg3d} plots and returns a plotly mesh3d object. #' @author Athanasia Mowinckel and Didac Pineiro #' #' @param .data A data.frame to use for plot aesthetics. Must include a #' column called "region" corresponding to regions. #' @param atlas Either a string with the name of a...
/R/ggseg3d.R
permissive
muschellij2/ggseg3d
R
false
false
4,903
r
#' Plot 3D brain parcellations #' #' \code{ggseg3d} plots and returns a plotly mesh3d object. #' @author Athanasia Mowinckel and Didac Pineiro #' #' @param .data A data.frame to use for plot aesthetics. Must include a #' column called "region" corresponding to regions. #' @param atlas Either a string with the name of a...
rm(list=ls()) setwd("~/Studies/Peeking/Lids/Analysis") #---------------------------------------GRAPH1----------------------------# Graph1data=read.table(file="LidsAverages.txt",header=T) library(lme4) library(ggplot2) library(cowplot) bp1 <- ggplot(Graph1data, aes(x=Condition, y=score)) + stat_boxplot(geom ='error...
/from Elle/LidsPlots.R
no_license
cvoelter/info_seeking
R
false
false
4,332
r
rm(list=ls()) setwd("~/Studies/Peeking/Lids/Analysis") #---------------------------------------GRAPH1----------------------------# Graph1data=read.table(file="LidsAverages.txt",header=T) library(lme4) library(ggplot2) library(cowplot) bp1 <- ggplot(Graph1data, aes(x=Condition, y=score)) + stat_boxplot(geom ='error...
#' POST a full query to the REST API for Cosmos DB. #' #' @param sql.what String for specifying what fields to retrieve. Typically called select condition. Defaults to * #' @param sql.where String for specifying what filter to use on data. Typically called search condition. Defaults to empty. #' @param sql.orderby Str...
/R/cosmosQuery.R
permissive
kgmccann/cosmosR
R
false
false
3,616
r
#' POST a full query to the REST API for Cosmos DB. #' #' @param sql.what String for specifying what fields to retrieve. Typically called select condition. Defaults to * #' @param sql.where String for specifying what filter to use on data. Typically called search condition. Defaults to empty. #' @param sql.orderby Str...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{apps_get} \alias{apps_get} \title{List details of a Decision Application} \usage{ apps_get(slug) } \arguments{ \item{slug}{string required. The slug for the application.} } \value{ A list containing the following elem...
/man/apps_get.Rd
no_license
JosiahParry/civis-r
R
false
true
1,000
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/generated_client.R \name{apps_get} \alias{apps_get} \title{List details of a Decision Application} \usage{ apps_get(slug) } \arguments{ \item{slug}{string required. The slug for the application.} } \value{ A list containing the following elem...
# setwd() rm(list = ls()) library(dplyr) library(XML) api_key = "" options(scipen = 99) # 지수표기법 대신 숫자 그대로 표시 # 1. ISBN아동_2019년_9-11월_아리랑어린이도서관 인기대출도서 10개 데이터 로드 ## API 호출해 응답받은 xml 문서 파싱해 저장(도서명, ISBN, ISBN부가기호, 주제분류) lib_code = 111468 # 아리랑어린이도서관 코드 start_d = '2019-09-01' end_d = '2019-11-30' fileUrl = paste0('ht...
/191225_2019년11월 아리랑어린이도서관_데이터 수집,전처리,샘플결과도출/191225_handlingAPI_handlingList_DA(Textmining)_similarBooks.R
no_license
wesley-94/R_project_multicampus
R
false
false
6,835
r
# setwd() rm(list = ls()) library(dplyr) library(XML) api_key = "" options(scipen = 99) # 지수표기법 대신 숫자 그대로 표시 # 1. ISBN아동_2019년_9-11월_아리랑어린이도서관 인기대출도서 10개 데이터 로드 ## API 호출해 응답받은 xml 문서 파싱해 저장(도서명, ISBN, ISBN부가기호, 주제분류) lib_code = 111468 # 아리랑어린이도서관 코드 start_d = '2019-09-01' end_d = '2019-11-30' fileUrl = paste0('ht...
# Author: Rachel Oidtman # This script is to demonstrate the differences in revised estimates of p'_Z,c # and p'_Z,s when you calculate them at each time point versuse the aggregated # time series. #=============================================================================# # load data and libraries #=========...
/code/3b_data_aggregation_timeseries_PCR.R
no_license
roidtman/zika_misdiagnosis
R
false
false
7,990
r
# Author: Rachel Oidtman # This script is to demonstrate the differences in revised estimates of p'_Z,c # and p'_Z,s when you calculate them at each time point versuse the aggregated # time series. #=============================================================================# # load data and libraries #=========...
#=========================================== # Smart Metering Uncertainty Forecasting # # Author Estevao "Steve" Alvarenga # efsa@bath.edu # Created in 10/Feb/17 #------------------------------------------- # smuf_main combined functions optim & fcst #=========================================== #=============...
/smuf_runf_1023_IR_seaf10-4h.R
no_license
efsalvarenga/smuf_rdev
R
false
false
9,237
r
#=========================================== # Smart Metering Uncertainty Forecasting # # Author Estevao "Steve" Alvarenga # efsa@bath.edu # Created in 10/Feb/17 #------------------------------------------- # smuf_main combined functions optim & fcst #=========================================== #=============...
# # lines-hour-outlier.R, 16 Mar 14 # # Data from: # On the effectiveness of early life cycle defect prediction with Bayesian Nets # Norman Fenton and Martin Neil and William Marsh and Peter Hearty and {\L}ukasz Radli\'{n}ski and Paul Krause # # Example from: # Empirical Software Engineering using R # Derek M. Jones s...
/regression/misc/lines-hour-outlier.R
no_license
Derek-Jones/ESEUR-code-data
R
false
false
2,763
r
# # lines-hour-outlier.R, 16 Mar 14 # # Data from: # On the effectiveness of early life cycle defect prediction with Bayesian Nets # Norman Fenton and Martin Neil and William Marsh and Peter Hearty and {\L}ukasz Radli\'{n}ski and Paul Krause # # Example from: # Empirical Software Engineering using R # Derek M. Jones s...
library(tidyverse) #Information on APIs available at https://www.census.gov/data/developers/data-sets.html #Pull in data on vacancies by tract, ACS 15-19 Vacancies <- read.csv(file="https://api.census.gov/data/2019/acs/acs5?get=NAME,group(B25004)&for=tract:*&in=state:36%20county:005,047,061,081,085") #Clean file na...
/R/Eric's script for ACS API.R
no_license
ssanichar/SKILLGH
R
false
false
4,194
r
library(tidyverse) #Information on APIs available at https://www.census.gov/data/developers/data-sets.html #Pull in data on vacancies by tract, ACS 15-19 Vacancies <- read.csv(file="https://api.census.gov/data/2019/acs/acs5?get=NAME,group(B25004)&for=tract:*&in=state:36%20county:005,047,061,081,085") #Clean file na...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53817551737791e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615783564-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53817551737791e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
# This file is automatically generated, you probably don't want to edit this logRegOrdOptions <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class( "logRegOrdOptions", inherit = jmvcore::Options, public = list( initialize = function( dep = NULL, covs = NULL, ...
/R/logregord.h.R
no_license
jamovi/jmv
R
false
false
24,647
r
# This file is automatically generated, you probably don't want to edit this logRegOrdOptions <- if (requireNamespace("jmvcore", quietly=TRUE)) R6::R6Class( "logRegOrdOptions", inherit = jmvcore::Options, public = list( initialize = function( dep = NULL, covs = NULL, ...
library(readr) household_power_consumption <- read_delim("/Desktop/github/exdata%2Fdata%2Fhousehold_power_consumption/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) # Quality checks summary(household_power_consumption) table(househo...
/week1.R
no_license
thirumalahcu/ExData_Plotting1
R
false
false
2,963
r
library(readr) household_power_consumption <- read_delim("/Desktop/github/exdata%2Fdata%2Fhousehold_power_consumption/household_power_consumption.txt", ";", escape_double = FALSE, trim_ws = TRUE) # Quality checks summary(household_power_consumption) table(househo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_data_integrity.R \name{check_data_integrity} \alias{check_data_integrity} \title{Check data integrity} \usage{ check_data_integrity(x) } \arguments{ \item{x}{dataframe with at least colums lat, long and primary_fur_color} } \value{ Orig...
/man/check_data_integrity.Rd
permissive
statnmap/fusen.squirrels
R
false
true
600
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_data_integrity.R \name{check_data_integrity} \alias{check_data_integrity} \title{Check data integrity} \usage{ check_data_integrity(x) } \arguments{ \item{x}{dataframe with at least colums lat, long and primary_fur_color} } \value{ Orig...
#' Color palettes for professional sports teams #' #' @docType data #' @format A data frame with one row for each professional team and five variables: #' \describe{ #' \item{name}{the name of the team} #' \item{league}{the league in which the team plays} #' \item{primary}{the team's primary color} #' \item{second...
/R/data.R
no_license
joepope44/teamcolors
R
false
false
1,886
r
#' Color palettes for professional sports teams #' #' @docType data #' @format A data frame with one row for each professional team and five variables: #' \describe{ #' \item{name}{the name of the team} #' \item{league}{the league in which the team plays} #' \item{primary}{the team's primary color} #' \item{second...
#### Basics #### #Ex. 1 60 * 24 * 7 #Ex. 2 sum(1, 8, 4, 2, 9, 4, 8, 5) #Ex. 3 help(rep) ?rep #Ex. 4 x <- 5 y <- 7 z = x + y z + 3 == 15 #Ex. 5 rep("Go Penn!", times = 30) #Ex. 6 x <- seq(-1, 1, by = 0.1) x #### Harry Potter #### #Ex. 1 wizards <- c("Harry", "Ron", "Fred", "George", "Sirius") ranking <- c(4, 2, 5...
/Rtutorials/Rtutorial1.R
no_license
emallickhossain/Econ103Public
R
false
false
2,699
r
#### Basics #### #Ex. 1 60 * 24 * 7 #Ex. 2 sum(1, 8, 4, 2, 9, 4, 8, 5) #Ex. 3 help(rep) ?rep #Ex. 4 x <- 5 y <- 7 z = x + y z + 3 == 15 #Ex. 5 rep("Go Penn!", times = 30) #Ex. 6 x <- seq(-1, 1, by = 0.1) x #### Harry Potter #### #Ex. 1 wizards <- c("Harry", "Ron", "Fred", "George", "Sirius") ranking <- c(4, 2, 5...
#James Valles - Interactive app. Dataset is cat.csv, ensure the path is correct on line 8 before loading app. # You can launch the interactive app by visiting the following address: https://jamesvalles.shinyapps.io/Corona-19Stats/ library(shiny) library(readxl) library(datasets) #Import Covid19 Dataset Coviddata<-...
/Final Project DataViz/Graph files/JamesVallesShinyDashboard/corona/app.R
no_license
jamesvalles/COVID19-VISUALIZATIONS
R
false
false
1,579
r
#James Valles - Interactive app. Dataset is cat.csv, ensure the path is correct on line 8 before loading app. # You can launch the interactive app by visiting the following address: https://jamesvalles.shinyapps.io/Corona-19Stats/ library(shiny) library(readxl) library(datasets) #Import Covid19 Dataset Coviddata<-...
# 셀레늄 패키지와 rvest 패키지를 설치합니다. source("https://install-github.me/ropensci/RSelenium") install.packages("rvest") install.packages("dplyr") # 패키지를 불러서 사용할 준비를 합니다. library(RSelenium) library(rvest) library(dplyr) # phantomjs 브라우저를 사용합니다. pJS <- wdman::phantomjs(port = 4567L) Sys.sleep(5) # 컨트롤 드라이버를 연결합니다. remDr <- remot...
/R/코드_페이스북 크롤링.R
no_license
lunaseorim/1802
R
false
false
4,140
r
# 셀레늄 패키지와 rvest 패키지를 설치합니다. source("https://install-github.me/ropensci/RSelenium") install.packages("rvest") install.packages("dplyr") # 패키지를 불러서 사용할 준비를 합니다. library(RSelenium) library(rvest) library(dplyr) # phantomjs 브라우저를 사용합니다. pJS <- wdman::phantomjs(port = 4567L) Sys.sleep(5) # 컨트롤 드라이버를 연결합니다. remDr <- remot...
IVEstCVWeights2 <- function(beta, theta, H, ivest=1, sigma2v=1, N=23400, adjust=T, diagnose=F) { if (H==0) { return(numeric()) } if (exists("beta", mode="numeric")) { theta <- diff(c(0, beta, 0)) q <- length(theta) - 1 } else if (exists("theta", mode="numeric")) { ...
/IVEstCVWeights2.R
no_license
wangguansong/IVEstimators
R
false
false
2,279
r
IVEstCVWeights2 <- function(beta, theta, H, ivest=1, sigma2v=1, N=23400, adjust=T, diagnose=F) { if (H==0) { return(numeric()) } if (exists("beta", mode="numeric")) { theta <- diff(c(0, beta, 0)) q <- length(theta) - 1 } else if (exists("theta", mode="numeric")) { ...
# Subset of formatted density shade plots, with colors and with only 4 or 5 plots. # Edited 19 July to have the minimum rather than mean temperature displayed sites2use <- c('STEI','BART','KONZ','JORN') l1 <- labeller(siteID = c(STEI='Steigerwaldt', BART='Bartlett', KONZ='Konza', JORN='Jornada')) sites_temporder <- ne...
/code/vis/subsetdensityplot.r
no_license
NEON-biodiversity/mammalitv
R
false
false
3,378
r
# Subset of formatted density shade plots, with colors and with only 4 or 5 plots. # Edited 19 July to have the minimum rather than mean temperature displayed sites2use <- c('STEI','BART','KONZ','JORN') l1 <- labeller(siteID = c(STEI='Steigerwaldt', BART='Bartlett', KONZ='Konza', JORN='Jornada')) sites_temporder <- ne...
library(dplyr) library(tidyverse) library(readr) library(ggplot2) data <- read_csv("../data/lab_sodra.csv") data %>% filter(ecoActCode == 452000) %>% ggplot(aes(x = avgWage)) + geom_histogram(bins = 100) filtered2 <- data %>% filter(ecoActCode == 452000) %>% group_by(code) %>% summarise(suma = sum(avgWage)...
/laboratorinis/R/lab.R
no_license
Airidasurb/KTU-duomenu-vizualizacija
R
false
false
844
r
library(dplyr) library(tidyverse) library(readr) library(ggplot2) data <- read_csv("../data/lab_sodra.csv") data %>% filter(ecoActCode == 452000) %>% ggplot(aes(x = avgWage)) + geom_histogram(bins = 100) filtered2 <- data %>% filter(ecoActCode == 452000) %>% group_by(code) %>% summarise(suma = sum(avgWage)...
source('simData_methods.R') source('./RE-EM Forest/functions.R') library(REEMtree) library(gtools) library(rlist) library(caret) #GENERATE DATA # Date Structured as follows: X variables, y variable, patient/cluster variable #######################################################################################...
/Relevant/RE-EM Forest/reem_forest.R
no_license
dankojis/random-forest-extensions
R
false
false
5,005
r
source('simData_methods.R') source('./RE-EM Forest/functions.R') library(REEMtree) library(gtools) library(rlist) library(caret) #GENERATE DATA # Date Structured as follows: X variables, y variable, patient/cluster variable #######################################################################################...
library(igraph) ### Name: component_distribution ### Title: Connected components of a graph ### Aliases: component_distribution components no.clusters clusters ### is.connected cluster.distribution count_components is_connected ### Keywords: graphs ### ** Examples g <- sample_gnp(20, 1/20) clu <- components(g) g...
/data/genthat_extracted_code/igraph/examples/components.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
335
r
library(igraph) ### Name: component_distribution ### Title: Connected components of a graph ### Aliases: component_distribution components no.clusters clusters ### is.connected cluster.distribution count_components is_connected ### Keywords: graphs ### ** Examples g <- sample_gnp(20, 1/20) clu <- components(g) g...
library(qdap) ### Name: gantt_plot ### Title: Gantt Plot ### Aliases: gantt_plot ### Keywords: Gantt ### ** Examples ## Not run: ##D with(rajSPLIT, gantt_plot(text.var = dialogue, ##D grouping.var = person, size=4)) ##D ##D with(rajSPLIT, gantt_plot(text.var = dialogue, ##D grouping.var = list(fam.aff, se...
/data/genthat_extracted_code/qdap/examples/gantt_plot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,818
r
library(qdap) ### Name: gantt_plot ### Title: Gantt Plot ### Aliases: gantt_plot ### Keywords: Gantt ### ** Examples ## Not run: ##D with(rajSPLIT, gantt_plot(text.var = dialogue, ##D grouping.var = person, size=4)) ##D ##D with(rajSPLIT, gantt_plot(text.var = dialogue, ##D grouping.var = list(fam.aff, se...
rep1 <- function(x,val){ t(apply(x,1,vec2,val=val)) }
/R/rep1.R
no_license
frousseu/rNest
R
false
false
79
r
rep1 <- function(x,val){ t(apply(x,1,vec2,val=val)) }
# Custom functions are camelCase. Arrays, parameters, and arguments are PascalCase # Dependency functions are not embedded in master functions, and are marked with the flag dependency in the documentation # []-notation is used wherever possible, and $-notation is avoided. ######################################### Load...
/International_Formations_app.R
no_license
ItoErika/International_Formations_app
R
false
false
18,488
r
# Custom functions are camelCase. Arrays, parameters, and arguments are PascalCase # Dependency functions are not embedded in master functions, and are marked with the flag dependency in the documentation # []-notation is used wherever possible, and $-notation is avoided. ######################################### Load...
install.packages("lubridate") library(lubridate) install.packages("data.table") library(data.table) # path setwd("C:/tmp") # download data fileUrl <- "https://archive.ics.uci.edu/ml/machine-learning-databases/00235/household_power_consumption.zip" data <- tempfile() download.file(fileUrl, data) data <- unzip(...
/Plot1.R
no_license
s-w-o/ExData_Plotting1
R
false
false
711
r
install.packages("lubridate") library(lubridate) install.packages("data.table") library(data.table) # path setwd("C:/tmp") # download data fileUrl <- "https://archive.ics.uci.edu/ml/machine-learning-databases/00235/household_power_consumption.zip" data <- tempfile() download.file(fileUrl, data) data <- unzip(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OrnsteinUhlenbeckHalfLife.R \name{OrnsteinUhlenbeckHalfLife} \alias{OrnsteinUhlenbeckHalfLife} \title{Calculate Half-Life for Mean-Reversion} \usage{ OrnsteinUhlenbeckHalfLife(price.Ratio) } \arguments{ \item{price.Ratio}{price ratio between ...
/man/OrnsteinUhlenbeckHalfLife.Rd
permissive
elephann/RQuantTrader
R
false
true
748
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OrnsteinUhlenbeckHalfLife.R \name{OrnsteinUhlenbeckHalfLife} \alias{OrnsteinUhlenbeckHalfLife} \title{Calculate Half-Life for Mean-Reversion} \usage{ OrnsteinUhlenbeckHalfLife(price.Ratio) } \arguments{ \item{price.Ratio}{price ratio between ...
#' Worldplot #' #' Takes in a year vector of data and returns a map of the US or #' international countries that maps the geographical distribution of the datasets #' #' @param year The vector for the year that is to be mapped #' @param title The title of the plot and the name which it will be saved to #' @param US cho...
/R/worldplot.R
no_license
healthyred/mapstu
R
false
false
4,562
r
#' Worldplot #' #' Takes in a year vector of data and returns a map of the US or #' international countries that maps the geographical distribution of the datasets #' #' @param year The vector for the year that is to be mapped #' @param title The title of the plot and the name which it will be saved to #' @param US cho...
if (!dir.exists("summarazing data")){ dir.create("summarazing data") } setwd("./summarazing.data") URL<-"https://data.baltimorecity.gov/api/views/k5ry-ef3g/rows.csv?accessType=DOWNLOAD" download.file(URL,destfile="rest.csv",method="curl") rest<-read.csv("rest.csv") ### Summarizing Data ### head() ...
/03-getting-and-cleaning-data/notes/3.2 summarazing data.R
no_license
JethroAlba/Coursera-Data-Science-Spec
R
false
false
1,229
r
if (!dir.exists("summarazing data")){ dir.create("summarazing data") } setwd("./summarazing.data") URL<-"https://data.baltimorecity.gov/api/views/k5ry-ef3g/rows.csv?accessType=DOWNLOAD" download.file(URL,destfile="rest.csv",method="curl") rest<-read.csv("rest.csv") ### Summarizing Data ### head() ...
library(deSolve) library(ggplot2) l1 <- seq(100,0,by=-5) l2 <- seq(5,100,by=5) l3 <- seq(95,0,by=-5) l4 <- seq(5,100,by=5) input <- c(l1, l2, l3, l4) START<-0; FINISH<-20; STEP<-0.25 simtime <- seq(START, FINISH, by=STEP) stocks <- c(sStock=100) auxs <- c(aOutflow=50) model <- function(time, stocks, auxs){ w...
/lectures/CT561/models/08 Lecture/Stock Example.R
permissive
mohammad-miftakhus-sholikin/SDMR
R
false
false
802
r
library(deSolve) library(ggplot2) l1 <- seq(100,0,by=-5) l2 <- seq(5,100,by=5) l3 <- seq(95,0,by=-5) l4 <- seq(5,100,by=5) input <- c(l1, l2, l3, l4) START<-0; FINISH<-20; STEP<-0.25 simtime <- seq(START, FINISH, by=STEP) stocks <- c(sStock=100) auxs <- c(aOutflow=50) model <- function(time, stocks, auxs){ w...
numPerPatch68000 <- c(2516,2484)
/NatureEE-data-archive/Run203121/JAFSdata/JAFSnumPerPatch68000.R
no_license
flaxmans/NatureEE2017
R
false
false
33
r
numPerPatch68000 <- c(2516,2484)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{HIV_Simu_Dataset_Delta025} \alias{HIV_Simu_Dataset_Delta025} \title{HIV RNA Load Simulated Data for Delta AUC = -0.25} \format{ A data frame with 4 columns and 1000 rows: \tabular{ll}{ \code{id} \tab The subject id...
/man/HIV_Simu_Dataset_Delta025.Rd
permissive
marie-alexandre/AUCcomparison
R
false
true
1,261
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{HIV_Simu_Dataset_Delta025} \alias{HIV_Simu_Dataset_Delta025} \title{HIV RNA Load Simulated Data for Delta AUC = -0.25} \format{ A data frame with 4 columns and 1000 rows: \tabular{ll}{ \code{id} \tab The subject id...
getType = function(object) UseMethod("getType") getType.default = function(x) { stop("Invalid object. Must supply relationship or graph object.") } getType.graph = function(graph) { url = attr(graph, "relationship_types") headers = setHeaders(graph) response = http_request(url, "GET", "OK", httpheader=headers...
/R/getType.R
permissive
noelnamai/RNeo4j
R
false
false
440
r
getType = function(object) UseMethod("getType") getType.default = function(x) { stop("Invalid object. Must supply relationship or graph object.") } getType.graph = function(graph) { url = attr(graph, "relationship_types") headers = setHeaders(graph) response = http_request(url, "GET", "OK", httpheader=headers...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check.class.R \name{check.class} \alias{check.class} \title{Function to check whether obj belongs to class or is a list of class (if list.of.class==TRUE)} \usage{ check.class(obj, class, list.of.class = TRUE) } \description{ Function to check...
/man/check.class.Rd
no_license
tshmak/crosspred
R
false
true
418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check.class.R \name{check.class} \alias{check.class} \title{Function to check whether obj belongs to class or is a list of class (if list.of.class==TRUE)} \usage{ check.class(obj, class, list.of.class = TRUE) } \description{ Function to check...
dir <- 'C:/OneDrive/RCoursera_specialization/04_ExploratoryDataAnalysis/CP1/exdata-data-household_power_consumption/' setwd(dir) power <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", stringsAsFactors=FALSE) power <- power[grep('^1/2/2007|^2/2/2007',power$Date), ] par(mfrow = c(2,2)) power$week...
/plot4.R
no_license
gonzalezivan90/ExData_Plotting1
R
false
false
2,826
r
dir <- 'C:/OneDrive/RCoursera_specialization/04_ExploratoryDataAnalysis/CP1/exdata-data-household_power_consumption/' setwd(dir) power <- read.csv("household_power_consumption.txt", sep=";", na.strings="?", stringsAsFactors=FALSE) power <- power[grep('^1/2/2007|^2/2/2007',power$Date), ] par(mfrow = c(2,2)) power$week...
## from Chapter 23 of R for Data Science ## Model Basics library(modelr) ## includes sim1 data set options(na.action = na.warn) # EDA tools library(tidyverse) ## another way to generate a sim data set, linear with wiggles... ## simple, used to help understand basics of modeling... true_model <- function(x) { 1...
/scripts/RDS_Chap23_Model-Basics.R
no_license
brusko/learningR
R
false
false
2,325
r
## from Chapter 23 of R for Data Science ## Model Basics library(modelr) ## includes sim1 data set options(na.action = na.warn) # EDA tools library(tidyverse) ## another way to generate a sim data set, linear with wiggles... ## simple, used to help understand basics of modeling... true_model <- function(x) { 1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/io.R \name{loadirradiations} \alias{loadirradiations} \title{Load the irradiation schedule} \usage{ loadirradiations(fname) } \arguments{ \item{fname}{file name (in .csv format)} } \value{ a list of irradiations, where each irradiation is a n...
/man/loadirradiations.Rd
no_license
pvermees/ArArRedux
R
false
true
723
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/io.R \name{loadirradiations} \alias{loadirradiations} \title{Load the irradiation schedule} \usage{ loadirradiations(fname) } \arguments{ \item{fname}{file name (in .csv format)} } \value{ a list of irradiations, where each irradiation is a n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matching.R \name{matches} \alias{matches} \alias{match-SMARTS} \title{matches} \usage{ matches(query, target, return.matches = FALSE) } \arguments{ \item{query}{Required. A SMARTSQuery} \item{target}{Required. The molecule to query. Should b...
/man/matches.Rd
no_license
cran/rcdk
R
false
true
449
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matching.R \name{matches} \alias{matches} \alias{match-SMARTS} \title{matches} \usage{ matches(query, target, return.matches = FALSE) } \arguments{ \item{query}{Required. A SMARTSQuery} \item{target}{Required. The molecule to query. Should b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Boxp2.R \name{aovMuiBoxP2} \alias{aovMuiBoxP2} \title{Variance test or non-parametric test results visualization, using boxplot paired line show pair com...} \usage{ aovMuiBoxP2( data = data_wt, i = 3, sig_show = "line", result = resu...
/man/aovMuiBoxP2.Rd
no_license
WatsonWoo/EasyStat
R
false
true
1,371
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Boxp2.R \name{aovMuiBoxP2} \alias{aovMuiBoxP2} \title{Variance test or non-parametric test results visualization, using boxplot paired line show pair com...} \usage{ aovMuiBoxP2( data = data_wt, i = 3, sig_show = "line", result = resu...
/Forbrugsdata/andre_indkomstgrupper.R
permissive
Anaconda95/SpecialeJR
R
false
false
2,142
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appregistry_operations.R \name{appregistry_sync_resource} \alias{appregistry_sync_resource} \title{Syncs the resource with what is currently recorded in App registry} \usage{ appregistry_sync_resource(resourceType, resource) } \arguments{ \it...
/paws/man/appregistry_sync_resource.Rd
permissive
sanchezvivi/paws
R
false
true
1,056
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appregistry_operations.R \name{appregistry_sync_resource} \alias{appregistry_sync_resource} \title{Syncs the resource with what is currently recorded in App registry} \usage{ appregistry_sync_resource(resourceType, resource) } \arguments{ \it...
#Athor: Viwe_Mabongo #Date: 22 April 2021 #Day_4_Session library(tidyverse) str(data) Input <- (" Student Sex Teacher Steps Rating a female Jacob 8000 7 b female Jacob 9000 10 c female Jacob 10000 9 d female Jacob 7000 5 e female Jacob 6000 4 f ...
/Day_4.R
no_license
ViweMabongo/Biostats_2021
R
false
false
2,946
r
#Athor: Viwe_Mabongo #Date: 22 April 2021 #Day_4_Session library(tidyverse) str(data) Input <- (" Student Sex Teacher Steps Rating a female Jacob 8000 7 b female Jacob 9000 10 c female Jacob 10000 9 d female Jacob 7000 5 e female Jacob 6000 4 f ...
source(Sys.getenv('RESULTS_BASE_PARTIAL')) source(Sys.getenv('RESULTS_DISPLAY_PARTIAL')) library(argparse) library(lubridate, warn.conflicts = FALSE) library(wombat) library(ncdf4) parser <- ArgumentParser() parser$add_argument('--control-emissions') parser$add_argument('--perturbations') parser$add_argument('--xco2-d...
/4_results/src/sensitivities.R
no_license
mbertolacci/wombat-paper
R
false
false
6,245
r
source(Sys.getenv('RESULTS_BASE_PARTIAL')) source(Sys.getenv('RESULTS_DISPLAY_PARTIAL')) library(argparse) library(lubridate, warn.conflicts = FALSE) library(wombat) library(ncdf4) parser <- ArgumentParser() parser$add_argument('--control-emissions') parser$add_argument('--perturbations') parser$add_argument('--xco2-d...
library(aiRthermo) ### Name: moistAdiabaticLapseRate ### Title: Moist Adiabatic Lapse Rate ### Aliases: moistAdiabaticLapseRate ### Keywords: Functions ### ** Examples data(RadiosondeA) aws<-RadiosondeA[,6]/1000 moistAdiabaticLapseRate(aws)
/data/genthat_extracted_code/aiRthermo/examples/moistAdiabaticLapseRate.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
248
r
library(aiRthermo) ### Name: moistAdiabaticLapseRate ### Title: Moist Adiabatic Lapse Rate ### Aliases: moistAdiabaticLapseRate ### Keywords: Functions ### ** Examples data(RadiosondeA) aws<-RadiosondeA[,6]/1000 moistAdiabaticLapseRate(aws)
#' Sample non-mutated sites and extract mutations in region of interest. #' #' @param snv.mutations.file SNV mutations MAF file. #' @param indel.mutations.file Indel mutations MAF file. #' @param mask.regions.file Regions to mask in genome, for example, non-mappable regions/immunoglobin loci/CDS regions RDS file, ...
/MutSpot_Rpackage/R/sample.sites.R
no_license
danchubb/hg38MutSpot
R
false
false
21,759
r
#' Sample non-mutated sites and extract mutations in region of interest. #' #' @param snv.mutations.file SNV mutations MAF file. #' @param indel.mutations.file Indel mutations MAF file. #' @param mask.regions.file Regions to mask in genome, for example, non-mappable regions/immunoglobin loci/CDS regions RDS file, ...
library(shiny) shinyUI(fluidPage( titlePanel("Create a checkboxGroupInput and a RadioButtons widget from a CSV"), sidebarLayout( sidebarPanel(fileInput(inputId = "CheckListFile", label = "Upload list of options")), mainPanel(uiOutput("CustomCheckList") ) ) ))
/ui.R
no_license
debarros/CSVtoChecklist
R
false
false
278
r
library(shiny) shinyUI(fluidPage( titlePanel("Create a checkboxGroupInput and a RadioButtons widget from a CSV"), sidebarLayout( sidebarPanel(fileInput(inputId = "CheckListFile", label = "Upload list of options")), mainPanel(uiOutput("CustomCheckList") ) ) ))
## https://data.giss.nasa.gov/gistemp/ az adatok forrása teljes <- read.csv("NH.Ts+dSST.csv", skip=1) teljes[1,14] éves <- as.numeric(as.character(teljes[, "J.D"])) plot(éves) temp.df <- data.frame(ido = 1880:2018,t = éves) temp.df <- temp.df[-nrow(temp.df),] # Nem-paraméteres módszer lokális regresszió temp.lowess <- ...
/idosor.R
no_license
kaliczp/Modell2018Intro
R
false
false
1,263
r
## https://data.giss.nasa.gov/gistemp/ az adatok forrása teljes <- read.csv("NH.Ts+dSST.csv", skip=1) teljes[1,14] éves <- as.numeric(as.character(teljes[, "J.D"])) plot(éves) temp.df <- data.frame(ido = 1880:2018,t = éves) temp.df <- temp.df[-nrow(temp.df),] # Nem-paraméteres módszer lokális regresszió temp.lowess <- ...
fileName <- 'household_power_consumption.txt' # load file if it is not already there if (!file.exists(fileName)) { download.file('https://d396qusza40orc.cloudfront.net/exdata/data/household_power_consumption.zip','household_power_consumption.zip',method='curl') unzip('household_power_consumption.zip') } # iden...
/plot1.R
no_license
gregbox515aws/ExData_Plotting1
R
false
false
1,064
r
fileName <- 'household_power_consumption.txt' # load file if it is not already there if (!file.exists(fileName)) { download.file('https://d396qusza40orc.cloudfront.net/exdata/data/household_power_consumption.zip','household_power_consumption.zip',method='curl') unzip('household_power_consumption.zip') } # iden...
get_catalog_nhanes <- function( data_name = "nhanes" , output_dir , ... ){ data_page <- "https://wwwn.cdc.gov/nchs/nhanes/search/DataPage.aspx" data_html <- xml2::read_html( data_page ) this_table <- rvest::html_table( data_html )[[1]] #changed from [[2]] to allow download to work names( this_table ) <- c(...
/R/nhanes.R
no_license
seanofahey/lodown
R
false
false
3,489
r
get_catalog_nhanes <- function( data_name = "nhanes" , output_dir , ... ){ data_page <- "https://wwwn.cdc.gov/nchs/nhanes/search/DataPage.aspx" data_html <- xml2::read_html( data_page ) this_table <- rvest::html_table( data_html )[[1]] #changed from [[2]] to allow download to work names( this_table ) <- c(...
#################################################################################################################################### ### Filename: plot.R ### Description: Function for plotting the profiles only when one whole- and one subplot factor are used. ### ### ### #######################################...
/HRM/R/plot.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
3,106
r
#################################################################################################################################### ### Filename: plot.R ### Description: Function for plotting the profiles only when one whole- and one subplot factor are used. ### ### ### #######################################...
# ckglob --- if global prefix, mark lines to be affected integer function ckglob (lin, i, status) character lin (MAXLINE) integer i, status include SE_COMMON integer line, usepat, usemark, tmp integer defalt, match, optpat, getkn pointer k logical intrpt, brkflag status = OK usepat = E...
/swt/src/spc/se.u/source/ckglob.r
no_license
arnoldrobbins/gt-swt
R
false
false
2,336
r
# ckglob --- if global prefix, mark lines to be affected integer function ckglob (lin, i, status) character lin (MAXLINE) integer i, status include SE_COMMON integer line, usepat, usemark, tmp integer defalt, match, optpat, getkn pointer k logical intrpt, brkflag status = OK usepat = E...
library(sperrorest) ### Name: add.distance ### Title: Add distance information to resampling objects ### Aliases: add.distance add.distance.resampling ### add.distance.represampling ### ** Examples data(ecuador) # Muenchow et al. (2012), see ?ecuador nsp.parti <- partition_cv(ecuador) sp.parti <- partition_kmeans...
/data/genthat_extracted_code/sperrorest/examples/add.distance.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
629
r
library(sperrorest) ### Name: add.distance ### Title: Add distance information to resampling objects ### Aliases: add.distance add.distance.resampling ### add.distance.represampling ### ** Examples data(ecuador) # Muenchow et al. (2012), see ?ecuador nsp.parti <- partition_cv(ecuador) sp.parti <- partition_kmeans...
#' Save PubMed files #' #' Save PubMed files as unparsed XML in ".txt" files, so that user can choose to parse with `XML` or `xml2` packages. #' #' @param pubmed_data Character vector of unparsed XML with root node "PubmedArticleSet". Generally the output of \code{\link{batch_fetch_pubmed_records}}. #' @param dir Direc...
/R/write_pubmed_files.R
no_license
maia-sh/pubmedparser
R
false
false
1,296
r
#' Save PubMed files #' #' Save PubMed files as unparsed XML in ".txt" files, so that user can choose to parse with `XML` or `xml2` packages. #' #' @param pubmed_data Character vector of unparsed XML with root node "PubmedArticleSet". Generally the output of \code{\link{batch_fetch_pubmed_records}}. #' @param dir Direc...
context("model-methods") set_cmdstan_path() mod <- cmdstan_model(testing_stan_file("bernoulli_log_lik"), force_recompile = TRUE) data_list <- testing_data("bernoulli") fit <- mod$sample(data = data_list, chains = 1) test_that("Methods error if not compiled", { skip_if(os_is_wsl()) expect_error( fit$log_prob(N...
/tests/testthat/test-model-methods.R
permissive
stan-dev/cmdstanr
R
false
false
9,603
r
context("model-methods") set_cmdstan_path() mod <- cmdstan_model(testing_stan_file("bernoulli_log_lik"), force_recompile = TRUE) data_list <- testing_data("bernoulli") fit <- mod$sample(data = data_list, chains = 1) test_that("Methods error if not compiled", { skip_if(os_is_wsl()) expect_error( fit$log_prob(N...
#install.packages("lubridate") library(lubridate) #install.packages("dplyr") library(dplyr) s <- "C:\\Users\\khush\\Documents\\IP\\Weather Data\\" files <- list.files(s, pattern="*.csv", full.names=TRUE, recursive = TRUE) fname = "C:/Users/khush/Documents/IP/Weather_West.csv" #Assign Date and Hour for (f...
/Weather code (1).R
no_license
khushbu3apr/Towards-enhancing-grid-reliability-A-framework-to-forecast-electricity-demand-growth
R
false
false
6,799
r
#install.packages("lubridate") library(lubridate) #install.packages("dplyr") library(dplyr) s <- "C:\\Users\\khush\\Documents\\IP\\Weather Data\\" files <- list.files(s, pattern="*.csv", full.names=TRUE, recursive = TRUE) fname = "C:/Users/khush/Documents/IP/Weather_West.csv" #Assign Date and Hour for (f...
## Script to organize streamflow data ## # Preliminaries - packages, directory if (!require("pacman")) install.packages("pacman") pacman::p_load(imputeTS, Hmisc, rio, plyr, dplyr, xlsx) mydir <- setwd('D:/THESIS_PP') # Load streamflow data in xls and converts to csv loadcsv <- function(datadir){ setwd (...
/R/07a_PP_OrganizeStreamflow.R
no_license
arnanaraza/streamflow
R
false
false
914
r
## Script to organize streamflow data ## # Preliminaries - packages, directory if (!require("pacman")) install.packages("pacman") pacman::p_load(imputeTS, Hmisc, rio, plyr, dplyr, xlsx) mydir <- setwd('D:/THESIS_PP') # Load streamflow data in xls and converts to csv loadcsv <- function(datadir){ setwd (...
# Here you can write everything! This is a comment! # R code for plotting the relationship among ecological variables # install.packages is used to install packages install.packages("sp") library(sp) # data is used to recall datasets data(meuse) # llok inside the set! meuse View(meuse) # it might not work for mac...
/R_ecological_relationship.r
no_license
elhamkakaei2020/Monitoring_2021
R
false
false
2,209
r
# Here you can write everything! This is a comment! # R code for plotting the relationship among ecological variables # install.packages is used to install packages install.packages("sp") library(sp) # data is used to recall datasets data(meuse) # llok inside the set! meuse View(meuse) # it might not work for mac...
## Test functions ## add <- function(x, y) { xy.sum <- x + y # local var return(xy.sum) } ## mod <- Module('testAdd') ## fun <- Function('Add', DoubleType, c(x=DoubleType, y=DoubleType), mod) ## block <- Block(fun) ## ir <- IRBuilder(block) ## params <- getParameters(fun) ## xy.sum <- createLocalVariable(ir, Double...
/Rtests/compile.R
no_license
duncantl/RLLVMCompile
R
false
false
507
r
## Test functions ## add <- function(x, y) { xy.sum <- x + y # local var return(xy.sum) } ## mod <- Module('testAdd') ## fun <- Function('Add', DoubleType, c(x=DoubleType, y=DoubleType), mod) ## block <- Block(fun) ## ir <- IRBuilder(block) ## params <- getParameters(fun) ## xy.sum <- createLocalVariable(ir, Double...
ui <- fluidPage( h1("Word Cloud"), sidebarLayout( sidebarPanel( radioButtons( inputId = "source", label = "Word source", choices = c( "Art of War" = "book", "Use your own words" = "own", ...
/shiny/wordcloud conditional input panel.R
no_license
jyeazell/DataCamp_practice
R
false
false
1,795
r
ui <- fluidPage( h1("Word Cloud"), sidebarLayout( sidebarPanel( radioButtons( inputId = "source", label = "Word source", choices = c( "Art of War" = "book", "Use your own words" = "own", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/resource_id.R \name{resource_id} \alias{resource_id} \title{Resource classifier} \usage{ resource_id(eventlog) } \arguments{ \item{eventlog}{An object of class \code{eventlog}.} } \description{ Get the resource classifier of an object of clas...
/man/resource_id.Rd
no_license
bbrewington/edeaR
R
false
true
517
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/resource_id.R \name{resource_id} \alias{resource_id} \title{Resource classifier} \usage{ resource_id(eventlog) } \arguments{ \item{eventlog}{An object of class \code{eventlog}.} } \description{ Get the resource classifier of an object of clas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SiteUpdateDTO.r \docType{data} \name{SiteUpdateDTO} \alias{SiteUpdateDTO} \title{SiteUpdateDTO Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ SiteUpdateDTO } \description{ SiteUpdateDTO Class } \section{Field...
/man/SiteUpdateDTO.Rd
no_license
OpenSILEX/opensilexClientToolsR
R
false
true
566
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SiteUpdateDTO.r \docType{data} \name{SiteUpdateDTO} \alias{SiteUpdateDTO} \title{SiteUpdateDTO Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ SiteUpdateDTO } \description{ SiteUpdateDTO Class } \section{Field...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cairo--.R \name{cairo_text_extents} \alias{cairo_text_extents} \title{cairo_text_extents} \usage{ cairo_text_extents(cr, utf8, extents) } \arguments{ \item{cr}{[\code{cairo_t *}] a #cairo_t} \item{utf8}{[\code{char *}] a NUL-terminated strin...
/man/cairo_text_extents.Rd
permissive
coolbutuseless/cairocore
R
false
true
4,648
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cairo--.R \name{cairo_text_extents} \alias{cairo_text_extents} \title{cairo_text_extents} \usage{ cairo_text_extents(cr, utf8, extents) } \arguments{ \item{cr}{[\code{cairo_t *}] a #cairo_t} \item{utf8}{[\code{char *}] a NUL-terminated strin...
#Script for course project 1 #load the data table library library(data.table) library(tidyr) library(lubridate) url <- c("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip") zip_download <- c("power_consumption.zip") if(!file.exists(zip_download)) { download.file(url, zip_...
/plot3.R
no_license
RobertCazaciuc/ExploratoryDataWeek1
R
false
false
2,092
r
#Script for course project 1 #load the data table library library(data.table) library(tidyr) library(lubridate) url <- c("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip") zip_download <- c("power_consumption.zip") if(!file.exists(zip_download)) { download.file(url, zip_...
# Install packages install.packages("rvest") install.packages("dplyr") # Use libraries library(rvest) library(dplyr) # HTTP GET web page web_page <- read_html("https://www.doctoroncall.com.my/coronavirus") # Iterate over case statuses confirmed_cases <- web_page %>% html_node(".stats-number-pink") %>% html_text(...
/scraper.R
no_license
hafizio/r-web-scraping
R
false
false
721
r
# Install packages install.packages("rvest") install.packages("dplyr") # Use libraries library(rvest) library(dplyr) # HTTP GET web page web_page <- read_html("https://www.doctoroncall.com.my/coronavirus") # Iterate over case statuses confirmed_cases <- web_page %>% html_node(".stats-number-pink") %>% html_text(...
context("get_albums") # set album id id <- 337082 test_that("get_album returns the right output formats", { skip_on_cran() skip_if_offline() output <- get_album(album_id = id) expect_is(output, "genius_album") expect_equal(output$content$id, id) }) test_that("album_to_df returns the right output formats"...
/tests/testthat/test-get_albums.R
no_license
redapemusic35/geniusr
R
false
false
1,802
r
context("get_albums") # set album id id <- 337082 test_that("get_album returns the right output formats", { skip_on_cran() skip_if_offline() output <- get_album(album_id = id) expect_is(output, "genius_album") expect_equal(output$content$id, id) }) test_that("album_to_df returns the right output formats"...
######## Helper functions################### #' @method extractVars extCode #' @rdname internalFunctions #' @export extractVars.extCode <- function(x) { x$varDef$varName[!is.na(x$varDef$precision)] } ############# extCode definition############## createExtCode <- function(opt) { levelNum = length(opt) + 1 ext...
/R/extCodeManager.R
no_license
Jiefei-Wang/gpuMagic
R
false
false
10,001
r
######## Helper functions################### #' @method extractVars extCode #' @rdname internalFunctions #' @export extractVars.extCode <- function(x) { x$varDef$varName[!is.na(x$varDef$precision)] } ############# extCode definition############## createExtCode <- function(opt) { levelNum = length(opt) + 1 ext...
#5歳階級 人口 棒グラフ ################################################## #データ準備 #大阪市HPから推計人口 5歳階級のcsv取得 #Numbersで2017年11月と2017年12月分のデータ削除 #Rでそのファイルを読み込んで男女計の計のみをファイルに書き出し data <- read.csv("20180101.csv", stringsAsFactors=F) data_total <- data %>% filter(data$男女計=="計") write.csv(data_total, "20180101_total.csv") #Rの変数は数字・記号か...
/5歳階級棒グラフ.R
no_license
tadakazu1972/R_tips
R
false
false
1,589
r
#5歳階級 人口 棒グラフ ################################################## #データ準備 #大阪市HPから推計人口 5歳階級のcsv取得 #Numbersで2017年11月と2017年12月分のデータ削除 #Rでそのファイルを読み込んで男女計の計のみをファイルに書き出し data <- read.csv("20180101.csv", stringsAsFactors=F) data_total <- data %>% filter(data$男女計=="計") write.csv(data_total, "20180101_total.csv") #Rの変数は数字・記号か...
button_accept <- "color: rgba(0, 0, 0, 0.5); background-color: #00a65a; width: 100%; margin: auto; height: 60px; border-color:#00a65a; font-size: 30px" button_decline <-...
/www/styling.R
no_license
BerriJ/access_app
R
false
false
1,046
r
button_accept <- "color: rgba(0, 0, 0, 0.5); background-color: #00a65a; width: 100%; margin: auto; height: 60px; border-color:#00a65a; font-size: 30px" button_decline <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/div.R \name{Terms2formula} \alias{Terms2formula} \title{Model formula from vector of terms where intercept is specified as a string} \usage{ Terms2formula(x, intercept = "(Intercept)", env = parent.frame()) } \arguments{ \item{x}{Character ve...
/man/Terms2formula.Rd
permissive
olangsrud/experimentalRpackage
R
false
true
758
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/div.R \name{Terms2formula} \alias{Terms2formula} \title{Model formula from vector of terms where intercept is specified as a string} \usage{ Terms2formula(x, intercept = "(Intercept)", env = parent.frame()) } \arguments{ \item{x}{Character ve...
#' Factor/ordered factor S3 class #' #' A [factor] is an integer with attribute `levels`, a character vector. There #' should be one level for each integer between 1 and `max(x)`. #' An [ordered] factor has the same properties as a factor, but possesses #' an extra class that marks levels as having a total ordering. #'...
/R/type-factor.R
no_license
trinker/vctrs
R
false
false
6,374
r
#' Factor/ordered factor S3 class #' #' A [factor] is an integer with attribute `levels`, a character vector. There #' should be one level for each integer between 1 and `max(x)`. #' An [ordered] factor has the same properties as a factor, but possesses #' an extra class that marks levels as having a total ordering. #'...
library(igraph) ### Name: scg_semi_proj ### Title: Semi-Projectors ### Aliases: scg_semi_proj scgSemiProjectors ### ** Examples library(Matrix) # compute the semi-projectors and projector for the partition # provided by a community detection method g <- sample_pa(20, m = 1.5, directed = FALSE) eb <- cluster_edge_b...
/data/genthat_extracted_code/igraph/examples/scg_semi_proj.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
780
r
library(igraph) ### Name: scg_semi_proj ### Title: Semi-Projectors ### Aliases: scg_semi_proj scgSemiProjectors ### ** Examples library(Matrix) # compute the semi-projectors and projector for the partition # provided by a community detection method g <- sample_pa(20, m = 1.5, directed = FALSE) eb <- cluster_edge_b...
library(sf) library(fasterize) # devtools::install_github("ecohealthalliance/fasterize") library(raster) library(dplyr) source("src/R/common.R") ### STEP 1: create a polygon file with better labeling # sp_id includes antarctica regions that are not 213, but # is otherwise confusing. # Plus, there are some regions ar...
/globalprep/spatial/v2017/spatial_manip_v3.R
no_license
OHI-Science/ohiprep_v2018
R
false
false
7,206
r
library(sf) library(fasterize) # devtools::install_github("ecohealthalliance/fasterize") library(raster) library(dplyr) source("src/R/common.R") ### STEP 1: create a polygon file with better labeling # sp_id includes antarctica regions that are not 213, but # is otherwise confusing. # Plus, there are some regions ar...
#Rebecca Lews #Course Project Preliminary Analysis # read in final prepped dataset library(ggplot2) library(dplyr) library(scales) library(funModeling) library(Hmisc) library(corrplot) # set strings as factors to false options(stringsAsFactors = FALSE) #read in data final_data <- read.csv('FinalD...
/Scripts/LewisRebecca_Analysis.R
no_license
RebeccaLewis-DS/dsc630-finalproject
R
false
false
14,411
r
#Rebecca Lews #Course Project Preliminary Analysis # read in final prepped dataset library(ggplot2) library(dplyr) library(scales) library(funModeling) library(Hmisc) library(corrplot) # set strings as factors to false options(stringsAsFactors = FALSE) #read in data final_data <- read.csv('FinalD...
# Yige Wu @ WashU 2019 Feb ## show the different sites are regulated in the same kinase-substrate protein pair in different cancers # source------------------------- wd <- getwd() if (wd != "/Users/yigewu/Box Sync") { setwd("/Users/yigewu/Box Sync") } source('./cptac2p_analysis/phospho_network/phospho_network_share...
/phospho_network/regression/figures/grid_different_sites_same_pair_pro.R
no_license
ding-lab/phospho-signaling
R
false
false
4,836
r
# Yige Wu @ WashU 2019 Feb ## show the different sites are regulated in the same kinase-substrate protein pair in different cancers # source------------------------- wd <- getwd() if (wd != "/Users/yigewu/Box Sync") { setwd("/Users/yigewu/Box Sync") } source('./cptac2p_analysis/phospho_network/phospho_network_share...
\name{huePosition} \alias{huePosition} \title{Munsell Hue Position for Soil Color Description} \description{Munsell hues are typically arranged from 5R to 5PB in Munsell soil color books. This function matches a vector of Munsell hues to the position in this arrangement of 29 hues.} \usage{ huePosition(x, returnHues=...
/man/huePosition.Rd
no_license
rsbivand/aqp
R
false
false
1,103
rd
\name{huePosition} \alias{huePosition} \title{Munsell Hue Position for Soil Color Description} \description{Munsell hues are typically arranged from 5R to 5PB in Munsell soil color books. This function matches a vector of Munsell hues to the position in this arrangement of 29 hues.} \usage{ huePosition(x, returnHues=...
06e5a2f2bf894df70f5ad92c00d16280 tlc02-uniform-depth-27.qdimacs 6413 16904
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Miller-Marin/trafficlight-controller/tlc02-uniform-depth-27/tlc02-uniform-depth-27.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
74
r
06e5a2f2bf894df70f5ad92c00d16280 tlc02-uniform-depth-27.qdimacs 6413 16904
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.na.R \name{is.na} \alias{is.na} \title{fun_name} \usage{ is.na(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{Ktos} \keyword{Odwiedzam} \keyword{beka} \keyword{chlop} \keyword{czlowieka,...
/man/is.na.Rd
no_license
granatb/RapeR
R
false
true
434
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/is.na.R \name{is.na} \alias{is.na} \title{fun_name} \usage{ is.na(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{Ktos} \keyword{Odwiedzam} \keyword{beka} \keyword{chlop} \keyword{czlowieka,...
#matrice simple operations solved example 2.8.3 #create a matrice X = matrix( c(9, 4, 3, 1, 8, 12), nrow=3, ncol=2) # Define the column and row names. rownames = c("A", "B", "C") colnames = c("c1", "c2") X = matrix( c(2, 4, 3, 1, 5, 7), nrow=3, ncol=2,dimnames = list(rownames, colna...
/Ex.2_8_3.r
no_license
himanshu6980/RSolvedProblems
R
false
false
723
r
#matrice simple operations solved example 2.8.3 #create a matrice X = matrix( c(9, 4, 3, 1, 8, 12), nrow=3, ncol=2) # Define the column and row names. rownames = c("A", "B", "C") colnames = c("c1", "c2") X = matrix( c(2, 4, 3, 1, 5, 7), nrow=3, ncol=2,dimnames = list(rownames, colna...
test_that("ms_lines works with all classes", { out_json <- ms_lines(innerlines_poly) expect_s3_class(out_json, "json") expect_snapshot_value(out_json, style = "json2") expect_s3_class(ms_lines(unclass(innerlines_poly)), "geojson") expected_sp <- GeoJSON_to_sp(out_json) expect_equivalent(ms_lines(innerlines...
/tests/testthat/test-lines.R
permissive
ateucher/rmapshaper
R
false
false
2,079
r
test_that("ms_lines works with all classes", { out_json <- ms_lines(innerlines_poly) expect_s3_class(out_json, "json") expect_snapshot_value(out_json, style = "json2") expect_s3_class(ms_lines(unclass(innerlines_poly)), "geojson") expected_sp <- GeoJSON_to_sp(out_json) expect_equivalent(ms_lines(innerlines...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615844774-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,233
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
#' PDF utilities #' #' Utilities based on libpoppler for extracting text, fonts, attachments #' and metadata from a pdf file. #' #' Poppler is pretty verbose when encountering minor errors in PDF files, #' in especially \code{\link{pdf_text}}. These messages are usually safe #' to ignore, use \code{\link{suppressMessag...
/pdftools/R/tools.R
no_license
ingted/R-Examples
R
false
false
2,054
r
#' PDF utilities #' #' Utilities based on libpoppler for extracting text, fonts, attachments #' and metadata from a pdf file. #' #' Poppler is pretty verbose when encountering minor errors in PDF files, #' in especially \code{\link{pdf_text}}. These messages are usually safe #' to ignore, use \code{\link{suppressMessag...
efa <- function(x, ncomp) { nx <- nrow(x) Tos <- Fros <- matrix(0, nx, ncomp) for (i in 3:nx) Tos[i,] <- svd(scale(x[1:i,], scale = FALSE))$d[1:ncomp] for (i in (nx-2):1) Fros[i,] <- svd(scale(x[i:nx,], scale = FALSE))$d[1:ncomp] Combos <- array(c(Tos, Fros[,ncomp:1]), c(nx, ncomp, 2)) list(forward...
/ChemometricsWithR/R/MCR.R
no_license
ingted/R-Examples
R
false
false
1,592
r
efa <- function(x, ncomp) { nx <- nrow(x) Tos <- Fros <- matrix(0, nx, ncomp) for (i in 3:nx) Tos[i,] <- svd(scale(x[1:i,], scale = FALSE))$d[1:ncomp] for (i in (nx-2):1) Fros[i,] <- svd(scale(x[i:nx,], scale = FALSE))$d[1:ncomp] Combos <- array(c(Tos, Fros[,ncomp:1]), c(nx, ncomp, 2)) list(forward...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cde.r \docType{package} \name{cde} \alias{cde} \alias{cde-package} \title{cde: Download Water Framework Directive (WFD) data from the Environment Agency Catchment Data Explorer (CDE) website.} \description{ Facilitates searching and...
/man/cde.Rd
no_license
cran/cde
R
false
true
1,088
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cde.r \docType{package} \name{cde} \alias{cde} \alias{cde-package} \title{cde: Download Water Framework Directive (WFD) data from the Environment Agency Catchment Data Explorer (CDE) website.} \description{ Facilitates searching and...
library("sas7bdat") library("dplyr") library("plyr") temp = list.files(pattern = ".sas7bdat") exp_analysis_elig <- read.sas7bdat(file = "exp_analysis_elig.sas7bdat") exp_analysis_wide <- read.sas7bdat(file = "exp_analysis_wide.sas7bdat") save(exp_analysis_elig, file = "exp_analysis_elig.rda") save(exp_analysis_wide, ...
/DCS_Splines_qy.R
no_license
yanqi219/DCS_github
R
false
false
3,268
r
library("sas7bdat") library("dplyr") library("plyr") temp = list.files(pattern = ".sas7bdat") exp_analysis_elig <- read.sas7bdat(file = "exp_analysis_elig.sas7bdat") exp_analysis_wide <- read.sas7bdat(file = "exp_analysis_wide.sas7bdat") save(exp_analysis_elig, file = "exp_analysis_elig.rda") save(exp_analysis_wide, ...
delayedAssign("kgpe", local({ if (requireNamespace("tibble", quietly = TRUE)) { tibble::as_tibble(kgp:::kgpe) } else { kgp:::kgpe } })) delayedAssign("kgp3", local({ if (requireNamespace("tibble", quietly = TRUE)) { tibble::as_tibble(kgp:::kgp3) } else { kgp:::kgp3 } })) delayedAssign("kgp...
/data/kgp.R
permissive
stephenturner/kgp
R
false
false
621
r
delayedAssign("kgpe", local({ if (requireNamespace("tibble", quietly = TRUE)) { tibble::as_tibble(kgp:::kgpe) } else { kgp:::kgpe } })) delayedAssign("kgp3", local({ if (requireNamespace("tibble", quietly = TRUE)) { tibble::as_tibble(kgp:::kgp3) } else { kgp:::kgp3 } })) delayedAssign("kgp...
#' Convert number of eggs to spawning biomass. #' #' Calculate the conversion factor for the number of Pacific Herring eggs to the #' spawn index (i.e., biomass) in tonnes. #' #' @param omega Numeric. The number of eggs per kilogram of female spawners; #' from \code{\link{pars}}. #' @param phi Numeric. The proportion...
/R/calcs.R
no_license
brigitte-dorner/SpawnIndex
R
false
false
33,162
r
#' Convert number of eggs to spawning biomass. #' #' Calculate the conversion factor for the number of Pacific Herring eggs to the #' spawn index (i.e., biomass) in tonnes. #' #' @param omega Numeric. The number of eggs per kilogram of female spawners; #' from \code{\link{pars}}. #' @param phi Numeric. The proportion...
\name{statFuns} \alias{statFuns} \title{Apply summary statistics functions given a type of vector} \usage{ statFuns(type, x) } \arguments{ \item{type}{The type of computation. To choose in \code{c("double", "integer", "logical", "factor", "character")}.} \item{x}{Alternatively, the vector can be given instead....
/man/statFuns.Rd
no_license
SESjo/SES
R
false
false
496
rd
\name{statFuns} \alias{statFuns} \title{Apply summary statistics functions given a type of vector} \usage{ statFuns(type, x) } \arguments{ \item{type}{The type of computation. To choose in \code{c("double", "integer", "logical", "factor", "character")}.} \item{x}{Alternatively, the vector can be given instead....
# read data file tbl <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?") # filter data from Feb. 1, 2007 to Feb. 2, 2007 data <- subset(tbl, Date %in% c("1/2/2007","2/2/2007")) # Plot 1: Global active power png("plot1.png", width=480, height=480) hist(data$Glo...
/plot1.R
no_license
StarS127/ExData_Plotting1
R
false
false
475
r
# read data file tbl <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?") # filter data from Feb. 1, 2007 to Feb. 2, 2007 data <- subset(tbl, Date %in% c("1/2/2007","2/2/2007")) # Plot 1: Global active power png("plot1.png", width=480, height=480) hist(data$Glo...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/r/R/feather.R
permissive
fossabot/arrow
R
false
false
6,262
r
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
#!/usr/bin/env Rscript # # Process the enriched AA data, creating field-normalized and categorized versions # of the perofrmance indicators and converting variables to reasonable alternatives # Author: Dakota Murray # args = commandArgs(trailingOnly=TRUE) aarmp_path <- args[1] output_path <- args[2] # Load the match...
/workflow/scripts/get_tag_data.R
no_license
murrayds/aa_rmp
R
false
false
1,397
r
#!/usr/bin/env Rscript # # Process the enriched AA data, creating field-normalized and categorized versions # of the perofrmance indicators and converting variables to reasonable alternatives # Author: Dakota Murray # args = commandArgs(trailingOnly=TRUE) aarmp_path <- args[1] output_path <- args[2] # Load the match...
# # Capelin Acoustic Transect Analysis # # Identify working directory # setwd("C:\\Users\\pjs31\\Documents\\Cornell\\Institute of Marine Research\\capeline acoustics") # # Read in data # data = read.csv("AllData_new.csv") head(data) dim(data) (iyear = unique(data$year)) table(data$year) # setwd("C:\\Use...
/Spatial-Stats/Cod-Capelin-Project/AllData_new.R
no_license
jlmorano/Reference-R-scripts
R
false
false
8,028
r
# # Capelin Acoustic Transect Analysis # # Identify working directory # setwd("C:\\Users\\pjs31\\Documents\\Cornell\\Institute of Marine Research\\capeline acoustics") # # Read in data # data = read.csv("AllData_new.csv") head(data) dim(data) (iyear = unique(data$year)) table(data$year) # setwd("C:\\Use...