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 |
|---|---|---|---|---|---|---|---|---|---|
E1CS90L40.R GISS Model E 2004 modelE your_name 1/13/07
E1CS90L40: description/motivation (any number of lines) ?
(delete) Lines you may want to inspect in any case contain a "?"
(delete) At the end you'll find instructions on how to modify this rundeck
(delete) for other simple ocean model... | /templates/E1CS90L40.R | no_license | feiliuesmf/modelE | R | false | false | 9,968 | r | E1CS90L40.R GISS Model E 2004 modelE your_name 1/13/07
E1CS90L40: description/motivation (any number of lines) ?
(delete) Lines you may want to inspect in any case contain a "?"
(delete) At the end you'll find instructions on how to modify this rundeck
(delete) for other simple ocean model... |
x <- c("::", "256::", "2001:db8::8a2e:370:7334", "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")
test_that("alternative formats accepted", {
expect_equal(ip_address("2001:0db8:85a3:0000:0000:8a2e:0370:7334"), ip_address("2001:db8:85a3::8a2e:370:7334"))
expect_equal(ip_address("2001:db8:85a3:0:0:8a2e:370:7334"), ip_addr... | /tests/testthat/test-ip_address_v6.R | permissive | davidchall/ipaddress | R | false | false | 1,887 | r | x <- c("::", "256::", "2001:db8::8a2e:370:7334", "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")
test_that("alternative formats accepted", {
expect_equal(ip_address("2001:0db8:85a3:0000:0000:8a2e:0370:7334"), ip_address("2001:db8:85a3::8a2e:370:7334"))
expect_equal(ip_address("2001:db8:85a3:0:0:8a2e:370:7334"), ip_addr... |
list.files()
unzip(list.files())
getwd()
list.files()
class(outcome)
library(dplyr)
library(sqldf)
library(data.table)
options(warn=-1)
oome <- fread("outcome-of-care-measures.csv")
colnames(oome)
rankhospital <- function(state, otcome,rank)
{
#read the outcome data
val_outcome <- c("HEART ATTACK" ,... | /rankhospital.R | no_license | itzmevm/Other_Codes | R | false | false | 3,078 | r |
list.files()
unzip(list.files())
getwd()
list.files()
class(outcome)
library(dplyr)
library(sqldf)
library(data.table)
options(warn=-1)
oome <- fread("outcome-of-care-measures.csv")
colnames(oome)
rankhospital <- function(state, otcome,rank)
{
#read the outcome data
val_outcome <- c("HEART ATTACK" ,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xgb.plot.shap.R
\name{xgb.plot.shap}
\alias{xgb.plot.shap}
\title{SHAP contribution dependency plots}
\usage{
xgb.plot.shap(
data,
shap_contrib = NULL,
features = NULL,
top_n = 1,
model = NULL,
trees = NULL,
target_class = NULL,... | /R-package/man/xgb.plot.shap.Rd | permissive | rapidsai/xgboost | R | false | true | 6,538 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xgb.plot.shap.R
\name{xgb.plot.shap}
\alias{xgb.plot.shap}
\title{SHAP contribution dependency plots}
\usage{
xgb.plot.shap(
data,
shap_contrib = NULL,
features = NULL,
top_n = 1,
model = NULL,
trees = NULL,
target_class = NULL,... |
testlist <- list(x = c(-7.47863579530838e+240, -7.47863579530838e+240, -7.47863579530838e+240, -7.06188489325339e+240, -7.47863579530838e+240, -7.47863579530838e+240, -7.47863579530838e+240, 7.83396070987679e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
result <- do.call(blorr:::blr_pairs_cpp,testlist)
... | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956857-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 331 | r | testlist <- list(x = c(-7.47863579530838e+240, -7.47863579530838e+240, -7.47863579530838e+240, -7.06188489325339e+240, -7.47863579530838e+240, -7.47863579530838e+240, -7.47863579530838e+240, 7.83396070987679e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), y = numeric(0))
result <- do.call(blorr:::blr_pairs_cpp,testlist)
... |
\name{as.list.ti}
\alias{as.list.ti}
\alias{as.list.jul}
\title{ Construct a List from a Time Index or Jul Object }
\description{
\code{as.list.ti} creates a list of one-element \code{ti} objects from
the elements of its arguments.
\code{as.list.jul} creates a list of one-element \code{jul} objects from
the ... | /man/as.list.ti.Rd | no_license | cran/tis | R | false | false | 825 | rd | \name{as.list.ti}
\alias{as.list.ti}
\alias{as.list.jul}
\title{ Construct a List from a Time Index or Jul Object }
\description{
\code{as.list.ti} creates a list of one-element \code{ti} objects from
the elements of its arguments.
\code{as.list.jul} creates a list of one-element \code{jul} objects from
the ... |
shinyUI(navbarPage("Navbar!",
tabPanel("App",
pageWithSidebar(
#Application title
headerPanel("Car MPG Prediction"),
sidebarPanel(
sliderInput('weight', 'Give a weight (lb/100... | /ui.R | no_license | libra202ma/devDataProduct | R | false | false | 1,784 | r | shinyUI(navbarPage("Navbar!",
tabPanel("App",
pageWithSidebar(
#Application title
headerPanel("Car MPG Prediction"),
sidebarPanel(
sliderInput('weight', 'Give a weight (lb/100... |
input <-as.list(read.delim("/Volumes/ANALOG/classes/adventOfCode/day2.tab", header = FALSE))
sl <- lapply(input, function(x) sort(x))
f <- function(n,l) Find(function(x) x %% n == 0, l, nomatch = -1 )
| /day2/old_day2/day2.r | no_license | analogpixel/adventOfCode2017 | R | false | false | 204 | r |
input <-as.list(read.delim("/Volumes/ANALOG/classes/adventOfCode/day2.tab", header = FALSE))
sl <- lapply(input, function(x) sort(x))
f <- function(n,l) Find(function(x) x %% n == 0, l, nomatch = -1 )
|
library(devtools)
# set up the package with Rcpp
if (.Platform$OS.type == "windows") {
setwd("C:/Academia/Cornell/Research")
} else {
setwd("~")
}
devtools::use_rcpp("EDMeasure")
| /dev/create_cpp.R | no_license | zejin/EDMeasure | R | false | false | 185 | r | library(devtools)
# set up the package with Rcpp
if (.Platform$OS.type == "windows") {
setwd("C:/Academia/Cornell/Research")
} else {
setwd("~")
}
devtools::use_rcpp("EDMeasure")
|
sub2nums<-function(x,y) x-y
| /sandbox/workwork/R/sub2nums.R | no_license | skenkare6/ee464_diagnosing_errors | R | false | false | 29 | r | sub2nums<-function(x,y) x-y
|
# This script is for visualizing the SST EOFs
# Select the month to visualize by altering next two lines
component=1
# Will plot the EOF for heavy monsoon year for July
importSST=function(name,lat.cutoff){
library(ncdf4)
nc <- nc_open(name) # Load from netCDF format
z<-ncvar_get(nc,'anom') # Extra... | /code/visualization/PlotEOFs.R | no_license | sdanielzafar/ISMR_Mining | R | false | false | 2,455 | r | # This script is for visualizing the SST EOFs
# Select the month to visualize by altering next two lines
component=1
# Will plot the EOF for heavy monsoon year for July
importSST=function(name,lat.cutoff){
library(ncdf4)
nc <- nc_open(name) # Load from netCDF format
z<-ncvar_get(nc,'anom') # Extra... |
# clustering seasonal variation
### BIG PROBLEM HERE AS NA'S NOT ALLOWED IN KMEANS
library(tidyr)
library(dplyr)
library(ggplot2)
theme_blog <- theme(
panel.grid = element_blank(),
panel.background = element_blank()
)
dat <- read.csv("Data/fruitVegTidy.csv")
dat$month <- factor(dat$month, c("Jan", "Feb", "Mar", "... | /Scripts/clustering.R | no_license | rmnppt/FruitAndVeg | R | false | false | 1,310 | r | # clustering seasonal variation
### BIG PROBLEM HERE AS NA'S NOT ALLOWED IN KMEANS
library(tidyr)
library(dplyr)
library(ggplot2)
theme_blog <- theme(
panel.grid = element_blank(),
panel.background = element_blank()
)
dat <- read.csv("Data/fruitVegTidy.csv")
dat$month <- factor(dat$month, c("Jan", "Feb", "Mar", "... |
#' @title PrepareSimulationData
#' @description Prepare Data for WTP simulation
#' @param object an object of class `mdcev`
#' @param policies list containing
#' price_p with additive price increases, and
#' dat_psi_p with new psi data
#' @param nsims Number of simulation draws to use for parameter uncertainty
#' @para... | /R/PrepareSimulationData.R | no_license | anhnguyendepocen/rmdcev | R | false | false | 12,997 | r | #' @title PrepareSimulationData
#' @description Prepare Data for WTP simulation
#' @param object an object of class `mdcev`
#' @param policies list containing
#' price_p with additive price increases, and
#' dat_psi_p with new psi data
#' @param nsims Number of simulation draws to use for parameter uncertainty
#' @para... |
#1st Step: Reading and Importing the Data. 2nd Step: naming the DatA for more comfort 3rd Step: doing the same for the Dates (1-2 of February 2007 through the subsetting function
PowerData <- read.table("~/Desktop/Online education/Exploratory DA/HPC.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
DataSubse... | /plot3.R | no_license | BNoone/ExData_Plotting1 | R | false | false | 1,128 | r | #1st Step: Reading and Importing the Data. 2nd Step: naming the DatA for more comfort 3rd Step: doing the same for the Dates (1-2 of February 2007 through the subsetting function
PowerData <- read.table("~/Desktop/Online education/Exploratory DA/HPC.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
DataSubse... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SlagFigAndelerGrVar.R
\name{FigAndelerGrVar}
\alias{FigAndelerGrVar}
\title{Søylediagram med andeler for hver grupperingsenhet (sykehus, RHF, ...)}
\usage{
FigAndelerGrVar(RegData, valgtVar, datoFra = "2012-04-01",
datoTil = "2050-12-31", e... | /man/FigAndelerGrVar.Rd | no_license | torunva/Hjerneslag | R | false | true | 2,726 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SlagFigAndelerGrVar.R
\name{FigAndelerGrVar}
\alias{FigAndelerGrVar}
\title{Søylediagram med andeler for hver grupperingsenhet (sykehus, RHF, ...)}
\usage{
FigAndelerGrVar(RegData, valgtVar, datoFra = "2012-04-01",
datoTil = "2050-12-31", e... |
### Plot 2
### for Exploratory Data Analysis Course Project 1
### (kindly refer to "README.md" file for more details)
## read_clean - Read and Clean Data
read_clean <- function()
{
# Assuming text-format raw data file is in working directory:
df_raw_cons <- read.csv("household_power_consumption.txt",
... | /Plot_2.R | no_license | hwnddawg/ExData_Plotting1 | R | false | false | 1,591 | r | ### Plot 2
### for Exploratory Data Analysis Course Project 1
### (kindly refer to "README.md" file for more details)
## read_clean - Read and Clean Data
read_clean <- function()
{
# Assuming text-format raw data file is in working directory:
df_raw_cons <- read.csv("household_power_consumption.txt",
... |
#Assignment - 2
#Forecasting of channel stats of a Youtube channel
#ch_stats
#ChannelID=UC6_aLZwre0yxXvhwNw
#We filtered the given data to get data for specified channelid
#and saved it in octmar2.csv
octmar=read.csv('F:/R_in_Action/Vidooly/octmar2.csv',stringsAsFactors = FALSE)
str(octmar)
#Converting date column int... | /Vidooly/ch_stats.R | no_license | KSTVCHATTERJEE/R_in_Action | R | false | false | 4,548 | r | #Assignment - 2
#Forecasting of channel stats of a Youtube channel
#ch_stats
#ChannelID=UC6_aLZwre0yxXvhwNw
#We filtered the given data to get data for specified channelid
#and saved it in octmar2.csv
octmar=read.csv('F:/R_in_Action/Vidooly/octmar2.csv',stringsAsFactors = FALSE)
str(octmar)
#Converting date column int... |
\name{prepareData}
\alias{prepareData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Prepares raw data for use by other functions}
\description{
Prepares data for use by \code{doNls} and other functions.
}
\usage{
prepareData(trayData, drugs, trays, cellLines, degree=3)
}
\arguments{
\it... | /man/prepareData.Rd | no_license | cran/mixlow | R | false | false | 2,653 | rd | \name{prepareData}
\alias{prepareData}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Prepares raw data for use by other functions}
\description{
Prepares data for use by \code{doNls} and other functions.
}
\usage{
prepareData(trayData, drugs, trays, cellLines, degree=3)
}
\arguments{
\it... |
require(magrittr)
require(lubridate)
require(tidyverse)
#' This function parses the period column returned by AOD
#' and returns two columns, one indicating the type of period
#' and the other the week ending for the period, formatted as a date
#' and cleans up the headers.
#' @examples
#' data <- clean_periods(data,... | /R/clean_periods.R | no_license | cmeuli07/packrast | R | false | false | 791 | r | require(magrittr)
require(lubridate)
require(tidyverse)
#' This function parses the period column returned by AOD
#' and returns two columns, one indicating the type of period
#' and the other the week ending for the period, formatted as a date
#' and cleans up the headers.
#' @examples
#' data <- clean_periods(data,... |
library(dash)
library(dashTable)
df <- data.frame(
Date = c("2015-01-01", "2015-10-24", "2016-05-10", "2017-01-10", "2018-05-10", "2018-08-15"),
Region = c("Montreal", "Toronto", "New York City", "Miami", "San Francisco", "London"),
Temperature = c(1, -20, 3.512, 4, 10423, -441.2),
Humidity = seq(10, 60, by = ... | /dash_docs/chapters/dash_datatable/width/examples/height.R | permissive | plotly/dash-docs | R | false | false | 830 | r | library(dash)
library(dashTable)
df <- data.frame(
Date = c("2015-01-01", "2015-10-24", "2016-05-10", "2017-01-10", "2018-05-10", "2018-08-15"),
Region = c("Montreal", "Toronto", "New York City", "Miami", "San Francisco", "London"),
Temperature = c(1, -20, 3.512, 4, 10423, -441.2),
Humidity = seq(10, 60, by = ... |
require(scmap)
require(SingleCellExperiment)
require(SeuratConverter)
require(irr)
CURRENT_DIR <- dirname(sys.frame(1)$ofile)
CODE_ROOT <- dirname(CURRENT_DIR)
SCE_CACHE_DIR <- file.path(CODE_ROOT, '01-cluster-sc01-sc02')
METADATA_DIR <- file.path(CODE_ROOT, '00-metadata')
getSC02 <- function() {
cache <- file.pat... | /04-evaluate-scmap/sc02.R | no_license | mxposed/sickle | R | false | false | 2,936 | r | require(scmap)
require(SingleCellExperiment)
require(SeuratConverter)
require(irr)
CURRENT_DIR <- dirname(sys.frame(1)$ofile)
CODE_ROOT <- dirname(CURRENT_DIR)
SCE_CACHE_DIR <- file.path(CODE_ROOT, '01-cluster-sc01-sc02')
METADATA_DIR <- file.path(CODE_ROOT, '00-metadata')
getSC02 <- function() {
cache <- file.pat... |
\name{distplot}
\alias{distplot}
\title{Diagnostic Distribution Plots}
\description{
Diagnostic distribution plots: poissonness, binomialness and
negative binomialness plots.
}
\usage{
distplot(x, type = c("poisson", "binomial", "nbinomial"),
size = NULL, lambda = NULL, legend = TRUE, xlim = NULL, ylim = NULL,
... | /man/distplot.Rd | no_license | cran/vcd | R | false | false | 3,992 | rd | \name{distplot}
\alias{distplot}
\title{Diagnostic Distribution Plots}
\description{
Diagnostic distribution plots: poissonness, binomialness and
negative binomialness plots.
}
\usage{
distplot(x, type = c("poisson", "binomial", "nbinomial"),
size = NULL, lambda = NULL, legend = TRUE, xlim = NULL, ylim = NULL,
... |
#Data from http://www.wahlrecht.de/umfragen/landtage/index.htm
#Very helpful guide: https://cran.r-project.org/web/packages/tmap/vignettes/tmap-nutshell.html
#Packages from USA GE 2012
library("tmap")
library("leaflet")
library("rio")
library("plyr")
library("dplyr")
library("maptools")
library("scales")
#New Packag... | /elections/leaflet/German Polling Data Test1.R | no_license | daniel-mikel/R_Projects | R | false | false | 9,093 | r | #Data from http://www.wahlrecht.de/umfragen/landtage/index.htm
#Very helpful guide: https://cran.r-project.org/web/packages/tmap/vignettes/tmap-nutshell.html
#Packages from USA GE 2012
library("tmap")
library("leaflet")
library("rio")
library("plyr")
library("dplyr")
library("maptools")
library("scales")
#New Packag... |
setwd("/home/manish/Techgig/ITC/CodeGladiators-ITCinfotech-DataSet/")
source("/home/manish/Utility Functions/baseRCodes.R")
library(data.table)
library(xgboost)
#Import the data
train<-fread("train_data.csv",stringsAsFactors = FALSE)
test<-fread("test_data.csv",stringsAsFactors = FALSE)
test$Loan_Status<-NA
basedt<-... | /StartCodes.R | no_license | pandeymanishh/StarterKit | R | false | false | 6,928 | r | setwd("/home/manish/Techgig/ITC/CodeGladiators-ITCinfotech-DataSet/")
source("/home/manish/Utility Functions/baseRCodes.R")
library(data.table)
library(xgboost)
#Import the data
train<-fread("train_data.csv",stringsAsFactors = FALSE)
test<-fread("test_data.csv",stringsAsFactors = FALSE)
test$Loan_Status<-NA
basedt<-... |
## cacheMatrix.R
## author: JF Dostaler
##
## Creates an object that contains a matrix, and can cache its inverse (an expensive calculation)
## makeCacheMatrix: Creates the matrix with inverse-caching capabilities
## param x: the original matrix (defaults to an empty matrix)
makeCacheMatrix <- function(x = matrix... | /cachematrix.R | no_license | jfdostaler/ProgrammingAssignment2 | R | false | false | 2,071 | r | ## cacheMatrix.R
## author: JF Dostaler
##
## Creates an object that contains a matrix, and can cache its inverse (an expensive calculation)
## makeCacheMatrix: Creates the matrix with inverse-caching capabilities
## param x: the original matrix (defaults to an empty matrix)
makeCacheMatrix <- function(x = matrix... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/stomach.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.2,family="gaussian",standardize=FALSE)
sink('./stomach_034.txt',append=TRUE)
pri... | /Model/EN/Lasso/stomach/stomach_034.R | no_license | esbgkannan/QSMART | R | false | false | 346 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/stomach.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.2,family="gaussian",standardize=FALSE)
sink('./stomach_034.txt',append=TRUE)
pri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{routers.list}
\alias{routers.list}
\title{Retrieves a list of Router resources available to the specified project.}
\usage{
routers.list(project, region, filter = NULL, maxResults = NULL,
orderBy = NULL, pageToken ... | /googlecomputealpha.auto/man/routers.list.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,449 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{routers.list}
\alias{routers.list}
\title{Retrieves a list of Router resources available to the specified project.}
\usage{
routers.list(project, region, filter = NULL, maxResults = NULL,
orderBy = NULL, pageToken ... |
############################################################################################################################
## Calculate taxonomic/phylogenetic/functional beta and its turnvoer and nesedness and proportion of nestedness
## among each focal cell and its 13 (or 5) of 24 (or 9) nearest neighboring cells ... | /Rcode/3a_calculate_beta_HPC.R | no_license | Wubing-Xu/Global_tree_beta-diversity | R | false | false | 10,113 | r | ############################################################################################################################
## Calculate taxonomic/phylogenetic/functional beta and its turnvoer and nesedness and proportion of nestedness
## among each focal cell and its 13 (or 5) of 24 (or 9) nearest neighboring cells ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/answerTests2.R
\name{var_is_a}
\alias{var_is_a}
\title{Test that the value of the expression is of a specific class.}
\usage{
var_is_a(class, var_name)
}
\arguments{
\item{class}{expected class which the given variable}
\item{var_name}{name ... | /man/var_is_a.Rd | no_license | medas/swirl | R | false | true | 963 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/answerTests2.R
\name{var_is_a}
\alias{var_is_a}
\title{Test that the value of the expression is of a specific class.}
\usage{
var_is_a(class, var_name)
}
\arguments{
\item{class}{expected class which the given variable}
\item{var_name}{name ... |
# Author: Eva_Y_Zhang
# Update: 3/9/2017
# R Version: 3.3.3
# install R pacadge-tidyverse
# dplyr in tidyverse is the pacadge to use later
install.packages("tidyverse")
library("tidyverse")
# download hw1_data.zip, unzipped and open the csv file in RStudio
eva <- read.csv("hw1_data.csv")
ozone <- eva[,1]
solar<- eva... | /Week1_2_quiz_answers.R | no_license | evayuezhang/datasciencecoursera | R | false | false | 939 | r | # Author: Eva_Y_Zhang
# Update: 3/9/2017
# R Version: 3.3.3
# install R pacadge-tidyverse
# dplyr in tidyverse is the pacadge to use later
install.packages("tidyverse")
library("tidyverse")
# download hw1_data.zip, unzipped and open the csv file in RStudio
eva <- read.csv("hw1_data.csv")
ozone <- eva[,1]
solar<- eva... |
#-------------------------------------------------------------------------------
# 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/template/R/met2model.MODEL.R | permissive | davidjpmoore/pecan | R | false | false | 1,226 | 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... |
testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170316e+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, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613104669-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 344 | r | testlist <- list(A = structure(c(2.32784507357645e-308, 9.53818252170316e+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, 0, 0, 0, 0, 0), .Dim = c(5L, 7L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_ro... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bmdFunctions_visualization.R
\name{f.lines.frq}
\alias{f.lines.frq}
\title{Plot the lines}
\usage{
f.lines.frq(ans.all, track = FALSE)
}
\arguments{
\item{ans.all}{list, with all results that were obtained during the analysis}
\item{track}{l... | /man/f.lines.frq.Rd | no_license | alfcrisci/bmdModeling | R | false | true | 474 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bmdFunctions_visualization.R
\name{f.lines.frq}
\alias{f.lines.frq}
\title{Plot the lines}
\usage{
f.lines.frq(ans.all, track = FALSE)
}
\arguments{
\item{ans.all}{list, with all results that were obtained during the analysis}
\item{track}{l... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaryFunc.R
\name{vonB}
\alias{vonB}
\title{Von Bertalanffy}
\usage{
vonB(lsup, k, a)
}
\arguments{
\item{lsup}{\eqn{L_\infty }{L_infty} terminal length}
\item{k}{\eqn{\kappa}{kappa}, the growth parameter}
\item{a}{age of the individual}
... | /man/vonB.Rd | no_license | bthe/gadgetsim | R | false | true | 581 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summaryFunc.R
\name{vonB}
\alias{vonB}
\title{Von Bertalanffy}
\usage{
vonB(lsup, k, a)
}
\arguments{
\item{lsup}{\eqn{L_\infty }{L_infty} terminal length}
\item{k}{\eqn{\kappa}{kappa}, the growth parameter}
\item{a}{age of the individual}
... |
# Copyright Mark Niemann-Ross, 2018
# Author: Mark Niemann-Ross. mark.niemannross@gmail.com
# LinkedIn: https://www.linkedin.com/in/markniemannross/
# Github: https://github.com/mnr
# More Learning: http://niemannross.com/link/mnratlil
# Description: R Programming in Data Science: High Variety Data
# Lots of packages... | /Chapter 04 (other formats)/04_05 PDF with R.R | no_license | mnr/R-Data-Science-High-Variety | R | false | false | 718 | r | # Copyright Mark Niemann-Ross, 2018
# Author: Mark Niemann-Ross. mark.niemannross@gmail.com
# LinkedIn: https://www.linkedin.com/in/markniemannross/
# Github: https://github.com/mnr
# More Learning: http://niemannross.com/link/mnratlil
# Description: R Programming in Data Science: High Variety Data
# Lots of packages... |
library(dplyr)
# Load data file into data frame
df <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?")
# Convert Date/Time string to POSIXct - create new DateTime column in data frame
df$DateTime <- as.POSIXct(paste(df$Date, df$Time), format="%d/%m/%Y %H:%M:%S")
# Filter da... | /plot3.R | no_license | HaslRepos/ExData_Plotting1 | R | false | false | 969 | r | library(dplyr)
# Load data file into data frame
df <- read.table("./household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?")
# Convert Date/Time string to POSIXct - create new DateTime column in data frame
df$DateTime <- as.POSIXct(paste(df$Date, df$Time), format="%d/%m/%Y %H:%M:%S")
# Filter da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.BiCop.R
\name{plot.BiCop}
\alias{contour.BiCop}
\alias{plot.BiCop}
\title{Plotting tools for BiCop objects}
\usage{
\method{plot}{BiCop}(x, type = "surface", margins, size, ...)
\method{contour}{BiCop}(x, margins = "norm", size = 100L, ... | /man/plot.BiCop.Rd | no_license | ulf85/VineCopula | R | false | true | 2,057 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.BiCop.R
\name{plot.BiCop}
\alias{contour.BiCop}
\alias{plot.BiCop}
\title{Plotting tools for BiCop objects}
\usage{
\method{plot}{BiCop}(x, type = "surface", margins, size, ...)
\method{contour}{BiCop}(x, margins = "norm", size = 100L, ... |
#' DevValCreator
#'
#' Inputs a data.frame (e.g. "high.volume")
#' Splits the data frame based on the date of trauma to development
#' sample (early) and validation sample (late).
#' Development sample will contain 75 events(res_survival == "Dead").
#' Validation sample will contain the rest of the events.
#' @param d... | /functions/DevValCreator.R | no_license | 613Martin/transfer-effect-mistriage | R | false | false | 1,725 | r | #' DevValCreator
#'
#' Inputs a data.frame (e.g. "high.volume")
#' Splits the data frame based on the date of trauma to development
#' sample (early) and validation sample (late).
#' Development sample will contain 75 events(res_survival == "Dead").
#' Validation sample will contain the rest of the events.
#' @param d... |
library(tidyverse)
library(ICPIutilities)
library(scales)
library(extrafont)
df_tx <- read_csv("2020-03-16/FY20Q1_Jupiter_TXNEW.csv")
df_tx %>%
mutate(primepartner = fct_reorder(primepartner, latest, sum, .desc = TRUE)) %>%
ggplot(aes(period, val, fill = primepartner)) +
geom_col() +
geom_hline(aes(yinterc... | /2020-03-16/JupiterTXTrends.R | permissive | USAID-OHA-SI/coRps | R | false | false | 1,023 | r |
library(tidyverse)
library(ICPIutilities)
library(scales)
library(extrafont)
df_tx <- read_csv("2020-03-16/FY20Q1_Jupiter_TXNEW.csv")
df_tx %>%
mutate(primepartner = fct_reorder(primepartner, latest, sum, .desc = TRUE)) %>%
ggplot(aes(period, val, fill = primepartner)) +
geom_col() +
geom_hline(aes(yinterc... |
library('data.table')
library('ggplot2')
library('dplyr')
library('rstudioapi')
### get the filepath and target file
root <- dirname(rstudioapi::getSourceEditorContext()$path)
#setwd(root)
csv_name <- 'hiv_data_2010_2025.csv'
### read in dataset
hiv_data <- fread(paste0(root, '/', csv_name))
locs <- unique(hiv_data$C... | /hiv_data_viz.R | no_license | schristinelin/hiv_data_analysis | R | false | false | 2,422 | r | library('data.table')
library('ggplot2')
library('dplyr')
library('rstudioapi')
### get the filepath and target file
root <- dirname(rstudioapi::getSourceEditorContext()$path)
#setwd(root)
csv_name <- 'hiv_data_2010_2025.csv'
### read in dataset
hiv_data <- fread(paste0(root, '/', csv_name))
locs <- unique(hiv_data$C... |
library(rvkstat)
# получить список групп
my_groups <- vkGetUserGroups()
# статистика группы
group_stat <- vkGetGroupStat(
group_id = 119709976,
date_from = '2021-01-01',
date_to = '2021-01-15'
)
# группировать по недел¤м
group_stat_weekly <- vkGetGroupStat(
group_id = 119709976,
inte... | /code_example/rvkstat/groups.R | no_license | selesnow/publications | R | false | false | 1,757 | r | library(rvkstat)
# получить список групп
my_groups <- vkGetUserGroups()
# статистика группы
group_stat <- vkGetGroupStat(
group_id = 119709976,
date_from = '2021-01-01',
date_to = '2021-01-15'
)
# группировать по недел¤м
group_stat_weekly <- vkGetGroupStat(
group_id = 119709976,
inte... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anims.R
\name{ease_in_out}
\alias{ease_in_out}
\title{Use an 'easing in and out' animation}
\usage{
ease_in_out(power = "basic")
}
\arguments{
\item{power}{The preset to use for the easing in cubic bezier function.}
}
\description{
Use an 'ea... | /man/ease_in_out.Rd | permissive | aespar21/omsvg | R | false | true | 349 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anims.R
\name{ease_in_out}
\alias{ease_in_out}
\title{Use an 'easing in and out' animation}
\usage{
ease_in_out(power = "basic")
}
\arguments{
\item{power}{The preset to use for the easing in cubic bezier function.}
}
\description{
Use an 'ea... |
#setwd("~/Box Sync/Iowa State/Research/Robustness of Random Forest/Fall 17/Official_Simulation/All Final Code/")
setwd("/work/STAT/ajsage")
source("Robustness_Functions.R")
library(randomForest)
library(quantregForest)
library(abind)
#Second simulation from Roy-Larocque
#m=.3
#p=0
print("p=0")
set.seed(10112017)
DAT... | /Final Dissertation Code/RL2m2p12.R | no_license | AndrewjSage/RF-Robustness | R | false | false | 1,064 | r | #setwd("~/Box Sync/Iowa State/Research/Robustness of Random Forest/Fall 17/Official_Simulation/All Final Code/")
setwd("/work/STAT/ajsage")
source("Robustness_Functions.R")
library(randomForest)
library(quantregForest)
library(abind)
#Second simulation from Roy-Larocque
#m=.3
#p=0
print("p=0")
set.seed(10112017)
DAT... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/buildNetwork.R
\name{buildAppFile}
\alias{buildAppFile}
\title{Prepares a new network visualization}
\usage{
buildAppFile(mtdt, path_to_file, q.threshold = 0.01,
mutation_effects = NULL, res.combined = NULL)
}
\arguments{
\item{mtdt}{An ind... | /man/buildAppFile.Rd | no_license | connorH982/driverAnalytics | R | false | true | 1,191 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/buildNetwork.R
\name{buildAppFile}
\alias{buildAppFile}
\title{Prepares a new network visualization}
\usage{
buildAppFile(mtdt, path_to_file, q.threshold = 0.01,
mutation_effects = NULL, res.combined = NULL)
}
\arguments{
\item{mtdt}{An ind... |
source("hist.svm.com.R")
source("hist.svm.pred.R")
source("hist.svm.main.R")
source("hist.param.R");
#args = commandArgs(trailingOnly=TRUE)
#file.model <- args[1];
#file.bw.plus <- args[2];
#file.bw.minus <- args[3];
#str.FID <- args[4];
#str.chr <- args[5];
#file.bed <- args[6];
#path.histone defined in... | /scripts/K562.H3k122ac.train.R | no_license | Danko-Lab/histone-mark-imputation | R | false | false | 1,136 | r | source("hist.svm.com.R")
source("hist.svm.pred.R")
source("hist.svm.main.R")
source("hist.param.R");
#args = commandArgs(trailingOnly=TRUE)
#file.model <- args[1];
#file.bw.plus <- args[2];
#file.bw.minus <- args[3];
#str.FID <- args[4];
#str.chr <- args[5];
#file.bed <- args[6];
#path.histone defined in... |
# Importing the dataset
dataset = read.csv('Salary_Data.csv')
# Splitting the dataset into the Training set and Test set
# install.packages('caTools')
library(caTools)
set.seed(123)
split = sample.split(dataset$Salary, SplitRatio = 2/3)
training_set = subset(dataset, split == TRUE)
test_set = subset(dataset, split == ... | /r.simplelinearreg.r | no_license | RoobiyaKhan/Simple-Multiple-Linear-Regressions | R | false | false | 1,452 | r | # Importing the dataset
dataset = read.csv('Salary_Data.csv')
# Splitting the dataset into the Training set and Test set
# install.packages('caTools')
library(caTools)
set.seed(123)
split = sample.split(dataset$Salary, SplitRatio = 2/3)
training_set = subset(dataset, split == TRUE)
test_set = subset(dataset, split == ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/direction_label.R
\name{direction_label}
\alias{direction_label}
\title{Adds an arrow indicating the direction of play to a ggplot plot}
\usage{
direction_label(x_label = 50, y_label = -3, label_length = 20,
colour = "dimgray")
}
\arguments... | /man/direction_label.Rd | permissive | davidfombella/ggsoccer | R | false | true | 956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/direction_label.R
\name{direction_label}
\alias{direction_label}
\title{Adds an arrow indicating the direction of play to a ggplot plot}
\usage{
direction_label(x_label = 50, y_label = -3, label_length = 20,
colour = "dimgray")
}
\arguments... |
library(ftsa)
### Name: fbootstrap
### Title: Bootstrap independent and identically distributed functional
### data
### Aliases: fbootstrap
### Keywords: multivariate
### ** Examples
# Bootstrapping the distribution of a summary statistics of functional data.
fbootstrap(data = ElNino)
| /data/genthat_extracted_code/ftsa/examples/fbootstrap.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 295 | r | library(ftsa)
### Name: fbootstrap
### Title: Bootstrap independent and identically distributed functional
### data
### Aliases: fbootstrap
### Keywords: multivariate
### ** Examples
# Bootstrapping the distribution of a summary statistics of functional data.
fbootstrap(data = ElNino)
|
library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wn'
scenario <- 27
param <- 1
anal_type <- "sing"
ss <- ss.bounds%>%
dplyr::filter(method == "wn", scenario.id == scenario)
do_val <- 0.1
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCores... | /sim_pgms/wn/do10/2xcontH1_sc27_do10_sing.R | no_license | yuliasidi/nibinom_apply | R | false | false | 2,220 | r | library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'wn'
scenario <- 27
param <- 1
anal_type <- "sing"
ss <- ss.bounds%>%
dplyr::filter(method == "wn", scenario.id == scenario)
do_val <- 0.1
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCores... |
`summary.mefa` <-
function(object, nlist = 10, ...)
{
x <- object
out <- list(
s.rich = rowSums(x$xtab > 0),
s.abu = rowSums(x$xtab),
t.occ = colSums(x$xtab > 0),
t.abu = colSums(x$xtab),
ntot = sum(x$xtab),
mfill = sum(x$xtab > 0)/(dim(x)[1]*dim(x)[2]),
nsamp = dim(x)[1],
nt... | /mefa/R/summary.mefa.R | no_license | ingted/R-Examples | R | false | false | 606 | r | `summary.mefa` <-
function(object, nlist = 10, ...)
{
x <- object
out <- list(
s.rich = rowSums(x$xtab > 0),
s.abu = rowSums(x$xtab),
t.occ = colSums(x$xtab > 0),
t.abu = colSums(x$xtab),
ntot = sum(x$xtab),
mfill = sum(x$xtab > 0)/(dim(x)[1]*dim(x)[2]),
nsamp = dim(x)[1],
nt... |
rm(list = ls())
#Read data
#Wdf = Wholesale Customers data frame
Wdf <- read.csv("C:/Users/scvv7/Downloads/Wholesale customers data.csv")
Wdf <- read.csv("C:/Users/Admin/Desktop/Catolica/Sem2/Data Mining/project/Wdf.csv")
#each value
str(Wdf)
#WdfN =Numeric data of Wholesale Customers
WdfN<-Wdf[,c(3:8)]
#WdfC = Num... | /Wholesale Customers Clustering.R | no_license | hoon2hooni/Wholesale_Customers | R | false | false | 16,974 | r | rm(list = ls())
#Read data
#Wdf = Wholesale Customers data frame
Wdf <- read.csv("C:/Users/scvv7/Downloads/Wholesale customers data.csv")
Wdf <- read.csv("C:/Users/Admin/Desktop/Catolica/Sem2/Data Mining/project/Wdf.csv")
#each value
str(Wdf)
#WdfN =Numeric data of Wholesale Customers
WdfN<-Wdf[,c(3:8)]
#WdfC = Num... |
# =============================================================================
# Server code for generating visNetwork graph
# =============================================================================
#' Get visNet Nodes
#'
#' Cleans input and outputs nodes df for visNetwork graph
#'
#' @param input The input fil... | /inst/shiny/upload_iso/visnet_tree_srvr.R | no_license | bradwest-wk/xbrlr | R | false | false | 6,091 | r | # =============================================================================
# Server code for generating visNetwork graph
# =============================================================================
#' Get visNet Nodes
#'
#' Cleans input and outputs nodes df for visNetwork graph
#'
#' @param input The input fil... |
#Script to get the Alignment
#Make sure that the in the directory in question you have a text file with the words in question which should be aligned. IMPORTANT: The file has to have the EXACT name as the Wav file.
################# FUNCTION NEEDED #############################################################
setwd('/... | /SWG_code/SWG_process_B_run_aligner.R | no_license | RealNicolasBourbaki/various_ways_of_processing_textgrid | R | false | false | 2,635 | r | #Script to get the Alignment
#Make sure that the in the directory in question you have a text file with the words in question which should be aligned. IMPORTANT: The file has to have the EXACT name as the Wav file.
################# FUNCTION NEEDED #############################################################
setwd('/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scrapeBill.R
\name{BillIDfromURL}
\alias{BillIDfromURL}
\title{Get Bill ID from URL}
\usage{
BillIDfromURL(url)
}
\arguments{
\item{url}{\code{character} scalar of vector of Bill Summary Page URL(s)}
}
\value{
\code{character} scalar of Bill ... | /man/BillIDfromURL.Rd | no_license | gentok/congressbills | R | false | true | 363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scrapeBill.R
\name{BillIDfromURL}
\alias{BillIDfromURL}
\title{Get Bill ID from URL}
\usage{
BillIDfromURL(url)
}
\arguments{
\item{url}{\code{character} scalar of vector of Bill Summary Page URL(s)}
}
\value{
\code{character} scalar of Bill ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{healthChecks.update}
\alias{healthChecks.update}
\title{Updates a HealthCheck resource in the specified project using the data included in the request.}
\usage{
healthChecks.update(HealthCheck, project, healthCheck)
... | /googlecomputealpha.auto/man/healthChecks.update.Rd | permissive | Phippsy/autoGoogleAPI | R | false | true | 1,260 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute_functions.R
\name{healthChecks.update}
\alias{healthChecks.update}
\title{Updates a HealthCheck resource in the specified project using the data included in the request.}
\usage{
healthChecks.update(HealthCheck, project, healthCheck)
... |
# R functions for Laplacian Eigenmaps High resolution pseudotemporal of single-cell RNA-seq data using
# laplacian eigenmaps and principal curves. kieran.campbell@sjc.ox.ac.uk (c) 2015
#' Laplacian eigenmaps embedding of single-cell RNA-seq data.
#'
#' @param sce The SCESet object
#' @param genes_for_embedding A vect... | /R/embeddr.R | no_license | bjstewart1/embeddr | R | false | false | 40,628 | r | # R functions for Laplacian Eigenmaps High resolution pseudotemporal of single-cell RNA-seq data using
# laplacian eigenmaps and principal curves. kieran.campbell@sjc.ox.ac.uk (c) 2015
#' Laplacian eigenmaps embedding of single-cell RNA-seq data.
#'
#' @param sce The SCESet object
#' @param genes_for_embedding A vect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_domains}
\alias{lightsail_get_domains}
\title{Returns a list of all domains in the user's account}
\usage{
lightsail_get_domains(pageToken)
}
\arguments{
\item{pageToken}{A token used for advancing t... | /paws/man/lightsail_get_domains.Rd | permissive | johnnytommy/paws | R | false | true | 557 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lightsail_operations.R
\name{lightsail_get_domains}
\alias{lightsail_get_domains}
\title{Returns a list of all domains in the user's account}
\usage{
lightsail_get_domains(pageToken)
}
\arguments{
\item{pageToken}{A token used for advancing t... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Read_Counts.R
\name{read_AG_counts}
\alias{read_AG_counts}
\title{Read data table files containing count values}
\usage{
read_AG_counts(file, verbose = FALSE, skip = 11, header = FALSE, ...)
}
\arguments{
\item{file}{A character scalar giving... | /man/read_AG_counts.Rd | permissive | muschellij2/AGread | R | false | true | 957 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Read_Counts.R
\name{read_AG_counts}
\alias{read_AG_counts}
\title{Read data table files containing count values}
\usage{
read_AG_counts(file, verbose = FALSE, skip = 11, header = FALSE, ...)
}
\arguments{
\item{file}{A character scalar giving... |
## Read in data
library("dplyr")
library("plyr")
library("graphics")
library("grDevices")
edaproj1<-read.table("household_power_consumption.txt", header=TRUE, sep=";")
##Limit data to the dates specified
edaproj1a<-filter(edaproj1, edaproj1$Date=="1/2/2007" | edaproj1$Date=="2/2/2007")
##Mutate global active power... | /plot1.r | no_license | gyorym/ExData_Plotting1 | R | false | false | 625 | r | ## Read in data
library("dplyr")
library("plyr")
library("graphics")
library("grDevices")
edaproj1<-read.table("household_power_consumption.txt", header=TRUE, sep=";")
##Limit data to the dates specified
edaproj1a<-filter(edaproj1, edaproj1$Date=="1/2/2007" | edaproj1$Date=="2/2/2007")
##Mutate global active power... |
setwd("E:/study/ComputerPrograms/courseCode/dataScienceCoursera/exploratoryDataAnalysis/project1")
# read the data
electricPowerConsumption <- read.table("household_power_consumption.txt", header = TRUE, sep = ";"
, na.strings = "?", stringsAsFactors=FALSE)
# get the plot data a... | /plot2.R | no_license | houxianxu/ExData_Plotting1 | R | false | false | 844 | r | setwd("E:/study/ComputerPrograms/courseCode/dataScienceCoursera/exploratoryDataAnalysis/project1")
# read the data
electricPowerConsumption <- read.table("household_power_consumption.txt", header = TRUE, sep = ";"
, na.strings = "?", stringsAsFactors=FALSE)
# get the plot data a... |
1037 npm install
1038 npm install --save express
1039 npm install -g nodemon
1040 npm install --save body-parser
1041 sudo npm install -g nodemon
1042 npm install --save pug
1043 npm install --save body-parser multer
1044 npm install --save mongoose
1045 nodemon src/index.js
1046 npm install --save ... | /readMe.rd | no_license | balamurugan-venkadachalam/nodejs-typescript-template | R | false | false | 931 | rd | 1037 npm install
1038 npm install --save express
1039 npm install -g nodemon
1040 npm install --save body-parser
1041 sudo npm install -g nodemon
1042 npm install --save pug
1043 npm install --save body-parser multer
1044 npm install --save mongoose
1045 nodemon src/index.js
1046 npm install --save ... |
#' Simultaneously dodge and jitter
#'
#' This is primarily used for aligning points generated through
#' `geom_point()` with dodged boxplots (e.g., a `geom_boxplot()` with
#' a fill aesthetic supplied).
#'
#' @family position adjustments
#' @param jitter.width degree of jitter in x direction. Defaults to 40% of the
#' ... | /R/position-jitterdodge.R | permissive | tidyverse/ggplot2 | R | false | false | 2,847 | r | #' Simultaneously dodge and jitter
#'
#' This is primarily used for aligning points generated through
#' `geom_point()` with dodged boxplots (e.g., a `geom_boxplot()` with
#' a fill aesthetic supplied).
#'
#' @family position adjustments
#' @param jitter.width degree of jitter in x direction. Defaults to 40% of the
#' ... |
#' CSS Color Specification
#'
#' Converts colors specified as CSS strings into R colors. This includes all colors in the X11 specification of the W3C \url{http://www.w3.org/TR/css3-color/#svg-color} as well as \code{rgb()} and \code{hsl()} constructs (but, in this case, it is probably easier to use the functions \code{... | /R/parse_css.R | no_license | Greater-London-Authority/chroma | R | false | false | 1,045 | r | #' CSS Color Specification
#'
#' Converts colors specified as CSS strings into R colors. This includes all colors in the X11 specification of the W3C \url{http://www.w3.org/TR/css3-color/#svg-color} as well as \code{rgb()} and \code{hsl()} constructs (but, in this case, it is probably easier to use the functions \code{... |
## Put comments here that give an overall description of what your
## functions do
## Function to define get,set,getinverse,setinverse functionality to enable caching
## of the inverse of a matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... | /cachematrix.R | no_license | sumigarg/ProgrammingAssignment2 | R | false | false | 1,030 | r | ## Put comments here that give an overall description of what your
## functions do
## Function to define get,set,getinverse,setinverse functionality to enable caching
## of the inverse of a matrix
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
... |
words = unique(dis$target_word)
word_summary = as.data.frame(matrix(NA, nrow = length(words), ncol = 5))
colnames(word_summary) = c("word", "is_noun", "num_instances", "num_senses", "accuracy")
for (i in 1 : length(words)){
word = words[i]
diss_word = dis[dis$target_word == word, ]
# print(diss_word[1, c("target_... | /data_analysis/r_scripts/tab_1_word_sample.R | no_license | kapelner/wordturk_pilot | R | false | false | 1,698 | r |
words = unique(dis$target_word)
word_summary = as.data.frame(matrix(NA, nrow = length(words), ncol = 5))
colnames(word_summary) = c("word", "is_noun", "num_instances", "num_senses", "accuracy")
for (i in 1 : length(words)){
word = words[i]
diss_word = dis[dis$target_word == word, ]
# print(diss_word[1, c("target_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anomalyDetection.R
\name{add_day_labels_datetime}
\alias{add_day_labels_datetime}
\title{Add formatted axis label}
\usage{
add_day_labels_datetime(tsplot, breaks = 6, start = NULL, end = NULL,
days_per_line = 1)
}
\description{
Add formatte... | /man/add_day_labels_datetime.Rd | permissive | ivanliu1989/RQuant | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anomalyDetection.R
\name{add_day_labels_datetime}
\alias{add_day_labels_datetime}
\title{Add formatted axis label}
\usage{
add_day_labels_datetime(tsplot, breaks = 6, start = NULL, end = NULL,
days_per_line = 1)
}
\description{
Add formatte... |
load("../fastOrtho/counts.RData")
# which are the most diversified gene families in each coral species?
# TEST DIFFS FOR ALL SHARED GENES
corals <- counts[, 1:4]
shared <- corals[apply(corals, 1, min)>0, ]
genestotest <- rownames(shared[apply(shared, 1, function(x) max(x)>=10),])
divp <- c()
for (g in genestotest) {
... | /R/species_diversification.R | no_license | jrcunning/pdam-genome | R | false | false | 3,225 | r | load("../fastOrtho/counts.RData")
# which are the most diversified gene families in each coral species?
# TEST DIFFS FOR ALL SHARED GENES
corals <- counts[, 1:4]
shared <- corals[apply(corals, 1, min)>0, ]
genestotest <- rownames(shared[apply(shared, 1, function(x) max(x)>=10),])
divp <- c()
for (g in genestotest) {
... |
\name{gmm_fit_em}
\alias{gmm_fit_em}
\docType{methods}
\title{Estimate Gaussian Mixture parameters using Expectation Maximisation.}
\description{
Estimates parameters for Gaussian mixture using Expectation Maximisation algorithm.
}
\usage{
gmm_fit_em( x, p, epsilon = c( 0.000001, 0.000001, 0.000001 ),
... | /man/gmm_fit_em.Rd | no_license | merkys/MixtureFitting | R | false | false | 1,490 | rd | \name{gmm_fit_em}
\alias{gmm_fit_em}
\docType{methods}
\title{Estimate Gaussian Mixture parameters using Expectation Maximisation.}
\description{
Estimates parameters for Gaussian mixture using Expectation Maximisation algorithm.
}
\usage{
gmm_fit_em( x, p, epsilon = c( 0.000001, 0.000001, 0.000001 ),
... |
\name{tensor}
\alias{tensor}
\alias{\%*t\%}
\alias{\%t*\%}
\alias{\%t*t\%}
\title{Tensor product of arrays}
\description{The tensor product of two arrays is notionally an
outer product of the arrays collapsed in specific extents by
summing along the appropriate diagonals. For example, a matrix
product is the tensor... | /man/tensor.Rd | no_license | mkim0710/tensor | R | false | false | 2,509 | rd | \name{tensor}
\alias{tensor}
\alias{\%*t\%}
\alias{\%t*\%}
\alias{\%t*t\%}
\title{Tensor product of arrays}
\description{The tensor product of two arrays is notionally an
outer product of the arrays collapsed in specific extents by
summing along the appropriate diagonals. For example, a matrix
product is the tensor... |
context("test-utils.R")
test_that("r2academy packages returns character vector of package names", {
out <- r2academy_packages()
expect_type(out, "character")
expect_true("olsrr" %in% out)
})
test_that('loaded packages', {
loaded <- names(sessionInfo()$otherPkgs)
expect_true(
all(r2academy:::core %in% lo... | /tests/testthat/test-utils.R | permissive | rsquaredacademy/r2academy | R | false | false | 334 | r | context("test-utils.R")
test_that("r2academy packages returns character vector of package names", {
out <- r2academy_packages()
expect_type(out, "character")
expect_true("olsrr" %in% out)
})
test_that('loaded packages', {
loaded <- names(sessionInfo()$otherPkgs)
expect_true(
all(r2academy:::core %in% lo... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plostitle.R
\name{plostitle}
\alias{plostitle}
\title{Search PLoS Journals titles.}
\usage{
plostitle(q = NULL, fl = "id", fq = NULL, sort = NULL, start = 0,
limit = 10, sleep = 6, terms = NULL, fields = NULL, toquery = NULL,
verbose = TR... | /man/plostitle.Rd | permissive | sburra2/testautomationdemo | R | false | true | 4,547 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plostitle.R
\name{plostitle}
\alias{plostitle}
\title{Search PLoS Journals titles.}
\usage{
plostitle(q = NULL, fl = "id", fq = NULL, sort = NULL, start = 0,
limit = 10, sleep = 6, terms = NULL, fields = NULL, toquery = NULL,
verbose = TR... |
data <- read.csv("household_power_consumption.txt",sep=";",
header=TRUE,na.strings="?",
colClasses=c(rep("character",2),rep("numeric",7))
)
data$Timestamp <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S")
data <-subset(data,data$Timestamp>=as.POSIXct("2007-02-01",format="... | /plot1.R | no_license | parimalogy/ExData_Plotting1 | R | false | false | 636 | r | data <- read.csv("household_power_consumption.txt",sep=";",
header=TRUE,na.strings="?",
colClasses=c(rep("character",2),rep("numeric",7))
)
data$Timestamp <- strptime(paste(data$Date, data$Time), "%d/%m/%Y %H:%M:%S")
data <-subset(data,data$Timestamp>=as.POSIXct("2007-02-01",format="... |
fjComm::clear_()
label384= fjComm::gen_384_label()
get_TFMI_diag <- function(well,add="Free")
{
file=paste0("~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/analysis/2d_IC_related_pub/data/",well,"_*-147c5",add,"-*foldchn_maxBias.csv")
file=Sys.glob(file)
well= extract_well(file)
if(length(file)==0) return(NA)
TFname... | /fig7_scafold_effect/allTF_enrich_center/relative_enrich_center_ub_b.R | no_license | aquaflakes/individual_analyses | R | false | false | 1,794 | r | fjComm::clear_()
label384= fjComm::gen_384_label()
get_TFMI_diag <- function(well,add="Free")
{
file=paste0("~/Nut_zhuData/seqFiles2/FJ4.5CAP2r_PE/analysis/2d_IC_related_pub/data/",well,"_*-147c5",add,"-*foldchn_maxBias.csv")
file=Sys.glob(file)
well= extract_well(file)
if(length(file)==0) return(NA)
TFname... |
plsrPIs <- function(X, Y, Xnew, ncomp1 = 1, ncomp, alpha = .05, weight = c("FALSE", "TRUE"), beta)
{
n = dim(X)[2]
p = dim(X)[1]
if (weight == FALSE){
pred = t(X)
mpred = apply(pred,2,"mean")
decenpred = sweep(pred,2,mpred)
}
else {
q = ma... | /R/plsrPIs.R | no_license | cran/ftsa | R | false | false | 1,975 | r | plsrPIs <- function(X, Y, Xnew, ncomp1 = 1, ncomp, alpha = .05, weight = c("FALSE", "TRUE"), beta)
{
n = dim(X)[2]
p = dim(X)[1]
if (weight == FALSE){
pred = t(X)
mpred = apply(pred,2,"mean")
decenpred = sweep(pred,2,mpred)
}
else {
q = ma... |
library(pracma)
sigma.svd <- numeric(30)
sigma.square <- numeric(30)
for(m in 1:30) {
A <- matrix(0, m, m)
diag(A) <- 0.1
A[upper.tri(A)] <- 1
i = m
sigma.svd[i] = svd(A)$d[m]
sigma.square[i] = sqrt(min(eigen(t(A)%*%A)$values))
}
sigma.svd - sigma.square
col.square = rep(1, 30)
col.square[is.nan(sigma.squ... | /hw6/P5.R | no_license | Tokubara/StatisticalComputing | R | false | false | 496 | r | library(pracma)
sigma.svd <- numeric(30)
sigma.square <- numeric(30)
for(m in 1:30) {
A <- matrix(0, m, m)
diag(A) <- 0.1
A[upper.tri(A)] <- 1
i = m
sigma.svd[i] = svd(A)$d[m]
sigma.square[i] = sqrt(min(eigen(t(A)%*%A)$values))
}
sigma.svd - sigma.square
col.square = rep(1, 30)
col.square[is.nan(sigma.squ... |
###############################################################################
#This set of codes Read the Electrical Power Consumption, selects the data within
#time period 2007-02-01 - 2007-02-02, converts the data variables appropriately
#and make some plots.
#Olusoji O. D.
########################################... | /plot4.R | no_license | jhumy/ExData_Plotting1 | R | false | false | 2,116 | r | ###############################################################################
#This set of codes Read the Electrical Power Consumption, selects the data within
#time period 2007-02-01 - 2007-02-02, converts the data variables appropriately
#and make some plots.
#Olusoji O. D.
########################################... |
#' Make shiny app
#'
#' Open sesame!
#'
#' @param port Integer port number
#'
#' @return Shiny application
#' @export
#'
#' @examples \dontrun{
#' makeCurtains()
#' }
makeCurtains <- function(port = 4455L) {
shiny_path <- system.file('shiny-curtains', package = 'curtains')
shiny::runApp(shiny_path, host = '0.0.0... | /R/make-curtains.R | permissive | bill-ash/curtains | R | false | false | 341 | r | #' Make shiny app
#'
#' Open sesame!
#'
#' @param port Integer port number
#'
#' @return Shiny application
#' @export
#'
#' @examples \dontrun{
#' makeCurtains()
#' }
makeCurtains <- function(port = 4455L) {
shiny_path <- system.file('shiny-curtains', package = 'curtains')
shiny::runApp(shiny_path, host = '0.0.0... |
#' Compute a distance vector
#' @name dist.vect
#' @aliases dist.vect
#' @author Jorge Arce
#' @description Compute a distance vector
#' @usage dist.vect(vector1, vector2)
#' @param vector1 First vector.
#' @param vector2 Second vector.
#'
#' @return Eclidean distance between the two vectors.
#' @references Arce J. and... | /R/dist.vect.R | no_license | Frenchyy1/RSDA | R | false | false | 1,284 | r | #' Compute a distance vector
#' @name dist.vect
#' @aliases dist.vect
#' @author Jorge Arce
#' @description Compute a distance vector
#' @usage dist.vect(vector1, vector2)
#' @param vector1 First vector.
#' @param vector2 Second vector.
#'
#' @return Eclidean distance between the two vectors.
#' @references Arce J. and... |
library(dplyr)
pd1 <- read.table("household_power_consumption.txt", sep=";",
header=TRUE, na.strings="?", stringsAsFactors=FALSE)
pd1$Date <- as.Date(pd1$Date, "%d/%m/%Y")
pd2 <- pd1 %>% filter(Date >= "2007-02-01" & Date <= "2007-02-02")
hist(pd2$Global_active_power, col="red", main="Global Acti... | /plot1.R | no_license | rtowler1/ExData_Plotting1 | R | false | false | 420 | r | library(dplyr)
pd1 <- read.table("household_power_consumption.txt", sep=";",
header=TRUE, na.strings="?", stringsAsFactors=FALSE)
pd1$Date <- as.Date(pd1$Date, "%d/%m/%Y")
pd2 <- pd1 %>% filter(Date >= "2007-02-01" & Date <= "2007-02-02")
hist(pd2$Global_active_power, col="red", main="Global Acti... |
# This downloads and reads the data, if necessary.
if(!exists("power") || !is(power,"data.frame")) {
if(!file.exists("household_power_consumption.txt")) {
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "data.zip")
unzip("data.zip")
}
pr... | /plot4.R | no_license | chrisalanclark/ExData_Plotting1 | R | false | false | 1,706 | r | # This downloads and reads the data, if necessary.
if(!exists("power") || !is(power,"data.frame")) {
if(!file.exists("household_power_consumption.txt")) {
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "data.zip")
unzip("data.zip")
}
pr... |
#' Import Data to R. Function imports file and change data column type
#'
#' @param path_terminal - path of the Trading Terminal where the file with data is written
#' @param trade_log_file - File name where the order results are written
#' @param demo_mode - When true function uses data stored in the _TEST_DATA folder... | /Function/import_data.R | no_license | silkflo/DSS | R | false | false | 2,082 | r | #' Import Data to R. Function imports file and change data column type
#'
#' @param path_terminal - path of the Trading Terminal where the file with data is written
#' @param trade_log_file - File name where the order results are written
#' @param demo_mode - When true function uses data stored in the _TEST_DATA folder... |
## The two functions are using the advantages of lexical scoping rules in R.
## 1st function set up a list to show the process of making a matrix,
## and 2nd function examine if the applied matrix had existed or not.
## If the results had already existed, then return the same result with a message " getting cache data"... | /cachematrix.R | no_license | RonHsieh/ProgrammingAssignment2 | R | false | false | 1,839 | r | ## The two functions are using the advantages of lexical scoping rules in R.
## 1st function set up a list to show the process of making a matrix,
## and 2nd function examine if the applied matrix had existed or not.
## If the results had already existed, then return the same result with a message " getting cache data"... |
options(scipen=100)
SSHFS=F
buildData <- F
# Rscript go_signif_across_hicds_v2_withThresh.R
# Rscript go_signif_across_hicds_v2_withThresh.R norm_vs_tumor
# Rscript go_signif_across_hicds_v2_withThresh.R subtypes
# Rscript go_signif_across_hicds_v2_withThresh.R wt_vs_mut
script_name <- "go_signif_across_hicds_v2_wi... | /FIG_4/go_signif_across_hicds_v2_withThresh.R | no_license | marzuf/MANUSCRIPT_FIGURES | R | false | false | 25,440 | r | options(scipen=100)
SSHFS=F
buildData <- F
# Rscript go_signif_across_hicds_v2_withThresh.R
# Rscript go_signif_across_hicds_v2_withThresh.R norm_vs_tumor
# Rscript go_signif_across_hicds_v2_withThresh.R subtypes
# Rscript go_signif_across_hicds_v2_withThresh.R wt_vs_mut
script_name <- "go_signif_across_hicds_v2_wi... |
# Installing libraries
# --------------------
install.packages("ggplot2")
library(ggplot2)
# Plots
# -----
# histogram displ
# can play around with scales, titles, etc
# boxplot displ
# boxplot displ by make
# ggplots look a little different
library(ggplot2)
# qplot of displ
# qplot of make
###################... | /statistical-computing/Lecture/Lec 5.1.R | no_license | JiaRuiShao/Data-Mining-R | R | false | false | 3,967 | r | # Installing libraries
# --------------------
install.packages("ggplot2")
library(ggplot2)
# Plots
# -----
# histogram displ
# can play around with scales, titles, etc
# boxplot displ
# boxplot displ by make
# ggplots look a little different
library(ggplot2)
# qplot of displ
# qplot of make
###################... |
#' @title summary method for class \code{BayesSUR}
#' @description
#' Summary method for class \code{BayesSUR}. It includes the argument matching
#' information, Top predictors/responses on average mPIP across all
#' responses/predictors, elpd estimates, MCMC specification, model
#' specification and hyper-parameter... | /R/summary.BayesSUR.R | no_license | cran/BayesSUR | R | false | false | 4,817 | r | #' @title summary method for class \code{BayesSUR}
#' @description
#' Summary method for class \code{BayesSUR}. It includes the argument matching
#' information, Top predictors/responses on average mPIP across all
#' responses/predictors, elpd estimates, MCMC specification, model
#' specification and hyper-parameter... |
# illustration of R/qtl data file
library(broman)
iron <- read.csv("iron.csv", stringsAsFactors=FALSE)
iron[1:2,1:4] <- ""
excel_fig(iron, "../Figs/datafile.pdf")
excel_fig(iron, "../Figs/datafile_bw.pdf")
| /R/datafile.R | permissive | kbroman/Talk_UseR2016 | R | false | false | 207 | r | # illustration of R/qtl data file
library(broman)
iron <- read.csv("iron.csv", stringsAsFactors=FALSE)
iron[1:2,1:4] <- ""
excel_fig(iron, "../Figs/datafile.pdf")
excel_fig(iron, "../Figs/datafile_bw.pdf")
|
\name{RFLPref}
\alias{RFLPref}
\docType{data}
\title{ Example data set for RFLP reference}
\description{
This is an example data set for RFLP reference.
}
\usage{data(RFLPref)}
\format{
A data frame with 35 observations on the following five variables
\describe{
\item{\code{Sample}}{character: sample identifi... | /man/RFLPref.Rd | no_license | cran/RFLPtools | R | false | false | 1,120 | rd | \name{RFLPref}
\alias{RFLPref}
\docType{data}
\title{ Example data set for RFLP reference}
\description{
This is an example data set for RFLP reference.
}
\usage{data(RFLPref)}
\format{
A data frame with 35 observations on the following five variables
\describe{
\item{\code{Sample}}{character: sample identifi... |
##OUwie Simulator##
#written by Jeremy M. Beaulieu
#Simulates the Hansen model of continuous characters evolving under discrete selective
#regimes. The input is a tree of class "phylo" that has the regimes as internal node labels
#and a data file the contains the regime states for each species. The trait file must ... | /Software/OUwie/R/OUwie.sim.R | no_license | bomeara/omearatenure | R | false | false | 6,995 | r | ##OUwie Simulator##
#written by Jeremy M. Beaulieu
#Simulates the Hansen model of continuous characters evolving under discrete selective
#regimes. The input is a tree of class "phylo" that has the regimes as internal node labels
#and a data file the contains the regime states for each species. The trait file must ... |
/TP1/Pruebas-Matias/analisis_usuarios.R | no_license | blukitas/Tp-Data-Mining-2020 | R | false | false | 7,420 | r | ||
#-----BASIC EXPLORATORY DATA ANALYSIS-----
#Checking data & remove any duplicates: Found no missing values
movies<-read.csv(path,header=TRUE,sep=",",stringsAsFactors = FALSE,na.strings = c("NA", ""))
data.frame("variable"=c(colnames(movies)),
"missing values count"=sapply(movies,
... | /EDA-Netflix.r | no_license | Sindhu-0716/RecommendationEngine | R | false | false | 2,680 | r | #-----BASIC EXPLORATORY DATA ANALYSIS-----
#Checking data & remove any duplicates: Found no missing values
movies<-read.csv(path,header=TRUE,sep=",",stringsAsFactors = FALSE,na.strings = c("NA", ""))
data.frame("variable"=c(colnames(movies)),
"missing values count"=sapply(movies,
... |
#### Read in and clean the data ####
# Read in the data:
data <- read.table("~samanthatoet/Desktop/Data Science/Graphing/household_power_consumption.txt",
header = TRUE, sep = ";", na.strings = "?")
# Convert dates to Date class:
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
# Subset rows w... | /plot2.R | no_license | SamanthaToet/Exploratory-Data-Analysis-Project1 | R | false | false | 804 | r | #### Read in and clean the data ####
# Read in the data:
data <- read.table("~samanthatoet/Desktop/Data Science/Graphing/household_power_consumption.txt",
header = TRUE, sep = ";", na.strings = "?")
# Convert dates to Date class:
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
# Subset rows w... |
library(dplyr)
library(DescTools)
library(ggplot2)
library(caTools)
library(MASS)
library(leaps)
library(gmodels)
library(verification)
library(ROCR)
library(e1071)
library(ROSE)
library(caret)
library(rsample)
library(glmnet)
library(AmesHousing)
library(stringr)
loan.Q4<-read.csv("LoanStats_2016Q4.csv",skip=1,na.st... | /Prediction/GLM/LendingQ4.R | no_license | Lleraoner/Master-Data-Science-for-Finances | R | false | false | 15,493 | r | library(dplyr)
library(DescTools)
library(ggplot2)
library(caTools)
library(MASS)
library(leaps)
library(gmodels)
library(verification)
library(ROCR)
library(e1071)
library(ROSE)
library(caret)
library(rsample)
library(glmnet)
library(AmesHousing)
library(stringr)
loan.Q4<-read.csv("LoanStats_2016Q4.csv",skip=1,na.st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_colour.R
\name{is_colour}
\alias{is_colour}
\alias{is_colour.character}
\alias{is_colour.factor}
\alias{is_colour.logical}
\alias{is_colour.numeric}
\title{Is an object a valid colour?}
\usage{
is_colour(x)
\method{is_colour}{character}(x... | /man/is_colour.Rd | no_license | flying-sheep/ggthemr | R | false | true | 810 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/is_colour.R
\name{is_colour}
\alias{is_colour}
\alias{is_colour.character}
\alias{is_colour.factor}
\alias{is_colour.logical}
\alias{is_colour.numeric}
\title{Is an object a valid colour?}
\usage{
is_colour(x)
\method{is_colour}{character}(x... |
my_vec2 <- c("a","b","c")
class(my_vec2) | /R_Scripts/demo1.R | no_license | thunderpearl/R_Code_ThunderPearl | R | false | false | 42 | r |
my_vec2 <- c("a","b","c")
class(my_vec2) |
library(rpart)
income_data <- read.table('Income_Data.txt', sep= ",", col.names = c("annual_income", "sex", "marital_status", "age", "education", "occupation", "bay_area", "dual_income", "house_size", "children", "householder", "house_type", "ethnicity", "language"))
#Telling which parameters are categorical, numeri... | /income_cart_martprob.R | no_license | juliendemori/STATS315-datamining | R | false | false | 1,784 | r | library(rpart)
income_data <- read.table('Income_Data.txt', sep= ",", col.names = c("annual_income", "sex", "marital_status", "age", "education", "occupation", "bay_area", "dual_income", "house_size", "children", "householder", "house_type", "ethnicity", "language"))
#Telling which parameters are categorical, numeri... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ithim_setup_parameters.R
\name{ithim_setup_parameters}
\alias{ithim_setup_parameters}
\title{Routine to sample or set parameters for ITHIM}
\usage{
ithim_setup_parameters(
NSAMPLES = 1,
BUS_WALK_TIME = 5,
MMET_CYCLING = 4.63,
MMET_WAL... | /man/ithim_setup_parameters.Rd | no_license | CorinStaves/ITHIM-R | R | false | true | 3,419 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ithim_setup_parameters.R
\name{ithim_setup_parameters}
\alias{ithim_setup_parameters}
\title{Routine to sample or set parameters for ITHIM}
\usage{
ithim_setup_parameters(
NSAMPLES = 1,
BUS_WALK_TIME = 5,
MMET_CYCLING = 4.63,
MMET_WAL... |
#' merge_plus
#'
#' @description merge two datasets, plus.
#'
#' @param data1 data.frame. First to-merge dataset.
#' @param data2 data.frame. Second to-merge dataset.
#' @param by character string. Variables to merge on (common across data 1 and data 2). See \code{merge}
#' @param by.x character string. Variable... | /R/merge_plus.R | permissive | franciscothebrady/fedmatch | R | false | false | 12,653 | r | #' merge_plus
#'
#' @description merge two datasets, plus.
#'
#' @param data1 data.frame. First to-merge dataset.
#' @param data2 data.frame. Second to-merge dataset.
#' @param by character string. Variables to merge on (common across data 1 and data 2). See \code{merge}
#' @param by.x character string. Variable... |
# Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... | /R/NegativeVolumeIndexTechnicalValue.r | no_license | Aggarch/r-sdk | R | false | false | 3,734 | r | # Intrinio API
#
# Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i... |
options(na.action=na.exclude) # preserve missings
options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type
library(survival)
#
# Verify that scale can be fixed at a value
# coefs will differ slightly due to different iteration paths
tol <- .001
# Intercept only models
fit1 <- survreg(Surv(time,... | /R-Portable/library/survival/tests/r_scale.R | permissive | ksasso/Electron_ShinyApp_Deployment | R | false | false | 1,709 | r | options(na.action=na.exclude) # preserve missings
options(contrasts=c('contr.treatment', 'contr.poly')) #ensure constrast type
library(survival)
#
# Verify that scale can be fixed at a value
# coefs will differ slightly due to different iteration paths
tol <- .001
# Intercept only models
fit1 <- survreg(Surv(time,... |
# Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqAnalyticsTestandtargetIm... | /clients/r/generated/R/ComDayCqAnalyticsTestandtargetImplPushAuthorCampaignPageListenerInfo.r | permissive | shinesolutions/swagger-aem-osgi | R | false | false | 6,782 | r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComDayCqAnalyticsTestandtargetIm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.