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 |
|---|---|---|---|---|---|---|---|---|---|
library(png)
library(grid)
library(ggplot2)
library(grid)
# img <- readPNG("images/map.png")
# g <- rasterGrob(img, interpolate=TRUE)
# movements <- read.csv("move_sum.move.csv")
#movements <- movements[1:10,]
# dim_x <- dim(img)[1]
# dim_y <- dim(img)[2]
# movements$start_y <- dim_y - movements$start_y
# movements$... | /visualization/draw_maps.R | no_license | Sunhick/diplomacy | R | false | false | 2,035 | r | library(png)
library(grid)
library(ggplot2)
library(grid)
# img <- readPNG("images/map.png")
# g <- rasterGrob(img, interpolate=TRUE)
# movements <- read.csv("move_sum.move.csv")
#movements <- movements[1:10,]
# dim_x <- dim(img)[1]
# dim_y <- dim(img)[2]
# movements$start_y <- dim_y - movements$start_y
# movements$... |
#
# Copyright (c) 2008-2010 Revolution Analytics
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | /R/iterators.R | no_license | nmatare/iterators | R | false | false | 8,138 | r | #
# Copyright (c) 2008-2010 Revolution Analytics
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
args <- commandArgs(trailingOnly = TRUE)
allele.dose.file <- args[1]
afr.dose.file <- args[2]
allele.afr.dose.file <- args[3]
pheno.file <- args[4]
r.model.file <- args[5]
min.maf <- args[6]
out.file.prefix <- args[7]
out.file.name <- paste0(out.file.prefix, "_laaa.txt")
#Load the model functions
source(r.model.fil... | /run_laaa.R | no_license | amc-corey-cox/laaa_on_sevenbridges | R | false | false | 4,788 | r | args <- commandArgs(trailingOnly = TRUE)
allele.dose.file <- args[1]
afr.dose.file <- args[2]
allele.afr.dose.file <- args[3]
pheno.file <- args[4]
r.model.file <- args[5]
min.maf <- args[6]
out.file.prefix <- args[7]
out.file.name <- paste0(out.file.prefix, "_laaa.txt")
#Load the model functions
source(r.model.fil... |
#' fit a robust Bayesian variable selection
#'
#' fit a robust Bayesian variable selection model for G×E interactions.
#'
#' @keywords models
#' @param X the matrix of predictors (genetic factors) without intercept. Each row should be an observation vector. X will be centered and a column of 1 will be added to the X ma... | /R/roben.R | no_license | jrhub/roben | R | false | false | 7,622 | r | #' fit a robust Bayesian variable selection
#'
#' fit a robust Bayesian variable selection model for G×E interactions.
#'
#' @keywords models
#' @param X the matrix of predictors (genetic factors) without intercept. Each row should be an observation vector. X will be centered and a column of 1 will be added to the X ma... |
#!/usr/bin/Rscript
require(ggplot2)
require(stringr)
require(tidyverse)
require(lubridate)
READ_DATA = T
SAVE_PDF = T
SEP = "###"
RESEARCH_HOME = Sys.getenv(c("RESEARCH_HOME"))
options(digits.secs = 6)
dataFile = paste0(RESEARCH_HOME, 'Scripts/Python/Tests/Test008.txt')
lines = readLines(dataF... | /Scripts/R/Benchmarks/plotPFLOCK.R | no_license | aocalderon/Research | R | false | false | 3,779 | r | #!/usr/bin/Rscript
require(ggplot2)
require(stringr)
require(tidyverse)
require(lubridate)
READ_DATA = T
SAVE_PDF = T
SEP = "###"
RESEARCH_HOME = Sys.getenv(c("RESEARCH_HOME"))
options(digits.secs = 6)
dataFile = paste0(RESEARCH_HOME, 'Scripts/Python/Tests/Test008.txt')
lines = readLines(dataF... |
## These functions implements invering (solving) matrix with caching
## This function take some matrix as an argument and return
## special "matrix" which can store cached inverse
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() {
x
}
setSol... | /cachematrix.R | no_license | maximpetrov/ProgrammingAssignment2 | R | false | false | 912 | r | ## These functions implements invering (solving) matrix with caching
## This function take some matrix as an argument and return
## special "matrix" which can store cached inverse
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() {
x
}
setSol... |
library(foreign)
x <- read.dta(
| /R/tie_it_together.R | no_license | d8aninja/code | R | false | false | 36 | r | library(foreign)
x <- read.dta(
|
### change workdir to where raw count data is
setwd("C:/Users/Brian/Documents/RNAseq/Autism/SRP007483_Voineagu/RAW/Counts")
count=c()
samples=c()
for (file in list.files()){
sample=strsplit(strsplit(file,"_")[[1]][3],".txt")[[1]]
samples=c(samples,sample)
counts=read.table(file)
genes=counts$V1
co... | /SRP007483_Voineagu/RAW/count2table.R | no_license | skjq/ASD_lncRNAs | R | false | false | 568 | r |
### change workdir to where raw count data is
setwd("C:/Users/Brian/Documents/RNAseq/Autism/SRP007483_Voineagu/RAW/Counts")
count=c()
samples=c()
for (file in list.files()){
sample=strsplit(strsplit(file,"_")[[1]][3],".txt")[[1]]
samples=c(samples,sample)
counts=read.table(file)
genes=counts$V1
co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/varLabelsDS.R
\name{varLabelsDS}
\alias{varLabelsDS}
\title{Retrieve feature names from eSets.}
\usage{
varLabelsDS(x)
}
\arguments{
\item{x}{Object, possibly derived from eSet-class or AnnotatedDataFrame.}
}
\value{
a caracter ve... | /man/varLabelsDS.Rd | permissive | isglobal-brge/dsOmics | R | false | true | 480 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/varLabelsDS.R
\name{varLabelsDS}
\alias{varLabelsDS}
\title{Retrieve feature names from eSets.}
\usage{
varLabelsDS(x)
}
\arguments{
\item{x}{Object, possibly derived from eSet-class or AnnotatedDataFrame.}
}
\value{
a caracter ve... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ac_get_accounts.R
\name{ac_get_accounts}
\alias{ac_get_accounts}
\title{Retrieve all existing account}
\usage{
ac_get_accounts(search = NULL, count_deals = FALSE)
}
\arguments{
\item{search}{Search by name}
\item{count_deals}{Whether to comp... | /man/ac_get_accounts.Rd | no_license | mdancho84/ractivecampaign | R | false | true | 966 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ac_get_accounts.R
\name{ac_get_accounts}
\alias{ac_get_accounts}
\title{Retrieve all existing account}
\usage{
ac_get_accounts(search = NULL, count_deals = FALSE)
}
\arguments{
\item{search}{Search by name}
\item{count_deals}{Whether to comp... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{classifyKNN}
\alias{classifyKNN}
\title{A Classification function}
\usage{
classifyKNN(trainData, clusters, normalized, testData, nearPoints)
}
\arguments{
\item{trainData}{Dataset to be considered for clustering using Kmeans}
... | /shinyClusters/man/classifyKNN.Rd | no_license | TASAHU18/Created_R_package_that_calls_Shiny_App | R | false | true | 876 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runApp.R
\name{classifyKNN}
\alias{classifyKNN}
\title{A Classification function}
\usage{
classifyKNN(trainData, clusters, normalized, testData, nearPoints)
}
\arguments{
\item{trainData}{Dataset to be considered for clustering using Kmeans}
... |
command.arguments <- commandArgs(trailingOnly = TRUE);
output.directory <- command.arguments[1];
code.directory <- command.arguments[2];
####################################################################################################
library(LearnBayes);
library(ggplot2);
library(scales);
#library(sn);
setwd... | /exercises/statistics/bayesian/albert/chap05/examples/section-05-09/code/albert-section-05-09.R | no_license | paradisepilot/statistics | R | false | false | 4,263 | r |
command.arguments <- commandArgs(trailingOnly = TRUE);
output.directory <- command.arguments[1];
code.directory <- command.arguments[2];
####################################################################################################
library(LearnBayes);
library(ggplot2);
library(scales);
#library(sn);
setwd... |
convert_magic <- function(obj,types){
for (i in 1:length(obj)){
temp <- switch(types[i],character = as.character)
obj[,i] <- temp(obj[,i])
}
obj
} | /R/tool_convert_magic.R | no_license | yusriy/EC_urban | R | false | false | 160 | r | convert_magic <- function(obj,types){
for (i in 1:length(obj)){
temp <- switch(types[i],character = as.character)
obj[,i] <- temp(obj[,i])
}
obj
} |
# this function replaced by SSplotRetroRecruits
SSplotRetroDevs <- function(retroSummary, endyrvec, cohorts, ylim = c(-3, 3), uncertainty = FALSE,
labels = c(
"Recruitment deviation relative to recent estimate",
"Recruitment deviat... | /R/SSplotRetroDevs.R | no_license | yukio-takeuchi/r4ss | R | false | false | 7,055 | r | # this function replaced by SSplotRetroRecruits
SSplotRetroDevs <- function(retroSummary, endyrvec, cohorts, ylim = c(-3, 3), uncertainty = FALSE,
labels = c(
"Recruitment deviation relative to recent estimate",
"Recruitment deviat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DatFiles.R
\docType{class}
\name{DatFiles-class}
\alias{DatFiles-class}
\alias{DatFiles}
\title{A class representing one or more .dat files}
\description{
This class is used to read data from one or several .dat files.
Because the .dat files ... | /man/DatFiles-class.Rd | no_license | kevin-allen/relectro | R | false | true | 1,198 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DatFiles.R
\docType{class}
\name{DatFiles-class}
\alias{DatFiles-class}
\alias{DatFiles}
\title{A class representing one or more .dat files}
\description{
This class is used to read data from one or several .dat files.
Because the .dat files ... |
library (caret)
ERR1 = c()
ERR2 = c()
ERR3 = c()
ERR4 = c()
ERR5 = c()
wine = read.csv(url("https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv"),header = TRUE, sep = ";")
wine
summary(wine)
wine$quality = as.factor(wine$quality)
pairs(wine[,-12],col=wine[,12])
dim (wine)
na... | /ML_Wine.R | no_license | StefanMS/WineQuality | R | false | false | 1,950 | r | library (caret)
ERR1 = c()
ERR2 = c()
ERR3 = c()
ERR4 = c()
ERR5 = c()
wine = read.csv(url("https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv"),header = TRUE, sep = ";")
wine
summary(wine)
wine$quality = as.factor(wine$quality)
pairs(wine[,-12],col=wine[,12])
dim (wine)
na... |
### This loops allows to avoid the error when someone write wrong the data
validpinnamultiple <- function(){
cat("###########################################\n")
cat("Choose all individuals you want, separated the numbers by commas without spaces\n")
cat("Individuals allowed: ", min(allindividuals),"-", max... | /Funciones/Functions_R_gape/validpinna_multiple.R | no_license | Sebas92hc/GapeR_tesis | R | false | false | 1,036 | r | ### This loops allows to avoid the error when someone write wrong the data
validpinnamultiple <- function(){
cat("###########################################\n")
cat("Choose all individuals you want, separated the numbers by commas without spaces\n")
cat("Individuals allowed: ", min(allindividuals),"-", max... |
## function performs a two-way ANOVA on factors condition and time
## INPUT:
## metabolite: a string
## df: a dataframe containing metabolite levels, labeled by
## columns "condition" and "time" (case sensitive)
## RETURNS:
## a row of a dataframe:
## row = data.frame(metabolite = metabolite,
## co... | /R/twowayANOVA.R | no_license | frangipane/metabolomics-analysis | R | false | false | 2,582 | r | ## function performs a two-way ANOVA on factors condition and time
## INPUT:
## metabolite: a string
## df: a dataframe containing metabolite levels, labeled by
## columns "condition" and "time" (case sensitive)
## RETURNS:
## a row of a dataframe:
## row = data.frame(metabolite = metabolite,
## co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qqplots.R
\name{qqplots}
\alias{qqplots}
\alias{qqnorm}
\alias{qqplot}
\alias{qqline}
\title{Quantile-Quantile Plots}
\usage{
qqnorm(y, ylim, main = "Normal Q-Q Plot", xlab = "Theoretical Quantiles",
ylab = "Sample Quantiles", datax = FALSE... | /man/qqplots.Rd | no_license | nemochina2008/mgcViz | R | false | true | 2,476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/qqplots.R
\name{qqplots}
\alias{qqplots}
\alias{qqnorm}
\alias{qqplot}
\alias{qqline}
\title{Quantile-Quantile Plots}
\usage{
qqnorm(y, ylim, main = "Normal Q-Q Plot", xlab = "Theoretical Quantiles",
ylab = "Sample Quantiles", datax = FALSE... |
#############################################################################################################
# Recover graph from observational non-Gaussian Data
#
# We calculate tau_i <- min_C max_j tau_{i-> j.C}
#
#
# Y: n x p matrix of observations with sample in row, variable in column
... | /stand_alone/functions/findGraphSingleFast.R | no_license | ysamwang/highDNG | R | false | false | 5,376 | r | #############################################################################################################
# Recover graph from observational non-Gaussian Data
#
# We calculate tau_i <- min_C max_j tau_{i-> j.C}
#
#
# Y: n x p matrix of observations with sample in row, variable in column
... |
pars_arg2to1 <- function(param_type, x, scalar) {
pars(x = x, param_type = param_type, scalar = scalar)
}
error <- function(...) stop(..., call. = FALSE)
| /R/utils.R | permissive | poissonconsulting/smbr | R | false | false | 157 | r | pars_arg2to1 <- function(param_type, x, scalar) {
pars(x = x, param_type = param_type, scalar = scalar)
}
error <- function(...) stop(..., call. = FALSE)
|
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/g_invasive.R
\name{g_invasive}
\alias{g_invasive}
\title{Check invasive species status for a set of species from GISD database}
\usage{
g_invasive(x, simplify = FALSE, verbose = TRUE)
}
\arguments{
\item{x}{character; a vector of scie... | /man/g_invasive.Rd | permissive | davharris/traits | R | false | false | 1,896 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/g_invasive.R
\name{g_invasive}
\alias{g_invasive}
\title{Check invasive species status for a set of species from GISD database}
\usage{
g_invasive(x, simplify = FALSE, verbose = TRUE)
}
\arguments{
\item{x}{character; a vector of scie... |
##' Convert list of knots into a n-by-1 matrix.
##'
##' Converted byrow by default.
##' @param knots.list List
##' @param byrow "logical"
##' @return Matrix
##' @author Feng Li, Department of Statistics, Stockholm University, Sweden.
##' @note First version: Wed Feb 02 13:01:00 CET 2011;
##' Current: Wed Fe... | /R/knots_list2mat.R | no_license | kl-lab/fformpp | R | false | false | 1,000 | r | ##' Convert list of knots into a n-by-1 matrix.
##'
##' Converted byrow by default.
##' @param knots.list List
##' @param byrow "logical"
##' @return Matrix
##' @author Feng Li, Department of Statistics, Stockholm University, Sweden.
##' @note First version: Wed Feb 02 13:01:00 CET 2011;
##' Current: Wed Fe... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22821294520816e+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_row... | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613102744-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 343 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22821294520816e+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_row... |
#' First order features
#'
#' @param data Numeric 2D matridata.
#' @references \url{http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0102107#s5}
#' @name first_order_features
NULL
#> NULL
#' @describeIn first_order_features Energy (ASM)
#'
calc_energy <- function(data){
#TODO: Add dim check for 2D ... | /R/FirstOrder.R | no_license | mridulafmach/radiomics | R | false | false | 2,838 | r | #' First order features
#'
#' @param data Numeric 2D matridata.
#' @references \url{http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0102107#s5}
#' @name first_order_features
NULL
#> NULL
#' @describeIn first_order_features Energy (ASM)
#'
calc_energy <- function(data){
#TODO: Add dim check for 2D ... |
#Predicting KNN using Glass Dataset
GlassData <- read.csv(file.choose()) #Importing Glass dataset
View(GlassData)
summary(GlassData)
str(GlassData) # Structure of glass dataset with levels
# table of type
table(GlassData$Type)
# table of type which gives % of each type
round(prop.table(table(GlassData$Typ... | /KNN/KNN Assignment.R | no_license | Anusha2396/Data-Science-Assignments | R | false | false | 3,655 | r | #Predicting KNN using Glass Dataset
GlassData <- read.csv(file.choose()) #Importing Glass dataset
View(GlassData)
summary(GlassData)
str(GlassData) # Structure of glass dataset with levels
# table of type
table(GlassData$Type)
# table of type which gives % of each type
round(prop.table(table(GlassData$Typ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/02_model_output_calc_plot_functions.R
\name{plot_dx_totals}
\alias{plot_dx_totals}
\title{Plot total diagnosed infections (E and I)}
\usage{
plot_dx_totals(
l_out_cosmo,
proportion = FALSE,
age_proportion = FALSE,
only_all = TRUE,
p... | /man/plot_dx_totals.Rd | permissive | SC-COSMO/sccosmomcma | R | false | true | 1,073 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/02_model_output_calc_plot_functions.R
\name{plot_dx_totals}
\alias{plot_dx_totals}
\title{Plot total diagnosed infections (E and I)}
\usage{
plot_dx_totals(
l_out_cosmo,
proportion = FALSE,
age_proportion = FALSE,
only_all = TRUE,
p... |
# Azithromycin Population Pharmacokinetic Model
# ------------------------------------------------------------------------------
# Hybrid Model plus:
# - Lung compartment attached to plasma
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set PATH for mrgsolve
# Get version of R
Rver... | /manuscript/16_SensitivityAnalysis/mod25_sa.R | no_license | jhhughes256/azithro_pk | R | false | false | 9,315 | r | # Azithromycin Population Pharmacokinetic Model
# ------------------------------------------------------------------------------
# Hybrid Model plus:
# - Lung compartment attached to plasma
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set PATH for mrgsolve
# Get version of R
Rver... |
info( logger, "MODELO_CARTOLA::modelo atacantes" )
info( logger, "MODELO_CARTOLA::filtrar atacantes" )
ataque <- dados_cartola %>%
filter( posicao == "ata" ) %>%
mutate( fin = FF + FD + FT,
RB_FC = ifelse( is.infinite(RB/FC) == TRUE, 0, RB/FC ),
A_PE = ifelse( is.infinite(A/PE) == TRUE, 0, A/P... | /modelo_pontuacao/munge/03 - ModeloAtacantes.R | no_license | betoms10/projeto_cartola | R | false | false | 4,794 | r | info( logger, "MODELO_CARTOLA::modelo atacantes" )
info( logger, "MODELO_CARTOLA::filtrar atacantes" )
ataque <- dados_cartola %>%
filter( posicao == "ata" ) %>%
mutate( fin = FF + FD + FT,
RB_FC = ifelse( is.infinite(RB/FC) == TRUE, 0, RB/FC ),
A_PE = ifelse( is.infinite(A/PE) == TRUE, 0, A/P... |
% Auto-generated: do not edit by hand
\name{htmlH5}
\alias{htmlH5}
\title{H5 component}
\description{
}
\usage{
htmlH5(htmlH5(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL,
role=NULL, accessKey=NULL, className=NULL, contentEditable=NULL,
contextMenu=NULL, dir=NULL, draggable=NULL, hidden... | /man/htmlH5.Rd | permissive | TannerSorensen/dash-html-components | R | false | false | 2,929 | rd | % Auto-generated: do not edit by hand
\name{htmlH5}
\alias{htmlH5}
\title{H5 component}
\description{
}
\usage{
htmlH5(htmlH5(children=NULL, id=NULL, n_clicks=NULL, n_clicks_timestamp=NULL, key=NULL,
role=NULL, accessKey=NULL, className=NULL, contentEditable=NULL,
contextMenu=NULL, dir=NULL, draggable=NULL, hidden... |
Subject_Percentage <- data.frame(subject = c("English", "Math", "Chemistry","Physics"),
percentage = c("80", "100", "85","95"))
Subject_Percentage
names(Subject_Percentage) <- c("Course", "Score")
Subject_Percentage
MyCourse <- subset(Subject_Percentage, select = Course)
MyCourse
V... | /lab 7.R | no_license | qingze-lan/PSTAT-10 | R | false | false | 580 | r | Subject_Percentage <- data.frame(subject = c("English", "Math", "Chemistry","Physics"),
percentage = c("80", "100", "85","95"))
Subject_Percentage
names(Subject_Percentage) <- c("Course", "Score")
Subject_Percentage
MyCourse <- subset(Subject_Percentage, select = Course)
MyCourse
V... |
# AUTO GENERATED FILE - DO NOT EDIT
vtkVolumeDataRepresentation <- function(id=NULL, dimensions=NULL, spacing=NULL, origin=NULL, rgb=NULL, rgba=NULL, scalars=NULL, scalarsType=NULL, mapper=NULL, volume=NULL, property=NULL, colorMapPreset=NULL, volumeController=NULL, controllerSize=NULL, rescaleColorMap=NULL, colorData... | /R/vtkVolumeDataRepresentation.R | permissive | plantly/dash-vtk | R | false | false | 1,240 | r | # AUTO GENERATED FILE - DO NOT EDIT
vtkVolumeDataRepresentation <- function(id=NULL, dimensions=NULL, spacing=NULL, origin=NULL, rgb=NULL, rgba=NULL, scalars=NULL, scalarsType=NULL, mapper=NULL, volume=NULL, property=NULL, colorMapPreset=NULL, volumeController=NULL, controllerSize=NULL, rescaleColorMap=NULL, colorData... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/time_series.R
\name{time_series_daily_adjusted}
\alias{time_series_daily_adjusted}
\title{returns market end of day adjusted data for a specified symbol}
\usage{
time_series_daily_adjusted(
symbol,
outputsize = "compact",
from = NULL,
... | /man/time_series_daily_adjusted.Rd | no_license | schardtbc/avR | R | false | true | 838 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/time_series.R
\name{time_series_daily_adjusted}
\alias{time_series_daily_adjusted}
\title{returns market end of day adjusted data for a specified symbol}
\usage{
time_series_daily_adjusted(
symbol,
outputsize = "compact",
from = NULL,
... |
setwd(file.path("C:", "Users", "cnovacy", "Documents", "01 - Projects", "Code", "datasciencecoursera", "Data"))
# 1) Download housing data about Idaho. How many properties are worth $1m or more
# use sss06hid data dictionary
community <- read.csv("getdata_data_ss06hid.csv")
df <- data.frame(community)
df.sub <- subs... | /quiz1_cleaningdata.R | no_license | cnovacyu/datasciencecoursera | R | false | false | 4,952 | r | setwd(file.path("C:", "Users", "cnovacy", "Documents", "01 - Projects", "Code", "datasciencecoursera", "Data"))
# 1) Download housing data about Idaho. How many properties are worth $1m or more
# use sss06hid data dictionary
community <- read.csv("getdata_data_ss06hid.csv")
df <- data.frame(community)
df.sub <- subs... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ambiguities_matrix.R
\name{set_ambiguities_matrix}
\alias{set_ambiguities_matrix}
\title{Set ambiguity matrix}
\usage{
set_ambiguities_matrix(model, A = NULL)
}
\arguments{
\item{model}{A \code{causal_model}. A model object generated by \... | /man/set_ambiguities_matrix.Rd | no_license | yadmasu1/CausalQueries | R | false | true | 707 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_ambiguities_matrix.R
\name{set_ambiguities_matrix}
\alias{set_ambiguities_matrix}
\title{Set ambiguity matrix}
\usage{
set_ambiguities_matrix(model, A = NULL)
}
\arguments{
\item{model}{A \code{causal_model}. A model object generated by \... |
library(CEGO)
### Name: correctionDistanceMatrix
### Title: Correction of a Distance Matrix
### Aliases: correctionDistanceMatrix
### ** Examples
x <- list(c(2,1,4,3),c(2,4,3,1),c(4,2,1,3),c(4,3,2,1),c(1,4,3,2))
D <- distanceMatrix(x,distancePermutationInsert)
is.CNSD(D) #matrix should not be CNSD
D <- correctionDi... | /data/genthat_extracted_code/CEGO/examples/correctionDistanceMatrix.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 383 | r | library(CEGO)
### Name: correctionDistanceMatrix
### Title: Correction of a Distance Matrix
### Aliases: correctionDistanceMatrix
### ** Examples
x <- list(c(2,1,4,3),c(2,4,3,1),c(4,2,1,3),c(4,3,2,1),c(1,4,3,2))
D <- distanceMatrix(x,distancePermutationInsert)
is.CNSD(D) #matrix should not be CNSD
D <- correctionDi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSource.R
\name{removeSource}
\alias{removeSource}
\title{Backport of removeSource for R < 3.6.0}
\usage{
removeSource(fn)
}
\description{
See the original description in \code{utils::removeSource}.
}
\examples{
# get function from names... | /man/removeSource.Rd | no_license | dmurdoch/backports | R | false | true | 510 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/removeSource.R
\name{removeSource}
\alias{removeSource}
\title{Backport of removeSource for R < 3.6.0}
\usage{
removeSource(fn)
}
\description{
See the original description in \code{utils::removeSource}.
}
\examples{
# get function from names... |
######################################################################
# hotsize.R
#
# Brian S Yandell
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 3, as published by the Free Software Foundation.
#
# This pro... | /R/hotsize.R | no_license | byandell/qtlhot | R | false | false | 8,280 | r | ######################################################################
# hotsize.R
#
# Brian S Yandell
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 3, as published by the Free Software Foundation.
#
# This pro... |
################################################################################
# Utilities for reshaping data
################################################################################
#' @title Wrapper for casting tables from long to wide
#' @param X The data set to cast
#' @param row_var The variable whose ... | /R/reshape.R | no_license | krisrs1128/cleanUtils | R | false | false | 2,348 | r |
################################################################################
# Utilities for reshaping data
################################################################################
#' @title Wrapper for casting tables from long to wide
#' @param X The data set to cast
#' @param row_var The variable whose ... |
# install.packages('dplyr',repos = "http://cran.us.r-project.org")
# install.packages('tidyr',repos = "http://cran.us.r-project.org")
# install.packages('RColorBrewer',repos = "http://cran.us.r-project.org")
# install.packages('ggplot2',repos = "http://cran.us.r-project.org")
# install.packages('knitr',repos = "http:/... | /code/Group07_Panel_Analysis.R | permissive | toshalpatel/AirbnbPricingStrategyAnalysis | R | false | false | 3,890 | r | # install.packages('dplyr',repos = "http://cran.us.r-project.org")
# install.packages('tidyr',repos = "http://cran.us.r-project.org")
# install.packages('RColorBrewer',repos = "http://cran.us.r-project.org")
# install.packages('ggplot2',repos = "http://cran.us.r-project.org")
# install.packages('knitr',repos = "http:/... |
library(tidyverse)
readClusters <- function(Ipath){
f <- list.files(path = Ipath, full.names = TRUE, pattern = ".*csv.gz")
for (i in f){
df <- read_csv(i)
df <- df %>%
select(cluster, size, date, source, placeOfPublication, corpus, text, url) %>%
group_by(cluster) %>%
slice(1) %>%
m... | /readClusters.R | no_license | rccordell/DHSI-HDA | R | false | false | 412 | r | library(tidyverse)
readClusters <- function(Ipath){
f <- list.files(path = Ipath, full.names = TRUE, pattern = ".*csv.gz")
for (i in f){
df <- read_csv(i)
df <- df %>%
select(cluster, size, date, source, placeOfPublication, corpus, text, url) %>%
group_by(cluster) %>%
slice(1) %>%
m... |
# This script detects all files in the data/soil directory,
# (automatic ouput of METER 5TM soil sensors and Em50 data logger), and
# reads them in.
# The script assumes that "Port 4" is an empty port.
# Ports 1-3 are inside seed-addition frames, port 5 is outside. Ports are
# renamed 1-4, with 4 becoming "empty" and ... | /code/read_soil_data.R | no_license | tylerhoecker/seed_addition_GYE | R | false | false | 2,333 | r | # This script detects all files in the data/soil directory,
# (automatic ouput of METER 5TM soil sensors and Em50 data logger), and
# reads them in.
# The script assumes that "Port 4" is an empty port.
# Ports 1-3 are inside seed-addition frames, port 5 is outside. Ports are
# renamed 1-4, with 4 becoming "empty" and ... |
## @knitr unnamed-chunk-1
wants <- c("tseries")
has <- wants %in% rownames(installed.packages())
if(any(!has)) install.packages(wants[!has])
## @knitr unnamed-chunk-2
queue <- factor(c("f", "m", "m", "f", "m", "f", "f", "f"))
library(tseries)
runs.test(queue, alternative="greater")
## @knitr unnamed-chunk-3
Nj ... | /R/npRuns.R | no_license | ramnathv/RExRepos | R | false | false | 1,681 | r |
## @knitr unnamed-chunk-1
wants <- c("tseries")
has <- wants %in% rownames(installed.packages())
if(any(!has)) install.packages(wants[!has])
## @knitr unnamed-chunk-2
queue <- factor(c("f", "m", "m", "f", "m", "f", "f", "f"))
library(tseries)
runs.test(queue, alternative="greater")
## @knitr unnamed-chunk-3
Nj ... |
#' @title View structure of labelled data frames
#' @name view_df
#'
#' @description Save (or show) content of an imported SPSS, SAS or Stata data file,
#' or any similar labelled \code{data.frame}, as HTML table.
#' Similar to the SPSS variable view. This quick overview shows
#' ... | /R/sjTabSPSS.R | no_license | bgarrels/devel | R | false | false | 17,788 | r | #' @title View structure of labelled data frames
#' @name view_df
#'
#' @description Save (or show) content of an imported SPSS, SAS or Stata data file,
#' or any similar labelled \code{data.frame}, as HTML table.
#' Similar to the SPSS variable view. This quick overview shows
#' ... |
# Honor Roll of Generosity
#=================================================================================
#=================================================================================
# 1866_Giving
# Alumni_Giving
# Blue_Gold_Giving
# Class_Year
# Corp_Giving
# Matching_Gift
# Memorial_Giving
# Parent_... | /Honor Roll of Generosity Unfinished.R | no_license | jchite84/Work_Projects | R | false | false | 386 | r | # Honor Roll of Generosity
#=================================================================================
#=================================================================================
# 1866_Giving
# Alumni_Giving
# Blue_Gold_Giving
# Class_Year
# Corp_Giving
# Matching_Gift
# Memorial_Giving
# Parent_... |
context("treatSens model arguments")
generateData <- function()
{
N <- 100
zetay <- .5
zetaz <- .5
betaz <- c(.75,-.5,.25) #coefficients of X in the treatment model
betay <- c(.5,1,-1.5) #coefficients of X in the outcome model
tau <- .25 #treatment effect
X <- matrix(rnorm(3*N),N,3) ... | /tests/testthat/test-04-binary.R | no_license | vdorie/treatSens | R | false | false | 3,714 | r | context("treatSens model arguments")
generateData <- function()
{
N <- 100
zetay <- .5
zetaz <- .5
betaz <- c(.75,-.5,.25) #coefficients of X in the treatment model
betay <- c(.5,1,-1.5) #coefficients of X in the outcome model
tau <- .25 #treatment effect
X <- matrix(rnorm(3*N),N,3) ... |
library(MASS)
hills.lm = lm(time~dist+climb, data=hills)
#frame(); par(fig=c(0, 0.6, 0, 0.55))
postscript('~/script/test/math650/figures/math650_hw7_fig1.eps')
hills.fitted = fitted(hills.lm)
hills.studres = studres(hills.lm)
plot(hills.fitted, hills.studres, xlim=c(0,200), ylim=c(-2,8))
abline(h=0, lty=2)
#label the... | /trunk/math650/math650_hw7.R | no_license | polyactis/test | R | false | false | 4,726 | r | library(MASS)
hills.lm = lm(time~dist+climb, data=hills)
#frame(); par(fig=c(0, 0.6, 0, 0.55))
postscript('~/script/test/math650/figures/math650_hw7_fig1.eps')
hills.fitted = fitted(hills.lm)
hills.studres = studres(hills.lm)
plot(hills.fitted, hills.studres, xlim=c(0,200), ylim=c(-2,8))
abline(h=0, lty=2)
#label the... |
# # Set working directory
setwd("C:/Users/Tom/Documents/Kaggle/Santander/")
# Load required libraries
library(shiny)
library(data.table)
library(DT)
library(shinythemes)
library(plotly)
library(reshape2)
# Option to process a subset of the test predictions to speed up the
# calculations
processSubset <- TRUE
subsetEx... | /Submission/PredictionsComp/Shiny predictions comparator/global.R | no_license | PetrShypila/Santander-Product-Recommendation | R | false | false | 4,484 | r | # # Set working directory
setwd("C:/Users/Tom/Documents/Kaggle/Santander/")
# Load required libraries
library(shiny)
library(data.table)
library(DT)
library(shinythemes)
library(plotly)
library(reshape2)
# Option to process a subset of the test predictions to speed up the
# calculations
processSubset <- TRUE
subsetEx... |
library(umx)
### Name: umxFactorScores
### Title: Return factor scores from a model as an easily consumable
### dataframe.
### Aliases: umxFactorScores
### ** Examples
m1 = umxEFA(mtcars, factors = 2)
x = umxFactorScores(m1, type = c('Regression'), minManifests = 3)
## Not run:
##D m1 = umxEFA(mtcars, factors = ... | /data/genthat_extracted_code/umx/examples/umxFactorScores.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 418 | r | library(umx)
### Name: umxFactorScores
### Title: Return factor scores from a model as an easily consumable
### dataframe.
### Aliases: umxFactorScores
### ** Examples
m1 = umxEFA(mtcars, factors = 2)
x = umxFactorScores(m1, type = c('Regression'), minManifests = 3)
## Not run:
##D m1 = umxEFA(mtcars, factors = ... |
#' add_osm_objects
#'
#' Adds layers of spatial objects (polygons, lines, or points generated by
#' \code{\link{extract_osm_objects}}) to a graphics object initialised with
#' \code{\link{osm_basemap}}.
#'
#' @param map A \code{ggplot2} object to which the objects are to be added.
#' @param obj A spatial (\code{sp}) da... | /R/add-osm-objects.R | no_license | PrasannaNatarajan/osmplotr | R | false | false | 6,410 | r | #' add_osm_objects
#'
#' Adds layers of spatial objects (polygons, lines, or points generated by
#' \code{\link{extract_osm_objects}}) to a graphics object initialised with
#' \code{\link{osm_basemap}}.
#'
#' @param map A \code{ggplot2} object to which the objects are to be added.
#' @param obj A spatial (\code{sp}) da... |
#' Frequency Table of Russian First Names
#'
#' A dataset containing the most frequent Russian first names in Moscow from January 2015 to March 2020.
#'
#' @docType data
#' @name freq_first_names
#' @usage data(freq_first_names)
#' @keywords datasets
#'
#' @details The Russian names frequency table based on the infor... | /R/freq_first_names.R | permissive | dmafanasyev/rulexicon | R | false | false | 1,973 | r | #' Frequency Table of Russian First Names
#'
#' A dataset containing the most frequent Russian first names in Moscow from January 2015 to March 2020.
#'
#' @docType data
#' @name freq_first_names
#' @usage data(freq_first_names)
#' @keywords datasets
#'
#' @details The Russian names frequency table based on the infor... |
#' Creating table with deputies' statements
#'
#' Function \code{statements_create_table} creates a table with deputies' statements.
#'
#' @usage statements_create_table(dbname, user, password, host,
#' nr_term_of_office = 8)
#'
#' @param dbname name of database
#' @param user name of user
#' @param password password... | /sejmRP/R/statements_create_table.R | no_license | mi2-warsaw/sejmRP | R | false | false | 4,484 | r | #' Creating table with deputies' statements
#'
#' Function \code{statements_create_table} creates a table with deputies' statements.
#'
#' @usage statements_create_table(dbname, user, password, host,
#' nr_term_of_office = 8)
#'
#' @param dbname name of database
#' @param user name of user
#' @param password password... |
#####################################################################################################
#
# This code is used to combine all the data
#
#
#####################################################################################################
##setwd("/exports/csce/eddie/inf/groups/mamode_prendergast/Scrip... | /old/Prepared_data_2/Ensembl_Distance2Gene_full_combine_data_array_20.R | permissive | HIM003/edinburgh-university-dissertation | R | false | false | 6,120 | r | #####################################################################################################
#
# This code is used to combine all the data
#
#
#####################################################################################################
##setwd("/exports/csce/eddie/inf/groups/mamode_prendergast/Scrip... |
bootstrap_stdev1<-function(p,n,nSimulation,kmin,kmax, tol){
i=c(1:nSimulation)
f<-function(k){
v=rmultinom(n=1,size=n,prob=p)
v=v/sum(v)
cdf=cumsum(v)
res = nearestPowerLaw(cdf,kmin,kmax,1,3,tol=tol)
distance=res$objective
return(distance*distance)
}
sample=sapply(i,f)
return(sq... | /bootstrap_tests.R | permissive | TestingEquivalence/PowerLawR | R | false | false | 5,038 | r | bootstrap_stdev1<-function(p,n,nSimulation,kmin,kmax, tol){
i=c(1:nSimulation)
f<-function(k){
v=rmultinom(n=1,size=n,prob=p)
v=v/sum(v)
cdf=cumsum(v)
res = nearestPowerLaw(cdf,kmin,kmax,1,3,tol=tol)
distance=res$objective
return(distance*distance)
}
sample=sapply(i,f)
return(sq... |
# This example is formatted to run with the test directory utils files as if it were a test so that the reader can run directly from terminal (or whatever corrolary).
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"-f")))
source('../findNSourceUtils.R')
example.km2toy.golden <- function(H2Oserver)
#... | /R/examples/mathexamples/Kmeans_mathexample.R | permissive | vkuznet/h2o | R | false | false | 3,541 | r | # This example is formatted to run with the test directory utils files as if it were a test so that the reader can run directly from terminal (or whatever corrolary).
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"-f")))
source('../findNSourceUtils.R')
example.km2toy.golden <- function(H2Oserver)
#... |
#' Function to return the DH10 hydrologic indicator statistic for a given data frame
#'
#' This function accepts a data frame that contains a column named "discharge" and calculates
#' DH10; Variability of annual maximum of 90-day moving average flows. Compute the standard deviation for the
#' maximum 90-day moving ... | /R/dh10.R | no_license | tsangyp/EflowStats | R | false | false | 1,315 | r | #' Function to return the DH10 hydrologic indicator statistic for a given data frame
#'
#' This function accepts a data frame that contains a column named "discharge" and calculates
#' DH10; Variability of annual maximum of 90-day moving average flows. Compute the standard deviation for the
#' maximum 90-day moving ... |
library(plyr)
trips <- divvy_trips_june19
from_stations <- divvy_stations
colnames(from_stations) <- c('from_station_id','lat_from','lon_from')
to_stations <- divvy_stations
colnames(to_stations) <- c('to_station_id','lat_to','lon_to')
#lookups/joins
er1 <- join(trips, from_stations, by = "from_station_id", type = 'le... | /join_coordinates.R | no_license | carstonhernke/chicago-bike-movements | R | false | false | 519 | r | library(plyr)
trips <- divvy_trips_june19
from_stations <- divvy_stations
colnames(from_stations) <- c('from_station_id','lat_from','lon_from')
to_stations <- divvy_stations
colnames(to_stations) <- c('to_station_id','lat_to','lon_to')
#lookups/joins
er1 <- join(trips, from_stations, by = "from_station_id", type = 'le... |
\name{jagsModel}
\alias{jagsModel}
\title{Create a JAGS model object}
\description{
\code{jagsModel} is used to create an object representing a
Bayesian graphical model, specified with a BUGS-language description
of the prior distribution, and a set of data.
This function uses \code{\link[rjags]{jags.model}} but keeps ... | /man/jagsModel.Rd | no_license | cran/dclone | R | false | false | 2,240 | rd | \name{jagsModel}
\alias{jagsModel}
\title{Create a JAGS model object}
\description{
\code{jagsModel} is used to create an object representing a
Bayesian graphical model, specified with a BUGS-language description
of the prior distribution, and a set of data.
This function uses \code{\link[rjags]{jags.model}} but keeps ... |
rm(list = ls())
abo.base.types = c("A", "B", "O")
rh.base.types = c("-", "+")
abo.types = unique(apply(expand.grid(abo.base.types, abo.base.types), 1, function(v) paste0(sort(v), collapse = "")))
rh.types = unique(apply(expand.grid(rh.base.types, rh.base.types), 1, function(v) paste0(sort(v), collapse = "")))
num.ab... | /blood_type/analytics.R | no_license | tkmckenzie/pan | R | false | false | 2,196 | r | rm(list = ls())
abo.base.types = c("A", "B", "O")
rh.base.types = c("-", "+")
abo.types = unique(apply(expand.grid(abo.base.types, abo.base.types), 1, function(v) paste0(sort(v), collapse = "")))
rh.types = unique(apply(expand.grid(rh.base.types, rh.base.types), 1, function(v) paste0(sort(v), collapse = "")))
num.ab... |
library(jtools)
library(DescTools)
library(qwraps2)
library(tidyverse)
library(VGAM)
library(gtsummary)
library(car)
library(lmtest)
############### data cleaning #######################################
CFPS_elders_cons3 <-
CFPS_elders_cons3 %>%
mutate(age_group2cat = cut(age, breaks = c(15, 35, 96)),
age_... | /elder-consumption/2021sep/langyi.R | no_license | lt2710/Pet-projects | R | false | false | 4,257 | r | library(jtools)
library(DescTools)
library(qwraps2)
library(tidyverse)
library(VGAM)
library(gtsummary)
library(car)
library(lmtest)
############### data cleaning #######################################
CFPS_elders_cons3 <-
CFPS_elders_cons3 %>%
mutate(age_group2cat = cut(age, breaks = c(15, 35, 96)),
age_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Shared.R
\name{get_spikes}
\alias{get_spikes}
\title{get_spikes()}
\usage{
get_spikes(d.spikes, i, rm.end.time = TRUE)
}
\arguments{
\item{d.spikes}{Data frame containing spike sequences.}
\item{i}{The index (column) denoting the required sp... | /man/get_spikes.Rd | no_license | JPNotts/Package | R | false | true | 623 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Shared.R
\name{get_spikes}
\alias{get_spikes}
\title{get_spikes()}
\usage{
get_spikes(d.spikes, i, rm.end.time = TRUE)
}
\arguments{
\item{d.spikes}{Data frame containing spike sequences.}
\item{i}{The index (column) denoting the required sp... |
# https://www.r-bloggers.com/using-rvest-to-scrape-an-html-table/
# phish web scraping function == TOP SHOWS
# example url
# http://phish.net/music/ratings/2016
# source the phish scraping functino
source(phish.scrape)
# define the years you want to scrape
years = as.list(1989:2017)
# phish scraping function
phish... | /phish.scrape.R | no_license | birjudhaduk/R | R | false | false | 16,372 | r | # https://www.r-bloggers.com/using-rvest-to-scrape-an-html-table/
# phish web scraping function == TOP SHOWS
# example url
# http://phish.net/music/ratings/2016
# source the phish scraping functino
source(phish.scrape)
# define the years you want to scrape
years = as.list(1989:2017)
# phish scraping function
phish... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msgfParMatches.R
\docType{class}
\name{msgfParMatches-class}
\alias{msgfParMatches-class}
\alias{show,msgfParMatches-method}
\alias{length,msgfParMatches-method}
\alias{getMSGFpar,msgfParMatches-method}
\alias{msgfParMatches}
\title{A class h... | /man/msgfParMatches-class.Rd | no_license | ManuelPerisDiaz/MSGFplus | R | false | true | 1,912 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/msgfParMatches.R
\docType{class}
\name{msgfParMatches-class}
\alias{msgfParMatches-class}
\alias{show,msgfParMatches-method}
\alias{length,msgfParMatches-method}
\alias{getMSGFpar,msgfParMatches-method}
\alias{msgfParMatches}
\title{A class h... |
library(proxy)
##### 1) Load the Data ######
#############################
source('01_Pre-processing.R')
### 2) Load the Functions ###
#############################
source('02_Functions.R')
# Spread the data to convert in matrix form
user_artists_mat <- spread(user_artists, artist_name, weight_discrete)
# Row name... | /Last_FM/03_Modelling.R | no_license | sabirakhtar/Reccomender-Systems_LastFM | R | false | false | 2,526 | r |
library(proxy)
##### 1) Load the Data ######
#############################
source('01_Pre-processing.R')
### 2) Load the Functions ###
#############################
source('02_Functions.R')
# Spread the data to convert in matrix form
user_artists_mat <- spread(user_artists, artist_name, weight_discrete)
# Row name... |
#!/usr/bin/R
# ---------------------------------------
# Load the distance matrices from fdist:
# Imputed, Observed, and Mixed
# Additionally, load in annotation
# ---------------------------------------
domain = system("hostname -d", intern=TRUE)
if (domain == 'broadinstitute.org'){
bindir='~/data/EPIMAP_ANALYSIS/... | /load_region_distance_matrices.R | no_license | cboix/EPIMAP_ANALYSIS | R | false | false | 4,252 | r | #!/usr/bin/R
# ---------------------------------------
# Load the distance matrices from fdist:
# Imputed, Observed, and Mixed
# Additionally, load in annotation
# ---------------------------------------
domain = system("hostname -d", intern=TRUE)
if (domain == 'broadinstitute.org'){
bindir='~/data/EPIMAP_ANALYSIS/... |
library("dplyr")
library("ggplot2")
library(randomForest)
temp = read.csv("../Data/temp_measurement/temo.csv")
names(temp) = str_replace_all(names(temp), pattern = "\\.", replacement = "")
str(temp)
temp_temp = temp[1:200, c(3, 6:14)] %>% na.omit()
temp_new = temp[201:317, c(3, 6:14)] %>% na.omit()
A = randomForest:... | /Misc/TempMeasurement/body_temp.R | no_license | alexsanjoseph/Coursera | R | false | false | 953 | r | library("dplyr")
library("ggplot2")
library(randomForest)
temp = read.csv("../Data/temp_measurement/temo.csv")
names(temp) = str_replace_all(names(temp), pattern = "\\.", replacement = "")
str(temp)
temp_temp = temp[1:200, c(3, 6:14)] %>% na.omit()
temp_new = temp[201:317, c(3, 6:14)] %>% na.omit()
A = randomForest:... |
#' Align matrices of cluster labels.
#'
#' @param Z1 A matrix.
#' @param Z2 A matrix of the same dimensions as Z1
#'
#' @return A matrix of the same dimensions as Z2.
#'
#' @export
alignMatrices <- function(Z1, Z2) {
for (k in 1:dim(Z1)[2]) {
for (tempk in 1:dim(Z2)[2]) {
Max <- sum(Z1 == Z2)
... | /R/alignMatrices.R | permissive | ttriche/bayesCC | R | false | false | 490 | r | #' Align matrices of cluster labels.
#'
#' @param Z1 A matrix.
#' @param Z2 A matrix of the same dimensions as Z1
#'
#' @return A matrix of the same dimensions as Z2.
#'
#' @export
alignMatrices <- function(Z1, Z2) {
for (k in 1:dim(Z1)[2]) {
for (tempk in 1:dim(Z2)[2]) {
Max <- sum(Z1 == Z2)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/places.R
\name{get_dist_mat}
\alias{get_dist_mat}
\title{Get the distance matrix}
\usage{
get_dist_mat(pop, places, dist_fxn = haversine_dist)
}
\arguments{
\item{pop}{data frame of the population with m rows}
\item{places}{data frame of pla... | /man/get_dist_mat.Rd | no_license | cran/spew | R | false | true | 735 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/places.R
\name{get_dist_mat}
\alias{get_dist_mat}
\title{Get the distance matrix}
\usage{
get_dist_mat(pop, places, dist_fxn = haversine_dist)
}
\arguments{
\item{pop}{data frame of the population with m rows}
\item{places}{data frame of pla... |
read_file <- function(file)
{
df <- read.csv(file)
df <- df[, c("Date", "Adj.Close")] # grab Date & Adj.Close
df <- df[df$Adj.Close != "null", ] # remove null values
df$Date <- as.Date(df$Date)
rownames(df) <- df$Date
df$Adj.Close <- as.numeric(as.character(df$Adj.C... | /correlations.r | no_license | halftime/Asset-correlations | R | false | false | 1,657 | r | read_file <- function(file)
{
df <- read.csv(file)
df <- df[, c("Date", "Adj.Close")] # grab Date & Adj.Close
df <- df[df$Adj.Close != "null", ] # remove null values
df$Date <- as.Date(df$Date)
rownames(df) <- df$Date
df$Adj.Close <- as.numeric(as.character(df$Adj.C... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{EMIR70}
\alias{EMIR70}
\title{DHS Ever-Married Women dataset}
\format{
A data frame with 3014 rows and 30 variables:
\describe{
\item{v005}{Women individual sample weight}
\item{v007}{Year of intervie... | /man/EMIR70.Rd | no_license | cran/DHS.rates | R | false | true | 1,773 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{EMIR70}
\alias{EMIR70}
\title{DHS Ever-Married Women dataset}
\format{
A data frame with 3014 rows and 30 variables:
\describe{
\item{v005}{Women individual sample weight}
\item{v007}{Year of intervie... |
# ------------------------------------- #
# Spat21/Mozzie Study #
# Make final censored data set #
# Human Data #
# K. Sumner #
# July 15, 2019 #
# ------------------------------------- #
#### -------- load packa... | /SpatialR21_project/code/human_data_cleaning/spat21_make_final_censored_data_set.R | no_license | kelseysumner/taylorlab | R | false | false | 7,662 | r | # ------------------------------------- #
# Spat21/Mozzie Study #
# Make final censored data set #
# Human Data #
# K. Sumner #
# July 15, 2019 #
# ------------------------------------- #
#### -------- load packa... |
rm(list=ls()) # Removing unused R objects from RAM
# importing libraries
#------------------------------------------------
library(tseries)
library(data.table)
library(tsoutliers)
library(expsmooth)
library(fma)
library(jsonlite)
suppressPackageStartupMessages(library("argparse"))
#-------------------------------------... | /src/rscript/Tsoutlier_AD/anomaly_tsoutliers_machine.R | no_license | rahul100/RealTimeAnomalyDetection | R | false | false | 4,037 | r | rm(list=ls()) # Removing unused R objects from RAM
# importing libraries
#------------------------------------------------
library(tseries)
library(data.table)
library(tsoutliers)
library(expsmooth)
library(fma)
library(jsonlite)
suppressPackageStartupMessages(library("argparse"))
#-------------------------------------... |
#write a program to check the given quadratic
#equation are real,equal or imaginary root
a=readline(prompt="enter number")
a=as.integer(a)
y=a%%2
if(y==0)
{
print("No. is even")
}else
{
print("no. is odd")
}
| /s.R | no_license | meenapandey500/R_Programming- | R | false | false | 226 | r | #write a program to check the given quadratic
#equation are real,equal or imaginary root
a=readline(prompt="enter number")
a=as.integer(a)
y=a%%2
if(y==0)
{
print("No. is even")
}else
{
print("no. is odd")
}
|
library(tidyverse)
library(lubridate)
rm(list=ls())
## read in data
CH <- readRDS("Data/BadgersCombinedData300621.rds")
CH <- arrange(CH, tattoo)
## keep only required variables
CH <- select(CH, tattoo, date, pm, occ, capture_yr, sex, age, year_fc, age_fc_yrs, trap_season, statpak, GAMMA, Cult_Sum, brock, v1s)
## ... | /TCH/PrepareData_TCH2_edits.R | no_license | davehudson67/Inbreeding | R | false | false | 8,425 | r | library(tidyverse)
library(lubridate)
rm(list=ls())
## read in data
CH <- readRDS("Data/BadgersCombinedData300621.rds")
CH <- arrange(CH, tattoo)
## keep only required variables
CH <- select(CH, tattoo, date, pm, occ, capture_yr, sex, age, year_fc, age_fc_yrs, trap_season, statpak, GAMMA, Cult_Sum, brock, v1s)
## ... |
library(ChainLadder)
### Name: triangle S3 Methods
### Title: Generic functions for triangles
### Aliases: triangle plot.triangle as.data.frame.triangle as.triangle
### as.triangle.data.frame as.triangle.matrix
### Keywords: methods
### ** Examples
GenIns
plot(GenIns)
plot(GenIns, lattice=TRUE)
## Convert long ... | /data/genthat_extracted_code/ChainLadder/examples/Triangles.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,440 | r | library(ChainLadder)
### Name: triangle S3 Methods
### Title: Generic functions for triangles
### Aliases: triangle plot.triangle as.data.frame.triangle as.triangle
### as.triangle.data.frame as.triangle.matrix
### Keywords: methods
### ** Examples
GenIns
plot(GenIns)
plot(GenIns, lattice=TRUE)
## Convert long ... |
#' Extract weather data
#'
#' @description Retrieve data from the Macleish Field Station weather monitors
#' @inheritParams etl::etl_extract
#' @import etl
#' @export
#' @examples
#'
#' macleish <- etl("macleish")
#' str(macleish)
#'
#' \dontrun{
#' macleish %>%
#' etl_extract() %>%
#' etl_transform() %>%
#' ... | /R/etl_extract.R | no_license | dcaravela/macleish | R | false | false | 4,596 | r | #' Extract weather data
#'
#' @description Retrieve data from the Macleish Field Station weather monitors
#' @inheritParams etl::etl_extract
#' @import etl
#' @export
#' @examples
#'
#' macleish <- etl("macleish")
#' str(macleish)
#'
#' \dontrun{
#' macleish %>%
#' etl_extract() %>%
#' etl_transform() %>%
#' ... |
#Unidad 1
#Trabajare con la matriz de datos millas
millas <- datos :: millas
# Vamos a explorar la matriz de datos con los siguientes comandos
? millas
dim(millas) # conocer la dimensión
names(millas) # muestra el nombre de las variables
str(millas) # tipo de variable
anyNA(millas) # indica los datos perdidos
type... | /ExamenUnidad1.R | no_license | Alejandra11683/Probabilidad-y-Estad-stica | R | false | false | 3,343 | r | #Unidad 1
#Trabajare con la matriz de datos millas
millas <- datos :: millas
# Vamos a explorar la matriz de datos con los siguientes comandos
? millas
dim(millas) # conocer la dimensión
names(millas) # muestra el nombre de las variables
str(millas) # tipo de variable
anyNA(millas) # indica los datos perdidos
type... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DECOR.R
\name{DECO_LASSO_R}
\alias{DECO_LASSO_R}
\title{DECO Parallelized Algorithm (Pure R)}
\usage{
DECO_LASSO_R(Y, X, p = NULL, n = NULL, m = 1, lambda, r_1, r_2 = r_1,
ncores = 1, intercept = TRUE, refinement = TRUE)
}
\arguments{
\item... | /20161128_Giulio/man/DECO_LASSO_R.Rd | no_license | giuliomorina/DECO | R | false | true | 3,073 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DECOR.R
\name{DECO_LASSO_R}
\alias{DECO_LASSO_R}
\title{DECO Parallelized Algorithm (Pure R)}
\usage{
DECO_LASSO_R(Y, X, p = NULL, n = NULL, m = 1, lambda, r_1, r_2 = r_1,
ncores = 1, intercept = TRUE, refinement = TRUE)
}
\arguments{
\item... |
testlist <- list(x1 = NaN, x2 = numeric(0), y1 = c(NaN, 2.99936322501202e-241, -2.1766197242939e+307, -1.50493771847702e+206, NaN, NaN, 2.81074212220468e-315, 0, 0), y2 = numeric(0))
result <- do.call(palm:::euc_distances,testlist)
str(result) | /palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968223-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 245 | r | testlist <- list(x1 = NaN, x2 = numeric(0), y1 = c(NaN, 2.99936322501202e-241, -2.1766197242939e+307, -1.50493771847702e+206, NaN, NaN, 2.81074212220468e-315, 0, 0), y2 = numeric(0))
result <- do.call(palm:::euc_distances,testlist)
str(result) |
#############################################################################
#A function to check, format and order NMA data according to sortvar
#############################################################################
#data: the inputed dataset in sequentialnma function
#args: the defined arguments
#!!!!!!!!!!... | /R/formatdata.R | no_license | tosku/sequentialnma2 | R | false | false | 2,816 | r |
#############################################################################
#A function to check, format and order NMA data according to sortvar
#############################################################################
#data: the inputed dataset in sequentialnma function
#args: the defined arguments
#!!!!!!!!!!... |
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615831820-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 2,048 | r | testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554... |
\name{barplot2}
\alias{barplot2}
\title{ Horizontally Shifted Bar Plots }
\description{
This function is a modified version of \code{barplot} with an
additional argument that allows the bars to be shifted left or right
along the x-axis.
}
\usage{
barplot2(height, width = 1, space = NULL,
names.arg = NULL... | /man/barplot2.Rd | no_license | cran/tis | R | false | false | 6,794 | rd | \name{barplot2}
\alias{barplot2}
\title{ Horizontally Shifted Bar Plots }
\description{
This function is a modified version of \code{barplot} with an
additional argument that allows the bars to be shifted left or right
along the x-axis.
}
\usage{
barplot2(height, width = 1, space = NULL,
names.arg = NULL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/performance.R
\name{performance}
\alias{performance}
\title{Assess Performance of a Classifier}
\usage{
performance(
object,
data = NULL,
newdata = NA,
individual.fit = FALSE,
impute = "none",
name.response = NULL,
fold.size = 1... | /man/performance.Rd | no_license | cran/BuyseTest | R | false | true | 4,280 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/performance.R
\name{performance}
\alias{performance}
\title{Assess Performance of a Classifier}
\usage{
performance(
object,
data = NULL,
newdata = NA,
individual.fit = FALSE,
impute = "none",
name.response = NULL,
fold.size = 1... |
df <- data.frame(t1 = seq(5, 100, by = 10))
library(dplyr)
p_ll <- function(beta_intercept, beta_xa, beta_xr, beta_ta, beta_tr, x1, x2, t1, t2) {
x_rat <- (x2 - x1)/ ((x2 + x1)/2)
t_rat <- (t2 - t1)/ ((t2 + t1)/2)
reg <- beta_intercept + beta_xa*(x2 - x1) + beta_xr*(x_rat) +
beta_ta*(t2 - t1) + beta_tr*(t... | /shinyapps/probability_ll_ITCH.R | no_license | itsdanwall/timeratios | R | false | false | 1,294 | r | df <- data.frame(t1 = seq(5, 100, by = 10))
library(dplyr)
p_ll <- function(beta_intercept, beta_xa, beta_xr, beta_ta, beta_tr, x1, x2, t1, t2) {
x_rat <- (x2 - x1)/ ((x2 + x1)/2)
t_rat <- (t2 - t1)/ ((t2 + t1)/2)
reg <- beta_intercept + beta_xa*(x2 - x1) + beta_xr*(x_rat) +
beta_ta*(t2 - t1) + beta_tr*(t... |
#####################################################################
## R Code for Anomaly Detection
## - See lecture: 05-anomaly.pdf
##
## Michael D. Porter
## Created: Feb 2019
## For: Data Mining (SYS-6018) at University of Virginia
## https://mdporter.github.io/SYS6018/
###########################################... | /R/anomaly.R | no_license | ahull002/SYS6018 | R | false | false | 8,938 | r | #####################################################################
## R Code for Anomaly Detection
## - See lecture: 05-anomaly.pdf
##
## Michael D. Porter
## Created: Feb 2019
## For: Data Mining (SYS-6018) at University of Virginia
## https://mdporter.github.io/SYS6018/
###########################################... |
\name{ProjSepD}
\alias{ProjSepD}
\title{Projective separation distance of a design}
\description{
Computes the projective separation distance of a design.
}
\usage{
ProjSepD(design);
}
\arguments{
\item{design}{The experimental design, must be a matrix whose rows indicate experimental runs.}
}
\details{
T... | /man/ProjSepD.Rd | no_license | cran/LatticeDesign | R | false | false | 932 | rd | \name{ProjSepD}
\alias{ProjSepD}
\title{Projective separation distance of a design}
\description{
Computes the projective separation distance of a design.
}
\usage{
ProjSepD(design);
}
\arguments{
\item{design}{The experimental design, must be a matrix whose rows indicate experimental runs.}
}
\details{
T... |
#' Title Summarize the top clusters
#'
#' Returns information about the top cluster in the GEE analysis
#'
#' @param betas An (m by n) matrix of methylation values of $m$ methylation sites measured on $n$ individuals
#' @param covariates Either a (n by p) vectors of adjusting covariates, ordered so that its rows corr... | /R/summarize.top.clusters.R | no_license | jiwonslee/Aclust | R | false | false | 8,388 | r | #' Title Summarize the top clusters
#'
#' Returns information about the top cluster in the GEE analysis
#'
#' @param betas An (m by n) matrix of methylation values of $m$ methylation sites measured on $n$ individuals
#' @param covariates Either a (n by p) vectors of adjusting covariates, ordered so that its rows corr... |
## makeCacheMatrix function will create a matrix that is cacheable
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
getinverse <- function() i
list(set = set, get = get,
setin... | /cachematrix.R | no_license | ksnabb/ProgrammingAssignment2 | R | false | false | 664 | r |
## makeCacheMatrix function will create a matrix that is cacheable
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- function(y) {
x <<- y
i <<- NULL
}
get <- function() x
setinverse <- function(inverse) i <<- inverse
getinverse <- function() i
list(set = set, get = get,
setin... |
library(shiny)
library(ggplot2)
library(gapminder)
library(DT)
library(dplyr)
varlist <- names(gapminder)
# Define UI for application that draws a plot
ui <- fluidPage(
# Application title
titlePanel("Gapminder Data"),
sidebarLayout(
sidebarPanel(
selectInput(inputId = "y",label = ... | /shiny_app_18g.R | no_license | sivakv2/EPGDA2_InteractiveApps2 | R | false | false | 1,701 | r | library(shiny)
library(ggplot2)
library(gapminder)
library(DT)
library(dplyr)
varlist <- names(gapminder)
# Define UI for application that draws a plot
ui <- fluidPage(
# Application title
titlePanel("Gapminder Data"),
sidebarLayout(
sidebarPanel(
selectInput(inputId = "y",label = ... |
pollutantmean <- function(directory, pollutant, id = 1:332){
getallfiles <- list.files(directory, full=TRUE)
reducefiles <- getallfiles[id]
parsefiledata <- lapply(reducefiles, read.csv, header=TRUE)
combinefiledata <- do.call("rbind", parsefiledata)
selectpollutant <- subset(combinefiledata, select = polluta... | /pollutantmean.R | no_license | mdjacobsen/Rscripts | R | false | false | 393 | r | pollutantmean <- function(directory, pollutant, id = 1:332){
getallfiles <- list.files(directory, full=TRUE)
reducefiles <- getallfiles[id]
parsefiledata <- lapply(reducefiles, read.csv, header=TRUE)
combinefiledata <- do.call("rbind", parsefiledata)
selectpollutant <- subset(combinefiledata, select = polluta... |
output$ioData <- DT::renderDataTable({
req(input$data)
tryCatch(
{
sharedDataDF <<- read.csv(input$data$datapath,
header = input$header,
sep = input$sep,
quote = input$quote)
},
error = function(e) {
stop(safeError(e))
}
)... | /server/14-process-io-srv.R | no_license | rissq/rissq.app | R | false | false | 2,828 | r | output$ioData <- DT::renderDataTable({
req(input$data)
tryCatch(
{
sharedDataDF <<- read.csv(input$data$datapath,
header = input$header,
sep = input$sep,
quote = input$quote)
},
error = function(e) {
stop(safeError(e))
}
)... |
library(GLMsData)
### Name: nhospital
### Title: Naval hospital maintenance
### Aliases: nhospital
### Keywords: datasets
### ** Examples
data(nhospital)
summary(nhospital)
| /data/genthat_extracted_code/GLMsData/examples/nhospital.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 180 | r | library(GLMsData)
### Name: nhospital
### Title: Naval hospital maintenance
### Aliases: nhospital
### Keywords: datasets
### ** Examples
data(nhospital)
summary(nhospital)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge_data.R
\name{merge_facebook_data}
\alias{merge_facebook_data}
\title{Merge Facebook rds files from different folders}
\usage{
merge_facebook_data(
old_folder,
new_folder,
output_folder,
keep_newest = TRUE,
ignore_scrape_time =... | /man/merge_facebook_data.Rd | permissive | jogrue/socmedhelpeRs | R | false | true | 1,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge_data.R
\name{merge_facebook_data}
\alias{merge_facebook_data}
\title{Merge Facebook rds files from different folders}
\usage{
merge_facebook_data(
old_folder,
new_folder,
output_folder,
keep_newest = TRUE,
ignore_scrape_time =... |
#' @title summary_dv
#'
#' @description Calculate min max day of year
#'
#' @importFrom dataRetrieval readNWISdv renameNWISColumns
#' @importFrom dplyr mutate group_by summarise
#'
#' @param site character USGS site id
#'
#' @export
#'
#' @examples
#' sum_table <- summary_dv("08279500")
summary_dv <- function(site){
... | /R/summary_db.R | no_license | bmccloskey/demoPackage | R | false | false | 807 | r | #' @title summary_dv
#'
#' @description Calculate min max day of year
#'
#' @importFrom dataRetrieval readNWISdv renameNWISColumns
#' @importFrom dplyr mutate group_by summarise
#'
#' @param site character USGS site id
#'
#' @export
#'
#' @examples
#' sum_table <- summary_dv("08279500")
summary_dv <- function(site){
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{.getext}
\alias{.getext}
\title{get the suffix name}
\usage{
.getext(x)
}
\arguments{
\item{x}{filename}
}
\description{
get the suffix name
}
| /man/dot-getext.Rd | no_license | guokai8/eoffice | R | false | true | 234 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{.getext}
\alias{.getext}
\title{get the suffix name}
\usage{
.getext(x)
}
\arguments{
\item{x}{filename}
}
\description{
get the suffix name
}
|
train_ANK=read.table("AL.ANK.2A_corr.txt", header = T)
test_ANK=read.table("AL.ANK.2B.txt", header = T)
train_ANK$COS.Intensity=ordered(train_ANK$COS.Intensity, levels = c("SED","LPA","MPA","VPA"))
test_ANK$COS.Intensity=ordered(test_ANK$COS.Intensity, levels = c("SED","LPA","MPA","VPA"))
agg_ANK=count(train_ANK,Age... | /ANK/ankle.R | no_license | DrewLazar/Ord_Accelerometer | R | false | false | 4,146 | r | train_ANK=read.table("AL.ANK.2A_corr.txt", header = T)
test_ANK=read.table("AL.ANK.2B.txt", header = T)
train_ANK$COS.Intensity=ordered(train_ANK$COS.Intensity, levels = c("SED","LPA","MPA","VPA"))
test_ANK$COS.Intensity=ordered(test_ANK$COS.Intensity, levels = c("SED","LPA","MPA","VPA"))
agg_ANK=count(train_ANK,Age... |
provincias_codes <- as.vector(unique(household_income_2015$provincia)) | /casen/household_income/1_functions/provincias_codes.R | no_license | jnaudon/datachile-etl | R | false | false | 70 | r | provincias_codes <- as.vector(unique(household_income_2015$provincia)) |
\name{xP}
\alias{xP}
\title{Text Processing: Print Formatted Numbers}
\description{Prints numbers nicely formatted, with optional units. Primarily for internal use in text processing of \code{knitr} output. Not usually referenced by the user.
}
\usage{
xP(x, d_d=NULL, unit=NULL, semi=FALSE)
}
\arguments{
\item{x... | /man/xP.Rd | no_license | cran/lessR | R | false | false | 846 | rd | \name{xP}
\alias{xP}
\title{Text Processing: Print Formatted Numbers}
\description{Prints numbers nicely formatted, with optional units. Primarily for internal use in text processing of \code{knitr} output. Not usually referenced by the user.
}
\usage{
xP(x, d_d=NULL, unit=NULL, semi=FALSE)
}
\arguments{
\item{x... |
testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661649758392e-10, 6.95356800386775e-310, 20113920360766767104, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,... | /dynutils/inst/testfiles/project_to_segments/AFL_project_to_segments/project_to_segments_valgrind_files/1609869765-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 409 | r | testlist <- list(end = NULL, start = NULL, x = structure(c(4.65661649758392e-10, 6.95356800386775e-310, 20113920360766767104, 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), .Dim = c(5L, 7L)), segment_end = structure(0, .Dim = c(1L, 1L)), segment_start = structure(0,... |
\name{morths}
\alias{morths}
\title{Henderson and Sheppard Mortality Dataset}
\usage{data(morths)}
\format{
Data frame with age, n and number of deaths.
}
\description{
Observed mortality for 55 to 99.
}
\source{
Henderson and Sheppard (1919).
}
\references{
Henderson, R. and Sheppard, H. N. (1919). Graduation ... | /man/morths.Rd | no_license | cran/locfit | R | false | false | 414 | rd | \name{morths}
\alias{morths}
\title{Henderson and Sheppard Mortality Dataset}
\usage{data(morths)}
\format{
Data frame with age, n and number of deaths.
}
\description{
Observed mortality for 55 to 99.
}
\source{
Henderson and Sheppard (1919).
}
\references{
Henderson, R. and Sheppard, H. N. (1919). Graduation ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.