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
rm(list = ls()) suppressMessages(gc()) library(knitr) library(data.table) library(gdata) # read.xls library(plyr) library(dplyr) options(dplyr.print_min = 100) # default is 10 options(dplyr.print_max = 100) # default is 20 library(ggplot2) library(magrittr) library(tidyr) # gather, spread0 library(foreach) library(d...
/ZZ_Archived/NYCTRS_RunControl_old.R
no_license
yimengyin16/RSF_NYCTRS
R
false
false
3,559
r
rm(list = ls()) suppressMessages(gc()) library(knitr) library(data.table) library(gdata) # read.xls library(plyr) library(dplyr) options(dplyr.print_min = 100) # default is 10 options(dplyr.print_max = 100) # default is 20 library(ggplot2) library(magrittr) library(tidyr) # gather, spread0 library(foreach) library(d...
## A pair of fcns that inverts a matrix in a memory-efficient way. ## First, assign makeCacheMatrix(your_matrix) to a variable. ## Then apply cacheSolve to that new variable. ## This function creates a list of functions to better utilize R's cache. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- f...
/cachematrix.R
no_license
ajwalsh08/ProgrammingAssignment2
R
false
false
830
r
## A pair of fcns that inverts a matrix in a memory-efficient way. ## First, assign makeCacheMatrix(your_matrix) to a variable. ## Then apply cacheSolve to that new variable. ## This function creates a list of functions to better utilize R's cache. makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shoesize.R \name{shoesize} \alias{shoesize} \title{Shoe Size Converter} \usage{ shoesize(gender = "female", country = "uk", size = 0) } \arguments{ \item{gender}{The gender of the user, either male or female, default to female} \item{country...
/man/shoesize.Rd
no_license
czhang2581/sizeus
R
false
true
746
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shoesize.R \name{shoesize} \alias{shoesize} \title{Shoe Size Converter} \usage{ shoesize(gender = "female", country = "uk", size = 0) } \arguments{ \item{gender}{The gender of the user, either male or female, default to female} \item{country...
incosmic<-function(df=adeno_AA){ df$cosmic_matched_Genes='' df_list=sapply(df$Genes, function(x) strsplit(as.character(x),'\\| ')[[1]]) Mapping = unlist(sapply(as.character(cosmic$Gene.Symbol), function(x) which(sapply(df_list, function(y) sum(!is.na(match(x, y)))>0 )))) Map_list = lapply(s...
/incosmic.R
no_license
qindan2008/Scripts_MolCharAAvsEA
R
false
false
1,135
r
incosmic<-function(df=adeno_AA){ df$cosmic_matched_Genes='' df_list=sapply(df$Genes, function(x) strsplit(as.character(x),'\\| ')[[1]]) Mapping = unlist(sapply(as.character(cosmic$Gene.Symbol), function(x) which(sapply(df_list, function(y) sum(!is.na(match(x, y)))>0 )))) Map_list = lapply(s...
# # Please refer to the README.md file for an explanation on how I read the original #data # ## Reading Relevent data data <- read.table('household_power_consumption.txt', header = T, sep = ';', stringsAsFactors = F, na.strings = '?', skip = 66636, nrow = 2880) colnames(data) <- c('Date', 'Time', 'Global_active_power...
/plot3.R
no_license
Benlagra/ExData_Plotting1
R
false
false
1,343
r
# # Please refer to the README.md file for an explanation on how I read the original #data # ## Reading Relevent data data <- read.table('household_power_consumption.txt', header = T, sep = ';', stringsAsFactors = F, na.strings = '?', skip = 66636, nrow = 2880) colnames(data) <- c('Date', 'Time', 'Global_active_power...
#' @title Dynamic from total directional connectedness plot #' @description Visualize dynamic from total directional connectedness #' @param dca Connectedness object #' @param ca Compare dca object with a single connectedness object or a list of of connectedness objects #' @param path Path where plots should be saved #...
/R/PlotFROM.R
no_license
GabauerDavid/ConnectednessApproach
R
false
false
2,588
r
#' @title Dynamic from total directional connectedness plot #' @description Visualize dynamic from total directional connectedness #' @param dca Connectedness object #' @param ca Compare dca object with a single connectedness object or a list of of connectedness objects #' @param path Path where plots should be saved #...
library(rorcid) ### Name: orcid_works ### Title: Get works for a person ### Aliases: orcid_works ### ** Examples ## Not run: ##D # get all works ##D res <- orcid_works(orcid = "0000-0002-9341-7985") ##D res$`0000-0002-9341-7985` ##D res$`0000-0002-9341-7985`$group ##D res$`0000-0002-9341-7985`$group$`work-summary`...
/data/genthat_extracted_code/rorcid/examples/orcid_works.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
974
r
library(rorcid) ### Name: orcid_works ### Title: Get works for a person ### Aliases: orcid_works ### ** Examples ## Not run: ##D # get all works ##D res <- orcid_works(orcid = "0000-0002-9341-7985") ##D res$`0000-0002-9341-7985` ##D res$`0000-0002-9341-7985`$group ##D res$`0000-0002-9341-7985`$group$`work-summary`...
#!/usr/bin/env Rscript ################################################################################ # Title: Dada2_ASVTable # Author: Christian Erikson/Nicholas Bense # GitHub: https://github.com/cErikson/DADA2_cli_and_galaxy_wrapper # Date: 6/26/18 # Description: R script to create Amplicon Sequence Variant Tables...
/cli/dada2.R
no_license
cErikson/DADA2_cli_and_galaxy_wrapper
R
false
false
12,481
r
#!/usr/bin/env Rscript ################################################################################ # Title: Dada2_ASVTable # Author: Christian Erikson/Nicholas Bense # GitHub: https://github.com/cErikson/DADA2_cli_and_galaxy_wrapper # Date: 6/26/18 # Description: R script to create Amplicon Sequence Variant Tables...
#' @title Fast Reading and Processing of Common Gene Annotation and Next #' Generation Sequencing Format Files. #' #' @description The \code{gread} package allows to read and process common #' gene annotation and next generation sequencing file formats easily. It #' currently supports: #' #' \itemize{ #' \item G...
/R/gread.R
no_license
nousiaso/gread
R
false
false
2,420
r
#' @title Fast Reading and Processing of Common Gene Annotation and Next #' Generation Sequencing Format Files. #' #' @description The \code{gread} package allows to read and process common #' gene annotation and next generation sequencing file formats easily. It #' currently supports: #' #' \itemize{ #' \item G...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(caret) library(ggplot2) library(randomForest) library(e1...
/shiny_app/ui.R
no_license
Elenefern/Data_products
R
false
false
1,694
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(caret) library(ggplot2) library(randomForest) library(e1...
# Antes de começar, lembrar de mudar o diretório # use o getwd() para saber o diretório atual, e # use o setwd() para definir o novo endereço getwd() setwd('~/git/rep/tecnicas-estatisticas-predicao') # Para essa aula serão usados dos dados na form .csv # Exemplo Separatrizes indEmpresas <- read.csv("Exem...
/ScriptSeparatrizes.R
no_license
augustoscher/tecnicas-estatisticas-predicao
R
false
false
1,460
r
# Antes de começar, lembrar de mudar o diretório # use o getwd() para saber o diretório atual, e # use o setwd() para definir o novo endereço getwd() setwd('~/git/rep/tecnicas-estatisticas-predicao') # Para essa aula serão usados dos dados na form .csv # Exemplo Separatrizes indEmpresas <- read.csv("Exem...
# SVN revision: $ # Date of last change: 2013-12-11 $ # Last changed by: $LastChangedBy: ccampbell $ # # Original author: jjxie # Copyright Mango Solutions, Chippenham, UK 2013 ############################################################################### #' Run included package regression tests. #' #' E...
/R/selfCoverage.R
no_license
talgalili/testCoverage
R
false
false
2,270
r
# SVN revision: $ # Date of last change: 2013-12-11 $ # Last changed by: $LastChangedBy: ccampbell $ # # Original author: jjxie # Copyright Mango Solutions, Chippenham, UK 2013 ############################################################################### #' Run included package regression tests. #' #' E...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Data_LKM_numID_int.R \docType{data} \name{LKM_numID_int} \alias{LKM_numID_int} \alias{lkm_int_n_covariates} \alias{lkm_int_n_gene} \alias{lkm_int_n_gid} \alias{lkm_int_n_weights} \alias{lkm_int_n_y} \title{This is continuous longitudinal data...
/man/LKM_numID_int.Rd
no_license
cran/KMgene
R
false
true
773
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Data_LKM_numID_int.R \docType{data} \name{LKM_numID_int} \alias{LKM_numID_int} \alias{lkm_int_n_covariates} \alias{lkm_int_n_gene} \alias{lkm_int_n_gid} \alias{lkm_int_n_weights} \alias{lkm_int_n_y} \title{This is continuous longitudinal data...
# bazean setwd("~/Downloads") ef<-read.table('EagleFord_Well Meta.txt',sep="\t",fileEncoding="UCS-2LE",header = TRUE,fill = TRUE) options(scipen=999) #View(ef) library(dplyr) ## For the first part, I use pipe and summarise to get the sum value of each 'index'. ef_sum<-ef %>% group_by(operator_name) %>% summaris...
/bazean_new.R
no_license
bai1992/Simon_Bazean_Intern
R
false
false
1,655
r
# bazean setwd("~/Downloads") ef<-read.table('EagleFord_Well Meta.txt',sep="\t",fileEncoding="UCS-2LE",header = TRUE,fill = TRUE) options(scipen=999) #View(ef) library(dplyr) ## For the first part, I use pipe and summarise to get the sum value of each 'index'. ef_sum<-ef %>% group_by(operator_name) %>% summaris...
get_edge_on_asp_from_route = function(p = players[[1]]) { n = p$current_map asp = p$all_asp a = p$routes[[p$current_route]][[1]] b = p$routes[[p$current_route]][[2]] a_index = as.numeric(V(n)[[a]]) b_index = as.numeric(V(n)[[b]]) b_start_in_a_asp = sum(asp[[a]]$nrgeo[1:(b_index - 1)]) + 1 asp_count = as...
/get_edge_on_asp_from_route.R
no_license
benmuirhead/ticket_to_ride
R
false
false
1,471
r
get_edge_on_asp_from_route = function(p = players[[1]]) { n = p$current_map asp = p$all_asp a = p$routes[[p$current_route]][[1]] b = p$routes[[p$current_route]][[2]] a_index = as.numeric(V(n)[[a]]) b_index = as.numeric(V(n)[[b]]) b_start_in_a_asp = sum(asp[[a]]$nrgeo[1:(b_index - 1)]) + 1 asp_count = as...
library(tidyr) library(dplyr) library(gplots) library(RColorBrewer) setwd("~/Documents/github/forest_poverty_lite/") map_data_final <- readRDS("data/map_data_final_7_5_18.rds") load("data/PROFOR_Evidence_Map_7_5_2018.RData") out_type <- c("mon_dir","mon_wage","mon_val","phys_cons","fin","nat_for","nat_land","phys_cap...
/data/PROFOR_query_scripts.R
no_license
scheng87/forest_poverty_lite
R
false
false
16,569
r
library(tidyr) library(dplyr) library(gplots) library(RColorBrewer) setwd("~/Documents/github/forest_poverty_lite/") map_data_final <- readRDS("data/map_data_final_7_5_18.rds") load("data/PROFOR_Evidence_Map_7_5_2018.RData") out_type <- c("mon_dir","mon_wage","mon_val","phys_cons","fin","nat_for","nat_land","phys_cap...
\name{gaussKernel} \alias{gaussKernel} \title{ 1 dimensional Gaussian smoothing kernel } \description{ This function produces a Gaussian smoothing kernel that can be used in separable convolution to smooth images. } \usage{ gaussKernel(fwhm=8,ksize=5,voxsize=1) } %- maybe also 'usage' for other objects doc...
/man/gaussKernel.Rd
no_license
cran/FIACH
R
false
false
710
rd
\name{gaussKernel} \alias{gaussKernel} \title{ 1 dimensional Gaussian smoothing kernel } \description{ This function produces a Gaussian smoothing kernel that can be used in separable convolution to smooth images. } \usage{ gaussKernel(fwhm=8,ksize=5,voxsize=1) } %- maybe also 'usage' for other objects doc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mppGE_CV.R \name{mppGE_CV} \alias{mppGE_CV} \title{MPP GxE cross-validation} \usage{ mppGE_CV( pop.name = "MPP", trait.name = "trait1", mppData, trait, cv.ref = NULL, Rep = 5, k = 3, EnvNames = NULL, Q.eff = "cr", VCOV = "...
/man/mppGE_CV.Rd
no_license
vincentgarin/mppGxE
R
false
true
4,873
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mppGE_CV.R \name{mppGE_CV} \alias{mppGE_CV} \title{MPP GxE cross-validation} \usage{ mppGE_CV( pop.name = "MPP", trait.name = "trait1", mppData, trait, cv.ref = NULL, Rep = 5, k = 3, EnvNames = NULL, Q.eff = "cr", VCOV = "...
#read in the data thedata <- read.table("household_power_consumption.txt",stringsAsFactors=FALSE, header=TRUE, sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings=c("?")) #create the device object png(file = "plot2.png") #subset to get only da...
/plot2.R
no_license
lchemwolo/ExData_Plotting1
R
false
false
1,006
r
#read in the data thedata <- read.table("household_power_consumption.txt",stringsAsFactors=FALSE, header=TRUE, sep=";",colClasses=c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"),na.strings=c("?")) #create the device object png(file = "plot2.png") #subset to get only da...
#We build a model to predict the total number of deaths from bronchitis, #emphysema and asthma in the United Kingdom #install.packages("tseries","quantmod") library(tseries) library(quantmod) data("UKLungDeaths",package = "datasets")# Monthly ts from 1974 to 1979 par(mfrow =c(3,1)) plot(ldeaths, xlab = " Year ",ylab ...
/Lab-9/Elman_JordanRNNs/ElmanRNN-UKLungDeaths.R
no_license
lihongjie1997/MAT-494-Deep-Learning-SNU
R
false
false
1,738
r
#We build a model to predict the total number of deaths from bronchitis, #emphysema and asthma in the United Kingdom #install.packages("tseries","quantmod") library(tseries) library(quantmod) data("UKLungDeaths",package = "datasets")# Monthly ts from 1974 to 1979 par(mfrow =c(3,1)) plot(ldeaths, xlab = " Year ",ylab ...
#============================================================================ # Query by Site #============================================================================ # If switching to Query by Site. # observeEvent(sel.param(), { # updateSelectInput(session, "PARAM.site", # choices = sort(...
/query_by_site.R
no_license
InterstateCommissionPotomacRiverBasin/WQT_Shiny
R
false
false
4,036
r
#============================================================================ # Query by Site #============================================================================ # If switching to Query by Site. # observeEvent(sel.param(), { # updateSelectInput(session, "PARAM.site", # choices = sort(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/warnings.R \name{ExpectWarning} \alias{ExpectWarning} \title{ExpectWarning} \usage{ ExpectWarning(code, string) } \arguments{ \item{code}{The code to evaluate for warnings.} \item{string}{The string of text to be searched for in the warnings...
/man/ExpectWarning.Rd
no_license
Displayr/flipU
R
false
true
675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/warnings.R \name{ExpectWarning} \alias{ExpectWarning} \title{ExpectWarning} \usage{ ExpectWarning(code, string) } \arguments{ \item{code}{The code to evaluate for warnings.} \item{string}{The string of text to be searched for in the warnings...
= 概要 PC側で開いているHTML5によるプレゼンツールNerineをAndroidを操作端末として操作するためのものです。 Android端末から受け取ったイベントをWebSocketsサーバ経由でブラウザにプッシュしています。 プッシュする際にはRubyライブラリのMessagePack-RPCを使っています。 = 使い方 あらかじめライブラリをgemでインストールしておいてください。 sudo gem install rev-websocket msgpack-rpc PC側のブラウザはGoogleChrome、またはSafariをお使いください。 また仮にPCのIPアドレスを 192.168.11.1 とします。 ...
/ruby/remote/README.rd
no_license
nana4gonta/sandbox
R
false
false
2,036
rd
= 概要 PC側で開いているHTML5によるプレゼンツールNerineをAndroidを操作端末として操作するためのものです。 Android端末から受け取ったイベントをWebSocketsサーバ経由でブラウザにプッシュしています。 プッシュする際にはRubyライブラリのMessagePack-RPCを使っています。 = 使い方 あらかじめライブラリをgemでインストールしておいてください。 sudo gem install rev-websocket msgpack-rpc PC側のブラウザはGoogleChrome、またはSafariをお使いください。 また仮にPCのIPアドレスを 192.168.11.1 とします。 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/w1.R \name{fiveDay} \alias{fiveDay} \title{5 days weather forecast} \usage{ fiveDay(x) } \arguments{ \item{x}{City name, country code} } \value{ City name, country code, date, weather description, temperature, humidity } \description{ 5 days ...
/weather534/man/fiveDay.Rd
permissive
zhiyanm/Test
R
false
true
448
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/w1.R \name{fiveDay} \alias{fiveDay} \title{5 days weather forecast} \usage{ fiveDay(x) } \arguments{ \item{x}{City name, country code} } \value{ City name, country code, date, weather description, temperature, humidity } \description{ 5 days ...
# impute missing data from a bn.fit object. impute = function(object, data, method, ..., debug = FALSE) { # check the data are there. check.data(data, allow.levels = TRUE, allow.missing = TRUE, warn.if.no.missing = TRUE) # check whether the data agree with the bayesian network. check.fit.vs.data(object, d...
/ombFast/R/frontend-missingdata.R
no_license
kanyulongkkk/KtreeBN
R
false
false
4,993
r
# impute missing data from a bn.fit object. impute = function(object, data, method, ..., debug = FALSE) { # check the data are there. check.data(data, allow.levels = TRUE, allow.missing = TRUE, warn.if.no.missing = TRUE) # check whether the data agree with the bayesian network. check.fit.vs.data(object, d...
############ plot of the theoretical and empirical lambda-function #' Lambda-Function (Plot) for Bivariate Copula Data #' #' This function plots/returns the lambda-function of given bivariate copula #' data. #' #' If the family and parameter specification is stored in a [BiCop()] #' object `obj`, the alternative vers...
/R/BiCopLambda.R
no_license
goldenwalden/VineCopula
R
false
false
15,086
r
############ plot of the theoretical and empirical lambda-function #' Lambda-Function (Plot) for Bivariate Copula Data #' #' This function plots/returns the lambda-function of given bivariate copula #' data. #' #' If the family and parameter specification is stored in a [BiCop()] #' object `obj`, the alternative vers...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vitae-package.R \docType{package} \name{vitae-package} \alias{vitae} \alias{vitae-package} \title{vitae: Curriculum Vitae for R Markdown} \description{ \if{html}{\figure{logo.png}{options: align='right' alt='logo' width='120'}} Provides temp...
/man/vitae-package.Rd
no_license
jimjunker1/vitae
R
false
true
1,214
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vitae-package.R \docType{package} \name{vitae-package} \alias{vitae} \alias{vitae-package} \title{vitae: Curriculum Vitae for R Markdown} \description{ \if{html}{\figure{logo.png}{options: align='right' alt='logo' width='120'}} Provides temp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/freq.R \name{freq} \alias{freq} \title{Frequency Table} \usage{ freq(x, print = c("no", "all", "perc", "v.perc"), freq = TRUE, split = FALSE, labels = TRUE, val.col = FALSE, round = 3, exclude = 15, digits = 2, as.na = NULL,...
/man/freq.Rd
no_license
cran/misty
R
false
true
6,013
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/freq.R \name{freq} \alias{freq} \title{Frequency Table} \usage{ freq(x, print = c("no", "all", "perc", "v.perc"), freq = TRUE, split = FALSE, labels = TRUE, val.col = FALSE, round = 3, exclude = 15, digits = 2, as.na = NULL,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_delete_tags} \alias{ec2_delete_tags} \title{Deletes the specified set of tags from the specified set of resources} \usage{ ec2_delete_tags(DryRun, Resources, Tags) } \arguments{ \item{DryRun}{Checks whether you have...
/cran/paws.compute/man/ec2_delete_tags.Rd
permissive
johnnytommy/paws
R
false
true
2,026
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_delete_tags} \alias{ec2_delete_tags} \title{Deletes the specified set of tags from the specified set of resources} \usage{ ec2_delete_tags(DryRun, Resources, Tags) } \arguments{ \item{DryRun}{Checks whether you have...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statwts.R \name{statwts} \alias{statwts} \title{Cattle static weights} \usage{ statwts(RFID, start = NULL, end = NULL, values = NULL, username = NULL, password = NULL) } \arguments{ \item{RFID}{this is a list of cattle RFID numbers} \item{...
/man/statwts.Rd
no_license
vijaydairyf/DMMongoDB
R
false
true
2,067
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statwts.R \name{statwts} \alias{statwts} \title{Cattle static weights} \usage{ statwts(RFID, start = NULL, end = NULL, values = NULL, username = NULL, password = NULL) } \arguments{ \item{RFID}{this is a list of cattle RFID numbers} \item{...
## figure export pathfigure = "static/hall-of-results_data/Figures/" ##readmetadata allresults <- list.files(path = "static/hall-of-results_data", full.names = TRUE, recursive = TRUE, pattern = ".tsv") tomodify = allresults [7] metadata=readmeta(tomodify) filename = strtrim(gsub("\\s", "_", tomodify) ,nchar(tomodi...
/figure_export.r
permissive
memory-consolidation/SFB1315_Public_result_gallery
R
false
false
684
r
## figure export pathfigure = "static/hall-of-results_data/Figures/" ##readmetadata allresults <- list.files(path = "static/hall-of-results_data", full.names = TRUE, recursive = TRUE, pattern = ".tsv") tomodify = allresults [7] metadata=readmeta(tomodify) filename = strtrim(gsub("\\s", "_", tomodify) ,nchar(tomodi...
# convert formula to a model frame, using glFormula if there are random # effects, and manually, using model.matrix, if not parse_formula <- function(formula, data, family, weights, off) { formula_vars <- all.vars(formula) data_vars <- data[formula_vars] if (is.character(family)) family <- get(family, mode = ...
/glmmsr/R/model_frames.R
no_license
ingted/R-Examples
R
false
false
6,863
r
# convert formula to a model frame, using glFormula if there are random # effects, and manually, using model.matrix, if not parse_formula <- function(formula, data, family, weights, off) { formula_vars <- all.vars(formula) data_vars <- data[formula_vars] if (is.character(family)) family <- get(family, mode = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ADFres.R \name{ADFres} \alias{ADFres} \title{Estimate the ADF model under the null} \usage{ ADFres(y, IC, adflag) } \arguments{ \item{y}{A Vector. Data.} \item{IC}{An integer, 0 for fixed lag order (default), 1 for AIC and 2 for ...
/man/ADFres.Rd
no_license
cran/psymonitor
R
false
true
987
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ADFres.R \name{ADFres} \alias{ADFres} \title{Estimate the ADF model under the null} \usage{ ADFres(y, IC, adflag) } \arguments{ \item{y}{A Vector. Data.} \item{IC}{An integer, 0 for fixed lag order (default), 1 for AIC and 2 for ...
back_to_date <- function(int) { ## what the eff am I supposed to use besides stamp? lubridate::stamp_date("Nov 1")(lubridate::as_date(int, origin = lubridate::origin)) } breaks <- c(as.Date("2018-10-01"), as.Date("2018-10-15"), as.Date("2018-11-01"), as.Date("2018-11-15"), ...
/manner.R
no_license
a-lexwein/tapestry-utterances
R
false
false
1,005
r
back_to_date <- function(int) { ## what the eff am I supposed to use besides stamp? lubridate::stamp_date("Nov 1")(lubridate::as_date(int, origin = lubridate::origin)) } breaks <- c(as.Date("2018-10-01"), as.Date("2018-10-15"), as.Date("2018-11-01"), as.Date("2018-11-15"), ...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plotting.R \name{plotPvalues} \alias{plotPvalues} \title{Plotting the p-value matrix} \usage{ plotPvalues(pvalue.matrix, alg.order = NULL, show.pvalue = TRUE, font.size = 5) } \arguments{ \item{pvalue.matrix}{Matrix with the p-value...
/man/plotPvalues.Rd
no_license
tpopenfoose/scmamp
R
false
false
894
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/plotting.R \name{plotPvalues} \alias{plotPvalues} \title{Plotting the p-value matrix} \usage{ plotPvalues(pvalue.matrix, alg.order = NULL, show.pvalue = TRUE, font.size = 5) } \arguments{ \item{pvalue.matrix}{Matrix with the p-value...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tot_plot.R \name{tot_plot} \alias{tot_plot} \title{Visualize Word Length by Turn of Talk} \usage{ tot_plot(dataframe, text.var, grouping.var = NULL, facet.vars = NULL, tot = TRUE, transform = FALSE, ncol = NULL, ylab = NULL, xlab = NULL, ...
/man/tot_plot.Rd
no_license
hoodaly/qdap
R
false
true
3,942
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tot_plot.R \name{tot_plot} \alias{tot_plot} \title{Visualize Word Length by Turn of Talk} \usage{ tot_plot(dataframe, text.var, grouping.var = NULL, facet.vars = NULL, tot = TRUE, transform = FALSE, ncol = NULL, ylab = NULL, xlab = NULL, ...
## This R file has the helper functions used by NGram and Prediction functions ## 1. split_words - to split words based on spaces in a given text ## 2. except_last_word - to get the text without the last word ## 3. last_word - to get the last word in text ## function 1 : split_by_word <- function (tex...
/ShinyApp/HelperFunc.R
no_license
mvmanoj/DS_FinalProject
R
false
false
1,036
r
## This R file has the helper functions used by NGram and Prediction functions ## 1. split_words - to split words based on spaces in a given text ## 2. except_last_word - to get the text without the last word ## 3. last_word - to get the last word in text ## function 1 : split_by_word <- function (tex...
#Read all the data epc <- read.table("household_power_consumption.txt",na.strings = "?",header=TRUE,sep=";") #Read only 2 days data epcdata <- subset(epc, Date=="1/2/2007" | Date=="2/2/2007") #Convert Date/Time to date/time classes epcdata$Date <- as.Date(epcdata[,1],"%d/%m/%Y") DT <- paste(as.Date(epcdata$Date),epcd...
/plot2.R
no_license
hzuniga/ExData_Plotting1
R
false
false
565
r
#Read all the data epc <- read.table("household_power_consumption.txt",na.strings = "?",header=TRUE,sep=";") #Read only 2 days data epcdata <- subset(epc, Date=="1/2/2007" | Date=="2/2/2007") #Convert Date/Time to date/time classes epcdata$Date <- as.Date(epcdata[,1],"%d/%m/%Y") DT <- paste(as.Date(epcdata$Date),epcd...
# count ones library(magrittr) library(dplyr) library(ggplot2) library(gtable) library(scales) library(gsubfn) # for strapplyc library(gridExtra) # use ?arrangeGrob, over ?grid.arrange takeLastWord <- function(x) {strapplyc(x, "(\\w+)\\s*$")} onemax <- read.csv(file.path("ABAGAIL", "jython", "countones.csv"), header...
/Assign2/countones.R
no_license
bparli/MachineLearning
R
false
false
2,781
r
# count ones library(magrittr) library(dplyr) library(ggplot2) library(gtable) library(scales) library(gsubfn) # for strapplyc library(gridExtra) # use ?arrangeGrob, over ?grid.arrange takeLastWord <- function(x) {strapplyc(x, "(\\w+)\\s*$")} onemax <- read.csv(file.path("ABAGAIL", "jython", "countones.csv"), header...
# Rename columns to be R friendly. #Piezocat is cation data from piezometers, BDP, and DP newname<-c("sample_name","Site","date","Depth_cm","Al_mgL","Ca_mgL","Fe_mgL","K_mgL","Mg_mgL","Mn_mgL","Na_mgL") piezocat<-read.csv(file="PiezometerData.csv",header=TRUE) colnames(piezocat)<-newname #Piezoan is anion data from pi...
/PiezometerGraphs.R
no_license
MeaghanShaw/StormGraphs
R
false
false
86,841
r
# Rename columns to be R friendly. #Piezocat is cation data from piezometers, BDP, and DP newname<-c("sample_name","Site","date","Depth_cm","Al_mgL","Ca_mgL","Fe_mgL","K_mgL","Mg_mgL","Mn_mgL","Na_mgL") piezocat<-read.csv(file="PiezometerData.csv",header=TRUE) colnames(piezocat)<-newname #Piezoan is anion data from pi...
\name{Check Namespace and Rd files} \alias{checkNamespace} \alias{checkAliases} \alias{checkExamples} \alias{checkTF} \alias{checkUsage} \title{ Check Namespace and Rd files } \description{ Check Namespace/Rd and examples files. } \usage{ checkNamespace(path.namespace,path.rfolder) checkAliases(path.m...
/fuzzedpackages/Rfast/man/checkNamespace.Rd
no_license
akhikolla/testpackages
R
false
false
6,167
rd
\name{Check Namespace and Rd files} \alias{checkNamespace} \alias{checkAliases} \alias{checkExamples} \alias{checkTF} \alias{checkUsage} \title{ Check Namespace and Rd files } \description{ Check Namespace/Rd and examples files. } \usage{ checkNamespace(path.namespace,path.rfolder) checkAliases(path.m...
% Generated by roxygen2 (4.0.2): do not edit by hand \name{node.offspring} \alias{node.offspring} \title{node offspring} \usage{ node.offspring(phy, node) } \arguments{ \item{phy}{A phylogenetic tree in the class "phylo"} \item{node}{A numerical node within phy} } \value{ Returns offspring nodes from a tree. If it is...
/man/node.offspring.Rd
no_license
bbanbury/phyloextra
R
false
false
593
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{node.offspring} \alias{node.offspring} \title{node offspring} \usage{ node.offspring(phy, node) } \arguments{ \item{phy}{A phylogenetic tree in the class "phylo"} \item{node}{A numerical node within phy} } \value{ Returns offspring nodes from a tree. If it is...
pwr_data<-read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE) #Filter records between 2007-02-01 and 2007-02-02 pwr_filt <- subset(pwr_data, pwr_data$Date == "1/2/2007" | pwr_data$Date == "2/2/2007") #Convert ...
/Course Project 1/plot2.r
no_license
bharath2925/Exploratory-Data-Analysis
R
false
false
827
r
pwr_data<-read.table("household_power_consumption.txt", sep = ";", na.strings = "?", header = TRUE) #Filter records between 2007-02-01 and 2007-02-02 pwr_filt <- subset(pwr_data, pwr_data$Date == "1/2/2007" | pwr_data$Date == "2/2/2007") #Convert ...
dataset <- read.csv("all_month.csv", head=TRUE, sep=",") earthquake <- dataset[dataset$type == 'earthquake',] states <- c("Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisi...
/process.R
no_license
rongxie/shinyproject
R
false
false
3,725
r
dataset <- read.csv("all_month.csv", head=TRUE, sep=",") earthquake <- dataset[dataset$type == 'earthquake',] states <- c("Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisi...
library(ape) testtree <- read.tree("11200_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11200_0_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/11200_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("11200_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="11200_0_unrooted.txt")
context("test_flashfill") test_that("flash_fill works", { l = rep(1,5) f = rnorm(20) LF = outer(l,f) Y = LF + rnorm(5*20) missing = rbinom(5*20, 1, .2) Y[missing == 1] = NA fl = flash(Y) Yhat = flash_fill(Y, fl) # non-missing entries are the same expect_identical(Y[missing == 0], Yhat[missing == 0...
/tests/testthat/test_flashfill.R
permissive
stephenslab/flashr
R
false
false
395
r
context("test_flashfill") test_that("flash_fill works", { l = rep(1,5) f = rnorm(20) LF = outer(l,f) Y = LF + rnorm(5*20) missing = rbinom(5*20, 1, .2) Y[missing == 1] = NA fl = flash(Y) Yhat = flash_fill(Y, fl) # non-missing entries are the same expect_identical(Y[missing == 0], Yhat[missing == 0...
library(plyr) library(doMC) library(tidyverse) library(synapser) library(data.table) library(magrittr) library(yaml) library(ggfortify) library(RColorBrewer) library(heatmap.plus) home_dir <- "/home/aelamb/repos/Tumor-Deconvolution-Challenge/" tmp_dir <- "/home/aelamb/tmp/" annotation_id <- "syn11898281" count_id ...
/analysis/GSE81861/create_plots.R
no_license
Sage-Bionetworks/Tumor-Deconvolution-Challenge
R
false
false
2,958
r
library(plyr) library(doMC) library(tidyverse) library(synapser) library(data.table) library(magrittr) library(yaml) library(ggfortify) library(RColorBrewer) library(heatmap.plus) home_dir <- "/home/aelamb/repos/Tumor-Deconvolution-Challenge/" tmp_dir <- "/home/aelamb/tmp/" annotation_id <- "syn11898281" count_id ...
#' Transcriptomic information of endothelial cells. #' #' The data set contains the transcriptomic information of endothelial cells #' from two steady state tissues (brain and heart). More detailed information #' can be found in the paper by Nolan et al. 2013. The data was normalized and a #' statistical analysis...
/R/GOCore.R
no_license
cran/GOplot
R
false
false
26,493
r
#' Transcriptomic information of endothelial cells. #' #' The data set contains the transcriptomic information of endothelial cells #' from two steady state tissues (brain and heart). More detailed information #' can be found in the paper by Nolan et al. 2013. The data was normalized and a #' statistical analysis...
library(RoughSets) ### Name: D.global.discernibility.heuristic.RST ### Title: Supervised discretization based on the maximum discernibility ### heuristic ### Aliases: D.global.discernibility.heuristic.RST ### ** Examples ################################################################# ## Example: Determine cut v...
/data/genthat_extracted_code/RoughSets/examples/D.global.discernibility.heuristic.RST.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,238
r
library(RoughSets) ### Name: D.global.discernibility.heuristic.RST ### Title: Supervised discretization based on the maximum discernibility ### heuristic ### Aliases: D.global.discernibility.heuristic.RST ### ** Examples ################################################################# ## Example: Determine cut v...
epcdata<-read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/exdata_data_household_power_consumption/household_power_consumption.txt",header=TRUE, sep=";") head(epcdata) subepc<-subset(epcdata, Date=="2/2/2007" | Date=="1/2/2007") subepc$Global_active_power<-as.numeric(as.character(subepc$Globa...
/plot1.R
no_license
julira/ExData_Plotting1
R
false
false
530
r
epcdata<-read.table("C:/Users/Yulia/Desktop/fernstudium/datascientist/R/assigmnets/exdata_data_household_power_consumption/household_power_consumption.txt",header=TRUE, sep=";") head(epcdata) subepc<-subset(epcdata, Date=="2/2/2007" | Date=="1/2/2007") subepc$Global_active_power<-as.numeric(as.character(subepc$Globa...
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # DeepCas9 # 2018 # Jiesi Luo, Southwest Medical University, China #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #' DeepCas9_scores #' #' #' DeepCas9_scores: predict the CRISPR sgRNA activity using the deep #' convolutional neural network. #' #' #' #' @usage DeepCas9_scores(FileName) #...
/DeepCas9_scores.R
no_license
usccolumbia/DeepCas9
R
false
false
1,631
r
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # DeepCas9 # 2018 # Jiesi Luo, Southwest Medical University, China #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #' DeepCas9_scores #' #' #' DeepCas9_scores: predict the CRISPR sgRNA activity using the deep #' convolutional neural network. #' #' #' #' @usage DeepCas9_scores(FileName) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crossvalidation.R \name{mstop.validateFDboost} \alias{mstop.validateFDboost} \alias{print.validateFDboost} \alias{plot.validateFDboost} \alias{mstop.validateFDboost} \alias{plotPredCoef} \title{Methods for objects of class validateFDboost} \u...
/man/plot.validateFDboost.Rd
no_license
AEBilgrau/FDboost
R
false
true
3,362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crossvalidation.R \name{mstop.validateFDboost} \alias{mstop.validateFDboost} \alias{print.validateFDboost} \alias{plot.validateFDboost} \alias{mstop.validateFDboost} \alias{plotPredCoef} \title{Methods for objects of class validateFDboost} \u...
library(dplyr) library(tidyr) source("UtilityFunctions.R") # ========== Predict interpolation ======== predictInterp <- function (df1,df2,df3,df4,sentence) { # get words from sentence s1<- tolower(sentence) #s1<- addSentenceSymbol(s1,n=2) ws<- strsplit(s1, split=" ", useBytes = TRUE)[[1]] nWor...
/NextWord/NGramModel_Predict.R
no_license
AndresSotoA/DataScienceCapstone
R
false
false
9,576
r
library(dplyr) library(tidyr) source("UtilityFunctions.R") # ========== Predict interpolation ======== predictInterp <- function (df1,df2,df3,df4,sentence) { # get words from sentence s1<- tolower(sentence) #s1<- addSentenceSymbol(s1,n=2) ws<- strsplit(s1, split=" ", useBytes = TRUE)[[1]] nWor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/archiveProject.R \name{archiveProject} \alias{archiveProject} \title{Archive risk mapping project} \usage{ archiveProject(x, fileName, archiveDir = paste0(getwd(), "/archivedProjects"), saveProjectDir = TRUE) } \arguments{ \item{x...
/RiskMap/man/archiveProject.Rd
no_license
bvanhezewijk/DynamicRiskMap
R
false
true
1,428
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/archiveProject.R \name{archiveProject} \alias{archiveProject} \title{Archive risk mapping project} \usage{ archiveProject(x, fileName, archiveDir = paste0(getwd(), "/archivedProjects"), saveProjectDir = TRUE) } \arguments{ \item{x...
#Goal: use TN-interaction two-stage model to produce the second stage parameters for risk factors multiple imputation args = commandArgs(trailingOnly = T) i1 = as.numeric(args[[1]]) library(devtools) ############install the development R package bc2 ############the repository is called bc3, but the package is called b...
/risk_factor/code/TN_interaction_imp.R
no_license
andrewhaoyu/breast_cancer_data_analysis
R
false
false
6,036
r
#Goal: use TN-interaction two-stage model to produce the second stage parameters for risk factors multiple imputation args = commandArgs(trailingOnly = T) i1 = as.numeric(args[[1]]) library(devtools) ############install the development R package bc2 ############the repository is called bc3, but the package is called b...
library(R.utils) ### Name: hsize ### Title: Convert byte sizes into human-readable byte sizes ### Aliases: hsize hsize.numeric hsize.object_size ### Keywords: programming internal ### ** Examples sizes <- c(1000^(0:8), 1024^(0:8)) df <- data.frame(size=sizes) df$SI <- hsize(sizes, standard="SI") df$TB <- hsize(size...
/data/genthat_extracted_code/R.utils/examples/hsize.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
423
r
library(R.utils) ### Name: hsize ### Title: Convert byte sizes into human-readable byte sizes ### Aliases: hsize hsize.numeric hsize.object_size ### Keywords: programming internal ### ** Examples sizes <- c(1000^(0:8), 1024^(0:8)) df <- data.frame(size=sizes) df$SI <- hsize(sizes, standard="SI") df$TB <- hsize(size...
leaf.tr=read.csv('/Users/feizysmac/Dropbox/8330/Project2/train.csv') leaf.te=read.csv('/Users/feizysmac/Dropbox/8330/Project2/test.csv') #logloss logLoss = function(pred, origin){ -1*mean(log(pred[model.matrix(~ origin + 0) - pred > 0])) } library(randomForest) attach(leaf.tr) test.id=leaf.te$id tr.value=leaf.tr$spe...
/P2.R
no_license
feizy/8330-P2
R
false
false
3,677
r
leaf.tr=read.csv('/Users/feizysmac/Dropbox/8330/Project2/train.csv') leaf.te=read.csv('/Users/feizysmac/Dropbox/8330/Project2/test.csv') #logloss logLoss = function(pred, origin){ -1*mean(log(pred[model.matrix(~ origin + 0) - pred > 0])) } library(randomForest) attach(leaf.tr) test.id=leaf.te$id tr.value=leaf.tr$spe...
maybe_normalizePath = function(.x, np = FALSE) { prefixes = c("NETCDF:", "HDF5:", "HDF4:", "HDF4_EOS:", "SENTINEL2_L1", "SENTINEL2_L2") has_prefix = function(pf, x) substr(x, 1, nchar(pf)) == pf if (!np || any(sapply(prefixes, has_prefix, x = .x))) .x else normalizePath(.x, mustWork = FALSE) } is_big = functio...
/R/read.R
permissive
ccap-zhy/stars
R
false
false
11,516
r
maybe_normalizePath = function(.x, np = FALSE) { prefixes = c("NETCDF:", "HDF5:", "HDF4:", "HDF4_EOS:", "SENTINEL2_L1", "SENTINEL2_L2") has_prefix = function(pf, x) substr(x, 1, nchar(pf)) == pf if (!np || any(sapply(prefixes, has_prefix, x = .x))) .x else normalizePath(.x, mustWork = FALSE) } is_big = functio...
######################################################################################################################## # --- Data preparation --- # ####################################################################################################################### # creating list of files for analysis of case a...
/Nigeria/DHS/1_variables_scripts/case_management/old/case_management_MICS.R
permissive
numalariamodeling/hbhi-dhs
R
false
false
2,667
r
######################################################################################################################## # --- Data preparation --- # ####################################################################################################################### # creating list of files for analysis of case a...
#' @importFrom magrittr %>% #' @export magrittr::`%>%` remove_NULL <- function(x.list) { x.list[unlist(lapply(x.list, length) != 0)] } get_names <- function(obj_list) { sapply(obj_list, function(obj) obj$name) } as_row_list <- function(df) do.call(function(...) Map(list,...), df)
/R/utils.R
no_license
cran/readsdr
R
false
false
290
r
#' @importFrom magrittr %>% #' @export magrittr::`%>%` remove_NULL <- function(x.list) { x.list[unlist(lapply(x.list, length) != 0)] } get_names <- function(obj_list) { sapply(obj_list, function(obj) obj$name) } as_row_list <- function(df) do.call(function(...) Map(list,...), df)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_curl.R \name{get_curl} \alias{get_curl} \title{Compute the curl of the profile segment} \usage{ get_curl(perip.original, m28) } \arguments{ \item{perip.original}{a dataframe with one named numeric vector. The periphery of the profile as a...
/man/get_curl.Rd
permissive
kafetzakid/morphotype
R
false
true
698
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_curl.R \name{get_curl} \alias{get_curl} \title{Compute the curl of the profile segment} \usage{ get_curl(perip.original, m28) } \arguments{ \item{perip.original}{a dataframe with one named numeric vector. The periphery of the profile as a...
#' @title Calculate RMSD #' @description #' Calculates the root mean squared deviation. #' #' @param theta1 Vector containing the estimated latent traits from the first estimation method. #' @param theta2 Vector containing the estimated latent traits from the second estimation method. #' #' #' @examples #' data(SAPA) #...
/R/rmsd.R
no_license
zhengchengfan/hemp
R
false
false
944
r
#' @title Calculate RMSD #' @description #' Calculates the root mean squared deviation. #' #' @param theta1 Vector containing the estimated latent traits from the first estimation method. #' @param theta2 Vector containing the estimated latent traits from the second estimation method. #' #' #' @examples #' data(SAPA) #...
\name{src_sqlserver} \alias{src_sqlserver} \alias{tbl.src_sqlserver} \title{Connect to MS sqlserver} \usage{ src_sqlserver(url = NULL, dbname = NULL, host = "localhost", user = "", trusted = FALSE, password = "", ...) \method{tbl}{src_sqlserver}(src, from, ...) } \arguments{ \item{url}{Connection String can be pro...
/man/src_sqlserver.Rd
no_license
agstudy/dplyr
R
false
false
6,202
rd
\name{src_sqlserver} \alias{src_sqlserver} \alias{tbl.src_sqlserver} \title{Connect to MS sqlserver} \usage{ src_sqlserver(url = NULL, dbname = NULL, host = "localhost", user = "", trusted = FALSE, password = "", ...) \method{tbl}{src_sqlserver}(src, from, ...) } \arguments{ \item{url}{Connection String can be pro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/humarray.R \name{ENS.to.GENE} \alias{ENS.to.GENE} \title{Convert ensembl ids to HGNC gene ids} \usage{ ENS.to.GENE(ens, dir = NULL, build = NULL, name.dups = FALSE, name.missing = TRUE, ...) } \arguments{ \item{ens}{character, a list of ens...
/man/ENS.to.GENE.Rd
no_license
cran/humarray
R
false
true
2,634
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/humarray.R \name{ENS.to.GENE} \alias{ENS.to.GENE} \title{Convert ensembl ids to HGNC gene ids} \usage{ ENS.to.GENE(ens, dir = NULL, build = NULL, name.dups = FALSE, name.missing = TRUE, ...) } \arguments{ \item{ens}{character, a list of ens...
library(neuralnet) set.seed(1234567890) Var <- runif(500, 0, 10) mydata <- data.frame(Var, Sin=sin(Var)) tr <- mydata[1:25,] # Training te <- mydata[26:500,] # Test winit <- runif(25,-1,1)# weight initilization. tr<-as.matrix(tr) set.seed(1234567890) nn <- neuralnet(Sin ~ Var, data=tr, hidden=c(17,20,25),...
/Machine Learning tdde01/lab3/assignment3/ass3_2.R
no_license
UnoOst/TDDE01
R
false
false
1,157
r
library(neuralnet) set.seed(1234567890) Var <- runif(500, 0, 10) mydata <- data.frame(Var, Sin=sin(Var)) tr <- mydata[1:25,] # Training te <- mydata[26:500,] # Test winit <- runif(25,-1,1)# weight initilization. tr<-as.matrix(tr) set.seed(1234567890) nn <- neuralnet(Sin ~ Var, data=tr, hidden=c(17,20,25),...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Field.R \name{FieldRefClass_DELETE} \alias{FieldRefClass_DELETE} \title{DELETE is disallowed for field configuration} \description{ DELETE is disallowed for field configuration } \seealso{ Other Field: \code{\link{FieldRefClass_POST}}, \cod...
/man/FieldRefClass_DELETE.Rd
no_license
BigelowLab/genologicsr
R
false
true
355
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Field.R \name{FieldRefClass_DELETE} \alias{FieldRefClass_DELETE} \title{DELETE is disallowed for field configuration} \description{ DELETE is disallowed for field configuration } \seealso{ Other Field: \code{\link{FieldRefClass_POST}}, \cod...
# # Author: Francis Ryu # Date: 08/09/14 # Desc: Project 1 - Plot1 # Plotting of electric power consumption # Data from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip # # read file df <- read.csv("household_power_consumption.txt", header=...
/plot1.R
no_license
ryudedog/ExData_Plotting1
R
false
false
787
r
# # Author: Francis Ryu # Date: 08/09/14 # Desc: Project 1 - Plot1 # Plotting of electric power consumption # Data from https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip # # read file df <- read.csv("household_power_consumption.txt", header=...
# Remove all but pars from stanfit object # from https://github.com/stan-dev/rstan/issues/426#issue-239658968 # Modified by tmn to check for stanfit object #' Trim a stanfit object to only wanted names #' #' @param object stanfit object to prune #' @param pars a charvec of parameter names to retain (lp_ is always inclu...
/R/pruneStanfitObj.R
no_license
tnearey/bhmnl
R
false
false
1,336
r
# Remove all but pars from stanfit object # from https://github.com/stan-dev/rstan/issues/426#issue-239658968 # Modified by tmn to check for stanfit object #' Trim a stanfit object to only wanted names #' #' @param object stanfit object to prune #' @param pars a charvec of parameter names to retain (lp_ is always inclu...
rm(list = ls()) # Fluxos PMAD # Carregar pacotes library(tidyverse) library(survey) library(srvyr) library(DBI) # Abrir conexão com o banco de dados db <- DBI::dbConnect(odbc::odbc(),"db_codeplan", uid=Sys.getenv("matricula"), pwd=Sys.getenv("senha")) # Puxar a base de dados...
/validacao_1718.R
no_license
kidlulu/pmad_2018
R
false
false
21,230
r
rm(list = ls()) # Fluxos PMAD # Carregar pacotes library(tidyverse) library(survey) library(srvyr) library(DBI) # Abrir conexão com o banco de dados db <- DBI::dbConnect(odbc::odbc(),"db_codeplan", uid=Sys.getenv("matricula"), pwd=Sys.getenv("senha")) # Puxar a base de dados...
#Using RCurl to read in csv data hosted online on github and other #sites library(RCurl) data1= read.csv(text=getURL("https://raw.githubusercontent.com/sciruela/Happiness-Salaries/master/data.csv")) head(data1) summary(data1) data2=read.csv(text=getURL("https://raw.githubusercontent.com/opetchey/RREEBES/master/Beninca...
/section2 - part 1/online-csv.txt
permissive
PacktPublishing/Clustering-and-Classification-with-Machine-Learning-in-R
R
false
false
566
txt
#Using RCurl to read in csv data hosted online on github and other #sites library(RCurl) data1= read.csv(text=getURL("https://raw.githubusercontent.com/sciruela/Happiness-Salaries/master/data.csv")) head(data1) summary(data1) data2=read.csv(text=getURL("https://raw.githubusercontent.com/opetchey/RREEBES/master/Beninca...
#Misha Khan #BANA 288 Predictive Analytics #Spring 2021 #Homework #3: Linear Model Selection and Regularization ################################################################################ #1. Prepare the data for analysis. The data set provided with this assignment #has had columns removed from the 128, so tha...
/hw3_khan_misha.ext.R
no_license
mkhan58/Linear-Model-Selection-and-Regularization
R
false
false
15,083
r
#Misha Khan #BANA 288 Predictive Analytics #Spring 2021 #Homework #3: Linear Model Selection and Regularization ################################################################################ #1. Prepare the data for analysis. The data set provided with this assignment #has had columns removed from the 128, so tha...
library(ggplot2) library(dplyr) library(dbplyr) #database functions library(RSQLite) #database backend(?) library(sf) # "simple features" GIS library(mapview) library(purrr) #map() library(dataRetrieval) #library(zoo) #yearmo data class #install.packages("mapview") #install.packages("rgdal") #library...
/DB_SF_functions.r
no_license
wangadang/geospatial
R
false
false
6,796
r
library(ggplot2) library(dplyr) library(dbplyr) #database functions library(RSQLite) #database backend(?) library(sf) # "simple features" GIS library(mapview) library(purrr) #map() library(dataRetrieval) #library(zoo) #yearmo data class #install.packages("mapview") #install.packages("rgdal") #library...
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.03,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/cervix/cervix_015.txt',append=TRU...
/Model/EN/ReliefF/cervix/cervix_015.R
no_license
leon1003/QSMART
R
false
false
352
r
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.03,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/cervix/cervix_015.txt',append=TRU...
########################################################################### # Issue: #17 Extract 'Overdue Inspections' Feature from Restaurant Inspection Data # Author: Kathy Xiong # Last Updated: 2017-01-04 # # Description: # This script summarises the restaurant inspections data by year, week, census block, # establ...
/issue_17/extract_restaurant_inspections_overdue.R
no_license
jasonasher/dc_doh_hackathon
R
false
false
6,727
r
########################################################################### # Issue: #17 Extract 'Overdue Inspections' Feature from Restaurant Inspection Data # Author: Kathy Xiong # Last Updated: 2017-01-04 # # Description: # This script summarises the restaurant inspections data by year, week, census block, # establ...
### SIMULATION ONE #Sim 1 source("GenCorr Functions.R") library(data.table) library(R.utils) library(MASS) arg = cmdArgs() n = 60 p = 3000 q = 6 n = 120 p = 1500 q = 4 score = matrix(-1, nrow = 100, ncol = 3) ###These are the scores for each method. #### Best rank, mid rank, worst rank...
/GenCorr/GC_Sim1.R
no_license
rr1964/Research
R
false
false
3,045
r
### SIMULATION ONE #Sim 1 source("GenCorr Functions.R") library(data.table) library(R.utils) library(MASS) arg = cmdArgs() n = 60 p = 3000 q = 6 n = 120 p = 1500 q = 4 score = matrix(-1, nrow = 100, ncol = 3) ###These are the scores for each method. #### Best rank, mid rank, worst rank...
test_that("The `gt_group()` function can be used to contain gt tables", { # Create two different `gt_tbl` table objects gt_tbl_1 <- gt(exibble) gt_tbl_2 <- gt(gtcars) # Create a `gt_group` object with `gt_group()` gt_tbls_1 <- gt_group(gt_tbl_1, gt_tbl_2) # Expect that the `gt_tbls` object produced by `g...
/tests/testthat/test-gt_group.R
permissive
rstudio/gt
R
false
false
15,260
r
test_that("The `gt_group()` function can be used to contain gt tables", { # Create two different `gt_tbl` table objects gt_tbl_1 <- gt(exibble) gt_tbl_2 <- gt(gtcars) # Create a `gt_group` object with `gt_group()` gt_tbls_1 <- gt_group(gt_tbl_1, gt_tbl_2) # Expect that the `gt_tbls` object produced by `g...
#change work directory setwd("~/R_MW_20180914/EXPWeek1") #Load data and subset data<-read.csv('household_power_consumption.txt', header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') dataS<-subset(data, Date %in% c("1/2/2007","2/2/2007")) dataS$Date <- ...
/plot4.R
no_license
purplewater/EXPDATA_Week1
R
false
false
1,161
r
#change work directory setwd("~/R_MW_20180914/EXPWeek1") #Load data and subset data<-read.csv('household_power_consumption.txt', header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') dataS<-subset(data, Date %in% c("1/2/2007","2/2/2007")) dataS$Date <- ...
"szabfok" <- function (BE=c(2,4,5)) { ############################################################# # # TITLE: szabfok() # AUTHOR: SANDOR KABOS, MODIFIED BY TARMO REMMEL # DATE: 27 NOV, 2003 # CALLS: # CALLED BY: teszt() # NEEDS: VECTOR INDICATING DIMENSIONS OF QKEP INVOLVED IN # ...
/R/szabfok.R
no_license
cran/hdeco
R
false
false
1,261
r
"szabfok" <- function (BE=c(2,4,5)) { ############################################################# # # TITLE: szabfok() # AUTHOR: SANDOR KABOS, MODIFIED BY TARMO REMMEL # DATE: 27 NOV, 2003 # CALLS: # CALLED BY: teszt() # NEEDS: VECTOR INDICATING DIMENSIONS OF QKEP INVOLVED IN # ...
library(shiny) library(quantmod) library('devtools') # Define UI ---- ui <- fluidPage( titlePanel(h1("Power Calculator for scRNA-seq Experiment")), sidebarLayout( sidebarPanel( h3("Parameter Input"), sliderInput("frac_m_genes", h5("Fraction of Marker Genes"),...
/trial-apps/powerEstapp.R
no_license
faskij/PowerApp-ncells
R
false
false
2,337
r
library(shiny) library(quantmod) library('devtools') # Define UI ---- ui <- fluidPage( titlePanel(h1("Power Calculator for scRNA-seq Experiment")), sidebarLayout( sidebarPanel( h3("Parameter Input"), sliderInput("frac_m_genes", h5("Fraction of Marker Genes"),...
############################################################################## # Copyright (c) 2018 Russell V. Lenth # # # # This file is part of the rsm package for R (*rsm*) # ...
/R/zzz.R
no_license
cran/rsm
R
false
false
1,589
r
############################################################################## # Copyright (c) 2018 Russell V. Lenth # # # # This file is part of the rsm package for R (*rsm*) # ...
rankall <- function(outcome, num = "best") { ## Read outcome data outcome_file <- read.csv("outcome-of-care-measures.csv", colClasses = "character") states = unique(outcome_file$State) ## Check that outcome are valid switch (outcome, "heart attack" = { col = 11 }, ...
/R_Programming/week_4/rankall.R
no_license
JolaSakala/datasciencecoursera
R
false
false
1,805
r
rankall <- function(outcome, num = "best") { ## Read outcome data outcome_file <- read.csv("outcome-of-care-measures.csv", colClasses = "character") states = unique(outcome_file$State) ## Check that outcome are valid switch (outcome, "heart attack" = { col = 11 }, ...
#' Neighbors Forecaster #' #' Predict next serie as a weighted combination of curves observed on "similar" days in #' the past (and future if 'opera'=FALSE); the nature of the similarity is controlled by #' the options 'simtype' and 'local' (see below). #' #' Optional arguments: #' \itemize{ #' \item local: TRUE (def...
/pkg/R/F_Neighbors.R
permissive
yagu0/talweg
R
false
false
9,377
r
#' Neighbors Forecaster #' #' Predict next serie as a weighted combination of curves observed on "similar" days in #' the past (and future if 'opera'=FALSE); the nature of the similarity is controlled by #' the options 'simtype' and 'local' (see below). #' #' Optional arguments: #' \itemize{ #' \item local: TRUE (def...
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
/dexterMST/inst/testfiles/is_person_booklet_sorted/AFL_is_person_booklet_sorted/is_person_booklet_sorted_valgrind_files/1615938542-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
826
r
testlist <- list(id = NULL, id = NULL, booklet_id = c(8168473L, 2127314835L, 171177770L, -1942759639L, -1815221204L, 601253144L, -804651186L, 2094281728L, 860713787L, -971707632L, -1475044502L, 870040598L, -1182814578L, -1415711445L, 1901326755L, -1882837573L, 1340545259L, 1156041943L, 823641812L, -1106109928L, -10...
rbind.createTable <- function(..., caption) { cl<-match.call() list.names <- function(...) { deparse.level<-1 l <- as.list(substitute(list(...)))[-1L] nm <- names(l) fixup <- if (is.null(nm)) seq_along(l) else nm == "" dep <- sapply(l[fixup], function(x) switch(depars...
/R/rbind.createTable.R
no_license
tormodb/compareGroups
R
false
false
2,479
r
rbind.createTable <- function(..., caption) { cl<-match.call() list.names <- function(...) { deparse.level<-1 l <- as.list(substitute(list(...)))[-1L] nm <- names(l) fixup <- if (is.null(nm)) seq_along(l) else nm == "" dep <- sapply(l[fixup], function(x) switch(depars...
printCount <- function (i, first = 1, prev = i - 1, last = NULL) { out = "" disp = round(i) if (prev >= first) prev.disp = round(prev) else prev.disp = "" if (disp > prev.disp) { nc = nchar(prev.disp) if (i != first) { out = paste(out, paste(rep("\b", nc), colla...
/rje/R/printCount.R
no_license
ingted/R-Examples
R
false
false
526
r
printCount <- function (i, first = 1, prev = i - 1, last = NULL) { out = "" disp = round(i) if (prev >= first) prev.disp = round(prev) else prev.disp = "" if (disp > prev.disp) { nc = nchar(prev.disp) if (i != first) { out = paste(out, paste(rep("\b", nc), colla...
require(BiocManager) # if get bioconductor error do this options(repos = BiocManager::repositories()) require(shiny) require(shinyjs) require(DT) require(tidyverse) require(plotly) require(Hmisc) require(pwr) require(samplingbook) require(xkcd) # devtools::install_github("slzhao/RnaSeqSampleSize") require(RnaSeqSample...
/server.R
no_license
SemiQuant/HowBigHowStrong
R
false
false
26,083
r
require(BiocManager) # if get bioconductor error do this options(repos = BiocManager::repositories()) require(shiny) require(shinyjs) require(DT) require(tidyverse) require(plotly) require(Hmisc) require(pwr) require(samplingbook) require(xkcd) # devtools::install_github("slzhao/RnaSeqSampleSize") require(RnaSeqSample...
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ library(shiny) library(ggrepel) library(tidyverse) #library(devtools); install_github("mkleinsa/exdata") library(exdata) # UI Defines how the a...
/shinyapp/example_app.R
no_license
BangyaoZhao/divvy
R
false
false
22,181
r
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ library(shiny) library(ggrepel) library(tidyverse) #library(devtools); install_github("mkleinsa/exdata") library(exdata) # UI Defines how the a...
# Bootstrap confidence interval code # ------------------------------------------------------------------------------ # helpers check_rset <- function(x, app = TRUE) { if (!inherits(x, "bootstraps")) stop("`.data` should be an `rset` object generated from `bootstraps()`", call. = FALSE) if (app) { ...
/R/bootci.R
no_license
minghao2016/rsample
R
false
false
12,912
r
# Bootstrap confidence interval code # ------------------------------------------------------------------------------ # helpers check_rset <- function(x, app = TRUE) { if (!inherits(x, "bootstraps")) stop("`.data` should be an `rset` object generated from `bootstraps()`", call. = FALSE) if (app) { ...
#' @include desc_statby.R utilities_base.R utilities_color.R NULL #' @import ggplot2 #' @importFrom magrittr %>% #' @importFrom dplyr group_by_ #' @importFrom dplyr group_by #' @importFrom dplyr arrange_ #' @importFrom dplyr mutate #' @importFrom dplyr do #' @importFrom dplyr summarise #' @importFrom dplyr everything #...
/R/utilities.R
no_license
karthy257/ggpubr
R
false
false
35,070
r
#' @include desc_statby.R utilities_base.R utilities_color.R NULL #' @import ggplot2 #' @importFrom magrittr %>% #' @importFrom dplyr group_by_ #' @importFrom dplyr group_by #' @importFrom dplyr arrange_ #' @importFrom dplyr mutate #' @importFrom dplyr do #' @importFrom dplyr summarise #' @importFrom dplyr everything #...
library(whoapi) ### Name: is_taken ### Title: Identify if a Domain is Taken ### Aliases: is_taken ### ** Examples #Check if whoapi.com is taken token <- whoapi_token("demokey") ## Not run: ##D is_taken(token, "whoapi.com") ## End(Not run) #[1] TRUE
/data/genthat_extracted_code/whoapi/examples/is_taken.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
258
r
library(whoapi) ### Name: is_taken ### Title: Identify if a Domain is Taken ### Aliases: is_taken ### ** Examples #Check if whoapi.com is taken token <- whoapi_token("demokey") ## Not run: ##D is_taken(token, "whoapi.com") ## End(Not run) #[1] TRUE
source("gglasso.r") source("model.r") source("utilities.r") dyn.load("gglasso.so") set.seed(1) x=matrix(rnorm(100*200),100,200) set.seed(1) y=sample(c(-1,1),100,replace=T) group<-rep(1:40,each=5) nobs=nrow(x) nvars=ncol(x) #m0 <-gglasso.logit(y=y,x=x,group=group,eps=1e-6) bn=as.integer(max(group)) bs=as.integer(as.nu...
/non_strong_rule/reference/strong/tlogit.R
no_license
boxiang-wang/powerfamily
R
false
false
955
r
source("gglasso.r") source("model.r") source("utilities.r") dyn.load("gglasso.so") set.seed(1) x=matrix(rnorm(100*200),100,200) set.seed(1) y=sample(c(-1,1),100,replace=T) group<-rep(1:40,each=5) nobs=nrow(x) nvars=ncol(x) #m0 <-gglasso.logit(y=y,x=x,group=group,eps=1e-6) bn=as.integer(max(group)) bs=as.integer(as.nu...
library("EBImage") img_dir<-"../data/image/images/" img_names<-list.files(img_dir) Gbin<-seq(0,1,length.out = 250) gray_features<-data.frame(matrix(NA,3000,251)) colnames(gray_features)<-c('Image',paste('gray_',1:250,sep="")) gray_features$Image<-img_names for(i in 1:3000){ print(i) img<-readImage(paste(img_dir...
/lib/gray_feature.R
no_license
xiuruoyan/Dogs-Fried-Chicken-or-Blueberry-Muffins-
R
false
false
674
r
library("EBImage") img_dir<-"../data/image/images/" img_names<-list.files(img_dir) Gbin<-seq(0,1,length.out = 250) gray_features<-data.frame(matrix(NA,3000,251)) colnames(gray_features)<-c('Image',paste('gray_',1:250,sep="")) gray_features$Image<-img_names for(i in 1:3000){ print(i) img<-readImage(paste(img_dir...
library(SDDE) ### Name: Sample_2 ### Title: An network X of 6 nodes and an augmented network Y with 7 nodes ### Aliases: Sample_2 ### Keywords: datasets ### ** Examples ## Not run: ##D data(Sample_2) ##D complete_network(g1,g2) ## End(Not run) ## disconnected nodes shortcuts equals detours dead ends ## ...
/data/genthat_extracted_code/SDDE/examples/Sample_2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
935
r
library(SDDE) ### Name: Sample_2 ### Title: An network X of 6 nodes and an augmented network Y with 7 nodes ### Aliases: Sample_2 ### Keywords: datasets ### ** Examples ## Not run: ##D data(Sample_2) ##D complete_network(g1,g2) ## End(Not run) ## disconnected nodes shortcuts equals detours dead ends ## ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_loa} \alias{directconnect_describe_loa} \title{Gets the LOA-CFA for a connection, interconnect, or link aggregation group (LAG)} \usage{ directconnect_describe_loa(connectionId, provider...
/cran/paws.networking/man/directconnect_describe_loa.Rd
permissive
sanchezvivi/paws
R
false
true
1,445
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_loa} \alias{directconnect_describe_loa} \title{Gets the LOA-CFA for a connection, interconnect, or link aggregation group (LAG)} \usage{ directconnect_describe_loa(connectionId, provider...
#' @name lnd #' @aliases lnd #' @title The boroughs of London #' #' @description Polygons representing large administrative zones in London #' #' @format #' \itemize{ #' \item{NAME} {Borough name} #' \item{GSS_CODE} {Official code} #' \item{HECTARES} {How many hectares} #' \item{NONLD_AREA} {Area outs...
/R/lnd.R
no_license
Nowosad/spData
R
false
false
788
r
#' @name lnd #' @aliases lnd #' @title The boroughs of London #' #' @description Polygons representing large administrative zones in London #' #' @format #' \itemize{ #' \item{NAME} {Borough name} #' \item{GSS_CODE} {Official code} #' \item{HECTARES} {How many hectares} #' \item{NONLD_AREA} {Area outs...
library(dplyr) library(tidytext) library(janeaustenr) austen_bigrams <- austen_books() %>% unnest_tokens(bigram, text, token = "ngrams", n = 2) bigram_counts <- austen_bigrams %>% count(bigram, sort = TRUE) library(tidyr) bigrams_separated <- austen_bigrams %>% separate(bigram, c("word1", "word2"), sep = " "...
/#0_Chapter_04_code.R
no_license
thisisdaryn/text_mining_with_R
R
false
false
6,884
r
library(dplyr) library(tidytext) library(janeaustenr) austen_bigrams <- austen_books() %>% unnest_tokens(bigram, text, token = "ngrams", n = 2) bigram_counts <- austen_bigrams %>% count(bigram, sort = TRUE) library(tidyr) bigrams_separated <- austen_bigrams %>% separate(bigram, c("word1", "word2"), sep = " "...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corr.measures.R \name{ends} \alias{ends} \title{Function to identify the extremes of a vector} \usage{ ends(w, rm = 1/3) } \arguments{ \item{w}{A numeric vector of values} \item{rm}{A value between 0 and 1 giving the percentage of extreme ob...
/man/ends.Rd
no_license
ekstroem/MethComp
R
false
true
451
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corr.measures.R \name{ends} \alias{ends} \title{Function to identify the extremes of a vector} \usage{ ends(w, rm = 1/3) } \arguments{ \item{w}{A numeric vector of values} \item{rm}{A value between 0 and 1 giving the percentage of extreme ob...
# class-classified data structure # Haoran # 2/7/2018 rm(list = ls()) #path path <- "D:/works/APC study/GSS data 27 p.27 examples" setwd(path) #data ds <- read.csv("gssdata_for_P27_preprocessed.csv") # attemp to create age/period table # table of sum of average score for cohorts in different periods li...
/practice 1.2.R
no_license
NicksonWeng/APC_Model_practice
R
false
false
1,020
r
# class-classified data structure # Haoran # 2/7/2018 rm(list = ls()) #path path <- "D:/works/APC study/GSS data 27 p.27 examples" setwd(path) #data ds <- read.csv("gssdata_for_P27_preprocessed.csv") # attemp to create age/period table # table of sum of average score for cohorts in different periods li...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_mailing_list.R \name{tabulate_request} \alias{tabulate_request} \title{Tabulate the results of a get request} \usage{ tabulate_request(url) } \arguments{ \item{url}{} } \description{ Tabulate the results of a get request }
/man/tabulate_request.Rd
no_license
blueprint-ade/bputils
R
false
true
305
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_mailing_list.R \name{tabulate_request} \alias{tabulate_request} \title{Tabulate the results of a get request} \usage{ tabulate_request(url) } \arguments{ \item{url}{} } \description{ Tabulate the results of a get request }
#' \code{Select} #' #' #' @description Subscripts a range of elements (e.g., from a vector or list), based on the #' name of the elements. #' @param x The object to be subscripted. #' @param from The name of the first element to be selected. #' @param to The name of the last element to be selected. #' @param MARGIN The...
/R/Select.R
no_license
Displayr/flipU
R
false
false
2,344
r
#' \code{Select} #' #' #' @description Subscripts a range of elements (e.g., from a vector or list), based on the #' name of the elements. #' @param x The object to be subscripted. #' @param from The name of the first element to be selected. #' @param to The name of the last element to be selected. #' @param MARGIN The...