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 |
|---|---|---|---|---|---|---|---|---|---|
source("01-Data/data-BMP-2023.r")
M1<-"
model{
# Perusmalli, jokainen pullosarja mallinnetaan toisistaan riippumattomina
for(i in 1:n_days_y[1]){ # number of days per experiment
for(j in 1:nb_y[1]){ # number of bottles per experiment
y1[i,j]~dlnorm(My1[i],Ty1[i]) # y: inoculum
}
My1[i]<-log(muy1... | /02-Model/BIOCCU_koe2_2023.R | permissive | hennip/BMP | R | false | false | 7,971 | r | source("01-Data/data-BMP-2023.r")
M1<-"
model{
# Perusmalli, jokainen pullosarja mallinnetaan toisistaan riippumattomina
for(i in 1:n_days_y[1]){ # number of days per experiment
for(j in 1:nb_y[1]){ # number of bottles per experiment
y1[i,j]~dlnorm(My1[i],Ty1[i]) # y: inoculum
}
My1[i]<-log(muy1... |
### Cyclistic_Exercise_Full_Year_Analysis ###
# This analysis is for case study 1 from the Google Data Analytics Certificate (Cyclistic). It’s originally based on the case study "'Sophisticated, Clear, and Polished’: Divvy and Data Visualization" written by Kevin Hartman (found here: https://artscience.blog/home/di... | /R CAPSTONE PROJECT FOR GOOGLE DA.R | no_license | speedster1234/Bike-Ride-Analysis-for-Google-Data-Analysis-Capstone-Project-Using-R | R | false | false | 14,176 | r | ### Cyclistic_Exercise_Full_Year_Analysis ###
# This analysis is for case study 1 from the Google Data Analytics Certificate (Cyclistic). It’s originally based on the case study "'Sophisticated, Clear, and Polished’: Divvy and Data Visualization" written by Kevin Hartman (found here: https://artscience.blog/home/di... |
MC3 <-
function (init = NULL, alpha = 1, iterations = 5000, replicates = 1, data, mode = c("Hierarchical", "Graphical", "Decomposable")) {
options(warn=-1)
#igraph <- require(igraph)
#if (!igraph)
# stop ("igraph package required")
checkArgsMC3 (init, alpha, iterations, replicates, data)
colnames(... | /R/MC3.R | no_license | cran/bayesloglin | R | false | false | 666 | r | MC3 <-
function (init = NULL, alpha = 1, iterations = 5000, replicates = 1, data, mode = c("Hierarchical", "Graphical", "Decomposable")) {
options(warn=-1)
#igraph <- require(igraph)
#if (!igraph)
# stop ("igraph package required")
checkArgsMC3 (init, alpha, iterations, replicates, data)
colnames(... |
## =============================== License ========================================
## ================================================================================
## This work is distributed under the MIT license, included in the parent directory
## Copyright Owner: University of Oxford
## Date of Authorship: 2016... | /control_tracker.R | permissive | ox-it/cruk-oxford | R | false | false | 1,803 | r | ## =============================== License ========================================
## ================================================================================
## This work is distributed under the MIT license, included in the parent directory
## Copyright Owner: University of Oxford
## Date of Authorship: 2016... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/writeEncryptedData.R
\name{write.aes}
\alias{write.aes}
\title{Write Encrypted Data.}
\usage{
write.aes(df, filename, key)
}
\arguments{
\item{df}{Data to encrypt.}
\item{filename}{Location where to save encrypted data.}
\item{key}{Encrypti... | /man/write.aes.Rd | permissive | DevPsyLab/petersenlab | R | false | true | 1,387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/writeEncryptedData.R
\name{write.aes}
\alias{write.aes}
\title{Write Encrypted Data.}
\usage{
write.aes(df, filename, key)
}
\arguments{
\item{df}{Data to encrypt.}
\item{filename}{Location where to save encrypted data.}
\item{key}{Encrypti... |
# Maxent SDM mean probablility plot ---------------------------------------
maxent_pred_mean <- function(x,fold_name,output){
pred_range <- dismo::predict(x, envstack, progress = "text")
pred_mean <- cellStats(pred_range, stat="mean", na.rm=TRUE)
pred_mean_mat <- matrix(c(-pred_mean, pred_mean, 0), ncol=3, byro... | /src/functions/maxent_pred_mean.R | no_license | DomHenry/sdm-pipeline | R | false | false | 815 | r | # Maxent SDM mean probablility plot ---------------------------------------
maxent_pred_mean <- function(x,fold_name,output){
pred_range <- dismo::predict(x, envstack, progress = "text")
pred_mean <- cellStats(pred_range, stat="mean", na.rm=TRUE)
pred_mean_mat <- matrix(c(-pred_mean, pred_mean, 0), ncol=3, byro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/realized_measures.R
\name{minRV}
\alias{minRV}
\title{minRV}
\usage{
minRV(rData, alignBy = NULL, alignPeriod = NULL, makeReturns = FALSE)
}
\arguments{
\item{rData}{a zoo/xts object containing all returns in period t for one asset.}
\item{a... | /highfrequency/man/minRV.Rd | no_license | akhikolla/InformationHouse | R | false | true | 1,323 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/realized_measures.R
\name{minRV}
\alias{minRV}
\title{minRV}
\usage{
minRV(rData, alignBy = NULL, alignPeriod = NULL, makeReturns = FALSE)
}
\arguments{
\item{rData}{a zoo/xts object containing all returns in period t for one asset.}
\item{a... |
# Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of PatientLevelPrediction
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | /tests/testthat/test-fitting.R | permissive | schuemie/PatientLevelPrediction | R | false | false | 14,541 | r | # Copyright 2019 Observational Health Data Sciences and Informatics
#
# This file is part of PatientLevelPrediction
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... |
#!/usr/bin/env Rscript
# /bioinfo/local/build/R/R-3.3.2_centos/bin/R
library(optparse)
library(TrackSig)
library(ggplot2)
option_list <- list(
make_option(c("-f", "--folder"), type="character", default=NULL,
help="path to folder with data input", metavar="character")
);
opt_parser <- OptionParser(... | /signature_code/run_tracksigfreq_phylo500.R | permissive | judithabk6/Clonesig_analysis | R | false | false | 2,072 | r | #!/usr/bin/env Rscript
# /bioinfo/local/build/R/R-3.3.2_centos/bin/R
library(optparse)
library(TrackSig)
library(ggplot2)
option_list <- list(
make_option(c("-f", "--folder"), type="character", default=NULL,
help="path to folder with data input", metavar="character")
);
opt_parser <- OptionParser(... |
\name{create.DNcenters}
\alias{create.DNcenters}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Create Data Nugget Centers
}
\description{
This function creates the centers of data nuggets from a random sample.
}
\usage{
create.DNcenters(RS,
delete.percent,
DN.n... | /man/create.DNcenters.Rd | no_license | cran/datanugget | R | false | false | 2,486 | rd | \name{create.DNcenters}
\alias{create.DNcenters}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Create Data Nugget Centers
}
\description{
This function creates the centers of data nuggets from a random sample.
}
\usage{
create.DNcenters(RS,
delete.percent,
DN.n... |
#' Remove Invalid Excel Sheet Characters
#'
#'\code{rm_invalid} Removes invalid excel sheet special characters.
#'
#'\code{rm_invalid} is useful if you are writing sheets to excel. Excel will not allow certain special characters in sheet names.
#'Invalid characters include colons, square brackets, asterisks, question m... | /R/rm_invalid.R | no_license | faomaster/FAO | R | false | false | 867 | r | #' Remove Invalid Excel Sheet Characters
#'
#'\code{rm_invalid} Removes invalid excel sheet special characters.
#'
#'\code{rm_invalid} is useful if you are writing sheets to excel. Excel will not allow certain special characters in sheet names.
#'Invalid characters include colons, square brackets, asterisks, question m... |
#' @title Show a table of AIC model comparisons
#' @aliases aictab
#'
#' @description
#' Show a table of AIC model comparisons
#'
#' @return
#' \describe{
#' \item{Modnames}{Model names.}
#' \item{K}{Number of estimated parameters (including the intercept, residual variance, and, if present in the model, control vari... | /R/aictab.R | no_license | nicebread/RSA | R | false | false | 9,953 | r | #' @title Show a table of AIC model comparisons
#' @aliases aictab
#'
#' @description
#' Show a table of AIC model comparisons
#'
#' @return
#' \describe{
#' \item{Modnames}{Model names.}
#' \item{K}{Number of estimated parameters (including the intercept, residual variance, and, if present in the model, control vari... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# This function is a cache for the matrix. It:
#sets the value of the matrix
#gets the value of the matrix
#sets the value of the inverse of the matrix
#gets the value of the inverse of ... | /cachematrix.R | no_license | akenou09/ProgrammingAssignment2 | R | false | false | 1,202 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# This function is a cache for the matrix. It:
#sets the value of the matrix
#gets the value of the matrix
#sets the value of the inverse of the matrix
#gets the value of the inverse of ... |
########################################
# OSA data analysis using:
# - Classification models
#
# We will try to classify extreme OSA cases
# IAH <= 10 vs IAH >=30
#
rm(list=ls())
Input_file <- "OSA_DB_UPM.xlsx"
Output_file <- "OSA_class.xlsx"
Output_file_bin <- "OSA_class_bin.xlsx"
Data_Directory <- "/Users... | /R/PrepareOSAData_for_Classification_male.R | no_license | beaesteban01/OSA-Case-Study | R | false | false | 2,023 | r | ########################################
# OSA data analysis using:
# - Classification models
#
# We will try to classify extreme OSA cases
# IAH <= 10 vs IAH >=30
#
rm(list=ls())
Input_file <- "OSA_DB_UPM.xlsx"
Output_file <- "OSA_class.xlsx"
Output_file_bin <- "OSA_class_bin.xlsx"
Data_Directory <- "/Users... |
#Load packages
library(MASS)
library(fmsb)
library(spdep)
library(rasterVis)
library(ncf)
library(maptools)
library(gstat)
library(ggplot2)
library(ggthemes)
library(effects)
library(cowplot)
#Read data ants
data_ants_paper<-read.table("C:/Users/User/Dropbox/SU/Projects/neighbourhood_effects/data/clean/data_ants_paper... | /code/code_all.R | no_license | aliciavaldes1501/neighbourhood-effects | R | false | false | 16,762 | r | #Load packages
library(MASS)
library(fmsb)
library(spdep)
library(rasterVis)
library(ncf)
library(maptools)
library(gstat)
library(ggplot2)
library(ggthemes)
library(effects)
library(cowplot)
#Read data ants
data_ants_paper<-read.table("C:/Users/User/Dropbox/SU/Projects/neighbourhood_effects/data/clean/data_ants_paper... |
library("dplyr")
# expected pi
Ne <- 1e6
Mu <- 1e-8
exp_pi <- 4*Ne*Mu
# bind files into a dataframe
sk_pi <- lapply(list.files("data/pi_out", full.names = TRUE), function(x) read.table(x, h = T))
sk_pi <- bind_rows(sk_pi)
sk_pi$exp_pi <- exp_pi
sk_dxy <- lapply(list.files("data/dxy_out", full.nam... | /data_generation/scikitallel/03_bind_scikit_files.R | no_license | altingia/pixy_analysis | R | false | false | 746 | r | library("dplyr")
# expected pi
Ne <- 1e6
Mu <- 1e-8
exp_pi <- 4*Ne*Mu
# bind files into a dataframe
sk_pi <- lapply(list.files("data/pi_out", full.names = TRUE), function(x) read.table(x, h = T))
sk_pi <- bind_rows(sk_pi)
sk_pi$exp_pi <- exp_pi
sk_dxy <- lapply(list.files("data/dxy_out", full.nam... |
library(hurricaneexposure)
library(hurricaneexposuredata)
library(dplyr)
library(tidyr)
library(stringr)
library(purrr)
library(viridis)
library(dendextend)
library(ComplexHeatmap)
library(circlize)
data(closest_dist)
calc_jaccard <- function(x){
x_mat <- x %>%
dplyr::select(-fips) %>%
... | /R/jaccard_heatmap.R | no_license | geanders/county_hurricane_exposure | R | false | false | 14,512 | r | library(hurricaneexposure)
library(hurricaneexposuredata)
library(dplyr)
library(tidyr)
library(stringr)
library(purrr)
library(viridis)
library(dendextend)
library(ComplexHeatmap)
library(circlize)
data(closest_dist)
calc_jaccard <- function(x){
x_mat <- x %>%
dplyr::select(-fips) %>%
... |
add2 <- function(x,y) {
x+y
}
above10<-function(x){
use<-x>10
x[use]
}
above<-function(x,n=10){
use<-x>n
x[use]
}
columnmean <- function(y, removeNA =TRUE){
nc < ncol(y)
means<-numeric(nc)
for(i in 1:nc){
means[i]<-mean(y[,i], na.rn = removeNA)
}
means
} | /functions.r | no_license | CalvinMakelky/datasciencecoursera | R | false | false | 286 | r | add2 <- function(x,y) {
x+y
}
above10<-function(x){
use<-x>10
x[use]
}
above<-function(x,n=10){
use<-x>n
x[use]
}
columnmean <- function(y, removeNA =TRUE){
nc < ncol(y)
means<-numeric(nc)
for(i in 1:nc){
means[i]<-mean(y[,i], na.rn = removeNA)
}
means
} |
library(BBRecapture)
### Name: lizard
### Title: Lizard data
### Aliases: lizard
### Keywords: datasets
### ** Examples
data(lizard)
| /data/genthat_extracted_code/BBRecapture/examples/lizard.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 140 | r | library(BBRecapture)
### Name: lizard
### Title: Lizard data
### Aliases: lizard
### Keywords: datasets
### ** Examples
data(lizard)
|
####### function to find next word prediction
## Coursera Final Project
# created by: Serene Ho
#
# To create 3 functions to predict the next word for each input type (twtitter,blogs,news)
############################## twitter first
twitter_predict <- function(x) {
require(tm)
#load in look up dataset
full_twi... | /predict-functions-v1.R | no_license | serenehxw/finalproject | R | false | false | 5,366 | r | ####### function to find next word prediction
## Coursera Final Project
# created by: Serene Ho
#
# To create 3 functions to predict the next word for each input type (twtitter,blogs,news)
############################## twitter first
twitter_predict <- function(x) {
require(tm)
#load in look up dataset
full_twi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/log_partitions_and_derivs.R
\name{h3}
\alias{h3}
\title{Third derivative of log partition}
\usage{
h3(model, x, m)
}
\arguments{
\item{model}{Character. Either "binomial" or "poisson"}
\item{x}{Numeric. Probability for binomial, mean for poi... | /man/h3.Rd | permissive | hrnasif/rvb | R | false | true | 471 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/log_partitions_and_derivs.R
\name{h3}
\alias{h3}
\title{Third derivative of log partition}
\usage{
h3(model, x, m)
}
\arguments{
\item{model}{Character. Either "binomial" or "poisson"}
\item{x}{Numeric. Probability for binomial, mean for poi... |
# PAMsim (ProblemC.R)
# Siyuan Yao
PAMsim <- function(nNodes) {
# initialize degree vec
degVec = c(1, 1)
for (nodeCount in 2:(nNodes - 1)) {
# initialize prob vec
pVec = c()
# build prob vec
for(nodeNum in 1:length(degVec)) {
pVec <- c(pVec, (degVec[nodeNum] / (nodeCount - 1) / 2))
}
# choose ... | /HmwkI/ProblemC.R | no_license | JCBreath/ECS132 | R | false | false | 584 | r | # PAMsim (ProblemC.R)
# Siyuan Yao
PAMsim <- function(nNodes) {
# initialize degree vec
degVec = c(1, 1)
for (nodeCount in 2:(nNodes - 1)) {
# initialize prob vec
pVec = c()
# build prob vec
for(nodeNum in 1:length(degVec)) {
pVec <- c(pVec, (degVec[nodeNum] / (nodeCount - 1) / 2))
}
# choose ... |
#' Extract single 5' and 3' bases flanking the mutated site for de-novo signature analysis. Also estimates APOBEC enrichment scores.
#' @details Extracts immediate 5' and 3' bases flanking the mutated site and classifies them into 96 substitution classes.
#' Requires BSgenome data packages for sequence extraction.
#'
#... | /R/TrinucleotideMatrix.R | permissive | gynecoloji/maftools | R | false | false | 18,537 | r | #' Extract single 5' and 3' bases flanking the mutated site for de-novo signature analysis. Also estimates APOBEC enrichment scores.
#' @details Extracts immediate 5' and 3' bases flanking the mutated site and classifies them into 96 substitution classes.
#' Requires BSgenome data packages for sequence extraction.
#'
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/split-mun-groups.R
\name{split_mun_groups}
\alias{split_mun_groups}
\title{Split Data in Groups}
\usage{
split_mun_groups(tb_censo_full, n_clusters)
}
\arguments{
\item{tb_censo_full}{\code{tibble} contendo a base completa do censo
após trata... | /man/split_mun_groups.Rd | no_license | allanvc/proPNLD | R | false | true | 886 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/split-mun-groups.R
\name{split_mun_groups}
\alias{split_mun_groups}
\title{Split Data in Groups}
\usage{
split_mun_groups(tb_censo_full, n_clusters)
}
\arguments{
\item{tb_censo_full}{\code{tibble} contendo a base completa do censo
após trata... |
\name{KOTWTct}
\alias{KOTWTct}
\docType{data}
\title{KOTWTct}
\description{Dataset from the Institute of plant nutrition (LUH). In the
experiments an insertion has introduced into the genome of different
rice lines. This insertion changes gene expression from the gene of
interest. By using the quantitative RT-PCR... | /man/KOTWTct.Rd | no_license | daniel-gerhard/qpcrmix | R | false | false | 1,273 | rd | \name{KOTWTct}
\alias{KOTWTct}
\docType{data}
\title{KOTWTct}
\description{Dataset from the Institute of plant nutrition (LUH). In the
experiments an insertion has introduced into the genome of different
rice lines. This insertion changes gene expression from the gene of
interest. By using the quantitative RT-PCR... |
#########################################################################
# Variable Selection Algorithms on Prostate Data
#
# Splitting data in half to show that model selection is quite variable!
#
# 1. All subsets regression
# 2. Stepwise
#######################################################################... | /STAT452_Statistical_Learning/452Lecture_Rcode/L05_VarSelect/L5 - Variable Selection Algorithms.R | no_license | yiyangd/SFU | R | false | false | 5,392 | r | #########################################################################
# Variable Selection Algorithms on Prostate Data
#
# Splitting data in half to show that model selection is quite variable!
#
# 1. All subsets regression
# 2. Stepwise
#######################################################################... |
require(xgboost)
require(methods)
library(data.table)
library(tm)
setwd("/home/bikash/repos/kaggleCompetition1/healthcare2016")
#train = read.csv('data/train.tsv',header=TRUE,stringsAsFactors = F)
#test = read.csv('data/test.tsv',stringsAsFactors = F)
test <- fread("data/test.tsv")
train <- fread("data/train.tsv")
... | /healthcare2016/xgboost.R | no_license | sivasonaiv/kaggleCompetition1 | R | false | false | 4,309 | r |
require(xgboost)
require(methods)
library(data.table)
library(tm)
setwd("/home/bikash/repos/kaggleCompetition1/healthcare2016")
#train = read.csv('data/train.tsv',header=TRUE,stringsAsFactors = F)
#test = read.csv('data/test.tsv',stringsAsFactors = F)
test <- fread("data/test.tsv")
train <- fread("data/train.tsv")
... |
# target-setting over time in DRC
library(data.table)
library(ggplot2)
library(knitr)
library(dplyr)
library(kableExtra)
library(scales)
# set parameters of data to be analyzed
country = "cod"
main_indicators = c('impact_outcome_indicators_main', 'coverage_indicators_main')
main_indicators = c('impact_outcome_indica... | /outcome_measurement/all/performance_indicators/analysis/visualizations/cod_ts.R | no_license | ihmeuw/gf | R | false | false | 3,194 | r | # target-setting over time in DRC
library(data.table)
library(ggplot2)
library(knitr)
library(dplyr)
library(kableExtra)
library(scales)
# set parameters of data to be analyzed
country = "cod"
main_indicators = c('impact_outcome_indicators_main', 'coverage_indicators_main')
main_indicators = c('impact_outcome_indica... |
\name{pandoc.title.return}
\alias{pandoc.title}
\alias{pandoc.title.return}
\title{Create title block}
\usage{
pandoc.title.return(author = "", title = "", date = "")
}
\arguments{
\item{author}{character vector or semicolon delimited
list of authors without line break}
\item{title}{character vector of lines of ... | /man/pandoc.title.return.Rd | no_license | latestalexey/pander | R | false | false | 1,318 | rd | \name{pandoc.title.return}
\alias{pandoc.title}
\alias{pandoc.title.return}
\title{Create title block}
\usage{
pandoc.title.return(author = "", title = "", date = "")
}
\arguments{
\item{author}{character vector or semicolon delimited
list of authors without line break}
\item{title}{character vector of lines of ... |
# Fit the occupancy model of MacKenzie et al (2002).
occu <- function(formula, data, knownOcc = numeric(0),
linkPsi = c("logit", "cloglog"), starts, method = "BFGS",
se = TRUE, engine = c("C", "R"), ...) {
if(!is(data, "unmarkedFrameOccu"))
stop("Data is not an un... | /fuzzedpackages/unmarked/R/occu.R | no_license | akhikolla/testpackages | R | false | false | 3,977 | r |
# Fit the occupancy model of MacKenzie et al (2002).
occu <- function(formula, data, knownOcc = numeric(0),
linkPsi = c("logit", "cloglog"), starts, method = "BFGS",
se = TRUE, engine = c("C", "R"), ...) {
if(!is(data, "unmarkedFrameOccu"))
stop("Data is not an un... |
\name{error_message}
\alias{error_message}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Print error mesages
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
error_message(error_message, separator)
}
%- maybe also 'usage' for other objects documen... | /2010_R_C_EstL/Rpackage_EstL/EstLprep/man/error_message.Rd | no_license | celinesf/personal | R | false | false | 1,200 | rd | \name{error_message}
\alias{error_message}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Print error mesages
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
error_message(error_message, separator)
}
%- maybe also 'usage' for other objects documen... |
testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(Inf, NaN, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610052905-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,049 | r | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(Inf, NaN, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221, -3.38084306397821e+221... |
\name{icl}
\alias{icl}
\title{
ICL for an estimated Gaussian Mixture Model
}
\description{
Computes the ICL (Integrated Complete-data Likelihood) for criterion for a Gaussian Mixture Model fitted by \code{\link{Mclust}}.
}
\usage{
icl(object, \dots)
}
\arguments{
\item{object}{
An object of class \code{'Mclus... | /man/icl.Rd | no_license | cran/mclust | R | false | false | 910 | rd | \name{icl}
\alias{icl}
\title{
ICL for an estimated Gaussian Mixture Model
}
\description{
Computes the ICL (Integrated Complete-data Likelihood) for criterion for a Gaussian Mixture Model fitted by \code{\link{Mclust}}.
}
\usage{
icl(object, \dots)
}
\arguments{
\item{object}{
An object of class \code{'Mclus... |
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86484.176793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615766900-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86484.176793021, 1.11271562183704... |
# Script to carry out functional analysis on the top most rewired regulators.
#
# Input: 1. List of most rewired regulators.
# 2. DEG networks in tab delimited text files. One for Paneth and one for goblet datasets.
# The 'source' and 'target' column headers contain the source and target node ids respe... | /Rewiring_pathway_analysis/functional_analysis_rewiring.R | no_license | korcsmarosgroup/organoid_regulatory_networks | R | false | false | 6,239 | r | # Script to carry out functional analysis on the top most rewired regulators.
#
# Input: 1. List of most rewired regulators.
# 2. DEG networks in tab delimited text files. One for Paneth and one for goblet datasets.
# The 'source' and 'target' column headers contain the source and target node ids respe... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053628847e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615834647-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 269 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281053628847e+146, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)))
result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist)
str(result) |
#dfstrains: the structure holding the strains
#strainweights: beginning and ending weights
calcIndex <- function(dfstrains, strainweights) {
#create dataframe
SNPindex <- data.frame(CHR = dfstrains$CHR, POS = dfstrains$POS, indexL = NA, indexH = NA, delta = NA)
# for (i in 1:nrow(SNPindex)){
# sum =0
#
... | /calculating SNP index.R | no_license | gabrielle-altman/simulationBSA | R | false | false | 1,311 | r | #dfstrains: the structure holding the strains
#strainweights: beginning and ending weights
calcIndex <- function(dfstrains, strainweights) {
#create dataframe
SNPindex <- data.frame(CHR = dfstrains$CHR, POS = dfstrains$POS, indexL = NA, indexH = NA, delta = NA)
# for (i in 1:nrow(SNPindex)){
# sum =0
#
... |
library(shiny)
library(DT)
shinyUI(
fluidPage(style = "width:1500px;",
titlePanel(paste("The comparative safety of first-line disease-modifying antirheumatic drugs in rheumatoid arthritis: a multinational network cohort study", if(blind) "***Blinded***" else "")),
tags$head(tags$style(type = ... | /EhdenRaDmardsEstimation/ui.R | no_license | OHDSI/ShinyDeploy | R | false | false | 16,281 | r | library(shiny)
library(DT)
shinyUI(
fluidPage(style = "width:1500px;",
titlePanel(paste("The comparative safety of first-line disease-modifying antirheumatic drugs in rheumatoid arthritis: a multinational network cohort study", if(blind) "***Blinded***" else "")),
tags$head(tags$style(type = ... |
#' Percent NA
#'
#' @param x this is a dataframe
#' @param count this is a logical
#'
#' @return Returns a value between 0 and 1 representing the percentage of each column that is NA, and an optional output with the total number of rows that have
#' at least one NA
#'
#' @examples
#' perc_NA(mtcars, count = FA... | /R/perc_na.R | no_license | natekz/Package.441a | R | false | false | 570 | r | #' Percent NA
#'
#' @param x this is a dataframe
#' @param count this is a logical
#'
#' @return Returns a value between 0 and 1 representing the percentage of each column that is NA, and an optional output with the total number of rows that have
#' at least one NA
#'
#' @examples
#' perc_NA(mtcars, count = FA... |
1 <- 3L
test <- function(a, b = 2, c = 3, d, e, f, g,
hijllkajsdflkj_ldskajfalkj = 12345, ...) {
a = b[,3L]
1 + 2L
{
1 + 2
}
}
x <- 2
| /inst/test2.R | no_license | dgkf/reflow | R | false | false | 152 | r | 1 <- 3L
test <- function(a, b = 2, c = 3, d, e, f, g,
hijllkajsdflkj_ldskajfalkj = 12345, ...) {
a = b[,3L]
1 + 2L
{
1 + 2
}
}
x <- 2
|
ffp_snw_graph_feasible <- function(ar_rho, df_input_il_noninc_covar,
df_alloc_i_long_covar_c, df_alloc_i_long_covar_v,
ls_st_gen_imgs = c("mass", "mc", "checks_c", "mv", "mlogc", "checks_v", "checks_cjv"),
ls_st_sav... | /R/ffp_snw_welfarechecks_graph.R | permissive | FanWangEcon/PrjOptiAlloc | R | false | false | 17,167 | r | ffp_snw_graph_feasible <- function(ar_rho, df_input_il_noninc_covar,
df_alloc_i_long_covar_c, df_alloc_i_long_covar_v,
ls_st_gen_imgs = c("mass", "mc", "checks_c", "mv", "mlogc", "checks_v", "checks_cjv"),
ls_st_sav... |
prepare<-function()
{
URL<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
dir<-paste(getwd(),"/a.zip",sep="")#get url
download.file(URL,dir)#upload file
unzip(dir)#unzip file
G<-read.table("household_power_consumption.txt",sep=";",dec=".",header=TRUE)#read tabl... | /plot3.R | no_license | dimakarp1996/ExData_Plotting1 | R | false | false | 1,101 | r |
prepare<-function()
{
URL<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
dir<-paste(getwd(),"/a.zip",sep="")#get url
download.file(URL,dir)#upload file
unzip(dir)#unzip file
G<-read.table("household_power_consumption.txt",sep=";",dec=".",header=TRUE)#read tabl... |
/refm/api/src/rdoc/normal_module.rd | no_license | wanabe/rubydoc | R | false | false | 102 | rd | ||
# Carica il file csv che contiene il dataset.
# Converte i campi CodeSnippet e Successful da 'yes', 'no' a TRUE, FALSE.
# Fattorizza il campo Topic (altrimenti R lo prende come numerico).
# Avvia la regressione logistica.
library(biglm)
stackoverflow_dataset <- read.csv('../mallet/build_input_mallet/t_15/stackoverflo... | /build_dataset/R_log_regr/multivar_log_regr.R | permissive | collab-uniba/emotions-online-qa | R | false | false | 1,797 | r | # Carica il file csv che contiene il dataset.
# Converte i campi CodeSnippet e Successful da 'yes', 'no' a TRUE, FALSE.
# Fattorizza il campo Topic (altrimenti R lo prende come numerico).
# Avvia la regressione logistica.
library(biglm)
stackoverflow_dataset <- read.csv('../mallet/build_input_mallet/t_15/stackoverflo... |
## The first function returns the special matrix object that can store cached Inverse of the matrix.
## The second function checks the object for stored cache and returns the inverse accordingly.
## makeCacheMatrix Function
##This function takes a matrix as an input and return the list with Inverse of the matrix in it... | /Week 3/cachematrix.R | no_license | swapnilsangal/R-Programming-Coursera-JHU | R | false | false | 1,225 | r | ## The first function returns the special matrix object that can store cached Inverse of the matrix.
## The second function checks the object for stored cache and returns the inverse accordingly.
## makeCacheMatrix Function
##This function takes a matrix as an input and return the list with Inverse of the matrix in it... |
# file to evaluate runtimes for various parameter combinations
source("continuous_time/mpi_f.R")
source("continuous_time/helpers.R")
n.iter <- 5
H <- 100
nS <- 100
maxt <- seq(5000, 500000, length.out=n.iter)
runtimes <- rep(NA, n.iter)
timesteps <- rep(NA, n.iter)
tmax <- rep(NA, n.iter)
for (i in 1:n.iter){
runt... | /R/runtimes.R | no_license | mbjoseph/abm | R | false | false | 621 | r | # file to evaluate runtimes for various parameter combinations
source("continuous_time/mpi_f.R")
source("continuous_time/helpers.R")
n.iter <- 5
H <- 100
nS <- 100
maxt <- seq(5000, 500000, length.out=n.iter)
runtimes <- rep(NA, n.iter)
timesteps <- rep(NA, n.iter)
tmax <- rep(NA, n.iter)
for (i in 1:n.iter){
runt... |
library(ggplot2)
## 37 different geometries are available
## 3 most important ones:
## scatter plots: points, jitter, ablines
## bar plots: histogram, bar, error bar
## line plots
## geom_ all have specific aesthetic mappings
## e.g. geom_point() needs an x and y
## optional: alpha, colour, fill, shape, size... | /ggplot_geometry.r | no_license | tiborh/r | R | false | false | 3,714 | r | library(ggplot2)
## 37 different geometries are available
## 3 most important ones:
## scatter plots: points, jitter, ablines
## bar plots: histogram, bar, error bar
## line plots
## geom_ all have specific aesthetic mappings
## e.g. geom_point() needs an x and y
## optional: alpha, colour, fill, shape, size... |
# Create a 200-day SMA
spy_sma <- SMA(Cl(SPY), n = 200)
# Create an RSI with a 3-day lookback period
spy_rsi <- RSI(Cl(SPY), n = 3)
# Plot the closing prices of SPY
plot(Cl(SPY))
# Overlay a 200-day SMA
lines(SMA(Cl(SPY), n = 200), col = "red")
# What kind of indicator?
"trend"
# Plot the closing price of SPY
plo... | /applied_finance/financial_trading_in_r/3_indicators/3_1_intro_toindicators.R | no_license | printfCRLF/rr | R | false | false | 413 | r | # Create a 200-day SMA
spy_sma <- SMA(Cl(SPY), n = 200)
# Create an RSI with a 3-day lookback period
spy_rsi <- RSI(Cl(SPY), n = 3)
# Plot the closing prices of SPY
plot(Cl(SPY))
# Overlay a 200-day SMA
lines(SMA(Cl(SPY), n = 200), col = "red")
# What kind of indicator?
"trend"
# Plot the closing price of SPY
plo... |
#' @title Identify Collection of Files Compressed in '.pbix'
#' @description '.pbix' is decompressed in memory, making names and properties
#' (length, date) of files in collection available.
#' @author Don Diproto
#' @param input_file_pbix Path of the input ''.pbix''.
#' @return data.frame: Names, lengths (kb) an... | /R/f_get_pbix_info.R | no_license | cran/pbixr | R | false | false | 1,839 | r | #' @title Identify Collection of Files Compressed in '.pbix'
#' @description '.pbix' is decompressed in memory, making names and properties
#' (length, date) of files in collection available.
#' @author Don Diproto
#' @param input_file_pbix Path of the input ''.pbix''.
#' @return data.frame: Names, lengths (kb) an... |
# Quiz 2 - First Attempt
# load libraries for this quiz
library(caret)
library(AppliedPredictiveModeling)
# Question 1
# Load the Alzheimer's disease data using the commands:
data(AlzheimerDisease)
# Which of the following commands will create non-overlapping training and
# test sets with about 50% of the observat... | /machine_learning/quiz/quiz2_1.R | no_license | richelm/course_notes | R | false | false | 3,320 | r | # Quiz 2 - First Attempt
# load libraries for this quiz
library(caret)
library(AppliedPredictiveModeling)
# Question 1
# Load the Alzheimer's disease data using the commands:
data(AlzheimerDisease)
# Which of the following commands will create non-overlapping training and
# test sets with about 50% of the observat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{primary_coal_products}
\alias{primary_coal_products}
\title{Primary coal products}
\format{
A string vector with 7 entries.
\describe{
\item{hard_coal_if_no_detail}{The string identifier for Hard coal (if no detail... | /man/primary_coal_products.Rd | no_license | MatthewHeun/IEATools | R | false | true | 929 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{primary_coal_products}
\alias{primary_coal_products}
\title{Primary coal products}
\format{
A string vector with 7 entries.
\describe{
\item{hard_coal_if_no_detail}{The string identifier for Hard coal (if no detail... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_estimators.R
\name{stEstLeon}
\alias{stEstLeon}
\title{Leon estimator}
\usage{
stEstLeon(data, ...)
}
\description{
Leon estimator
}
| /man/stEstLeon.Rd | no_license | olssol/stresstest | R | false | true | 214 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_estimators.R
\name{stEstLeon}
\alias{stEstLeon}
\title{Leon estimator}
\usage{
stEstLeon(data, ...)
}
\description{
Leon estimator
}
|
#'Get the songs of an specific playlist
#'
#'
#'function to get songs about a specifc playlist
#'@param ownerid Owner ID
#'@param playlistid Playlist ID
#'@param offset The index of the first songs to return. Default: 0 (the first object). Maximum offset: 100.000.
#'@param token An OAuth token created with \code{spotif... | /R/getPlaylistSongs.R | no_license | davidgibsonp/Rspotify | R | false | false | 1,227 | r | #'Get the songs of an specific playlist
#'
#'
#'function to get songs about a specifc playlist
#'@param ownerid Owner ID
#'@param playlistid Playlist ID
#'@param offset The index of the first songs to return. Default: 0 (the first object). Maximum offset: 100.000.
#'@param token An OAuth token created with \code{spotif... |
# clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# install and load packages
libraries = c("ggplot2")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {
install.packages(x)
})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# load data
options(stringsAsF... | /YAMLcleanmerge.r | no_license | anastasia-stepanchenko/YAMLcleanmerge | R | false | false | 3,299 | r |
# clear variables and close windows
rm(list = ls(all = TRUE))
graphics.off()
# install and load packages
libraries = c("ggplot2")
lapply(libraries, function(x) if (!(x %in% installed.packages())) {
install.packages(x)
})
lapply(libraries, library, quietly = TRUE, character.only = TRUE)
# load data
options(stringsAsF... |
library(dplyr)
library(tidyr)
library(magick)
library(ggforce)
# Read in image and convert to grayscale
img <- image_read("portraits/images/georgios.jpg") %>%
image_convert(colorspace = "gray")
# Get dimensions
img_w <- image_info(img)$width
img_h <- image_info(img)$height
img_ratio <- img_w / img_h
# Resize the l... | /portraits/portraits bspline/bspline-portraits.R | permissive | joelfishbein/aRtist | R | false | false | 1,644 | r | library(dplyr)
library(tidyr)
library(magick)
library(ggforce)
# Read in image and convert to grayscale
img <- image_read("portraits/images/georgios.jpg") %>%
image_convert(colorspace = "gray")
# Get dimensions
img_w <- image_info(img)$width
img_h <- image_info(img)$height
img_ratio <- img_w / img_h
# Resize the l... |
#' Création d'un périmètre autour des points de placettes
#'
#' @description La fonction utilise en entrée un shape de type ponctuel contenant les placettes permanentes
#' d’une ou plusieurs forêts. Le fichier en entrée est un SpatialPointsDataFrame dont la table attributaire
#' contient au moins 2 champs. Le premier p... | /R/CreatePerim.R | no_license | Bruciamacchie/PPtools | R | false | false | 1,539 | r | #' Création d'un périmètre autour des points de placettes
#'
#' @description La fonction utilise en entrée un shape de type ponctuel contenant les placettes permanentes
#' d’une ou plusieurs forêts. Le fichier en entrée est un SpatialPointsDataFrame dont la table attributaire
#' contient au moins 2 champs. Le premier p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{labA}
\alias{labA}
\title{lungA.rda}
\format{An object of class \code{matrix} with 203 rows and 1 columns.}
\usage{
labA
}
\description{
char 203x1
}
\keyword{datasets}
| /man/labA.Rd | no_license | AlfonsoRReyes/martinezEDA | R | false | true | 275 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{labA}
\alias{labA}
\title{lungA.rda}
\format{An object of class \code{matrix} with 203 rows and 1 columns.}
\usage{
labA
}
\description{
char 203x1
}
\keyword{datasets}
|
#############################
rm(list=ls())
library(RSQLite)
library(dplyr)
library(knitr)
set.seed(123)
###################################
intergrand=function(aa, var.case, var.contr, bar.gamma, sig, N1, N0)
{
ff=dbinom(var.case, sum(var.case, var.contr), aa*N1/(aa*N1+N0))*dgamma(aa, bar.gamma*sig, sig)
return(ff... | /code/MIRAGE_burden_only_variant_level.R | no_license | han16/rare-var-project | R | false | false | 20,195 | r | #############################
rm(list=ls())
library(RSQLite)
library(dplyr)
library(knitr)
set.seed(123)
###################################
intergrand=function(aa, var.case, var.contr, bar.gamma, sig, N1, N0)
{
ff=dbinom(var.case, sum(var.case, var.contr), aa*N1/(aa*N1+N0))*dgamma(aa, bar.gamma*sig, sig)
return(ff... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snp_category.r
\name{SNP.category}
\alias{SNP.category}
\title{SNP.category}
\usage{
SNP.category(bed, Z, threshold = 0.8)
}
\arguments{
\item{bed}{A bed matrix}
\item{Z}{A vector of length \code{nrow(bed)}}
\item{threshold}{Variance thresh... | /man/SNP.category.Rd | no_license | cran/milorGWAS | R | false | true | 863 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snp_category.r
\name{SNP.category}
\alias{SNP.category}
\title{SNP.category}
\usage{
SNP.category(bed, Z, threshold = 0.8)
}
\arguments{
\item{bed}{A bed matrix}
\item{Z}{A vector of length \code{nrow(bed)}}
\item{threshold}{Variance thresh... |
extract_features_exp <- function(x) {
nrc_langs <- which_language(x$lang)
text <- tokenizers::tokenize_tweets(x$text)
x$sent_nrc_positive <- sentiment_nrc_positive(text, nrc_langs)
x$sent_nrc_negative <- sentiment_nrc_negative(text, nrc_langs)
x$sent_nrc_anger <- sentiment_nrc_anger(text, nrc_langs)
x$sent_... | /R/features-exp.R | permissive | aidanbuech/tweetbotornot | R | false | false | 12,384 | r | extract_features_exp <- function(x) {
nrc_langs <- which_language(x$lang)
text <- tokenizers::tokenize_tweets(x$text)
x$sent_nrc_positive <- sentiment_nrc_positive(text, nrc_langs)
x$sent_nrc_negative <- sentiment_nrc_negative(text, nrc_langs)
x$sent_nrc_anger <- sentiment_nrc_anger(text, nrc_langs)
x$sent_... |
### PROJECT 1 Covid19 - Statistics
# @authors: Ànnia, Rebecca, Rocío, Victor.
###################################################################
############ READING DATA FROM EXCEL/CSV COVID + EXTRA ############
###################################################################
#install.packages("readr")
#instal... | /dataPipeline2-clusters/2_profilingClusters-yest2.R | no_license | arixha/MVTEC-Stats-Project1 | R | false | false | 29,417 | r | ### PROJECT 1 Covid19 - Statistics
# @authors: Ànnia, Rebecca, Rocío, Victor.
###################################################################
############ READING DATA FROM EXCEL/CSV COVID + EXTRA ############
###################################################################
#install.packages("readr")
#instal... |
# Page No. 206
P_Sn = function(n)
{
p = 0.52
mu = p * n
sigma = sqrt(n * p * (1 - p))
ans = 1 - pnorm(0.5 * n, mu, sigma)
return(ans)
}
N = c(11, 101, 1001)
for(i in N)
{
cat("For n =", i, "P(Sn > 0.5 * n) =", P_Sn(i), "\n")
}
i = 1
while(P_Sn(i) < 0.95)
{
i = i + 1
}
cat("For at least 95%, n =", i,... | /A_First_Course_In_Probability_by_Sheldon_Ross/CH5/EX4.i/Ex5_4i.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 326 | r | # Page No. 206
P_Sn = function(n)
{
p = 0.52
mu = p * n
sigma = sqrt(n * p * (1 - p))
ans = 1 - pnorm(0.5 * n, mu, sigma)
return(ans)
}
N = c(11, 101, 1001)
for(i in N)
{
cat("For n =", i, "P(Sn > 0.5 * n) =", P_Sn(i), "\n")
}
i = 1
while(P_Sn(i) < 0.95)
{
i = i + 1
}
cat("For at least 95%, n =", i,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_eolid.R
\name{get_eolid}
\alias{get_eolid}
\alias{as.eolid}
\alias{as.eolid.eolid}
\alias{as.eolid.character}
\alias{as.eolid.list}
\alias{as.eolid.numeric}
\alias{as.eolid.data.frame}
\alias{as.data.frame.eolid}
\alias{get_eolid_}
\title... | /man/get_eolid.Rd | permissive | arw36/taxize | R | false | true | 5,280 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_eolid.R
\name{get_eolid}
\alias{get_eolid}
\alias{as.eolid}
\alias{as.eolid.eolid}
\alias{as.eolid.character}
\alias{as.eolid.list}
\alias{as.eolid.numeric}
\alias{as.eolid.data.frame}
\alias{as.data.frame.eolid}
\alias{get_eolid_}
\title... |
install.packages("tidyverse")
install.packages("rjson")
install.packages("RColorBrewer")
install.packages("tm")
install.packages("wordcloud")
install.packages("SnowballC")
install.packages("tidytext")
install.packages("sentimentr")
| /install.R | no_license | jmh5ad/R_for_Digital_Humanities | R | false | false | 232 | r | install.packages("tidyverse")
install.packages("rjson")
install.packages("RColorBrewer")
install.packages("tm")
install.packages("wordcloud")
install.packages("SnowballC")
install.packages("tidytext")
install.packages("sentimentr")
|
#' Pipe operator
#'
#' See /code{/link[magrittr]{/%>/%}} for more details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs /%>/% rhs
NULL
#' Ler Captcha
#'
#' copiada do captchasaj.
#'
#' @export
captcha_read <- function(a, scale = '100%') {
# tmp <- tempfil... | /R/utils.R | permissive | andrewsmedina/captchaTRT | R | false | false | 9,349 | r | #' Pipe operator
#'
#' See /code{/link[magrittr]{/%>/%}} for more details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs /%>/% rhs
NULL
#' Ler Captcha
#'
#' copiada do captchasaj.
#'
#' @export
captcha_read <- function(a, scale = '100%') {
# tmp <- tempfil... |
# Functional programming with dplyr
#
# In this script, we adapt RbyExample-recs_tidy-example.R
# by encapsulating repeated patters within functions.
#
# Data Source:
# https://www.eia.gov/consumption/residential/data/2015/index.php?view=microdata
#
# Author: Morteza Taiebat
# libraries: ---------------------------... | /fpd-1.R | no_license | taiebat/ResEnergyData | R | false | false | 2,944 | r | # Functional programming with dplyr
#
# In this script, we adapt RbyExample-recs_tidy-example.R
# by encapsulating repeated patters within functions.
#
# Data Source:
# https://www.eia.gov/consumption/residential/data/2015/index.php?view=microdata
#
# Author: Morteza Taiebat
# libraries: ---------------------------... |
########################################################################
# Estimating activity level and activity pattern from camera trap data #
# Guilherme Ferreira - 14/July/2020
########################################################################
# Key papers:
# 1) Rowcliffe et al. Methods in Ecology a... | /EstimatingActivity_example_Nepal2019.R | no_license | GBFerr/CameraTrapActivity_tutorial | R | false | false | 10,194 | r | ########################################################################
# Estimating activity level and activity pattern from camera trap data #
# Guilherme Ferreira - 14/July/2020
########################################################################
# Key papers:
# 1) Rowcliffe et al. Methods in Ecology a... |
rm(list=ls())
install.packages("plyr")
install.packages("MASS")
install.packages("reshape2")
install.packages("ggplot2")
library(plyr)
library(ggplot2)
library(MASS)
library(reshape2)
data(Cars93)
head(Cars93)
mycar <- Cars93[,-c(15:17)] #열 추출
mycar <- mycar[c(mycar$Manufacturer=="Honda"&mycar$Price>15),]
mycar
myc... | /06_29_03.R | no_license | yujinnnnn/R_practice | R | false | false | 821 | r | rm(list=ls())
install.packages("plyr")
install.packages("MASS")
install.packages("reshape2")
install.packages("ggplot2")
library(plyr)
library(ggplot2)
library(MASS)
library(reshape2)
data(Cars93)
head(Cars93)
mycar <- Cars93[,-c(15:17)] #열 추출
mycar <- mycar[c(mycar$Manufacturer=="Honda"&mycar$Price>15),]
mycar
myc... |
## File Name: gdm_est_a.R
## File Version: 0.14
###########################################
# estimation of a
# Q matrix [1:I, 1:TD, 1:K]
# thetaDes [TP,TD]
# n.ik [ TP, I, K+1, G ]
# N.ik [ TP, I, G ]
# probs [I, K+1, TP ]
gdm_est_a <- function(probs, n.ik, N.ik, I, K, G,a,a.constraint,TD,
Qmatrix,th... | /R/gdm_est_a.R | no_license | alexanderrobitzsch/CDM | R | false | false | 2,896 | r | ## File Name: gdm_est_a.R
## File Version: 0.14
###########################################
# estimation of a
# Q matrix [1:I, 1:TD, 1:K]
# thetaDes [TP,TD]
# n.ik [ TP, I, K+1, G ]
# N.ik [ TP, I, G ]
# probs [I, K+1, TP ]
gdm_est_a <- function(probs, n.ik, N.ik, I, K, G,a,a.constraint,TD,
Qmatrix,th... |
#### INFO ####
# Created along Shiny2021 project / app
# This function is for importing data.
# Date created = 8.3.2021
# Date updated = 8.3.2021
#### LIBRARIES ####
library(tidyverse)
library(shiny)
library(readxl)
library(data.table)
library(shinyalert)
#### FUNCTIONS ####
read_velmu_xl <- function(path_to_file... | /fct_tab1_import_excel.R | no_license | RasBoman/Shiny2021 | R | false | false | 8,181 | r | #### INFO ####
# Created along Shiny2021 project / app
# This function is for importing data.
# Date created = 8.3.2021
# Date updated = 8.3.2021
#### LIBRARIES ####
library(tidyverse)
library(shiny)
library(readxl)
library(data.table)
library(shinyalert)
#### FUNCTIONS ####
read_velmu_xl <- function(path_to_file... |
\name{DCchoice-package}
\alias{DCchoice-package}
\alias{DCchoice}
\docType{package}
\title{DCchoice: a package for analyzing dichotomous choice contingent valuation data}
\description{
The package provides functions for analyzing single-, one-and-one-half-, and double-bounded dichotomous
choice contingent val... | /man/DCchoice-package.Rd | no_license | cran/DCchoice | R | false | false | 9,333 | rd | \name{DCchoice-package}
\alias{DCchoice-package}
\alias{DCchoice}
\docType{package}
\title{DCchoice: a package for analyzing dichotomous choice contingent valuation data}
\description{
The package provides functions for analyzing single-, one-and-one-half-, and double-bounded dichotomous
choice contingent val... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_enable_all_features}
\alias{organizations_enable_all_features}
\title{Enables all features in an organization}
\usage{
organizations_enable_all_features()
}
\description{
Enables all features in ... | /cran/paws.management/man/organizations_enable_all_features.Rd | permissive | ryanb8/paws | R | false | true | 2,872 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/organizations_operations.R
\name{organizations_enable_all_features}
\alias{organizations_enable_all_features}
\title{Enables all features in an organization}
\usage{
organizations_enable_all_features()
}
\description{
Enables all features in ... |
context("npMeanUnpaired")
ones <- rep(1, 20)
zeros <- rep(0, 20)
res <- npMeanUnpaired(ones, zeros)
theta.1 <- res$theta
test_that("correct rejection 1",
expect_true(res$rejection))
res <- npMeanUnpaired(zeros, ones)
test_that("correct rejection 2",
expect_true(res$rejection))
res <- npMeanUnpa... | /tests/testthat/test_npMeanUnpaired.R | no_license | bdetweiler/npExact | R | false | false | 992 | r |
context("npMeanUnpaired")
ones <- rep(1, 20)
zeros <- rep(0, 20)
res <- npMeanUnpaired(ones, zeros)
theta.1 <- res$theta
test_that("correct rejection 1",
expect_true(res$rejection))
res <- npMeanUnpaired(zeros, ones)
test_that("correct rejection 2",
expect_true(res$rejection))
res <- npMeanUnpa... |
# Class outline for sbm base parameters class
# Class has members to store parameters of size based model
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Distributed under the GPL 2 or later
# Maintainer: Finlay Scott, CEFAS. finlay.scott@cefas.co.uk
#Naming conventions:
#S4 classes and constructors: AClass
#S4... | /R/MizerParams-class.r | no_license | clint-leach/mizer | R | false | false | 30,262 | r | # Class outline for sbm base parameters class
# Class has members to store parameters of size based model
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Distributed under the GPL 2 or later
# Maintainer: Finlay Scott, CEFAS. finlay.scott@cefas.co.uk
#Naming conventions:
#S4 classes and constructors: AClass
#S4... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input-circlebutton.R
\name{circleButton}
\alias{circleButton}
\title{Circle Action button}
\usage{
circleButton(inputId, icon = NULL, status = "default", ...)
}
\arguments{
\item{inputId}{The \code{input} slot that will be used to ac... | /man/circleButton.Rd | permissive | aghozlane/shinyWidgets | R | false | true | 541 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input-circlebutton.R
\name{circleButton}
\alias{circleButton}
\title{Circle Action button}
\usage{
circleButton(inputId, icon = NULL, status = "default", ...)
}
\arguments{
\item{inputId}{The \code{input} slot that will be used to ac... |
SpecAbunAce1 <-
function(data ,k=10, conf=0.95){
data <- as.numeric(data)
f <- function(i, data){length(data[which(data == i)])}
basicAbun <- function(data, k){
x <- data[which(data != 0)]
n <- sum(x)
D <- length(x)
n_rare <- sum(x[which(x <= k)])
D_rare <- length(x[whic... | /R/SpecAbunAce1.R | no_license | yvkschaefer/SpadeR | R | false | false | 8,611 | r | SpecAbunAce1 <-
function(data ,k=10, conf=0.95){
data <- as.numeric(data)
f <- function(i, data){length(data[which(data == i)])}
basicAbun <- function(data, k){
x <- data[which(data != 0)]
n <- sum(x)
D <- length(x)
n_rare <- sum(x[which(x <= k)])
D_rare <- length(x[whic... |
\name{leverage.ppm}
\alias{leverage}
\alias{leverage.ppm}
\title{
Leverage Measure for Spatial Point Process Model
}
\description{
Computes the leverage measure for a fitted spatial point process model.
}
\usage{
leverage(model, ...)
\method{leverage}{ppm}(model, ..., drop = FALSE, iScore=NULL, iHessian=NULL, iArg... | /man/leverage.ppm.Rd | no_license | jeffreyevans/spatstat | R | false | false | 3,639 | rd | \name{leverage.ppm}
\alias{leverage}
\alias{leverage.ppm}
\title{
Leverage Measure for Spatial Point Process Model
}
\description{
Computes the leverage measure for a fitted spatial point process model.
}
\usage{
leverage(model, ...)
\method{leverage}{ppm}(model, ..., drop = FALSE, iScore=NULL, iHessian=NULL, iArg... |
library(tidyverse)
library(jsonlite)
library(ggplot2)
table(mpg$class,mpg$year) #generate contingency table
tbl <- table(mpg$class,mpg$year) #generate contingency table
chisq.test(tbl) #compare categorical distributions | /01_Demo/Categories.R | no_license | varshajha28/R_Analysis | R | false | false | 219 | r | library(tidyverse)
library(jsonlite)
library(ggplot2)
table(mpg$class,mpg$year) #generate contingency table
tbl <- table(mpg$class,mpg$year) #generate contingency table
chisq.test(tbl) #compare categorical distributions |
# install_tensorflow()
library(tensorflow)
library(keras)
mnist <- dataset_mnist()
x_train <- mnist$train$x
y_train <- mnist$train$y
x_test <- mnist$test$x
y_test <- mnist$test$y
# reshape
x_train <- array_reshape(x_train, c(nrow(x_train), 784))
x_test <- array_reshape(x_test, c(nrow(x_test), 784))
# rescale
x_train ... | /r_keras_test.r | no_license | letsjdosth/SpaBasisML | R | false | false | 1,024 | r | # install_tensorflow()
library(tensorflow)
library(keras)
mnist <- dataset_mnist()
x_train <- mnist$train$x
y_train <- mnist$train$y
x_test <- mnist$test$x
y_test <- mnist$test$y
# reshape
x_train <- array_reshape(x_train, c(nrow(x_train), 784))
x_test <- array_reshape(x_test, c(nrow(x_test), 784))
# rescale
x_train ... |
testlist <- list(doy = c(-2.327541784346e+197, 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), latitude = numeric(0), temp = numeric(0))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612736027-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 252 | r | testlist <- list(doy = c(-2.327541784346e+197, 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), latitude = numeric(0), temp = numeric(0))
result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist)
str(result) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mi_simulation_fit_data}
\alias{mi_simulation_fit_data}
\title{Measurement invariance simulation fit index data}
\format{A list of lists of matrices containing differences in fit statistics
for constrained and unc... | /man/mi_simulation_fit_data.Rd | no_license | jflournoy/milav | R | false | true | 488 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mi_simulation_fit_data}
\alias{mi_simulation_fit_data}
\title{Measurement invariance simulation fit index data}
\format{A list of lists of matrices containing differences in fit statistics
for constrained and unc... |
addConstraint = function(graph, label, key) UseMethod("addConstraint")
addConstraint.default = function(x, ...) {
stop("Invalid object. Must supply graph object.")
}
addConstraint.graph = function(graph, label, key) {
stopifnot(is.character(label),
is.character(key),
length(label) == 1,
... | /R/addConstraint.R | permissive | kbastani/RNeo4j | R | false | false | 683 | r | addConstraint = function(graph, label, key) UseMethod("addConstraint")
addConstraint.default = function(x, ...) {
stop("Invalid object. Must supply graph object.")
}
addConstraint.graph = function(graph, label, key) {
stopifnot(is.character(label),
is.character(key),
length(label) == 1,
... |
train_data<-read.csv('train.csv')
head_data<-head(train_data)
head_data
train_data<-within(train_data,rm("Descript","Resolution"))
library(ggplot2)
library(lubridate)
library(dplyr)
help(lubridate)
#Parsing Date to Separate Columns
train_data['Year']<-year(ymd_hms(train_data$Dates))
train_data['Month']<-month(ymd... | /Preprocessing.r | no_license | davidmathi/sf-crime-r-shiny | R | false | false | 2,403 | r |
train_data<-read.csv('train.csv')
head_data<-head(train_data)
head_data
train_data<-within(train_data,rm("Descript","Resolution"))
library(ggplot2)
library(lubridate)
library(dplyr)
help(lubridate)
#Parsing Date to Separate Columns
train_data['Year']<-year(ymd_hms(train_data$Dates))
train_data['Month']<-month(ymd... |
fat <- function(arg) {
if (typeof(arg) == "list")
lapply(arg, fat)
else {
cat(arg, file="/tmp/fat", append=TRUE);
cat("\n", file="/tmp/fat", append=TRUE);
}
}
fat("before 0");
args <- commandArgs(trailingOnly = TRUE);
fat("before 1");
fat("before 2");
library(rmongodb)
fat("before 3");
conn... | /scripts/ttest.R | no_license | UCSC-MedBook/MedBook-Fusion5 | R | false | false | 1,280 | r | fat <- function(arg) {
if (typeof(arg) == "list")
lapply(arg, fat)
else {
cat(arg, file="/tmp/fat", append=TRUE);
cat("\n", file="/tmp/fat", append=TRUE);
}
}
fat("before 0");
args <- commandArgs(trailingOnly = TRUE);
fat("before 1");
fat("before 2");
library(rmongodb)
fat("before 3");
conn... |
#plot territories of groups(Hardcore process)
plot_hardcore <- function(n, distance, density, hardcore = list(beta, hc)){
w = owin(xrange = c(0,10000+distance*(n-1)), yrange = c(0,10000+distance*(n-1)))
pop <- sim.popn(D = density,
expand.grid(x = c(0,10000+distance*(n-1)),
... | /simulation/function of plot territories.R | no_license | Jialing-Liu/gibbon-simulation-ASCR | R | false | false | 979 | r | #plot territories of groups(Hardcore process)
plot_hardcore <- function(n, distance, density, hardcore = list(beta, hc)){
w = owin(xrange = c(0,10000+distance*(n-1)), yrange = c(0,10000+distance*(n-1)))
pop <- sim.popn(D = density,
expand.grid(x = c(0,10000+distance*(n-1)),
... |
#' Internal function to run variance proportions random effects modeling
#'
#' @inheritParams run_var_proportions
#' @param m marker to run `lme4` random effects model
#' @param ... additional parameters to set for `lme4::lmer()` model.
#'
#' @return `lme4` model
#' @noRd
get_var_proportions <- function(mx_data,
... | /R/get_var_proportions.R | permissive | ColemanRHarris/mxnorm | R | false | false | 1,037 | r | #' Internal function to run variance proportions random effects modeling
#'
#' @inheritParams run_var_proportions
#' @param m marker to run `lme4` random effects model
#' @param ... additional parameters to set for `lme4::lmer()` model.
#'
#' @return `lme4` model
#' @noRd
get_var_proportions <- function(mx_data,
... |
library("DESeq2")
library("tximport")
library("EnsDb.Hsapiens.v86")
library("tidyverse")
library("ggrepel")
library("gridExtra")
library("genefilter")
library("geneplotter")
library("VennDiagram")
library("Rsamtools")
library("biomaRt")
pdf("HeLa_TTAGGG_repeat_analysis.pdf")
samples <- read_tsv("20190103_recei... | /scripts/DESeq2_TTAGGG_repeat_analysis.R | no_license | fcadete/TALES_RNAseq_analysis | R | false | false | 17,821 | r |
library("DESeq2")
library("tximport")
library("EnsDb.Hsapiens.v86")
library("tidyverse")
library("ggrepel")
library("gridExtra")
library("genefilter")
library("geneplotter")
library("VennDiagram")
library("Rsamtools")
library("biomaRt")
pdf("HeLa_TTAGGG_repeat_analysis.pdf")
samples <- read_tsv("20190103_recei... |
#::::::::::::
# dsidr
#::::::::::::
subroutine dsidr (vmu, s, lds, nobs, nnull, y, z, M, q, ldq, tol, job, limnla,
nlaht, score, varht, c, d, qraux, jpvt, wk, twk, twk2, qwk, info)
# Acronym: Double precision SIngle smoothing parameter DRiver.
# Purpose:
#
# This routine is the double ... | /src/ratfor/dsidr.r | no_license | weirichd/cautious-guacamole | R | false | false | 6,780 | r |
#::::::::::::
# dsidr
#::::::::::::
subroutine dsidr (vmu, s, lds, nobs, nnull, y, z, M, q, ldq, tol, job, limnla,
nlaht, score, varht, c, d, qraux, jpvt, wk, twk, twk2, qwk, info)
# Acronym: Double precision SIngle smoothing parameter DRiver.
# Purpose:
#
# This routine is the double ... |
# Exercise-3: Calling built-in functions
# Create a variable `my.name` that contains your name
my.name <- "Stephen Hung"
# Create a variable `name.length` that holds how many letters are in your name (use the `nchars()` function)
name.length <- nchar(my.name)
# Print the number of letters in your name
print(name.... | /exercise-3/exercise.R | permissive | stphnhng/module6-functions | R | false | false | 1,529 | r | # Exercise-3: Calling built-in functions
# Create a variable `my.name` that contains your name
my.name <- "Stephen Hung"
# Create a variable `name.length` that holds how many letters are in your name (use the `nchars()` function)
name.length <- nchar(my.name)
# Print the number of letters in your name
print(name.... |
library("pcalg")
setwd("h:\\projects\\LPC\\LPC")
n_genes<-100;
measurements<-c(10,20,50,100,200,500,1000);
for (i in 1:10){
for (j in 1:7)
{
fname<-paste("..\\data\\data_100genes\\100g_10rec_x_",i,"_",measurements[j],"measurements.txt",sep="")
fname1<-paste("..\\results\\pc\\",n_genes,"g_10rec_x_",i,"_",me... | /LPC/run_pcalg.R | no_license | mingyi-wang/BN_learning_LPC | R | false | false | 1,106 | r | library("pcalg")
setwd("h:\\projects\\LPC\\LPC")
n_genes<-100;
measurements<-c(10,20,50,100,200,500,1000);
for (i in 1:10){
for (j in 1:7)
{
fname<-paste("..\\data\\data_100genes\\100g_10rec_x_",i,"_",measurements[j],"measurements.txt",sep="")
fname1<-paste("..\\results\\pc\\",n_genes,"g_10rec_x_",i,"_",me... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/by-team.r
\name{msf_by_team}
\alias{msf_by_team}
\alias{team_gamelogs}
\alias{player_gamelogs}
\title{MySportsFeeds API calls by team}
\usage{
msf_by_team(feed, sport, team, season = "current", delay = 1)
team_gamelogs(sport, team, ...)
pla... | /man/msf_by_team.Rd | permissive | zamorarr/msf | R | false | true | 1,113 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/by-team.r
\name{msf_by_team}
\alias{msf_by_team}
\alias{team_gamelogs}
\alias{player_gamelogs}
\title{MySportsFeeds API calls by team}
\usage{
msf_by_team(feed, sport, team, season = "current", delay = 1)
team_gamelogs(sport, team, ...)
pla... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gauge.R
\name{gauge_label}
\alias{gauge_label}
\title{Gauge label}
\usage{
gauge_label(g2, ..., callback = NULL)
}
\arguments{
\item{g2}{An object of class \code{g2r} as returned by \code{\link{g2r}}.}
\item{...}{Any option, aesthetic (\code... | /man/gauge_label.Rd | permissive | JohnCoene/g2r | R | false | true | 630 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gauge.R
\name{gauge_label}
\alias{gauge_label}
\title{Gauge label}
\usage{
gauge_label(g2, ..., callback = NULL)
}
\arguments{
\item{g2}{An object of class \code{g2r} as returned by \code{\link{g2r}}.}
\item{...}{Any option, aesthetic (\code... |
#This is a pipeline to analyze proteiomic data in a proteinGroups.txt (MaxQuant output) file for two group comparision
#Author:Wasim Aftab
cat('\014')
rm(list = ls())
## Installing Bioconductor packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
list.of.packages <- c("limm... | /limma_main.R | permissive | JorgeBS94/LIMMA-pipeline-proteomics | R | false | false | 14,615 | r | #This is a pipeline to analyze proteiomic data in a proteinGroups.txt (MaxQuant output) file for two group comparision
#Author:Wasim Aftab
cat('\014')
rm(list = ls())
## Installing Bioconductor packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
list.of.packages <- c("limm... |
flicker <- function(n, qw = 1){
hk <- vector(length = n)
hk[1] <- 1
for(k in 2:n){
hk[k] <- (k - 0.5)*hk[k-1]/k
}
xx <- vector(length = n)
ww <- qw * rnorm(n)
xx[1] <- ww[1]
for(k in 2:n){
s <- 0
m <- 1
while(m < k){
s <- s + hk[k-m]*ww[m]
m <- m + 1
}
xx[k] ... | /flicker_fast.R | no_license | asgalov/R | R | false | false | 1,609 | r | flicker <- function(n, qw = 1){
hk <- vector(length = n)
hk[1] <- 1
for(k in 2:n){
hk[k] <- (k - 0.5)*hk[k-1]/k
}
xx <- vector(length = n)
ww <- qw * rnorm(n)
xx[1] <- ww[1]
for(k in 2:n){
s <- 0
m <- 1
while(m < k){
s <- s + hk[k-m]*ww[m]
m <- m + 1
}
xx[k] ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/DataFrame.R
\name{summary}
\alias{summary}
\alias{summary,SparkDataFrame-method}
\title{summary}
\usage{
summary(object, ...)
\S4method{summary}{SparkDataFrame}(object, ...)
}
\arguments{
\item{object}{a SparkDataFrame to be su... | /man/summary.Rd | no_license | cran/SparkR | R | false | true | 3,710 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/DataFrame.R
\name{summary}
\alias{summary}
\alias{summary,SparkDataFrame-method}
\title{summary}
\usage{
summary(object, ...)
\S4method{summary}{SparkDataFrame}(object, ...)
}
\arguments{
\item{object}{a SparkDataFrame to be su... |
############ MÉMOIRE: Maitrise en Mathématiques Finacières et Actuarielle #################
# -SECTION 6: Power Utility - Maximisation de l'utilité pour un groupe d'assurés#
######### Directions ############################################
#-Note: toutes les formules sont UNIQUEMENT applicables à la fonction de Pow... | /Memoire_Codes6.R | no_license | belangerjulie15/memoire_codes | R | false | false | 9,151 | r | ############ MÉMOIRE: Maitrise en Mathématiques Finacières et Actuarielle #################
# -SECTION 6: Power Utility - Maximisation de l'utilité pour un groupe d'assurés#
######### Directions ############################################
#-Note: toutes les formules sont UNIQUEMENT applicables à la fonction de Pow... |
# Yige Wu @WashU May 2021
## source activate ccrcc_snrna
# set up libraries and output directory -----------------------------------
## getting the path to the current script
thisFile <- function() {
cmdArgs <- commandArgs(trailingOnly = FALSE)
needle <- "--file="
match <- grep(needle, cmdArgs)
if (length(matc... | /snatac/coverage_plots/tumor_specific_markers/coverageplot_UBE2D2_promoter_peak_28samples_katmai.R | no_license | ding-lab/ccRCC_snRNA_analysis | R | false | false | 4,500 | r | # Yige Wu @WashU May 2021
## source activate ccrcc_snrna
# set up libraries and output directory -----------------------------------
## getting the path to the current script
thisFile <- function() {
cmdArgs <- commandArgs(trailingOnly = FALSE)
needle <- "--file="
match <- grep(needle, cmdArgs)
if (length(matc... |
library(flare)
daldata <- read.csv("/opt/school/subway/gendata/dallas_stations.csv", header= TRUE, sep = ",", quote = '"', stringsAsFactors=FALSE)
dalride <- read.csv("/opt/school/subway/gendata/dallas_subway_ridership.csv", header = FALSE, sep = ";", quote="'", stringsAsFactors=FALSE)
colnames(dalride) <- c("name",... | /LAD_convergence_testing.R | no_license | kingledion/subway | R | false | false | 2,804 | r | library(flare)
daldata <- read.csv("/opt/school/subway/gendata/dallas_stations.csv", header= TRUE, sep = ",", quote = '"', stringsAsFactors=FALSE)
dalride <- read.csv("/opt/school/subway/gendata/dallas_subway_ridership.csv", header = FALSE, sep = ";", quote="'", stringsAsFactors=FALSE)
colnames(dalride) <- c("name",... |
cat ("Running gistic_make_markers.R\n\n")
suppressPackageStartupMessages(library("rtracklayer"));
suppressPackageStartupMessages(library("foreach"));
suppressPackageStartupMessages(library("doMC"));
library(optparse)
if (!interactive()) {
options(warn = -1, error = quote({ traceback(); q('no', status = 1) }))
}
o... | /copy_number/gistic_make_seg.R | no_license | charlottekyng/usb-modules-v2 | R | false | false | 3,437 | r | cat ("Running gistic_make_markers.R\n\n")
suppressPackageStartupMessages(library("rtracklayer"));
suppressPackageStartupMessages(library("foreach"));
suppressPackageStartupMessages(library("doMC"));
library(optparse)
if (!interactive()) {
options(warn = -1, error = quote({ traceback(); q('no', status = 1) }))
}
o... |
#' Package download counts and rank percentiles (prototype).
#'
#' From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
#' @param packages Character. Vector of package name(s).
#' @param date Character. Date. "yyyy-mm-dd". NULL uses latest available log.
#' @param all.filters Logical. Master switch for filters.
#' ... | /R/packageRank.R | no_license | lindbrook/packageRank | R | false | false | 12,001 | r | #' Package download counts and rank percentiles (prototype).
#'
#' From RStudio's CRAN Mirror http://cran-logs.rstudio.com/
#' @param packages Character. Vector of package name(s).
#' @param date Character. Date. "yyyy-mm-dd". NULL uses latest available log.
#' @param all.filters Logical. Master switch for filters.
#' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.