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
.onLoad <- function(lib, pkg) { assign("defaultType", "DB1", .filehashOptions) for(type in c("DB1", "RDS")) { cname <- paste("create", type, sep = "") iname <- paste("initialize", type, sep = "") r <- list(create = get(cname, mode = "function"), ...
/R/zzz.R
no_license
chepakrul/filehash
R
false
false
815
r
.onLoad <- function(lib, pkg) { assign("defaultType", "DB1", .filehashOptions) for(type in c("DB1", "RDS")) { cname <- paste("create", type, sep = "") iname <- paste("initialize", type, sep = "") r <- list(create = get(cname, mode = "function"), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aneuploidy.flag.R \name{aneuploidy.flag} \alias{aneuploidy.flag} \title{Flag chromosomal aneuploidy} \usage{ aneuploidy.flag(files.df, col.file = "bc.gc.gz", verbose = TRUE, ref.samples = NULL, centromere.pos = NULL, nb.cores = 1) } \argume...
/man/aneuploidy.flag.Rd
no_license
MMesbahU/PopSV
R
false
true
1,768
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/aneuploidy.flag.R \name{aneuploidy.flag} \alias{aneuploidy.flag} \title{Flag chromosomal aneuploidy} \usage{ aneuploidy.flag(files.df, col.file = "bc.gc.gz", verbose = TRUE, ref.samples = NULL, centromere.pos = NULL, nb.cores = 1) } \argume...
library(qdap) library(XML) library(tm) library(splitstackshape) library(caret) # Funci?n que a?ade una columna nueva a la bolsa de palabras. Dicha columna contiene la # frecuencia de aparaci?n del conjunto de palabras en los tweets del autor. NuevaColumna <- function(palabras="",contador="",line="",freq="") { for ...
/variety.r
no_license
antonioLD/Text-Mining
R
false
false
10,088
r
library(qdap) library(XML) library(tm) library(splitstackshape) library(caret) # Funci?n que a?ade una columna nueva a la bolsa de palabras. Dicha columna contiene la # frecuencia de aparaci?n del conjunto de palabras en los tweets del autor. NuevaColumna <- function(palabras="",contador="",line="",freq="") { for ...
#' @title Fit xgboost child model function #' @description This function fits xgboost, another implementation of boosted regression trees. Xgboost has a different fitting algorithm #' as compared to gbm, and tends to fit much faster with fewer number of iterations required. This speeds up the run time considerably. #' ...
/antibiotic_usage/mbg_central/LBDCore/R/fit_xgboost_child_model.R
no_license
The-Oxford-GBD-group/antibiotic_modelling_code
R
false
false
9,000
r
#' @title Fit xgboost child model function #' @description This function fits xgboost, another implementation of boosted regression trees. Xgboost has a different fitting algorithm #' as compared to gbm, and tends to fit much faster with fewer number of iterations required. This speeds up the run time considerably. #' ...
# This script generates plots from the results of the Weights-of-Evidence (WoE) method # implemented in DINAMICA EGO to assess the association of various spatial determinants # (e.g., biophysical and socio-economic variables) with the transitions of agricultural # expansion of major crop commodities (i.e., oil palm, ru...
/4 patterns determinants/scripts/weights of evidence/run 0/R_TNI_Run0_WoE-Contrast-Plots_OPM-Per-Transition.R
no_license
dondealban/myanmar
R
false
false
9,024
r
# This script generates plots from the results of the Weights-of-Evidence (WoE) method # implemented in DINAMICA EGO to assess the association of various spatial determinants # (e.g., biophysical and socio-economic variables) with the transitions of agricultural # expansion of major crop commodities (i.e., oil palm, ru...
library(tidyverse) library(dslabs) data(heights) heights %>% ggplot(aes(height,fill=sex))+ geom_density(alpha=0.5)
/code.R
no_license
Anilagna/homework-0
R
false
false
117
r
library(tidyverse) library(dslabs) data(heights) heights %>% ggplot(aes(height,fill=sex))+ geom_density(alpha=0.5)
# ie format library(data.table) library(dplyr) removeIncOnlyTrial = function(dt){ trialWithExc = dt[V2 %in% 'EXC'] %>% pull(V1) %>% unique() dt = dt[V1 %in% trialWithExc] return(dt) } reFormatParsedDt = function(dt){ colnames(dt) = c('nct_id','ie_flag','term','domain','negation','temporal','value','temporal_m...
/tools/ieFormat.R
no_license
WengLab-InformaticsResearch/DQueST
R
false
false
1,170
r
# ie format library(data.table) library(dplyr) removeIncOnlyTrial = function(dt){ trialWithExc = dt[V2 %in% 'EXC'] %>% pull(V1) %>% unique() dt = dt[V1 %in% trialWithExc] return(dt) } reFormatParsedDt = function(dt){ colnames(dt) = c('nct_id','ie_flag','term','domain','negation','temporal','value','temporal_m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{boomer} \alias{boomer} \title{Monthly Births in the US, and England & Wales} \format{ A tibble with 1,644 rows and 6 columns. } \source{ UK Office of National Statistics; US Census Bureau. } \usage{ boomer } \descr...
/man/boomer.Rd
permissive
rserran/socviz
R
false
true
840
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.r \docType{data} \name{boomer} \alias{boomer} \title{Monthly Births in the US, and England & Wales} \format{ A tibble with 1,644 rows and 6 columns. } \source{ UK Office of National Statistics; US Census Bureau. } \usage{ boomer } \descr...
test_data_prep <- function(data = NULL, dataname = NULL, datapath, codepath){ datapath = datapath codepath = codepath function_file_name = "Disney Competition R Function.R" source(paste0(codepath, function_file_name, collapse = '')) lagtime = read.csv(paste0(datapath, 'lagtime.csv', collapse = '...
/HS20/Disney Competition Test data R Code.R
no_license
kstatju/Walt-Disney-Waiting-Time
R
false
false
15,587
r
test_data_prep <- function(data = NULL, dataname = NULL, datapath, codepath){ datapath = datapath codepath = codepath function_file_name = "Disney Competition R Function.R" source(paste0(codepath, function_file_name, collapse = '')) lagtime = read.csv(paste0(datapath, 'lagtime.csv', collapse = '...
rm(list=ls()) library(data.table) library(rgdal) library(dplyr) library(sp) # library(sf) library(foreign) source_1 = "/Users/hn/Documents/00_GitHub/Ag/remote_sensing/remote_core.R" source(source_1) options(digits=9) options(digit=9) ########## ########## Directories ########## data_dir <- paste0("/Users/hn/Documents/...
/remote_sensing/R/weird_shapefile_codes/Grant_2017_sample_4_kirti_plots.R
permissive
HNoorazar/Ag
R
false
false
1,539
r
rm(list=ls()) library(data.table) library(rgdal) library(dplyr) library(sp) # library(sf) library(foreign) source_1 = "/Users/hn/Documents/00_GitHub/Ag/remote_sensing/remote_core.R" source(source_1) options(digits=9) options(digit=9) ########## ########## Directories ########## data_dir <- paste0("/Users/hn/Documents/...
/India/BP_sEM_India_3.R
no_license
ryannuan/BPISI-LSTM
R
false
false
4,273
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dumpQCfiles.R \name{dumpQCfiles} \alias{dumpQCfiles} \title{dump QC (NAs, flags, XY stats) and (optionally) SNP calls and beta values} \usage{ dumpQCfiles(grSet, stub = NULL, path = ".", snps = TRUE, betas = FALSE) } \arguments{ \item{grSet}{...
/man/dumpQCfiles.Rd
no_license
ttriche/miser
R
false
true
1,117
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dumpQCfiles.R \name{dumpQCfiles} \alias{dumpQCfiles} \title{dump QC (NAs, flags, XY stats) and (optionally) SNP calls and beta values} \usage{ dumpQCfiles(grSet, stub = NULL, path = ".", snps = TRUE, betas = FALSE) } \arguments{ \item{grSet}{...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{autoplot.rpart} \alias{autoplot} \alias{autoplot.rpart} \title{Generate a \code{ggplot} for an \code{rpart} object} \usage{ autoplot(object, ...) \method{autoplot}{rpart}(object, ..., title = "Recursive partitioning tree \\n Terminal nodes show fitted respon...
/man/autoplotRpart.Rd
no_license
felixhaass/survMisc
R
false
false
6,187
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{autoplot.rpart} \alias{autoplot} \alias{autoplot.rpart} \title{Generate a \code{ggplot} for an \code{rpart} object} \usage{ autoplot(object, ...) \method{autoplot}{rpart}(object, ..., title = "Recursive partitioning tree \\n Terminal nodes show fitted respon...
\name{EMGauss} \alias{EMGauss} \title{EM Algorithm for GMM} \description{ Expectation-Maximization algorithm to calculate optimal Gaussian Mixture Model for given data in one Dimension. } \usage{ EMGauss(Data, K, Means, SDs,Weights, MaxNumberofIterations,fast) } \arguments{ \item{Data}{vector of data po...
/AdaptGauss/man/EMGauss.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
1,775
rd
\name{EMGauss} \alias{EMGauss} \title{EM Algorithm for GMM} \description{ Expectation-Maximization algorithm to calculate optimal Gaussian Mixture Model for given data in one Dimension. } \usage{ EMGauss(Data, K, Means, SDs,Weights, MaxNumberofIterations,fast) } \arguments{ \item{Data}{vector of data po...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jambio-tx.R \name{flattenExonsBy} \alias{flattenExonsBy} \title{Flatten exons by gene or transcript} \usage{ flattenExonsBy(exonsByTx, tx2geneDF, by = c("gene", "tx"), detectedTx = NULL, genes = NULL, txColname = "transcript_id", geneColn...
/man/flattenExonsBy.Rd
no_license
sridnona/splicejam
R
false
true
4,866
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jambio-tx.R \name{flattenExonsBy} \alias{flattenExonsBy} \title{Flatten exons by gene or transcript} \usage{ flattenExonsBy(exonsByTx, tx2geneDF, by = c("gene", "tx"), detectedTx = NULL, genes = NULL, txColname = "transcript_id", geneColn...
#' @title plotBPC. #' #' @description #' \code{plotBPC} will plot for each item of a list of result-ojects from \link{getMultipleBPC} the BPC traces and the spectrum at the scan where the summed intensity of all ions is max. #' #' @details #' not yet #' #' @param bpc A bpc object (list of intensity matrixes, rt...
/R/plotBPC.R
no_license
cran/HiResTEC
R
false
false
6,995
r
#' @title plotBPC. #' #' @description #' \code{plotBPC} will plot for each item of a list of result-ojects from \link{getMultipleBPC} the BPC traces and the spectrum at the scan where the summed intensity of all ions is max. #' #' @details #' not yet #' #' @param bpc A bpc object (list of intensity matrixes, rt...
# each row is a trial, comprised of a subset of word (object) indices # sampled from the entire vocabulary hiCDord = read.table('freq369-3x3hiCD.txt', sep='\t', header=F) loCDord = read.table('freq369-3x3loCD.txt', sep='\t', header=F) # define a function that accepts an array of trials (e.g., hiCDord) # and returns...
/workgroup_1_-_cognitive_modeling_of_word_learning/wordlearn2.R
no_license
ChristophSchmidl/cognitive-computational-modeling-of-language-and-web-interaction
R
false
false
3,397
r
# each row is a trial, comprised of a subset of word (object) indices # sampled from the entire vocabulary hiCDord = read.table('freq369-3x3hiCD.txt', sep='\t', header=F) loCDord = read.table('freq369-3x3loCD.txt', sep='\t', header=F) # define a function that accepts an array of trials (e.g., hiCDord) # and returns...
# Supress Warnings in Prod options(warn=-1) ######################################################################################################################## #' Installation of required packages - This part loads/ Installs packages that are required to perform model diagnostics #################################...
/development/testing/test_plan1/5_1_5_KS_statistic/01_KS_statistic.R
no_license
kpertsovski/Base-PD-model-dsgn3
R
false
false
6,135
r
# Supress Warnings in Prod options(warn=-1) ######################################################################################################################## #' Installation of required packages - This part loads/ Installs packages that are required to perform model diagnostics #################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SSplotCohorts.R \name{SSplotCohorts} \alias{SSplotCohorts} \title{Plot cumulative catch by cohort.} \usage{ SSplotCohorts(replist, subplots = 1:2, add = FALSE, plot = TRUE, print = FALSE, cohortcols = "default", cohortfrac = 1, cohortvec ...
/man/SSplotCohorts.Rd
no_license
thefaylab/r4ss
R
false
true
2,490
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SSplotCohorts.R \name{SSplotCohorts} \alias{SSplotCohorts} \title{Plot cumulative catch by cohort.} \usage{ SSplotCohorts(replist, subplots = 1:2, add = FALSE, plot = TRUE, print = FALSE, cohortcols = "default", cohortfrac = 1, cohortvec ...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{filecoding} \alias{filecoding} \title{Files encoding detection} \usage{ filecoding(file) } \arguments{ \item{file}{A file path.} } \value{ The encoding of file. } \description{ The function detect the encoding of input files encoding. } \author{...
/man/filecoding.Rd
permissive
dedream/jiebaR
R
false
false
399
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{filecoding} \alias{filecoding} \title{Files encoding detection} \usage{ filecoding(file) } \arguments{ \item{file}{A file path.} } \value{ The encoding of file. } \description{ The function detect the encoding of input files encoding. } \author{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{check_fitted_values} \alias{check_fitted_values} \title{Check pre-computed fitted values for call to vim, cv_vim, or sp_vim} \usage{ check_fitted_values( Y = NULL, f1 = NULL, f2 = NULL, cross_fitted_f1 = NULL, cross_fi...
/man/check_fitted_values.Rd
permissive
minghao2016/vimp
R
false
true
1,649
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{check_fitted_values} \alias{check_fitted_values} \title{Check pre-computed fitted values for call to vim, cv_vim, or sp_vim} \usage{ check_fitted_values( Y = NULL, f1 = NULL, f2 = NULL, cross_fitted_f1 = NULL, cross_fi...
#!/usr/bin/Rscript library(tm) setwd("/home/laura/Desktop/My Documents/DigitalHumanities/ceos_textanalysis/ceo_sentiment/text_diff") a <- Corpus(DirSource("/home/laura/Desktop/My Documents/DigitalHumanities/ceos_textanalysis/ceo_sentiment/text_diff/diff_nyt")) #the directory should have two text files in it, the fil...
/textanalysis_workshop_diffprop.r
no_license
dkalpathi/D-Lab--Text-Analysis-Workshop
R
false
false
2,523
r
#!/usr/bin/Rscript library(tm) setwd("/home/laura/Desktop/My Documents/DigitalHumanities/ceos_textanalysis/ceo_sentiment/text_diff") a <- Corpus(DirSource("/home/laura/Desktop/My Documents/DigitalHumanities/ceos_textanalysis/ceo_sentiment/text_diff/diff_nyt")) #the directory should have two text files in it, the fil...
dfitvariogram <- function(vout,nbr) { ## vout : output from dvariogram ## nbr : orginal observation points ## value: obj use to calculate fitted variogram for space time kriging fs0 <- working.fitvariog1(vout$gamma.s0) vfs0 <- get(paste('v',fs0$model,sep='')) f0t <- working.fitvariog1(vout$gamma.0t) vf0t...
/R/dfitvariogram.R
no_license
cran/ltsk
R
false
false
1,310
r
dfitvariogram <- function(vout,nbr) { ## vout : output from dvariogram ## nbr : orginal observation points ## value: obj use to calculate fitted variogram for space time kriging fs0 <- working.fitvariog1(vout$gamma.s0) vfs0 <- get(paste('v',fs0$model,sep='')) f0t <- working.fitvariog1(vout$gamma.0t) vf0t...
library(qqman) library(dplyr) library(ggplot2) library(RColorBrewer) setwd("/home/mikhail/Desktop/BI_2019/project/Pascal_output_processing/making_manhatan_plot") manhattan_data <- read.csv(file = "20016_raw/20016_raw_sum.genescores.txt", header = TRUE, stringsAsFactors = FALSE,sep = "\t") manhattan_data[manhattan_data...
/manhatan_plot_for_genes.R
no_license
MrDunn0/BRB_1_project_2019
R
false
false
1,893
r
library(qqman) library(dplyr) library(ggplot2) library(RColorBrewer) setwd("/home/mikhail/Desktop/BI_2019/project/Pascal_output_processing/making_manhatan_plot") manhattan_data <- read.csv(file = "20016_raw/20016_raw_sum.genescores.txt", header = TRUE, stringsAsFactors = FALSE,sep = "\t") manhattan_data[manhattan_data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{normalizeData} \alias{normalizeData} \title{Normalize Data} \usage{ normalizeData(object, sample.norm.method = "scale_common_factor", column.scale.factor = 1e+06) } \arguments{ \item{object}{A \code{TimeSeriesExperiment} objec...
/man/normalizeData.Rd
no_license
rreja/TimeSeriesExperiment
R
false
true
973
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{normalizeData} \alias{normalizeData} \title{Normalize Data} \usage{ normalizeData(object, sample.norm.method = "scale_common_factor", column.scale.factor = 1e+06) } \arguments{ \item{object}{A \code{TimeSeriesExperiment} objec...
# Clear workspace --------------------------------------------------------- rm(list = ls()) # Load libraries ---------------------------------------------------------- library("tidyverse") library("broom") library("ggplot2") library("scales") # Load data -------------------------------------------------------------...
/R/07_pca.R
no_license
rforbiodatascience21/2021_group20_final_project
R
false
false
3,132
r
# Clear workspace --------------------------------------------------------- rm(list = ls()) # Load libraries ---------------------------------------------------------- library("tidyverse") library("broom") library("ggplot2") library("scales") # Load data -------------------------------------------------------------...
#Create a plot including selected wells as points #and the basins as polygons require(geoR) require(ggplot2) require(scales) #require(sqldf) source('../inventory/interpolation_domain.R') # rm(list=ls()) #Add basin 3 coordinates f3basin<-readRDS("../basin_coords/f3basin.rdata") f3basin27<-readRDS("../basin_coords/f3...
/figures/raw_scripts/test_plot_basins+wl+pickwells.R
no_license
artwr/srs_work
R
false
false
4,059
r
#Create a plot including selected wells as points #and the basins as polygons require(geoR) require(ggplot2) require(scales) #require(sqldf) source('../inventory/interpolation_domain.R') # rm(list=ls()) #Add basin 3 coordinates f3basin<-readRDS("../basin_coords/f3basin.rdata") f3basin27<-readRDS("../basin_coords/f3...
# author: @lrdegeest # https://www.tidyverse.org/ # https://dplyr.tidyverse.org/ library(tidyverse) # manipulation with dplyr -------------------------------------------------- # dplyr is a jewel in the R data science crown # it is bundled with the tidyverse # it takes the idea that objects are nouns and functions ar...
/R/R-intro/r-intro-dplyr.R
permissive
sherrytp/be_bc_f19
R
false
false
2,756
r
# author: @lrdegeest # https://www.tidyverse.org/ # https://dplyr.tidyverse.org/ library(tidyverse) # manipulation with dplyr -------------------------------------------------- # dplyr is a jewel in the R data science crown # it is bundled with the tidyverse # it takes the idea that objects are nouns and functions ar...
############################################################ ## R code to accompany the textbook ## Statistics: The Art & Science of Learning from Data ## by A. Agresti, C. Franklin and B. Klingenberg ## 5th Edition, Pearson 2021 ## Web: ArtofStat.com ## Copyright: Bernhard Klingenberg #################################...
/Chapter_13/Chp_13_Example_7.R
no_license
artofstat/RCode
R
false
false
867
r
############################################################ ## R code to accompany the textbook ## Statistics: The Art & Science of Learning from Data ## by A. Agresti, C. Franklin and B. Klingenberg ## 5th Edition, Pearson 2021 ## Web: ArtofStat.com ## Copyright: Bernhard Klingenberg #################################...
\name{dauction} \alias{dauction} \title{Perform an auction algorithm on a GPU} \description{ This function performs, with the aid of a GPU, an auction algorithm. } \usage{ dauction(weights) } \arguments{ \item{weights}{a data frame with three columns: two character columns for storing ids, weights$bidder and wei...
/man/dauction.Rd
no_license
nullsatz/dauc
R
false
false
931
rd
\name{dauction} \alias{dauction} \title{Perform an auction algorithm on a GPU} \description{ This function performs, with the aid of a GPU, an auction algorithm. } \usage{ dauction(weights) } \arguments{ \item{weights}{a data frame with three columns: two character columns for storing ids, weights$bidder and wei...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_prep.r \name{sonde_reader} \alias{sonde_reader} \title{Reads in sonde data from various model formats and creates tidy data} \usage{ sonde_reader(path) } \arguments{ \item{path}{Character string filepath to location of sonde data xlsx wo...
/man/sonde_reader.Rd
permissive
dbca-wa/rivRmon
R
false
true
1,074
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_prep.r \name{sonde_reader} \alias{sonde_reader} \title{Reads in sonde data from various model formats and creates tidy data} \usage{ sonde_reader(path) } \arguments{ \item{path}{Character string filepath to location of sonde data xlsx wo...
animal_sounds <- function(animal, sound) { assertthat::assert_that( assertthat::is.string(animal), assertthat::is.string(sound) ) paste0("The ", animal, " goes ", sound, "!") }
/R/animal_sounds.R
permissive
JuliaC42/mypackage1
R
false
false
205
r
animal_sounds <- function(animal, sound) { assertthat::assert_that( assertthat::is.string(animal), assertthat::is.string(sound) ) paste0("The ", animal, " goes ", sound, "!") }
# --------------------------------------------------------------------- # Paper: P. Burdejova and W.K. Härdle # "Dynamics of Tail Event Curves" # --------------------------------------------------------------------- # Quantlet: DYTEC_hurricanes # ------------------------------------------------------------...
/DYTEC_hurricanes/DYTEC_hurricanes.R
no_license
QuantLet/Dynamics-of-Tail-Event-Curves
R
false
false
3,052
r
# --------------------------------------------------------------------- # Paper: P. Burdejova and W.K. Härdle # "Dynamics of Tail Event Curves" # --------------------------------------------------------------------- # Quantlet: DYTEC_hurricanes # ------------------------------------------------------------...
# Estimation functions # Written by Kevin Potter # email: kevin.w.potter@gmail.com # Please email me directory if you # have any questions or comments # Last updated 2018-04-23 # Table of contents # 1) Initial setup # 2) Functions (General purpose) # 2.1) convergenceExtract # 2.2) findDec # 2.3) plotConvergence...
/2018/CAM/NBack_03_19_2018/Old_scripts/Estimation_functions.R
no_license
rettopnivek/Analyses
R
false
false
12,741
r
# Estimation functions # Written by Kevin Potter # email: kevin.w.potter@gmail.com # Please email me directory if you # have any questions or comments # Last updated 2018-04-23 # Table of contents # 1) Initial setup # 2) Functions (General purpose) # 2.1) convergenceExtract # 2.2) findDec # 2.3) plotConvergence...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.lpcr.R \name{predict.lpcr} \alias{predict.lpcr} \title{Elastic Prediction for functional logisitc PCR Model} \usage{ \method{predict}{lpcr}(object, newdata = NULL, y = NULL, ...) } \arguments{ \item{object}{Object of class inheriting ...
/fuzzedpackages/fdasrvf/man/predict.lpcr.Rd
no_license
akhikolla/testpackages
R
false
true
1,172
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.lpcr.R \name{predict.lpcr} \alias{predict.lpcr} \title{Elastic Prediction for functional logisitc PCR Model} \usage{ \method{predict}{lpcr}(object, newdata = NULL, y = NULL, ...) } \arguments{ \item{object}{Object of class inheriting ...
#' @title Get Terra Climate Data for an Area of Interest #' @description TerraClim a dataset of high-spatial resolution (1/24°, ~4-km) monthly climate and climatic water balance for global terrestrial surfaces from 1958-2015. #' These data were created by using climatically aided interpolation, combining high-spatial ...
/R/getTerraClim.R
permissive
minasel/climateR
R
false
false
2,178
r
#' @title Get Terra Climate Data for an Area of Interest #' @description TerraClim a dataset of high-spatial resolution (1/24°, ~4-km) monthly climate and climatic water balance for global terrestrial surfaces from 1958-2015. #' These data were created by using climatically aided interpolation, combining high-spatial ...
## ---- message=FALSE, warning=FALSE----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ##load packages packages <- c("plyr", "ggplot2", "caret", "Hmisc", "mice", "stringr", "gridE...
/r/kernels/misechko-predict-survival-on-the-titanic-title/script/predict-survival-on-the-titanic-title.R
no_license
helenaK/trustworthy-titanic
R
false
false
6,932
r
## ---- message=FALSE, warning=FALSE----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ##load packages packages <- c("plyr", "ggplot2", "caret", "Hmisc", "mice", "stringr", "gridE...
# Assignment_6_week_11_Feb # 1. Make a linear model for one or more of your hypotheses. # 2. Draw and discuss at least one of each of the following: # 2.1. diagnostic plot # 2.2 inferential plot (e.g., a coefficient plot, or something from emmeans or effects) library(tidyverse) library(ggplot2); theme_set(them...
/assignments/assignment_6_week_11_Feb.R
no_license
marshse/QMEE
R
false
false
5,053
r
# Assignment_6_week_11_Feb # 1. Make a linear model for one or more of your hypotheses. # 2. Draw and discuss at least one of each of the following: # 2.1. diagnostic plot # 2.2 inferential plot (e.g., a coefficient plot, or something from emmeans or effects) library(tidyverse) library(ggplot2); theme_set(them...
library(tidyverse) library(stringr) library(RColorBrewer) library(reshape2) library(ISLR) library(gplots) library(pvclust) stage_split1 <- function(x, y) { splits <- str_split_fixed(x$y, " ", 2) #x <- cbind.data.frame(splits, x) #names(x)[names(x) == '2'] <- 'Stages' #x <- subset(x, select=-c(1, y)) } ###### ...
/Ovary_OV_TCGA_Prov.R
no_license
zhangyupisa/work
R
false
false
9,613
r
library(tidyverse) library(stringr) library(RColorBrewer) library(reshape2) library(ISLR) library(gplots) library(pvclust) stage_split1 <- function(x, y) { splits <- str_split_fixed(x$y, " ", 2) #x <- cbind.data.frame(splits, x) #names(x)[names(x) == '2'] <- 'Stages' #x <- subset(x, select=-c(1, y)) } ###### ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getIndex.R \name{getIndex} \alias{getIndex} \title{get a company's market cap, data comes from NetEase} \usage{ getIndex(tickers, indexData) } \arguments{ \item{tickers}{ticker/sympol of a company, MUST BE A CHARACTER, e.g., input "006600" in...
/man/getIndex.Rd
no_license
Yuanchao-Xu/gfer
R
false
true
1,027
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getIndex.R \name{getIndex} \alias{getIndex} \title{get a company's market cap, data comes from NetEase} \usage{ getIndex(tickers, indexData) } \arguments{ \item{tickers}{ticker/sympol of a company, MUST BE A CHARACTER, e.g., input "006600" in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NP-EqualityTests.R \name{friedmanAR.test} \alias{friedmanAR.test} \title{Friedman Aligned-Rank} \usage{ friedmanAR.test(matrix) } \arguments{ \item{matrix}{Matrix of data} } \value{ A list with pvalues for alternative hypothesis, statistics, ...
/man/friedmanAR.test.Rd
no_license
JacintoCC/rNPBST
R
false
true
451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NP-EqualityTests.R \name{friedmanAR.test} \alias{friedmanAR.test} \title{Friedman Aligned-Rank} \usage{ friedmanAR.test(matrix) } \arguments{ \item{matrix}{Matrix of data} } \value{ A list with pvalues for alternative hypothesis, statistics, ...
# Classification Tree with rpart library(rpart) # grow tree fit <- rpart(Kyphosis ~ Age + Number + Start, method="class", data=kyphosis) predict(fit) newfit=fit newframe = newfit$frame[,"yval2"] newframe[,4]=1 newframe[,5]=0 newfit$frame[,"yval2"]=newframe predict(newfit) unique(fit$where) dim(fit$fra...
/rpart_research.r
no_license
Peter-John88/PANDO
R
false
false
481
r
# Classification Tree with rpart library(rpart) # grow tree fit <- rpart(Kyphosis ~ Age + Number + Start, method="class", data=kyphosis) predict(fit) newfit=fit newframe = newfit$frame[,"yval2"] newframe[,4]=1 newframe[,5]=0 newfit$frame[,"yval2"]=newframe predict(newfit) unique(fit$where) dim(fit$fra...
########################################## # First Canonical Correlation in R # Use stat package # Read data set ########################################## install.packages("stats") data(LifeCycleSavings) # Create x and y variables pop = LifeCycleSavings[,2:3] oec = LifeCycleSavings[,-(2:3)] # View x ...
/Schumacker Data and R Files Ch08/Schumacker Data and R Files Ch08/Chap8canonicalr.r
no_license
aryland/RMultivariateStatistics
R
false
false
1,871
r
########################################## # First Canonical Correlation in R # Use stat package # Read data set ########################################## install.packages("stats") data(LifeCycleSavings) # Create x and y variables pop = LifeCycleSavings[,2:3] oec = LifeCycleSavings[,-(2:3)] # View x ...
# These functions are tested indirectly when the models are used. Since this # function is executed on package startup, you can't execute them to test since # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. # nocov make_exp_smoothing <- function() { pars...
/R/parsnip-exp_smoothing_data.R
permissive
DrRoad/modeltime
R
false
false
2,827
r
# These functions are tested indirectly when the models are used. Since this # function is executed on package startup, you can't execute them to test since # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. # nocov make_exp_smoothing <- function() { pars...
get.activity.data <- function(in.destination.dir, in.file.name) { # Constants activity.file.name <- paste(in.destination.dir, in.file.name, sep="/") activity.df <- data.frame() if(file.exists(activity.file.name)) { activity.df <- read.table(activity.file.name, sep="", stringsAsFactors = FALSE, colC...
/get.activity.data.R
no_license
miamidougwarner/HumanActivity
R
false
false
471
r
get.activity.data <- function(in.destination.dir, in.file.name) { # Constants activity.file.name <- paste(in.destination.dir, in.file.name, sep="/") activity.df <- data.frame() if(file.exists(activity.file.name)) { activity.df <- read.table(activity.file.name, sep="", stringsAsFactors = FALSE, colC...
ramsvm <- function(x, y, lambda, gamma = 0.5, weight = NULL, kernel = "linear", kparam = NULL, large = FALSE, epsilon = NULL, warm ...
/R/ramsvm.R
no_license
cran/ramsvm
R
false
false
6,331
r
ramsvm <- function(x, y, lambda, gamma = 0.5, weight = NULL, kernel = "linear", kparam = NULL, large = FALSE, epsilon = NULL, warm ...
\name{OutlierDC-class} \Rdversion{1.1} \docType{class} \alias{OutlierDC-class} \title{ "OutlierDC" class} \description{ The \code{S4} class of \code{OutlierDC} } \section{Objects from the "OutlierDC" Class}{ Objects can be created by calls of the form \code{new("OutlierDC")}. } \section{Slots}{ \describe{ \i...
/man/outlierdc-class.rd
no_license
sooheang/OutlierDC
R
false
false
3,483
rd
\name{OutlierDC-class} \Rdversion{1.1} \docType{class} \alias{OutlierDC-class} \title{ "OutlierDC" class} \description{ The \code{S4} class of \code{OutlierDC} } \section{Objects from the "OutlierDC" Class}{ Objects can be created by calls of the form \code{new("OutlierDC")}. } \section{Slots}{ \describe{ \i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetALLHazPiece.R \name{GetALLHazPiece} \alias{GetALLHazPiece} \title{Computes the posterior hazard values for a vector x for the Piecewise Exponential Hazard model (PEH)} \usage{ GetALLHazPiece(x, G1) } \arguments{ \item{x}{Vector of...
/fuzzedpackages/BayesReversePLLH/man/GetALLHazPiece.Rd
no_license
akhikolla/testpackages
R
false
true
636
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GetALLHazPiece.R \name{GetALLHazPiece} \alias{GetALLHazPiece} \title{Computes the posterior hazard values for a vector x for the Piecewise Exponential Hazard model (PEH)} \usage{ GetALLHazPiece(x, G1) } \arguments{ \item{x}{Vector of...
library(tidyverse) #setwd("C:/Users/NYUCM Loaner Access/Documents/GitHub/ling_in_loop/scripts") this.dir <- dirname(rstudioapi::getSourceEditorContext()$path) setwd(this.dir) # function for reading in .jsonl files read_json_lines <- function(file){ con <- file(file, open = "r") on.exit(close(con)) jsonlite::str...
/scripts/for_mturk/get_random_examples.R
no_license
Alicia-Parrish/ling_in_loop
R
false
false
1,464
r
library(tidyverse) #setwd("C:/Users/NYUCM Loaner Access/Documents/GitHub/ling_in_loop/scripts") this.dir <- dirname(rstudioapi::getSourceEditorContext()$path) setwd(this.dir) # function for reading in .jsonl files read_json_lines <- function(file){ con <- file(file, open = "r") on.exit(close(con)) jsonlite::str...
## Caching the Inverse of a Matrix ## This function creates a special "matrix" object ## that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setsolve <- function(solve) s ...
/cachematrix.R
no_license
alexbukreev/ProgrammingAssignment2
R
false
false
854
r
## Caching the Inverse of a Matrix ## This function creates a special "matrix" object ## that can cache its inverse. makeCacheMatrix <- function(x = matrix()) { s <- NULL set <- function(y) { x <<- y s <<- NULL } get <- function() x setsolve <- function(solve) s ...
set.seed(666) x1 = rnorm(1000) # some continuous variables x2 = rbinom(1000,1,0.5) z = 1 + 2*x1 + 3*x2 # linear combination with a bias pr = 1/(1+exp(-z)) # pass through an inv-logit function plot(pr~x1) y = rbinom(1000,1,pr) # bernoulli response variable #now feed it to glm: df ...
/Stats/Predict_Binomial_Interaction.R
no_license
anasanz/MyScripts
R
false
false
2,011
r
set.seed(666) x1 = rnorm(1000) # some continuous variables x2 = rbinom(1000,1,0.5) z = 1 + 2*x1 + 3*x2 # linear combination with a bias pr = 1/(1+exp(-z)) # pass through an inv-logit function plot(pr~x1) y = rbinom(1000,1,pr) # bernoulli response variable #now feed it to glm: df ...
library(microclass) ### Name: setParallel ### Title: Set number of parallel threads ### Aliases: setParallel ### ** Examples ## Not run: ##D setParallel() # Use all available logical cores. ## End(Not run)
/data/genthat_extracted_code/microclass/examples/setParallel.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
215
r
library(microclass) ### Name: setParallel ### Title: Set number of parallel threads ### Aliases: setParallel ### ** Examples ## Not run: ##D setParallel() # Use all available logical cores. ## End(Not run)
#!/applications/R/R-3.5.0/bin/Rscript # Plot ChIP and input enrichment fingerprints (Lorenz curves) generated by deepTools library(dplyr) REC8tab <- read.table("./REC8_ChIP_input_fingerprints.tab", header = T) SPO11tab <- read.table("/projects/ajt200/BAM_masters/SPO11_ChIP/WT/SPO11_1_fingerprints...
/plotFingerprint.R
no_license
ajtock/REC8_pooled
R
false
false
8,014
r
#!/applications/R/R-3.5.0/bin/Rscript # Plot ChIP and input enrichment fingerprints (Lorenz curves) generated by deepTools library(dplyr) REC8tab <- read.table("./REC8_ChIP_input_fingerprints.tab", header = T) SPO11tab <- read.table("/projects/ajt200/BAM_masters/SPO11_ChIP/WT/SPO11_1_fingerprints...
/AQI_AQ data/corr_PM10_PM25.R
no_license
karafede/AQI
R
false
false
10,247
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(readr) library(knitr) library(tidyverse) if(!require(plotly)) install.packages("plotly", repos = "http://c...
/appV1.1.R
no_license
jonathanmoscovici/CovidQuebec
R
false
false
7,685
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(readr) library(knitr) library(tidyverse) if(!require(plotly)) install.packages("plotly", repos = "http://c...
### final rankings from 2010 to 2014 ### filenames <- list.files("./data/", pattern = "rank*") curwd <- getwd() setwd("./data/") franks <- lapply(filenames, read.csv) setwd(curwd) getx0 <- function(rankscsv){ rankscsv <- rankscsv[-31,1:2] rankscsv$x0 <- 14.5:-14.5 rankscsv$Tm <- as.character(rankscsv$Tm) # ra...
/getx0.R
no_license
mjmoon/timeseriesFin
R
false
false
1,130
r
### final rankings from 2010 to 2014 ### filenames <- list.files("./data/", pattern = "rank*") curwd <- getwd() setwd("./data/") franks <- lapply(filenames, read.csv) setwd(curwd) getx0 <- function(rankscsv){ rankscsv <- rankscsv[-31,1:2] rankscsv$x0 <- 14.5:-14.5 rankscsv$Tm <- as.character(rankscsv$Tm) # ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pub01_utilityFuncs.R \name{renameCol} \alias{renameCol} \title{Rename columns in a matrix or a dataframe.} \usage{ renameCol(indata, src, tgt) } \arguments{ \item{indata}{A dataframe or a matrix} \item{src}{Source: Vector of names of columns...
/man/renameCol.Rd
no_license
raphael210/QUtility
R
false
true
792
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pub01_utilityFuncs.R \name{renameCol} \alias{renameCol} \title{Rename columns in a matrix or a dataframe.} \usage{ renameCol(indata, src, tgt) } \arguments{ \item{indata}{A dataframe or a matrix} \item{src}{Source: Vector of names of columns...
######################################## Categorize Keywords ######################################## library(dplyr) library(data.table) dataf <- read.csv("J:/Lucas/Animal Research/query/with faculty - 2.csv",header = TRUE) data_liggins<-dataf%>%filter(FACULTY_CODE == 'LIGGINS') data_liggins2<-data_lig...
/Build Vocabulary.R
no_license
lucas3359/text-mining-animal-ethics
R
false
false
5,251
r
######################################## Categorize Keywords ######################################## library(dplyr) library(data.table) dataf <- read.csv("J:/Lucas/Animal Research/query/with faculty - 2.csv",header = TRUE) data_liggins<-dataf%>%filter(FACULTY_CODE == 'LIGGINS') data_liggins2<-data_lig...
#Giữ giá trị cố định khi giả lập dữ liệu set.seed(100) #Giả lập dữ liêu với 40000 giá trị "Nu" và 60000 giá trị "Nam" (Giả lập số lượng) pop <- c(rep('Nu', 40000), rep('Nam', 60000)); pop #Tính tỷ lệ p <- sum(pop == 'Nu')/length(pop); p #Lấy mẫu với n = 100 phần từ tập pop n <- 100; sample1 <- sample(pop, n); sampl...
/ConfidenceInterval/R_PhanPhoiMau_TyLeNu.r
no_license
VMHDev/r_gettingstarted
R
false
false
761
r
#Giữ giá trị cố định khi giả lập dữ liệu set.seed(100) #Giả lập dữ liêu với 40000 giá trị "Nu" và 60000 giá trị "Nam" (Giả lập số lượng) pop <- c(rep('Nu', 40000), rep('Nam', 60000)); pop #Tính tỷ lệ p <- sum(pop == 'Nu')/length(pop); p #Lấy mẫu với n = 100 phần từ tập pop n <- 100; sample1 <- sample(pop, n); sampl...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') # use this for interactive setup # library(h2o) # library(testthat) # h2o.startLogging() # conn = h2o.init() test.cbind <- function() { # orig # df = data.frame(matrix(1:300000, nrow=300000, nco...
/h2o-r/tests/testdir_munging/exec/runit_pub-770.R
permissive
tamseo/h2o-3
R
false
false
1,194
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') # use this for interactive setup # library(h2o) # library(testthat) # h2o.startLogging() # conn = h2o.init() test.cbind <- function() { # orig # df = data.frame(matrix(1:300000, nrow=300000, nco...
#' Standard deviation of soil total nitrogen content in a south area (33 x 33km) of lake Alaotra in Madagascar. #' #' A dataset containing the standard deviation of soil TN content from 0-30 cm layer. #' #' @docType data #' #' @format a RasterLayer with dimensions : 134, 135, 18090 (nrow, ncol, ncell), #' resolutio...
/R/TN_sd-data.R
no_license
ksawicka/spup
R
false
false
872
r
#' Standard deviation of soil total nitrogen content in a south area (33 x 33km) of lake Alaotra in Madagascar. #' #' A dataset containing the standard deviation of soil TN content from 0-30 cm layer. #' #' @docType data #' #' @format a RasterLayer with dimensions : 134, 135, 18090 (nrow, ncol, ncell), #' resolutio...
library("tidyverse") library("here") library("readxl") esamiric <- readRDS(file = here("programmazione", "NUOVA VERSIONE", "shinyapp", "esamiricavi.rds")) vpai <- readRDS(file = here("programmazione", "NUOVA VERSIONE", "shinyapp", "vpai.rds")) esamiric %>% group_by(Anno, Dipartimento) %>% summarise("Esami"...
/PROGRAMMAZIONE/Relazione Performances 2020/2020 relazione performance tab e figure/tabelle per relazione performances.R
no_license
TMax66/IZSLER-COGES
R
false
false
383
r
library("tidyverse") library("here") library("readxl") esamiric <- readRDS(file = here("programmazione", "NUOVA VERSIONE", "shinyapp", "esamiricavi.rds")) vpai <- readRDS(file = here("programmazione", "NUOVA VERSIONE", "shinyapp", "vpai.rds")) esamiric %>% group_by(Anno, Dipartimento) %>% summarise("Esami"...
plot1 <- function() { ## Show a message on screen to wait up to end of process message("The script is running, Please wait...") message(" ") ## Create EDACP1 folder for data as abbrivation of Exploratory Data Analysis Course Project 1 if(!file.exists("./EDACP1")){ dir.create("./EDACP1") download.file("ht...
/plot1.R
no_license
emamdoost/Exploratory-Data-Analysis_Project1
R
false
false
1,706
r
plot1 <- function() { ## Show a message on screen to wait up to end of process message("The script is running, Please wait...") message(" ") ## Create EDACP1 folder for data as abbrivation of Exploratory Data Analysis Course Project 1 if(!file.exists("./EDACP1")){ dir.create("./EDACP1") download.file("ht...
# Analysis and Figure plan AnalysisPlan <- drake_plan( # diversity indices CommResp = calc_comm_metrics(Community), # change in community metrics over time Comm_Metric_Change = community_metric_change(Community, metaItex, CommResp), Comm_t_Test = community_t_test(Comm_Metric_Change), Comm_t_Test_Supp...
/ITEX_analyses/R/AnalysisPlan.R
no_license
EnquistLab/PFTC4_Svalbard
R
false
false
3,995
r
# Analysis and Figure plan AnalysisPlan <- drake_plan( # diversity indices CommResp = calc_comm_metrics(Community), # change in community metrics over time Comm_Metric_Change = community_metric_change(Community, metaItex, CommResp), Comm_t_Test = community_t_test(Comm_Metric_Change), Comm_t_Test_Supp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliers_mcd.R \name{outliers_mcd} \alias{outliers_mcd} \title{MCD function to detect outliers} \usage{ outliers_mcd(x, h, alpha, na.rm) } \arguments{ \item{x}{matrix of bivariate values from which we want to compute outliers} \item{h}{propo...
/man/outliers_mcd.Rd
permissive
mdelacre/Routliers
R
false
true
1,461
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliers_mcd.R \name{outliers_mcd} \alias{outliers_mcd} \title{MCD function to detect outliers} \usage{ outliers_mcd(x, h, alpha, na.rm) } \arguments{ \item{x}{matrix of bivariate values from which we want to compute outliers} \item{h}{propo...
library(shiny) ui <- fluidPage( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnorm", "Exponential" = "exp")), plotOutput("distPlot") ) server <- function(input, output) { outpu...
/R Shiny/R Shiny 프로그래밍 가이드_고석범/chapter6/app_p213.R
no_license
praster1/Practice
R
false
false
620
r
library(shiny) ui <- fluidPage( radioButtons("dist", "Distribution type:", c("Normal" = "norm", "Uniform" = "unif", "Log-normal" = "lnorm", "Exponential" = "exp")), plotOutput("distPlot") ) server <- function(input, output) { outpu...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/keyfct.th.R \name{keyfct.th2} \alias{keyfct.th2} \title{Threshold key function} \usage{ keyfct.th2(distance, key.scale, key.shape) } \arguments{ \item{distance}{perpendicular distance vector} \item{key.scale}{vector of scale values} ...
/mrds/man/keyfct.th2.Rd
no_license
LHMarshall/mrds
R
false
false
438
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/keyfct.th.R \name{keyfct.th2} \alias{keyfct.th2} \title{Threshold key function} \usage{ keyfct.th2(distance, key.scale, key.shape) } \arguments{ \item{distance}{perpendicular distance vector} \item{key.scale}{vector of scale values} ...
library(treeplyr) ### Name: filter_.treedata ### Title: Function for filtering rows from an object of class 'treedata' ### Aliases: filter_.treedata filter.treedata filter_.grouped_treedata ### filter.grouped_treedata filter_.grouped_treedata ### ** Examples data(anolis) td <- make.treedata(anolis$phy, anolis$dat...
/data/genthat_extracted_code/treeplyr/examples/filter_.treedata.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
390
r
library(treeplyr) ### Name: filter_.treedata ### Title: Function for filtering rows from an object of class 'treedata' ### Aliases: filter_.treedata filter.treedata filter_.grouped_treedata ### filter.grouped_treedata filter_.grouped_treedata ### ** Examples data(anolis) td <- make.treedata(anolis$phy, anolis$dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TKRscattmatrixMiss.R \name{TKRscattmatrixMiss} \alias{TKRscattmatrixMiss} \title{Scatterplot matrix with information about missing/imputed values} \usage{ TKRscattmatrixMiss(x, delimiter = NULL, highlight = NULL, selection = c("any",...
/man/TKRscattmatrixMiss.Rd
no_license
alexkowa/VIMGUI
R
false
true
5,266
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TKRscattmatrixMiss.R \name{TKRscattmatrixMiss} \alias{TKRscattmatrixMiss} \title{Scatterplot matrix with information about missing/imputed values} \usage{ TKRscattmatrixMiss(x, delimiter = NULL, highlight = NULL, selection = c("any",...
#' Biotechnological advances in sequencing have led to an explosion of #' publicly available data via large international consortia such as #' the NCI Genomic Data Commons (GDC), The #' Encyclopedia of DNA Elements (ENCODE), #' and The NIH Roadmap Epigenomics Mapping Consortium #' (Roadmap). These projects have...
/R/TCGAWorkflow.R
no_license
zhangyupisa/TCGAWorkflow
R
false
false
2,216
r
#' Biotechnological advances in sequencing have led to an explosion of #' publicly available data via large international consortia such as #' the NCI Genomic Data Commons (GDC), The #' Encyclopedia of DNA Elements (ENCODE), #' and The NIH Roadmap Epigenomics Mapping Consortium #' (Roadmap). These projects have...
#' Data frame of independent LD regions #' #' Taken from Berisa and Pickrell (2016) - \url{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4731402/} - a list of independent LD regions for Africans, Europeans and Asians. All in build hg19 #' #' @format A data frame with 5731 rows and 4 columns #' \describe{ #' \item{chr...
/R/ldetect.r
permissive
explodecomputer/simulateGP
R
false
false
574
r
#' Data frame of independent LD regions #' #' Taken from Berisa and Pickrell (2016) - \url{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4731402/} - a list of independent LD regions for Africans, Europeans and Asians. All in build hg19 #' #' @format A data frame with 5731 rows and 4 columns #' \describe{ #' \item{chr...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/oesophagus.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=1,family="gaussian",standardize=TRUE) sink('./oesophagus_099.txt',append=...
/Model/EN/Correlation/oesophagus/oesophagus_099.R
no_license
esbgkannan/QSMART
R
false
false
355
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/oesophagus.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=1,family="gaussian",standardize=TRUE) sink('./oesophagus_099.txt',append=...
################## #### Packages #### ################## library(geosphere) # for euclidian distance library(rgdal) # for shapefile library(spatstat) # for shapefile library(maptools) # for shapefile library(fields) # for colors library(reshape) # for colsplit library(moveHMM) # for turning angles and step lengths # ...
/scripts/hornyhead-turbot/003_movement_models.R
no_license
echelleburns/contaminant-exposure-models
R
false
false
5,594
r
################## #### Packages #### ################## library(geosphere) # for euclidian distance library(rgdal) # for shapefile library(spatstat) # for shapefile library(maptools) # for shapefile library(fields) # for colors library(reshape) # for colsplit library(moveHMM) # for turning angles and step lengths # ...
library(keras) rdata = read.csv("kyphosis.csv", stringsAsFactors = FALSE) rdata$y = as.integer(rdata$Kyphosis=="present") rdata$Kyphosis = NULL str(rdata) # train_set index set.seed(1) ir = sort(sample(1:nrow(rdata), 60)) x_train = as.matrix(rdata[ir,1:3]) y_train = rdata[ir,4] x_test = as.matrix(rdata[-ir,1:3]) y_test...
/kyphosis.R
no_license
jenjong/nnet_class
R
false
false
2,622
r
library(keras) rdata = read.csv("kyphosis.csv", stringsAsFactors = FALSE) rdata$y = as.integer(rdata$Kyphosis=="present") rdata$Kyphosis = NULL str(rdata) # train_set index set.seed(1) ir = sort(sample(1:nrow(rdata), 60)) x_train = as.matrix(rdata[ir,1:3]) y_train = rdata[ir,4] x_test = as.matrix(rdata[-ir,1:3]) y_test...
library("tidyverse") library("nycflights13") library("tidyr") library("stringr") library("dplyr") library("tibble") library("readr") tbl = read.csv("eddypro.csv", skip = 1, na =c("","NA","-9999","-9999.0"), comment=c("[")) tbl = tbl[-1,] tbl tbl=tbl[tbl$DOY > 62 & tbl$DOY < 156,] tbl tbl=tbl[tbl$daytime...
/Курсач тема №4.R
no_license
Margarita6995/Margarita6995.github.io
R
false
false
2,050
r
library("tidyverse") library("nycflights13") library("tidyr") library("stringr") library("dplyr") library("tibble") library("readr") tbl = read.csv("eddypro.csv", skip = 1, na =c("","NA","-9999","-9999.0"), comment=c("[")) tbl = tbl[-1,] tbl tbl=tbl[tbl$DOY > 62 & tbl$DOY < 156,] tbl tbl=tbl[tbl$daytime...
library(ggplot2) library(reshape2) # Hardcoded binary statistics x <- c('Lucene', 'Thunderbird', 'Ubuntu') relevant <- c(1780, 1509, 1349) irrelevant <- c(666, 1577, 1433) df <- data.frame(x, relevant, irrelevant) df <- melt(df, id.vars = "x") # Plot graph ggplot(df, aes(x, value, fill = variable)) + geom_bar(aes(fi...
/thesis-data-analysis/scripts/annotation-stats/binary.R
no_license
ansin218/master-thesis
R
false
false
1,002
r
library(ggplot2) library(reshape2) # Hardcoded binary statistics x <- c('Lucene', 'Thunderbird', 'Ubuntu') relevant <- c(1780, 1509, 1349) irrelevant <- c(666, 1577, 1433) df <- data.frame(x, relevant, irrelevant) df <- melt(df, id.vars = "x") # Plot graph ggplot(df, aes(x, value, fill = variable)) + geom_bar(aes(fi...
## makeCacheMatrix is a function that saves a list with 4 other functions in ## order to cache a matrix and its inverse, if it has been computed. makeCacheMatrix<-function(x=matrix()){ inverse<-NULL set_matrix <- function(y) { #this two functions overwrite the matrix stored and reset the value of the inverse to ...
/cachematrix.R
no_license
emimurata/ProgrammingAssignment2
R
false
false
1,339
r
## makeCacheMatrix is a function that saves a list with 4 other functions in ## order to cache a matrix and its inverse, if it has been computed. makeCacheMatrix<-function(x=matrix()){ inverse<-NULL set_matrix <- function(y) { #this two functions overwrite the matrix stored and reset the value of the inverse to ...
\name{episplineDensity-internal} \title{Internal Epispline Functions} \description{ Internal Epispline Functions } \details{ These are for internal use. } \alias{n10} \alias{e10} \alias{coeff} \alias{llfcn} \alias{llfcn.vec} \alias{postproc} \alias{epispline} \alias{grad_expepispline} \alias{nonlinear.constraint...
/man/episplineDensity-internal.Rd
no_license
cran/episplineDensity
R
false
false
425
rd
\name{episplineDensity-internal} \title{Internal Epispline Functions} \description{ Internal Epispline Functions } \details{ These are for internal use. } \alias{n10} \alias{e10} \alias{coeff} \alias{llfcn} \alias{llfcn.vec} \alias{postproc} \alias{epispline} \alias{grad_expepispline} \alias{nonlinear.constraint...
# Importing daily runoff data library(data.table) runoff_stations <- readRDS('./data/runoff_stations_raw.rds') raw_path <- './data/raw/runoff_day/' fnames <- list.files(raw_path) n_station <- length(fnames) id_length <- 7 runoff_day_raw <- data.table() id_sname <- runoff_stations[, .(id, sname)] for(file_count in 1...
/code/01b_import_runoff_day.R
no_license
Rajani462/eda_rhine
R
false
false
777
r
# Importing daily runoff data library(data.table) runoff_stations <- readRDS('./data/runoff_stations_raw.rds') raw_path <- './data/raw/runoff_day/' fnames <- list.files(raw_path) n_station <- length(fnames) id_length <- 7 runoff_day_raw <- data.table() id_sname <- runoff_stations[, .(id, sname)] for(file_count in 1...
library(randomForest) outcomeLabel <- function(formula) { if(missing(formula) || (length(formula) != 3)) stop("formula missing or incorrect") toString(formula[[2]]) } bagging <- function(formula,data,test,m=5,ntree=500,mtry=NULL,trace=T) { outcome.label <- outcomeLabel(formula) mtry <- ifelse(is.null(mtry),...
/bagging.R
no_license
abhik1368/RandomRCodes
R
false
false
1,023
r
library(randomForest) outcomeLabel <- function(formula) { if(missing(formula) || (length(formula) != 3)) stop("formula missing or incorrect") toString(formula[[2]]) } bagging <- function(formula,data,test,m=5,ntree=500,mtry=NULL,trace=T) { outcome.label <- outcomeLabel(formula) mtry <- ifelse(is.null(mtry),...
# tests for regions context("regions") test_that("returns expected output", { skip_on_cran() regs <- regions() expect_is(regs, "data.frame") expect_is(regs$slug, "character") expect_is(regs$available, "logical") }) test_that("httr curl options work", { skip_on_cran() library("httr") expect_error(regi...
/tests/testthat/test-regions.R
permissive
pachadotdev/analogsea
R
false
false
363
r
# tests for regions context("regions") test_that("returns expected output", { skip_on_cran() regs <- regions() expect_is(regs, "data.frame") expect_is(regs$slug, "character") expect_is(regs$available, "logical") }) test_that("httr curl options work", { skip_on_cran() library("httr") expect_error(regi...
generate_data = function(n, p){ covariates = matrix(rnorm(n*p,0,1), n,p) responses = vector("numeric", length = n) for (i in 1:n){ responses[i] = rnorm(1,0,1) } return(list(covariates=covariates, responses=responses)) } model_select = function(covariates, responses, cutoff){ responses = responses[which...
/lab_12_simulation.R
no_license
MichaelLinCMU/36-350
R
false
false
803
r
generate_data = function(n, p){ covariates = matrix(rnorm(n*p,0,1), n,p) responses = vector("numeric", length = n) for (i in 1:n){ responses[i] = rnorm(1,0,1) } return(list(covariates=covariates, responses=responses)) } model_select = function(covariates, responses, cutoff){ responses = responses[which...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DPA.R \name{DPA} \alias{DPA} \title{DPA} \usage{ DPA(dataType, dataFilt, dataConsortium = "TCGA", fdr.cut = 0.01, logFC.cut = 1, diffmean.cut = 0.25, samplesType, colDescription, gset, gsetFile = "gsetFile.RData") } \arguments{ \item{data...
/man/DPA.Rd
no_license
SSICreative83/MoonlightR
R
false
true
968
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DPA.R \name{DPA} \alias{DPA} \title{DPA} \usage{ DPA(dataType, dataFilt, dataConsortium = "TCGA", fdr.cut = 0.01, logFC.cut = 1, diffmean.cut = 0.25, samplesType, colDescription, gset, gsetFile = "gsetFile.RData") } \arguments{ \item{data...
#!/usr/bin/R #Limpieza antes.. #1,$s/}//g #1,$s/{//g #1,$s/"//g #1,$s/^"\d*",//g # patern secuences get as input a file with a eventID ordered. # because that we use sort fileinpu.basket # or you can do it with R. # by now the date are in the format yyyymmdd como secuenceID # sequenceid cod_client # eventid date # m...
/apriori/scripts/patronsecuences.r
no_license
BaoNinh/homework
R
false
false
868
r
#!/usr/bin/R #Limpieza antes.. #1,$s/}//g #1,$s/{//g #1,$s/"//g #1,$s/^"\d*",//g # patern secuences get as input a file with a eventID ordered. # because that we use sort fileinpu.basket # or you can do it with R. # by now the date are in the format yyyymmdd como secuenceID # sequenceid cod_client # eventid date # m...
## Set working directory setwd("C:/users/swojciechowski/Desktop/CourseraExploratoryDA/") ## Read in data hholdData <- read.table(unzip("exdata-data-household_power_consumption.zip"), colClasses = c("factor", "factor", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"), header = TRUE, sep ...
/plot3.R
no_license
swojciech/ExData_Plotting1
R
false
false
1,304
r
## Set working directory setwd("C:/users/swojciechowski/Desktop/CourseraExploratoryDA/") ## Read in data hholdData <- read.table(unzip("exdata-data-household_power_consumption.zip"), colClasses = c("factor", "factor", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric"), header = TRUE, sep ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/is.within_n_preceding_words.R \name{is.within_n_preceding_words} \alias{is.within_n_preceding_words} \title{Check if Element Is Within N Preceding Words} \usage{ is.within_n_preceding_words(x, regex.term, n = 0) } \arguments{ \item{x}...
/man/is.within_n_preceding_words.Rd
no_license
trinker/discon
R
false
false
980
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/is.within_n_preceding_words.R \name{is.within_n_preceding_words} \alias{is.within_n_preceding_words} \title{Check if Element Is Within N Preceding Words} \usage{ is.within_n_preceding_words(x, regex.term, n = 0) } \arguments{ \item{x}...
#' Convert coordinate from different coordinate systems to AutoNavi system #' #' This function is a wrap of coordinate convert API of AutoNavi Map Service.\cr #' While how to input the origin coordinate is sill unstable and #' 95\% sure that it will have a breaking change in the future. #' Please consider carefully if...
/R/convertCoord.R
permissive
al00014/amapGeocode
R
false
false
7,836
r
#' Convert coordinate from different coordinate systems to AutoNavi system #' #' This function is a wrap of coordinate convert API of AutoNavi Map Service.\cr #' While how to input the origin coordinate is sill unstable and #' 95\% sure that it will have a breaking change in the future. #' Please consider carefully if...
#' Merges two BioPAX OWL files #' #' This function merges two BioPAX OWL files #' #' @param inputFile1 a string of the name of the input BioPAX OWL file #' @param inputFile2 a string of the name of the input BioPAX OWL file #' @param outputFile a string of the name of the output merged BioPAX #' OWL file (Option...
/R/mergeBiopax.R
no_license
BioPAX/paxtoolsr
R
false
false
1,787
r
#' Merges two BioPAX OWL files #' #' This function merges two BioPAX OWL files #' #' @param inputFile1 a string of the name of the input BioPAX OWL file #' @param inputFile2 a string of the name of the input BioPAX OWL file #' @param outputFile a string of the name of the output merged BioPAX #' OWL file (Option...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feedback.R \name{BDS_feedback_with_score} \alias{BDS_feedback_with_score} \title{BDS feedback (with score)} \usage{ BDS_feedback_with_score(dict = BDS::BDS_dict) } \arguments{ \item{dict}{The psychTestR dictionary used for internationalisatio...
/man/BDS_feedback_with_score.Rd
permissive
Lukas-Novak/Working_memory_test
R
false
true
484
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feedback.R \name{BDS_feedback_with_score} \alias{BDS_feedback_with_score} \title{BDS feedback (with score)} \usage{ BDS_feedback_with_score(dict = BDS::BDS_dict) } \arguments{ \item{dict}{The psychTestR dictionary used for internationalisatio...
#some functions get_sepData_v1 <- function(iter){ outPath <- paste(rootPath, '04_result\\data_sep\\iter', iter, sep='') if(!file.exists(outPath)){ dir.create(outPath, recursive=T, showWarnings=T) setwd(outPath) }else{ setwd(outPath) } haeIdx_iter <- foldid_hae[[iter]...
/03_code/subFunc_sep_Dec08.R
no_license
jzhao0802/ShireHAE
R
false
false
44,339
r
#some functions get_sepData_v1 <- function(iter){ outPath <- paste(rootPath, '04_result\\data_sep\\iter', iter, sep='') if(!file.exists(outPath)){ dir.create(outPath, recursive=T, showWarnings=T) setwd(outPath) }else{ setwd(outPath) } haeIdx_iter <- foldid_hae[[iter]...
#------------------------------------------------------------------------# # TITLE: latent_class_plotting.R # # # AUTHOR: Erich Seamon # # INSTITUITON: College of Natural Resources # University of Idaho # # DATE: August 2015 # # STAGE: latent_class_plotting.R # # COMMENTS: ...
/latent_class_plotting_class5.R
no_license
erichseamon/seattlecrime
R
false
false
3,116
r
#------------------------------------------------------------------------# # TITLE: latent_class_plotting.R # # # AUTHOR: Erich Seamon # # INSTITUITON: College of Natural Resources # University of Idaho # # DATE: August 2015 # # STAGE: latent_class_plotting.R # # COMMENTS: ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/orderReport.R \name{orderReport} \alias{orderReport} \title{Order the results of the genetic value analysis for use in a report.} \usage{ orderReport(rpt, ped) } \arguments{ \item{rpt}{a dataframe with required colnames \code{id}, \code{gu}, ...
/man/orderReport.Rd
permissive
jhagberg/nprcgenekeepr
R
false
true
1,154
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/orderReport.R \name{orderReport} \alias{orderReport} \title{Order the results of the genetic value analysis for use in a report.} \usage{ orderReport(rpt, ped) } \arguments{ \item{rpt}{a dataframe with required colnames \code{id}, \code{gu}, ...
facet.image <- function(args, formula, obj, facets, groups, superpose, strip, key, normalize.image, contrast.enhance, smooth.image, ..., xlab, xlim, ylab, ylim, zlab, zlim, asp, layout, col, colorscale, colorkey, subset, add) { dots <- list(...) e <- environment(formula) x <- args$rhs[[1]] y <- args$rhs[[2]] ...
/R/facet-image.R
no_license
DanGuo1223/Cardinal
R
false
false
8,710
r
facet.image <- function(args, formula, obj, facets, groups, superpose, strip, key, normalize.image, contrast.enhance, smooth.image, ..., xlab, xlim, ylab, ylim, zlab, zlim, asp, layout, col, colorscale, colorkey, subset, add) { dots <- list(...) e <- environment(formula) x <- args$rhs[[1]] y <- args$rhs[[2]] ...
r.is <- function(x, weight, p){ n <- length(x) if (is.null(weight)) weight <- rep(1, n) q.p <- rep(weighted.quantile(x, weight, c(p)), length(x)) ind <- ifelse(x > q.p, 1, 0) r.2 <- sum(x*weight*ind)/sum(x*weight) return(r.2) }
/R/r.is.R
no_license
cran/affluenceIndex
R
false
false
255
r
r.is <- function(x, weight, p){ n <- length(x) if (is.null(weight)) weight <- rep(1, n) q.p <- rep(weighted.quantile(x, weight, c(p)), length(x)) ind <- ifelse(x > q.p, 1, 0) r.2 <- sum(x*weight*ind)/sum(x*weight) return(r.2) }
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/meteor/inst/testfiles/ET0_PriestleyTaylor/libFuzzer_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1612737216-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
434
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), relh = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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,...
### merges two lists of class "sdfdata" mergesdfdata <- function(sdfdata1,sdfdata2){ if(all(dim(sdfdata1$data)!=dim(sdfdata2$data))) stop("sdfdata1 and sdfdata2 don't include the same data frames") p <- which(names(sdfdata1$sdf)=="x") - 1 sdf1 <- sdfdata1$sdf[,1:p] sdfcom <- cbind(sdf1,sdfdata2$sdf) if(sum(na...
/R/mergesdfdata.R
no_license
cran/mbgraphic
R
false
false
517
r
### merges two lists of class "sdfdata" mergesdfdata <- function(sdfdata1,sdfdata2){ if(all(dim(sdfdata1$data)!=dim(sdfdata2$data))) stop("sdfdata1 and sdfdata2 don't include the same data frames") p <- which(names(sdfdata1$sdf)=="x") - 1 sdf1 <- sdfdata1$sdf[,1:p] sdfcom <- cbind(sdf1,sdfdata2$sdf) if(sum(na...
##makeVector creates a special "vector", with a list of properties ##which can be use to get and set the mean to store in cache makeVector <- function(x = numeric()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setmean <- function(mean) m <<- mean getmean <- function() ...
/cachevector.R
no_license
HERCD/ProgrammingAssignment2
R
false
false
634
r
##makeVector creates a special "vector", with a list of properties ##which can be use to get and set the mean to store in cache makeVector <- function(x = numeric()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setmean <- function(mean) m <<- mean getmean <- function() ...
library(WGCNA) args = commandArgs(trailingOnly=TRUE) datafile <- args[1] outfile <- args[2] threads <- as.numeric(args[3]) options(stringsAsFactors = FALSE) max_allowed = enableWGCNAThreads(threads) cat("Maximum number of threads allowed : ", max_allowed) cat("Running wgcna on : ",WGCNAnThreads()) # requires samples ...
/runs/wgcna/run_wgcna.R
no_license
AluruLab/ardmore
R
false
false
1,103
r
library(WGCNA) args = commandArgs(trailingOnly=TRUE) datafile <- args[1] outfile <- args[2] threads <- as.numeric(args[3]) options(stringsAsFactors = FALSE) max_allowed = enableWGCNAThreads(threads) cat("Maximum number of threads allowed : ", max_allowed) cat("Running wgcna on : ",WGCNAnThreads()) # requires samples ...
#Load library library(dplyr) library(data.table) #Load data data<-tbl_df(read.table(file.path("household_power_consumption.txt"),sep = ";" , header = T ,na.strings ="", stringsAsFactors= F)) data <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] global_active_power <- as.numeric(data$Global_active_power) time_plot ...
/plot2.R
no_license
GM-AI/ExData_Plotting1
R
false
false
564
r
#Load library library(dplyr) library(data.table) #Load data data<-tbl_df(read.table(file.path("household_power_consumption.txt"),sep = ";" , header = T ,na.strings ="", stringsAsFactors= F)) data <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] global_active_power <- as.numeric(data$Global_active_power) time_plot ...
## METTL setwd("/home/guosa/hpc/project/esopheagul") setwd("/home/guosa/hpc/project/crc") setwd("/mnt/bigdata/Genetic/Projects/shg047/temp/housekeeping") data<-read.csv("https://raw.githubusercontent.com/Shicheng-Guo/esophageal/master/extdata/ESCC-UKBB-RSKAT2020.csv",as.is=T) data<-read.csv("https://raw.githubuserconte...
/extdata/gene/METTL.R
no_license
pradyumnasagar/tcga
R
false
false
923
r
## METTL setwd("/home/guosa/hpc/project/esopheagul") setwd("/home/guosa/hpc/project/crc") setwd("/mnt/bigdata/Genetic/Projects/shg047/temp/housekeeping") data<-read.csv("https://raw.githubusercontent.com/Shicheng-Guo/esophageal/master/extdata/ESCC-UKBB-RSKAT2020.csv",as.is=T) data<-read.csv("https://raw.githubuserconte...