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 |
|---|---|---|---|---|---|---|---|---|---|
# draw violin groups
#' sets of violins
#'
#' @param data list of lists, final components should be numerical values
#' @param adjust numeric, passed to density()
#' @param n integer, passed to density()
#' @param cut numeric, passed to density()
#' @param xlim numeric of length 2, recommended to leave NULL
#' @para... | /R/plot_groupviolins.R | permissive | tkonopka/crossmap-manuscript | R | false | false | 2,501 | r | # draw violin groups
#' sets of violins
#'
#' @param data list of lists, final components should be numerical values
#' @param adjust numeric, passed to density()
#' @param n integer, passed to density()
#' @param cut numeric, passed to density()
#' @param xlim numeric of length 2, recommended to leave NULL
#' @para... |
####################################################
#
# Superspreading Figure Generation
#
# Date: 3/28/2019
#
# Authors: Laura Cooper, Dave Smith, Alec Georgoff
#
####################################################
rm(list = ls())
#####
# REQUIRED USER INPUTS
#####
# change this variable to the location where you... | /superspreading/figure_generation_files/MASTER-SCRIPT.R | no_license | georgoff/PBF | R | false | false | 981 | r | ####################################################
#
# Superspreading Figure Generation
#
# Date: 3/28/2019
#
# Authors: Laura Cooper, Dave Smith, Alec Georgoff
#
####################################################
rm(list = ls())
#####
# REQUIRED USER INPUTS
#####
# change this variable to the location where you... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/devopsguru_operations.R
\name{devopsguru_list_recommendations}
\alias{devopsguru_list_recommendations}
\title{Returns a list of a specified insight's recommendations}
\usage{
devopsguru_list_recommendations(
InsightId,
NextToken = NULL,
... | /cran/paws.developer.tools/man/devopsguru_list_recommendations.Rd | permissive | paws-r/paws | R | false | true | 1,011 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/devopsguru_operations.R
\name{devopsguru_list_recommendations}
\alias{devopsguru_list_recommendations}
\title{Returns a list of a specified insight's recommendations}
\usage{
devopsguru_list_recommendations(
InsightId,
NextToken = NULL,
... |
iris %>% group_by(Species) %>%
do(data.frame(as.list(
confint(t.test( ~ Sepal.Width, data= .))
)))
| /inst/snippet/sepal-width-ci.R | no_license | rpruim/fastR2 | R | false | false | 107 | r | iris %>% group_by(Species) %>%
do(data.frame(as.list(
confint(t.test( ~ Sepal.Width, data= .))
)))
|
source('configuration.R')
library(sparklyr)
library(RSQLite)
library(dplyr)
config <- spark_config()
config$`sparklyr.shell.driver-memory` <- "4G"
config$`sparklyr.shell.executor-memory` <- "4G"
config$`spark.yarn.executor.memoryOverhead` <- "1G"
sc <- spark_connect(master = "local", config = config)
#sc <- spark_con... | /bartek/readDataToMemory.R | no_license | elorenteg/big_data_with_R | R | false | false | 1,352 | r | source('configuration.R')
library(sparklyr)
library(RSQLite)
library(dplyr)
config <- spark_config()
config$`sparklyr.shell.driver-memory` <- "4G"
config$`sparklyr.shell.executor-memory` <- "4G"
config$`spark.yarn.executor.memoryOverhead` <- "1G"
sc <- spark_connect(master = "local", config = config)
#sc <- spark_con... |
# Bit 2
source('/Users/giacomovagni/ukavecqui2/rscripts/DataSource.R')
source('/Users/giacomovagni/ukavecqui2/rscripts/FunctionSource.R')
##############################################################################################################
###################################################################... | /rscripts_iatur2005UKdata/Mtus UK 2000 - 2015 07 23 # Source Bit 2.R | permissive | gianniecce/reliability | R | false | false | 5,987 | r |
# Bit 2
source('/Users/giacomovagni/ukavecqui2/rscripts/DataSource.R')
source('/Users/giacomovagni/ukavecqui2/rscripts/FunctionSource.R')
##############################################################################################################
###################################################################... |
# this file crates a nearest neighbor ensemble and a random forest ensemble
# for the growth study data and plots the weights of the base models
library("classiFunc")
library("ggplot2")
library("mlr")
library("foreign")
library("dtw")
# generate plots
mytheme = theme_bw(25)
# # read in learners
# source("R/create_base... | /R/old/plot_model_weights_old.R | no_license | maierhofert/CoFD | R | false | false | 5,154 | r | # this file crates a nearest neighbor ensemble and a random forest ensemble
# for the growth study data and plots the weights of the base models
library("classiFunc")
library("ggplot2")
library("mlr")
library("foreign")
library("dtw")
# generate plots
mytheme = theme_bw(25)
# # read in learners
# source("R/create_base... |
{
if(file.exists('CheckforDefaultsScript.R')){
source('CheckforDefaultsScript.R')
}else{
pathFiles <- setwd(paste0(choose.dir(caption="Select folder with source code."), "\\"))
source("LibrariesAndSettings.R" , print.eval = TRUE )
DP_LoadPatientIndex()
DP_ChooseDataReps()
FilestoProcess <- ... | /WaveformCode/ExtractRRDataForForecastingBatch.R | no_license | BenLopez/UHSM_BHF | R | false | false | 3,339 | r | {
if(file.exists('CheckforDefaultsScript.R')){
source('CheckforDefaultsScript.R')
}else{
pathFiles <- setwd(paste0(choose.dir(caption="Select folder with source code."), "\\"))
source("LibrariesAndSettings.R" , print.eval = TRUE )
DP_LoadPatientIndex()
DP_ChooseDataReps()
FilestoProcess <- ... |
#Script icon-whole qeue
#Input: Station Data and Icon csv files
#Output: Accuracy file for each day
#libaries
library(dplyr)
library(readr)
library(data.table) #for multimerge function
library(tidyr)
library(Metrics)
#setwd
setwd("~/data/icon/csv/")
pathico="~/data/icon/csv/"
#Step 1
#merge the needed prediction h... | /scripts/model_qeues/daily/icoqeue.R | no_license | marikemau/RGust | R | false | false | 12,444 | r | #Script icon-whole qeue
#Input: Station Data and Icon csv files
#Output: Accuracy file for each day
#libaries
library(dplyr)
library(readr)
library(data.table) #for multimerge function
library(tidyr)
library(Metrics)
#setwd
setwd("~/data/icon/csv/")
pathico="~/data/icon/csv/"
#Step 1
#merge the needed prediction h... |
require(DAAG, quietly=T)
require(expm, quietly=T)
require(reader, quietly=T)
require(scales, quietly=T)
####################MCMC UTILITIES############################
#reads a popsize file
read.popsize = function(popsizefile) {
params = read.table(popsizefile)
popSizeFun = function(t) {
prev_ind = sapply(t,functi... | /rscript/mcmc_path_utilities.r | permissive | ekirving/alleletraj | R | false | false | 15,602 | r | require(DAAG, quietly=T)
require(expm, quietly=T)
require(reader, quietly=T)
require(scales, quietly=T)
####################MCMC UTILITIES############################
#reads a popsize file
read.popsize = function(popsizefile) {
params = read.table(popsizefile)
popSizeFun = function(t) {
prev_ind = sapply(t,functi... |
# OpenSilex API
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 1.0.0-rc+2
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' AnnotationGetDTO Class
#'
#' @field uri
#' @field description
#' @field targets
#' ... | /R/AnnotationGetDTO.r | no_license | OpenSILEX/opensilexClientToolsR | R | false | false | 5,955 | r | # OpenSilex API
#
# No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
#
# OpenAPI spec version: 1.0.0-rc+2
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' AnnotationGetDTO Class
#'
#' @field uri
#' @field description
#' @field targets
#' ... |
load(file = "/mnt/data5/BGI/UCB/tangchao/Cell_spe_SJ/All_Cell_specific_SJ_intron_centric_PSI2.RData")
load("/mnt/data5/BGI/UCB/tangchao/Cell_spe_SJ/Cell_sep_PSI.RData")
sj_CD4 <- row.names(CD4_Sep[CD4_Sep$adj_pval < 0.01 & CD4_Sep$Cell_p > .1 & CD4_Sep$Cell_p > 2*CD4_Sep$Other_p, ])
sj_CD8 <- row.names(CD8_Sep[CD8_Sep$... | /Tcel_Sep_PSI_Seurat.R | no_license | ChaoTang-SCU/UCB | R | false | false | 4,886 | r | load(file = "/mnt/data5/BGI/UCB/tangchao/Cell_spe_SJ/All_Cell_specific_SJ_intron_centric_PSI2.RData")
load("/mnt/data5/BGI/UCB/tangchao/Cell_spe_SJ/Cell_sep_PSI.RData")
sj_CD4 <- row.names(CD4_Sep[CD4_Sep$adj_pval < 0.01 & CD4_Sep$Cell_p > .1 & CD4_Sep$Cell_p > 2*CD4_Sep$Other_p, ])
sj_CD8 <- row.names(CD8_Sep[CD8_Sep$... |
"
@author: Zsofia Koma, UvA
Aim: extract only area of interest from the 10 m dataset
"
# Import libraries
library(raster)
library(ggplot2)
library(gridExtra)
library(dplyr)
library(XLConnect)
library(sp)
library(spatialEco)
# Set global variables
full_path="C:/Koma/Sync/_Amsterdam/03_Paper2_bird_lidar_sdm/Dataproce... | /Paper2/get_areaofint_lidarmetrics.R | no_license | komazsofi/myPhD_escience_analysis | R | false | false | 695 | r | "
@author: Zsofia Koma, UvA
Aim: extract only area of interest from the 10 m dataset
"
# Import libraries
library(raster)
library(ggplot2)
library(gridExtra)
library(dplyr)
library(XLConnect)
library(sp)
library(spatialEco)
# Set global variables
full_path="C:/Koma/Sync/_Amsterdam/03_Paper2_bird_lidar_sdm/Dataproce... |
############################################################################
# TEAM PROJECT DATA PREPARATION #
############################################################################
#Users may need to install the Hmisc library before invoking it.
setwd("~/Desktop/DSI/ST... | /nispuf_combined.R | no_license | eih2nn/STAT_Team_Project | R | false | false | 76,008 | r | ############################################################################
# TEAM PROJECT DATA PREPARATION #
############################################################################
#Users may need to install the Hmisc library before invoking it.
setwd("~/Desktop/DSI/ST... |
#' Provide working directory for valr example files.
#'
#' @param path path to file
#'
#' @examples
#' valr_example('hg19.chrom.sizes.gz')
#'
#' @export
valr_example <- function(path) {
# https://twitter.com/JennyBryan/status/780150538654527488
system.file("extdata", path, package = "valr", mustWork = TRUE)
}
#' r... | /fuzzedpackages/valr/R/utils.r | no_license | akhikolla/testpackages | R | false | false | 4,617 | r | #' Provide working directory for valr example files.
#'
#' @param path path to file
#'
#' @examples
#' valr_example('hg19.chrom.sizes.gz')
#'
#' @export
valr_example <- function(path) {
# https://twitter.com/JennyBryan/status/780150538654527488
system.file("extdata", path, package = "valr", mustWork = TRUE)
}
#' r... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gf_functions.R
\name{gf_density}
\alias{gf_density}
\alias{gf_dens}
\alias{gf_dens2}
\title{Formula interface to stat_density()}
\usage{
gf_density(
object = NULL,
gformula = NULL,
data = NULL,
...,
alpha = 0.5,
color,
fill,
g... | /man/gf_density.Rd | no_license | rasanderson/ggformula | R | false | true | 7,149 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gf_functions.R
\name{gf_density}
\alias{gf_density}
\alias{gf_dens}
\alias{gf_dens2}
\title{Formula interface to stat_density()}
\usage{
gf_density(
object = NULL,
gformula = NULL,
data = NULL,
...,
alpha = 0.5,
color,
fill,
g... |
#1. Merges the training and the test sets to create one data set.
#2. Extracts only the measurements on the mean and standard deviation for each measurement.
#3. Uses descriptive activity names to name the activities in the data set
#4. Appropriately labels the data set with descriptive variable names.
#5. From the da... | /run_analysis.R | no_license | 3L33ter/Getting-Data-project | R | false | false | 3,251 | r | #1. Merges the training and the test sets to create one data set.
#2. Extracts only the measurements on the mean and standard deviation for each measurement.
#3. Uses descriptive activity names to name the activities in the data set
#4. Appropriately labels the data set with descriptive variable names.
#5. From the da... |
#' These are functions
#' to generate information
#' of relevance for representatives
check_prediction <- function(dataset_without_candidate, actual_elected) {
# This function gets the dataset and check if it
# matches the real_elected_deputies (our first prediction)
# Now we're testing whether removing thi... | /R/generate_relevants.R | no_license | duarteguilherme/analise_quociente_eleitoral | R | false | false | 2,345 | r | #' These are functions
#' to generate information
#' of relevance for representatives
check_prediction <- function(dataset_without_candidate, actual_elected) {
# This function gets the dataset and check if it
# matches the real_elected_deputies (our first prediction)
# Now we're testing whether removing thi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/triA.R
\docType{data}
\name{triA}
\alias{triA}
\title{A small random tridiagonal matrix}
\format{An object of class \code{matrix} with 7 rows and 7 columns.}
\usage{
triA
}
\description{
A small random tridiagonal matrix used only to demonstr... | /issuestests/expperm/man/triA.Rd | no_license | akhikolla/RcppDeepStateTest | R | false | true | 432 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/triA.R
\docType{data}
\name{triA}
\alias{triA}
\title{A small random tridiagonal matrix}
\format{An object of class \code{matrix} with 7 rows and 7 columns.}
\usage{
triA
}
\description{
A small random tridiagonal matrix used only to demonstr... |
#################################
## Summarizing results of MCMC ##
## Bruno do Rosario Petrucci ##
## Evolution 2021 ##
#################################
###
# packages we will need
# coda
library(coda)
# readr
library(readr)
# tidyverse
library(tidyverse)
# reshape2
library(reshape2)
###
# get co... | /Analysis/summarize.R | no_license | brpetrucci/EvolProject2021 | R | false | false | 2,196 | r | #################################
## Summarizing results of MCMC ##
## Bruno do Rosario Petrucci ##
## Evolution 2021 ##
#################################
###
# packages we will need
# coda
library(coda)
# readr
library(readr)
# tidyverse
library(tidyverse)
# reshape2
library(reshape2)
###
# get co... |
# Make loan amount and volume by state
# Output to C:/Users/Anna/Desktop/DSTP/Cap1/img
#install.packages("choroplethr")
#install.packages("choroplethrMaps")
#install.packages("tidyverse")
setwd("C:/Users/Anna/Desktop/DSTP/Cap1/img")
library(choroplethr)
library(choroplethrMaps)
library(tidyverse)
st <- read.csv("sta... | /Cap1/img/choropleth_map_loan_by_state.r | no_license | SapphireCore/DSTP | R | false | false | 1,064 | r | # Make loan amount and volume by state
# Output to C:/Users/Anna/Desktop/DSTP/Cap1/img
#install.packages("choroplethr")
#install.packages("choroplethrMaps")
#install.packages("tidyverse")
setwd("C:/Users/Anna/Desktop/DSTP/Cap1/img")
library(choroplethr)
library(choroplethrMaps)
library(tidyverse)
st <- read.csv("sta... |
# 3.각 문서간 코사인 유사도(6개) -> 최대값에 해당되는 문서쌍을 출력
# 코퍼스
# 문서1:먹고 싶은 사과
# 문서2:먹고 싶은 바나나
# 문서3:길고 노란 바나나 바나나
# 문서4:저는 과일이 좋아요
library(tm)
# 데이터 생성
d <- c("doc1","doc2","doc3","doc4")
text <- c("먹고 싶은 사과","먹고 싶은 바나나",
"길고 노란 바나나 바나나","저는 과일이 좋아요")
fruit <- as.data.frame(cbind(d, text))
str(fruit)
fruitCorpus <- V... | /day18_practise.R | no_license | beglad2025/learn_R | R | false | false | 3,456 | r | # 3.각 문서간 코사인 유사도(6개) -> 최대값에 해당되는 문서쌍을 출력
# 코퍼스
# 문서1:먹고 싶은 사과
# 문서2:먹고 싶은 바나나
# 문서3:길고 노란 바나나 바나나
# 문서4:저는 과일이 좋아요
library(tm)
# 데이터 생성
d <- c("doc1","doc2","doc3","doc4")
text <- c("먹고 싶은 사과","먹고 싶은 바나나",
"길고 노란 바나나 바나나","저는 과일이 좋아요")
fruit <- as.data.frame(cbind(d, text))
str(fruit)
fruitCorpus <- V... |
power <- read.table("./data/household_power_consumption.txt", sep = ";", header = TRUE)
power$Date <- strptime(power$Date, format = "%d/%m/%Y")
power$Date <- as.Date(power$Date, format = "%Y-%m-%d")
df <- power[power$Date >= "2007-02-01" & power$Date <= "2007-02-02", ]
df$Global_active_power <- as.numeric(df$Global_act... | /plot1.R | no_license | geopolitics-diplomacy/ExploratoryDataAnalysis | R | false | false | 505 | r | power <- read.table("./data/household_power_consumption.txt", sep = ";", header = TRUE)
power$Date <- strptime(power$Date, format = "%d/%m/%Y")
power$Date <- as.Date(power$Date, format = "%Y-%m-%d")
df <- power[power$Date >= "2007-02-01" & power$Date <= "2007-02-02", ]
df$Global_active_power <- as.numeric(df$Global_act... |
\name{fDataAmp}
\alias{fDataAmp}
\title{Access the amplicon data of an AVASet.}
\description{
Similar to \code{fData} of the Biobase ExpressionSet, this function returns the feature data of the amplicon slot of an instance of the
AVASet.
}
\usage{
fDataAmp(object)
}
\arguments{
\item{object}{An \co... | /man/fDataAmp.Rd | no_license | huklein/R453Plus1Toolbox | R | false | false | 909 | rd | \name{fDataAmp}
\alias{fDataAmp}
\title{Access the amplicon data of an AVASet.}
\description{
Similar to \code{fData} of the Biobase ExpressionSet, this function returns the feature data of the amplicon slot of an instance of the
AVASet.
}
\usage{
fDataAmp(object)
}
\arguments{
\item{object}{An \co... |
#' @title Descriptive Statistics on variables within a data frame
#'
#' @description The \code{descriptives} function is used to perform descriptive statistics on a set of variables in a \code{\link{data.frame}}.
#' This can include descriptive statistics by group when including a vector of categorical variables in the... | /R/descriptives.R | no_license | jprice80/fullprocs | R | false | false | 8,043 | r | #' @title Descriptive Statistics on variables within a data frame
#'
#' @description The \code{descriptives} function is used to perform descriptive statistics on a set of variables in a \code{\link{data.frame}}.
#' This can include descriptive statistics by group when including a vector of categorical variables in the... |
library(dplyr)
filename <- "Coursera_DS3_Final.zip"
x_train <- read.table("G:/FDP/Course Era/Data Science/Getting and Cleaning Data/UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("G:/FDP/Course Era/Data Science/Getting and Cleaning Data/UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("G:/FDP... | /Assignment.R | no_license | maheshwarreddyv2/ExData_Plotting1 | R | false | false | 2,994 | r | library(dplyr)
filename <- "Coursera_DS3_Final.zip"
x_train <- read.table("G:/FDP/Course Era/Data Science/Getting and Cleaning Data/UCI HAR Dataset/train/X_train.txt")
y_train <- read.table("G:/FDP/Course Era/Data Science/Getting and Cleaning Data/UCI HAR Dataset/train/y_train.txt")
subject_train <- read.table("G:/FDP... |
library(tidyverse)
devtools::install_github("asheshrambachan/HonestDiD")
library(HonestDiD)
library(readstata13)
install.packages("Rglpk")
library(Rglpk)
library(lfe)
library(haven)
# Load in LWdata_RawData.dta
LWdata_RawData = haven::read_dta(system.file("extdata", "LWdata_RawData.dta",
... | /roth/vignette.R | no_license | CLDSG17/did_reading_group | R | false | false | 5,656 | r | library(tidyverse)
devtools::install_github("asheshrambachan/HonestDiD")
library(HonestDiD)
library(readstata13)
install.packages("Rglpk")
library(Rglpk)
library(lfe)
library(haven)
# Load in LWdata_RawData.dta
LWdata_RawData = haven::read_dta(system.file("extdata", "LWdata_RawData.dta",
... |
gof.Pearson <-
function(alpha,beta,pk,pk0,r){
b=0;noncen=0;
for (i in 1:1000){
b[i+1]<-pchisq(qchisq(alpha,df=r-1,ncp=0,lower.tail=FALSE),df=r-1,ncp=i/100)
noncen=rbind(noncen,c(i,b[i],b[i+1]))
}
delta=noncen[which(noncen[,2]>beta & noncen[,3]<beta)]/100
n<-delta*(sum((pk-pk0)^2/pk0))^-1
return(n)
}
| /R/gof.Pearson.R | no_license | cran/TrialSize | R | false | false | 318 | r | gof.Pearson <-
function(alpha,beta,pk,pk0,r){
b=0;noncen=0;
for (i in 1:1000){
b[i+1]<-pchisq(qchisq(alpha,df=r-1,ncp=0,lower.tail=FALSE),df=r-1,ncp=i/100)
noncen=rbind(noncen,c(i,b[i],b[i+1]))
}
delta=noncen[which(noncen[,2]>beta & noncen[,3]<beta)]/100
n<-delta*(sum((pk-pk0)^2/pk0))^-1
return(n)
}
|
source('C:/Work Home/finance/RScripts/delta-hedge/delta-hedge/common.R')
source('C:/Work Home/finance/RScripts/delta-hedge/delta-hedge/data.R')
n = length(Close)
days = CallDays
optCount = 10
ivCalls = array(n)
deltas = array(n)
counts = array(n)
balance = array(n)
for (i in 1:n) {
expiry = 1 / 252 * ... | /RScripts/delta-hedge/delta-hedge/long-call.R | no_license | oleg-gunchenko/finance | R | false | false | 1,091 | r | source('C:/Work Home/finance/RScripts/delta-hedge/delta-hedge/common.R')
source('C:/Work Home/finance/RScripts/delta-hedge/delta-hedge/data.R')
n = length(Close)
days = CallDays
optCount = 10
ivCalls = array(n)
deltas = array(n)
counts = array(n)
balance = array(n)
for (i in 1:n) {
expiry = 1 / 252 * ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/auxiliary.functions.R
\name{rajan.noBIC}
\alias{rajan.noBIC}
\title{Non-penalized likelihood criterion for PCA based on paper by Rajan, Rayner}
\usage{
rajan.noBIC(X, k)
}
\arguments{
\item{X}{a matrix with only continuous variables}
... | /man/rajan.noBIC.Rd | no_license | edelmand21/varclust | R | false | false | 642 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/auxiliary.functions.R
\name{rajan.noBIC}
\alias{rajan.noBIC}
\title{Non-penalized likelihood criterion for PCA based on paper by Rajan, Rayner}
\usage{
rajan.noBIC(X, k)
}
\arguments{
\item{X}{a matrix with only continuous variables}
... |
format_time = function(x){
x = as.POSIXct(as.POSIXlt(x,tz=Sys.timezone()))
return(x)
}
as.Num = function(x){
x = as.numeric(as.character(x))
return(x)
}
#' where are the log files
which_file = function(log_file){
vol_dir = '/Volumes/abt3_projects/databases/server/'
vm_dir = '/ebio/abt3_projects/databases/... | /server_load/utils.R | permissive | leylabmpi/serverAdminShiny | R | false | false | 441 | r | format_time = function(x){
x = as.POSIXct(as.POSIXlt(x,tz=Sys.timezone()))
return(x)
}
as.Num = function(x){
x = as.numeric(as.character(x))
return(x)
}
#' where are the log files
which_file = function(log_file){
vol_dir = '/Volumes/abt3_projects/databases/server/'
vm_dir = '/ebio/abt3_projects/databases/... |
# Jose Pedraza / Enero 2018
# Proyecyo de aprendizaje-> Desafio Kaggle-> Titanic
# Configuración de directorio e importación de datos
setwd("~/Desktop/R/TT/desafiotitanic")
test <- read.csv("test.csv")
train <- read.csv("train.csv")
# Examinando dataframe
str(train)
str(test)
# Revisión del número de personas que so... | /Parte 1.R | no_license | joseped/Desafio-Titanic | R | false | false | 683 | r | # Jose Pedraza / Enero 2018
# Proyecyo de aprendizaje-> Desafio Kaggle-> Titanic
# Configuración de directorio e importación de datos
setwd("~/Desktop/R/TT/desafiotitanic")
test <- read.csv("test.csv")
train <- read.csv("train.csv")
# Examinando dataframe
str(train)
str(test)
# Revisión del número de personas que so... |
library(shiny)
library(ggplot2)
library(tidyverse)
library(sf)
library(leaflet)
#read in data: ----
df_total_catch <- read.delim("df_total_catch")
df_discards <- read.delim("df_discards")
df_eez <-read.delim("df_eez")
sau_id <-read.delim("sau_id")
eez_shp <- st_read("World_EEZ_v8_20140228/World_EEZ_v8_2014.shp")
#Ad... | /SeaAroundUs_Project/sau_shiny_app.R | no_license | lg132/gdbv | R | false | false | 8,451 | r | library(shiny)
library(ggplot2)
library(tidyverse)
library(sf)
library(leaflet)
#read in data: ----
df_total_catch <- read.delim("df_total_catch")
df_discards <- read.delim("df_discards")
df_eez <-read.delim("df_eez")
sau_id <-read.delim("sau_id")
eez_shp <- st_read("World_EEZ_v8_20140228/World_EEZ_v8_2014.shp")
#Ad... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotanalytics_operations.R
\name{iotanalytics_list_tags_for_resource}
\alias{iotanalytics_list_tags_for_resource}
\title{Lists the tags (metadata) which you have assigned to the resource}
\usage{
iotanalytics_list_tags_for_resource(resourceArn... | /cran/paws.internet.of.things/man/iotanalytics_list_tags_for_resource.Rd | permissive | johnnytommy/paws | R | false | true | 624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iotanalytics_operations.R
\name{iotanalytics_list_tags_for_resource}
\alias{iotanalytics_list_tags_for_resource}
\title{Lists the tags (metadata) which you have assigned to the resource}
\usage{
iotanalytics_list_tags_for_resource(resourceArn... |
source('./transfer_functions.R')
classify <- function(x, weights, transfer_function) {
return(transfer_function(x %*% t(weights)))
}
perceptron <- function(obs, label, transfer_function, add_bias = TRUE) {
k <- 0 # count updates
if (add_bias) {
obs <- rbind(obs, rep(1, ncol(obs)))
}
w <- matrix... | /learning.R | no_license | jjureta/perceptron | R | false | false | 806 | r | source('./transfer_functions.R')
classify <- function(x, weights, transfer_function) {
return(transfer_function(x %*% t(weights)))
}
perceptron <- function(obs, label, transfer_function, add_bias = TRUE) {
k <- 0 # count updates
if (add_bias) {
obs <- rbind(obs, rep(1, ncol(obs)))
}
w <- matrix... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NI.A2M.R
\name{NI.A2M}
\alias{NI.A2M}
\title{Find the optimal testing configuration for non-informative
array testing with master pooling}
\usage{
NI.A2M(p, Se, Sp, group.sz, obj.fn, weights = NULL)
}
\arguments{
\item{p}{the proba... | /man/NI.A2M.Rd | no_license | cran/binGroup | R | false | true | 6,607 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NI.A2M.R
\name{NI.A2M}
\alias{NI.A2M}
\title{Find the optimal testing configuration for non-informative
array testing with master pooling}
\usage{
NI.A2M(p, Se, Sp, group.sz, obj.fn, weights = NULL)
}
\arguments{
\item{p}{the proba... |
\name{plot.mdfa}
\alias{plot.mdfa}
\title{Diagnostic plots for an mdfa model.}
\usage{
\method{plot}{mdfa} (object)
}
\arguments{
\item{object}{fitted mdfa object}
}
\description{
Plot amplitude and phase response on the transfer
function for a fitted MDFA model
}
| /man/plot.mdfa.Rd | no_license | ysu338/imdfa | R | false | false | 274 | rd | \name{plot.mdfa}
\alias{plot.mdfa}
\title{Diagnostic plots for an mdfa model.}
\usage{
\method{plot}{mdfa} (object)
}
\arguments{
\item{object}{fitted mdfa object}
}
\description{
Plot amplitude and phase response on the transfer
function for a fitted MDFA model
}
|
# TODO: Add comment
#
# Author: Vahid Nassiri
###############################################################################
#' estimates covariace matrix for AR1 parameters
#' @param ck number of cluster with each unique cluster size
#' @param nk unique cluster sizes
#' @param rho estimated rho
#' @param sigma2 es... | /R/cov.ar1.R | no_license | vahidnassiri/fastAR1 | R | false | false | 1,168 | r | # TODO: Add comment
#
# Author: Vahid Nassiri
###############################################################################
#' estimates covariace matrix for AR1 parameters
#' @param ck number of cluster with each unique cluster size
#' @param nk unique cluster sizes
#' @param rho estimated rho
#' @param sigma2 es... |
# filter cells and genes
setwd("~/lustre/06-Human_cell_atlas/pooled_data_14w/01_stomach/")
library("reshape2")
library("ggplot2")
library("cowplot")
source("../../scripts/filter_tools.r")
samplingPos <- "."
OUT <- paste0("03-expression/merged/filtering/", samplingPos)
dir.create(OUT, showWarnings = F, recursive = T)
... | /scRNA-seq/pooled_data_14w/01_stomach/do_filter.r | permissive | shunsunsun/GeACT | R | false | false | 14,415 | r | # filter cells and genes
setwd("~/lustre/06-Human_cell_atlas/pooled_data_14w/01_stomach/")
library("reshape2")
library("ggplot2")
library("cowplot")
source("../../scripts/filter_tools.r")
samplingPos <- "."
OUT <- paste0("03-expression/merged/filtering/", samplingPos)
dir.create(OUT, showWarnings = F, recursive = T)
... |
#' @title Testing the 'Hmisc' aregImpute missing data imputation algorithm
#'
#' @description
#' \code{\link{test_aregImpute}} tests the imputation accuracy of the 'Hmisc' aregImpute missing data imputation algorithm on matrices with various missing data patterns
#'
#' @details
#' This function tests the imputation acc... | /R/test_aregImpute.R | no_license | cran/missCompare | R | false | false | 4,920 | r | #' @title Testing the 'Hmisc' aregImpute missing data imputation algorithm
#'
#' @description
#' \code{\link{test_aregImpute}} tests the imputation accuracy of the 'Hmisc' aregImpute missing data imputation algorithm on matrices with various missing data patterns
#'
#' @details
#' This function tests the imputation acc... |
#' Prints out location for each \emph{word} in a character vector
#'
#' @param words charcter vector of words
#' @param text character vector of length 1 that is being searched
#' @param found_words dataframe of words found with three columns:
#' \emph{n_word} -- integer order of the word found,
#' \emph{original_wor... | /R/find_words.R | permissive | rmsharp/wordPuzzle | R | false | false | 1,271 | r | #' Prints out location for each \emph{word} in a character vector
#'
#' @param words charcter vector of words
#' @param text character vector of length 1 that is being searched
#' @param found_words dataframe of words found with three columns:
#' \emph{n_word} -- integer order of the word found,
#' \emph{original_wor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{cpl}
\alias{cpl}
\title{Compute CPL}
\usage{
cpl(likes, spend)
}
\arguments{
\item{likes}{Vector of likes}
\item{spend}{Vector of spend}
}
\description{
Compute CPL
}
| /man/cpl.Rd | no_license | JohnCoene/fbadsinsightsr | R | false | true | 266 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{cpl}
\alias{cpl}
\title{Compute CPL}
\usage{
cpl(likes, spend)
}
\arguments{
\item{likes}{Vector of likes}
\item{spend}{Vector of spend}
}
\description{
Compute CPL
}
|
#ladda ner https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="power.zip")
unzip("power.zip")
df <- data.frame(read.csv2("household_power_consumption.txt"))
#konvertera kolum... | /plot3.R | no_license | jonatanhedin/ExData_Plotting1 | R | false | false | 1,483 | r | #ladda ner https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", destfile="power.zip")
unzip("power.zip")
df <- data.frame(read.csv2("household_power_consumption.txt"))
#konvertera kolum... |
library(dslabs)
data("research_funding_rates")
research_funding_rates
library(pdftools)
temp_file <- tempfile()
url <- "http://www.pnas.org/content/suppl/2015/09/16/1510159112.DCSupplemental/pnas.201510159SI.pdf"
download.file(url, temp_file)
txt <- pdf_text(temp_file)
file.remove(temp_file)
# If we examine the objec... | /pdfextract.R | no_license | vpluchet/import | R | false | false | 2,533 | r | library(dslabs)
data("research_funding_rates")
research_funding_rates
library(pdftools)
temp_file <- tempfile()
url <- "http://www.pnas.org/content/suppl/2015/09/16/1510159112.DCSupplemental/pnas.201510159SI.pdf"
download.file(url, temp_file)
txt <- pdf_text(temp_file)
file.remove(temp_file)
# If we examine the objec... |
##title topics
#segment
library(jiebaR)
library(stringr)
load("with_body.RData")
title <- df.merge$title
body <- df.merge$body
jieba <- worker(type="mix",user = "./dictionary/topics.txt",
stop_word = "./dictionary/chinese_stopword.txt")
jieba$bylines <- T
jieba2 <- worker(user = "./dictionary/topics.... | /topics_extract.R | no_license | WangLiuying/gossipnews-analysis | R | false | false | 5,313 | r | ##title topics
#segment
library(jiebaR)
library(stringr)
load("with_body.RData")
title <- df.merge$title
body <- df.merge$body
jieba <- worker(type="mix",user = "./dictionary/topics.txt",
stop_word = "./dictionary/chinese_stopword.txt")
jieba$bylines <- T
jieba2 <- worker(user = "./dictionary/topics.... |
theme_Custom <- function(base_size=12, base_family="Helvetica") {
library(grid)
library(ggthemes)
(theme_foundation(base_size=base_size, base_family="Helvetica") +
theme(plot.title = element_text(#family = 'Calibri',
# face = "bold",
... | /custom_theme2.R | no_license | humanpowered/COVID19Shiny | R | false | false | 1,674 | r | theme_Custom <- function(base_size=12, base_family="Helvetica") {
library(grid)
library(ggthemes)
(theme_foundation(base_size=base_size, base_family="Helvetica") +
theme(plot.title = element_text(#family = 'Calibri',
# face = "bold",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MiscFuns.R
\name{formula.fixest}
\alias{formula.fixest}
\title{Extract the formula of a \code{fixest} fit}
\usage{
\method{formula}{fixest}(x, type = c("full", "linear", "iv", "NL"), ...)
}
\arguments{
\item{x}{An object of class \code{fixest... | /man/formula.fixest.Rd | no_license | haluong89-bcn/fixest | R | false | true | 1,916 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MiscFuns.R
\name{formula.fixest}
\alias{formula.fixest}
\title{Extract the formula of a \code{fixest} fit}
\usage{
\method{formula}{fixest}(x, type = c("full", "linear", "iv", "NL"), ...)
}
\arguments{
\item{x}{An object of class \code{fixest... |
##--------------------------------------------------------------------------------------------------------
## SCRIPT : Identification of isotopic niche overlap between two species considering inter- and intra-individual variability in isotopic composition
## Specific content : - Fitting a model to identify isotopic n... | /Script_Planque_et_al_[Isotopic_Niche_Overlap]_1-4.R | no_license | YannPlanque/Isotopic_Niche_Overlap | R | false | false | 56,308 | r | ##--------------------------------------------------------------------------------------------------------
## SCRIPT : Identification of isotopic niche overlap between two species considering inter- and intra-individual variability in isotopic composition
## Specific content : - Fitting a model to identify isotopic n... |
/Regresi-n/Punto4.R | no_license | rgarciarui/Regresi-n | R | false | false | 688 | r | ||
#25 2020-06-16 African-American History Black Past & Census & Slave Voyages The Guardian
color1 <-"#474350" #background color
color2<- "#FA7268" #color countries
library(extrafont) # la primera vez ejecutar font_import()
loadfonts()
font<- "DRAGONS AND CHICKENS" #Fuente que voy a utlizar
theme_ari<- function(){
... | /2020/25_African_American_History/africanHistory.R | no_license | AnguloB/Tidytuesday | R | false | false | 2,847 | r | #25 2020-06-16 African-American History Black Past & Census & Slave Voyages The Guardian
color1 <-"#474350" #background color
color2<- "#FA7268" #color countries
library(extrafont) # la primera vez ejecutar font_import()
loadfonts()
font<- "DRAGONS AND CHICKENS" #Fuente que voy a utlizar
theme_ari<- function(){
... |
rm(list = ls())
library(dplyr)
library(tidyr)
library(PEcAnRTM)
library(purrr)
library(rrtm)
library(ED2scenarios)
library(PEcAn.ED2)
library(purrr)
library(ggplot2)
library(ggridges)
library(cowplot)
library(pracma)
####################################################################################################... | /scripts/generate_SA.R | no_license | femeunier/LianaAlbedo | R | false | false | 16,150 | r | rm(list = ls())
library(dplyr)
library(tidyr)
library(PEcAnRTM)
library(purrr)
library(rrtm)
library(ED2scenarios)
library(PEcAn.ED2)
library(purrr)
library(ggplot2)
library(ggridges)
library(cowplot)
library(pracma)
####################################################################################################... |
#' Calculate CGM Variables
#'
#' This function takes cleaned CGM data and returns clinically relevant measures
#' (e.g. percent time spent over 140, MAGE, MODD, etc.).
#'
#' All files must be saved as a csv, and must have three columns, the first of
#' which contains the subject ID in the first cell and date of CGM ... | /cgmanalysis2/cgmvariables.R | no_license | timvigers/R-Packages | R | false | false | 18,679 | r | #' Calculate CGM Variables
#'
#' This function takes cleaned CGM data and returns clinically relevant measures
#' (e.g. percent time spent over 140, MAGE, MODD, etc.).
#'
#' All files must be saved as a csv, and must have three columns, the first of
#' which contains the subject ID in the first cell and date of CGM ... |
#' @export genMCMC
genMCMC <- function(x, ...) UseMethod("genMCMC")
#' @export smryMCMC
smryMCMC <- function(x, ...) UseMethod("smryMCMC")
#' @export plotMCMC
plotMCMC <- function(x, ...) UseMethod("plotMCMC")
| /R/S3-methods.R | no_license | hrgentry/dbda | R | false | false | 213 | r | #' @export genMCMC
genMCMC <- function(x, ...) UseMethod("genMCMC")
#' @export smryMCMC
smryMCMC <- function(x, ...) UseMethod("smryMCMC")
#' @export plotMCMC
plotMCMC <- function(x, ...) UseMethod("plotMCMC")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggtheme.R
\name{ggtheme}
\alias{ggtheme}
\title{Clean ggplot2 Theme}
\usage{
ggtheme
}
\description{
Clean ggplot2 Theme
}
\examples{
}
| /man/ggtheme.Rd | no_license | saberry/cortisolR | R | false | true | 216 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggtheme.R
\name{ggtheme}
\alias{ggtheme}
\title{Clean ggplot2 Theme}
\usage{
ggtheme
}
\description{
Clean ggplot2 Theme
}
\examples{
}
|
library(tidyverse)
library(zoo)
library(dplyr)
path_symptom_lags <- "../data/estimates-symptom-lags/cutoffs/PlotData/"
path_baseline <- "../data/baseline_outputs/"
path_out <- "../data/estimates-symptom-lags/Plots-baseline-vs-GLM/"
#try_countries <- c("BR", "GB", "DE", "EC", "PT", "UA", "ES", "CL", "FR")
try_countrie... | /scripts/script-ggplot-baseline-vs-predicted-many.R | no_license | GCGImdea/fbdatachallenge | R | false | false | 10,291 | r | library(tidyverse)
library(zoo)
library(dplyr)
path_symptom_lags <- "../data/estimates-symptom-lags/cutoffs/PlotData/"
path_baseline <- "../data/baseline_outputs/"
path_out <- "../data/estimates-symptom-lags/Plots-baseline-vs-GLM/"
#try_countries <- c("BR", "GB", "DE", "EC", "PT", "UA", "ES", "CL", "FR")
try_countrie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/met.betweenness.single.R
\name{met.betweenness.single}
\alias{met.betweenness.single}
\title{Betweenness centrality}
\usage{
met.betweenness.single(m, binary = FALSE, shortest.weight = FALSE,
normalization = TRUE, sym = TRUE, out = TRUE, df... | /man/met.betweenness.single.Rd | no_license | ants-project/ANTs-1 | R | false | true | 406 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/met.betweenness.single.R
\name{met.betweenness.single}
\alias{met.betweenness.single}
\title{Betweenness centrality}
\usage{
met.betweenness.single(m, binary = FALSE, shortest.weight = FALSE,
normalization = TRUE, sym = TRUE, out = TRUE, df... |
#Twitter 1 - Configure Tweets and Download them
#@dupadhyaya
#Working using my Keys
install.packages('curl')
install.packages('twitteR')
install.packages('ROAuth')
install.packages('syuzhet')
library("curl")
library("twitteR")
library("ROAuth")
download.file(url="http://curl.haxx.se/ca/cacert.pem",destfile="cacert.pe... | /sentiment_analysis.R | no_license | mri12/analytics1 | R | false | false | 3,161 | r | #Twitter 1 - Configure Tweets and Download them
#@dupadhyaya
#Working using my Keys
install.packages('curl')
install.packages('twitteR')
install.packages('ROAuth')
install.packages('syuzhet')
library("curl")
library("twitteR")
library("ROAuth")
download.file(url="http://curl.haxx.se/ca/cacert.pem",destfile="cacert.pe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats_roc.R
\name{compare_cCs}
\alias{compare_cCs}
\title{Compare 2 ROC curves for AUC equivalence}
\usage{
compare_cCs(cC_lst = list(), compare_test = "delong", pilot = FALSE)
}
\value{
h.test object
}
\description{
Compare 2 ROC curves for ... | /man/compare_cCs.Rd | no_license | mbadge/hipsMultimodal | R | false | true | 338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats_roc.R
\name{compare_cCs}
\alias{compare_cCs}
\title{Compare 2 ROC curves for AUC equivalence}
\usage{
compare_cCs(cC_lst = list(), compare_test = "delong", pilot = FALSE)
}
\value{
h.test object
}
\description{
Compare 2 ROC curves for ... |
# Initialize variables
library(plyr)
library(kknn)
setwd("/000_UTD/Sem_3/3_MachineLearning/Project 3")
data = read.csv("HeartDisease_Dataset.csv",header=TRUE)
data$cp<-as.factor(data$cp)
data$restecg<-as.factor(data$restecg)
data$slope<-as.factor(data$slope)
data$sex<-as.factor(data$sex)
for (i in 1:303){
if(data$nu... | /KNN_HeartDiseaseData.R | no_license | chanakya-t-utd/KNN-ArtificialNeuralNetworks | R | false | false | 2,324 | r | # Initialize variables
library(plyr)
library(kknn)
setwd("/000_UTD/Sem_3/3_MachineLearning/Project 3")
data = read.csv("HeartDisease_Dataset.csv",header=TRUE)
data$cp<-as.factor(data$cp)
data$restecg<-as.factor(data$restecg)
data$slope<-as.factor(data$slope)
data$sex<-as.factor(data$sex)
for (i in 1:303){
if(data$nu... |
library(readr)
library(dplyr)
library(tidyr)
library(ggplot2)
library(plotly)
library(stringr)
library(lubridate)
#---------Functions-------------
YrMonth <- function(x){
library(lubridate)
paste(year(x),'-', month(x),sep='')}
rp1 <- function(x) {
library(stringr)
str_replace_all(x,"2009 ... | /liao_analysis/analysis_code/data_cleaning/h1n1_2008_11_data_transform.R | no_license | rlads2017G1/communicate.web.source | R | false | false | 2,294 | r | library(readr)
library(dplyr)
library(tidyr)
library(ggplot2)
library(plotly)
library(stringr)
library(lubridate)
#---------Functions-------------
YrMonth <- function(x){
library(lubridate)
paste(year(x),'-', month(x),sep='')}
rp1 <- function(x) {
library(stringr)
str_replace_all(x,"2009 ... |
Args <- commandArgs()
heatmap_output<-read.delim(Args[3], head=F)
values<-heatmap_output[c(-1,-2)]
chr_coord<-paste(heatmap_output$V1,heatmap_output$V2, sep='_')
values<-apply(values,2,as.numeric)
mean<-mean(values, na.rm=T)
std<-sd(as.vector(values), na.rm=T)
zscores<-(values-mean)/std
zscoresfinal<-cbind(chr_coord, z... | /python_scripts/cell_type_prediction_scripts/Heatmap_Script_Files_PY/z_score.R | no_license | corradin-lab/outside-variants | R | false | false | 412 | r | Args <- commandArgs()
heatmap_output<-read.delim(Args[3], head=F)
values<-heatmap_output[c(-1,-2)]
chr_coord<-paste(heatmap_output$V1,heatmap_output$V2, sep='_')
values<-apply(values,2,as.numeric)
mean<-mean(values, na.rm=T)
std<-sd(as.vector(values), na.rm=T)
zscores<-(values-mean)/std
zscoresfinal<-cbind(chr_coord, z... |
library(abn)
### Name: simulateabn
### Title: Simulate from an ABN network
### Aliases: simulateabn
### Keywords: simulated data
### ** Examples
#define set of distribution
dist<-list(a="gaussian",
b="gaussian",
c="gaussian",
d="gaussian",
e="binomial",
f="binomial")
#define parameter matrix
data.param <- matri... | /data/genthat_extracted_code/abn/examples/simulate-abn.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 970 | r | library(abn)
### Name: simulateabn
### Title: Simulate from an ABN network
### Aliases: simulateabn
### Keywords: simulated data
### ** Examples
#define set of distribution
dist<-list(a="gaussian",
b="gaussian",
c="gaussian",
d="gaussian",
e="binomial",
f="binomial")
#define parameter matrix
data.param <- matri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotConcTimeDaily.R
\name{plotConcTimeDaily}
\alias{plotConcTimeDaily}
\title{Plot of the time series of daily concentration estimates and the sample values for the days that were sampled}
\usage{
plotConcTimeDaily(eList, yearStart = NA, year... | /man/plotConcTimeDaily.Rd | no_license | troyhill/EGRET | R | false | true | 3,100 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotConcTimeDaily.R
\name{plotConcTimeDaily}
\alias{plotConcTimeDaily}
\title{Plot of the time series of daily concentration estimates and the sample values for the days that were sampled}
\usage{
plotConcTimeDaily(eList, yearStart = NA, year... |
#' Returns cluster size distribution
#'
#' @param clustering vector with gene names/IDs
#' @return data frame with columns size (=cluster size) and freq (=frequency of that cluster)
#'
#' @examples
#' # gene vector is based off of Trinity annotation but can be any format as long as it is gene names/IDs
#' # for exampl... | /R/cluster_size_distribution.R | no_license | caseywdunn/ms_treeinform | R | false | false | 921 | r | #' Returns cluster size distribution
#'
#' @param clustering vector with gene names/IDs
#' @return data frame with columns size (=cluster size) and freq (=frequency of that cluster)
#'
#' @examples
#' # gene vector is based off of Trinity annotation but can be any format as long as it is gene names/IDs
#' # for exampl... |
#' Read all the data file in a folfer
#
#' @param path Path to the data files. Will look for all .info-files in this directory and use
#' the corresponding datafiles to create the DataSetList
#' @param verbose Logical.
#' @param maximization Logical. Whether the underlying optimization algorithm performs a maximizatio... | /R/DataSetList.R | permissive | nojhan/IOHanalyzer | R | false | false | 35,018 | r | #' Read all the data file in a folfer
#
#' @param path Path to the data files. Will look for all .info-files in this directory and use
#' the corresponding datafiles to create the DataSetList
#' @param verbose Logical.
#' @param maximization Logical. Whether the underlying optimization algorithm performs a maximizatio... |
/Kleemann_Bambauer_Bohn_Blatt6.R | no_license | curala70/StatistikSS2017 | R | false | false | 1,025 | r | ||
#############################################
## designSampleSize
#############################################
#' @export
designSampleSize <- function(data=data,
desiredFC=desiredFC,
FDR=0.05,
numSample=TRUE,
... | /R/SampleSizeCalculation.R | no_license | ttmduc/MSstats | R | false | false | 8,123 | r |
#############################################
## designSampleSize
#############################################
#' @export
designSampleSize <- function(data=data,
desiredFC=desiredFC,
FDR=0.05,
numSample=TRUE,
... |
1. Write an R command to store the following values into a matrix called mat1 where there are 3 rows and
4 columns and each row is filled with values before going to the next row: 3, 6, 8, 5, 3, 5, 3, 9, 10, 8, 7, 15.
mat1 = matrix(
c(3, 6, 8, 5, 3, 5, 3, 9, 10, 8, 7, 15),
nrow=3,
ncol = 4,
byrow = TRUE)
2. A... | /BIF705_Lab1.R | no_license | Swetali/R | R | false | false | 2,126 | r | 1. Write an R command to store the following values into a matrix called mat1 where there are 3 rows and
4 columns and each row is filled with values before going to the next row: 3, 6, 8, 5, 3, 5, 3, 9, 10, 8, 7, 15.
mat1 = matrix(
c(3, 6, 8, 5, 3, 5, 3, 9, 10, 8, 7, 15),
nrow=3,
ncol = 4,
byrow = TRUE)
2. A... |
###############################################################################
## Sample code for analyzing long-term demographic trend of local populations
## of black-throated blue warblers (Setophaga caerulescens) data using
## Bayesian hierarchical models.
## Data were collected at the Coweeta Hydrologic ... | /SampleCode_BayesianModels_BTBW.R | no_license | wblewis7/btbw_mcmc_data | R | false | false | 10,686 | r | ###############################################################################
## Sample code for analyzing long-term demographic trend of local populations
## of black-throated blue warblers (Setophaga caerulescens) data using
## Bayesian hierarchical models.
## Data were collected at the Coweeta Hydrologic ... |
\name{NodeInputNames}
\alias{NodeInputNames}
\alias{NodeInputNames<-}
\title{
Associates names with incoming edges on a Netica node.
}
\description{
The function \code{NodeInputNames()} can be used to set or retrieve
names for each of the parents of \var{node}. This facilitates
operations such as copying an... | /man/NodeInputNames.Rd | permissive | ralmond/RNetica | R | false | false | 3,651 | rd | \name{NodeInputNames}
\alias{NodeInputNames}
\alias{NodeInputNames<-}
\title{
Associates names with incoming edges on a Netica node.
}
\description{
The function \code{NodeInputNames()} can be used to set or retrieve
names for each of the parents of \var{node}. This facilitates
operations such as copying an... |
\name{findSubexprs}
\alias{findSubexprs}
\title{findSubexprs}
\usage{
findSubexprs(expr, simplify = FALSE, tag = ".expr", verbose = FALSE, ...)
}
\arguments{
\item{expr}{An expression represented in a variety of ways. See Details.}
\item{simplify}{Whether to simplify.}
\item{tag}{to be attached to the returned object... | /man/findSubexprs.Rd | no_license | cran/nlsr | R | false | false | 933 | rd | \name{findSubexprs}
\alias{findSubexprs}
\title{findSubexprs}
\usage{
findSubexprs(expr, simplify = FALSE, tag = ".expr", verbose = FALSE, ...)
}
\arguments{
\item{expr}{An expression represented in a variety of ways. See Details.}
\item{simplify}{Whether to simplify.}
\item{tag}{to be attached to the returned object... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/partvar.R
\name{partvar}
\alias{partvar}
\title{Partition of the variance in a GWRM model}
\usage{
partvar(object, newdata = NULL, ...)
}
\arguments{
\item{object}{an object class \code{"gw"} for which the partition is desired.}
\ite... | /man/partvar.Rd | no_license | ujaen-statistics/GWRM | R | false | false | 2,261 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/partvar.R
\name{partvar}
\alias{partvar}
\title{Partition of the variance in a GWRM model}
\usage{
partvar(object, newdata = NULL, ...)
}
\arguments{
\item{object}{an object class \code{"gw"} for which the partition is desired.}
\ite... |
#' Get lengths of genes from SGS txt file
#'
#' @details Read sgd file, where name of genes (name), start of genes (txStart)
#' and end of genes (txEnd) are specified. Write output text file with
#' name~length columns.
#'
#' @param file SGS text file.
#' @param outdir Output directory.
#' @param filename Optional... | /R/features.R | no_license | suvarzz/MNuc | R | false | false | 1,219 | r | #' Get lengths of genes from SGS txt file
#'
#' @details Read sgd file, where name of genes (name), start of genes (txStart)
#' and end of genes (txEnd) are specified. Write output text file with
#' name~length columns.
#'
#' @param file SGS text file.
#' @param outdir Output directory.
#' @param filename Optional... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{word_position}
\alias{word_position}
\title{Word Position}
\usage{
word_position(text.var, match.terms, digits = 2, percent = TRUE,
zero.replace = 0, ...)
}
\arguments{
\item{text.var}{The text variable.}
\item{match.terms}{A character vector of quoted terms... | /man/word_position.Rd | no_license | joffrevillanueva/qdap | R | false | false | 5,814 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{word_position}
\alias{word_position}
\title{Word Position}
\usage{
word_position(text.var, match.terms, digits = 2, percent = TRUE,
zero.replace = 0, ...)
}
\arguments{
\item{text.var}{The text variable.}
\item{match.terms}{A character vector of quoted terms... |
\name{bioacoustica.listRecordings}
\alias{bioacoustica.listRecordings}
\title{
List Recordings
}
\description{
Function to list recordings available on BioAcoustica, optionally filtered by taxon.
}
\usage{
bioacoustica.listRecordings(taxon=NULL, children=FALSE)
}
%- maybe also 'usage' for other objects documented here... | /man/bioacoustica.listRecordings.Rd | no_license | BioAcoustica/bioacousticaR | R | false | false | 1,585 | rd | \name{bioacoustica.listRecordings}
\alias{bioacoustica.listRecordings}
\title{
List Recordings
}
\description{
Function to list recordings available on BioAcoustica, optionally filtered by taxon.
}
\usage{
bioacoustica.listRecordings(taxon=NULL, children=FALSE)
}
%- maybe also 'usage' for other objects documented here... |
8e182dadb527f692f09247a08dbe6fe6 nxquery_reachqu_1344.qdimacs 478 1409 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/nxquery_reachqu_1344/nxquery_reachqu_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 70 | r | 8e182dadb527f692f09247a08dbe6fe6 nxquery_reachqu_1344.qdimacs 478 1409 |
#' Concatenate author names, if present, used in other functions.
#'
#' @param x a single list element with PLoS API returned nested elements
#' @return data.frame of results, with authors concatenated to single vector.
#' @export
#' @keywords internal
concat_todf <- function(x){
if(inherits(x$author_display, "charact... | /R/zzz.R | permissive | gurumoorthy444/rplos | R | false | false | 2,678 | r | #' Concatenate author names, if present, used in other functions.
#'
#' @param x a single list element with PLoS API returned nested elements
#' @return data.frame of results, with authors concatenated to single vector.
#' @export
#' @keywords internal
concat_todf <- function(x){
if(inherits(x$author_display, "charact... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/handle_missing_compounds.R
\name{handle_missing_compounds}
\alias{handle_missing_compounds}
\title{Resolve cases when a compound is not present in the mother}
\usage{
handle_missing_compounds(mother, daughter, missing_cmpds = "stop")
}
\argum... | /man/handle_missing_compounds.Rd | permissive | taiawu/echor | R | false | true | 1,336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/handle_missing_compounds.R
\name{handle_missing_compounds}
\alias{handle_missing_compounds}
\title{Resolve cases when a compound is not present in the mother}
\usage{
handle_missing_compounds(mother, daughter, missing_cmpds = "stop")
}
\argum... |
testlist <- list(x = NA_integer_, y = -1L)
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962228-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 116 | r | testlist <- list(x = NA_integer_, y = -1L)
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3199
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3199
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query57_query27_1344/query57_query27_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 711 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3199
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3199
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simageData.R
\name{simageData}
\alias{simageData}
\title{Simulates age data}
\usage{
simageData(A, M, FM, f.vul, sd.fvul, s.vul, sd.svul, Popsize, seed,
fishery = TRUE)
}
\arguments{
\item{A}{= max number of ages classes, M = Average Natura... | /man/simageData.Rd | no_license | drstewart11/AgeGrowthSimModels | R | false | true | 997 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simageData.R
\name{simageData}
\alias{simageData}
\title{Simulates age data}
\usage{
simageData(A, M, FM, f.vul, sd.fvul, s.vul, sd.svul, Popsize, seed,
fishery = TRUE)
}
\arguments{
\item{A}{= max number of ages classes, M = Average Natura... |
limit <- 9
#library(testthat)
test_that("0 is always at 0,0", {
# test some manual examples
for (i in 1:limit) {
# 0 must always be at 0,0
expect_equal(hilbertd2xy(4 ^ i, 0), tibble(x = c(0), y = (0)))
}
})
test_that("n is always at 2^i-1,0 ", {
#prep
testthat::expect_equal((2^1) - 1, 1)
testtha... | /tests/testthat/test-hilbertd2xy.R | permissive | Sumidu/gghilbertstrings | R | false | false | 2,309 | r |
limit <- 9
#library(testthat)
test_that("0 is always at 0,0", {
# test some manual examples
for (i in 1:limit) {
# 0 must always be at 0,0
expect_equal(hilbertd2xy(4 ^ i, 0), tibble(x = c(0), y = (0)))
}
})
test_that("n is always at 2^i-1,0 ", {
#prep
testthat::expect_equal((2^1) - 1, 1)
testtha... |
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = integer(0), item_score = integer(0), person_id = -1L)
result <- do.call(dexterMST:::mutate_booklet_score,testlist)
str(result) | /dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612727204-test.R | no_license | akhikolla/updatedatatype-list1 | R | false | false | 197 | r | testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = integer(0), item_score = integer(0), person_id = -1L)
result <- do.call(dexterMST:::mutate_booklet_score,testlist)
str(result) |
#!/usr/bin/env Rscript
library(stringr)
setwd("~/Documents/git_repository/Stage/Simulations/SNP_AFR_EUR/new_methis_bottleneck_50000_snp/")
arguments = commandArgs(trailingOnly = TRUE)
alpha = arguments[1]
nu = arguments[2]
ne0 = arguments[3]
nen = arguments[4]
bottle = arguments[5]
path_tot = str_c("alpha",alpha,"/... | /Simulations/SNP_YRI_GBR_foundation_adm/Ne_bot/modif_param.R | no_license | Lugulabre/Stage | R | false | false | 832 | r | #!/usr/bin/env Rscript
library(stringr)
setwd("~/Documents/git_repository/Stage/Simulations/SNP_AFR_EUR/new_methis_bottleneck_50000_snp/")
arguments = commandArgs(trailingOnly = TRUE)
alpha = arguments[1]
nu = arguments[2]
ne0 = arguments[3]
nen = arguments[4]
bottle = arguments[5]
path_tot = str_c("alpha",alpha,"/... |
library(vamc)
### Name: calcMortFactors
### Title: Calculates the mortality factors (t - 1)px q(x + t - 1) and tpx
### required to valuate the inPolicy. Extract gender, age (birth date &
### current date), valuation date (current date), and maturity date from
### inPolicy, mortality rates from mortTable.
### Al... | /data/genthat_extracted_code/vamc/examples/calcMortFactors.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 438 | r | library(vamc)
### Name: calcMortFactors
### Title: Calculates the mortality factors (t - 1)px q(x + t - 1) and tpx
### required to valuate the inPolicy. Extract gender, age (birth date &
### current date), valuation date (current date), and maturity date from
### inPolicy, mortality rates from mortTable.
### Al... |
testlist <- list(b = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613100347-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 415 | r | testlist <- list(b = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_force.R
\name{tar_force}
\alias{tar_force}
\title{Target with a custom condition to force execution.}
\usage{
tar_force(
name,
command,
force,
tidy_eval = targets::tar_option_get("tidy_eval"),
packages = targets::tar_option_get(... | /man/tar_force.Rd | permissive | limnoliver/tarchetypes | R | false | true | 11,888 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tar_force.R
\name{tar_force}
\alias{tar_force}
\title{Target with a custom condition to force execution.}
\usage{
tar_force(
name,
command,
force,
tidy_eval = targets::tar_option_get("tidy_eval"),
packages = targets::tar_option_get(... |
library(qtl)
library(snowfall)
LG.f2.after.crossover <- read.cross("csvsr", genfile = "/share/malooflab/Ruijuan/F2/data/LG.f2.madmapper.final_gen_revised_flipped.csv",
phefile = "/share/malooflab/Ruijuan/F2/data/growth_model_trait.2.csv",
genotypes = c("AA", "AB", "BB")) # the... | /scripts/scantwo/scantwo_perm_2.7.R | no_license | MaloofLab/Li-eQTL-2018 | R | false | false | 970 | r | library(qtl)
library(snowfall)
LG.f2.after.crossover <- read.cross("csvsr", genfile = "/share/malooflab/Ruijuan/F2/data/LG.f2.madmapper.final_gen_revised_flipped.csv",
phefile = "/share/malooflab/Ruijuan/F2/data/growth_model_trait.2.csv",
genotypes = c("AA", "AB", "BB")) # the... |
args = commandArgs(trailingOnly=TRUE)
working_dir = args[1]
git_dir = args[2]
library(tidyverse)
library(Matrix)
library(Matrix.utils)
library(Seurat)
library(glue)
setwd(working_dir)
load_rdata <- function(x){
load(x)
env <- ls.str()
var <- env[!grepl('^x$', env)]
stopifnot(length(var) == 1)
all_data= get(v... | /src/blend_macaque_merge_across_reference.R | no_license | whtns/scEiaD | R | false | false | 6,872 | r | args = commandArgs(trailingOnly=TRUE)
working_dir = args[1]
git_dir = args[2]
library(tidyverse)
library(Matrix)
library(Matrix.utils)
library(Seurat)
library(glue)
setwd(working_dir)
load_rdata <- function(x){
load(x)
env <- ls.str()
var <- env[!grepl('^x$', env)]
stopifnot(length(var) == 1)
all_data= get(v... |
insertMakeDfObjectAddin <- function() {
library(miniUI)
library(shiny)
ui <- miniPage(
# includeHighlightJs(),
gadgetTitleBar("Insert MakeShp() Code"),
miniContentPanel(
stableColumnLayout(
te... | /R/insertMakeDfObjectTemplate.R | no_license | tiernanmartin/miscgis | R | false | false | 10,267 | r | insertMakeDfObjectAddin <- function() {
library(miniUI)
library(shiny)
ui <- miniPage(
# includeHighlightJs(),
gadgetTitleBar("Insert MakeShp() Code"),
miniContentPanel(
stableColumnLayout(
te... |
library(MASS)
library(coda)
library(Matrix)
library(metafor)
library(hbmem)
library(truncnorm)
wd = '/home/ZijunKe/Research/MetaR/Simulation5/'
#wd <- "E:/MetaR/Simulation3/"
openbugs.d = NULL
source(paste(wd,'RCode/RFuncs_Sim.R',sep=''))
nsim = 500
n.iter = 10000
Nstudy.all = c(28,60,100)
mu.N.all = c(150,350)
L.Al... | /Simulations/RCode/MetaRR53.R | no_license | zijunke/CAM | R | false | false | 3,833 | r | library(MASS)
library(coda)
library(Matrix)
library(metafor)
library(hbmem)
library(truncnorm)
wd = '/home/ZijunKe/Research/MetaR/Simulation5/'
#wd <- "E:/MetaR/Simulation3/"
openbugs.d = NULL
source(paste(wd,'RCode/RFuncs_Sim.R',sep=''))
nsim = 500
n.iter = 10000
Nstudy.all = c(28,60,100)
mu.N.all = c(150,350)
L.Al... |
require(magic)
# Create YearMonth field to be used as a quick lookup for data ranges
magicSQL("ALTER TABLE Friendships_Directional_Final
ADD YearMonth VARCHAR(6)", "cpw_meta")
magicSQL("UPDATE Friendships_Directional_Final SET YearMonth = concat(cast(Year as char), cast(LPAD(Month, 2, '0') as char))", "cpw_m... | /inst/db_admin/create_YearMonth_field_to_Friendships_Directional_Final.R | no_license | vanderlowe/spellbook | R | false | false | 325 | r | require(magic)
# Create YearMonth field to be used as a quick lookup for data ranges
magicSQL("ALTER TABLE Friendships_Directional_Final
ADD YearMonth VARCHAR(6)", "cpw_meta")
magicSQL("UPDATE Friendships_Directional_Final SET YearMonth = concat(cast(Year as char), cast(LPAD(Month, 2, '0') as char))", "cpw_m... |
# rotoworld ---------------------------------------------------------------
.get_player_rotowire_news <-
function(player_id = 201935,
return_message = TRUE,
results = 50) {
json_url <-
glue(
"https://stats-prod.nba.com/wp-json/statscms/v1/rotowire/player/?playerId={player_id}... | /R/random.R | no_license | abresler/nbastatR | R | false | false | 11,030 | r |
# rotoworld ---------------------------------------------------------------
.get_player_rotowire_news <-
function(player_id = 201935,
return_message = TRUE,
results = 50) {
json_url <-
glue(
"https://stats-prod.nba.com/wp-json/statscms/v1/rotowire/player/?playerId={player_id}... |
maxclust<-function(s)
{
intersection<-function(a,b)
{
n<-length(a)
count<-0
for(i in 1:n)
{
if(a[i]==1 && b[i]==1)
count<-count+1
}
return(count)
}
union<-function(a,b)
{
n<-length(a)
count<-0
for(i in 1:n)
{
if(a[i]==1 || b[i]==1)
count<-cou... | /assignment1/R/maxclust.R | no_license | pritampathak96/R | R | false | false | 621 | r | maxclust<-function(s)
{
intersection<-function(a,b)
{
n<-length(a)
count<-0
for(i in 1:n)
{
if(a[i]==1 && b[i]==1)
count<-count+1
}
return(count)
}
union<-function(a,b)
{
n<-length(a)
count<-0
for(i in 1:n)
{
if(a[i]==1 || b[i]==1)
count<-cou... |
library(LambertW)
### Name: LambertW_input_output-methods
### Title: Methods for Lambert W input and output objects
### Aliases: LambertW_input_output-methods plot.LambertW_input
### plot.LambertW_output print.LambertW_input print.LambertW_output
### Keywords: hplot print
### ** Examples
# create a Normal(1, 2) ... | /data/genthat_extracted_code/LambertW/examples/LambertW_input_output-methods.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 784 | r | library(LambertW)
### Name: LambertW_input_output-methods
### Title: Methods for Lambert W input and output objects
### Aliases: LambertW_input_output-methods plot.LambertW_input
### plot.LambertW_output print.LambertW_input print.LambertW_output
### Keywords: hplot print
### ** Examples
# create a Normal(1, 2) ... |
# Determine min/max values for sliders and default plots:
#get basic data
input <- df_basic()
Cmin <- min(input$C)
Cmax <- max(input$C)
Omin <- min(input$O)
Omax <- max(input$O)
Nmin <- min(input$N)
Nmax <- max(input$N)
Smin <- min(input$S)
Smax <- max(input$S)
Pmin <- min(input$P)
Pmax <- max(input$P)
HCmin <- m... | /minmax.R | no_license | michaelwitting/shinyVanKrevelen | R | false | false | 669 | r | # Determine min/max values for sliders and default plots:
#get basic data
input <- df_basic()
Cmin <- min(input$C)
Cmax <- max(input$C)
Omin <- min(input$O)
Omax <- max(input$O)
Nmin <- min(input$N)
Nmax <- max(input$N)
Smin <- min(input$S)
Smax <- max(input$S)
Pmin <- min(input$P)
Pmax <- max(input$P)
HCmin <- m... |
#' Style numbers
#'
#' @param x Numeric vector
#' @param digits Integer or vector of integers specifying the number of digits
#' to round `x=`. When vector is passed, each integer is mapped 1:1 to the
#' numeric values in `x`
#' @param big.mark Character used between every 3 digits to separate
#' hundreds/thousands/mil... | /R/style_number.R | permissive | shijianasdf/gtsummary | R | false | false | 1,881 | r | #' Style numbers
#'
#' @param x Numeric vector
#' @param digits Integer or vector of integers specifying the number of digits
#' to round `x=`. When vector is passed, each integer is mapped 1:1 to the
#' numeric values in `x`
#' @param big.mark Character used between every 3 digits to separate
#' hundreds/thousands/mil... |
install.packages("readr")
install.packages("rjson")
library("readr")
library("rjson")
test <- read_csv("/home/eman/Kaggle Competitions/train.csv.zip")
positions <- function(row) as.data.frame(do.call(rbind, fromJSON(row$POLYLINE)))
last_position <- function(row) tail(positions(row), 1)
submission <- test["TRIP_ID"... | /Taxi Trajectory/PLOYLINE SPLIT taxi trajectory.R | no_license | EAboelhamd/Kaggle-Competitions | R | false | false | 668 | r | install.packages("readr")
install.packages("rjson")
library("readr")
library("rjson")
test <- read_csv("/home/eman/Kaggle Competitions/train.csv.zip")
positions <- function(row) as.data.frame(do.call(rbind, fromJSON(row$POLYLINE)))
last_position <- function(row) tail(positions(row), 1)
submission <- test["TRIP_ID"... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kinesisanalytics_operations.R
\name{kinesisanalytics_untag_resource}
\alias{kinesisanalytics_untag_resource}
\title{Removes one or more tags from a Kinesis Analytics application}
\usage{
kinesisanalytics_untag_resource(ResourceARN, TagKeys)
}... | /cran/paws.analytics/man/kinesisanalytics_untag_resource.Rd | permissive | TWarczak/paws | R | false | true | 908 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kinesisanalytics_operations.R
\name{kinesisanalytics_untag_resource}
\alias{kinesisanalytics_untag_resource}
\title{Removes one or more tags from a Kinesis Analytics application}
\usage{
kinesisanalytics_untag_resource(ResourceARN, TagKeys)
}... |
## The following function make a Cache of inverse of matrix
## setsolve save the inverse of the matrix
## getsolve retrieve the inverse of the matrix saved previously
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... | /cachematrix.R | no_license | jjgordillo/ProgrammingAssignment2 | R | false | false | 1,191 | r | ## The following function make a Cache of inverse of matrix
## setsolve save the inverse of the matrix
## getsolve retrieve the inverse of the matrix saved previously
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.