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 |
|---|---|---|---|---|---|---|---|---|---|
setwd("~/Titanic Task")
# Read in train and test data
titanic.train <- read.csv(file = "train.csv", stringsAsFactors = FALSE, header = TRUE)
titanic.test <- read.csv(file = "test.csv", stringsAsFactors = FALSE, header = TRUE)
# adding new column to dataSets for merging
titanic.train$IsTrainSet <- TRUE
titanic.test$Is... | /Titanic Task/Model.R | no_license | Mo-Abdalla/BigData | R | false | false | 2,118 | r | setwd("~/Titanic Task")
# Read in train and test data
titanic.train <- read.csv(file = "train.csv", stringsAsFactors = FALSE, header = TRUE)
titanic.test <- read.csv(file = "test.csv", stringsAsFactors = FALSE, header = TRUE)
# adding new column to dataSets for merging
titanic.train$IsTrainSet <- TRUE
titanic.test$Is... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
SRM_RCPP_SIGMA_Y_INV_WOODBURY_PHI_INV <- function(SIGMA_U_INV, NI) {
.Call('_srm_SRM_RCPP_SIGMA_Y_INV_WOODBURY_PHI_INV', PACKAGE = 'srm', SIGMA_U_INV, NI)
}
SRM_RCPP_SIGMA_Y_INV_WOODBURY_T... | /srm/R/RcppExports.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 4,329 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
SRM_RCPP_SIGMA_Y_INV_WOODBURY_PHI_INV <- function(SIGMA_U_INV, NI) {
.Call('_srm_SRM_RCPP_SIGMA_Y_INV_WOODBURY_PHI_INV', PACKAGE = 'srm', SIGMA_U_INV, NI)
}
SRM_RCPP_SIGMA_Y_INV_WOODBURY_T... |
require(tidyverse)
#{{{ old interprosan GO output
if (FALSE) {
fg = '/home/springer/zhoux379/data/genome/Zmays_v4/61.interpro/15.tsv'
tg = read.table(fg, sep = "\t", as.is = T, header = F, quote = '')
colnames(tg) = c("gid", "goid")
fd = '/home/springer/zhoux379/data/genome/Zmays_v4/61.interpro/16.go.... | /r/enrich.R | no_license | orionzhou/archive_luffy | R | false | false | 3,060 | r | require(tidyverse)
#{{{ old interprosan GO output
if (FALSE) {
fg = '/home/springer/zhoux379/data/genome/Zmays_v4/61.interpro/15.tsv'
tg = read.table(fg, sep = "\t", as.is = T, header = F, quote = '')
colnames(tg) = c("gid", "goid")
fd = '/home/springer/zhoux379/data/genome/Zmays_v4/61.interpro/16.go.... |
# Show VBZ lines
loadAllShp <- function(data_path,shpfiles){
shp_kreis <- shapefile(paste0(data_path,shpfiles$Stadtkreis) )
crs00 <- CRS('+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs ')
shp_l... | /sources/show_lines.R | permissive | CraigWangStat/ODDZurich_Shiny | R | false | false | 2,204 | r | # Show VBZ lines
loadAllShp <- function(data_path,shpfiles){
shp_kreis <- shapefile(paste0(data_path,shpfiles$Stadtkreis) )
crs00 <- CRS('+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs ')
shp_l... |
context("Missing values")
test_that("blanks read as missing [xlsx]", {
blanks <- read_excel("blanks.xlsx")
expect_equal(blanks$x, c(NA, 1))
expect_equal(blanks$y, c("a", NA))
})
test_that("blanks read as missing [xls]", {
blanks <- read_excel("blanks.xls")
expect_equal(blanks$x, c(NA, 1))
expect_equal(bla... | /tests/testthat/test-missing-values.R | no_license | JakeRuss/readxl | R | false | false | 1,127 | r | context("Missing values")
test_that("blanks read as missing [xlsx]", {
blanks <- read_excel("blanks.xlsx")
expect_equal(blanks$x, c(NA, 1))
expect_equal(blanks$y, c("a", NA))
})
test_that("blanks read as missing [xls]", {
blanks <- read_excel("blanks.xls")
expect_equal(blanks$x, c(NA, 1))
expect_equal(bla... |
library(visreg)
f <- system.file('tests', 'enhances-lme4.R', package='visreg')
source(f)
| /tests/run/test-enhances-lme4.R | no_license | cran/visreg | R | false | false | 89 | r | library(visreg)
f <- system.file('tests', 'enhances-lme4.R', package='visreg')
source(f)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering_functions.R
\name{AP_preferenceRange}
\alias{AP_preferenceRange}
\title{Affinity propagation preference range}
\usage{
AP_preferenceRange(data, method = "bound", threads = 1)
}
\arguments{
\item{data}{a matrix. Either a similarity ... | /man/AP_preferenceRange.Rd | no_license | mlampros/ClusterR | R | false | true | 2,553 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering_functions.R
\name{AP_preferenceRange}
\alias{AP_preferenceRange}
\title{Affinity propagation preference range}
\usage{
AP_preferenceRange(data, method = "bound", threads = 1)
}
\arguments{
\item{data}{a matrix. Either a similarity ... |
#wrapper to call each of the scripts for calculating climate contributions
source("estimateClimateContributions_Colonization.R")
source("estimateClimateContributions_Growth.R")
source("estimateClimateContributions_Survival.R") | /analysis/quadBM/vitalRateRegressions/cache/OLD_VERSIONS/finalModels/wrapper_allClimateContributions.R | no_license | atredennick/MicroMesoForecast | R | false | false | 227 | r | #wrapper to call each of the scripts for calculating climate contributions
source("estimateClimateContributions_Colonization.R")
source("estimateClimateContributions_Growth.R")
source("estimateClimateContributions_Survival.R") |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 2.76774696985651e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615778728-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 2.76774696985651e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
data1 <- read.table("ke0702.csv",header = TRUE, sep =",")
data1
fm <- lm(lnY ~ lnL + lnK, data = data1)
summary(fm)
| /exercises/ke0702.R | no_license | Prunus1350/Econometrics | R | false | false | 116 | r | data1 <- read.table("ke0702.csv",header = TRUE, sep =",")
data1
fm <- lm(lnY ~ lnL + lnK, data = data1)
summary(fm)
|
# + ------------------------------------------------------- +
# | Draw volatility curves at the end of a selected day |
# + ------------------------------------------------------- +
require(dplyr)
require(tidyr)
require(ggplot2)
# +------------------------------------+
# | Prepare data
# +---------------------... | /history_manipulation.R | no_license | davydovpv/appSmile | R | false | false | 4,563 | r |
# + ------------------------------------------------------- +
# | Draw volatility curves at the end of a selected day |
# + ------------------------------------------------------- +
require(dplyr)
require(tidyr)
require(ggplot2)
# +------------------------------------+
# | Prepare data
# +---------------------... |
.onAttach <- function(libname, pkgname){
packageStartupMessage("")
packageStartupMessage("***********************************************************")
packageStartupMessage("")
packageStartupMessage(" This is 'GenomicMating' package, v 2.0")
packageStartupMessage("")
packageStartupMessage("Citation det... | /GenomicMating/R/init.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 578 | r | .onAttach <- function(libname, pkgname){
packageStartupMessage("")
packageStartupMessage("***********************************************************")
packageStartupMessage("")
packageStartupMessage(" This is 'GenomicMating' package, v 2.0")
packageStartupMessage("")
packageStartupMessage("Citation det... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simData.R
\name{simData}
\alias{simData}
\title{Simulate different scenarios of abundance change in entities}
\usage{
simData(tree = NULL, data = NULL, obj = NULL, scenario = "S1",
from.A = NULL, from.B = NULL, minTip.A = 0, maxTip.A = Inf,... | /man/simData.Rd | no_license | fionarhuang/treeAGG | R | false | true | 6,593 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simData.R
\name{simData}
\alias{simData}
\title{Simulate different scenarios of abundance change in entities}
\usage{
simData(tree = NULL, data = NULL, obj = NULL, scenario = "S1",
from.A = NULL, from.B = NULL, minTip.A = 0, maxTip.A = Inf,... |
rm (list = ls())
# Read the data
data <- read.csv("data/09.06_COMBINED DATASET REDUCED.csv", header = T, stringsAsFactors = F, skipNul = TRUE)
data$tot_personyrs <- as.numeric(data$tot_personyrs)
data[(is.na(data$tot_personyrs)),]$tot_personyrs <-
data[(is.na(data$tot_personyrs)),]$mean_followup * data[(is.na(data$... | /legacy/summary-table.R | no_license | meta-analyses/meta-analysis | R | false | false | 4,228 | r | rm (list = ls())
# Read the data
data <- read.csv("data/09.06_COMBINED DATASET REDUCED.csv", header = T, stringsAsFactors = F, skipNul = TRUE)
data$tot_personyrs <- as.numeric(data$tot_personyrs)
data[(is.na(data$tot_personyrs)),]$tot_personyrs <-
data[(is.na(data$tot_personyrs)),]$mean_followup * data[(is.na(data$... |
## Clear workspace
rm(list=ls())
library(lubridate)
## load data frame
householdPwrData <- read.table(
"./data/household_power_consumption.txt",
header=TRUE, ## sourcefile has header row
sep=";", ## data is separeted by semicolons
na.strings = c("?"), ## missing... | /plot3.R | no_license | gverissimo/ExData_Plotting1 | R | false | false | 3,039 | r | ## Clear workspace
rm(list=ls())
library(lubridate)
## load data frame
householdPwrData <- read.table(
"./data/household_power_consumption.txt",
header=TRUE, ## sourcefile has header row
sep=";", ## data is separeted by semicolons
na.strings = c("?"), ## missing... |
globalVariables(c(".","cumulative_data_fraction","cumulative_capture_rate","cumulative_lift","cumulative_response_rate",
"model_id","standardized_coefficients","coefficients","metalearner","reorder","scaled_importance",
"test_data","plot","best","n_vars","explain", "save_png","varia... | /R/global_variables.R | no_license | PeerChristensen/autoMLviz | R | false | false | 386 | r |
globalVariables(c(".","cumulative_data_fraction","cumulative_capture_rate","cumulative_lift","cumulative_response_rate",
"model_id","standardized_coefficients","coefficients","metalearner","reorder","scaled_importance",
"test_data","plot","best","n_vars","explain", "save_png","varia... |
################# CHARGEMENT DES LIBRAIRIES
library(shiny)
library(shinythemes)
library(DT)
library(dplyr)
library(shinyBS)
library(shinyTime)
library(RPostgreSQL)
library(shinyalert)
################ CHARGEMENT DE LA BASE DE DONNEES
con<- dbConnect(PostgreSQL(), host="pggeodb-preprod.nancy.inra.fr", dbname="", use... | /app_220418.R | no_license | Liinwe/Electronic-notebook | R | false | false | 30,055 | r | ################# CHARGEMENT DES LIBRAIRIES
library(shiny)
library(shinythemes)
library(DT)
library(dplyr)
library(shinyBS)
library(shinyTime)
library(RPostgreSQL)
library(shinyalert)
################ CHARGEMENT DE LA BASE DE DONNEES
con<- dbConnect(PostgreSQL(), host="pggeodb-preprod.nancy.inra.fr", dbname="", use... |
# setwd("/spin1/users/zhangh24/breast_cancer_data_analysis/")
# filedir <- './whole_genome_age/ICOG/Intrinsic_subtypes/result/'
# files <- dir(filedir,pattern="intrinsic_subytpe_icog")
# total <- 564*5
# missingid <- matrix(0,total,2)
# temp <- 0
# for(i1 in 1:564){
# print(i1)
# for(i2 in 1:5){
# text <- paste... | /whole_genome_age/ICOG/Intrinsic_subtypes/code/merge_sex.r | no_license | andrewhaoyu/breast_cancer_data_analysis | R | false | false | 9,380 | r | # setwd("/spin1/users/zhangh24/breast_cancer_data_analysis/")
# filedir <- './whole_genome_age/ICOG/Intrinsic_subtypes/result/'
# files <- dir(filedir,pattern="intrinsic_subytpe_icog")
# total <- 564*5
# missingid <- matrix(0,total,2)
# temp <- 0
# for(i1 in 1:564){
# print(i1)
# for(i2 in 1:5){
# text <- paste... |
#Data Cleaning and Preparation - Hints
#Identify the data quality issues and clean the data so that you can use it for analysis.
#Ensure that the dates and time are in the proper format. Derive new variables which will be useful for analysis.
uberrequestdata <- read.csv("Uber Request Data.csv",stringsAsFactors = FALS... | /UberSupplyDemandGap/UberSupplyDemand.R | no_license | deepak05kr/datascience | R | false | false | 2,405 | r | #Data Cleaning and Preparation - Hints
#Identify the data quality issues and clean the data so that you can use it for analysis.
#Ensure that the dates and time are in the proper format. Derive new variables which will be useful for analysis.
uberrequestdata <- read.csv("Uber Request Data.csv",stringsAsFactors = FALS... |
# -------------------------------------------------------------------------------
# This file is part of 'diversityForest'.
#
# 'diversityForest' is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... | /R/tunedivfor.R | no_license | RomanHornung/diversityForest | R | false | false | 5,342 | r | # -------------------------------------------------------------------------------
# This file is part of 'diversityForest'.
#
# 'diversityForest' is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... |
# Main figures
rm(list = ls())
# Load libraries and data -------------------------------------------------------------------------------------------------------
library(ggplot2)
library(tidyverse)
library(ggpubr)
load('age_flow_summary.RData')
# Organize data -------------------------------------------------------... | /plots.R | no_license | CVFC-MSE/age_climate_model | R | false | false | 65,592 | r | # Main figures
rm(list = ls())
# Load libraries and data -------------------------------------------------------------------------------------------------------
library(ggplot2)
library(tidyverse)
library(ggpubr)
load('age_flow_summary.RData')
# Organize data -------------------------------------------------------... |
library(data.table)
library(ggplot2)
library(RColorBrewer)
rm(list=ls())
theme_set(theme_minimal(base_size = 18))
main_dir <- file.path(Sys.getenv("HOME"),
"Dropbox (IDM)/Malaria Team Folder/projects/map_intervention_impact/lookup_tables/interactions")
plot_dir <- file.path(Sys.getenv("HOME"), ... | /intervention_impact/visualize_results/older_plotting/plots_for_symposium.r | no_license | InstituteforDiseaseModeling/archetypes-intervention-impact | R | false | false | 10,111 | r | library(data.table)
library(ggplot2)
library(RColorBrewer)
rm(list=ls())
theme_set(theme_minimal(base_size = 18))
main_dir <- file.path(Sys.getenv("HOME"),
"Dropbox (IDM)/Malaria Team Folder/projects/map_intervention_impact/lookup_tables/interactions")
plot_dir <- file.path(Sys.getenv("HOME"), ... |
# Submission Prog2
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
invx <- NULL
set <- function(y) {
x <<- y
invx <<- NULL
}
get <- function() x
setinverse <- function(Inverse) invx <<- Inverse
getinverse<- ... | /cachematrix.R | no_license | tofguerrier/ProgrammingAssignment2 | R | false | false | 1,166 | r | # Submission Prog2
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
invx <- NULL
set <- function(y) {
x <<- y
invx <<- NULL
}
get <- function() x
setinverse <- function(Inverse) invx <<- Inverse
getinverse<- ... |
library(shiny)
# Define UI for miles per gallon application
shinyUI(fluidPage(
# Application title
headerPanel("Hi friends, this is my first shiny application ! "),
#h3(""),
h4("Using the Motor Trend Car Road Tests dataset, this application builds scatter plots of Mile Per Gallon values in fonction of a us... | /ui.R | no_license | cdv04/FirstCdvShinyApp | R | false | false | 1,689 | r | library(shiny)
# Define UI for miles per gallon application
shinyUI(fluidPage(
# Application title
headerPanel("Hi friends, this is my first shiny application ! "),
#h3(""),
h4("Using the Motor Trend Car Road Tests dataset, this application builds scatter plots of Mile Per Gallon values in fonction of a us... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/combining.R
\name{names_all_same}
\alias{names_all_same}
\title{Check that names are all identical}
\usage{
names_all_same(datalist)
}
\arguments{
\item{datalist}{list of dataframes whose names must all be identical}
}
\value{
are the... | /man/names_all_same.Rd | permissive | yosaralu/bwgtools | R | false | false | 406 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/combining.R
\name{names_all_same}
\alias{names_all_same}
\title{Check that names are all identical}
\usage{
names_all_same(datalist)
}
\arguments{
\item{datalist}{list of dataframes whose names must all be identical}
}
\value{
are the... |
########################################################################################
## GLLVM fourth corner model, with estimation done via Laplace and Variational approximation using TMB-package
## Original author: Jenni Niku
#########################################################################################... | /R/TMBtrait.R | no_license | Raykova/gllvm | R | false | false | 45,711 | r | ########################################################################################
## GLLVM fourth corner model, with estimation done via Laplace and Variational approximation using TMB-package
## Original author: Jenni Niku
#########################################################################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_french_data.R
\name{print.french_dataset}
\alias{print.french_dataset}
\title{Generic print method for objects of class \code{french_dataset}}
\usage{
\method{print}{french_dataset}(x, ...)
}
\arguments{
\item{x}{an object of class \... | /man/print.french_dataset.Rd | permissive | minghao2016/frenchdata | R | false | true | 555 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_french_data.R
\name{print.french_dataset}
\alias{print.french_dataset}
\title{Generic print method for objects of class \code{french_dataset}}
\usage{
\method{print}{french_dataset}(x, ...)
}
\arguments{
\item{x}{an object of class \... |
# Crops!
# Load libraries -----
library(tidyverse)
library(ggimage)
library(treemapify)
library(ggtext)
library(ochRe)
library(extrafont)
library(patchwork)
# Get data -----
tt_data <- tidytuesdayR::tt_load(2020, 36)
tidytuesdayR::readme(tt_data)
# Set theme across plots ----
earthCol <- "#3a2b1f"
# To get colours... | /scripts/202009_crops.R | no_license | umardhiah/tidytuesdays | R | false | false | 4,812 | r | # Crops!
# Load libraries -----
library(tidyverse)
library(ggimage)
library(treemapify)
library(ggtext)
library(ochRe)
library(extrafont)
library(patchwork)
# Get data -----
tt_data <- tidytuesdayR::tt_load(2020, 36)
tidytuesdayR::readme(tt_data)
# Set theme across plots ----
earthCol <- "#3a2b1f"
# To get colours... |
margcoef <- function(x, y, condind = NULL, family, null.model = FALSE, iterind){
n = dim(x)[1]; p = dim(x)[2]; ones = rep(1, n)
candind = setdiff(1:p, condind)
if(iterind == 0){
if(family == "cox")
margcoef = abs(cor(x,y[,1]))
else
margcoef = abs(cor(x,y))
}else{
if(null.model == TRUE){
... | /SIS/R/margcoef.R | no_license | ingted/R-Examples | R | false | false | 1,118 | r | margcoef <- function(x, y, condind = NULL, family, null.model = FALSE, iterind){
n = dim(x)[1]; p = dim(x)[2]; ones = rep(1, n)
candind = setdiff(1:p, condind)
if(iterind == 0){
if(family == "cox")
margcoef = abs(cor(x,y[,1]))
else
margcoef = abs(cor(x,y))
}else{
if(null.model == TRUE){
... |
cmdargs <- c("-m","mask.nii.gz", "--set1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/setfilenames_fearGTcalm.txt",
"--setlabels1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/depanxcov-midpoint5.csv",
"--model", "permu... | /dep_lead.fear/perm.free.dep_lead.fear/readargs.R | no_license | jflournoy/sea_np_models | R | false | false | 561 | r |
cmdargs <- c("-m","mask.nii.gz", "--set1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/setfilenames_fearGTcalm.txt",
"--setlabels1", "/mnt/stressdevlab/stress_pipeline/Group/FaceReactivity/NewNeuropoint/datafiles/depanxcov-midpoint5.csv",
"--model", "permu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootcorrect.R
\name{bootcor}
\alias{bootcor}
\title{Bootstrap correction to obtain desired failure probability}
\usage{
bootcor(
ppdata,
cutoff,
numit = 1000,
tol = 0.02,
nxprob = 0.1,
intens = NULL,
covmatrix = NUL... | /man/bootcor.Rd | no_license | cran/highriskzone | R | false | true | 3,967 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootcorrect.R
\name{bootcor}
\alias{bootcor}
\title{Bootstrap correction to obtain desired failure probability}
\usage{
bootcor(
ppdata,
cutoff,
numit = 1000,
tol = 0.02,
nxprob = 0.1,
intens = NULL,
covmatrix = NUL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aspects.R
\name{is_asp}
\alias{is_asp}
\title{Aspect Check}
\usage{
is_asp(x)
}
\arguments{
\item{x}{Object to check.}
}
\value{
A boolean.
}
\description{
Checks whether the object is of class \code{aspects},
as returned by \code{\link[=asp]... | /man/is_asp.Rd | permissive | han-tun/g2r | R | false | true | 405 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aspects.R
\name{is_asp}
\alias{is_asp}
\title{Aspect Check}
\usage{
is_asp(x)
}
\arguments{
\item{x}{Object to check.}
}
\value{
A boolean.
}
\description{
Checks whether the object is of class \code{aspects},
as returned by \code{\link[=asp]... |
\name{R0-package}
\alias{R0-package}
\alias{R0}
\docType{package}
\title{
\packageTitle{R0}
}
\description{
\packageDescription{R0}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{R0}
\packageIndices{R0}
~~ An overview of how to use the package, including the ~~
~~ most important functions ~~
}
\author{
\package... | /man/R0-package.Rd | no_license | OutbreakResources/R0 | R | false | false | 754 | rd | \name{R0-package}
\alias{R0-package}
\alias{R0}
\docType{package}
\title{
\packageTitle{R0}
}
\description{
\packageDescription{R0}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{R0}
\packageIndices{R0}
~~ An overview of how to use the package, including the ~~
~~ most important functions ~~
}
\author{
\package... |
## Script for summarising and plotting data/mutations/annotations etc
## Get first the directories (samples may be in different directories)
library(RColorBrewer)
es = c("LP6005690-DNA_E02_vs_LP6005689-DNA_E02",
"LP6008280-DNA_F02_vs_LP6008264-DNA_F02",
"LP6008202-DNA_F01_vs_LP6008201-DNA_F01",
... | /raw_scripts/summary_plotting.R | no_license | ciccalab/sysSVM | R | false | false | 18,790 | r | ## Script for summarising and plotting data/mutations/annotations etc
## Get first the directories (samples may be in different directories)
library(RColorBrewer)
es = c("LP6005690-DNA_E02_vs_LP6005689-DNA_E02",
"LP6008280-DNA_F02_vs_LP6008264-DNA_F02",
"LP6008202-DNA_F01_vs_LP6008201-DNA_F01",
... |
\name{print.relaxnet}
\alias{print.relaxnet}
\title{
Print Method for relaxnet Objects
}
\description{
This function just calls \code{print(summary(x))}. See \code{\link{summary.relaxnet}}.
}
\usage{
\method{print}{relaxnet}(x, digits, ...)
}
\arguments{
\item{x}{
The \code{"relaxnet"} object to be printed.
}
\... | /man/print.relaxnet.Rd | no_license | cran/relaxnet | R | false | false | 775 | rd | \name{print.relaxnet}
\alias{print.relaxnet}
\title{
Print Method for relaxnet Objects
}
\description{
This function just calls \code{print(summary(x))}. See \code{\link{summary.relaxnet}}.
}
\usage{
\method{print}{relaxnet}(x, digits, ...)
}
\arguments{
\item{x}{
The \code{"relaxnet"} object to be printed.
}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipe.R
\name{\%>\%}
\alias{\%>\%}
\title{Pipe operator}
\usage{
lhs \%>\% rhs
}
\arguments{
\item{lhs}{a \code{\link{morrisjs}} object}
\item{rhs}{a charting function}
}
\description{
Imports the pipe operator from magrittr.
}
\examples{
mor... | /man/pipe.Rd | permissive | MarkEdmondson1234/morrisjs | R | false | true | 352 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipe.R
\name{\%>\%}
\alias{\%>\%}
\title{Pipe operator}
\usage{
lhs \%>\% rhs
}
\arguments{
\item{lhs}{a \code{\link{morrisjs}} object}
\item{rhs}{a charting function}
}
\description{
Imports the pipe operator from magrittr.
}
\examples{
mor... |
# Merging Data
## Peer review data
### Peer review study (model for scientific peer review)
### SAT questions answered (solutions) in one set
### People who reviewed those answers to decide whether they were right
### or wrong in the other set.
if(!file.exists("./data")){dir.creat("./data")}
fileUrl1 = "https://dl.... | /Johns Hopkins Data Science Concentration/Data Cleaning/Merging Data.R | no_license | ercbk/Notes | R | false | false | 2,172 | r | # Merging Data
## Peer review data
### Peer review study (model for scientific peer review)
### SAT questions answered (solutions) in one set
### People who reviewed those answers to decide whether they were right
### or wrong in the other set.
if(!file.exists("./data")){dir.creat("./data")}
fileUrl1 = "https://dl.... |
# Downloading and extracting the data.
if (!file.exists ("Project1_Data")) {
dir.create ("Project1_Data")
download.file ("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="Project1_Data/exdata-data-household_power_consumption.zip",... | /plot1.R | no_license | Vaskoman/ExData_Plotting1 | R | false | false | 1,967 | r | # Downloading and extracting the data.
if (!file.exists ("Project1_Data")) {
dir.create ("Project1_Data")
download.file ("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="Project1_Data/exdata-data-household_power_consumption.zip",... |
Family.sizes <-
function(Ped){
fam.id <- NULL
fam.names <- as.vector(unique(Ped[ ,1]))
for(i in 1:length(fam.names))
{
fam.id[Ped[ ,1]==fam.names[i]] <- i
}
Ped[,1] <- fam.id
nbre.family = length(unique(Ped[ ,1])) #### ceci donne le nbre total de familles dans un jeu de donnees
ntype=vector(length = ... | /R/Family.sizes.R | no_license | KarimOualkacha/PCH4Pedigees | R | false | false | 532 | r | Family.sizes <-
function(Ped){
fam.id <- NULL
fam.names <- as.vector(unique(Ped[ ,1]))
for(i in 1:length(fam.names))
{
fam.id[Ped[ ,1]==fam.names[i]] <- i
}
Ped[,1] <- fam.id
nbre.family = length(unique(Ped[ ,1])) #### ceci donne le nbre total de familles dans un jeu de donnees
ntype=vector(length = ... |
\name{read_jplace}
\alias{read_jplace}
\title{
Read a jplace file
}
\description{
Read a jplace file
}
\usage{
read_jplace(jplace_file, full = TRUE)
}
\arguments{
\item{jplace_file}{
A jplace file name
}
\item{full}{
If set to FALSE, only the tree is read from the jplace file
}
}
\details{
When the jplace or sqlite... | /man/read_jplace.Rd | no_license | cran/BoSSA | R | false | false | 782 | rd | \name{read_jplace}
\alias{read_jplace}
\title{
Read a jplace file
}
\description{
Read a jplace file
}
\usage{
read_jplace(jplace_file, full = TRUE)
}
\arguments{
\item{jplace_file}{
A jplace file name
}
\item{full}{
If set to FALSE, only the tree is read from the jplace file
}
}
\details{
When the jplace or sqlite... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 15079
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 15078
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 15078
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt21_215_403/stmt21_215_403.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 720 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 15079
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 15078
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 15078
c
c Input Parameter (command line, ... |
library("testthat")
| /tmc-langs-r/src/test/resources/recognition_test_cases/testthat_folder/tests/testthat.R | no_license | testmycode/tmc-langs | R | false | false | 20 | r | library("testthat")
|
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853231-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 659 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
comparison <- function(dat1, dat2, dat3) {
inp1 <- read.fwf(dat1, c(5, 3, 13, 18, 12), skip = 8)
inp2 <- read.fwf(dat2, c(5, 3, 13, 18, 12), skip = 8)
inp3 <- read.fwf(dat3, c(5, 3, 13, 18, 12), skip = 8)
t <- inp1$V1 + inp1$V2 / 12 + inp1$V3 / 365
dra <- (inp1$V4 - inp2$V4) * 15 * 36e+5
ddec <- (inp1$V5 - inp2... | /work2/compareplot.R | no_license | Veyza/Uranus | R | false | false | 1,557 | r | comparison <- function(dat1, dat2, dat3) {
inp1 <- read.fwf(dat1, c(5, 3, 13, 18, 12), skip = 8)
inp2 <- read.fwf(dat2, c(5, 3, 13, 18, 12), skip = 8)
inp3 <- read.fwf(dat3, c(5, 3, 13, 18, 12), skip = 8)
t <- inp1$V1 + inp1$V2 / 12 + inp1$V3 / 365
dra <- (inp1$V4 - inp2$V4) * 15 * 36e+5
ddec <- (inp1$V5 - inp2... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nested_one_of.R
\docType{class}
\name{NestedOneOf}
\alias{NestedOneOf}
\title{NestedOneOf}
\format{
An \code{R6Class} generator object
}
\description{
NestedOneOf Class
}
\details{
OpenAPI Petstore
This is a sample server Petstore server. Fo... | /samples/client/petstore/R-httr2/man/NestedOneOf.Rd | permissive | OpenAPITools/openapi-generator | R | false | true | 5,234 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nested_one_of.R
\docType{class}
\name{NestedOneOf}
\alias{NestedOneOf}
\title{NestedOneOf}
\format{
An \code{R6Class} generator object
}
\description{
NestedOneOf Class
}
\details{
OpenAPI Petstore
This is a sample server Petstore server. Fo... |
#!/usr/bin/Rscript
args <- commandArgs(trailingOnly = TRUE)
if (length(args) != 2) {
message("USAGE: ./ej07_plot.R parallel_errors diagonal_errors")
quit()
}
message("parallel")
message(args[1])
message("diagonal")
message(args[2])
parallel <- read.csv(args[1], header = TRUE)
diagonal <- read.csv(args[2], ... | /ml01/ej07_plot_errors.R | no_license | hgurmendi/machine-learning | R | false | false | 2,077 | r | #!/usr/bin/Rscript
args <- commandArgs(trailingOnly = TRUE)
if (length(args) != 2) {
message("USAGE: ./ej07_plot.R parallel_errors diagonal_errors")
quit()
}
message("parallel")
message(args[1])
message("diagonal")
message(args[2])
parallel <- read.csv(args[1], header = TRUE)
diagonal <- read.csv(args[2], ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allele_genotype_functions.R
\docType{methods}
\name{stringCoverage,extractedReadsListCombined-method}
\alias{stringCoverage,extractedReadsListCombined-method}
\title{Get string coverage STR identified objects.}
\usage{
\S4method{stringCoverag... | /man/stringCoverage-extractedReadsListCombined-method.Rd | no_license | cran/STRMPS | R | false | true | 1,627 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allele_genotype_functions.R
\docType{methods}
\name{stringCoverage,extractedReadsListCombined-method}
\alias{stringCoverage,extractedReadsListCombined-method}
\title{Get string coverage STR identified objects.}
\usage{
\S4method{stringCoverag... |
library(jsonlite)
library(curl)
download.file(url = "http://ergast.com/api/f1/2012/results.json" , destfile = "manjeets_DAdata.json")
| /manjeets_Prob1/manjeets_DA1.R | no_license | manjeetsingh87/Data-Visualization-using-R | R | false | false | 135 | r | library(jsonlite)
library(curl)
download.file(url = "http://ergast.com/api/f1/2012/results.json" , destfile = "manjeets_DAdata.json")
|
# Using a given value of m and a target value of h, finds the actual h
# and the resulting arl's
findBernoulliCL.simple <- function(p0, m, h.start, arl.b0=NULL, arl.g0=NULL,
head.start.state=NULL, verbose=FALSE) {
if (is.null(arl.b0) & is.null(arl.g0)) stop("\nNeed a value for... | /monitoring/R/findBernoulliCL.simple.R | no_license | lhsego/sUtils | R | false | false | 2,949 | r | # Using a given value of m and a target value of h, finds the actual h
# and the resulting arl's
findBernoulliCL.simple <- function(p0, m, h.start, arl.b0=NULL, arl.g0=NULL,
head.start.state=NULL, verbose=FALSE) {
if (is.null(arl.b0) & is.null(arl.g0)) stop("\nNeed a value for... |
# Probability distributions
# 18 Feburary 2020
# d probability density function
# p cumulative probability distribution
# q quantile function (inverse of p)
# r random number generator
### command + = zoom in
### command - = zoom out
# Poisson distribution ----------------------------------------------------
# disc... | /ProbDist_02.18.2020.R | permissive | sarazenj/SarazenBio381 | R | false | false | 4,567 | r | # Probability distributions
# 18 Feburary 2020
# d probability density function
# p cumulative probability distribution
# q quantile function (inverse of p)
# r random number generator
### command + = zoom in
### command - = zoom out
# Poisson distribution ----------------------------------------------------
# disc... |
library(qiimer)
### Name: dist_groups
### Title: Create a data frame of distances between groups of items.
### Aliases: dist_groups
### ** Examples
data(relmbeta_dist)
data(relmbeta)
head(dist_groups(relmbeta_dist, relmbeta$Diet))
| /data/genthat_extracted_code/qiimer/examples/dist_groups.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 238 | r | library(qiimer)
### Name: dist_groups
### Title: Create a data frame of distances between groups of items.
### Aliases: dist_groups
### ** Examples
data(relmbeta_dist)
data(relmbeta)
head(dist_groups(relmbeta_dist, relmbeta$Diet))
|
source('./common.R')
# Read the data used for plotting
plotData <- readData()
# Open PNG device
png(file = "plot4.png", height = 480, width = 480)
# Make space for 4 plots in one and set transparent background color
par(mfrow = c(2, 2), bg = NA)
# Create the plot
with(plotData, {
# Top left plot
plot(Global_act... | /plot4.R | no_license | sorenlind/ExData_Plotting1 | R | false | false | 1,020 | r | source('./common.R')
# Read the data used for plotting
plotData <- readData()
# Open PNG device
png(file = "plot4.png", height = 480, width = 480)
# Make space for 4 plots in one and set transparent background color
par(mfrow = c(2, 2), bg = NA)
# Create the plot
with(plotData, {
# Top left plot
plot(Global_act... |
context("test-ldpop")
test_that("ldpop throws an error", {
skip_on_cran()
expect_error(LDpop(var1 = "s3", var2 = "Rs4", pop = "YRI", r2d = "r2", token = Sys.getenv("LDLINK_TOKEN")))
})
test_that("ldpop throws an error w/ invalid var2 coord", {
skip_on_cran()
expect_error(LDpop(var1 = "chr13:32446842", var2 = ... | /tests/testthat/test-ldpop.R | no_license | timyers/LDlinkR-1 | R | false | false | 741 | r | context("test-ldpop")
test_that("ldpop throws an error", {
skip_on_cran()
expect_error(LDpop(var1 = "s3", var2 = "Rs4", pop = "YRI", r2d = "r2", token = Sys.getenv("LDLINK_TOKEN")))
})
test_that("ldpop throws an error w/ invalid var2 coord", {
skip_on_cran()
expect_error(LDpop(var1 = "chr13:32446842", var2 = ... |
library(caret) # model training and evaluation
library(ROCR) # model evaluation
source("performance_plot_utils.R") # plotting metric results
## separate feature and class variables
test.feature.vars <- test.data[,-1]
test.class.var <- test.data[,1]
# build a logistic regression model
formula.init <- "credit.... | /demo/app_intro/examples/2016_RMachineLearningByExample/Ch6_PredictCredit/lr_classifier.R | permissive | stharrold/demo | R | false | false | 2,065 | r | library(caret) # model training and evaluation
library(ROCR) # model evaluation
source("performance_plot_utils.R") # plotting metric results
## separate feature and class variables
test.feature.vars <- test.data[,-1]
test.class.var <- test.data[,1]
# build a logistic regression model
formula.init <- "credit.... |
context("test-check-annotation-keys.R")
test_that("check_annotation_keys returns character(0) when no invalid annotations present", {
dat1 <- data.frame()
dat2 <- data.frame(assay = "rnaSeq")
res1 <- check_annotation_keys(dat1)
res2 <- check_annotation_keys(dat2)
expect_equal(res1, character(0))
expect_equ... | /tests/testthat/test-check-annotation-keys.R | permissive | milen-sage/dccvalidator | R | false | false | 1,476 | r | context("test-check-annotation-keys.R")
test_that("check_annotation_keys returns character(0) when no invalid annotations present", {
dat1 <- data.frame()
dat2 <- data.frame(assay = "rnaSeq")
res1 <- check_annotation_keys(dat1)
res2 <- check_annotation_keys(dat2)
expect_equal(res1, character(0))
expect_equ... |
#Page 395
T = 300
k = 8.617 * 10 ^ -5
e = 1.6 * 10 ^ -19
DE = 10
DB = 25
xB = 0.70 * 10 ^ -4
xE = 0.50 * 10 ^ -3
NE = 1 * 10 ^ 18
NB = 1 * 10 ^ 16
VBE = 0.65
tauB0 = 5 * 10 ^ -7
tauE0 = 1 * 10 ^ -7
Jr0 = 5 * 10 ^ -8
pE0 = 2.25 * 10 ^ 2
nB0 = 2.25 * 10 ^ 4
LE = 10 ^ -3
LB = 3.54 * 10 ^ -3
gamma = 1 / (1 + (pE0 * DE * ... | /Semiconductor_Physics_And_Devices_-_Basic_Principles_by_D_A_Neamen/CH10/EX10.4/Ex10_4.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 818 | r | #Page 395
T = 300
k = 8.617 * 10 ^ -5
e = 1.6 * 10 ^ -19
DE = 10
DB = 25
xB = 0.70 * 10 ^ -4
xE = 0.50 * 10 ^ -3
NE = 1 * 10 ^ 18
NB = 1 * 10 ^ 16
VBE = 0.65
tauB0 = 5 * 10 ^ -7
tauE0 = 1 * 10 ^ -7
Jr0 = 5 * 10 ^ -8
pE0 = 2.25 * 10 ^ 2
nB0 = 2.25 * 10 ^ 4
LE = 10 ^ -3
LB = 3.54 * 10 ^ -3
gamma = 1 / (1 + (pE0 * DE * ... |
### Charles Ferté
### Sage Bionetworks
### Seattle, WA
### January, 6th 2012
### script for running modelling prediction
#load the packages
library(affy)
library(survival)
library(Biobase)
library(MASS)
library(glmnet)
library(corpcor)
library(ROCR)
library(synapseClient)
library(survival)
library(risksetROC)
library... | /ANALYSIS/Elasticnet_Cox.R | no_license | chferte/NSCLC_Sig | R | false | false | 5,153 | r | ### Charles Ferté
### Sage Bionetworks
### Seattle, WA
### January, 6th 2012
### script for running modelling prediction
#load the packages
library(affy)
library(survival)
library(Biobase)
library(MASS)
library(glmnet)
library(corpcor)
library(ROCR)
library(synapseClient)
library(survival)
library(risksetROC)
library... |
install.packages("DBI")
install.packages("RMySQL")
install.packages("dplyr")
install.packages("ggplot2")
library(dplyr)
library(DBI)
library(RMySQL)
library(ggplot2)
MyDataBase <- dbConnect(
drv = RMySQL::MySQL(),
dbname = "shinydemo",
host = "shiny-demo.csa7qlmguqrf.us-east-1.rds.amazonaws.com",
username = "g... | /queries.R | no_license | JorgeMge/Reto_Sesion_7 | R | false | false | 688 | r | install.packages("DBI")
install.packages("RMySQL")
install.packages("dplyr")
install.packages("ggplot2")
library(dplyr)
library(DBI)
library(RMySQL)
library(ggplot2)
MyDataBase <- dbConnect(
drv = RMySQL::MySQL(),
dbname = "shinydemo",
host = "shiny-demo.csa7qlmguqrf.us-east-1.rds.amazonaws.com",
username = "g... |
# Aula 5 - ML
m <- mtcars
# Tratamento das variáveis
m$cyl_F <- as.factor(m$cyl)
m <- cbind(m, dummy(m$cyl))
set.seed(33)
va <- sample(32)
treino <- m[va[1:24],]
teste <- m[va[25:32],]
#mod <- lm(mpg~wt, data=treino)
#mod <- lm(mpg~log(wt), data=treino) # transf log-lin
#mod <- lm(mpg~poly(wt,2), data=treino) ... | /SHIFT/202109/t31_aula5.R | no_license | Uemura84/FIAP | R | false | false | 1,834 | r | # Aula 5 - ML
m <- mtcars
# Tratamento das variáveis
m$cyl_F <- as.factor(m$cyl)
m <- cbind(m, dummy(m$cyl))
set.seed(33)
va <- sample(32)
treino <- m[va[1:24],]
teste <- m[va[25:32],]
#mod <- lm(mpg~wt, data=treino)
#mod <- lm(mpg~log(wt), data=treino) # transf log-lin
#mod <- lm(mpg~poly(wt,2), data=treino) ... |
# For loop sync to counts
## need next line to call arguments:
args <- commandArgs(trailingOnly = TRUE)
## Convert a .sync file into long format, filter somewhat, and have only position, treatment, Cage, Generation and Maj/Min counts
## Packages source code: only need these two for this script (need to be this ord... | /Analysis_after_BAM_Scripts/Sync_to_counts.R | no_license | PaulKnoops/Experimental_Evolution_Sequence_Repo | R | false | false | 9,180 | r | # For loop sync to counts
## need next line to call arguments:
args <- commandArgs(trailingOnly = TRUE)
## Convert a .sync file into long format, filter somewhat, and have only position, treatment, Cage, Generation and Maj/Min counts
## Packages source code: only need these two for this script (need to be this ord... |
#' Script for data pretreatment
#'
#' This script call a series of data pretreatment functions for TL dating.
#' It only requires the name of the files with the TL curves and the relative error on the measurement.
#'
#' @param file.name
#' \link{character} (\bold{required}): Name of the file containing the lumin... | /TLdating/R/script_TL.pretreatment.R | no_license | ingted/R-Examples | R | false | false | 7,107 | r | #' Script for data pretreatment
#'
#' This script call a series of data pretreatment functions for TL dating.
#' It only requires the name of the files with the TL curves and the relative error on the measurement.
#'
#' @param file.name
#' \link{character} (\bold{required}): Name of the file containing the lumin... |
#' Create a mapping between factor/character vector and corresponding numeric values
#'
#' @param x a \code{factor} or \code{character} vector
#' @return returns a two dimensional \code{data.table}, where the first column is the numeric value and the second column the corresponding label
map_labels = function(x) {
... | /2021_FB/R/map_labels.R | permissive | baruuum/Replication_Code | R | false | false | 603 | r | #' Create a mapping between factor/character vector and corresponding numeric values
#'
#' @param x a \code{factor} or \code{character} vector
#' @return returns a two dimensional \code{data.table}, where the first column is the numeric value and the second column the corresponding label
map_labels = function(x) {
... |
# Human Activity Recognition database built from the recordings of 30 subjects
# performing activities of daily living (ADL) while carrying a waist-mounted smartphone with embedded inertial sensors.
# This R script runanalysis.R performe the following --
# Merges the training and the test sets to create one data set.
... | /run_analysis.R | no_license | avvenkat/datasciencecoursera | R | false | false | 4,060 | r | # Human Activity Recognition database built from the recordings of 30 subjects
# performing activities of daily living (ADL) while carrying a waist-mounted smartphone with embedded inertial sensors.
# This R script runanalysis.R performe the following --
# Merges the training and the test sets to create one data set.
... |
\name{uy}
\alias{uy}
\title{
Convert unit on y direction in data coordinate
}
\description{
Convert unit on y direction in data coordinate
}
\usage{
uy(...)
}
\arguments{
\item{...}{pass to \code{\link{convert_y}}.}
}
\details{
Please do not use this function. Use \code{\link{mm_y}}/\code{\link{cm_y}}/inches_y` ins... | /man/uy.Rd | permissive | jokergoo/circlize | R | false | false | 369 | rd | \name{uy}
\alias{uy}
\title{
Convert unit on y direction in data coordinate
}
\description{
Convert unit on y direction in data coordinate
}
\usage{
uy(...)
}
\arguments{
\item{...}{pass to \code{\link{convert_y}}.}
}
\details{
Please do not use this function. Use \code{\link{mm_y}}/\code{\link{cm_y}}/inches_y` ins... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cloudfront_operations.R
\name{update_cloud_front_origin_access_identity}
\alias{update_cloud_front_origin_access_identity}
\title{Update an origin access identity}
\usage{
update_cloud_front_origin_access_identity(CloudFrontOriginAcce... | /service/paws.cloudfront/man/update_cloud_front_origin_access_identity.Rd | permissive | CR-Mercado/paws | R | false | true | 959 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.cloudfront_operations.R
\name{update_cloud_front_origin_access_identity}
\alias{update_cloud_front_origin_access_identity}
\title{Update an origin access identity}
\usage{
update_cloud_front_origin_access_identity(CloudFrontOriginAcce... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{locations}
\alias{locations}
\title{Location of Spots in the Mouse Olfactory Bulb Data}
\format{A data frame with the following columns:
\describe{
\item{X1}{Spots names}
\item{x}{x coordinate of the locati... | /R-package/SpatialDE/man/locations.Rd | permissive | seninfobio/SpatialDE | R | false | true | 557 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_doc.R
\docType{data}
\name{locations}
\alias{locations}
\title{Location of Spots in the Mouse Olfactory Bulb Data}
\format{A data frame with the following columns:
\describe{
\item{X1}{Spots names}
\item{x}{x coordinate of the locati... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{scripts_list_sql_projects}
\alias{scripts_list_sql_projects}
\title{List the projects a scripts belongs to}
\usage{
scripts_list_sql_projects(id)
}
\arguments{
\item{id}{integer required. The ID of the resource.}
}
\v... | /man/scripts_list_sql_projects.Rd | permissive | wlattner/civis-r | R | false | true | 1,317 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generated_client.R
\name{scripts_list_sql_projects}
\alias{scripts_list_sql_projects}
\title{List the projects a scripts belongs to}
\usage{
scripts_list_sql_projects(id)
}
\arguments{
\item{id}{integer required. The ID of the resource.}
}
\v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_cv.r
\name{plot_cv}
\alias{plot_cv}
\title{Plot bycatch estimation CV vs. observer coverage}
\usage{
plot_cv(te, bpue, d = 2, targetcv = 0.3, showplot = TRUE, silent = FALSE, ...)
}
\arguments{
\item{te}{an integer greater than 1. Total ... | /man/plot_cv.Rd | no_license | kacurtis/ObsCovgTools | R | false | true | 2,146 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_cv.r
\name{plot_cv}
\alias{plot_cv}
\title{Plot bycatch estimation CV vs. observer coverage}
\usage{
plot_cv(te, bpue, d = 2, targetcv = 0.3, showplot = TRUE, silent = FALSE, ...)
}
\arguments{
\item{te}{an integer greater than 1. Total ... |
# Define server logic
server <- function(input, output, session) {
{ # About ----
{ # Images ----
{ # Disclaimer Pics ----
output$disc_pic_1 <- renderImage({list(
src = 'www/Photos/Kelp_Forest_Scenes/Laurie_Montgomery/1 (2).jpg',
height = "100%")}, delete = FALSE... | /App/server.R | no_license | cullen-molitor/KFM_Shiny_App | R | false | false | 33,879 | r |
# Define server logic
server <- function(input, output, session) {
{ # About ----
{ # Images ----
{ # Disclaimer Pics ----
output$disc_pic_1 <- renderImage({list(
src = 'www/Photos/Kelp_Forest_Scenes/Laurie_Montgomery/1 (2).jpg',
height = "100%")}, delete = FALSE... |
#Descargando fichero
url<-"https://raw.githubusercontent.com/rafalab/dslabs/master/inst/extdata/murders.csv"
dest_file<-"data/murders.csv"
download.file(url,destfile = dest_file)
| /BjarDatos-DataR.R | no_license | Franciscopan/murders | R | false | false | 179 | r | #Descargando fichero
url<-"https://raw.githubusercontent.com/rafalab/dslabs/master/inst/extdata/murders.csv"
dest_file<-"data/murders.csv"
download.file(url,destfile = dest_file)
|
#============================ Diet =============================================
#------------------ available for SMH ---------- ------------------------------
library(gemini)
lib.pa()
rm(list = ls())
smh <- readg(smh, diet)
names(smh)
sum(duplicated(smh))
smh <- smh[!duplicated(smh)]
apply(smh, MARGIN = 2, FUN = f... | /unify_data/diet.R | no_license | yishan-guo/gemini | R | false | false | 490 | r | #============================ Diet =============================================
#------------------ available for SMH ---------- ------------------------------
library(gemini)
lib.pa()
rm(list = ls())
smh <- readg(smh, diet)
names(smh)
sum(duplicated(smh))
smh <- smh[!duplicated(smh)]
apply(smh, MARGIN = 2, FUN = f... |
rm(list = ls())
lambda.0 <- 6.5 ; l <- 2.5 ; alpha <- 0.1
round(c(lambda.0 = lambda.0,
x.L = qchisq(alpha / 2, 2 * lambda.0) / 2,
x.H = qchisq(1 - alpha / 2, 2 * (lambda.0 + 1)) / 2, l = l,
alpha = alpha / 2), 3)
(lower.p <- pchisq(2 * l, 2 * lambda.0))
(upper.p <- 1 - pchisq(2 * l, 2 * (lambda.0 + 1)))
p.va... | /scripts/ch10/p-value-chi-square.r | no_license | StefanoCiotti/MyProgectsFirst | R | false | false | 2,295 | r | rm(list = ls())
lambda.0 <- 6.5 ; l <- 2.5 ; alpha <- 0.1
round(c(lambda.0 = lambda.0,
x.L = qchisq(alpha / 2, 2 * lambda.0) / 2,
x.H = qchisq(1 - alpha / 2, 2 * (lambda.0 + 1)) / 2, l = l,
alpha = alpha / 2), 3)
(lower.p <- pchisq(2 * l, 2 * lambda.0))
(upper.p <- 1 - pchisq(2 * l, 2 * (lambda.0 + 1)))
p.va... |
## This code is to reproduce the graphs in the PDF presentations
setwd("/Users/ggmhf/Desktop/Teaching/Multilevel Short Course")
set.seed(999)
a <- 0
Xb <- rep(1:5, each=5)
Xw <- rep(-2:2, 5)/5
x <- Xw + Xb
u <- rep(rnorm(5), each=5)/5
e <- rnorm(25)
y <- a + Xb - Xw + u + e
summary(lm(y~x))
pdf("BW1.pdf")
par(cex.l... | /Introduction_Multilevel/Longitudinal-Multilevel-short_course/Reproduce_PDF_graphics.R | no_license | cimentadaj/random-stuff | R | false | false | 19,748 | r | ## This code is to reproduce the graphs in the PDF presentations
setwd("/Users/ggmhf/Desktop/Teaching/Multilevel Short Course")
set.seed(999)
a <- 0
Xb <- rep(1:5, each=5)
Xw <- rep(-2:2, 5)/5
x <- Xw + Xb
u <- rep(rnorm(5), each=5)/5
e <- rnorm(25)
y <- a + Xb - Xw + u + e
summary(lm(y~x))
pdf("BW1.pdf")
par(cex.l... |
# Load required libraries
library(ggplot2)
library(scales)
library(grid)
library(plyr)
library(lubridate)
library(zoo)
# Set working directory
setwd("D:/ClimData/SeaLevel")
# Read csv file
sl<-read.csv("rqd0138a.csv",header=FALSE)
# Rename columns
colnames(sl)<-c("year","month","day","s... | /SLR_Bangladesh.r | no_license | jasonjb82/Jason-and-Doug-Blog | R | false | false | 4,564 | r | # Load required libraries
library(ggplot2)
library(scales)
library(grid)
library(plyr)
library(lubridate)
library(zoo)
# Set working directory
setwd("D:/ClimData/SeaLevel")
# Read csv file
sl<-read.csv("rqd0138a.csv",header=FALSE)
# Rename columns
colnames(sl)<-c("year","month","day","s... |
library(here)
library(readr)
library(dplyr)
library(magrittr)
library(ggplot2)
library(readxl)
library(mikelaffr)
# OUTPUT ###############################################################################################################
dir.pdfs <- here("doc/qpcr/pdfs/")
dir.create(dir.pdfs, recursive = TRUE, showWarni... | /doc/qpcr/20210730_HNP_mRNA_miRNA_taqman_plot_qpcr_data.R | no_license | mikelaff/mirna-eqtl-manuscript | R | false | false | 29,128 | r |
library(here)
library(readr)
library(dplyr)
library(magrittr)
library(ggplot2)
library(readxl)
library(mikelaffr)
# OUTPUT ###############################################################################################################
dir.pdfs <- here("doc/qpcr/pdfs/")
dir.create(dir.pdfs, recursive = TRUE, showWarni... |
# This function returns a list composed of a matrix of NAs called Inverse and functions that
# get:() returns the content of the matrix x submitted as argument of makeCacheMatrix
# (set() of the original piece of code was not included because it was useless)
# set_inverse() assigns the inverse of the matrix to the Inv... | /cachematrix.R | no_license | ericmayor/ProgrammingAssignment2 | R | false | false | 1,919 | r | # This function returns a list composed of a matrix of NAs called Inverse and functions that
# get:() returns the content of the matrix x submitted as argument of makeCacheMatrix
# (set() of the original piece of code was not included because it was useless)
# set_inverse() assigns the inverse of the matrix to the Inv... |
library(clinUtils)
data(dataADaMCDISCP01)
labelVars <- attr(dataADaMCDISCP01, "labelVars")
dataAE <- dataADaMCDISCP01$ADAE
dataDM <- dataADaMCDISCP01$ADSL
## example of basic sunburst:
# sunburst takes as input table with counts
library(inTextSummaryTable)
# total counts: Safety Analysis Set (patients with start d... | /package/clinDataReview/inst/examples/sunburstClinData-example.R | no_license | ClinicoPath/clinDataReview | R | false | false | 1,519 | r | library(clinUtils)
data(dataADaMCDISCP01)
labelVars <- attr(dataADaMCDISCP01, "labelVars")
dataAE <- dataADaMCDISCP01$ADAE
dataDM <- dataADaMCDISCP01$ADSL
## example of basic sunburst:
# sunburst takes as input table with counts
library(inTextSummaryTable)
# total counts: Safety Analysis Set (patients with start d... |
# This script subsets the full data file for the session.
# Original data downloaded from https://www.kaggle.com/c/widsdatathon2020/data
library(readr)
library(dplyr)
# Prepping the data
data_dict <- read_csv("WiDS Datathon 2020 Dictionary.csv")
gossis <- read_csv("training_v2.csv")
gossis %>%
select(encounter_i... | /dataprep.R | no_license | nuitrcs/r-first-steps | R | false | false | 548 | r | # This script subsets the full data file for the session.
# Original data downloaded from https://www.kaggle.com/c/widsdatathon2020/data
library(readr)
library(dplyr)
# Prepping the data
data_dict <- read_csv("WiDS Datathon 2020 Dictionary.csv")
gossis <- read_csv("training_v2.csv")
gossis %>%
select(encounter_i... |
#-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | /models/ed/inst/pecan.ed2.diag.plots.R | permissive | PecanProject/pecan | R | false | false | 45,221 | r | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... |
context("occ_facet")
test_that("occ_facet works", {
skip_on_cran()
aa <- occ_facet(facet = "country")
expect_is(aa, "list")
expect_named(aa, "country")
expect_named(aa$country, c('name', 'count'))
# facetMincount
bb <- occ_facet(facet = "country", facetMincount = 30000000L)
expect_is(bb, "list")
... | /tests/testthat/test-occ_facet.R | permissive | MirzaCengic/rgbif | R | false | false | 1,209 | r | context("occ_facet")
test_that("occ_facet works", {
skip_on_cran()
aa <- occ_facet(facet = "country")
expect_is(aa, "list")
expect_named(aa, "country")
expect_named(aa$country, c('name', 'count'))
# facetMincount
bb <- occ_facet(facet = "country", facetMincount = 30000000L)
expect_is(bb, "list")
... |
## wd etc ----
require(data.table)
require(stringr)
require(lubridate)
require(zoo)
require(lightgbm)
## data: train and test ----
xtrain <- fread('../input/air_visit_data.csv')
xtest <- fread('../input/sample_submission.csv')
# align the columns (test has the store id and date concatenated)
xtest$air_store_id <- str... | /recruit_restaurant/prophet.R | no_license | bweiher/projs | R | false | false | 7,038 | r | ## wd etc ----
require(data.table)
require(stringr)
require(lubridate)
require(zoo)
require(lightgbm)
## data: train and test ----
xtrain <- fread('../input/air_visit_data.csv')
xtest <- fread('../input/sample_submission.csv')
# align the columns (test has the store id and date concatenated)
xtest$air_store_id <- str... |
#' List of feather icons
#'
#' Simply beautiful open source icons
#'
#' @format A vector of 266 icons
#' @source \url{https://feathericons.com/}
"icons_list"
| /R/icons.R | permissive | ColinFay/feathericons | R | false | false | 159 | r | #' List of feather icons
#'
#' Simply beautiful open source icons
#'
#' @format A vector of 266 icons
#' @source \url{https://feathericons.com/}
"icons_list"
|
#install.packages("normalregMix_1.0.tar.gz", repos = NULL, type="source")
library(snow)
library(doParallel)
library(Rmpi)
library(normalregMix)
## Generates EM test result according to the dimension of X
PerformEMtest <- function (sample, q, an, m = 1, z = NULL, parallel) {
library(doParallel) # workers might need in... | /experiments/Table4/2ndTrial/1vs2TestFindAnCoarseX3.R | no_license | hkasahar/normalregMix | R | false | false | 5,667 | r | #install.packages("normalregMix_1.0.tar.gz", repos = NULL, type="source")
library(snow)
library(doParallel)
library(Rmpi)
library(normalregMix)
## Generates EM test result according to the dimension of X
PerformEMtest <- function (sample, q, an, m = 1, z = NULL, parallel) {
library(doParallel) # workers might need in... |
################################################################################################
## Copyright (C) 2015, Constantinos Tsirogiannis and Brody Sandel.
##
## Email: analekta@gmail.com and brody.sandel@bios.au.dk
##
## This file is part of PhyloMeasures.
##
## PhyloMeasures is free software: y... | /PhyloMeasures/tests/tests.R | no_license | ingted/R-Examples | R | false | false | 8,271 | r | ################################################################################################
## Copyright (C) 2015, Constantinos Tsirogiannis and Brody Sandel.
##
## Email: analekta@gmail.com and brody.sandel@bios.au.dk
##
## This file is part of PhyloMeasures.
##
## PhyloMeasures is free software: y... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/diversity.R
\name{diversity}
\alias{diversity}
\title{Diversity Statistics}
\usage{
diversity(text.var, grouping.var = NULL)
}
\arguments{
\item{text.var}{The text variable.}
\item{grouping.var}{The grouping variables. Default \code... | /man/diversity.Rd | no_license | Maddocent/qdap | R | false | false | 1,863 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/diversity.R
\name{diversity}
\alias{diversity}
\title{Diversity Statistics}
\usage{
diversity(text.var, grouping.var = NULL)
}
\arguments{
\item{text.var}{The text variable.}
\item{grouping.var}{The grouping variables. Default \code... |
#' Ribosome P-sites position within reads.
#'
#' This function identifies the exact position of the ribosome P-site within
#' each read, determined by the localisation of its first nucleotide (see
#' \code{Details}). It returns a data table containing, for all samples and read
#' lengths: i) the percentage of reads in ... | /R/psites.R | permissive | hudsonam/riboWaltz | R | false | false | 31,320 | r | #' Ribosome P-sites position within reads.
#'
#' This function identifies the exact position of the ribosome P-site within
#' each read, determined by the localisation of its first nucleotide (see
#' \code{Details}). It returns a data table containing, for all samples and read
#' lengths: i) the percentage of reads in ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ruth_aaron_pairs.R
\name{ruth_aaron_pairs}
\alias{ruth_aaron_pairs}
\title{Find Ruth-Aaron Pairs of Integers}
\usage{
ruth_aaron_pairs(min, max, distinct = FALSE)
}
\arguments{
\item{min}{an integer representing the minimum number to check.}
... | /man/ruth_aaron_pairs.Rd | permissive | Ironholds/primes | R | false | true | 766 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ruth_aaron_pairs.R
\name{ruth_aaron_pairs}
\alias{ruth_aaron_pairs}
\title{Find Ruth-Aaron Pairs of Integers}
\usage{
ruth_aaron_pairs(min, max, distinct = FALSE)
}
\arguments{
\item{min}{an integer representing the minimum number to check.}
... |
context("basic assumption")
require(quanteda)
require(magrittr)
test_that("simplest example", {
quanteda::corpus(c('i love you', 'you love me', 'i hate you'),
docvars = data.frame(sentiment = c(1,1,0))) -> input_corpus
quanteda::dfm(input_corpus) -> input_dfm
export_resdtmf(input_dfm, "ex... | /tests/testthat/test-basic_assumption.R | permissive | chainsawriot/resdtmf | R | false | false | 800 | r | context("basic assumption")
require(quanteda)
require(magrittr)
test_that("simplest example", {
quanteda::corpus(c('i love you', 'you love me', 'i hate you'),
docvars = data.frame(sentiment = c(1,1,0))) -> input_corpus
quanteda::dfm(input_corpus) -> input_dfm
export_resdtmf(input_dfm, "ex... |
#
# code: Flotim Technical Report Plots
#
# github: WWF-ConsEvidence/MPAMystery/2_Social/TechnicalReports/SBS/Plots
# --- Duplicate all code from "2_Social" onward, to maintain file structure for sourced code
#
# author: Kelly Claborn, clabornkelly@gmail.com
# created: November 2017
# modified: Amari Bauer, June 20... | /xx_Archive/3_Products/Status_trends/SBS_Flotim/Flotim.TechReport.Plots.2019.R | no_license | WWF-ConsEvidence/MPAMystery | R | false | false | 86,159 | r | #
# code: Flotim Technical Report Plots
#
# github: WWF-ConsEvidence/MPAMystery/2_Social/TechnicalReports/SBS/Plots
# --- Duplicate all code from "2_Social" onward, to maintain file structure for sourced code
#
# author: Kelly Claborn, clabornkelly@gmail.com
# created: November 2017
# modified: Amari Bauer, June 20... |
# Panel Data
library(tidyverse)
# repeated observation for the same units
# - Robust for certain types of omitted variables bias
# - Learn about dynamics
## Topics random sampling (in the cross-section)
## balanced panel (Ti = T)
## large N, small T
# Example: fatality rate and beertax -------------------------... | /PanelData/2021-04-14 panel_data.R | no_license | eal024/econ | R | false | false | 8,460 | r |
# Panel Data
library(tidyverse)
# repeated observation for the same units
# - Robust for certain types of omitted variables bias
# - Learn about dynamics
## Topics random sampling (in the cross-section)
## balanced panel (Ti = T)
## large N, small T
# Example: fatality rate and beertax -------------------------... |
## iplotMScanone
## Karl W Broman
#' Interactive LOD curve
#'
#' Creates an interactive graph of a set of single-QTL genome scans, as
#' calculated by \code{\link[qtl]{scanone}}. If \code{cross} or
#' \code{effects} are provide, LOD curves will be linked to a panel
#' with estimated QTL effects.
#'
#' @param scanoneO... | /R/iplotMScanone.R | permissive | TAwosanya/qtlcharts | R | false | false | 7,264 | r | ## iplotMScanone
## Karl W Broman
#' Interactive LOD curve
#'
#' Creates an interactive graph of a set of single-QTL genome scans, as
#' calculated by \code{\link[qtl]{scanone}}. If \code{cross} or
#' \code{effects} are provide, LOD curves will be linked to a panel
#' with estimated QTL effects.
#'
#' @param scanoneO... |
###Loter acc
library(data.table)
library(argparse)
library(dplyr)
"%&%" = function(a,b) paste(a,b,sep="")
parser <- ArgumentParser()
parser$add_argument("--loter", help="Loter results file")
parser$add_argument("--poslist", help="haplotype genome file")
parser$add_argument("--ref.map", help="admixed sample ... | /03estimate_accuracy/LOTER_accuracy.R | no_license | WheelerLab/LAI_benchmarking | R | false | false | 6,183 | r | ###Loter acc
library(data.table)
library(argparse)
library(dplyr)
"%&%" = function(a,b) paste(a,b,sep="")
parser <- ArgumentParser()
parser$add_argument("--loter", help="Loter results file")
parser$add_argument("--poslist", help="haplotype genome file")
parser$add_argument("--ref.map", help="admixed sample ... |
#
# R in action (2 ed.)
#
# Indexing
# 1. atomic vector without named elements
x <- c(20, 30, 40)
x[3]
x[c(2,3)]
# 2. atomic vector with named elements
x <- c(A=20, B=30, C=40)
x[c(2,3)]
x[c("B", "C")]
# lists
set.seed(1234)
fit <- kmeans(iris[1:4], 3)
fit[c(2,7)]
fit[2] # return "list"
fit[[2]] # return "matrix... | /book/r_in_action/25_advanced_programming/indexing.R | no_license | dataikido/tech | R | false | false | 1,074 | r | #
# R in action (2 ed.)
#
# Indexing
# 1. atomic vector without named elements
x <- c(20, 30, 40)
x[3]
x[c(2,3)]
# 2. atomic vector with named elements
x <- c(A=20, B=30, C=40)
x[c(2,3)]
x[c("B", "C")]
# lists
set.seed(1234)
fit <- kmeans(iris[1:4], 3)
fit[c(2,7)]
fit[2] # return "list"
fit[[2]] # return "matrix... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_updateParentAphiaIDs.R
\name{updateParentAphiaIDs}
\alias{updateParentAphiaIDs}
\title{Update or Add Parent Aphia IDs}
\usage{
updateParentAphiaIDs(dataset)
}
\arguments{
\item{dataset}{data frame that has the column "AphiaID".}
}
\descrip... | /marineRecorder/man/updateParentAphiaIDs.Rd | no_license | uk-gov-mirror/jncc.marine-recorder-tools | R | false | true | 752 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_updateParentAphiaIDs.R
\name{updateParentAphiaIDs}
\alias{updateParentAphiaIDs}
\title{Update or Add Parent Aphia IDs}
\usage{
updateParentAphiaIDs(dataset)
}
\arguments{
\item{dataset}{data frame that has the column "AphiaID".}
}
\descrip... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_constraint_MigClim.R
\name{add_constraint_MigClim}
\alias{add_constraint_MigClim}
\title{Add constrains to the modelled distribution projection using the MigClim
approach}
\usage{
\S4method{add_constraint_MigClim}{BiodiversityScenario,cha... | /man/add_constraint_MigClim.Rd | permissive | iiasa/ibis.iSDM | R | false | true | 3,823 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_constraint_MigClim.R
\name{add_constraint_MigClim}
\alias{add_constraint_MigClim}
\title{Add constrains to the modelled distribution projection using the MigClim
approach}
\usage{
\S4method{add_constraint_MigClim}{BiodiversityScenario,cha... |
# dump tidy data produced using run_analysis.R into txt file
write.table(tidy_data, "tidy_data.txt", row.name=FALSE) | /save_tidy_data.R | no_license | rosa-garcia/datasciencecoursera_gettingandcleaningdataproject | R | false | false | 116 | r | # dump tidy data produced using run_analysis.R into txt file
write.table(tidy_data, "tidy_data.txt", row.name=FALSE) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/value.R
\name{value}
\alias{value}
\alias{value.integrate}
\alias{value.default}
\title{Extract value from an object}
\usage{
value(object, ...)
\method{value}{integrate}(object, ...)
\method{value}{default}(object, ...)
}
\arguments{
\item... | /man/value.Rd | no_license | ProjectMOSAIC/mosaic | R | false | true | 1,041 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/value.R
\name{value}
\alias{value}
\alias{value.integrate}
\alias{value.default}
\title{Extract value from an object}
\usage{
value(object, ...)
\method{value}{integrate}(object, ...)
\method{value}{default}(object, ...)
}
\arguments{
\item... |
library("shiny")
suppressPackageStartupMessages(library(googleVis))
#loading dataset
load('bcities.rda')
SP <- list() # # Hit counter, Courtesy: Francis Smart: http://www.econometricsbysimulation.com/2013/06/more-explorations-of-shiny.html
SP$npers <- 0
shinyServer(function(input, output) {
# An increment to t... | /server.r | no_license | patilv/bb50citiesrank | R | false | false | 3,686 | r | library("shiny")
suppressPackageStartupMessages(library(googleVis))
#loading dataset
load('bcities.rda')
SP <- list() # # Hit counter, Courtesy: Francis Smart: http://www.econometricsbysimulation.com/2013/06/more-explorations-of-shiny.html
SP$npers <- 0
shinyServer(function(input, output) {
# An increment to t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnnoBroadGseaResItem.R
\name{AnnoBroadGseaResItem}
\alias{AnnoBroadGseaResItem}
\title{Convert a BroadGseaResItem object to an AnnoBroadGseaResItem object}
\usage{
AnnoBroadGseaResItem(object, genes, geneValues)
}
\arguments{
\item{object}{A ... | /man/AnnoBroadGseaResItem.Rd | no_license | bedapub/ribiosGSEA | R | false | true | 550 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AnnoBroadGseaResItem.R
\name{AnnoBroadGseaResItem}
\alias{AnnoBroadGseaResItem}
\title{Convert a BroadGseaResItem object to an AnnoBroadGseaResItem object}
\usage{
AnnoBroadGseaResItem(object, genes, geneValues)
}
\arguments{
\item{object}{A ... |
\name{CAS Actions}
\alias{cas.aStore.describe}
\alias{cas.aStore.download}
\alias{cas.aStore.score}
\alias{cas.aStore.upload}
\alias{cas.accessControl.assumeRole}
\alias{cas.accessControl.checkInAllObjects}
\alias{cas.accessControl.checkOutObject}
\alias{cas.accessControl.commitTransaction}
\alias{cas.accessControl.com... | /man/generatedFunctions.Rd | permissive | samkart/R-swat | R | false | false | 12,827 | rd | \name{CAS Actions}
\alias{cas.aStore.describe}
\alias{cas.aStore.download}
\alias{cas.aStore.score}
\alias{cas.aStore.upload}
\alias{cas.accessControl.assumeRole}
\alias{cas.accessControl.checkInAllObjects}
\alias{cas.accessControl.checkOutObject}
\alias{cas.accessControl.commitTransaction}
\alias{cas.accessControl.com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.