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 |
|---|---|---|---|---|---|---|---|---|---|
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
choices = list("Johor", "Kelantan", "Melaka",
"N. Sembilan"... | /ui.R | no_license | hongt/DevelopDataProduct | R | false | false | 1,748 | r | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
choices = list("Johor", "Kelantan", "Melaka",
"N. Sembilan"... |
## @knitr load.lib
rm(list = ls())
library(wordcloud)
library(tidyverse)
library(dplyr)
library(stringr)
library(tidytext)
library(tm)
library(textstem)
library(tidyr)
library(forcats)
library(igraph)
library(ggraph)
library(widyr)
## @knitr read.data
data <- read_csv("Data/Train_rev1.csv")
train_data_jobs <- data ... | /Code_v2.R | no_license | linpingyu/Unstructured-Data | R | false | false | 10,652 | r |
## @knitr load.lib
rm(list = ls())
library(wordcloud)
library(tidyverse)
library(dplyr)
library(stringr)
library(tidytext)
library(tm)
library(textstem)
library(tidyr)
library(forcats)
library(igraph)
library(ggraph)
library(widyr)
## @knitr read.data
data <- read_csv("Data/Train_rev1.csv")
train_data_jobs <- data ... |
# Test that chunk outputs match original data system
context("oldnew")
library(readr)
OLDNEW <- F # Run old-new tests?
if (OLDNEW){
test_that("matches old data system output", {
# If we are running the code coverage tests then let's skip this since
# it will take a long to time run and the purpose of this ... | /input/gcamdata/tests/testthat/test_oldnew.R | permissive | JGCRI/gcam-core | R | false | false | 8,589 | r | # Test that chunk outputs match original data system
context("oldnew")
library(readr)
OLDNEW <- F # Run old-new tests?
if (OLDNEW){
test_that("matches old data system output", {
# If we are running the code coverage tests then let's skip this since
# it will take a long to time run and the purpose of this ... |
# The imports!
library(dplyr)
library(tidyr)
# Make some variables we are going to reuse
column_names_for_labels <- c("index", "label")
column_name_for_activity <- c("activity")
column_name_for_subject <- c("subject")
# 1 read the column names from the features.txt file. There should be 561 columns (aaargh)
column_la... | /run_analysis.R | no_license | Quath/ProgrammingAssignment4 | R | false | false | 2,417 | r | # The imports!
library(dplyr)
library(tidyr)
# Make some variables we are going to reuse
column_names_for_labels <- c("index", "label")
column_name_for_activity <- c("activity")
column_name_for_subject <- c("subject")
# 1 read the column names from the features.txt file. There should be 561 columns (aaargh)
column_la... |
# this script used for runing check the functions from qgraqph to create the partial correlation and corrected p-value by holm or even the fdrlocal
# the result these methods are not working because the output giving the p-value nonsignificant they are all pvalue is 1
library(RCurl) # run this package for load the ... | /chapter4/results/withqgraph.R | no_license | sithjaisong/network.project | R | false | false | 6,074 | r | # this script used for runing check the functions from qgraqph to create the partial correlation and corrected p-value by holm or even the fdrlocal
# the result these methods are not working because the output giving the p-value nonsignificant they are all pvalue is 1
library(RCurl) # run this package for load the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/registration.R
\name{adult_gene_expression_analysis}
\alias{adult_gene_expression_analysis}
\title{Gene expression spatial enrichment}
\usage{
adult_gene_expression_analysis(
anatomy_statistics,
gene_expression_paths = NULL,
target_thre... | /man/adult_gene_expression_analysis.Rd | no_license | DJFernandes/ABIgeneRMINC | R | false | true | 3,949 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/registration.R
\name{adult_gene_expression_analysis}
\alias{adult_gene_expression_analysis}
\title{Gene expression spatial enrichment}
\usage{
adult_gene_expression_analysis(
anatomy_statistics,
gene_expression_paths = NULL,
target_thre... |
.onLoad <- function(libname, pkgname) {
library.dynam("DNAcopy", pkgname, libname)
packageStartupMessage("\n**************************************************************************\n The plan to change the data format for CNA object has been postponed \n in order to ensure backward compatibility with older ve... | /R/zzz.R | no_license | genome-vendor/r-bioc-dnacopy | R | false | false | 421 | r | .onLoad <- function(libname, pkgname) {
library.dynam("DNAcopy", pkgname, libname)
packageStartupMessage("\n**************************************************************************\n The plan to change the data format for CNA object has been postponed \n in order to ensure backward compatibility with older ve... |
if (!file.exists("household_power_consumption.txt")) {
stop("Please place the unzipped data file [household_power_consumption.txt] in the working directory.")
}
# reading the data file into a data frame
datafile <- "household_power_consumption.txt"
DT <- read.table(datafile, header = TRUE, sep = ";",
... | /plot2.R | no_license | safwannaqi/ExData_Plotting1 | R | false | false | 943 | r | if (!file.exists("household_power_consumption.txt")) {
stop("Please place the unzipped data file [household_power_consumption.txt] in the working directory.")
}
# reading the data file into a data frame
datafile <- "household_power_consumption.txt"
DT <- read.table(datafile, header = TRUE, sep = ";",
... |
#' @title get_chapter - Download a single chapter from ctext.org
#' @description Unvectorized function. Used as a building block for get_chapters and get_books.
#' @param book name of book
#' @param chapter name or number of chapter in book
#' @export TRUE
#' @return Returns a dataframe with 4 columns: text, book, chap... | /R/get_text.R | no_license | Jjohn987/ctextclassics | R | false | false | 4,623 | r | #' @title get_chapter - Download a single chapter from ctext.org
#' @description Unvectorized function. Used as a building block for get_chapters and get_books.
#' @param book name of book
#' @param chapter name or number of chapter in book
#' @export TRUE
#' @return Returns a dataframe with 4 columns: text, book, chap... |
#' Gives the subgroup specific optimal dose vector.
#' Returns a list containing the optimal doses to enroll each subgroup at and the subgroups that should have their accrual suspended temporarily.
#' @param Y Vector containing observed event or censoring times.
#' @param I Vector containing event indicators (1 if ... | /fuzzedpackages/SubTite/R/GetSubTite.R | no_license | akhikolla/testpackages | R | false | false | 18,729 | r | #' Gives the subgroup specific optimal dose vector.
#' Returns a list containing the optimal doses to enroll each subgroup at and the subgroups that should have their accrual suspended temporarily.
#' @param Y Vector containing observed event or censoring times.
#' @param I Vector containing event indicators (1 if ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cor_bakers_gamma.R
\name{cor_bakers_gamma}
\alias{cor_bakers_gamma}
\alias{cor_bakers_gamma.default}
\alias{cor_bakers_gamma.dendlist}
\alias{cor_bakers_gamma.dendrogram}
\alias{cor_bakers_gamma.hclust}
\title{Baker's Gamma correlation coeffi... | /man/cor_bakers_gamma.Rd | no_license | JohnMCMa/dendextend | R | false | true | 4,362 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cor_bakers_gamma.R
\name{cor_bakers_gamma}
\alias{cor_bakers_gamma}
\alias{cor_bakers_gamma.default}
\alias{cor_bakers_gamma.dendlist}
\alias{cor_bakers_gamma.dendrogram}
\alias{cor_bakers_gamma.hclust}
\title{Baker's Gamma correlation coeffi... |
############################################################
# DATA PROCESSING
############################################################
############################################################
# 1. Turning email strings into a word frequency matrix
############################################################
... | /wrongdata/Processing-wrong.R | no_license | renswny/STAT154-Group04 | R | false | false | 9,982 | r | ############################################################
# DATA PROCESSING
############################################################
############################################################
# 1. Turning email strings into a word frequency matrix
############################################################
... |
\name{avgts}
\alias{avgts}
\title{
TimeSeries averages over cycle phases.
}
\description{
This function returns the averages of the input time series over each of
phases in the Dating. It omits the NA's in the time series, so will give an error with internal NA's.
}
\usage{
avgts(ts,Dating)
}
\arguments{
... | /man/avgts.Rd | no_license | freephys/BCDating | R | false | false | 1,020 | rd | \name{avgts}
\alias{avgts}
\title{
TimeSeries averages over cycle phases.
}
\description{
This function returns the averages of the input time series over each of
phases in the Dating. It omits the NA's in the time series, so will give an error with internal NA's.
}
\usage{
avgts(ts,Dating)
}
\arguments{
... |
\name{summary.bounds}
\alias{summary.bounds}
\alias{print.summary.bounds}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Summary for Group Sequential Boundaries}
\description{
'summary' method for class '"bounds"'.
}
\usage{
\method{summary}{bounds}(object, ...)
\method{print}{summary.bounds}(x... | /man/summary.bounds.Rd | no_license | okjoh/ldbounds | R | false | false | 1,854 | rd | \name{summary.bounds}
\alias{summary.bounds}
\alias{print.summary.bounds}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Summary for Group Sequential Boundaries}
\description{
'summary' method for class '"bounds"'.
}
\usage{
\method{summary}{bounds}(object, ...)
\method{print}{summary.bounds}(x... |
#' Make a league table - not limited by seasons or tiers
#'
#' @param df The results dataframe
#' @param Season The Season
#' @param tier The tier
#' @param pts Points for a win. Default is 3.
#' @param begin Earliest date of results to make table from (format Y-m-d)
#' @param end Latest date of results to make table f... | /R/maketable_all.R | no_license | nturaga/engsoccerdata | R | false | false | 2,861 | r | #' Make a league table - not limited by seasons or tiers
#'
#' @param df The results dataframe
#' @param Season The Season
#' @param tier The tier
#' @param pts Points for a win. Default is 3.
#' @param begin Earliest date of results to make table from (format Y-m-d)
#' @param end Latest date of results to make table f... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{DEH}
\alias{DEH}
\title{DEH}
\format{A data frame with 479 rows and 3 variables:
\describe{
\item{chromosome}{chromosome of DEH loci}
\item{loci}{location of DEH loci}
\item{strand}{strand of DEH loci}
}}
\us... | /man/DEH.Rd | no_license | xiaowenchenjax/epihet | R | false | true | 408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{DEH}
\alias{DEH}
\title{DEH}
\format{A data frame with 479 rows and 3 variables:
\describe{
\item{chromosome}{chromosome of DEH loci}
\item{loci}{location of DEH loci}
\item{strand}{strand of DEH loci}
}}
\us... |
#
# if (!dir.exists('final')){
if (!file.exists("./datasets/pml-testing.csv")) {
url = 'https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv'
download.file(url,'./datasets/pml-testing.csv', mode = 'wb')
# unzip("Coursera-SwiftKey.zip", exdir = getwd())
print("The testing dataset was down... | /getData.R | no_license | and88x/Human-Activity-Recognition | R | false | false | 797 | r | #
# if (!dir.exists('final')){
if (!file.exists("./datasets/pml-testing.csv")) {
url = 'https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv'
download.file(url,'./datasets/pml-testing.csv', mode = 'wb')
# unzip("Coursera-SwiftKey.zip", exdir = getwd())
print("The testing dataset was down... |
## Code to generate plot1 from scratch
## THis code assumes that the data is contained in a folder in the github
## repository name data/
header <- read.table("./data/household_power_consumption.txt", sep = ';', header = FALSE, nrows = 1, stringsAsFactors = FALSE )
pwr <- read.table("./data/household_power_consumpti... | /plot1.R | no_license | tayebzaidi/ExData_Plotting1 | R | false | false | 580 | r | ## Code to generate plot1 from scratch
## THis code assumes that the data is contained in a folder in the github
## repository name data/
header <- read.table("./data/household_power_consumption.txt", sep = ';', header = FALSE, nrows = 1, stringsAsFactors = FALSE )
pwr <- read.table("./data/household_power_consumpti... |
##
## Date 2016-08-18
## Author: Tiziano Vicentini
##
## This script is part of the final assignemnt of the Getting and Cleaning Data
## from Coursera Data Science Specialization.
## It processes the data sets from sorce
## http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
##... | /run_analysis.R | no_license | TizVic/DataScienceGettingAndCleaningData | R | false | false | 4,703 | r | ##
## Date 2016-08-18
## Author: Tiziano Vicentini
##
## This script is part of the final assignemnt of the Getting and Cleaning Data
## from Coursera Data Science Specialization.
## It processes the data sets from sorce
## http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones
##... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theta_join.R
\name{theta_join_nse}
\alias{theta_join_nse}
\title{Make a theta_join node.}
\usage{
theta_join_nse(a, b, expr, ..., jointype = "INNER", suffix = c("_a",
"_b"), env = parent.frame())
}
\arguments{
\item{a}{source to select from... | /man/theta_join_nse.Rd | no_license | mstei4176/rquery | R | false | true | 1,237 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theta_join.R
\name{theta_join_nse}
\alias{theta_join_nse}
\title{Make a theta_join node.}
\usage{
theta_join_nse(a, b, expr, ..., jointype = "INNER", suffix = c("_a",
"_b"), env = parent.frame())
}
\arguments{
\item{a}{source to select from... |
library(lubridate)
data <- read.csv("household_power_consumption.txt",sep=";")
data <- subset(data, Date == '2/2/2007' | Date == '1/2/2007')
head(data)
str(data)
data$DateTime <- strptime(paste(dmy(data$Date), data$Time), format= "%Y-%m-%d %H:%M:%S")
png('plot3.png', width=480, height=480)
with(data, plot(DateTime,... | /Plot3.R | no_license | paullb514/ExData_Plotting1 | R | false | false | 745 | r | library(lubridate)
data <- read.csv("household_power_consumption.txt",sep=";")
data <- subset(data, Date == '2/2/2007' | Date == '1/2/2007')
head(data)
str(data)
data$DateTime <- strptime(paste(dmy(data$Date), data$Time), format= "%Y-%m-%d %H:%M:%S")
png('plot3.png', width=480, height=480)
with(data, plot(DateTime,... |
########### MACHINE LEARNING COURSE EXERCISE TWO - LOGISTIC REGRESSION ############
# R scripts for exercise 2 (week 3) of coursera machine learning course.
# Read Data & Set Params ---------------------------------------------------------------
# create dataset for plotting
dataset1 <- read_csv("ex2data1.txt", col... | /machine-learning-ex2/ex2/exercise_two.R | no_license | samtaylor54321/machine_learning_course | R | false | false | 3,350 | r | ########### MACHINE LEARNING COURSE EXERCISE TWO - LOGISTIC REGRESSION ############
# R scripts for exercise 2 (week 3) of coursera machine learning course.
# Read Data & Set Params ---------------------------------------------------------------
# create dataset for plotting
dataset1 <- read_csv("ex2data1.txt", col... |
#' Set the GITHUB_PAT variable on Travis
#'
#' Assigns a GitHub PAT to the `GITHUB_PAT` private variable on Travis CI
#' via [travis_set_var()],
#' among others this works around GitHub API rate limitations.
#' By default, the PAT is obtained from [github_create_pat()].
#'
#' @param pat `[string]`\cr
#' If set, avoid... | /R/travis-pat.R | no_license | zeehio/travis | R | false | false | 839 | r | #' Set the GITHUB_PAT variable on Travis
#'
#' Assigns a GitHub PAT to the `GITHUB_PAT` private variable on Travis CI
#' via [travis_set_var()],
#' among others this works around GitHub API rate limitations.
#' By default, the PAT is obtained from [github_create_pat()].
#'
#' @param pat `[string]`\cr
#' If set, avoid... |
library(testthat)
library(episheet)
test_check("episheet")
| /tests/testthat.R | no_license | epijim/episheet | R | false | false | 60 | r | library(testthat)
library(episheet)
test_check("episheet")
|
# Funktion adSim() intialisieren mit Standardeinstellungen: Verteilungsannahme: normal; Bootstrap-Simulationen: 10000
adSim <- function(x, distribution = "normal", b = 10000){
# Fehlerpruefungen durchfuehren
# 1.20 ueberpruefung, dass x ein numerischer Vektor ist
if(mode(x) != "numeric")
stop(paste("\n","... | /qualityTools/R/adSim.R | no_license | ingted/R-Examples | R | false | false | 31,881 | r |
# Funktion adSim() intialisieren mit Standardeinstellungen: Verteilungsannahme: normal; Bootstrap-Simulationen: 10000
adSim <- function(x, distribution = "normal", b = 10000){
# Fehlerpruefungen durchfuehren
# 1.20 ueberpruefung, dass x ein numerischer Vektor ist
if(mode(x) != "numeric")
stop(paste("\n","... |
##
## USAGE: Rscript p6mA.R [INPUT FASTA FILE] [OUTPUT FILE NAME]
##
## INPUT FASTA FILE: The input .fasta file. The sequences should be 41-bp and the A in 21st base
## OUTPUT FILE NAME: The output file name. Default: Output.result
##
##
############################################################... | /p6mA.R | no_license | Konglab404/p6mA | R | false | false | 3,568 | r | ##
## USAGE: Rscript p6mA.R [INPUT FASTA FILE] [OUTPUT FILE NAME]
##
## INPUT FASTA FILE: The input .fasta file. The sequences should be 41-bp and the A in 21st base
## OUTPUT FILE NAME: The output file name. Default: Output.result
##
##
############################################################... |
###
'quality_assessment.R contains the code used to process genome quality data generated by QUAST and CheckM'
###
library(reshape2)
library(dplyr)
library(ggplot2)
library(stringr)
#plotting
library(cowplot)
library(ggsci)
library(scales)
library(RColorBrewer)
library(egg)
#Tree
library(ape)
library(ggrepel)
library(... | /quality_assessments/quality_assessments.R | no_license | hartmann-lab/fabv_paper | R | false | false | 7,618 | r | ###
'quality_assessment.R contains the code used to process genome quality data generated by QUAST and CheckM'
###
library(reshape2)
library(dplyr)
library(ggplot2)
library(stringr)
#plotting
library(cowplot)
library(ggsci)
library(scales)
library(RColorBrewer)
library(egg)
#Tree
library(ape)
library(ggrepel)
library(... |
n=112 #multi securities
Ei=175
#########
e=matrix(0,n,175)
r=res=matrix(0,n,175+31)
tP=tCross=tBW=tBMP=
PvalP=PvalCross=PvalBW=PvalBMP=
tMM=tLR=tMLR=tSLR=tMSLR=
PvalMM=PvalLR=PvalMLR=PvalSLR=PvalMSLR=matrix(0,31,1)
tLRrho=tMLRrho=tSLRrho=tMSLRrho=
PvalLRrho=PvalMLRrho=PvalSLRrho=PvalMSLRrho=matrix(0,31,1)
B... | /Event_Study Codes.R | permissive | adu3110/Baysian-Event-Study | R | false | false | 5,922 | r |
n=112 #multi securities
Ei=175
#########
e=matrix(0,n,175)
r=res=matrix(0,n,175+31)
tP=tCross=tBW=tBMP=
PvalP=PvalCross=PvalBW=PvalBMP=
tMM=tLR=tMLR=tSLR=tMSLR=
PvalMM=PvalLR=PvalMLR=PvalSLR=PvalMSLR=matrix(0,31,1)
tLRrho=tMLRrho=tSLRrho=tMSLRrho=
PvalLRrho=PvalMLRrho=PvalSLRrho=PvalMSLRrho=matrix(0,31,1)
B... |
#### Q1 ####
# Question 1: How does the preference between the two dishes vary with age?
# Question 2: How does the preference between the two dishes vary by city?
# Question 3: What percentage of people in each city voted?
#### Q2 ####
messy <- data.frame(c1 = c("","","Yes", "No"), c2 = c("Edinburgh","16-24","80,100... | /Week 5/w5Assignment.R | no_license | jhink7/IS607 | R | false | false | 2,167 | r | #### Q1 ####
# Question 1: How does the preference between the two dishes vary with age?
# Question 2: How does the preference between the two dishes vary by city?
# Question 3: What percentage of people in each city voted?
#### Q2 ####
messy <- data.frame(c1 = c("","","Yes", "No"), c2 = c("Edinburgh","16-24","80,100... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chk-length.R
\name{chk_length}
\alias{chk_length}
\alias{vld_length}
\title{Check Length}
\usage{
chk_length(x, length = 1L, upper = length, x_name = NULL)
vld_length(x, length = 1L, upper = length)
}
\arguments{
\item{x}{The object to check... | /man/chk_length.Rd | permissive | poissonconsulting/chk | R | false | true | 1,373 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chk-length.R
\name{chk_length}
\alias{chk_length}
\alias{vld_length}
\title{Check Length}
\usage{
chk_length(x, length = 1L, upper = length, x_name = NULL)
vld_length(x, length = 1L, upper = length)
}
\arguments{
\item{x}{The object to check... |
#!/usr/bin/env Rscript
library(ggplot2)
library(grid)
args<-commandArgs(T)
data = read.table(args[1],header=TRUE,sep="\t")
pdf(args[2])
#ggplot(data,aes(x=log2((Library+Total4+Total5)/3), y=log2((Total4+Total5)/2/Library)))+geom_point()+labs(x="log2(Mean Read Counts of gRNA)",y="log2(Baseline/Library)")+theme(axis.tit... | /workspace/CRISPR/new_year/maplot_zhangcheng.r.2018050611 | no_license | ijayden-lung/hpc | R | false | false | 1,127 | 2018050611 | #!/usr/bin/env Rscript
library(ggplot2)
library(grid)
args<-commandArgs(T)
data = read.table(args[1],header=TRUE,sep="\t")
pdf(args[2])
#ggplot(data,aes(x=log2((Library+Total4+Total5)/3), y=log2((Total4+Total5)/2/Library)))+geom_point()+labs(x="log2(Mean Read Counts of gRNA)",y="log2(Baseline/Library)")+theme(axis.tit... |
complex_DiffExprComplex <- readRDS("complex_DiffExprComplex.rda")
complex_DiffExprProteoform <- readRDS("complex_DiffExprProteoform.rda")
complex_DiffExprProteoform[, has_proteoform := ifelse(any(grep("_",proteoform_id)),TRUE,FALSE), by = c("complex_id")]
n_proteoform_table <- unique(subset(complex_DiffExprProteoform... | /thesis/complexFeaturePlots.R | no_license | SpliceosomeDepletion/CCprofilerAnalysis | R | false | false | 11,870 | r | complex_DiffExprComplex <- readRDS("complex_DiffExprComplex.rda")
complex_DiffExprProteoform <- readRDS("complex_DiffExprProteoform.rda")
complex_DiffExprProteoform[, has_proteoform := ifelse(any(grep("_",proteoform_id)),TRUE,FALSE), by = c("complex_id")]
n_proteoform_table <- unique(subset(complex_DiffExprProteoform... |
# Script to plot an orbit along with its associated precisions
# in the parameterization method of the QBFBP/RTBP around L1/L2 of the Earth-Moon system
# Script for the PhD manuscript.
#
# Note that the variations of the energy are no longer computed as an error,
# but as an absolute value.
#
# BLB Summer 2017
#-----... | /Single_Orbit/Single_Orbit_PhD_EML1_Big_3D.R | no_license | lebihanbastien/RFTDA | R | false | false | 15,130 | r | # Script to plot an orbit along with its associated precisions
# in the parameterization method of the QBFBP/RTBP around L1/L2 of the Earth-Moon system
# Script for the PhD manuscript.
#
# Note that the variations of the energy are no longer computed as an error,
# but as an absolute value.
#
# BLB Summer 2017
#-----... |
testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.84363065730702e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615827606-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -1.37672045511449e-268, FM = 3.84363065730702e-313, L50 = 0, L95 = 0, LenBins = 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), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
read_peptide_tsv_MaxQuant_volcano <- function(peptide_file, sample_pattern, min_valid_sample = 2,
intensity_metric = "PSM") {
check_file(peptide_file, "MaxQuant")
peptide_import <- read.csv(peptide_file, sep = "\t", header = T, )
filetype(peptide_import, "Combined", "... | /www/Volcano_plot_functions.R | permissive | Champion-Lab/PrIntMap-R | R | false | false | 20,186 | r | read_peptide_tsv_MaxQuant_volcano <- function(peptide_file, sample_pattern, min_valid_sample = 2,
intensity_metric = "PSM") {
check_file(peptide_file, "MaxQuant")
peptide_import <- read.csv(peptide_file, sep = "\t", header = T, )
filetype(peptide_import, "Combined", "... |
reformat_meta_to_powerBI <- function(meta, vclist){
reformat_meta <- meta %>%
mutate(host = primary_host.x) %>%
filter(host == "Human") %>%
rename(strain = primary_virus_name) %>%
rename(nt_id = primary_nt_id.x) %>%
mutate(gisaid_epi_isl = covv_accession_id) %>%
mutate(genbank_accession = ac... | /reformat_meta_to_powerBI.R | no_license | yyw-informatics/COVID_visuals | R | false | false | 2,251 | r | reformat_meta_to_powerBI <- function(meta, vclist){
reformat_meta <- meta %>%
mutate(host = primary_host.x) %>%
filter(host == "Human") %>%
rename(strain = primary_virus_name) %>%
rename(nt_id = primary_nt_id.x) %>%
mutate(gisaid_epi_isl = covv_accession_id) %>%
mutate(genbank_accession = ac... |
# Simulated data for Figures 4 and 5 for MEPS paper that take too long to produce when building a vignette.
# See ?sizeSpectra::MLEbin.MEPS.default (and for other objects saved below) for details
MLEbin.MEPS.default <- MLEbin.simulate()
usethis::use_data(MLEbin.MEPS.default, overwrite = TRUE)
MLEbin.MEPS.xmin16 <- ... | /data-raw/simulate-data2.R | no_license | andrew-edwards/sizeSpectra | R | false | false | 522 | r | # Simulated data for Figures 4 and 5 for MEPS paper that take too long to produce when building a vignette.
# See ?sizeSpectra::MLEbin.MEPS.default (and for other objects saved below) for details
MLEbin.MEPS.default <- MLEbin.simulate()
usethis::use_data(MLEbin.MEPS.default, overwrite = TRUE)
MLEbin.MEPS.xmin16 <- ... |
#' Get Legend, Mapunit and Legend Mapunit Area Overlap Tables
#'
#'
#' @param SS Fetch data from the currently loaded selected set in NASIS or from the entire local database (default: `TRUE`)
#' @param repdmu Return only "representative" data mapunits? Default: `TRUE`
#' @param droplevels Drop unused levels from `farm... | /R/get_mapunit_from_NASIS.R | no_license | ncss-tech/soilDB | R | false | false | 8,482 | r | #' Get Legend, Mapunit and Legend Mapunit Area Overlap Tables
#'
#'
#' @param SS Fetch data from the currently loaded selected set in NASIS or from the entire local database (default: `TRUE`)
#' @param repdmu Return only "representative" data mapunits? Default: `TRUE`
#' @param droplevels Drop unused levels from `farm... |
library(streambugs)
### Name: construct.statevariables
### Title: Construct the streambugs ODE state variable names
### Aliases: construct.statevariables
### ** Examples
Reaches <- paste0("Reach",1:2)
Habitats <- paste0("Hab",1:1)
y.names <- construct.statevariables(Reaches,Habitats,Invertebrates... | /data/genthat_extracted_code/streambugs/examples/construct.statevariables.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 351 | r | library(streambugs)
### Name: construct.statevariables
### Title: Construct the streambugs ODE state variable names
### Aliases: construct.statevariables
### ** Examples
Reaches <- paste0("Reach",1:2)
Habitats <- paste0("Hab",1:1)
y.names <- construct.statevariables(Reaches,Habitats,Invertebrates... |
############################################
# Cross-population analysis of high-grade serous ovarian cancer does
# not support four subtypes
#
# Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B,
# Konecny, G., Goode, E., Greene, C.S., Doherty, J.A.
# ~~~~~~~~~~~~~~~~~~~~~
# This script will input a series of... | /2.Clustering_DiffExprs/Scripts/D.NMF.R | permissive | changt34x/hgsc_subtypes | R | false | false | 4,998 | r | ############################################
# Cross-population analysis of high-grade serous ovarian cancer does
# not support four subtypes
#
# Way, G.P., Rudd, J., Wang, C., Hamidi, H., Fridley, L.B,
# Konecny, G., Goode, E., Greene, C.S., Doherty, J.A.
# ~~~~~~~~~~~~~~~~~~~~~
# This script will input a series of... |
#install.packages("shiny")
library("shiny")
library("plotly")
library("DT")
my_ui <- fluidPage (
titlePanel(strong("United States Mortality Rates Report")),
br(),
sidebarLayout(
sidebarPanel(
h3("Control Panel"),
selectInput("state_select",
label = p("Select State"),
... | /ui.R | no_license | ThiemoLo/final_project | R | false | false | 10,198 | r | #install.packages("shiny")
library("shiny")
library("plotly")
library("DT")
my_ui <- fluidPage (
titlePanel(strong("United States Mortality Rates Report")),
br(),
sidebarLayout(
sidebarPanel(
h3("Control Panel"),
selectInput("state_select",
label = p("Select State"),
... |
############# SEMANA 4 - ETL ##################
# É importante deixar claro que essa parte foi copiada do script do Professor Hugo,
# disponível em: https://github.com/hugoavmedeiros/etl_com_r/blob/master/scripts/etl1.R
#Essa linha de código mostra o processo de ETL completo
######### PRIMEIRA PARTE- Extração #####... | /Semana 4/semana 4.R | no_license | marcustorresz/ETLdata | R | false | false | 3,894 | r | ############# SEMANA 4 - ETL ##################
# É importante deixar claro que essa parte foi copiada do script do Professor Hugo,
# disponível em: https://github.com/hugoavmedeiros/etl_com_r/blob/master/scripts/etl1.R
#Essa linha de código mostra o processo de ETL completo
######### PRIMEIRA PARTE- Extração #####... |
#' Set Print Method
#'
#' The function allows the user to define options relating to the print method for \code{data.table}.
#'
#' @param class should the variable class be printed? (\code{options("datatable.print.class")})
#' @param topn the number of rows to print (both head and tail) if \code{nrows(DT) > nrows}. (\c... | /R/print.R | no_license | TysonStanley/tidyfast | R | false | false | 1,693 | r | #' Set Print Method
#'
#' The function allows the user to define options relating to the print method for \code{data.table}.
#'
#' @param class should the variable class be printed? (\code{options("datatable.print.class")})
#' @param topn the number of rows to print (both head and tail) if \code{nrows(DT) > nrows}. (\c... |
library(ISLR)
library(boot)
data(Default)
attach(Default)
set.seed(1)
glm.fit = glm(default~income+balance,family=binomial)
coef(summary(glm.fit))[2:3,1:2]
coef(glm.fit)
boot.fn = function(data, index){
return(
coef(glm(default~income+balance
,family=binomial
,... | /Chapter 5 - Resampling Methods - Cross Validation and Bootstrap/Homework 5.6.R | no_license | bpafoshizle/IntroStatLearn | R | false | false | 403 | r | library(ISLR)
library(boot)
data(Default)
attach(Default)
set.seed(1)
glm.fit = glm(default~income+balance,family=binomial)
coef(summary(glm.fit))[2:3,1:2]
coef(glm.fit)
boot.fn = function(data, index){
return(
coef(glm(default~income+balance
,family=binomial
,... |
### Objective: Add zeros for hauls that occurred where species were absent
library(tidyverse)
library(lubridate)
### Read in catch data
catch <- read_csv(paste0("Data/", list.files("Data", pattern="Groundfish_all")))
### Read in haul data
haul <- read_csv(paste0("Data/", list.files("Data", pattern="Trawl_info_all")))... | /Code/Hauls_add_zeros_wc.R | no_license | bselden/StockAvailability | R | false | false | 3,260 | r | ### Objective: Add zeros for hauls that occurred where species were absent
library(tidyverse)
library(lubridate)
### Read in catch data
catch <- read_csv(paste0("Data/", list.files("Data", pattern="Groundfish_all")))
### Read in haul data
haul <- read_csv(paste0("Data/", list.files("Data", pattern="Trawl_info_all")))... |
##########################################################################
# policyMakingPowersDoubleCluster.R
# GR: November 8, 2017
# This file reads policy-making powers for lower and upper houses and
# executives.
# It first performs principal component analysis of common powers in both houses
# keeping as many dim... | /Code/Code8_Linkage2_PolicyMakingProcess/policyMakingPowersDoubleCluster.R | no_license | solivella/ChainOfRepresentation | R | false | false | 14,090 | r | ##########################################################################
# policyMakingPowersDoubleCluster.R
# GR: November 8, 2017
# This file reads policy-making powers for lower and upper houses and
# executives.
# It first performs principal component analysis of common powers in both houses
# keeping as many dim... |
#' Run an experiment on cluster
#' @inheritParams default_params_doc
#' @author Giovanni Laudanno
#' @return nothing
#' @export
pocket_experiment <- function(
account = jap::your_account(),
projects_folder_name = "Projects",
github_name = "Giappo",
project_name = "sls",
function_name = "sls_main",
params,
... | /R/pocket_experiment.R | no_license | TheoPannetier/jap | R | false | false | 1,043 | r | #' Run an experiment on cluster
#' @inheritParams default_params_doc
#' @author Giovanni Laudanno
#' @return nothing
#' @export
pocket_experiment <- function(
account = jap::your_account(),
projects_folder_name = "Projects",
github_name = "Giappo",
project_name = "sls",
function_name = "sls_main",
params,
... |
library(shiny)
# Define server logic required to draw a plot
shinyServer(function(input, output) {
# Expression that generates a plot. The expression is
# wrapped in a call to renderPlot to indicate that:
# 1) It is "reactive" and therefore should be automatically
# re-executed when inputs change
# 2) Its output ... | /shiny/normal_dist/server.R | no_license | algoquant/presentations | R | false | false | 668 | r | library(shiny)
# Define server logic required to draw a plot
shinyServer(function(input, output) {
# Expression that generates a plot. The expression is
# wrapped in a call to renderPlot to indicate that:
# 1) It is "reactive" and therefore should be automatically
# re-executed when inputs change
# 2) Its output ... |
library("astsa")
library("dplyr")
library("ggplot2")
gunviolence <- read.csv('~/Documents/gun-violence/gun-violence-data.csv') %>%
mutate(
incident_date = as.Date(incident_date, "%B %d, %Y"),
days_since = difftime(incident_date, as.Date('2014-01-01'), units="days") %>% as.numeric,
months_since = floor((d... | /gun-deaths-plot.R | no_license | daikonradish/gun-violence | R | false | false | 1,207 | r | library("astsa")
library("dplyr")
library("ggplot2")
gunviolence <- read.csv('~/Documents/gun-violence/gun-violence-data.csv') %>%
mutate(
incident_date = as.Date(incident_date, "%B %d, %Y"),
days_since = difftime(incident_date, as.Date('2014-01-01'), units="days") %>% as.numeric,
months_since = floor((d... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m_inv <- matrix()
set <- function(y) {
x <<- y
m_inv <<- matrix()
}
get <- function() x
setm_inv <- function(solve_m) m_inv... | /cachematrix.R | no_license | datadavidz/ProgrammingAssignment2 | R | false | false | 771 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
m_inv <- matrix()
set <- function(y) {
x <<- y
m_inv <<- matrix()
}
get <- function() x
setm_inv <- function(solve_m) m_inv... |
#' Run one replicate of the model
#'
#' Run one replicate of the model; a replicate is a water_year/chinook_run combination
#'
#' @md
#' @param water_year_string Water year (1997-2011) as a string
#' @param chinook_run Run timing classification: Fall, LateFall, Winter, Spring
#' @param ocean_year_type ... | /R/run_one_rep.R | no_license | hinkelman/YoloBypassSBM | R | false | false | 9,192 | r | #' Run one replicate of the model
#'
#' Run one replicate of the model; a replicate is a water_year/chinook_run combination
#'
#' @md
#' @param water_year_string Water year (1997-2011) as a string
#' @param chinook_run Run timing classification: Fall, LateFall, Winter, Spring
#' @param ocean_year_type ... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/homr.R
\name{homr}
\alias{homr}
\title{Historical Observing Metadata Repository (HOMR) station metadata}
\usage{
homr(qid = NULL, qidMod = NULL, station = NULL, state = NULL,
county = NULL, country = NULL, name = NULL, nameMod = NUL... | /man/homr.Rd | permissive | jmolina9/rnoaa | R | false | false | 4,255 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/homr.R
\name{homr}
\alias{homr}
\title{Historical Observing Metadata Repository (HOMR) station metadata}
\usage{
homr(qid = NULL, qidMod = NULL, station = NULL, state = NULL,
county = NULL, country = NULL, name = NULL, nameMod = NUL... |
library(geneplotter)
### Name: GetColor
### Title: A function to get the Red-Blue color scheme used by dChip
### Aliases: GetColor dChip.colors greenred.colors
### Keywords: manip
### ** Examples
set.seed(10)
x <- rnorm(10)
GetColor(x)
dChip.colors(10)
| /data/genthat_extracted_code/geneplotter/examples/GetColor.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 268 | r | library(geneplotter)
### Name: GetColor
### Title: A function to get the Red-Blue color scheme used by dChip
### Aliases: GetColor dChip.colors greenred.colors
### Keywords: manip
### ** Examples
set.seed(10)
x <- rnorm(10)
GetColor(x)
dChip.colors(10)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sheets_objects.R
\name{CandlestickDomain}
\alias{CandlestickDomain}
\title{CandlestickDomain Object}
\usage{
CandlestickDomain(data = NULL, reversed = NULL)
}
\arguments{
\item{data}{The data of the CandlestickDomain}
\item{reversed}{True to... | /man/CandlestickDomain.Rd | no_license | key-Mustang/googleSheetsR | R | false | true | 571 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sheets_objects.R
\name{CandlestickDomain}
\alias{CandlestickDomain}
\title{CandlestickDomain Object}
\usage{
CandlestickDomain(data = NULL, reversed = NULL)
}
\arguments{
\item{data}{The data of the CandlestickDomain}
\item{reversed}{True to... |
examples.dyn.collapse = function() {
app = eventsApp()
ui = fluidPage(
dynCollapse(id="collapse", labels=c("Adfndskgdsjgkjdkvndcnvkdfhve djjdbidzgfu sjfjnsdfj","B","C"), panel.fun=function(...) {
args = list(...)
restore.point("inner")
cat("I am pressed!!!!")
HTML(paste0("I am pressed...... | /R/dynCollapse.r | no_license | harshinamdar/RTutor | R | false | false | 1,695 | r | examples.dyn.collapse = function() {
app = eventsApp()
ui = fluidPage(
dynCollapse(id="collapse", labels=c("Adfndskgdsjgkjdkvndcnvkdfhve djjdbidzgfu sjfjnsdfj","B","C"), panel.fun=function(...) {
args = list(...)
restore.point("inner")
cat("I am pressed!!!!")
HTML(paste0("I am pressed...... |
### Script was created and tested on Windows XP SP3 and R v. 3.2.0 (i386)
# Setup working directory
# You should to change working directory or comment next line
# If you work on Linus you should change path name
setwd("D:\\Course\\Exploratory Data Analysis\\CourseProject1")
# Test if data directory exists
if ( !f... | /plot1.R | no_license | kda795/ExData_Plotting1 | R | false | false | 1,459 | r | ### Script was created and tested on Windows XP SP3 and R v. 3.2.0 (i386)
# Setup working directory
# You should to change working directory or comment next line
# If you work on Linus you should change path name
setwd("D:\\Course\\Exploratory Data Analysis\\CourseProject1")
# Test if data directory exists
if ( !f... |
# 'expression_xls' is the expression index file (e.g. outputted by dChip); 'sample_info_file' is a tab-delimited text file containing the colums: Array name, sample name, Batch, and any other covariates to be included in the modeling; 'type' currently supports two data file types 'txt' for a tab-delimited text file an... | /ComBat.R | no_license | MosheSilverstein/WORK | R | false | false | 11,339 | r | # 'expression_xls' is the expression index file (e.g. outputted by dChip); 'sample_info_file' is a tab-delimited text file containing the colums: Array name, sample name, Batch, and any other covariates to be included in the modeling; 'type' currently supports two data file types 'txt' for a tab-delimited text file an... |
casgem_zip_url <- "https://d3.water.ca.gov/owncloud/index.php/s/YPFGd8p47s6jhu6/download"
files_in_zip <- list(
"groundwater_data" = "gwl_file.csv",
"station_metadata" = "gst_file.csv"
)
#' @param d a data file to obtain from zip. Available options listed by names(files_in_zip)
get_casgem_data <- function(d=NULL... | /R/retrieve-data.R | no_license | FlowWest/casgem-well-data | R | false | false | 1,045 | r | casgem_zip_url <- "https://d3.water.ca.gov/owncloud/index.php/s/YPFGd8p47s6jhu6/download"
files_in_zip <- list(
"groundwater_data" = "gwl_file.csv",
"station_metadata" = "gst_file.csv"
)
#' @param d a data file to obtain from zip. Available options listed by names(files_in_zip)
get_casgem_data <- function(d=NULL... |
library(FSAdata)
### Name: HumpbackWFCR
### Title: Capture histories (2 sample) of Humpback Whitefish.
### Aliases: HumpbackWFCR
### Keywords: datasets
### ** Examples
data(HumpbackWFCR)
str(HumpbackWFCR)
head(HumpbackWFCR)
| /data/genthat_extracted_code/FSAdata/examples/HumpbackWFCR.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 232 | r | library(FSAdata)
### Name: HumpbackWFCR
### Title: Capture histories (2 sample) of Humpback Whitefish.
### Aliases: HumpbackWFCR
### Keywords: datasets
### ** Examples
data(HumpbackWFCR)
str(HumpbackWFCR)
head(HumpbackWFCR)
|
library(gtrend)
library(GTrendsR)
library(dplyr)
library(ggplot2)
library(scales)
library(forecast)
library(rucm)
library(yaml)
#set working directory
setwd("C:/Users/jwagg/Documents/R Projects/Gtrends/")
#load file w/ username and password
config <- yaml.load_file('config.txt')
#list of terms to pull trends for
ter... | /googleTrendsForecast.R | no_license | justinwagg/Gtrends | R | false | false | 1,656 | r | library(gtrend)
library(GTrendsR)
library(dplyr)
library(ggplot2)
library(scales)
library(forecast)
library(rucm)
library(yaml)
#set working directory
setwd("C:/Users/jwagg/Documents/R Projects/Gtrends/")
#load file w/ username and password
config <- yaml.load_file('config.txt')
#list of terms to pull trends for
ter... |
###############################################################
###############################################################
###############################################################
###############################################################
###############################################################
... | /R/Summary.model.Dyad.IL.R | no_license | smasongarrison/PowerLAPIM | R | false | false | 35,961 | r | ###############################################################
###############################################################
###############################################################
###############################################################
###############################################################
... |
library(mgcv)
n.station <- 20 #specify number of stations to run
mu <- 50
sd <- 40
noise.sd <- 0.2 #sd of white noise
stn.sd <- rnorm(n.station, 0.5, 0.2) #sd for random station effect
mult <- 1e3
z <- seq(0, 250, 5) #explanatory variable (depth)
rho <- mult*dnorm(z, mu, sd)/(pnorm(max(z), mu, sd) - pnorm(min(z), m... | /broke-simulation.R | no_license | gracevaziri/R-simulation-study | R | false | false | 1,350 | r | library(mgcv)
n.station <- 20 #specify number of stations to run
mu <- 50
sd <- 40
noise.sd <- 0.2 #sd of white noise
stn.sd <- rnorm(n.station, 0.5, 0.2) #sd for random station effect
mult <- 1e3
z <- seq(0, 250, 5) #explanatory variable (depth)
rho <- mult*dnorm(z, mu, sd)/(pnorm(max(z), mu, sd) - pnorm(min(z), m... |
library(fishtree)
library(here)
comm<- read.table(here::here("data", "comm_Parana-Paraguai.txt"), header= TRUE)
spp<- colnames(comm)[-c(1,2)]
tree<- fishtree_phylogeny(species = spp, type = "chronogram") #tree downloaded from fishtree of life Chang et al 2019
tree_insert<- tree
###checking the tree#####
spp_data<- 1:... | /R/C_tree_edit_21-03-20.R | no_license | GabrielNakamura/ProjModel | R | false | false | 4,547 | r | library(fishtree)
library(here)
comm<- read.table(here::here("data", "comm_Parana-Paraguai.txt"), header= TRUE)
spp<- colnames(comm)[-c(1,2)]
tree<- fishtree_phylogeny(species = spp, type = "chronogram") #tree downloaded from fishtree of life Chang et al 2019
tree_insert<- tree
###checking the tree#####
spp_data<- 1:... |
##Loading relevant data to R
options(stringsAsFactors=F)
dataset <- read.table("household_power_consumption.txt",sep=";",na.strings="?",skip=66636,nrow=2880,quote="",header=TRUE,colClasses = "character")
colnames(dataset) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub... | /plot1.R | no_license | pavithratg/ExData_Plotting1 | R | false | false | 762 | r | ##Loading relevant data to R
options(stringsAsFactors=F)
dataset <- read.table("household_power_consumption.txt",sep=";",na.strings="?",skip=66636,nrow=2880,quote="",header=TRUE,colClasses = "character")
colnames(dataset) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub... |
###### This script deals with transcriptomes and also getting the probe set rename
library(ape)
library(seqinr)
library(stringr)
library(data.table)
library(GenomicRanges)
library(Biostrings)
library(Rsamtools)
#Options
options(stringsAsFactors = FALSE)
#options(warn=2) #for debugging warnings in loops
##############... | /3-Post-Processing/02_mtgenome_assembly.R | no_license | chutter/murinae-seq | R | false | false | 26,770 | r | ###### This script deals with transcriptomes and also getting the probe set rename
library(ape)
library(seqinr)
library(stringr)
library(data.table)
library(GenomicRanges)
library(Biostrings)
library(Rsamtools)
#Options
options(stringsAsFactors = FALSE)
#options(warn=2) #for debugging warnings in loops
##############... |
alldata <- read.table('t1II_stim.txt', header=F)
names(alldata) <- c('cat', 'cat2', 'length', 'orient')
plot(alldata$length, alldata$orient) | /4-category/stim_test.r | no_license | nathanblanco/experiment-archive | R | false | false | 142 | r | alldata <- read.table('t1II_stim.txt', header=F)
names(alldata) <- c('cat', 'cat2', 'length', 'orient')
plot(alldata$length, alldata$orient) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RemoveHyphens.R
\docType{class}
\name{RemoveHyphens}
\alias{RemoveHyphens}
\title{RemoveHyphens}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
RemoveHyphens$new(x)$execute()
}
\arguments{
\item{x}{Object of to be p... | /man/RemoveHyphens.Rd | no_license | john-james-ai/NLPStudio-2.0 | R | false | true | 3,342 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RemoveHyphens.R
\docType{class}
\name{RemoveHyphens}
\alias{RemoveHyphens}
\title{RemoveHyphens}
\format{An object of class \code{R6ClassGenerator} of length 24.}
\usage{
RemoveHyphens$new(x)$execute()
}
\arguments{
\item{x}{Object of to be p... |
## Coursera Assignment #2 - Caching the Inverse of a Matrix
## R Sangole
# This function accepts an argument of the datatype matrix, in 'mat'
# The function initially sets invr to NULL. This is so that when the cacheSolve
# function is first called, x$getinv() returns a NULL to 'inverse'. This allows
# usage of the if... | /cachematrix.R | no_license | rsangole/ProgrammingAssignment2 | R | false | false | 2,327 | r | ## Coursera Assignment #2 - Caching the Inverse of a Matrix
## R Sangole
# This function accepts an argument of the datatype matrix, in 'mat'
# The function initially sets invr to NULL. This is so that when the cacheSolve
# function is first called, x$getinv() returns a NULL to 'inverse'. This allows
# usage of the if... |
# Author: Angela Di Serio
# Course: Exploratory Data Analysis
# Date: July 2015
# Course Project 1
# Plot 3
# Script to visualize household energy usage over a 2-day period in February 2007
#-------------------------------------------------------------------------------------
# Step 1.
# This script require... | /plot3.R | no_license | adiserio/ExData_Plotting1 | R | false | false | 2,147 | r | # Author: Angela Di Serio
# Course: Exploratory Data Analysis
# Date: July 2015
# Course Project 1
# Plot 3
# Script to visualize household energy usage over a 2-day period in February 2007
#-------------------------------------------------------------------------------------
# Step 1.
# This script require... |
# (1=gill, 2=heart, 3=liver, 4=spleen, 5=kidney)
params<- c("psi_z","psi_organ","p","sifAB","sifBC","sifAC","sifAD","sifBD","sifCD")
inits<- function(t){
list(theta=runif(15),eta=runif(20), beta=runif(20)
)}
# BUNDLE DATA UP
combos<-as.matrix(expand.grid(c(0,1),c(0,1),c(0,1),c(0,1)))
dat<- list(yyy=analys... | /analysis/src/7_analysis.R | no_license | mcolvin/ms_occ_model | R | false | false | 1,592 | r | # (1=gill, 2=heart, 3=liver, 4=spleen, 5=kidney)
params<- c("psi_z","psi_organ","p","sifAB","sifBC","sifAC","sifAD","sifBD","sifCD")
inits<- function(t){
list(theta=runif(15),eta=runif(20), beta=runif(20)
)}
# BUNDLE DATA UP
combos<-as.matrix(expand.grid(c(0,1),c(0,1),c(0,1),c(0,1)))
dat<- list(yyy=analys... |
rm(list=ls())
library(data.table)
library(reshape2)
library(ggplot2)
library(gridExtra)
library(ggExtra)
library(ggpubr)
library(stringr)
library(stats)
library(zoo)
library(grid)
library(lme4)
set.seed(1)
g_legend <- function(a.gplot){
tmp <- ggplot_gtable(ggplot_build(a.gplot))
leg <- which(sapply(tmp$grobs, ... | /Figure_Generating_Scripts/Supp5.R | permissive | jccvila/VilaLiuSanchez2020 | R | false | false | 3,480 | r | rm(list=ls())
library(data.table)
library(reshape2)
library(ggplot2)
library(gridExtra)
library(ggExtra)
library(ggpubr)
library(stringr)
library(stats)
library(zoo)
library(grid)
library(lme4)
set.seed(1)
g_legend <- function(a.gplot){
tmp <- ggplot_gtable(ggplot_build(a.gplot))
leg <- which(sapply(tmp$grobs, ... |
function (s,b,t,case)
{
C=case
if (C == 1) {
S = rnorm(s)
}
else if(C == 2){
S = rpois(s,7)
}
else if(C == 3){
S = rchisq(s,2)
}
else if(C == 4){
S = rbeta(s,2,3)
}
else{
print("Case incorrect")
end
}
Var = c(1)
for(k in 0:t-1)
{
X = sample(S,b,replace = T)
Var[k] = var(X)
}
hist(Var)
} | /bootstrap.R | no_license | CityChicken/R-Scripts | R | false | false | 317 | r | function (s,b,t,case)
{
C=case
if (C == 1) {
S = rnorm(s)
}
else if(C == 2){
S = rpois(s,7)
}
else if(C == 3){
S = rchisq(s,2)
}
else if(C == 4){
S = rbeta(s,2,3)
}
else{
print("Case incorrect")
end
}
Var = c(1)
for(k in 0:t-1)
{
X = sample(S,b,replace = T)
Var[k] = var(X)
}
hist(Var)
} |
## ---------------------------
##
## Script name: ui.R
##
## Purpose of script: Specifies user interface for coronaRisk app
##
## Author: Ben Phillips
##
## Date Created: 2020-03-12
##
## Email: phillipsb@unimelb.edu.au
##
## ---------------------------
##
## Notes:
##
##
## --------------------------
## load up th... | /ui.R | permissive | benflips/nCovForecastOz | R | false | false | 4,589 | r | ## ---------------------------
##
## Script name: ui.R
##
## Purpose of script: Specifies user interface for coronaRisk app
##
## Author: Ben Phillips
##
## Date Created: 2020-03-12
##
## Email: phillipsb@unimelb.edu.au
##
## ---------------------------
##
## Notes:
##
##
## --------------------------
## load up th... |
#Put Necessary Libraries Here
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(dplyr)
library(ggthemes)
library(plotly)
library(ggplot2)
library(tidyverse)
library(modelr)
library(broom)
library(glmnet)
library(kableExtra)
library(scales)
#Load cleaned data from Variable_Addition.R
nhl.clean=read.csv('nhl... | /Summarize.R | no_license | hufinger/NHL_Research | R | false | false | 6,628 | r | #Put Necessary Libraries Here
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(dplyr)
library(ggthemes)
library(plotly)
library(ggplot2)
library(tidyverse)
library(modelr)
library(broom)
library(glmnet)
library(kableExtra)
library(scales)
#Load cleaned data from Variable_Addition.R
nhl.clean=read.csv('nhl... |
% Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
%
% $Id: buckley.Rd 332 2010-01-29 16:54:07Z bjw34032 $
\name{Buckley}
\alias{buckley}
\alias{breast}
\alias{meningioma}
\title{Simulated Data from Buckley (2002)}
\description{
In Buckley (2002) tissue residue curves for a M... | /branches/dcemriS4lomis/man/buckley.Rd | permissive | bjw34032/dcemri | R | false | false | 2,079 | rd | % Part of the dcemri package for R
% Distributed under the BSD license: see dcemri/COPYING
%
% $Id: buckley.Rd 332 2010-01-29 16:54:07Z bjw34032 $
\name{Buckley}
\alias{buckley}
\alias{breast}
\alias{meningioma}
\title{Simulated Data from Buckley (2002)}
\description{
In Buckley (2002) tissue residue curves for a M... |
#' Create simulation object
#'
#' @param file \code{character} path to the simulation file
#' @param irun \code{character} name of the simulation column
#' @param idv \code{character} name of the ind. variable
#' @export
#' @example inst/examples/vpc.R
pmx_sim <- function(
file,
... | /R/pmxClass.R | no_license | agstudy/ggPMX | R | false | false | 30,384 | r |
#' Create simulation object
#'
#' @param file \code{character} path to the simulation file
#' @param irun \code{character} name of the simulation column
#' @param idv \code{character} name of the ind. variable
#' @export
#' @example inst/examples/vpc.R
pmx_sim <- function(
file,
... |
pztp <-
function(y,lambda){
dummy<-exp(-lambda)
#cat(paste("length of dummy: ",length(dummy),"\n"))
#cat(paste("length of ppois: ",length(ppois(y,lambda)),"\n"))
#cat(paste("---\n"))
out<-(ppois(y,lambda)-dummy)/(1-dummy)
out[y<1]=0
return(out)
}
| /R/pztp.R | no_license | cran/CopulaRegression | R | false | false | 269 | r | pztp <-
function(y,lambda){
dummy<-exp(-lambda)
#cat(paste("length of dummy: ",length(dummy),"\n"))
#cat(paste("length of ppois: ",length(ppois(y,lambda)),"\n"))
#cat(paste("---\n"))
out<-(ppois(y,lambda)-dummy)/(1-dummy)
out[y<1]=0
return(out)
}
|
testlist <- list(x = numeric(0), y = 0)
result <- do.call(netrankr:::checkPairs,testlist)
str(result) | /netrankr/inst/testfiles/checkPairs/libFuzzer_checkPairs/checkPairs_valgrind_files/1612882890-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 101 | r | testlist <- list(x = numeric(0), y = 0)
result <- do.call(netrankr:::checkPairs,testlist)
str(result) |
# Remove last element of array
vars.group.bydf <- c('23','dfa', 'wer')
vars.group.bydf[-length(vars.group.bydf)]
| /support/array/general.R | permissive | lnsongxf/R4Econ | R | false | false | 113 | r | # Remove last element of array
vars.group.bydf <- c('23','dfa', 'wer')
vars.group.bydf[-length(vars.group.bydf)]
|
% Generated by roxygen2 (4.0.2): do not edit by hand
\docType{package}
\name{testthat}
\alias{testthat}
\alias{testthat-package}
\title{R package to make testing fun!}
\description{
Try the example below. Have a look at the references and learn more
from function documentation such as \code{\link{expect_that}}.
}
\deta... | /testthat/man/testthat.Rd | no_license | radfordneal/R-package-mods | R | false | false | 914 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{package}
\name{testthat}
\alias{testthat}
\alias{testthat-package}
\title{R package to make testing fun!}
\description{
Try the example below. Have a look at the references and learn more
from function documentation such as \code{\link{expect_that}}.
}
\deta... |
/Scooping Rules.R | no_license | tamaramdg/Software_Actuarial_lll | R | false | false | 431 | r | ||
data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
data1$Date <- as.Date(data1$Date, format="%d/%m/%Y")
datetime <- paste(as.Date(data... | /plot2.R | no_license | florin-dot/ExData_Plotting1 | R | false | false | 562 | r | data_full <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
data1 <- subset(data_full, Date %in% c("1/2/2007","2/2/2007"))
data1$Date <- as.Date(data1$Date, format="%d/%m/%Y")
datetime <- paste(as.Date(data... |
\name{nb_exc}
\alias{nb_exc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Values higher or equal to Zobs
%% ~~function to do ... ~~
}
\description{ Computes how many values of the data set z are higher or equal to the test statistic x0.
%% ~~ A concise (1-5 lines) description of what ... | /nb_exc.Rd | no_license | mariondechallens/Second-Internship | R | false | false | 1,241 | rd | \name{nb_exc}
\alias{nb_exc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Values higher or equal to Zobs
%% ~~function to do ... ~~
}
\description{ Computes how many values of the data set z are higher or equal to the test statistic x0.
%% ~~ A concise (1-5 lines) description of what ... |
library(tidyverse)
df <- tibble(X1= c(6,5,8,4,7,3,1,2,2,5,3,2), X2= c(7,9,6,9,9,3,6,3,3,1,1,3),X3=c("A","A","A","A","A","B","B","B","C","C","C","C") )
df<-read_table2(file="data/T11-7.txt", col_names = F)
df
group_column <- "X3"
group_column <- "X6"
groupnames<-df %>% select(group_column) %>% unique()
factors <- df %>%... | /MANOVA_test.R | no_license | emilwest/multivariate-theory | R | false | false | 7,586 | r | library(tidyverse)
df <- tibble(X1= c(6,5,8,4,7,3,1,2,2,5,3,2), X2= c(7,9,6,9,9,3,6,3,3,1,1,3),X3=c("A","A","A","A","A","B","B","B","C","C","C","C") )
df<-read_table2(file="data/T11-7.txt", col_names = F)
df
group_column <- "X3"
group_column <- "X6"
groupnames<-df %>% select(group_column) %>% unique()
factors <- df %>%... |
library("knitr")
library("rgl")
#knit("4-Methylanilin.Rmd")
#markdownToHTML('4-Methylanilin.md', '4-Methylanilin.html', options=c("use_xhml"))
#system("pandoc -s 4-Methylanilin.html -o 4-Methylanilin.pdf")
knit2html('4-Methylanilin.Rmd')
| /FDA_Pesticide_Glossary/4-Methylanilin.R | permissive | andrewdefries/andrewdefries.github.io | R | false | false | 240 | r | library("knitr")
library("rgl")
#knit("4-Methylanilin.Rmd")
#markdownToHTML('4-Methylanilin.md', '4-Methylanilin.html', options=c("use_xhml"))
#system("pandoc -s 4-Methylanilin.html -o 4-Methylanilin.pdf")
knit2html('4-Methylanilin.Rmd')
|
#讀取檔案NBA2016-17球季全聯盟30隊各項攻擊均數
NBA1617Analysis <- read.csv("NBA1617TeamPerGameStatsAll.csv",header=T,sep = ",")
attach(NBA1617Analysis)
#籃球是以單位時間內得分多寡為勝負的比賽,先利用球隊場均得分進行敘述統計演練
NBATEAMPTS <- NBA1617Analysis$PTS
#設定顯示2X2圖形框
par(mfrow=c(2,2))
#顯示各隊均分圖形
hist(NBATEAMPTS)
dotchart(NBATEAMPTS)
boxplot(NBATEAMPTS)
qqnorm(NBATEA... | /FinalReport/NBA1060502.R | no_license | KuChanTung/R | R | false | false | 4,906 | r |
#讀取檔案NBA2016-17球季全聯盟30隊各項攻擊均數
NBA1617Analysis <- read.csv("NBA1617TeamPerGameStatsAll.csv",header=T,sep = ",")
attach(NBA1617Analysis)
#籃球是以單位時間內得分多寡為勝負的比賽,先利用球隊場均得分進行敘述統計演練
NBATEAMPTS <- NBA1617Analysis$PTS
#設定顯示2X2圖形框
par(mfrow=c(2,2))
#顯示各隊均分圖形
hist(NBATEAMPTS)
dotchart(NBATEAMPTS)
boxplot(NBATEAMPTS)
qqnorm(NBATEA... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fixtext.R
\name{fixtext}
\alias{fixtext}
\title{standardize text within columns of a dataframe}
\usage{
fixtext(df, colnames)
}
\arguments{
\item{df}{dataframe whose column text you want to standardize}
}
\description{
standardize text within... | /man/fixtext.Rd | no_license | johnfrye/fryeR | R | false | true | 346 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fixtext.R
\name{fixtext}
\alias{fixtext}
\title{standardize text within columns of a dataframe}
\usage{
fixtext(df, colnames)
}
\arguments{
\item{df}{dataframe whose column text you want to standardize}
}
\description{
standardize text within... |
###############################################################################
##
## Working with Quandl
##
###############################################################################
library(Quandl)
library(quantmod)
Quandl.auth("9FgxcyZLUuPWmU3Ak6LA")
assignInNamespace('Quandl.host', 'http://www.quandl.c... | /scripts/oilprice.R | no_license | dainiuxt/RData | R | false | false | 883 | r | ###############################################################################
##
## Working with Quandl
##
###############################################################################
library(Quandl)
library(quantmod)
Quandl.auth("9FgxcyZLUuPWmU3Ak6LA")
assignInNamespace('Quandl.host', 'http://www.quandl.c... |
# In this example the k-means clustering method is used to cluster a given toy
# data set. In k-means clustering one tries to partition n observations into k
# clusters in which each observation belongs to the cluster with the nearest mean.
# The algorithm class constructor takes the number of clusters and a distance t... | /build/shogun_lib/examples/documented/r_static/clustering_kmeans.R | no_license | behollis/muViewBranch | R | false | false | 885 | r | # In this example the k-means clustering method is used to cluster a given toy
# data set. In k-means clustering one tries to partition n observations into k
# clusters in which each observation belongs to the cluster with the nearest mean.
# The algorithm class constructor takes the number of clusters and a distance t... |
tsppath <- function(nodes, startpoint=NULL, type="tsp", method="farthest")
{
setuplocalization("STATS_TSP")
procname=gtxt("Traveling Salesperson Analysis")
warningsprocname = gtxt("Traveling Salesperson Analysis: Warnings")
omsid="STATSTSP"
warns = Warn(procname=warningsprocname,omsid=omsid)
... | /src/STATS_TSP.R | permissive | IBMPredictiveAnalytics/Traveling_Salesperson_Problem | R | false | false | 7,946 | r | tsppath <- function(nodes, startpoint=NULL, type="tsp", method="farthest")
{
setuplocalization("STATS_TSP")
procname=gtxt("Traveling Salesperson Analysis")
warningsprocname = gtxt("Traveling Salesperson Analysis: Warnings")
omsid="STATSTSP"
warns = Warn(procname=warningsprocname,omsid=omsid)
... |
library(PermAlgo)
### Name: PermAlgo-package
### Title: Generate Event Times Conditional On Time-Dependent Covariates
### Aliases: PermAlgo-package PermAlgo
### Keywords: survival
### ** Examples
# Example - Generating adverse event conditional on use
# of prescription drugs
# Prepare the matrice of covariate (Xm... | /data/genthat_extracted_code/PermAlgo/examples/PermAlgo-package.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 2,194 | r | library(PermAlgo)
### Name: PermAlgo-package
### Title: Generate Event Times Conditional On Time-Dependent Covariates
### Aliases: PermAlgo-package PermAlgo
### Keywords: survival
### ** Examples
# Example - Generating adverse event conditional on use
# of prescription drugs
# Prepare the matrice of covariate (Xm... |
## This set of functions allow to cache a matrix and its inverse ('makeCacheMatrix')
## or to compute it in case it is not already cached ('cacheSolve')
## Matrix object that cache its data and inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
# TODO: Check if x == ... | /cachematrix.R | no_license | jgsogo/ProgrammingAssignment2 | R | false | false | 920 | r | ## This set of functions allow to cache a matrix and its inverse ('makeCacheMatrix')
## or to compute it in case it is not already cached ('cacheSolve')
## Matrix object that cache its data and inverse
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
# TODO: Check if x == ... |
library(tidyverse)
silk <- seq(from=-10, to=10, by = 0.04) %>%
expand.grid(x=., y=.) %>%
ggplot(aes(x=(x+pi*sin(y)), y=(y+pi*sin(x)))) +
geom_point(alpha=.1, shape=20, size=0) +
theme_void()
ggsave(silk, filename="C://Users/aless/Desktop/silk.png", dpi=500, type = "cairo",width = 8)
square <- seq(from=-10,... | /Silk/silk.R | no_license | alearrigo/aRt | R | false | false | 1,674 | r | library(tidyverse)
silk <- seq(from=-10, to=10, by = 0.04) %>%
expand.grid(x=., y=.) %>%
ggplot(aes(x=(x+pi*sin(y)), y=(y+pi*sin(x)))) +
geom_point(alpha=.1, shape=20, size=0) +
theme_void()
ggsave(silk, filename="C://Users/aless/Desktop/silk.png", dpi=500, type = "cairo",width = 8)
square <- seq(from=-10,... |
\name{lpmvnorm}
\alias{lpmvnorm}
\alias{slpmvnorm}
\alias{ldmvnorm}
\alias{sldmvnorm}
\alias{ldpmvnorm}
\alias{sldpmvnorm}
\title{
Multivariate Normal Log-likelihood and Score Functions
}
\description{
Computes the log-likelihood (contributions) of multiple exact or
interval-censored observations (or a mix... | /man/lpmvnorm.Rd | no_license | cran/mvtnorm | R | false | false | 6,107 | rd | \name{lpmvnorm}
\alias{lpmvnorm}
\alias{slpmvnorm}
\alias{ldmvnorm}
\alias{sldmvnorm}
\alias{ldpmvnorm}
\alias{sldpmvnorm}
\title{
Multivariate Normal Log-likelihood and Score Functions
}
\description{
Computes the log-likelihood (contributions) of multiple exact or
interval-censored observations (or a mix... |
rm(list=ls())
repenv <- Sys.getenv("SLURM_ARRAY_TASK_ID")
i <- as.numeric(repenv)
set.seed(1000 + i)
library(Rcpp, lib.loc = 'packages')
library(RcppArmadillo, lib.loc = 'packages')
library(RcppEigen, lib.loc = 'packages')
library(rstan, lib.loc = 'packages')
source('slurm_RFuns.R')
sourceCpp('slurm_cppFuns.cpp')
ids... | /slurm_timing.R | no_license | NTomasetti/OHF | R | false | false | 2,670 | r | rm(list=ls())
repenv <- Sys.getenv("SLURM_ARRAY_TASK_ID")
i <- as.numeric(repenv)
set.seed(1000 + i)
library(Rcpp, lib.loc = 'packages')
library(RcppArmadillo, lib.loc = 'packages')
library(RcppEigen, lib.loc = 'packages')
library(rstan, lib.loc = 'packages')
source('slurm_RFuns.R')
sourceCpp('slurm_cppFuns.cpp')
ids... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sociality-indices.R
\name{fit_dyadic_regression}
\alias{fit_dyadic_regression}
\title{Fit dyadic index regression on subset of data}
\usage{
fit_dyadic_regression(df)
}
\arguments{
\item{df}{A subset of data on which to fit a regression of in... | /man/fit_dyadic_regression.Rd | no_license | amboseli/ramboseli | R | false | true | 504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sociality-indices.R
\name{fit_dyadic_regression}
\alias{fit_dyadic_regression}
\title{Fit dyadic index regression on subset of data}
\usage{
fit_dyadic_regression(df)
}
\arguments{
\item{df}{A subset of data on which to fit a regression of in... |
# Unzip the file with the data
file.zip <- file.path(".", "activity.zip")
file.csv <- file.path(".", "activity.csv")
if(file.exists(file.zip) & !file.exists(file.csv)) {unzip(file.zip)}
# Read the CSV file
data <- read.csv(file.csv, header = TRUE, stringsAsFactors = FALSE)
# Show first few lines
head(data)
# Transfo... | /run_analysis.R | no_license | thesfinox/RepData_PeerAssessment1 | R | false | false | 5,906 | r | # Unzip the file with the data
file.zip <- file.path(".", "activity.zip")
file.csv <- file.path(".", "activity.csv")
if(file.exists(file.zip) & !file.exists(file.csv)) {unzip(file.zip)}
# Read the CSV file
data <- read.csv(file.csv, header = TRUE, stringsAsFactors = FALSE)
# Show first few lines
head(data)
# Transfo... |
#' Multi-Species Indicator
#'
#' @description A simple wrapper for \code{msi_tool} to make it easier to use in R.
#' Multi-Species Indicators (MSI) are biodiversity indicators that combine the population
#' development of species into a single indicator. The MSI-tool calculates an MSI, confidence intervals
#' for the ... | /R/msi.R | no_license | BiologicalRecordsCentre/BRCindicators | R | false | false | 5,290 | r | #' Multi-Species Indicator
#'
#' @description A simple wrapper for \code{msi_tool} to make it easier to use in R.
#' Multi-Species Indicators (MSI) are biodiversity indicators that combine the population
#' development of species into a single indicator. The MSI-tool calculates an MSI, confidence intervals
#' for the ... |
library("RPostgreSQL")
library(DT)
library(tidytext)
library(dplyr)
library(stringr)
library(sentimentr)
library(ggplot2)
library(RColorBrewer)
library(readr)
library(SnowballC)
library(tm)
library(wordcloud)
library(reticulate)
library(crfsuite)
library(ggplot2)
library(textcat)
library(broom)
library(caTools)
library... | /dummies.r | no_license | ksnyder1986/DAAN888Group8 | R | false | false | 14,659 | r | library("RPostgreSQL")
library(DT)
library(tidytext)
library(dplyr)
library(stringr)
library(sentimentr)
library(ggplot2)
library(RColorBrewer)
library(readr)
library(SnowballC)
library(tm)
library(wordcloud)
library(reticulate)
library(crfsuite)
library(ggplot2)
library(textcat)
library(broom)
library(caTools)
library... |
#' Automatic Statistical Identification in Complex Spectra
#'
#' Quantification of 1D 1H NMR spectra with ASICS method using a library of
#' pure metabolite spectra. The method is presented in Tardivel et al. (2017).
#'
#' @param spectra_obj An object of class \linkS4class{Spectra} obtained with the
#' function \link{c... | /R/ASICS.R | no_license | GaelleLefort/ASICS | R | false | false | 10,235 | r | #' Automatic Statistical Identification in Complex Spectra
#'
#' Quantification of 1D 1H NMR spectra with ASICS method using a library of
#' pure metabolite spectra. The method is presented in Tardivel et al. (2017).
#'
#' @param spectra_obj An object of class \linkS4class{Spectra} obtained with the
#' function \link{c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.