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(HMM) MOD <- createMOD(m=2,auto=TRUE) N = 5 p <- runif(N + 2) p <- p / sum(p) #~ dg = c(0.8803356, 0.5722373, 0.3792771, 0.4924523, 0.5471738, 2.128524) system.time(ris <- HMM(N=N,MODULES=MOD,Cf.cl=0, prior.p.subnet=p, iter=1)) #~ system.time(ris <- HMMund(N=N,MODULES=MOD)) cat("ok")
/simbionet/prova_HMM2.R
no_license
mfalda/gen-net-sim
R
false
false
292
r
library(HMM) MOD <- createMOD(m=2,auto=TRUE) N = 5 p <- runif(N + 2) p <- p / sum(p) #~ dg = c(0.8803356, 0.5722373, 0.3792771, 0.4924523, 0.5471738, 2.128524) system.time(ris <- HMM(N=N,MODULES=MOD,Cf.cl=0, prior.p.subnet=p, iter=1)) #~ system.time(ris <- HMMund(N=N,MODULES=MOD)) cat("ok")
#read in data files from working directory NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #get Baltimore City and Los Angeles data only bc <- subset(NEI, fips=="24510") la <- subset(NEI, fips=="06037") #get SCC's corresponding to motor vehicles SCC_id <- SCC[grepl("veh...
/plot6.R
no_license
locttorovich/Course-4-Project-2---PM2.5-Analysis
R
false
false
1,545
r
#read in data files from working directory NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") #get Baltimore City and Los Angeles data only bc <- subset(NEI, fips=="24510") la <- subset(NEI, fips=="06037") #get SCC's corresponding to motor vehicles SCC_id <- SCC[grepl("veh...
library(plyr) setwd("~/Documents/git/CleaningGettingData/Project") # Download the dataset download_data <- function() { file <- download.file(url="http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", destfile = "dataset.zip") unzipped <-unzip("dataset.zip") } # Change working direc...
/Project/run_analysis.R
no_license
bhuvanshankar/Getting-and-Cleaning-Data
R
false
false
1,564
r
library(plyr) setwd("~/Documents/git/CleaningGettingData/Project") # Download the dataset download_data <- function() { file <- download.file(url="http://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", destfile = "dataset.zip") unzipped <-unzip("dataset.zip") } # Change working direc...
# accessing spatial data library(sf); library(tidyverse) plot <- read.csv('tree_main_census/data/census-csv-files/scbi.stem3.csv') serc <- st_read('spatial_data/shapefiles/20m_grid.shp') serc.df <- as.data.frame(serc) serc.df.short <- serc.df %>% select(PLOT,STAKE_X, STAKE_Y) names(serc.df.short) <- c('quadrat'...
/R_scripts/20m_grid_to_quadrat_x_y.R
permissive
catherinehulshof/SCBI-ForestGEO-Data
R
false
false
399
r
# accessing spatial data library(sf); library(tidyverse) plot <- read.csv('tree_main_census/data/census-csv-files/scbi.stem3.csv') serc <- st_read('spatial_data/shapefiles/20m_grid.shp') serc.df <- as.data.frame(serc) serc.df.short <- serc.df %>% select(PLOT,STAKE_X, STAKE_Y) names(serc.df.short) <- c('quadrat'...
#thailand done saving #bangkokpost ###done extracting articles library(rvest) library(dplyr) url="https://search.bangkokpost.com/search/result?start=0&q=coronavirus&category=news&refinementFilter=&sort=newest&rows=10" bkpost_page<-read_html(url, encoding="UTF-8") bkpost_page #urls bkpost_urls<-bkpos...
/프로젝트 언론분석 Thailand.R
no_license
26future/Press_Article_Analysis
R
false
false
5,847
r
#thailand done saving #bangkokpost ###done extracting articles library(rvest) library(dplyr) url="https://search.bangkokpost.com/search/result?start=0&q=coronavirus&category=news&refinementFilter=&sort=newest&rows=10" bkpost_page<-read_html(url, encoding="UTF-8") bkpost_page #urls bkpost_urls<-bkpos...
HDF5_File_Parsing_Table_With_GC_Multiline_SC<-function(File) { h5errorHandling(type="suppress") File<-H5Fopen(File) idtab<-h5ls(File, recursive=FALSE, datasetinfo=FALSE)[2] Table<-c(Read_Id="Read_Id",Channel="Channel",Mux="Mux",Unix_Time="Unix_Time",Length="Length",Qscore="Qscore",GC_Content="GC_Content...
/functions/multiline-sc-withgc.R
no_license
adeline-torey/Stormblown
R
false
false
2,825
r
HDF5_File_Parsing_Table_With_GC_Multiline_SC<-function(File) { h5errorHandling(type="suppress") File<-H5Fopen(File) idtab<-h5ls(File, recursive=FALSE, datasetinfo=FALSE)[2] Table<-c(Read_Id="Read_Id",Channel="Channel",Mux="Mux",Unix_Time="Unix_Time",Length="Length",Qscore="Qscore",GC_Content="GC_Content...
#' Bartlett Kernel Function #' #' \code{bartlett_kernel} Computes the Bartlett kernel function at a given point value. #' @param x the point value at which the kernel function is evaluated #' @return A scalar value; the value of the Bartlett kernel function at the point value x. bartlett_kernel <- function(x) { len <...
/R/spectral_kernels.R
no_license
dpetoukhov/wwntests
R
false
false
1,467
r
#' Bartlett Kernel Function #' #' \code{bartlett_kernel} Computes the Bartlett kernel function at a given point value. #' @param x the point value at which the kernel function is evaluated #' @return A scalar value; the value of the Bartlett kernel function at the point value x. bartlett_kernel <- function(x) { len <...
# Importing XLS df <- readxl::read_excel("C:/Users/kais.benfredj/Documents/R/Ranking_Tunisia.xlsx") # Finding the slope and the intercept using linear regression model mod <- lm(df$ForGoals ~ df$Points) # Plotting both the data and the linear result plot( df$ForGoals, df$Points, ylab = 'Points', xlab = 'For Goals') ...
/linear-reg-ranking.R
no_license
kaisinux/StatisticalLearning
R
false
false
361
r
# Importing XLS df <- readxl::read_excel("C:/Users/kais.benfredj/Documents/R/Ranking_Tunisia.xlsx") # Finding the slope and the intercept using linear regression model mod <- lm(df$ForGoals ~ df$Points) # Plotting both the data and the linear result plot( df$ForGoals, df$Points, ylab = 'Points', xlab = 'For Goals') ...
libraries = c("ggplot2", "readr", "GGally", "ggcorrplot", "FactoMineR", "wordcloud2", "webshot", "slam", "tidyr", "stringr", "dplyr", "caret", "ROCR", "doParallel", "factoextra", "htmlwidgets", "tibble", "rattle", "rpart.plot") if (INSTALL_LIBRARIES){ installed_libraries =...
/src/functions/libraries.R
no_license
gianlucagiudice/spotify-award-predictor
R
false
false
645
r
libraries = c("ggplot2", "readr", "GGally", "ggcorrplot", "FactoMineR", "wordcloud2", "webshot", "slam", "tidyr", "stringr", "dplyr", "caret", "ROCR", "doParallel", "factoextra", "htmlwidgets", "tibble", "rattle", "rpart.plot") if (INSTALL_LIBRARIES){ installed_libraries =...
## This first line will likely take a few seconds. Be patient! NEI <- readRDS("Data/summarySCC_PM25.rds") SCC <- readRDS("Data/Source_Classification_Code.rds") # Subsets data and appends two years in one data frame MD <- subset(NEI, fips == '24510') png(filename = 'plot2.png') barplot(tapply(X = MD$Emissions, INDEX =...
/plot2.R
no_license
vecelo/ExData_Plotting2_HW
R
false
false
449
r
## This first line will likely take a few seconds. Be patient! NEI <- readRDS("Data/summarySCC_PM25.rds") SCC <- readRDS("Data/Source_Classification_Code.rds") # Subsets data and appends two years in one data frame MD <- subset(NEI, fips == '24510') png(filename = 'plot2.png') barplot(tapply(X = MD$Emissions, INDEX =...
#' sidebar UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_sidebar_ui <- function(id){ ns <- NS(id) sidebarPanel( h2("Enter Positions:"), hr(style = "color:black"), # This h5 is wher...
/R/mod_sidebar.R
permissive
srmatth/historicalInvesting
R
false
false
4,945
r
#' sidebar UI Function #' #' @description A shiny Module. #' #' @param id,input,output,session Internal parameters for {shiny}. #' #' @noRd #' #' @importFrom shiny NS tagList mod_sidebar_ui <- function(id){ ns <- NS(id) sidebarPanel( h2("Enter Positions:"), hr(style = "color:black"), # This h5 is wher...
library(stringr) library(lubridate) library(pander) library(dplyr) library(tidyr) #source ("reports/CMS_prep.R") #CMS <- read.csv("data/CMS_8_26.txt") #FIPS_Codes <- read.csv("/data/FIPS_R.csv") # # Remove Extraneous columns from CMS table # CMS <- CMS[,!names(CMS) %in% c("Notes","Received","ErrorType","FilingDate",...
/reports/CMS_MOT_Type_Qtrly_FY09-FY15_PLOT.R
permissive
zhuoaprilfu/shiny-court-grapher
R
false
false
3,683
r
library(stringr) library(lubridate) library(pander) library(dplyr) library(tidyr) #source ("reports/CMS_prep.R") #CMS <- read.csv("data/CMS_8_26.txt") #FIPS_Codes <- read.csv("/data/FIPS_R.csv") # # Remove Extraneous columns from CMS table # CMS <- CMS[,!names(CMS) %in% c("Notes","Received","ErrorType","FilingDate",...
# KoNLP 사용법 library(KoNLP) useSejongDic() # SystemDic, NIADic(가장 큼) s <- '너에게 묻는다. 연탄재 함부로 발로 차지 마라. 너는 누구에게 한번이라도 뜨거운 사람이었느냐?' # 명사 추출 extractNoun(s) # 형태소 분석 SimplePos09(s) SimplePos22(s) # 사람/NC - 품사 부착, Pos Tagging nouns <- extractNoun(s) nouns ss <- c('너에게 묻는다.', '연탄재 함부로 발로 차지 마라.', '...
/ch11/07_KoNLP사용법.R
no_license
kimyujin0/R-Lecture-2021-new
R
false
false
634
r
# KoNLP 사용법 library(KoNLP) useSejongDic() # SystemDic, NIADic(가장 큼) s <- '너에게 묻는다. 연탄재 함부로 발로 차지 마라. 너는 누구에게 한번이라도 뜨거운 사람이었느냐?' # 명사 추출 extractNoun(s) # 형태소 분석 SimplePos09(s) SimplePos22(s) # 사람/NC - 품사 부착, Pos Tagging nouns <- extractNoun(s) nouns ss <- c('너에게 묻는다.', '연탄재 함부로 발로 차지 마라.', '...
DiffAnalysis <- function (fileIN = "resNorm.txt", n = 3, ind.array = 1:2, name.A = "A", name.M = "M.norm", fileOUT = "ListOfGenes.txt", fileDelete = "GenesOutOfAnalysis.txt", procs = c("bonferroni", "BH"), alpha = c(0.05, 0.05), dyeswap = TRUE, indDS = c(2), fileID = NULL, function.trt = NULL, by.var...
/anapuce/R/DiffAnalysis.R
no_license
ingted/R-Examples
R
false
false
10,848
r
DiffAnalysis <- function (fileIN = "resNorm.txt", n = 3, ind.array = 1:2, name.A = "A", name.M = "M.norm", fileOUT = "ListOfGenes.txt", fileDelete = "GenesOutOfAnalysis.txt", procs = c("bonferroni", "BH"), alpha = c(0.05, 0.05), dyeswap = TRUE, indDS = c(2), fileID = NULL, function.trt = NULL, by.var...
library(ggplot2) library(scales) library(reshape2) library(cowplot) library(png) library(grid) library(RColorBrewer) f1 = "#00441b" e1 = "#a20021" e5 = "#fabc3c" f1_line = "solid" e1_line = "longdash" e5_line = "dotdash" #FigureS7A timecourses_PHYA = read.csv("FigureS7_PHYA_timecourses.txt", sep="\t...
/02_Figures/FigureS7/FigureS7.R
no_license
LabHotta/sugarcane_field_rhytms
R
false
false
10,513
r
library(ggplot2) library(scales) library(reshape2) library(cowplot) library(png) library(grid) library(RColorBrewer) f1 = "#00441b" e1 = "#a20021" e5 = "#fabc3c" f1_line = "solid" e1_line = "longdash" e5_line = "dotdash" #FigureS7A timecourses_PHYA = read.csv("FigureS7_PHYA_timecourses.txt", sep="\t...
testlist <- list(type = 15335424L, z = 1.31421461793772e-321) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609892726-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
115
r
testlist <- list(type = 15335424L, z = 1.31421461793772e-321) result <- do.call(esreg::G1_fun,testlist) str(result)
source("desc_normalize.R") ###DATA ANALYSIS apply(all_data,2,range) apply(all_data,2,unique) #See density plots for each var with all data all_data %>% gather(variable, value,-Timestamp, -t_label) %>% ggplot(aes(y = as.factor(variable), fill = as.factor(t_label), x = percent_rank(value...
/demo_code/trial_plots_demo.R
permissive
scy-phy/wadac
R
false
false
741
r
source("desc_normalize.R") ###DATA ANALYSIS apply(all_data,2,range) apply(all_data,2,unique) #See density plots for each var with all data all_data %>% gather(variable, value,-Timestamp, -t_label) %>% ggplot(aes(y = as.factor(variable), fill = as.factor(t_label), x = percent_rank(value...
# Plot 2: This looks like a line plot with ylab="Global Active Power # (kilowatts)" and no xlab, but plotted for Thu, Fri, Sat on the x # axis: # First, print to screen: plot(df$Time, as.numeric(as.character((df$Global_active_power))),type="l",ylab="Global Active Power (kilowatts)",xlab="",cex.lab=0.75,cex.axis=0.75)...
/plot2.R
no_license
rmccar10/ExData_Plotting1
R
false
false
454
r
# Plot 2: This looks like a line plot with ylab="Global Active Power # (kilowatts)" and no xlab, but plotted for Thu, Fri, Sat on the x # axis: # First, print to screen: plot(df$Time, as.numeric(as.character((df$Global_active_power))),type="l",ylab="Global Active Power (kilowatts)",xlab="",cex.lab=0.75,cex.axis=0.75)...
testlist <- list(A = structure(c(2.31584307392677e+77, 9.54011617472789e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613111758-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.31584307392677e+77, 9.54011617472789e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
`wtd.table` <- function (x, y = NULL, weights = NULL, normwt = FALSE, na.rm = TRUE) { if (is.null(weights)) weights <- rep(1, length(x)) if (length(x) != length(weights)) stop("x et weights doivent etre de meme longueur") if (!is.null(y) & (length(x) != length(y))) stop("x et y doivent etre de meme longueur") ...
/R/wtd.table.R
no_license
joelgombin/rgrs
R
false
false
791
r
`wtd.table` <- function (x, y = NULL, weights = NULL, normwt = FALSE, na.rm = TRUE) { if (is.null(weights)) weights <- rep(1, length(x)) if (length(x) != length(weights)) stop("x et weights doivent etre de meme longueur") if (!is.null(y) & (length(x) != length(y))) stop("x et y doivent etre de meme longueur") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LobsterSurveyProcess.r \name{LobsterSurveyProcess} \alias{LobsterSurveyProcess} \title{LobsterSurveyProcess} \usage{ LobsterSurveyProcess(size.range = c(0, 220), lfa, yrs, mths = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se...
/man/LobsterSurveyProcess.Rd
no_license
gomezcatalina/bio.lobster
R
false
true
811
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LobsterSurveyProcess.r \name{LobsterSurveyProcess} \alias{LobsterSurveyProcess} \title{LobsterSurveyProcess} \usage{ LobsterSurveyProcess(size.range = c(0, 220), lfa, yrs, mths = c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Se...
#' Example graph information #' #' A dataset containing the nodes and edges of an example graph #' #' #' @format A data frame with 18 rows and 3 variables: #' \describe{ #' \item{v1}{vector of nodes where edges start} #' \item{v2}{vector of nodes where edges end} #' \item{w}{weight of the edges} #' } #' @source \...
/lab3package/R/wiki_graph.R
no_license
tenoglez/ARP_Laboratory3
R
false
false
388
r
#' Example graph information #' #' A dataset containing the nodes and edges of an example graph #' #' #' @format A data frame with 18 rows and 3 variables: #' \describe{ #' \item{v1}{vector of nodes where edges start} #' \item{v2}{vector of nodes where edges end} #' \item{w}{weight of the edges} #' } #' @source \...
#' @title preprocess_querydata #' #' @description #' This function preprocesses the query data to calculate average value of the replicates and then get expressed genes based on expression cut-off. #' #' @rdname preprocess_querydata #' @name preprocess_querydata #' #' @details #' This function preprocesses the query da...
/R/pre-processing.R
no_license
justinmiller1104/SPAGI
R
false
false
3,640
r
#' @title preprocess_querydata #' #' @description #' This function preprocesses the query data to calculate average value of the replicates and then get expressed genes based on expression cut-off. #' #' @rdname preprocess_querydata #' @name preprocess_querydata #' #' @details #' This function preprocesses the query da...
# download and unzip the data file to current working directory # Execute the following commented code only once in the beginning # download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", # "getdataProject2Data.zip", method="curl") # unzip("getdataProject2...
/run_analysis.R
no_license
nyc9981/GetData_Project
R
false
false
2,924
r
# download and unzip the data file to current working directory # Execute the following commented code only once in the beginning # download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", # "getdataProject2Data.zip", method="curl") # unzip("getdataProject2...
# TOOL single-cell-seurat-combine-multiple-samples.R: "Seurat v4 -Combine multiple samples" (This tool can be used to integrate data and combine multiple Seurat objects for later joined analysis. The samples \/R-objects need to be named when created in the Seurat Setup tool.) # INPUT samples{...}.Robj: "Samples to comb...
/tools/ngs/R/single-cell-seurat-combine-multiple-samples.R
permissive
chipster/chipster-tools
R
false
false
5,808
r
# TOOL single-cell-seurat-combine-multiple-samples.R: "Seurat v4 -Combine multiple samples" (This tool can be used to integrate data and combine multiple Seurat objects for later joined analysis. The samples \/R-objects need to be named when created in the Seurat Setup tool.) # INPUT samples{...}.Robj: "Samples to comb...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trend_LM.R \docType{class} \name{trend_LM} \alias{trend_LM} \title{Trend R6 class} \format{ \code{\link{R6Class}} object. } \value{ Object of \code{\link{R6Class}} with methods for fitting GP model. } \description{ Trend R6 class...
/man/trend_LM.Rd
no_license
cran/GauPro
R
false
true
8,619
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trend_LM.R \docType{class} \name{trend_LM} \alias{trend_LM} \title{Trend R6 class} \format{ \code{\link{R6Class}} object. } \value{ Object of \code{\link{R6Class}} with methods for fitting GP model. } \description{ Trend R6 class...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/autonomic_ganglia.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.55,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/autonomic_ganglia/aut...
/Model/EN/AvgRank/autonomic_ganglia/autonomic_ganglia_062.R
no_license
leon1003/QSMART
R
false
false
386
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/autonomic_ganglia.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.55,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/autonomic_ganglia/aut...
### Q1 ### library(plyr) ### Load Data ### fileName <- "Data.zip" if(!file.exists(fileName)) { fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, fileName) unzip(fileName) } ### Read Data ### content <- readRDS(file = "summarySCC_PM25.rds") code <- readRDS(fi...
/Plot6.R
no_license
ab61402/Explore-Data-Final
R
false
false
1,096
r
### Q1 ### library(plyr) ### Load Data ### fileName <- "Data.zip" if(!file.exists(fileName)) { fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" download.file(fileURL, fileName) unzip(fileName) } ### Read Data ### content <- readRDS(file = "summarySCC_PM25.rds") code <- readRDS(fi...
library(ggplot2) library(dplyr) rm(list = ls()) # read the Praat spectrogram functions setwd("L:\\Tools\\R\\Read_praat_spectrograms") source("praat_spectrogram_functions.R") #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# # here's where to find the files spectrogram_file_path <- "C:\\Users...
/draw_praat_spectrogram_demo.R
no_license
ListenLab/Praat
R
false
false
7,946
r
library(ggplot2) library(dplyr) rm(list = ls()) # read the Praat spectrogram functions setwd("L:\\Tools\\R\\Read_praat_spectrograms") source("praat_spectrogram_functions.R") #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# # here's where to find the files spectrogram_file_path <- "C:\\Users...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_m.R \docType{data} \name{m} \alias{m} \title{data from homework 2} \format{An object of class \code{url} (inherits from \code{connection}) of length 1.} \usage{ m } \description{ data from homework 2 } \references{ \url{http://www.stat.u...
/man/m.Rd
no_license
ZJ107/JiangZhihangTools
R
false
true
443
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_m.R \docType{data} \name{m} \alias{m} \title{data from homework 2} \format{An object of class \code{url} (inherits from \code{connection}) of length 1.} \usage{ m } \description{ data from homework 2 } \references{ \url{http://www.stat.u...
#' Create edge list table if not found. #' #' `create_edge_list_table` create edge list table in MySQL. #' @details #' Default values for this table is: #' tableName = "EdgeList", sourceName = "SourcePMID", targetName = "Target" #' MySQL statment: #' CREATE TABLE Edgelist_date ( #' SourcePMID INT, #' Target INT, #' I...
/R/create_edge_list_table.R
no_license
myz09001/pmc2nc
R
false
false
1,755
r
#' Create edge list table if not found. #' #' `create_edge_list_table` create edge list table in MySQL. #' @details #' Default values for this table is: #' tableName = "EdgeList", sourceName = "SourcePMID", targetName = "Target" #' MySQL statment: #' CREATE TABLE Edgelist_date ( #' SourcePMID INT, #' Target INT, #' I...
source("model_accumulative_rainfall.R") # library(GA) # library(GenSA) library(DEoptim) library(gplots) num.runs = 1 max.iter.per.run = 2 data.directory = "data/"; d = read.csv(paste(data.directory, "non-leaky-bukcet-data.csv", sep = ""), stringsAsFactors=FALSE) # d$date <- as.POSIXct(d$date, format = "%Y-%m-%d %H...
/run_model_fitting.R
no_license
olemengshoel/wetting-and-drying-of-soil
R
false
false
1,088
r
source("model_accumulative_rainfall.R") # library(GA) # library(GenSA) library(DEoptim) library(gplots) num.runs = 1 max.iter.per.run = 2 data.directory = "data/"; d = read.csv(paste(data.directory, "non-leaky-bukcet-data.csv", sep = ""), stringsAsFactors=FALSE) # d$date <- as.POSIXct(d$date, format = "%Y-%m-%d %H...
#' Scatter Plot for 2 continuous variables #' #' @param x x data #' @param y y data #' #' @return #' @export #' #' @examples #' XScatterPlot(mtcars$wt, mtcars$mpg) # Scatter diagrams # Bivariate data studies the correlation between 2 variables # Positive association: One variable grows when the other grows # Correla...
/R/XScatterPlot.R
permissive
EduardoJacob/xfunctions
R
false
false
5,175
r
#' Scatter Plot for 2 continuous variables #' #' @param x x data #' @param y y data #' #' @return #' @export #' #' @examples #' XScatterPlot(mtcars$wt, mtcars$mpg) # Scatter diagrams # Bivariate data studies the correlation between 2 variables # Positive association: One variable grows when the other grows # Correla...
# create a dataframe of nepse index id and nepse index name index_id <- 51:63 index_name <- c("Banking", "Hotels", "Others", "HydroPower", "Development_Bank", "Manufacturing", "Sensitive", "NEPSE", "Insurance", "Finance", "Trading", "Float", "Sensitive_Float") index_name <- tolower(ind...
/data-raw/nepse_index_id.R
no_license
madhuko/NPdata
R
false
false
545
r
# create a dataframe of nepse index id and nepse index name index_id <- 51:63 index_name <- c("Banking", "Hotels", "Others", "HydroPower", "Development_Bank", "Manufacturing", "Sensitive", "NEPSE", "Insurance", "Finance", "Trading", "Float", "Sensitive_Float") index_name <- tolower(ind...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/character.R, R/dataframe.R, R/lime.R \name{lime} \alias{lime} \alias{lime.character} \alias{lime} \alias{lime.data.frame} \alias{lime} \title{Create a model explanation function based on training data} \usage{ \method{lime}{character}(x, mode...
/man/lime.Rd
no_license
gridl/lime-1
R
false
true
3,269
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/character.R, R/dataframe.R, R/lime.R \name{lime} \alias{lime} \alias{lime.character} \alias{lime} \alias{lime.data.frame} \alias{lime} \title{Create a model explanation function based on training data} \usage{ \method{lime}{character}(x, mode...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ExtraFunctions.R \name{ci_t} \alias{ci_t} \title{Calculate confidence intervals using the t-distribution} \usage{ ci_t(type, mean, se, df, alpha) } \arguments{ \item{type}{"l" for lower, "u" for upper.} \item{mean}{Causal estimate...
/man/ci_t.Rd
no_license
cran/MendelianRandomization
R
false
true
723
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ExtraFunctions.R \name{ci_t} \alias{ci_t} \title{Calculate confidence intervals using the t-distribution} \usage{ ci_t(type, mean, se, df, alpha) } \arguments{ \item{type}{"l" for lower, "u" for upper.} \item{mean}{Causal estimate...
### fetchStocks.R ### # code from # http://allthingsr.blogspot.mx/2012/10/pull-yahoo-finance-key-statistics.html library(quantmod) library(readr) library(lubridate) library(dplyr) library(tidyr) source("R/webUtils.R") source("R/retUtils.R") ini_date <- ymd(20151231) fin_date <- ymd(20160930) # stock_list <- TTR::st...
/R/fetchStocks.R
no_license
mauriciogtec/stockFinanceTDA
R
false
false
861
r
### fetchStocks.R ### # code from # http://allthingsr.blogspot.mx/2012/10/pull-yahoo-finance-key-statistics.html library(quantmod) library(readr) library(lubridate) library(dplyr) library(tidyr) source("R/webUtils.R") source("R/retUtils.R") ini_date <- ymd(20151231) fin_date <- ymd(20160930) # stock_list <- TTR::st...
# ==================================================== # title: "Covid-19 SIR Modeling Malaysia" # author: "Chan Weng Howe (UTM), Wan Nor Arifin (USM)" # Fit both I and R # ==================================================== ## Libraries library(tidyverse) library(deSolve) library(lubridate) library(ggpubr) library(...
/sir_model_ir.R
no_license
cwenghowe/sircovid19mys
R
false
false
10,167
r
# ==================================================== # title: "Covid-19 SIR Modeling Malaysia" # author: "Chan Weng Howe (UTM), Wan Nor Arifin (USM)" # Fit both I and R # ==================================================== ## Libraries library(tidyverse) library(deSolve) library(lubridate) library(ggpubr) library(...
require(sqldf) require(lubridate) file <- "household_power_consumption.txt" query <- "select * from file where Date = '1/2/2007' or Date = '2/2/2007'" df <- read.csv.sql(file, sql = query, sep = ";", stringsAsFactors = FALSE) df$datetime <- paste(df$Date, df$Time, sep = " ") df$datetime <- dmy_hms(df$datetime) # Plot ...
/plot3.R
no_license
jpt31733/ExData_Plotting1
R
false
false
1,111
r
require(sqldf) require(lubridate) file <- "household_power_consumption.txt" query <- "select * from file where Date = '1/2/2007' or Date = '2/2/2007'" df <- read.csv.sql(file, sql = query, sep = ";", stringsAsFactors = FALSE) df$datetime <- paste(df$Date, df$Time, sep = " ") df$datetime <- dmy_hms(df$datetime) # Plot ...
library('ggplot2') classicMeth <- read.csv('/Users/zer/Downloads/statistics.csv') classicMeth$subject_id <- levels(comparison$subject_id) myMeth <- read.csv('/Users/zer/RegFitAD/data/allResultsCorrected.txt',sep = ' ',header = F) myMeth <- myMeth[,colSums(is.na(myMeth))<nrow(myMeth)] myMeth <- myMeth[complete.cases(...
/comparingMyNicosResults.R
no_license
Zach-ER/RegFitAD
R
false
false
785
r
library('ggplot2') classicMeth <- read.csv('/Users/zer/Downloads/statistics.csv') classicMeth$subject_id <- levels(comparison$subject_id) myMeth <- read.csv('/Users/zer/RegFitAD/data/allResultsCorrected.txt',sep = ' ',header = F) myMeth <- myMeth[,colSums(is.na(myMeth))<nrow(myMeth)] myMeth <- myMeth[complete.cases(...
guiSuiteList <- function (sep = "\t", path = NULL, compare = TRUE) { Suites <- svSuiteList() if (compare) { oldSuites <- .getTemp(".guiSuiteListCache", default = "") ## Compare both versions if (!identical(Suites, oldSuites)) { ## Keep a copy of the last version in SciViews:TempEnv .assignTemp(".guiSui...
/svUnit/R/guiTestReport.R
no_license
ingted/R-Examples
R
false
false
4,731
r
guiSuiteList <- function (sep = "\t", path = NULL, compare = TRUE) { Suites <- svSuiteList() if (compare) { oldSuites <- .getTemp(".guiSuiteListCache", default = "") ## Compare both versions if (!identical(Suites, oldSuites)) { ## Keep a copy of the last version in SciViews:TempEnv .assignTemp(".guiSui...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color_class.R \docType{methods} \name{plot_distributions_difference,color_class-method} \alias{plot_distributions_difference,color_class-method} \alias{plot_distributions_difference_color} \title{plot_distributions_difference} \usage{ \S4meth...
/man/color_class-plot_distributions_difference.Rd
no_license
udaydatar7/bayes4psy
R
false
true
1,130
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/color_class.R \docType{methods} \name{plot_distributions_difference,color_class-method} \alias{plot_distributions_difference,color_class-method} \alias{plot_distributions_difference_color} \title{plot_distributions_difference} \usage{ \S4meth...
# Packages library(data.table) library(tidyverse) library(ggtext) library(waffle) # Data df <- fread('data/spacex_data.csv', select = 1:3) ggplot(df[-7,], aes(values=N, fill=rocket, color=rocket)) + geom_waffle(n_rows = 1, flip = TRUE, size=0.25, radius = unit(0.08, 'cm')) + facet_wrap(~ Year, nro...
/R/Chart14-Space.R
no_license
elartedeldato/30DayChartChallenge
R
false
false
2,044
r
# Packages library(data.table) library(tidyverse) library(ggtext) library(waffle) # Data df <- fread('data/spacex_data.csv', select = 1:3) ggplot(df[-7,], aes(values=N, fill=rocket, color=rocket)) + geom_waffle(n_rows = 1, flip = TRUE, size=0.25, radius = unit(0.08, 'cm')) + facet_wrap(~ Year, nro...
r2cov <- function(sd, R){ Dsqrt <- matrix(0, ncol=length(sd), nrow=length(sd)) diag(Dsqrt) <- sd output <- Dsqrt %*% R %*% Dsqrt return(output) }
/rpsychi/R/r2cov.R
no_license
ingted/R-Examples
R
false
false
168
r
r2cov <- function(sd, R){ Dsqrt <- matrix(0, ncol=length(sd), nrow=length(sd)) diag(Dsqrt) <- sd output <- Dsqrt %*% R %*% Dsqrt return(output) }
## Notes for logistic regression ## Load libraries and data ------------------- library(tidyverse) library(broom) biopsy <- read_csv("biopsy.csv") ## Build the model: # glm(response ~ predictors, data = dataframe, family = "binomial") # glm expects the response to be a factor, or(!!!!) have values 0=failure and 1=s...
/previous_semesters/fall2020/inclass/class_notes_11-16-20.R
permissive
sjspielman/datascience_for_biologists
R
false
false
1,634
r
## Notes for logistic regression ## Load libraries and data ------------------- library(tidyverse) library(broom) biopsy <- read_csv("biopsy.csv") ## Build the model: # glm(response ~ predictors, data = dataframe, family = "binomial") # glm expects the response to be a factor, or(!!!!) have values 0=failure and 1=s...
# PCA plotters ------ #' Plots Principal Component Analysis #' #' The Momocs' \code{\link{PCA}} plotter with morphospaces and many graphical options. #' #' @param x `PCA`, typically obtained with [PCA] #' @param fac name or the column id from the $fac slot, or a formula combining colum names #' from the $fac slot (cf....
/R/gr-PCA.R
no_license
MomX/Momocs
R
false
false
25,018
r
# PCA plotters ------ #' Plots Principal Component Analysis #' #' The Momocs' \code{\link{PCA}} plotter with morphospaces and many graphical options. #' #' @param x `PCA`, typically obtained with [PCA] #' @param fac name or the column id from the $fac slot, or a formula combining colum names #' from the $fac slot (cf....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elasticache_operations.R \name{elasticache_describe_service_updates} \alias{elasticache_describe_service_updates} \title{Returns details of the service updates} \usage{ elasticache_describe_service_updates(ServiceUpdateName, ServiceUpdateSt...
/cran/paws.database/man/elasticache_describe_service_updates.Rd
permissive
johnnytommy/paws
R
false
true
1,122
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elasticache_operations.R \name{elasticache_describe_service_updates} \alias{elasticache_describe_service_updates} \title{Returns details of the service updates} \usage{ elasticache_describe_service_updates(ServiceUpdateName, ServiceUpdateSt...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mainFunctions.R \name{bytau.plot.rq.pen.seq} \alias{bytau.plot.rq.pen.seq} \title{Plot of how coefficients change with tau.} \usage{ \method{bytau.plot}{rq.pen.seq}(x, a = NULL, lambda = NULL, lambdaIndex = NULL, vars = NULL, ...) } \...
/man/bytau.plot.rq.pen.seq.Rd
no_license
cran/rqPen
R
false
true
1,138
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mainFunctions.R \name{bytau.plot.rq.pen.seq} \alias{bytau.plot.rq.pen.seq} \title{Plot of how coefficients change with tau.} \usage{ \method{bytau.plot}{rq.pen.seq}(x, a = NULL, lambda = NULL, lambdaIndex = NULL, vars = NULL, ...) } \...
#----------------------------------------------------------------------------# # RSuite # Copyright (c) 2017, WLOG Solutions # # Package initialization. #----------------------------------------------------------------------------# rsuite_default_options <- list( rsuite.cache_path = "", # if unset prevents c...
/packages/RSuite/R/00_init.R
permissive
WLOGSolutions/RSuite
R
false
false
1,338
r
#----------------------------------------------------------------------------# # RSuite # Copyright (c) 2017, WLOG Solutions # # Package initialization. #----------------------------------------------------------------------------# rsuite_default_options <- list( rsuite.cache_path = "", # if unset prevents c...
text.clean = function(x) # text data { #require("tm") x = gsub("<.*?>", " ", x) # regex for removing HTML tags x = iconv(x, "latin1", "ASCII", sub="") # Keep only ASCII characters x = gsub("[^[:alnum:]]", " ", x) # keep only alpha numeric x = tolower(x) ...
/global.r
no_license
yogesh1612/text-segmentation-shinyapp
R
false
false
10,513
r
text.clean = function(x) # text data { #require("tm") x = gsub("<.*?>", " ", x) # regex for removing HTML tags x = iconv(x, "latin1", "ASCII", sub="") # Keep only ASCII characters x = gsub("[^[:alnum:]]", " ", x) # keep only alpha numeric x = tolower(x) ...
library(tidyverse) library(data.table) library(mixtools) library(ggrepel) library(Rtsne) fiv <- fread("world-happiness-report/2015.csv") six <- fread("world-happiness-report/2016.csv") sev <- fread("world-happiness-report/2017.csv") newcolnames <- c("Country", "Region", "Happy_Rank", "Happy_Score", ...
/August2018/Happy_map.R
no_license
BenHeo/Monthly-Data-Analysis
R
false
false
3,039
r
library(tidyverse) library(data.table) library(mixtools) library(ggrepel) library(Rtsne) fiv <- fread("world-happiness-report/2015.csv") six <- fread("world-happiness-report/2016.csv") sev <- fread("world-happiness-report/2017.csv") newcolnames <- c("Country", "Region", "Happy_Rank", "Happy_Score", ...
#################################################################################################### # program name : Rfunction_output_PNG.R # purpose : output a plot in PNG format # programmer : Chang # date created : 2015-08-02 # note : #---------------------------------------------------------------...
/Rfunction_output_PNG.R
no_license
luenhchang/R_functions
R
false
false
1,260
r
#################################################################################################### # program name : Rfunction_output_PNG.R # purpose : output a plot in PNG format # programmer : Chang # date created : 2015-08-02 # note : #---------------------------------------------------------------...
beta.div.comp <- function(mat, coef="J", quant=FALSE, save.abc=FALSE){ coef <- pmatch(coef, c("S", "J", "BS", "BJ", "N")) if(coef==5 & quant) stop("coef='N' and quant=TRUE: combination not programmed") mat <- as.matrix(mat) n <- nrow(mat) if(is.null(rownames(mat))) noms <- paste("Site",1:n,sep="") else noms...
/betadivcomp.R
no_license
VFugere/Rfuncs
R
false
false
5,819
r
beta.div.comp <- function(mat, coef="J", quant=FALSE, save.abc=FALSE){ coef <- pmatch(coef, c("S", "J", "BS", "BJ", "N")) if(coef==5 & quant) stop("coef='N' and quant=TRUE: combination not programmed") mat <- as.matrix(mat) n <- nrow(mat) if(is.null(rownames(mat))) noms <- paste("Site",1:n,sep="") else noms...
# nocov start #' @title Initialize CI testing using tic #' @description Prepares a repo for building and deploying supported by #' \pkg{tic}. #' #' @importFrom utils menu #' @details #' #' 1. Query information which CI providers should be used #' 1. Setup permissions for providers selected for deployment #' 1. Create ...
/R/use_tic.R
no_license
NirvanaNimbusa/tic
R
false
false
11,665
r
# nocov start #' @title Initialize CI testing using tic #' @description Prepares a repo for building and deploying supported by #' \pkg{tic}. #' #' @importFrom utils menu #' @details #' #' 1. Query information which CI providers should be used #' 1. Setup permissions for providers selected for deployment #' 1. Create ...
rm(list=ls()) h <- 9 # average number of breeding females per male k <- 1.8 # average birth rate nf <- 100 # number of females nm <- 1 # number of males (k * nm) / (nm + (nf * h^-1)) # harmonic-mean birth function ############################################################################...
/code/exploratory_code/harmonic_birth_fun.R
no_license
cttedwards/LEOPARD-MP
R
false
false
2,537
r
rm(list=ls()) h <- 9 # average number of breeding females per male k <- 1.8 # average birth rate nf <- 100 # number of females nm <- 1 # number of males (k * nm) / (nm + (nf * h^-1)) # harmonic-mean birth function ############################################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_PostflexionLarvae.R \name{postflexionLarvae_GrowthRateWW} \alias{postflexionLarvae_GrowthRateWW} \title{Calculate growth rate (1/day wet weight) for postflexion larvae} \usage{ postflexionLarvae_GrowthRateWW(T) } \arguments{ \item{T...
/man/postflexionLarvae_GrowthRateWW.Rd
permissive
wStockhausen/rPacificCod
R
false
true
537
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_PostflexionLarvae.R \name{postflexionLarvae_GrowthRateWW} \alias{postflexionLarvae_GrowthRateWW} \title{Calculate growth rate (1/day wet weight) for postflexion larvae} \usage{ postflexionLarvae_GrowthRateWW(T) } \arguments{ \item{T...
# # Library Dependencies # suppressMessages(library(xtable)) # Pretty printing dataframes suppressMessages(library(ggplot2)) # Plotting suppressMessages(library(gridExtra)) suppressMessages(library(grid)) # # Data Load # load_data <- function(url, file_name) { temp_file <- tempfile() download.file(url, temp_f...
/coursera/exploratory/scripts/plot6.R
no_license
marciogualtieri/DataScience
R
false
false
4,274
r
# # Library Dependencies # suppressMessages(library(xtable)) # Pretty printing dataframes suppressMessages(library(ggplot2)) # Plotting suppressMessages(library(gridExtra)) suppressMessages(library(grid)) # # Data Load # load_data <- function(url, file_name) { temp_file <- tempfile() download.file(url, temp_f...
NEI_Baltimore <- subset(NEI, fips == '24510') NEI_Baltimore_sum <- aggregate(Emissions ~ year, NEI_Baltimore, sum) plot(NEI_Baltimore_sum$year, NEI_Baltimore_sum$Emissions, type="l", xlab="Year", ylab="Total Emissions Baltimore")
/exploratorydata/project2/Plot2.R
no_license
rnield1977/datasciencecoursera
R
false
false
229
r
NEI_Baltimore <- subset(NEI, fips == '24510') NEI_Baltimore_sum <- aggregate(Emissions ~ year, NEI_Baltimore, sum) plot(NEI_Baltimore_sum$year, NEI_Baltimore_sum$Emissions, type="l", xlab="Year", ylab="Total Emissions Baltimore")
#This script perform some basic calculations in R. #To run this script you may select all and hit the Run button on top right of this pane ... #... or go Cmd+A followed by Cmd+Enter on Mac. If you use Windows, ... #... you can also go Ctrl+A followed by Ctrl+Enter. #The following command will add 2 to 3 and store the ...
/intro-r-data-analysis/session1/Basic_script.R
no_license
gladstone-institutes/Bioinformatics-Workshops
R
false
false
1,048
r
#This script perform some basic calculations in R. #To run this script you may select all and hit the Run button on top right of this pane ... #... or go Cmd+A followed by Cmd+Enter on Mac. If you use Windows, ... #... you can also go Ctrl+A followed by Ctrl+Enter. #The following command will add 2 to 3 and store the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/optMaxlik.R \name{areFixed} \alias{areFixed} \title{Mainly auxiliary. Returns a vector indicating which parameters are fixed at zero.} \usage{ areFixed(x) } \arguments{ \item{x}{vector} } \value{ vector } \description{ Returns a vector indica...
/man/areFixed.Rd
no_license
BPJandree/optMaxlik
R
false
true
401
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/optMaxlik.R \name{areFixed} \alias{areFixed} \title{Mainly auxiliary. Returns a vector indicating which parameters are fixed at zero.} \usage{ areFixed(x) } \arguments{ \item{x}{vector} } \value{ vector } \description{ Returns a vector indica...
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827699-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
487
r
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794...
\name{ggfitStrata} \alias{ggfitStrata} \title{Graph fitted stratified survival curves from Cox Proportional Hazards models} \usage{ ggfitStrata(obj, byStrata = FALSE, xlab = "", ylab = "", title = "", lcolour = "#2C7FB8", rcolour = "#2C7FB8") } \arguments{ \item{obj}{a \code{survfit} object.} \item{byStrata}...
/man/ggfitStrata.Rd
no_license
chihayakenji/simPH
R
false
false
1,971
rd
\name{ggfitStrata} \alias{ggfitStrata} \title{Graph fitted stratified survival curves from Cox Proportional Hazards models} \usage{ ggfitStrata(obj, byStrata = FALSE, xlab = "", ylab = "", title = "", lcolour = "#2C7FB8", rcolour = "#2C7FB8") } \arguments{ \item{obj}{a \code{survfit} object.} \item{byStrata}...
############################ #PURPOSE: Create a raster of individual patches that are defined by the year they were established. #INPUT: #OUTPUT: #DEVELOPED: #CONTACT: LacherI@si.edu #NOTES: #IMPORTANT: ##### NEXT STEPS ##### ############################ # SET WORKING DIRECTORY # setwd("Y:/Lacher/...") #Harvard ...
/Compiled_PL_Rscripts/Rscript20162017/2_IndYearRasters.r
no_license
cpfergus/ProtectedLands
R
false
false
5,983
r
############################ #PURPOSE: Create a raster of individual patches that are defined by the year they were established. #INPUT: #OUTPUT: #DEVELOPED: #CONTACT: LacherI@si.edu #NOTES: #IMPORTANT: ##### NEXT STEPS ##### ############################ # SET WORKING DIRECTORY # setwd("Y:/Lacher/...") #Harvard ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{rgt} \alias{rgt} \title{Samples from a generalized t-distribution} \usage{ rgt(n, df = 1, mu = 0, sigma = 1) } \arguments{ \item{n}{number of samples to be generated} \item{df}{degrees of freedom} \item{mu}{the location parame...
/man/rgt.Rd
no_license
asifzubair/deconR
R
false
true
609
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{rgt} \alias{rgt} \title{Samples from a generalized t-distribution} \usage{ rgt(n, df = 1, mu = 0, sigma = 1) } \arguments{ \item{n}{number of samples to be generated} \item{df}{degrees of freedom} \item{mu}{the location parame...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_package.R \docType{package} \name{togglr-package} \alias{togglr-package} \alias{togglr} \title{This package allow user to track time spend on R using the toggl.com timesheet} \author{ vincent <vincent@thinkr.fr> }
/man/togglr-package.Rd
no_license
christophsax/togglr
R
false
true
307
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/doc_package.R \docType{package} \name{togglr-package} \alias{togglr-package} \alias{togglr} \title{This package allow user to track time spend on R using the toggl.com timesheet} \author{ vincent <vincent@thinkr.fr> }
DetermineVariables <- function(file_name_vector) { pop <- function(file_name_vec, index1) { if (length(index1) != 0) { file_name_vec <- file_name_vec[-index1] } return(file_name_vec) } states <- c( "Alabama", "Alaska", "Arizona", "Arkansas", "Californi...
/DetermineVariables.R
permissive
1carvercoleman/calendar-data-extractor
R
false
false
2,960
r
DetermineVariables <- function(file_name_vector) { pop <- function(file_name_vec, index1) { if (length(index1) != 0) { file_name_vec <- file_name_vec[-index1] } return(file_name_vec) } states <- c( "Alabama", "Alaska", "Arizona", "Arkansas", "Californi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeXIF.R \name{mergeXIF} \alias{mergeXIF} \title{RIF/CIF File Merging} \usage{ mergeXIF( fileName, write_to, extract_features = FALSE, endianness = .Platform$endian, verbose = FALSE, verbosity = 1, overwrite = FALSE, display...
/IFC/man/mergeXIF.Rd
no_license
akhikolla/InformationHouse
R
false
true
2,271
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mergeXIF.R \name{mergeXIF} \alias{mergeXIF} \title{RIF/CIF File Merging} \usage{ mergeXIF( fileName, write_to, extract_features = FALSE, endianness = .Platform$endian, verbose = FALSE, verbosity = 1, overwrite = FALSE, display...
###my own plots ##open task-add srtm -> terrain profil? ### library(plyr) library(ggplot2) library(base) library(scales) #check: ggplot: https://www.datanovia.com/en/blog/how-to-create-a-ggplot-with-multiple-lines/ getwd() setwd("C:/Users/Annika/Documents/Git/04_GEO_MB2_ProgrammingGeostatistics") hiking_db <- read....
/Plot_CORINE.R
no_license
nikapepita/04_GEO_MB2_ProgrammingGeostatistics
R
false
false
3,169
r
###my own plots ##open task-add srtm -> terrain profil? ### library(plyr) library(ggplot2) library(base) library(scales) #check: ggplot: https://www.datanovia.com/en/blog/how-to-create-a-ggplot-with-multiple-lines/ getwd() setwd("C:/Users/Annika/Documents/Git/04_GEO_MB2_ProgrammingGeostatistics") hiking_db <- read....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workpatterns_rank.R \name{workpatterns_rank} \alias{workpatterns_rank} \title{Create a rank table of working patterns} \usage{ workpatterns_rank( data, signals = c("email", "IM"), start_hour = "0900", end_hour = "1700", top = 10, ...
/man/workpatterns_rank.Rd
permissive
standardgalactic/wpa
R
false
true
4,280
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/workpatterns_rank.R \name{workpatterns_rank} \alias{workpatterns_rank} \title{Create a rank table of working patterns} \usage{ workpatterns_rank( data, signals = c("email", "IM"), start_hour = "0900", end_hour = "1700", top = 10, ...
findCorrelatedVariables <- function(x, threshold = 0.5, use.var.names = FALSE) { # Finds pairs of numeric variables in the given data frame that are correlated. # # Args: # x : A data frame # threshold : Threshold correlation coefficient. A pair of variables is # considered cor...
/Anomaly/outlier_scout.R
no_license
dhall-rhoworld/ideas
R
false
false
17,969
r
findCorrelatedVariables <- function(x, threshold = 0.5, use.var.names = FALSE) { # Finds pairs of numeric variables in the given data frame that are correlated. # # Args: # x : A data frame # threshold : Threshold correlation coefficient. A pair of variables is # considered cor...
library("fosr") # sourcing files needed by iterate.R here source("../R/helper_functions.R") source("extra_mcmc_sampler.R") source("modified_refund_lasso.R") source("iterate.R") Niters = 2 # Simulation parameters n = 100 # Number of curves m = 30 # Number of observation points p_0 = 5 # Number of true zer...
/simulation_study/simulation_study.R
no_license
drkowal/fosr
R
false
false
3,822
r
library("fosr") # sourcing files needed by iterate.R here source("../R/helper_functions.R") source("extra_mcmc_sampler.R") source("modified_refund_lasso.R") source("iterate.R") Niters = 2 # Simulation parameters n = 100 # Number of curves m = 30 # Number of observation points p_0 = 5 # Number of true zer...
#!/usr/bin/env Rscript # Set the precision to 16 digits: options( digits = 16 ); #' Run benchmarks. #' #' @examples #' main(); main <- function() { # Define benchmark parameters: name <- "dist-lognormal-quantile"; iterations <- 1000000L; repeats <- 3; #' Print the TAP version. #' #' @examples #' print_versio...
/lib/node_modules/@stdlib/math/base/dists/lognormal/quantile/benchmark/r/benchmark.R
permissive
mqzry/stdlib
R
false
false
2,310
r
#!/usr/bin/env Rscript # Set the precision to 16 digits: options( digits = 16 ); #' Run benchmarks. #' #' @examples #' main(); main <- function() { # Define benchmark parameters: name <- "dist-lognormal-quantile"; iterations <- 1000000L; repeats <- 3; #' Print the TAP version. #' #' @examples #' print_versio...
\name{LightResponseCurveFitter_optimLRC} \alias{LightResponseCurveFitter_optimLRC} \title{LightResponseCurveFitter optimLRC} \description{call the optimization function} \usage{LightResponseCurveFitter_optimLRC(theta, iOpt, sdParameterPrior, ..., ctrl, isUsingHessian)} \arguments{ \item{theta}{numeric vector: st...
/man/LightResponseCurveFitter_optimLRC.Rd
no_license
economistgame/REddyProc
R
false
false
1,359
rd
\name{LightResponseCurveFitter_optimLRC} \alias{LightResponseCurveFitter_optimLRC} \title{LightResponseCurveFitter optimLRC} \description{call the optimization function} \usage{LightResponseCurveFitter_optimLRC(theta, iOpt, sdParameterPrior, ..., ctrl, isUsingHessian)} \arguments{ \item{theta}{numeric vector: st...
#' Automatically set the config environment #' #' Determines if the app is deployed to a server or running locally, and adjusts #' the config environment to "production" or "default" respectively. This function #' is almost always called in the "global.R" file of a shiny app immediately before #' the configuration in ...
/R/set_config_env.R
no_license
Yaswanth-Tippireddy/polished
R
false
false
1,115
r
#' Automatically set the config environment #' #' Determines if the app is deployed to a server or running locally, and adjusts #' the config environment to "production" or "default" respectively. This function #' is almost always called in the "global.R" file of a shiny app immediately before #' the configuration in ...
read_act <- function() { board_register_github(repo = "duju211/strava_act", branch = "master") df_act <- pin_get("df_act", board = "github", ) board_disconnect("github") return(df_act) }
/R/read_act.R
no_license
duju211/strava_act_plot
R
false
false
198
r
read_act <- function() { board_register_github(repo = "duju211/strava_act", branch = "master") df_act <- pin_get("df_act", board = "github", ) board_disconnect("github") return(df_act) }
context("bootstrap") # Gamma data. set.seed(313) x <- rgamma(10, 2, 3) obj <- mlgamma(x) obj2 <- mlexp(x) # Different reducer and map. set.seed(313) expect_equal(c(bootstrapml(obj, reps = 2, map = function(x) x[1] / x[2], reducer = mean )), 0.4352018, tolerance = 1e-5 ) # Different reducer a...
/tests/testthat/test_bootstrap.R
no_license
cran/univariateML
R
false
false
991
r
context("bootstrap") # Gamma data. set.seed(313) x <- rgamma(10, 2, 3) obj <- mlgamma(x) obj2 <- mlexp(x) # Different reducer and map. set.seed(313) expect_equal(c(bootstrapml(obj, reps = 2, map = function(x) x[1] / x[2], reducer = mean )), 0.4352018, tolerance = 1e-5 ) # Different reducer a...
#!/usr/bin/env Rscript # -*- tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- # vi: set ts=2 noet: # # (c) Copyright Rosetta Commons Member Institutions. # (c) This file is part of the Rosetta software suite and is made available under license. # (c) The Rosetta software is developed b...
/R/support-query_sample_sources.R
no_license
DunbrackLab/RosettaFeatures
R
false
false
5,109
r
#!/usr/bin/env Rscript # -*- tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- # vi: set ts=2 noet: # # (c) Copyright Rosetta Commons Member Institutions. # (c) This file is part of the Rosetta software suite and is made available under license. # (c) The Rosetta software is developed b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/best.pair.tt.R \name{best.pair.tt} \alias{best.pair.tt} \title{NPI for comparing two groups with terminated tails} \usage{ best.pair.tt(X, Y, Lx = -Inf, Ux = Inf, Ly = -Inf, Uy = Inf) } \arguments{ \item{X}{numeric vector of data values} \it...
/man/best.pair.tt.Rd
no_license
cran/NPIstats
R
false
true
1,762
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/best.pair.tt.R \name{best.pair.tt} \alias{best.pair.tt} \title{NPI for comparing two groups with terminated tails} \usage{ best.pair.tt(X, Y, Lx = -Inf, Ux = Inf, Ly = -Inf, Uy = Inf) } \arguments{ \item{X}{numeric vector of data values} \it...
script_path <- dirname(rstudioapi::getSourceEditorContext()$path) setwd(script_path) setwd('..') library(dplyr) library(reshape2) library(progress) library(doParallel) library(caret) library(randomForest) library(pROC) source("run/tools.R") n_cores <- 3 registerDoParallel(n_cores) seed <- 7 set.seed(seed) output_p...
/run/train_regression.R
no_license
KseniiaCheloshkina/noncanonical_secondary_structures_mutagenesis
R
false
false
4,262
r
script_path <- dirname(rstudioapi::getSourceEditorContext()$path) setwd(script_path) setwd('..') library(dplyr) library(reshape2) library(progress) library(doParallel) library(caret) library(randomForest) library(pROC) source("run/tools.R") n_cores <- 3 registerDoParallel(n_cores) seed <- 7 set.seed(seed) output_p...
#*************************************************************************************************** # FILE: C:\Projects\Practical Tools Book\Book Chapters\3 Sample Design\Examples\Fig 3.1 CV plot.R # PROJECT: Practical Tools book ...
/Examples/3 Sample Design/Examples/Fig 3.1 CV plot.R
no_license
andrewohall/PracTools
R
false
false
1,394
r
#*************************************************************************************************** # FILE: C:\Projects\Practical Tools Book\Book Chapters\3 Sample Design\Examples\Fig 3.1 CV plot.R # PROJECT: Practical Tools book ...
library(shiny) shinyUI( fluidPage( # Setup the page title tagList(tags$head(tags$title("Illumina Methylation Database")), h1(textOutput("title"))), fluidRow( column(3, wellPanel(includeCSS('boot.css'), includeHTML('header.html'), ...
/ui.R
no_license
xinchoubiology/MethylDB
R
false
false
5,246
r
library(shiny) shinyUI( fluidPage( # Setup the page title tagList(tags$head(tags$title("Illumina Methylation Database")), h1(textOutput("title"))), fluidRow( column(3, wellPanel(includeCSS('boot.css'), includeHTML('header.html'), ...
#!/usr/bin/Rscript #' The script runs all tests in the project and returns status 1 if at least #' one of them failed, 0 otherwise. #' The package below is used here explicitly. This is because when you run this #' script from command-line, the package is not loaded (unlike when you run #' the script when you use R)...
/run_all_tests.R
no_license
zachcp/archaeopteryx-js
R
false
false
1,055
r
#!/usr/bin/Rscript #' The script runs all tests in the project and returns status 1 if at least #' one of them failed, 0 otherwise. #' The package below is used here explicitly. This is because when you run this #' script from command-line, the package is not loaded (unlike when you run #' the script when you use R)...
## Preprocess data, write TAF data tables ## Part 2: Export from FLR objects ## Before: data.RData (data) ## After: catage.csv, maturity.csv, natmort.csv, propf.csv, propm.csv, ## survey_heras.csv, survey_ibts_0.csv, survey_ibts_q1.csv, ## survey_ibts_q3.csv, survey_lai_bun.csv, survey_lai_cns.csv, ##...
/data_export.R
no_license
ices-taf-dev/bootstrap_software
R
false
false
1,365
r
## Preprocess data, write TAF data tables ## Part 2: Export from FLR objects ## Before: data.RData (data) ## After: catage.csv, maturity.csv, natmort.csv, propf.csv, propm.csv, ## survey_heras.csv, survey_ibts_0.csv, survey_ibts_q1.csv, ## survey_ibts_q3.csv, survey_lai_bun.csv, survey_lai_cns.csv, ##...
## Simulations of Section 4: Scenario 3 rm(list=ls(all=TRUE)) #setwd("C:\\Users\\bikramk\\Google Drive\\1- Research and Study\\Research\\Math Stat\\Evidence Factor\\Approx Algo\\code") library(quickblock) library(blockTools) library(optmatch) library(blockingChallenge) source('bottlenecknbpv2.R') library(...
/Section 4/simulation_sec4v2_scenario3.R
no_license
bikram12345k/BlockingAlgo
R
false
false
9,655
r
## Simulations of Section 4: Scenario 3 rm(list=ls(all=TRUE)) #setwd("C:\\Users\\bikramk\\Google Drive\\1- Research and Study\\Research\\Math Stat\\Evidence Factor\\Approx Algo\\code") library(quickblock) library(blockTools) library(optmatch) library(blockingChallenge) source('bottlenecknbpv2.R') library(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-animals.R \docType{data} \name{animal_9} \alias{animal_9} \title{Acanthiza} \format{list of igraph objects} \source{ https: //bansallab.github.io/asnr/ } \usage{ animal_9 } \description{ Species: \emph{Acanthiza} Taxonomic class: Aves ...
/man/animal_9.Rd
permissive
kjhealy/networkdata
R
false
true
1,161
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-animals.R \docType{data} \name{animal_9} \alias{animal_9} \title{Acanthiza} \format{list of igraph objects} \source{ https: //bansallab.github.io/asnr/ } \usage{ animal_9 } \description{ Species: \emph{Acanthiza} Taxonomic class: Aves ...
uri='https://redcap.university.edu/redcap/api/' token='----your token---'
/api_token_testREDCapV2.R
no_license
joshuawlambert/REDCapShinyExample
R
false
false
73
r
uri='https://redcap.university.edu/redcap/api/' token='----your token---'
library(testthat) library(assertive) test_check("assertive")
/tests/testthat.R
no_license
cran/assertive
R
false
false
62
r
library(testthat) library(assertive) test_check("assertive")
plot_stock_status_determination <- function(em_names, col){ comparison_var <- c("fratio", "ssbratio") comparison_id <- which(names(om_list) %in% comparison_var) overfishing_data <- list() overfishing_accuracy <- matrix(NA, nrow=length(year), ncol=length(em_names)) for (k in 1:length(em_names)){ overfishi...
/R/plot_stock_status_determination.R
no_license
msupernaw/githubactiontest
R
false
false
1,807
r
plot_stock_status_determination <- function(em_names, col){ comparison_var <- c("fratio", "ssbratio") comparison_id <- which(names(om_list) %in% comparison_var) overfishing_data <- list() overfishing_accuracy <- matrix(NA, nrow=length(year), ncol=length(em_names)) for (k in 1:length(em_names)){ overfishi...
library(tidyverse) library(rvest) library(magrittr) library(dplyr) all_urls <- paste0("https://247sports.com/Season/2021-Football/CompositeRecruitRankings/?Page=", 1:41) rankings <- map_df(all_urls, ~.x %>% read_html %>% html_nodes(".meta , .rankings-page__star-and-score .score , .position , .rankin...
/R/side_projects/247sportsDataCompiler.R
no_license
zachasman/portfolio
R
false
false
1,263
r
library(tidyverse) library(rvest) library(magrittr) library(dplyr) all_urls <- paste0("https://247sports.com/Season/2021-Football/CompositeRecruitRankings/?Page=", 1:41) rankings <- map_df(all_urls, ~.x %>% read_html %>% html_nodes(".meta , .rankings-page__star-and-score .score , .position , .rankin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correlations.R \name{corr} \alias{corr} \title{Correlation table} \usage{ corr(df, method = "pearson", dummy = TRUE, dates = FALSE, redundant = TRUE, logs = FALSE, plot = FALSE, top = NA) } \arguments{ \item{df}{Dataframe. It doesn't matter...
/man/corr.Rd
no_license
nfultz/lares
R
false
true
1,158
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/correlations.R \name{corr} \alias{corr} \title{Correlation table} \usage{ corr(df, method = "pearson", dummy = TRUE, dates = FALSE, redundant = TRUE, logs = FALSE, plot = FALSE, top = NA) } \arguments{ \item{df}{Dataframe. It doesn't matter...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/non-oo-api.R \name{desc_get_authors} \alias{desc_get_authors} \title{Query all authors in Authors@R, in DESCRIPTION} \usage{ desc_get_authors(file = "DESCRIPTION") } \arguments{ \item{file}{DESCRIPTION file to use.} } \value{ A \code{\link[ut...
/man/desc_get_authors.Rd
no_license
jmpasmoi/desc
R
false
true
733
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/non-oo-api.R \name{desc_get_authors} \alias{desc_get_authors} \title{Query all authors in Authors@R, in DESCRIPTION} \usage{ desc_get_authors(file = "DESCRIPTION") } \arguments{ \item{file}{DESCRIPTION file to use.} } \value{ A \code{\link[ut...
p <- ggplot(mtcars, aes(x = mpg)) + geom_dotplot(method="histodot", binwidth = 1.5)
/ggplot2/Layers/Geoms/geom_dotplot/example3.R
no_license
plotly/ssim_baselines
R
false
false
91
r
p <- ggplot(mtcars, aes(x = mpg)) + geom_dotplot(method="histodot", binwidth = 1.5)
## A pair of functions will be created to cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. ## this function is a list containing a function to ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the inverse of the matrix ## 4. get ...
/cachematrix.R
no_license
seungwook71/ProgrammingAssignment2
R
false
false
1,137
r
## A pair of functions will be created to cache the inverse of a matrix. ## This function creates a special "matrix" object that can cache its inverse. ## this function is a list containing a function to ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the inverse of the matrix ## 4. get ...
library(shiny) library(shinydashboard) library(tidyverse) library(forcats) library(readr) library(leaflet) library(data.table) library(tidyr) library(stringr) library(lubridate) dashboardPage( dashboardHeader(title = "Green Room Certifications"), dashboardSidebar( sidebarMenu( menuItem("Hom...
/ui.R
no_license
cameronreaves/green-room
R
false
false
7,878
r
library(shiny) library(shinydashboard) library(tidyverse) library(forcats) library(readr) library(leaflet) library(data.table) library(tidyr) library(stringr) library(lubridate) dashboardPage( dashboardHeader(title = "Green Room Certifications"), dashboardSidebar( sidebarMenu( menuItem("Hom...
library(rstan) library(shinystan) library(car) library(xtable) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) source("../utilityFunctions.R") ############################### # Read in Data milk <- read.csv("milkFull.csv") unique(milk$clade) # Set up data for stan obs <- milk$kcal x <- ...
/Lecture 13/13.RawCode.R
no_license
zmarion1/BayesianGymnasium2018
R
false
false
7,267
r
library(rstan) library(shinystan) library(car) library(xtable) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) source("../utilityFunctions.R") ############################### # Read in Data milk <- read.csv("milkFull.csv") unique(milk$clade) # Set up data for stan obs <- milk$kcal x <- ...
rm(list=objects()) library(zoo) library(timeDate) library(forecast) library(xts) library(dygraphs) ######Data import setwd(dir = "/Users/Kilian/Programmation/ENSTA_2A/R_project/MAP_STA2/Projet/oil-price-evolution/Valeurs") oilPriceValue<-read.table("Valeurs.csv", sep = ';', dec = ",", skip = 1) head(oilPriceValue) ###...
/comparaison_lisse_brut.R
no_license
kilianFatras/oil-price-evolution
R
false
false
2,606
r
rm(list=objects()) library(zoo) library(timeDate) library(forecast) library(xts) library(dygraphs) ######Data import setwd(dir = "/Users/Kilian/Programmation/ENSTA_2A/R_project/MAP_STA2/Projet/oil-price-evolution/Valeurs") oilPriceValue<-read.table("Valeurs.csv", sep = ';', dec = ",", skip = 1) head(oilPriceValue) ###...
/00-book-notes/01-machine-learning-based-on-r/code-datasets/CH4.R
no_license
charlesliucn/tsinghua-ee-miscellanea
R
false
false
2,386
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tests.R \name{quadeTest} \alias{quadeTest} \title{Quade's test} \usage{ quadeTest(data, ...) } \arguments{ \item{data}{Matrix where the test is performed} \item{...}{Ignored} } \value{ A list with class "htest" containing the following compo...
/man/quadeTest.Rd
no_license
devbib/scmamp
R
false
true
1,161
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tests.R \name{quadeTest} \alias{quadeTest} \title{Quade's test} \usage{ quadeTest(data, ...) } \arguments{ \item{data}{Matrix where the test is performed} \item{...}{Ignored} } \value{ A list with class "htest" containing the following compo...
\name{csvload} \alias{csvload} \title{Data Input} \description{ Reads a csv file. } \details{ Reads csv files using multiple threads. } \keyword{file} \seealso{ \code{\link{read.table}} } \examples{ test1 <- c("a,b,c", 1:5, "6,7", "8.0,9,10.0") tf <- tempfile() writeLines(test1, tf) csvload(tf) unlink(tf) }
/lang/r/camog/man/csvload.Rd
permissive
walshb/camog
R
false
false
315
rd
\name{csvload} \alias{csvload} \title{Data Input} \description{ Reads a csv file. } \details{ Reads csv files using multiple threads. } \keyword{file} \seealso{ \code{\link{read.table}} } \examples{ test1 <- c("a,b,c", 1:5, "6,7", "8.0,9,10.0") tf <- tempfile() writeLines(test1, tf) csvload(tf) unlink(tf) }
context("browser commands") test_that("navigate works", { skip_on_os("windows") skip_if_not_installed("RSelenium") if (!.canPhantomTest()) { skip("This test can't be run in this environment") } server <- epivizrServer::createServer(port=7123L, static_site_pa...
/tests/connected_tests/test-browsing.R
no_license
epiviz/epivizr
R
false
false
2,675
r
context("browser commands") test_that("navigate works", { skip_on_os("windows") skip_if_not_installed("RSelenium") if (!.canPhantomTest()) { skip("This test can't be run in this environment") } server <- epivizrServer::createServer(port=7123L, static_site_pa...