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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{clrGetConstructors}
\alias{clrGetConstructors}
\title{List the public constructors of a CLR Type}
\usage{
clrGetConstructors(type)
}
\arguments{
\item{type}{CLR Type, or a (character) type name that can be successfully parsed}
}
\value{
a list of constructor si... | /man/clrGetConstructors.Rd | no_license | agstudy/rClr | R | false | false | 500 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{clrGetConstructors}
\alias{clrGetConstructors}
\title{List the public constructors of a CLR Type}
\usage{
clrGetConstructors(type)
}
\arguments{
\item{type}{CLR Type, or a (character) type name that can be successfully parsed}
}
\value{
a list of constructor si... |
library(BioGeoBEARS)
### Name: symbolic_to_P_matrix
### Title: Convert symbolic matrix to relprob matrix
### Aliases: symbolic_to_P_matrix
### ** Examples
testval=1
states_list = list("_", c("A"), c("B"), c("C"), c("A","B"),
c("B","C"), c("A","C"), c("A","B","C"))
states_list = areas_list_to_states_list_new(areas... | /data/genthat_extracted_code/BioGeoBEARS/examples/symbolic_to_P_matrix.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,049 | r | library(BioGeoBEARS)
### Name: symbolic_to_P_matrix
### Title: Convert symbolic matrix to relprob matrix
### Aliases: symbolic_to_P_matrix
### ** Examples
testval=1
states_list = list("_", c("A"), c("B"), c("C"), c("A","B"),
c("B","C"), c("A","C"), c("A","B","C"))
states_list = areas_list_to_states_list_new(areas... |
#This R script will load, clean, merge and perform calculations on a test and training data set from the Human Activity Recognition Using Smartphones Data Set
#There are four main blocks to this script. The first block prepares the column headers for both the Test and Training sets,
#the second block prepares the te... | /run_analysis.R | no_license | david-kochar/GettingandCleaningDataCourseProject | R | false | false | 7,188 | r | #This R script will load, clean, merge and perform calculations on a test and training data set from the Human Activity Recognition Using Smartphones Data Set
#There are four main blocks to this script. The first block prepares the column headers for both the Test and Training sets,
#the second block prepares the te... |
# Einbinden der Bibliotheken und falls nicht vorhanden, fehlende Packages installieren.
# zur Vorbereitung der Datensätze
if(!require(tidyr)){
install.packages("tidyr")
require(tidyr)
}
if(!require(plyr)){
install.packages("plyr")
require(plyr)
}
if(!require(dplyr)){
install.packages("dplyr")
require(dply... | /App_Case_Study.R | no_license | lwo101/QW_Case_Study | R | false | false | 6,956 | r | # Einbinden der Bibliotheken und falls nicht vorhanden, fehlende Packages installieren.
# zur Vorbereitung der Datensätze
if(!require(tidyr)){
install.packages("tidyr")
require(tidyr)
}
if(!require(plyr)){
install.packages("plyr")
require(plyr)
}
if(!require(dplyr)){
install.packages("dplyr")
require(dply... |
library(plyr)
library(dplyr)
library(ggplot2)
# Data retrieval
NEI <- readRDS("summarySCC_PM25.rds")
SCCTable <- readRDS("Source_Classification_Code.rds")
# Data extraction for Baltimore and Los Angeles
twocities<-subset(NEI, fips %in% c('24510','06037'))
# !!! 'Motor vehicles' are considered here as on the road veh... | /plot6.R | no_license | alexandrateste/ExploratoryDataAnalysis | R | false | false | 3,165 | r | library(plyr)
library(dplyr)
library(ggplot2)
# Data retrieval
NEI <- readRDS("summarySCC_PM25.rds")
SCCTable <- readRDS("Source_Classification_Code.rds")
# Data extraction for Baltimore and Los Angeles
twocities<-subset(NEI, fips %in% c('24510','06037'))
# !!! 'Motor vehicles' are considered here as on the road veh... |
#******************************************************************************
# NOTE: Comments are listed as sublevels of a main comment. They are used to *
# outline the processes used throughout this script and how they relate *
# to one another. *
... | /run_analysis.R | no_license | ozzie787/Getting_and_Cleaning_Data | R | false | false | 4,727 | r | #******************************************************************************
# NOTE: Comments are listed as sublevels of a main comment. They are used to *
# outline the processes used throughout this script and how they relate *
# to one another. *
... |
#Extract groundwater chemistry data from GEUS JupiterXL database
#The database is downloaded from https://www.geus.dk/produkter-ydelser-og-faciliteter/data-og-kort/national-boringsdatabase-jupiter/adgang-til-data/
#The database is downloaded a MSSQL backup file (.bak). It is restored SQL server management studio.
... | /groundwater_jupiter_xl.R | no_license | KennethTM/dk_freshwaters_budget | R | false | false | 1,882 | r | #Extract groundwater chemistry data from GEUS JupiterXL database
#The database is downloaded from https://www.geus.dk/produkter-ydelser-og-faciliteter/data-og-kort/national-boringsdatabase-jupiter/adgang-til-data/
#The database is downloaded a MSSQL backup file (.bak). It is restored SQL server management studio.
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lilypond.R
\name{lilypond}
\alias{lilypond}
\title{Save score to LilyPond file}
\usage{
lilypond(
score,
file,
key = "c",
time = "4/4",
tempo = "2 = 60",
header = NULL,
paper = NULL,
string_names = NULL,
endbar = "|.",
mid... | /man/lilypond.Rd | permissive | owenjonesuob/tabr | R | false | true | 5,830 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lilypond.R
\name{lilypond}
\alias{lilypond}
\title{Save score to LilyPond file}
\usage{
lilypond(
score,
file,
key = "c",
time = "4/4",
tempo = "2 = 60",
header = NULL,
paper = NULL,
string_names = NULL,
endbar = "|.",
mid... |
rm(list=ls())
meanHV <- NULL
nIterA <- c(1,250,500,1000)
nPoint <- 1000
# paretoSetSample <- matrix((randtoolbox::sobol(n = nPoint,dim = k,scrambling = 3))*(1:k)*2,nrow=k)
# paretoSetSample <- t(matrix((randtoolbox::sobol(k*nPoint))*(1:k)*2,ncol=k))
# paretoSetSample <- matrix((runif(k*nPoint)^50)*(1:k)*2,nrow=k)
#par... | /CC_SMS_results/postprocess.R | no_license | dots26/ccoevolution | R | false | false | 1,393 | r | rm(list=ls())
meanHV <- NULL
nIterA <- c(1,250,500,1000)
nPoint <- 1000
# paretoSetSample <- matrix((randtoolbox::sobol(n = nPoint,dim = k,scrambling = 3))*(1:k)*2,nrow=k)
# paretoSetSample <- t(matrix((randtoolbox::sobol(k*nPoint))*(1:k)*2,ncol=k))
# paretoSetSample <- matrix((runif(k*nPoint)^50)*(1:k)*2,nrow=k)
#par... |
# Computes summary statistics for the HEALS and BEST study populations
library(scales)
heals = read.table(sprintf("lowef_med_%s_bn.txt",
"heals_meta"),header=TRUE,as.is=TRUE)
healssnp = read.table(sprintf("med_%s_bn.txt",
"heals_meta"),header=TRUE,as.i... | /descriptive_stats.R | no_license | digiovannia/arsenic-metabolism-MR | R | false | false | 6,285 | r | # Computes summary statistics for the HEALS and BEST study populations
library(scales)
heals = read.table(sprintf("lowef_med_%s_bn.txt",
"heals_meta"),header=TRUE,as.is=TRUE)
healssnp = read.table(sprintf("med_%s_bn.txt",
"heals_meta"),header=TRUE,as.i... |
library(SNFtool)
library(cluster)
source('SimSilhouette.R')
source('getAffyMat.R')
setwd('~/SNF')
cancer <- c( "Breast", "Colon", "GBM" )
write("cancer\tK\talpah\tC\tsi", file = "SNF_2015022.txt", append = FALSE)
for( cname in cancer ) {
GFL <- read.csv( sprintf('%s/Beta-GFLasso-%s.csv', cname, cname), row.names... | /R-Code/initial_SNF_code.R | no_license | vrrani/IntegrativeRegressionNetwork | R | false | false | 1,473 | r | library(SNFtool)
library(cluster)
source('SimSilhouette.R')
source('getAffyMat.R')
setwd('~/SNF')
cancer <- c( "Breast", "Colon", "GBM" )
write("cancer\tK\talpah\tC\tsi", file = "SNF_2015022.txt", append = FALSE)
for( cname in cancer ) {
GFL <- read.csv( sprintf('%s/Beta-GFLasso-%s.csv', cname, cname), row.names... |
# hello world
# 1. red
# 2.
# 3.
# 4. NA
| /Tian.R | no_license | islangrock/Github_Practice | R | false | false | 42 | r | # hello world
# 1. red
# 2.
# 3.
# 4. NA
|
#####################
##################### outputing paper graphics
library("RPToolsDB")
library(shiny)
library(DT)
library("RPPlotUtils")
library(dplyr)
user = 'sduprey'
# JIRA Code (e.g. NAR-#)
JIRACode = 'NAR-326'
repoPath = RP_GetSharedPath(user)
# Input Data Path
inputDataPath = paste(repoPath,'Inp... | /MINUTES_STUDY_R3000/RCode/BIGDATA_PAPER_GRAPHICS/OLD/SELECTED/SOFT_VS_HARD/outputing_bigdata_paper_graphics_first_bests_together_improved_soft_vs_hard_split.R | no_license | sduprey/ML_NEWS_STRATEGY | R | false | false | 60,966 | r | #####################
##################### outputing paper graphics
library("RPToolsDB")
library(shiny)
library(DT)
library("RPPlotUtils")
library(dplyr)
user = 'sduprey'
# JIRA Code (e.g. NAR-#)
JIRACode = 'NAR-326'
repoPath = RP_GetSharedPath(user)
# Input Data Path
inputDataPath = paste(repoPath,'Inp... |
#!/usr/bin/Rscript
library(doParallel)
library(foreach)
require(doParallel)
require(foreach)
registerDoParallel()
getDoParWorkers()
registerDoSEQ()
getDoParWorkers()
cl <- makeCluster(16)
registerDoParallel(cl)
dir <- "/lustre/beagle2/ober/users/smozaffari/ASE"
maternal <- read.table(paste(dir,"/data/expression/Mat... | /bin/tests/asymmetry_abs.R | permissive | smozaffari/ASE_PO | R | false | false | 3,757 | r | #!/usr/bin/Rscript
library(doParallel)
library(foreach)
require(doParallel)
require(foreach)
registerDoParallel()
getDoParWorkers()
registerDoSEQ()
getDoParWorkers()
cl <- makeCluster(16)
registerDoParallel(cl)
dir <- "/lustre/beagle2/ober/users/smozaffari/ASE"
maternal <- read.table(paste(dir,"/data/expression/Mat... |
VL <- function(z, m5 = 2.5) {
# This function computes the potential for a left-handed mode
# Returns a float if z is a float or an array if z is an array
return( exp(2*AsSpline(z)) * m5^2 - m5 * AsSpline(z, deriv = 1) * exp(AsSpline(z)) )
}
VR <- function(z, m5 = 2.5) {
# This function computes the potential ... | /R/SpinorModes.R | permissive | rcarcasses/HQCD-P | R | false | false | 1,898 | r | VL <- function(z, m5 = 2.5) {
# This function computes the potential for a left-handed mode
# Returns a float if z is a float or an array if z is an array
return( exp(2*AsSpline(z)) * m5^2 - m5 * AsSpline(z, deriv = 1) * exp(AsSpline(z)) )
}
VR <- function(z, m5 = 2.5) {
# This function computes the potential ... |
#Load the dplyr package
library(dplyr)
#Download the file containing the data and unpack it in the working directory
fileurl = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileurl, destfile = "electricity.zip", method = "curl")
unzip("electricity.zip")
#Read th... | /plot3.R | no_license | martinkruse/ExData_Plotting1 | R | false | false | 1,672 | r | #Load the dplyr package
library(dplyr)
#Download the file containing the data and unpack it in the working directory
fileurl = "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(fileurl, destfile = "electricity.zip", method = "curl")
unzip("electricity.zip")
#Read th... |
############################################################
# #
# Plot expectancy ratings #
# #
############################################################
# Load package... | /Juliane_all_data/Plot_expectancy_ratings.R | no_license | ToryMadden/CC_threshold | R | false | false | 2,664 | r | ############################################################
# #
# Plot expectancy ratings #
# #
############################################################
# Load package... |
setwd("WetlandModel/SLR")
library(rjags)
library(sp)
library(magrittr)
library(raster)
library(rgdal)
library(rgeos)
library(dplyr)
library(MCMCvis)
# Load in custom utility functions
source("../loadTHK99.R")
source("../../RUtilityFunctions/createModels.R")
source("../../RUtilityFunctions/codaSamplesDIC.R")
loadTHK99... | /WetlandModel/RestorationRevisit/runModels.R | no_license | ecospatial/NAS_2016 | R | false | false | 5,685 | r | setwd("WetlandModel/SLR")
library(rjags)
library(sp)
library(magrittr)
library(raster)
library(rgdal)
library(rgeos)
library(dplyr)
library(MCMCvis)
# Load in custom utility functions
source("../loadTHK99.R")
source("../../RUtilityFunctions/createModels.R")
source("../../RUtilityFunctions/codaSamplesDIC.R")
loadTHK99... |
##2019.3.7
#https://mp.weixin.qq.com/s/UIpGD7YF8kAaqluBoe8iWA
#手把手 | 哇!用R也可以跑Python了
install.packages("reticulate")
library(reticulate);?reticulate
#检查您的系统是否安装过Python
py_available() #False,要先安装python
#使用函数import()来导入特定的包或模块。
os <- import("os")
os$getcwd() #返回工作目录
#使用os包中的listdir()函数来查看工作目录中的所有文件。
... | /杂七杂八/Python_in_R.r | no_license | mrzhangqjankun/R-code-for-myself | R | false | false | 895 | r | ##2019.3.7
#https://mp.weixin.qq.com/s/UIpGD7YF8kAaqluBoe8iWA
#手把手 | 哇!用R也可以跑Python了
install.packages("reticulate")
library(reticulate);?reticulate
#检查您的系统是否安装过Python
py_available() #False,要先安装python
#使用函数import()来导入特定的包或模块。
os <- import("os")
os$getcwd() #返回工作目录
#使用os包中的listdir()函数来查看工作目录中的所有文件。
... |
library(testthat)
library(azrunr)
if(set_azure_options() !=TRUE) {
print('invalid option for azure (subscription, etc')
} else {
test_check("azrunr")
}
| /tests/testthat.R | permissive | billspat/azrunr | R | false | false | 161 | r | library(testthat)
library(azrunr)
if(set_azure_options() !=TRUE) {
print('invalid option for azure (subscription, etc')
} else {
test_check("azrunr")
}
|
# makeCacheMatrix takes a matrix
makeCacheMatrix <- function(x = matrix()) {
# initialize the m to NULL during the first call to makeCacheMatrix
# this is needed because getinv() is called immediately after
# the makeCacheMatrix funciton is constructed, without a call to setinv()
# first have to calculate t... | /cachematrix.R | no_license | bush1234/ProgrammingAssignment2 | R | false | false | 1,654 | r | # makeCacheMatrix takes a matrix
makeCacheMatrix <- function(x = matrix()) {
# initialize the m to NULL during the first call to makeCacheMatrix
# this is needed because getinv() is called immediately after
# the makeCacheMatrix funciton is constructed, without a call to setinv()
# first have to calculate t... |
# Test sss integration
#
# Author: Andrie
#------------------------------------------------------------------------------
context("sss test suite")
if(interactive()){
library(testthat)
sampleRoot <- "sss/tests/testthat/samples/sample-0"
} else {
sampleRoot <- "samples/sample-0"
}
filenameSSS <- fi... | /sss/tests/testthat/test-3-sss.R | no_license | ingted/R-Examples | R | false | false | 4,022 | r | # Test sss integration
#
# Author: Andrie
#------------------------------------------------------------------------------
context("sss test suite")
if(interactive()){
library(testthat)
sampleRoot <- "sss/tests/testthat/samples/sample-0"
} else {
sampleRoot <- "samples/sample-0"
}
filenameSSS <- fi... |
# ==============
# Making Health Economic Modelling Shiny
# Robert Smith, Paul Schneider & Sarah Bates
# University of Sheffield
# contact: info@darkpeakanalytics.com
# ==============
# clear global environment
rm(list =ls())
# load necessary packages
library(ggplot2)
# source custom functions
source("Markov Model/s... | /Markov Model/5. ExampleScript.R | permissive | anhnguyendepocen/emsr_course | R | false | false | 1,287 | r | # ==============
# Making Health Economic Modelling Shiny
# Robert Smith, Paul Schneider & Sarah Bates
# University of Sheffield
# contact: info@darkpeakanalytics.com
# ==============
# clear global environment
rm(list =ls())
# load necessary packages
library(ggplot2)
# source custom functions
source("Markov Model/s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataDocs.R
\docType{data}
\name{pisa2012}
\alias{pisa2012}
\alias{pisaEuro}
\title{PISA 2012 dataset}
\usage{
data(pisa2012)
}
\description{
Data from the \code{PISA2012lite} package.
}
\details{
The original dataset (Program for Internationa... | /man/pisa2012.Rd | no_license | AleksandraDabrowska/factorMerger | R | false | true | 1,188 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataDocs.R
\docType{data}
\name{pisa2012}
\alias{pisa2012}
\alias{pisaEuro}
\title{PISA 2012 dataset}
\usage{
data(pisa2012)
}
\description{
Data from the \code{PISA2012lite} package.
}
\details{
The original dataset (Program for Internationa... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
get... | /cachematrix.R | no_license | cagaraza/ProgrammingAssignment2 | R | false | false | 747 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setinverse <- function(inverse) m <<- inverse
get... |
library(shiny)
library(particlesjs)
ui <- fluidPage(
# Call particles in your UI
particles(),
headerPanel('Iris k-means clustering'),
sidebarLayout(
sidebarPanel(
selectInput('xcol', 'X Variable', names(iris)),
selectInput('ycol', 'Y Variable', names(iris),
selected=names... | /dev/app-iris.R | no_license | dreamRs/particlesjs | R | false | false | 1,046 | r |
library(shiny)
library(particlesjs)
ui <- fluidPage(
# Call particles in your UI
particles(),
headerPanel('Iris k-means clustering'),
sidebarLayout(
sidebarPanel(
selectInput('xcol', 'X Variable', names(iris)),
selectInput('ycol', 'Y Variable', names(iris),
selected=names... |
function(input, output) {
# output$outcode <- renderPrint({
#
# myin <- input$edges
# if(length(myin) > 0) {
# print(edgeList())
# #print(igraphFromList())
# } else {
#
# print("Shift+click to add nodes, shift+drag to add edges")... | /inst/shiny/interface/server.R | permissive | jbdatascience/causaloptim | R | false | false | 19,113 | r | function(input, output) {
# output$outcode <- renderPrint({
#
# myin <- input$edges
# if(length(myin) > 0) {
# print(edgeList())
# #print(igraphFromList())
# } else {
#
# print("Shift+click to add nodes, shift+drag to add edges")... |
quartz(type="png", file="fc.png", width=7, height=7, bg="white", family="HiraKakuProN-W3")
par(mgp=c(1.7,0.7,0)) # title and axis margins. default: c(3,1,0)
par(mar=c(3,3,2,2)) # bottom, left, top, right margins. default: c(5,4,4,2)+0.1
plot(NULL, xlim=c(0,20), ylim=c(0,20), xlab="x", ylab="lambda", xaxs="i", yaxs="i",... | /stat/CI/fc.R | no_license | okumuralab/okumuralab.github.io | R | false | false | 758 | r | quartz(type="png", file="fc.png", width=7, height=7, bg="white", family="HiraKakuProN-W3")
par(mgp=c(1.7,0.7,0)) # title and axis margins. default: c(3,1,0)
par(mar=c(3,3,2,2)) # bottom, left, top, right margins. default: c(5,4,4,2)+0.1
plot(NULL, xlim=c(0,20), ylim=c(0,20), xlab="x", ylab="lambda", xaxs="i", yaxs="i",... |
change_others_to_dataframe <- function(x) {
# If x is a data frame, do nothing and return x
# Otherwise, return a data frame with 1 row of NAs
if (nrow(x) != 0) {return(x)}
else {
return(data.frame(om_all = NA))
}
}
change_others_to_dataframe2 <- function(x) {
# If x is a data fram... | /scripts/change_NA_to_df.R | no_license | AndreaSanchezTapia/CNCFlora_IUCN_LC | R | false | false | 584 | r | change_others_to_dataframe <- function(x) {
# If x is a data frame, do nothing and return x
# Otherwise, return a data frame with 1 row of NAs
if (nrow(x) != 0) {return(x)}
else {
return(data.frame(om_all = NA))
}
}
change_others_to_dataframe2 <- function(x) {
# If x is a data fram... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_run_modify.R
\name{umxRAM}
\alias{umxRAM}
\title{Easier path-based SEM modeling.}
\usage{
umxRAM(
model = NA,
...,
data = NULL,
name = NA,
group = NULL,
group.equal = NULL,
suffix = "",
comparison = TRUE,
type = c("Aut... | /man/umxRAM.Rd | no_license | jishanling/umx | R | false | true | 12,266 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_run_modify.R
\name{umxRAM}
\alias{umxRAM}
\title{Easier path-based SEM modeling.}
\usage{
umxRAM(
model = NA,
...,
data = NULL,
name = NA,
group = NULL,
group.equal = NULL,
suffix = "",
comparison = TRUE,
type = c("Aut... |
#####################################################################################
#
# SCORE RANKS
#
# Author: Dr. Víctor G. Tercero Gómez
# Affiliation: Tecnologico de Monterrey
#
# Date: November 3, 2017
# Versión: 1.0
#
# DESCRIPTION
#
# The function get different linear rank scores fr... | /scoring.R | permissive | vitergo/NPfactorial-package-in-R | R | false | false | 2,018 | r | #####################################################################################
#
# SCORE RANKS
#
# Author: Dr. Víctor G. Tercero Gómez
# Affiliation: Tecnologico de Monterrey
#
# Date: November 3, 2017
# Versión: 1.0
#
# DESCRIPTION
#
# The function get different linear rank scores fr... |
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
# #
# valueFuncs - Calculates/Retrieves the value functions for each treatment #
# option for IQ- and Q-Learning methods. ... | /DynTxRegime/R/methods-qFuncs.R | no_license | ingted/R-Examples | R | false | false | 1,660 | r | #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
# #
# valueFuncs - Calculates/Retrieves the value functions for each treatment #
# option for IQ- and Q-Learning methods. ... |
#FUNCTIONS
ConstructPopulationData=function(Income,HouseholdData,Name=NULL,Pop=NULL,PropertyInput=NULL) {
OutputDF=HouseholdData[findInterval(Income, c(0,HouseholdData$Decilepoints[1:9])),c(-(1:3))]
if(!is.null(PropertyInput)) OutputDF$Property=PropertyInput
if(is.null(Name)) Name = seq_along(Income)
if(is.nul... | /Model/Model/Calc_1TaxFunctions.R | no_license | sjstretton/screwed | R | false | false | 8,828 | r | #FUNCTIONS
ConstructPopulationData=function(Income,HouseholdData,Name=NULL,Pop=NULL,PropertyInput=NULL) {
OutputDF=HouseholdData[findInterval(Income, c(0,HouseholdData$Decilepoints[1:9])),c(-(1:3))]
if(!is.null(PropertyInput)) OutputDF$Property=PropertyInput
if(is.null(Name)) Name = seq_along(Income)
if(is.nul... |
tok<-"ZsgzPKqkVyrdJeHfPpuCaCmtfFhtimYv" | /tokens.R | no_license | wente011/St.-Paul | R | false | false | 39 | r | tok<-"ZsgzPKqkVyrdJeHfPpuCaCmtfFhtimYv" |
plot2 <- function(){
##download and load in data
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url = fileURL, destfile = "./data.zip")
unzip(zipfile = "./data.zip")
data <- read.table(file = "./household_power_consumption.txt", sep = ... | /plot2.R | no_license | husainArafat/ExData_Plotting1 | R | false | false | 1,007 | r | plot2 <- function(){
##download and load in data
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url = fileURL, destfile = "./data.zip")
unzip(zipfile = "./data.zip")
data <- read.table(file = "./household_power_consumption.txt", sep = ... |
par(mfrow=c(2,2))
plot(dt$timestamp,dt$Global_active_power,type = "l" ,ylab = "Global Active Power (kilowatts)" ,xlab = "")
plot(dt$timestamp,dt$Voltage, type="l", xlab="datetime", ylab="Voltage")
plot(dt$timestamp,dt$Sub_metering_1,type = "l" ,ylab = "Energy sub metering" ,xlab = "")
lines(dt$timestamp,dt$Sub_metering... | /plot4.R | no_license | amoawad87/ExData_Plotting1 | R | false | false | 705 | r | par(mfrow=c(2,2))
plot(dt$timestamp,dt$Global_active_power,type = "l" ,ylab = "Global Active Power (kilowatts)" ,xlab = "")
plot(dt$timestamp,dt$Voltage, type="l", xlab="datetime", ylab="Voltage")
plot(dt$timestamp,dt$Sub_metering_1,type = "l" ,ylab = "Energy sub metering" ,xlab = "")
lines(dt$timestamp,dt$Sub_metering... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/new_doc_with_preamble.R
\name{new_doc_with_preamble}
\alias{new_doc_with_preamble}
\title{Clean the environment and run the active script}
\usage{
new_doc_with_preamble(preamble = default_preamble)
}
\description{
Clean the environment and ru... | /man/new_doc_with_preamble.Rd | no_license | graiffgarcia/addinexamplesRG | R | false | true | 342 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/new_doc_with_preamble.R
\name{new_doc_with_preamble}
\alias{new_doc_with_preamble}
\title{Clean the environment and run the active script}
\usage{
new_doc_with_preamble(preamble = default_preamble)
}
\description{
Clean the environment and ru... |
# More than natural variation?
#######################################################################################################################
#
# Let's see if the apparent trend in the plot is something more than natural variation. Fit a linear model
# called m_bty to predict average professor score by av... | /dataCamp/openCourses/dataAnalysisAndStatisticalInference/9_multipleLineaRegression/9_moreThanNaturalVariation.R | permissive | odonnmi/learnNPractice | R | false | false | 716 | r | # More than natural variation?
#######################################################################################################################
#
# Let's see if the apparent trend in the plot is something more than natural variation. Fit a linear model
# called m_bty to predict average professor score by av... |
# Export Module
#' module exportPeaks UI function
#' @export
exportPeaksUI <- function(id){
ns <- NS(id)
fluidRow(
column(10, HTML("<h4>Export</h4>")) ,
column(10,uiOutput(ns("runName"))) ,
column(10,downloadButton(ns("ExportPeaks"), "Export peaks (xlsx)")),
HTML("<br> ... | /inst/shiny/exportPeaks.R | no_license | sybrohee/pickpeak | R | false | false | 2,850 | r |
# Export Module
#' module exportPeaks UI function
#' @export
exportPeaksUI <- function(id){
ns <- NS(id)
fluidRow(
column(10, HTML("<h4>Export</h4>")) ,
column(10,uiOutput(ns("runName"))) ,
column(10,downloadButton(ns("ExportPeaks"), "Export peaks (xlsx)")),
HTML("<br> ... |
#### Required packages ####
if (!require("ggplot2")) install.packages("ggplot2")
if (!require("gratia")) install.packages("gratia")
if (!require("signs")) install.packages("signs") # signs_format
#### Required data ####
load("./data/GAMM.Rda")
#### SI Figure 5 ####
plt1 <- qq_plot(Mod, method="simulate", point_... | /figures/SupplementaryInformationFigures/script_Supp_Inf_Fig5.R | no_license | mcwimm/GRINanalysis | R | false | false | 2,072 | r | #### Required packages ####
if (!require("ggplot2")) install.packages("ggplot2")
if (!require("gratia")) install.packages("gratia")
if (!require("signs")) install.packages("signs") # signs_format
#### Required data ####
load("./data/GAMM.Rda")
#### SI Figure 5 ####
plt1 <- qq_plot(Mod, method="simulate", point_... |
## Verify and set Working Directory
getwd()
setwd("D:/E_Learn_Course_Data_Science_and_Analytics/Exploratory_Data_Analysis")
## Read the database
Full_database <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?",
check.names=F, stringsAsFactors=F, comment.char... | /plot2.R | no_license | DominicTanJX/Exploratory-Data-Analysis | R | false | false | 929 | r | ## Verify and set Working Directory
getwd()
setwd("D:/E_Learn_Course_Data_Science_and_Analytics/Exploratory_Data_Analysis")
## Read the database
Full_database <- read.csv("./household_power_consumption.txt", header=T, sep=';', na.strings="?",
check.names=F, stringsAsFactors=F, comment.char... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kimma_cleaning.R
\name{kimma_cleaning}
\alias{kimma_cleaning}
\title{kmFit data cleaning}
\usage{
kimma_cleaning(
dat = NULL,
kin = NULL,
patientID = "ptID",
libraryID = "libID",
counts = NULL,
meta = NULL,
genes = NULL,
subse... | /man/kimma_cleaning.Rd | permissive | kdillmcfarland/kimma | R | false | true | 1,421 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kimma_cleaning.R
\name{kimma_cleaning}
\alias{kimma_cleaning}
\title{kmFit data cleaning}
\usage{
kimma_cleaning(
dat = NULL,
kin = NULL,
patientID = "ptID",
libraryID = "libID",
counts = NULL,
meta = NULL,
genes = NULL,
subse... |
# read data
con <- file("./data/household_power_consumption.txt")
data <- read.table(text = grep("^[1,2]/2/2007", readLines(con), value=TRUE), sep = ";", col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3"), na... | /exploratory-data-analysis/week-1/ExData_Plotting1/plot3.R | no_license | gohed/datascience-coursera | R | false | false | 871 | r | # read data
con <- file("./data/household_power_consumption.txt")
data <- read.table(text = grep("^[1,2]/2/2007", readLines(con), value=TRUE), sep = ";", col.names = c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3"), na... |
#' @title Rolling a device
#' @description Simulates rolling the specified device.
#' @param device object of class "device", with at least two sides and appropriate probability values
#' @param times the number of times the device is to be rolled (must be a positive integer); default 1
#' @return The observed rolls
#'... | /R/rolls.R | no_license | epm927/roller | R | false | false | 1,562 | r | #' @title Rolling a device
#' @description Simulates rolling the specified device.
#' @param device object of class "device", with at least two sides and appropriate probability values
#' @param times the number of times the device is to be rolled (must be a positive integer); default 1
#' @return The observed rolls
#'... |
#' Retrieve v facility info data from ghg database
#'
#' @param FACILITY_ID e.g. '1001781'. See Details.
#' @param REPORTING_YEAR e.g. '2012'. See Details.
#' @param FACILITY_NAME e.g. 'INVISTA S.a r.l.'. See Details.
#' @param NUM_NITRIC_ACID_TRAINS e.g. '1'. See Details.
#' @export
ghg_v_facility_info <- function(F... | /R/ghg_v_facility_info.R | no_license | markwh/envirofacts | R | false | false | 655 | r | #' Retrieve v facility info data from ghg database
#'
#' @param FACILITY_ID e.g. '1001781'. See Details.
#' @param REPORTING_YEAR e.g. '2012'. See Details.
#' @param FACILITY_NAME e.g. 'INVISTA S.a r.l.'. See Details.
#' @param NUM_NITRIC_ACID_TRAINS e.g. '1'. See Details.
#' @export
ghg_v_facility_info <- function(F... |
.mime_part_finalizer <- function(x) {
if (!is.null(x$file))
file.remove(x$file)
}
.mime_part <- function(headers, file=NULL, text=NULL) {
if (!is.null(file) && !is.null(text))
stop("Can only provide file or text for mime part.")
e <- environment()
reg.finalizer(e, .mime_part_finalizer, onexit=TRUE)
... | /R/mime_part.R | no_license | ryninho/sendmailR-1 | R | false | false | 5,360 | r | .mime_part_finalizer <- function(x) {
if (!is.null(x$file))
file.remove(x$file)
}
.mime_part <- function(headers, file=NULL, text=NULL) {
if (!is.null(file) && !is.null(text))
stop("Can only provide file or text for mime part.")
e <- environment()
reg.finalizer(e, .mime_part_finalizer, onexit=TRUE)
... |
#######------------------------------------------------------------------------------- #######
#######-------- W E E K - 4 ( D A T A C L E A N I N G E X C E R C I S E ) -------- #######
#######------------------------------------------------------------------------------- #######
# Load: activity labels & Data... | /run_analysis.R | no_license | koushikcoursera/Datacleaning-Repo | R | false | false | 3,439 | r |
#######------------------------------------------------------------------------------- #######
#######-------- W E E K - 4 ( D A T A C L E A N I N G E X C E R C I S E ) -------- #######
#######------------------------------------------------------------------------------- #######
# Load: activity labels & Data... |
#Given input in the form of draws from the posterior distributions for Model 3,
#generate a sequence of simulated flows.
setup=function(){
if(file.exists("C:/Users/jonazose")){
setwd("C:/Users/jonazose/Dropbox/RA/Code/flows/flows_git")
}else if(file.exists("C:/Users/Jon-Everyday")){
setwd("C:/Users/Jon-... | /simulateModel5.R | no_license | jazose/flows | R | false | false | 6,519 | r | #Given input in the form of draws from the posterior distributions for Model 3,
#generate a sequence of simulated flows.
setup=function(){
if(file.exists("C:/Users/jonazose")){
setwd("C:/Users/jonazose/Dropbox/RA/Code/flows/flows_git")
}else if(file.exists("C:/Users/Jon-Everyday")){
setwd("C:/Users/Jon-... |
context("fake_request")
test_that('URL parsing works', {
req <- fake_request('http://www.example.com')
expect_equal(req[['rook.url_scheme']], 'http')
req <- fake_request('www.example.com')
expect_equal(req[['rook.url_scheme']], 'http')
req <- fake_request('https://www.example.com')
expect_equal... | /tests/testthat/test-fake_request.R | no_license | aespar21/fiery | R | false | false | 4,659 | r | context("fake_request")
test_that('URL parsing works', {
req <- fake_request('http://www.example.com')
expect_equal(req[['rook.url_scheme']], 'http')
req <- fake_request('www.example.com')
expect_equal(req[['rook.url_scheme']], 'http')
req <- fake_request('https://www.example.com')
expect_equal... |
showmodel <- function(model, verbose = interactive()) {
if (verbose) {
cat(model)
cat("\n")
}
}
ks <- function(a, model, alternative = c("two.sided", "less", "greater"), verbose = FALSE) {
showmodel(model, verbose)
if (is.matrix(a)) {
r <- ks.matrix(a, model, alternative)
} else {
r <- ks.vec... | /R/ks.R | no_license | zy26/M3S | R | false | false | 3,918 | r | showmodel <- function(model, verbose = interactive()) {
if (verbose) {
cat(model)
cat("\n")
}
}
ks <- function(a, model, alternative = c("two.sided", "less", "greater"), verbose = FALSE) {
showmodel(model, verbose)
if (is.matrix(a)) {
r <- ks.matrix(a, model, alternative)
} else {
r <- ks.vec... |
#!/usr/local/bin/Rscript
library(beadarray)
library(limma)
library(biomaRt)
library(illuminaMousev2BeadID.db)
#load the data
BSData <- get(load("results/BSData.quantile.RData"))
E <- exprs(BSData)
design<-matrix(0,nrow=(ncol(E)), ncol=2)
colnames(design) <- c("MLA_NS","MLA_Neurons")
rownames(design) <- colnames(E)... | /scripts/microarrayanalysis.R | no_license | Bongomountainthesis/mla_neurons_lumixpn | R | false | false | 1,940 | r | #!/usr/local/bin/Rscript
library(beadarray)
library(limma)
library(biomaRt)
library(illuminaMousev2BeadID.db)
#load the data
BSData <- get(load("results/BSData.quantile.RData"))
E <- exprs(BSData)
design<-matrix(0,nrow=(ncol(E)), ncol=2)
colnames(design) <- c("MLA_NS","MLA_Neurons")
rownames(design) <- colnames(E)... |
brmsfit <- function(formula = NULL, family = "", link = "", data.name = "",
data = data.frame(), model = "", exclude = NULL,
prior = list(), ranef = NULL, autocor = NULL,
partial = NULL, cov.ranef = NULL, fit = NA,
algorithm = "sampling") ... | /R/generics.R | no_license | paulhendricks/brms | R | false | false | 18,655 | r | brmsfit <- function(formula = NULL, family = "", link = "", data.name = "",
data = data.frame(), model = "", exclude = NULL,
prior = list(), ranef = NULL, autocor = NULL,
partial = NULL, cov.ranef = NULL, fit = NA,
algorithm = "sampling") ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batchFunc.R
\name{batchDepth}
\alias{batchDepth}
\title{Calulate depth.}
\usage{
batchDepth(bamFiles, bedFile, outDir, thread, mapqFilter)
}
\arguments{
\item{bamFiles}{A character string of BAM file paths seperated by comma(,).}
\item{bedFi... | /man/batchDepth.Rd | no_license | sanadamakomi/exonCNV | R | false | true | 564 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batchFunc.R
\name{batchDepth}
\alias{batchDepth}
\title{Calulate depth.}
\usage{
batchDepth(bamFiles, bedFile, outDir, thread, mapqFilter)
}
\arguments{
\item{bamFiles}{A character string of BAM file paths seperated by comma(,).}
\item{bedFi... |
n=3
png('./figures/F6_com_allacts_types_hd.png', width=1200*n, height=900*n, res=96)
par(oma=c(6,5,22,4),
par(mar=c(2,1,1,1)),
bg=background.color,
bty='n',
family='Montserrat')
cdirs$cdirs<-as.numeric(as.character(cdirs$cdirs))
### main plot with dots
plot(xlim=c(1,18), ylim=c(0,900), NULL... | /scripts/05_6 viz com all acts types hd.R | no_license | demetriodor/eur-lex | R | false | false | 4,221 | r | n=3
png('./figures/F6_com_allacts_types_hd.png', width=1200*n, height=900*n, res=96)
par(oma=c(6,5,22,4),
par(mar=c(2,1,1,1)),
bg=background.color,
bty='n',
family='Montserrat')
cdirs$cdirs<-as.numeric(as.character(cdirs$cdirs))
### main plot with dots
plot(xlim=c(1,18), ylim=c(0,900), NULL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin2factor.R
\name{step_bin2factor}
\alias{step_bin2factor}
\alias{tidy.step_bin2factor}
\title{Create a Factors from A Dummy Variable}
\usage{
step_bin2factor(recipe, ..., role = NA, trained = FALSE,
levels = c("yes", "no"), ref_first = TR... | /man/step_bin2factor.Rd | no_license | Athospd/recipes | R | false | true | 3,104 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bin2factor.R
\name{step_bin2factor}
\alias{step_bin2factor}
\alias{tidy.step_bin2factor}
\title{Create a Factors from A Dummy Variable}
\usage{
step_bin2factor(recipe, ..., role = NA, trained = FALSE,
levels = c("yes", "no"), ref_first = TR... |
require(shiny)
require(shinyjs)
require(shinyWidgets)
require(shinyFiles)
require(shinyBS)
linebreaks <- function(n){HTML(strrep(br(), n))}
shinyUI(fluidPage(theme = "bootstrap.css",
useShinyjs(),
titlePanel("Welcome to the Stock Synthesis data-limited tool (SS-DL tool)"),
h4(p(strong("This tool uses the St... | /.history/ui_20230816025256.r | no_license | shcaba/SS-DL-tool | R | false | false | 75,180 | r | require(shiny)
require(shinyjs)
require(shinyWidgets)
require(shinyFiles)
require(shinyBS)
linebreaks <- function(n){HTML(strrep(br(), n))}
shinyUI(fluidPage(theme = "bootstrap.css",
useShinyjs(),
titlePanel("Welcome to the Stock Synthesis data-limited tool (SS-DL tool)"),
h4(p(strong("This tool uses the St... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/size_of_selfloops.R
\name{size_of_selfloops}
\alias{size_of_selfloops}
\title{Metric: Size of selfloops}
\usage{
size_of_selfloops(eventlog, type = c("repeat", "redo"),
level_of_analysis = c("log", "case", "activity", "resource",
"resourc... | /man/size_of_selfloops.Rd | no_license | strategist922/edeaR | R | false | true | 838 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/size_of_selfloops.R
\name{size_of_selfloops}
\alias{size_of_selfloops}
\title{Metric: Size of selfloops}
\usage{
size_of_selfloops(eventlog, type = c("repeat", "redo"),
level_of_analysis = c("log", "case", "activity", "resource",
"resourc... |
\name{quantile}
\alias{quantile}
\alias{quantile-methods}
\alias{quantile,BoundedDensity-method}
\alias{quantile,Chen99Kernel-method}
\alias{quantile,MicroBetaChen99Kernel-method}
\alias{quantile,MacroBetaChen99Kernel-method}
\alias{quantile,BoundaryKernel-method}
\alias{quantile,NoBoundaryKernel-method}
\alias{quantil... | /man/quantile.Rd | no_license | cran/bde | R | false | false | 1,489 | rd | \name{quantile}
\alias{quantile}
\alias{quantile-methods}
\alias{quantile,BoundedDensity-method}
\alias{quantile,Chen99Kernel-method}
\alias{quantile,MicroBetaChen99Kernel-method}
\alias{quantile,MacroBetaChen99Kernel-method}
\alias{quantile,BoundaryKernel-method}
\alias{quantile,NoBoundaryKernel-method}
\alias{quantil... |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | /R/pkg/inst/tests/testthat/test_broadcast.R | permissive | ElfoLiNk/spark | R | false | false | 1,724 | r | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... |
library(arules)
#
# data1 <- bookings.made.v.grouped[ , c("Populationdensity.ERPat30June.persons.km2", "RegionLocation" , "ClubsInSuburb" ,
# "recently.advertised", "Medianequivalisedtotalhouseholdincome.weekly.AUD" , "MedianAge.Persons.years",
# ... | /AssocRules.R | no_license | nader-chmait/BAC.R | R | false | false | 3,163 | r |
library(arules)
#
# data1 <- bookings.made.v.grouped[ , c("Populationdensity.ERPat30June.persons.km2", "RegionLocation" , "ClubsInSuburb" ,
# "recently.advertised", "Medianequivalisedtotalhouseholdincome.weekly.AUD" , "MedianAge.Persons.years",
# ... |
# Calibrations on v1.6.12
sModelCalibrations <- c(
"name IsHyst data aggreg ParamFinalR",
"GR1A FALSE L0123001 %Y 9.112500e-01",
"GR2M FALSE L0123001 %Y%m 2.598228e+02;9.975000e-01",
"GR4J FALSE L0123001 NA 2.236316e+02;5.781516e-01;9.751439e+01;2.217718e+0... | /tests/testthat/helper_scheduled_Calibration.R | no_license | cran/airGR | R | false | false | 6,566 | r | # Calibrations on v1.6.12
sModelCalibrations <- c(
"name IsHyst data aggreg ParamFinalR",
"GR1A FALSE L0123001 %Y 9.112500e-01",
"GR2M FALSE L0123001 %Y%m 2.598228e+02;9.975000e-01",
"GR4J FALSE L0123001 NA 2.236316e+02;5.781516e-01;9.751439e+01;2.217718e+0... |
library(VAST)
library(TMB)
library(dplyr)
library(tidyr)
library(reshape)
library(mapdata)
library(ggplot2)
# Directories ----
comp.name <- c("mkapur",'maia kapur')[2]
RootFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/runs/")
DataFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/data/" ) #pas... | /R/deprecated_code/draft3_v1.R | no_license | mkapur/sab-idx | R | false | false | 22,573 | r | library(VAST)
library(TMB)
library(dplyr)
library(tidyr)
library(reshape)
library(mapdata)
library(ggplot2)
# Directories ----
comp.name <- c("mkapur",'maia kapur')[2]
RootFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/runs/")
DataFile <- paste0( "C:/Users/",comp.name ,"/Dropbox/UW/sab-idx/data/" ) #pas... |
\encoding{UTF-8}
\name{Disake-package}
\alias{Disake-package}
\alias{Disake}
\docType{package}
\title{
Discrete associated kernel estimators
}
\description{
Discrete smoothing of probability mass function (p.m.f.) is performed using three discrete associated kernels: DiracDU, Binomial and Discrete Triangular. Two aut... | /man/Disake-package.Rd | no_license | cran/Disake | R | false | false | 5,266 | rd | \encoding{UTF-8}
\name{Disake-package}
\alias{Disake-package}
\alias{Disake}
\docType{package}
\title{
Discrete associated kernel estimators
}
\description{
Discrete smoothing of probability mass function (p.m.f.) is performed using three discrete associated kernels: DiracDU, Binomial and Discrete Triangular. Two aut... |
# LIBRARIES
library(plot3D)
# Que desea graficar
listOfChartTypes <- list(
# General charts (they use information from more than one file)
"xEpisode_yOptimalAction", "xEpisode_yAverageReward", "xEpisode_yPercentageOfActions", "xEpisode_yWinProbability", "xEpisode_yAverageSteps", "xEpisode_yAverageStepsWhenWin", "x... | /bin/Analysis/RLGraficar.R | no_license | PedroReyes/ReinforcementLearning | R | false | false | 53,791 | r | # LIBRARIES
library(plot3D)
# Que desea graficar
listOfChartTypes <- list(
# General charts (they use information from more than one file)
"xEpisode_yOptimalAction", "xEpisode_yAverageReward", "xEpisode_yPercentageOfActions", "xEpisode_yWinProbability", "xEpisode_yAverageSteps", "xEpisode_yAverageStepsWhenWin", "x... |
org.par <- par("ask" = TRUE)
# simulated data to test
set.seed(10)
ftime <- rexp(200)
fstatus <- sample(0:2, 200, replace = TRUE)
cov <- data.frame(
x1 = runif(200),
x2 = runif(200),
x3 = runif(200)
)
library(rms)
dd <- datadist(cov)
options(datadist = "dd")
fit1 <- cph(Surv(ftime, fstatus == 1) ~ x1 + x2 + x3... | /inst/examples/forestplotRegrObj_example.R | no_license | yadevi/Greg | R | false | false | 1,111 | r | org.par <- par("ask" = TRUE)
# simulated data to test
set.seed(10)
ftime <- rexp(200)
fstatus <- sample(0:2, 200, replace = TRUE)
cov <- data.frame(
x1 = runif(200),
x2 = runif(200),
x3 = runif(200)
)
library(rms)
dd <- datadist(cov)
options(datadist = "dd")
fit1 <- cph(Surv(ftime, fstatus == 1) ~ x1 + x2 + x3... |
setwd("C:\\Users\\jack-\\Desktop")
getwd()
r <- read.csv("TeamTolandCSV.csv")
str(r)
messages <- subset(r, select=c("Date","Time","Sender","Message"))
levels(messages$Sender)
newmess <- messages[(messages$Sender == "Andrew Morton") |
(messages$Sender == "Angela Toland")|
... | /Whatsapp Chat Plots.R | no_license | JackMcKechnie/WhatsApp-Chat-Plots | R | false | false | 4,744 | r | setwd("C:\\Users\\jack-\\Desktop")
getwd()
r <- read.csv("TeamTolandCSV.csv")
str(r)
messages <- subset(r, select=c("Date","Time","Sender","Message"))
levels(messages$Sender)
newmess <- messages[(messages$Sender == "Andrew Morton") |
(messages$Sender == "Angela Toland")|
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{disease}
\alias{disease}
\title{Disease Data}
\format{A dataframe with 196 rows and 4 columns.
\describe{
\item{\code{disease_status}}{Indicator of whether the disease is present.
Coded as: \itemize{
... | /man/disease.Rd | permissive | frank113/cmu202 | R | false | true | 1,398 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{disease}
\alias{disease}
\title{Disease Data}
\format{A dataframe with 196 rows and 4 columns.
\describe{
\item{\code{disease_status}}{Indicator of whether the disease is present.
Coded as: \itemize{
... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170294e+295, 3.84343773421094e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 3L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613103477-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 282 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170294e+295, 3.84343773421094e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 3L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
#################### RIQUEZA E ABUNDANCIA ####################
# dados BCI
### area = 10 hectares
### total de individuos com DAP maior ou igual a 10 cm = 4510
### riqueza = 170
require(vegan)
data(BCI)
dim(BCI[1:10,apply(BCI[1:10,],2,sum)!=0])[2] #numero de especies encontradas em 10 plots (10 hectares)
sum(BCI[1:10... | /hipercubo/parametros.R | no_license | luisanovara/simula-neutra-step | R | false | false | 1,453 | r | #################### RIQUEZA E ABUNDANCIA ####################
# dados BCI
### area = 10 hectares
### total de individuos com DAP maior ou igual a 10 cm = 4510
### riqueza = 170
require(vegan)
data(BCI)
dim(BCI[1:10,apply(BCI[1:10,],2,sum)!=0])[2] #numero de especies encontradas em 10 plots (10 hectares)
sum(BCI[1:10... |
library(bio3d)
### Name: dccm.pca
### Title: Dynamic Cross-Correlation from Principal Component Analysis
### Aliases: dccm.pca
### Keywords: analysis
### ** Examples
## Not run:
##D ##-- Read example trajectory file
##D trtfile <- system.file("examples/hivp.dcd", package="bio3d")
##D trj <- read.dcd(trtfile)
##D
... | /data/genthat_extracted_code/bio3d/examples/dccm.pca.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,002 | r | library(bio3d)
### Name: dccm.pca
### Title: Dynamic Cross-Correlation from Principal Component Analysis
### Aliases: dccm.pca
### Keywords: analysis
### ** Examples
## Not run:
##D ##-- Read example trajectory file
##D trtfile <- system.file("examples/hivp.dcd", package="bio3d")
##D trj <- read.dcd(trtfile)
##D
... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/internal.R
\name{get_dataset}
\alias{get_dataset}
\title{Internal function that retrieves a dataset from AzureML.}
\usage{
get_dataset(x, h, ...)
}
\arguments{
\item{x}{a list or data.frame with \code{DownloadLocation} and \code{DataT... | /man/get_dataset.Rd | no_license | rmhorton/AzureML | R | false | false | 549 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/internal.R
\name{get_dataset}
\alias{get_dataset}
\title{Internal function that retrieves a dataset from AzureML.}
\usage{
get_dataset(x, h, ...)
}
\arguments{
\item{x}{a list or data.frame with \code{DownloadLocation} and \code{DataT... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_D3partitionR.R
\name{set_continuous_color_scale}
\alias{set_continuous_color_scale}
\title{Add a custom discrete color scale}
\usage{
set_continuous_color_scale(D3partitionR_object, color_palette)
}
\arguments{
\item{D3partitionR_object... | /man/set_continuous_color_scale.Rd | no_license | AntoineGuillot2/D3partitionR | R | false | true | 586 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build_D3partitionR.R
\name{set_continuous_color_scale}
\alias{set_continuous_color_scale}
\title{Add a custom discrete color scale}
\usage{
set_continuous_color_scale(D3partitionR_object, color_palette)
}
\arguments{
\item{D3partitionR_object... |
/5.Correlation Analysis of Classified Data/Correlation Analysis of Classified Data.R | no_license | luweihao/Nonparametric-statistics | R | false | false | 2,612 | r | ||
library(tidyverse) # Utilities
library(openxlsx) # Excel exports
# Params
departement <- '75' # Département de votre commune
commune <- '75105' # Code INSEE de votre commune/arrondissement
iris <- c('751052003', '751051905', '751051906') # Vos IRIS
# Import data
dipl90 <- read.csv("data/diplomes-1990.csv") %>% as_tib... | /dipl.R | no_license | gordesch/diag | R | false | false | 5,679 | r | library(tidyverse) # Utilities
library(openxlsx) # Excel exports
# Params
departement <- '75' # Département de votre commune
commune <- '75105' # Code INSEE de votre commune/arrondissement
iris <- c('751052003', '751051905', '751051906') # Vos IRIS
# Import data
dipl90 <- read.csv("data/diplomes-1990.csv") %>% as_tib... |
#' Write HTML report for DESeq2 analyses
#'
#' Write HTML report from graphs and tables created during the analysis with DESeq2
#'
#' @param target target \code{data.frame} of the project returned by \code{loadTargetFile()}
#' @param counts \code{matrix} of counts returned by \code{loadCountData()}
#' @param out.DESeq2... | /deseq2_multi/3.0/writeReport.DESeq2.r | no_license | cyverse/docker-builds | R | false | false | 2,490 | r | #' Write HTML report for DESeq2 analyses
#'
#' Write HTML report from graphs and tables created during the analysis with DESeq2
#'
#' @param target target \code{data.frame} of the project returned by \code{loadTargetFile()}
#' @param counts \code{matrix} of counts returned by \code{loadCountData()}
#' @param out.DESeq2... |
library(optparse)
option_list <- list(
make_option(c("-g", "--gene_list"), type="character", default=NULL,
help="gene list to begin with",
metavar="character"),
make_option(c("-a", "--asc_cutoff"), type="numeric", default=50,
help="ASC cutoff (will ignore asc obs... | /mixfine/gene_qc.R | permissive | liangyy/mixqtl-gtex | R | false | false | 2,370 | r | library(optparse)
option_list <- list(
make_option(c("-g", "--gene_list"), type="character", default=NULL,
help="gene list to begin with",
metavar="character"),
make_option(c("-a", "--asc_cutoff"), type="numeric", default=50,
help="ASC cutoff (will ignore asc obs... |
## A set of two functions, one that cache the inverse of a matrix and another
## one that solves the inverse of a matrix and retrieves the cached inverse
## if the inverse has already been calculated.
## This function creates a matrix object that can cache the inverse of a
## given matrix.
makeCacheMatrix <- functi... | /cachematrix.R | no_license | derzse/ProgrammingAssignment2 | R | false | false | 2,015 | r | ## A set of two functions, one that cache the inverse of a matrix and another
## one that solves the inverse of a matrix and retrieves the cached inverse
## if the inverse has already been calculated.
## This function creates a matrix object that can cache the inverse of a
## given matrix.
makeCacheMatrix <- functi... |
library(heemod)
### Name: define_surv_table
### Title: Define a survival distribution based on explicit survival
### probabilities
### Aliases: define_surv_table define_surv_table.data.frame
### define_surv_table.character
### ** Examples
x <- data.frame(time = c(0, 1, 5, 10), survival = c(1, 0.9, 0.7, 0.5))
... | /data/genthat_extracted_code/heemod/examples/define_surv_table.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 346 | r | library(heemod)
### Name: define_surv_table
### Title: Define a survival distribution based on explicit survival
### probabilities
### Aliases: define_surv_table define_surv_table.data.frame
### define_surv_table.character
### ** Examples
x <- data.frame(time = c(0, 1, 5, 10), survival = c(1, 0.9, 0.7, 0.5))
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mediaconvert_service.R
\name{mediaconvert}
\alias{mediaconvert}
\title{AWS Elemental MediaConvert}
\usage{
mediaconvert()
}
\description{
AWS Elemental MediaConvert
}
\section{Operations}{
\tabular{ll}{
\link[=mediaconvert_associate_certific... | /paws/man/mediaconvert.Rd | permissive | peoplecure/paws | R | false | true | 3,233 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mediaconvert_service.R
\name{mediaconvert}
\alias{mediaconvert}
\title{AWS Elemental MediaConvert}
\usage{
mediaconvert()
}
\description{
AWS Elemental MediaConvert
}
\section{Operations}{
\tabular{ll}{
\link[=mediaconvert_associate_certific... |
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input... | /server.R | no_license | jkodavasal/DDP_W4_ShinyApp | R | false | false | 451 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define server logic required to draw a histogram
shinyServer(function(input... |
testlist <- list(x = NA_integer_, y = 976894522L)
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/1609962676-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 123 | r | testlist <- list(x = NA_integer_, y = 976894522L)
result <- do.call(diffrprojects:::dist_mat_absolute,testlist)
str(result) |
u = function(q){
a=0
for (i in 1:21){
a[i]=(q[i]-11 + i)^2
}
return(sum(a))
}
du = function(q){
b = 0
for (i in 1:21){
b[i] = 2*(q[i] - 11 + i)
}
return(b)
}
hmc <- function(param_init, U, dU, e, L, iters) {
# hamiltonian monte carlo
#
# arguments #
# param_init:
#
mom_history <- ... | /models/21dimmvn.r | no_license | delimited0/stat-689-project | R | false | false | 3,117 | r | u = function(q){
a=0
for (i in 1:21){
a[i]=(q[i]-11 + i)^2
}
return(sum(a))
}
du = function(q){
b = 0
for (i in 1:21){
b[i] = 2*(q[i] - 11 + i)
}
return(b)
}
hmc <- function(param_init, U, dU, e, L, iters) {
# hamiltonian monte carlo
#
# arguments #
# param_init:
#
mom_history <- ... |
################################# PROCESAMIENTO DE DATOS FRANCESES ######################################
################################## ELECCIONES LEGISLATIVAS 2012 #######################################
###################################### FAZH ITAM 2017 130435 ############################################
#... | /SCRIPTS_R/01_PROCESAR_DATOS_FRANCESES/01_PROCESAR_LEGIS_2012.R | no_license | fazepher/datos-franceses | R | false | false | 16,727 | r | ################################# PROCESAMIENTO DE DATOS FRANCESES ######################################
################################## ELECCIONES LEGISLATIVAS 2012 #######################################
###################################### FAZH ITAM 2017 130435 ############################################
#... |
library(ggplot2)
library(RColorBrewer)
########73 variable
#reg model---- 73 variables
#X
X<-colnames(full_data_T)[c(2,6:7,16:24,33:93)]
#y
y<-colnames(full_data_T)[15]
##reg model
fmla <- as.formula(paste(y,'~', paste(X, collapse= "+")))
##personal reg and pred ----
full_data_T<-person_pred(full_data_T)
#plot_actua... | /treatment_73.R | no_license | rct-research/RCT | R | false | false | 635 | r | library(ggplot2)
library(RColorBrewer)
########73 variable
#reg model---- 73 variables
#X
X<-colnames(full_data_T)[c(2,6:7,16:24,33:93)]
#y
y<-colnames(full_data_T)[15]
##reg model
fmla <- as.formula(paste(y,'~', paste(X, collapse= "+")))
##personal reg and pred ----
full_data_T<-person_pred(full_data_T)
#plot_actua... |
setwd("/Users/yfl_ex3/Desktop/KTL_RNA seq")
data_full = read.csv("FPKM.csv")
dim(data_full)
sample_var = colnames(data_full[, 5:16])
DAC_dummy = c(0,0, 0, 1, 1, 1, 0,0,0,1,1,1)
DEX_dummy = c(0,0,0,0,0,0,1,1,1,1,1,1)
sample_data =t(rbind(DAC_dummy, DEX_dummy))
rownames(sample_data) = sample_var
sample_data = as.data.f... | /interaction_script.R | no_license | Sheena0228/ISCIENCE-D-22-03411R1 | R | false | false | 907 | r | setwd("/Users/yfl_ex3/Desktop/KTL_RNA seq")
data_full = read.csv("FPKM.csv")
dim(data_full)
sample_var = colnames(data_full[, 5:16])
DAC_dummy = c(0,0, 0, 1, 1, 1, 0,0,0,1,1,1)
DEX_dummy = c(0,0,0,0,0,0,1,1,1,1,1,1)
sample_data =t(rbind(DAC_dummy, DEX_dummy))
rownames(sample_data) = sample_var
sample_data = as.data.f... |
nest.smdm <- function(x, constraints=NULL, weighted=FALSE, decreasing="fill", sort=TRUE){
### Checking inputs ####
if (!is.null(constraints)&length(unique(constraints))==1){
warning("Only one module. Nestedness calculated only for the entire matrix")
constraints = NULL
}
if(is.element(NA, constraints) |... | /bipartite/R/nest.smdm.R | no_license | afbarth/how-to-bipartite | R | false | false | 14,010 | r | nest.smdm <- function(x, constraints=NULL, weighted=FALSE, decreasing="fill", sort=TRUE){
### Checking inputs ####
if (!is.null(constraints)&length(unique(constraints))==1){
warning("Only one module. Nestedness calculated only for the entire matrix")
constraints = NULL
}
if(is.element(NA, constraints) |... |
setwd("C:/Users/lenovo/Desktop/652/Electronic homework/work3")
MEPS1 <- read.csv("HealthExpend.csv",header=TRUE)
MEPS <- subset(MEPS1,EXPENDOP>0)
library(MASS)
library(VGAM)
# Inference assuming a gamma Distribution
fit.gamma2 <- glm(EXPENDOP~1, data=MEPS,family=Gamma(link=log))
(theta<-exp(coef(fit.gamma2))*gamma.di... | /week3/Q2.R | no_license | yyiyangnju/Loss-Model | R | false | false | 1,800 | r | setwd("C:/Users/lenovo/Desktop/652/Electronic homework/work3")
MEPS1 <- read.csv("HealthExpend.csv",header=TRUE)
MEPS <- subset(MEPS1,EXPENDOP>0)
library(MASS)
library(VGAM)
# Inference assuming a gamma Distribution
fit.gamma2 <- glm(EXPENDOP~1, data=MEPS,family=Gamma(link=log))
(theta<-exp(coef(fit.gamma2))*gamma.di... |
#' List projects or components on OSF
#'
#' List the projects or components associated with a user or contained in the
#' top-level of another OSF project or component.
#'
#' @param x one of the following:
#' * An [`osf_tbl_node`] with a single project or component.
#' * An [`osf_tbl_user`] with a single OSF user.
... | /R/osf_ls_nodes.R | permissive | ropensci/osfr | R | false | false | 1,837 | r | #' List projects or components on OSF
#'
#' List the projects or components associated with a user or contained in the
#' top-level of another OSF project or component.
#'
#' @param x one of the following:
#' * An [`osf_tbl_node`] with a single project or component.
#' * An [`osf_tbl_user`] with a single OSF user.
... |
\name{soql-package}
\alias{soql-package}
\docType{package}
\title{
\packageTitle{soql}
}
\description{
\packageDescription{soql}
}
\details{
To create a SoQL URL, or just parameters for one, start with \code{soql()}. Then chain the result into other functions, such as \code{soql_where()} or \code{soql_order()... | /man/soql-package.Rd | no_license | cran/soql | R | false | false | 967 | rd | \name{soql-package}
\alias{soql-package}
\docType{package}
\title{
\packageTitle{soql}
}
\description{
\packageDescription{soql}
}
\details{
To create a SoQL URL, or just parameters for one, start with \code{soql()}. Then chain the result into other functions, such as \code{soql_where()} or \code{soql_order()... |
\name{select.traces}
\alias{select.traces}
\title{
Select traces from a data set according to several criteria
}
\description{
For alignment purposes, it may be useful to select traces which show
clear features, and to throw away traces that contain mainly
noise. This function implements three ways to achieve t... | /Rscript/R/ptw/man/select.traces.Rd | permissive | xieguigang/mzkit | R | false | false | 2,656 | rd | \name{select.traces}
\alias{select.traces}
\title{
Select traces from a data set according to several criteria
}
\description{
For alignment purposes, it may be useful to select traces which show
clear features, and to throw away traces that contain mainly
noise. This function implements three ways to achieve t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quantileCI.R
\name{quantileCI}
\alias{quantileCI}
\title{Estimate and confidence intervals of a quantile}
\usage{
quantileCI(y, prob, conf.level = 0.95, method = "binomial", na.rm = FALSE, ...)
}
\arguments{
\item{y}{A vector of sample data}
... | /man/quantileCI.Rd | no_license | pteetor/tutils | R | false | true | 533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/quantileCI.R
\name{quantileCI}
\alias{quantileCI}
\title{Estimate and confidence intervals of a quantile}
\usage{
quantileCI(y, prob, conf.level = 0.95, method = "binomial", na.rm = FALSE, ...)
}
\arguments{
\item{y}{A vector of sample data}
... |
# Quadruple Whitching
# Quadruple witching refers to the third Friday of every March, June, September and December.
# On these days, market index futures, market index options, stock options and stock futures
# expire, usually resulting in increased volatility.
# Formatting Data
rm(list=ls())
# Read the data
data=... | /Quadruple Witching/Quadruple_Witching.r | no_license | KshitizSharmaV/Trading_Strategies | R | false | false | 1,513 | r | # Quadruple Whitching
# Quadruple witching refers to the third Friday of every March, June, September and December.
# On these days, market index futures, market index options, stock options and stock futures
# expire, usually resulting in increased volatility.
# Formatting Data
rm(list=ls())
# Read the data
data=... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legacy.R
\name{Exprq}
\alias{Exprq}
\title{Legacy function}
\usage{
Exprq(...)
}
\arguments{
\item{...}{not used}
}
\description{
Legacy function
}
\concept{legacy}
| /man/Exprq.Rd | no_license | HeraclesHX/ryacas | R | false | true | 243 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legacy.R
\name{Exprq}
\alias{Exprq}
\title{Legacy function}
\usage{
Exprq(...)
}
\arguments{
\item{...}{not used}
}
\description{
Legacy function
}
\concept{legacy}
|
# The planets_df data frame from the previous exercise is pre-loaded
# Print out diameter of Mercury (row 1, column 3)
print(planets_df[1,3])
# Print out data for Mars (entire fourth row)
print(planets_df[4,])
| /DCamp/Select data frame elements.R | no_license | shinichimatsuda/R_Training | R | false | false | 212 | r | # The planets_df data frame from the previous exercise is pre-loaded
# Print out diameter of Mercury (row 1, column 3)
print(planets_df[1,3])
# Print out data for Mars (entire fourth row)
print(planets_df[4,])
|
testlist <- list(bytes1 = integer(0), pmutation = 2.71615461559757e-312)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612887209-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 136 | r | testlist <- list(bytes1 = integer(0), pmutation = 2.71615461559757e-312)
result <- do.call(mcga:::ByteCodeMutation,testlist)
str(result) |
#' Percent Mediation
#'
#' To obtain the percent of the total effect that is mediated through the specified
#' indirect path: indirect / (total) * 100.
#'
#' @param model mma fit object
#' @param effect the indirect effect to be compared to its direct path
#'
#' @export
perc_med <- function(model, effect){
if (!is... | /R/comps.R | no_license | TysonStanley/MarginalMediation | R | false | false | 2,945 | r | #' Percent Mediation
#'
#' To obtain the percent of the total effect that is mediated through the specified
#' indirect path: indirect / (total) * 100.
#'
#' @param model mma fit object
#' @param effect the indirect effect to be compared to its direct path
#'
#' @export
perc_med <- function(model, effect){
if (!is... |
{
x <- 10
y <- 20
sum <- x+y
print(sum)
} | /Lab 1/1.4.R | no_license | TheWrL0ck/R-files | R | false | false | 49 | r | {
x <- 10
y <- 20
sum <- x+y
print(sum)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MigConnectivity.R
\docType{package}
\name{MigConnectivity}
\alias{MigConnectivity}
\title{MigConnectivity: A package for quantifying migratory connectivity pattern and
strength for migratory animals}
\description{
The MigConnectivity package ... | /man/MigConnectivity.Rd | no_license | SMBC-NZP/MigConnectivity | R | false | true | 1,392 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MigConnectivity.R
\docType{package}
\name{MigConnectivity}
\alias{MigConnectivity}
\title{MigConnectivity: A package for quantifying migratory connectivity pattern and
strength for migratory animals}
\description{
The MigConnectivity package ... |
#' Get vector of node IDs
#' @description Provides information on the node IDs from one or several node data frames, edge data frames, or graph objects.
#' @param ... a collection of node data frames, edge data frames, or a single graph object.
#' @return a vector of node ID values
#' @export get_nodes
get_nodes <- fu... | /R/get_nodes.R | no_license | tomroh/DiagrammeR | R | false | false | 3,148 | r | #' Get vector of node IDs
#' @description Provides information on the node IDs from one or several node data frames, edge data frames, or graph objects.
#' @param ... a collection of node data frames, edge data frames, or a single graph object.
#' @return a vector of node ID values
#' @export get_nodes
get_nodes <- fu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_MRNs.R
\name{match_MRNs}
\alias{match_MRNs}
\title{Match MRNs from two EMRs}
\usage{
match_MRNs(x, y)
}
\arguments{
\item{x, y}{Two data frames with columns `mrn`, `first_name`, `last_name`, and
`birth_date` (yyyy-mm-dd)}
}
\value{
A d... | /man/match_MRNs.Rd | no_license | NateByers/IUHhelpers | R | false | true | 855 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/match_MRNs.R
\name{match_MRNs}
\alias{match_MRNs}
\title{Match MRNs from two EMRs}
\usage{
match_MRNs(x, y)
}
\arguments{
\item{x, y}{Two data frames with columns `mrn`, `first_name`, `last_name`, and
`birth_date` (yyyy-mm-dd)}
}
\value{
A d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.