content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(nlme)
### Name: VarCorr
### Title: Extract variance and correlation components
### Aliases: VarCorr VarCorr.lme VarCorr.pdMat VarCorr.pdBlocked
### print.VarCorr.lme
### Keywords: models
### ** Examples
fm1 <- lme(distance ~ age, data = Orthodont, random = ~age)
VarCorr(fm1)
| /data/genthat_extracted_code/nlme/examples/VarCorr.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 293 | r | library(nlme)
### Name: VarCorr
### Title: Extract variance and correlation components
### Aliases: VarCorr VarCorr.lme VarCorr.pdMat VarCorr.pdBlocked
### print.VarCorr.lme
### Keywords: models
### ** Examples
fm1 <- lme(distance ~ age, data = Orthodont, random = ~age)
VarCorr(fm1)
|
## Put comments here that give an overall description of what your
## functions do
## This code creates a function that accepts a matrix as x (or creates an empty matrix)
##should no matrix be supplied by default.This function creates function methods for getting and setting
##function methods that will enable the use... | /cachematrix.R | no_license | CBillings92/ProgrammingAssignment2 | R | false | false | 2,655 | r | ## Put comments here that give an overall description of what your
## functions do
## This code creates a function that accepts a matrix as x (or creates an empty matrix)
##should no matrix be supplied by default.This function creates function methods for getting and setting
##function methods that will enable the use... |
/text RS 1.R | no_license | asz15273x3949/R | R | false | false | 2,970 | r | ||
#targets <- c("hitIntensities_neg_pick7", "hitIntensities_pos_pick7")
#targets <- c("pickPeaks_SB1MP3e20")
# targets <- c("intMatrixNorm_pos_SB1MP3e20_set1",
# "spectraHitsDDA_pos_SB1MP3e20_set1",
# "pickPeaksDIA_SB1MP3e20",
# "profilesRawDIA")
# Here we specify which targets the... | /targets.R | no_license | meowcat/ms2field-wwtp | R | false | false | 403 | r | #targets <- c("hitIntensities_neg_pick7", "hitIntensities_pos_pick7")
#targets <- c("pickPeaks_SB1MP3e20")
# targets <- c("intMatrixNorm_pos_SB1MP3e20_set1",
# "spectraHitsDDA_pos_SB1MP3e20_set1",
# "pickPeaksDIA_SB1MP3e20",
# "profilesRawDIA")
# Here we specify which targets the... |
#' Create an object of class iCellR.
#'
#' This function takes data frame and makes an object of class iCellR.
#' @param x A data frame containing gene counts for cells.
#' @return An object of class iCellR
#' @examples
#' \dontrun{
#' my.obj <- make.obj(my.data)
#' }
#'
#' @export
make.obj <- function (x = NULL) {
#... | /R/F003.make.obj.R | no_license | weiliuyuan/iCellR | R | false | false | 1,763 | r | #' Create an object of class iCellR.
#'
#' This function takes data frame and makes an object of class iCellR.
#' @param x A data frame containing gene counts for cells.
#' @return An object of class iCellR
#' @examples
#' \dontrun{
#' my.obj <- make.obj(my.data)
#' }
#'
#' @export
make.obj <- function (x = NULL) {
#... |
## cachematrix extends a basic matrix with the ability to cache solves.
## Using the setter and getter methods $set() and $get() will
## ensure that solves are only recalculated when the data has changed.
##
## Use in combination with cacheSolve(x, ...) instead
## of solve(x, ...) to get the cached effect.
## makeC... | /cachematrix.R | no_license | RossJHagan/ProgrammingAssignment2 | R | false | false | 1,193 | r | ## cachematrix extends a basic matrix with the ability to cache solves.
## Using the setter and getter methods $set() and $get() will
## ensure that solves are only recalculated when the data has changed.
##
## Use in combination with cacheSolve(x, ...) instead
## of solve(x, ...) to get the cached effect.
## makeC... |
# Project function for the size based modelling package mizer
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Copyright 2018 Gustav Delius and Richard Southwell.
# Development has received funding from the European Commission's Horizon 2020
# Research and Innovation Programme under Grant Agreement No. 634495
# ... | /R/project.R | no_license | sizespectrum/mizer | R | false | false | 19,066 | r | # Project function for the size based modelling package mizer
# Copyright 2012 Finlay Scott and Julia Blanchard.
# Copyright 2018 Gustav Delius and Richard Southwell.
# Development has received funding from the European Commission's Horizon 2020
# Research and Innovation Programme under Grant Agreement No. 634495
# ... |
rm(list=ls(all=TRUE))
graphics.off()
install.packages("locpol")
library(locpol)
# Specify your working directory
# setwd("Users...")
############################ SUBROUTINE ################################
spdbl = function(m, sigma, sigma1, sigma2, s, r, tau){ # (fstar,delta, gamma)
# spdbl uses the Breeden and... | /_Done/XFGSPDoneday/XFGSPDoneday.R | no_license | QuantLet/XFG-ToDo | R | false | false | 12,449 | r | rm(list=ls(all=TRUE))
graphics.off()
install.packages("locpol")
library(locpol)
# Specify your working directory
# setwd("Users...")
############################ SUBROUTINE ################################
spdbl = function(m, sigma, sigma1, sigma2, s, r, tau){ # (fstar,delta, gamma)
# spdbl uses the Breeden and... |
Git <- R6Class(
"Git",
public = list(
initialize = function(path) {
private$path <- path
},
cmd = function(...) {
args <- c(...)
message(paste("git", paste(args, collapse = " ")))
status <- withr::with_dir(private$path, system2("git", args))
if (status != 0) {
stop... | /R/steps-git.R | no_license | krlmlr/tic | R | false | false | 13,675 | r | Git <- R6Class(
"Git",
public = list(
initialize = function(path) {
private$path <- path
},
cmd = function(...) {
args <- c(...)
message(paste("git", paste(args, collapse = " ")))
status <- withr::with_dir(private$path, system2("git", args))
if (status != 0) {
stop... |
#' @export
#' @import ggmulti
#' @rdname loon2ggplot
loon2ggplot.l_layer_scatterplot <- function(target, asAes = TRUE, selectedOnTop = TRUE,
showNearestColor = FALSE, ...) {
widget <- loon::l_create_handle(attr(target, "widget"))
args <- list(...)
ggObj <- args$ggObj... | /R/loon2ggplot-l_layer_scatterplot.R | no_license | great-northern-diver/loon.ggplot | R | false | false | 3,396 | r | #' @export
#' @import ggmulti
#' @rdname loon2ggplot
loon2ggplot.l_layer_scatterplot <- function(target, asAes = TRUE, selectedOnTop = TRUE,
showNearestColor = FALSE, ...) {
widget <- loon::l_create_handle(attr(target, "widget"))
args <- list(...)
ggObj <- args$ggObj... |
## -----------------------------------------------------------------------------
if(!requireNamespace("GeNetIt", quietly = TRUE)) remotes::install_github("jeffreyevans/GeNetIt")
if(!requireNamespace("spatialEco", quietly = TRUE)) remotes::install_github("jeffreyevans/spatialEco")
## ----packages global_options, includ... | /inst/doc/Week13_vignette.R | no_license | hhwagner1/LandGenCourse | R | false | false | 14,050 | r | ## -----------------------------------------------------------------------------
if(!requireNamespace("GeNetIt", quietly = TRUE)) remotes::install_github("jeffreyevans/GeNetIt")
if(!requireNamespace("spatialEco", quietly = TRUE)) remotes::install_github("jeffreyevans/spatialEco")
## ----packages global_options, includ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_travel_time.R
\name{get_travel_time}
\alias{get_travel_time}
\title{Helper function: get traveltime}
\usage{
get_travel_time(sinusfit_sw, sinusfit_gw, retardation_factor = 1.8)
}
\arguments{
\item{sinusfit_sw}{as retrieved by \code{\link{... | /man/get_travel_time.Rd | permissive | KWB-R/kwb.heatsine | R | false | true | 694 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_travel_time.R
\name{get_travel_time}
\alias{get_travel_time}
\title{Helper function: get traveltime}
\usage{
get_travel_time(sinusfit_sw, sinusfit_gw, retardation_factor = 1.8)
}
\arguments{
\item{sinusfit_sw}{as retrieved by \code{\link{... |
##Reading full dataset
datafile <- "./data/household_power_consumption.txt"
data_full <- read.csv(datafile, sep=";", header=TRUE, na.strings="?", stringsAsFactors=FALSE)
##Converting Date variable format
data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y")
##Subsetting the dataset
data_sub <- subset(data_full... | /plot4.R | no_license | sharmanas/ExData_Plotting1 | R | false | false | 1,193 | r | ##Reading full dataset
datafile <- "./data/household_power_consumption.txt"
data_full <- read.csv(datafile, sep=";", header=TRUE, na.strings="?", stringsAsFactors=FALSE)
##Converting Date variable format
data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y")
##Subsetting the dataset
data_sub <- subset(data_full... |
# server.R script for MelphalanApp
# Reactive objects (i.e., those dependent on widget input) are written here
# ------------------------------------------------------------------------------
# Define the "server" part of the Shiny application
shinyServer(function(input,output,session) {
###########
##_INPUT_##
####... | /MelphalanApp/server.R | no_license | wojjy001/melphalan-app | R | false | false | 17,577 | r | # server.R script for MelphalanApp
# Reactive objects (i.e., those dependent on widget input) are written here
# ------------------------------------------------------------------------------
# Define the "server" part of the Shiny application
shinyServer(function(input,output,session) {
###########
##_INPUT_##
####... |
# Data Analysis with R
# Rick Scavetta
# 03.09.2018
# QBM R workshop for MSc
# Clear workspace (environment)
rm(list = ls())
# Load packages
library(tidyverse)
# Basic R syntax:
n <- log2(8) # 2 to the power of what = 8
n
log2(8)
# A Simple Case Study
# Access a built-in dataset:
PlantGrowth
# Explore our data:
# ... | /Main R Tutorial.R | no_license | Scavetta/QBM_MSc | R | false | false | 14,381 | r | # Data Analysis with R
# Rick Scavetta
# 03.09.2018
# QBM R workshop for MSc
# Clear workspace (environment)
rm(list = ls())
# Load packages
library(tidyverse)
# Basic R syntax:
n <- log2(8) # 2 to the power of what = 8
n
log2(8)
# A Simple Case Study
# Access a built-in dataset:
PlantGrowth
# Explore our data:
# ... |
#' @export
update_inputs <- function() {
params = yaml.load_file( system.file("content/parameter_values.yaml", package='covid19icu') )
###solving set of linear equations for rate of stepping up from floor to ICU and
###death rate from floor
M11 = matrix(0, 2,2)
M11[1,1] = 1-params$ptheta_F1
M11[1,... | /R/queueinputs.R | permissive | nswartwo/covid19_icu | R | false | false | 3,683 | r | #' @export
update_inputs <- function() {
params = yaml.load_file( system.file("content/parameter_values.yaml", package='covid19icu') )
###solving set of linear equations for rate of stepping up from floor to ICU and
###death rate from floor
M11 = matrix(0, 2,2)
M11[1,1] = 1-params$ptheta_F1
M11[1,... |
require(reshape2)
#Prepare isoform expression data. from Rsem-Star
iso.exp <- read.delim("~/data/Hook_rsem_isoforms_Count_matrix.txt",row.names = 1,header = T)
colnames(iso.exp) <- str_replace(colnames(iso.exp), ".isoforms.results", "")
iso.exp[1:10,1:3]
dim(iso.exp)
gds <- GEOquery::getGEO(filename = '~/data/GSE10... | /code/Rsem-Isoform-counts.R | no_license | yasinkaymaz/Harvard-RosenbrockLab | R | false | false | 9,431 | r | require(reshape2)
#Prepare isoform expression data. from Rsem-Star
iso.exp <- read.delim("~/data/Hook_rsem_isoforms_Count_matrix.txt",row.names = 1,header = T)
colnames(iso.exp) <- str_replace(colnames(iso.exp), ".isoforms.results", "")
iso.exp[1:10,1:3]
dim(iso.exp)
gds <- GEOquery::getGEO(filename = '~/data/GSE10... |
#' Original authors code to compute relevance. 'Forked' from https://github.com/cpsievert/LDAvis/blob/6f93aa85499b705c9ae6c56e5985df637f9f5132/R/createJSON.R
lda2rel.f<- function(stmbow2lda,R = 10,lambda.step = 0.5,reorder.topics = FALSE,save.to.disk=F,check.for.saved.output=F,out.dir,...) {
sfn<-'lda2rel.RData'
if(... | /plagiat/R/lda2rel.f.R | no_license | brooksambrose/pack-dev | R | false | false | 7,126 | r | #' Original authors code to compute relevance. 'Forked' from https://github.com/cpsievert/LDAvis/blob/6f93aa85499b705c9ae6c56e5985df637f9f5132/R/createJSON.R
lda2rel.f<- function(stmbow2lda,R = 10,lambda.step = 0.5,reorder.topics = FALSE,save.to.disk=F,check.for.saved.output=F,out.dir,...) {
sfn<-'lda2rel.RData'
if(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GCA.R
\docType{package}
\name{GCA-package}
\alias{GCA}
\alias{GCA-package}
\title{\strong{GCA}: Genetic connectedness analysis}
\description{
An R package for genetic connectedness analysis across units using pedigree and genomic data.
}
\det... | /man/GCA-package.Rd | no_license | QGresources/GCA | R | false | true | 2,254 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GCA.R
\docType{package}
\name{GCA-package}
\alias{GCA}
\alias{GCA-package}
\title{\strong{GCA}: Genetic connectedness analysis}
\description{
An R package for genetic connectedness analysis across units using pedigree and genomic data.
}
\det... |
#' Clustering coefficient
#'
#' @param net network object
#'
#' @return clustering coefficient, \deqn{\frac{3 \times triangles}{two-paths}}
#' @export
#' @importFrom ergm summary.formula
#' @importFrom network network
#'
#' @examples
#' n <- makeNetwork(10, .3)
#' clusteringCoef(n)
clusteringCoef = function(net) {
... | /R/clusteringCoef.R | no_license | michaellevy/netUtils | R | false | false | 522 | r | #' Clustering coefficient
#'
#' @param net network object
#'
#' @return clustering coefficient, \deqn{\frac{3 \times triangles}{two-paths}}
#' @export
#' @importFrom ergm summary.formula
#' @importFrom network network
#'
#' @examples
#' n <- makeNetwork(10, .3)
#' clusteringCoef(n)
clusteringCoef = function(net) {
... |
##======================================##
## Coursera - Getting and Cleaning Data
## "Tidy Data" course project
##======================================##
## Requirements:
## "Human Activity Recognition Using Smartphones Data Set"
## UCI Machine Learning Repository
## https://d396qusza40orc.cloudfront.net/getdata%2Fpr... | /GettingCleaningData_Project/run_analysis.R | no_license | Jackhawk/datasciencecoursera | R | false | false | 2,720 | r | ##======================================##
## Coursera - Getting and Cleaning Data
## "Tidy Data" course project
##======================================##
## Requirements:
## "Human Activity Recognition Using Smartphones Data Set"
## UCI Machine Learning Repository
## https://d396qusza40orc.cloudfront.net/getdata%2Fpr... |
/*
<codex>
<abstract>AUPinkNoise.r</abstract>
<\codex>
*/
#include <AudioUnit/AudioUnit.r>
#include "AUPinkNoiseVersion.h"
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
#define kAudioUnitResID_AUPinkNoise 1000
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUPinkNoise~~~~~~~~~~~~~~~~~~~... | /AUPinkNoise/AUPinkNoise.r | no_license | ocrickard/CocoaSampleCode | R | false | false | 708 | r | /*
<codex>
<abstract>AUPinkNoise.r</abstract>
<\codex>
*/
#include <AudioUnit/AudioUnit.r>
#include "AUPinkNoiseVersion.h"
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
#define kAudioUnitResID_AUPinkNoise 1000
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AUPinkNoise~~~~~~~~~~~~~~~~~~~... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/worker.R
\name{worker}
\alias{worker}
\title{Initialize jiebaR worker}
\usage{
worker(type = "mix", dict = DICTPATH, hmm = HMMPATH, user = USERPATH,
idf = IDFPATH, stop_word = STOPPATH, write = T, qmax = 20, topn = 5,
encoding = "... | /man/worker.Rd | permissive | Veterun/jiebaR | R | false | true | 5,941 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/worker.R
\name{worker}
\alias{worker}
\title{Initialize jiebaR worker}
\usage{
worker(type = "mix", dict = DICTPATH, hmm = HMMPATH, user = USERPATH,
idf = IDFPATH, stop_word = STOPPATH, write = T, qmax = 20, topn = 5,
encoding = "... |
## The script assumes that the load_data.R is contained in the current R
## working directory which in turn assumes that unzipped data has already been
## downloaded. If not, then please follow the instructions in load_data.R file
## to download the dataset into the current R working directory.
## load data using loa... | /plot2.R | no_license | jayantsahewal/ExData_Plotting1 | R | false | false | 688 | r | ## The script assumes that the load_data.R is contained in the current R
## working directory which in turn assumes that unzipped data has already been
## downloaded. If not, then please follow the instructions in load_data.R file
## to download the dataset into the current R working directory.
## load data using loa... |
classifyBurnability <- function(cohortData, pixelGroupMap, pixelsToSubset = NULL){
#
# NEEDS TO BE REDONE BASED ON !runMe.R!
# # Function to reclassify
# reclassCohortData <- function(cohortData, reclassTable){
# newCohortData <- cohortData[reclassTable, on = "speciesCode"]
# newCohortData[age < ... | /functions/not_included/classifyBurnability.R | no_license | tati-micheletti/NWT | R | false | false | 2,457 | r | classifyBurnability <- function(cohortData, pixelGroupMap, pixelsToSubset = NULL){
#
# NEEDS TO BE REDONE BASED ON !runMe.R!
# # Function to reclassify
# reclassCohortData <- function(cohortData, reclassTable){
# newCohortData <- cohortData[reclassTable, on = "speciesCode"]
# newCohortData[age < ... |
library(QRM)
### Name: dji
### Title: Dow Jones Index
### Aliases: dji dji.df
### Keywords: datasets
### ** Examples
data(dji)
head(dji)
| /data/genthat_extracted_code/QRM/examples/dji.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 146 | r | library(QRM)
### Name: dji
### Title: Dow Jones Index
### Aliases: dji dji.df
### Keywords: datasets
### ** Examples
data(dji)
head(dji)
|
library(SenSrivastava)
### Name: E2.2
### Title: Data on House Prices
### Aliases: E2.2
### Keywords: datasets
### ** Examples
data(E2.2)
summary(E2.2)
| /data/genthat_extracted_code/SenSrivastava/examples/E2.2.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 159 | r | library(SenSrivastava)
### Name: E2.2
### Title: Data on House Prices
### Aliases: E2.2
### Keywords: datasets
### ** Examples
data(E2.2)
summary(E2.2)
|
# PUMP EO - F1
# PUMP06/PUMP07/PUMP11 - No F1
setwd("/Users/iris/Desktop/NRL/PUMP/PUMP/PUMPAPDM/StandingEO")
PUMPpath <- "/Users/iris/Desktop/NRL/PUMP/PUMP"
PUMPfiles <- list.files(PUMPpath)[-12]
PUMPfiles <- PUMPfiles[-c(6,7,11)]
for (x in PUMPfiles){
id <- x
path <- paste0(PUMPpath,"/",x,"/APDMFolUp1")
files <... | /PUMP/PUMPAPDM/StandingEO/PUMP_StandingEO_F1.R | no_license | irislxxy/NRL | R | false | false | 966 | r | # PUMP EO - F1
# PUMP06/PUMP07/PUMP11 - No F1
setwd("/Users/iris/Desktop/NRL/PUMP/PUMP/PUMPAPDM/StandingEO")
PUMPpath <- "/Users/iris/Desktop/NRL/PUMP/PUMP"
PUMPfiles <- list.files(PUMPpath)[-12]
PUMPfiles <- PUMPfiles[-c(6,7,11)]
for (x in PUMPfiles){
id <- x
path <- paste0(PUMPpath,"/",x,"/APDMFolUp1")
files <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimal_transport.R
\name{iterative_optimal_transport}
\alias{iterative_optimal_transport}
\title{Iterate the optimal transport problem with penalization for different lambda.}
\usage{
iterative_optimal_transport(X, Y, Q = NULL, lambda = 0.01... | /man/iterative_optimal_transport.Rd | no_license | youngser/nonparGraphTesting | R | false | true | 1,261 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimal_transport.R
\name{iterative_optimal_transport}
\alias{iterative_optimal_transport}
\title{Iterate the optimal transport problem with penalization for different lambda.}
\usage{
iterative_optimal_transport(X, Y, Q = NULL, lambda = 0.01... |
library("knitr")
library("rgl")
#knit("flurochloridone.Rmd")
#markdownToHTML('flurochloridone.md', 'flurochloridone.html', options=c("use_xhml"))
#system("pandoc -s flurochloridone.html -o flurochloridone.pdf")
knit2html('flurochloridone.Rmd')
| /FDA_Pesticide_Glossary/flurochloridone.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 246 | r | library("knitr")
library("rgl")
#knit("flurochloridone.Rmd")
#markdownToHTML('flurochloridone.md', 'flurochloridone.html', options=c("use_xhml"))
#system("pandoc -s flurochloridone.html -o flurochloridone.pdf")
knit2html('flurochloridone.Rmd')
|
# -----------------------------------------------------------------------------#
# --- Funciones para la identificación de eventos ----
# -----------------------------------------------------------------------------#
# Función para transformar a longitudes de cadenas
transformarALongitudesCadenas = function(x) {
#... | /IdentificarEventos/lib/funciones_eventos.R | no_license | CRC-SAS/indices-eventos | R | false | false | 10,962 | r |
# -----------------------------------------------------------------------------#
# --- Funciones para la identificación de eventos ----
# -----------------------------------------------------------------------------#
# Función para transformar a longitudes de cadenas
transformarALongitudesCadenas = function(x) {
#... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create.report.R
\name{create.report}
\alias{create.report}
\title{Create a PDF report for a vertical profile performed using an optical package}
\usage{
create.report(dirdat)
}
\arguments{
\item{dirdat}{is the current directory path contaning... | /man/create.report.Rd | no_license | arboit/Riops | R | false | true | 1,404 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create.report.R
\name{create.report}
\alias{create.report}
\title{Create a PDF report for a vertical profile performed using an optical package}
\usage{
create.report(dirdat)
}
\arguments{
\item{dirdat}{is the current directory path contaning... |
###
source("../eqtl_functions.R")
library(GenomicRanges)
library(clusterProfiler)
library(limma)
##### summary statistics ####
load("rdas/devStats_controlSamples.rda")
#################################
###### Create isoform switches ##########
# drop genes
rangeList = lapply(statList[-1], function(x) {
cat(".")
x... | /devel/isoform_switches.R | permissive | LieberInstitute/BrainSeq_Phase1 | R | false | false | 8,070 | r | ###
source("../eqtl_functions.R")
library(GenomicRanges)
library(clusterProfiler)
library(limma)
##### summary statistics ####
load("rdas/devStats_controlSamples.rda")
#################################
###### Create isoform switches ##########
# drop genes
rangeList = lapply(statList[-1], function(x) {
cat(".")
x... |
library(lme4)
library(lmerTest)
library(ggplot2)
setwd('/Users/Bubba/Desktop/COGS195/Github/RattleNN/RattleResults')
rattledata = read.csv('50data.csv')
colnames(rattledata) = c("run","yoked","sec","RMS","f")
rattledata$yoked[rattledata$yoked==0] = "RMS-reinforced"
rattledata$yoked[rattledata$yoked==1] = "yoked contr... | /RattleResults/3-5 Rattle A Servo 3/DataAnalysis.R | no_license | yehsk8rz/RattleNN | R | false | false | 3,711 | r | library(lme4)
library(lmerTest)
library(ggplot2)
setwd('/Users/Bubba/Desktop/COGS195/Github/RattleNN/RattleResults')
rattledata = read.csv('50data.csv')
colnames(rattledata) = c("run","yoked","sec","RMS","f")
rattledata$yoked[rattledata$yoked==0] = "RMS-reinforced"
rattledata$yoked[rattledata$yoked==1] = "yoked contr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Tick2Sec.R
\name{to_secBATV}
\alias{to_secBATV}
\alias{alltick2sec}
\title{Convert tick data to one-second data}
\usage{
to_secBATV(x)
alltick2sec(getdir = "~/TRTH/tick/", savedir = "~/TRTH/sec/",
Symbols = list.files(getdir), overwrite = ... | /man/Tick2Sec.Rd | no_license | cran/FinancialInstrument | R | false | true | 2,401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Tick2Sec.R
\name{to_secBATV}
\alias{to_secBATV}
\alias{alltick2sec}
\title{Convert tick data to one-second data}
\usage{
to_secBATV(x)
alltick2sec(getdir = "~/TRTH/tick/", savedir = "~/TRTH/sec/",
Symbols = list.files(getdir), overwrite = ... |
#!/usr/bin/env Rscript
# about named vectors
nv <- 11:15
object.size(nv)
names(nv) <- c("Num1", "Sum1", "Lum1", "Dum1", "Rum1")
# to see named vectors without the names, use unname() ... note the two n's.
object.size(nv)
object.size(names(nv))
# You're able to search on the names, but always using the names() func... | /nv0.R | no_license | rafalcode/r-fresh | R | false | false | 371 | r | #!/usr/bin/env Rscript
# about named vectors
nv <- 11:15
object.size(nv)
names(nv) <- c("Num1", "Sum1", "Lum1", "Dum1", "Rum1")
# to see named vectors without the names, use unname() ... note the two n's.
object.size(nv)
object.size(names(nv))
# You're able to search on the names, but always using the names() func... |
# First pass PM detection. Takes in grayscale image and the reference
# GFP image. Removes detected membranes that intersect with image edges.
# Returns a list of removed membrane objects, detected membrane objects,
# and computed features.
detect_membranes <-function(img, channels, factor, chan, cutoff, cnum)
{
... | /src/cells.R | no_license | sah129/CellQuant | R | false | false | 2,283 | r | # First pass PM detection. Takes in grayscale image and the reference
# GFP image. Removes detected membranes that intersect with image edges.
# Returns a list of removed membrane objects, detected membrane objects,
# and computed features.
detect_membranes <-function(img, channels, factor, chan, cutoff, cnum)
{
... |
## ---- echo=FALSE, message = FALSE----------------------------------------
library(RLumModel)
## ----global_options, include=FALSE---------------------------------------
knitr::opts_chunk$set(fig.pos = 'H', fig.align = 'center')
## ------------------------------------------------------------------------
own_paramete... | /data/genthat_extracted_code/RLumModel/vignettes/RLumModel_-_Using_own_parameter_sets.R | no_license | surayaaramli/typeRrh | R | false | false | 5,245 | r | ## ---- echo=FALSE, message = FALSE----------------------------------------
library(RLumModel)
## ----global_options, include=FALSE---------------------------------------
knitr::opts_chunk$set(fig.pos = 'H', fig.align = 'center')
## ------------------------------------------------------------------------
own_paramete... |
library(rJava)
library(xlsxjars)
library(xlsx)
weeklyData = read.xlsx("C:/Users/Marc Pfeiffer/Desktop/Baruch Pre-MFE/NLA/Homework 6/data-DJ30-july2011-june2013.xlsx", 1, header=TRUE)
monthlyData = read.xlsx("C:/Users/Marc Pfeiffer/Desktop/Baruch Pre-MFE/NLA/Homework 6/data-DJ30-july2011-june2013.xlsx", 2, header=... | /Cov and Cor matrix.R | no_license | marc54/Finance | R | false | false | 1,937 | r | library(rJava)
library(xlsxjars)
library(xlsx)
weeklyData = read.xlsx("C:/Users/Marc Pfeiffer/Desktop/Baruch Pre-MFE/NLA/Homework 6/data-DJ30-july2011-june2013.xlsx", 1, header=TRUE)
monthlyData = read.xlsx("C:/Users/Marc Pfeiffer/Desktop/Baruch Pre-MFE/NLA/Homework 6/data-DJ30-july2011-june2013.xlsx", 2, header=... |
library(shiny)
library(nortest)
library(ggplot2)
#########################
fileList = list.files(path = "data/Generated-NA/", pattern="txt")
fileList.noExt=gsub(".txt", "", fileList)
AaCode.wGly = c("Alanine","Arginine","Asparagine","Aspartate","Cystine","Glutamine","Glutamate","Glycine","Histidine","Isoleucine","Leuc... | /server.R | no_license | billchenxi/Shiny-RefDB-Data-Analysis-App | R | false | false | 3,993 | r | library(shiny)
library(nortest)
library(ggplot2)
#########################
fileList = list.files(path = "data/Generated-NA/", pattern="txt")
fileList.noExt=gsub(".txt", "", fileList)
AaCode.wGly = c("Alanine","Arginine","Asparagine","Aspartate","Cystine","Glutamine","Glutamate","Glycine","Histidine","Isoleucine","Leuc... |
# woebin woebin_plot woebin_ply woebin_adj
# converting vector (breaks & special_values) to data frame
split_vec_todf = function(vec) {
value = . = bin_chr = V1 = NULL
if (!is.null(vec)) data.table(
value=vec, bin_chr=vec
)[, rowid := .I
][, strsplit(as.character(value), "%,%", fixed=TRUE), by = .(rowid, ... | /R/woebin.R | permissive | SimaShanhe/scorecard | R | false | false | 55,011 | r | # woebin woebin_plot woebin_ply woebin_adj
# converting vector (breaks & special_values) to data frame
split_vec_todf = function(vec) {
value = . = bin_chr = V1 = NULL
if (!is.null(vec)) data.table(
value=vec, bin_chr=vec
)[, rowid := .I
][, strsplit(as.character(value), "%,%", fixed=TRUE), by = .(rowid, ... |
.setUp <-
function()
{
## create a project to fill with entities
project <- createEntity(Project())
synapseClient:::.setCache("testProject", project)
}
.tearDown <-
function()
{
## delete the test project
deleteEntity(synapseClient:::.getCache("testProject"))
}
#
# This code exercises the file services ... | /inst/integrationTests/test_entityFileAccess.R | no_license | cbare/rSynapseClient | R | false | false | 1,880 | r | .setUp <-
function()
{
## create a project to fill with entities
project <- createEntity(Project())
synapseClient:::.setCache("testProject", project)
}
.tearDown <-
function()
{
## delete the test project
deleteEntity(synapseClient:::.getCache("testProject"))
}
#
# This code exercises the file services ... |
#data
x=c(2.5,0.5 ,2.2 ,1.9 ,3.1 ,2.3 ,2 ,1 ,1.5 ,1.1)
y=c(2.4, 0.7, 2.9, 2.2, 3.0, 2.7, 1.6,1.1,1.6,0.9)
#mean
mean_x=mean(x)
mean_y=mean(y)
x_minus_mean = x - mean_x
y_minus_mean = y - mean_y
#covariance matrix
cov_matrix = matrix(nrow=2, ncol=2)
cov_matrix[1,1] = cov(x,x)
cov_matrix[2,2] = cov(y,y)
... | /trials/R/pca_understanding.R | no_license | sahilmakkar1983/PocAndTrials | R | false | false | 502 | r | #data
x=c(2.5,0.5 ,2.2 ,1.9 ,3.1 ,2.3 ,2 ,1 ,1.5 ,1.1)
y=c(2.4, 0.7, 2.9, 2.2, 3.0, 2.7, 1.6,1.1,1.6,0.9)
#mean
mean_x=mean(x)
mean_y=mean(y)
x_minus_mean = x - mean_x
y_minus_mean = y - mean_y
#covariance matrix
cov_matrix = matrix(nrow=2, ncol=2)
cov_matrix[1,1] = cov(x,x)
cov_matrix[2,2] = cov(y,y)
... |
dvStudyAtom <-
function( objectid, dv=getOption('dvn'), user=getOption('dvn.user'),
pwd=getOption('dvn.pwd'), browser=FALSE, ...){
if(is.null(user) | is.null(pwd))
stop('Must specify username (`user`) and password (`pwd`)')
xml <- dvDepositQuery(query=paste('edit/study/',objectid,sep=''), ... | /R/dvStudyAtom.r | no_license | imclab/dvn | R | false | false | 1,114 | r | dvStudyAtom <-
function( objectid, dv=getOption('dvn'), user=getOption('dvn.user'),
pwd=getOption('dvn.pwd'), browser=FALSE, ...){
if(is.null(user) | is.null(pwd))
stop('Must specify username (`user`) and password (`pwd`)')
xml <- dvDepositQuery(query=paste('edit/study/',objectid,sep=''), ... |
testlist <- list(x = c(2.08654997741738e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
result <- do.call(myTAI:::cpp_geom_mean,testlist)
str(result) | /myTAI/inst/testfiles/cpp_geom_mean/AFL_cpp_geom_mean/cpp_geom_mean_valgrind_files/1615843232-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 169 | r | testlist <- list(x = c(2.08654997741738e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
result <- do.call(myTAI:::cpp_geom_mean,testlist)
str(result) |
V1 <- read.table('Pica-pau.txt', header = TRUE, dec='.')
sum(V1$especie=="verde")
Caracol_data <- as.data.frame(read.csv(file="https://www.dropbox.com/s/9wnr69i6bjhqyct/Snail_feeding.csv?dl=1",
header = T,
strip.white = T,
... | /exercio7.R | no_license | Tiagoblima/r-course-ufrpe | R | false | false | 2,678 | r |
V1 <- read.table('Pica-pau.txt', header = TRUE, dec='.')
sum(V1$especie=="verde")
Caracol_data <- as.data.frame(read.csv(file="https://www.dropbox.com/s/9wnr69i6bjhqyct/Snail_feeding.csv?dl=1",
header = T,
strip.white = T,
... |
library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree50time73.txt")
sim.chrom<-read.table("chrom50time73.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.036, ... | /Simulations tree height/50 my/optim50tree73.R | no_license | roszenil/Bichromdryad | R | false | false | 821 | r | library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree50time73.txt")
sim.chrom<-read.table("chrom50time73.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.036, ... |
## Programming Assignment 2: Lexical Scoping
## Data Science Specialization Track
## Name: Jose Alberto Valdez Crespo
## Date: June 18, 2015
## makeCacheMatrix is a function that creates a special "matrix" object
## that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
## Variable "cache" is... | /cachematrix.R | no_license | javcsjc/ProgrammingAssignment2 | R | false | false | 1,863 | r | ## Programming Assignment 2: Lexical Scoping
## Data Science Specialization Track
## Name: Jose Alberto Valdez Crespo
## Date: June 18, 2015
## makeCacheMatrix is a function that creates a special "matrix" object
## that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
## Variable "cache" is... |
orthpredfilters<-function(filter = c(0.5, 1, 0.5)){
n<-length(filter)
ri<-(n+1)/2 # only works for odd length filter
A<-matrix (NA,n,n)
if(n==2){ # nbr , remove
A<-matrix(c(-1,1,1,1),2,2)
}
if (n==3){
A[,1]<-c(1,-1,1)
A[,2]<-filter
A[,3]<-c(-(1+filter[3])/(filter[1]+1),-(filter[3]-filter[1])/(filter[1]+1),1)
}... | /R/orthpredfilters.R | no_license | nunesmatt/CNLTreg | R | false | false | 641 | r | orthpredfilters<-function(filter = c(0.5, 1, 0.5)){
n<-length(filter)
ri<-(n+1)/2 # only works for odd length filter
A<-matrix (NA,n,n)
if(n==2){ # nbr , remove
A<-matrix(c(-1,1,1,1),2,2)
}
if (n==3){
A[,1]<-c(1,-1,1)
A[,2]<-filter
A[,3]<-c(-(1+filter[3])/(filter[1]+1),-(filter[3]-filter[1])/(filter[1]+1),1)
}... |
complete <- function(directory, id = 1:332){
# create files list
filenames <- list.files(directory, pattern = '*.csv')
# create vector to store data
vals <- vector()
#loop over id's
for(i in id){
filename <- sprintf('%03d.csv', i)
filepath <- paste(directory, filename, ... | /Course02_RProgramming/week2_quiz/complete.R | no_license | sqzhang-jeremy/coursera-JHU-data-science | R | false | false | 774 | r | complete <- function(directory, id = 1:332){
# create files list
filenames <- list.files(directory, pattern = '*.csv')
# create vector to store data
vals <- vector()
#loop over id's
for(i in id){
filename <- sprintf('%03d.csv', i)
filepath <- paste(directory, filename, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/b_names.R
\name{b_names}
\alias{b_names}
\title{Show the column names for a data.frame in alphabetical order}
\usage{
b_names(df)
}
\arguments{
\item{df}{the data.frame to inspect}
}
\description{
This is a slight modification of \code{names}... | /man/b_names.Rd | no_license | willbmisled/bm | R | false | true | 352 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/b_names.R
\name{b_names}
\alias{b_names}
\title{Show the column names for a data.frame in alphabetical order}
\usage{
b_names(df)
}
\arguments{
\item{df}{the data.frame to inspect}
}
\description{
This is a slight modification of \code{names}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ah02_extract_user_info.R
\name{extract_personal_info}
\alias{extract_personal_info}
\title{Extracts information about the user}
\usage{
extract_personal_info(fitness_data)
}
\arguments{
\item{fitness_data}{Fitness data created with
[read_appl... | /man/extract_personal_info.Rd | no_license | paulstaab/healthieR | R | false | true | 1,054 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ah02_extract_user_info.R
\name{extract_personal_info}
\alias{extract_personal_info}
\title{Extracts information about the user}
\usage{
extract_personal_info(fitness_data)
}
\arguments{
\item{fitness_data}{Fitness data created with
[read_appl... |
#Created a vector containing species names
Species=c("Myotragus balearicus",
"Ursus spelaeus",
"Homotherium sp",
"Cygnus falconeri",
"Theriosuchus sympiestodon",
"Eurazhdarcho langendorfensis",
"Bos primigenius",
"Prolagus sardus",
"Pinguin... | /biol432/DataGeneration.R | no_license | avalmahsa/Dataset-simulation | R | false | false | 1,415 | r | #Created a vector containing species names
Species=c("Myotragus balearicus",
"Ursus spelaeus",
"Homotherium sp",
"Cygnus falconeri",
"Theriosuchus sympiestodon",
"Eurazhdarcho langendorfensis",
"Bos primigenius",
"Prolagus sardus",
"Pinguin... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11849
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11848
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11848
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt19_90_352/stmt19_90_352.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 718 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11849
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11848
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11848
c
c Input Parameter (command line, ... |
library(httr)
library(jsonlite)
library(shiny)
library(tidyverse)
library(scales)
library(rsconnect)
covid_dta <- data.frame(Date=as.Date(character()),
Country=character(),
Confirmed=integer(),
Deaths=integer(),
str... | /app.r | no_license | iambabs/covid-app | R | false | false | 2,532 | r | library(httr)
library(jsonlite)
library(shiny)
library(tidyverse)
library(scales)
library(rsconnect)
covid_dta <- data.frame(Date=as.Date(character()),
Country=character(),
Confirmed=integer(),
Deaths=integer(),
str... |
# #set working directory
# setwd(paste0(Sys.getenv("HOME"), "/v4_MDG/GP"))
#
# #get z drive path
# load("../zdrive_path.RData")
path_output <- Sys.getenv("path_output")
path_input <- Sys.getenv("path_input")
setwd(path_input)
print(getwd())
library(TMB)
library(INLA)
library(geometry)
rmse_vec <- function(x, y, na.... | /GP/all_fits_tri.R | no_license | rarambepola/google_cloud_stuff | R | false | false | 5,539 | r | # #set working directory
# setwd(paste0(Sys.getenv("HOME"), "/v4_MDG/GP"))
#
# #get z drive path
# load("../zdrive_path.RData")
path_output <- Sys.getenv("path_output")
path_input <- Sys.getenv("path_input")
setwd(path_input)
print(getwd())
library(TMB)
library(INLA)
library(geometry)
rmse_vec <- function(x, y, na.... |
# date time=2019/4/16 19:43:55
setwd('/Users/takatoosetsuo/Dropbox/2019polytec/lectures/0520/presen/fig/drawsine')
source('/Applications/kettex/texlive/texmf-dist/scripts/ketcindy/ketlib/ketpiccurrent.r')
Ketinit()
cat(ThisVersion,'\n')
Fnametex='p025.tex'
FnameR='p025.r'
Fnameout='p025.txt'
arccos=acos; arcsin=asin; ... | /examples/sankakugraph/fig/drawsine/p025.r | no_license | s-takato/s-takato.github.io | R | false | false | 1,669 | r | # date time=2019/4/16 19:43:55
setwd('/Users/takatoosetsuo/Dropbox/2019polytec/lectures/0520/presen/fig/drawsine')
source('/Applications/kettex/texlive/texmf-dist/scripts/ketcindy/ketlib/ketpiccurrent.r')
Ketinit()
cat(ThisVersion,'\n')
Fnametex='p025.tex'
FnameR='p025.r'
Fnameout='p025.txt'
arccos=acos; arcsin=asin; ... |
#' Ruscio's A - the probability of superiority
#'
#' This function bootstraps confidence intervals for Ruscio's A effect size (2008).
#' Code adapted from adapted from John Ruscio's original implementation of his metric: https://ruscio.pages.tcnj.edu/quantitative-methods-program-code/
#' @param data data
#' @param var... | /R/ruscios_A.R | no_license | ianhussey/SCED | R | false | false | 1,821 | r | #' Ruscio's A - the probability of superiority
#'
#' This function bootstraps confidence intervals for Ruscio's A effect size (2008).
#' Code adapted from adapted from John Ruscio's original implementation of his metric: https://ruscio.pages.tcnj.edu/quantitative-methods-program-code/
#' @param data data
#' @param var... |
rm(list=ls())
knitr::opts_chunk$set(fig.width=8, fig.height=5,
echo=TRUE, warning=FALSE, message=FALSE, cache=TRUE)
suppressPackageStartupMessages(c("dplyr","langcog","tidyr","ggplot2","lme4"))
#library(langcog)a
library(dplyr)
library(ggplot2)
library(rjson)
library(stringr)
library(tidyr)
libr... | /experiments/ratings/_old/recognition_ratings_cogsci2018/analysis/analysis_recRatingsv1.R | no_license | brialorelle/kiddraw | R | false | false | 1,696 | r |
rm(list=ls())
knitr::opts_chunk$set(fig.width=8, fig.height=5,
echo=TRUE, warning=FALSE, message=FALSE, cache=TRUE)
suppressPackageStartupMessages(c("dplyr","langcog","tidyr","ggplot2","lme4"))
#library(langcog)a
library(dplyr)
library(ggplot2)
library(rjson)
library(stringr)
library(tidyr)
libr... |
library(datasets)
library(data.table)
#1 read and subset the data
df.project <- fread("./household_power_consumption.txt", sep = ";", header = T, colClasses = 'character')
df.project <- subset(df.project, df.project$Date =="1/2/2007" | df.project$Date =="2/2/2007")
#4 Create a png file with required dimentions
png<-... | /plot4.R | no_license | masroorrizvi/ExData_Plotting1 | R | false | false | 1,464 | r | library(datasets)
library(data.table)
#1 read and subset the data
df.project <- fread("./household_power_consumption.txt", sep = ";", header = T, colClasses = 'character')
df.project <- subset(df.project, df.project$Date =="1/2/2007" | df.project$Date =="2/2/2007")
#4 Create a png file with required dimentions
png<-... |
##Read data & set tidy column names
FullPower <-read.table("household_power_consumption.txt", header = TRUE, sep = ";")
colnames(FullPower) <- c("Date","Time","Active","Reactive","Voltage","Intensity","SubMeter1","SubMeter2","SubMeter3")
##Subset data by date, merge date and time
FullPower$Date <- as.Date(FullPower$Dat... | /plot3.R | no_license | heatherhessel/ExData_Plotting1 | R | false | false | 1,017 | r | ##Read data & set tidy column names
FullPower <-read.table("household_power_consumption.txt", header = TRUE, sep = ";")
colnames(FullPower) <- c("Date","Time","Active","Reactive","Voltage","Intensity","SubMeter1","SubMeter2","SubMeter3")
##Subset data by date, merge date and time
FullPower$Date <- as.Date(FullPower$Dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exRawChnkAdultData.R
\docType{data}
\name{exRawChnkAdultData}
\alias{exRawChnkAdultData}
\title{Example Chinook Adult Data from LGTrappingDB}
\format{Data exported from the LGTrappingDB and originally saved as a csv file}
\usage{
exRawChnkAdu... | /man/exRawChnkAdultData.Rd | no_license | lawrykatherine/SCOBI | R | false | true | 562 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exRawChnkAdultData.R
\docType{data}
\name{exRawChnkAdultData}
\alias{exRawChnkAdultData}
\title{Example Chinook Adult Data from LGTrappingDB}
\format{Data exported from the LGTrappingDB and originally saved as a csv file}
\usage{
exRawChnkAdu... |
#### Loading the data in #####
data <- read.csv("C:/Users/talmo/Documents/activity.csv", stringsAsFactors=FALSE)
head(data)
# set date column and seperate week versus weekend days:
data$date <- as.POSIXct(data$date, format="%Y-%m-%d")
data$weekday<-weekdays(data$date)
data$weekend.week <- ""
for (i in 1:nrow(... | /reporting_data_assig1_TM.R | no_license | talmormeir/RepData_PeerAssessment1 | R | false | false | 2,800 | r | #### Loading the data in #####
data <- read.csv("C:/Users/talmo/Documents/activity.csv", stringsAsFactors=FALSE)
head(data)
# set date column and seperate week versus weekend days:
data$date <- as.POSIXct(data$date, format="%Y-%m-%d")
data$weekday<-weekdays(data$date)
data$weekend.week <- ""
for (i in 1:nrow(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.ec2_operations.R
\name{delete_vpc_peering_connection}
\alias{delete_vpc_peering_connection}
\title{Deletes a VPC peering connection}
\usage{
delete_vpc_peering_connection(DryRun = NULL, VpcPeeringConnectionId)
}
\arguments{
\item{DryRun}... | /service/paws.ec2/man/delete_vpc_peering_connection.Rd | permissive | CR-Mercado/paws | R | false | true | 1,192 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.ec2_operations.R
\name{delete_vpc_peering_connection}
\alias{delete_vpc_peering_connection}
\title{Deletes a VPC peering connection}
\usage{
delete_vpc_peering_connection(DryRun = NULL, VpcPeeringConnectionId)
}
\arguments{
\item{DryRun}... |
env.cov<-function(covariate,month,threshold=NA,high.low=NA,
freq.dur=NA,FUN=NULL){
if(!is.null(FUN) & any(!is.na(threshold),!is.na(high.low),!is.na(freq.dur))){
stop("cannot define both 'FUN' and threshold/high.low/freq.dur")
}
if(!covariate %in% c('discharge','temperature')){
stop... | /oldCode/env_prep/create_covariates.R | no_license | evanchildress/trout_yoy | R | false | false | 3,820 | r | env.cov<-function(covariate,month,threshold=NA,high.low=NA,
freq.dur=NA,FUN=NULL){
if(!is.null(FUN) & any(!is.na(threshold),!is.na(high.low),!is.na(freq.dur))){
stop("cannot define both 'FUN' and threshold/high.low/freq.dur")
}
if(!covariate %in% c('discharge','temperature')){
stop... |
options(scipen=999)
library(HMDHFDplus)
library(dplyr)
library(tidyr)
## reading the data from Mx_1x1 tables from HMD for Countries listed in appendix A of paper:
## A Neural Network Extension of the Lee-Carter Modelto Multiple Populations Ronald Richman∗Mario V. W ̈uthrich (Version of October 22, 2018)
stat <- "Mx... | /02 - Life/Mortality_forecasting/LC CNN/_scripts/0_dataReading.R | no_license | tongliaowuqilong/grupa_ads | R | false | false | 2,553 | r | options(scipen=999)
library(HMDHFDplus)
library(dplyr)
library(tidyr)
## reading the data from Mx_1x1 tables from HMD for Countries listed in appendix A of paper:
## A Neural Network Extension of the Lee-Carter Modelto Multiple Populations Ronald Richman∗Mario V. W ̈uthrich (Version of October 22, 2018)
stat <- "Mx... |
library(parsnip)
### Name: fit.model_spec
### Title: Fit a Model Specification to a Dataset
### Aliases: fit.model_spec fit_xy.model_spec
### ** Examples
# Although `glm` only has a formula interface, different
# methods for specifying the model can be used
library(dplyr)
data("lending_club")
lr_mod <- logistic_r... | /data/genthat_extracted_code/parsnip/examples/fit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 635 | r | library(parsnip)
### Name: fit.model_spec
### Title: Fit a Model Specification to a Dataset
### Aliases: fit.model_spec fit_xy.model_spec
### ** Examples
# Although `glm` only has a formula interface, different
# methods for specifying the model can be used
library(dplyr)
data("lending_club")
lr_mod <- logistic_r... |
\name{proteinLocsToGenomic}
\alias{proteinLocsToGenomic}
\title{
Obtaining the genomic coordinates for a list of protein sections
}
\description{
The function takes a list of protein sections and the corresponding ENSEMBL ID
of these proteins, and tries to find the genomic coordinates of these protein
sections.
}
\usa... | /man/proteinLocsToGenomic.Rd | no_license | cran/geno2proteo | R | false | false | 2,321 | rd | \name{proteinLocsToGenomic}
\alias{proteinLocsToGenomic}
\title{
Obtaining the genomic coordinates for a list of protein sections
}
\description{
The function takes a list of protein sections and the corresponding ENSEMBL ID
of these proteins, and tries to find the genomic coordinates of these protein
sections.
}
\usa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/remove_named_entities.R
\name{remove_named_entities}
\alias{remove_named_entities}
\title{Remove named entities using Python module ntlk}
\usage{
remove_named_entities(input_dir, output_dir, nes_dir)
}
\arguments{
\item{input_dir}{Directory c... | /man/remove_named_entities.Rd | no_license | dtburk/gensci.stm | R | false | true | 592 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/remove_named_entities.R
\name{remove_named_entities}
\alias{remove_named_entities}
\title{Remove named entities using Python module ntlk}
\usage{
remove_named_entities(input_dir, output_dir, nes_dir)
}
\arguments{
\item{input_dir}{Directory c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfcompare.R
\name{dfcompare}
\alias{dfcompare}
\title{Compare two data frames}
\usage{
dfcompare(source, target, keys, summary = TRUE)
}
\arguments{
\item{source}{data frame of the source}
\item{target}{data frame of the target}
\item{keys}... | /man/dfcompare.Rd | permissive | meihkv/dfcompare | R | false | true | 784 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfcompare.R
\name{dfcompare}
\alias{dfcompare}
\title{Compare two data frames}
\usage{
dfcompare(source, target, keys, summary = TRUE)
}
\arguments{
\item{source}{data frame of the source}
\item{target}{data frame of the target}
\item{keys}... |
## read data from txt file
data <- read.table("household_power_consumption.txt",
header = TRUE, sep = ";", na.string = "?")
## convert Date
data$Date <- as.Date(as.character(data$Date), "%d/%m/%Y")
## select data from dates 2007-02-01 and 2007-02-02
datau <- data[(d... | /Documents/RworkingDir/plot3.R | no_license | bossli/ExData_Plotting1 | R | false | false | 1,162 | r | ## read data from txt file
data <- read.table("household_power_consumption.txt",
header = TRUE, sep = ";", na.string = "?")
## convert Date
data$Date <- as.Date(as.character(data$Date), "%d/%m/%Y")
## select data from dates 2007-02-01 and 2007-02-02
datau <- data[(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_documentation.R
\docType{data}
\name{male_first_name}
\alias{male_first_name}
\title{Male first names}
\format{A vector with 159 elements}
\usage{
male_first_name
}
\description{
A character vector containing male first names.
}
\keyword... | /man/male_first_name.Rd | no_license | LudvigOlsen/bhappyr | R | false | true | 331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_documentation.R
\docType{data}
\name{male_first_name}
\alias{male_first_name}
\title{Male first names}
\format{A vector with 159 elements}
\usage{
male_first_name
}
\description{
A character vector containing male first names.
}
\keyword... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boolean.R
\name{consistency}
\alias{consistency}
\title{Compute the consistency value}
\usage{
consistency(formula1, type = "->", formula2, data)
}
\arguments{
\item{formula1}{A string, list of strings or function representing a Boolean formu... | /man/consistency.Rd | no_license | cran/QCAtools | R | false | true | 2,003 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boolean.R
\name{consistency}
\alias{consistency}
\title{Compute the consistency value}
\usage{
consistency(formula1, type = "->", formula2, data)
}
\arguments{
\item{formula1}{A string, list of strings or function representing a Boolean formu... |
library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree2500taxa46.txt")
sim.chrom<-read.table("chrom2500taxa46.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.0... | /SImulations number of taxa/2500 taxa/optim2500taxa46.R | no_license | roszenil/Bichromdryad | R | false | false | 827 | r | library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree2500taxa46.txt")
sim.chrom<-read.table("chrom2500taxa46.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{get.admb.cov}
\alias{get.admb.cov}
\title{Read in the ADMB covariance file.}
\usage{
get.admb.cov(model.path = getwd())
}
\arguments{
\item{model.path}{Path to model (defaults to working directory)}
}
\description{
Read in the ... | /man/get.admb.cov.Rd | no_license | jmannseth/adnuts | R | false | true | 345 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper.R
\name{get.admb.cov}
\alias{get.admb.cov}
\title{Read in the ADMB covariance file.}
\usage{
get.admb.cov(model.path = getwd())
}
\arguments{
\item{model.path}{Path to model (defaults to working directory)}
}
\description{
Read in the ... |
#######################################
# R script for plotting scatterplots #
#######################################
library(psych)
library("ggplot2")
## plot A samples scatter plot
A<-read.table("/.../5_others/scatterplot/Data/A_CPM_merged_all.new.csv", header=TRUE, sep="," )
colnames(A) <-c("Gene","BK_RNA-seq","... | /5_others/scatterplot/scatterplot.R | no_license | oxwang/fda_scRNA-seq | R | false | false | 1,112 | r | #######################################
# R script for plotting scatterplots #
#######################################
library(psych)
library("ggplot2")
## plot A samples scatter plot
A<-read.table("/.../5_others/scatterplot/Data/A_CPM_merged_all.new.csv", header=TRUE, sep="," )
colnames(A) <-c("Gene","BK_RNA-seq","... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gridmet_utils.R
\name{jennings_snow_threshold}
\alias{jennings_snow_threshold}
\title{Jennings Snow Threshold}
\usage{
jennings_snow_threshold(dir = geo_path())
}
\arguments{
\item{dir}{the directory to cache data. Default is \code{geo_path()... | /man/jennings_snow_threshold.Rd | permissive | NOAA-OWP/geogrids | R | false | true | 638 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gridmet_utils.R
\name{jennings_snow_threshold}
\alias{jennings_snow_threshold}
\title{Jennings Snow Threshold}
\usage{
jennings_snow_threshold(dir = geo_path())
}
\arguments{
\item{dir}{the directory to cache data. Default is \code{geo_path()... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{backendBuckets.getIamPolicy}
\alias{backendBuckets.getIamPolicy}
\title{Gets the access control policy for a resource. May be empty if no such policy or resource exists.}
\usage{
backendBuckets.getIamPolicy(project, ... | /googlecomputealpha.auto/man/backendBuckets.getIamPolicy.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,163 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{backendBuckets.getIamPolicy}
\alias{backendBuckets.getIamPolicy}
\title{Gets the access control policy for a resource. May be empty if no such policy or resource exists.}
\usage{
backendBuckets.getIamPolicy(project, ... |
# Plot 3 Class project Week 1
# Read data
dataHousehold<-read.table("household_power_consumption.txt",header=T,sep=";", stringsAsFactors = F)
head(dataHousehold)
# Transform Time column from string to time type
dataHousehold$Time<-strptime(paste(dataHousehold$Date,dataHousehold$Time),"%d/%m/%Y %H:%M:%S")
head(dat... | /plot3.R | no_license | RodrigRicardo/ExData_Plotting1 | R | false | false | 1,413 | r | # Plot 3 Class project Week 1
# Read data
dataHousehold<-read.table("household_power_consumption.txt",header=T,sep=";", stringsAsFactors = F)
head(dataHousehold)
# Transform Time column from string to time type
dataHousehold$Time<-strptime(paste(dataHousehold$Date,dataHousehold$Time),"%d/%m/%Y %H:%M:%S")
head(dat... |
/Pages/2018 국토교통 빅데이터 해커톤 참가작/2018_molit_DataBrothers-master/fig_p_value_combined.R | no_license | molit-korea/main | R | false | false | 2,756 | r | ||
####################################################################################
# SECexplorer
####################################################################################
# Server
## prepare environment
if (!require("shiny")){
install.packages("shiny")
}
if (!require("ggplot2")){
install.packages("ggp... | /server.R | permissive | heuselm/SECexplorer_THP1 | R | false | false | 13,254 | r | ####################################################################################
# SECexplorer
####################################################################################
# Server
## prepare environment
if (!require("shiny")){
install.packages("shiny")
}
if (!require("ggplot2")){
install.packages("ggp... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{fixtrajdominance}
\alias{fixtrajdominance}
\title{Returns a trajectory of a mutation that has fixed due to selection}
\usage{
fixtrajdominance(N, s, h)
}
\arguments{
\item{N}{The diploid population size}
\item{s}{The selection coefficient}
\item{h}{The domima... | /man/fixtrajdominance.Rd | no_license | BioinformaticsMaterials/Rcode4teaching | R | false | false | 713 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{fixtrajdominance}
\alias{fixtrajdominance}
\title{Returns a trajectory of a mutation that has fixed due to selection}
\usage{
fixtrajdominance(N, s, h)
}
\arguments{
\item{N}{The diploid population size}
\item{s}{The selection coefficient}
\item{h}{The domima... |
install.packages("psych")
library(psych)
library(readxl)
CDQ_train <- read_excel("D:/work/dataset/NOx_prediction_(Boiler_9)1.xlsx", sheet = "train")
color.index<-as.factor(CDQ_train$Grade)
pairs.panels(CDQ_train[,2:13], scale=FALSE, font.labels=2, cex.labels=1, bg=c("red","orange","green","blue","black")[color... | /Sample Code/CDQ_Pairplot.R | no_license | shin-nyum/R_Programming_Self-Practice | R | false | false | 347 | r | install.packages("psych")
library(psych)
library(readxl)
CDQ_train <- read_excel("D:/work/dataset/NOx_prediction_(Boiler_9)1.xlsx", sheet = "train")
color.index<-as.factor(CDQ_train$Grade)
pairs.panels(CDQ_train[,2:13], scale=FALSE, font.labels=2, cex.labels=1, bg=c("red","orange","green","blue","black")[color... |
rm(list=ls())
library(DEoptim)
library(mvtnorm)
library(rstan)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
########################################################
# Load data
########################################################
logit <- function(p) log(p / (1-p))
load("smoking.... | /applications/smoking/fitFixed_logit.R | no_license | aejensen/TrendinessOfTrends | R | false | false | 3,729 | r | rm(list=ls())
library(DEoptim)
library(mvtnorm)
library(rstan)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
########################################################
# Load data
########################################################
logit <- function(p) log(p / (1-p))
load("smoking.... |
matching<-function(textname,prefix,postfix)
{
if(textname=="text1")
{
python.assign("pyprefix",prefix)
python.assign("pypostfix",postfix)
python.exec("newprefix=pyprefix.lower()")
python.exec("newpostfix=pypostfix.lower()")
python.exec("pypre=[word.lower() for word in set(text1) if(word.isalpha() and word.startswi... | /word_match.R | no_license | dependency-injection/NLP | R | false | false | 9,074 | r | matching<-function(textname,prefix,postfix)
{
if(textname=="text1")
{
python.assign("pyprefix",prefix)
python.assign("pypostfix",postfix)
python.exec("newprefix=pyprefix.lower()")
python.exec("newpostfix=pypostfix.lower()")
python.exec("pypre=[word.lower() for word in set(text1) if(word.isalpha() and word.startswi... |
#DATA ANALYSIS WITH R
#SESSION#1
#How to install packages in R: vegan
#The vegan package provides tools for descriptive community ecology.
#It has most basic functions of diversity analysis, community ordination and
#dissimilarity analysis.
#Most of its multivariate tools can be used for other data types as well.
#1.... | /R_scripts/Base/Session#1.R | no_license | brunobellisario/Rcourse | R | false | false | 10,882 | r | #DATA ANALYSIS WITH R
#SESSION#1
#How to install packages in R: vegan
#The vegan package provides tools for descriptive community ecology.
#It has most basic functions of diversity analysis, community ordination and
#dissimilarity analysis.
#Most of its multivariate tools can be used for other data types as well.
#1.... |
## Caching the Inverse of a Matrix:
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
temp <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() x
setInv... | /cachematrix.R | no_license | voodooshen/ProgrammingAssignment2 | R | false | false | 1,035 | r | ## Caching the Inverse of a Matrix:
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
temp <- NULL
set <- function(y) {
x <<- y
inverse <<- NULL
}
get <- function() x
setInv... |
## Started by saving data for Course Project 1 to working directory
# read data and store to data frame gr1
# noted that data is delimited by ";", NA values are denoted by "?"
gr1 <- read.table("household_power_consumption.txt",sep=";",header=T,na.strings="?")
# recategorize data in field "Date" as date, from text fo... | /plot4.R | no_license | andycataldo/ExData_Plotting1 | R | false | false | 1,640 | r | ## Started by saving data for Course Project 1 to working directory
# read data and store to data frame gr1
# noted that data is delimited by ";", NA values are denoted by "?"
gr1 <- read.table("household_power_consumption.txt",sep=";",header=T,na.strings="?")
# recategorize data in field "Date" as date, from text fo... |
library("R.utils")
opager <- options(pager=mpager)
file <- system.file("DESCRIPTION", package="R.utils")
cat("Displaying: ", file, ":\n", sep="")
displayCode(file)
file <- system.file("NEWS.md", package="R.utils")
cat("Displaying: ", file, ":\n", sep="")
displayCode(file, numerate=FALSE, lines=100:110, wrap=65)
fil... | /tests/displayCode.R | no_license | HenrikBengtsson/R.utils | R | false | false | 1,025 | r | library("R.utils")
opager <- options(pager=mpager)
file <- system.file("DESCRIPTION", package="R.utils")
cat("Displaying: ", file, ":\n", sep="")
displayCode(file)
file <- system.file("NEWS.md", package="R.utils")
cat("Displaying: ", file, ":\n", sep="")
displayCode(file, numerate=FALSE, lines=100:110, wrap=65)
fil... |
#' @title List updates about a person
#' @description Function to List updates about a person from pipedrive.
#' @param id ID of the person
#' @param start Pagination start
#' @param limit Items shown per page
#' @param api_token To validate your requests, you'll need your api_token - this means that our system wi... | /R/persons.get.flow.R | no_license | cran/Rpipedrive | R | false | false | 1,598 | r | #' @title List updates about a person
#' @description Function to List updates about a person from pipedrive.
#' @param id ID of the person
#' @param start Pagination start
#' @param limit Items shown per page
#' @param api_token To validate your requests, you'll need your api_token - this means that our system wi... |
#########################################################################################
# IMPORT LIBRARIES
#########################################################################################
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require(caret)) instal... | /MovieLens_Dataset_Analysis.R | no_license | hfmart1/HarvardX_PH125.9x_MovieLens | R | false | false | 17,002 | r | #########################################################################################
# IMPORT LIBRARIES
#########################################################################################
if(!require(tidyverse)) install.packages("tidyverse", repos = "http://cran.us.r-project.org")
if(!require(caret)) instal... |
library(digest)
input <- "bgvyzdsv"
keys <- paste0(input, 1:5e5)
hashes <- sapply(keys, digest, algo = "md5", serialize = FALSE)
which(substr(hashes, 1, 5) == "00000")
# 254575
keys2 <- paste0(input, 1e6:2e6)
hashes2 <- sapply(keys2, digest, algo = "md5", serialize = FALSE)
which(substr(hashes2, 1, 6) == "000000")... | /day04/1,2-md5.R | no_license | pdil/adventR | R | false | false | 532 | r |
library(digest)
input <- "bgvyzdsv"
keys <- paste0(input, 1:5e5)
hashes <- sapply(keys, digest, algo = "md5", serialize = FALSE)
which(substr(hashes, 1, 5) == "00000")
# 254575
keys2 <- paste0(input, 1e6:2e6)
hashes2 <- sapply(keys2, digest, algo = "md5", serialize = FALSE)
which(substr(hashes2, 1, 6) == "000000")... |
#' Populations of US states and territories, 1790-2010
#'
#' Population figures for US states and territories from the decennial census.
#'
#' @section Variables:
#'
#' \itemize{
#'
#' \item \code{year}: date of the census.
#'
#' \item \code{state}: name of the state or territory.
#'
#' \item \code{population}:... | /R/us-state-populations.R | permissive | ropensci/historydata | R | false | false | 843 | r | #' Populations of US states and territories, 1790-2010
#'
#' Population figures for US states and territories from the decennial census.
#'
#' @section Variables:
#'
#' \itemize{
#'
#' \item \code{year}: date of the census.
#'
#' \item \code{state}: name of the state or territory.
#'
#' \item \code{population}:... |
#' Dot-and-Whisker Plots of Regression Results
#'
#' \code{dwplot} is a function for quickly and easily generating dot-and-whisker plots of regression models saved in tidy data frames.
#'
#' @param x Either a tidy data.frame (see 'Details'), a model object to be tidied with \code{\link[broom]{tidy}}, or a list of such ... | /R/dwplot.R | no_license | stefan-mueller/dotwhisker | R | false | false | 13,297 | r | #' Dot-and-Whisker Plots of Regression Results
#'
#' \code{dwplot} is a function for quickly and easily generating dot-and-whisker plots of regression models saved in tidy data frames.
#'
#' @param x Either a tidy data.frame (see 'Details'), a model object to be tidied with \code{\link[broom]{tidy}}, or a list of such ... |
#power analysis from Lab 3 of Biometry Spring 2014
setwd("C:/Users/avanderlaar/Dropbox/R/Biometry/Biometry_Lab2_Power_Analysis")
library(pwr)
library(compute.es)
trout = read.csv('Trout.csv', header=TRUE)
beetle = read.csv('Beetle.csv', header=TRUE)
crayfish = read.csv('Crayfish.csv', header=TRUE)
#two sided t-tes... | /biometry_spring_2014/Biometry_Lab2_Power_Analysis/Biometry_Lab_2.R | no_license | aurielfournier/courses | R | false | false | 1,599 | r | #power analysis from Lab 3 of Biometry Spring 2014
setwd("C:/Users/avanderlaar/Dropbox/R/Biometry/Biometry_Lab2_Power_Analysis")
library(pwr)
library(compute.es)
trout = read.csv('Trout.csv', header=TRUE)
beetle = read.csv('Beetle.csv', header=TRUE)
crayfish = read.csv('Crayfish.csv', header=TRUE)
#two sided t-tes... |
#' Generate the UI Code for demographic questions
#'
#' @param df One element (a dataframe) in the list of unique questions.
#'
#' @keywords internal
#' @return UI Code for a Shiny App.
#'
surveyOutput_individual <- function(df) {
inputType <- base::unique(df$input_type)
if (length(inputType) != 1) {
if (!"in... | /R/func_survey-output.R | permissive | nklepeis/shinysurveys | R | false | false | 7,446 | r | #' Generate the UI Code for demographic questions
#'
#' @param df One element (a dataframe) in the list of unique questions.
#'
#' @keywords internal
#' @return UI Code for a Shiny App.
#'
surveyOutput_individual <- function(df) {
inputType <- base::unique(df$input_type)
if (length(inputType) != 1) {
if (!"in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_rules.R
\name{power.w.test}
\alias{power.w.test}
\title{Power and sample size of the Wilcoxon Mann Whitney U test}
\usage{
power.w.test(n = NULL, p1 = NULL, p2 = NULL, p3 = NULL, propn = 1/2,
sig.level = 0.025, power = 0.9, silent = F... | /man/power.w.test.Rd | no_license | floatofmath/adaperm | R | false | true | 1,176 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_rules.R
\name{power.w.test}
\alias{power.w.test}
\title{Power and sample size of the Wilcoxon Mann Whitney U test}
\usage{
power.w.test(n = NULL, p1 = NULL, p2 = NULL, p3 = NULL, propn = 1/2,
sig.level = 0.025, power = 0.9, silent = F... |
data = Dataset
samplesize = 0.60 * nrow(data)
set.seed(80)
index = sample( seq_len ( nrow ( data ) ), size = samplesize )
datatrain = data[ index, ]
datatest = data[ -index, ]
data <- data[, sapply(data, is.numeric)]
max = as.numeric(apply(data , 2 , max))
min = as.numeric(apply(data, 2 , min))
scaled = as.d... | /Cerels.R | no_license | rishada/Data-Mining-and-Analysis-of-Different-Brand-of-Cereals-using-Neural-Networks-using-R-package | R | false | false | 2,026 | r | data = Dataset
samplesize = 0.60 * nrow(data)
set.seed(80)
index = sample( seq_len ( nrow ( data ) ), size = samplesize )
datatrain = data[ index, ]
datatest = data[ -index, ]
data <- data[, sapply(data, is.numeric)]
max = as.numeric(apply(data , 2 , max))
min = as.numeric(apply(data, 2 , min))
scaled = as.d... |
#' Numeric vector with percentage representation
#'
#' Formats numbers as percentages.
#'
#' @family numeric vectors
#' @param x a numeric vector.
#' @param digits an integer to indicate the number of digits of the percentage string.
#' @param format format type passed to [formatC()].
#' @param ... additional parameter... | /R/num_percent.R | permissive | renkun-ken/formattable | R | false | false | 1,222 | r | #' Numeric vector with percentage representation
#'
#' Formats numbers as percentages.
#'
#' @family numeric vectors
#' @param x a numeric vector.
#' @param digits an integer to indicate the number of digits of the percentage string.
#' @param format format type passed to [formatC()].
#' @param ... additional parameter... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opal.token.R
\name{opal.token_r_create}
\alias{opal.token_r_create}
\title{Create a personal access token for R usage}
\usage{
opal.token_r_create(
opal,
name,
projects = NULL,
access = NULL,
commands = c("export")
)
}
\arguments{
\... | /man/opal.token_r_create.Rd | no_license | obiba/opalr | R | false | true | 1,457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opal.token.R
\name{opal.token_r_create}
\alias{opal.token_r_create}
\title{Create a personal access token for R usage}
\usage{
opal.token_r_create(
opal,
name,
projects = NULL,
access = NULL,
commands = c("export")
)
}
\arguments{
\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.