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: do not edit by hand
% Please edit documentation in R/analytics-report-folder.R
\name{sf_report_folder_shares_update}
\alias{sf_report_folder_shares_update}
\title{Update the shares for a report folder}
\usage{
sf_report_folder_shares_update(report_folder_id, body)
}
\arguments{
\item{report_fol... | /man/sf_report_folder_shares_update.Rd | permissive | carlganz/salesforcer | R | false | true | 1,058 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analytics-report-folder.R
\name{sf_report_folder_shares_update}
\alias{sf_report_folder_shares_update}
\title{Update the shares for a report folder}
\usage{
sf_report_folder_shares_update(report_folder_id, body)
}
\arguments{
\item{report_fol... |
# private function to test if an input prob is a valid probability value.
check_prob <- function(prob) {
if ((prob >= 0) & (prob <= 1)) {
return(TRUE)
} else {
stop('invalid prob value')
}
}
# private function to test if an input trials is a valid value for number of trials.
check_trials <- function(tria... | /binomial/R/private_checker.R | no_license | stat133-sp19/hw-stat133-jh04023 | R | false | false | 702 | r | # private function to test if an input prob is a valid probability value.
check_prob <- function(prob) {
if ((prob >= 0) & (prob <= 1)) {
return(TRUE)
} else {
stop('invalid prob value')
}
}
# private function to test if an input trials is a valid value for number of trials.
check_trials <- function(tria... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.TableOne.R
\name{print.TableOne}
\alias{print.TableOne}
\title{Format and print \code{TableOne} class objects}
\usage{
\method{print}{TableOne}(
x,
catDigits = 1,
contDigits = 2,
pDigits = 3,
quote = FALSE,
missing = FALSE,
... | /man/print.TableOne.Rd | no_license | kaz-yos/tableone | R | false | true | 4,231 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.TableOne.R
\name{print.TableOne}
\alias{print.TableOne}
\title{Format and print \code{TableOne} class objects}
\usage{
\method{print}{TableOne}(
x,
catDigits = 1,
contDigits = 2,
pDigits = 3,
quote = FALSE,
missing = FALSE,
... |
#set working directory
setwd("F:/Study/大三下/DataScienceWork")
#load library data.table
library(data.table)
## Getting full dataset
DT<-fread("./household_power_consumption.txt", na.strings="?")
DT$Date <- as.Date(DT$Date, format="%d/%m/%Y")
## Subsetting the data
DT.filter <- subset(DT, subset=(Date >= "2007... | /Lab/Lab7/plot4.R | no_license | 519772745/introdatascience | R | false | false | 1,294 | r | #set working directory
setwd("F:/Study/大三下/DataScienceWork")
#load library data.table
library(data.table)
## Getting full dataset
DT<-fread("./household_power_consumption.txt", na.strings="?")
DT$Date <- as.Date(DT$Date, format="%d/%m/%Y")
## Subsetting the data
DT.filter <- subset(DT, subset=(Date >= "2007... |
# HW1: simple probabilities
#
# Estimate the probability to have 5 'heads' in a row
#
# 1. Set the random seed to zero and save the random seed vector to `seed`. (hint: use the command `seed <- .Random.seed`).
# 2. Create a vector `random_seq` of n = 50000 random numbers equal to 0 ('heads') or 1 ('tails').
# 3. Reshap... | /week1 program/Sample 2.R | no_license | zhangzhiyuan233/GR5206-IntroToDataScience | R | false | false | 1,453 | r | # HW1: simple probabilities
#
# Estimate the probability to have 5 'heads' in a row
#
# 1. Set the random seed to zero and save the random seed vector to `seed`. (hint: use the command `seed <- .Random.seed`).
# 2. Create a vector `random_seq` of n = 50000 random numbers equal to 0 ('heads') or 1 ('tails').
# 3. Reshap... |
# Copyright 2019 Province of British Columbia
#
# 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 law or agreed... | /R/write_plots.R | permissive | gravitytrope/fasstr | R | false | false | 6,545 | r | # Copyright 2019 Province of British Columbia
#
# 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 law or agreed... |
#merge 3UTR of gene from gencode gtf
library(data.table)
library(dplyr)
all.UTR <- fread('/mnt/data1/xiaoxia/ALL_apa/UTR3.ref.txt', header = T)
#merge all transcripts 3UTR to generate one 3'UTR
setkey(all.UTR, gene_id)
left <- all.UTR[,lapply(.SD, min), by = gene_id, .SDcol = 'start']
right <- all.UTR[,lapply(.SD, ma... | /ALL_apa/old.version/Merge3UTR.R | no_license | Elvaxia/APA | R | false | false | 930 | r | #merge 3UTR of gene from gencode gtf
library(data.table)
library(dplyr)
all.UTR <- fread('/mnt/data1/xiaoxia/ALL_apa/UTR3.ref.txt', header = T)
#merge all transcripts 3UTR to generate one 3'UTR
setkey(all.UTR, gene_id)
left <- all.UTR[,lapply(.SD, min), by = gene_id, .SDcol = 'start']
right <- all.UTR[,lapply(.SD, ma... |
rotate180.matrix <-
function(x) {
xx <- rev(x);
dim(xx) <- dim(x);
xx;
}
| /R/rotate180.matrix.R | no_license | efulet/Thermimage | R | false | false | 80 | r | rotate180.matrix <-
function(x) {
xx <- rev(x);
dim(xx) <- dim(x);
xx;
}
|
# COMBAT
# Set WD
setwd("/Users/aj/Dropbox (Partners HealthCare)/Data/melanoma_rarecyte/Figures for manuscript/Fig 6/")
# Library
library(sva)
# Load data
d1 <- read.csv(file= "f8_counts.csv", row.names = 1, header = T, check.names = F)
d2 <- read.csv(file= "f12_counts.csv", row.names = 1, header = T, check.names ... | /r_scripts/combat.R | permissive | ajitjohnson/Jupyter-Notebooks | R | false | false | 1,134 | r | # COMBAT
# Set WD
setwd("/Users/aj/Dropbox (Partners HealthCare)/Data/melanoma_rarecyte/Figures for manuscript/Fig 6/")
# Library
library(sva)
# Load data
d1 <- read.csv(file= "f8_counts.csv", row.names = 1, header = T, check.names = F)
d2 <- read.csv(file= "f12_counts.csv", row.names = 1, header = T, check.names ... |
#' @import smoof
#' @import checkmate
#' @import BBmisc
#' @import ParamHelpers
NULL
| /R/zzz.R | no_license | jakobbossek/noir | R | false | false | 85 | r | #' @import smoof
#' @import checkmate
#' @import BBmisc
#' @import ParamHelpers
NULL
|
#' Chord diagram of ethnobotany uses and species
#'
#' Creates a chord diagram of species and uses for ethnobotany studies.
#' @source Whitney, C. W., Bahati, J., and Gebauer, J. (2018), Ethnobotany and agrobiodiversity; valuation of plants in the homegardens of southwestern Uganda. Ethnobiology Letters, 9(2), 90-100. ... | /R/ethnobotanyChord.R | no_license | liyan620/ethnobotanyR | R | false | false | 4,723 | r | #' Chord diagram of ethnobotany uses and species
#'
#' Creates a chord diagram of species and uses for ethnobotany studies.
#' @source Whitney, C. W., Bahati, J., and Gebauer, J. (2018), Ethnobotany and agrobiodiversity; valuation of plants in the homegardens of southwestern Uganda. Ethnobiology Letters, 9(2), 90-100. ... |
\name{plotNeo4j}
\alias{plotNeo4j}
\title{This function generates a plot depicting a graph, or a subgraph, from a Neo4j database.}
\usage{
plotNeo4j(handle, subgraph = NULL, legend = TRUE, ...)
}
\arguments{
\item{subgraph}{Numeric vector. The indices of the nodes
to include in the plot.}
\item{legend}{Boolean. ... | /man/plotNeo4j.Rd | no_license | pavang/R-Neo4J | R | false | false | 715 | rd | \name{plotNeo4j}
\alias{plotNeo4j}
\title{This function generates a plot depicting a graph, or a subgraph, from a Neo4j database.}
\usage{
plotNeo4j(handle, subgraph = NULL, legend = TRUE, ...)
}
\arguments{
\item{subgraph}{Numeric vector. The indices of the nodes
to include in the plot.}
\item{legend}{Boolean. ... |
library(KraljicMatrix)
### Name: MAVF_score
### Title: Multi-attribute value function
### Aliases: MAVF_score
### ** Examples
# Given the following \code{x} and \code{y} attribute values with \code{x} and
# \code{y} swing weight values of 0.65 and 0.35 respectively, we can compute
# the multi-attribute utility sco... | /data/genthat_extracted_code/KraljicMatrix/examples/MAVF_score.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 546 | r | library(KraljicMatrix)
### Name: MAVF_score
### Title: Multi-attribute value function
### Aliases: MAVF_score
### ** Examples
# Given the following \code{x} and \code{y} attribute values with \code{x} and
# \code{y} swing weight values of 0.65 and 0.35 respectively, we can compute
# the multi-attribute utility sco... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eventAccrual.R
\name{tabEventAccrual}
\alias{tabEventAccrual}
\title{Tabulate event accrual over time since first enrollment}
\usage{
tabEventAccrual(
trialData,
atEvents = NULL,
atWeeks = NULL,
prob = 0.5,
lagTimeMITT = 0,
lagTim... | /man/tabEventAccrual.Rd | no_license | mjuraska/seqDesign | R | false | true | 3,948 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eventAccrual.R
\name{tabEventAccrual}
\alias{tabEventAccrual}
\title{Tabulate event accrual over time since first enrollment}
\usage{
tabEventAccrual(
trialData,
atEvents = NULL,
atWeeks = NULL,
prob = 0.5,
lagTimeMITT = 0,
lagTim... |
## function to manipulate & plot objects of class "backbonePhylo"
## written by Liam J. Revell 2013, 2016
backbone.toTrans<-function(obj){
tip.label<-obj$tip.label
clade.label<-sapply(obj$tip.clade,function(x) x$label)
N<-sapply(obj$tip.clade,function(x) x$N)
depth<-sapply(obj$tip.clade,function(x) x$depth)
data.... | /R/backbonePhylo.R | no_license | leorjorge/phytools | R | false | false | 10,081 | r | ## function to manipulate & plot objects of class "backbonePhylo"
## written by Liam J. Revell 2013, 2016
backbone.toTrans<-function(obj){
tip.label<-obj$tip.label
clade.label<-sapply(obj$tip.clade,function(x) x$label)
N<-sapply(obj$tip.clade,function(x) x$N)
depth<-sapply(obj$tip.clade,function(x) x$depth)
data.... |
#' Threshold the GFC product
#'
#' Uses the GFC data output from \code{\link{extract_gfc}} to make an
#' thresholded layer stack with five layers: treecover2000, loss, gain,
#' lossyear, and datamask layers. See Details for the coding used in each
#' layer. Note that the output file format is fixed as GeoTIFF with LZ... | /R/threshold_gfc.R | no_license | j-indarto/gfcanalysis | R | false | false | 3,446 | r | #' Threshold the GFC product
#'
#' Uses the GFC data output from \code{\link{extract_gfc}} to make an
#' thresholded layer stack with five layers: treecover2000, loss, gain,
#' lossyear, and datamask layers. See Details for the coding used in each
#' layer. Note that the output file format is fixed as GeoTIFF with LZ... |
\name{prediction}
\alias{prediction}
\alias{predict_bpho}
\alias{evaluate_prediction}
\alias{split_cauchy}
\title{Functions related to prediction}
\description{
The function \code{predict_bpho} predicts the response of test cases.
The function \code{evaluate_prediction} evaluates the performance of the prediction ... | /man/d-prediction.Rd | no_license | cran/BPHO | R | false | false | 3,975 | rd | \name{prediction}
\alias{prediction}
\alias{predict_bpho}
\alias{evaluate_prediction}
\alias{split_cauchy}
\title{Functions related to prediction}
\description{
The function \code{predict_bpho} predicts the response of test cases.
The function \code{evaluate_prediction} evaluates the performance of the prediction ... |
### An LNR Stop-signal example with TRIGGER and GO FAILURE
# Context Independent Parameterization (i.e., seperate meanlogS and sdlogS for stop).
# On some proprotion of trials, tf, the stop signal is ignored.
#
# NB1: Unlike lnr st0 is not available
#
# NB2: given g = go encoding time, s = stop encoding time and
# ... | /DMC-MBN18/dmc/models/LNR-SS/dmc_SS_LNR_CAL.R | no_license | StevenM1/summerschool_mbn_2018 | R | false | false | 4,429 | r | ### An LNR Stop-signal example with TRIGGER and GO FAILURE
# Context Independent Parameterization (i.e., seperate meanlogS and sdlogS for stop).
# On some proprotion of trials, tf, the stop signal is ignored.
#
# NB1: Unlike lnr st0 is not available
#
# NB2: given g = go encoding time, s = stop encoding time and
# ... |
#######################################################
#######################################################
####### #######
####### Try it yourself #######
####### #######
###################################... | /demo_code/Canopy_toy.R | no_license | baiyuanxiang/Canopy | R | false | false | 3,733 | r | #######################################################
#######################################################
####### #######
####### Try it yourself #######
####### #######
###################################... |
library(StudyDiagnostics)
options(fftempdir = "c:/FFtemp")
connectionDetails <- createConnectionDetails(dbms = "pdw",
server = Sys.getenv("PDW_SERVER"),
port = Sys.getenv("PDW_PORT"),
s... | /extras/TestCode.R | permissive | raivokolde/StudyDiagnostics | R | false | false | 9,364 | r | library(StudyDiagnostics)
options(fftempdir = "c:/FFtemp")
connectionDetails <- createConnectionDetails(dbms = "pdw",
server = Sys.getenv("PDW_SERVER"),
port = Sys.getenv("PDW_PORT"),
s... |
library(dendromap)
library(ggplot2)
library(biomformat)
library(Biostrings)
library(ggpubr)
library(profvis)
library(tictoc)
##### BasalMaxima analysis of primate data
B <- read_biom('data/primates/final.withtax.min10.biom')
X <- biom_data(B)
taxonomy <- data.frame('sequence'=sapply(B$rows,getElement,'id'),
... | /scripts/primate_dendromap_guts.R | no_license | reptalex/dendromap | R | false | false | 15,136 | r | library(dendromap)
library(ggplot2)
library(biomformat)
library(Biostrings)
library(ggpubr)
library(profvis)
library(tictoc)
##### BasalMaxima analysis of primate data
B <- read_biom('data/primates/final.withtax.min10.biom')
X <- biom_data(B)
taxonomy <- data.frame('sequence'=sapply(B$rows,getElement,'id'),
... |
context("resample: weights")
test_that("resample works with weights", {
task = makeClassifTask(data = iris, target = "Species", weights = as.integer(iris$Species))
res = resample(task = task, learner = "classif.rpart", resampling = makeResampleDesc("CV", iters = 2))
expect_is(res$pred, "ResamplePrediction")
})
| /tests/testthat/test_base_resample_weights.R | no_license | dickoa/mlr | R | false | false | 319 | r | context("resample: weights")
test_that("resample works with weights", {
task = makeClassifTask(data = iris, target = "Species", weights = as.integer(iris$Species))
res = resample(task = task, learner = "classif.rpart", resampling = makeResampleDesc("CV", iters = 2))
expect_is(res$pred, "ResamplePrediction")
})
|
# 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 u... | /r/R/arrow-datum.R | permissive | wesm/arrow | R | false | false | 10,356 | 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 u... |
load("topologie.RData")
postes <- reseau$postes
lignes <- reseau$lignes
# correspondance avec les données élec des lignes
lines_car <- fread("lignes_raw.csv", dec=",")
lines_car <- lignes[,.(`Identifiant géographique / Asset location`=ADR_LIT,
IDR_LIT,matched=ADR_LIT)][lines_car,
... | /elements/caracteristiques.R | no_license | martinv13/grid-fr | R | false | false | 4,364 | r |
load("topologie.RData")
postes <- reseau$postes
lignes <- reseau$lignes
# correspondance avec les données élec des lignes
lines_car <- fread("lignes_raw.csv", dec=",")
lines_car <- lignes[,.(`Identifiant géographique / Asset location`=ADR_LIT,
IDR_LIT,matched=ADR_LIT)][lines_car,
... |
#' Ranking Dot Plot.
#'
#' dot function will draw Dot Plot for Ranking analysis.
#' @param data input data.frame
#' @param x x variable
#' @param y y variable
#' @param title input data.frame
#' @param subtitle date variable
#' @param xtitle value variable
#' @param ytitle input data.frame
#' @param caption date variab... | /R/dot.R | permissive | HeeseokMoon/ggedachart | R | false | false | 1,860 | r | #' Ranking Dot Plot.
#'
#' dot function will draw Dot Plot for Ranking analysis.
#' @param data input data.frame
#' @param x x variable
#' @param y y variable
#' @param title input data.frame
#' @param subtitle date variable
#' @param xtitle value variable
#' @param ytitle input data.frame
#' @param caption date variab... |
# Exercise 1: ggplot2 basics
# Install and load `ggplot2`
# You will also want to load `dplyr`
library("ggplot2")
library("dplyr")
# For this exercise you'll be working with the `diamonds` data set included in the ggplot2 library
# Use `?diamonds` to get more information about this data set (including the column des... | /exercise-1/exercise.R | permissive | jyuen416/module13-ggplot2 | R | false | false | 4,339 | r | # Exercise 1: ggplot2 basics
# Install and load `ggplot2`
# You will also want to load `dplyr`
library("ggplot2")
library("dplyr")
# For this exercise you'll be working with the `diamonds` data set included in the ggplot2 library
# Use `?diamonds` to get more information about this data set (including the column des... |
# TODO: Add comment
#
# Author: Brad
# File: Get_Header_Info.R
# Version: 1.0
# Date: 06.02.2014
# Purpose: Get the header information
###############################################################################
###############################################################################
# INITIAL SETUP;... | /Get_Header_Info.R | no_license | yixi0215/Edgar_Filings_NSAR | R | false | false | 41,165 | r | # TODO: Add comment
#
# Author: Brad
# File: Get_Header_Info.R
# Version: 1.0
# Date: 06.02.2014
# Purpose: Get the header information
###############################################################################
###############################################################################
# INITIAL SETUP;... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outputs.R
\name{diagnosed}
\alias{diagnosed}
\title{Proportion diagnosed among HIV+ by age, sex, or HIV status}
\usage{
diagnosed(mod, fp, df, VERSION = "C")
}
\arguments{
\item{mod}{simulation model output}
\item{fp}{simulation model parame... | /man/diagnosed.Rd | permissive | mrc-ide/first90release | R | false | true | 1,252 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outputs.R
\name{diagnosed}
\alias{diagnosed}
\title{Proportion diagnosed among HIV+ by age, sex, or HIV status}
\usage{
diagnosed(mod, fp, df, VERSION = "C")
}
\arguments{
\item{mod}{simulation model output}
\item{fp}{simulation model parame... |
## Making heatmaps and other clusters of gene expression data
library(pheatmap)
library(made4)
library(RColorBrewer)
library(VennDiagram)
## raw count data
Mm.nRC <- read.table("output_data/Mm_norm_counts.csv", sep=",")
Ef.nRC <- read.table("output_data/Ef_norm_counts.csv", sep=",")
## replace zeros and avoid zero v... | /6_clustering.R | no_license | derele/Ef_RNAseq | R | false | false | 4,270 | r | ## Making heatmaps and other clusters of gene expression data
library(pheatmap)
library(made4)
library(RColorBrewer)
library(VennDiagram)
## raw count data
Mm.nRC <- read.table("output_data/Mm_norm_counts.csv", sep=",")
Ef.nRC <- read.table("output_data/Ef_norm_counts.csv", sep=",")
## replace zeros and avoid zero v... |
if(!exists("Binary_Data")){load("PrimaryDataSets.RData")}
load("combs_separate.RData")
start.time=Sys.time()
part=22 # Change this to process different portions
binary_coef_hamming_No0=cbind(combs_separate[[part]],NA) #create the distance obj as a molten matrix first
for(i in 1:dim(binary_coef_hamming_No0)[1]){
s... | /Distances/hamming distanceNo0_corrected on ada/hammingNo0_part_22.R | no_license | peterwu19881230/Microbial_phenotype_data_mining | R | false | false | 878 | r | if(!exists("Binary_Data")){load("PrimaryDataSets.RData")}
load("combs_separate.RData")
start.time=Sys.time()
part=22 # Change this to process different portions
binary_coef_hamming_No0=cbind(combs_separate[[part]],NA) #create the distance obj as a molten matrix first
for(i in 1:dim(binary_coef_hamming_No0)[1]){
s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dials-package.R
\docType{package}
\name{dials-package}
\alias{dials}
\alias{dials-package}
\title{dials: Tools for working with tuning parameters}
\description{
\code{dials} provides a framework for defining, creating, and
managing tuning par... | /man/dials-package.Rd | no_license | thecodemasterk/dials | R | false | true | 1,711 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dials-package.R
\docType{package}
\name{dials-package}
\alias{dials}
\alias{dials-package}
\title{dials: Tools for working with tuning parameters}
\description{
\code{dials} provides a framework for defining, creating, and
managing tuning par... |
\name{chi2}
\alias{chi2}
\title{
Discretization using the Chi2 algorithm
}
\description{
This function performs Chi2 discretization algorithm. Chi2 algorithm automatically determines a proper Chi-sqaure(\eqn{\chi^2}) threshold that keeps the fidelity of the original numeric dataset.
}
\usage{
chi2(data, alp = ... | /man/chi2.Rd | no_license | cran/discretization | R | false | false | 2,154 | rd | \name{chi2}
\alias{chi2}
\title{
Discretization using the Chi2 algorithm
}
\description{
This function performs Chi2 discretization algorithm. Chi2 algorithm automatically determines a proper Chi-sqaure(\eqn{\chi^2}) threshold that keeps the fidelity of the original numeric dataset.
}
\usage{
chi2(data, alp = ... |
#date 2019-10-17
#Author Zhaoys
#select filter_snv_indel from annovar_outfile
#######################
library(pinyin)
library(dplyr)
mypy <- pydic(only_first_letter = TRUE)
annovar_dir <- paste0("/haplox/users/zhaoys/Data/HPCH2018002_09/maftools/annova_txt/")
annovar_name <- list.files(annovar_dir)
#print(annovar_name)... | /maftools/2.select_snv_indel_from_txt.R | no_license | pudima/learngit-1 | R | false | false | 4,607 | r | #date 2019-10-17
#Author Zhaoys
#select filter_snv_indel from annovar_outfile
#######################
library(pinyin)
library(dplyr)
mypy <- pydic(only_first_letter = TRUE)
annovar_dir <- paste0("/haplox/users/zhaoys/Data/HPCH2018002_09/maftools/annova_txt/")
annovar_name <- list.files(annovar_dir)
#print(annovar_name)... |
\alias{gtkTreeViewGetDragDestRow}
\name{gtkTreeViewGetDragDestRow}
\title{gtkTreeViewGetDragDestRow}
\description{Gets information about the row that is highlighted for feedback.}
\usage{gtkTreeViewGetDragDestRow(object, path)}
\arguments{
\item{\verb{object}}{a \code{\link{GtkTreeView}}}
\item{\verb{path}}{Return loca... | /RGtk2/man/gtkTreeViewGetDragDestRow.Rd | no_license | lawremi/RGtk2 | R | false | false | 646 | rd | \alias{gtkTreeViewGetDragDestRow}
\name{gtkTreeViewGetDragDestRow}
\title{gtkTreeViewGetDragDestRow}
\description{Gets information about the row that is highlighted for feedback.}
\usage{gtkTreeViewGetDragDestRow(object, path)}
\arguments{
\item{\verb{object}}{a \code{\link{GtkTreeView}}}
\item{\verb{path}}{Return loca... |
## load dplyr package
library(dplyr)
## while the filename extension is 'txt' is is a csv file with ";" as separatot
## load the file into a data table using read.csv function
hpc <- data.table(read.csv("household_power_consumption.txt",sep = ";", na.strings = c("?","","NA"), header = TRUE))
## reduce the data set to ... | /Project - 1/Plot4.R | no_license | gr8-balls-of-fire/ExData_Plotting1 | R | false | false | 1,599 | r | ## load dplyr package
library(dplyr)
## while the filename extension is 'txt' is is a csv file with ";" as separatot
## load the file into a data table using read.csv function
hpc <- data.table(read.csv("household_power_consumption.txt",sep = ";", na.strings = c("?","","NA"), header = TRUE))
## reduce the data set to ... |
library(reshape2)
## Read all data tables.
## Assuming that all data is in a folder "UCI HAR Dataset"
## in the currect working directory.
feature_names <- read.table("UCI HAR Dataset/features.txt", header=FALSE)
activity_labels <- read.table("UCI HAR Dataset/activity_labels.txt", header=FALSE)
train <- ... | /3. Getting and Cleaning Data/project/run_analysis.R | no_license | jazdev/coursera-data-science | R | false | false | 2,115 | r | library(reshape2)
## Read all data tables.
## Assuming that all data is in a folder "UCI HAR Dataset"
## in the currect working directory.
feature_names <- read.table("UCI HAR Dataset/features.txt", header=FALSE)
activity_labels <- read.table("UCI HAR Dataset/activity_labels.txt", header=FALSE)
train <- ... |
#USFWS Analysis
#Packages used
require(ggplot2)
require(ggthemes)
require(viridis)
require(ggsci)
require(palettetown)
#Creating a confidence interval chart for methods: Figure X.X
ggplot(conf, aes(x=Site,
y=`Percentage Prevalence`,
colour=Site)) +
geo... | /static/2019_June-confidence-interval-graph-usfws.R | permissive | EOneita/websitefiles | R | false | false | 950 | r | #USFWS Analysis
#Packages used
require(ggplot2)
require(ggthemes)
require(viridis)
require(ggsci)
require(palettetown)
#Creating a confidence interval chart for methods: Figure X.X
ggplot(conf, aes(x=Site,
y=`Percentage Prevalence`,
colour=Site)) +
geo... |
source("./nsm_datautils.R")
# Paths to NAEP data files
NAEP_PATHS <- list(
"M4" = "R:/data/NAEP DATA REVIEW/NAEP 2017/NAEP 2017 MRP_Review 5/Y48MATREDPUR/Y48MAT/Data/M48NT1AT.dat",
"M8" = "R:/data/NAEP DATA REVIEW/NAEP 2017/NAEP 2017 MRP_Review 5/Y48MATREDPUR/Y48MAT/Data/M48NT2AT.dat",
"R4" = "R:/data/NAEP DATA ... | /DataPrep_Mega.R | no_license | dyee-air/NAEPStateMapping | R | false | false | 2,543 | r | source("./nsm_datautils.R")
# Paths to NAEP data files
NAEP_PATHS <- list(
"M4" = "R:/data/NAEP DATA REVIEW/NAEP 2017/NAEP 2017 MRP_Review 5/Y48MATREDPUR/Y48MAT/Data/M48NT1AT.dat",
"M8" = "R:/data/NAEP DATA REVIEW/NAEP 2017/NAEP 2017 MRP_Review 5/Y48MATREDPUR/Y48MAT/Data/M48NT2AT.dat",
"R4" = "R:/data/NAEP DATA ... |
library(tidyverse)
##Info about all possible matches
tidy_all_matches_docks_rl <- read_csv("data/tidy_all_matches_docks_rl.csv",
col_types = cols(psu_id = col_character()))
tidy_all_matches_docks_rl %>%
select(ends_with("pattern")) %>%
distinct() %>%
nrow()
non_matches_c... | /code/record_linkage/linkage_status_linking_var.R | no_license | williamsbenjamin/Fish-Estimation-Research | R | false | false | 9,864 | r |
library(tidyverse)
##Info about all possible matches
tidy_all_matches_docks_rl <- read_csv("data/tidy_all_matches_docks_rl.csv",
col_types = cols(psu_id = col_character()))
tidy_all_matches_docks_rl %>%
select(ends_with("pattern")) %>%
distinct() %>%
nrow()
non_matches_c... |
library(readxl)
library(data.table)
library(ggplot2)
library(dplyr)
library(ontologyIndex)
library(ontologySimilarity)
library(ggthemes)
# load HPO ontology
data(hpo)
# read gene to HPO mapping: contains frequency of HPO per gene
gene_hpo <- fread("/Users/alexandraprimak/Desktop/genes_to_phenotype.txt")
str(gene_hp... | /code/TS_scores_analysis.R | no_license | AlexandraPrimak/IB_Project_1 | R | false | false | 15,085 | r | library(readxl)
library(data.table)
library(ggplot2)
library(dplyr)
library(ontologyIndex)
library(ontologySimilarity)
library(ggthemes)
# load HPO ontology
data(hpo)
# read gene to HPO mapping: contains frequency of HPO per gene
gene_hpo <- fread("/Users/alexandraprimak/Desktop/genes_to_phenotype.txt")
str(gene_hp... |
#import otu table (remove "#Constructed from biom file " from first line before importing).
mim_otu<-read.table("zotu_table_forR.txt", row.names=1, header=T)
#make sure we get rid of Coastal site samples.
mim_envir<-read.table("Mimulus_metadata_FULL.txt", header=T, row.names=1, sep='\t')
mim_envir<-rownames(subset(... | /2 - Figures and Statistics/Fig4_VennDiagram_Inland.R | no_license | ShadeLab/PAPER_MimulusRecipTransplant_Phytobiomes_2020 | R | false | false | 11,803 | r | #import otu table (remove "#Constructed from biom file " from first line before importing).
mim_otu<-read.table("zotu_table_forR.txt", row.names=1, header=T)
#make sure we get rid of Coastal site samples.
mim_envir<-read.table("Mimulus_metadata_FULL.txt", header=T, row.names=1, sep='\t')
mim_envir<-rownames(subset(... |
#' @import SingleCellExperiment
#' @import BiocParallel
#' @importFrom Matrix rowSums colSums
#' @importFrom Rcpp sourceCpp
#' @useDynLib DropletUtils, .fixes="cxx_", .registration=TRUE
NULL
| /DropletUtils/R/namespace.R | no_license | ju-lab/kjyi_inhouse | R | false | false | 191 | r | #' @import SingleCellExperiment
#' @import BiocParallel
#' @importFrom Matrix rowSums colSums
#' @importFrom Rcpp sourceCpp
#' @useDynLib DropletUtils, .fixes="cxx_", .registration=TRUE
NULL
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eutil.R
\docType{methods}
\name{rettype}
\alias{rettype}
\alias{rettype,eutil-method}
\title{rettype}
\usage{
rettype(x, ...)
\S4method{rettype}{eutil}(x, ...)
}
\arguments{
\item{x}{An \code{\linkS4class{eutil}} object.}
\item{...}{Further... | /man/rettype.Rd | no_license | guru1982/reutils | R | false | true | 1,089 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eutil.R
\docType{methods}
\name{rettype}
\alias{rettype}
\alias{rettype,eutil-method}
\title{rettype}
\usage{
rettype(x, ...)
\S4method{rettype}{eutil}(x, ...)
}
\arguments{
\item{x}{An \code{\linkS4class{eutil}} object.}
\item{...}{Further... |
install.packages("data.table")
library(data.table)
# Read in the data
antibioticDT <- fread("antibioticDT.csv")
head(antibioticDT, 30)
setorder(antibioticDT, patient_id, antibiotic_type, day_given)
head(antibioticDT, 30)
antibioticDT[ , last_administration_day := shift(day_given, n=1, type = "lag", fill=NA),... | /Sepsis.R | no_license | TheDataGirl/MedTourEasy-Internship-Project | R | false | false | 3,381 | r | install.packages("data.table")
library(data.table)
# Read in the data
antibioticDT <- fread("antibioticDT.csv")
head(antibioticDT, 30)
setorder(antibioticDT, patient_id, antibiotic_type, day_given)
head(antibioticDT, 30)
antibioticDT[ , last_administration_day := shift(day_given, n=1, type = "lag", fill=NA),... |
#include "Fs_Target.h"
#include "AEConfig.h"
#include "AE_EffectVers.h"
#ifndef AE_OS_WIN
#include "AE_General.r"
#endif
resource 'PiPL' (16000) {
{ /* array properties: 12 elements */
/* [1] */
Kind {
AEEffect
},
/* [2] */
Name {
FS_NAME
},
/* [3] */
Category {
FS_CATEGORY
},
#ifdef AE... | /sputteringCircle/sputteringCirclePiPL.r | permissive | bryful/F-s-PluginsProjects | R | false | false | 1,051 | r | #include "Fs_Target.h"
#include "AEConfig.h"
#include "AE_EffectVers.h"
#ifndef AE_OS_WIN
#include "AE_General.r"
#endif
resource 'PiPL' (16000) {
{ /* array properties: 12 elements */
/* [1] */
Kind {
AEEffect
},
/* [2] */
Name {
FS_NAME
},
/* [3] */
Category {
FS_CATEGORY
},
#ifdef AE... |
## Genomic selection simulations
# This code runs iterations of long-term genomic selection simulations to
## test the usefulness of updating a training population and how it impacts
## prediction accuracy, genetic variance, and selection potential
load("Genome/CAP_Genome_QTL100_h0.5_100_Iterations.RData")#-----------... | /DeepScoping/Make_Base_Population.R | no_license | biointec/deep-scoping | R | false | false | 23,317 | r | ## Genomic selection simulations
# This code runs iterations of long-term genomic selection simulations to
## test the usefulness of updating a training population and how it impacts
## prediction accuracy, genetic variance, and selection potential
load("Genome/CAP_Genome_QTL100_h0.5_100_Iterations.RData")#-----------... |
##' Game: Guess which number I think!.
##' @usage 1. print guess()
##' 2. The number you guess is:x
##' @param x which number you guess (x must be integer from 1 to 200).
##' @return If the number you input is incorrect, it will return 'Wrong answer, it ranges from a to b'. (a, b is the range of correct answer.)
... | /R/guess.R | no_license | spencer886/xyzgames | R | false | false | 1,541 | r | ##' Game: Guess which number I think!.
##' @usage 1. print guess()
##' 2. The number you guess is:x
##' @param x which number you guess (x must be integer from 1 to 200).
##' @return If the number you input is incorrect, it will return 'Wrong answer, it ranges from a to b'. (a, b is the range of correct answer.)
... |
library(tidyverse)
library(broom)
setwd("~/Assessment-4/Assessment-4-Reproducible-Data-Analysis-Project")
## Load the data into the project
salaries <- read.csv("data/raw_data/2018-19_nba_player-salaries.csv")
statistics <- read.csv("data/raw_data/2018-19_nba_player-statistics.csv")
team_statistics_1 <- read_csv("d... | /tidying_raw.R | no_license | manners1998/Assessment-4-Reproducible-Data-Analysis-Project | R | false | false | 3,342 | r | library(tidyverse)
library(broom)
setwd("~/Assessment-4/Assessment-4-Reproducible-Data-Analysis-Project")
## Load the data into the project
salaries <- read.csv("data/raw_data/2018-19_nba_player-salaries.csv")
statistics <- read.csv("data/raw_data/2018-19_nba_player-statistics.csv")
team_statistics_1 <- read_csv("d... |
library(npde)
cat("Running tests on plots\n")
########### Running npde
data(theopp)
data(simtheopp)
xbase1<-autonpde(namobs=theopp,namsim=simtheopp,boolsave=FALSE)
dat3<-theopp
vec<-rep(1,dim(dat3)[1])
loq<-2
vec<-dat3$Wt
for(i in 2:length(vec)) if(is.na(vec[i])) vec[i]<-vec[(i-1)]
dat3$Wt<-vec
vec[!is.na(dat3$Conc... | /tests/test_NpdePlots.R | no_license | gimme00/npde | R | false | false | 5,741 | r | library(npde)
cat("Running tests on plots\n")
########### Running npde
data(theopp)
data(simtheopp)
xbase1<-autonpde(namobs=theopp,namsim=simtheopp,boolsave=FALSE)
dat3<-theopp
vec<-rep(1,dim(dat3)[1])
loq<-2
vec<-dat3$Wt
for(i in 2:length(vec)) if(is.na(vec[i])) vec[i]<-vec[(i-1)]
dat3$Wt<-vec
vec[!is.na(dat3$Conc... |
# Color palette
distinctColorPalette <-function(k) {
set.seed(123)
if(packageVersion("scales") >= '1.1.0'){
ColorSpace <- t(unique(col2rgb(scales::hue_pal(l=85)(2e3))))
} else {
ColorSpace <- t(unique(col2rgb(scales::hue_pal(l=60:100)(2e3))))
}
km <- kmeans(ColorSpace, k, iter.max=20)
colors <- rgb(... | /Figure_6/aux_scripts/cisTopic_aux.R | no_license | solocell/Bravo_et_al_EyeAntennalDisc | R | false | false | 377 | r | # Color palette
distinctColorPalette <-function(k) {
set.seed(123)
if(packageVersion("scales") >= '1.1.0'){
ColorSpace <- t(unique(col2rgb(scales::hue_pal(l=85)(2e3))))
} else {
ColorSpace <- t(unique(col2rgb(scales::hue_pal(l=60:100)(2e3))))
}
km <- kmeans(ColorSpace, k, iter.max=20)
colors <- rgb(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/computeTimeStepFromHourly.R
\name{computeOtherFromHourlyYear}
\alias{computeOtherFromHourlyYear}
\title{Compute daily, weekly, monthly and annual mc-ind from hourly data for one year. (new)}
\usage{
computeOtherFromHourlyYear(
mcYear... | /man/computeOtherFromHourlyYear.Rd | no_license | cran/antaresEditObject | R | false | true | 1,059 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/computeTimeStepFromHourly.R
\name{computeOtherFromHourlyYear}
\alias{computeOtherFromHourlyYear}
\title{Compute daily, weekly, monthly and annual mc-ind from hourly data for one year. (new)}
\usage{
computeOtherFromHourlyYear(
mcYear... |
library(tcltk)
options(scipen=10);
options(digits=4);
false_rates = c()
true_rates = c()
threshold = 0.0005;
while (threshold < 0.0201) {
print("threshold is");
print(threshold);
print(threshold < 0.0014);
print("filename is");
print(paste("positive_rates_2sec_", substr(format(threshold, digits=4,... | /ndnsim-ifa-simulation-v1.0/true_vs_false_positive.r | no_license | ericbinnendyk/ndnSIM_archive | R | false | false | 1,569 | r | library(tcltk)
options(scipen=10);
options(digits=4);
false_rates = c()
true_rates = c()
threshold = 0.0005;
while (threshold < 0.0201) {
print("threshold is");
print(threshold);
print(threshold < 0.0014);
print("filename is");
print(paste("positive_rates_2sec_", substr(format(threshold, digits=4,... |
my.pgram <- function(y) {
n <- length(y)
tt <- 1:n
k <- 1:floor(n/2 - .5)
omega <- 2*pi*k/n
lam <- 2*pi / omega
a.hat <- (2/n)*sapply(omega, function(w) sum(y * cos(w * tt)))
b.hat <- (2/n)*sapply(omega, function(w) sum(y * sin(w * tt)))
Iw <- (n/2)*(a.hat^2 + b.hat^2)
log_post <- (1 - n/2) * log(1 ... | /hw/midterm/src/pgram.R | no_license | luiarthur/ts_AMS223 | R | false | false | 390 | r | my.pgram <- function(y) {
n <- length(y)
tt <- 1:n
k <- 1:floor(n/2 - .5)
omega <- 2*pi*k/n
lam <- 2*pi / omega
a.hat <- (2/n)*sapply(omega, function(w) sum(y * cos(w * tt)))
b.hat <- (2/n)*sapply(omega, function(w) sum(y * sin(w * tt)))
Iw <- (n/2)*(a.hat^2 + b.hat^2)
log_post <- (1 - n/2) * log(1 ... |
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
install.packages("tidyverse")
install.packages("ggplot2")
library(ggplot2)
Baltimore<-subset(NEI,NEI$fips == "24510")
data<-aggregate(Emissions~type+year,Baltimore,sum)
png("plot3.png",480,480)
qplot(year,Emissions,data = dat... | /plot3.R | no_license | yaning19/Exploratory_data_analysis_project2 | R | false | false | 391 | r | NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
install.packages("tidyverse")
install.packages("ggplot2")
library(ggplot2)
Baltimore<-subset(NEI,NEI$fips == "24510")
data<-aggregate(Emissions~type+year,Baltimore,sum)
png("plot3.png",480,480)
qplot(year,Emissions,data = dat... |
library(qtl)
load("../RDatas/herit.RData")
postscript("../Figs/figS4.eps", height=7.5, width=6, pointsize=11.2, onefile=FALSE, horizontal=FALSE)
par(mfrow=c(3,1), las=1)
plot(0:9, her.au[[1]], xlim=c(0,9), ylim=c(0,.3), type="l",
col="black", main="Autocorrelated", ylab="Heritability",
xlab="Time")
for(j in ... | /R/figS4.R | permissive | ruixiangliu/Paper_FunQTL | R | false | false | 1,194 | r | library(qtl)
load("../RDatas/herit.RData")
postscript("../Figs/figS4.eps", height=7.5, width=6, pointsize=11.2, onefile=FALSE, horizontal=FALSE)
par(mfrow=c(3,1), las=1)
plot(0:9, her.au[[1]], xlim=c(0,9), ylim=c(0,.3), type="l",
col="black", main="Autocorrelated", ylab="Heritability",
xlab="Time")
for(j in ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RunSparseSignatures.R
\name{RunSparseSignatures}
\alias{RunSparseSignatures}
\title{Run SparseSignatures extraction and attribution on a spectra catalog file}
\usage{
RunSparseSignatures(
input.catalog,
out.dir,
seedNumber = 1,
K.exac... | /man/RunSparseSignatures.Rd | no_license | WuyangFF95/SynSigRun | R | false | true | 1,920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RunSparseSignatures.R
\name{RunSparseSignatures}
\alias{RunSparseSignatures}
\title{Run SparseSignatures extraction and attribution on a spectra catalog file}
\usage{
RunSparseSignatures(
input.catalog,
out.dir,
seedNumber = 1,
K.exac... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gs_point_by_point.R
\name{gs_point_by_point}
\alias{gs_point_by_point}
\title{Grand Slam Point by Point Match Data}
\format{A data frame with 950,944 rows and 85 variables}
\source{
\url{https://github.com/JeffSackmann/tennis_slam_pointbypoin... | /man/gs_point_by_point.Rd | no_license | yiechen/deuce | R | false | true | 7,291 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gs_point_by_point.R
\name{gs_point_by_point}
\alias{gs_point_by_point}
\title{Grand Slam Point by Point Match Data}
\format{A data frame with 950,944 rows and 85 variables}
\source{
\url{https://github.com/JeffSackmann/tennis_slam_pointbypoin... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/break.R
\name{broken.ranger}
\alias{broken.ranger}
\title{Create the broken object for ranger models}
\usage{
\method{broken}{ranger}(model, new_observation, ..., baseline = 0)
}
\arguments{
\item{model}{a ranger model}
\item{new_observation... | /man/broken.ranger.Rd | no_license | kancheng/breakDown | R | false | true | 1,120 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/break.R
\name{broken.ranger}
\alias{broken.ranger}
\title{Create the broken object for ranger models}
\usage{
\method{broken}{ranger}(model, new_observation, ..., baseline = 0)
}
\arguments{
\item{model}{a ranger model}
\item{new_observation... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateBandingScore.R
\name{get_banding_score}
\alias{get_banding_score}
\title{Calculate banding score for a single cell}
\usage{
get_banding_score(df)
}
\arguments{
\item{df}{A dataframe with 3 columns. cell column contains the cell barco... | /man/get_banding_score.Rd | permissive | crazyhottommy/scATACutils | R | false | true | 712 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CalculateBandingScore.R
\name{get_banding_score}
\alias{get_banding_score}
\title{Calculate banding score for a single cell}
\usage{
get_banding_score(df)
}
\arguments{
\item{df}{A dataframe with 3 columns. cell column contains the cell barco... |
#' Minimal doc
#' @description this function fills in the growth data with the data that is being read in.
#' It is important to realize that we need to have a data structure that keeps track of time.
#' This is a really sparse structure, but it allows us keep time proportional.
#' @export
fillgrowthdata <- function(d... | /R/low_level.R | no_license | dknip/ELEFAN | R | false | false | 9,777 | r | #' Minimal doc
#' @description this function fills in the growth data with the data that is being read in.
#' It is important to realize that we need to have a data structure that keeps track of time.
#' This is a really sparse structure, but it allows us keep time proportional.
#' @export
fillgrowthdata <- function(d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClass.R
\docType{class}
\name{FinalBlock-class}
\alias{FinalBlock-class}
\alias{FinalBlock}
\title{Finalize, shut down the platform, free the resources, because everything is done.}
\description{
Finalize, shut down the platform, free the ... | /man/FinalBlock-class.Rd | no_license | jfontestad/makeParallel | R | false | true | 361 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClass.R
\docType{class}
\name{FinalBlock-class}
\alias{FinalBlock-class}
\alias{FinalBlock}
\title{Finalize, shut down the platform, free the resources, because everything is done.}
\description{
Finalize, shut down the platform, free the ... |
skip_on_cran()
test_that("lotri matrix parsing", {
expect_equal(
lotri({
et2 + et3 + et4 ~ c(
40,
0.1, 20,
0.1, 0.1, 30
)
}),
structure(c(40, 0.1, 0.1, 0.1, 20, 0.1, 0.1, 0.1, 30),
.Dim = c(3L, 3L),
.Dimnames = list(
c("et2",... | /tests/testthat/test-lotri-matrix.R | no_license | cran/lotri | R | false | false | 18,602 | r | skip_on_cran()
test_that("lotri matrix parsing", {
expect_equal(
lotri({
et2 + et3 + et4 ~ c(
40,
0.1, 20,
0.1, 0.1, 30
)
}),
structure(c(40, 0.1, 0.1, 0.1, 20, 0.1, 0.1, 0.1, 30),
.Dim = c(3L, 3L),
.Dimnames = list(
c("et2",... |
# ------------------------------------------------------------------------ #
#
# Descriptif : Radio Group Buttons : fonctions R
# Via : http://getbootstrap.com/javascript/#buttons-checkbox-radio
#
#
# Auteur : Victor PERRIER
#
# Date creation : 01/07/2016
# Date modification : 01/07/2016
#
# Version 1.0
#
# ---... | /R/input-radiogroupbuttons.R | permissive | tic-camp/shinyWidgets | R | false | false | 5,086 | r |
# ------------------------------------------------------------------------ #
#
# Descriptif : Radio Group Buttons : fonctions R
# Via : http://getbootstrap.com/javascript/#buttons-checkbox-radio
#
#
# Auteur : Victor PERRIER
#
# Date creation : 01/07/2016
# Date modification : 01/07/2016
#
# Version 1.0
#
# ---... |
################################################################
## R basic operations
##
## Add two numbers in the console
2+3
## Assign the value 3 to y
y <- 3
## Concatenate numbers to a vector
x <- c(1, 4, 6, 2)
x
## A sequence from 1 to 10
x <- 1:10
x
## Sequence with specified steps
x <- seq(0, 1, by=0.... | /introstat/book-scripts/chapter1-DataVisualization.R | no_license | ThorMortensen/stat2017 | R | false | false | 3,937 | r |
################################################################
## R basic operations
##
## Add two numbers in the console
2+3
## Assign the value 3 to y
y <- 3
## Concatenate numbers to a vector
x <- c(1, 4, 6, 2)
x
## A sequence from 1 to 10
x <- 1:10
x
## Sequence with specified steps
x <- seq(0, 1, by=0.... |
#################################################################
###
### This script downloads :
### the Kidney renal clear cell carcinoma [OV] RNASeq Data
### from the TCGA database (L3 OV RNAseqV2 HiSeq)
### It will process the data into 1 table.
### Data is saved :
### ../2 DATA/TCGA RNAseq/RNASeq_OV_ASSEMBLER/..... | /Deprecated seperate Cancer Code/Ovarian/v1.Code/1.3.Download_RNASeq_OV.WHX.R | no_license | dudious/QCRI-SIDRA-ICR | R | false | false | 2,988 | r | #################################################################
###
### This script downloads :
### the Kidney renal clear cell carcinoma [OV] RNASeq Data
### from the TCGA database (L3 OV RNAseqV2 HiSeq)
### It will process the data into 1 table.
### Data is saved :
### ../2 DATA/TCGA RNAseq/RNASeq_OV_ASSEMBLER/..... |
outcome <- read.csv("/Users/RebeccaKee/Desktop/coursera data science/02_R Programming/Data/ProgAssignment3_data/outcome-of-care-measures.csv", colClasses = "character")
outcome[, 11] <- as.numeric(outcome[, 11])
hist(outcome[, 11],
main = "Histogram of 30-day mortality rates from heart attack",
xlab = "Morta... | /02_R_Programming/Programming_Assignments/hist_mortalityrates.R | no_license | rebeccakee/datasciencecoursera | R | false | false | 366 | r | outcome <- read.csv("/Users/RebeccaKee/Desktop/coursera data science/02_R Programming/Data/ProgAssignment3_data/outcome-of-care-measures.csv", colClasses = "character")
outcome[, 11] <- as.numeric(outcome[, 11])
hist(outcome[, 11],
main = "Histogram of 30-day mortality rates from heart attack",
xlab = "Morta... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_dpcr.R
\name{read_QX200}
\alias{read_QX200}
\title{Read QX200}
\source{
Droplet Digital PCR Applications Guide, Rev. A, Bulletin 6407, Biorad,
accessed on 28.10.2016,
\url{http://www.bio-rad.com/webroot/web/pdf/lsr/literature/Bulletin_64... | /man/read_QX200.Rd | no_license | michbur/dpcR | R | false | true | 1,124 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_dpcr.R
\name{read_QX200}
\alias{read_QX200}
\title{Read QX200}
\source{
Droplet Digital PCR Applications Guide, Rev. A, Bulletin 6407, Biorad,
accessed on 28.10.2016,
\url{http://www.bio-rad.com/webroot/web/pdf/lsr/literature/Bulletin_64... |
#Fit dirlichet models to functional groups of fungi from Tedersoo et al. Temperate Latitude Fungi.
#No hierarchy required, as everything is observed at the site level. Each observation is a unique site.
#Missing data are allowed.
#clear environment
rm(list = ls())
library(data.table)
library(doParallel)
source('paths.r... | /ITS/analysis/spatial_prior_analysis/ddirch_fit/2._priorITS-tedersoo_phylo_ddirch_fit.r | permissive | EcoForecast/NEFI_microbe | R | false | false | 2,354 | r | #Fit dirlichet models to functional groups of fungi from Tedersoo et al. Temperate Latitude Fungi.
#No hierarchy required, as everything is observed at the site level. Each observation is a unique site.
#Missing data are allowed.
#clear environment
rm(list = ls())
library(data.table)
library(doParallel)
source('paths.r... |
pollutantmean("specdata", "sulfate", 1:10)
pollutantmean("specdata", "nitrate", 70:72)
pollutantmean("specdata", "nitrate", 23)
complete("specdata", 1)
complete("specdata", c(2, 4, 8, 10, 12))
complete("specdata", 30:25)
complete("specdata", 3)
source("corr.R")
cr <- corr("specdata", 150)
head(cr)
summary(cr)
cr <... | /tester.R | no_license | matteo-pallini/Programming_with_R_ass1 | R | false | false | 462 | r |
pollutantmean("specdata", "sulfate", 1:10)
pollutantmean("specdata", "nitrate", 70:72)
pollutantmean("specdata", "nitrate", 23)
complete("specdata", 1)
complete("specdata", c(2, 4, 8, 10, 12))
complete("specdata", 30:25)
complete("specdata", 3)
source("corr.R")
cr <- corr("specdata", 150)
head(cr)
summary(cr)
cr <... |
testlist <- list(b = c(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, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ... | /metacoder/inst/testfiles/intersect_line_rectangle/AFL_intersect_line_rectangle/intersect_line_rectangle_valgrind_files/1615768740-test.R | permissive | akhikolla/updatedatatype-list3 | R | false | false | 727 | r | testlist <- list(b = c(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, 0, 0, 0, 0, 0), p1 = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, ... |
library(dplyr)
library(lubridate)
library(rjson)
library(Matrix)
set.seed(1)
source("./snippets/util.R")
# load data
load("./data/extract_train.Rdata")
load("./data/extract_test.Rdata")
source("./snippets/feature_functions.R")
# pull in universe params and set defaults if missing
if(is.null(univ_param$include_kw_var... | /universes/base.R | no_license | donaldrauscher/kaggle-renthop | R | false | false | 9,455 | r | library(dplyr)
library(lubridate)
library(rjson)
library(Matrix)
set.seed(1)
source("./snippets/util.R")
# load data
load("./data/extract_train.Rdata")
load("./data/extract_test.Rdata")
source("./snippets/feature_functions.R")
# pull in universe params and set defaults if missing
if(is.null(univ_param$include_kw_var... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpatialLinesNetwork.R
\name{sum_network_links}
\alias{sum_network_links}
\title{Summarise links from shortest paths data}
\usage{
sum_network_links(sln, routedata)
}
\arguments{
\item{sln}{The SpatialLinesNetwork or sfNetwork to use.}
\item{... | /man/sum_network_links.Rd | permissive | seanolondon/stplanr | R | false | true | 1,213 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpatialLinesNetwork.R
\name{sum_network_links}
\alias{sum_network_links}
\title{Summarise links from shortest paths data}
\usage{
sum_network_links(sln, routedata)
}
\arguments{
\item{sln}{The SpatialLinesNetwork or sfNetwork to use.}
\item{... |
schweder <- function(p, xlab = "Rank of p", ylab = "p",
drawline = NULL,
# bh.control =list(),
bh.lwd = 1, bh.lty = "solid", bh.col = "black",
ls.control =list(frac = NULL),
ls.lwd = 1, ls.lty = "dotted", ls.col = "black",
ab.control =list(a = NULL, b = NULL),
ab.lwd = 1, ab.lty = "dashed", a... | /metap/R/schweder.R | no_license | ingted/R-Examples | R | false | false | 2,669 | r | schweder <- function(p, xlab = "Rank of p", ylab = "p",
drawline = NULL,
# bh.control =list(),
bh.lwd = 1, bh.lty = "solid", bh.col = "black",
ls.control =list(frac = NULL),
ls.lwd = 1, ls.lty = "dotted", ls.col = "black",
ab.control =list(a = NULL, b = NULL),
ab.lwd = 1, ab.lty = "dashed", a... |
##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 27 Jun 2015
# Function: batsman6s
# This function plots the number of 6s vs the runs scored in the innings by the batsman
#
###################################################... | /R/batsman6s.R | no_license | aashanand/cricketr | R | false | false | 1,122 | r | ##########################################################################################
# Designed and developed by Tinniam V Ganesh
# Date : 27 Jun 2015
# Function: batsman6s
# This function plots the number of 6s vs the runs scored in the innings by the batsman
#
###################################################... |
## Unit test will go here
| /inst/doRUnit.R | no_license | MATA62N/CMEtest | R | false | false | 26 | r | ## Unit test will go here
|
### DEFINE LIBRARIES ---
library("stringr")
library("gplots")
library("gridExtra")
library("reshape2")
library("ggplot2")
### DEFINE PATH ---
dir.wrk <- file.path("/Data/Raunak/projects/MESO_peritoneal")
dir.task <- file.path(dir.wrk, "task/10_integrated_pathways")
dir.data <- file.path(dir.task, "data")
dir.analysis ... | /task/10_integrated_pathways/scripts/07_02_plot_heatmap_immune_checkpoint_markers_expr_mrna_revised.R | permissive | raunakms/meso_pem | R | false | false | 5,013 | r | ### DEFINE LIBRARIES ---
library("stringr")
library("gplots")
library("gridExtra")
library("reshape2")
library("ggplot2")
### DEFINE PATH ---
dir.wrk <- file.path("/Data/Raunak/projects/MESO_peritoneal")
dir.task <- file.path(dir.wrk, "task/10_integrated_pathways")
dir.data <- file.path(dir.task, "data")
dir.analysis ... |
setwd("C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2")
img_dir <-"C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2/img"
#.libPaths('C:/Users/sdowning/Documents/R/win-library/3.2')
library(igraph)
library(RColorBrewer)
library(ggplot2)
library(reshape2)
##===========... | /R/power_centrality_comparisons.R | no_license | sdownin/compnet | R | false | false | 8,235 | r | setwd("C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2")
img_dir <-"C:/Users/T430/Google Drive/PhD/Dissertation/competition networks/compnet2/img"
#.libPaths('C:/Users/sdowning/Documents/R/win-library/3.2')
library(igraph)
library(RColorBrewer)
library(ggplot2)
library(reshape2)
##===========... |
library("magrittr")
path <- "J:/Temp/Cesaire/performance/Raw data_LM_offsite.xlsx" #specify path to raw data
untidy.xl.data <- tidyxl::xlsx_cells(path) #read in raw data as a tibble
untidy.xl.data.sorted <- untidy.xl.data %>%
dplyr::group_by(sheet) %>%
dplyr::arrange(sheet, row, col) %>% #arrange read in... | /R/mm_security_returns.R | no_license | ces0491/scratchpad | R | false | false | 5,734 | r | library("magrittr")
path <- "J:/Temp/Cesaire/performance/Raw data_LM_offsite.xlsx" #specify path to raw data
untidy.xl.data <- tidyxl::xlsx_cells(path) #read in raw data as a tibble
untidy.xl.data.sorted <- untidy.xl.data %>%
dplyr::group_by(sheet) %>%
dplyr::arrange(sheet, row, col) %>% #arrange read in... |
#############################################
# Prepare the data to be used in the charts #
#############################################
# Altmetrics
alt <- read.csv('../data/cleaned_altmetrics.csv', header=TRUE, sep=';', stringsAsFactors = FALSE)
alt_simp <- read.csv('../data/simplified_alt.csv', header=TRUE, sep=';'... | /journal_dashboard/load_data.R | no_license | BohdanTkachuk/journal_dashboard | R | false | false | 2,031 | r | #############################################
# Prepare the data to be used in the charts #
#############################################
# Altmetrics
alt <- read.csv('../data/cleaned_altmetrics.csv', header=TRUE, sep=';', stringsAsFactors = FALSE)
alt_simp <- read.csv('../data/simplified_alt.csv', header=TRUE, sep=';'... |
# DESeq2 analysis on mRNA IP sequenced on 19.11.2019
library(tidyverse)
library(egg)
library(grid)
library(here)
library(DESeq2)
library(pheatmap)
library(org.Mm.eg.db)
library(DOSE)
library(pathview)
library(clusterProfiler)
library(AnnotationHub)
library(ensembldb)
# Load data ---------------------------------------... | /R/DESeq2_Ins1creTRAP_19112019.R | no_license | lingzili/mRNA_IP | R | false | false | 8,204 | r | # DESeq2 analysis on mRNA IP sequenced on 19.11.2019
library(tidyverse)
library(egg)
library(grid)
library(here)
library(DESeq2)
library(pheatmap)
library(org.Mm.eg.db)
library(DOSE)
library(pathview)
library(clusterProfiler)
library(AnnotationHub)
library(ensembldb)
# Load data ---------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xaringanthemer-package.R
\docType{package}
\name{xaringanthemer-package}
\alias{xaringanthemer}
\alias{xaringanthemer-package}
\title{xaringanthemer: Xaringan CSS Theme Generator}
\description{
Create and edit your xaringan CSS files from wit... | /man/xaringanthemer-package.Rd | permissive | 8280567/xaringanthemer | R | false | true | 742 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xaringanthemer-package.R
\docType{package}
\name{xaringanthemer-package}
\alias{xaringanthemer}
\alias{xaringanthemer-package}
\title{xaringanthemer: Xaringan CSS Theme Generator}
\description{
Create and edit your xaringan CSS files from wit... |
library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
tags$head(tags$style(
HTML('
#sidebar {
background-color: #dfe6ed;
}
body, label, input, button, select {
font-family: "Arial";
}')
)),
# App title ----
titlePanel("Inter... | /app.R | no_license | shilpibhattacharyya/R-Shiny_example | R | false | false | 2,627 | r | library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
tags$head(tags$style(
HTML('
#sidebar {
background-color: #dfe6ed;
}
body, label, input, button, select {
font-family: "Arial";
}')
)),
# App title ----
titlePanel("Inter... |
load( "../data/all_assay_dynamics.rda" )
source( "assay_dynamics.R" )
source( "result_interpretation.R" )
source( "interpretation_processing.R" )
source( "DSHIVInfectionTiming.R" )
source( "interpretation_presentation.R" )
| /R/tsic-getting-started-fromsource.R | no_license | pedlefsen/tsic2 | R | false | false | 223 | r | load( "../data/all_assay_dynamics.rda" )
source( "assay_dynamics.R" )
source( "result_interpretation.R" )
source( "interpretation_processing.R" )
source( "DSHIVInfectionTiming.R" )
source( "interpretation_presentation.R" )
|
#
# opensignal-tree.R, 22 Aug 18
#
# Data from:
#
# ANDROID FRAGMENTATION VISUALIZED (AUGUST 2015)
# This data is provided by OpenSignal.com and is licensed according to Creative Commons Attribution and ShareAlike License (BY-SA).
# If you have any questions on OpenSignal data licensing or anything else please email sa... | /communicating/opensignal-tree.R | no_license | alanponce/ESEUR-code-data | R | false | false | 840 | r | #
# opensignal-tree.R, 22 Aug 18
#
# Data from:
#
# ANDROID FRAGMENTATION VISUALIZED (AUGUST 2015)
# This data is provided by OpenSignal.com and is licensed according to Creative Commons Attribution and ShareAlike License (BY-SA).
# If you have any questions on OpenSignal data licensing or anything else please email sa... |
init_mylake <- function(model = 'MyLake', wtemp_file, date, folder = '.',
config_dat = "mylake_config_final.Rdata",
init_dat = "mylake_init.Rdata"){
setwd(folder)
obs <- read.csv(wtemp_file)
dat = which(obs[,1] == date)
ndeps = length(dat)
deps = obs[dat,2... | /R/init_mylake.R | permissive | aemon-j/MyLakeR | R | false | false | 1,858 | r | init_mylake <- function(model = 'MyLake', wtemp_file, date, folder = '.',
config_dat = "mylake_config_final.Rdata",
init_dat = "mylake_init.Rdata"){
setwd(folder)
obs <- read.csv(wtemp_file)
dat = which(obs[,1] == date)
ndeps = length(dat)
deps = obs[dat,2... |
testlist <- list(A = structure(c(1.91374883209651e+214, 2.00061127337169e-255, 3.35781382283805e-294, 6.63123684676648e-315, 2.17107877525369e+205, 6.46649995452007e-200, 1.67816006806664e-219, 0, 0), .Dim = c(3L, 3L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(re... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613103840-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 325 | r | testlist <- list(A = structure(c(1.91374883209651e+214, 2.00061127337169e-255, 3.35781382283805e-294, 6.63123684676648e-315, 2.17107877525369e+205, 6.46649995452007e-200, 1.67816006806664e-219, 0, 0), .Dim = c(3L, 3L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/AllMethods.R
\name{dispGroups}
\alias{dispGroups}
\alias{dispGroups,DesignContrast-method}
\title{Extract displayed group labels from an object}
\usage{
dispGroups(object)
\S4method{dispGroups}{DesignContrast}(object)
}
\arg... | /man/dispGroups.Rd | no_license | bedapub/ribiosExpression | R | false | true | 608 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/AllMethods.R
\name{dispGroups}
\alias{dispGroups}
\alias{dispGroups,DesignContrast-method}
\title{Extract displayed group labels from an object}
\usage{
dispGroups(object)
\S4method{dispGroups}{DesignContrast}(object)
}
\arg... |
#' One short sentence describing function (eg. extracts flow data )
#'
#'A longer description, one or two paragraphs explaining in more detail what this function does.
#'
#'@param arg1 Numeric scalar. Define what arg1 is
#'@param arg2 Character string. Define what arg2 is
#'
#'@return description of the output from the... | /R/example_function.R | no_license | wechuli/large-pr | R | false | false | 552 | r | #' One short sentence describing function (eg. extracts flow data )
#'
#'A longer description, one or two paragraphs explaining in more detail what this function does.
#'
#'@param arg1 Numeric scalar. Define what arg1 is
#'@param arg2 Character string. Define what arg2 is
#'
#'@return description of the output from the... |
#' choropleth chart Gnm Cat Num
#'
#' @description
#' `lflt_choropleth_GnmCatNum()` Create a Leaflet choropleth map based on a particular data type.
#' In this case, you can load data with only three columns, where the firts it's a **geoname column**,
#' the second is a **categorical column** and the third must be a ... | /R/choropleth_GnmCatNum.R | no_license | lenafm/lfltmagic | R | false | false | 3,652 | r |
#' choropleth chart Gnm Cat Num
#'
#' @description
#' `lflt_choropleth_GnmCatNum()` Create a Leaflet choropleth map based on a particular data type.
#' In this case, you can load data with only three columns, where the firts it's a **geoname column**,
#' the second is a **categorical column** and the third must be a ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/siamcat_class_accessors.R
\docType{methods}
\name{norm_param}
\alias{norm_param}
\alias{norm_param,ANY-method}
\alias{norm_param,list-method}
\alias{norm_param}
\title{Retrieve norm_param from object.}
\usage{
norm_param(siamcat)
\S4method{n... | /man/norm_param-methods.Rd | no_license | KonradZych/SIAMCAT | R | false | true | 649 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/siamcat_class_accessors.R
\docType{methods}
\name{norm_param}
\alias{norm_param}
\alias{norm_param,ANY-method}
\alias{norm_param,list-method}
\alias{norm_param}
\title{Retrieve norm_param from object.}
\usage{
norm_param(siamcat)
\S4method{n... |
library(trajectories)
### Name: cut
### Title: obtain ranges of space and time coordinates
### Aliases: cut cut.Track cut.Tracks cut.TracksCollection
### Keywords: dplot
### ** Examples
data(storms)
dim(storms)
dim(cut(storms, "week", touches = FALSE)) # same number of geometries
dim(cut(storms, "week")) # increase... | /data/genthat_extracted_code/trajectories/examples/cut.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 359 | r | library(trajectories)
### Name: cut
### Title: obtain ranges of space and time coordinates
### Aliases: cut cut.Track cut.Tracks cut.TracksCollection
### Keywords: dplot
### ** Examples
data(storms)
dim(storms)
dim(cut(storms, "week", touches = FALSE)) # same number of geometries
dim(cut(storms, "week")) # increase... |
library(shiny)
shinyUI(fluidPage(
titlePanel("Basic Probability Distributions"),
sidebarLayout(
sidebarPanel(
selectInput("distribution", "Distribution",
c(Normal="normal",
Poisson="poisson",
Uniform="uniform",
Binomial... | /BasicProbabilityDistributions/ui.R | no_license | pejoshi1912/DataProducts | R | false | false | 2,037 | r |
library(shiny)
shinyUI(fluidPage(
titlePanel("Basic Probability Distributions"),
sidebarLayout(
sidebarPanel(
selectInput("distribution", "Distribution",
c(Normal="normal",
Poisson="poisson",
Uniform="uniform",
Binomial... |
object_table_critical_quantity_ui <- function(id, object_id, quantity) {
ns <- shiny::NS(id)
as.character(
shiny::actionLink(
inputId = ns("quantity") %_% object_id,
label = htmltools::div(
id = ns("label-container"),
htmltools::div(
id = ns("label"),
quantity
... | /modules/object/object_table_critical_quantity.R | no_license | PFA-WebApp/App | R | false | false | 4,613 | r | object_table_critical_quantity_ui <- function(id, object_id, quantity) {
ns <- shiny::NS(id)
as.character(
shiny::actionLink(
inputId = ns("quantity") %_% object_id,
label = htmltools::div(
id = ns("label-container"),
htmltools::div(
id = ns("label"),
quantity
... |
\name{x12path}
\alias{x12path}
%\alias{x13path}
\alias{putd}
\alias{x12env}
\alias{rmd}
\alias{existd}
\alias{getd}
\title{Function to interact with the environment x12env}
\description{
\code{"x12env"} is used to store the x12path and x13path (and more for the GUI).
}
\usage{
x12env
x12path(path=NULL)
... | /man/enfn.Rd | no_license | statistikat/x12 | R | false | false | 892 | rd | \name{x12path}
\alias{x12path}
%\alias{x13path}
\alias{putd}
\alias{x12env}
\alias{rmd}
\alias{existd}
\alias{getd}
\title{Function to interact with the environment x12env}
\description{
\code{"x12env"} is used to store the x12path and x13path (and more for the GUI).
}
\usage{
x12env
x12path(path=NULL)
... |
#' Multivariate SCM Using Time Series
#'
#' \code{mscmt} performs the Multivariate Synthetic Control Method Using Time
#' Series.
#'
#' \code{mscmt} combines, if necessary, the preparation of the raw data (which
#' is expected to be in "list" format, possibly after conversion from a
#' \code{\link[base]{data.... | /R/mscmt.r | no_license | cran/MSCMT | R | false | false | 36,384 | r | #' Multivariate SCM Using Time Series
#'
#' \code{mscmt} performs the Multivariate Synthetic Control Method Using Time
#' Series.
#'
#' \code{mscmt} combines, if necessary, the preparation of the raw data (which
#' is expected to be in "list" format, possibly after conversion from a
#' \code{\link[base]{data.... |
plot1<- function(){
library(dplyr)
library(lubridate)
hpc <- read.csv("../data/household_power_consumption.txt", sep=";", header=TRUE)
hpc1<- hpc[(as.Date(hpc$Date,"%d/%m/%Y")>= as.Date("01/02/2007", "%d/%m/%Y"))&(as.Date(hpc$Date,"%d/%m/%Y")<= as.Date("02/02/2007", "%d/%m/%Y")),]
hpc1<- mutate(hpc1, Global_active_powe... | /plot1.R | no_license | pmyadav/ExData_Plotting1 | R | false | false | 511 | r | plot1<- function(){
library(dplyr)
library(lubridate)
hpc <- read.csv("../data/household_power_consumption.txt", sep=";", header=TRUE)
hpc1<- hpc[(as.Date(hpc$Date,"%d/%m/%Y")>= as.Date("01/02/2007", "%d/%m/%Y"))&(as.Date(hpc$Date,"%d/%m/%Y")<= as.Date("02/02/2007", "%d/%m/%Y")),]
hpc1<- mutate(hpc1, Global_active_powe... |
# Joseph Lux Homework 1
# 1/27/19
remove(list = ls())
install.packages("mdsr")
library(mdsr)
# Start of Excercise 3.1
library(mosaic)
height_plot <- ggplot(Galton, aes(father,height))
height_plot <- height_plot + geom_point()
height_plot <- height_plot + geom_smooth(method="lm")
height_plot <- height_plot + facet... | /Homework1.R | no_license | Joseph-Lux/3213-DataScience | R | false | false | 2,892 | r | # Joseph Lux Homework 1
# 1/27/19
remove(list = ls())
install.packages("mdsr")
library(mdsr)
# Start of Excercise 3.1
library(mosaic)
height_plot <- ggplot(Galton, aes(father,height))
height_plot <- height_plot + geom_point()
height_plot <- height_plot + geom_smooth(method="lm")
height_plot <- height_plot + facet... |
show_activity_like <- function(dataset, string) {
dataset %>%
filter(str_detect(str_to_lower(activity_name), str_to_lower(string))) %>%
select(activity_name, everything()) %>%
arrange(activity_name) %>%
View()
}
| /utilityfunctions/show_activity_like.R | no_license | bgleaso1/kiva | R | false | false | 239 | r | show_activity_like <- function(dataset, string) {
dataset %>%
filter(str_detect(str_to_lower(activity_name), str_to_lower(string))) %>%
select(activity_name, everything()) %>%
arrange(activity_name) %>%
View()
}
|
library(jiebaR)
### Name: get_tuple
### Title: get tuple from the segmentation result
### Aliases: get_tuple
### ** Examples
get_tuple(c("sd","sd","sd","rd"),2)
| /data/genthat_extracted_code/jiebaR/examples/get_tuple.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 168 | r | library(jiebaR)
### Name: get_tuple
### Title: get tuple from the segmentation result
### Aliases: get_tuple
### ** Examples
get_tuple(c("sd","sd","sd","rd"),2)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find_html_comments.R
\name{find_html_comments}
\alias{find_html_comments}
\title{Find HTML comments}
\usage{
find_html_comments(lines, label = "", isolated = TRUE)
}
\arguments{
\item{lines}{Character vector of lines to examine.}
\item{label... | /man/find_html_comments.Rd | permissive | rmsharp/rmsutilityr | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/find_html_comments.R
\name{find_html_comments}
\alias{find_html_comments}
\title{Find HTML comments}
\usage{
find_html_comments(lines, label = "", isolated = TRUE)
}
\arguments{
\item{lines}{Character vector of lines to examine.}
\item{label... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.