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
#' all_identical #' #' Checks if an aspect is identical for all elements in a nested list. The aspect is specified by \code{fun}, e.g. `[[`, followed by the element name to compare. #' #' @param x A nested list of objects. #' @param fun Function used to extract information of each element of \code{x}. #' @param ... Fur...
/release/flashlight/R/all_identical.R
no_license
minghao2016/flashlight
R
false
false
755
r
#' all_identical #' #' Checks if an aspect is identical for all elements in a nested list. The aspect is specified by \code{fun}, e.g. `[[`, followed by the element name to compare. #' #' @param x A nested list of objects. #' @param fun Function used to extract information of each element of \code{x}. #' @param ... Fur...
\name{summary.StabilityReport} \alias{summary.StabilityReport} \title{Print a summary of the stability of an undividual clustering under perturbation.} \usage{ \method{summary}{StabilityReport} (object, ...) } \arguments{ \item{object}{A StabilityReport object, as given by an output of perturbationStability.} ...
/easystab/man/summary.StabilityReport.Rd
no_license
hoytak/easystab
R
false
false
574
rd
\name{summary.StabilityReport} \alias{summary.StabilityReport} \title{Print a summary of the stability of an undividual clustering under perturbation.} \usage{ \method{summary}{StabilityReport} (object, ...) } \arguments{ \item{object}{A StabilityReport object, as given by an output of perturbationStability.} ...
rm(list=ls(all=TRUE)) # clear workspace graphics.off() # close any open graphics closeAllConnections() # close any open connections to files #--------------------------------------------------------------------------------------------------# #---------------- Load required libraries ---------------------...
/modules/assim.sequential/inst/sda_backup/bmorrison/extract_500_site_data.R
permissive
robkooper/pecan
R
false
false
11,386
r
rm(list=ls(all=TRUE)) # clear workspace graphics.off() # close any open graphics closeAllConnections() # close any open connections to files #--------------------------------------------------------------------------------------------------# #---------------- Load required libraries ---------------------...
#This script assumes that data file is in the working directory #if not use setwd() to set working directory #Read first 100 rows to initialize column classes initial <- read.table('household_power_consumption.txt', nrows = 100, header = T, sep=';') classes <- sapply(initial, class) #Read all data using column class...
/plot3.R
no_license
vilpal/ExData_Plotting1
R
false
false
1,604
r
#This script assumes that data file is in the working directory #if not use setwd() to set working directory #Read first 100 rows to initialize column classes initial <- read.table('household_power_consumption.txt', nrows = 100, header = T, sep=';') classes <- sapply(initial, class) #Read all data using column class...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spline-correlog2D.R \name{spline.correlog2D} \alias{spline.correlog2D} \title{Anisotropic nonparametric (cross-)correlation function for univariate spatial data} \usage{ spline.correlog2D( x, y, z, w = NULL, df = NULL, type = "boo...
/man/spline.correlog2D.Rd
no_license
objornstad/ncf
R
false
true
3,909
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spline-correlog2D.R \name{spline.correlog2D} \alias{spline.correlog2D} \title{Anisotropic nonparametric (cross-)correlation function for univariate spatial data} \usage{ spline.correlog2D( x, y, z, w = NULL, df = NULL, type = "boo...
# Import the excel data into R library(readxl) StockMarketData2020 <- read_excel("StockMarketData2020.xlsx", sheet = "StockVsApprovalRating", range = "B1:C122") View(StockMarketData2020) # Generate a scatterplot comparing approv...
/Approval_Rating_Vs_S&P500_Index.R
no_license
DataFest-Reform/DataFest-Repo
R
false
false
928
r
# Import the excel data into R library(readxl) StockMarketData2020 <- read_excel("StockMarketData2020.xlsx", sheet = "StockVsApprovalRating", range = "B1:C122") View(StockMarketData2020) # Generate a scatterplot comparing approv...
# Assignment: ASSIGNMENT 2 # Name: Patkhedkar, Ninad # Date: 2020-09-10 ## Check your current working directory using `getwd()` getwd() ## List the contents of the working directory with the `dir()` function dir() ## If the current directory does not contain the `data` directory, set the ## working directory to proj...
/completed/assignment02/assignment_02_PatkhedkarNinad.R
permissive
ninadcpa/dsc520
R
false
false
3,962
r
# Assignment: ASSIGNMENT 2 # Name: Patkhedkar, Ninad # Date: 2020-09-10 ## Check your current working directory using `getwd()` getwd() ## List the contents of the working directory with the `dir()` function dir() ## If the current directory does not contain the `data` directory, set the ## working directory to proj...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{bin_distribution} \alias{bin_distribution} \title{Distribution} \usage{ bin_distribution(trials, prob) } \arguments{ \item{trials}{number of trials (single value)} \item{prob}{probability of success} } \value{ Data frame with su...
/workout03/binomial/man/bin_distribution.Rd
no_license
stat133-sp19/hw-stat133-ashabest
R
false
true
538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.R \name{bin_distribution} \alias{bin_distribution} \title{Distribution} \usage{ bin_distribution(trials, prob) } \arguments{ \item{trials}{number of trials (single value)} \item{prob}{probability of success} } \value{ Data frame with su...
library(testthat) test_check("mstrio")
/data/genthat_extracted_code/mstrio/tests/testthat.R
no_license
surayaaramli/typeRrh
R
false
false
39
r
library(testthat) test_check("mstrio")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/splitCH.R \name{splitCH} \alias{collapseCH} \alias{splitCH} \title{Split/collapse capture histories} \usage{ splitCH(x="ch", data=NULL, prefix="Time") collapseCH(chmat=NULL, data=NULL, prefix="Time", collapse="") } \argum...
/marked/man/splitCH.Rd
no_license
pconn/marked
R
false
true
1,815
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/splitCH.R \name{splitCH} \alias{collapseCH} \alias{splitCH} \title{Split/collapse capture histories} \usage{ splitCH(x="ch", data=NULL, prefix="Time") collapseCH(chmat=NULL, data=NULL, prefix="Time", collapse="") } \argum...
# Copyright 2001-10 by Roger Bivand # is.symmetric.nb <- function(nb, verbose=NULL, force=FALSE) { if(!inherits(nb, "nb")) stop("Not neighbours list") if (is.null(verbose)) verbose <- get("verbose", envir = .spdepOptions) stopifnot(is.logical(verbose)) nbsym <- attr(nb, "sym") if(!is.null(nbsym)) ...
/R/weights-utils.R
no_license
r-spatial/spdep
R
false
false
4,736
r
# Copyright 2001-10 by Roger Bivand # is.symmetric.nb <- function(nb, verbose=NULL, force=FALSE) { if(!inherits(nb, "nb")) stop("Not neighbours list") if (is.null(verbose)) verbose <- get("verbose", envir = .spdepOptions) stopifnot(is.logical(verbose)) nbsym <- attr(nb, "sym") if(!is.null(nbsym)) ...
library('sense') # LOAD # Load Data, training and test # --------- # about 16.9M million rows total columns = c('integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', ...
/kaggle-display-ad/further.R
permissive
ryanswanstrom/Sense.io-Projects
R
false
false
5,697
r
library('sense') # LOAD # Load Data, training and test # --------- # about 16.9M million rows total columns = c('integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', 'integer', ...
#C.diffusa expression - time course #2/16/15 #based on Gillespie et al., 2010. Github repo at https://github.com/csgillespie/bmc-microarray #can't handle complex model structure, with Origin and Trt???? #or seems to be more about identifying differentially expressed genes, which I've already done with lme4 source("ht...
/draft_code_figures/Cdif_expr_timecoursepkg.R
no_license
kgturner/Cdiff_expression
R
false
false
1,850
r
#C.diffusa expression - time course #2/16/15 #based on Gillespie et al., 2010. Github repo at https://github.com/csgillespie/bmc-microarray #can't handle complex model structure, with Origin and Trt???? #or seems to be more about identifying differentially expressed genes, which I've already done with lme4 source("ht...
library(caret) library(gbm) set.seed(3433) library(AppliedPredictiveModeling) data(AlzheimerDisease) adData = data.frame(diagnosis,predictors) inTrain = createDataPartition(adData$diagnosis, p = 3/4)[[1]] training = adData[ inTrain,] testing = adData[-inTrain,] # Set the seed to 62433 and predict diagnosis with all th...
/2.R
no_license
jsihota/PracticalMachineLearning
R
false
false
1,610
r
library(caret) library(gbm) set.seed(3433) library(AppliedPredictiveModeling) data(AlzheimerDisease) adData = data.frame(diagnosis,predictors) inTrain = createDataPartition(adData$diagnosis, p = 3/4)[[1]] training = adData[ inTrain,] testing = adData[-inTrain,] # Set the seed to 62433 and predict diagnosis with all th...
# # s3-sparsebnFit.R # sparsebnUtils # # Created by Bryon Aragam (local) on 1/22/16. # Copyright (c) 2014-2016 Bryon Aragam. All rights reserved. # #------------------------------------------------------------------------------# # sparsebnFit S3 Class for R #--------------------------------------------------------...
/R/s3-sparsebnFit.R
no_license
gujyjean/sparsebnUtils
R
false
false
10,660
r
# # s3-sparsebnFit.R # sparsebnUtils # # Created by Bryon Aragam (local) on 1/22/16. # Copyright (c) 2014-2016 Bryon Aragam. All rights reserved. # #------------------------------------------------------------------------------# # sparsebnFit S3 Class for R #--------------------------------------------------------...
test_that("lolliplot_mutationObs correctly removes input variants annotated as within an intron", { x <- data.frame(gene=c("TP53", "TP53"), amino_acid_change=c('e0+2', 'p.K101N'), transcript_name=c("ENST00000269305", "ENST00000269305")) expect_message(lolliplot_mutationObs(x, ...
/tests/testthat/test-lolliplot_mutationObs.R
permissive
pradyumnasagar/GenVisR
R
false
false
4,824
r
test_that("lolliplot_mutationObs correctly removes input variants annotated as within an intron", { x <- data.frame(gene=c("TP53", "TP53"), amino_acid_change=c('e0+2', 'p.K101N'), transcript_name=c("ENST00000269305", "ENST00000269305")) expect_message(lolliplot_mutationObs(x, ...
library(metaBLUE) ### Name: Wan.std ### Title: Wan et al.'s standard deviation estimators ### Aliases: Wan.std ### ** Examples X<-c(1,4,10) n<-30 type<-"S1" Wan.std(X,n,type)
/data/genthat_extracted_code/metaBLUE/examples/Wan.std.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
182
r
library(metaBLUE) ### Name: Wan.std ### Title: Wan et al.'s standard deviation estimators ### Aliases: Wan.std ### ** Examples X<-c(1,4,10) n<-30 type<-"S1" Wan.std(X,n,type)
## Compare emissions from motor vehicle sources in Baltimore City with emissions ## from motor vehicle sources in Los Angeles County, California (fips == "06037"). ## Which city has seen greater changes over time in motor vehicle emissions? ## My dir for this assignment setwd("~/Coursera/DS Repo/EDAProject2/") ## We...
/plot6.R
no_license
TaikiSan21/EDAProject2
R
false
false
1,725
r
## Compare emissions from motor vehicle sources in Baltimore City with emissions ## from motor vehicle sources in Los Angeles County, California (fips == "06037"). ## Which city has seen greater changes over time in motor vehicle emissions? ## My dir for this assignment setwd("~/Coursera/DS Repo/EDAProject2/") ## We...
entsoe_create_url_folders <- function(){ # req <- suppressWarnings(httr::GET(url = "sftp://sftp-transparency.entsoe.eu/TP_export/", # httr::authenticate(user = Sys.getenv("ENTSOE_USER"), password = Sys.getenv("ENTSOE_PASSWORD")))) h <- curl::new_handle() curl::handle_setopt(...
/R/entsoe_create_url.R
no_license
krose/entsoeftp
R
false
false
2,444
r
entsoe_create_url_folders <- function(){ # req <- suppressWarnings(httr::GET(url = "sftp://sftp-transparency.entsoe.eu/TP_export/", # httr::authenticate(user = Sys.getenv("ENTSOE_USER"), password = Sys.getenv("ENTSOE_PASSWORD")))) h <- curl::new_handle() curl::handle_setopt(...
fi = "fdg.dyn" fa = "Attn" faq = "FDG.acqtimes90" tx = matrix(scan(faq,skip=2), ncol=2, byrow=T) x = readBin(fa, n=128*128*35, numeric(), endian="big", size = 8) length(x)/(128*128*35) x = matrix(x,ncol=35) dim(x) par(mfrow=c(3,3)) for(j in 1:9){ k=j*3 u = matrix(x[,k],ncol=128) gs=grey(c(0:128)/128) v=u fo...
/R/brainTumor.r
no_license
praveer-k/sample_code
R
false
false
382
r
fi = "fdg.dyn" fa = "Attn" faq = "FDG.acqtimes90" tx = matrix(scan(faq,skip=2), ncol=2, byrow=T) x = readBin(fa, n=128*128*35, numeric(), endian="big", size = 8) length(x)/(128*128*35) x = matrix(x,ncol=35) dim(x) par(mfrow=c(3,3)) for(j in 1:9){ k=j*3 u = matrix(x[,k],ncol=128) gs=grey(c(0:128)/128) v=u fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getPageSpeedData.R \name{getPageSpeedData} \alias{getPageSpeedData} \title{Get Page Speed results} \usage{ getPageSpeedData(server, testId, run = 1L, repeatView = FALSE, dryRun = FALSE, ...) } \arguments{ \item{server}{A WebPagetest server}...
/man/getPageSpeedData.Rd
permissive
johndharrison/webpagetestr
R
false
true
1,158
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getPageSpeedData.R \name{getPageSpeedData} \alias{getPageSpeedData} \title{Get Page Speed results} \usage{ getPageSpeedData(server, testId, run = 1L, repeatView = FALSE, dryRun = FALSE, ...) } \arguments{ \item{server}{A WebPagetest server}...
#' Diagnostic plots for a fit to the Generalized Pareto distribution #' #' Allows calling of a 2x2 diagnostic plot, different plots available for #' stationary vs non-stationary models. #' The extension from EVA allows for direct calling to gpd.diag and plots #' produced. Additionally, it exposes the individual plots f...
/R/gpddiag.R
no_license
K-Molloy/tevt
R
false
false
6,783
r
#' Diagnostic plots for a fit to the Generalized Pareto distribution #' #' Allows calling of a 2x2 diagnostic plot, different plots available for #' stationary vs non-stationary models. #' The extension from EVA allows for direct calling to gpd.diag and plots #' produced. Additionally, it exposes the individual plots f...
# The ui.R file creates the user interface of the Shiny App. # This Shiny App was written by Kasun Buddika to distribute data from Buddika et al., 2021. ## Load required libraries library(DT) library(ggiraph) library(tidyverse) library(shinycustomloader) library(shinythemes) navbarPage( theme = shinytheme("sandston...
/shinyApp/ui.R
no_license
jkkbuddika/buddika_2021_analysis
R
false
false
6,328
r
# The ui.R file creates the user interface of the Shiny App. # This Shiny App was written by Kasun Buddika to distribute data from Buddika et al., 2021. ## Load required libraries library(DT) library(ggiraph) library(tidyverse) library(shinycustomloader) library(shinythemes) navbarPage( theme = shinytheme("sandston...
\name{circlize-package} \alias{circlize-package} \docType{package} \title{ Circular layout in R } \description{ Circular layout in R } \details{ This package aims to implement circular layout in R. Since most of the figures are composed of points, lines and polygons, we just need to implement fu...
/man/circlize-package.rd
no_license
LionelGeo/circlize
R
false
false
2,519
rd
\name{circlize-package} \alias{circlize-package} \docType{package} \title{ Circular layout in R } \description{ Circular layout in R } \details{ This package aims to implement circular layout in R. Since most of the figures are composed of points, lines and polygons, we just need to implement fu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MCMC_IV_Normal_DPM.R \name{mcmcRun_Normal_DPM} \alias{mcmcRun_Normal_DPM} \title{mcmcRun_Normal_DPM: MCMC sampler for IV Analysis with Dirichlet process mixture prior on the errors and Normal prior on the latent factors} \usage{ mcmcRun...
/man/mcmcRun_Normal_DPM.Rd
no_license
SamAdhikari/BayesIV_0.1
R
false
true
1,361
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MCMC_IV_Normal_DPM.R \name{mcmcRun_Normal_DPM} \alias{mcmcRun_Normal_DPM} \title{mcmcRun_Normal_DPM: MCMC sampler for IV Analysis with Dirichlet process mixture prior on the errors and Normal prior on the latent factors} \usage{ mcmcRun...
#' Simulates Fertilizer response to a nitrogen application #' #' \code{fert_response} Takes a vector of pixel parameters. More details in yield_response_fit.Rmd #' #' @param N_kgha applied Nitrogen #' @param year 2017=1 #' @param intercrop Binary #' @param rotat1 Crop rotation, binary #' @param manure Binary #' @param ...
/code/yield_response.R
no_license
spalmas/Ex-Ante
R
false
false
3,658
r
#' Simulates Fertilizer response to a nitrogen application #' #' \code{fert_response} Takes a vector of pixel parameters. More details in yield_response_fit.Rmd #' #' @param N_kgha applied Nitrogen #' @param year 2017=1 #' @param intercrop Binary #' @param rotat1 Crop rotation, binary #' @param manure Binary #' @param ...
knit_r2deck <- function(options) { args <- list( script = options$code, data = options$data, lng = options$lng, lat = options$lat, zoom = options$zoom, pitch = options$pitch, map_style = options$map_style, options = options$options, width = options$width, height = options$heigh...
/R/knit.R
permissive
crazycapivara/r2deck
R
false
false
658
r
knit_r2deck <- function(options) { args <- list( script = options$code, data = options$data, lng = options$lng, lat = options$lat, zoom = options$zoom, pitch = options$pitch, map_style = options$map_style, options = options$options, width = options$width, height = options$heigh...
#' Shore Stations Program SIO Pier Water Temperature #' #' Daily sea-surface temperature measurements, collected and provided by the Shore Stations Program, La Jolla CA, 1916 - May 2019 #' #' @source {Shore Stations Program. 2019. Daily sea-surface temperature measurements, collected and provided by the Shore Stations ...
/R/cce_watertemp_doc.R
permissive
karenezhao/alohakz
R
false
false
584
r
#' Shore Stations Program SIO Pier Water Temperature #' #' Daily sea-surface temperature measurements, collected and provided by the Shore Stations Program, La Jolla CA, 1916 - May 2019 #' #' @source {Shore Stations Program. 2019. Daily sea-surface temperature measurements, collected and provided by the Shore Stations ...
############################################################################### # GSMA sample plot ############################################################################### library(dplyr) library(ggplot2) source('read-GSMA.R') pa <- c('Ethiopia','Ghana','Kenya','Liberia','Malawi','Nigeria','Rwanda', 'Se...
/gsma_plot.R
no_license
ccjolley/pay-go-solar
R
false
false
901
r
############################################################################### # GSMA sample plot ############################################################################### library(dplyr) library(ggplot2) source('read-GSMA.R') pa <- c('Ethiopia','Ghana','Kenya','Liberia','Malawi','Nigeria','Rwanda', 'Se...
context("test-pivot-long") test_that("can pivot all cols to long", { df <- tibble(x = 1:2, y = 3:4) pv <- pivot_longer(df, x:y) expect_named(pv, c("name", "value")) expect_equal(pv$name, rep(names(df), 2)) expect_equal(pv$value, c(1, 3, 2, 4)) }) test_that("values interleaved correctly", { df <- tibble( ...
/tests/testthat/test-pivot-long.R
permissive
SimonCoulombe/tidyr
R
false
false
4,512
r
context("test-pivot-long") test_that("can pivot all cols to long", { df <- tibble(x = 1:2, y = 3:4) pv <- pivot_longer(df, x:y) expect_named(pv, c("name", "value")) expect_equal(pv$name, rep(names(df), 2)) expect_equal(pv$value, c(1, 3, 2, 4)) }) test_that("values interleaved correctly", { df <- tibble( ...
library(shiny) library(ggplot2) library(dplyr) library(stringr) library(shinyWidgets) #Importing the CSV data data <- read.csv(file = "data/winemag-data_first150k.csv") # Define UI for app that draws a histogram ---- # User interface ---- ui <- fluidPage(theme = "style.css", titlePanel("Wines of the World"), ...
/app/App.R
no_license
STAT360/finalproject-group-of-two
R
false
false
3,729
r
library(shiny) library(ggplot2) library(dplyr) library(stringr) library(shinyWidgets) #Importing the CSV data data <- read.csv(file = "data/winemag-data_first150k.csv") # Define UI for app that draws a histogram ---- # User interface ---- ui <- fluidPage(theme = "style.css", titlePanel("Wines of the World"), ...
\name{checkFileCopyDefault} \alias{checkFileCopyDefault} \title{checkFileCopyDefault} \usage{ checkFileCopyDefault(fname) } \arguments{ \item{fname}{The path of the file to be checked.} } \value{ string, the file name. } \description{ Checks if a file exists. If it doesn't, function checks for a default in the packag...
/man/checkFileCopyDefault.Rd
no_license
stochasticTreat/simpath
R
false
false
427
rd
\name{checkFileCopyDefault} \alias{checkFileCopyDefault} \title{checkFileCopyDefault} \usage{ checkFileCopyDefault(fname) } \arguments{ \item{fname}{The path of the file to be checked.} } \value{ string, the file name. } \description{ Checks if a file exists. If it doesn't, function checks for a default in the packag...
ui <- dashboardPage( #theme = shinytheme("slate"), dashboardHeader(title="Energy consumption", titleWidth=250), dashboardSidebar( # Sidebar panel for inputs sidebarMenu( menuItem("Graphs", tabName = "graphs", icon =icon("fas ...
/SCRIPTS/ui.R
no_license
beeleen/DashboardEneryConsumption
R
false
false
3,283
r
ui <- dashboardPage( #theme = shinytheme("slate"), dashboardHeader(title="Energy consumption", titleWidth=250), dashboardSidebar( # Sidebar panel for inputs sidebarMenu( menuItem("Graphs", tabName = "graphs", icon =icon("fas ...
sampling <- dbGetQuery(link$conn, "SELECT * FROM data_sampling WHERE seasonal IS TRUE;") sampling <- sampling[order(sampling[['start_date']]),] season_kmeans <- kmeans(x=sampling$start_julian_day, centers=c(90,15,280,350)) row_cluster <- season_kmeans[['cluster']] cluster_centers <- season_kmeans[['centers']] season_f...
/import_stage/calculate_season_breaks.R
no_license
sakrejda/westbrook-data
R
false
false
1,563
r
sampling <- dbGetQuery(link$conn, "SELECT * FROM data_sampling WHERE seasonal IS TRUE;") sampling <- sampling[order(sampling[['start_date']]),] season_kmeans <- kmeans(x=sampling$start_julian_day, centers=c(90,15,280,350)) row_cluster <- season_kmeans[['cluster']] cluster_centers <- season_kmeans[['centers']] season_f...
#@ https://cran.r-project.org/web/packages/GA/vignettes/GA.html library(GA) # Function optimisation in one dimension f <- function(x) (x^2+x)*cos(x) lbound <- -10; ubound <- 10 #The GA search process can be visualised by defining a monitoring function as follows: monitor <- function(obj) { curve(f, from = lbound, ...
/AI/R/GeneticAlgorithms/OneDimensionFOptim.R
permissive
FedeScience/myrepo
R
false
false
726
r
#@ https://cran.r-project.org/web/packages/GA/vignettes/GA.html library(GA) # Function optimisation in one dimension f <- function(x) (x^2+x)*cos(x) lbound <- -10; ubound <- 10 #The GA search process can be visualised by defining a monitoring function as follows: monitor <- function(obj) { curve(f, from = lbound, ...
# Create function to count the number of respondents on each level of the subgroup # and exclude levels where the level has less than 30 respondent in it filter_subgroup_levels <- function(df, subvar_name) { subvar_name <- dplyr::sym(subvar_name) df %>% filter(!is.na(!!subvar_name)) %>% count(!!subvar_n...
/R/filter_subgroup_levels.R
no_license
marton-balazs-kovacs/HomeOffice
R
false
false
351
r
# Create function to count the number of respondents on each level of the subgroup # and exclude levels where the level has less than 30 respondent in it filter_subgroup_levels <- function(df, subvar_name) { subvar_name <- dplyr::sym(subvar_name) df %>% filter(!is.na(!!subvar_name)) %>% count(!!subvar_n...
rm(list = ls()) #Clean the Global Environment cat ("\014") #Clean the R console if (is.null(dev.list()) == FALSE) dev.off() #Clean Plots load("HLMbook.Rdata"); # Instead of running R code to read Hsb82 dataset # I read it once, sav...
/04_full model.R
no_license
avi-kluger/rHLMworkshop
R
false
false
942
r
rm(list = ls()) #Clean the Global Environment cat ("\014") #Clean the R console if (is.null(dev.list()) == FALSE) dev.off() #Clean Plots load("HLMbook.Rdata"); # Instead of running R code to read Hsb82 dataset # I read it once, sav...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PolyHaplotyper.R \name{read.SATlotyper.output} \alias{read.SATlotyper.output} \title{read the haplotyping results from the SATlotyper output} \usage{ read.SATlotyper.output(fname, output="", allelecodes=c("A", "B"), sep, haploblockname="") } ...
/man/read.SATlotyper.output.Rd
no_license
cran/PolyHaplotyper
R
false
true
2,262
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PolyHaplotyper.R \name{read.SATlotyper.output} \alias{read.SATlotyper.output} \title{read the haplotyping results from the SATlotyper output} \usage{ read.SATlotyper.output(fname, output="", allelecodes=c("A", "B"), sep, haploblockname="") } ...
\name{regions} \alias{regions} \docType{data} \title{ Example data for \code{\link{plotVariants}} } \description{ This data.frame is part of the vignette example of the \code{\link{plotVariants}} function. It has the columns "name", "start", "end" and "color". The plot will highlight these regions w...
/man/regions.Rd
no_license
huklein/R453Plus1Toolbox
R
false
false
510
rd
\name{regions} \alias{regions} \docType{data} \title{ Example data for \code{\link{plotVariants}} } \description{ This data.frame is part of the vignette example of the \code{\link{plotVariants}} function. It has the columns "name", "start", "end" and "color". The plot will highlight these regions w...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/learning.R \name{\%at\%} \alias{\%at\%} \title{Evaluate expression x in envAns environment} \usage{ x \%at\% envAns } \arguments{ \item{x}{expressions contained by {}} \item{envAns}{an environment} } \value{ } \description{ Evaluate express...
/man/grapes-at-grapes.Rd
permissive
tpemartin/econDS
R
false
true
368
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/learning.R \name{\%at\%} \alias{\%at\%} \title{Evaluate expression x in envAns environment} \usage{ x \%at\% envAns } \arguments{ \item{x}{expressions contained by {}} \item{envAns}{an environment} } \value{ } \description{ Evaluate express...
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/catalogo/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polin...
/catalogo/mzfre_desyer.R
no_license
laparcela/modelo_red_booleana_milpa_rafa
R
false
false
1,694
r
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/catalogo/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polin...
\name{catnames} \alias{catnames} \title{Get all category names (titles).} \usage{ catnames() } \value{ A character vector of category names } \description{ Get all category names (titles). } \examples{ category.names <- catnames() } \author{ Joona Lehtomaki <joona.lehtomaki@gmail.com> } \keyword{avoindata,} \ke...
/man/catnames.Rd
no_license
louhos/radnet
R
false
false
339
rd
\name{catnames} \alias{catnames} \title{Get all category names (titles).} \usage{ catnames() } \value{ A character vector of category names } \description{ Get all category names (titles). } \examples{ category.names <- catnames() } \author{ Joona Lehtomaki <joona.lehtomaki@gmail.com> } \keyword{avoindata,} \ke...
install.packages("blogdown") blogdown::install_hugo() blogdown::new_site(theme="nurlansu/hugo-sustain") blogdown::serve_site()
/Project 3 RScript.R
no_license
Josh-Goh/Website2.0
R
false
false
129
r
install.packages("blogdown") blogdown::install_hugo() blogdown::new_site(theme="nurlansu/hugo-sustain") blogdown::serve_site()
CreateFormula <- function(data, i, covariable=NULL) { if(length(covariable)==0) { fmla <- as.formula(data[,1] ~ data[,i]); return(fmla) } else { covname <- colnames(covariable) fmla <- as.formula(paste("data[,1] ~ data[,i] + ", paste(covname, collapse= "+"))) } return(fmla) }
/globalGSA/R/CreateFormula.R
no_license
ingted/R-Examples
R
false
false
295
r
CreateFormula <- function(data, i, covariable=NULL) { if(length(covariable)==0) { fmla <- as.formula(data[,1] ~ data[,i]); return(fmla) } else { covname <- colnames(covariable) fmla <- as.formula(paste("data[,1] ~ data[,i] + ", paste(covname, collapse= "+"))) } return(fmla) }
testlist <- list(A = structure(c(1.38997190093006e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613126467-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
226
r
testlist <- list(A = structure(c(1.38997190093006e-309, 3.81575932257023e-236, 3.81571422914747e-236), .Dim = c(1L, 3L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(magrittr) library(stringr) library(plyr) library(dplyr) library(tidyr) library(data.table) library(httr) library(xml2) library(mlr) shiny...
/server.R
no_license
BonnyRead/checkingsystem
R
false
false
6,917
r
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(magrittr) library(stringr) library(plyr) library(dplyr) library(tidyr) library(data.table) library(httr) library(xml2) library(mlr) shiny...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggs_graph.R \name{ggs_graph} \alias{ggs_graph} \title{Construct a gene-geneset-graph} \usage{ ggs_graph( res_enrich, res_de, annotation_obj = NULL, gtl = NULL, n_gs = 15, gs_ids = NULL, prettify = TRUE, geneset_graph_color = "...
/man/ggs_graph.Rd
permissive
federicomarini/GeneTonic
R
false
true
3,530
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggs_graph.R \name{ggs_graph} \alias{ggs_graph} \title{Construct a gene-geneset-graph} \usage{ ggs_graph( res_enrich, res_de, annotation_obj = NULL, gtl = NULL, n_gs = 15, gs_ids = NULL, prettify = TRUE, geneset_graph_color = "...
context("TrainLog") logGenerator = function(outputs = 0, warnings = 0, messages = 0, error = FALSE) { lapply(seq_len(outputs), function(x) print(gcat("output {x}"))) lapply(seq_len(warnings), function(x) gwarn("warning {x}")) lapply(seq_len(messages), function(x) gmessage("messages {x}")) if (error) ...
/tests/testthat/test_TrainLog.R
no_license
mlr-archive/mlrng
R
false
false
1,333
r
context("TrainLog") logGenerator = function(outputs = 0, warnings = 0, messages = 0, error = FALSE) { lapply(seq_len(outputs), function(x) print(gcat("output {x}"))) lapply(seq_len(warnings), function(x) gwarn("warning {x}")) lapply(seq_len(messages), function(x) gmessage("messages {x}")) if (error) ...
testlist <- list(mu = 8.32200745039414e-316, var = 0) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
/metafolio/inst/testfiles/est_beta_params/libFuzzer_est_beta_params/est_beta_params_valgrind_files/1612987438-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
121
r
testlist <- list(mu = 8.32200745039414e-316, var = 0) result <- do.call(metafolio:::est_beta_params,testlist) str(result)
#' OpenAPI Petstore #' #' This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. #' #' The version of the OpenAPI document: 1.0.0 #' Generated by: https://openapi-generator.tech #' #' @docType class #' @title Pet operations #' @description PetA...
/samples/client/petstore/R-httr2/R/pet_api.R
permissive
OpenAPITools/openapi-generator
R
false
false
73,492
r
#' OpenAPI Petstore #' #' This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. #' #' The version of the OpenAPI document: 1.0.0 #' Generated by: https://openapi-generator.tech #' #' @docType class #' @title Pet operations #' @description PetA...
ns_tags_import <- c('import', 'importFrom', 'importClassesFrom', 'importMethodsFrom', 'useDynLib', 'rawNamespace') ns_tags_export <- c('export', 'exportClass', 'exportMethod', 'exportPattern', 'S3method') ns_tags <- c(ns_tags_import, ns_tags_export, 'evalNamespace') #' Roclet: make `NAMESPACE` #' #' @description #' Th...
/R/namespace.R
no_license
mlindsk/roxygen2
R
false
false
7,146
r
ns_tags_import <- c('import', 'importFrom', 'importClassesFrom', 'importMethodsFrom', 'useDynLib', 'rawNamespace') ns_tags_export <- c('export', 'exportClass', 'exportMethod', 'exportPattern', 'S3method') ns_tags <- c(ns_tags_import, ns_tags_export, 'evalNamespace') #' Roclet: make `NAMESPACE` #' #' @description #' Th...
#rm(list = ls()) #setwd("Z:/Practicum/HW4") time <- proc.time() load("predictors.Rdata") library(gstat) library(fields) library(maps) library(mvtnorm) #library(base) library(car) library(sn) #time: hours = 6.35 #Only looking at the first 16 temperature levels, i.e. Twb.prof[,1:16] ###################################...
/Base_skewt_classification.R
no_license
sujchelpark/Spatial_Project_2016
R
false
false
22,147
r
#rm(list = ls()) #setwd("Z:/Practicum/HW4") time <- proc.time() load("predictors.Rdata") library(gstat) library(fields) library(maps) library(mvtnorm) #library(base) library(car) library(sn) #time: hours = 6.35 #Only looking at the first 16 temperature levels, i.e. Twb.prof[,1:16] ###################################...
getOncoPlot = function(maf, genes, removeNonMutated = FALSE, colors = NULL, showGenes = TRUE, left = FALSE, showTumorSampleBarcodes = FALSE, hmName = hmName, fs = 10, gfs = 10, tfs = 12, clinicalFeatures = NULL, annotationColor = NULL, keepGeneOrder...
/R/getOncoPlot.R
permissive
harvek12/maftools
R
false
false
13,475
r
getOncoPlot = function(maf, genes, removeNonMutated = FALSE, colors = NULL, showGenes = TRUE, left = FALSE, showTumorSampleBarcodes = FALSE, hmName = hmName, fs = 10, gfs = 10, tfs = 12, clinicalFeatures = NULL, annotationColor = NULL, keepGeneOrder...
asm_TopPeakSelector <- function(x,MF1){ a = strsplit(x[[1]][1],";")[[1]] b = length(a) mz = numeric(b); ab = numeric(b) for(i in 1:b){ c = strsplit(a[i]," ")[[1]]; d = length(c); if(d>1){ mz[i] = as.numeric(strsplit(a[i]," ")[[1]][d-1]); ab[i] = as.numeric(strsplit(a[i]," ...
/shiny/Functions/asm-TopPeaksSelector.R
permissive
asm3-nist/FentanylClassifier
R
false
false
503
r
asm_TopPeakSelector <- function(x,MF1){ a = strsplit(x[[1]][1],";")[[1]] b = length(a) mz = numeric(b); ab = numeric(b) for(i in 1:b){ c = strsplit(a[i]," ")[[1]]; d = length(c); if(d>1){ mz[i] = as.numeric(strsplit(a[i]," ")[[1]][d-1]); ab[i] = as.numeric(strsplit(a[i]," ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ens_probabilities.R \name{ens_probabilities} \alias{ens_probabilities} \title{Compute probabilities of threshold exceedence for ensemble forecasts} \usage{ ens_probabilities(.fcst, thresholds, parameter = NULL) } \arguments{ \item{.fcst}{A \c...
/man/ens_probabilities.Rd
permissive
mpartio/harpPoint
R
false
true
1,051
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ens_probabilities.R \name{ens_probabilities} \alias{ens_probabilities} \title{Compute probabilities of threshold exceedence for ensemble forecasts} \usage{ ens_probabilities(.fcst, thresholds, parameter = NULL) } \arguments{ \item{.fcst}{A \c...
#' Wrapper function for waterBalance function #' #' This function will grab inputs from CE-QUAL-W2 model (w2_con.npt file), lookup filenames, and then use them as input to the waterBalance function within the w2r package. #' #' @param path, # path to model #' @param wd, # Generic path to find functions #' @param...
/R/readW2ConInOut.r
no_license
waternk/w2r
R
false
false
7,140
r
#' Wrapper function for waterBalance function #' #' This function will grab inputs from CE-QUAL-W2 model (w2_con.npt file), lookup filenames, and then use them as input to the waterBalance function within the w2r package. #' #' @param path, # path to model #' @param wd, # Generic path to find functions #' @param...
######################## ### ### Leonard Mada ### [the one and only] ### ### Polynomial Systems: S4 ### Heterogeneous Symmetric ### Leading 1, NL Mixed: V3 ### ### draft v.0.1f-Special ### Type L1 NLm V3 # - Leading: 1 var; # - Non-Leading / Side-Chain: Mixed, 3 vars; ### Subtypes: # V3a: x1^n + b*x...
/Math/Poly.System.Hetero.Symmetric.S4.L1V3.R
no_license
discoleo/R
R
false
false
18,730
r
######################## ### ### Leonard Mada ### [the one and only] ### ### Polynomial Systems: S4 ### Heterogeneous Symmetric ### Leading 1, NL Mixed: V3 ### ### draft v.0.1f-Special ### Type L1 NLm V3 # - Leading: 1 var; # - Non-Leading / Side-Chain: Mixed, 3 vars; ### Subtypes: # V3a: x1^n + b*x...
{ library(dplyr) library(forecast) library(prophet) library(xgboost) library(caret) library(car) library(tidymodels) library(parsnip) library(Rcpp) library(lubridate) library(ggplot2) } ######Getting and setting Directory##### getwd() setwd("C:/Users/ASUS/Desktop/Project/Datasets") ...
/XGBOOST ETC.R
no_license
lokeshrajdn/Prediction-of-Forked-Cryptocurrency-Prices-
R
false
false
5,160
r
{ library(dplyr) library(forecast) library(prophet) library(xgboost) library(caret) library(car) library(tidymodels) library(parsnip) library(Rcpp) library(lubridate) library(ggplot2) } ######Getting and setting Directory##### getwd() setwd("C:/Users/ASUS/Desktop/Project/Datasets") ...
\name{createCellStyle-methods} \docType{methods} \alias{createCellStyle} \alias{createCellStyle-methods} \alias{createCellStyle,workbook,character-method} \alias{createCellStyle,workbook,missing-method} \title{Creating custom named and anonymous cell styles} \description{ Creates a custom named or anonymous \co...
/man/createCellStyle-methods.Rd
no_license
GSuvorov/xlconnect
R
false
false
3,773
rd
\name{createCellStyle-methods} \docType{methods} \alias{createCellStyle} \alias{createCellStyle-methods} \alias{createCellStyle,workbook,character-method} \alias{createCellStyle,workbook,missing-method} \title{Creating custom named and anonymous cell styles} \description{ Creates a custom named or anonymous \co...
##' @export `information` <- function(x,...) UseMethod("information") ###{{{ information.lvm ##' @export information.lvm <- function(x,p,n,type=ifelse(model=="gaussian", c("E","hessian","varS","outer","sandwich","robust","num"),"outer"), data,weight=NULL...
/lava/R/information.R
no_license
ingted/R-Examples
R
false
false
7,579
r
##' @export `information` <- function(x,...) UseMethod("information") ###{{{ information.lvm ##' @export information.lvm <- function(x,p,n,type=ifelse(model=="gaussian", c("E","hessian","varS","outer","sandwich","robust","num"),"outer"), data,weight=NULL...
#!/usr/bin/env Rscript # 2016/05/07 # bosh liu # durga # compare 9052004 and 9052004_dase # libraries: library(GGally) source('utils.R') # paths: count_matrix_filename = '../processed_data/030_read_htseq_count/count_matrix.tsv' figure_path='../figures/030_compare_9052004_samples' if (!dir.exists(figure_path)){dir....
/misc/030_compare_9052004_samples.R
no_license
chanibravo/hcasmc_eqtl
R
false
false
1,117
r
#!/usr/bin/env Rscript # 2016/05/07 # bosh liu # durga # compare 9052004 and 9052004_dase # libraries: library(GGally) source('utils.R') # paths: count_matrix_filename = '../processed_data/030_read_htseq_count/count_matrix.tsv' figure_path='../figures/030_compare_9052004_samples' if (!dir.exists(figure_path)){dir....
testlist <- list(doy = -1.72131968218895e+83, latitude = c(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), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615828376-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
734
r
testlist <- list(doy = -1.72131968218895e+83, latitude = c(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), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.6...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vision_augment.R \name{TensorImage} \alias{TensorImage} \title{TensorImage} \usage{ TensorImage(x) } \arguments{ \item{x}{tensor} } \value{ None } \description{ TensorImage }
/man/TensorImage.Rd
permissive
Cdk29/fastai
R
false
true
253
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vision_augment.R \name{TensorImage} \alias{TensorImage} \title{TensorImage} \usage{ TensorImage(x) } \arguments{ \item{x}{tensor} } \value{ None } \description{ TensorImage }
library(shiny) runApp('U:\\natercia\\student_perf_tool')
/shiny app.R
no_license
drvalle1/student_perf_tool
R
false
false
56
r
library(shiny) runApp('U:\\natercia\\student_perf_tool')
# This will download, unzip and read the data: source("load_data.R") png(filename="plot2.png", width = 480, height = 480) plot(data$datetime, data$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power (kilowatts)") dev.off()
/plot2.R
no_license
pbauermeister/ExData_Plotting1
R
false
false
251
r
# This will download, unzip and read the data: source("load_data.R") png(filename="plot2.png", width = 480, height = 480) plot(data$datetime, data$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power (kilowatts)") dev.off()
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/basic.R \name{ez.join} \alias{ez.join} \title{mimic python join, supports vectorization, wrapper of \code{\link{paste}}} \usage{ ez.join(sep = "", ...) } \arguments{ \item{sep}{default is nothing} } \description{ mimic python join, supports v...
/man/ez.join.Rd
permissive
rmtsoa/ezmisc
R
false
true
417
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/basic.R \name{ez.join} \alias{ez.join} \title{mimic python join, supports vectorization, wrapper of \code{\link{paste}}} \usage{ ez.join(sep = "", ...) } \arguments{ \item{sep}{default is nothing} } \description{ mimic python join, supports v...
#' @title out-of-sample gradient descent #' @name osm_gradient_descent #' @description Implement gradient descent for ordinary least squares #' #' @param form A formula with the format of "Y ~ .". #' @param dat A dataframe. #' @param contrasts A list of contrasts. #' @param factor The factor to adjust beta, set defaul...
/R/osm_gradient_descent.R
no_license
Z1chenZhao/bis557
R
false
false
3,039
r
#' @title out-of-sample gradient descent #' @name osm_gradient_descent #' @description Implement gradient descent for ordinary least squares #' #' @param form A formula with the format of "Y ~ .". #' @param dat A dataframe. #' @param contrasts A list of contrasts. #' @param factor The factor to adjust beta, set defaul...
#' LinePlot for PCA (Plot) #' #' Generate a plot of 10 first variances of Principal Components. This is useful to #' determinate which are the most important components. #' #' @param data.pca a list with class "prcomp" containing all principal components #' calculated. #' @seealso CalculateVariance, plotPC #' @examp...
/R/Plots.R
no_license
castudil/RegressionLibs
R
false
false
11,350
r
#' LinePlot for PCA (Plot) #' #' Generate a plot of 10 first variances of Principal Components. This is useful to #' determinate which are the most important components. #' #' @param data.pca a list with class "prcomp" containing all principal components #' calculated. #' @seealso CalculateVariance, plotPC #' @examp...
\name{ex12.72} \alias{ex12.72} \docType{data} \title{data from exercise 12.72} \description{ The \code{ex12.72} data frame has 9 rows and 2 columns. } \format{ This data frame contains the following columns: \describe{ \item{CO}{ a numeric vector } \item{Noy}{ a numeric vector } } } ...
/man/ex12.72.Rd
no_license
dmbates/Devore6
R
false
false
484
rd
\name{ex12.72} \alias{ex12.72} \docType{data} \title{data from exercise 12.72} \description{ The \code{ex12.72} data frame has 9 rows and 2 columns. } \format{ This data frame contains the following columns: \describe{ \item{CO}{ a numeric vector } \item{Noy}{ a numeric vector } } } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PharmacoSetClass.R \name{phenoInfo<-} \alias{phenoInfo<-} \title{phenoInfo<- Generic} \usage{ phenoInfo(object, mDataType) <- value } \arguments{ \item{object}{The \code{PharmacoSet} to retrieve molecular experiment annotations from} \item{m...
/man/phenoInfo-set.Rd
no_license
Deepstatsanalysis/PharmacoGx
R
false
true
635
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PharmacoSetClass.R \name{phenoInfo<-} \alias{phenoInfo<-} \title{phenoInfo<- Generic} \usage{ phenoInfo(object, mDataType) <- value } \arguments{ \item{object}{The \code{PharmacoSet} to retrieve molecular experiment annotations from} \item{m...
# 3. Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable, # which of these four sources have seen decreases in emissions from 1999-2008 for Baltimore City? # Which have seen increases in emissions from 1999-2008? # Use the ggplot2 plotting system to make a plot answer this ...
/plot3.R
no_license
pgmsve/Exploratory-Data-Analysis-Project-2
R
false
false
1,159
r
# 3. Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable, # which of these four sources have seen decreases in emissions from 1999-2008 for Baltimore City? # Which have seen increases in emissions from 1999-2008? # Use the ggplot2 plotting system to make a plot answer this ...
# Data Collection & Data Wrangling #To check the current directory getwd() # Creating a directory dir.create("Data") # Checking for a directory file.exists("Data") # Checking for a "data" directory and creating it if it doesn't exist if (!file.exists("Data1")) { dir.create("Data1") } # E...
/Data Collection & Data Wrangling.R
no_license
Roshaan-Ul-Haque/Data-Collection-Data-Wrangling-Exercise-Solution
R
false
false
17,771
r
# Data Collection & Data Wrangling #To check the current directory getwd() # Creating a directory dir.create("Data") # Checking for a directory file.exists("Data") # Checking for a "data" directory and creating it if it doesn't exist if (!file.exists("Data1")) { dir.create("Data1") } # E...
#conclusions #1.1 maternal_deaths<-read.csv("/home/rochan/Desktop/socialcops/mortality/aggregated/compare_nag_all.csv") total=maternal_deaths[1:1,]+maternal_deaths[2:2,] total[2]="Total" #nagpur deaths in percent: nagpur_accounts_to_percent_deaths<-(maternal_deaths[1:1,3:14]/total[1:1,3:14])*100 #1.2 preg<-read.csv("/...
/analysis.R
no_license
RochanMehrotra/Nagpur_NRHM-Analysis
R
false
false
2,131
r
#conclusions #1.1 maternal_deaths<-read.csv("/home/rochan/Desktop/socialcops/mortality/aggregated/compare_nag_all.csv") total=maternal_deaths[1:1,]+maternal_deaths[2:2,] total[2]="Total" #nagpur deaths in percent: nagpur_accounts_to_percent_deaths<-(maternal_deaths[1:1,3:14]/total[1:1,3:14])*100 #1.2 preg<-read.csv("/...
library(RJSONIO) library(RCurl) url <- 'http://api.recordedfuture.com/ws/rfq/instances?q=' load_query <- function(filename) { f <- file(filename, "r") lines <- paste(readLines(f), collapse='\n') close(f) fromJSON(lines) } run_agg_query <- function(q) { jsonq <- toJSON(q) opts <- curlOptions(header = FALSE, c...
/R-examples/rtrader/rfapi.R
no_license
reggiev/api
R
false
false
841
r
library(RJSONIO) library(RCurl) url <- 'http://api.recordedfuture.com/ws/rfq/instances?q=' load_query <- function(filename) { f <- file(filename, "r") lines <- paste(readLines(f), collapse='\n') close(f) fromJSON(lines) } run_agg_query <- function(q) { jsonq <- toJSON(q) opts <- curlOptions(header = FALSE, c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/profiles.R \name{get_FV_profile} \alias{get_FV_profile} \title{Get Force-Velocity profile} \usage{ get_FV_profile( profile_data, force = "mean_GRF_over_distance", velocity = "mean_velocity", poly_deg = 1 ) } \arguments{ \item{profile_...
/man/get_FV_profile.Rd
permissive
ouzlim/vjsim
R
false
true
1,129
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/profiles.R \name{get_FV_profile} \alias{get_FV_profile} \title{Get Force-Velocity profile} \usage{ get_FV_profile( profile_data, force = "mean_GRF_over_distance", velocity = "mean_velocity", poly_deg = 1 ) } \arguments{ \item{profile_...
## Helper functions dist_x0_cond_x <- function(n,x) { x1 <- n+2-x c(x1*(x1-1),2*x*x1,x*(x-1))/((n+2)*(n+1)) } dist_x0_cond_x_ <- function(n,x) { x1 <- n+2-x data.frame(p0 = x1*(x1-1), p1 = 2*x*x1, p2 = x*(x-1))/((n+2)*(n+1)) } xlx <- function(x){ x[x<=0] <- 1 log(x)*x } ss_moments <- function(x0,x1,N){ ...
/R/dp_prep_helpers.R
no_license
cran/genogeographer
R
false
false
6,661
r
## Helper functions dist_x0_cond_x <- function(n,x) { x1 <- n+2-x c(x1*(x1-1),2*x*x1,x*(x-1))/((n+2)*(n+1)) } dist_x0_cond_x_ <- function(n,x) { x1 <- n+2-x data.frame(p0 = x1*(x1-1), p1 = 2*x*x1, p2 = x*(x-1))/((n+2)*(n+1)) } xlx <- function(x){ x[x<=0] <- 1 log(x)*x } ss_moments <- function(x0,x1,N){ ...
#' @title Catch-at-age for Yellow Perch from Chequamegon Bay, Lake Superior. #' #' @description Catch-at-age for Yellow Perch (\emph{Perca flavescens}) from Chequamegon Bay, Lake Superior, 1973-1988. #' #' @name YPerchCB1 #' #' @docType data #' #' @format A data frame with 39 observations on the following 5...
/FSAdata/R/YPerchCB1.R
no_license
ingted/R-Examples
R
false
false
3,739
r
#' @title Catch-at-age for Yellow Perch from Chequamegon Bay, Lake Superior. #' #' @description Catch-at-age for Yellow Perch (\emph{Perca flavescens}) from Chequamegon Bay, Lake Superior, 1973-1988. #' #' @name YPerchCB1 #' #' @docType data #' #' @format A data frame with 39 observations on the following 5...
rankall <- function(outcome, num = "best") { ## Read outcome data outcomedata <-read.csv("outcome-of-care-measures.csv", colClasses = "character") # Simplify our ourcome data to allow for easier manipulation soutcome <- outcomedata[(c(2,7,11,17,23))] my_states<-unique(soutcome$State) my_states <- sort(my_st...
/RProgramming/Assignment3/rankall.R
permissive
pengler/DataScience
R
false
false
2,305
r
rankall <- function(outcome, num = "best") { ## Read outcome data outcomedata <-read.csv("outcome-of-care-measures.csv", colClasses = "character") # Simplify our ourcome data to allow for easier manipulation soutcome <- outcomedata[(c(2,7,11,17,23))] my_states<-unique(soutcome$State) my_states <- sort(my_st...
plotWCdistribution.func <- function(object, filterThreshold=0.8) { object <- object[, colSums(!(is.na(object))) > 0] breaks <- round( seq(-1,1, by=2/40),digits=2) matrixHistogram <- sapply(seq(1, ncol(object)), function(x) hist(object[,x], breaks=breaks, plot=FALSE)$count) matrixHistogram <- t(matrixHistogram...
/R/plotWCdistribution.R
permissive
oneillkza/ContiBAIT
R
false
false
2,800
r
plotWCdistribution.func <- function(object, filterThreshold=0.8) { object <- object[, colSums(!(is.na(object))) > 0] breaks <- round( seq(-1,1, by=2/40),digits=2) matrixHistogram <- sapply(seq(1, ncol(object)), function(x) hist(object[,x], breaks=breaks, plot=FALSE)$count) matrixHistogram <- t(matrixHistogram...
suppressMessages(library(data.table)) suppressMessages(library(ggplot2)) suppressMessages(library(dplyr)) suppressMessages(library(tidyr)) # import required information df <- fread("Manuscript/Data/ReDU_all_identifications.tsv", sep="\t", header=TRUE, stringsAsFactors = FALSE) metadata <- fread("Manuscript/Data...
/examples/ExtendedDataFigure4/ReDU_Human_ili_Drugs.R
permissive
mwang87/ReDU-MS2-GNPS
R
false
false
2,085
r
suppressMessages(library(data.table)) suppressMessages(library(ggplot2)) suppressMessages(library(dplyr)) suppressMessages(library(tidyr)) # import required information df <- fread("Manuscript/Data/ReDU_all_identifications.tsv", sep="\t", header=TRUE, stringsAsFactors = FALSE) metadata <- fread("Manuscript/Data...
###VISUALISE MODEL OUTPUTS### library(tidyverse) library(ggpubr) library(kableExtra) library(magick) folder <- dirname(rstudioapi::getSourceEditorContext()$path) ####################SUPPLY-DEMAND METRICS folder <- dirname(rstudioapi::getSourceEditorContext()$path) data <- read.csv(file.path(folder, '..', 'results', ...
/vis/best_performing_strategy_final.r
permissive
edwardoughton/pytal
R
false
false
50,719
r
###VISUALISE MODEL OUTPUTS### library(tidyverse) library(ggpubr) library(kableExtra) library(magick) folder <- dirname(rstudioapi::getSourceEditorContext()$path) ####################SUPPLY-DEMAND METRICS folder <- dirname(rstudioapi::getSourceEditorContext()$path) data <- read.csv(file.path(folder, '..', 'results', ...
\name{distr} \alias{distr} \title{Distribution function} \usage{ distr(x, dist, param, type = "d", model = NULL, ...) } \arguments{ \item{x}{data} \item{dist}{distribution of interest} \item{type}{} \item{model}{model being fitted} } \description{ Distribution function }
/man/distr.Rd
no_license
martinjamescox/nupoint
R
false
false
288
rd
\name{distr} \alias{distr} \title{Distribution function} \usage{ distr(x, dist, param, type = "d", model = NULL, ...) } \arguments{ \item{x}{data} \item{dist}{distribution of interest} \item{type}{} \item{model}{model being fitted} } \description{ Distribution function }
\name{nagano2019} \alias{nagano2019} \title{Data} \description{ The \code{nagano2019} data frame is a empirical dataset about wild \emph{Arabidopsis halleri} subsp. \emph{gemmifera}. } \usage{data(nagano2019) } \format{ A data frame. \describe{ \item{X}{ Design matrix of transcriptome data and has 835 o...
/man/nagano2019.Rd
no_license
keihirose/simrnet
R
false
false
1,229
rd
\name{nagano2019} \alias{nagano2019} \title{Data} \description{ The \code{nagano2019} data frame is a empirical dataset about wild \emph{Arabidopsis halleri} subsp. \emph{gemmifera}. } \usage{data(nagano2019) } \format{ A data frame. \describe{ \item{X}{ Design matrix of transcriptome data and has 835 o...
# CHECKING ASSUMPTIONS FOR LINEAR MODEL OF HOME RANGE ANALYSIS # PIETERJAN VERHELST # Follows ON 'Analysis_HomeRange' source(Analysis_HomeRange.R) ########################### # Create linear model ########################### lm <- lm(tdistance~Catch_location_type, data=DataHdistance) summary(lm) anova(lm) # Check a...
/src/data/Assumptions_HomeRange.R
permissive
PieterjanVerhelst/resident-eel-polder-analysis
R
false
false
853
r
# CHECKING ASSUMPTIONS FOR LINEAR MODEL OF HOME RANGE ANALYSIS # PIETERJAN VERHELST # Follows ON 'Analysis_HomeRange' source(Analysis_HomeRange.R) ########################### # Create linear model ########################### lm <- lm(tdistance~Catch_location_type, data=DataHdistance) summary(lm) anova(lm) # Check a...
anm.LVc.tck<-function(){ local({ have_ttk <- as.character(tcl("info", "tclversion")) >= "8.5" if(have_ttk) { tkbutton <- ttkbutton tkcheckbutton <- ttkcheckbutton tkentry <- ttkentry tkframe <- ttkframe tklabel <- ttklabel tkradiobutton <- ttkr...
/R/anm.LVc.tck.r
no_license
cran/asbio
R
false
false
3,923
r
anm.LVc.tck<-function(){ local({ have_ttk <- as.character(tcl("info", "tclversion")) >= "8.5" if(have_ttk) { tkbutton <- ttkbutton tkcheckbutton <- ttkcheckbutton tkentry <- ttkentry tkframe <- ttkframe tklabel <- ttklabel tkradiobutton <- ttkr...
library(naivebayes) library(dplyr) library(ggplot2) library(psych) # Data set 1 data1 = read.csv("D:/SEM 3/Data pre-processing/data1.csv") data1 <- data1[,-c(1,28)] xtabs(~type_website, data=data1) # Convert into Factor data1$type_website<- as.factor(data1$type_website) # Data Partition library(e1071) set.seed(3696)...
/Models/naivebayes.R
no_license
bhumi3696/Thesis_Project
R
false
false
3,531
r
library(naivebayes) library(dplyr) library(ggplot2) library(psych) # Data set 1 data1 = read.csv("D:/SEM 3/Data pre-processing/data1.csv") data1 <- data1[,-c(1,28)] xtabs(~type_website, data=data1) # Convert into Factor data1$type_website<- as.factor(data1$type_website) # Data Partition library(e1071) set.seed(3696)...
library(rgl) ### Name: rglShared ### Title: Create shared data from an rgl object. ### Aliases: rglShared ### ** Examples save <- options(rgl.useNULL = TRUE) open3d() x <- sort(rnorm(100)) y <- rnorm(100) z <- rnorm(100) + atan2(x, y) ids <- plot3d(x, y, z, col = rainbow(100)) # The data will be selec...
/data/genthat_extracted_code/rgl/examples/rglShared.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
940
r
library(rgl) ### Name: rglShared ### Title: Create shared data from an rgl object. ### Aliases: rglShared ### ** Examples save <- options(rgl.useNULL = TRUE) open3d() x <- sort(rnorm(100)) y <- rnorm(100) z <- rnorm(100) + atan2(x, y) ids <- plot3d(x, y, z, col = rainbow(100)) # The data will be selec...
# # Create an input data file for further use in CAPRI # Merge and then remove unnecessary columns # # load data and dictionaries to memory library('dplyr') load(file="data/eu15.rdata") load(file="data/eu27.rdata") load(file="data/partners.rdata") load(file="data/reporters.rdata") load(file="data/commodities.rda...
/R/eu_data_to_capri.r
no_license
trialsolution/comtrade_data
R
false
false
3,124
r
# # Create an input data file for further use in CAPRI # Merge and then remove unnecessary columns # # load data and dictionaries to memory library('dplyr') load(file="data/eu15.rdata") load(file="data/eu27.rdata") load(file="data/partners.rdata") load(file="data/reporters.rdata") load(file="data/commodities.rda...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
/R/ApiResponseZacksEPSSurprises.r
no_license
Aggarch/r-sdk
R
false
false
4,192
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
#!/applications/R/R-3.5.0/bin/Rscript # Plot heatmaps of features sorted by coverage levels between start and end sites # Usage: # /applications/R/R-3.5.0/bin/Rscript features_avgProfileRibbon_noCorr.R HypoCHG_DMRs_kss 'HypoCHG DMRs' 2000 2kb '2 kb' 20 20bp 'REC8_HA_Rep2,kss_REC8_HA_Rep1' 'wt REC8-HA,kss REC8-HA' 're...
/coverage/common_input_MYC_Rep1/log2ChIPinput/H3K9me2peakProfiles/heatmaps_analysis_03_ChIPonly/features_avgProfileRibbon_noCorr.R
no_license
ajtock/REC8_pooled
R
false
false
16,969
r
#!/applications/R/R-3.5.0/bin/Rscript # Plot heatmaps of features sorted by coverage levels between start and end sites # Usage: # /applications/R/R-3.5.0/bin/Rscript features_avgProfileRibbon_noCorr.R HypoCHG_DMRs_kss 'HypoCHG DMRs' 2000 2kb '2 kb' 20 20bp 'REC8_HA_Rep2,kss_REC8_HA_Rep1' 'wt REC8-HA,kss REC8-HA' 're...
############### # Run Models with an Orthoganal Variable (Unemployment Errors) # Christopher Gandrud # 5 May 2014 ############### # Load libraries library(Zelig) library(MatchIt) library(ggplot2) # Load data cpi.dataU <- read.csv("Data/GB_FRED_cpi_2007.csv", stringsAsFactors = FALSE) ##### Create DV, Other Cleaning...
/old/Analysis/Greenbook10.R
no_license
christophergandrud/GreenBook
R
false
false
4,404
r
############### # Run Models with an Orthoganal Variable (Unemployment Errors) # Christopher Gandrud # 5 May 2014 ############### # Load libraries library(Zelig) library(MatchIt) library(ggplot2) # Load data cpi.dataU <- read.csv("Data/GB_FRED_cpi_2007.csv", stringsAsFactors = FALSE) ##### Create DV, Other Cleaning...
#' Calculate ecological guilds for diatoms #' @param resultLoad The resulting list obtained from the diat_loadData() function #' @description #' The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate the ecological guilds for the diatoms #' Sample data in t...
/R/diat_guilds.R
no_license
king8w/diathor
R
false
false
6,790
r
#' Calculate ecological guilds for diatoms #' @param resultLoad The resulting list obtained from the diat_loadData() function #' @description #' The input for these functions is the resulting dataframe obtained from the diat_loadData() function, to calculate the ecological guilds for the diatoms #' Sample data in t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SlagFigGjsnTid.R \name{SlagFigGjsnTid} \alias{SlagFigGjsnTid} \title{Utvikling over tid for gjennomsnitt/median av valgt variabel} \usage{ SlagFigGjsnTid(RegData, valgtVar, datoFra = "2013-01-01", datoTil = "3000-12-31", minald = 0, maxald ...
/man/SlagFigGjsnTid.Rd
no_license
Rapporteket/Hjerneslag
R
false
true
2,639
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SlagFigGjsnTid.R \name{SlagFigGjsnTid} \alias{SlagFigGjsnTid} \title{Utvikling over tid for gjennomsnitt/median av valgt variabel} \usage{ SlagFigGjsnTid(RegData, valgtVar, datoFra = "2013-01-01", datoTil = "3000-12-31", minald = 0, maxald ...
#Load necessary packages library(dplyr) library(purrr) library(ggplot2) library(tidyr) library(ez) #Read in the full data on election results data_election_results = list.files(path = "data/elections", full.names = T) %>% map(read.table, header = T, sep = "\t") %>% reduce(rbind) # Read in extra data a...
/R for Publication Lesson 5 (ANOVA).R
no_license
bill-wrobleski/Portfolio
R
false
false
6,734
r
#Load necessary packages library(dplyr) library(purrr) library(ggplot2) library(tidyr) library(ez) #Read in the full data on election results data_election_results = list.files(path = "data/elections", full.names = T) %>% map(read.table, header = T, sep = "\t") %>% reduce(rbind) # Read in extra data a...
# Cost for adults and children ticket_cost <- 70 ticket_cost_child <- 60 movies <- c('Greenland', 'The Invisible Man', 'Taxi Driver', 'Frozen 2', 'Mulan') # List 5 of your favorite movies screens <- 5 # How many screens does the theater have? (assume 1 per movie) seats <- 50 # How many seats does each ...
/Week4_Project_Movie_theater_Simulation.R
no_license
Mashael0x/Data-Science-Bootcamp
R
false
false
2,507
r
# Cost for adults and children ticket_cost <- 70 ticket_cost_child <- 60 movies <- c('Greenland', 'The Invisible Man', 'Taxi Driver', 'Frozen 2', 'Mulan') # List 5 of your favorite movies screens <- 5 # How many screens does the theater have? (assume 1 per movie) seats <- 50 # How many seats does each ...
#import required packages library(lubridate) # download and unzip data file <- "household_power_consumption.txt" if(!file.exists(file)) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } else...
/plot4.R
no_license
ralvite/ExData_Plotting1
R
false
false
2,139
r
#import required packages library(lubridate) # download and unzip data file <- "household_power_consumption.txt" if(!file.exists(file)) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } else...
ais = read.table(file.choose(),header=TRUE) #SSE SSE = sum(fit$residuals) ### Step 1, Analyze the Scatter Plot plot(ais$Ht~ais$Wt) ### Step 2 Create the linear model fit = lm(Ht~Wt,data=ais) summary(fit) ### Step 4 Analyze suitability of model - There is a lot to this!!!! More to come anova(fit) ### sums of resi...
/6-Prediction IntervalsBands.R
no_license
daniellapombo/Linear-Regression-R
R
false
false
1,877
r
ais = read.table(file.choose(),header=TRUE) #SSE SSE = sum(fit$residuals) ### Step 1, Analyze the Scatter Plot plot(ais$Ht~ais$Wt) ### Step 2 Create the linear model fit = lm(Ht~Wt,data=ais) summary(fit) ### Step 4 Analyze suitability of model - There is a lot to this!!!! More to come anova(fit) ### sums of resi...
## These two functions (makeCacheMatrix and cacheSolve) will cache the ## inverse of a matrix so that it does not need to be calculated repeatedly. ## makeCacheMatrix - Creates an R object that stores (caches) the inversion of a matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- func...
/cachematrix.R
no_license
nmcampbell/ProgrammingAssignment2
R
false
false
1,063
r
## These two functions (makeCacheMatrix and cacheSolve) will cache the ## inverse of a matrix so that it does not need to be calculated repeatedly. ## makeCacheMatrix - Creates an R object that stores (caches) the inversion of a matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- func...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eval_functions.R \name{eval} \alias{eval} \title{Evaluate SISAL chronology.} \usage{ eval(sisal_chrono, runFile, .dating = SISAL.AM::dating) } \arguments{ \item{sisal_chrono}{SISAL chrnology that is meant to be evaluted} \item{runFile}{runFi...
/man/eval.Rd
no_license
paleovar/SISAL.AM
R
false
true
1,037
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eval_functions.R \name{eval} \alias{eval} \title{Evaluate SISAL chronology.} \usage{ eval(sisal_chrono, runFile, .dating = SISAL.AM::dating) } \arguments{ \item{sisal_chrono}{SISAL chrnology that is meant to be evaluted} \item{runFile}{runFi...
library(gbm) library(ggplot2) # change this to your working directory setwd("/Users/jse/Dropbox/0 - academics/0 - happyforce") # ETL-ed DATA load(file="data_03/votes.Rda") load(file="data_03/co.Rda") load(file="data_03/target.Rda") load(file="data_03/li.Rda") load(file="data_03/nmf.Rda") #### CHECK UIDs #### "The fu...
/train.R
permissive
orioli/e03
R
false
false
14,844
r
library(gbm) library(ggplot2) # change this to your working directory setwd("/Users/jse/Dropbox/0 - academics/0 - happyforce") # ETL-ed DATA load(file="data_03/votes.Rda") load(file="data_03/co.Rda") load(file="data_03/target.Rda") load(file="data_03/li.Rda") load(file="data_03/nmf.Rda") #### CHECK UIDs #### "The fu...