content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/verb-pivot-longer.R
\name{pivot_longer.tbl_lazy}
\alias{pivot_longer.tbl_lazy}
\title{Pivot data from wide to long}
\usage{
\method{pivot_longer}{tbl_lazy}(
data,
cols,
...,
cols_vary,
names_to = "name",
names_prefix = NULL,
nam... | /man/pivot_longer.tbl_lazy.Rd | permissive | tidyverse/dbplyr | R | false | true | 3,288 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/verb-pivot-longer.R
\name{pivot_longer.tbl_lazy}
\alias{pivot_longer.tbl_lazy}
\title{Pivot data from wide to long}
\usage{
\method{pivot_longer}{tbl_lazy}(
data,
cols,
...,
cols_vary,
names_to = "name",
names_prefix = NULL,
nam... |
#' Supply Transition function to convert the LOCAL CODE counts into ONET counts
#'
#' This function helps to convert the counts for LOCAL CODE into the ONET counts.
#' If the count at soc 6 level is same,
#' then it is redistributed on the basis of the supply or demand file for the Benchmark country.
#' Here a... | /supplytransition/R/Supply_Transition.R | no_license | 1711surabhi/tn_data_prep | R | false | false | 35,662 | r |
#' Supply Transition function to convert the LOCAL CODE counts into ONET counts
#'
#' This function helps to convert the counts for LOCAL CODE into the ONET counts.
#' If the count at soc 6 level is same,
#' then it is redistributed on the basis of the supply or demand file for the Benchmark country.
#' Here a... |
\docType{package}
\name{coefplot}
\alias{coefplot}
\alias{coefplot-package}
\alias{plotcoef}
\title{Dotplot for model coefficients}
\usage{
coefplot(model, ...)
}
\arguments{
\item{model}{The fitted model with coefficients to be
plotted}
\item{\dots}{See \code{\link{coefplot.lm}} for argument
details}
}
\val... | /man/coefplot.Rd | permissive | jknowles/coefplot | R | false | false | 2,259 | rd | \docType{package}
\name{coefplot}
\alias{coefplot}
\alias{coefplot-package}
\alias{plotcoef}
\title{Dotplot for model coefficients}
\usage{
coefplot(model, ...)
}
\arguments{
\item{model}{The fitted model with coefficients to be
plotted}
\item{\dots}{See \code{\link{coefplot.lm}} for argument
details}
}
\val... |
library(shiny)
library(ggmap)
load("./data/locations.Rdata")
shinyServer(function(input, output) {
threshold <-reactive({
quantile(parcel.areas.UTM,
1-(.01*input$quantile))
})
location.subset <-reactive({
subset(locations,locations$Parcel_Area > threshold())
})
shp.file.idx<-reactive({
!is.na... | /server.R | no_license | JRDoubleYou/GoldCoastApp | R | false | false | 920 | r | library(shiny)
library(ggmap)
load("./data/locations.Rdata")
shinyServer(function(input, output) {
threshold <-reactive({
quantile(parcel.areas.UTM,
1-(.01*input$quantile))
})
location.subset <-reactive({
subset(locations,locations$Parcel_Area > threshold())
})
shp.file.idx<-reactive({
!is.na... |
#' Set and get cached commons
#'
#' Get and set common cached information for each class.
#' The setter should only ever be called in \code{\link{.cacheCommonInfo}}.
#' The getter can be called anywhere but most usually in \code{\link{.defineInterface}}.
#'
#' @param se A \linkS4class{SummarizedExperiment} object conta... | /R/utils_class.R | permissive | BadSeby/iSEE | R | false | false | 12,252 | r | #' Set and get cached commons
#'
#' Get and set common cached information for each class.
#' The setter should only ever be called in \code{\link{.cacheCommonInfo}}.
#' The getter can be called anywhere but most usually in \code{\link{.defineInterface}}.
#'
#' @param se A \linkS4class{SummarizedExperiment} object conta... |
#' Rebuild the Packages in your Project Library
#'
#' Rebuild and reinstall packages in your library. This can be useful as a
#' diagnostic tool -- for example, if you find that one or more of your
#' packages fail to load, and you want to ensure that you are starting from a
#' clean slate.
#'
#' @inherit renv-params
... | /R/rebuild.R | permissive | mstackhouse/renv | R | false | false | 2,601 | r |
#' Rebuild the Packages in your Project Library
#'
#' Rebuild and reinstall packages in your library. This can be useful as a
#' diagnostic tool -- for example, if you find that one or more of your
#' packages fail to load, and you want to ensure that you are starting from a
#' clean slate.
#'
#' @inherit renv-params
... |
library(usmap)
library(ggplot2)
library(maps)
library(tidyverse)
#plot_usmap(regions = "state") +
# labs(title = "US States",
# subtitle = "Map of states in the United States.") +
# theme(panel.background = element_rect(color = "black", fill = "lightblue"))
###############
state_list = c('AL... | /floodzones.R | no_license | LenaChretien/National_flood_insurance | R | false | false | 58,816 | r | library(usmap)
library(ggplot2)
library(maps)
library(tidyverse)
#plot_usmap(regions = "state") +
# labs(title = "US States",
# subtitle = "Map of states in the United States.") +
# theme(panel.background = element_rect(color = "black", fill = "lightblue"))
###############
state_list = c('AL... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PerMallows.R
\docType{data}
\name{perm.sample.med}
\alias{perm.sample.med}
\title{Sample of permutations}
\format{Each row is a permtuation}
\description{
A rda file containing a sample of permutations
}
| /man/perm.sample.med.Rd | no_license | ekhiru/PerMallows | R | false | false | 291 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PerMallows.R
\docType{data}
\name{perm.sample.med}
\alias{perm.sample.med}
\title{Sample of permutations}
\format{Each row is a permtuation}
\description{
A rda file containing a sample of permutations
}
|
install.packages("RcppCCTZ") #for parseDatetime
install.packages("ggplot2")
install.packages("spatstat")
install.packages("RColorBrewer")
library(RcppCCTZ)
library(ggplot2)
library(spatstat)
library(RColorBrewer)
setwd("~/Schreibtisch/hacktrain/git/stay-safe/timeTable/")
dataPlatform <- read.csv('../heatmap-creation... | /date-analyzation/timeTable/timeTable.r | permissive | dnltsk/stay-safe | R | false | false | 7,720 | r | install.packages("RcppCCTZ") #for parseDatetime
install.packages("ggplot2")
install.packages("spatstat")
install.packages("RColorBrewer")
library(RcppCCTZ)
library(ggplot2)
library(spatstat)
library(RColorBrewer)
setwd("~/Schreibtisch/hacktrain/git/stay-safe/timeTable/")
dataPlatform <- read.csv('../heatmap-creation... |
addl <-
c(14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 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)
amt <-
c(5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5000... | /data/twoCpt.data.R | no_license | nanhung/modelmonday | R | false | false | 2,472 | r | addl <-
c(14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 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)
amt <-
c(5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5000... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BiCopCind.R
\name{BiCopCind2Par}
\alias{BiCopCind2Par}
\title{Parameter of a bivariate copula for a given C-index value}
\usage{
BiCopCind2Par(family, Cind)
}
\arguments{
\item{family}{copula family. check \code{BiCopPar2Tau} for det... | /man/BiCopCind2Par.Rd | no_license | elong0527/simuCCP | R | false | true | 537 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BiCopCind.R
\name{BiCopCind2Par}
\alias{BiCopCind2Par}
\title{Parameter of a bivariate copula for a given C-index value}
\usage{
BiCopCind2Par(family, Cind)
}
\arguments{
\item{family}{copula family. check \code{BiCopPar2Tau} for det... |
# Reading in the Data
df = read.table("household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F)
# Taking the subset that includes only 01/02/2007 - 02/02/2007
df = df[grep("^([12])/2/2007",df$Date),]
# Merges Date with Time and Converts resulting Date variable to the Type Date
df$Date = paste(... | /plot4.R | no_license | motogg/ExData_Plotting1 | R | false | false | 1,312 | r | # Reading in the Data
df = read.table("household_power_consumption.txt", header = T, sep = ";", stringsAsFactors = F)
# Taking the subset that includes only 01/02/2007 - 02/02/2007
df = df[grep("^([12])/2/2007",df$Date),]
# Merges Date with Time and Converts resulting Date variable to the Type Date
df$Date = paste(... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.3278450735748e-308, 9.53818252170339e+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)))
result <- do.call(CNull:::communities_individual_... | /CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615831196-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 361 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.3278450735748e-308, 9.53818252170339e+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)))
result <- do.call(CNull:::communities_individual_... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/clusterFunctionsSLURM.R
\name{makeClusterFunctionsSLURM}
\alias{makeClusterFunctionsSLURM}
\title{Create cluster functions for SLURM-based systems.}
\usage{
makeClusterFunctionsSLURM(template.file, list.jobs.cmd = c("squeue", "-h",
... | /man/makeClusterFunctionsSLURM.Rd | no_license | renozao/BatchJobs | R | false | false | 1,865 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/clusterFunctionsSLURM.R
\name{makeClusterFunctionsSLURM}
\alias{makeClusterFunctionsSLURM}
\title{Create cluster functions for SLURM-based systems.}
\usage{
makeClusterFunctionsSLURM(template.file, list.jobs.cmd = c("squeue", "-h",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trackClass.R
\name{featurePlot}
\alias{featurePlot}
\title{TODO: Add legends to the plots made with this function.
TODO: A function that creates ready lists of playlists to be plotted.
Plot audio features.}
\usage{
featurePlot(x, y, trakcs)
... | /man/featurePlot.Rd | no_license | topiaskarjalainen/SpotR | R | false | true | 632 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trackClass.R
\name{featurePlot}
\alias{featurePlot}
\title{TODO: Add legends to the plots made with this function.
TODO: A function that creates ready lists of playlists to be plotted.
Plot audio features.}
\usage{
featurePlot(x, y, trakcs)
... |
library(ggmap)
library(ggplot2)
library(BH)
library(dplyr)
library(lubridate)
library(ggthemes)
library(scales)
paris_twitter <- read.csv("data/final_tweets.csv", as.is = TRUE) %>%
mutate(twitter_tag = factor(tag),
text = iconv(text, to='ASCII//TRANSLIT'))
paris_twitter$created <- as.POSIXct(pa... | /data/App-2/server.R | permissive | geanders/RProgrammingForResearch | R | false | false | 4,190 | r | library(ggmap)
library(ggplot2)
library(BH)
library(dplyr)
library(lubridate)
library(ggthemes)
library(scales)
paris_twitter <- read.csv("data/final_tweets.csv", as.is = TRUE) %>%
mutate(twitter_tag = factor(tag),
text = iconv(text, to='ASCII//TRANSLIT'))
paris_twitter$created <- as.POSIXct(pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/native_dataset_publish.R
\name{delete_dataset}
\alias{delete_dataset}
\title{Delete draft dataset}
\usage{
delete_dataset(dataset, key = Sys.getenv("DATAVERSE_KEY"),
server = Sys.getenv("DATAVERSE_SERVER"), ...)
}
\arguments{
\item{dataset}... | /man/delete_dataset.Rd | no_license | haozhu233/dataverse-client-r | R | false | true | 1,849 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/native_dataset_publish.R
\name{delete_dataset}
\alias{delete_dataset}
\title{Delete draft dataset}
\usage{
delete_dataset(dataset, key = Sys.getenv("DATAVERSE_KEY"),
server = Sys.getenv("DATAVERSE_SERVER"), ...)
}
\arguments{
\item{dataset}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/figures.R
\name{plot_casts_err_lead}
\alias{plot_casts_err_lead}
\title{Plot the forecast error as a function of lead time}
\usage{
plot_casts_err_lead(
main = ".",
cast_ids = NULL,
cast_tab = NULL,
end_moons = NULL,
models = NULL,
... | /man/plot_casts_err_lead.Rd | permissive | patdumandan/portalcasting | R | false | true | 2,956 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/figures.R
\name{plot_casts_err_lead}
\alias{plot_casts_err_lead}
\title{Plot the forecast error as a function of lead time}
\usage{
plot_casts_err_lead(
main = ".",
cast_ids = NULL,
cast_tab = NULL,
end_moons = NULL,
models = NULL,
... |
## Taken from http://thepoliticalmethodologist.com/2015/03/03/some-code-for-estimating-clustered-ses-in-mlogit-models/
## On Feb 1st 2016
# load in a function to create clustered standard errors for mlogit models
# initial code by Mahmood Ara: http://thetarzan.wordpress.com/2011/06/11/clustered-standard-errors-in-r/
# ... | /src/cl.mlogit.R | no_license | gentok/donorcompetition | R | false | false | 1,810 | r | ## Taken from http://thepoliticalmethodologist.com/2015/03/03/some-code-for-estimating-clustered-ses-in-mlogit-models/
## On Feb 1st 2016
# load in a function to create clustered standard errors for mlogit models
# initial code by Mahmood Ara: http://thetarzan.wordpress.com/2011/06/11/clustered-standard-errors-in-r/
# ... |
library(shiny)
library(leaflet)
library(dplyr)
library(tidyr)
library(tidyverse)
library(dataRetrieval)
rm(siteInfo)
siteInfo <- readNWISdata(stateCd="UT", parameterCd="00060",
hasDataTypeCd="iv", service="site")
View(siteInfo)
colnames(siteInfo)
# Lat and Long columns are already numeric
... | /NWISprocess.R | no_license | kate-jones/LeafletShinyUtahNWIS | R | false | false | 571 | r | library(shiny)
library(leaflet)
library(dplyr)
library(tidyr)
library(tidyverse)
library(dataRetrieval)
rm(siteInfo)
siteInfo <- readNWISdata(stateCd="UT", parameterCd="00060",
hasDataTypeCd="iv", service="site")
View(siteInfo)
colnames(siteInfo)
# Lat and Long columns are already numeric
... |
#HR_Attrition_Prediction OR Churn Rate Prediction
#Read the dataset:
#----Importing the dataset----
data_set = read.csv('F:/WORK/rWork/rProjects/Analytics_Edge/Analytics_Edge_R/data/HR_Data.csv')
View(data_set)
#----Data Cleaning----
## Checking if there are any missing values in data and checking overall summa... | /HR_Attrition_Prediction_Project.R | no_license | kcirscross/Analytics_Edge_R | R | false | false | 4,415 | r | #HR_Attrition_Prediction OR Churn Rate Prediction
#Read the dataset:
#----Importing the dataset----
data_set = read.csv('F:/WORK/rWork/rProjects/Analytics_Edge/Analytics_Edge_R/data/HR_Data.csv')
View(data_set)
#----Data Cleaning----
## Checking if there are any missing values in data and checking overall summa... |
GeomSmooth <- proto(Geom, {
draw <- function(., data, scales, coordinates, ...) {
ribbon <- transform(data, colour = NA)
path <- transform(data, alpha = 1)
gList(
tryNULL(GeomRibbon$draw(ribbon, scales, coordinates)),
GeomLine$draw(path, scales, coordinates)
)
}
objname <- "smoot... | /R/geom-smooth.r | no_license | strongh/ggplot2 | R | false | false | 2,212 | r | GeomSmooth <- proto(Geom, {
draw <- function(., data, scales, coordinates, ...) {
ribbon <- transform(data, colour = NA)
path <- transform(data, alpha = 1)
gList(
tryNULL(GeomRibbon$draw(ribbon, scales, coordinates)),
GeomLine$draw(path, scales, coordinates)
)
}
objname <- "smoot... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_timeseries}
\alias{plot_timeseries}
\title{Plot Time Series}
\usage{
plot_timeseries(data, y, x = "Year", ylab = y, xlab = x, from = 2008,
to = 2013, color = "black")
}
\arguments{
\item{data}{The first data to plot.}
\it... | /man/plot_timeseries.Rd | no_license | poissonconsulting/klexr | R | false | true | 699 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_timeseries}
\alias{plot_timeseries}
\title{Plot Time Series}
\usage{
plot_timeseries(data, y, x = "Year", ylab = y, xlab = x, from = 2008,
to = 2013, color = "black")
}
\arguments{
\item{data}{The first data to plot.}
\it... |
TOM <- function(data, TOMType="signed", TOMDenom = "mean", squared = FALSE, TOMPCA = FALSE, rotate="varimax", mineigen=c(0, .7, 1), verbose = FALSE)
{
if(!TOMPCA)
{
out <- TOMnopca(adjMat=cor(data, use = "pairwise.complete.obs"), TOMType=TOMType, TOMDenom = TOMDenom, squared = squared, paironly = FALSE)
} els... | /R/4.b.TOM.r | no_license | GiulioCostantini/TOMproject | R | false | false | 6,927 | r | TOM <- function(data, TOMType="signed", TOMDenom = "mean", squared = FALSE, TOMPCA = FALSE, rotate="varimax", mineigen=c(0, .7, 1), verbose = FALSE)
{
if(!TOMPCA)
{
out <- TOMnopca(adjMat=cor(data, use = "pairwise.complete.obs"), TOMType=TOMType, TOMDenom = TOMDenom, squared = squared, paironly = FALSE)
} els... |
# This script takes data on power consumption "household_power_consumption.txt" from the local directory, formats the date and time fields and then produces a four-pane chart in a png file.
# Read data that match required dates
data <- read.csv("household_power_consumption.txt",
skip=66637,
... | /plot4.R | no_license | geraldyeoxj/ExData_Plotting1 | R | false | false | 1,669 | r | # This script takes data on power consumption "household_power_consumption.txt" from the local directory, formats the date and time fields and then produces a four-pane chart in a png file.
# Read data that match required dates
data <- read.csv("household_power_consumption.txt",
skip=66637,
... |
if(!file.exists("Assignment1_preproc.R"))
{
stop("The data input and processing code, Assignment1_preproc.R is missing. Make sure it's in working directory")
}
source('Assignment1_preproc.R')
if(!file.exists("fcn_plot3.R"))
{
stop("The src needed for plot 3 is missing. Make sure fcn_plot3.R is in wo... | /plot4.R | no_license | studiocardo/ExData_Plotting1 | R | false | false | 1,017 | r | if(!file.exists("Assignment1_preproc.R"))
{
stop("The data input and processing code, Assignment1_preproc.R is missing. Make sure it's in working directory")
}
source('Assignment1_preproc.R')
if(!file.exists("fcn_plot3.R"))
{
stop("The src needed for plot 3 is missing. Make sure fcn_plot3.R is in wo... |
###########################
# Build CART and ENET models ignoring any classes of size <6
# then score for Macro and Traditionally weighted MSE and MAE,
# as well as MSE and MAE within label class.
#
# This is compared to the Null estimate where the Null predictor
# is estimated from the Training split.
################... | /Modeling_Solly/CIS-PD_Build_Models_v2.R | no_license | Sage-Bionetworks/beat-pd | R | false | false | 39,756 | r | ###########################
# Build CART and ENET models ignoring any classes of size <6
# then score for Macro and Traditionally weighted MSE and MAE,
# as well as MSE and MAE within label class.
#
# This is compared to the Null estimate where the Null predictor
# is estimated from the Training split.
################... |
#####################################################
# #
# BASELINE (DEFAULT) MODEL PARAMETERS #
# #
#####################################################
inputs<- list()
# MAXIMUM AGE
inputs$max_age<- ... | /R/0_default-parameters.R | no_license | sreynolds2/Fort-Peck-Flows | R | false | false | 3,007 | r |
#####################################################
# #
# BASELINE (DEFAULT) MODEL PARAMETERS #
# #
#####################################################
inputs<- list()
# MAXIMUM AGE
inputs$max_age<- ... |
#' Create a graph object
#' @description Generates a graph object with the
#' option to use node data frames (ndfs) and/or edge
#' data frames (edfs) to populate the initial graph.
#' @param nodes_df an optional data frame containing,
#' at minimum, a column (called \code{nodes}) which
#' contains node IDs for the grap... | /R/create_graph.R | no_license | omarun/DiagrammeR | R | false | false | 12,379 | r | #' Create a graph object
#' @description Generates a graph object with the
#' option to use node data frames (ndfs) and/or edge
#' data frames (edfs) to populate the initial graph.
#' @param nodes_df an optional data frame containing,
#' at minimum, a column (called \code{nodes}) which
#' contains node IDs for the grap... |
# Calcule the daily frequency of occurrence of all faults for all wind
# turbines in the park specified in wt_query$park.
# The result is a matrix where rows are the faults and columns are the frequency
# for each wind turbine.
ranking_by <- function(table_park_dic = "1_cast_park_table_dic", park, date1 = '1990-01-01... | /functions_common/ranking_by.R | permissive | alecuba16/SOM_windturbine | R | false | false | 2,962 | r | # Calcule the daily frequency of occurrence of all faults for all wind
# turbines in the park specified in wt_query$park.
# The result is a matrix where rows are the faults and columns are the frequency
# for each wind turbine.
ranking_by <- function(table_park_dic = "1_cast_park_table_dic", park, date1 = '1990-01-01... |
complete <- function(directory, id = 1:332){
for(i in id){
ex <- "csv"
x <- read.csv(file.path(directory, paste(sprintf("%03d",i), ex, sep = ".") ))
good <- complete.cases(x)
DF <- x[good,]
le <- nrow(DF)
df <- data.... | /CompleteCase.r | no_license | minh216/R | R | false | false | 546 | r | complete <- function(directory, id = 1:332){
for(i in id){
ex <- "csv"
x <- read.csv(file.path(directory, paste(sprintf("%03d",i), ex, sep = ".") ))
good <- complete.cases(x)
DF <- x[good,]
le <- nrow(DF)
df <- data.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SaemixRes.R
\docType{methods}
\name{[,SaemixRes-method}
\alias{[,SaemixRes-method}
\title{Get/set methods for SaemixRes object}
\usage{
\S4method{[}{SaemixRes}(x, i, j, drop)
}
\arguments{
\item{x}{object}
\item{i}{element to be replaced}
\... | /FastMCMC - Main/AgradSampler/man/sub-SaemixRes-method.Rd | no_license | BelhalK/AccelerationTrainingAlgorithms | R | false | true | 504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SaemixRes.R
\docType{methods}
\name{[,SaemixRes-method}
\alias{[,SaemixRes-method}
\title{Get/set methods for SaemixRes object}
\usage{
\S4method{[}{SaemixRes}(x, i, j, drop)
}
\arguments{
\item{x}{object}
\item{i}{element to be replaced}
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmpipeline.R
\name{dtables_rg}
\alias{dtables_rg}
\title{Get red and grn signal data tables}
\usage{
dtables_rg(
platform = c("hm450k", "epic"),
version,
ts,
verbose = TRUE,
gsmint = 60,
overwrite = TRUE,
fnstem = "mdat.compilat... | /man/dtables_rg.Rd | no_license | Shicheng-Guo/recountmethylation.pipeline | R | false | true | 1,549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmpipeline.R
\name{dtables_rg}
\alias{dtables_rg}
\title{Get red and grn signal data tables}
\usage{
dtables_rg(
platform = c("hm450k", "epic"),
version,
ts,
verbose = TRUE,
gsmint = 60,
overwrite = TRUE,
fnstem = "mdat.compilat... |
testlist <- list(x1 = c(NaN, NaN, 1.39065814070327e-309, 0, 2.39021688577355e-310, -1.41149075388308e+204, 2.77448121256959e+180, 2.77448001764192e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.77427973105332e+180, 2.77448001762435e+180, 2.77427939869114e+180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.7744792... | /palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968627-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 687 | r | testlist <- list(x1 = c(NaN, NaN, 1.39065814070327e-309, 0, 2.39021688577355e-310, -1.41149075388308e+204, 2.77448121256959e+180, 2.77448001764192e+180, 2.77448001762435e+180, 2.77448001762435e+180, 2.77427973105332e+180, 2.77448001762435e+180, 2.77427939869114e+180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.7744792... |
library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/kidney.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="mae",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/kidney/kidney_072.txt',append=TR... | /Model/EN/ReliefF/kidney/kidney_072.R | no_license | leon1003/QSMART | R | false | false | 353 | r | library(glmnet)
mydata = read.table("./TrainingSet/ReliefF/kidney.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="mae",alpha=0.65,family="gaussian",standardize=FALSE)
sink('./Model/EN/ReliefF/kidney/kidney_072.txt',append=TR... |
## Read in PSV file
.get_psv <- function(model){
if(!file.exists(paste0(model, '.psv'))){
## Sometimes ADMB will shorten the name of the psv file for some
## reason, so need to catch that here.
ff <- list.files()[grep(x=list.files(), pattern='psv')]
if(length(ff)==1){
warning(paste... | /R/helper.R | no_license | rlicandeo/adnuts | R | false | false | 14,842 | r | ## Read in PSV file
.get_psv <- function(model){
if(!file.exists(paste0(model, '.psv'))){
## Sometimes ADMB will shorten the name of the psv file for some
## reason, so need to catch that here.
ff <- list.files()[grep(x=list.files(), pattern='psv')]
if(length(ff)==1){
warning(paste... |
require(parallel)
####### Run the Simulation for Bias_variance plots ######
N.reps = 1000
abc_list<- list(c(1,1,1),c(0,0,0))
N_vals = as.list(c(100,500,1000))
fns_list = list('gd_bin','gd_bin_M','gd_bin_XY','gd_bin_Y','gd_bin_MX')
## list all deired simulation params
sim_list = expand.grid(fns_list,N_vals,abc_list,... | /Bias_variance_sim.R | no_license | KDiazOrdaz/PL_mediation | R | false | false | 2,155 | r | require(parallel)
####### Run the Simulation for Bias_variance plots ######
N.reps = 1000
abc_list<- list(c(1,1,1),c(0,0,0))
N_vals = as.list(c(100,500,1000))
fns_list = list('gd_bin','gd_bin_M','gd_bin_XY','gd_bin_Y','gd_bin_MX')
## list all deired simulation params
sim_list = expand.grid(fns_list,N_vals,abc_list,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ArcSliceFunctions.R
\name{angle3pnts}
\alias{angle3pnts}
\title{The angle between two line segments}
\usage{
angle3pnts(a, b, c, radian = TRUE)
}
\arguments{
\item{a, b, c}{Three 2D points which represent the intersecting line segments \eqn{[... | /man/angle3pnts.Rd | no_license | elvanceyhan/pcds | R | false | true | 2,109 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ArcSliceFunctions.R
\name{angle3pnts}
\alias{angle3pnts}
\title{The angle between two line segments}
\usage{
angle3pnts(a, b, c, radian = TRUE)
}
\arguments{
\item{a, b, c}{Three 2D points which represent the intersecting line segments \eqn{[... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "electricity")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearner... | /models/openml_electricity/classification_class/08fb4eff4a3420afff69f5273c22987e/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 720 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "electricity")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearner... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/algorithms.R
\name{get_mcmc}
\alias{get_mcmc}
\title{Markov chain Monte Carlo (Gibbs) method to sample from the conditional distributions of gamma and tau}
\usage{
get_mcmc(s, dpc_grid, y, nburn = 10, nsample = 10000, priors = NULL,
printEv... | /man/get_mcmc.Rd | no_license | rtlemos/scallops | R | false | true | 1,270 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/algorithms.R
\name{get_mcmc}
\alias{get_mcmc}
\title{Markov chain Monte Carlo (Gibbs) method to sample from the conditional distributions of gamma and tau}
\usage{
get_mcmc(s, dpc_grid, y, nburn = 10, nsample = 10000, priors = NULL,
printEv... |
############################################################################
# ---
# title: "MovieLens"
# author: "Herdiantri Sufriyana"
# date: "9/5/2020"
# output:
# html_document:
# toc: true
# theme: united
# ---
############################################################################
... | /movielens.R | no_license | herdiantrisufriyana/ds-harvardx-cp | R | false | false | 130,093 | r | ############################################################################
# ---
# title: "MovieLens"
# author: "Herdiantri Sufriyana"
# date: "9/5/2020"
# output:
# html_document:
# toc: true
# theme: united
# ---
############################################################################
... |
=begin
=TabNavigateNextアクション
一つ次(右)のタブを選択します。
==引数
なし
==有効なウィンドウ・ビュー
*メインウィンドウ
=end
| /docs/TabNavigateNextAction.rd | permissive | snakamura/q3 | R | false | false | 194 | rd | =begin
=TabNavigateNextアクション
一つ次(右)のタブを選択します。
==引数
なし
==有効なウィンドウ・ビュー
*メインウィンドウ
=end
|
library(tidyverse)
mi_counties <- map_data("county", "michigan") %>%
select(lon = long, lat, group, id = subregion)
mi_counties
mi_census <- midwest %>%
tbl_df() %>%
filter(state =="MI") %>%
mutate(county = tolower(county)) %>%
select(county, area, poptotal, percwhite, percblack)
head(mi_coun... | /AssignmentA2T3/A2T3.R | no_license | EvanReinaldo/BUSA_8090 | R | false | false | 2,162 | r | library(tidyverse)
mi_counties <- map_data("county", "michigan") %>%
select(lon = long, lat, group, id = subregion)
mi_counties
mi_census <- midwest %>%
tbl_df() %>%
filter(state =="MI") %>%
mutate(county = tolower(county)) %>%
select(county, area, poptotal, percwhite, percblack)
head(mi_coun... |
\name{test_enrichment_custom_sets}
\alias{test_enrichment_custom_sets}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
test_enrichment_custom_sets
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
test_enrichment_custom_sets(x)
}
%- maybe also 'usage... | /man/test_enrichment_custom_sets.Rd | no_license | Stefanos-Apostle/SeSAMeStr | R | false | false | 1,464 | rd | \name{test_enrichment_custom_sets}
\alias{test_enrichment_custom_sets}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
test_enrichment_custom_sets
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
test_enrichment_custom_sets(x)
}
%- maybe also 'usage... |
#' Code to sample multivariate norm
#' \code{mvs_perm} sample from a multivariate normal distribution
#'
#' @param m a vector - mean values
#' @param sigma a matrix - a positive definite covariance matrix
#' @param n a scalar - number of samples to generate (default 2)
#' @return a matrix of sampled values
mvs_per... | /R/simulate.R | permissive | letaylor/cupcake | R | false | false | 9,123 | r |
#' Code to sample multivariate norm
#' \code{mvs_perm} sample from a multivariate normal distribution
#'
#' @param m a vector - mean values
#' @param sigma a matrix - a positive definite covariance matrix
#' @param n a scalar - number of samples to generate (default 2)
#' @return a matrix of sampled values
mvs_per... |
# orphan.products
# Daniel Camilo Osorio
# Bioinformatics and Systems Biology Lab | Universidad Nacional de Colombia
# Experimental and Computational Biochemistry | Pontificia Universidad Javeriana
orphan.products <- function(reactionList, byCompartment=FALSE){
# Extract all reactants
reactant <- unique(unlis... | /minval/R/orphan.products.R | no_license | ingted/R-Examples | R | false | false | 878 | r | # orphan.products
# Daniel Camilo Osorio
# Bioinformatics and Systems Biology Lab | Universidad Nacional de Colombia
# Experimental and Computational Biochemistry | Pontificia Universidad Javeriana
orphan.products <- function(reactionList, byCompartment=FALSE){
# Extract all reactants
reactant <- unique(unlis... |
tG<-function(t) textGrob(t,x=0.0,y=0,hjust=0,vjust=1,gp=gpar(fontsize=10)) | /R/tG.R | no_license | danilinares/2014LinaresGorea | R | false | false | 74 | r | tG<-function(t) textGrob(t,x=0.0,y=0,hjust=0,vjust=1,gp=gpar(fontsize=10)) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sec_functions.R
\name{sec_foia_requests}
\alias{sec_foia_requests}
\title{SEC FOIA requests}
\usage{
sec_foia_requests(
search_years = 2006:2016,
nest_data = TRUE,
return_message = TRUE
)
}
\arguments{
\item{search_years}{vector of year... | /man/sec_foia_requests.Rd | permissive | add1ct3d/fundManageR | R | false | true | 1,824 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sec_functions.R
\name{sec_foia_requests}
\alias{sec_foia_requests}
\title{SEC FOIA requests}
\usage{
sec_foia_requests(
search_years = 2006:2016,
nest_data = TRUE,
return_message = TRUE
)
}
\arguments{
\item{search_years}{vector of year... |
#Animate coronavirus case growth by continual plotting
library(tidyverse)
library(gghighlight)
library(scales)
library(here)
library(ggsci)
library(gganimate)
library(gifski)
source(here("scripts", "getCases.R"))
COVID <- as_tibble(COVID)
#Generate cumulative case and death sum datset
ID <- unique(COVID$GeoId)
caseSu... | /scripts/animateCoronavirus.R | no_license | cortbreuer/COVID-19 | R | false | false | 1,055 | r | #Animate coronavirus case growth by continual plotting
library(tidyverse)
library(gghighlight)
library(scales)
library(here)
library(ggsci)
library(gganimate)
library(gifski)
source(here("scripts", "getCases.R"))
COVID <- as_tibble(COVID)
#Generate cumulative case and death sum datset
ID <- unique(COVID$GeoId)
caseSu... |
# Import the dplyr library
library(dplyr)
# Read in the X test dataset
x.test <- read.csv("UCI HAR Dataset/test/X_test.txt", sep="",
header=FALSE)
# Read in the test labels
y.test <- read.csv("UCI HAR Dataset/test/y_test.txt", sep="",
header=FALSE)
# Rest i... | /run_analysis.R | no_license | sahil411/fitbit | R | false | false | 3,208 | r | # Import the dplyr library
library(dplyr)
# Read in the X test dataset
x.test <- read.csv("UCI HAR Dataset/test/X_test.txt", sep="",
header=FALSE)
# Read in the test labels
y.test <- read.csv("UCI HAR Dataset/test/y_test.txt", sep="",
header=FALSE)
# Rest i... |
setwd("~/R/graph project")
library(utils)
library(dplyr)
tab <-
read.table("household_power_consumption.txt",header=TRUE,sep=";",
na.strings="?") %>%
filter(as.character(Date) %in% c("1/2/2007","2/2/2007")) %>%
mutate(Date=as.character(Date),Time=as.character(Time)) %>%
mutate(datetime=paste(Dat... | /plot4.R | no_license | davidlbader18/Exploratory-Data-Analysis-Week-1-Project | R | false | false | 1,193 | r | setwd("~/R/graph project")
library(utils)
library(dplyr)
tab <-
read.table("household_power_consumption.txt",header=TRUE,sep=";",
na.strings="?") %>%
filter(as.character(Date) %in% c("1/2/2007","2/2/2007")) %>%
mutate(Date=as.character(Date),Time=as.character(Time)) %>%
mutate(datetime=paste(Dat... |
#PLOT 3
data <- read.table("household_power_consumption.txt", skip = 1, sep = ";")
colnames(data) <- c("date", "time", "global_active_power","global_reactive_power", "voltage", "global_intensity", "sub_metering_1", "sub_metering_2", "sub_metering_3")
sub_data <- subset(data, data$date == "1/2/2007" | data$date == "2... | /plot3.R | no_license | siddheshpote/ExData_Plotting1 | R | false | false | 1,146 | r | #PLOT 3
data <- read.table("household_power_consumption.txt", skip = 1, sep = ";")
colnames(data) <- c("date", "time", "global_active_power","global_reactive_power", "voltage", "global_intensity", "sub_metering_1", "sub_metering_2", "sub_metering_3")
sub_data <- subset(data, data$date == "1/2/2007" | data$date == "2... |
\name{FastPathPolicy}
\alias{FastPathPolicy}
\title{Fast prescribed policy}
\description{Policy precribed to provided sample paths using nearest neighbours}
\usage{
FastPathPolicy(path, grid, control, Reward, expected)
}
\arguments{
\item{path}{3-D array representing sample paths.
Entry [i,,j] represents... | /man/FastPathPolicy.Rd | no_license | cran/rcss | R | false | false | 3,834 | rd | \name{FastPathPolicy}
\alias{FastPathPolicy}
\title{Fast prescribed policy}
\description{Policy precribed to provided sample paths using nearest neighbours}
\usage{
FastPathPolicy(path, grid, control, Reward, expected)
}
\arguments{
\item{path}{3-D array representing sample paths.
Entry [i,,j] represents... |
gf_hex(sigma ~ mu, data = PosteriorSample,
bins = 50) %>%
gf_density2d(color = "white", alpha = 0.5) %>%
gf_refine(scale_fill_gradient2(midpoint = 400, low = "gray80", mid = "skyblue", high = "navy")) %>%
gf_theme(legend.position = "top")
| /inst/snippet/normal-grid04a.R | no_license | rpruim/fastR2 | R | false | false | 255 | r | gf_hex(sigma ~ mu, data = PosteriorSample,
bins = 50) %>%
gf_density2d(color = "white", alpha = 0.5) %>%
gf_refine(scale_fill_gradient2(midpoint = 400, low = "gray80", mid = "skyblue", high = "navy")) %>%
gf_theme(legend.position = "top")
|
library(testthat)
test_metadata = "
cases:
- hidden: false
name: p3a
points: 0.5
- hidden: false
name: p3b
points: 0.5
name: p3
"
test_that("p3a", {
expect_true(all.equal(p3[1], 0.7128528, tol = 0.001))
print("Checking: value of lowerbound to 3 decimal places")
})
test_that("p3b", {
expect_true(all.eq... | /lab/lab10/tests/p3.R | no_license | ph142-ucb/ph142-sp21 | R | false | false | 419 | r | library(testthat)
test_metadata = "
cases:
- hidden: false
name: p3a
points: 0.5
- hidden: false
name: p3b
points: 0.5
name: p3
"
test_that("p3a", {
expect_true(all.equal(p3[1], 0.7128528, tol = 0.001))
print("Checking: value of lowerbound to 3 decimal places")
})
test_that("p3b", {
expect_true(all.eq... |
library(usefulr)
context("Probit regression with analyses function")
test_that("Probit regression with marginal effects works", {
expect_warning(object = usefulr::analyses(.DV = "carb",
.treat = "am",
.model = "oprobit",
... | /tests/testthat/test_probit_work.R | no_license | gerasy1987/usefulr | R | false | false | 4,310 | r | library(usefulr)
context("Probit regression with analyses function")
test_that("Probit regression with marginal effects works", {
expect_warning(object = usefulr::analyses(.DV = "carb",
.treat = "am",
.model = "oprobit",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ranks.R
\name{posterior_ranks}
\alias{posterior_ranks}
\alias{posterior_rank_probs}
\title{Treatment rankings and rank probabilities}
\usage{
posterior_ranks(
x,
newdata = NULL,
study = NULL,
lower_better = TRUE,
probs =... | /fuzzedpackages/multinma/man/posterior_ranks.Rd | no_license | akhikolla/testpackages | R | false | true | 4,786 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ranks.R
\name{posterior_ranks}
\alias{posterior_ranks}
\alias{posterior_rank_probs}
\title{Treatment rankings and rank probabilities}
\usage{
posterior_ranks(
x,
newdata = NULL,
study = NULL,
lower_better = TRUE,
probs =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vision_augment.R
\name{OldRandomCrop}
\alias{OldRandomCrop}
\title{OldRandomCrop}
\usage{
OldRandomCrop(size, pad_mode = "zeros", ...)
}
\arguments{
\item{size}{size}
\item{pad_mode}{pad_mode}
}
\description{
Randomly crop an image to `size`... | /man/OldRandomCrop.Rd | permissive | ysnghr/fastai | R | false | true | 336 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vision_augment.R
\name{OldRandomCrop}
\alias{OldRandomCrop}
\title{OldRandomCrop}
\usage{
OldRandomCrop(size, pad_mode = "zeros", ...)
}
\arguments{
\item{size}{size}
\item{pad_mode}{pad_mode}
}
\description{
Randomly crop an image to `size`... |
# установка пакета
install.packages("dplyr")
# установка пакета
install.packages("data.table")
# ответ на запрос установщика для продолжения оперции
yes
# установка пакета
install.packages("tidyr")
#проверяем подключение устанленного пакета
require(tidyr)
# 2 Добавить датафрейм. Добавить столбец с новым параметром маш... | /HW-2/HomeWork2.R | no_license | alexeymanshin/RDA-6HW | R | false | false | 1,733 | r | # установка пакета
install.packages("dplyr")
# установка пакета
install.packages("data.table")
# ответ на запрос установщика для продолжения оперции
yes
# установка пакета
install.packages("tidyr")
#проверяем подключение устанленного пакета
require(tidyr)
# 2 Добавить датафрейм. Добавить столбец с новым параметром маш... |
library(cowplot)
library(dplyr)
library(readr)
library(ggpubr)
library(lme4)
library(dae);library(nlme);library(effects);
library(psych);library(interplot);library(plyr);
library(devtools);library(ez);library(Rmisc);
library(wesanderson)
library(lme4);library(lsmeans);library(plotly);
library(ggplot2);library(ggpubr);l... | /rstudio/eyes_4paper_behavnalysis.R | no_license | elshafeh/own | R | false | false | 3,796 | r | library(cowplot)
library(dplyr)
library(readr)
library(ggpubr)
library(lme4)
library(dae);library(nlme);library(effects);
library(psych);library(interplot);library(plyr);
library(devtools);library(ez);library(Rmisc);
library(wesanderson)
library(lme4);library(lsmeans);library(plotly);
library(ggplot2);library(ggpubr);l... |
#' Add an arc layer to the deckgl widget
#'
#' The \code{ArcLayer} renders raised arcs joining pairs of source and target points,
#' specified as latitude/longitude coordinates.
#'
#' @inheritParams add_layer
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/arc-layer}
#' @example inst/exampl... | /R/layers_arc-layer.R | permissive | crazycapivara/deckgl | R | false | false | 526 | r | #' Add an arc layer to the deckgl widget
#'
#' The \code{ArcLayer} renders raised arcs joining pairs of source and target points,
#' specified as latitude/longitude coordinates.
#'
#' @inheritParams add_layer
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/arc-layer}
#' @example inst/exampl... |
%% File Name: gdina.Rd
%% File Version: 3.452
\name{gdina}
\alias{gdina}
\alias{summary.gdina}
\alias{plot.gdina}
\alias{print.gdina}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Estimating the Generalized DINA (GDINA) Model
}
\description{
This function implements the generalized DINA m... | /man/gdina.Rd | no_license | lover2668/CDM | R | false | false | 39,715 | rd | %% File Name: gdina.Rd
%% File Version: 3.452
\name{gdina}
\alias{gdina}
\alias{summary.gdina}
\alias{plot.gdina}
\alias{print.gdina}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Estimating the Generalized DINA (GDINA) Model
}
\description{
This function implements the generalized DINA m... |
## SIR model without democracy
## It is the simple SIR epidemic without births or deaths
## Parameters:
# beta: Product of contact rates and transmission probability;
# gamma: Recovery Rate;
# S: Proportion of the population that are susceptible;
# I: Proportion of the population that are infectious;
# R: Proportion o... | /SummerInern/Week1 6:13:2016 - 6:17:2016/Modeling infectious disease coding/simple epidemic model.R | no_license | yinzhuoding/Internship | R | false | false | 1,165 | r | ## SIR model without democracy
## It is the simple SIR epidemic without births or deaths
## Parameters:
# beta: Product of contact rates and transmission probability;
# gamma: Recovery Rate;
# S: Proportion of the population that are susceptible;
# I: Proportion of the population that are infectious;
# R: Proportion o... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_trapezoid.R
\name{plot_trapezoid}
\alias{plot_trapezoid}
\title{Plot the dimensions of the photograph}
\usage{
plot_trapezoid(altitude, angle_of_camera = 25, banking_angle)
}
\arguments{
\item{altitude}{= Drone altitude}
\item{angle_of_... | /man/plot_trapezoid.Rd | permissive | DrMattG/Kulan | R | false | true | 567 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_trapezoid.R
\name{plot_trapezoid}
\alias{plot_trapezoid}
\title{Plot the dimensions of the photograph}
\usage{
plot_trapezoid(altitude, angle_of_camera = 25, banking_angle)
}
\arguments{
\item{altitude}{= Drone altitude}
\item{angle_of_... |
## (sorry for my english...) Those two functions take the elements of a square matrix as a vector of r*c integer (r = c):
## the first, makeCacheMatrix(), create a "special" matrix, the second one inverts the matrix a stores it in memory.
## This function creates a matrix by taking vector of r*c numeric (the m... | /cachematrix.R | no_license | gianpaoloromeo/ProgrammingAssignment2 | R | false | false | 1,441 | r | ## (sorry for my english...) Those two functions take the elements of a square matrix as a vector of r*c integer (r = c):
## the first, makeCacheMatrix(), create a "special" matrix, the second one inverts the matrix a stores it in memory.
## This function creates a matrix by taking vector of r*c numeric (the m... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ch07-glmnet.R
\name{casl_lenet_check_kkt}
\alias{casl_lenet_check_kkt}
\title{Check current KKT conditions for regression vector.}
\usage{
casl_lenet_check_kkt(X, y, b, lambda)
}
\arguments{
\item{X}{A numeric data matrix.}
\item{y}{Response... | /man/casl_lenet_check_kkt.Rd | no_license | statsmaths/casl | R | false | true | 835 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ch07-glmnet.R
\name{casl_lenet_check_kkt}
\alias{casl_lenet_check_kkt}
\title{Check current KKT conditions for regression vector.}
\usage{
casl_lenet_check_kkt(X, y, b, lambda)
}
\arguments{
\item{X}{A numeric data matrix.}
\item{y}{Response... |
# Function that builds 5th plot. Assumes that package 'ggplot2' is loaded into workspace
# Parameters :
# dir.working [optional] - folder that will contain generated image
# output.file.name [optional] - name of the output file
# image.width [optional] - width of the image ... | /plot5.R | no_license | Eugene2015/datascience.4.2 | R | false | false | 3,388 | r | # Function that builds 5th plot. Assumes that package 'ggplot2' is loaded into workspace
# Parameters :
# dir.working [optional] - folder that will contain generated image
# output.file.name [optional] - name of the output file
# image.width [optional] - width of the image ... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
## Write a short comment describing this function
cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x... | /cachematrix.R | no_license | amangupta9may/ProgrammingAssignment2 | R | false | false | 929 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
}
## Write a short comment describing this function
cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_bioclimatic.R
\name{parse_bioclimatic}
\alias{parse_bioclimatic}
\title{Parse directory structure of bioclimatic rasters}
\usage{
parse_bioclimatic(path = "inst/ext_data/bioclimatic")
}
\arguments{
\item{path}{Path to directory with sub... | /man/parse_bioclimatic.Rd | permissive | Vizzuality/species-distribution-modelling | R | false | true | 651 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_bioclimatic.R
\name{parse_bioclimatic}
\alias{parse_bioclimatic}
\title{Parse directory structure of bioclimatic rasters}
\usage{
parse_bioclimatic(path = "inst/ext_data/bioclimatic")
}
\arguments{
\item{path}{Path to directory with sub... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ML_RangerModel.R
\name{RangerModel}
\alias{RangerModel}
\title{Fast Random Forest Model}
\usage{
RangerModel(
num.trees = 500,
mtry = NULL,
importance = c("impurity", "impurity_corrected", "permutation"),
min.node.size = NULL,
repla... | /man/RangerModel.Rd | no_license | Drbuxie/MachineShop | R | false | true | 2,580 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ML_RangerModel.R
\name{RangerModel}
\alias{RangerModel}
\title{Fast Random Forest Model}
\usage{
RangerModel(
num.trees = 500,
mtry = NULL,
importance = c("impurity", "impurity_corrected", "permutation"),
min.node.size = NULL,
repla... |
#' Unbiasing Constant Data
#'
#' This is unbiasing constant data used in quality control in process capability analysis.
#' It includes c4(up to 100), c5, d2(up to 75), d3, d4 (rest up to 50)
#'
#' @docType data
#'
#' @usage data(uc)
#'
#' @keywords datasets
| /PCA/PCA/R/uc.R | no_license | kimkw0823/example | R | false | false | 269 | r | #' Unbiasing Constant Data
#'
#' This is unbiasing constant data used in quality control in process capability analysis.
#' It includes c4(up to 100), c5, d2(up to 75), d3, d4 (rest up to 50)
#'
#' @docType data
#'
#' @usage data(uc)
#'
#' @keywords datasets
|
/scripts_old/scripts/spec_integrado01.R | no_license | EncisoAlvaJC/TESIS | R | false | false | 2,172 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preProceso.R
\name{preProcesarDatos}
\alias{preProcesarDatos}
\title{Title}
\usage{
preProcesarDatos(datos, config)
}
\arguments{
\item{datos}{}
\item{config}{}
}
\value{
}
\description{
Title
}
| /Gapminder_R/man/preProcesarDatos.Rd | no_license | Data-analytics-es/Projects | R | false | true | 275 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preProceso.R
\name{preProcesarDatos}
\alias{preProcesarDatos}
\title{Title}
\usage{
preProcesarDatos(datos, config)
}
\arguments{
\item{datos}{}
\item{config}{}
}
\value{
}
\description{
Title
}
|
#########################
### Customizable Sets ###
#########################
### generator
cset <-
function(gset,
orderfun = sets_options("orderfun"),
matchfun = sets_options("matchfun"))
{
gset <- as.gset(gset)
## recreate gset according to user-specified match-fun
if (!is.null(matchf... | /sets/R/cset.R | no_license | ingted/R-Examples | R | false | false | 7,254 | r | #########################
### Customizable Sets ###
#########################
### generator
cset <-
function(gset,
orderfun = sets_options("orderfun"),
matchfun = sets_options("matchfun"))
{
gset <- as.gset(gset)
## recreate gset according to user-specified match-fun
if (!is.null(matchf... |
#######################
# env_pairs_submatrix #
#######################
# function to create the sub-matrix elements used to construct the
# unstructured matrix
env_pairs_submatrix <- function(nEnv){
env_id <- paste0('E', 1:nEnv)
env_gr <- expand.grid(env_id, env_id)
env_pairs <- paste0(env_gr[, 2], env_gr[,... | /R/env_pairs_submatrix.R | no_license | vincentgarin/mppGxE | R | false | false | 714 | r | #######################
# env_pairs_submatrix #
#######################
# function to create the sub-matrix elements used to construct the
# unstructured matrix
env_pairs_submatrix <- function(nEnv){
env_id <- paste0('E', 1:nEnv)
env_gr <- expand.grid(env_id, env_id)
env_pairs <- paste0(env_gr[, 2], env_gr[,... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/setMethods.R
\docType{methods}
\name{InputData}
\alias{InputData}
\alias{InputData}
\alias{InputData}
\alias{inputData<-}
\title{Set and retrieve input data}
\usage{
InputData(object)
\S4method{InputData}{MOFAmodel}(object)
... | /MOFAtools/man/InputData.Rd | no_license | jan-glx/MOFA | R | false | true | 507 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/setMethods.R
\docType{methods}
\name{InputData}
\alias{InputData}
\alias{InputData}
\alias{InputData}
\alias{inputData<-}
\title{Set and retrieve input data}
\usage{
InputData(object)
\S4method{InputData}{MOFAmodel}(object)
... |
# Environment -------------------------------------------------------------
rm(list=ls())
pacman::p_load(stats, devtools, purrr, httr, readxl, openxlsx,
data.table, reshape2, dplyr, WorksheetFunctions,
writexl, tidyr, feather, smutilities,
ggplot2, scales, ggthemes)
set... | /R/Line Chart.R | no_license | johnfrye/RCharts | R | false | false | 2,526 | r |
# Environment -------------------------------------------------------------
rm(list=ls())
pacman::p_load(stats, devtools, purrr, httr, readxl, openxlsx,
data.table, reshape2, dplyr, WorksheetFunctions,
writexl, tidyr, feather, smutilities,
ggplot2, scales, ggthemes)
set... |
source('dens_obj.R')
source('constraints.R')
######### Functions:
# solveLP_fix: provide the min and max in density estimation problem
# solveLP_min: provide the min in density estimation problem
# solveLP_max: provide the max in density estimation problem
# solveLP_max_min: trying to solve LP_max problem, bu... | /LP_fix_inflec.R | no_license | YinpuLi/LP_eCDF | R | false | false | 10,261 | r | source('dens_obj.R')
source('constraints.R')
######### Functions:
# solveLP_fix: provide the min and max in density estimation problem
# solveLP_min: provide the min in density estimation problem
# solveLP_max: provide the max in density estimation problem
# solveLP_max_min: trying to solve LP_max problem, bu... |
#Test
#test tore | /TestAvGit2Rscript.R | no_license | torebotnen/TestAvGit2 | R | false | false | 17 | r | #Test
#test tore |
library(gbm)
library(MASS)
attach(Boston)
set.seed(1)
train = sample(1:nrow(Boston),nrow(Boston)/2)
y.test = Boston[-train,'medv']
# basic boosting
# data: as before
# distribution = 'gaussian' is least squares
# n.trees: B in lectures
# interaction.depth: d in lectures
# shrinkage: lambda in lectures
... | /Lectures/Lectuore 09/STA314-Lecture09-BoostingBoston.R | no_license | HJNVR/UTM_STA_314 | R | false | false | 1,341 | r | library(gbm)
library(MASS)
attach(Boston)
set.seed(1)
train = sample(1:nrow(Boston),nrow(Boston)/2)
y.test = Boston[-train,'medv']
# basic boosting
# data: as before
# distribution = 'gaussian' is least squares
# n.trees: B in lectures
# interaction.depth: d in lectures
# shrinkage: lambda in lectures
... |
naveta<-c(17, 16, 20, 24, 22, 15, 21, 15, 17, 22)
sum(naveta)
sum(naveta>20)
calc <- sum(naveta<17)/length(naveta)
procent <- calc * 100
print(procent) | /lab_01/ex5c.r | no_license | mihaibargau/Rprojects | R | false | false | 154 | r | naveta<-c(17, 16, 20, 24, 22, 15, 21, 15, 17, 22)
sum(naveta)
sum(naveta>20)
calc <- sum(naveta<17)/length(naveta)
procent <- calc * 100
print(procent) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kendallW.R
\name{kendallW.matrix}
\alias{kendallW.matrix}
\title{Compute Kendall's W for a matrix}
\usage{
\method{kendallW}{matrix}(
object,
row.factor,
summary = c("none", "mean", "median", "max.mean.sig", "max.var.sig"),
na.rm = TR... | /man/kendallW.matrix.Rd | no_license | bedapub/ribiosGSEA | R | false | true | 859 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kendallW.R
\name{kendallW.matrix}
\alias{kendallW.matrix}
\title{Compute Kendall's W for a matrix}
\usage{
\method{kendallW}{matrix}(
object,
row.factor,
summary = c("none", "mean", "median", "max.mean.sig", "max.var.sig"),
na.rm = TR... |
#setwd("/home/gbakie/neu/stat-sp16/project/Online_News_Popularity")
setwd("/Users/Darshan/Documents/Online_News_Popularity")
library(caret)
source("DataPreprocess.R")
set.seed(464)
setwd("/Users/Darshan/Documents/CS 7280 Stats/Project/Data/")
#setwd("/home/gbakie/neu/stat-sp16/project/data")
news <- read.csv("Train... | /ModelEvaluation.R | no_license | darshandpatel/Online_News_Popularity | R | false | false | 3,385 | r | #setwd("/home/gbakie/neu/stat-sp16/project/Online_News_Popularity")
setwd("/Users/Darshan/Documents/Online_News_Popularity")
library(caret)
source("DataPreprocess.R")
set.seed(464)
setwd("/Users/Darshan/Documents/CS 7280 Stats/Project/Data/")
#setwd("/home/gbakie/neu/stat-sp16/project/data")
news <- read.csv("Train... |
###-----------missing data in meta-analysis----------###
###Latest edit date: 03/09/2017
###Author: Yajuan Si
#setwd("/Users/Shared/ysi//boxsync//Box Sync/projects/meta-analysis/code/")
########################################################
library(MASS); #library(MCMCpack)
library(xtable);
library(NPBayesImpute)
set... | /analysis/alliance-MAIPD-partial.R | no_license | yajuansi-sophie/HDMrP | R | false | false | 13,185 | r | ###-----------missing data in meta-analysis----------###
###Latest edit date: 03/09/2017
###Author: Yajuan Si
#setwd("/Users/Shared/ysi//boxsync//Box Sync/projects/meta-analysis/code/")
########################################################
library(MASS); #library(MCMCpack)
library(xtable);
library(NPBayesImpute)
set... |
gvcmcatfit <-
function (
x,
y,
weights,
family,
control,
acoefs, # matrix!!
lambda, # skalar!
phis, # vector laenge L
weight, # vector laenge L, weight.const
# elastic in control!!
which.a, # length L
start = NULL,
offset = rep(0, nobs),
...
)
{
# allg. control
# fehlt: checks von family, control, ... | /gvcm.cat/R/optimierung.R | no_license | ingted/R-Examples | R | false | false | 15,442 | r | gvcmcatfit <-
function (
x,
y,
weights,
family,
control,
acoefs, # matrix!!
lambda, # skalar!
phis, # vector laenge L
weight, # vector laenge L, weight.const
# elastic in control!!
which.a, # length L
start = NULL,
offset = rep(0, nobs),
...
)
{
# allg. control
# fehlt: checks von family, control, ... |
# load the RDS file created in `geocoding_script.R`
businesses <- readRDS("business_licenses_geocoded.rds")
# reduce to downtown South Bend, 2008 to 2018, and required columns
reduced <- businesses %>%
filter(Street_Address != "0 OUTSIDE CITY LIMITS",
State == "IN",
City == "SOUTH BEND",
... | /cleaning_business_data_script.R | no_license | sydneykpaul/Data_Visualization_Final_Project | R | false | false | 1,963 | r | # load the RDS file created in `geocoding_script.R`
businesses <- readRDS("business_licenses_geocoded.rds")
# reduce to downtown South Bend, 2008 to 2018, and required columns
reduced <- businesses %>%
filter(Street_Address != "0 OUTSIDE CITY LIMITS",
State == "IN",
City == "SOUTH BEND",
... |
#' Convert Respirometry Data from PreSens and AquaResp Software to the FishResp Format
#'
#' The function is used to convert raw data from 'OxyView' (\href{https://www.presens.de}{PreSens}) and a summary file from 'AquaResp' (\href{https://www.aquaresp.com}{free software}) to 'FishResp' format. This function should be ... | /R/presens.aquaresp.R | no_license | cran/FishResp | R | false | false | 21,461 | r | #' Convert Respirometry Data from PreSens and AquaResp Software to the FishResp Format
#'
#' The function is used to convert raw data from 'OxyView' (\href{https://www.presens.de}{PreSens}) and a summary file from 'AquaResp' (\href{https://www.aquaresp.com}{free software}) to 'FishResp' format. This function should be ... |
library(ggplot2)
#step 1. import the data as a dataframe
met <- as.data.frame(read.csv("MetObjects_5k-sample.csv"))
tate <- as.data.frame(read.csv("TateObjects_5k-sample.csv"))
#step 2. subset the data
met.subset <- subset(met, met$Object.Begin.Date>-2000 & met$Object.Begin.Date<2016)
tate.subset <- subset(tate, tat... | /ML_programm/springboard-master/2. Histograms with R and ggplot2/histograms.R | no_license | jitudv/python_programs | R | false | false | 1,326 | r | library(ggplot2)
#step 1. import the data as a dataframe
met <- as.data.frame(read.csv("MetObjects_5k-sample.csv"))
tate <- as.data.frame(read.csv("TateObjects_5k-sample.csv"))
#step 2. subset the data
met.subset <- subset(met, met$Object.Begin.Date>-2000 & met$Object.Begin.Date<2016)
tate.subset <- subset(tate, tat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmer_summary.R
\name{summary.lmerModLmerTest}
\alias{summary.lmerModLmerTest}
\title{Summary Method for Linear Mixed Models}
\usage{
\method{summary}{lmerModLmerTest}(object, ..., ddf = c("Satterthwaite",
"Kenward-Roger", "lme4"))
}
\argume... | /man/summary.lmerModLmerTest.Rd | no_license | sofpj/lmerTestR | R | false | true | 2,899 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lmer_summary.R
\name{summary.lmerModLmerTest}
\alias{summary.lmerModLmerTest}
\title{Summary Method for Linear Mixed Models}
\usage{
\method{summary}{lmerModLmerTest}(object, ..., ddf = c("Satterthwaite",
"Kenward-Roger", "lme4"))
}
\argume... |
# Functions to facilitate analysis of multistate models
# The stack method is already defined (in the utils package)
# and hence imported in the NAMESPACE file
stack.Lexis <-
function(x, ...)
{
## Function to stack obervations for survival analysis
## Make sure that lex.Cst and lex.Xst are factors with ident... | /R/stack.Lexis.R | no_license | cran/Epi | R | false | false | 2,045 | r | # Functions to facilitate analysis of multistate models
# The stack method is already defined (in the utils package)
# and hence imported in the NAMESPACE file
stack.Lexis <-
function(x, ...)
{
## Function to stack obervations for survival analysis
## Make sure that lex.Cst and lex.Xst are factors with ident... |
\name{ssea.oneway}
\alias{ssea.oneway}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Planning of Sample Sizes with Estimation Approach Single factor ANOVA
%% ~~function to do ... ~~
}
\description{This approach is to specify the major comparisons of interest. Determine the expected widths... | /man/17_ssea.oneway.Rd | no_license | cran/ALSM | R | false | false | 2,317 | rd | \name{ssea.oneway}
\alias{ssea.oneway}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Planning of Sample Sizes with Estimation Approach Single factor ANOVA
%% ~~function to do ... ~~
}
\description{This approach is to specify the major comparisons of interest. Determine the expected widths... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PCRedux.R
\docType{package}
\name{PCRedux-package}
\alias{PCRedux-package}
\alias{PCRedux}
\title{PCRedux - quantitative PCR machine learning helper tool}
\description{
\code{PCRedux} package is a toolbox for the analysis of sigmoid curve (qP... | /man/PCRedux-package.Rd | permissive | anspiess/PCRedux | R | false | true | 1,167 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PCRedux.R
\docType{package}
\name{PCRedux-package}
\alias{PCRedux-package}
\alias{PCRedux}
\title{PCRedux - quantitative PCR machine learning helper tool}
\description{
\code{PCRedux} package is a toolbox for the analysis of sigmoid curve (qP... |
prepare_met_air_data <- function(timestep) {
#### Download the data - takes time to run
myDF <- download_wind_data()
#### Assign ring information
myDF$Ring <- sub("FACE_R", "", myDF$Source)
myDF$Ring <- sub("_T1.*", "", myDF$Ring)
myDF$Ring <- as.numeric(myDF$Ring)
myDF <- myDF[order(... | /modules/met_data/prepare_met_air_data.R | no_license | mingkaijiang/EucFACE_Carbon_Budget | R | false | false | 1,735 | r | prepare_met_air_data <- function(timestep) {
#### Download the data - takes time to run
myDF <- download_wind_data()
#### Assign ring information
myDF$Ring <- sub("FACE_R", "", myDF$Source)
myDF$Ring <- sub("_T1.*", "", myDF$Ring)
myDF$Ring <- as.numeric(myDF$Ring)
myDF <- myDF[order(... |
# working directory where files are stored. NOTE: This is my working directory.
setwd("C:\\Users\\Ivy\\Google Drive\\DATA SCIENCE!!\\MODULE 4\\Week1")
# changing the margin (since I get error)
par(mar=c(5,5,2,2))
## read file
file <- ("household_power_consumption.txt")
## read data using read.table
dat... | /plot1.R | no_license | irexie77/Exploratory-Data-Analysis-Course-Project-Week-1 | R | false | false | 965 | r | # working directory where files are stored. NOTE: This is my working directory.
setwd("C:\\Users\\Ivy\\Google Drive\\DATA SCIENCE!!\\MODULE 4\\Week1")
# changing the margin (since I get error)
par(mar=c(5,5,2,2))
## read file
file <- ("household_power_consumption.txt")
## read data using read.table
dat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mgss_main.R
\name{MGCG_smooth}
\alias{MGCG_smooth}
\title{High-dimensional spline smoothing using a matrix-free multigrid preconditioned CG-method.}
\usage{
MGCG_smooth(
G,
q,
lambda,
X,
y,
w = 0.1,
nu = c(3, 1),
alpha_start =... | /mgss/man/MGCG_smooth.Rd | no_license | akhikolla/updatedatatype-list3 | R | false | true | 2,324 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mgss_main.R
\name{MGCG_smooth}
\alias{MGCG_smooth}
\title{High-dimensional spline smoothing using a matrix-free multigrid preconditioned CG-method.}
\usage{
MGCG_smooth(
G,
q,
lambda,
X,
y,
w = 0.1,
nu = c(3, 1),
alpha_start =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_datras.R
\name{[.DATRASraw}
\alias{[.DATRASraw}
\title{Sample unit subset.}
\usage{
\method{[}{DATRASraw}(x, i)
}
\arguments{
\item{x}{DATRASraw object}
\item{i}{Integer vector}
}
\value{
DATRASraw object
}
\description{
Sample unit sub... | /DATRAS/man/indexSubset.Rd | no_license | alko989/DATRAS | R | false | true | 755 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_datras.R
\name{[.DATRASraw}
\alias{[.DATRASraw}
\title{Sample unit subset.}
\usage{
\method{[}{DATRASraw}(x, i)
}
\arguments{
\item{x}{DATRASraw object}
\item{i}{Integer vector}
}
\value{
DATRASraw object
}
\description{
Sample unit sub... |
\name{xlxmx}
\Rdversion{1.1}
\alias{xlxmx}
\title{
builds an average life table from a set of individuals
}
\description{
Calculates a life table with three columns, x, lx mx from the age specific birth data of a set of individuals. Called by petitr, but may be used as standalone function.
}
\usage{
xlxmx(X, ... | /man/xlxmx.Rd | no_license | cran/petitr | R | false | false | 946 | rd | \name{xlxmx}
\Rdversion{1.1}
\alias{xlxmx}
\title{
builds an average life table from a set of individuals
}
\description{
Calculates a life table with three columns, x, lx mx from the age specific birth data of a set of individuals. Called by petitr, but may be used as standalone function.
}
\usage{
xlxmx(X, ... |
# deploy api script
api_script <- file.path('/plumber/plumber-apis', Sys.getenv('API_SCRIPT'))
port_no <- 8001
stopifnot(file.exists(api_script))
pr <- plumber::plumb(api_script)
pr$run(host='0.0.0.0', port=port_no) #view at localhost:8001 depending on run or deploy
| /inst/plumber/deploy.R | permissive | chapmandu2/gapminderpl | R | false | false | 271 | r | # deploy api script
api_script <- file.path('/plumber/plumber-apis', Sys.getenv('API_SCRIPT'))
port_no <- 8001
stopifnot(file.exists(api_script))
pr <- plumber::plumb(api_script)
pr$run(host='0.0.0.0', port=port_no) #view at localhost:8001 depending on run or deploy
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cli.R
\name{cli_blockquote}
\alias{cli_blockquote}
\title{CLI block quote}
\usage{
cli_blockquote(
quote,
citation = NULL,
id = NULL,
class = NULL,
.envir = parent.frame()
)
}
\arguments{
\item{quote}{Text of the quotation.}
\item{... | /man/cli_blockquote.Rd | permissive | DavisVaughan/cli | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cli.R
\name{cli_blockquote}
\alias{cli_blockquote}
\title{CLI block quote}
\usage{
cli_blockquote(
quote,
citation = NULL,
id = NULL,
class = NULL,
.envir = parent.frame()
)
}
\arguments{
\item{quote}{Text of the quotation.}
\item{... |
################full record
#####################
#########################
load(paste("C:\\Users\\tiffn_000\\Documents\\workspaces\\may_13_activesites",".RData", sep=""))
rm(list = setdiff(ls(), lsf.str()))
thresholds <- function(input){
#remove if package
if(!require(dplyr)){
install.packages("dplyr")
... | /diff_percentiles.R | no_license | tnkocis/stReamflowstats | R | false | false | 17,384 | r |
################full record
#####################
#########################
load(paste("C:\\Users\\tiffn_000\\Documents\\workspaces\\may_13_activesites",".RData", sep=""))
rm(list = setdiff(ls(), lsf.str()))
thresholds <- function(input){
#remove if package
if(!require(dplyr)){
install.packages("dplyr")
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.