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 |
|---|---|---|---|---|---|---|---|---|---|
rm(list=ls())
library(deSolve)
sapply(c("rnot_code/network_fxns.R", "rnot_code/fitting_fxns.R", "rnot_code/plotting_fxns.R"), source)
## Set up the parameters for the run
##########################
# Setup data for fitting
# Choose data from 2008-2009 flu season prior to pandemic
# only the increasing areas
####... | /rnot_code/networkFitting.R | permissive | sjfox/estimating_rnot | R | false | false | 2,766 | r | rm(list=ls())
library(deSolve)
sapply(c("rnot_code/network_fxns.R", "rnot_code/fitting_fxns.R", "rnot_code/plotting_fxns.R"), source)
## Set up the parameters for the run
##########################
# Setup data for fitting
# Choose data from 2008-2009 flu season prior to pandemic
# only the increasing areas
####... |
##############################################################################################
# This script contains 2 functions: makeCahceMatrix and cacheSolve.
#
# makeCacheMatrix takes a square matrix (x) as an argument and creates a list of 4 functions,
# one to set the value of a matrix, one to get the value of... | /cachematrix.R | no_license | bdcr/ProgrammingAssignment2 | R | false | false | 2,870 | r | ##############################################################################################
# This script contains 2 functions: makeCahceMatrix and cacheSolve.
#
# makeCacheMatrix takes a square matrix (x) as an argument and creates a list of 4 functions,
# one to set the value of a matrix, one to get the value of... |
#############################################################
# Exercise 1 - Introduction to R
# By: Kristin Eccles
# Written in R 3.5.0
#############################################################
# Load Libraries
# Requires athe ggplot2 package that is not part of base installation
# To install the package, uncomm... | /intro_to_R_lecture1_exercise1.R | no_license | kristineccles/intro_to_r_2020 | R | false | false | 2,875 | r | #############################################################
# Exercise 1 - Introduction to R
# By: Kristin Eccles
# Written in R 3.5.0
#############################################################
# Load Libraries
# Requires athe ggplot2 package that is not part of base installation
# To install the package, uncomm... |
# Project: microsamplingDesign
#
# Author: ablommaert
###############################################################################
tabPanel( "Construct Pk-model" ,
tags$br(),
sidebarLayout(
sidebarPanel( width = 5 ,
h3( "Data input" ) ,
h4( "Model parameters" ) ,
DT::dat... | /inst/apps/microsamplingDesignApp/uiFiles/uiPkModel.R | no_license | cran/microsamplingDesign | R | false | false | 2,931 | r | # Project: microsamplingDesign
#
# Author: ablommaert
###############################################################################
tabPanel( "Construct Pk-model" ,
tags$br(),
sidebarLayout(
sidebarPanel( width = 5 ,
h3( "Data input" ) ,
h4( "Model parameters" ) ,
DT::dat... |
test.orphan.reactants<-function(){
# Check output class
checkTrue(is.vector(orphan.reactants("ATP[m_a] + beta-D-Glucose[m_a] => ADP[m_a] + beta-D-Glucose 6-phosphate[m_a]")))
# Check output values
checkEquals(orphan.reactants("ATP[m_a] + beta-D-Glucose[m_a] => ADP[m_a] + beta-D-Glucose 6-phosphate[m_a]"),c("... | /minval/inst/tests/runit.orphan.reactants.R | no_license | ingted/R-Examples | R | false | false | 356 | r | test.orphan.reactants<-function(){
# Check output class
checkTrue(is.vector(orphan.reactants("ATP[m_a] + beta-D-Glucose[m_a] => ADP[m_a] + beta-D-Glucose 6-phosphate[m_a]")))
# Check output values
checkEquals(orphan.reactants("ATP[m_a] + beta-D-Glucose[m_a] => ADP[m_a] + beta-D-Glucose 6-phosphate[m_a]"),c("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svIO.R
\name{load_filtered}
\alias{load_filtered}
\title{Load a filtered data frame}
\usage{
load_filtered(filename)
load_filtered(filename)
}
\description{
Load a filtered data frame
Load a filtered data frame
}
| /man/load_filtered.Rd | no_license | kgori/svfiltr | R | false | true | 294 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svIO.R
\name{load_filtered}
\alias{load_filtered}
\title{Load a filtered data frame}
\usage{
load_filtered(filename)
load_filtered(filename)
}
\description{
Load a filtered data frame
Load a filtered data frame
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ses_operations.R
\name{ses_set_identity_headers_in_notifications_enabled}
\alias{ses_set_identity_headers_in_notifications_enabled}
\title{Given an identity (an email address or a domain), sets whether Amazon
SES includes the original email h... | /cran/paws.customer.engagement/man/ses_set_identity_headers_in_notifications_enabled.Rd | permissive | TWarczak/paws | R | false | true | 2,232 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ses_operations.R
\name{ses_set_identity_headers_in_notifications_enabled}
\alias{ses_set_identity_headers_in_notifications_enabled}
\title{Given an identity (an email address or a domain), sets whether Amazon
SES includes the original email h... |
getwd()#!/usr/bin/Rscript
# Author: Stefano Picozzi
# Date: January 2015
# Name: 4CastR.R
# Batch control script
Sys.setenv(NOAWT = "true")
setwd("/Users/stefanopicozzi/Dropbox/Red Hat/RHTE2015/Examples/4CastR2")
source("4CastR2.R")
ppi <- 800
# The top 20 ASX stocks
zLabel <- c("AMP", "ANZ", "BHP", "BXB", "CBA", "... | /Examples/4CastR2/4CastR2-Example.R | no_license | StefanoPicozzi/4CastR2 | R | false | false | 1,347 | r | getwd()#!/usr/bin/Rscript
# Author: Stefano Picozzi
# Date: January 2015
# Name: 4CastR.R
# Batch control script
Sys.setenv(NOAWT = "true")
setwd("/Users/stefanopicozzi/Dropbox/Red Hat/RHTE2015/Examples/4CastR2")
source("4CastR2.R")
ppi <- 800
# The top 20 ASX stocks
zLabel <- c("AMP", "ANZ", "BHP", "BXB", "CBA", "... |
test_that("check_data returns an error when the indicated columns aren't present in data", {
df <- dplyr::tibble(a = 1, b = 2)
expect_error(check_data(df, "c"))
expect_error(check_data(df, "a", "c"))
expect_silent(check_data(df, "a", "b"))
})
test_that("check_bounds works", {
expect_error(check_bounds(list(1... | /tests/testthat/test-utils.R | permissive | data-mermaid/mermaidreporting | R | false | false | 1,620 | r | test_that("check_data returns an error when the indicated columns aren't present in data", {
df <- dplyr::tibble(a = 1, b = 2)
expect_error(check_data(df, "c"))
expect_error(check_data(df, "a", "c"))
expect_silent(check_data(df, "a", "b"))
})
test_that("check_bounds works", {
expect_error(check_bounds(list(1... |
## ----eval=TRUE-----------------------------------------------------------
source("https://bioconductor.org/biocLite.R")
biocLite("MSstatsQC")
## ---- eval=TRUE----------------------------------------------------------
#A typical multi peptide and multi metric system suitability dataset
#This dataset was generated du... | /vignettes/MSstatsQC.R | no_license | stevemmarshall/MSstatsQC | R | false | false | 7,954 | r | ## ----eval=TRUE-----------------------------------------------------------
source("https://bioconductor.org/biocLite.R")
biocLite("MSstatsQC")
## ---- eval=TRUE----------------------------------------------------------
#A typical multi peptide and multi metric system suitability dataset
#This dataset was generated du... |
shuf<-read.table("shuffle/data/output_shuffle.txt",header=T)
con<-read.table("control/data/output_noshuffle.txt",header=T)
shuf_m_fst <- tapply(shuf$fst_mar,list(shuf$t),mean)
con_m_fst <- tapply(con$fst_mar,list(con$t),mean)
shuf_m_r <- tapply(shuf$real_b,list(shuf$t),median)
con_m_r <- tapply(con$real_b,list(con$t... | /figure_1/create_figure1.R | permissive | efronhofer/kin_expansion | R | false | false | 1,701 | r |
shuf<-read.table("shuffle/data/output_shuffle.txt",header=T)
con<-read.table("control/data/output_noshuffle.txt",header=T)
shuf_m_fst <- tapply(shuf$fst_mar,list(shuf$t),mean)
con_m_fst <- tapply(con$fst_mar,list(con$t),mean)
shuf_m_r <- tapply(shuf$real_b,list(shuf$t),median)
con_m_r <- tapply(con$real_b,list(con$t... |
library(shiny)
library(digilogger)
library(knitr)
library(DT)
library(dplyr)
library(ggplot2)
library(plotly)
options(shiny.maxRequestSize=10*1024^2)
options(DT.options = list(dom = "Brtip",
buttons = c("copy", "csv", "excel", "print"),
pageLength = 50
))
my_DT <- ... | /inst/digilogger_gui/server.R | permissive | michbur/digilogger | R | false | false | 7,438 | r | library(shiny)
library(digilogger)
library(knitr)
library(DT)
library(dplyr)
library(ggplot2)
library(plotly)
options(shiny.maxRequestSize=10*1024^2)
options(DT.options = list(dom = "Brtip",
buttons = c("copy", "csv", "excel", "print"),
pageLength = 50
))
my_DT <- ... |
## makeCacheMatrix creates a special "matrix" object that can cache its inverse
## Following 4 methods are defined on the object
## set() - set the value of the matrix
## get() - the value of the matrix
## setinv() - the value of the inverse of the matrix
## getinv() - the value of the inverse of the matrix
makeCach... | /cachematrix.R | no_license | eshtee/ProgrammingAssignment2 | R | false | false | 1,244 | r | ## makeCacheMatrix creates a special "matrix" object that can cache its inverse
## Following 4 methods are defined on the object
## set() - set the value of the matrix
## get() - the value of the matrix
## setinv() - the value of the inverse of the matrix
## getinv() - the value of the inverse of the matrix
makeCach... |
# 8. (a)
college = read.csv("../data/College.csv")
# 8. (b)
fix(college)
rownames(college) = college[,1]
college = college[,-1]
fix(college)
# 8. (c)
# i.
summary(college)
# ii.
pairs(college[,1:10])
# iii.
plot(college$Private, college$Outstate)
# iv.
Elite = rep("No", nrow(college))
Elite[college$Top10perc>50] = "Yes... | /ch2/applied.R | no_license | yc3526/stat-learning-exercises | R | false | false | 6,156 | r | # 8. (a)
college = read.csv("../data/College.csv")
# 8. (b)
fix(college)
rownames(college) = college[,1]
college = college[,-1]
fix(college)
# 8. (c)
# i.
summary(college)
# ii.
pairs(college[,1:10])
# iii.
plot(college$Private, college$Outstate)
# iv.
Elite = rep("No", nrow(college))
Elite[college$Top10perc>50] = "Yes... |
##################
#To check consensus against actual image
#
#check for appropriate probability and accuracy of consensus algorithm
##################
# Packages and WD ---------------------------------------------------------
if('pacman' %in% rownames(installed.packages()) == FALSE)
{
install.packages(pacman)... | /Scripts/consensus_compare.R | no_license | Penguin-Watch/Old_penguin_watch_camera_processing | R | false | false | 3,285 | r | ##################
#To check consensus against actual image
#
#check for appropriate probability and accuracy of consensus algorithm
##################
# Packages and WD ---------------------------------------------------------
if('pacman' %in% rownames(installed.packages()) == FALSE)
{
install.packages(pacman)... |
\name{moranda.geometric}
\alias{moranda.geometric}
\title{Maximum Likelihood estimation of mean value function for Moranda-Geometric model}
\description{
\code{moranda.geometric} computes the Maximum Likelihood estimates for the parameters \code{D}
and \code{theta} of the mean value function for the Moranda-Ge... | /man/moranda.geometric.Rd | no_license | cran/Reliability | R | false | false | 2,867 | rd | \name{moranda.geometric}
\alias{moranda.geometric}
\title{Maximum Likelihood estimation of mean value function for Moranda-Geometric model}
\description{
\code{moranda.geometric} computes the Maximum Likelihood estimates for the parameters \code{D}
and \code{theta} of the mean value function for the Moranda-Ge... |
\name{FindColumnSignificances_MLR}
\alias{FindColumnSignificances_MLR}
\title{Check significance for each feature plus selected set using MLR }
\description{
This function sweeps all columns of oFdata so that jointly with the
provided selected set in iFsel, present a significant correlation with the independent... | /man/FindColumnSignificances_MLR.Rd | no_license | helenabrunel/MISS | R | false | false | 1,176 | rd | \name{FindColumnSignificances_MLR}
\alias{FindColumnSignificances_MLR}
\title{Check significance for each feature plus selected set using MLR }
\description{
This function sweeps all columns of oFdata so that jointly with the
provided selected set in iFsel, present a significant correlation with the independent... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getCpdbAvailableFsetTypes.R
\name{getCpdbAvailableFsetTypes}
\alias{getCpdbAvailableFsetTypes}
\title{Get available Functional Set Types}
\usage{
getCpdbAvailableFsetTypes(entityType)
}
\arguments{
\item{entityType, }{string with entity typme... | /man/getCpdbAvailableFsetTypes.Rd | permissive | isglobal-brge/brgeEnrich | R | false | true | 703 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getCpdbAvailableFsetTypes.R
\name{getCpdbAvailableFsetTypes}
\alias{getCpdbAvailableFsetTypes}
\title{Get available Functional Set Types}
\usage{
getCpdbAvailableFsetTypes(entityType)
}
\arguments{
\item{entityType, }{string with entity typme... |
library(mistat)
### Name: cusumPfaCed
### Title: Cusum Probability of False Alarm and Conditional Expected Delay
### Aliases: cusumPfaCedBinom cusumPfaCedNorm cusumPfaCedPois
### Keywords: nonparametric ts
### ** Examples
cusumPfaCedNorm(mean1=1.5,
tau=100,
N=100,
... | /data/genthat_extracted_code/mistat/examples/cusumPfaCed.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 361 | r | library(mistat)
### Name: cusumPfaCed
### Title: Cusum Probability of False Alarm and Conditional Expected Delay
### Aliases: cusumPfaCedBinom cusumPfaCedNorm cusumPfaCedPois
### Keywords: nonparametric ts
### ** Examples
cusumPfaCedNorm(mean1=1.5,
tau=100,
N=100,
... |
## Caching the Inverse of a Matrix:
##These functions serve to cache the inverse of a matrix
## This function serves to a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv... | /cachematrix.R | no_license | cdarville/ProgrammingAssignment2 | R | false | false | 830 | r | ## Caching the Inverse of a Matrix:
##These functions serve to cache the inverse of a matrix
## This function serves to a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinv... |
.onLoad <- function(libname, pkgname) {
op <- options()
op.devtools <- list(
devtools.path = "~/aeplot",
devtools.install.args = "",
devtools.name = "Jeremy Wildfire",
devtools.desc.author = '"Jeremy Wildfire <jeremy_wildfire@rhoworld.com> [aut, cre]"',
devtools.desc.license = "CC BY 4.0",
d... | /R/zzz.R | permissive | RhoInc/aeplot | R | false | false | 491 | r | .onLoad <- function(libname, pkgname) {
op <- options()
op.devtools <- list(
devtools.path = "~/aeplot",
devtools.install.args = "",
devtools.name = "Jeremy Wildfire",
devtools.desc.author = '"Jeremy Wildfire <jeremy_wildfire@rhoworld.com> [aut, cre]"',
devtools.desc.license = "CC BY 4.0",
d... |
context("test-sql-expr.R")
test_that("atomic vectors are escaped", {
con <- simulate_dbi()
expect_equal(sql_expr(2, con = con), sql("2.0"))
expect_equal(sql_expr("x", con = con), sql("'x'"))
})
test_that("user infix functions have % stripped", {
con <- simulate_dbi()
expect_equal(sql_expr(x %like% y, con ... | /tests/testthat/test-sql-expr.R | permissive | mkearney/dbplyr | R | false | false | 624 | r | context("test-sql-expr.R")
test_that("atomic vectors are escaped", {
con <- simulate_dbi()
expect_equal(sql_expr(2, con = con), sql("2.0"))
expect_equal(sql_expr("x", con = con), sql("'x'"))
})
test_that("user infix functions have % stripped", {
con <- simulate_dbi()
expect_equal(sql_expr(x %like% y, con ... |
# For your information, briefly, the model is that, as below,
# Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij,
# where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects.
# We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e... | /full simulation/12.7.2017/power test/variance0.0049/power_0.0049_4_grp50_rep20.R | no_license | wma9/FMRI-project | R | false | false | 23,537 | r | # For your information, briefly, the model is that, as below,
# Y_ij = intercept + dummyX_ij * (beta + beta_i) + Z_ij * (b + b_i) + error_ij,
# where 'beta' and 'b' are fixed effects while 'b and 'b_i' are random slope effects.
# We conduct the test that H_0: variance of b_i = 0 v.s. H_a: variance of b_i > 0 through e... |
library(shiny)
library(ggplot2)
shinyUI(fluidPage(
titlePanel("Keyword search - NSF Award Titles"),
sidebarLayout(
sidebarPanel(
textInput('keyword1',
label="Keyword #1",""),
textInput('keyword2',
label="Keyword #2",""),
textInput('keyword3',
... | /UI.R | no_license | rcoridan/NSFVis | R | false | false | 880 | r | library(shiny)
library(ggplot2)
shinyUI(fluidPage(
titlePanel("Keyword search - NSF Award Titles"),
sidebarLayout(
sidebarPanel(
textInput('keyword1',
label="Keyword #1",""),
textInput('keyword2',
label="Keyword #2",""),
textInput('keyword3',
... |
library(stringr) #required for str_sub() function
#read data - salary
CAsalaries <- read.csv("./data/CA_Police_Salaries.csv", header=TRUE)
head(CAsalaries)
#ignore firefighter data
CAsalaries <- CAsalaries[,c(1,2,3,4,8)]
#remove rows with no data
CAsalaries <- CAsalaries[CAsalaries$Police.Officer!="",]
... | /CAPoliceData.R | no_license | mackenziewildman/PoliceProject | R | false | false | 5,907 | r | library(stringr) #required for str_sub() function
#read data - salary
CAsalaries <- read.csv("./data/CA_Police_Salaries.csv", header=TRUE)
head(CAsalaries)
#ignore firefighter data
CAsalaries <- CAsalaries[,c(1,2,3,4,8)]
#remove rows with no data
CAsalaries <- CAsalaries[CAsalaries$Police.Officer!="",]
... |
#library(RndTexExams)
#library(GradeR)
## Copy Teaching Files to Trial Directory for Experimentation
latex.trial <- path.expand("~/Desktop/Teaching/IntroMacro/Current/Exams/Questions")
latex.in <- "/tmp/Trials/"
system( paste("cp -r ", latex.trial, latex.in) )
# f.in <- system.file("extdata","MyRandomTest_examdesign.... | /Code/R_Code/RLatexExamtrials.R | no_license | Jadamso/GradeR | R | false | false | 825 | r | #library(RndTexExams)
#library(GradeR)
## Copy Teaching Files to Trial Directory for Experimentation
latex.trial <- path.expand("~/Desktop/Teaching/IntroMacro/Current/Exams/Questions")
latex.in <- "/tmp/Trials/"
system( paste("cp -r ", latex.trial, latex.in) )
# f.in <- system.file("extdata","MyRandomTest_examdesign.... |
library(tidyverse)
murders <- read_csv("murders.csv")
murders <- murders %>% mutate(region = factor(region), rate = total / population * 10^5)
save(murders, file = "/Data_Science/projects/murders/rda/murders.rda")
| /rda/wrangler-data.R | no_license | Alter6163/murders | R | false | false | 214 | r | library(tidyverse)
murders <- read_csv("murders.csv")
murders <- murders %>% mutate(region = factor(region), rate = total / population * 10^5)
save(murders, file = "/Data_Science/projects/murders/rda/murders.rda")
|
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url,destfile="./power.zip", method = "curl")
unzip("power.zip")
power <- read.table("household_power_consumption.txt",header=TRUE,sep=";",colClasses = c("character","character","numeric","numeric","numeric","num... | /plot3.R | no_license | bclee2/ExData_Plotting1 | R | false | false | 1,011 | r | url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url,destfile="./power.zip", method = "curl")
unzip("power.zip")
power <- read.table("household_power_consumption.txt",header=TRUE,sep=";",colClasses = c("character","character","numeric","numeric","numeric","num... |
#title:OVerlayingPlot
#Basic Data Graphics using R
#Author:Hrishikesh Tripathi
#OVerlayingPlot using Lynx data
#Load data Package
library(datasets)
#Annual Canadian Lynx trappings 1821–1934
?lynx
head(lynx)
hist(lynx) #default plotting
#Adding Options
hist(lynx,
breaks = 14, #Su... | /5.Overlayingplots.r | no_license | rishi1tiwari/R-using-statistical-Computing | R | false | false | 1,219 | r | #title:OVerlayingPlot
#Basic Data Graphics using R
#Author:Hrishikesh Tripathi
#OVerlayingPlot using Lynx data
#Load data Package
library(datasets)
#Annual Canadian Lynx trappings 1821–1934
?lynx
head(lynx)
hist(lynx) #default plotting
#Adding Options
hist(lynx,
breaks = 14, #Su... |
#' synth_comm_from_counts
#'
#' from count data (ex HMP) fit parameters to OTU margins
#' and simulate a new community with those properties
#'
#' @param comm community: matrix of counts
#' @param mar the sample margin of the community data matrix (1: rows, 2: cols)
#' @param distr distribution to fit (see fitdistr)
#'... | /R/fitdistr.R | no_license | suntzuisafterU/SpiecEasi | R | false | false | 11,285 | r | #' synth_comm_from_counts
#'
#' from count data (ex HMP) fit parameters to OTU margins
#' and simulate a new community with those properties
#'
#' @param comm community: matrix of counts
#' @param mar the sample margin of the community data matrix (1: rows, 2: cols)
#' @param distr distribution to fit (see fitdistr)
#'... |
library('TCGAbiolinks'); # For data retrieval and analysis
library('SummarizedExperiment') # For processing SummarizedExperiment objects
library('igraph') # Plot the Cox-regression analysis
#library('CombinePValue'); # For Fisher method of analysis (if multiple platform results for meta analysis)
# Query for RNAS... | /HNSC_analysis.R | no_license | cbrumbau/hnsc-analysis | R | false | false | 4,346 | r | library('TCGAbiolinks'); # For data retrieval and analysis
library('SummarizedExperiment') # For processing SummarizedExperiment objects
library('igraph') # Plot the Cox-regression analysis
#library('CombinePValue'); # For Fisher method of analysis (if multiple platform results for meta analysis)
# Query for RNAS... |
\alias{gtkStyleAttach}
\name{gtkStyleAttach}
\title{gtkStyleAttach}
\description{Attaches a style to a window; this process allocates the
colors and creates the GC's for the style - it specializes
it to a particular visual and colormap. The process may
involve the creation of a new style if the style has already
been... | /RGtk2/man/gtkStyleAttach.Rd | no_license | lawremi/RGtk2 | R | false | false | 984 | rd | \alias{gtkStyleAttach}
\name{gtkStyleAttach}
\title{gtkStyleAttach}
\description{Attaches a style to a window; this process allocates the
colors and creates the GC's for the style - it specializes
it to a particular visual and colormap. The process may
involve the creation of a new style if the style has already
been... |
# PRIMITIVE.mesh3d <- function(x, ...) {
# stopifnot(x$primitivetype == "triangle")
# if ("ib" %in% names(x)) {
# warning("object has quad primitives as well as triangles,\n only the triangles will be carried through")
# }
# v <- setNames(tibble::as_tibble(t(x$vb[1:3, ])), c("x_", "y_", "z_"))
# v$vertex_... | /R/scrgl_primitives2D.r | no_license | mdsumner/scrgl | R | false | false | 1,024 | r | # PRIMITIVE.mesh3d <- function(x, ...) {
# stopifnot(x$primitivetype == "triangle")
# if ("ib" %in% names(x)) {
# warning("object has quad primitives as well as triangles,\n only the triangles will be carried through")
# }
# v <- setNames(tibble::as_tibble(t(x$vb[1:3, ])), c("x_", "y_", "z_"))
# v$vertex_... |
#' @export
stupid_x <- 'C'
| /R/aaa.R | permissive | k-hench/stupid2 | R | false | false | 27 | r | #' @export
stupid_x <- 'C'
|
\name{summary.lsp}
\alias{summary.lsp}
\title{
Summarise Lomb-Scargle Periodogram Results
}
\description{
Summary method for class lsp.
}
\usage{
\method{summary}{lsp}(object,...)
}
\arguments{
\item{object}{
an object of class lsp.
}
\item{...}{
currently, no other arguments are required.
}
}
\value{
summary.lsp... | /man/summary.lsp.Rd | no_license | cran/lomb | R | false | false | 1,321 | rd | \name{summary.lsp}
\alias{summary.lsp}
\title{
Summarise Lomb-Scargle Periodogram Results
}
\description{
Summary method for class lsp.
}
\usage{
\method{summary}{lsp}(object,...)
}
\arguments{
\item{object}{
an object of class lsp.
}
\item{...}{
currently, no other arguments are required.
}
}
\value{
summary.lsp... |
rm(list=ls())
library(e1071)
set.seed(123)
# load raw data
train <- read.csv("../../data/train.csv", header = T, stringsAsFactors = F)
test <- read.csv("../../data/test.csv", header = T, stringsAsFactors = F)
# load preprocessed data
# train <- readRDS("../../data/preprocessed/train_preprocessed_full.rds")
# test <-... | /Code/models/svm.R | no_license | hassanShabbir1960/BioResponse | R | false | false | 1,093 | r | rm(list=ls())
library(e1071)
set.seed(123)
# load raw data
train <- read.csv("../../data/train.csv", header = T, stringsAsFactors = F)
test <- read.csv("../../data/test.csv", header = T, stringsAsFactors = F)
# load preprocessed data
# train <- readRDS("../../data/preprocessed/train_preprocessed_full.rds")
# test <-... |
install.packages('readxl')
install.packages('ggplot2')
install.packages('dplyr')
library(readxl)
library(ggplot2)
library(dplyr)
df_exam <- read.csv('0005/datas/csv_exam.csv')
df_exams
head(df_exam) # default = 6
head(df_exam, 10)
tail(df_exam) # default = 6
tail(df_exam, 8)
View(df_exam)
dim(df_exam)
str(df_exam... | /0005/datafunc.R | no_license | hsh2001/learn-r-lang | R | false | false | 1,081 | r | install.packages('readxl')
install.packages('ggplot2')
install.packages('dplyr')
library(readxl)
library(ggplot2)
library(dplyr)
df_exam <- read.csv('0005/datas/csv_exam.csv')
df_exams
head(df_exam) # default = 6
head(df_exam, 10)
tail(df_exam) # default = 6
tail(df_exam, 8)
View(df_exam)
dim(df_exam)
str(df_exam... |
library(AppliedPredictiveModeling)
library(rattle)
library(caret)
data(segmentationOriginal)
inTrain <- createDataPartition(y = segmentationOriginal$Case, p = 0.6,
list = FALSE)
training <- segmentationOriginal[inTrain,]
testing <- segmentationOriginal[-inTrain,]
set.seed(125)... | /Practical_Machine_Learning/Quiz3_1.R | no_license | Chen-XueWen/Johns_Hopkins_DataScience | R | false | false | 439 | r | library(AppliedPredictiveModeling)
library(rattle)
library(caret)
data(segmentationOriginal)
inTrain <- createDataPartition(y = segmentationOriginal$Case, p = 0.6,
list = FALSE)
training <- segmentationOriginal[inTrain,]
testing <- segmentationOriginal[-inTrain,]
set.seed(125)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_catalogue.R
\name{style_catalogue_add_excel_num_format}
\alias{style_catalogue_add_excel_num_format}
\title{Manually add an Excel num format to the style catalogue}
\usage{
style_catalogue_add_excel_num_format(tab, style_string, excel_n... | /man/style_catalogue_add_excel_num_format.Rd | no_license | harryprince/xltabr | R | false | true | 686 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/style_catalogue.R
\name{style_catalogue_add_excel_num_format}
\alias{style_catalogue_add_excel_num_format}
\title{Manually add an Excel num format to the style catalogue}
\usage{
style_catalogue_add_excel_num_format(tab, style_string, excel_n... |
# Samsara API
#
# # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud API is a [RESTful API](htt... | /openapi-generator/r/R/asset_cable.R | no_license | silverspace/samsara-sdks | R | false | false | 6,965 | r | # Samsara API
#
# # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud API is a [RESTful API](htt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/macie_operations.R
\name{macie_associate_s3_resources}
\alias{macie_associate_s3_resources}
\title{(Discontinued) Associates specified S3 resources with Amazon Macie
Classic for monitoring and data classification}
\usage{
macie_associate_s3_r... | /cran/paws.security.identity/man/macie_associate_s3_resources.Rd | permissive | paws-r/paws | R | false | true | 1,231 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/macie_operations.R
\name{macie_associate_s3_resources}
\alias{macie_associate_s3_resources}
\title{(Discontinued) Associates specified S3 resources with Amazon Macie
Classic for monitoring and data classification}
\usage{
macie_associate_s3_r... |
library(sna)
library(network)
selc<-read.csv("eusn.manual.csv",colClasses="character",head=FALSE)
selc<-apply(selc,2,function(x) gsub("( )|[[:punct:]]","",x))
selc[which(selc=="")]<-NA
actors<-na.omit(unique(c(selc)))
opm<-matrix(0,nrow=length(actors),ncol=length(actors),dimnames=list(actors,actors))
for(i in 1:nrow(... | /eusnman.R | no_license | cmarcum/EUSN-data | R | false | false | 3,440 | r | library(sna)
library(network)
selc<-read.csv("eusn.manual.csv",colClasses="character",head=FALSE)
selc<-apply(selc,2,function(x) gsub("( )|[[:punct:]]","",x))
selc[which(selc=="")]<-NA
actors<-na.omit(unique(c(selc)))
opm<-matrix(0,nrow=length(actors),ncol=length(actors),dimnames=list(actors,actors))
for(i in 1:nrow(... |
context("figure_plotting")
| /tests/testthat/test_figure_plotting.R | no_license | gopalpenny/ggp | R | false | false | 29 | r | context("figure_plotting")
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gganatogram.R
\name{gganatogram}
\alias{gganatogram}
\title{gganatogram}
\usage{
gganatogram(data = NULL, outline = TRUE, fillOutline = "lightgray",
organism = "human", sex = "male", fill = "colour",
anatogram = NULL, ggplot2_only = FALSE... | /man/gganatogram.Rd | no_license | neuroconductor/gganatogram | R | false | true | 3,182 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gganatogram.R
\name{gganatogram}
\alias{gganatogram}
\title{gganatogram}
\usage{
gganatogram(data = NULL, outline = TRUE, fillOutline = "lightgray",
organism = "human", sex = "male", fill = "colour",
anatogram = NULL, ggplot2_only = FALSE... |
# get non book-specific gendered person words
# three kinds of words from the coropra: (1) pronouns;
# (2) person names ("mother", "mister") and (3) proper people names in our normed words.
library(tidyverse)
library(here)
NORMED_WORDS <- here("data/processed/words/gender_ratings_mean.csv")
GENDERED_PERSON_WORDS <- ... | /analysis/books/02a_get_general_gendered_words.R | no_license | mllewis/WCBC_GENDER | R | false | false | 1,685 | r | # get non book-specific gendered person words
# three kinds of words from the coropra: (1) pronouns;
# (2) person names ("mother", "mister") and (3) proper people names in our normed words.
library(tidyverse)
library(here)
NORMED_WORDS <- here("data/processed/words/gender_ratings_mean.csv")
GENDERED_PERSON_WORDS <- ... |
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853168-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 659 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/rjournal_article.R
\name{template_pandoc}
\alias{template_pandoc}
\title{Render a pandoc template.}
\usage{
template_pandoc(metadata, template, output, verbose = FALSE)
}
\arguments{
\item{metadata}{A named list containing metadata to... | /man/template_pandoc.Rd | no_license | kalimu/rticles | R | false | false | 760 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/rjournal_article.R
\name{template_pandoc}
\alias{template_pandoc}
\title{Render a pandoc template.}
\usage{
template_pandoc(metadata, template, output, verbose = FALSE)
}
\arguments{
\item{metadata}{A named list containing metadata to... |
library(ape)
testtree <- read.tree("10610_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10610_0_unrooted.txt") | /codeml_files/newick_trees_processed_and_cleaned/10610_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 137 | r | library(ape)
testtree <- read.tree("10610_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="10610_0_unrooted.txt") |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSpecials.R
\encoding{UTF-8}
\name{removeSpecials}
\alias{removeSpecials}
\title{Speciális karakterek eltűntetése}
\usage{
removeSpecials(x)
}
\arguments{
\item{x}{karakter vektor}
}
\value{
\code{x}-szel megegyező hosszú karakter vektor... | /man/removeSpecials.Rd | no_license | atajti/data.cleaning.HU | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSpecials.R
\encoding{UTF-8}
\name{removeSpecials}
\alias{removeSpecials}
\title{Speciális karakterek eltűntetése}
\usage{
removeSpecials(x)
}
\arguments{
\item{x}{karakter vektor}
}
\value{
\code{x}-szel megegyező hosszú karakter vektor... |
#' Generic label placement function
#'
#' The simple label placer processes separate isolines independently and places
#' labels for each line using a placer function that does the actual placement work.
#' This label placer is not meant to be used by end users, but rather facilitates the
#' development of new label pl... | /R/label-placer.R | permissive | r-lib/isoband | R | false | false | 9,361 | r | #' Generic label placement function
#'
#' The simple label placer processes separate isolines independently and places
#' labels for each line using a placer function that does the actual placement work.
#' This label placer is not meant to be used by end users, but rather facilitates the
#' development of new label pl... |
#' List switch or inversion
#'
#' @usage do.list.switch(dat)
#'
#' @param dat NO DEFAULT. A list of vectors that you wish to switch/invert
#'
#' @return Returns a data.table of the switched/inverted li
#'
#' @author Thomas M Ashhurst, \email{thomas.ashhurst@@sydney.edu.au}
#'
#' @references \url{https://sydneycytometry... | /R/do.list.switch.R | permissive | ImmuneDynamics/Spectre | R | false | false | 836 | r | #' List switch or inversion
#'
#' @usage do.list.switch(dat)
#'
#' @param dat NO DEFAULT. A list of vectors that you wish to switch/invert
#'
#' @return Returns a data.table of the switched/inverted li
#'
#' @author Thomas M Ashhurst, \email{thomas.ashhurst@@sydney.edu.au}
#'
#' @references \url{https://sydneycytometry... |
#' @importFrom tibble tibble
NULL
#' Fake experiment.
#'
#' A fake experiment dataset.
#'
#' @format A data frame with three variables: \code{participant},
#' \code{condition}, and \code{score}
"experiment"
| /R/experiment.R | no_license | cedricbatailler/maskr | R | false | false | 211 | r | #' @importFrom tibble tibble
NULL
#' Fake experiment.
#'
#' A fake experiment dataset.
#'
#' @format A data frame with three variables: \code{participant},
#' \code{condition}, and \code{score}
"experiment"
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distribution.R
\name{pBinomGamma}
\alias{pBinomGamma}
\title{Binomial and Gamma convolution}
\usage{
pBinomGamma(q, prob, size, mug, sigmag)
}
\arguments{
\item{q}{quantiles}
\item{prob}{parameter1-1}
\item{size}{parameter1-2}
\item{mug}{p... | /man/pBinomGamma.Rd | permissive | ick003/convReg | R | false | true | 433 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distribution.R
\name{pBinomGamma}
\alias{pBinomGamma}
\title{Binomial and Gamma convolution}
\usage{
pBinomGamma(q, prob, size, mug, sigmag)
}
\arguments{
\item{q}{quantiles}
\item{prob}{parameter1-1}
\item{size}{parameter1-2}
\item{mug}{p... |
# Script to perform spatial thinning considering number of occurrences
setwd("C:/Users/jpintole/Dropbox/RS_SDM")
library(raster)
library(rgdal)
library(tidyr)
library(dplyr)
library(rworldmap)
library(spThin)
##### Occurrence data #####
oaks <- read.csv("DATA/OCC/Quercus_data.csv")
head(oaks)
names(oaks)... | /01-prepareOCC.R | no_license | jesusNPL/BayesianSDMs_Oaks | R | false | false | 7,487 | r | # Script to perform spatial thinning considering number of occurrences
setwd("C:/Users/jpintole/Dropbox/RS_SDM")
library(raster)
library(rgdal)
library(tidyr)
library(dplyr)
library(rworldmap)
library(spThin)
##### Occurrence data #####
oaks <- read.csv("DATA/OCC/Quercus_data.csv")
head(oaks)
names(oaks)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hiReadsProcessor.R
\name{blatSeqs}
\alias{blatSeqs}
\title{Align sequences using BLAT.}
\usage{
blatSeqs(
query = NULL,
subject = NULL,
standaloneBlat = TRUE,
port = 5560,
host = "localhost",
parallel = TRUE,
numServers = 1L,
... | /man/blatSeqs.Rd | no_license | malnirav/hiReadsProcessor | R | false | true | 3,712 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hiReadsProcessor.R
\name{blatSeqs}
\alias{blatSeqs}
\title{Align sequences using BLAT.}
\usage{
blatSeqs(
query = NULL,
subject = NULL,
standaloneBlat = TRUE,
port = 5560,
host = "localhost",
parallel = TRUE,
numServers = 1L,
... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/normalization.R
\name{alr}
\alias{alr}
\alias{alr.data.frame}
\alias{alr.default}
\alias{alr.matrix}
\title{alr The additive log-ratio transformation}
\usage{
alr(x, ...)
\method{alr}{default}(x, divcomp = 1, base = exp(1), removeDiv... | /man/alr.Rd | no_license | lixiang117423/compPLS | R | false | false | 1,307 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/normalization.R
\name{alr}
\alias{alr}
\alias{alr.data.frame}
\alias{alr.default}
\alias{alr.matrix}
\title{alr The additive log-ratio transformation}
\usage{
alr(x, ...)
\method{alr}{default}(x, divcomp = 1, base = exp(1), removeDiv... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-shakespeare.R
\docType{data}
\name{shakespeare_18}
\alias{shakespeare_18}
\title{King Lear}
\format{
igraph object
}
\source{
Raw data downloaded from https://github.com/mallaham/Shakespeare-Plays
}
\usage{
shakespeare_18
}
\description{... | /man/shakespeare_18.Rd | permissive | schochastics/networkdata | R | false | true | 391 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-shakespeare.R
\docType{data}
\name{shakespeare_18}
\alias{shakespeare_18}
\title{King Lear}
\format{
igraph object
}
\source{
Raw data downloaded from https://github.com/mallaham/Shakespeare-Plays
}
\usage{
shakespeare_18
}
\description{... |
library(ggplot2)
library(tidyverse)
library(gdata)
df_ISI=read.xls ("Actigraphy Data.xlsx",header=TRUE)
df_ISI[,'strain_1']<-as.factor(df_ISI[,'strain_1'])
df_ISI[,'strain_2']<-as.factor(df_ISI[,'strain_2'])
df_ISI[,'strain_3']<-as.factor(df_ISI[,'strain_3'])
cISI<-as_data_frame(df_ISI[,c('X.Subject.ID','strain_1','str... | /longestimeawake.R | no_license | Muu24/OSS2017 | R | false | false | 17,011 | r | library(ggplot2)
library(tidyverse)
library(gdata)
df_ISI=read.xls ("Actigraphy Data.xlsx",header=TRUE)
df_ISI[,'strain_1']<-as.factor(df_ISI[,'strain_1'])
df_ISI[,'strain_2']<-as.factor(df_ISI[,'strain_2'])
df_ISI[,'strain_3']<-as.factor(df_ISI[,'strain_3'])
cISI<-as_data_frame(df_ISI[,c('X.Subject.ID','strain_1','str... |
#' Title
#'
#' @param y
#' @param x_test
#' @param score_support_result
#'
#' @return
#' @export
#'
#' @examples
score_test_mis <- function(y,x_test,score_support_result){
if(nrow(y)<450){
# if(is.null(x_covar)){
# yy <- as.vector(y)
# N <- nrow(x_test)
# p_covar <- 0
# M <- ncol(y)
#... | /R/score_test_mis.R | no_license | muschellij2/bc2 | R | false | false | 4,174 | r |
#' Title
#'
#' @param y
#' @param x_test
#' @param score_support_result
#'
#' @return
#' @export
#'
#' @examples
score_test_mis <- function(y,x_test,score_support_result){
if(nrow(y)<450){
# if(is.null(x_covar)){
# yy <- as.vector(y)
# N <- nrow(x_test)
# p_covar <- 0
# M <- ncol(y)
#... |
## Downloading, unzipping and creating a temporary data file (then removing it)
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp)
file <- unzip(temp)
unlink(temp)
## Reading the data into a table, creating a subset of... | /plot3.R | no_license | CharlesHutchison/ExData_Plotting1 | R | false | false | 1,643 | r | ## Downloading, unzipping and creating a temporary data file (then removing it)
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp)
file <- unzip(temp)
unlink(temp)
## Reading the data into a table, creating a subset of... |
\alias{gtkStatusbarSetHasResizeGrip}
\name{gtkStatusbarSetHasResizeGrip}
\title{gtkStatusbarSetHasResizeGrip}
\description{Sets whether the statusbar has a resize grip. \code{TRUE} by default.}
\usage{gtkStatusbarSetHasResizeGrip(object, setting)}
\arguments{
\item{\code{object}}{[\code{\link{GtkStatusbar}}] a \code{Gt... | /man/gtkStatusbarSetHasResizeGrip.Rd | no_license | cran/RGtk2.10 | R | false | false | 475 | rd | \alias{gtkStatusbarSetHasResizeGrip}
\name{gtkStatusbarSetHasResizeGrip}
\title{gtkStatusbarSetHasResizeGrip}
\description{Sets whether the statusbar has a resize grip. \code{TRUE} by default.}
\usage{gtkStatusbarSetHasResizeGrip(object, setting)}
\arguments{
\item{\code{object}}{[\code{\link{GtkStatusbar}}] a \code{Gt... |
library(MASS)
library(car)
library(caret)
library(dplyr)
library(tidyr)
library(ggplot2)
library(cowplot)
webscrap<-read.csv("Book1.csv")
View(webscrap)
#Change target variable to factors and binary form
webscrap$isscrappy<- factor(webscrap$isscrappy)
webscrap$isscrappy<- ifelse(webscrap$isscrappy=="Y... | /webscrapping.R | no_license | Sourabh9986/Webscrapping | R | false | false | 4,752 | r | library(MASS)
library(car)
library(caret)
library(dplyr)
library(tidyr)
library(ggplot2)
library(cowplot)
webscrap<-read.csv("Book1.csv")
View(webscrap)
#Change target variable to factors and binary form
webscrap$isscrappy<- factor(webscrap$isscrappy)
webscrap$isscrappy<- ifelse(webscrap$isscrappy=="Y... |
# Import libraries
library(shiny)
library(data.table)
library(randomForest)
library(tibble)
# Read in the RF model
#setwd('C:\\Users\\Soham\\Documents\\DEMENTIA_PROJ')
v <- readRDS('model1.RDS')
####################################
# User interface #
#################################... | /DEMENTIA_CLASSIFIER.R | no_license | sohambiswas13/Dementia_Predictor | R | false | false | 3,912 | r |
# Import libraries
library(shiny)
library(data.table)
library(randomForest)
library(tibble)
# Read in the RF model
#setwd('C:\\Users\\Soham\\Documents\\DEMENTIA_PROJ')
v <- readRDS('model1.RDS')
####################################
# User interface #
#################################... |
# Housing #
# Net additional dwellings --------------------------------------------------
net_additional_dwellings <-
read_csv("data/housing/net_additional_dwellings.csv") %>%
mutate(area_name = factor(area_name)) %>%
filter(period >= "2007-08") %>%
group_by(area_name) %>%
mutate(
index = round(100 * val... | /priorities/housing/server_fragment.R | permissive | traffordDataLab/dashboard | R | false | false | 13,256 | r | # Housing #
# Net additional dwellings --------------------------------------------------
net_additional_dwellings <-
read_csv("data/housing/net_additional_dwellings.csv") %>%
mutate(area_name = factor(area_name)) %>%
filter(period >= "2007-08") %>%
group_by(area_name) %>%
mutate(
index = round(100 * val... |
##Using the sqldf package to filter the table and load it in
library(sqldf)
febHPC <- read.csv.sql("household_power_consumption.txt",
sql = "select * from file where Date in ('1/2/2007', '2/2/2007')",
header = TRUE,
stringsAsFactors = FALSE,
... | /plot1.R | no_license | rlinnstaedt/ExData_Plotting1 | R | false | false | 802 | r | ##Using the sqldf package to filter the table and load it in
library(sqldf)
febHPC <- read.csv.sql("household_power_consumption.txt",
sql = "select * from file where Date in ('1/2/2007', '2/2/2007')",
header = TRUE,
stringsAsFactors = FALSE,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplyrAssist.R
\name{dplyrAssist}
\alias{dplyrAssist}
\title{A shiny app for learn dplyr}
\usage{
dplyrAssist(df = NULL, right = NULL)
}
\arguments{
\item{df}{A tibble or a tbl_df or a data.frame to manipulate}
\item{right}{Optional second da... | /man/dplyrAssist.Rd | no_license | jfontestad/dplyrAssist | R | false | true | 1,138 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplyrAssist.R
\name{dplyrAssist}
\alias{dplyrAssist}
\title{A shiny app for learn dplyr}
\usage{
dplyrAssist(df = NULL, right = NULL)
}
\arguments{
\item{df}{A tibble or a tbl_df or a data.frame to manipulate}
\item{right}{Optional second da... |
#loading the necessary packages:
library(dplyr)
library(plyr)
#Reading the text file and subsetting accordingly:
data<- read.table("household_power_consumption.txt", header = TRUE,
stringsAsFactors = FALSE, sep = ";", dec = ".")
household<- data[data$Date %in% c ("1/2/2007", "2/2/2007"),]
#Remo... | /plot1.R | no_license | bahu1610/ExData_Plotting1 | R | false | false | 626 | r | #loading the necessary packages:
library(dplyr)
library(plyr)
#Reading the text file and subsetting accordingly:
data<- read.table("household_power_consumption.txt", header = TRUE,
stringsAsFactors = FALSE, sep = ";", dec = ".")
household<- data[data$Date %in% c ("1/2/2007", "2/2/2007"),]
#Remo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ghost.R
\name{\%g<\%}
\alias{\%g<\%}
\title{Begin constructing a ggghost cache}
\usage{
lhs \%g<\% rhs
}
\arguments{
\item{lhs}{LHS of call}
\item{rhs}{RHS of call}
}
\value{
Assigns the \code{ggghost} structure to the \code{lhs} symbol.
}
\... | /man/grapes-g-less-than-grapes.Rd | no_license | jonocarroll/ggghost | R | false | true | 902 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ghost.R
\name{\%g<\%}
\alias{\%g<\%}
\title{Begin constructing a ggghost cache}
\usage{
lhs \%g<\% rhs
}
\arguments{
\item{lhs}{LHS of call}
\item{rhs}{RHS of call}
}
\value{
Assigns the \code{ggghost} structure to the \code{lhs} symbol.
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bss_functions.R
\name{gammaKernelTau}
\alias{gammaKernelTau}
\title{Scale factor for the gamma kernel}
\usage{
gammaKernelTau(n, alpha, lambda)
}
\arguments{
\item{n}{a positive integer indicating the number of observations per unit of time.}... | /man/gammaKernelTau.Rd | permissive | phillipmurray/BSS | R | false | true | 794 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bss_functions.R
\name{gammaKernelTau}
\alias{gammaKernelTau}
\title{Scale factor for the gamma kernel}
\usage{
gammaKernelTau(n, alpha, lambda)
}
\arguments{
\item{n}{a positive integer indicating the number of observations per unit of time.}... |
dataTable <- prepareTable(orginalResults, permutatedResults)
singlePvalue <- function(x, id){ #p_val
y <- x[id]
return( sum(x >= y) / length(x) )
}
computePvalue <- function(dataTable){ #results_pv
pValues <- sapply( 1:nrow(dataTable), function(i, dataTable){
return( singlePvalue(dataTable[i,], 1) )
}, dataTabl... | /FDR.R | no_license | seventm/ACST | R | false | false | 1,870 | r | dataTable <- prepareTable(orginalResults, permutatedResults)
singlePvalue <- function(x, id){ #p_val
y <- x[id]
return( sum(x >= y) / length(x) )
}
computePvalue <- function(dataTable){ #results_pv
pValues <- sapply( 1:nrow(dataTable), function(i, dataTable){
return( singlePvalue(dataTable[i,], 1) )
}, dataTabl... |
library(dplyr)
library(shellpipes)
set.seed (2046)
ng <- 8
samps <- 20
between <- 0.4
within <- 0.2
geff <- rnorm(ng, sd=between)
genotypes <- factor(1:ng) %>% reorder(geff, FUN = mean)
nl <- list()
for (i in 1:length(genotypes)){
j <- order(geff)[[i]]
j <- i
print(j)
nl[[i]] <- tibble(sample = 1:samps
, rat... | /docs/code/logRatios.R | no_license | mac-theobio/DataViz | R | false | false | 512 | r | library(dplyr)
library(shellpipes)
set.seed (2046)
ng <- 8
samps <- 20
between <- 0.4
within <- 0.2
geff <- rnorm(ng, sd=between)
genotypes <- factor(1:ng) %>% reorder(geff, FUN = mean)
nl <- list()
for (i in 1:length(genotypes)){
j <- order(geff)[[i]]
j <- i
print(j)
nl[[i]] <- tibble(sample = 1:samps
, rat... |
#' Recode values
#'
#' This is a vectorised version of [switch()]: you can replace
#' numeric values based on their position, and character values by their
#' name. This is an S3 generic: dplyr provides methods for numeric, character,
#' and factors. For logical vectors, use [if_else()]
#'
#' @param .x A vector to modi... | /R/recode.R | permissive | wibeasley/dplyr | R | false | false | 7,131 | r | #' Recode values
#'
#' This is a vectorised version of [switch()]: you can replace
#' numeric values based on their position, and character values by their
#' name. This is an S3 generic: dplyr provides methods for numeric, character,
#' and factors. For logical vectors, use [if_else()]
#'
#' @param .x A vector to modi... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536121297e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615775219-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 362 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536121297e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)))
result <- do.call(CNull:::communities_individual_... |
x <- c(1,2,3,4,5)
nombres <- c("Nabila", "Felipe")
y <- c(5,4,3,2,1)
plot(x,y)
?plot
plot( c(1,2,3,4,5) ,y) # dfsdfsdfsdfsdfsd
?lm
chum <- read.csv("./Datos/clean_churndata.csv", stringsAsFactors = FALSE)
str(chum) #
head(chum)
tail(chum)
summary(chum)
chum$Churn
# chum[OBS, VARIABLE (COLUMNA)]
chum[1,]
chum[1,1]
c... | /1_Intro/Script.R | no_license | rral0/Ciencia-de-Datos-con-R-1 | R | false | false | 468 | r | x <- c(1,2,3,4,5)
nombres <- c("Nabila", "Felipe")
y <- c(5,4,3,2,1)
plot(x,y)
?plot
plot( c(1,2,3,4,5) ,y) # dfsdfsdfsdfsdfsd
?lm
chum <- read.csv("./Datos/clean_churndata.csv", stringsAsFactors = FALSE)
str(chum) #
head(chum)
tail(chum)
summary(chum)
chum$Churn
# chum[OBS, VARIABLE (COLUMNA)]
chum[1,]
chum[1,1]
c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PATHOGEN-PfSI-Methods.R
\name{HumanPop_set_humanPfSI}
\alias{HumanPop_set_humanPfSI}
\title{PfSI \code{HumanPop} Method: Set Human-stage PfSI Object}
\usage{
HumanPop_set_humanPfSI(b = NULL, c = NULL)
}
\arguments{
\item{b}{infected mosquito ... | /man/HumanPop_set_humanPfSI.Rd | no_license | smitdave/MASH | R | false | true | 609 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PATHOGEN-PfSI-Methods.R
\name{HumanPop_set_humanPfSI}
\alias{HumanPop_set_humanPfSI}
\title{PfSI \code{HumanPop} Method: Set Human-stage PfSI Object}
\usage{
HumanPop_set_humanPfSI(b = NULL, c = NULL)
}
\arguments{
\item{b}{infected mosquito ... |
copynum.iter.iter <- function( y.mat, C, prior, max.iter=10, as.integer=TRUE, verbose=TRUE ){
# y.mat must have one row for each stringency and one column for each gene
# prior - initial estimate of copy numbers for each ref. gene
gamma.hat <- prior
gamma.old <- rep( 1000, length( prior ) )
if( verbose ) cat... | /CNV_pipeline/copynumfun.R | no_license | LorenaDerezanin/bioinfo_scripts | R | false | false | 2,733 | r |
copynum.iter.iter <- function( y.mat, C, prior, max.iter=10, as.integer=TRUE, verbose=TRUE ){
# y.mat must have one row for each stringency and one column for each gene
# prior - initial estimate of copy numbers for each ref. gene
gamma.hat <- prior
gamma.old <- rep( 1000, length( prior ) )
if( verbose ) cat... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Analysis of the Effect of Feed Type on Chick Growth"),
# Sidebar with a sli... | /ui.R | no_license | jar1218/Developing-Data-Products | R | false | false | 1,067 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Analysis of the Effect of Feed Type on Chick Growth"),
# Sidebar with a sli... |
# Enabling Multi Core for modeling processing
library(doMC)
registerDoMC(cores = 2)
#Loading used libraries
library(caret); library(rattle)
library(rpart); library(klaR)
library(randomForest); library(gbm)
#setting the seed for reproducible computation
set.seed(12345)
#setting the working directory folder
setwd("~/D... | /PracMachLeanr.R | no_license | betocaeirojr/PracMachLearning | R | false | false | 5,683 | r | # Enabling Multi Core for modeling processing
library(doMC)
registerDoMC(cores = 2)
#Loading used libraries
library(caret); library(rattle)
library(rpart); library(klaR)
library(randomForest); library(gbm)
#setting the seed for reproducible computation
set.seed(12345)
#setting the working directory folder
setwd("~/D... |
## [makeCacheMatrix creates a special matrix object that can cache its inverse]
makeCacheMatrix <- function(x = matrix()) { ## input x is a square matrix
inv <- NULL ## inv is the inverse and is set to NULL every time makeCacheMatrix is called
set <- function(y) { ## this takes an input value... | /cachematrix.R | no_license | CourseraLIU/ProgrammingAssignment2 | R | false | false | 1,637 | r | ## [makeCacheMatrix creates a special matrix object that can cache its inverse]
makeCacheMatrix <- function(x = matrix()) { ## input x is a square matrix
inv <- NULL ## inv is the inverse and is set to NULL every time makeCacheMatrix is called
set <- function(y) { ## this takes an input value... |
%
% Copyright 2007-2018 The OpenMx Project
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable ... | /man/mxRAMObjective.Rd | no_license | mileysmiley/OpenMx | R | false | false | 7,405 | rd | %
% Copyright 2007-2018 The OpenMx Project
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable ... |
library(trend)
### Name: pettitt.test
### Title: Pettitt's Test for Change-Point Detection
### Aliases: pettitt.test
### Keywords: htest nonparametric ts univar
### ** Examples
data(maxau) ; plot(maxau[,"s"])
s.res <- pettitt.test(maxau[,"s"])
n <- s.res$nobs
i <- s.res$estimate
s.1 <- mean(maxau[1:i,"s"])
s.2 <- m... | /data/genthat_extracted_code/trend/examples/pettitt.test.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 488 | r | library(trend)
### Name: pettitt.test
### Title: Pettitt's Test for Change-Point Detection
### Aliases: pettitt.test
### Keywords: htest nonparametric ts univar
### ** Examples
data(maxau) ; plot(maxau[,"s"])
s.res <- pettitt.test(maxau[,"s"])
n <- s.res$nobs
i <- s.res$estimate
s.1 <- mean(maxau[1:i,"s"])
s.2 <- m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace.R, R/wrapers.R
\name{torch_index}
\alias{torch_index}
\title{Index torch tensors}
\usage{
torch_index(self, indices)
}
\arguments{
\item{self}{(Tensor) Tensor that will be indexed.}
\item{indices}{(\code{List[Tensor]}) List of ... | /man/torch_index.Rd | permissive | mlverse/torch | R | false | true | 441 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen-namespace.R, R/wrapers.R
\name{torch_index}
\alias{torch_index}
\title{Index torch tensors}
\usage{
torch_index(self, indices)
}
\arguments{
\item{self}{(Tensor) Tensor that will be indexed.}
\item{indices}{(\code{List[Tensor]}) List of ... |
library(shiny)
library(networkD3)
library(igraph)
data(MisLinks)
data(MisNodes)
# Define UI ----
ui <- fluidPage(
titlePanel("Try Network"),
sidebarLayout(
sidebarPanel(
helpText("sidebarPanel..."),
sliderInput("fontSize", h3("Font Size:"),
min = 1, max = 30, value = 15)
),
mainPanel(
f... | /network/test_networkD3/app.R | no_license | chenh2017/Practice_shiny | R | false | false | 998 | r | library(shiny)
library(networkD3)
library(igraph)
data(MisLinks)
data(MisNodes)
# Define UI ----
ui <- fluidPage(
titlePanel("Try Network"),
sidebarLayout(
sidebarPanel(
helpText("sidebarPanel..."),
sliderInput("fontSize", h3("Font Size:"),
min = 1, max = 30, value = 15)
),
mainPanel(
f... |
## Copyright (C) 2009 Reinhard Seifert,
## biostatistician at Haukeland University Hospital Bergen, Norway.
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation; either version 2, or (at your op... | /R/plotHR.R | no_license | gforge/Greg | R | false | false | 14,474 | r | ## Copyright (C) 2009 Reinhard Seifert,
## biostatistician at Haukeland University Hospital Bergen, Norway.
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation; either version 2, or (at your op... |
library(RMySQL)
# set working directory to the directory where this script is saved
script.dir <- dirname(sys.frame(1)$ofile)
setwd(script.dir)
rm(script.dir)
con <- dbConnect(MySQL(),
user="", password="",
dbname="", host="")
query <-
"SELECT country, disease, workbook_year,
... | /std_rpts/updateTreatments.R | no_license | reowen/DataViz | R | false | false | 4,732 | r | library(RMySQL)
# set working directory to the directory where this script is saved
script.dir <- dirname(sys.frame(1)$ofile)
setwd(script.dir)
rm(script.dir)
con <- dbConnect(MySQL(),
user="", password="",
dbname="", host="")
query <-
"SELECT country, disease, workbook_year,
... |
## GOAL:
# Would a weighted average of the dietary profiles with
# decaying weights 2^(-n) for day 'n' do better or worse?
# Make one decaying day diet table for the entire study
require(zoo)
require(tidyr)
setwd(dir = "~/Documents/Projects/dietstudy_analyses/")
# read in the Food totals for the complete dataset
fo... | /lib/processing_scripts/makemasterdecaydietfoodtable.R | no_license | knights-lab/dietstudy_analyses | R | false | false | 2,640 | r | ## GOAL:
# Would a weighted average of the dietary profiles with
# decaying weights 2^(-n) for day 'n' do better or worse?
# Make one decaying day diet table for the entire study
require(zoo)
require(tidyr)
setwd(dir = "~/Documents/Projects/dietstudy_analyses/")
# read in the Food totals for the complete dataset
fo... |
\name{getFunc}
\alias{getFunc}
\title{function to decide and intitiate the function that sould be used to create the vairable for the synthetic data}
\description{This function will simply decide what is what is the function from the package that
should be used to simulate hte variable, then it will run this functi... | /man/getFunc.Rd | no_license | raldulai/Episim | R | false | false | 709 | rd | \name{getFunc}
\alias{getFunc}
\title{function to decide and intitiate the function that sould be used to create the vairable for the synthetic data}
\description{This function will simply decide what is what is the function from the package that
should be used to simulate hte variable, then it will run this functi... |
WAP <- function(num, predicted, actual, actual_score, n) # This is function to calculate [WAP@num] for each user
{
sum_actual_score <- 0.0
sum_predicted_score <- 0.0
sum_ratio <- 0.0
for (i in 1:num)
{
if (predicted[i] %in% actual)
{
predicted_score <- actual_score[which(actual %in% predicted[i])] # This st... | /EWAP/EWAP.R | no_license | DEX-Company/DEXTRA_SourceCodes | R | false | false | 2,915 | r | WAP <- function(num, predicted, actual, actual_score, n) # This is function to calculate [WAP@num] for each user
{
sum_actual_score <- 0.0
sum_predicted_score <- 0.0
sum_ratio <- 0.0
for (i in 1:num)
{
if (predicted[i] %in% actual)
{
predicted_score <- actual_score[which(actual %in% predicted[i])] # This st... |
## makeCacheMatrix and cacheSolve are defined to create behavior of caching reverse matrix of a square matrix.
## The value of reverse matrix in only calculated first time and cached for further usage.
##makeCacheMatrix takes a square matrix, and returns a List of functions which are used to manipulate the encasula... | /cachematrix.R | no_license | exponential1st/ProgrammingAssignment2 | R | false | false | 1,660 | r | ## makeCacheMatrix and cacheSolve are defined to create behavior of caching reverse matrix of a square matrix.
## The value of reverse matrix in only calculated first time and cached for further usage.
##makeCacheMatrix takes a square matrix, and returns a List of functions which are used to manipulate the encasula... |
#' Expectation Maximization glm.
#'
#' Fit an Expectation Maximization glm using the glm \emph{family} to define the link function. Two methods of optimization are included,
#' using direct numeric approximations and using the \emph{pracma} package to find the Hessian and Jacobian of the log-likelihood. The number... | /R/em.glm.R | no_license | cran/emax.glm | R | false | false | 5,466 | r | #' Expectation Maximization glm.
#'
#' Fit an Expectation Maximization glm using the glm \emph{family} to define the link function. Two methods of optimization are included,
#' using direct numeric approximations and using the \emph{pracma} package to find the Hessian and Jacobian of the log-likelihood. The number... |
#' @export
forward <- function(){
.globals$forwarded <- TRUE
}
RapierStep <- R6Class(
"RapierStep",
public = list(
lines = NA,
serializer = NULL,
initialize = function(expr, envir, lines, serializer, processors){
private$expr <- expr
private$envir <- envir
if (!missing(lines)){
... | /R/rapier-step.R | permissive | vnijs/rapier | R | false | false | 3,053 | r | #' @export
forward <- function(){
.globals$forwarded <- TRUE
}
RapierStep <- R6Class(
"RapierStep",
public = list(
lines = NA,
serializer = NULL,
initialize = function(expr, envir, lines, serializer, processors){
private$expr <- expr
private$envir <- envir
if (!missing(lines)){
... |
gc()
rm(list = ls())
require(devtools)
require(WorldClimTiles)
require(rgdal)
require(gdaltools)
require(raster)
require(stringr)
require(sf)
data_path <- file.path(getwd(), "data", "data_ama_1k")
temp_path <- file.path(data_path, "temp")
raw_path <- file.path(path.expand("~"), "OneDrive - The University of Melbourne"... | /R/preprocessing.R | no_license | payalbal/frac_lumodel | R | false | false | 13,233 | r | gc()
rm(list = ls())
require(devtools)
require(WorldClimTiles)
require(rgdal)
require(gdaltools)
require(raster)
require(stringr)
require(sf)
data_path <- file.path(getwd(), "data", "data_ama_1k")
temp_path <- file.path(data_path, "temp")
raw_path <- file.path(path.expand("~"), "OneDrive - The University of Melbourne"... |
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -4.55330113372629e+128, 6.42851301544252e-310, 1.6601383076532... | /meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615768662-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 683 | r | testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -4.55330113372629e+128, 6.42851301544252e-310, 1.6601383076532... |
# script name: titanic.plot.R
# to run this script, type the below in the bash shell
# RScript script-name
# read the tidy version
titanic = read.csv(file = "titanic.tidy.csv")
# Check out the structure of titanic
str(titanic)
library("ggplot2")
# Use ggplot() for the first instruction
jpeg(filename = "plot1.jpeg... | /titanic.plot.R | no_license | abalaji-blr/TitanicViz | R | false | false | 967 | r | # script name: titanic.plot.R
# to run this script, type the below in the bash shell
# RScript script-name
# read the tidy version
titanic = read.csv(file = "titanic.tidy.csv")
# Check out the structure of titanic
str(titanic)
library("ggplot2")
# Use ggplot() for the first instruction
jpeg(filename = "plot1.jpeg... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{runApp}
\alias{runApp}
\title{Run Pavian web interface}
\usage{
runApp(cache_dir = "cache", server_dir = Sys.glob("~"),
server_access = TRUE, load_example_data = FALSE,
load_server_directory = FALSE, ...)
}
\arguments{
\ite... | /man/runApp.Rd | no_license | skerker/pavian | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{runApp}
\alias{runApp}
\title{Run Pavian web interface}
\usage{
runApp(cache_dir = "cache", server_dir = Sys.glob("~"),
server_access = TRUE, load_example_data = FALSE,
load_server_directory = FALSE, ...)
}
\arguments{
\ite... |
#' @title Prepare GDC data
#' @description
#' Reads the data downloaded and prepare it into an R object
#' @param query A query for GDCquery function
#' @param save Save result as RData object?
#' @param save.filename Name of the file to be save if empty an automatic will be created
#' @param directory Directory/Fol... | /R/prepare.R | no_license | ukulala20/TCGAbiolinks | R | false | false | 61,460 | r |
#' @title Prepare GDC data
#' @description
#' Reads the data downloaded and prepare it into an R object
#' @param query A query for GDCquery function
#' @param save Save result as RData object?
#' @param save.filename Name of the file to be save if empty an automatic will be created
#' @param directory Directory/Fol... |
#' English Premier League Football Results 2008/9 to 2012/13
#'
#' The win/lose/draw results for five seasons of the English Premier League
#' football results, from 2008/9 to 2012/13
#'
#' In each season, there are 20 teams, each of which plays one home game and
#' one away game against all the other teams in the le... | /R/football.R | no_license | hturner/BradleyTerry2 | R | false | false | 2,250 | r | #' English Premier League Football Results 2008/9 to 2012/13
#'
#' The win/lose/draw results for five seasons of the English Premier League
#' football results, from 2008/9 to 2012/13
#'
#' In each season, there are 20 teams, each of which plays one home game and
#' one away game against all the other teams in the le... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coerce.R
\name{vec_coerce}
\alias{vec_coerce}
\title{Coerce vectors to common type}
\usage{
vec_coerce(..., .ptype = NULL)
}
\arguments{
\item{...}{Vectors to coerce.}
\item{.ptype}{If \code{NULL}, the default, the output type is determined ... | /man/vec_coerce.Rd | no_license | yutannihilation/vctrs | R | false | true | 1,137 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coerce.R
\name{vec_coerce}
\alias{vec_coerce}
\title{Coerce vectors to common type}
\usage{
vec_coerce(..., .ptype = NULL)
}
\arguments{
\item{...}{Vectors to coerce.}
\item{.ptype}{If \code{NULL}, the default, the output type is determined ... |
# Title : TODO
# Objective : TODO
# Created by: adria
# Created on: 26/08/2020
# Crear una funcion que sume todos los elementos de una matriz
resultado <- function (){
matriz <- matrix(1:6, nrow = 3, byrow = TRUE)
aux <- sum(matriz)
return(aux)
}
print(resultado()) | /Curso_R/Seccion7_Programacion_basica/Ejercicios/Ejercicio5.R | no_license | adrianh589/Curso_R | R | false | false | 278 | r | # Title : TODO
# Objective : TODO
# Created by: adria
# Created on: 26/08/2020
# Crear una funcion que sume todos los elementos de una matriz
resultado <- function (){
matriz <- matrix(1:6, nrow = 3, byrow = TRUE)
aux <- sum(matriz)
return(aux)
}
print(resultado()) |
# LoadPairFile <- function( ) {
# #directory <- "F:/Projects/Nls/Links2011/Analysis/Df/2012-01-13"
# #pathLinks <- file.path(directory, "Links2011V28.csv")
# #dsLinks <- read.csv(pathLinks)
# return( Links79Pair )
# }
fileNameGen2 <- "gen2-birth.csv"
# print(basename(normalizePath(".")))
{
if( basename(norm... | /tests/testthat/test-column-utilities.R | no_license | nlsy-links/NlsyLinks | R | false | false | 5,852 | r |
# LoadPairFile <- function( ) {
# #directory <- "F:/Projects/Nls/Links2011/Analysis/Df/2012-01-13"
# #pathLinks <- file.path(directory, "Links2011V28.csv")
# #dsLinks <- read.csv(pathLinks)
# return( Links79Pair )
# }
fileNameGen2 <- "gen2-birth.csv"
# print(basename(normalizePath(".")))
{
if( basename(norm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.