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 |
|---|---|---|---|---|---|---|---|---|---|
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536289986e+146, 1.19949487818226e-227, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613112519-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 257 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536289986e+146, 1.19949487818226e-227, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
## Keeping Homeless Youth off Opioids
rm(list=ls())
library(openxlsx)
library(mice)
options(java.parameters = "-Xmx5g", memcache_for_speed=F)
library(bartMachine)
library(AUC)
library(caret)
#setwd("~/Box Sync/Drug Project/Final Version")
## reading data
dat=read.xlsx("NewData_Final(Version4).xlsx")[,-1] ## Final cle... | /OpioidProject.R | no_license | Roopali24/OpioidProject | R | false | false | 7,464 | r | ## Keeping Homeless Youth off Opioids
rm(list=ls())
library(openxlsx)
library(mice)
options(java.parameters = "-Xmx5g", memcache_for_speed=F)
library(bartMachine)
library(AUC)
library(caret)
#setwd("~/Box Sync/Drug Project/Final Version")
## reading data
dat=read.xlsx("NewData_Final(Version4).xlsx")[,-1] ## Final cle... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{toy_course}
\alias{toy_course}
\title{Course data for examples}
\format{
\code{data.table} with 4616 rows and 6 columns keyed by student ID.
\describe{
\item{\code{mcid}}{Character, anonymized student ID.}
\item... | /man/toy_course.Rd | permissive | MIDFIELDR/midfieldr | R | false | true | 1,145 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{toy_course}
\alias{toy_course}
\title{Course data for examples}
\format{
\code{data.table} with 4616 rows and 6 columns keyed by student ID.
\describe{
\item{\code{mcid}}{Character, anonymized student ID.}
\item... |
########################################
## ##
## INTRODUÇÃO AO PROGRAMA ESTATÍSCO R ##
## ##
########################################
# Limpar o ambiente
rm(list=ls())
#### Teste t de Student ####
dados1<-read.table(file.choose(),sep... | /Curso_R_Aula_2/Aula_2.R | no_license | vanderfsouza/cursor.github.io | R | false | false | 9,241 | r | ########################################
## ##
## INTRODUÇÃO AO PROGRAMA ESTATÍSCO R ##
## ##
########################################
# Limpar o ambiente
rm(list=ls())
#### Teste t de Student ####
dados1<-read.table(file.choose(),sep... |
\name{dbgpd_psineglog}
\alias{dbgpd_psineglog}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
internal
}
\description{
internal use only
}
\usage{
dbgpd_psineglog(x, y, mar1 = c(0, 1, 0.1), mar2 = c(0, 1, 0.1), dep = 2, asy = 0, p = 3, ...)
}
%- maybe also 'usage' for other objects d... | /man/dbgpd_psineglog.Rd | no_license | muguangyuze/mgpd | R | false | false | 4,327 | rd | \name{dbgpd_psineglog}
\alias{dbgpd_psineglog}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
internal
}
\description{
internal use only
}
\usage{
dbgpd_psineglog(x, y, mar1 = c(0, 1, 0.1), mar2 = c(0, 1, 0.1), dep = 2, asy = 0, p = 3, ...)
}
%- maybe also 'usage' for other objects d... |
## Charger les librairies necessaires
library(leaflet)
library(RColorBrewer)
library(tidyverse)
final<-read_csv2("C:/Users/pc/Desktop/memoire de fin d'etude/donnees soter.csv")
##Nettoyage du fichier importer
final<-final%>%dplyr::filter(!is.na(LNGI),!is.na(LATI),!is.na(total_carbone))
## Transformation pour obte... | /soter.R | no_license | morandiaye/Interactive-Map | R | false | false | 1,318 | r |
## Charger les librairies necessaires
library(leaflet)
library(RColorBrewer)
library(tidyverse)
final<-read_csv2("C:/Users/pc/Desktop/memoire de fin d'etude/donnees soter.csv")
##Nettoyage du fichier importer
final<-final%>%dplyr::filter(!is.na(LNGI),!is.na(LATI),!is.na(total_carbone))
## Transformation pour obte... |
#' API Key for BioOntology
#'
#' Enter your personal key to allow access via additional functions
#'
#' @param apikey Enter your API key
#' @details To get an API key, create an account on https://bioportal.bioontology.org/login
#' Go to 'Account Settings' via your username, there you will find the API Key
#'
#' @expor... | /R/yourAPIKey.R | no_license | KrishnaTO/OntologyTermAggregator | R | false | false | 397 | r | #' API Key for BioOntology
#'
#' Enter your personal key to allow access via additional functions
#'
#' @param apikey Enter your API key
#' @details To get an API key, create an account on https://bioportal.bioontology.org/login
#' Go to 'Account Settings' via your username, there you will find the API Key
#'
#' @expor... |
library(aRpsDCA)
### Name: arps.eur
### Title: EUR and time-to-limit for Arps decline curves
### Aliases: arps.eur arps.t.el
### ** Examples
## exponential decline with
## qi = 1000 Mscf/d, Di = 95% effective / year
## EUR with economic limit 10 Mscf/d
decline <- arps.decline(1000,
as.nominal(0.95, from.period=... | /data/genthat_extracted_code/aRpsDCA/examples/eur.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 640 | r | library(aRpsDCA)
### Name: arps.eur
### Title: EUR and time-to-limit for Arps decline curves
### Aliases: arps.eur arps.t.el
### ** Examples
## exponential decline with
## qi = 1000 Mscf/d, Di = 95% effective / year
## EUR with economic limit 10 Mscf/d
decline <- arps.decline(1000,
as.nominal(0.95, from.period=... |
#Analysis script for the three-detector light scattering data (lysozyme experiments)
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
try(sapply(pkg, require, character.only = TRUE), silent = TRUE)
}
packag... | /lysozyme/lysozyme.data.preprocess.R | no_license | fyin-stats/bayes-light-scattering | R | false | false | 16,522 | r | #Analysis script for the three-detector light scattering data (lysozyme experiments)
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
try(sapply(pkg, require, character.only = TRUE), silent = TRUE)
}
packag... |
# Marissa's paper
#
# An attempt to recreate Marissa's analysis in A Retrospective Analysis.
# I've added way more cross validation, but stuck generally to her datasets
# and approach.
#
# This is a cleaned up version of marissa.R
#
# bmh Oct 2011 - Oct 2012
# LIBRARIES
# Load the janus data
setwd('~/janus')
source... | /scripts/exp/marissa3.R | no_license | benjaminhaley/janus | R | false | false | 14,993 | r | # Marissa's paper
#
# An attempt to recreate Marissa's analysis in A Retrospective Analysis.
# I've added way more cross validation, but stuck generally to her datasets
# and approach.
#
# This is a cleaned up version of marissa.R
#
# bmh Oct 2011 - Oct 2012
# LIBRARIES
# Load the janus data
setwd('~/janus')
source... |
rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
## Check that state and outcome are valid
## Return hospital name in that state with the given rank
## 30-day death rate
intOutcome<-0
if (outcome=="heart attack")
intOutcome<-11
else if (outcome=... | /rankhospital.R | no_license | NikhilsCodeHub/ProgrammingAssignment3 | R | false | false | 1,657 | r | rankhospital <- function(state, outcome, num = "best") {
## Read outcome data
## Check that state and outcome are valid
## Return hospital name in that state with the given rank
## 30-day death rate
intOutcome<-0
if (outcome=="heart attack")
intOutcome<-11
else if (outcome=... |
library(shiny)
library(dplyr)
library(ggplot2)
data <- read.csv("1976-2016-president.csv")
data <- filter(data, (party == "democrat" | party == "republican") & (writein == FALSE))
data <- data %>%
mutate(percent_votes = data$candidatevotes/data$totalvotes)
createStatePlot <- function(st){
state_data... | /server.R | no_license | AllenLin8/finalDDPproject | R | false | false | 1,512 | r | library(shiny)
library(dplyr)
library(ggplot2)
data <- read.csv("1976-2016-president.csv")
data <- filter(data, (party == "democrat" | party == "republican") & (writein == FALSE))
data <- data %>%
mutate(percent_votes = data$candidatevotes/data$totalvotes)
createStatePlot <- function(st){
state_data... |
path_min_j3dtc <- function(p, params){
# Create minimization function to find transformation at J1 (U joint) that minimizes
# J3 (S joint) distance from circle at J2 (R joint)
# Transform points
tmat1 <- tmat2 <- tmat3 <- diag(4)
tmat1[1:3, 4] <- params[['U_cor']]
for(i in 1:2){
RM <- tMatrixEP(params[['U_ax... | /R/path_min_j3dtc.R | no_license | aaronolsen/linkR | R | false | false | 1,144 | r | path_min_j3dtc <- function(p, params){
# Create minimization function to find transformation at J1 (U joint) that minimizes
# J3 (S joint) distance from circle at J2 (R joint)
# Transform points
tmat1 <- tmat2 <- tmat3 <- diag(4)
tmat1[1:3, 4] <- params[['U_cor']]
for(i in 1:2){
RM <- tMatrixEP(params[['U_ax... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/list_microbiome_data.R
\name{list_microbiome_data}
\alias{list_microbiome_data}
\title{List of available datasets}
\usage{
list_microbiome_data(printtab = TRUE)
}
\arguments{
\item{printtab}{Print in console or not, defaut is TRUE an... | /man/list_microbiome_data.Rd | no_license | microsud/microbiomeutilities | R | false | true | 809 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/list_microbiome_data.R
\name{list_microbiome_data}
\alias{list_microbiome_data}
\title{List of available datasets}
\usage{
list_microbiome_data(printtab = TRUE)
}
\arguments{
\item{printtab}{Print in console or not, defaut is TRUE an... |
#
# 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)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... | /shiny/ui.R | no_license | AbhirupSinha/DataCrawler | R | false | false | 1,098 | 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)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetIndices.R
\name{GetIndices}
\alias{GetIndices}
\title{GetIndices}
\usage{
GetIndices(spp = NULL, alpha = NULL)
}
\arguments{
\item{alpha}{Vector of alpha codes for species of interest}
}
\value{
Data frame containing annual estimates of th... | /man/GetIndices.Rd | no_license | crushing05/BayesCorrOcc | R | false | true | 851 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GetIndices.R
\name{GetIndices}
\alias{GetIndices}
\title{GetIndices}
\usage{
GetIndices(spp = NULL, alpha = NULL)
}
\arguments{
\item{alpha}{Vector of alpha codes for species of interest}
}
\value{
Data frame containing annual estimates of th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scroll_box.R
\name{scroll_box}
\alias{scroll_box}
\title{Put a HTML table into a scrollable box}
\usage{
scroll_box(kable_input, height = NULL, width = NULL,
box_css = "border: 1px solid #ddd; padding: 5px; ", extra_css = NULL)
}
\arguments... | /man/scroll_box.Rd | no_license | isteves/kableExtra | R | false | true | 725 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scroll_box.R
\name{scroll_box}
\alias{scroll_box}
\title{Put a HTML table into a scrollable box}
\usage{
scroll_box(kable_input, height = NULL, width = NULL,
box_css = "border: 1px solid #ddd; padding: 5px; ", extra_css = NULL)
}
\arguments... |
# hari ke 5
# Exploratory data analysis (EDA)
library(tidyverse)
library(skimr) # membuat summary
# eksplorasi data -----
df_diamonds = diamonds
?diamonds
glimpse(df_diamonds)
df_diamonds %>%
ggplot(aes(x = clarity)) +
geom_bar()
?glimpse()
glimpse(df_diamonds)
## rangkuman
summary(df_diamonds) # rangkuman d... | /script2/day-05.R | no_license | eppofahmi/hujanetc | R | false | false | 5,622 | r | # hari ke 5
# Exploratory data analysis (EDA)
library(tidyverse)
library(skimr) # membuat summary
# eksplorasi data -----
df_diamonds = diamonds
?diamonds
glimpse(df_diamonds)
df_diamonds %>%
ggplot(aes(x = clarity)) +
geom_bar()
?glimpse()
glimpse(df_diamonds)
## rangkuman
summary(df_diamonds) # rangkuman d... |
# The idea is these arrangements of nodes are transient- so they
# can instantiate narrowing from the rel_op nodes.
# Some of these can also be implemented as modifiers on previous nodes
# to try and cut down the amount of query nesting.
#' pre_sql_identifier: abstract name of a column and where it is comming from
... | /R/pre_sql.R | no_license | YTLogos/rquery | R | false | false | 11,673 | r |
# The idea is these arrangements of nodes are transient- so they
# can instantiate narrowing from the rel_op nodes.
# Some of these can also be implemented as modifiers on previous nodes
# to try and cut down the amount of query nesting.
#' pre_sql_identifier: abstract name of a column and where it is comming from
... |
getwd()
setwd("D:/Courses/2nd Year/Final exam/Exam/7")
data=read.csv("Liver_data.csv",header = FALSE,col.names = c("1", "2", "3", "4", "5", "6", "7") )
str(data)
summary(data)
x=data[,1:5]
y=data[,6]
fit=kmeans(x,4)
library(class)
knnfit = knn(fit$centers,x,as.factor(c(-2,-1,1,2)))
e=1-sum(k... | /Intro to Data Mining/Final exam/Exam/7/7.R | no_license | mranirudhboddu/-Sp-Data_Science_2019501125 | R | false | false | 370 | r | getwd()
setwd("D:/Courses/2nd Year/Final exam/Exam/7")
data=read.csv("Liver_data.csv",header = FALSE,col.names = c("1", "2", "3", "4", "5", "6", "7") )
str(data)
summary(data)
x=data[,1:5]
y=data[,6]
fit=kmeans(x,4)
library(class)
knnfit = knn(fit$centers,x,as.factor(c(-2,-1,1,2)))
e=1-sum(k... |
suppressPackageStartupMessages({
library(scater)
library(SingleCellExperiment)
library(TENxPBMCData)
})
sce <- TENxPBMCData("pbmc68k")
counts(sce) <- as(counts(sce), "dgCMatrix")
url <- "https://github.com/10XGenomics/single-cell-3prime-paper/raw/master/pbmc68k_analysis/68k_pbmc_barcodes_annotation.tsv"
f... | /scripts/00-get_data-Zheng17.R | no_license | jligm-hash/simulation-comparison | R | false | false | 1,109 | r | suppressPackageStartupMessages({
library(scater)
library(SingleCellExperiment)
library(TENxPBMCData)
})
sce <- TENxPBMCData("pbmc68k")
counts(sce) <- as(counts(sce), "dgCMatrix")
url <- "https://github.com/10XGenomics/single-cell-3prime-paper/raw/master/pbmc68k_analysis/68k_pbmc_barcodes_annotation.tsv"
f... |
#' @include joinLocEvent.R
#'
#' @title joinTreeNotes: compiles tree notes
#'
#' @importFrom dplyr filter inner_join mutate select
#' @importFrom magrittr %>%
#'
#' @description This function combines all tree-level notes recorded in a given visit. N
#'
#' @param park Combine data from all parks or one or more parks at... | /R/joinTreeNotes.R | permissive | KateMMiller/forestMIDN | R | false | false | 4,553 | r | #' @include joinLocEvent.R
#'
#' @title joinTreeNotes: compiles tree notes
#'
#' @importFrom dplyr filter inner_join mutate select
#' @importFrom magrittr %>%
#'
#' @description This function combines all tree-level notes recorded in a given visit. N
#'
#' @param park Combine data from all parks or one or more parks at... |
# JAZ; 2015-11-30
# listing table names in MFE database
# fpath - file path of database file location; currently defaults to Jake's computer location
# dbname - name of database, default is 'MFEdb_20170202.db' ; maybe change to current version so we don't have to continue to update this function
dbTableList<-funct... | /R_code/dbTableList.R | no_license | jzwart/Zwart_update_20180626 | R | false | false | 729 | r | # JAZ; 2015-11-30
# listing table names in MFE database
# fpath - file path of database file location; currently defaults to Jake's computer location
# dbname - name of database, default is 'MFEdb_20170202.db' ; maybe change to current version so we don't have to continue to update this function
dbTableList<-funct... |
context("Calc annual flow timing")
test_that("creates a dataframe with the proper columns", {
skip_on_cran()
skip_on_travis()
data <- calc_annual_flow_timing(station_number = "08NM116", start_year = 1980)
expect_true(is.data.frame(data) &
ncol(data) == 10 &
all(c("DoY_25pct_Tota... | /tests/testthat/test-calc_annual_flow_timing.R | permissive | Rain3498/fasstr | R | false | false | 2,008 | r | context("Calc annual flow timing")
test_that("creates a dataframe with the proper columns", {
skip_on_cran()
skip_on_travis()
data <- calc_annual_flow_timing(station_number = "08NM116", start_year = 1980)
expect_true(is.data.frame(data) &
ncol(data) == 10 &
all(c("DoY_25pct_Tota... |
library(grpreg)
### Name: AUC.cv.grpsurv
### Title: Calculates AUC for cv.grpsurv objects
### Aliases: AUC AUC.cv.grpsurv
### ** Examples
## Don't show:
set.seed(1)
## End(Don't show)
data(Lung)
X <- Lung$X
y <- Lung$y
group <- Lung$group
cvfit <- cv.grpsurv(X, y, group, returnY=TRUE)
head(AUC(cvfit))
ll <- log(c... | /data/genthat_extracted_code/grpreg/examples/auc.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 453 | r | library(grpreg)
### Name: AUC.cv.grpsurv
### Title: Calculates AUC for cv.grpsurv objects
### Aliases: AUC AUC.cv.grpsurv
### ** Examples
## Don't show:
set.seed(1)
## End(Don't show)
data(Lung)
X <- Lung$X
y <- Lung$y
group <- Lung$group
cvfit <- cv.grpsurv(X, y, group, returnY=TRUE)
head(AUC(cvfit))
ll <- log(c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecs_operations.R
\name{ecs_create_cluster}
\alias{ecs_create_cluster}
\title{Creates a new Amazon ECS cluster}
\usage{
ecs_create_cluster(clusterName, tags, settings, capacityProviders,
defaultCapacityProviderStrategy)
}
\arguments{
\item{c... | /paws/man/ecs_create_cluster.Rd | permissive | sanchezvivi/paws | R | false | true | 5,407 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ecs_operations.R
\name{ecs_create_cluster}
\alias{ecs_create_cluster}
\title{Creates a new Amazon ECS cluster}
\usage{
ecs_create_cluster(clusterName, tags, settings, capacityProviders,
defaultCapacityProviderStrategy)
}
\arguments{
\item{c... |
#
# Andrew Disher
# ATP Summer Project
# Bridgewater State University
# TASK: Determine if there is a significant increase or decrease in average
# temperature over time in Maine.
#
library(lmtest)
# Create a month variable to be used as the X variable in the regression.
Months_Since_1999 <- 1:nrow(ME... | /Maine/ME_TAVG_Regression_To_Assess_Trend.R | no_license | AndrewDisher/New-England-Weather | R | false | false | 1,295 | r |
#
# Andrew Disher
# ATP Summer Project
# Bridgewater State University
# TASK: Determine if there is a significant increase or decrease in average
# temperature over time in Maine.
#
library(lmtest)
# Create a month variable to be used as the X variable in the regression.
Months_Since_1999 <- 1:nrow(ME... |
\name{plot.accrued}
\alias{plot.accrued}
\title{Plot function for accrued data.}
\description{Creates a stacklag difference plots of partially accruing data.}
\usage{ \S3method{plot}{accrued}(x, \dots)}
\arguments{
\item{x}{Object of the \code{accrued} class containing data to be plotted.}
\item{\d... | /man/plot.accrued.Rd | no_license | cran/accrued | R | false | false | 959 | rd | \name{plot.accrued}
\alias{plot.accrued}
\title{Plot function for accrued data.}
\description{Creates a stacklag difference plots of partially accruing data.}
\usage{ \S3method{plot}{accrued}(x, \dots)}
\arguments{
\item{x}{Object of the \code{accrued} class containing data to be plotted.}
\item{\d... |
#reading in the file
working_file <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
destination_file <- "destfile.zip"
if(!file.exists(destination_file)) {
download.file(working_file,
destfile = destination_file,
method = "curl")
unzip(destfile1, exd... | /Q3.R | no_license | mwoodsdewitt/Explotatory_data_wk4 | R | false | false | 1,719 | r | #reading in the file
working_file <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
destination_file <- "destfile.zip"
if(!file.exists(destination_file)) {
download.file(working_file,
destfile = destination_file,
method = "curl")
unzip(destfile1, exd... |
\name{UPsampfordpi2}
\alias{UPsampfordpi2}
\title{Joint inclusion probabilities for Sampford sampling}
\description{
Computes the joint (second-order) inclusion probabilities for Sampford sampling.
}
\usage{
UPsampfordpi2(pik)
}
\arguments{
\item{pik}{vector of the first-order inclusion probabilities.}
}
\v... | /man/UPsampfordpi2.Rd | no_license | cran/sampling | R | false | false | 1,178 | rd | \name{UPsampfordpi2}
\alias{UPsampfordpi2}
\title{Joint inclusion probabilities for Sampford sampling}
\description{
Computes the joint (second-order) inclusion probabilities for Sampford sampling.
}
\usage{
UPsampfordpi2(pik)
}
\arguments{
\item{pik}{vector of the first-order inclusion probabilities.}
}
\v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-random-forest-data.R
\name{load_a_single_csv}
\alias{load_a_single_csv}
\title{Load a single .csv file and output a dplyr dataframe}
\usage{
load_a_single_csv(file_path, ...)
}
\arguments{
\item{file_path}{path to .csv file to load.}
\i... | /man/load_a_single_csv.Rd | no_license | pegoraro/qchlorophyll | R | false | true | 453 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-random-forest-data.R
\name{load_a_single_csv}
\alias{load_a_single_csv}
\title{Load a single .csv file and output a dplyr dataframe}
\usage{
load_a_single_csv(file_path, ...)
}
\arguments{
\item{file_path}{path to .csv file to load.}
\i... |
#' @export
launchApp <- function() {
appDir <- system.file('app', package = 'fastalign')
if (appDir == '') {
stop('Could not find example directory. Try re-installing `fastalign`.', call. = FALSE)
}
shiny::runApp(appDir)
}
| /R/launchApp.R | permissive | Chebuu/fastalign | R | false | false | 235 | r | #' @export
launchApp <- function() {
appDir <- system.file('app', package = 'fastalign')
if (appDir == '') {
stop('Could not find example directory. Try re-installing `fastalign`.', call. = FALSE)
}
shiny::runApp(appDir)
}
|
\name{radiocorr}
\alias{radiocorr}
\title{
Radiometric correction of Landsat data
}
\description{
Implements several different methods for absolute radiometric correction of satellite data.
}
\usage{
radiocorr(x, gain, offset, Grescale, Brescale, sunelev, satzenith = 0, edist,
Esun, Lhaze, method = "apparentreflecta... | /man/radiocorr.Rd | no_license | cran/landsat | R | false | false | 3,553 | rd | \name{radiocorr}
\alias{radiocorr}
\title{
Radiometric correction of Landsat data
}
\description{
Implements several different methods for absolute radiometric correction of satellite data.
}
\usage{
radiocorr(x, gain, offset, Grescale, Brescale, sunelev, satzenith = 0, edist,
Esun, Lhaze, method = "apparentreflecta... |
##Q1: Give the estimate change
data("mtcars")
y<- mtcars$mpg
x1 <- mtcars$cyl
x2 <- mtcars$wt
summary(lm(formula=y~as.factor(x1)+x2))$coeff[3]
##Response = -6.071
##Q2
data("mtcars")
summary(lm(formula=mpg~as.factor(cyl)+wt, data = mtcars))
summary(lm(formula=mpg~as.factor(cyl), data = mtcars))
##Respnse: Holding... | /7-Regression Models/Week3/week3.R | no_license | YvesKamdjo/coursera | R | false | false | 1,217 | r | ##Q1: Give the estimate change
data("mtcars")
y<- mtcars$mpg
x1 <- mtcars$cyl
x2 <- mtcars$wt
summary(lm(formula=y~as.factor(x1)+x2))$coeff[3]
##Response = -6.071
##Q2
data("mtcars")
summary(lm(formula=mpg~as.factor(cyl)+wt, data = mtcars))
summary(lm(formula=mpg~as.factor(cyl), data = mtcars))
##Respnse: Holding... |
## a file containing useful helper functions
#Check to see if output is a "dynamic" format
#Returns TRUE if output is dynamic
isDynamicOutput = function()
{
return(knitr:::pandoc_to() == "html")
}
getInteractiveLink = function(tabName = NULL, parentTabName = NULL, embed = FALSE)
{
#If we don't have a tab name the... | /code/helper-functions.R | permissive | HGray384/lrcfs-stats-reference-book | R | false | false | 1,528 | r | ## a file containing useful helper functions
#Check to see if output is a "dynamic" format
#Returns TRUE if output is dynamic
isDynamicOutput = function()
{
return(knitr:::pandoc_to() == "html")
}
getInteractiveLink = function(tabName = NULL, parentTabName = NULL, embed = FALSE)
{
#If we don't have a tab name the... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_graph_actions.R
\name{get_graph_actions}
\alias{get_graph_actions}
\title{Get information on any available graph actions}
\usage{
get_graph_actions(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
}
\value{
a \... | /man/get_graph_actions.Rd | permissive | lionel-/DiagrammeR | R | false | true | 1,303 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_graph_actions.R
\name{get_graph_actions}
\alias{get_graph_actions}
\title{Get information on any available graph actions}
\usage{
get_graph_actions(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dgr_graph}.}
}
\value{
a \... |
utils::globalVariables(names = c("value.x", "value.y", "linkdata", '%>%', 'Acreage', 'Count', 'Crop.x', 'Crop.y', '.'))
| /R/globals.R | no_license | tmieno2/CropScapeR | R | false | false | 120 | r | utils::globalVariables(names = c("value.x", "value.y", "linkdata", '%>%', 'Acreage', 'Count', 'Crop.x', 'Crop.y', '.'))
|
dat <- read.csv('./Data/Data/indicator_sheet.csv')
x <- as.matrix(dat$LandCultivated)
x[is.na(x)] <- 0
y <- as.matrix(dat$farm_income)
y[is.na(y)] <- 0
#Using Land Cultivated to estimate Farm Income
X <- mean(as.numeric(dat$LandCultivated), na.rm = T)
Y <- mean(as.numeric(dat$farm_income), na.rm = T)
SdX <- sqrt(s... | /least_squares_estimation.R | no_license | danmilner2019/LinearRegression | R | false | false | 591 | r | dat <- read.csv('./Data/Data/indicator_sheet.csv')
x <- as.matrix(dat$LandCultivated)
x[is.na(x)] <- 0
y <- as.matrix(dat$farm_income)
y[is.na(y)] <- 0
#Using Land Cultivated to estimate Farm Income
X <- mean(as.numeric(dat$LandCultivated), na.rm = T)
Y <- mean(as.numeric(dat$farm_income), na.rm = T)
SdX <- sqrt(s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rates_of_sst_change.R
\name{get_sst_linear_change}
\alias{get_sst_linear_change}
\title{Calculate the decadal rate of temperature change over a given time period.}
\usage{
get_sst_linear_change(hadsst_raster = b, years = 2000:2011)
}
\argumen... | /man/get_sst_linear_change.Rd | no_license | jdunic/hadsstr | R | false | true | 742 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rates_of_sst_change.R
\name{get_sst_linear_change}
\alias{get_sst_linear_change}
\title{Calculate the decadal rate of temperature change over a given time period.}
\usage{
get_sst_linear_change(hadsst_raster = b, years = 2000:2011)
}
\argumen... |
forest <- read.csv(file.choose())
View(forest)
summary(forest)
library(ggplot2)
plot <- function(a){
r <- ggplot(forest,aes(a))+geom_histogram(color="black",fill="green")
return(r)
}
plot1 <- function(a){
c <- ggplot(forest,aes(a))+geom_boxplot(fill="red",color="black")+coord_flip()
return(c)
}
(f1 ... | /forestfires R.R | no_license | ADITEYARAJ/SVM | R | false | false | 2,800 | r | forest <- read.csv(file.choose())
View(forest)
summary(forest)
library(ggplot2)
plot <- function(a){
r <- ggplot(forest,aes(a))+geom_histogram(color="black",fill="green")
return(r)
}
plot1 <- function(a){
c <- ggplot(forest,aes(a))+geom_boxplot(fill="red",color="black")+coord_flip()
return(c)
}
(f1 ... |
testlist <- list(a_ = c(-1.65699145937973e-204, 3.2363827009968e+193, -1.92049022479706e+63, -1.87027525767939e+59, 6.58731732715928e+221, -1.56232039993271e+245, -1.87027525767939e+59, 3.81469370175983e-242, 6.48996844487956e-122, -3.60259112436577e+106, -1.59925206300013e-07, -9.70551313317559e+62, -4.63646860467... | /issuestests/ffstream/inst/testfiles/computeOneSidedPvalueRcpp/computeOneSidedPvalueRcpp_output/log_6989a8408da8c95e2834d627e7c9d544ecd9419d/computeOneSidedPvalueRcpp-test.R | no_license | akhikolla/RcppDeepStateTest | R | false | false | 3,737 | r | testlist <- list(a_ = c(-1.65699145937973e-204, 3.2363827009968e+193, -1.92049022479706e+63, -1.87027525767939e+59, 6.58731732715928e+221, -1.56232039993271e+245, -1.87027525767939e+59, 3.81469370175983e-242, 6.48996844487956e-122, -3.60259112436577e+106, -1.59925206300013e-07, -9.70551313317559e+62, -4.63646860467... |
#!/usr/bin/Rscript
# Skrypt wykreślna różnego rodzaju histogramy dla danych z pliku ws2010_komitety_by_komisja_T.csv
# (więcej: https://github.com/hrpunio/Data/tree/master/ws2010_pobranie_2018)
#
estimatedMode <- function(x) { d <- density(x, na.rm=T); d$x[which.max(d$y)] }
showVotes <- function(df, x, co, region, N, ... | /sejm2005/rozklady_komitety.R | no_license | hrpunio/PLWybory | R | false | false | 4,221 | r | #!/usr/bin/Rscript
# Skrypt wykreślna różnego rodzaju histogramy dla danych z pliku ws2010_komitety_by_komisja_T.csv
# (więcej: https://github.com/hrpunio/Data/tree/master/ws2010_pobranie_2018)
#
estimatedMode <- function(x) { d <- density(x, na.rm=T); d$x[which.max(d$y)] }
showVotes <- function(df, x, co, region, N, ... |
# par(mfrow=c(1,1))
# hc1 <- hclust(dist(Cereal_s),method="single")
# plot(hc1)
# hc2 <- hclust(dist(Cereal_s),method="complete")
# plot(hc2)
# hc3 <- hclust(dist(Cereal_s),method="average")
# plot(hc3)
# hc4 <- hclust(dist(Cereal_s),method="ward.D")
# plot(hc4)
# hc4_result <- cutree(hc4,k=6)
# plot(Murder ~ Assault, ... | /4. KMU/Second Semester/Statistics/1029_MidTerm Exam/midterm_2.R | no_license | byungjun0689/DataScience | R | false | false | 3,180 | r | # par(mfrow=c(1,1))
# hc1 <- hclust(dist(Cereal_s),method="single")
# plot(hc1)
# hc2 <- hclust(dist(Cereal_s),method="complete")
# plot(hc2)
# hc3 <- hclust(dist(Cereal_s),method="average")
# plot(hc3)
# hc4 <- hclust(dist(Cereal_s),method="ward.D")
# plot(hc4)
# hc4_result <- cutree(hc4,k=6)
# plot(Murder ~ Assault, ... |
#' Preview an email message
#' @description Preview an HTML email before
#' sending it out.
#' @param email an \code{email_message} object.
#' @importFrom htmltools html_print
#' @export preview_email
preview_email <- function(email) {
email[["html_html"]] %>% html_print()
}
| /R/preview_email.R | permissive | vfulco/blastula | R | false | false | 281 | r | #' Preview an email message
#' @description Preview an HTML email before
#' sending it out.
#' @param email an \code{email_message} object.
#' @importFrom htmltools html_print
#' @export preview_email
preview_email <- function(email) {
email[["html_html"]] %>% html_print()
}
|
\name{panel.xyarea}
\alias{panel.xyarea}
\alias{panel.xyarea.default}
\alias{panel.xyarea.ts}
\alias{panel.xyarea.zoo}
\alias{panel.qqmath.xyarea}
\title{
Plot series as filled polygons.
}
\description{
Plot series as filled polygons connected at given origin level (on y axis).
}
\usage{
panel.xyarea(x, ...)
\meth... | /man/panel.xyarea.Rd | no_license | cran/latticeExtra | R | false | false | 3,143 | rd | \name{panel.xyarea}
\alias{panel.xyarea}
\alias{panel.xyarea.default}
\alias{panel.xyarea.ts}
\alias{panel.xyarea.zoo}
\alias{panel.qqmath.xyarea}
\title{
Plot series as filled polygons.
}
\description{
Plot series as filled polygons connected at given origin level (on y axis).
}
\usage{
panel.xyarea(x, ...)
\meth... |
options(stringsAsFactors = FALSE)
setwd("RNASeq")
library(AMR)
library(gplots)
library(tximport)
library(readr)
library(limma)
library(edgeR)
library(biomaRt)
library(ComplexHeatmap)
library(ggplot2)
library(ggrepel)
library(reshape)
library(qusage)
library(circlize)
library(ggpubr)
library(clusterProfiler)
library(gag... | /RNASeq/CITN_RNASeq_GitHub.R | no_license | sebastianobattaglia/STM_2022_repo | R | false | false | 31,389 | r | options(stringsAsFactors = FALSE)
setwd("RNASeq")
library(AMR)
library(gplots)
library(tximport)
library(readr)
library(limma)
library(edgeR)
library(biomaRt)
library(ComplexHeatmap)
library(ggplot2)
library(ggrepel)
library(reshape)
library(qusage)
library(circlize)
library(ggpubr)
library(clusterProfiler)
library(gag... |
library(dplyr)
library(purrr)
library(here)
library(RCy3)
library(jsonlite)
library(rWikiPathways)
library(tidyr)
library(XML)
library(utf8)
source('./extra.R')
#source('./get_citation.R')
# TODO: should we set the following?
#options(encoding = "UTF-8")
# Using dev version of WikiPathways app right now, so comment... | /wikipathways_extra.R | no_license | wikipathways/wikipathways2ndex | R | false | false | 9,005 | r | library(dplyr)
library(purrr)
library(here)
library(RCy3)
library(jsonlite)
library(rWikiPathways)
library(tidyr)
library(XML)
library(utf8)
source('./extra.R')
#source('./get_citation.R')
# TODO: should we set the following?
#options(encoding = "UTF-8")
# Using dev version of WikiPathways app right now, so comment... |
#Exercise 9
setwd("~/Desktop/r-novice-inflammation/ICB_Exercises/ICB2019_Exercise09/")
ChlvsTp<- read.csv("ChlvsTp.csv")
library(ggplot2)
ggplot(data=ChlvsTp, mapping = aes(x=tp, y=chl))+geom_point()+stat_smooth(method = "lm", color="black")
data<- read.csv("data.txt")
#bar graph
ggplot(data=data, mapping = aes(x=regi... | /Exercise09.R | no_license | joegentine/ICB2019_Exercise09 | R | false | false | 849 | r | #Exercise 9
setwd("~/Desktop/r-novice-inflammation/ICB_Exercises/ICB2019_Exercise09/")
ChlvsTp<- read.csv("ChlvsTp.csv")
library(ggplot2)
ggplot(data=ChlvsTp, mapping = aes(x=tp, y=chl))+geom_point()+stat_smooth(method = "lm", color="black")
data<- read.csv("data.txt")
#bar graph
ggplot(data=data, mapping = aes(x=regi... |
# step link # connections created # connections chains #
# 1 4 0 0 1
# 2 1 0 0 2
# 3 5 1 1 2
# 4 7 0 1 3
# 5 3 1 2 3
# 6 2 2 4 2
# 7 8 1 5 2
# 8 6 2 7... | /Problem_1.R | no_license | kirnosov/DI | R | false | false | 1,791 | r | # step link # connections created # connections chains #
# 1 4 0 0 1
# 2 1 0 0 2
# 3 5 1 1 2
# 4 7 0 1 3
# 5 3 1 2 3
# 6 2 2 4 2
# 7 8 1 5 2
# 8 6 2 7... |
# $Id: addModel.R 218 2020-05-21 21:28:28Z lao $
# Additive model, corresponds to eqs. 4.34-4.38 in Cooper et al., 2007
dea.add <- function(X, Y, RTS="vrs", XREF=NULL, YREF=NULL,
FRONT.IDX=NULL, param=NULL, TRANSPOSE=FALSE, LP=FALSE) {
rts <- c("fdh","vrs","drs","crs","irs","irs","add","fdh+"... | /Benchmarking/R/addModel.R | no_license | akhikolla/InformationHouse | R | false | false | 1,571 | r | # $Id: addModel.R 218 2020-05-21 21:28:28Z lao $
# Additive model, corresponds to eqs. 4.34-4.38 in Cooper et al., 2007
dea.add <- function(X, Y, RTS="vrs", XREF=NULL, YREF=NULL,
FRONT.IDX=NULL, param=NULL, TRANSPOSE=FALSE, LP=FALSE) {
rts <- c("fdh","vrs","drs","crs","irs","irs","add","fdh+"... |
fw07p06 = read.table("data_lab1.txt", header = FALSE, sep = "", dec = ".")
colnames(fw07p06)=c("CITY","STATE","LAT","RANGE")
ggplot(data = fw07p06,aes(x = LAT,y = RANGE))+
geom_point()+
theme_classic()
model1 <- lm(RANGE ~ LAT, data=fw07p06)
summary(model1)
model1$coefficients
confint(model1)
confint(model1,l... | /lab1/R/lab1 classwork.R | no_license | somnath113/stat-with_R | R | false | false | 441 | r | fw07p06 = read.table("data_lab1.txt", header = FALSE, sep = "", dec = ".")
colnames(fw07p06)=c("CITY","STATE","LAT","RANGE")
ggplot(data = fw07p06,aes(x = LAT,y = RANGE))+
geom_point()+
theme_classic()
model1 <- lm(RANGE ~ LAT, data=fw07p06)
summary(model1)
model1$coefficients
confint(model1)
confint(model1,l... |
################################################################################
# Use testthat to test phyloseq data objects plotting functions
################################################################################
library("phylogeo"); library("testthat"); library(ggplot2); library(igraph)
# # # # TESTS!;
t... | /tests/testthat/test_map_plotting_functions.R | no_license | ryneches/phylogeo | R | false | false | 1,459 | r | ################################################################################
# Use testthat to test phyloseq data objects plotting functions
################################################################################
library("phylogeo"); library("testthat"); library(ggplot2); library(igraph)
# # # # TESTS!;
t... |
library(tidyverse)
library(stringi)
library(readxl)
library(binom)
library(lubridate)
MetaAnalysis_Data_New_Version_ <- read_excel("~/Dropbox_gmail/Dropbox/bat virus meta-analysis/MetaAnalysis Data New Version .xlsx",
col_types = c("text", "numeric", "text",
... | /meta_analysis/R/meta analysis summary script.R | no_license | dncrwlye/BZDEL | R | false | false | 6,462 | r | library(tidyverse)
library(stringi)
library(readxl)
library(binom)
library(lubridate)
MetaAnalysis_Data_New_Version_ <- read_excel("~/Dropbox_gmail/Dropbox/bat virus meta-analysis/MetaAnalysis Data New Version .xlsx",
col_types = c("text", "numeric", "text",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LoadIOTables.R
\name{loadIOcodes}
\alias{loadIOcodes}
\title{Load BEA IO codes in a list based on model config.}
\usage{
loadIOcodes(specs)
}
\arguments{
\item{specs}{Model specifications.}
}
\value{
A list with BEA IO codes.
}
\description{
... | /man/loadIOcodes.Rd | permissive | USEPA/useeior | R | false | true | 373 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LoadIOTables.R
\name{loadIOcodes}
\alias{loadIOcodes}
\title{Load BEA IO codes in a list based on model config.}
\usage{
loadIOcodes(specs)
}
\arguments{
\item{specs}{Model specifications.}
}
\value{
A list with BEA IO codes.
}
\description{
... |
####################################
#John Lewis October 2013
#Beginings of code to run correct mcmc algorithm when conditing on robust statistics
#Focus here is on Tukey's loss and Huber's proposal 2 to form the estimating equations for the location and scale in the location and scale setting
#will compare results... | /submission_1/codeForPaper/newcomb/mcmc/locAndScaleTukeyAndProposal2.R | no_license | jrlewi/brlm_paper | R | false | false | 6,482 | r | ####################################
#John Lewis October 2013
#Beginings of code to run correct mcmc algorithm when conditing on robust statistics
#Focus here is on Tukey's loss and Huber's proposal 2 to form the estimating equations for the location and scale in the location and scale setting
#will compare results... |
# tidy data from brfss export
# set up
# load packages ----
library(here)
library(tidyverse)
library(ggthemes)
# read data ----
brfss_az <- read_rds("data/tidy/brfss_az.RDS")
glimpse(brfss_az)
# exploratory
# breast cancer screening ----
# proportion had mammogram ----
# only for non hispanic white, american indian, ... | /scripts/brfss_az_data_processing.R | permissive | UACC-renedherrera/cancer_behavior_risk_factors | R | false | false | 9,018 | r | # tidy data from brfss export
# set up
# load packages ----
library(here)
library(tidyverse)
library(ggthemes)
# read data ----
brfss_az <- read_rds("data/tidy/brfss_az.RDS")
glimpse(brfss_az)
# exploratory
# breast cancer screening ----
# proportion had mammogram ----
# only for non hispanic white, american indian, ... |
set.seed( 46 )
library(mvtnorm)
library(fields)
library(Rcpp)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
cell_count<-rep(0,16*16)
for (i in 1:mc)
{
for (m in 1:16) {
fo... | /s=16/simu_46.R | no_license | mguindanigroup/Radiomics-Hierarchical-Rounded-Gaussian-Spatial-Dirichlet-Process | R | false | false | 8,262 | r | set.seed( 46 )
library(mvtnorm)
library(fields)
library(Rcpp)
simu=function(s){
prob_glcm<-function(c,s=s,mc=30000){
mu<-c(2+c,14-c)
sigma<-matrix(s*c(1,-0.7,-0.7,1),nrow=2)
elip<-rmvnorm(mc,mu,sigma)
cell_count<-rep(0,16*16)
for (i in 1:mc)
{
for (m in 1:16) {
fo... |
#######################
# _*S2 dimensions: #
# #
# *_Xmin: -19.83333 #
# Xres: 1/6 #
# Xn: 198 #
# #
# Ymin: 40.11111 #
# Yres: 1/9 #
# Yn: 224 #
#######################
# Newlyn 50 06 N 05 33 W => 50.1 -5.55
# Newlyn is at ... | /polcoms/readzetsimon.r | no_license | simonholgate/R-Scripts | R | false | false | 7,435 | r | #######################
# _*S2 dimensions: #
# #
# *_Xmin: -19.83333 #
# Xres: 1/6 #
# Xn: 198 #
# #
# Ymin: 40.11111 #
# Yres: 1/9 #
# Yn: 224 #
#######################
# Newlyn 50 06 N 05 33 W => 50.1 -5.55
# Newlyn is at ... |
pheno_read <- function(project_info, analyses_df, transform = TRUE) {
# Read the phenos we need.
phenos <- analyses_df$pheno
pheno_data <- read_project(project_info, "pheno_data", phenos)
if(transform) {
transform <- analyses_df$transf
} else {
transform <- NULL
}
qtl2mediate::pheno_trans(pheno... | /R/pheno_read.R | no_license | byandell/qtl2shiny | R | false | false | 448 | r | pheno_read <- function(project_info, analyses_df, transform = TRUE) {
# Read the phenos we need.
phenos <- analyses_df$pheno
pheno_data <- read_project(project_info, "pheno_data", phenos)
if(transform) {
transform <- analyses_df$transf
} else {
transform <- NULL
}
qtl2mediate::pheno_trans(pheno... |
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), sorted_starts = c(0L, -1627389952L, 682962941L, 546746628L, 599542L, 1800501216L, 1649393244L, -1712958485L, -1313178345L, 1470710473L, 2108708770L, -19... | /IntervalSurgeon/inst/testfiles/rcpp_depth/AFL_rcpp_depth/rcpp_depth_valgrind_files/1609857342-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 518 | r | testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), sorted_starts = c(0L, -1627389952L, 682962941L, 546746628L, 599542L, 1800501216L, 1649393244L, -1712958485L, -1313178345L, 1470710473L, 2108708770L, -19... |
library(bnlearn)
library(caret)
grades <- c("AA", "AB", "BB", "BC", "CC", "CD", "DD", "F")
course.grades<-read.table( "C:/Users/THE ROCK/Desktop/Introduction_to_AI/Assignment_5/2020_bn_nb_data.txt",head=TRUE)
set.seed(100)
tIndex <- createDataPartition(course.grades$QP, p=0.7)$Resample1
train <- course.grades[tIndex, ]... | /lab5/q4.R | no_license | praveshstark/Artificial-Intelligence | R | false | false | 928 | r | library(bnlearn)
library(caret)
grades <- c("AA", "AB", "BB", "BC", "CC", "CD", "DD", "F")
course.grades<-read.table( "C:/Users/THE ROCK/Desktop/Introduction_to_AI/Assignment_5/2020_bn_nb_data.txt",head=TRUE)
set.seed(100)
tIndex <- createDataPartition(course.grades$QP, p=0.7)$Resample1
train <- course.grades[tIndex, ]... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mice.impute.2l.pmm.R
\name{mice.impute.2l.pmm}
\alias{mice.impute.2l.pmm}
\title{Two-level predictive mean matching}
\usage{
mice.impute.2l.pmm(y, ry, x, type, intercept = TRUE, donors = 5,
wy = NULL, ...)
}
\arguments{
\item{y}{Numeric vec... | /man/mice.impute.2l.pmm.Rd | no_license | kkleinke/countimp | R | false | true | 1,942 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mice.impute.2l.pmm.R
\name{mice.impute.2l.pmm}
\alias{mice.impute.2l.pmm}
\title{Two-level predictive mean matching}
\usage{
mice.impute.2l.pmm(y, ry, x, type, intercept = TRUE, donors = 5,
wy = NULL, ...)
}
\arguments{
\item{y}{Numeric vec... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rMEA_graphics.R
\name{lines.MEA}
\alias{lines.MEA}
\title{Adds lines of a \code{MEA} object to a Plot}
\usage{
\method{lines}{MEA}(x, from = 0, to = NULL, duration = NULL, ccf = F, rescale = F, ...)
}
\arguments{
\item{x}{an object o... | /man/lines.MEA.Rd | no_license | cran/rMEA | R | false | true | 1,899 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rMEA_graphics.R
\name{lines.MEA}
\alias{lines.MEA}
\title{Adds lines of a \code{MEA} object to a Plot}
\usage{
\method{lines}{MEA}(x, from = 0, to = NULL, duration = NULL, ccf = F, rescale = F, ...)
}
\arguments{
\item{x}{an object o... |
#'ARCH Test for time series
#'
#' This function allows you to make ARCH Test for residuals
#' @param x residual series name,
#' @param lags lags
#' @keywords ARCH test
#' @export
#' @importFrom stats embed lm pchisq
#' @examples
#' set.seed(12345)
#' x <- rnorm(1000)
#' ARCH.Test(x,3)
#'
ARCH.Test <- f... | /R/ARCH.Test.R | no_license | cran/NonlinearTSA | R | false | false | 688 | r | #'ARCH Test for time series
#'
#' This function allows you to make ARCH Test for residuals
#' @param x residual series name,
#' @param lags lags
#' @keywords ARCH test
#' @export
#' @importFrom stats embed lm pchisq
#' @examples
#' set.seed(12345)
#' x <- rnorm(1000)
#' ARCH.Test(x,3)
#'
ARCH.Test <- f... |
#' Construct NWIS url for data retrieval
#'
#' Imports data from NWIS web service. This function gets the data from here: \url{http://nwis.waterdata.usgs.gov/nwis/qwdata}
#' A list of parameter codes can be found here: \url{http://nwis.waterdata.usgs.gov/nwis/pmcodes/}
#' A list of statistic codes can be found here... | /dataRetrieval/R/constructNWISURL.r | no_license | ingted/R-Examples | R | false | false | 12,075 | r | #' Construct NWIS url for data retrieval
#'
#' Imports data from NWIS web service. This function gets the data from here: \url{http://nwis.waterdata.usgs.gov/nwis/qwdata}
#' A list of parameter codes can be found here: \url{http://nwis.waterdata.usgs.gov/nwis/pmcodes/}
#' A list of statistic codes can be found here... |
cfec <- feather::read_feather("portfolio/data-generated/cfec.feather")
cfec$year <- as.numeric(cfec$year)
species = c("CHNK","COHO","PINK","SOCK","CHUM","PHLB","SABL","PLCK","KCRB")
library(dplyr)
pdf("prices_revenue.pdf")
prices = group_by(cfec[cfec$spec%in%species,], year, spec) %>%
summarize(priceDollars = sum... | /analysis/archive/plot_prices_revenue.R | no_license | NCEAS/pfx-commercial-diversity | R | false | false | 610 | r |
cfec <- feather::read_feather("portfolio/data-generated/cfec.feather")
cfec$year <- as.numeric(cfec$year)
species = c("CHNK","COHO","PINK","SOCK","CHUM","PHLB","SABL","PLCK","KCRB")
library(dplyr)
pdf("prices_revenue.pdf")
prices = group_by(cfec[cfec$spec%in%species,], year, spec) %>%
summarize(priceDollars = sum... |
#:# libraries
library(digest)
library(OpenML)
library(mlr)
library(gbm)
#:# config
set.seed(1233,"L'Ecuyer")
#:# data
dataSet <- getOMLDataSet(data.id = 841L)
data <- dataSet$data
#:# preprocessing
head(data)
summary(data)
#:# model
regr_task <- makeRegrTask(id="task", data = data, target = "company1")
regr_lrn <-... | /models/openml_stock/regression_company1/f26c495402a766d4720bf7dc8234231b/code.R | no_license | lukaszbrzozowski/CaseStudies2019S | R | false | false | 726 | r | #:# libraries
library(digest)
library(OpenML)
library(mlr)
library(gbm)
#:# config
set.seed(1233,"L'Ecuyer")
#:# data
dataSet <- getOMLDataSet(data.id = 841L)
data <- dataSet$data
#:# preprocessing
head(data)
summary(data)
#:# model
regr_task <- makeRegrTask(id="task", data = data, target = "company1")
regr_lrn <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findscientificnames.R
\name{taxa_resolve_names_with_otol}
\alias{taxa_resolve_names_with_otol}
\title{Resolve Scientific Names with Open Tree TNRS}
\usage{
taxa_resolve_names_with_otol(taxa)
}
\arguments{
\item{taxa}{The vector of names}
}
\v... | /man/taxa_resolve_names_with_otol.Rd | no_license | cran/rphylotastic | R | false | true | 877 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/findscientificnames.R
\name{taxa_resolve_names_with_otol}
\alias{taxa_resolve_names_with_otol}
\title{Resolve Scientific Names with Open Tree TNRS}
\usage{
taxa_resolve_names_with_otol(taxa)
}
\arguments{
\item{taxa}{The vector of names}
}
\v... |
\name{evalucc}
\alias{evalucc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Evaluation of core collection.
}
\description{
This function evaluation efficiency of the new core collection, using the four parameters.
}
\usage{
evalucc(CC, EC)
}
%- maybe also 'usage' for other objects ... | /man/evalucc.Rd | no_license | cran/ccChooser | R | false | false | 2,604 | rd | \name{evalucc}
\alias{evalucc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Evaluation of core collection.
}
\description{
This function evaluation efficiency of the new core collection, using the four parameters.
}
\usage{
evalucc(CC, EC)
}
%- maybe also 'usage' for other objects ... |
# _
# platform x86_64-w64-mingw32
# arch x86_64
# os mingw32
# crt ucrt
# system x86_64, mingw32
# status ... | /FIG 5/Figure5B-C_analysis.R | no_license | shreklab/PribadiEtAl2023 | R | false | false | 10,058 | r | # _
# platform x86_64-w64-mingw32
# arch x86_64
# os mingw32
# crt ucrt
# system x86_64, mingw32
# status ... |
library(dplyr)
context("data regression tests")
options(tibble.print_min = 20)
# load ufc data
data("ufc_stats")
test_that("Duplicate rows", {
expect_equal(
nrow(ufc_stats[duplicated(ufc_stats), ]),
0)
})
test_that("No missing values (except event level cols)", {
expect_equal(
names(ufc_stats)[colSum... | /tests/testthat/test-data.R | permissive | mtoto/ufc.stats | R | false | false | 1,337 | r | library(dplyr)
context("data regression tests")
options(tibble.print_min = 20)
# load ufc data
data("ufc_stats")
test_that("Duplicate rows", {
expect_equal(
nrow(ufc_stats[duplicated(ufc_stats), ]),
0)
})
test_that("No missing values (except event level cols)", {
expect_equal(
names(ufc_stats)[colSum... |
getWeightObservations <- function( username, fitbitkey, fitbitsecret, fitbitappname) {
token_url <- "https://api.fitbit.com/oauth/request_token"
access_url <- "https://api.fitbit.com/oauth/access_token"
auth_url <- "https://www.fitbit.com/oauth/authorize"
fbr <- oauth_app(fitbitappname, fitbitkey, fitbitse... | /R/common/container.R | no_license | satimetry/tnmbatch | R | false | false | 5,004 | r |
getWeightObservations <- function( username, fitbitkey, fitbitsecret, fitbitappname) {
token_url <- "https://api.fitbit.com/oauth/request_token"
access_url <- "https://api.fitbit.com/oauth/access_token"
auth_url <- "https://www.fitbit.com/oauth/authorize"
fbr <- oauth_app(fitbitappname, fitbitkey, fitbitse... |
library(DPtree)
### Name: DPTreePMeanDensity
### Title: Calculating sub-partition probabiltiy measures for the posterior
### mean distribution from D-P tree.
### Aliases: DPTreePMeanDensity
### ** Examples
DPTreePMeanDensity(DPTreePrior(m=2, z=1))
| /data/genthat_extracted_code/DPtree/examples/DPTreePMeanDensity.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 257 | r | library(DPtree)
### Name: DPTreePMeanDensity
### Title: Calculating sub-partition probabiltiy measures for the posterior
### mean distribution from D-P tree.
### Aliases: DPTreePMeanDensity
### ** Examples
DPTreePMeanDensity(DPTreePrior(m=2, z=1))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defunct.R
\name{noaa_seaice}
\alias{noaa_seaice}
\title{This function is defunct.}
\usage{
noaa_seaice(...)
}
\description{
This function is defunct.
}
\keyword{internal}
| /man/noaa_seaice-defunct.Rd | permissive | mpettis/rnoaa | R | false | true | 249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defunct.R
\name{noaa_seaice}
\alias{noaa_seaice}
\title{This function is defunct.}
\usage{
noaa_seaice(...)
}
\description{
This function is defunct.
}
\keyword{internal}
|
## This pair of functions is used to cache the inverse of a matrix
## makeCacheMatrix function creates a special "matrix" object(actually a list)
## that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y){
x <<- y
s <<- NULL
}
get <- functio... | /cachematrix.R | no_license | zhleiling/ProgrammingAssignment2 | R | false | false | 1,014 | r | ## This pair of functions is used to cache the inverse of a matrix
## makeCacheMatrix function creates a special "matrix" object(actually a list)
## that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y){
x <<- y
s <<- NULL
}
get <- functio... |
## graphing , week 1, Plot 2
library(data.table)
library(lubridate)
## reading data set
D <- data.table(read.table('household_power_consumption.txt',sep = ';'))
names(D) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity",
"Sub_metering_1","Sub_metering_2","Sub... | /Plot2.R | no_license | annaja2017/ExData_Plotting1 | R | false | false | 1,146 | r | ## graphing , week 1, Plot 2
library(data.table)
library(lubridate)
## reading data set
D <- data.table(read.table('household_power_consumption.txt',sep = ';'))
names(D) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity",
"Sub_metering_1","Sub_metering_2","Sub... |
#'Simulate data from a hidden semi markov model
#'
#'This function simulates data from a user-specified hidden semi markov model
#'
#'@param dists A vector of distributions of length ndist+1, with the first distribution chosen from: shiftpois, shiftnegbin The following distribution(s)
#'are from the following list: ... | /R/move.HSMM.simulate.R | no_license | benaug/move.HMM | R | false | false | 4,180 | r | #'Simulate data from a hidden semi markov model
#'
#'This function simulates data from a user-specified hidden semi markov model
#'
#'@param dists A vector of distributions of length ndist+1, with the first distribution chosen from: shiftpois, shiftnegbin The following distribution(s)
#'are from the following list: ... |
#' Display contours of a 3d surface in 2d.
#'
#' @section Aesthetics:
#' \Sexpr[results=rd,stage=build]{ggplot2:::rd_aesthetics("geom", "contour")}
#'
#' @inheritParams geom_point
#' @inheritParams geom_path
#' @seealso \code{\link{geom_density_2d}}: 2d density contours
#' @export
#' @export
#' @examples
#' #' # Basic ... | /R/geom-contour.r | no_license | jiho/ggplot2 | R | false | false | 1,894 | r | #' Display contours of a 3d surface in 2d.
#'
#' @section Aesthetics:
#' \Sexpr[results=rd,stage=build]{ggplot2:::rd_aesthetics("geom", "contour")}
#'
#' @inheritParams geom_point
#' @inheritParams geom_path
#' @seealso \code{\link{geom_density_2d}}: 2d density contours
#' @export
#' @export
#' @examples
#' #' # Basic ... |
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Render fuction"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput(inputId = "num",
label = "Number... | /_12_ShinyApp/12_4_OutputRenderFunction_ShinyApp/app.R | permissive | Himanshu-rathee/R_DataCamp | R | false | false | 1,462 | r |
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Render fuction"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput(inputId = "num",
label = "Number... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_estimation.R
\name{matrix_estimation}
\alias{matrix_estimation}
\alias{max_ent}
\alias{min_dens}
\title{Matrix Estimation}
\usage{
matrix_estimation(rowsums, colsums, method = c("me", "md"), ...,
max.it = 1e+05, abs.tol = 0.001, verb... | /man/matrix_estimation.Rd | no_license | Nk173/NetworkRiskMeasures | R | false | true | 3,363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix_estimation.R
\name{matrix_estimation}
\alias{matrix_estimation}
\alias{max_ent}
\alias{min_dens}
\title{Matrix Estimation}
\usage{
matrix_estimation(rowsums, colsums, method = c("me", "md"), ...,
max.it = 1e+05, abs.tol = 0.001, verb... |
### ===== expert =====
###
### Print method for object of class "expert"
###
### AUTHORS: Vincent Goulet <vincent.goulet@act.ulaval.ca>,
### Mathieu Pigeon <mathieu.pigeon.3@ulaval.ca>
print.expert <- function(x, ...)
{
## Utility function
numform <- function(x, w)
formatC(x, digits = 2, width... | /expert/R/print.expert.R | no_license | ingted/R-Examples | R | false | false | 991 | r | ### ===== expert =====
###
### Print method for object of class "expert"
###
### AUTHORS: Vincent Goulet <vincent.goulet@act.ulaval.ca>,
### Mathieu Pigeon <mathieu.pigeon.3@ulaval.ca>
print.expert <- function(x, ...)
{
## Utility function
numform <- function(x, w)
formatC(x, digits = 2, width... |
###########################################################################/**
# @RdocDefault testAllelicBalanceByBAFs
#
# @title "Tests for allelic balance in a genomic region"
#
# \description{
# @get "title".
# }
#
# @synopsis
#
# \arguments{
# \item{betaT}{A @numeric @vector of J tumor allele B fractions (BAFs).... | /R/testAllelicBalanceByBAFs.R | no_license | HenrikBengtsson/aroma.cn | R | false | false | 5,706 | r | ###########################################################################/**
# @RdocDefault testAllelicBalanceByBAFs
#
# @title "Tests for allelic balance in a genomic region"
#
# \description{
# @get "title".
# }
#
# @synopsis
#
# \arguments{
# \item{betaT}{A @numeric @vector of J tumor allele B fractions (BAFs).... |
preprocessL0 <- function(trainInp, testInp, normalize, targetShift, resolveSkewness) {
train.id <- trainInp$id
test.id <- testInp$id
train.target <- trainInp$loss
# Transform target
target.log <- log(trainInp[, 'loss', with = FALSE] + targetShift)[['loss']]
trainInp[, c('id', 'loss') := NUL... | /modeling/preprocessL0.R | no_license | Tobsen1x/AllstateClaimsSeverity | R | false | false | 3,652 | r | preprocessL0 <- function(trainInp, testInp, normalize, targetShift, resolveSkewness) {
train.id <- trainInp$id
test.id <- testInp$id
train.target <- trainInp$loss
# Transform target
target.log <- log(trainInp[, 'loss', with = FALSE] + targetShift)[['loss']]
trainInp[, c('id', 'loss') := NUL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-fgs.R
\name{load_fgs}
\alias{load_fgs}
\title{Load the functional group file}
\usage{
load_fgs(dir = getwd(), fgs)
}
\arguments{
\item{dir}{Path of the Atlantis model folder.}
\item{fgs}{Name of the functional groups file which is typic... | /man/load_fgs.Rd | no_license | bsnouffer/atlantistools | R | false | true | 900 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/load-fgs.R
\name{load_fgs}
\alias{load_fgs}
\title{Load the functional group file}
\usage{
load_fgs(dir = getwd(), fgs)
}
\arguments{
\item{dir}{Path of the Atlantis model folder.}
\item{fgs}{Name of the functional groups file which is typic... |
# Copyright 2016 Christian Diener <mail[at]cdiener.com>
#
# Apache license 2.0. See LICENSE for more information.
#' @import ShortRead ggplot2 phyloseq
#' @importFrom utils packageVersion download.file read.table
#' @importFrom stringr str_match
#' @importFrom Biostrings BStringSet
#' @importFrom R.utils gunzip
NULL
... | /mbtools/R/zzz.R | permissive | diegoibt/microbiome | R | false | false | 912 | r | # Copyright 2016 Christian Diener <mail[at]cdiener.com>
#
# Apache license 2.0. See LICENSE for more information.
#' @import ShortRead ggplot2 phyloseq
#' @importFrom utils packageVersion download.file read.table
#' @importFrom stringr str_match
#' @importFrom Biostrings BStringSet
#' @importFrom R.utils gunzip
NULL
... |
data("AirPassengers")
AirPassengers
class(AirPassengers) #datatype
start(AirPassengers)
end(AirPassengers)
frequency(AirPassengers)
plot(AirPassengers)
boxplot(AirPassengers)
summary(AirPassengers)
cycle(AirPassengers) # cycle is required to check seasonal effect
plot(AirPassengers)
model<-lm(AirPa... | /R_files/timeseriesimarticus.R | no_license | suvanjeet/ml_concepts | R | false | false | 2,130 | r | data("AirPassengers")
AirPassengers
class(AirPassengers) #datatype
start(AirPassengers)
end(AirPassengers)
frequency(AirPassengers)
plot(AirPassengers)
boxplot(AirPassengers)
summary(AirPassengers)
cycle(AirPassengers) # cycle is required to check seasonal effect
plot(AirPassengers)
model<-lm(AirPa... |
# Version 1.0, March 2000
# Copyright (C) 2014 Dubiel Julien.
# 14 Rue Voltaire, 94276 Kremlin Bicêtre, France
#
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, and changing it is allowed as long
# as the name is changed.
# Ok, the purpose of this license is simple
# and you ... | /neural_networks.r | no_license | Dubrzr/Simple-Neural-Networks | R | false | false | 2,868 | r | # Version 1.0, March 2000
# Copyright (C) 2014 Dubiel Julien.
# 14 Rue Voltaire, 94276 Kremlin Bicêtre, France
#
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, and changing it is allowed as long
# as the name is changed.
# Ok, the purpose of this license is simple
# and you ... |
#' Gets a listing of all events that a beer is at or has won awards at.
#'
#' @concept BeerEvent
#'
#' @param beerId The beerId
#' @param onlyWinners Only return events where the beer has won an award Y N
#' @return none
#' @export
getEveryBeerEvent <- function(beerId, onlyWinners){
params <- as.list(environment())... | /R/BeerEvent.R | no_license | bpb824/brewerydb | R | false | false | 705 | r |
#' Gets a listing of all events that a beer is at or has won awards at.
#'
#' @concept BeerEvent
#'
#' @param beerId The beerId
#' @param onlyWinners Only return events where the beer has won an award Y N
#' @return none
#' @export
getEveryBeerEvent <- function(beerId, onlyWinners){
params <- as.list(environment())... |
\name{enabled<-}
\alias{enabled<-}
\alias{enabled<-.GComponent}
\title{Set if widget is enabled}
\usage{
enabled(x) <- value
\method{enabled}{GComponent}(x) <- value
}
\arguments{
\item{x}{widget}
\item{value}{logical}
}
\description{
Set if widget is enabled
assignment method for enabled
}
| /man/enabled_assign.Rd | no_license | kecoli/gWidgetsWWW2 | R | false | false | 308 | rd | \name{enabled<-}
\alias{enabled<-}
\alias{enabled<-.GComponent}
\title{Set if widget is enabled}
\usage{
enabled(x) <- value
\method{enabled}{GComponent}(x) <- value
}
\arguments{
\item{x}{widget}
\item{value}{logical}
}
\description{
Set if widget is enabled
assignment method for enabled
}
|
#jos alotetaan life counter game, niin nollaa temp_data_storage
observeEvent(input$start_life_counter, {
print("input$start_life_counter painettu")
Aloitus_DT <- now(tz = "EET")
Peli_ID <- eR_Peli_ID()
req( input$slider_laurin_mulligan,
input$slider_martin_mulligan)
laurin_mull <- input$slider_la... | /scripts/tab/tab_uusi_peli.R | no_license | Laurigit/client | R | false | false | 13,816 | r |
#jos alotetaan life counter game, niin nollaa temp_data_storage
observeEvent(input$start_life_counter, {
print("input$start_life_counter painettu")
Aloitus_DT <- now(tz = "EET")
Peli_ID <- eR_Peli_ID()
req( input$slider_laurin_mulligan,
input$slider_martin_mulligan)
laurin_mull <- input$slider_la... |
library(tidyverse)
library(dslabs)
data("gapminder")
west <- c("Western Europe", "Northern Europe", "Southern Europe", "Northern America", "Australia and New Zealand")
dat <- gapminder %>%
filter(year %in% c(2010,2015) & region %in% west & !is.na(life_expectancy) & population > 10^7)
dat %>%
mutate(locat... | /Visualization/slope.R | no_license | yatz77/R-Data-Science-Course-Material | R | false | false | 1,375 | r | library(tidyverse)
library(dslabs)
data("gapminder")
west <- c("Western Europe", "Northern Europe", "Southern Europe", "Northern America", "Australia and New Zealand")
dat <- gapminder %>%
filter(year %in% c(2010,2015) & region %in% west & !is.na(life_expectancy) & population > 10^7)
dat %>%
mutate(locat... |
library(depmix)
### Name: markovdata
### Title: Specifying Markov data objects
### Aliases: markovdata summary.md plot.md print.md plot.ts2 dname ntimes
### itemtypes replicates ncov inames nitems ind
### Keywords: data
### ** Examples
x=rnorm(100,10,2)
y=ifelse(runif(100)<0.5,0,1)
z=matrix(c(x,y),100,2)
md=mark... | /data/genthat_extracted_code/depmix/examples/markovdata.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 677 | r | library(depmix)
### Name: markovdata
### Title: Specifying Markov data objects
### Aliases: markovdata summary.md plot.md print.md plot.ts2 dname ntimes
### itemtypes replicates ncov inames nitems ind
### Keywords: data
### ** Examples
x=rnorm(100,10,2)
y=ifelse(runif(100)<0.5,0,1)
z=matrix(c(x,y),100,2)
md=mark... |
\name{MatchCoefDPZ}
\alias{MatchCoefDPZ}
\title{Find Digital Match to Analog Poles/Zeros}
\description{Calculates digital poles and zeros to match a continuous
instrument response given in poles, zeros, and sensitivity.
Discretization effects mean that the given poles and zeros do not work
for finite sample rates... | /man/MatchCoefDPZ.Rd | no_license | cran/TDD | R | false | false | 3,376 | rd | \name{MatchCoefDPZ}
\alias{MatchCoefDPZ}
\title{Find Digital Match to Analog Poles/Zeros}
\description{Calculates digital poles and zeros to match a continuous
instrument response given in poles, zeros, and sensitivity.
Discretization effects mean that the given poles and zeros do not work
for finite sample rates... |
\name{pointInteractions}
\alias{pointInteractions}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate point interactions for area-interaction models}
\description{This function calculates point interactions at presence locations and
quadrature points required for fitting a regularisati... | /man/pointInteractions.Rd | no_license | cran/ppmlasso | R | false | false | 3,040 | rd | \name{pointInteractions}
\alias{pointInteractions}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Calculate point interactions for area-interaction models}
\description{This function calculates point interactions at presence locations and
quadrature points required for fitting a regularisati... |
#' Canadian census CT level tongfen
#'
#' @description
#' \lifecycle{deprecated}
#'
#' Grab variables from several censuses on a common geography. Requires sf package to be available
#' Will return CT level data
#'
#' @param regions census region list, should be inclusive list of GeoUIDs across censuses
#' @param vecto... | /R/tongfen_ca_deprecated.R | permissive | cgauvi/tongfen | R | false | false | 8,295 | r | #' Canadian census CT level tongfen
#'
#' @description
#' \lifecycle{deprecated}
#'
#' Grab variables from several censuses on a common geography. Requires sf package to be available
#' Will return CT level data
#'
#' @param regions census region list, should be inclusive list of GeoUIDs across censuses
#' @param vecto... |
#' @title colorgorical
#' @description uses colorgorical to create color palettes that work well.
#' Requires httr and jsonlite packages.
#' @param n number of colors in the color palette. defaults to 10
#' Credit to \href{https://gist.github.com/slowkow/22daea426607416bfcd573ce9cbd89ab}{slowkrow}
#' @export
colorgor... | /R/colors.R | permissive | eringrand/RUncommon | R | false | false | 939 | r | #' @title colorgorical
#' @description uses colorgorical to create color palettes that work well.
#' Requires httr and jsonlite packages.
#' @param n number of colors in the color palette. defaults to 10
#' Credit to \href{https://gist.github.com/slowkow/22daea426607416bfcd573ce9cbd89ab}{slowkrow}
#' @export
colorgor... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nightlyUpdateDrake.R
\name{updateNeeded}
\alias{updateNeeded}
\title{Check to see if a project needs to be updated}
\usage{
updateNeeded(
project,
webDirectory,
lipdDir,
qcId,
versionMetaId = "1OHD7PXEQ_5Lq6GxtzYvPA76bpQvN1_eYoFR0X8... | /man/updateNeeded.Rd | no_license | nickmckay/lipdverseR | R | false | true | 437 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nightlyUpdateDrake.R
\name{updateNeeded}
\alias{updateNeeded}
\title{Check to see if a project needs to be updated}
\usage{
updateNeeded(
project,
webDirectory,
lipdDir,
qcId,
versionMetaId = "1OHD7PXEQ_5Lq6GxtzYvPA76bpQvN1_eYoFR0X8... |
#' Flags for a training run
#'
#' Define the flags (name, type, default value, description) which paramaterize
#' a training run. Optionally read overrides of the default values from a
#' "flags.yml" config file and/or command line arguments.
#'
#' @param name Flag name
#' @param default Flag default value
#' @param d... | /R/flags.R | no_license | Geoany/tfruns | R | false | false | 10,777 | r |
#' Flags for a training run
#'
#' Define the flags (name, type, default value, description) which paramaterize
#' a training run. Optionally read overrides of the default values from a
#' "flags.yml" config file and/or command line arguments.
#'
#' @param name Flag name
#' @param default Flag default value
#' @param d... |
#day3Code
new_hope <- c(461.0, 314.4)
empire_strikes <- c(290.5, 247.9)
return_jedi <- c(309.3, 165.8)
phantom_menace <- c(474.5, 552.5)
attack_clones <- c(310.7, 338.7)
revenge_sith <- c(380.3, 468.5)
# Create box_office
box_office <- c(new_hope, empire_strikes, return_jedi, phantom_menace, attack_clones, revenge_sit... | /Introduction to R/week1/day5.r | no_license | adelino-py/100daysCode | R | false | false | 2,589 | r | #day3Code
new_hope <- c(461.0, 314.4)
empire_strikes <- c(290.5, 247.9)
return_jedi <- c(309.3, 165.8)
phantom_menace <- c(474.5, 552.5)
attack_clones <- c(310.7, 338.7)
revenge_sith <- c(380.3, 468.5)
# Create box_office
box_office <- c(new_hope, empire_strikes, return_jedi, phantom_menace, attack_clones, revenge_sit... |
library(pheatmap)
library(ComplexHeatmap)
# Create test matrix
test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste("Test", 1:10, sep = ""... | /typora/R/作图/pheatmap.R | no_license | taoziyu97/R-work | R | false | false | 4,709 | r | library(pheatmap)
library(ComplexHeatmap)
# Create test matrix
test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste("Test", 1:10, sep = ""... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.