blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 327 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 5 134 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 46
values | visit_date timestamp[us]date 2016-08-02 22:44:29 2023-09-06 08:39:28 | revision_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | committer_date timestamp[us]date 1977-08-08 00:00:00 2023-09-05 12:13:49 | github_id int64 19.4k 671M ⌀ | star_events_count int64 0 40k | fork_events_count int64 0 32.4k | gha_license_id stringclasses 14
values | gha_event_created_at timestamp[us]date 2012-06-21 16:39:19 2023-09-14 21:52:42 ⌀ | gha_created_at timestamp[us]date 2008-05-25 01:21:32 2023-06-28 13:19:12 ⌀ | gha_language stringclasses 60
values | src_encoding stringclasses 24
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 9.18M | extension stringclasses 20
values | filename stringlengths 1 141 | content stringlengths 7 9.18M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1ce72c993e399355065d166fc59d217754109e7 | 32435049c2bfd861f05aac44aa65a7b15b2a4165 | /man/ops_aggregate_perf.Rd | f897bceb889634ba0202c92d749dc3a8016a5b0b | [
"MIT"
] | permissive | austl001/MOSLR | 3b9c3c5043c688782ccc6bd6b5cbe4d53b91fe9c | 0186f24e176f17df6e1399a460198ffcfdf706dd | refs/heads/master | 2023-03-21T10:43:38.860067 | 2022-07-06T09:41:11 | 2022-07-06T09:41:11 | 235,149,072 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 626 | rd | ops_aggregate_perf.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ops_aggregate_perf.R
\name{ops_aggregate_perf}
\alias{ops_aggregate_perf}
\title{Aggregates Trading Party OPS Performance}
\usage{
ops_aggregate_perf(
my.dir = getwd(),
df = readRDS(paste0(my.dir, "/data/rdata/ops_data_clean.Rda")),
tp.... |
ce56fc090aa33da2ab2ce2d2437f9d4517515dba | 100ef7748001814334951538fa23869ee00f58f7 | /project/project.r | 72e29ef418d4275b8a098b73d666497d430cb444 | [] | no_license | dahewett/geostatistics | c51ca284288cc0a086886879629a852f7e083cab | 3dd1c66391503f88c60160f1f8dfa270fdc2addd | refs/heads/master | 2022-10-19T14:32:47.146003 | 2020-06-03T03:37:34 | 2020-06-03T03:37:34 | 152,347,434 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,426 | r | project.r |
install.packages("plyr")
install.packages("dplyr")
install.packages("spdep")
install.packages("GISTools")
install.packages("raster")
install.packages("maptools")
install.packages("rgdal")
install.packages("spatstat")
install.packages("sp")
install.packages("spatstat")
install.packages("spgwr")
install.pa... |
e609d223210fe36bdadfe2eb413e880d03349cb1 | cef3b5e2588a7377281a8f627a552350059ca68b | /paws/man/wellarchitected_associate_lenses.Rd | 8233a8efdced54c8300e2e68e85919e9e0118fba | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sanchezvivi/paws | b1dc786a9229e0105f0f128d5516c46673cb1cb5 | 2f5d3f15bf991dcaa6a4870ed314eb7c4b096d05 | refs/heads/main | 2023-02-16T11:18:31.772786 | 2021-01-17T23:50:41 | 2021-01-17T23:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 571 | rd | wellarchitected_associate_lenses.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wellarchitected_operations.R
\name{wellarchitected_associate_lenses}
\alias{wellarchitected_associate_lenses}
\title{Associate a lens to a workload}
\usage{
wellarchitected_associate_lenses(WorkloadId, LensAliases)
}
\arguments{
\item{Workloa... |
bc8a39b15e51d17bfc93514df90774053a647d19 | 2457cfad7d128305656d73c79fd0f162d3181608 | /PrettyR/man/spaghetti_mean.Rd | ddba4716d6fd2d28ef71944c084d2e8fdc17b0c1 | [
"MIT"
] | permissive | Jadamso/PrettyR | 6b6bcc8331c45364267e9c4a67a31c594fd579a8 | 16cc947bb2f216297113a3189326072d149635ea | refs/heads/master | 2021-01-15T16:51:41.219506 | 2020-03-22T23:08:35 | 2020-03-22T23:08:35 | 99,728,574 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 444 | rd | spaghetti_mean.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SpaghettiPlot.R
\name{spaghetti_mean}
\alias{spaghetti_mean}
\title{Plot Average of Spaghetti Lines}
\usage{
spaghetti_mean(YList, Xlist, plot_col = 1, lwd = 2, ...)
}
\arguments{
\item{YList, Xlist}{output from PrettyR::spag_loess}
\item{pl... |
4d1fdab0b2465e80b23aee3bbe9c4aea5d862ec2 | b40ea60204f4f3e6c53079d012ef7a2cd8b2bc41 | /day16/day16.R | 52a5504a0c5b6c3f6739a26c8196f9006ae69101 | [] | no_license | johnlocker/adventofcode2018 | f9648fc316e6ce6e61dab38d936a2eb4acde3587 | 3d8cae621c663df3a423b30e0b15e9bf713871c6 | refs/heads/master | 2020-04-09T09:16:36.802088 | 2018-12-16T16:41:03 | 2018-12-16T16:41:03 | 160,227,411 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,315 | r | day16.R | input <- read.table(file.path("day16", "inputA.txt"),
stringsAsFactors = FALSE, sep = "\n")
inputB <- read.table(file.path("day16", "inputB.txt"),
stringsAsFactors = FALSE, sep = "\n")
#' Extract digits
#' @param x String
#' @return digits from string
extractDigits <- function (... |
22b3feee052fe7be5fb976ec72ee3e8e79a4b5b6 | 54e59bed4a9adddfa1efcb4642b1bd0e0cf6b623 | /E.coli-models/Chen01.R | 760022382e12da6f5fdb816c77321126aad88057 | [] | no_license | evolgeniusteam/nucleotideSkews | e62d831c29658ca47ea3771d45a13e591b9b208b | 01512e59842ac488e636a188e757fd6b05644dda | refs/heads/master | 2020-03-30T16:59:08.967543 | 2019-05-16T01:22:25 | 2019-05-16T01:22:25 | 39,622,600 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,255 | r | Chen01.R | ## -- for testing purpose only --
library(sybil)
library(sybilSBML);
library(glpkAPI)
## load an xml model --
m <- readSBMLmod(filename="~/05_skews_bacteria/7_math_models/Bacillus_subtilis.xml");
# remove the requirement to produce maintenance ATP:
m <- changeBounds(m, "ATPM", lb=0)
# set glucose uptake limit to 1.0... |
63ac019478f3bc3f5684007b2a4322547e2c1c98 | 57cd8fb566404ab9fcda2cac40d13343b5750acb | /Projects/KPI_anomaly/dataanalysic.R | 2f5dd4d2cbb02d76c8145dba0756d4ef959373e1 | [] | no_license | snowisland1/Dews | abbb2179d0856bebbbbd0d4aadc2bb5c4dd24f7e | 0bd75a5bdd7403cfde363025c3ecf61e3157a8c3 | refs/heads/master | 2020-08-07T20:49:49.555889 | 2017-12-29T06:44:58 | 2017-12-29T06:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,992 | r | dataanalysic.R | library(xts)
library(lubridate)
library(dplyr)
train<-read.csv("../../dataset/anomaly_detection_1/train.csv")
submit<-read.csv("../../dataset/anomaly_detection_1/test_dataset.csv")
submit$label<-0
KPI_IDs<-unique(train$KPI.ID)
#基于一个简单的规则,根据观察,周期主要是一天一天的,所以把每天某时刻某分钟单独提取出来比较,偏离比较大的视为异常点
tmp_line1<-train[which(train$KPI... |
4b1d7e87e6fdbfba0429671848d2810cd5c49ee7 | 61a508d7e5038afcdcdc403f4318b0f75a77dcc8 | /tests/testthat/test-datasets.R | 97f7f06ede9040dfb6c39fc8866bb8a6e5af45f3 | [] | no_license | zhaoxiaohe/datasauRus | f2da677d0bea047d5767461d1e2622cf4fad9615 | 327885e23f039b3ce3f59ad590c95f1134cda1d7 | refs/heads/master | 2021-01-20T08:57:21.434040 | 2017-05-03T18:04:18 | 2017-05-03T18:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,256 | r | test-datasets.R | context("datasets")
datashapetests<-function(df, ncols, nrows, uniquecol=NULL, nuniques=NULL){
expect_equal(ncol(df),ncols)
expect_equal(nrow(df),nrows)
if(!is.null(uniquecol))
expect_equal(nrow(unique(df[uniquecol])),nuniques)
}
test_that("box_plots is correctly shaped",{
datashapetests(box_plots,6,2484)
}... |
68a213243b5a6d7feb48a3a538f776f588fea1bd | 24b9d09b1dea9db88cbf7b9dbb6f3d24c0cd4b88 | /prettyRadio.R | 9132744ee6522ca5279b8161395749686cf498c6 | [] | no_license | pat-alt/stackQuerries | 55f67b78429ea90f981ae3b97d608708a8023cd4 | f0e82e02feb6a9e649a5744836cfdab43a6583bb | refs/heads/master | 2022-11-05T01:20:41.080961 | 2020-06-27T13:33:08 | 2020-06-27T13:33:08 | 272,362,435 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,380 | r | prettyRadio.R | library(shiny)
library(shinyWidgets)
list1 = letters[1:3]
list2 = letters[4:6]
list3 = letters[7:9]
list4 = letters[10:12]
ui <- fluidPage(
titlePanel("Dynamic Boxes"),
fluidRow(
prettyRadioButtons("check1", "Please Pick", c("Option 1" = "op1", "Option 2" = "op2"), selected=character(0), shape="square", outli... |
a3016a0cd5aa10de192f7d223cc04e41acb033bf | bc3d6d25f38f5651afe9e01bb199c0d125466042 | /Code/Library Import.R | d0693540c8e63a404ebb8fa9eaab3dd73b2fe16f | [] | no_license | LukeRyanCCC/Project1 | 586ebc5055739d10bb46dc5b3ff65ad9915624a1 | 0bb400e205715a3c1544ac10e4356ab02891cb84 | refs/heads/master | 2020-03-29T20:05:05.193017 | 2018-09-26T11:58:11 | 2018-09-26T11:58:11 | 150,294,457 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 567 | r | Library Import.R | #Load librarys
library_load <- c("plyr", "tidyr", "data.table", "readr",
"stringr","maps","sp","rgeos","raster",
"tmap","ggplot2","ggmap","leaflet",
"spatstat","gstat","sf","dplyr","magrittr",
"maptools", "rgdal", "lubridate", "corrplot",
... |
653bb53b67a1e9618723ca0ab65bbe86bd9880fe | 681ea911df31c6f7204373fcf472af1203cb0026 | /R/get_incidence_matrix.R | b9dbffce75fd4d98b10a4f5ac1c4fc773d2055cd | [
"MIT"
] | permissive | alrobles/geotax | eac0a6b8b711b21b5dbb235b7e7a4af2dc3047a1 | 4375908a4862ba7d36589b03a32eabdf598d2c71 | refs/heads/master | 2023-07-19T17:15:32.556263 | 2023-07-07T14:54:38 | 2023-07-07T14:54:38 | 86,359,847 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,491 | r | get_incidence_matrix.R | #' Generate an incidence matrix from a interaction table
#'
#' @description This function creates an incidence matrix
# for species interactions. Needs dataframe with 2 columns,
# for example one with the host and the other with the parasites
#' @param db A data.frame or matrix with two columns,
#' for example host ... |
1d5393785fb5089c5620bc97e715eeccc2058ebc | 5e90fe6a6db2611e73d08dca0245dab7d4039667 | /man/sim.Rd | 27766453b699ae101a3dbbbce2648169aa3d1f75 | [] | no_license | crazybilly/modelr | 4d5a719d4e0090c3ea9843eb6b820e291544907c | 71502aeeb74b7deaab3c2b033e12cdcacb8aa3d3 | refs/heads/master | 2021-01-21T00:02:19.878566 | 2016-09-09T13:25:53 | 2016-09-09T13:25:53 | 67,800,592 | 0 | 0 | null | 2016-09-09T13:19:44 | 2016-09-09T13:19:43 | null | UTF-8 | R | false | true | 494 | rd | sim.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{sim}
\alias{sim}
\alias{sim1}
\alias{sim2}
\alias{sim3}
\alias{sim4}
\title{Simple simulated datasets}
\format{An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 30 rows a... |
aefcba924f095ef4aadb579c00f1298040aba9fe | 1dc0ab4e2b05001a5c9b81efde2487f161f800b0 | /experiments/keel/noisy/an/an_nc5.R | 6ea1999e763d9187b4646b1df1e8db2719372af5 | [] | no_license | noeliarico/knnrr | efd09c779a53e72fc87dc8c0f222c0679b028964 | 9f6592d1bbc1626b2ea152fbd539acfe9f9a5ab3 | refs/heads/master | 2020-06-01T02:44:34.201881 | 2020-03-13T13:30:52 | 2020-03-13T13:30:52 | 190,601,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,967 | r | an_nc5.R | # ecoli -------------------------------------------------------------------
ecoli_5an_nc_5_1 <- train_keel(ecoli_5an_nc_5_1tra, ecoli_5an_nc_5_1tst)
ecoli_5an_nc_5_2 <- train_keel(ecoli_5an_nc_5_2tra, ecoli_5an_nc_5_2tst)
ecoli_5an_nc_5_3 <- train_keel(ecoli_5an_nc_5_3tra, ecoli_5an_nc_5_3tst)
ecoli_5an_nc_5_4 <- trai... |
9513fa0c151bbfe206161e3fd2b482466394351d | 3567ad9c30686ff697565e674fb0a9e8567fe8a1 | /plot2.R | 9d4c682b61a7c8a8eb90bf1249b8f37dabe3a56f | [] | no_license | skroonenburg/ExData_Plotting1 | c7303bab8e409c88191bd1da036f82af8362683b | e30ac35fcc0c988d98f3c02736473422eefe682b | refs/heads/master | 2021-01-15T21:30:11.741135 | 2015-02-06T10:24:23 | 2015-02-06T10:24:23 | 30,239,415 | 0 | 0 | null | 2015-02-03T11:25:11 | 2015-02-03T11:25:09 | null | UTF-8 | R | false | false | 1,326 | r | plot2.R | library(data.table)
require(data.table)
readData <- function()
{
# Only read the data from the relevant dates
# I've done this by hardcoding the lines from the text file to read,
# such that only the required lines are read and the performance
# of this script is optimised
data <- read.table('household_power... |
5aaa04501d1490a4ece3f0c32718c163f1fb0dd9 | 00fbe684e4412050534584d8c21810aea532c4e5 | /code/calculateVE.R | 37ba6fe832cb770feb8bf441a0472b8eb3d6bb3f | [] | no_license | dviraran/covid_analyses | 39000d1937f534202237b8c98271db7784fdad56 | c3b6ed5474643be423fbaa44366329bf2f582f0d | refs/heads/master | 2023-07-31T00:59:02.761826 | 2021-09-19T20:02:37 | 2021-09-19T20:02:37 | 334,678,742 | 8 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,589 | r | calculateVE.R | library(ggplot2)
library(reshape2)
library(RColorBrewer)
library(cowplot)
library(ggrepel)
library(plyr)
library(superheat)
library(ggpubr)
source('~/Documents/covid_analyses/code/vac_functions.R')
### READ DATA
last.date='2021-02-22'
# https://data.gov.il/dataset/covid-19/resource/57410611-936c-49a6-ac3c-838171055b... |
419c5afe841391ffa15fbc5c13783f4749deff84 | 20036893929f5078bf99a066775d5ebcd37cac49 | /code/Cluster_Expression_Level.R | 985d848be7a4265dcd3c637849312615abcc8cd1 | [] | no_license | zehualilab/RNAseq_singlecellfetal | f88da23b8a1b2ba1d1c47d60f51d28f9cd237d21 | fb71ea75c29ea114861105e6f52c81a38df038d4 | refs/heads/master | 2020-09-11T00:45:28.481841 | 2019-01-17T03:50:49 | 2019-01-17T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,818 | r | Cluster_Expression_Level.R | # Damon Polioudakis
# 2017-05-09
# Pooled expression level for each gene by cluster
################################################################################
rm(list = ls())
require(Seurat)
require(reshape2)
require(dplyr)
# Drop-seq
load("../analysis/Cluster_Seurat/Cluster_Seurat_exon_FtMm250_fetb_seurat.Rob... |
e048977e637382a8b16f1cd856a96d61bc7ff965 | db6b7886398c4602d858fbb1855ce6d8c91b3e68 | /man/agg_xaxislabel.Rd | 7dd5742e74a0384a1b0a35e398cf24facfd79fd4 | [
"MIT"
] | permissive | angusmoore/arphit | 08c1bec58bf22d29999204480e962547c1486add | 389efbf00b0775d1e1ec6b0f8f2311eff72bb1b0 | refs/heads/master | 2023-02-08T06:20:35.082649 | 2021-02-09T05:27:35 | 2021-02-09T05:27:35 | 104,701,875 | 3 | 4 | MIT | 2021-02-09T05:27:36 | 2017-09-25T04:02:59 | R | UTF-8 | R | false | true | 765 | rd | agg_xaxislabel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gg-constructors.R
\name{agg_xaxislabel}
\alias{agg_xaxislabel}
\title{Add an axis label to the x axis}
\usage{
agg_xaxislabel(axislabel, panel = NULL)
}
\arguments{
\item{axislabel}{A string specifying the axis label}
\item{panel}{(optional)... |
35df7289d89fcda9c6df15e66937c41fd22014ce | 5162c82b2a5450b836d28e9c5d2bf18c53ebf815 | /src/plot_struct.R | 2b50f221f72faa42e394ef580008d3be37aca2b1 | [
"MIT"
] | permissive | ggirelli/chromflock-scripts | 188dea03b6fcb779f7a619de69fdc2d2765e2772 | 2daebfde8a151a5176ea70e464327d296cb6356f | refs/heads/master | 2022-04-08T17:08:12.962277 | 2020-03-19T14:45:00 | 2020-03-19T14:45:00 | 195,254,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,432 | r | plot_struct.R | #!/usr/bin/env Rscript
# ------------------------------------------------------------------------------
#
# Author: Gabriele Girelli
# Email: gigi.ga90@gmail.com
# Date: 20190704
#
# ------------------------------------------------------------------------------
# DEPENDENCIES =====================================... |
68ff6093529d8d2dc906acb15b06009a780b6d19 | ff34d68c0fcc63a4cc447a5200c6fea11cc6f5db | /R/get_plant_tbl.R | 0ce56528723ab7a86e2a38df6a695e52a78b3cda | [] | no_license | soerenpost/poor_countries_simple_products | b921dd772b7db0b3ad7e71182dbdbcc9f6eae394 | 4b30525519c077319fcd83cfbd8634d5dafb9dff | refs/heads/master | 2022-11-17T14:39:14.222951 | 2020-07-15T11:46:07 | 2020-07-15T11:46:07 | 273,551,254 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,219 | r | get_plant_tbl.R | #' This functions creates a a table that contains plant-specific observations
#' (complexity and power shortages information not included). It cleans and
#' filters the observations based on a number of "flags".
#'
#' @param block_list List containing the merged ASI blocks.
#'
#' @return A data frame (plant_tbl) con... |
fcf91b6c4708f01d56e25c6b33b3095f8b38fa5d | 4183b4ab0554a4bd57b8f097d484f43cccb40142 | /Plot2.R | 0ff1a6c6a1d585cab3ce3a53404f952bab79fb75 | [] | no_license | calliope7/ParticulateMatterInvestigation | 02afb2a6a7f6b142ec58ba9574669b44be0dfb5b | d01f2a031cf0b4ddcbda0ee1d5e9eba1dc66ea7e | refs/heads/master | 2016-09-06T15:39:53.989431 | 2015-08-23T09:01:29 | 2015-08-23T09:01:29 | 41,016,895 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 793 | r | Plot2.R | # National Emissions Inventory (NEI)
#
library(dplyr)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Question 2: Have total emissions from PM2.5 decreased in the Baltimore City, Maryland (fips == "24510")
# from 1999 to 2008?
plot2 <- function() {
... |
78e705d2dd841bf84977ad61af33c621589df3d2 | d2c75e5ff89f2ce4426d9d721810a500abd7b9d1 | /analysis/cross_validation/within_CV.R | 1ef30e4ea937a3362d2989e2ca57dddf129c97fe | [] | no_license | ch728/squash-gs | 03dbcccf80a5bb72f8da0124c1da0a68533c8056 | 0b32b5c0ffb002f2b01cecb5e5422226e56d0e19 | refs/heads/master | 2022-11-21T17:48:24.379497 | 2020-07-16T17:31:49 | 2020-07-16T17:31:49 | 277,221,114 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,053 | r | within_CV.R | library(DBI)
library(tidyverse)
library(asreml)
library(doMC)
source("CV_functions.R")
# Set up parallel backend
registerDoMC(12)
# Read in phenotypic data from project database
con <- dbConnect(RSQLite::SQLite(),"../../pheno/pheno.db") # Connect to pheno database
res <- dbSendQuery(con, "SELECT * FROM trainingDat... |
b47777663739b285a5751dfdf2a60925f3896c23 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.storagegateway/man/create_snapshot.Rd | f6b087f9e07274ed3ca7cad4ffe880e3116217da | [
"Apache-2.0"
] | permissive | CR-Mercado/paws | 9b3902370f752fe84d818c1cda9f4344d9e06a48 | cabc7c3ab02a7a75fe1ac91f6fa256ce13d14983 | refs/heads/master | 2020-04-24T06:52:44.839393 | 2019-02-17T18:18:20 | 2019-02-17T18:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,696 | rd | create_snapshot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.storagegateway_operations.R
\name{create_snapshot}
\alias{create_snapshot}
\title{Initiates a snapshot of a volume}
\usage{
create_snapshot(VolumeARN, SnapshotDescription)
}
\arguments{
\item{VolumeARN}{[required] The Amazon Resource Nam... |
7d3df845a5a6af7577f6c83cb15f7786ca195911 | d12c721275c0c4627b91fb4de111c45b281cf944 | /AutoReport/ui.R | 0f8e6492d321d472e18450bafc486887820d4eef | [] | no_license | BeyondMultipleChoice/AACRAutoReport | 6a42e5b16a24e3ba15eb87a7d8c3d85e7ad7864d | 54d463db0f8d00edc59725fa0fef56b84a235b77 | refs/heads/master | 2021-09-26T04:29:41.244850 | 2021-09-20T19:08:31 | 2021-09-20T19:08:31 | 49,663,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 295 | r | ui.R | #UI file for shiny AACR report generation app
library(shiny)
library(DT)
shinyUI(fluidPage(
#MOdif - horizontal line in black 8-18-2020, see primaryPanelSet.R
tags$head(
tags$style(HTML("hr {border-top: 1px solid #000000;}"))
),
uiOutput("topLevelPanelSet")
)) |
97af48c0d7bed359eb0ee3a6964f5beb9f204daa | 9facb350e63a01b4274f0432b5592ba42f55572c | /Week5.R | 3820f1b286d40ed7c78619b1e88b61d12452b60e | [] | no_license | saurabhstha/Week5 | b43a58e59a4fa9aa81cc20cc4feb824acd39997d | 23b129d78b7a8dcdd468e834a4ddab13b2cc500c | refs/heads/main | 2023-04-10T21:27:25.478237 | 2021-04-18T19:51:16 | 2021-04-18T19:51:16 | 359,238,408 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,866 | r | Week5.R | # Assignment: Housing Dataset
# Name: Shrestha, Saurabh
# Date: 2021-04-14
install.packages("dplyr")
library(readxl)
library(dplyr)
# Set working directory
setwd("C:/Users/Saurabh/Desktop/DSC 520/Week5")
# Load the housing dataset
housing_data = read_excel("week-6-housing.xlsx")
head(housing_data)
# Grou... |
16a2d87612e18130d49908a0a25551a7b8faa6ba | f6c335fe47cd81bf7bd3a576aed7ee871b98eac7 | /Exercise_6.1_3DHome_Range/Raster3dScript.R | b679d99ae28486251a5156e4164bcfb532dcc527 | [] | no_license | walterASEL/Walter-Datasets | b968d58cb5a97e74d98e1a5d851ce61e1d3673e9 | 176b6b0f348e90b2204f913260c0695ef5b08fe8 | refs/heads/master | 2022-10-18T19:46:30.750059 | 2022-09-28T16:40:08 | 2022-09-28T16:40:08 | 84,325,243 | 21 | 51 | null | null | null | null | WINDOWS-1252 | R | false | false | 8,306 | r | Raster3dScript.R | library(rasterVis)
library(raster)
library(rgl)
library(sp)
library(rgdal)
library(maptools)#writeAsciiGrid
library(ks)#hpikde.ud
library(adehabitatHR)
library(adehabitatMA)
library(BBMM)
library(chron)
#Reads and prepares the data
muleys<-read.csv("muleysexample.csv")
str(muleys)
#Remove outlier locations
newmule... |
29dae70b2df1c16d6a8b76197b1516b70b8e650d | 789dd3039ae8c7a1b29582e563c66f2f3b573e9b | /GRAPH/MetabNet/R/data_preprocess.R | 7374f4d5d12a1e271af830e07419c946078d9580 | [] | no_license | Aurametrix/R | 44ecb2969e0eb39120176692761304adae7a3539 | affb2b2e06b94ff8a1c8d552aa3b996b0158911f | refs/heads/master | 2023-01-31T22:28:15.893079 | 2023-01-27T01:17:57 | 2023-01-27T01:17:57 | 16,440,534 | 4 | 3 | null | null | null | null | UTF-8 | R | false | false | 20,079 | r | data_preprocess.R | data_preprocess <-
function(Xmat=NA,Ymat=NA,feature_table_file,parentoutput_dir,class_labels_file,num_replicates=3,feat.filt.thresh=NA,summarize.replicates=TRUE,summary.method="mean",
all.missing.thresh=0.5,group.missing.thresh=0.7,
log2transform=TRUE,medcenter=TRUE,znormtransform=FALSE,quantile_norm=TRUE,lowess_no... |
899fb82f62d9bbbe7e5dcb65212688c42ebb9e05 | c5d63edeb104e84820a99432ae6c3c3b77b0ed19 | /src/metacluster.bipartite.R | 27f68c0b25af2001abbed4d7cb57eaf7c5d4ccae | [] | no_license | genepattern/FLAMEMetacluster | 5ff41f44ed2d2d912609fe0b368b46c893b34a21 | 3fb2d6f7742df9548e463e66056e6516884d9014 | refs/heads/master | 2021-01-10T11:15:18.961571 | 2016-02-12T20:10:28 | 2016-02-12T20:10:28 | 51,612,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,488 | r | metacluster.bipartite.R |
######## Euclidean distance ###########################
d=function(x,y) { sqrt(sum((x-y)^2)) }
######## Integer Programming ##########################
IP = function(dist.ST, cap.S, cap.T, delta, constraint) {
nS = dim(dist.ST)[1]; nT = dim(dist.ST)[2]; n=nS+nT
f.obj = as.vector(t(dist.ST))
f.con.1 =... |
1abdd98ab044ca33519a2a3a12d69e03c48d75bb | 07cbeb7cffaa00d21734c486c793e4ed4fe698db | /plot3.R | 156adf71644a73175aaa2b6c5c04699129cf0518 | [] | no_license | ssuresh8/ExData_Plotting1 | 0897bd40a96cb1769c270a640e196496fa28f558 | 376b0d95156015f90de680d346d831aac8a8233a | refs/heads/master | 2020-05-29T11:45:56.200047 | 2015-12-13T22:19:51 | 2015-12-13T22:19:51 | 47,864,087 | 0 | 0 | null | 2015-12-12T04:25:19 | 2015-12-12T04:25:19 | null | UTF-8 | R | false | false | 1,206 | r | plot3.R | # read in the text file
# since it is a semicolon delimited file use sep as semi colon and headings are in first row
dat <- read.csv("household_power_consumption.txt", head = TRUE, sep= ";", na.strings ="?")
#convert the date and time columns in to the date and time classes in R
dat$Date <-as.Date(dat$Date, format = ... |
9e22c8af7d207ff29339e18a2a007a51b41c65d0 | 0872b355956686bd4e68384d3b83f342ec02bd31 | /R/patientView/db.R | 4f01c95c24caa32cea2d71a3144772b322721808 | [] | no_license | smartscalpel/MSui | ff211af5a0f8eb54cf9bcf488e81a8b06f11e74f | 8de2d77ecd368834c50ec717137f28569d025ac0 | refs/heads/master | 2021-06-08T11:49:55.908612 | 2019-07-16T11:44:42 | 2019-07-16T11:44:42 | 161,582,215 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,827 | r | db.R | library(pool)
library(rlang)
library(pander)
library(MonetDBLite)
pool <- dbPool(MonetDBLite::MonetDB(),
dbname = 'msinvent',
user='msinvent',password='msinvent')
#### Tissue part #########
getTissueTable<-function(con,tabName){
as_data_frame(con %>% tbl('patisue'))
}
makeNewTissue<... |
4d0bd0e29e1fb9c4947b1cc1532a96c3f0c42c0e | 8a780feb331e64a7aa098ea00ff15e572b831ad9 | /R/pie.gg.R | 2393e7b957ef68c2aab5e909094650b017466325 | [] | no_license | kwlee58/Poll_1987_kr | 53f9fad18f9a86772d2f87ff498629835499ee30 | bfe963a1c3a95e757eba51bede9b9cc098b46164 | refs/heads/master | 2022-10-26T16:27:45.695526 | 2022-10-14T16:58:49 | 2022-10-14T16:58:49 | 43,960,444 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,249 | r | pie.gg.R | pie.gg <-
function(df, ggtitle = "", font.family = ""){
n <- length(names(df))
y.coord <- cumsum(df$Freq)
pie.label <- paste(levels(df$vote), format(df$Freq, big.mark = ","),
sep = "\n")
p1 <- ggplot(df, aes(x = "",
y = Freq,
fill = vote))
... |
2a890fc570224f8945d5c42b734231b9cac67615 | e20ae46b59c09099a3b49e1ea018dfc855c11541 | /R/k-circles.R | c77a412769f108a6cce8f0acf770a9e7283fcdc6 | [] | no_license | Daenecompass/eliter | a081eb7f89ab34e9f2e34c3937e791c60a776873 | 884885a2e747e6cbb9560d4b11851ddc4e7c640b | refs/heads/master | 2023-03-17T18:19:04.883599 | 2020-11-16T21:25:50 | 2020-11-16T21:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,053 | r | k-circles.R |
#' Minimal members decomposition
#'
#' @param incidence a sparse incidence matrix
#' @param minimum.memberships the minimum number of memberships for the individuals (rows)
#'
#' @return a list of incidence matrices
#' @export
#'
#' @examples
#' data(den)
#' den <- den[den$SOURCE != "Events",]
#' incidence <... |
02b074d7abc18431159898eaba56f6861b8fe419 | 84e5f53dbd80c43ed1ae0e1a822761f7ca4fa9e8 | /R/plotPerms.R | d17a3b145b1cf4c47569ccd1b43fa8cde3404b37 | [] | no_license | vjcitn/bceQTL | d9b21887af6c7ca0f331c3372cb965ca161a6d46 | 49c018ab6f632d41a23c5a0b2d2a273719bec089 | refs/heads/master | 2021-05-11T17:04:23.347947 | 2018-01-17T05:46:52 | 2018-01-17T05:46:52 | 117,783,319 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 866 | r | plotPerms.R |
plotPerms = function() {
data(allpermFDR)
allpermFDR[which(allpermFDR$permfdr < 1e-6), "permfdr"] = 5e-3 # don't let 0 permutation FDR spoil log-log
with(allpermFDR, plot(limfdr, permfdr, log="xy", xlim=c(1e-4,.15),
xlab="FDR by limma", ylab="FDR by 501 permutations of adjusted expr. against genotype", col=factor(t... |
7baaed13ddfd263ded7d6a8fa0b004e791d4312f | 1e49bd4391160a2504422750ba401bb90a019fef | /Workshop_Scripts/Workshop_5-Data_IO_and_Packages.R | 2eae2a64fadb25dd66c39fb8589e5d894062f799 | [] | no_license | asunghong/SoDA-Workshop-Series-Introduction-to-Data-Science | 54d62c049409d268f0c99aff28425ddfc950ef16 | f0de55d12c76866513a7af64194c783de449cae5 | refs/heads/master | 2021-01-24T01:00:28.688914 | 2018-02-17T01:32:48 | 2018-02-17T01:32:48 | 122,788,956 | 1 | 0 | null | 2018-02-24T23:25:17 | 2018-02-24T23:25:17 | null | UTF-8 | R | false | false | 5,040 | r | Workshop_5-Data_IO_and_Packages.R | #### Data I/O and Packages ####
# In this workshop, we are going to write our school children data to a .csv file
# and then read the data back in to another R object. We are also going to learn
# how to save R objects in R's native binary format (very space efficient).
### Setting Your Working Directory ###
# The e... |
09d1f289d3dae5949d4567843869ff0c50b41d05 | 360df3c6d013b7a9423b65d1fac0172bbbcf73ca | /FDA_Pesticide_Glossary/diepoxybutane.R | e3b5856833cc373240793c5119ab886e875d3d7d | [
"MIT"
] | permissive | andrewdefries/andrewdefries.github.io | 026aad7bd35d29d60d9746039dd7a516ad6c215f | d84f2c21f06c40b7ec49512a4fb13b4246f92209 | refs/heads/master | 2016-09-06T01:44:48.290950 | 2015-05-01T17:19:42 | 2015-05-01T17:19:42 | 17,783,203 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 234 | r | diepoxybutane.R | library("knitr")
library("rgl")
#knit("diepoxybutane.Rmd")
#markdownToHTML('diepoxybutane.md', 'diepoxybutane.html', options=c("use_xhml"))
#system("pandoc -s diepoxybutane.html -o diepoxybutane.pdf")
knit2html('diepoxybutane.Rmd')
|
f50b620ec3159791b0c6a96e21493bfa95f9d476 | a0b699fc45352735746a0da7db60b3e5be0a3820 | /00 Doc/R_ETL.project3.R | a05945e1bafd41409e31722e3f0f0789f24e4b2f | [] | no_license | Dingkzhang/s17dvproject4-dvproject-4-crider-gonzales-zhang | c782881064b478f6da3eae7ccd374cef3c852ff6 | 2435644a5fbc131a52bccb3a13b5acea3a96e352 | refs/heads/master | 2021-01-23T06:50:22.209327 | 2017-03-28T02:42:30 | 2017-03-28T02:42:30 | 86,404,956 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,913 | r | R_ETL.project3.R | require(readr)
#-----------------------FILE ONE------------------------------------------
file_path = "../01 Data/PreETL_ConfidenceHomeStats.csv"
chs <- readr::read_csv(file_path)
names(chs)
df <- chs
names(df)
str(df) # Uncomment this line and run just the lines to here to get column types to use for getting the l... |
14cc9d84cb73f725ae86c3ef3795916f50d5f7f0 | 97cecd6ed08dc44aafcf7edbe7d3cbec2ab89451 | /R/simulation.study.R | 82a62b78f17e6a87a6ca3871f1b400b4ff8c2bde | [] | no_license | Polkas/ICsims | 433d01e09933c4720df4516dfe5e72823f441e25 | 1630e7b94bd6930759329a5e4835552ad4492452 | refs/heads/master | 2020-03-27T05:37:06.417788 | 2016-01-06T18:34:51 | 2016-01-06T18:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,661 | r | simulation.study.R | #' Run simulations allowing for between-sample heterogeneity
#'
#' \code{simulation.study} implements a simulation framework sampling repeatedly
#' from linear regression models and GLMs, allowing for between-sample heterogeneity.
#' The purpose is to allow the study of AIC and related statistics in the
#' context of ... |
984a1c103b5b901a531755e5d0da33777924fff9 | 0892ab6c7e4e157afb923afce615a32d718f0f61 | /QuantST/R/ST-F-ADX.R | bf551f0891fc308028cb90d2a742e723bdeb028f | [
"Apache-2.0"
] | permissive | NFS002/QuantST | 8e8b7bcd061bbf21abaae9bfa97a93b3d83bbbb9 | 129b4eaf6d257219cb9969f4eee7a4e89aed8316 | refs/heads/master | 2022-01-22T17:36:28.582250 | 2022-01-02T19:17:43 | 2022-01-02T19:17:43 | 104,096,127 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,025 | r | ST-F-ADX.R | #' Title "ST.F.ADX"
#' function to calculate the ADX(DIp DIn, ADX) of a price series.
#' and bind the result to the orginal data frame
#' @param dataframe time series on which the adx is calculated
#' @param n time period (days)
#'
#' @return dataframe
#' @export
#'
#' @examples
ST.F.ADX <- function(dataframe, n = 14) ... |
f544371e578506d9cb6072865a01809a74cb5abd | e178e45be0015f54397b4813205e0f5281169e2b | /horseshoe_jl_post.R | e3956f3736756de7c1990e82edc0ce98ce5519df | [] | no_license | jamesjohndrow/horseshoe_jo | 936cb80e2ed80c72186ae64f1272ddf0d7837b62 | 4f9cc96b4c2bf297bb525b16c810f70d25b8ed95 | refs/heads/master | 2021-01-20T04:25:26.289365 | 2019-10-01T20:31:53 | 2019-10-01T20:31:53 | 89,685,247 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 636 | r | horseshoe_jl_post.R | setwd('~/Documents/GitHub/horseshoe_jo/')
if (!require(pacman)) {install.packages('pacman')}
pacman::p_load(readr,tidyr,ggplot2,dplyr)
df <- read_csv('Outputs/julia_test.csv')
names(df) <- seq(100)
df$iter <- seq(20000)
df <- df %>% gather(variable,value,-iter)
df$variable <- factor(df$variable,levels=seq(100))
ggp... |
492c15e3e7f95f38bb69742f68d211169b4a037f | 819e060e57ea525fe50d94d1edfed3686da4f8a6 | /Moran_model.R | 3e7cd0bf8ead317a4a576dc4acfb5481ebfefa2f | [] | no_license | yanglaboratory/2019_Reply_Matters_Arising_Nature-Communications | cb38b356955f72e00d4bc94157fd03ddee7b866c | 19361e6a558ddef72beba67d8fef85303c864c9f | refs/heads/master | 2020-05-30T23:56:06.614530 | 2019-06-03T15:01:54 | 2019-06-03T15:01:54 | 190,026,520 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 936 | r | Moran_model.R | rm(list = ls())
seed=15486
set.seed(seed)
####Fig. 1 Moran effect (CCM)
nsim=10000
eT=R1=R2=N1=N2=rep(0,nsim)
#r1=3.4;r2=2.9
#s1=0.4;s2=0.35
r1=3.4;r2=3.4
s1=0.4;s2=0.4
ph1=0.5;ph2=0.6
D1=3;D2=3
R1[1]=1;R2[1]=1;N1[1]=0.5;N1[1]=0.5
#set.seed(2301)
set.seed(15486)
#set.seed(3486)
for(t in 1:nsim){
eT[t]=rnorm(1)
R1[... |
79180e0c1a1c8895e7e8a43f819800086578b44c | 3e1d11e08794d616d881ac044a9d57a59cce0f43 | /Compute the Perplexity.R | 50cdcf30409f52093038aff1985663530d89d06d | [] | no_license | PaulineNimo/HackerRank | ce512a5b29012e4ad30996b5c75a3bedfe547d1b | 8f40f5022926234113c8402948ea44a364ccf6c5 | refs/heads/master | 2023-01-24T09:06:25.224783 | 2020-11-26T09:40:33 | 2020-11-26T09:40:33 | 282,261,538 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 128 | r | Compute the Perplexity.R | # Enter your code here. Read input from STDIN. Print output to STDOUT
c <- 2^9.91
c <- round(c)
write(as.numeric(c), stdout())
|
aa83ca321c9ef6ebc380423fd4b047710cf2d8d4 | 0e76443b6de1312c8d3988d2538263db0cd7385b | /分析及画图/堆叠柱状图各成分连线.R | aefcb833096b4a7610f43ea02ab362b6e4dd7b6e | [] | no_license | mrzhangqjankun/R-code-for-myself | 0c34c9ed90016c18f149948f84503643f0f893b7 | 56f387b2e3b56f8ee4e8d83fcb1afda3d79088de | refs/heads/master | 2022-12-30T08:56:58.880007 | 2020-10-23T03:20:17 | 2020-10-23T03:20:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,391 | r | 堆叠柱状图各成分连线.R | ##堆叠柱状图各成分连线
##2018-02-06 朱微金 李陈浩 宏基因组
##https://mp.weixin.qq.com/s?__biz=MzUzMjA4Njc1MA==&mid=2247484986&idx=1&sn=5885daab9fd0fd74871e9d22f9043e99&chksm=fab9ec8bcdce659d618179a28b2f4bb45488e327c0fe5cd10e80ed6155855bc0f09fd34f586a&scene=0#rd
# 安装和加载tidyverse包
install.packages("tidyverse")
library(tidyverse)
?ti... |
7d6759d69f0c6f42fa064ae4a7995c47b5aa9f60 | 4c457b7fa98f798e2814a69d481ccc50df2b92a5 | /calsim-text-to-dss/cs_text_to_dss_lib.R | 254629d9e74a8a765f95b29cb613e76937eaf2de | [] | no_license | usbr/visualization | 4342994647826d478f55a3ce0a8b6982ae580430 | 64b2d60ceee522f5a7c65092ad5e03e047900b9f | refs/heads/master | 2021-01-01T18:03:16.348871 | 2015-05-27T17:30:23 | 2015-05-27T17:30:23 | 31,608,812 | 2 | 5 | null | null | null | null | UTF-8 | R | false | false | 7,607 | r | cs_text_to_dss_lib.R | calsim_cplex_text_to_dt <- function(fn, date_, cycle_){
require(data.table)
require(stringr)
lines = readLines(fn)
start = grep('Maximize',lines) + 1
end = grep('constraint',lines) - 2
keep_lines = lines[start:end]
clean = gsub('\\+','',keep_lines)
dt = data.table(read.table(textConne... |
1439699764551bad7b1edb0a5e64c35a436657ec | d20145e080798319e0028a4c9d8851f619285c29 | /ch09/R/phd-halfnorm.R | d0beb17ba2c21c4d3f9a1ab14f5be41259846593 | [] | no_license | friendly/VCDR | da441b8306969fd6469a3bbc6a4475e028c61e29 | 818156ee0a26943a656ae915d924773c87654cec | refs/heads/master | 2023-02-18T08:40:28.634897 | 2014-12-05T13:24:55 | 2014-12-05T13:24:55 | 16,708,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,618 | r | phd-halfnorm.R | # halfnormal plot example
data("PhdPubs", package="vcdExtra")
library(MASS)
phd.nbin <- glm.nb(articles ~ ., data=PhdPubs)
library(car)
qqPlot(rstudent(phd.nbin), xlab="Normal quantiles", ylab="Studentized residuals", id.n=3)
# examine distribution of residuals
res <- rstudent(phd.nbin)
plot(density(res), lwd=2, c... |
d74a7cd6ccb3a9258a16ca7b467fe885a8e638bd | b7c0f8e75f4261c462d4d5980c0901543040c382 | /server.R | 4fdba28bd3a38a70850a4de2d5b327302d34a6e7 | [] | no_license | icetornado/ds_capstone_shiny | a66950d0aeebabdb51888babbbb9bbf937606409 | 06f10cc7a88807c1abeb36962c36c1644d599904 | refs/heads/master | 2016-09-13T11:11:34.049552 | 2016-05-31T19:18:00 | 2016-05-31T19:18:00 | 59,299,481 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,776 | r | server.R | library(shiny)
library(tm)
library(stringr)
library(doParallel)
registerDoParallel()
source(file.path("models2.R"))
wordCount1 <- readRDS(file.path("data3", "wordCount1.Rds"))
wordCount2 <- readRDS(file.path("data3", "wordCount2.Rds"))
wordCount3 <- readRDS(file.path("data3", "wordCount3.Rds"))
wordCount1NoStem <- re... |
be4bf10042f6b1cdd735a92febea142204d48450 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/chillR/examples/Date2YEARMODA.Rd.R | 5bda3acb77f09d8694c2f350c6d2398419eb4976 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 234 | r | Date2YEARMODA.Rd.R | library(chillR)
### Name: Date2YEARMODA
### Title: Date to YEARMODA conversion
### Aliases: Date2YEARMODA
### Keywords: utility
### ** Examples
Date2YEARMODA(YEARMODA2Date(20001205))
Date2YEARMODA(YEARMODA2Date(19901003))
|
2f1c2467fdc5550c351a5fc36fe134a516febeb3 | 4eca6e4383e23ce0408db002bc9087b7ba28a089 | /complete.R | 58079748616b28e366c2e7eaf7df96b8afc8833d | [] | no_license | coolbig/datasciencecoursera | 57989910f0880c318e6ae48dcd9656911be6bc81 | ae2ed94974ef7ae181c7caaa331f07078155d4a8 | refs/heads/master | 2021-01-02T23:08:14.739022 | 2014-06-17T08:02:21 | 2014-06-17T08:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 645 | r | complete.R | complete <-function(directory, id = 1:332) {
allfiles<-list.files(path=directory,pattern=".csv", full.names=TRUE)
df <- data.frame()
nobs <- data.frame()
xid <- data.frame()
for(i in id) {
##df <- NULL
df <- read.csv(allfiles[i])
##... |
8b3eef4dfd2feccebccaa51a5a5d777866f54878 | 32d6189a56ea7d0b66a9b01bee60c3d61fbe0eed | /myfile.R | d9f31134e182e83a575da59c8b54d6175737cb43 | [] | no_license | EwersAquaGenomics/git-boot | 0e67b32b3b545d1f001def5c885000ba2085b040 | 1bdacff365ad95377fef25feff5e7c41b4a929bd | refs/heads/master | 2023-02-08T19:33:14.404581 | 2015-03-17T19:27:45 | 2015-03-17T19:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 53 | r | myfile.R | # this is my first line
# am a fake collaborator...
|
b351428e2a58c389fe2d4aaee2d04e56c1cd6397 | ea7a3cb08c2a242abaacd880e84caf6513886353 | /prepare_calib_sedi.R | 9dc11a84389d9323dc433c3275e93568e6371fe1 | [
"Unlicense"
] | permissive | ecustwy/MMEMO | f3b1b7b3c83951c296548bb38f620badce174c91 | 05cd3bb2ddbe9d471d5dff746dfd5cfd15d1491f | refs/heads/master | 2022-12-03T15:45:56.712242 | 2020-08-20T12:32:39 | 2020-08-20T12:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,752 | r | prepare_calib_sedi.R | #WASA calibration using PSO / DDS
#to be called after calibration for water has finished
# use existing directory "thread1_best" (created by view_progress.R)
# run on cluster or
# when called locally before copying to cluster: delete dds.* and thread.* in run directories
setwd("E:/till/uni/parameterisierung/Esera_20... |
f9f814f8ac78d40a8d1931d0b6b8b64163ed7469 | d6e3f8759f52fee91d1ee7dcd813751593aa906e | /Code/PLSC503-2021-WeekSeven.R | 45135572cb727419cbe547d4c340e4f32675ff41 | [] | no_license | nsflemming/PLSC503-2021-git | cf822efac01886f9294305b84c3085bd2023de1e | 55ad1a8efd901fd040724029e3d1e3f7293b161a | refs/heads/master | 2023-02-26T09:24:51.821351 | 2021-04-28T12:21:11 | 2021-04-28T12:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,924 | r | PLSC503-2021-WeekSeven.R | #######################################################
# PLSC 503 - Spring 2021
#
# Model specification / omitted variable bias,
# plus multiplicative interactions.
#######################################################
# Packages, my dude:
library(car)
library(RCurl)
library(lattice)
# setwd() here:
#
# setwd("~/... |
85999b47eeb56b40543b3684372f3a248d2ed874 | f0c7b2b3589a9f0e52c9f6e8b0982020cec80f19 | /codes/shim.wo.quad.original.r | 9a4c4edae4a13f9df444bdc125bfe09e1a8bd5a7 | [] | no_license | Kedong/VSSH | 1e91198412b6483a342e8000406c735bd20f09fd | 094221a0e65a6c31af2c102fa1be4108161e1629 | refs/heads/master | 2021-01-10T16:45:04.218840 | 2017-11-16T23:10:51 | 2017-11-16T23:10:51 | 50,731,867 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,131 | r | shim.wo.quad.original.r | ##
## NOTE:
## Please see "Example" at the bottom before running the code.
##
##
## main function: shim
##
## ---- Input Variables ----
## x: a matrix containing main terms
## lambda1: regularization parameter for betas
## lambda2: regularization parameter for gammas
## phi.weight: a vector containing adaptive weights
... |
6b18a7317f7808b943d2fc7b99ab4344114b555b | a5ebd749bbaa2e377ee810334bdded8e3d9794c6 | /helper.R | 3058d4ee4d1b5348dc0f8cc59ad643fffedbedc0 | [] | no_license | aariani/AnnotWizR | 085426a7ce5ac4282faaa9f494c0408702cf0f2a | 8cbd6b25df04269b21d4f48cb03218adf3682f4f | refs/heads/master | 2021-01-23T13:30:57.423767 | 2017-11-09T21:02:58 | 2017-11-09T21:02:58 | 102,667,516 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 691 | r | helper.R | # helper functions
get_SNPs_Ranges=function(file_in){
# function to used when input file is a SNPs association file
# return a GRanges object for SNPs
SNPs_info = read.table(file_in, sep=',', header=T)
SNPs_data = GRanges(seqnames=SNPs_info$CHR,
ranges=IRanges(start=SNPs_info$POS, end =... |
615b44f664f8f17605275e1f4a8b4ef0a6a9062c | bf93f409d6da8f1050c1c4d4b9be9bcb5634e685 | /code/mSimple.R | ca6758db2ebbd502722ddef5f4b901167fb4aa15 | [] | no_license | zouyuxin/GTEx | b28baa22b7f6338c60d573ea713f26e966469f44 | 20d45f3e15427ab6129395af5a4211202726ba61 | refs/heads/master | 2020-04-12T17:13:20.452499 | 2020-02-20T15:25:19 | 2020-02-20T15:25:19 | 162,638,387 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 432 | r | mSimple.R | library(mashr)
gtex <- readRDS('gtexv6.rds')
data.strong = mash_set_data(gtex$strong.b, gtex$strong.s)
data.random = mash_set_data(gtex$random.b, gtex$random.s)
U.c = cov_canonical(data.random)
U.ed = readRDS('Ued.rds')
V.simple = estimate_null_correlation_simple(data.random)
data.random.V.simple = mash_update_data... |
0e2c5a3d075611d99c19b8f66693aa87ac9c629c | 0ea96e7b4d16c6595415d657103f7a2391421706 | /tests/testthat/test_make_hicexp.R | 058d246dc0c9f21af14b41d5157aae025f844820 | [
"MIT"
] | permissive | dozmorovlab/multiHiCcompare | c913334612e9b6fc8807341d370f11715ed51da0 | dcfe4aaa8eaef45e203f3d7f806232bb613d2c9b | refs/heads/master | 2022-04-29T02:56:04.486050 | 2022-04-22T01:43:22 | 2022-04-22T01:43:22 | 144,622,761 | 4 | 7 | NOASSERTION | 2020-03-30T13:53:16 | 2018-08-13T19:10:22 | R | UTF-8 | R | false | false | 1,442 | r | test_make_hicexp.R | test_that('make_hicexp works', {
data("HCT116_r1", "HCT116_r2", "HCT116_r3", "HCT116_r4", "HCT116_r5","HCT116_r6")
groups <- c(1, 1, 1, 2, 2, 2)
covariates <- data.frame(enzyme = c('mobi', 'mboi', 'mboi', 'dpnii',
'dpnii', 'dpnii'),
batch = c(... |
603faa00ce1b5f92b82c42275e1bcd4a9f745b95 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/eha/examples/toTime.Rd.R | 3fc29164ac6d424604daca84799ac727708d5cbb | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 388 | r | toTime.Rd.R | library(eha)
### Name: toTime
### Title: Calculate duration in years from "0000-01-01" to a given date
### Aliases: toTime
### Keywords: survival
### ** Examples
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The functio... |
81359f50b37f50aa54e706222d7d949ddc992153 | dda965daf7a75a5738ae28a5c598953d552f9dcd | /R/EM.R | a7bbef5152b69371ddc03cc601b08a57ec26cb1c | [] | no_license | weidewind/evolikelihood | db56aff18296f74bab9ef3781da2897479d0b2cc | aa144e3d6361c778b0dbbf0935668c3210cd9a65 | refs/heads/master | 2020-05-20T23:51:05.500547 | 2016-08-04T13:13:31 | 2016-08-04T13:13:31 | 56,065,055 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,034 | r | EM.R | list.of.packages <- c("scatterplot3d", "parallel")
new.packages <- setdiff(list.of.packages, installed.packages()[,"Package"])
if(length(new.packages)) install.packages(new.packages, repos='http://cran.us.r-project.org')
#Don’t use library() or require(). These modify the search path, affecting what functions are avai... |
19af645a05f6298c2897ecc272411580a61b5c74 | e522efd67f51c373a6df13ce4a683e6c95fa802d | /AQI.R | a91eca0df2172cd8d1d3b0a9c99fc85c016376b0 | [] | no_license | gcatt/gcatt | 9ede6622bc993a55f202d5e6aa54f6c2b381415f | 8393ac6df874d5bde2fac1cd4945f25df0b0e622 | refs/heads/master | 2022-04-09T22:13:09.388129 | 2020-03-30T07:37:00 | 2020-03-30T07:37:00 | 250,362,391 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 7,517 | r | AQI.R | #Air Quality Data
#librarys
library(ggplot2)
library(ggthemes)
library(stats)
library(lubridate)
#Read in Data
Air_Beijing<-read.csv("C:/Users/MrGaM/Documents/GitHub/gcatt/Data_International/beijing-air-quality.csv",stringsAsFactors = FALSE)
Air_Berlin<-read.csv("C:/Users/MrGaM/Documents/GitHub/gcatt/Data... |
370238853a18934e83b1bd1dd77f90a3561bb220 | dd68bc3bf1fc13036551563399bb161bde8ff93d | /WATS_USU/snotel_single.R | 7db391f4ac4fd368c9947d1e783096b27cd744ba | [] | no_license | davebetts/Data-management-scripts | fba0941c5689ffd7d3771f1624b6085282d51df4 | f6e4a980e0d938c589071299007009111463bc86 | refs/heads/master | 2021-01-21T22:19:16.028802 | 2017-10-04T22:13:18 | 2017-10-04T22:13:18 | 102,146,427 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,761 | r | snotel_single.R | rm(list = ls())
gc()
filenames <- list.files("snotel", pattern="*.csv", full.names=TRUE)
# Process each file in diretory "./swe" with function "snotelgof()"
OvsE <- vector(mode = "list", length = length(filenames))
for (i in 1:length(filenames)) {
filename <- filenames[i]
title <- gsub(".csv", "", filename)
tit... |
ab65298a16c42fa2ff4625eeed7fd2c66a1cfeb3 | b9a5b874df0e0d1bd97c56e9f29584c510a2e73d | /pre-season-forecast/pre-season-forecast.R | 6f8fefaa5307dbdfc3b1f0c970a6083144fe1f59 | [] | no_license | amoeba/2020-yukon-forecasting | 6543a8df425235c79985e6d14acd7035c6a09d4b | cb9a5b10eb81ddd9a0000fd945bf8840f0ed004e | refs/heads/master | 2022-11-22T05:50:08.833552 | 2020-07-22T01:49:22 | 2020-07-22T01:49:22 | 259,212,703 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,761 | r | pre-season-forecast.R | #' may_forecast.R
#'
#' 15/25/50 %tiles of timing using
library(dplyr)
library(ggplot2)
theme_set(theme_bw())
library(readr)
library(patchwork)
# Data loading/cleanup
######################
yuk <- read_csv("data/yukon.csv")
forecast_year <- 2020
# Plots
p_msstc <- ggplot(yuk, aes(msstc, mdj)) +
geom_point(shape=1)... |
b164282c9c8c14831565b9e49677ed0fbf806d89 | c114cb86ac335b056175550a77501e8217c9032c | /man/gate_draw-GatingSet-method.Rd | b88bc695a2ada0c954dadb31aa0f06c5ef4b5661 | [] | no_license | Bia10/CytoRSuite | 7ffdfdb241e4d83a54c319ecffdaa482be2f2b5f | baf716187fe2d5c2543cf5524b90265190137466 | refs/heads/master | 2020-06-20T19:33:34.688082 | 2019-03-07T08:44:01 | 2019-03-07T08:44:01 | 197,223,695 | 1 | 0 | null | 2019-07-16T15:49:42 | 2019-07-16T15:49:42 | null | UTF-8 | R | false | true | 3,895 | rd | gate_draw-GatingSet-method.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gate_draw-methods.R
\docType{methods}
\name{gate_draw,GatingSet-method}
\alias{gate_draw,GatingSet-method}
\title{gate_draw GatingSet Method}
\usage{
\S4method{gate_draw}{GatingSet}(x, group_by = NULL, select = NULL,
parent = "root", alias ... |
9f489cd840c001f746422318e2037c5e9e3f95ca | b32545a4bbb7d5d07d24bddcfb23c7a76bcaae21 | /plot_dim_reduce.R | e6ef0d618bd6c76835130174d2845884d2384af5 | [] | no_license | igledaniel/lit2vec | 1ab76dba7d6ae513f67bdcca8c85437737f5ed54 | 9ac34e2e079be9cffc557c296550d1aa64186ab9 | refs/heads/master | 2023-03-17T14:37:06.653242 | 2016-06-08T18:43:34 | 2016-06-08T18:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,029 | r | plot_dim_reduce.R | model_name <- "docs50"
fp = "data/"
wordAndcategory = FALSE
labs <- read.csv(paste0(fp, "names_", model_name, ".csv"), header = FALSE, stringsAsFactors = FALSE)[,1]
# pca
x1 <- read.csv(paste0(fp, "docvecs_", model_name, ".csv"), header = FALSE) # ndocs by vec-dim np array
stopifnot(nrow(unique(x1)) == nrow(x1))
# co... |
a0e6e36fc3c5cb07772bac45bef9ae889a90b402 | 8e62b56339ad30b31343a5067fee29b2fa4dfed7 | /hate_crimes_final_Fuentes_Villhauer_Nicklas.R | d862d9302de88b90e569eef5938da6dd2223a4ca | [] | no_license | UVA-MSDS-STAT-6021-HateCrimeProject/Nick | c07b89958fe56e0577a68af835e73bc9feac1b9f | f74e98f0abb018f19deae7d9d70154b655c3969f | refs/heads/main | 2023-02-03T04:19:59.378457 | 2020-12-09T03:31:35 | 2020-12-09T03:31:35 | 313,777,417 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 64,056 | r | hate_crimes_final_Fuentes_Villhauer_Nicklas.R | #STAT 6021 Project 2 (Hate Crimes in America)
#David Fuentes, Matt Villhauer, Matt Nicklas
#Using data from FiveThirtyEight, RAND Corp, and other sources to see which variables contribute to hate crimes measured as rate per 100K residents
# #########################################################################... |
95842e6bdf3829e57c710c6d597ed79e6fcf1fef | 2ba22f489011cfb61d6727ab522bf3904f78eefc | /man/plot.catatis.Rd | 039044c6d9996d6ea933d38ced644149888b27e2 | [] | no_license | cran/ClustBlock | 847297472d9cc6f05bad33b23fd78a48938dead7 | eed656e469929805b6c72f465912c965fe9f580f | refs/heads/master | 2023-07-07T05:26:15.786420 | 2023-06-29T17:00:02 | 2023-06-29T17:00:02 | 174,553,356 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,518 | rd | plot.catatis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.catatis.R
\name{plot.catatis}
\alias{plot.catatis}
\title{Displays the CATATIS graphs}
\usage{
\method{plot}{catatis}(x, Graph=TRUE, Graph_weights=TRUE, Graph_eig=TRUE,
axes=c(1,2), tit="CATATIS", cex=1, col.obj="blue", col.attr... |
e8c6a4e04d421bcba80a285e58f0afa661fc646c | f5bc3a93a5482ded18b635c0c5ad173e07fcf6d2 | /sircomp.R | d6eb35a0ec29da68cfbe2d5f0adab2cbad84fe2e | [] | no_license | madhurima-nath/epi_model | 8b7155d0032a69a60e010a489025edf10b7daf45 | 7d9ad016e359eb87b5de995f80ef3408346c22d8 | refs/heads/master | 2023-08-16T13:06:27.841182 | 2021-03-16T19:43:23 | 2021-03-16T19:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,299 | r | sircomp.R | ##install packages
install.packages('deSolve')
## Load deSolve package
library(deSolve)
## Create an SIR function
sir <- function(time, state, parameters) {
with(as.list(c(state, parameters)), {
dS = -beta * S * I
dI = beta * S * I - gamma * I
dR = gamma * I
return(list(c(dS, dI, dR)))
})
}
##... |
f197ec0f0b24b5eff2ccf1ca540778eeaa5afc6b | 6bb82b6ec315060653cc675155321b8b53e85ed9 | /03 R Syntax 1 (Data Typs and Strings)/03_2_List_Matrix_Array.R | 0982f5b7ac09b182aa85c696ea25662e4d781b60 | [] | no_license | inkyscope/R-for-Data-Analytics | d9d66a58fd67a5c4731c186010de281657bd82d6 | fd9e04e4184e7edee6ee08ca238ac4c24a83a5c7 | refs/heads/master | 2023-01-31T12:43:00.186966 | 2020-12-11T07:11:54 | 2020-12-11T07:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,003 | r | 03_2_List_Matrix_Array.R | # Part 2-1: Data Handling (List)
# Example of a list
listA <- list(1, 2, "a")
print(listA)
listA[[1]]
listA[c(1,2)]
names(listA)
names(listA) <- c("First", "Second", "Third")
listA[["Third"]]
listA$Third
# Data Handling: List
A <- list(name="Kang", salary = 10000, union = TRUE)
A
A$name
B <- list("Kang", 10000, TRU... |
42fddd771e453b3fd6026320bc2fa0af1346d708 | b9f2e470d568cde6eac087d771f9adbee117dd1a | /R/dbPars.R | c7df1938ddf600522d008ff9ef670261f07c451f | [] | no_license | cran/megaptera | 0e3852c12ab3d2ec0050d94bf82de74cf8ccc71f | 83855c9a44ba3f0280cd39c1bfdde1fccd25478f | refs/heads/master | 2020-05-16T15:12:09.188082 | 2014-10-30T00:00:00 | 2014-10-30T00:00:00 | 26,581,099 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,900 | r | dbPars.R | setClass("dbPars",
representation = list(
host = "character",
port = "numeric",
dbname = "character",
user = "character",
password = "character")
)
"dbPars" <- function(host = "localhost",
port = 5432,
... |
e18eb1bcf50e28c85d3a532d762144ed26054c05 | e8c138d1b839752698e9ae7220287644e1f99424 | /man/closest_to.Rd | 091e10a3aa7d6babcb01d64546514cd97cf4a09d | [] | no_license | dtkaplan/checkr-v-0.1 | 7496f95367290b9313f81b07308b688b5a5e9aa1 | 71e73eaaddda73a26d6cacafee3fd9d9abd1f809 | refs/heads/master | 2021-09-03T18:21:21.054638 | 2018-01-11T01:40:01 | 2018-01-11T01:40:01 | 73,754,306 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,070 | rd | closest_to.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/closest_to.R
\name{closest_to}
\alias{closest_to}
\title{Locators based on solution code}
\usage{
closest_to(what)
}
\arguments{
\item{what}{either an object name or an identifying character string from the code generating
the object}
}
\valu... |
0e4aa15ab1df0d21e99b4c684ecf5fd100736cf9 | 29e07daf4ff0277d07d44b1bde79a696c597d744 | /imp_dur.R | 0d9fd62e95f26accd27660a36fca35c5425a3408 | [
"CC0-1.0"
] | permissive | LimesLimits/Settlement_hierarchy | 43dbd6c9b296d4c52223a4b6c7e7a0e6923d9778 | be2cb222661145a416a7e7170c0a785ff9c1bd37 | refs/heads/main | 2023-04-18T21:20:15.209828 | 2022-09-09T12:40:20 | 2022-09-09T12:40:20 | 534,600,984 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 498 | r | imp_dur.R | # script imp_dur.R
# read the datafile
imp_dur <- read.csv("./IMP_DUR.txt", header=TRUE, sep=";")
ggplot(imp_dur, aes(x = IMP, y = FRQ, fill = DUR)) +
geom_bar(position = "fill", stat='identity') +
guides(fill = guide_legend(reverse=TRUE)) +
scale_fill_grey(start = 0.9, end = 0.1) +
ggtitle("Durat... |
9ff5c037a6f8f20a08e3a1250010ab8d80dd889f | 79b0d43549a50d0dfc950e420e23f921a7bde12a | /Phylogenetic Analyses/archived files/sCoRRE_calculating_functional_diversity.R | 4fcf5d1e1d25bbf2e5c0a191f9ec4591c7513165 | [] | no_license | mavolio/scorre | 55de4ef0c9bfd946b9257a9e876147a5d24462dd | d67a78da2cc627eae9ab25ee4cd8f931a5102200 | refs/heads/master | 2023-07-26T22:51:21.000447 | 2023-07-12T15:26:27 | 2023-07-12T15:26:27 | 226,844,825 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,970 | r | sCoRRE_calculating_functional_diversity.R | ###
### Calculate Functional dispersion for CoRRE data
###
### Last updated Dec 13, 2021
### Set up workspace
rm(list=ls())
setwd("C:\\Users\\wilco\\Dropbox\\shared working groups\\sDiv_sCoRRE_shared\\") #kevin's laptop
setwd('C:\\Users\\lapie\\Dropbox (Smithsonian)\\working groups\\CoRRE\\sDiv\\sDiv_sCoRRE_shared\... |
a163b037df0cbec585b5a76bdd34989d9fa9e875 | 1741d47aac4157ca801d60c0e2de064d8c31ba04 | /Test 4.R | d7b607d93e839d2d306e32d38808373cff0d9f88 | [] | no_license | ThejaswiniNayak/Using-Apriori-Algorithm | b6754495eb9f333a993421bdfafafe62a022fa3a | 6441d5f07f200ac1881c65f85f6ac28de2abcb6d | refs/heads/master | 2020-04-05T20:26:07.531929 | 2018-11-12T08:26:19 | 2018-11-12T08:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 737 | r | Test 4.R | setwd("~/Personal/Study/Crosssell and Upsell/Upsell_model/Initial Data")
library('arules')
txn= read.transactions("MBAEMCdata.csv",rm.duplicates = FALSE,format="single",sep=",",cols=c(1,2))
#inspect transaction data
head(txn,n=5)
txn
txn@itemInfo
image(txn)
#mine association rules
basket_rules = apriori(txn,pa... |
d8623122ab17a6fe937bbe71f795bdd64db3218e | 93aff2e87580e6c358d42ccbb390aa328ddc275f | /plot4.R | 1bf23d09b12f0ff4e34a3085e9f0d6391a03c1b5 | [] | no_license | awulfes/ExData_Plotting1 | 7f007ed0a97df4dc7e8845ee08c4971eed9876a4 | 7a19c41f76608a429d9b38bbc1cb64ad853a37a5 | refs/heads/master | 2021-01-20T12:09:58.875513 | 2017-03-19T20:19:49 | 2017-03-19T20:19:49 | 85,499,922 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,452 | r | plot4.R |
producePlot4 <- function (inputfile = "./data/household_power_consumption.txt", outputfile = "plot2.png"){
# constants
date.start <- strptime(c("01/02/2007 00:00:00"),"%d/%m/%Y %H:%M:%S")
date.end <- strptime(c("02/02/2007 23:59:59"),"%d/%m/%Y %H:%M:%S")
# read data
print("Reading dataset...")
... |
e80c6fb284b4d77d171e1a7d08dd80e780aa7937 | 3fc582b5ab0a1d2f778fd2582ce7c0bb670aa11d | /man/get_day.Rd | 3561f0883cede7ec1c8bdb0460ba1af4177ceae4 | [] | no_license | bluegulcy/aquacrop | 43b56a8becb9244fe3028af853f3c19c99bdd5dd | 50a1d815d04259e8792aba763fc53e0f896bf1a0 | refs/heads/master | 2020-09-02T10:55:40.510230 | 2019-10-08T10:03:12 | 2019-10-08T10:03:12 | 219,206,208 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 330 | rd | get_day.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Aqua_library.R
\name{get_day}
\alias{get_day}
\title{get parameter day from date string}
\usage{
get_day(x)
}
\arguments{
\item{x}{date, where year = x[[1]], DOY = x[[2]]}
}
\value{
day of the month
}
\description{
get parameter day from date... |
b64163b0b6a575d64e1ecd908c0a974e665faaa0 | 6dff9f5e4c651f70cdd28d07d2fa5a7d54f0056b | /tests/testthat/test-save.R | d4f0ceda41c02e0227a30a8ffb8e627312566c79 | [
"MIT"
] | permissive | Programming-The-Next-Step-2021/Email_Agent_Template | 2513276fc92814ca42ae22989784ae9aa8ece0d3 | 765e19899d1f0ee0f8d4e7c77142804908105f67 | refs/heads/main | 2023-05-02T20:58:39.158020 | 2021-05-30T20:39:21 | 2021-05-30T20:39:21 | 364,247,285 | 0 | 0 | NOASSERTION | 2021-05-30T20:39:22 | 2021-05-04T12:23:18 | R | UTF-8 | R | false | false | 781 | r | test-save.R | library(shiny)
library(testthat)
library(shinytest)
### I extracted a code snippet of my server code and saved it in R/save.R
### I named the function save_file()
## the function is supposed to save the input data in a data frame and writes this data frame into a csv. file.
## If I test the function using a path to ... |
d954d70bd8431618a3d330feadfd2a88e841bd47 | 2c4dbf42a157b8691ad66da48a34c98e92407d18 | /R/scrap.R | 80d76269bbc280f888aa72fc89fbf99fe26c6e08 | [] | no_license | timkiely/spatially-conscious-ml-model | 05f829b8efb181fe4f0f1454427589a3443f0d1a | 3a81a9ce61a48dd8d34aca427370968f9580c2bd | refs/heads/master | 2021-10-10T12:19:08.269686 | 2019-01-10T16:39:12 | 2019-01-10T16:39:12 | 95,896,422 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,690 | r | scrap.R |
# for testing things out
# pluto1 <- read_rds("data/processing steps/p01_pluto_raw.rds")
# pad1 <- read_rds("data/processing steps/p02_pad_raw.rds")
# sales1 <- read_rds("data/processing steps/p03_sales_raw.rds")
# sales2 <- read_rds("data/processing steps/p04_sales_and_pad.rds")
# pluto2 <- read_rds("data/processi... |
729eca5431e934ea3dc60065e9b79099f0699291 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/AlphaPart/tests/testthat/test-write-csv.R | d7f2947df15cc5a738030c9a87230a5b5f32b2d9 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,068 | r | test-write-csv.R | context("test-write-csv")
test_that("Check writing input for write.csv.AlphaPart", {
## Making sure we accept only the right class and one file name!
expect_error(write.csv.AlphaPart(data.frame(x=1:10)))
expect_error(write.csv.AlphaPart(data.frame(x=1:10), file=c("a", "b")))
})
test_that("Check writing process... |
9b10edfa16c2ade8c1e0314ad39ed4de41da9c90 | 40e46bdd1a3c128917625f7d691f253f632778a1 | /Task-3.R | 10b143ccf99a11e1ac7b223dea28508c4a3c1cfc | [] | no_license | AlexMartin-Eire/Consumer-Analytics-Big-Data- | 3c452f8ad8d0675fb0f1f587bde1bda1338912d1 | 98668d12d9d7210a3891c2b4d02055505318a018 | refs/heads/master | 2021-04-06T19:39:58.528711 | 2018-03-15T02:02:30 | 2018-03-15T02:02:30 | 125,298,431 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,040 | r | Task-3.R | # test for package existance and install
if (!is.element("tidyverse", installed.packages()))
install.packages("tidyverse", dep = T)
library(tidyverse)
cl <- as_tibble(read.csv("dh_causal_lookup.csv"))
pl <- as_tibble(read.csv("dh_product_lookup.csv"))
sl <- as_tibble(read.csv("dh_store_lookup.csv"))
tr <- as_tib... |
af1617ae41d82c2ba38cbc24340d7ed0f4c1f4e7 | ef0dd25fc50a1912248ab962f21c3c44cf932ea8 | /simulation_class_1.R | 492191af0b9838314d5adb29b9ea4ae9063c70fc | [] | no_license | Sebastianjohncj/Rscript_practice_files | c36e2bf322f463c29a8eb80d549d0e415e828397 | ac127792af4faa602a78681a768c2f954c7d6d8b | refs/heads/main | 2023-04-06T15:13:43.184079 | 2021-04-14T14:25:23 | 2021-04-14T14:25:23 | 357,932,532 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 505 | r | simulation_class_1.R | cat("\014") # cleans screen
rm(list=ls(all=TRUE)) # remove variables in working memory
setwd("C:/Users/dell/Downloads")
ipl_data
summary(ipl_data)
MODEL1 <- lm(`Sold Price(US$)` ~ `Base Price(US$)` + `RUNS-S` + WKTS + INDIA + L25, data=ipl_data)
summary(MODEL1)
names(ipl_data)[names(ipl_data)=="Sold... |
374a88d218387e26c3f3a0c410f17f70ed5045e0 | a3c78700a65f10714471a0d307ab984e8a71644d | /base/db/man/pft.add.spp.Rd | 6eda5d84ea0e33ce2103f27813de39a4faed83b6 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PecanProject/pecan | e42a8a6a0fc9c0bb624e0743ab891f6cf131ed3f | ce327b92bf14498fa32fcf4ef500a7a5db5c9c6c | refs/heads/develop | 2023-08-31T23:30:32.388665 | 2023-08-28T13:53:32 | 2023-08-28T13:53:32 | 6,857,384 | 187 | 217 | NOASSERTION | 2023-09-14T01:40:24 | 2012-11-25T23:48:26 | R | UTF-8 | R | false | true | 1,395 | rd | pft.add.spp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pft.add.spp.R
\name{pft.add.spp}
\alias{pft.add.spp}
\title{Associate species with a PFT.}
\usage{
pft.add.spp(pft, acronym = NULL, ID = NULL, test = TRUE, con = NULL, ...)
}
\arguments{
\item{pft}{String name of the PFT in the database}
\it... |
f941077d12bf93c1a7fd9e609f9e278db96c0274 | a1c3aea577f7636f53386dde9ead621dce49a688 | /previous-analysis/every-species-2.R | 72ad9efb42f5a048a839235263392d2189299198 | [] | no_license | jacobpassfield/final-year-project | 512a4e121108cb093dcd01ae67a89018bd583075 | 8c95e303b44968e02334bb0f623fb5909eff2ba2 | refs/heads/main | 2023-04-22T15:09:25.074479 | 2021-05-10T09:12:28 | 2021-05-10T09:12:28 | 354,914,369 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,597 | r | every-species-2.R | library(tidyverse)
library(broom.mixed)
library(lme4)
library(patchwork)
library(ggeffects)
load(file = "data/data.RData")
data <- data %>% mutate(ScaledMeanSST = scale(MeanSST, center = T, scale = T))
data$Geogroup <- factor(data$Geogroup)
data$SurveyID <- factor(data$SurveyID)
by_species <- data %>%
group_by(Taxo... |
e168361d203cf6de8342224aae11979234349059 | 922aa270fa30066044e7ae475f31e4426b59cfac | /man-roxygen/arg_edgelist.R | 8ae89c54a7df0055ef68a0070c849221858ec281 | [] | permissive | jakobbossek/mcMST | 361a3708a3413126fbfe61f6ae930e3ee326356b | 4d5a18dfb79a9949c99fadf3a93c6f0f44b0cba3 | refs/heads/master | 2023-03-16T12:54:59.937066 | 2023-03-13T18:49:28 | 2023-03-13T18:49:28 | 96,212,733 | 2 | 3 | BSD-2-Clause | 2019-10-16T11:48:01 | 2017-07-04T11:51:54 | R | UTF-8 | R | false | false | 89 | r | arg_edgelist.R | #' @param edgelist [\code{matrix(2, k)}]
#' Matrix of edges (each column is one edge).
|
93325104349477cce8f593c0ce9e568d347d2dd1 | 0aea28942b6da9d02c5cb85fa1f840ae291c20bd | /GBMmulticlass.R | d6509939965b8cab98a7e47a6653fae630de2b7d | [] | no_license | orioli/triads | d98fcff09843836e7934d7a1a32c843fbd6f8941 | bb99df7fef8e360c0aa0cfaa0a516dbbf424705c | refs/heads/master | 2021-01-02T09:16:23.175030 | 2017-08-03T02:51:26 | 2017-08-03T02:51:26 | 99,175,480 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,936 | r | GBMmulticlass.R | # TAIWAN POLICE - using GBM to multiclass triads
#
# change this to your working directory
setwd("/Users/jse/DEsktop/TAIWAN POLICE")
library(gbm)
library(ggplot2)
## LOAD id file
id = read.csv("id.csv")
dim(id)
id[1:4,]
summary(id)
## LOAD case file
crp = read.csv("CRP.csv",encoding="utf-8")
dim(crp)
crp[1:4,]
as.... |
a207e888a6f1c32716b478e3d15ebb95c215ff7f | fa70b2a61f6c1e760151c3c04d0c7d55098231af | /tests/testthat/test-combinevariablesetsasbinary.R | 3f55f3e47a24a4b5c84ba7969d07c480a2f42608 | [] | no_license | Displayr/flipData | 383735ede9065ceec10b84b9d63a8bece6122257 | 9c24004e6e8dc70f856efc773a6a4a6f95db1489 | refs/heads/master | 2023-06-22T18:27:09.861659 | 2023-06-19T03:06:09 | 2023-06-19T03:06:51 | 59,714,768 | 0 | 4 | null | 2023-08-23T04:43:16 | 2016-05-26T02:54:37 | R | UTF-8 | R | false | false | 5,932 | r | test-combinevariablesetsasbinary.R | library(testthat)
library(verbs)
context("Combine variable sets as binary")
data(phone, package = "flipExampleData")
data(colas, package = "flipExampleData")
phone.names <- c("AAPT", "New Tel", "One-tel", "Optus", "Orange", "Telstra", "Virgin", "Vodafone", "Other 1", "Other 2", "Don't know")
unaided <- data.frame(p... |
20ea7246724a5e5a0a36c36f54de14dc3d6eadc1 | b8356867f878b89db8c9498abe81be00032f9b4f | /R/test.R | 6210fb997b77a4ab6fdb08f57c9f7da3df5017ad | [] | no_license | DavisVaughan/testpkgdowntitle | 81151a3a5bc920caa9fa159eaf16244aef78cc9f | d69c614bbd56682e4192dbcee1e285cbd9e7dffd | refs/heads/master | 2022-11-12T14:31:30.200352 | 2020-07-01T13:31:24 | 2020-07-01T13:31:24 | 276,385,800 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 121 | r | test.R | #' \Sexpr[stage=render,results=rd]{"hi"} Test
#'
#' @description
#' Hi there
#'
#' @export
test_fn <- function() {
1
}
|
60fd1038a63d76e6a4dea220aa9e6b67e994a824 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/tm/examples/DirSource.Rd.R | 321ebd1034748c84a252ad8cdb056c7cdb6f335c | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 161 | r | DirSource.Rd.R | library(tm)
### Name: DirSource
### Title: Directory Source
### Aliases: DirSource
### ** Examples
DirSource(system.file("texts", "txt", package = "tm"))
|
72cf4ac50af6a4a301dab0d392c4fe9740d9720e | 91afa3c4e8cca9dcb9b5146cafbf158c9865b3bd | /Rqtl2_ped.genABEL.R | 5891bef4b98c1b126ddfcf92ffa8cf01c917b9de | [] | no_license | jtlovell/eqtlanalysis | 5d995e14a270e61133a36f07fda7540c554ad7b9 | bc1d9d7b3b0c6dceb7aee71ea4ca8297deeacfec | refs/heads/master | 2020-04-06T06:40:19.501164 | 2015-07-22T16:17:21 | 2015-07-22T16:17:21 | 29,939,969 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,345 | r | Rqtl2_ped.genABEL.R | Rqtl2_ped.genABEL<-function(cross, phys,
ped.filename="out.ped",
map.filename="out.map",
ga.phefilename="phe.txt",
return.ga=T){
g<-pull.geno(cross)
m<-data.frame(pull.map(cross, as.table=T))
m$gene<-... |
2554f974328f81f0e36a666313366ac024619adf | 4f9e90b514964d836cd3ab21a0ae8d77e4dd1a31 | /courseproject/part1-shiny/weatherEventHarm/server.R | 0b3ee61f4202d47802b1d8c4c1bc59893797c911 | [] | no_license | Samhith/coursera-dataScientists-9-Developing-Data-Products | b58a02ec8740719c6c1b1bcdd06fa91813dcd087 | 8c25640f39d21db663186fff955c2bf12637e845 | refs/heads/master | 2021-01-24T14:46:36.310143 | 2014-12-25T07:30:12 | 2014-12-25T07:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,368 | r | server.R | library(latticeExtra)
library(maps)
library(choroplethrMaps)
source("wheatherAnalyse.R")
Sys.setlocale('LC_ALL', 'English')
loadAndStat_data()
data(state.regions)
shinyServer(
function(input, output) {
output$table_topEventType<-renderTable({
data<-switch(input$harmType,
"population... |
a6fbd2ae89b18635bae8d83d803bc26ddcb368f5 | a2d6ef79ff389985df15520e176750c7a0fb8c04 | /R code/Parm Generation.R | e57615e2d86ffa59bff0497f11657983a2605ac9 | [] | no_license | akaboshi900306/hd-not-useful | 8c00b8ade16cc7b675c1cc3ca5cf234e611baac0 | 95a564882783ebd96377e15affef1a632ff61a81 | refs/heads/main | 2023-06-16T07:33:07.581278 | 2021-07-09T15:46:34 | 2021-07-09T15:46:34 | 381,160,246 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,696 | r | Parm Generation.R | library(bigrquery)
library(data.table)
library(bigQueryR)
library(stringr)
library(XML)
library(tidyverse)
#devtools::install_github("hadley/tidyverse")
setwd("//at2a5/vol4/DEPTS/TRAFFIC/PROJECTS/SCD/Supply Chain Analytics/Projects/Seasonal ASL (DO NOT DELETE - Nirjhar Raina)/Parm Upload/")
project = "analytics-sup... |
684557828b7a531c05369e53e9f62aa629eb4d4e | 340caf01c809a50b738188b4dfc9067522bd377a | /man/z.stats.Rd | 756a10c2342bd09697efc9edad9c5e29d9465d1b | [] | no_license | sunilgarg1/zFactor | 542180e69125cda88788b13eea2f0f70027771d2 | 145ab68d6ffe233764cd24449a0dafb7ac31dd09 | refs/heads/master | 2021-01-23T18:22:03.142561 | 2017-07-03T16:05:19 | 2017-07-03T16:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 832 | rd | z.stats.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{z.stats}
\alias{z.stats}
\title{Get error summary statistics for any given compressibility correlation}
\usage{
z.stats(correlation = "DAK", pprRange = "lp", interval = "coarse")
}
\arguments{
\item{correlation}{identifier. Can ... |
45ec9df04e1ea7c83301cbf3dd837920e96cd756 | a8a8075aee934b380e4041fe38a7433761aab4c3 | /R/cpop_model.R | 6ae701367b97cb4bb71234902293f221f351ec14 | [] | no_license | kevinwang09/CPOP | 14d77f61cb9981e3718066921062dba4eb2c4a2c | 836260be426a65bf85d3fbd224ecae407d8408bf | refs/heads/master | 2022-05-22T19:25:29.365448 | 2022-04-18T11:55:11 | 2022-04-18T11:55:11 | 186,576,277 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 6,166 | r | cpop_model.R | #' @title CPOP modelling
#' @description CPOP is consisted of three steps. Step 1 is to select features common to
#' two transformed data. Note the input must be pairwise-differences between the original data columns.
#' Step 2 is to select features in constructed models that shared similar characteristics. Step 3 is t... |
af0a1339b00390aa31c6b317cf078c5f39223f5f | 175fac3fd67978b72f7e79717bfd52cd2e964b4f | /pracs/DMDK-s.R | f4bab164ae243b55d04758be9dd09e2c5f4cf36f | [] | no_license | SPE-R/SPE | 0905425c09e567a720c90d9018d36405aff43cb7 | 7fcd5eebc4326d741c049af7edf9f009beb1fb3b | refs/heads/master | 2023-06-08T15:43:44.976096 | 2023-06-07T08:44:56 | 2023-06-07T08:44:56 | 93,295,452 | 5 | 4 | null | 2023-05-30T09:07:09 | 2017-06-04T06:45:23 | TeX | UTF-8 | R | false | false | 12,804 | r | DMDK-s.R | ### R code from vignette source 'DMDK-s.rnw'
###################################################
### code chunk number 1: DMDK-s.rnw:20-24
###################################################
options(width = 90,
prompt = " ", continue = " ",
SweaveHooks = list( fig = function()
par(mar = c(3,3,1... |
ad3cf23e7e151f01c542c6a101cf8e4d0b8d8c07 | 29585dff702209dd446c0ab52ceea046c58e384e | /mem/R/calcular.map.R | 9b3a19660ac9d08aeb8423d653e3c88935c0a655 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 645 | r | calcular.map.R | calcular.map <-
function(i.datos){
datos<-as.vector(as.matrix(i.datos))
semanas<-length(datos)
maxsumasemanas<-array(dim=c(semanas,5))
for (s in 1:semanas){
sumasemanas<-numeric()
for (i in 1:(semanas+1-s)){
sumasemanas<-c(sumasemanas,sum(datos[i:(i+s-1)],na.rm=TRUE))
}
maxsumase... |
c6aa21a552bb082c801b45595641dbe0bcb1c0d0 | 3999dab9955e6978db09161e3acb21200e4dd4d5 | /R/wrappers.R | a7afc1d484c40ca58d75aa2fa54d21ff4ed36252 | [] | no_license | moodymudskipper/reactibble | b2170fe0693700d42d75d896e68e1eaaa1c0b313 | 471112ce8a3a0d8e8bd917fb9f58cff2f61125f1 | refs/heads/master | 2023-02-11T00:11:08.038979 | 2021-01-12T11:38:24 | 2021-01-12T11:38:24 | 327,343,193 | 38 | 1 | null | 2021-01-08T20:17:27 | 2021-01-06T14:53:47 | R | UTF-8 | R | false | false | 7,089 | r | wrappers.R |
#' @export
`[[<-.reactibble` <- function(x, name, value) {
x <- strip_reactibble_class(x)
x[[name]] <- value
x <- refresh_if_relevant(x)
as_reactibble(x)
}
#' @export
`$<-.reactibble` <- function(x, name, value) {
x[[name]] <- value
x
}
#' @export
`[<-.reactibble` <- function(x, ..., value) {
cl <- cla... |
23cb51d00e5bd22792b62d5803230116cce7030f | 80b8f237d1faed2e1786aada66bfdd08bf2fec68 | /man/dot-compute.wss.Rd | 48a8409c922ee7541da5e866c2d02bc0b8b06174 | [
"MIT"
] | permissive | TankredO/ckmeans | 17bb71210f4d28adb82cf5dbeb5401c658d42bd6 | f97d378e1a6ed328f263507dc0e5d83cae664478 | refs/heads/master | 2020-06-18T17:51:49.817535 | 2020-04-02T10:14:09 | 2020-04-02T10:14:09 | 196,389,548 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 395 | rd | dot-compute.wss.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ckmeans.R
\name{.compute.wss}
\alias{.compute.wss}
\title{Helper function for bic_kmeans2}
\usage{
.compute.wss(x, f)
}
\arguments{
\item{x}{matrix with samples as rows and features as columns}
\item{f}{vector of cluster membershi... |
5a47f94079844ca835717ed8c9a6d3a3685ebadc | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /Umatrix/R/esomTrainOnline.R | 29af873d2d52b10a1f52a50b7325ee5a94362164 | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,220 | r | esomTrainOnline.R | esomTrainOnline<-function(WeightVectors,Data, StartRadius=10, EndRadius=1, Columns=80, Lines=50, StartLearningRate=1, EndLearningRate=1,
NeighbourhoodFunction="cone", Toroid=TRUE, Epochs=10, NeighbourhoodCooling="linear",
LearningRateCooling="linear", ShinyProgress=NU... |
d42255f6bc220ffa6beae696a7f51232a546c2c4 | e9b35ef501ba66abe73dcac94c122a9b120d0e4e | /plot3.R | c952d5e2d9aa169050a821bfd2ac959b184704a2 | [] | no_license | danielle-adams/ExData_Plotting1 | 50087ed055003fb53ebfc92acdd12b0f0421eff4 | c196565768185cc3c0508fdc60aa54af66ea253d | refs/heads/master | 2020-12-26T00:53:10.591103 | 2015-05-09T05:57:10 | 2015-05-09T05:57:10 | 35,214,120 | 0 | 0 | null | 2015-05-07T10:34:27 | 2015-05-07T10:34:27 | null | UTF-8 | R | false | false | 1,241 | r | plot3.R | plot3 <- function()
{
library(sqldf)
data <- read.csv.sql(file = "household_power_consumption.txt",
sep = ";",
sql = "select * from file where Date = '1/2/2007' or Date = '2/2/2007'",
header = TRUE, row.names = NULL... |
33edb2eb1b3ad08d09554baedbb232d501ff5c9a | 49ff0bc7c07087584b907d08e68d398e7293d910 | /mbg/mbg_core_code/mbg_central/LBDCore/man/accumulate.Rd | 5698fa758b20b6e9ea784805093bb2833ad6333b | [] | no_license | The-Oxford-GBD-group/typhi_paratyphi_modelling_code | db7963836c9ce9cec3ca8da3a4645c4203bf1352 | 4219ee6b1fb122c9706078e03dd1831f24bdaa04 | refs/heads/master | 2023-07-30T07:05:28.802523 | 2021-09-27T12:11:17 | 2021-09-27T12:11:17 | 297,317,048 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 558 | rd | accumulate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/accumulate.R
\name{accumulate}
\alias{accumulate}
\title{FUNCTION_TITLE}
\usage{
accumulate(mean, sd, months = c(1, 11, 24, 24), nsample = 1000)
}
\arguments{
\item{mean}{PARAM_DESCRIPTION}
\item{sd}{PARAM_DESCRIPTION}
\item{months}{PARAM_D... |
42ccf391cf3a5d473c9f670061a94abd46de5421 | 456d48a8739a347f8c8f5abfbfd6c1f3fb46a4a5 | /tests/testthat/test-set-at-median.R | c115e60f9cea72c77507f23305c2880f3828d6e2 | [
"MIT"
] | permissive | carlislerainey/separation | f9f27741854dd0b21175f753e0cdf8443a2a0a5b | cbe6e1fa12ff4507465e98fbe58740ae928bc9da | refs/heads/master | 2021-01-18T21:28:10.445895 | 2016-04-14T16:15:11 | 2016-04-14T16:15:11 | 25,212,781 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 896 | r | test-set-at-median.R |
context("set_at_median")
test_that("set_at_median returns a list for a data frame input", {
data(politics_and_need)
d <- politics_and_need
f <- oppose_expansion ~ gop_leg*percent_favorable_aca
X_pred_list <- set_at_median(f, d)
expect_true(is.list(X_pred_list))
})
# test_that("set_at_median returns a lis... |
c04e2034ad6012d38295133bbcb611064889157d | 6b0a4605ff25543a9c5cc5a75486f2dc2a09d732 | /create_rnaseq.R | c2628c8b67d7baec734c634472fa77bba89b1528 | [] | no_license | iuabhmalat/cbio_peds | a288297e0f0cf6620c924dfcb2e06069b0fdb04f | 0e7ce1b551843d0d4ace14eed98b5077541137bb | refs/heads/main | 2023-05-22T00:00:31.740286 | 2021-06-10T13:54:11 | 2021-06-10T13:54:11 | 300,356,725 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,492 | r | create_rnaseq.R | library(dplyr)
library(tidyr)
library(stringr)
library(biomaRt)
dataset <- "c:/Users/abhmalat/OneDrive - Indiana University/RI cBioPortal/PEDS_brrhelm/TREEHOUSE"
cbio_study <- "c:/Users/abhmalat/OneDrive - Indiana University/cbio_PEDSTreehouse/study"
setwd(dataset)
raw_genes_old <- read.csv(file="TumorCompendium_v11... |
0bb6ec37f98543960d2be4eeeeb5c60a956e3b12 | 3f7e561091ac744e5119ffc4cde3d0d0a6f7b14b | /app.R | df05f921ab54876b52f9bf3aec170e9568625d5e | [] | no_license | rtaph/h2h | 55d4e12939f945307cc15b030fb36017337c79fd | 0d4c08faa9d7feead09675ad5d706947748a1d90 | refs/heads/main | 2023-04-17T20:02:08.705624 | 2021-04-30T19:18:19 | 2021-04-30T19:47:57 | 347,271,179 | 0 | 3 | null | 2021-04-30T19:18:59 | 2021-03-13T04:24:50 | HTML | UTF-8 | R | false | false | 10,202 | r | app.R | # Load libraries
library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)
library(dashBootstrapComponents)
library(dashTable)
library(dplyr)
library(purrr)
library(stringr)
library(devtools)
library(here)
# Load custom functions and data
devtools::load_all(".")
# define column names
tbl_col_ids <- c("N... |
88d8dcf065807ba0ff70cf591b729c8c12bf54a1 | bb172dfa75ed6d31687f95e71732b2478da82ae2 | /HW1-LawOfLargeNumbers.R | d75f53bfee40dc16a0029389ada1e3bd7a784820 | [] | no_license | ryanching93/RProgrammingPractice | 5b329579b15370d219191464c867e019e04f5521 | 2c1feebd06ee9856c3fd0517b504c8045deeb4dc | refs/heads/main | 2023-07-11T06:36:09.384644 | 2021-08-13T02:21:54 | 2021-08-13T02:21:54 | 395,461,474 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 736 | r | HW1-LawOfLargeNumbers.R | N <- 100 # input/specify sample size
x <- rnorm(N) # random normally distributed numbers
counter <- 0 # counter
for (i in x){ #iterate over vector of numbers
if(i < 1 & i > -1){ #condition to check where iterated variable falls
counter... |
93dc4f9d6c3f7fc8737c7d9f528273b776d35f30 | 88780697a1ab8f19673a62163c660fa25d6a73e9 | /R/fplyr-package.R | 965ead1ce05c538f158a319e15d97e3dc72beec4 | [] | no_license | fmarotta/fplyr | 6b5ce95042ea07d13f70a850c4933d5748fecb7c | 422c714802a144db3a93521c80fa0c7dfd034d86 | refs/heads/master | 2023-09-05T20:36:17.560908 | 2023-08-24T12:35:43 | 2023-08-24T12:35:43 | 220,303,015 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,293 | r | fplyr-package.R | #' fplyr: Read, Process and Write
#'
#' This package provides a set of functions to quickly read files chunk by
#' chunk, apply a function to each chunk, and return the result. It is
#' especially useful when the files to be processed don't fit into the
#' RAM. Familiarity with the \code{data.table} package is essentia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.