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 |
|---|---|---|---|---|---|---|---|---|---|
# Financial Analytics Case Study
# Finding how people take decisions to buy products
# Creating Decision Tree
library(rpart)
library(rplart.plot)
#Students : Gender - (Male & Female) buy a product
#Rownames
rollno = paste('S',1:1000, sep='')
rollno
#Variable Gender
set.seed(100)
gender = sample(x=c('Male','Female'),... | /CLS/CART/dt-rpart-du1.R | no_license | mohitmirajkar/analytics-1 | R | false | false | 5,837 | r | # Financial Analytics Case Study
# Finding how people take decisions to buy products
# Creating Decision Tree
library(rpart)
library(rplart.plot)
#Students : Gender - (Male & Female) buy a product
#Rownames
rollno = paste('S',1:1000, sep='')
rollno
#Variable Gender
set.seed(100)
gender = sample(x=c('Male','Female'),... |
library(hbsae)
### Name: sae-class
### Title: S3 class for the fitted model and SAE outcomes.
### Aliases: cAIC coef.sae COR COV CV EST fitted.sae MSE R2 raneff
### raneff.se relSE residuals.sae sae-class SE se2 sv2 synthetic vcov.sae
### wDirect
### ** Examples
d <- generateFakeData()
# compute small area est... | /data/genthat_extracted_code/hbsae/examples/sae-class.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 553 | r | library(hbsae)
### Name: sae-class
### Title: S3 class for the fitted model and SAE outcomes.
### Aliases: cAIC coef.sae COR COV CV EST fitted.sae MSE R2 raneff
### raneff.se relSE residuals.sae sae-class SE se2 sv2 synthetic vcov.sae
### wDirect
### ** Examples
d <- generateFakeData()
# compute small area est... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rl_occ_country.R, R/rl_search.R
\name{rl_occ_country_}
\alias{rl_occ_country_}
\alias{rl_search}
\alias{rl_search_}
\title{Search by taxon name, IUCN id, and region}
\usage{
rl_occ_country_(name = NULL, id = NULL, region = NULL, key = NULL, .... | /man/rl_search.Rd | permissive | MoisesExpositoAlonso/rredlist | R | false | true | 1,614 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rl_occ_country.R, R/rl_search.R
\name{rl_occ_country_}
\alias{rl_occ_country_}
\alias{rl_search}
\alias{rl_search_}
\title{Search by taxon name, IUCN id, and region}
\usage{
rl_occ_country_(name = NULL, id = NULL, region = NULL, key = NULL, .... |
# source by "ui.R"
| /ui/tcga_ctrp_ui.R | permissive | COMODr/GSCALite | R | false | false | 19 | r | # source by "ui.R"
|
##### 08/10/2020 - ETHZ - Fabio Benedetti © UP Group, IBP, ETH Zürich
##### Script for :
# - Loading the phytoplankton and zooplankton niche traits from Script#27.6
# - Check their overall distribution and then per group
# - Test variance in niche traits across groups, and phyto vs. zooplankton for common variabl... | /Script#27.7_OVERSEE_groups_niche_traits_analyze.R | permissive | benfabio/Benedetti-et-al.-Putting-the-diversity-of-plankton-functional-groups-on-the-global-map-in-prep.- | R | false | false | 22,526 | r |
##### 08/10/2020 - ETHZ - Fabio Benedetti © UP Group, IBP, ETH Zürich
##### Script for :
# - Loading the phytoplankton and zooplankton niche traits from Script#27.6
# - Check their overall distribution and then per group
# - Test variance in niche traits across groups, and phyto vs. zooplankton for common variabl... |
#' Construct a transmission network from a phylogenetic tree (phylo object)
#' Using the branch lengths of leaves (tips), join leaves (tips) with approximately equal branch lengths
#'
#'
#' @param phylo.tree a phylo object
#' @param epsilon cut-off value as difference between two branch lengths
#' @return a transmissio... | /Misc/ConnectNearBy.R | no_license | niyongabirejunior/arteta | R | false | false | 2,614 | r | #' Construct a transmission network from a phylogenetic tree (phylo object)
#' Using the branch lengths of leaves (tips), join leaves (tips) with approximately equal branch lengths
#'
#'
#' @param phylo.tree a phylo object
#' @param epsilon cut-off value as difference between two branch lengths
#' @return a transmissio... |
library(sn);library(mvtnorm); library(scatterplot3d); library(EnvStats); library(plotly)
library(mdatools); library(fitdistrplus); library(xtable); library(in2extRemes)
library(evd); library(SimCop); library(copula); library(mgpd)
# E2.1, nine para BEV models ====
par(mfrow = c(2,2)); par(mar = rep(2, 4))
abve... | /CA3_2.R | no_license | oscarmandley/Extreme-Value-Theory | R | false | false | 18,643 | r | library(sn);library(mvtnorm); library(scatterplot3d); library(EnvStats); library(plotly)
library(mdatools); library(fitdistrplus); library(xtable); library(in2extRemes)
library(evd); library(SimCop); library(copula); library(mgpd)
# E2.1, nine para BEV models ====
par(mfrow = c(2,2)); par(mar = rep(2, 4))
abve... |
#' Plot a slice of a raster stack
#'
#' This function will plot a slice of data at a single point location from a
#' list of prism files
#'
#' @param location a vector of a single location in the form of long,lat
#'
#' @param prismfile a vector of output from [ls_prism_data()]`[,1]` giving a
#' list of prism fi... | /R/prism_slice.R | no_license | zejiang-unsw/prism | R | false | false | 1,726 | r | #' Plot a slice of a raster stack
#'
#' This function will plot a slice of data at a single point location from a
#' list of prism files
#'
#' @param location a vector of a single location in the form of long,lat
#'
#' @param prismfile a vector of output from [ls_prism_data()]`[,1]` giving a
#' list of prism fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateCI2IFC.R
\name{generateCI2IFC}
\alias{generateCI2IFC}
\title{Generates 2IFC classification image}
\usage{
generateCI2IFC(
stimuli,
responses,
baseimage,
rdata,
save_as_png = TRUE,
filename = "",
targetpath = "./cis",
a... | /man/generateCI2IFC.Rd | no_license | rdotsch/rcicr | R | false | true | 3,528 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateCI2IFC.R
\name{generateCI2IFC}
\alias{generateCI2IFC}
\title{Generates 2IFC classification image}
\usage{
generateCI2IFC(
stimuli,
responses,
baseimage,
rdata,
save_as_png = TRUE,
filename = "",
targetpath = "./cis",
a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bracket.women.2017.R
\name{bracket.women.2017}
\alias{bracket.women.2017}
\title{2017 Women's March Madness bracket}
\format{character vector of length 64}
\description{
This dataset contains the ESPN team ids of the 64 teams in the
2017 Ma... | /man/bracket.women.2017.Rd | no_license | HennenD/mRchmadness | R | false | true | 459 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bracket.women.2017.R
\name{bracket.women.2017}
\alias{bracket.women.2017}
\title{2017 Women's March Madness bracket}
\format{character vector of length 64}
\description{
This dataset contains the ESPN team ids of the 64 teams in the
2017 Ma... |
/aiaR/myfirstR/AI-D3-2.R | no_license | mosabeker/AIA | R | false | false | 17,782 | r | ||
#####################################################################
#
# xchr.R
#
# copyright (c) 2004-2010, Karl W Broman
# last modified Nov, 2010
# first written Apr, 2004
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# v... | /R/xchr.R | no_license | amanicha/qtl | R | false | false | 28,801 | r | #####################################################################
#
# xchr.R
#
# copyright (c) 2004-2010, Karl W Broman
# last modified Nov, 2010
# first written Apr, 2004
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# v... |
#' Shipments
#'
#' Shipments
#'
#'
#' @format Time series data
#' @source Makridakis, Wheelwright and Hyndman (1998) \emph{Forecasting:
#' methods and applications}, John Wiley & Sons: New York. Exercise 3.1
#' @keywords datasets
#' @examples
#' plot(shipex)
#' @export
shipex <- stats::ts(c(42, 69, 100, 1... | /timeseries/R/shipex.R | no_license | somnath1077/ML | R | false | false | 390 | r |
#' Shipments
#'
#' Shipments
#'
#'
#' @format Time series data
#' @source Makridakis, Wheelwright and Hyndman (1998) \emph{Forecasting:
#' methods and applications}, John Wiley & Sons: New York. Exercise 3.1
#' @keywords datasets
#' @examples
#' plot(shipex)
#' @export
shipex <- stats::ts(c(42, 69, 100, 1... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/credentials.R
\name{saveCredentials}
\alias{credentialsExist}
\alias{removeCredentials}
\alias{saveCredentials}
\title{manage database credentials}
\usage{
saveCredentials(user, pwd, host, db, path)
}
\value{
\code{credentialsExist},\... | /man/saveCredentials.Rd | no_license | alrutten/sdb | R | false | false | 1,381 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/credentials.R
\name{saveCredentials}
\alias{credentialsExist}
\alias{removeCredentials}
\alias{saveCredentials}
\title{manage database credentials}
\usage{
saveCredentials(user, pwd, host, db, path)
}
\value{
\code{credentialsExist},\... |
library(dplyr)
for (k in unique(datos_resumidos$ESTADO)){
datos_resumidos_edo[[k]]<-filter(datos_resumidos,ESTADO==k)
x<-which(datos_resumidos_edo[[k]]$FECHA_DEF=="9999-99-99")
datos_resumidos_edo[[k]]$Def<-0
datos_resumidos_edo[[k]]$Def[-x]<-1
reg_diarios_positivos_edo[[k]]<-filter(... | /hacer_registros_por_dia_estados.R | permissive | plumeriopipichas/Covid_MX | R | false | false | 1,645 | r | library(dplyr)
for (k in unique(datos_resumidos$ESTADO)){
datos_resumidos_edo[[k]]<-filter(datos_resumidos,ESTADO==k)
x<-which(datos_resumidos_edo[[k]]$FECHA_DEF=="9999-99-99")
datos_resumidos_edo[[k]]$Def<-0
datos_resumidos_edo[[k]]$Def[-x]<-1
reg_diarios_positivos_edo[[k]]<-filter(... |
#############################################################
# Example Query : Gridded fishing effort
# Description:
# This query demonstrates how to extract valid positions and
# calculate fishing hours.
##############################################################
##############################################... | /practice_scripts/fishing_hours_gridded.R | no_license | saraorofino/gfw-sql-practice | R | false | false | 1,900 | r | #############################################################
# Example Query : Gridded fishing effort
# Description:
# This query demonstrates how to extract valid positions and
# calculate fishing hours.
##############################################################
##############################################... |
\name{tableau_color_pal}
\alias{tableau_color_pal}
\title{Tabaleau Color Palettes (discrete)}
\usage{
tableau_color_pal(palette = "tableau10")
}
\arguments{
\item{palette}{Palette name}
}
\description{
Color palettes used by
\href{http://www.tableausoftware.com/}{Trableau}.
}
\examples{
library(scales)
show_col... | /man/tableau_color_pal.Rd | no_license | jknowles/ggplotJrnold | R | false | false | 1,301 | rd | \name{tableau_color_pal}
\alias{tableau_color_pal}
\title{Tabaleau Color Palettes (discrete)}
\usage{
tableau_color_pal(palette = "tableau10")
}
\arguments{
\item{palette}{Palette name}
}
\description{
Color palettes used by
\href{http://www.tableausoftware.com/}{Trableau}.
}
\examples{
library(scales)
show_col... |
# Run this script only once to install all packages necessary for the workshop
install.packages('tidyverse')
install.packages('knitr')
install.packages('DT')
install.packages('readxl')
install.packages('sf')
install.packages('mapview')
install.packages('plotly')
install.packages('lubridate') | /installPackages.R | no_license | EmmaVJones/NCTC_Processing-Benthic-Macroinvertebrate-Data-in-R | R | false | false | 293 | r | # Run this script only once to install all packages necessary for the workshop
install.packages('tidyverse')
install.packages('knitr')
install.packages('DT')
install.packages('readxl')
install.packages('sf')
install.packages('mapview')
install.packages('plotly')
install.packages('lubridate') |
clayton_loglik <- function(para, X, Y, d1, d2, k = 2, knotsx, knotsy){
#k is the number of knots in the model, this determines the length of para
gammax <- para[1:(k + 2)]
gammay <- para[(k + 3):(2*(k + 2))]
#last value in para is the association parameter
theta <- para[2*(k + 2) + 1]
#survival probabiliti... | /R/log_likelihoods.R | no_license | cran/Surrogate | R | false | false | 6,863 | r | clayton_loglik <- function(para, X, Y, d1, d2, k = 2, knotsx, knotsy){
#k is the number of knots in the model, this determines the length of para
gammax <- para[1:(k + 2)]
gammay <- para[(k + 3):(2*(k + 2))]
#last value in para is the association parameter
theta <- para[2*(k + 2) + 1]
#survival probabiliti... |
library(tidyverse)
library(openxlsx)
library(dplyr)
library(readxl)
# 指数表記を避けるため
options(scipen=100)
setwd("/xxx/")
getwd()
# パスは「/」から「/」に修正する必要あり
path = "/xxxxxx/"
# すべてのファイルパスを取得
path_list <- list.files(path, full.names=T)
# すべてのファイルを読み込み縦に結合
df <- do.call(rbind, lapply(path_list, read_excel)) | /すべてのファイルパスを取得してファイルを読み込み縦に結合する.R | no_license | hwpwk/R | R | false | false | 429 | r | library(tidyverse)
library(openxlsx)
library(dplyr)
library(readxl)
# 指数表記を避けるため
options(scipen=100)
setwd("/xxx/")
getwd()
# パスは「/」から「/」に修正する必要あり
path = "/xxxxxx/"
# すべてのファイルパスを取得
path_list <- list.files(path, full.names=T)
# すべてのファイルを読み込み縦に結合
df <- do.call(rbind, lapply(path_list, read_excel)) |
#' Figure 4
#'
#' Code to reproduce figure 4.
#'
#' @param path Path to results files for LDA and NBC.
#' @param file_ml Path to results file (a rds file) for MLP.
#' @param files_pca A vector of 3 rds files (1 per method) corresponding to the results obtained once a PCA was applied to the data set.
#'
#' @export
scr_... | /R/scr_fig4.R | permissive | McCannLab/spatial_fingerprints | R | false | false | 3,330 | r | #' Figure 4
#'
#' Code to reproduce figure 4.
#'
#' @param path Path to results files for LDA and NBC.
#' @param file_ml Path to results file (a rds file) for MLP.
#' @param files_pca A vector of 3 rds files (1 per method) corresponding to the results obtained once a PCA was applied to the data set.
#'
#' @export
scr_... |
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81554993050676e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615833039-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 421 | r | testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81554993050676e-79, 7.89363005545926e+139, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... |
#' load_data UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_load_data_ui <- function(id){
ns <- NS(id)
tagList(
fileInput(ns("csv_input"), "Select CSV File to Import", accept = ".csv"),
... | /R/mod_load_data.R | permissive | jixing475/shiy4tools | R | false | false | 865 | r | #' load_data UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_load_data_ui <- function(id){
ns <- NS(id)
tagList(
fileInput(ns("csv_input"), "Select CSV File to Import", accept = ".csv"),
... |
\name{plot.fasp}
\alias{plot.fasp}
\title{Plot a Function Array}
\description{
Plots an array of summary functions, usually associated with a
point pattern, stored in an object of class \code{"fasp"}.
A method for \code{plot}.
}
\usage{
\method{plot}{fasp}(x,formule=NULL, \dots,
sub... | /man/plot.fasp.Rd | no_license | chenjiaxun9/spatstat | R | false | false | 5,539 | rd | \name{plot.fasp}
\alias{plot.fasp}
\title{Plot a Function Array}
\description{
Plots an array of summary functions, usually associated with a
point pattern, stored in an object of class \code{"fasp"}.
A method for \code{plot}.
}
\usage{
\method{plot}{fasp}(x,formule=NULL, \dots,
sub... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/langmuir4LM.R
\name{langmuir4.LM}
\alias{langmuir4.LM}
\title{Langmuir Isotherm Fourth Linear Form Analysis}
\usage{
langmuir4.LM(Ce, Qe)
}
\arguments{
\item{Ce}{the numerical value for the equilibrium capacity}
\item{Qe}{the numerical value... | /man/langmuir4.LM.Rd | no_license | cran/PUPAIM | R | false | true | 1,321 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/langmuir4LM.R
\name{langmuir4.LM}
\alias{langmuir4.LM}
\title{Langmuir Isotherm Fourth Linear Form Analysis}
\usage{
langmuir4.LM(Ce, Qe)
}
\arguments{
\item{Ce}{the numerical value for the equilibrium capacity}
\item{Qe}{the numerical value... |
# create plot for MSE measures
ggplot(data = tScenario1_MSE, aes(x = as.factor(Trials), y = MSE, color = Method)) +
geom_point() +
scale_y_log10() +
facet_wrap(~ as.factor(NoiseLevel), nrow = 2) +
theme_minimal() +
labs(title = "MSE Comparison Between Methods as Function of Number of Trials
Faceted by... | /rCode/Figures/Alt_signal_plots.R | no_license | aleslab/optimalEegFiltering | R | false | false | 2,172 | r | # create plot for MSE measures
ggplot(data = tScenario1_MSE, aes(x = as.factor(Trials), y = MSE, color = Method)) +
geom_point() +
scale_y_log10() +
facet_wrap(~ as.factor(NoiseLevel), nrow = 2) +
theme_minimal() +
labs(title = "MSE Comparison Between Methods as Function of Number of Trials
Faceted by... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function_crossValidation.R
\name{DTD_cv_lambda_R}
\alias{DTD_cv_lambda_R}
\title{Cross-validation for digital tissue deconvolution}
\usage{
DTD_cv_lambda_R(
lambda.seq = "none",
tweak.start,
n.folds = 5,
lambda.length = 10,
train.da... | /man/DTD_cv_lambda_R.Rd | permissive | MarianSchoen/DTD | R | false | true | 2,889 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/function_crossValidation.R
\name{DTD_cv_lambda_R}
\alias{DTD_cv_lambda_R}
\title{Cross-validation for digital tissue deconvolution}
\usage{
DTD_cv_lambda_R(
lambda.seq = "none",
tweak.start,
n.folds = 5,
lambda.length = 10,
train.da... |
### Load stuff
library(transformr)
library(tidyverse)
library(mgcv)
library(broom)
library(furrr)
library(lubridate)
pass <- function(x, ...) {x}
ParticleSizeCutoff <- 0.5
### Function to load in initial data and prepare a data frame.
## Define global parameter
C_f = 133 # SmoothsAndFlusRevisited.Rmd, calculated f... | /UVP_2017_library.R | permissive | cramjaco/POMZ-ETNP-UVP-2017 | R | false | false | 35,282 | r | ### Load stuff
library(transformr)
library(tidyverse)
library(mgcv)
library(broom)
library(furrr)
library(lubridate)
pass <- function(x, ...) {x}
ParticleSizeCutoff <- 0.5
### Function to load in initial data and prepare a data frame.
## Define global parameter
C_f = 133 # SmoothsAndFlusRevisited.Rmd, calculated f... |
############################################################
#This is a file for the Virus and Tx App
#it contains additional information that helps properly process it
############################################################
appsettings = list()
#Title of app, to be displayed on top of analyze tab
appset... | /inst/appinformation/virusandtx_settings.R | no_license | mohrosidi/DSAIRM | R | false | false | 1,283 | r | ############################################################
#This is a file for the Virus and Tx App
#it contains additional information that helps properly process it
############################################################
appsettings = list()
#Title of app, to be displayed on top of analyze tab
appset... |
#====================================================================
# COMPUTATIONAL STATISTICS - LAB 1
#====================================================================
library(ggplot2)
library(tidyverse)
library(matlib)
#--------------------------------------------------------------------
# QUESTION 1 - BE CARE... | /Lab1/lab1_sj.R | no_license | hradave/Computational-Statistics | R | false | false | 4,607 | r | #====================================================================
# COMPUTATIONAL STATISTICS - LAB 1
#====================================================================
library(ggplot2)
library(tidyverse)
library(matlib)
#--------------------------------------------------------------------
# QUESTION 1 - BE CARE... |
library(factoextra)
### Name: multishapes
### Title: A dataset containing clusters of multiple shapes
### Aliases: multishapes
### ** Examples
## No test:
data(multishapes)
plot(multishapes[,1], multishapes[, 2],
col = multishapes[, 3], pch = 19, cex = 0.8)
## End(No test)
| /data/genthat_extracted_code/factoextra/examples/multishapes.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 287 | r | library(factoextra)
### Name: multishapes
### Title: A dataset containing clusters of multiple shapes
### Aliases: multishapes
### ** Examples
## No test:
data(multishapes)
plot(multishapes[,1], multishapes[, 2],
col = multishapes[, 3], pch = 19, cex = 0.8)
## End(No test)
|
# Function to edit the training data
# train : training data to create new modified training file from
# retentionPercent : what percent of the training data should be retained
# addRandomFunny : Adds random funny sequences inside just to mess with the classifier.
# modificationPercent : What percent of the seqeunc... | /mutation.R | no_license | TurbulentCupcake/tfidfPredictorScripts | R | false | false | 1,926 | r |
# Function to edit the training data
# train : training data to create new modified training file from
# retentionPercent : what percent of the training data should be retained
# addRandomFunny : Adds random funny sequences inside just to mess with the classifier.
# modificationPercent : What percent of the seqeunc... |
Sys.setenv(TZ='Etc/GMT+1') # issue#612@rstan
#job.args <- c("cov2", "ast_parsars_ptm", "snaut_parsars_ptm_20200907", "20200920", "20200920", "0", "39")
#job.args <- c("cov2", "ast_parsars_ptm", "snaut_parsars_phospho_20201005", "20201012", "20201012", "0", "39")
if (!exists('job.args')) {
job.args <- commandArgs(trai... | /msglm_fit_chunk_parsars_ptm.R | no_license | innatelab/cov2 | R | false | false | 9,559 | r | Sys.setenv(TZ='Etc/GMT+1') # issue#612@rstan
#job.args <- c("cov2", "ast_parsars_ptm", "snaut_parsars_ptm_20200907", "20200920", "20200920", "0", "39")
#job.args <- c("cov2", "ast_parsars_ptm", "snaut_parsars_phospho_20201005", "20201012", "20201012", "0", "39")
if (!exists('job.args')) {
job.args <- commandArgs(trai... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{SiSetProcessingOptions}
\alias{SiSetProcessingOptions}
\title{Sets processing options for each spectrum type.}
\usage{
SiSetProcessingOptions(option, value, specType)
}
\arguments{
\item{option}{Option to set (see below fo... | /man/SiSetProcessingOptions.Rd | no_license | pasturm/TofDaqR | R | false | true | 2,571 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{SiSetProcessingOptions}
\alias{SiSetProcessingOptions}
\title{Sets processing options for each spectrum type.}
\usage{
SiSetProcessingOptions(option, value, specType)
}
\arguments{
\item{option}{Option to set (see below fo... |
library(testthat)
library(dataIrony)
test_check("dataIrony")
| /tests/testthat.R | no_license | hojsgaard/dataIrony | R | false | false | 62 | r | library(testthat)
library(dataIrony)
test_check("dataIrony")
|
#* @apiTitle BSSEnsembleR
#* @apiDescription a plumber back-end for real-time ensemble modelling
# ---- GENERICS ------ #
isValidString<-function(x){
!all(is.null(x) || is.na(x) || !is.atomic(x) || identical(x,"") || !is.character(x))
} #Done
OBID <- function(){ #Done
ei <- as.hexmode(as.integer(Sys.time())) # 4-... | /inst/plumber.R | no_license | AndreGuerra123/BSSEmsembleR | R | false | false | 10,451 | r | #* @apiTitle BSSEnsembleR
#* @apiDescription a plumber back-end for real-time ensemble modelling
# ---- GENERICS ------ #
isValidString<-function(x){
!all(is.null(x) || is.na(x) || !is.atomic(x) || identical(x,"") || !is.character(x))
} #Done
OBID <- function(){ #Done
ei <- as.hexmode(as.integer(Sys.time())) # 4-... |
#載入套件
library(jiebaR)
library(jiebaRD)
library(wordcloud2)
library(text2vec)
library(stringr)
#讀文檔
setwd("C:/Users/jeff6/Desktop/Github/alan/Week2-4")
data <- readChar("CUG.txt",720000)
str(data)
#开始分词
wk = worker()
seg_MK=wk[data]
#注意:这里要转成list格式
tokens=list(seg_MK)
class(tokens)
# 构造词库(对文中分词结果进行汇总)
it = itoken(... | /practice/資料向量分析/西遊記分析(網路).R | no_license | jeff6578/alan | R | false | false | 1,430 | r | #載入套件
library(jiebaR)
library(jiebaRD)
library(wordcloud2)
library(text2vec)
library(stringr)
#讀文檔
setwd("C:/Users/jeff6/Desktop/Github/alan/Week2-4")
data <- readChar("CUG.txt",720000)
str(data)
#开始分词
wk = worker()
seg_MK=wk[data]
#注意:这里要转成list格式
tokens=list(seg_MK)
class(tokens)
# 构造词库(对文中分词结果进行汇总)
it = itoken(... |
############################
# Week 3: General practices
############################
# Construct a 5x6 matrix
X <- matrix(rnorm(30), nrow=5, ncol=6)
# Sum the values of each column with `apply()`
apply(X, 1, sum)
X
# Create a list of matrices
MyList <- list(... | /week_3/general_practice.R | no_license | gusahu/rprogramming_coursera | R | false | false | 1,785 | r | ############################
# Week 3: General practices
############################
# Construct a 5x6 matrix
X <- matrix(rnorm(30), nrow=5, ncol=6)
# Sum the values of each column with `apply()`
apply(X, 1, sum)
X
# Create a list of matrices
MyList <- list(... |
library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.3,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/kidney/kidney_042.txt',append=TRUE... | /Model/EN/Lasso/kidney/kidney_042.R | no_license | leon1003/QSMART | R | false | false | 351 | r | library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/kidney.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.3,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/kidney/kidney_042.txt',append=TRUE... |
# Set the working directory
# I have commented it as it is already set
# setwd("D:/Documents/Coursera/Exploratory Data Analysis/Week 1")
# Read the source file into a data frame
mydata <- read.table("household_power_consumption.txt", header=T, sep=";", stringsAsFactors=FALSE)
mydata <- na.omit(mydata)
# View the dat... | /plot3.R | no_license | lakmepal/ExData_Plotting1 | R | false | false | 1,634 | r | # Set the working directory
# I have commented it as it is already set
# setwd("D:/Documents/Coursera/Exploratory Data Analysis/Week 1")
# Read the source file into a data frame
mydata <- read.table("household_power_consumption.txt", header=T, sep=";", stringsAsFactors=FALSE)
mydata <- na.omit(mydata)
# View the dat... |
testlist <- list(vec = NULL, kmax = 0L, data_vec = 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 ))
result <- do.call(binsegRcpp:::rcpp_binseg_normal,testlist)
str(result) | /binsegRcpp/inst/testfiles/rcpp_binseg_normal/libFuzzer_rcpp_binseg_normal/rcpp_binseg_normal_valgrind_files/1610580680-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 275 | r | testlist <- list(vec = NULL, kmax = 0L, data_vec = 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 ))
result <- do.call(binsegRcpp:::rcpp_binseg_normal,testlist)
str(result) |
rawData.plinkfiles.setup <- function(formula, null, pathway, family, geno.files, lambda, subset = NULL, options = NULL){
start.time <- date()
validate.family(family)
validate.lambda.rawData(lambda)
# merge and reset options
options <- options.setup(options, family, lambda, NULL, NULL, NULL)
# e... | /R/rawData.plinkfiles.setup.R | no_license | cran/ARTP2 | R | false | false | 6,639 | r |
rawData.plinkfiles.setup <- function(formula, null, pathway, family, geno.files, lambda, subset = NULL, options = NULL){
start.time <- date()
validate.family(family)
validate.lambda.rawData(lambda)
# merge and reset options
options <- options.setup(options, family, lambda, NULL, NULL, NULL)
# e... |
library(tidyverse)
library(janitor)
library(readxl)
library(readstata13)
# demographics <- read_csv("N:/Assessment_Data Returns/TCAP_End-of-Course/2018-19/Demographic Files/fall_eoc_demographics_snapshot_20181208.csv")
demographics_2020_spring <- read_csv("N:/TNReady/2019-20/spring/demographics/student_demographics_2... | /2020/cdf_to_student_level.R | no_license | amarsee/acct-am | R | false | false | 31,735 | r | library(tidyverse)
library(janitor)
library(readxl)
library(readstata13)
# demographics <- read_csv("N:/Assessment_Data Returns/TCAP_End-of-Course/2018-19/Demographic Files/fall_eoc_demographics_snapshot_20181208.csv")
demographics_2020_spring <- read_csv("N:/TNReady/2019-20/spring/demographics/student_demographics_2... |
library(dashBootstrapComponents)
library(dashHtmlComponents)
modal <- htmlDiv(
list(
dbcButton("Open modal", id = "open-dismiss"),
dbcModal(
list(
dbcModalHeader(
dbcModalTitle("Dismissing"),
close_button = FALSE
),
dbcModalBody(
paste(
... | /docs/components_page/components/modal/dismiss.R | permissive | tcbegley/dash-bootstrap-components | R | false | false | 980 | r | library(dashBootstrapComponents)
library(dashHtmlComponents)
modal <- htmlDiv(
list(
dbcButton("Open modal", id = "open-dismiss"),
dbcModal(
list(
dbcModalHeader(
dbcModalTitle("Dismissing"),
close_button = FALSE
),
dbcModalBody(
paste(
... |
#PAGE=314
a=64.5
b=74.5
c=10
n=100
ux=64
uy=-55
x=a+c*ux/n
y=b+c*uy/n
sx=13.966
sy=14.925
r=0.7686
a1=r*sy/sx
a1=round(a1,3)
a2=r*sx/sy
a2=round(a2,3)
cat('Y -',x,'=',a1,'( x -',x,')')
cat('Y -',y,'=',a2,'( x -',y,')')
| /Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH14/EX14.14.24/Ex14_14_24.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 241 | r | #PAGE=314
a=64.5
b=74.5
c=10
n=100
ux=64
uy=-55
x=a+c*ux/n
y=b+c*uy/n
sx=13.966
sy=14.925
r=0.7686
a1=r*sy/sx
a1=round(a1,3)
a2=r*sx/sy
a2=round(a2,3)
cat('Y -',x,'=',a1,'( x -',x,')')
cat('Y -',y,'=',a2,'( x -',y,')')
|
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d... | /R/ApiResponseSecurityZacksAnalystRatings.r | no_license | intrinio/r-sdk | R | false | false | 5,622 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://d... |
# --------------------------- #
# Parallel computing in R
# Example 0: Basics
# James Henderson
# --------------------------- #
## load libraries ##
library(parallel)
## load data ##
foo = load('./YaleTNBC.Rdata')
AA = grep('AA',colnames(YaleTNBC))
EA = grep('EA',colnames(YaleTNBC))
#### Example 0: co... | /Stats506/Examples/R/parallel/Example0.R | no_license | Irishikitty/STATS506 | R | false | false | 1,891 | r | # --------------------------- #
# Parallel computing in R
# Example 0: Basics
# James Henderson
# --------------------------- #
## load libraries ##
library(parallel)
## load data ##
foo = load('./YaleTNBC.Rdata')
AA = grep('AA',colnames(YaleTNBC))
EA = grep('EA',colnames(YaleTNBC))
#### Example 0: co... |
library(AppliedPredictiveModeling)
library(caret)
library(ggplot2)
library(rpart)
library(MASS)
library(Hmisc)
library(psych)
library(klaR)
library(rattle)
tdata <- read.csv("pml-training.csv", na.strings = c("NA", "", "#DIV/0!"))
testdata <- read.csv("pml-testing.csv", na.strings = c("NA", "", "#DIV/0!"))
str(tdata)
... | /Machine learning assignment code.R | no_license | ikotermin/PML-Assignment | R | false | false | 2,044 | r | library(AppliedPredictiveModeling)
library(caret)
library(ggplot2)
library(rpart)
library(MASS)
library(Hmisc)
library(psych)
library(klaR)
library(rattle)
tdata <- read.csv("pml-training.csv", na.strings = c("NA", "", "#DIV/0!"))
testdata <- read.csv("pml-testing.csv", na.strings = c("NA", "", "#DIV/0!"))
str(tdata)
... |
`CROSSL` <-
function(A1, A2)
{
if(!is.numeric(A1$x)) A1 = tocartL(A1)
if(!is.numeric(A2$x)) A2 = tocartL(A2)
x = A1$y*A2$z-A1$z*A2$y
y = A1$z*A2$x-A1$x*A2$z
z = A1$x*A2$y-A2$x*A1$y
a = TOSPHERE(x, y, z)
return(list(x=x, y=y, z=z, az=a$az, dip=a$dip))
}
| /R/CROSSL.R | no_license | cran/RFOC | R | false | false | 274 | r | `CROSSL` <-
function(A1, A2)
{
if(!is.numeric(A1$x)) A1 = tocartL(A1)
if(!is.numeric(A2$x)) A2 = tocartL(A2)
x = A1$y*A2$z-A1$z*A2$y
y = A1$z*A2$x-A1$x*A2$z
z = A1$x*A2$y-A2$x*A1$y
a = TOSPHERE(x, y, z)
return(list(x=x, y=y, z=z, az=a$az, dip=a$dip))
}
|
testlist <- list(n = 1195706880L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609962399-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 98 | r | testlist <- list(n = 1195706880L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ngramComponents.R
\name{textformat}
\alias{textformat}
\title{Text Formatter}
\usage{
textformat(text, punct = FALSE)
}
\arguments{
\item{text}{character Vector of strings to clean.}
\item{punct}{logical Should punctuation be kept as tokens?... | /man/textformat.Rd | no_license | kbenoit/doc2concrete | R | false | true | 452 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ngramComponents.R
\name{textformat}
\alias{textformat}
\title{Text Formatter}
\usage{
textformat(text, punct = FALSE)
}
\arguments{
\item{text}{character Vector of strings to clean.}
\item{punct}{logical Should punctuation be kept as tokens?... |
rm(list = ls())
setwd("I:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
setwd("J:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
setwd("P:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
libra... | /LiveSession11/LectureAssignment11.R | no_license | lp5510/Homework | R | false | false | 6,287 | r | rm(list = ls())
setwd("I:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
setwd("J:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
setwd("P:/SMU/MSDS 6306 Doing Data Science/Lecture Assignments/Live Session Unit 11 Assignment")
libra... |
topological_sort <- function(dag) {
Rfast::topological_sort(dag)
}
# topological_sort <- function(dag) {
# ## TOPOLOGICAL_SORT Return the nodes in topological order (parents before children).
# ## order = topological_sort(adj_mat)
# ## Base Code is from BNT
# n = dim(dag)[1];
# indeg = numeri... | /R/topological_sort.R | no_license | cran/MXM | R | false | false | 1,304 | r | topological_sort <- function(dag) {
Rfast::topological_sort(dag)
}
# topological_sort <- function(dag) {
# ## TOPOLOGICAL_SORT Return the nodes in topological order (parents before children).
# ## order = topological_sort(adj_mat)
# ## Base Code is from BNT
# n = dim(dag)[1];
# indeg = numeri... |
# Build Neural Network for Multi-Class classification using neuralnet library.
rm(list=ls(all=TRUE))
# Set the working directory
setwd("~/Desktop/GNQ3/20160218_Batch25_CSE7405c_NeuralNetLab")
# Importing "all_features.txt" files's data into R dataframe using read.table function
data<-read.table("all_features.txt", s... | /04_nnet_Multi-Class.R | no_license | nursnaaz/NeuralNetwork | R | false | false | 4,798 | r | # Build Neural Network for Multi-Class classification using neuralnet library.
rm(list=ls(all=TRUE))
# Set the working directory
setwd("~/Desktop/GNQ3/20160218_Batch25_CSE7405c_NeuralNetLab")
# Importing "all_features.txt" files's data into R dataframe using read.table function
data<-read.table("all_features.txt", s... |
data_nova_scotia = function( output="stan_data", Npop=971395, Npreds=5, interpolate_missing_data=FALSE, ... ) {
# install.packages("googlesheets4")
library(googlesheets4)
gsdata = read_sheet( "https://docs.google.com/spreadsheets/d/1tgf2H9gDmRnGDGeQE-fC9IPhrmNxP8-JC7Nnnob_vuY/edit?usp=sharing" )
gsdata$Iobs ... | /R/data_nova_scotia.R | permissive | ndewar/adapt | R | false | false | 3,875 | r | data_nova_scotia = function( output="stan_data", Npop=971395, Npreds=5, interpolate_missing_data=FALSE, ... ) {
# install.packages("googlesheets4")
library(googlesheets4)
gsdata = read_sheet( "https://docs.google.com/spreadsheets/d/1tgf2H9gDmRnGDGeQE-fC9IPhrmNxP8-JC7Nnnob_vuY/edit?usp=sharing" )
gsdata$Iobs ... |
context("Testing oligonucleotide generation")
test_that("Generating oligonucleotide of length 1", {
expect_equal(generate_oligo(1), c("A", "C", "G", "T"))
})
test_that("Generating oligonucleotide of length 2", {
expect_equal(generate_oligo(2), c("AA", "AC", "AG", "AT", "CA", "CC", "CG",
"CT", "GA", "G... | /tests/testthat/test-generate_oligo.r | no_license | KamilSJaron/sighunt | R | false | false | 368 | r | context("Testing oligonucleotide generation")
test_that("Generating oligonucleotide of length 1", {
expect_equal(generate_oligo(1), c("A", "C", "G", "T"))
})
test_that("Generating oligonucleotide of length 2", {
expect_equal(generate_oligo(2), c("AA", "AC", "AG", "AT", "CA", "CC", "CG",
"CT", "GA", "G... |
plot00 = function(DR7_viability,
data ,
unique = 'MGI id',
xlab = 'Viability',
...) {
pM = DR7_viability$Viability[DR7_viability[, unique] %in% data$inputdata[data$duplicates,][, unique]]
plot(
pM,
xlab = xlab,
ylab = 'Frequency of ... | /Other projects/Viability/GeneViability/R/plot00.R | permissive | mpi2/impc_stats_pipeline | R | false | false | 457 | r | plot00 = function(DR7_viability,
data ,
unique = 'MGI id',
xlab = 'Viability',
...) {
pM = DR7_viability$Viability[DR7_viability[, unique] %in% data$inputdata[data$duplicates,][, unique]]
plot(
pM,
xlab = xlab,
ylab = 'Frequency of ... |
#Dplyr Exmaple
#dplyr example
#Basic manipulation in R
#http://www3.nd.edu/~steve/computing_with_data/24_dplyr/dplyr.html
#https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html
library(dplyr)
library(hflights)
hflights_df <- tbl_df(hflights)
hflights_df
#filter
f_df <- filter(hflights_df, Month ==1... | /Dplyr_Example.R | no_license | shekhar270779/R_Examples | R | false | false | 3,237 | r | #Dplyr Exmaple
#dplyr example
#Basic manipulation in R
#http://www3.nd.edu/~steve/computing_with_data/24_dplyr/dplyr.html
#https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html
library(dplyr)
library(hflights)
hflights_df <- tbl_df(hflights)
hflights_df
#filter
f_df <- filter(hflights_df, Month ==1... |
# multiple cluster simulations, one (censored) covariate
suppressPackageStartupMessages({
library(diffcyt)
library(magrittr)
library(purrr)
library(SummarizedExperiment)
})
devtools::load_all("simulationStudyCensoredDiffcyt")
RhpcBLASctl::blas_set_num_threads(1)
dir_save <-"./"
transform_fn <- "identity"
clus... | /Simulations_based_on_real_data/run_simulations_testDA_multicluster.R | no_license | retogerber/censcyt_paper_scripts | R | false | false | 3,993 | r | # multiple cluster simulations, one (censored) covariate
suppressPackageStartupMessages({
library(diffcyt)
library(magrittr)
library(purrr)
library(SummarizedExperiment)
})
devtools::load_all("simulationStudyCensoredDiffcyt")
RhpcBLASctl::blas_set_num_threads(1)
dir_save <-"./"
transform_fn <- "identity"
clus... |
\name{con.rss}
\alias{con.rss}
\title{Selecting ranked set sample with a concomitant variable}
\usage{
con.rss(X,Y,m,r=1,sets=FALSE,concomitant=FALSE)
}
\description{
The \code{\link{con.rss}} function samples from a target population by using ranked set sampling method. Ranking procedure of X is done by using... | /man/conrss.rd | no_license | cran/RSSampling | R | false | false | 1,891 | rd | \name{con.rss}
\alias{con.rss}
\title{Selecting ranked set sample with a concomitant variable}
\usage{
con.rss(X,Y,m,r=1,sets=FALSE,concomitant=FALSE)
}
\description{
The \code{\link{con.rss}} function samples from a target population by using ranked set sampling method. Ranking procedure of X is done by using... |
#========================================================================
#R - ASSIGNMENT 1
#=========================================================================
#Submitted by - Kaviya U C - D20018
#===========================================================================
# Feature Imporatnce using T te... | /R Assignment 1.R | no_license | Kaviya-U-C/R-Programming | R | false | false | 2,633 | r | #========================================================================
#R - ASSIGNMENT 1
#=========================================================================
#Submitted by - Kaviya U C - D20018
#===========================================================================
# Feature Imporatnce using T te... |
##########################
# backward stepwise selection
##########################
### in the regusbsets function we must set the method parameter to "backward"
fit <- regsubsets(burglPerPop~., crim2, nvmax = 16, method="backward")
summ <- summary(fit)
summ
### get the adjusted R squared
summ... | /code/ml-r-files/lect006-stepwise-backward.R | no_license | zhou100/ML_prediction | R | false | false | 414 | r |
##########################
# backward stepwise selection
##########################
### in the regusbsets function we must set the method parameter to "backward"
fit <- regsubsets(burglPerPop~., crim2, nvmax = 16, method="backward")
summ <- summary(fit)
summ
### get the adjusted R squared
summ... |
## Caching the inverse of a vector
## makeCacheMatrix creates a vector which is really a list which sets and gets the value of a vector including seting and getting
##the value of the invers
makeCacheMatrix <- function(x = matrix()) {
s<-NULL
set<-function(y){
x<<-y
s<<-NULL
}
get<-function()x
setsolve<-func... | /cachematrix.R | no_license | mrozga/ProgrammingAssignment2 | R | false | false | 766 | r | ## Caching the inverse of a vector
## makeCacheMatrix creates a vector which is really a list which sets and gets the value of a vector including seting and getting
##the value of the invers
makeCacheMatrix <- function(x = matrix()) {
s<-NULL
set<-function(y){
x<<-y
s<<-NULL
}
get<-function()x
setsolve<-func... |
## Exploratory Data Analysis Course Project 1
## read data
dataSets <- read.table("household_power_consumption.txt",
sep=";", header=T, na.strings="?")
## data conversion
dataSets$Date <- as.Date(dataSets$Date, format="%d/%m/%Y")
dateTime <- paste(dataSets$Date, dataSets$Time)
dataSets$Dat... | /plot1.R | no_license | uueixiang/ExData_Plotting1 | R | false | false | 766 | r |
## Exploratory Data Analysis Course Project 1
## read data
dataSets <- read.table("household_power_consumption.txt",
sep=";", header=T, na.strings="?")
## data conversion
dataSets$Date <- as.Date(dataSets$Date, format="%d/%m/%Y")
dateTime <- paste(dataSets$Date, dataSets$Time)
dataSets$Dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text-cleaning.R
\name{hacky_cleaning}
\alias{hacky_cleaning}
\title{Clean up funky text}
\usage{
hacky_cleaning(text)
}
\arguments{
\item{text}{String to update}
}
\value{
The text with replacement, if needed.
}
\description{
Removes html for... | /man/hacky_cleaning.Rd | no_license | BrunoGrandePhD/porTools | R | false | true | 512 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text-cleaning.R
\name{hacky_cleaning}
\alias{hacky_cleaning}
\title{Clean up funky text}
\usage{
hacky_cleaning(text)
}
\arguments{
\item{text}{String to update}
}
\value{
The text with replacement, if needed.
}
\description{
Removes html for... |
\name{do}
\alias{do}
\alias{do.tbl_sql}
\title{Apply a function to a tbl}
\usage{
do(.data, .f, ...)
\method{do}{tbl_sql} (.data, .f, ...,
.chunk_size = 10000L)
}
\arguments{
\item{.data}{a tbl}
\item{.f}{a function to apply to each piece. The first
unnamed argument supplied to \code{.f} will be a data
... | /man/do.Rd | no_license | Funreason/dplyr | R | false | false | 1,396 | rd | \name{do}
\alias{do}
\alias{do.tbl_sql}
\title{Apply a function to a tbl}
\usage{
do(.data, .f, ...)
\method{do}{tbl_sql} (.data, .f, ...,
.chunk_size = 10000L)
}
\arguments{
\item{.data}{a tbl}
\item{.f}{a function to apply to each piece. The first
unnamed argument supplied to \code{.f} will be a data
... |
% Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/gspinbutton.R
\name{gspinbutton}
\alias{gspinbutton}
\title{Basic spinbutton}
\usage{
gspinbutton(from = 0, to = 100, by = 1, value = from, handler = NULL,
action = NULL, container = NULL, ..., width = NULL, height = NULL,
ex... | /man/gspinbutton.Rd | no_license | tokareff/gWidgetsWWW2 | R | false | false | 2,192 | rd | % Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/gspinbutton.R
\name{gspinbutton}
\alias{gspinbutton}
\title{Basic spinbutton}
\usage{
gspinbutton(from = 0, to = 100, by = 1, value = from, handler = NULL,
action = NULL, container = NULL, ..., width = NULL, height = NULL,
ex... |
#' R graphs
#' List all possible R graphs based on given SIX nodes
#' @param x The vector representing nodes
#' @return A matrix listing edges of R graphs
#' @examples
#' R(c(1:6))
R = function(x){
if(length(x) != 6){
stop('The number of nodes should be SIX!')
}
pair4 = comb... | /R/R.R | no_license | placeboo/subgraph | R | false | false | 1,185 | r | #' R graphs
#' List all possible R graphs based on given SIX nodes
#' @param x The vector representing nodes
#' @return A matrix listing edges of R graphs
#' @examples
#' R(c(1:6))
R = function(x){
if(length(x) != 6){
stop('The number of nodes should be SIX!')
}
pair4 = comb... |
# datascience at NIT ------------------------------------------------------
# SALES ANALYSIS ----
# 1.0 Load libraries ----
library(tidyverse)
library(lubridate)
# 2.0 Importing Files ----
# A good convention is to use the csv file name and suffix it with tbl for the data structure tibble
order_items_tbl <- read_csv(... | /DS_business_case_01/00_scripts/sales_analysis.R | no_license | olvera10/lab_journal_website | R | false | false | 6,279 | r | # datascience at NIT ------------------------------------------------------
# SALES ANALYSIS ----
# 1.0 Load libraries ----
library(tidyverse)
library(lubridate)
# 2.0 Importing Files ----
# A good convention is to use the csv file name and suffix it with tbl for the data structure tibble
order_items_tbl <- read_csv(... |
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include eventbridge_service.R
NULL
.eventbridge$activate_event_source_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(Name = structure(logical(0), tags = list(type =... | /cran/paws.application.integration/R/eventbridge_interfaces.R | permissive | johnnytommy/paws | R | false | false | 28,730 | r | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include eventbridge_service.R
NULL
.eventbridge$activate_event_source_input <- function(...) {
args <- c(as.list(environment()), list(...))
shape <- structure(list(Name = structure(logical(0), tags = list(type =... |
\name{Heatmap}
\alias{Heatmap}
\title{
Constructor method for Heatmap class
}
\description{
Constructor method for Heatmap class
}
\usage{
Heatmap(matrix, col, name,
na_col = "grey",
color_space = "LAB",
rect_gp = gpar(col = NA),
cell_fun = function(j, i, x, y, width, height, fill) NULL,
row_title =... | /man/Heatmap.rd | no_license | palc/ComplexHeatmap | R | false | false | 13,360 | rd | \name{Heatmap}
\alias{Heatmap}
\title{
Constructor method for Heatmap class
}
\description{
Constructor method for Heatmap class
}
\usage{
Heatmap(matrix, col, name,
na_col = "grey",
color_space = "LAB",
rect_gp = gpar(col = NA),
cell_fun = function(j, i, x, y, width, height, fill) NULL,
row_title =... |
#get Arguments from the Shell Script (input file and output file name)
args<-commandArgs(TRUE)
input.file <- args[1]
output.file <- args[2]
#library graph used to create network graph
#load the library
#library(igraph)
#since the data is not in a proper JSon format we use read table function with comma seperator
venm... | /src/get_median.R | no_license | PriyankDsilva/InsightDataScienceCodingChallange | R | false | false | 4,151 | r | #get Arguments from the Shell Script (input file and output file name)
args<-commandArgs(TRUE)
input.file <- args[1]
output.file <- args[2]
#library graph used to create network graph
#load the library
#library(igraph)
#since the data is not in a proper JSon format we use read table function with comma seperator
venm... |
###############################################################################
# DESCRIPTION
# This R file, reads in output from DESeq2 run and plots UpSet diagram showing
# significant and differentially expressed genes in multiple conditions.
#
# AUTHOR
# Akshay Paropkari
#
# VERSION
# 0.0.9
########################... | /R/upsetR_venn_alternative_example.R | permissive | akshayparopkari/kadambari | R | false | false | 3,898 | r | ###############################################################################
# DESCRIPTION
# This R file, reads in output from DESeq2 run and plots UpSet diagram showing
# significant and differentially expressed genes in multiple conditions.
#
# AUTHOR
# Akshay Paropkari
#
# VERSION
# 0.0.9
########################... |
pdf(file='S1A_c0_t2.pdf',width=4.5,height=4.5);
gstable=read.table('S1A_c0_t2.gene_summary.txt',header=T)
#
#
# parameters
# Do not modify the variables beginning with "__"
# gstablename='__GENE_SUMMARY_FILE__'
startindex=3
# outputfile='__OUTPUT_FILE__'
targetgenelist=c("ROSA26","CTRL","PROM1","LRIG1","AAVS1","CCR5"... | /Miniscreen05/MaGeCK_stats/S1A_c0_t2.R | no_license | davidchen0420/Miniscreen | R | false | false | 36,743 | r | pdf(file='S1A_c0_t2.pdf',width=4.5,height=4.5);
gstable=read.table('S1A_c0_t2.gene_summary.txt',header=T)
#
#
# parameters
# Do not modify the variables beginning with "__"
# gstablename='__GENE_SUMMARY_FILE__'
startindex=3
# outputfile='__OUTPUT_FILE__'
targetgenelist=c("ROSA26","CTRL","PROM1","LRIG1","AAVS1","CCR5"... |
\name{SSplotYield}
\alias{SSplotYield}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot yield and surplus production.
}
\description{
Plot yield and surplus production from Stock Synthesis output. Surplus
production is based on Walters et al. (2008).
}
\usage{
SSplotYield(rep... | /man/SSplotYield.Rd | no_license | tectronics/r4ss | R | false | false | 2,713 | rd | \name{SSplotYield}
\alias{SSplotYield}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot yield and surplus production.
}
\description{
Plot yield and surplus production from Stock Synthesis output. Surplus
production is based on Walters et al. (2008).
}
\usage{
SSplotYield(rep... |
source("function2.txt")
par(mfrow=c(1,1))
maximaOf5Dice = maxdice(1000000,5)
probability = c()
randomVar = c()
uniques = unique(maximaOf5Dice,incomparables = FALSE)
for(i in sort(uniques)){
probability = c(probability,length(which(maximaOf5Dice == i))/length(maximaOf5Dice))
randomVar = c(randomVar,i)
}
expectatio... | /Assignment 2/Excersises/24b.R | no_license | rhmvu/VU-Statistics | R | false | false | 798 | r | source("function2.txt")
par(mfrow=c(1,1))
maximaOf5Dice = maxdice(1000000,5)
probability = c()
randomVar = c()
uniques = unique(maximaOf5Dice,incomparables = FALSE)
for(i in sort(uniques)){
probability = c(probability,length(which(maximaOf5Dice == i))/length(maximaOf5Dice))
randomVar = c(randomVar,i)
}
expectatio... |
utils::globalVariables('biocLite')
#' Install package if necessary
#' @param pkg package
#' @export
install_package_if_necessary <- function(pkg){
if(!requireNamespace(pkg, quietly = TRUE)){
message("The package ", pkg, " is not available; trying to install it.")
oldOps <- options(warn = 2)
on.exi... | /autonomics.annotate/R/install_package_if_necessary.R | no_license | bhagwataditya/autonomics0 | R | false | false | 420 | r | utils::globalVariables('biocLite')
#' Install package if necessary
#' @param pkg package
#' @export
install_package_if_necessary <- function(pkg){
if(!requireNamespace(pkg, quietly = TRUE)){
message("The package ", pkg, " is not available; trying to install it.")
oldOps <- options(warn = 2)
on.exi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_tlevel_out.R
\name{read.tlevel.out}
\alias{read.tlevel.out}
\title{READ outputs of TLEVEL.OUT}
\usage{
read.tlevel.out(
project.path,
out.file = "T_Level.out",
output = NULL,
warn = FALSE,
...
)
}
\arguments{
\item{...}{}
}
\va... | /man/read.tlevel.out.Rd | no_license | ovevans/hydrusR | R | false | true | 371 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_tlevel_out.R
\name{read.tlevel.out}
\alias{read.tlevel.out}
\title{READ outputs of TLEVEL.OUT}
\usage{
read.tlevel.out(
project.path,
out.file = "T_Level.out",
output = NULL,
warn = FALSE,
...
)
}
\arguments{
\item{...}{}
}
\va... |
Rprof("out_ad.out")
parms = list(
max_i = 20,
lambda = 0.001,
lambda_ex = 0.1,
alpha = 0.01,
mu = 0.01,
r = 0.5,
d = 0.1,
K = 100,
init_pop = 100,
t_max = 300
)
t = 0
pop = rep(0, parms$max_i + 1)
is = 0:(parms$max_i)
pop[1] = parms$init_pop
fname = "out_ad.txt"
if(file.exists(fname)) file.remove(fname)
ou... | /inst/run_prototype_ad_algo.R | no_license | noamross/spore | R | false | false | 1,612 | r | Rprof("out_ad.out")
parms = list(
max_i = 20,
lambda = 0.001,
lambda_ex = 0.1,
alpha = 0.01,
mu = 0.01,
r = 0.5,
d = 0.1,
K = 100,
init_pop = 100,
t_max = 300
)
t = 0
pop = rep(0, parms$max_i + 1)
is = 0:(parms$max_i)
pop[1] = parms$init_pop
fname = "out_ad.txt"
if(file.exists(fname)) file.remove(fname)
ou... |
#' gym
#'@description simply typing the city name you want to check and your yelp api key, the function will give you all information (address,rate, etc) of 50 gym in that city.
#' @author Jiatong Li
#'
#' @title Get information of gyms from yelp using your own yelp api key
#' @return
#' @export
#' @usage gym(api1="you... | /R/gym.R | permissive | JT944/Uclapack3 | R | false | false | 1,892 | r | #' gym
#'@description simply typing the city name you want to check and your yelp api key, the function will give you all information (address,rate, etc) of 50 gym in that city.
#' @author Jiatong Li
#'
#' @title Get information of gyms from yelp using your own yelp api key
#' @return
#' @export
#' @usage gym(api1="you... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biocro-package.R
\docType{data}
\name{doy124}
\alias{doy124}
\title{Weather data}
\format{data frame of dimensions 24 by 8.}
\source{
simulated
}
\description{
Example for a given day of the year to illustrate the \code{\link{CanA}}
function.... | /man/doy124.Rd | permissive | kimberlyh66/biocro | R | false | true | 624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biocro-package.R
\docType{data}
\name{doy124}
\alias{doy124}
\title{Weather data}
\format{data frame of dimensions 24 by 8.}
\source{
simulated
}
\description{
Example for a given day of the year to illustrate the \code{\link{CanA}}
function.... |
getData <- function(path)
{
files <- "flag.data"
files <- paste(path, files, sep="/")
dat <- read.table(files[1],
sep=",",
comment.char="",
na.strings="",
stringsAsFactors=FALSE, strip.white=TRUE)
dat
}
| /datasets/UCI_ML_DataDescription/scripts/flags.R | no_license | MaciejPiernik/clustering-generated-features | R | false | false | 252 | r | getData <- function(path)
{
files <- "flag.data"
files <- paste(path, files, sep="/")
dat <- read.table(files[1],
sep=",",
comment.char="",
na.strings="",
stringsAsFactors=FALSE, strip.white=TRUE)
dat
}
|
library("somebm")
FBM1 = fbm(hurst = 0.1, n = 10000)
plot(FBM1)
FBM5 = fbm(hurst = 0.5, n = 10000)
plot(FBM5)
FBM10 = fbm(hurst = 0.9, n = 10000)
plot(FBM10)
par(mfrow=c(1,3))
plot(FBM1, main = "H = 0.1 - Negative Correlation", ylab = "Value")
plot(FBM5, main = "H = 0.5 - Brownian Motion", ylab = "Value")
plot(FBM10... | /MT CODE/FBM plots.R | no_license | alebellotta/MTWbackup | R | false | false | 379 | r | library("somebm")
FBM1 = fbm(hurst = 0.1, n = 10000)
plot(FBM1)
FBM5 = fbm(hurst = 0.5, n = 10000)
plot(FBM5)
FBM10 = fbm(hurst = 0.9, n = 10000)
plot(FBM10)
par(mfrow=c(1,3))
plot(FBM1, main = "H = 0.1 - Negative Correlation", ylab = "Value")
plot(FBM5, main = "H = 0.5 - Brownian Motion", ylab = "Value")
plot(FBM10... |
#cut(Sys.Date(), "month")
#ymd(Sys.Date()) - years(1)
#
shinyServer(function(input, output,session){
library(lubridate)
library(shiny)
library(ggplot2)
library(shinyBS)
#2014 Kilifi
#to create a subset of the admsions data for graphs
consolidated <- reactive( {
last_D <- format(ymd(Sys.Dat... | /server.R | no_license | mwaithaka/tickets | R | false | false | 9,877 | r | #cut(Sys.Date(), "month")
#ymd(Sys.Date()) - years(1)
#
shinyServer(function(input, output,session){
library(lubridate)
library(shiny)
library(ggplot2)
library(shinyBS)
#2014 Kilifi
#to create a subset of the admsions data for graphs
consolidated <- reactive( {
last_D <- format(ymd(Sys.Dat... |
\name{mcmcplot1}
\alias{mcmcplot1}
\title{ MCMC Diagnostics Plots for one Model Parameter}
\description{
Creates a graph window containing three different plots---a trace plot, a density plot, and an autocorrelation plot---for one parameter in an MCMC run. This function is used by \code{mcmcplot} to construct an htm... | /mcmcplots/man/mcmcplot1.Rd | no_license | sumtxt/mcmcplots | R | false | false | 1,969 | rd | \name{mcmcplot1}
\alias{mcmcplot1}
\title{ MCMC Diagnostics Plots for one Model Parameter}
\description{
Creates a graph window containing three different plots---a trace plot, a density plot, and an autocorrelation plot---for one parameter in an MCMC run. This function is used by \code{mcmcplot} to construct an htm... |
#' @method gplot matrix
#' @export
#' @export gplot.matrix
"gplot.matrix" <-
function(x, y, se.y = NULL, xlab, ylab, residuals = NULL, rugplot = FALSE, scale =
0, se = FALSE, fit, ...)
{
if(ncol(x) != 2) {
warning(paste("A perspective plot was requested for \"", ylab,
"\" but the \"... | /R/gplot.matrix.R | no_license | cran/gam | R | false | false | 1,375 | r | #' @method gplot matrix
#' @export
#' @export gplot.matrix
"gplot.matrix" <-
function(x, y, se.y = NULL, xlab, ylab, residuals = NULL, rugplot = FALSE, scale =
0, se = FALSE, fit, ...)
{
if(ncol(x) != 2) {
warning(paste("A perspective plot was requested for \"", ylab,
"\" but the \"... |
CoefVar <- function(data, type = 1) {
# Encontra o Coeficiente de Variacao dos dados,
# funcao desenvolvida por Paulo Cesar Ossani em 05/2016
# data - Dados a serem analizados
# type - 1 Coefiente de variacao global (default)
# 2 Coefiente de variacao por coluna
# Retorna:
# CVar - ... | /R/CoefVar_English.R | no_license | cran/MVar | R | false | false | 1,218 | r | CoefVar <- function(data, type = 1) {
# Encontra o Coeficiente de Variacao dos dados,
# funcao desenvolvida por Paulo Cesar Ossani em 05/2016
# data - Dados a serem analizados
# type - 1 Coefiente de variacao global (default)
# 2 Coefiente de variacao por coluna
# Retorna:
# CVar - ... |
# We want to get the ROC information, then compute the AUC (adjusting for the
# maximum FPR amongst the paths). Then, take an average over 100 runs so that
# we get an accurate idea of how the estimator performs.
nruns<-100
auc=matrix(0,nrow=nruns,ncol=1)
for (t in 1:nruns){
# Generate MVN data and true struct... | /R scripts/rocCLIME.R | no_license | oksmith/Part-III-essay | R | false | false | 801 | r | # We want to get the ROC information, then compute the AUC (adjusting for the
# maximum FPR amongst the paths). Then, take an average over 100 runs so that
# we get an accurate idea of how the estimator performs.
nruns<-100
auc=matrix(0,nrow=nruns,ncol=1)
for (t in 1:nruns){
# Generate MVN data and true struct... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge-fields.R
\name{merge_field_create}
\alias{merge_field_create}
\title{Create a merge field for a list}
\usage{
merge_field_create(
api = NULL,
list_id,
name,
type = c("text", "number", "address", "phone", "date", "url", "image", ... | /man/merge_field_create.Rd | no_license | theoroe3/mailchimpr | R | false | true | 963 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge-fields.R
\name{merge_field_create}
\alias{merge_field_create}
\title{Create a merge field for a list}
\usage{
merge_field_create(
api = NULL,
list_id,
name,
type = c("text", "number", "address", "phone", "date", "url", "image", ... |
library(shiny)
library(shinycssloaders)
library(shinyhelper)
#create_help_files(files = c("numericInput", "plotOutput"),
# help_dir = "helpfiles")
numericInput_h <- function(id, label, value,...){
helper(numericInput(id, label, value, ...),
icon = "question-circle",
colour = "blue... | /programative-component-generation/Przybyłek_Paulina/polecenie_2.R | no_license | p-przybylek/SandalenCamp2021 | R | false | false | 1,118 | r | library(shiny)
library(shinycssloaders)
library(shinyhelper)
#create_help_files(files = c("numericInput", "plotOutput"),
# help_dir = "helpfiles")
numericInput_h <- function(id, label, value,...){
helper(numericInput(id, label, value, ...),
icon = "question-circle",
colour = "blue... |
#10-5-20
#read in ortholog cds matrices
xyl1<- read.delim("~/xylose_optimization_project/data/orthologs/cds/xyl1_cds_MSA.tsv",
stringsAsFactors=FALSE)
xyl2<- read.delim("~/xylose_optimization_project/data/orthologs/cds/xyl2_cds_MSA.tsv",
stringsAsFactors=FALSE)
xyl3<- read.delim("... | /scripts/Processing_xylose_MSA_tsvs.R | no_license | KatieFish/xylose_optimization_project | R | false | false | 28,203 | r |
#10-5-20
#read in ortholog cds matrices
xyl1<- read.delim("~/xylose_optimization_project/data/orthologs/cds/xyl1_cds_MSA.tsv",
stringsAsFactors=FALSE)
xyl2<- read.delim("~/xylose_optimization_project/data/orthologs/cds/xyl2_cds_MSA.tsv",
stringsAsFactors=FALSE)
xyl3<- read.delim("... |
## Two functions one is to create a special vector and other
## is to compute the inverse of matrix. Compute if applicable,
##else return from the cache
## makeCacheMatrix is a function which creates a square matrix
makeCacheMatrix <- function(x = matrix()) {
mat <- NULL # define the variable mat to NULL... | /cachematrix.R | no_license | aravindan25/Assignment2 | R | false | false | 1,629 | r | ## Two functions one is to create a special vector and other
## is to compute the inverse of matrix. Compute if applicable,
##else return from the cache
## makeCacheMatrix is a function which creates a square matrix
makeCacheMatrix <- function(x = matrix()) {
mat <- NULL # define the variable mat to NULL... |
#' manhattanLTFHSNP plot
#'
#' This function plots a manhatten plot and highlight a specific SNP for the LTFH-method
#' @param SNPno The specific SNP we are looking at
#' @param total_indiv Number of indicviduls in the dataset
#' @param SNP Is the number of SNPs in the data
#' @param h Is the heritability usually 0.5
#... | /GWAS/R/manhattenLTFHSNP.R | permissive | madsemilmj/DataProjectGwas | R | false | false | 2,090 | r | #' manhattanLTFHSNP plot
#'
#' This function plots a manhatten plot and highlight a specific SNP for the LTFH-method
#' @param SNPno The specific SNP we are looking at
#' @param total_indiv Number of indicviduls in the dataset
#' @param SNP Is the number of SNPs in the data
#' @param h Is the heritability usually 0.5
#... |
#The purpose of this file was to conduct a PCA on temperature related variables for ALL of my available populations
#This PCA aided my selection of populations which were used in my temperature growth experiments by showing how populations were distributed across the range of temperature-related bioclimatic variables,... | /Scripts/1_PCA/1A_PCAJustTemp.R | no_license | akquerns/Guttatus_EvolTPCClines | R | false | false | 5,401 | r | #The purpose of this file was to conduct a PCA on temperature related variables for ALL of my available populations
#This PCA aided my selection of populations which were used in my temperature growth experiments by showing how populations were distributed across the range of temperature-related bioclimatic variables,... |
setwd("~/OneDrive/Transfer/Coursera/Tasks/Exploratoy Data Analysis/Week 1/ExData_Plotting1")
library(RSQLite)
library(sqldf)
library(lubridate)
#Use SQL commands to read in just the lines with the specified dates
df<- read.csv.sql("household_power_consumption.txt", sql = 'select * from file where Date == "1/2/2007" O... | /plot4.R | no_license | setX76/ExData_Plotting1 | R | false | false | 3,614 | r | setwd("~/OneDrive/Transfer/Coursera/Tasks/Exploratoy Data Analysis/Week 1/ExData_Plotting1")
library(RSQLite)
library(sqldf)
library(lubridate)
#Use SQL commands to read in just the lines with the specified dates
df<- read.csv.sql("household_power_consumption.txt", sql = 'select * from file where Date == "1/2/2007" O... |
## Course Project Data Products Coursera
## Author: "Dale Stewart"
## date: "Nov 7, 2017"
## Build User interface (ui.R), which will control the layout and appearance
## Load Shiny library
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Number of Major Championships per State in 4 Major U.S. Sp... | /ui.R | no_license | bigstewosu/Champs | R | false | false | 1,464 | r | ## Course Project Data Products Coursera
## Author: "Dale Stewart"
## date: "Nov 7, 2017"
## Build User interface (ui.R), which will control the layout and appearance
## Load Shiny library
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Number of Major Championships per State in 4 Major U.S. Sp... |
##Rule3
##This player attempted but did not match the
##reasoning wheel sentence correctly
##at all during the last case played.
##rsnwhl = Reasoning Wheel Performance
aw <- inData
r3set1 <- aw %>%
group_by(sid) %>%
select(sid, aw$CaseOrder, rsnwhl) %>%
filter(aw$CaseOrder==max(aw$CaseOrder))
##rsnwhl: 0 = mis... | /servers/lib/aeng/engines/r/games/AW/aw_job5_rule3.r | no_license | GlasslabGames/Assessment | R | false | false | 685 | r | ##Rule3
##This player attempted but did not match the
##reasoning wheel sentence correctly
##at all during the last case played.
##rsnwhl = Reasoning Wheel Performance
aw <- inData
r3set1 <- aw %>%
group_by(sid) %>%
select(sid, aw$CaseOrder, rsnwhl) %>%
filter(aw$CaseOrder==max(aw$CaseOrder))
##rsnwhl: 0 = mis... |
/lectures/11 Spatial Simulations/11.1a ABM Diagnostic Graphs.r | no_license | nmmarquez/MPSpatialDemog | R | false | false | 15,108 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_column_names.R
\name{generate_column_names}
\alias{generate_column_names}
\title{Generate the column names from a prefix for our time periods of interest.}
\usage{
generate_column_names(prefix, from = 1976, to = 2018)
}
\arguments{
\... | /man/generate_column_names.Rd | permissive | nurseshealthstudy/Nurses | R | false | true | 744 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generate_column_names.R
\name{generate_column_names}
\alias{generate_column_names}
\title{Generate the column names from a prefix for our time periods of interest.}
\usage{
generate_column_names(prefix, from = 1976, to = 2018)
}
\arguments{
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DAMisc_functions.R
\name{crTest}
\alias{crTest}
\title{Test of linearity for Component + Residual Plots}
\usage{
crTest(
model,
adjust.method = "none",
cat = 5,
var = NULL,
span.as = TRUE,
span = 0.75,
...
)
}
\arguments{
\item{... | /man/crTest.Rd | permissive | davidaarmstrong/damisc | R | false | true | 1,911 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DAMisc_functions.R
\name{crTest}
\alias{crTest}
\title{Test of linearity for Component + Residual Plots}
\usage{
crTest(
model,
adjust.method = "none",
cat = 5,
var = NULL,
span.as = TRUE,
span = 0.75,
...
)
}
\arguments{
\item{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.