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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d7e181dcd4b576c809ea686bfaa2c9e1b5626a5 | 4a3b76a7cc3bf280ba3399acefba1f72e33bbfd9 | /R/report.R | 0182e09bcc2f1a414b7c15430fd97be7f4c9e1ef | [
"MIT"
] | permissive | tsamsonov/grwat | 5bd992b774f4644c52800352ba3b6bdd7601a063 | f5bb3d71be34639d58b2812936f1d04b835f6f40 | refs/heads/master | 2023-07-19T01:33:26.609712 | 2023-07-11T17:36:01 | 2023-07-11T17:36:01 | 137,765,830 | 5 | 5 | null | 2022-04-19T19:30:20 | 2018-06-18T14:53:44 | R | UTF-8 | R | false | false | 6,074 | r | report.R | #' Report hydrograph separation and variables
#'
#' This function generates a graphical HTML report that summarizes separation of hydrograph, its variables and their statistical properties. See example [report](https://www.dropbox.com/s/747xyqp65ipriy5/Spas-Zagorye.html) generated by this command for `spas` dataset in... |
cce304930e5db40663c1407ec65b36f881cff8b6 | 3945388ee0fef9e4f99b2c0b4cd49e4fc58082b5 | /StreamNetworkTools/R/net_position.r | f1771484055cdc7003f1f2d88f7eee1745e4875e | [
"MIT"
] | permissive | dkopp3/StreamNetworkTools | 7ea52d4c917bbcf02314a603a3f9b6d5c5b926b5 | 7c693f3edc975493be946d400642bd99c1d9d809 | refs/heads/master | 2023-06-23T09:58:49.678987 | 2023-06-09T18:44:18 | 2023-06-09T18:44:18 | 140,187,794 | 3 | 1 | MIT | 2021-01-22T18:59:07 | 2018-07-08T17:19:10 | R | UTF-8 | R | false | false | 11,698 | r | net_position.r | #' Network Poisition
#'
#' Calculates distances matrix for each nested (flow connected) network
#'
#' NHDSnapshot and NHDPlusAttributes are required NHDlusV2 files (see
#' \code{\link{net_nhdplus}})
#'
#' Adjusts distances to account for M values
#'
#' @param netdelin output from \code{net_delin}
#' @param nhdplus_path... |
8f1fb34a30aee7afbeede10e11746f303d0a3512 | a0b273f18dcb908dd4676d0b4f5b258165706060 | /Lab 1/Lab 1/Lab 1.R | 76701a60b3e3f08a61c0a1cda481512e07a77a8b | [] | no_license | brettv30/Analysis-of-Algorithms | bf64cb42efa0c273861acc39d6e4c1bf4a145837 | b3d7a1ed6e4ee6cea8ebf180bd8e9d20135fef8e | refs/heads/master | 2022-08-31T10:32:24.004987 | 2020-05-28T00:01:23 | 2020-05-28T00:01:23 | 267,448,145 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,303 | r | Lab 1.R | # Brett Vogelsang & Andrew Reeves
# Part 1
# I am first creating two numerical vectors
x<-c(4,2,6)
y<-c(1,0,-1)
# now I am looking for number of variables in the vector
# The result is 3
length(x)
# now I am looking for the sum of all numbers in the vector
# The result is 12
sum(x)
# now I am adding the elements of ... |
f66c1f34145476bac95296c0c2fe568c00365ea5 | a9c540d94681b5e4ffb2300fd320d6c16eab3040 | /man/group_func_1.Rd | 64a387c0c16c89b1ec4a08fbf36b61b9ab6fcb41 | [] | no_license | fbertran/SelectBoost | fd5716b73cb07d05cc3c67bbc75b8915672c1769 | 5610332658b95a71dacdbccea721d00a88a9742f | refs/heads/master | 2022-12-01T07:52:52.171876 | 2022-11-29T22:18:18 | 2022-11-29T22:18:18 | 136,206,211 | 6 | 2 | null | 2021-03-21T16:43:02 | 2018-06-05T16:35:45 | R | UTF-8 | R | false | true | 1,317 | rd | group_func_1.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/group_func_1.R
\name{group_func_1}
\alias{group_func_1}
\title{Generate groups by thresholding.}
\usage{
group_func_1(absXcor, c0)
}
\arguments{
\item{absXcor}{A numeric matrix. The absolute value of a correlation or distance matrix.}
\item{... |
924f51d36c10c8415a28f9bfed6a0af5eb21a50d | 9969b02c26fa5388ac971b8212c761c6abf98efb | /R/getTogetherCovarData.r | 0b52a0dbea47093c9742ccdcbff06d50476354ff | [] | no_license | tmcd82070/CAMP_RST | 0cccd7d20c8c72d45fca31833c78cd2829afc169 | eca3e894c19936edb26575aca125e795ab21d99f | refs/heads/master | 2022-05-10T13:33:20.464702 | 2022-04-05T21:05:35 | 2022-04-05T21:05:35 | 10,950,738 | 0 | 0 | null | 2017-05-19T20:42:56 | 2013-06-25T21:24:52 | R | UTF-8 | R | false | false | 23,196 | r | getTogetherCovarData.r | #' @export
#'
#' @title getTogetherCovarData
#'
#' @description Put together available covariate data from both the external
#' Environmental Covariate Database, as well as CAMP-collected environmental
#' variables.
#'
#' @param obs.eff.df A data frame with at least variables \code{batchDate} and
#' \code{... |
144c4ceb98d0f0a0e88bb603f0839c50df83c883 | 172c1959d13207bf86c9fdcf2b3253ebf6a06451 | /Scripts/TestRun_10_8_18.R | 6ae6621004624ac991d5d95a361b59ac136be168 | [] | no_license | alfencl/CWS_gov | 62018d032da1993ac46eade5287a8c981a84e0db | 05b58579aed835dd7d6984a3279c5cf9afb049a7 | refs/heads/master | 2020-03-31T19:40:48.349644 | 2018-10-10T05:13:06 | 2018-10-10T05:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,276 | r | TestRun_10_8_18.R | #Load Libraries
library(tidyverse)
library(pscl)
# Load data
Data <- read_csv("Data/10_8_19_TestRun.csv")
# Create binary public-private variable
Data$OWNERTYPE_KDB18 <- as.factor(Data$OWNERTYPE_KDB18)
summary(Data$OWNERTYPE_KDB18)
# create new variable
Data$OWNTERTYPE_binary <- NA
#Use ifelse statements to aggregat... |
ede4ebf22cc71f528e29f60cd4f72d92cc17815d | 4bb7939d3e0c0386f0f98925ff2e2524a6c6b230 | /R_code_plot_ecol_var_.r | b4246e01cfdfc0e352b6b792dc406d686dc029ea | [] | no_license | alessandroperrone5/monitoring_2021 | eb9b9646feadde070aea8a7b6e7173ef711fa890 | 63fa62bcd17e6187aa67ccfeeed3a5558399f892 | refs/heads/main | 2023-02-22T01:03:30.593916 | 2021-01-27T17:07:46 | 2021-01-27T17:07:46 | 309,311,213 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,069 | r | R_code_plot_ecol_var_.r | #R code for plotting the relationship among ecological variables
#install.packages is used to install packages
install.packages("sp")
#sp is for spatial analysis
#brackets [""] for import data in R
#library is used to load, attach, list packages
library(sp)
#data is used to recall datasets
data(meuse)
meuse
#let's ... |
18bc7aa2f8dc227da86db9fb0d2bcdc7b4c7b9ce | 4bd57b8501d4326ecc06c1d1ea499935e1668d95 | /MASH-dev/DavidSmith/PDG-PfSIM/pdgpfsim.R | 65512eae3178074636e4300762f0c21c00ec3ef5 | [] | no_license | aucarter/MASH-Main | 0a97eac24df1f7e6c4e01ceb4778088b2f00c194 | d4ea6e89a9f00aa6327bed4762cba66298bb6027 | refs/heads/master | 2020-12-07T09:05:52.814249 | 2019-12-12T19:53:24 | 2019-12-12T19:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,852 | r | pdgpfsim.R |
state = list(
fever = 0, # Fever
severe = 0, # Severe Malaria
P = 0,
MOI = seq(0,10),
iG = -1,
G = na,
C = seq(0,2)
)
now = 0
newInfections = rep(0,5)
oldInfections = rep(0,6)
updateOld6 = function(S){
rmultinom(1, S[1], P6t[,1]) +
rmultinom(1, S[2], P6t[,2]) +
rmultinom(1, S[3], P6t[,3]... |
99df2a1b6dc4dc44ffd0de6d7c04cfc8ceaa90c1 | 066e60e4c6730a945fcba528328fc646945beaa3 | /tests/testthat/test-01-parse.R | 98aa8bee4c1a11887312375c34c1d61c0f34515d | [
"CC0-1.0"
] | permissive | appling/unitted | 0b59a79a949e7405cb443306216d7038a30c29ad | d1f11723cd274297f44adbb5d1af4990eb0cdf06 | refs/heads/master | 2021-01-17T07:34:17.966050 | 2017-07-21T22:38:37 | 2017-07-21T22:38:37 | 18,263,678 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 10,280 | r | test-01-parse.R | context("parse")
knownbug <- function(expr, notes) invisible(NULL)
#### unitted:::parse_units ####
test_that("unitted:::parse_units works", {
# well-formed unit strings using only the space delimiter
expect_that(unitted:::parse_units("kg ha^-1 yr^-1"), equals(list(data.frame(Unit=c("kg","ha","yr"),Power=c(1,-1... |
312d174b2af2dbc73892f60bfce519ed54af443d | ab7841ca6d0244120ea6ce8022a56ff13ac23ca1 | /man/statTest.Rd | 60b38a643da0252e321e4eb16ff62796e2271ed6 | [] | no_license | Huang-lab/oppti | 3617dbaef74e590ab94578645e4916cdfff0f6e0 | b171c64707483c110c76c3193ab1045b59fdb51c | refs/heads/master | 2023-04-10T02:09:57.773679 | 2023-03-20T10:13:53 | 2023-03-20T10:13:53 | 197,084,440 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,687 | rd | statTest.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analyze.R
\name{statTest}
\alias{statTest}
\title{Analyze dysregulation significance}
\usage{
statTest(dat, dat.imp, marker.proc.list = NULL, pval.insig = 0.2)
}
\arguments{
\item{dat}{an object of log2-normalized protein (or gene) expression... |
f393071fece4962e0353b7443d2c0474ca5d3372 | c3c9324afc6873b0de45a3cffcdfcdb884163288 | /fiddles/fiddle_bayes/cube/kyoobe-etc.r | 7dc8425213da1899d1b16ab92a908550320818b8 | [] | no_license | lefft/boosh | 273c44b04f65f64937fc319d5f4542a0b79daf4a | e4c0665ab1db9c7b47ce4085bf070fed9d8f37ea | refs/heads/master | 2020-03-28T00:13:11.754076 | 2018-01-04T21:16:31 | 2018-01-04T21:16:31 | 64,482,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,448 | r | kyoobe-etc.r | # cube/weighted coin sim
# pz values from book chapter c(.25, .75)
probz <- c(.1, .25, .5, .75, .9)
stratz <- c("redo", "init")
runz <- 10000
for (y in seq_along(stratz)){
for (x in seq_along(probz)){
pz <- c(probz[x], 1 - probz[x])
cz <- 100
run <- function(
coins=paste0("coin", c(rep(".9", pz[1]*cz), rep(".1", pz... |
6e7fb7a783a5a65d205187119ed26ef1cb5552d7 | f355149c7fba0fe44a933778a5f78d4bbc275caa | /ALERTING-TRENDS.R | b37f49fa7ceb0fb2ab86ad8bc090b85ee8887354 | [] | no_license | Abdulmalik-Adeleke/R | 8b4b4667f931764ec57c99e89fb8480cf37ce7b3 | 3090ddb129d8fa70f158d215f29fd95a4b7b7c79 | refs/heads/main | 2023-05-30T19:42:51.352335 | 2021-07-04T23:07:26 | 2021-07-04T23:07:26 | 382,964,490 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,752 | r | ALERTING-TRENDS.R |
x<- array(c(2, 3, 1, 19, 18, 12, 17, 18, 22, 32, 20, 11, 8, 5))
length(x)
new <- 1
for(i in x)
{
new <- new + 1
# newadded<- x[new]
if (i > x[new])
{
thirdvar <- new + 1
if(newadded > x[thirdvar])
{
cat("downward trend starting at ",i, "\n")
}
else{
... |
fbdf4c0a09f9a8290fdfb9bacfda66c7e0c57fcc | e4da77190b6a4bb6f1da8ece129e2b82aa8513aa | /section4/src/19781782165460_04_code01_stem_draft1.R | 9d675e77df68bc16f7dedda1be1a6b5b052cdc5a | [] | no_license | rsanchezs/RGraphic | 922ace26905d1d7a542ee028e14a9007752e48b8 | f92303086543160fe67f536b331eb5d66390b246 | refs/heads/master | 2020-12-24T21:10:54.151452 | 2016-05-19T14:57:25 | 2016-05-19T14:57:25 | 58,759,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 664 | r | 19781782165460_04_code01_stem_draft1.R | #1 Stem-and-leaf plot
ChickWeight
# Weight versus age of chicks on different diets
names(ChickWeight)
# body weight of the chick (weight)
# number of days since birth when the measurement was made (time)
# unique identifier (chick)
# experimental diet (diet)
wdt1 = ChickWeight$weight[ChickWeight$Diet==1]
wdt2 = Chick... |
cdfe3c122b139670e84af50bd9e77e8ae711ae53 | 2d539479a4301f86bf7fdc498078b166e3b8a06d | /callSimpleCJS.R | 3a7d750e6dc857ca4a1db16aca3ca6b1afcd51f5 | [] | no_license | evanchildress/simpleCJS | cb028f7c224770138a3e55b471e03ce766a71a52 | 519971dde2deae70886ab55d96c8e547a43372d4 | refs/heads/master | 2021-01-17T08:11:01.932935 | 2016-07-05T17:38:09 | 2016-07-05T17:38:09 | 33,996,663 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,634 | r | callSimpleCJS.R |
library(plyr)
library(rjags)
library(ggplot2)
library(abind)
rjags::load.module("dic")
dMData$length[dMData$tagNumberCH=='1BF1FF6207' & dMData$season == 3 & dMData$year == 2005] <- NA
dMData$length[dMData$tagNumberCH=='1BF1FF6521' & dMData$season == 3 & dMData$year == 2005] <- NA
dMData$length[dMData$tagNumberCH... |
367b271057f4528d72825396421468ee3fb3e215 | 39851ccdf21d02180a5d214ae84082e9c210dd97 | /inst/extdata/introduction.R | 89011b520e5067920e90ddc28403bf76500bb67f | [
"MIT"
] | permissive | KWB-R/kwb.db | 61a8b40c56f0d4a3f39ae7d502a9c2971f7fcdc5 | 358aa98df81d5a55188d50825be660d874df4050 | refs/heads/master | 2022-06-22T15:01:24.911765 | 2021-07-07T11:19:45 | 2021-07-07T11:19:45 | 137,391,271 | 0 | 1 | MIT | 2022-06-07T17:00:00 | 2018-06-14T17:55:29 | R | UTF-8 | R | false | false | 332 | r | introduction.R | ## Laden von Daten aus Exceldateien oder MS Access-Datenbanken
# Nur ganz kurz...
library(kwb.db)
xls <- "testdata.xls"
mdb <- "testdata.mdb"
# Anzeige der Tabellen in einer Excel-Datei/MS Access-Datenbank
hsTables(xls)
hsTables(mdb)
hsGetTable(xls, "testdata_de$")
hsGetTable(xls, "testbereich")
hsGetTable(mdb, "te... |
609da9b15c3add160402132343f43bbd1a23a6e5 | ab47dae2fa5a108e6c48b2013ae2ac09a1511856 | /man/PhyloFactor.Rd | 5ea481e932e1147b5e1a1a0a6810b2b546f363b7 | [] | no_license | Nermin-Ghith/phylofactor | bee02d7676411e3d37b758ae42828128708da62c | 666b55cf634067392850ea5035c46eb1a473e969 | refs/heads/master | 2023-04-08T13:16:40.626542 | 2021-04-01T15:57:33 | 2021-04-01T15:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 14,654 | rd | PhyloFactor.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PhyloFactor.R
\name{PhyloFactor}
\alias{PhyloFactor}
\title{Regression-based phylofactorization}
\usage{
PhyloFactor(Data, tree, X = NULL, frmla = Data ~ X, choice = "var",
transform.fcn = log, contrast.fcn = NULL, method = "glm",
nfactor... |
7478b9dfd41295a87e570a0ec3cc316bcaaeca70 | ec51c427c69927481c374011ad717dd0f6eaa248 | /man/clean_data.Rd | 9df947d41bab2f6d194f6090f284135f613f2e51 | [
"MIT"
] | permissive | PNNL-TES/picarro.data | 9553d8cea7e82a31e9c4c892f3f2d008c5e66f76 | 00e3108ce38cf3c620a510c61c5ccd96e28943c3 | refs/heads/master | 2020-05-29T18:33:15.483000 | 2019-11-11T14:04:56 | 2019-11-11T14:04:56 | 189,304,398 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 772 | rd | clean_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clean.R
\name{clean_data}
\alias{clean_data}
\title{Clean the data: create \code{DATETIME} field, remove fractional and unwanted valves}
\usage{
clean_data(raw_data, tz = "", remove_valves = c())
}
\arguments{
\item{raw_data}{A \code{data.fra... |
317df0ba5e40929f65f8585e7ce90c82f062fc59 | d26b260dc5e48e73b46666b0b85b42c8827cfff8 | /R/empiricalC.R | c9f7a01ecc44796a0aeeaf228d1644592ff27d91 | [] | no_license | cran/mc2d | 749f0cca928857e6b034d44c157f79658f9fac3c | bfaf18b5e38b651618c98a81e1b6d4047587b11b | refs/heads/master | 2023-07-29T20:20:05.134739 | 2023-07-17T16:00:02 | 2023-07-17T17:31:53 | 17,697,342 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,074 | r | empiricalC.R | #<<BEGIN>>
dempiricalC <- function(x, min, max, values, prob=NULL, log=FALSE)
#TITLE The Continuous Empirical Distribution
#NAME empiricalC
#KEYWORDS distribution
#DESCRIPTION
#Density, distribution function and random generation for a continuous empirical distribution.
#INPUTS
#{x, q}<<Vector of quantiles.>>
... |
fb9e9205b188563d4cfe399d9d42a21d96293038 | 0669e8ab7e90b69f0a7735f1e1fdff6647a06288 | /answer_exercises/answer_compareGroups_2.R | 12071f4a6443f8787b0ef6591e058a92fa124466 | [] | no_license | isglobal-brge/Curso_R_avanzado | d116e7a28289ff497203b93621ee41d7212883a5 | a7b52ac7aebdc4f10cab9875ef9fb155ae08eafb | refs/heads/master | 2020-03-18T18:57:43.899208 | 2018-06-07T12:03:09 | 2018-06-07T12:03:09 | 135,125,238 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 915 | r | answer_compareGroups_2.R | #
# Exercise 2
#
compareGroups <- function(x, y, pvalue=TRUE){
if(missing(x) | missing(y))
stop("x and y are required")
if(nrow(x)!=length(y))
stop("x and y should have the same number of observations")
if(!is.factor(y) | length(levels(y))!=2)
stop("y must be a 2 level factor")
ans <- list()
... |
3c8a611308874c6f004408a5e5ddf166d220961d | 51caa4e6e11a996afd5f4771ca967a8488026474 | /corr.R | 876c481e8dbc397bda690ba441627512bbc79847 | [] | no_license | difu1994/Week-2-Assignment-Coursera | 2679e8b221472e49b6d982cc952ec4fd3be484bb | 9d9e76a24e25f57b84ba63c15e1a1cff20531104 | refs/heads/master | 2022-12-02T03:44:53.313731 | 2020-07-21T18:17:33 | 2020-07-21T18:17:33 | 281,471,610 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 588 | r | corr.R | function (directory, threshold = 0)
{
complete <- dget("complete.R")
vector <- as.numeric()
compileddata <- complete(directory, 1:332)
criteria <- compileddata["Values"] > threshold
compileddata2 <- compileddata[criteria, ]
for (i in compileddata2[, "Filename"]) {
setwd(directory)
... |
e41a43f8db230224a2b42f453bbcb847c6def20a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mistr/examples/poisdist.Rd.R | 61887b17480d28578abb6bef88464b8a8f27215b | [] | 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 | 188 | r | poisdist.Rd.R | library(mistr)
### Name: poisdist
### Title: Creates an Object Representing Poisson Distribution
### Aliases: poisdist
### ** Examples
P <- poisdist(1)
d(P, c(2, 3, 4, NA))
r(P, 5)
|
e610b1d335b444f93087fb82c47d343aaf4d38b8 | 5a973c5285cb20d2efbeda0bc0856472cb24ccd3 | /run_analysis.R | 3db1b69aaa565cb47f8497f9ba7665a299040841 | [] | no_license | jkope/Getting-and-Cleaning-Data | ab7e61727938e0d5aa5a2f7d76c49c985e4435c8 | c6bbb4bcddc8822fbb3777f8de59263629893166 | refs/heads/master | 2021-01-10T09:51:44.318040 | 2016-01-23T03:39:52 | 2016-01-23T03:39:52 | 50,005,741 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,723 | r | run_analysis.R | ## read data sets
subject_test <- read.table("UCI HAR Dataset/test/subject_test.txt")
X_test <- read.table("UCI HAR Dataset/test/X_test.txt")
y_test <- read.table("UCI HAR Dataset/test/y_test.txt")
subject_train <- read.table("UCI HAR Dataset/train/subject_train.txt")
X_train <- read.table("UCI HAR Dataset/train/X_tr... |
6494de3515dd91cb4ccf4201ac2ef0d6ea415c20 | ceeab39e925764962faf99ff34bde6b67fe7f0e9 | /Week1/day1/rfiles/day1.Lesson2.bwmal.r | 18b9f3301fb479200ff2e35f3708d19acd76bd08 | [] | no_license | Keniajin/PwaniR_Training_2015 | d0ede8b79ca2e8f19d09e7fc9c755ebe91cce679 | 94a7d3e6dc31370c35b4572b8760b813a3de3eae | refs/heads/master | 2021-01-22T09:47:12.676486 | 2021-01-12T08:26:09 | 2021-01-12T08:26:09 | 27,430,653 | 0 | 18 | null | null | null | null | UTF-8 | R | false | false | 3,890 | r | day1.Lesson2.bwmal.r | ## Analysis of the bwmal data
## Data found in the data folder on the CD provided
## Original Stata .do file By Jim Todd
## First Modified by Greg Fegan and Ritah Meka November 28th 2013
## Last modified by Ken Mwai
##
## As a practical for new R users
## This section at the beginning enables you to put comments abo... |
3cb9a1f2832f856bb383b7abc8f60b1d3be5e4fe | 8ba0937129d097188a1572bf986117e0a8422205 | /boilderplate.R | 4462af92894446390b5bf3569d1249d13bebbeb2 | [] | no_license | niedermansam/wikiScraper | 80138186c0f5124a985d1212456173f20d552ba1 | 16c363d11f5d6315a48c0a53b252c9297357223c | refs/heads/master | 2020-07-19T07:19:57.134621 | 2019-09-09T20:49:26 | 2019-09-09T20:49:26 | 206,399,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,202 | r | boilderplate.R | library(wikiScraper)
library(tidyverse)
ny <- wiki_page("New_York_City")
ny_dem <- ny %>% wiki_section("Demographics")
ny_dem %>% html_nodes("table")
ny_dem %>%
wiki_table(3, skip=1, format=c("integer", "double", "double")) %>%
wiki_names(rename =c(3,"pct_change", 2, "population"))
ny_boroughs <- ny %>% wiki_se... |
9f865d72078c99213cd688ad8f3fd9bcac341740 | 27ad6f6be1acadcf749a9e6475fa1f75cb22ffc4 | /server.R | 1b1b4c8410e4418612fe7cd2d8cbb3ce5f022ab5 | [] | no_license | PhoenixRavy/course10 | f83019fc11e5ec8b9fb6c81368c9bf325d5978cd | 6b39360ba9bb954700ab6f99fc58e96bc964cee5 | refs/heads/master | 2020-04-26T11:36:45.848065 | 2019-03-03T02:47:23 | 2019-03-03T02:47:23 | 173,522,581 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,249 | r | server.R | library(shiny)
suppressWarnings(library(tm))
suppressWarnings(library(stringr))
suppressWarnings(library(shiny))
# Loading the files
#quad_gram <- readRDS("~/R/quad_gram.RData")
#tri_gram <- readRDS("~/R/tri_gram.RData")
#bi_gram <- readRDS("~/R/bi_gram.RData")
#uni_gram <- readRDS("~/R/uni_gram.RData")
... |
4d4aa7d9ecb89b3b596a9dd4495f6b0107c3e538 | 781c00c6543cca9f7d90ca6c326170bd086d3a60 | /heart/default/mm_E14.5_heart_H3K4me3_model.r | 74e85c0510266ccce3745d13af1b161d46f040e0 | [] | no_license | Lovecraft888/SwPraktikum | 454844923461aa0959255065fccebf8fe0e39c2e | 2817f8baf0aa57c8a337afff36a869f718729467 | refs/heads/master | 2021-04-14T03:24:50.604256 | 2020-03-22T22:42:47 | 2020-03-22T22:42:47 | 249,204,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 88,565 | r | mm_E14.5_heart_H3K4me3_model.r | # R script for Peak Model
# -- generated by MACS
p <- c(0.039204044563,0.0457001502735,0.0522754767853,0.0589011318062,0.0654978945348,0.0654950985065,0.0654205377523,0.0653991015355,0.0655500870627,0.0656647242223,0.0656954805334,0.0658287578816,0.0657364889483,0.0657281008634,0.0657588571745,0.0657942735328,0.065909... |
7ca1de2164aaa39ecd9b9e6d785a84d66164ab9c | 515779a0a0d0eefdbd47f96e0571a85783b2d7f8 | /cram_physicalstructure_rf_V2.R | a2711f6baf3b7721166ac8ece8d9b37b9dabae20 | [] | no_license | jeffb999/Watershed_Prioritization | a71bccbfeb97a90f8dbdd2e9070890401ad70ef8 | 2e63fd6130a08d7bceaf873030a5c1849adb44d1 | refs/heads/main | 2023-07-30T17:39:09.066714 | 2021-09-22T19:52:44 | 2021-09-22T19:52:44 | 409,336,989 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 40,330 | r | cram_physicalstructure_rf_V2.R | # CRAM Random Forest Draft
# January 8 ,2021
# Heili Lowman
# The following script will walk through a random forest created to predict state-wide CRAM scores, with datasets from SMC and StreamCat databases. The dependent variable in this case will be the California Rapid Assessment Method (CRAM) state-wide.
# ... |
10ec672e24b8b086f578413472e6c4b31ba47aee | 64fb4bae567cd021c21f37079cdbe1cd0bfe25ea | /R/GmedianCov.R | 609088d1eefd598afa20598765e283cd2f6c0152 | [] | no_license | cran/Gmedian | 9d43a80aabe5b67e6c6cc2f98081483abec67b6f | c379a7ddc561b58de729eca4e78e0b2fabba0f2c | refs/heads/master | 2022-06-24T05:29:54.275483 | 2022-06-08T13:00:02 | 2022-06-08T13:00:02 | 54,840,609 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,234 | r | GmedianCov.R | GmedianCov <- function(X, init=NULL, nn=TRUE, scores=2, gamma=2, gc=2, alpha=0.75, nstart=1){
### Computation of the Geometric covariation matrix
### with averaged stochastic gradient algorithms
### input : X (n x p matrix, n observations, in dimension p)
### output : (geometric) median (1 x p numeric vector... |
492a3f2515f167219462c7c94a9765725715ac11 | 49fef819eb731bad92033c45d6f1515548e4f177 | /man/editor-information.Rd | 7d2ec6d1331742a3cd57ed9cbef1264d0d5962dc | [] | no_license | woodhaha/rstudioapi | a8944229ee4006f0f76fd23e5ce9dbdd4e31d03d | bc145dd6734cba2d9f8d55ea4cdafa0bc126319f | refs/heads/master | 2019-04-09T15:06:59.017194 | 2017-04-27T21:37:22 | 2017-04-27T21:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,210 | rd | editor-information.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/document-api.R
\name{editor-information}
\alias{editor-information}
\alias{getActiveDocumentContext}
\alias{editor-information}
\alias{getSourceEditorContext}
\alias{editor-information}
\alias{getConsoleEditorContext}
\title{Retrieve Informat... |
108d9895327fbe547e7bd172b22e56d337579ded | ef4eb23543224c14f4cae67190d1f82bd881a4a4 | /dfg_for_kilimanjaro/fire_ndvi/src/visTerraAqua.R | c69b2c7ba6866336a1e0c5a887ed051400bf92f8 | [] | no_license | environmentalinformatics-marburg/magic | 33ed410de55a1ba6ff943090207b99b1a852a3ef | b45cf66f0f9aa94c7f11e84d2c559040be0a1cfb | refs/heads/master | 2022-05-27T06:40:23.443801 | 2022-05-05T12:55:28 | 2022-05-05T12:55:28 | 9,035,494 | 6 | 7 | null | null | null | null | UTF-8 | R | false | false | 3,458 | r | visTerraAqua.R | visTerraAqua <- function(rst,
cld = NULL,
vza = NULL,
plot_names,
plot_shape,
...) {
lib <- c("doParallel", "raster", "rgdal", "reshape2", "matrixStats", "ggplot2")
sapply(lib, function... |
765f52b6b55ce1f87992db2deaf24a65f79dafd7 | 7f1a6429c7b2682207da95ed23f7ee476660453b | /plot2.R | d2ebb9f843e8e04fec0949089058b580bdf224dc | [] | no_license | RezaZahedi/datasciencecoursera | 9addbdb916e80d8e5bfb93dce3879edd0c18345d | 3130a0dbf63abf1f17dfe2ea8c641289128865d5 | refs/heads/master | 2020-03-29T13:26:43.079820 | 2018-09-23T08:10:22 | 2018-09-23T08:10:22 | 149,959,777 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 535 | r | plot2.R | data <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";",
na.strings = "?", stringsAsFactors = FALSE)
data$Date <- strptime(data$Date, format = "%d/%m/%Y")
data2 <- subset(data, Date >= "2007-02-01" & Date <= "2007-02-02")
data2$datetime <- strptime(paste(data2$Date,... |
b94c4d037be5755f192a214b12b77bf100dbfd4d | a10e0c583478ff199d4c9f2db8fb3df5d99a2076 | /data/create_learning2014b.R | f00505a823198eee564d3bf5226ffcd1bd610de1 | [] | no_license | bramberntzen/IODS-project | 34fce96fce2655800d9c57386cf1caa319d2e8ec | 997faea1b065060414f4360ad1fd5fca777669a4 | refs/heads/master | 2020-04-02T12:56:08.029137 | 2018-12-09T14:49:43 | 2018-12-09T14:49:43 | 154,459,049 | 0 | 0 | null | 2018-10-24T07:39:30 | 2018-10-24T07:39:30 | null | UTF-8 | R | false | false | 2,830 | r | create_learning2014b.R | #Bram Berntzen, 5.11.2018, data wrangling
#First exercise week 2
#Read the learning2014 data into R
lrn14 <- read.table("http://www.helsinki.fi/~kvehkala/JYTmooc/JYTOPKYS3-data.txt", sep="\t", header=TRUE)
#data structure (variable info)
str(lrn14)
#data dimensions (nr. of rows and columns, or observations and vari... |
71afcafc82ad566870c625279c6102eef0df2b6e | 4aa0f435d17da7d75ea4e636b0d207908bbff0f0 | /BUS4028F Regression.R | c57198243ceb6bdfaa4a5c204b60036332d609ba | [] | no_license | rohinjain97/Thesis | db7b71ba4dc7096f9e01efb00ef7bdbf9885361b | a299ea9f95464b8cfa657efa4f99f6256df96610 | refs/heads/master | 2020-03-22T13:05:17.661552 | 2018-07-31T06:00:12 | 2018-07-31T06:00:12 | 140,082,338 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,195 | r | BUS4028F Regression.R | rm(list = ls())
BUS4028F_data=read.csv("BUS4028F.xlsx", header = TRUE, sep = ";" , na.strings = c("","NA"))
BUS4028F_data<-na.omit(BUS4028F_data)
levels(BUS4028F_data$Exemption)<-c(levels(BUS4028F_data$Exemption),1)
BUS4028F_data$Exemption[BUS4028F_data$Exemption=="E"]<-1
BUS4028F_data$Exemption<-droplevels(BUS4028F_... |
9aa7a23918a38372690840724e7fdf023b417933 | 45d010dd13400f20e5403a1fafcbb5a0c8b92d8f | /figS5B.R | ed116f2d7f0ca2aba873f25e14da75ee14224766 | [] | no_license | drsisu/M_and_M | ba82281240eb86456d57e724d4db6a1d11ece9dd | c167bbf15d7344bf2d0b8a40b3a80368e035d5bb | refs/heads/master | 2022-05-31T03:35:27.803415 | 2018-09-14T14:40:33 | 2018-09-14T14:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,497 | r | figS5B.R |
## mt.v1, ct.v1, bdt.v1,
## mt.v1.AA, ct.v1.AA, bdt.v1.AA,
## mt.v1.nonAA, ct.v1.nonAA, bdt.v1.nonAA,
load("bd_v1.rda")
## Is the mean log10 abundance of $\beta$-defensin in AA at visit V1 and
## specific CST samples significantly different between TERM and sPTB subjects?
mean.log10.bd.v1.cst <- function(cst)
{
... |
9171fcd2ed4dcba4818efd8f92e298e9d225b91c | 420cac816c739b8f6a3581c1628d706f7d398beb | /R/rhow.R | b6aafd549421846d54cb6e0200416f30d0390433 | [] | no_license | cran/RobustAFT | d80a89efb8ffcc80b604d5959893210aab0ae31b | 357b7400ae0a4d0be157b6a46970eb04d8b9ea51 | refs/heads/master | 2023-08-31T10:42:53.415730 | 2023-08-21T16:40:02 | 2023-08-21T17:30:23 | 17,693,388 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 48 | r | rhow.R | "rhow" <-
function(z,const){exp(z)-z-const}
|
2d515380cb56d8078f4a978f1e43f4242afb4cff | ec162b6438595e5982fb710cafa197dd5bdfefd2 | /man/check_residuals_autocorrelation.Rd | ab34342af7a88868042bd357e5b08024e3089064 | [] | no_license | a3digit/auditor | d6e69a1ab874c2a9cfc577ca4933a4e9b3d8b736 | 782b88b4738c7b006ac59f93f9d8163ec8fd5444 | refs/heads/master | 2022-04-04T14:55:13.352890 | 2020-02-18T09:20:09 | 2020-02-18T09:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 894 | rd | check_residuals_autocorrelation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_residuals.R
\name{check_residuals_autocorrelation}
\alias{check_residuals_autocorrelation}
\title{Checks for autocorrelation in target variable or in residuals}
\usage{
check_residuals_autocorrelation(object, method = "pearson")
}
\argu... |
d93ca16581c229c3db3db644f1ef952d2a6c93b5 | 753e3ba2b9c0cf41ed6fc6fb1c6d583af7b017ed | /service/paws.wafregional/R/paws.wafregional_interfaces.R | b430983bcbf23a93f534cb2210005cad553d684f | [
"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 | false | 99,364 | r | paws.wafregional_interfaces.R | # This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
NULL
associate_web_acl_input <- function (...)
{
args <- c(as.list(environment()), list(...))
shape <- structure(list(WebACLId = structure(logical(0),
tags = list(type = "string", max = 128L, min = 1L... |
29259ca7a0f3810021b7dcfe56a92c13665739bd | 29585dff702209dd446c0ab52ceea046c58e384e | /RnavGraph/demo/ng_2d_iris.R | 78fa6a64f1fe2ae8a06e475413f5063a14ee2b64 | [] | 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 | 1,304 | r | ng_2d_iris.R | require(RnavGraph) || stop("RnavGraph library not available")
local({
## Import the data
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
shortnames = c('s.L', 's.W', 'p.L', 'p.W'),
group = iris$Species,
labels = substr(iris$Species,1,2))
## get the variable graph node names
V <- shor... |
45104f5785053e9bf2e9be0c743123ee01f92f3c | 77157987168fc6a0827df2ecdd55104813be77b1 | /onlineforecast/R/score.R | e394c3d99056cdd1cc84814311181a57a21bd796 | [] | no_license | akhikolla/updatedatatype-list2 | e8758b374f9a18fd3ef07664f1150e14a2e4c3d8 | a3a519440e02d89640c75207c73c1456cf86487d | refs/heads/master | 2023-03-21T13:17:13.762823 | 2021-03-20T15:46:49 | 2021-03-20T15:46:49 | 349,766,184 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,729 | r | score.R | # Do this in a separate file to see the generated help:
#library(devtools)
#document()
#load_all(as.package("../../onlineforecast"))
#?score
#' Calculates the score for each horizon for a matrix with residuals for each horizon.
#'
#' Applies the \code{scorefun} on all horizons (each column) of the residuals matrix. Se... |
917e196f8c17defe69ce6e6c0905d6259cbca0cf | db7ec77d86cc64a1f7288a409d0c86fc80db7b10 | /call_script.R | 1ba336c063ddbaf02660e97579a35b0be9c89502 | [] | no_license | dusty-turner/fantasyfootball2020 | 5e62c9c21c7937662ddba4ac1148198e78a382cc | f1fc71b19658db941da4ee098d3f6a234aff66c0 | refs/heads/master | 2023-01-23T15:33:08.981305 | 2020-11-17T23:12:31 | 2020-11-17T23:12:31 | 285,445,781 | 1 | 0 | null | 2020-09-20T02:56:33 | 2020-08-06T01:44:17 | HTML | UTF-8 | R | false | false | 1,615 | r | call_script.R | library(tidyverse)
# leagueID <- list(89417258)
# names <- list("OA")
leagueID <- list(847888,35354777,89417258,206814)
names <- list("jim","headshed","OA","Twitter_Guy")
per_id <- 9
run_reports <- function(leagueID, per_id = per_id, names) {
# leagueID=847888
# per_id=9
# unlink("ff2020_reports",recursive = T... |
dad2aeb211d049df21d9af1d846a44db80546b3f | 9693dfebe7b0eec8b7b6d3ea65369b7da975c41f | /manuscript/scripts/drake-figs/COAD_ra_path.R | 27dc38ce7eef016aca7f14d1497e9b870449091a | [
"MIT"
] | permissive | spakowiczlab/atbac | 06d585309cfa880e448b0cc991feb7d466ffb53b | 6cb5774a796e06aa17be4e88f152a427bb6fd020 | refs/heads/master | 2023-05-02T22:24:13.627164 | 2023-04-19T18:21:49 | 2023-04-19T18:21:49 | 271,302,970 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 299 | r | COAD_ra_path.R |
### Find the JSON path information in the appropriate directory.
jinfo <- "COAD_ra.json"
if (!file.exists(jinfo)) stop("Cannot locate file: '", jinfo, "'.\n", sep='')
### parse it
library(rjson)
temp <- fromJSON(file = jinfo)
paths <- temp$paths
detach("package:rjson")
### clean up
rm(jinfo, temp) |
085874dd8b628c4f1b34c4b436b1ff383a0fe7cc | f0352034f8467e2c82a31443ae6e3125039879ac | /man/plotReducedDims.Rd | 8784abbed8a65d918e10b7f9dd8f0dbd3f923fcb | [] | no_license | epurdom/clusterExperiment | 8d5d43a250a1a3c28d4745aae4b72285458ba1a2 | ae86ee09697c13ccd5d32f964e28ab7d82b455d6 | refs/heads/master | 2022-11-04T01:54:19.806886 | 2022-10-11T22:00:27 | 2022-10-11T22:00:27 | 47,139,877 | 39 | 15 | null | 2021-01-27T21:26:28 | 2015-11-30T19:06:53 | R | UTF-8 | R | false | true | 3,748 | rd | plotReducedDims.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotReduceDim.R
\name{plotReducedDims}
\alias{plotReducedDims}
\alias{plotReducedDims,ClusterExperiment-method}
\title{Plot 2-dimensionsal representation with clusters}
\usage{
\S4method{plotReducedDims}{ClusterExperiment}(
object,
whichC... |
3729e71e19eb583968ae3e1c361b1fe04404445c | 3aaf257b3eb138c404f74ba06a2a9861a198f419 | /man/lr_neg.Rd | 84b4a9938c11cef5b629552de5e88f3f2d195834 | [] | no_license | cran/ClinSigMeasures | f86d53d1fc6b69588f9454967ce682a753fe3f7b | 99da607cbf920c25671a57fe2b9ef88d16ea9b35 | refs/heads/master | 2023-03-10T20:27:13.800615 | 2021-02-25T08:10:05 | 2021-02-25T08:10:05 | 342,293,709 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,037 | rd | lr_neg.Rd | \name{lr_neg}
\alias{lr_neg}
\title{Likelihood Ratio Negative Calculation From a 2x2 Table}
\description{Calculates diagnostic test likelihood ratio negative and 95 percent confidence intervals for data from a 2x2 table}
\usage{lr_neg(Cell1, Cell2, Cell3, Cell4)}
\arguments{
\item{Cell1}{Value for c... |
6d665ae261a34bd8b3a4051c892e67d8c5a772db | 68051033da7272304dc75ca688ad3f8ef3559a66 | /sims/code/plotfxn.R | d960107d92277608ff6e8a570d09ad7a1e40d01f | [] | no_license | andywdahl/rgwas-scripts | e37ddf3ad4ac5fb4b25c9b054bdc5967bd3daefe | 11e7201ee2af67d04d6114904db472fceddd7ab3 | refs/heads/master | 2022-05-29T12:48:47.033135 | 2022-04-04T02:37:05 | 2022-04-04T02:37:05 | 163,999,579 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,993 | r | plotfxn.R | plotfxn <- function(x,ys,xlabs,xname=expression( sigma[pop]^2 )){
layout( cbind( rbind(
c( 1, 3, 4, 5, 2, 6 ),
c( 7, 14+c(1:3,5,4) ),
8+c( 1, 3, 4, 5, 2, 6 )
),8), widths=c( 1.7, rep( 6, 3 ), 2.4, 6, 4.8 ), heights=c( 1.1, 5.3, 1.6 ) )
##### top
par( mar=rep(0,4) )
plot.new()
plot.new()
for( zzz in 1:4 ){... |
42fc706058b372252951986149ed690d9cde3c85 | 77c2026e3a751eee972f0abf470d2ffed974535f | /R/print.SingleEnvAnalysis.R | d35769465f4f3dc9f62df6717e76f7d7d71e24a0 | [] | no_license | shingocat/PBTools | db05b587f600ab6f399cd1b9adb7d1c1960ce65a | 880c110bc89ec24d7902a89c3faa56601da7f8ac | refs/heads/master | 2020-06-01T03:11:36.934855 | 2015-06-08T06:53:17 | 2015-06-08T06:53:17 | 25,959,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,490 | r | print.SingleEnvAnalysis.R | print.SingleEnvAnalysis <- function
(
data,
level = 1
)
{
if(!inherits(data, "SingleEnvAnalysis"))
stop("\tError: The argument of data must be of class SingleSiteAnalysis!\n");
if(missing(level))
level <- 1;
if(!is.numeric(level))
stop("\tError: The argument of level should be of value 1 or 2 wher... |
92e4d9101a0d5b65f1f0eb0bfc24f308c2c78cd7 | 639e8fc3a59d319dfd1ea257570e4f4d71a55dd7 | /Course3_DataClean/week 3/swirl managing dplyr.R | a0c9acbe84215d836e6e100fcf6e53c39e88efc9 | [] | no_license | Bttobar/Bttobar-JH_datascience | fc4bdac65dba3948c575ce5130ad48fc7dcf2e1f | 40bfbb305eafaf597c3b5fbc2fb5477e5e8082d1 | refs/heads/master | 2023-01-08T00:37:27.622459 | 2020-11-02T02:16:56 | 2020-11-02T02:16:56 | 291,361,665 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,760 | r | swirl managing dplyr.R | # swirl course : Manipulating data with dplyr
mydf <- read.csv(path2csv,stringsAsFactors = FALSE)
dim(mydf)
head(mydf)
library(dplyr)
packageVersion("dplyr")
cran <- tbl_df(mydf) #create a dataframe
rm("mydf") #para remover el df
print(cran) # mucho mas informatifo que df solo
# "Introduction to dplyr" vignette wri... |
c4ab82b93911f378821f162dbb2192cafcd7dbfd | 471c1214a8b8d165b896a6d6baca6b50cab4b397 | /wps/create_wrfinput.R | 39300e2b4f701646c1172a262dcfd66dd1a5a164 | [] | no_license | NCAR/wrf_hydro_docker | 2ae07010ec40927ba375f5171d05fd66d2cc99d4 | 3b4db4a2e7174d2f512ade0d4553e374645eec13 | refs/heads/main | 2023-02-17T19:21:29.954110 | 2022-11-30T21:06:20 | 2022-12-02T15:26:38 | 103,539,713 | 19 | 38 | null | 2023-08-30T04:05:45 | 2017-09-14T14:04:14 | Python | UTF-8 | R | false | false | 9,077 | r | create_wrfinput.R | #!/usr/bin/env Rscript
############################################################
# R script to create wrfinput file from geogrid.
# Usage: Rscript create_wrfinput.R
# Developed: 07/09/2017, A. Dugger
# Mirrors the HRLDAS routines here:
# https://github.com/NCAR/hrldas-release/blob/release/HRLDAS/... |
d3bb87c0717ae11fc31191c7b3e23a2978dfa5ed | d26bf0f6b95a744ac432981f67c236b9c0768237 | /R/02-wine-clusters.R | 484bb11880614f9fc6026da9d4779ae561182158 | [] | no_license | yjallan/Unsupervised-Machine-Learning | 221f4bb70407400fa85eaa96597a8e5c69bb299b | 80fc238b821a8673d50d94da9c2227c866ff111a | refs/heads/master | 2020-04-12T20:48:41.628137 | 2018-12-21T18:49:38 | 2018-12-21T18:49:38 | 162,747,382 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,391 | r | 02-wine-clusters.R | # 02 wine data
library(caret)
library(plyr)
library(dplyr)
library(magrittr)
library(reshape2)
library(randomForest)
library(mlbench)
library(dendextend)
library(mclust)
library(gridExtra)
source("R/random_projection_gauss.R")
source("R/clustergram.R")
source("R/clustergram-had.R")
source("R/clustergram... |
4bcd2cdd1c47da2e03ff5c40f27d1bac1a6391ba | 9a9262ea8998a2a599c8c56c0c40dfb77b7f7af0 | /man/sentence.Rd | 73d7958fff00f4aa0c2c66b3255a33096ff6070e | [] | no_license | KNIGHTTH0R/words | 1dbf4cf165a713c9cfbb9d753a5f9a30c6e51389 | 3b19dc800b4b74a672a3b128493654a31e363b3b | refs/heads/master | 2021-05-29T19:16:39.099239 | 2015-09-22T06:19:23 | 2015-09-22T06:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 696 | rd | sentence.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/random-words-and-sentences.R
\name{sentence}
\alias{sentence}
\title{Random sentence with n words}
\usage{
sentence(w, lang = "en", maxchar = Inf)
}
\arguments{
\item{w}{Number of words in sentence.}
\item{maxchar}{Maximal number of ... |
648f6ccd3190b1d393802c28527c672bfe83a334 | 3a3381595febf214f0f1ef5a661ffe6c5241fd2b | /cachematrix.R | 7182d1f7243f6501d0718968fc82854f7e43b17a | [] | no_license | esteban-g/ProgrammingAssignment2 | 2c51a46abc7d3a657ebf69f0ea20b48961cb904f | c97120e5e7e64b9c78e476cd7916b628a407d00a | refs/heads/master | 2021-05-28T21:16:10.357722 | 2015-10-25T11:23:23 | 2015-10-25T11:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,199 | r | cachematrix.R | ## These functions implements something that in Java could be seen as
## a "JavaBean" the so called: "makeCacheMatrix" accessing to properties
## using getter and setter methods. And a "cache" function which takes a
## "RBean" object, i.e., the makeCacheMatrix object and by using the
## 'solve' function calculates ... |
9d70d121b5eb2a22ba661707cd1ec45f73cbead0 | 6d01685a11eeaa00cc64c1839050f39c1b55be7c | /src/R/plot-flow-by-road.R | e7d86e97d640a0bf8a887ae172c10801fac3bc3e | [] | no_license | TheYuanLiao/speed2flow | 4b21a7811e497e90a97b654dd1b9dc35f7e84ad2 | c7d6f01fbde30064f32c3e0f9f4d1f70d9fbaafd | refs/heads/master | 2023-01-29T16:22:37.460688 | 2020-12-16T14:01:09 | 2020-12-16T14:01:09 | 297,274,366 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,057 | r | plot-flow-by-road.R | # Title : Visualize the time history of flow
# Objective : Empirical vs fitted
# Created by: Yuan Liao
# Created on: 2020-11-20
library(dplyr)
library(ggplot2)
library(lubridate)
library(ggpubr)
library(latticeExtra)
library(viridisLite)
library(latex2exp)
df_para <- read.csv('results/istanbul_params.csv')
df <- ... |
d7d6491ee6143530f6303fdb0f50186b9e098a17 | 7256a3ad8c1d6c9c166b91284d27af6191ae40fa | /Make_Everything.R | 7e28f205a322fba485bc2fcbb938266f2da8c6a9 | [] | no_license | loire/AMR_mada2020 | ecfdf3aedc3999730126465b3cbe2ca24cc26a9b | ade4f5bd1f32990383059d6ba2a2d38ddf4dd942 | refs/heads/master | 2022-12-07T19:48:40.027665 | 2022-11-29T12:20:53 | 2022-11-29T12:20:53 | 244,861,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 29,961 | r | Make_Everything.R | require(tidyverse)
require(ggtree)
require(randomcoloR)
require(rlist)
require(tidytree)
require(ape)
require(phytools)
require(ggnewscale)
require(ggpubr)
require(cowplot)
require(ggtext)
require(circlize)
require(flipPlots)
############################################################################################... |
c4983a36ea1b027f16377e0cb46c70fb41955c64 | 465b6d3d6738a8af925c7cb5de1ca5bfebcb8f1e | /analysis.R | 4f539c388cd70ecdc28422c723969ed2b555fd4c | [] | no_license | lukaszgolder/pump-it-up | 93dfebe0f962a2c0ff49d37b4c8ce2f519d3fdfa | 8710d80f9705001d22b955477c73f665bfe022fd | refs/heads/master | 2021-09-02T05:18:27.110770 | 2017-12-30T18:25:35 | 2017-12-30T18:25:35 | 115,814,655 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,109 | r | analysis.R | library(randomForest)
library(caret)
source("R/functions.R")
source("R/utilities.R")
train_values <- read.csv(train_values_url)
train_labels <- read.csv(train_labels_url)
test_values <- read.csv(test_values_url)
train <- merge(train_labels, train_values)
train <- featureEngineering(train)
set.seed(42)
model <- ra... |
62721e86497e0f1fcb6491d87a1538edb80c037a | fc94f96b2c059309718802204e6bf5a89bf8393e | /Data Visualization in R/Electronic Materials (Flash Drives)/ConsBio_Day1.R | adb1edbde6b4f0eb7a1649f726e7c93288e7a359 | [] | no_license | Sharanya-ms/CompSciBio_Workshop_2020 | fd3d9d839269349d6e9cce4cdc35dff6a783e6d5 | 0bc6b25602b4af119808aa931a6d37331109b618 | refs/heads/master | 2022-11-26T15:32:55.357907 | 2020-08-12T18:48:02 | 2020-08-12T18:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,241 | r | ConsBio_Day1.R | # R code and comments for Conservation Biology as part of the Computing in Modern Biology Workshop 2020
# Code assembled by Hayley C. Lanier
# Day 1: Plotting species threat data and population size
# Command to set working directory to dataset location
#setwd("~/Desktop/Computing/ConsBio")
#Read in dataset. Original... |
cc500c491d4f3d870102d4974ecb4a0f77f03bcd | 391b74b9d9bac0df1f63bc737d639b90def97cf6 | /plot1.R | af373922655ddc0e788c196a2f69d5723fa47cce | [] | no_license | jsink13/ExData_Plotting1 | 48be902d6c6275321af59e61fdf070aeba55c46a | db84d9a0fef282c998c739f1fd5a62a6e7694161 | refs/heads/master | 2020-12-26T03:55:36.502310 | 2015-01-11T22:11:04 | 2015-01-11T22:11:04 | 29,107,008 | 1 | 0 | null | 2015-01-11T21:36:11 | 2015-01-11T21:36:10 | null | UTF-8 | R | false | false | 477 | r | plot1.R | raw_data<-read.table("C:\\Rfiles\\household_power_consumption.txt", sep=";", header=TRUE, na.strings="?")
raw_data$Date = as.Date(raw_data$Date, '%d/%m/%Y')
data = subset(raw_data, raw_data$Date == '2007-02-01' | raw_data$Date == '2007-02-02')
rm(raw_data) # free the unused memory
windows()
with(data, hist(Global_acti... |
6e994d6c430e013ab7cbe050dbcce14aaf7fcd7f | 7d5daf759e6da40fdc3cd44068d1847539104690 | /www/Modules/CRUD_db.R | de740923ef86ffe7a783ede741dfb9c3dd56b63e | [] | no_license | vikram-rawat/honda_dashboard | 8d73f3fce10866985cf6378b1d137582f5168977 | d4a9b5802d235c1150e89e5396349d890ea0d769 | refs/heads/master | 2020-04-18T08:37:21.707566 | 2019-06-08T05:11:42 | 2019-06-08T05:11:42 | 167,402,713 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,027 | r | CRUD_db.R | # library -----------------------------------------------------------------
# library(shiny)
# library(shinyBS)
# library(shinydashboard)
# library(shinyjs)
# library(flexdashboard)
# library(DBI)
# library(pool)
# library(DT)
# ModuleUi ----------------------------------------------------------------
mod_crud_ui <... |
0f39d07aa7864d1a3d848ddccd436adc57f63f8f | 10ddc648602995325c6a467d0b17595cb8766fdb | /R/add_meta_element.R | 1f86469dc76c954ad450a9548512cc27a39b1314 | [
"MIT"
] | permissive | rich-iannone/hyper | cfd4479ee232aadee89477872e3e814061ce3b34 | ef5f6e4672a4fe6b8d5d9d4875b04d299159c97a | refs/heads/master | 2021-04-29T17:20:31.200263 | 2018-05-14T04:14:13 | 2018-05-14T04:14:13 | 121,667,337 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,158 | r | add_meta_element.R | #' Add a meta element to the HTML head
#'
#' Add metadata to the HTML document with a
#' \code{<meta>} element.
#' @importFrom dplyr select distinct pull filter
#' @importFrom tibble rownames_to_column add_row
#' @export
add_meta_element <- function(x,
name = NULL,
... |
8885a9e7980287aa2a8e82fdc39562910da33e4a | c091056e779a3ea6686fbf9200a9e1ba1edef1e9 | /tests/testthat.R | d0d93b96c395cadac182d708b749db4e40c319a9 | [] | no_license | AnthonyTedde/vortex | 7b2c75575b2fd1c9cbaad933897b75e6c4bf0a84 | 4c4e8e37bcf15aacba6638a2c9f7e420f65c1b8f | refs/heads/master | 2020-07-15T13:57:19.914012 | 2019-09-05T13:16:12 | 2019-09-05T13:16:12 | 205,578,701 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 56 | r | testthat.R | library(testthat)
library(vortex)
test_check("vortex")
|
1a4572adc786e3eb0e06c155ff839d03ea699905 | dd7b1e7337a4e344d4754f3f036e04c5975df256 | /man/test_fort_pb.Rd | 7552e7318bc6e158d1356a4fa1c0d2960806e459 | [] | no_license | bnaras/SUtools | 2aa8e9de0c74c3bc122c720c14f6330b38388963 | 2eb1b3a6fe15181f18db7e5d1d0774a106f74c73 | refs/heads/master | 2022-11-25T06:06:41.985476 | 2022-11-18T01:17:57 | 2022-11-18T01:17:57 | 132,827,545 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 281 | rd | test_fort_pb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testpb.R
\name{test_fort_pb}
\alias{test_fort_pb}
\title{Call the Fortran to exercise the saved progress bar}
\usage{
test_fort_pb()
}
\description{
Call the Fortran to exercise the saved progress bar
}
|
f4b7d6642b1cc9aa0e9b32f73bb440309600f3c2 | 3d6b591e2176740ba82b29fe56e77f5b48b6839b | /Plot3.R | 63956c4867e53e4ed196f0657095528ad49dd16b | [] | no_license | logarithm3/ExData_Plotting1 | 996d03b8d032bec7b7b5f440bc35e3e907fa1a8d | 7a42571f30234a9f75aa3277ed2efe0cb3773d9d | refs/heads/master | 2021-01-16T19:28:41.505572 | 2015-09-13T20:18:40 | 2015-09-13T20:18:40 | 31,861,685 | 0 | 0 | null | 2015-03-08T19:10:23 | 2015-03-08T19:10:23 | null | UTF-8 | R | false | false | 1,499 | r | Plot3.R |
power<- read.csv("household_power_consumption.txt", sep = ";",dec = ".", numerals = c("allow.loss"))
# make Sub_metering a numeric correct date & time format
power[, "Sub_metering_1"] <- as.numeric(as.character( power[, "Sub_metering_1"] ))
power[, "Sub_metering_2"] <- as.numeric(as.character( power[, "Sub_metering... |
7c11cb7a893124942978cea01c37a4e0d9e582e3 | 68e741c606ca4cae7d64fc8e18c8d18932342559 | /man/recordTable.Rd | 544a6ee69705f3152a6d6d5ac39985398ef80baf | [] | no_license | cslg094822/camtrapR | 97e8d6f84ff988635df6e5e8e642f4fd3f586b1f | 1f971170d58f796d2dc59b1e5d6d1c2388f558cb | refs/heads/master | 2020-03-31T23:55:25.067340 | 2017-10-25T12:04:26 | 2017-10-25T12:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,396 | rd | recordTable.Rd | \name{recordTable}
\alias{recordTable}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Generate a species record table from camera trap images
}
\description{
Generates a record table from camera trap images. Images must be sorted into station directories at least. The function can read sp... |
6dcd53b4a73b4a60c84cbf4cc3fb298085ccbdf6 | cd9a84d431a9b764f733b521d6ea41a644374d00 | /Support/lib/r/histogram-total-facet-year.r | 73876c749e8aa3d8fcdba9fa33dc0dd278abea72 | [
"MIT"
] | permissive | lifepillar/Ledger.tmbundle | c1db306068c4c7c31fedec78784ce98c9ae6be0d | 33a99502db980c538b21e2012ea2efcad3288003 | refs/heads/master | 2021-03-12T22:48:36.364836 | 2019-09-11T17:30:42 | 2019-09-11T17:30:42 | 7,275,360 | 9 | 5 | null | 2019-09-11T17:30:49 | 2012-12-21T15:34:40 | Ruby | UTF-8 | R | false | false | 768 | r | histogram-total-facet-year.r | # Freedman–Diaconis rule for the bin width:
#bw <- 2 * IQR(ledger_data$total) / ((length(ledger_data$total) + 1)^(1/3))
# Scott's normal reference rule:
#bw <- 3.5 * sd(ledger_data$total) / ((length(ledger_data$total) + 1)^(1/3))
# Sturges' formula:
#bw <- ceiling(max(ledger_data$total) - min(ledger_data$total) / ceili... |
f55b1d990f900344ef458853b56544f987121308 | b12919cea8afc353904b3bc75812d609a7f60562 | /R/PathPolicy.R | 33d500afe48618f54dc4437203f1de127a0d9df1 | [] | no_license | kirgush/rlsm | 22889016243bcb1d4d9fff17c8cbf9a8c4e157ff | 146deb5fe6dc400c019effce72f6006c21880434 | refs/heads/master | 2020-07-10T17:09:59.479888 | 2018-01-18T14:34:31 | 2018-01-18T14:34:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 585 | r | PathPolicy.R | ## Copyright 2017 <Jeremy Yee> <jeremyyee@outlook.com.au>
## Path policy
################################################################################
PathPolicy <- function(path, expected, Reward, control,
basis = matrix(c(1), nrow = 1),
basis_type = "power", spline = ... |
f57d9fe8cca49a57db0a88b05ec4fbe2a120e81d | 88833352620acb74a45bd1b1f32ed637e8976762 | /hw1/hw1.R | ec7f96b20fa1f2b77115cc6e85a6c6d794a0b1b8 | [] | no_license | xingcheg/STAT547-FDA | ebe5c4f0e28ae8b83619b6d1fce9c2316cbdb7e9 | fc0d037c2107a9a9b81af866e4655ce18c82781d | refs/heads/master | 2020-07-22T09:55:02.600873 | 2019-12-01T05:42:48 | 2019-12-01T05:42:48 | 207,158,392 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,074 | r | hw1.R | library(fda)
library(ggplot2)
library(plotly)
library(reshape2)
######################## Problem 1 #######################
data(pinch)
dim(pinch)
##### (b) #####
pinch_mu <- apply(pinch, 1, mean)
pinch_sd <- apply(pinch, 1, sd)
r_pinch <- melt(pinch)
names(r_pinch) <- c("time", "rep", "value")
r_pinch$time <- rep(p... |
c585fb5c446e1868ea0c8acb091d21dd5a84d8c9 | 8166e672f3c7a57f8e52bce0f32799e41de165a9 | /scripts/8_Cereals_Model_Choice.R | a69948962b3defe132fa7d74b6fa4806f03b9a8d | [] | no_license | mnavascues/DAR_ABC | 6cde8de4f7d5a91e8299afd84edf9f6fad1983b1 | 23e5d86466bcdb03839527f529651f42d9c12575 | refs/heads/master | 2023-07-07T10:02:09.973109 | 2023-06-29T07:40:58 | 2023-06-29T07:40:58 | 545,404,223 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,643 | r | 8_Cereals_Model_Choice.R | library(abcrf)
source("scripts/sim14c.R")
load(file = "results/num_of_sims.rda")
# load target (i.e. observed) summary statistics
load(file = "results/Cereals_sumstats.rda")
# lead reference tables for the 3 models
load(file = "results/Cereals_independent_model_reftable.rda")
reftable = reftable[!is.na(reftable$coun... |
53cbc1b9765149a0f6b0ea3ffa3273c1540adc03 | b1dae7310bdc730b1968d0fbb0dc545202d205c5 | /data/tagset_occdesire/tagset_occdesire.R | 4c45ff49e74fad837e84bac169f7076212e22ab4 | [] | no_license | cjmarraro/wageGapData | 0cc3190fec03c920ddd45e2de4fe7e70ed870623 | b4beed7090ffff25120e47cd382e36aa30299a4e | refs/heads/master | 2020-03-07T07:50:25.686122 | 2018-03-31T01:07:25 | 2018-03-31T01:07:25 | 127,360,113 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,317 | r | tagset_occdesire.R | # Set working directory
# setwd()
new_data <- read.table('tagset_occdesire.dat', sep=' ')
names(new_data) <- c('R0000100','R0172000')
# Handle missing values
new_data[new_data == -1] = NA # Refused
new_data[new_data == -2] = NA # Dont know
new_data[new_data == -3] = NA # Invalid missing
new_data[new_dat... |
0f3ef8954e2d0b16c5f5526dbf7659a593016d88 | 63f2f0f81ad5e96d9dc19d082bd22272d3721f83 | /R/Improvement.R | bafba52e4af3fbaf309b5498a5cbc91d03bebbe2 | [] | no_license | timriffe/TwoSex | 769547f8391474c91b68f5bd2013a98bac5444c0 | 94009f55f60931ba47639060f4fa300f92148f50 | refs/heads/master | 2016-09-09T17:19:36.872870 | 2013-10-05T17:48:05 | 2013-10-05T17:48:05 | 7,383,661 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,892 | r | Improvement.R | setwd("/home/triffe/git/DISS/")
source("R/UtilityFunctions.R")
source("R/MeanFunctions.R")
yearsUS <- 1969:2009
yearsES <- 1975:2009
dxmUS <- local(get(load("Data/HMD_dx/dxmUS.Rdata")))
dxfUS <- local(get(load("Data/HMD_dx/dxfUS.Rdata")))
dxmES <- local(get(load("Data/HMD_dx/dxmES.Rdata")))
dxfES <- local(get(load(... |
469513624a1cf92a6d095f31ce804d16c25e9207 | d56c35df537cfb4dbf7626b8bf63dec73d5ad3b4 | /R/rangemap_fig.R | 148a0159a783d5a91a91720e1558523735e4d69b | [] | no_license | vansh0901/rangemap | 9e733431240fa5a508dd0833b0aff659c97b5277 | 4f61ec2a0e86e3fb5f9633cb7877140886d67cd4 | refs/heads/master | 2020-12-09T22:31:16.097220 | 2020-01-13T15:50:04 | 2020-01-13T15:50:04 | 233,435,275 | 0 | 0 | null | 2020-01-12T18:02:23 | 2020-01-12T18:02:23 | null | UTF-8 | R | false | false | 26,922 | r | rangemap_fig.R | #' Figures of species range maps
#'
#' @description rangemap_fig generates customizable figures of species range maps
#' using objects produced by other functions of this package.
#'
#' @param range an object produced with any of the following functions:
#' \code{\link{rangemap_buff}}, \code{\link{rangemap_bound}}, \co... |
72fea597bb3b57adcb47acaba11a5fe3a11a1ee4 | c4ec91f2f28d71720effa6bba6c5b18281ecb2da | /codes/A2.R | a0ab65247bb6454a7543b0e674a6e795342716cd | [] | no_license | Marciompi/Statistical-Methods-Project-Business_failure | feebf182522611bede065c67a7046da8e3e5e34e | 387b5cbff173a5038135d14926efd49c7e700eb6 | refs/heads/master | 2023-06-29T21:29:42.224649 | 2021-08-05T13:04:24 | 2021-08-05T13:04:24 | 257,052,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,877 | r | A2.R | library(ggplot2)
library(stringr)
library(magrittr) # needs to be run every time you start R and want to use %>%
library(dplyr)
library(RColorBrewer)
dfA2 <- dfAB[dfAB$status=='failed',]
dim(dfA2)
dfA2$region <- as.character(dfA2$region)
dfA2$'region'[dfA2$'region' == "Valle d'Aosta/Vallée d'Aoste"] <- "Valle d'Aost... |
d0222f5a7c99d2b84ffd98fdc1e15413b43e883d | b9e7c33c9234e5409b249712b987e4d81508ae00 | /plot3.R | 979afd9ce7bca82d34094bbb7f0f47bef24a9fe2 | [] | no_license | skingham/ExData_Plotting1 | 02482d3723adde0d07f219e39c6c87cf8d96c537 | 1abfc6a8d80790d031694dc8ff72d6e270d38c32 | refs/heads/master | 2020-12-27T01:03:28.825880 | 2015-01-11T23:21:08 | 2015-01-11T23:21:08 | 29,104,332 | 0 | 0 | null | 2015-01-11T20:12:05 | 2015-01-11T20:12:05 | null | UTF-8 | R | false | false | 1,543 | r | plot3.R | # Find all lines of the correct date range
greplines <- grep('^[1-2]/2/2007', readLines('household_power_consumption.txt'))
firstDateRangeLine <- greplines[1]
dateRangeCount <- length(greplines)
# Read in the file, skipping to the first line of our date range, and only reading in the correct number of lines
colNames ... |
a5ba22d242c258add81af6cf807bbe1753e034e2 | 44598c891266cd295188326f2bb8d7755481e66b | /DbtTools/Transforms/R/toRange.R | 6086805086a245973d30b30a6c7568138467362e | [] | no_license | markus-flicke/KD_Projekt_1 | 09a66f5e2ef06447d4b0408f54487b146d21f1e9 | 1958c81a92711fb9cd4ccb0ea16ffc6b02a50fe4 | refs/heads/master | 2020-03-13T23:12:31.501130 | 2018-05-21T22:25:37 | 2018-05-21T22:25:37 | 131,330,787 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,220 | r | toRange.R | `toRange` <-
function(data, lower, upper){
data <- as.matrix(data)
if(lower==upper){
error('interval width can not be 0!')
}
if (lower > upper){
temp <- upper;
upper <- lower;
lower <- upper;
}
range <- upper - lower
n <- dim(data)[1]
d <- dim(data)[2]
if ((n==1) & (... |
08eb9eae4c1639d8df0afb80b491cc9cf5be0743 | 91c35aca2930e60581b57b694e85b7040246b96f | /public/mosquito/simple28oct13.R | bf72e4650c9673b66445c98fed6d609bf08a53e2 | [] | no_license | waughsh/fdoh | b5abe8d2a30d4a6d60427f055cae5f3c71ece1a4 | 30ecab89f5916ba8baa962aafb71cf819cbb61a4 | refs/heads/master | 2020-04-05T14:58:12.156605 | 2015-09-09T03:32:54 | 2015-09-09T03:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 84,130 | r | simple28oct13.R | #SET COLOR PALETTE
library(RColorBrewer)
symcols <- colorRampPalette(brewer.pal(8, "Set1"))(8)
blackcols <- c("gray90",rep("gray75", 67))
symcols[6] <- "darkred"
countynames <- map("county", "florida", names=TRUE, plot=FALSE)
countynames
countycols <- colorRampPalette(brewer.pal(9, "Spectral"))(68)
countycols2 <- color... |
7c2525e622b15e712edf6a14355a6a171ed37928 | aed2befcda06b44324e887a55c289e32e5c7c8ae | /meetupr.R | fefa23500f9a336298f5c1a67536500d7e6896e6 | [] | no_license | benubah/gsoc-test | 8f95c3074c15df91e68c2d9c13d8d7840ce89314 | 39db428b67e5b6972377aa3ec938a54277ea7291 | refs/heads/master | 2021-04-12T11:30:51.323308 | 2019-04-01T02:06:12 | 2019-04-01T02:06:12 | 126,233,627 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 332 | r | meetupr.R |
# code to retrieve R user groups on meetup.com
# Somehow, the two urls return different number of groups
Sys.setenv(MEETUP_KEY = "")
api_key <- Sys.getenv(MEETUP_KEY)
url <-"R-User-Group"
groups <- find_groups(url, api_key = api_key)
url2 <-"r-project-for-statistical-computing"
groups2 <- find_groups(url2, api_key... |
44e5516102483c8edc625ae7932dcaf937b5b5f3 | d3d250eb0ee72ff7dd780a4b04aa74cb5e194954 | /R/thermalTime.R | 40052d225974503411b7170e4425bba8b82f3cbb | [] | no_license | sanchezi/openSilexStatR | 1387df2f993435a1754cec4d400c2b75a09af728 | fb00e867c7a503aa07cf4c809b5846a5c7b99b01 | refs/heads/master | 2022-12-10T01:21:50.656609 | 2020-09-04T13:00:05 | 2020-09-04T13:00:05 | 269,555,461 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,608 | r | thermalTime.R | #-------------------------------------------------------------------------------
# Program: thermalTime.R
# Objective: calculation of thermal time according to several methods
# Author: I.Sanchez
# Creation: 12/12/2016
# Update : 01/09/2020
#-----------------------------------------------------------------------------... |
a03f0dd4b295495208f8c87fa4a2b18d9a86f6d7 | 858f45ab0c198584e2368c249ad82cf30e74f591 | /R/mycpt.R | 5bc150ea6ce43ae43303edd9808d566fd80c161d | [] | no_license | pra1981/generalizedPELT | 18f8f32084292b49c7c294f6a38bc2649c154d8c | e3949b3ea1efb1ddd09b09e5aba55ce28cfb19d2 | refs/heads/master | 2020-04-25T07:52:00.506399 | 2018-06-25T17:19:07 | 2018-06-25T17:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,863 | r | mycpt.R |
library(MASS)
###############################
## Objects and simulate #######
runs.mycpt <- function(runs,minseglen=75,pen=-1,sigma,mu,order,each){
# It simulates one per run :)
library(Matrix)
library(stats)
library(MASS)
obj <- simulate.dataset.mycpt(sigma,mu,order,each,runs,
... |
7717b2fbadd4d623bbb31afde75e7322198f3939 | fc3504c980414b28887e35b54cbf016a394af62f | /plot2.R | 2fd0002e50daf1cd67b6f67999ed09ee9fd2dc4c | [] | no_license | weiconglyu/ExData_Plotting1 | f75c85e3e51ece42aacd61af30c9453ea68274d7 | 877b71020efa2bf053a9af593c3561e75e0790e5 | refs/heads/master | 2021-05-27T10:59:51.458936 | 2014-08-02T14:30:13 | 2014-08-02T14:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 442 | r | plot2.R | data <- read.table("household_power_consumption.txt",
sep = ";", header = TRUE, stringsAsFactors = FALSE)
t <- data$Date == "1/2/2007" | data$Date == "2/2/2007"
data <- data[t, ]
png("plot2.png", width = 480, height = 480, units = "px",
bg = "transparent")
with(data, plot(strptime(paste(Date, Time), "%d/%m/%Y %H:... |
119454ab35acd0e0e6c58c104ccd232affdf6b26 | c407762045c37b35dac8c10e05fb4ded836e5cb7 | /PAnalytics.R | ee5a7320ac3829396b9aa1a8233afe66854f46dd | [] | no_license | prophet555/InvestmentProcess | 641c638392aa7187f11741739602f515274265df | 6ef549ca0d9f2dbd326974ebb586ce7005bde890 | refs/heads/master | 2023-05-11T08:16:02.960170 | 2013-10-14T02:54:13 | 2013-10-14T02:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,827 | r | PAnalytics.R | # Performance Analytics
# http://www.youtube.com/watch?v=vUVAaDqz4cs
# http://cran.r-project.org/web/packages/PerformanceAnalytics/PerformanceAnalytics.pdf
options(digits=4)
options(scipen=999) # removes scientific notations in results
library(PerformanceAnalytics)
library(xts)
library(tseries)
library(plyr) # fo... |
223b5a641cde42bdc82f6968c92efb484ba8c812 | 06a82c51579c6600933df98a28ec10efcd5f4bff | /app6c/ui.R | 09944946a6169a14152c789023573a6fd06ebc66 | [] | no_license | OldMortality/shinies | 733b5264db870b5fbe8d03845ab3606f4898e07c | 16de43356a51fe628bad78b7175ad8b834815ce3 | refs/heads/master | 2021-06-04T21:21:34.394444 | 2020-03-05T02:48:56 | 2020-03-05T02:48:56 | 145,629,550 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,419 | r | ui.R | # app 6c.
# like 6b,but you type in your own sample data, rather
# than take samples.
library(shiny)
library(shinydashboard)
library(shinyjs)
library(ggplot2)
shinyUI <- dashboardPage(
dashboardHeader(title = "What can we say based on a single sample mean?",
titleWidth = 850),
dashboardSideb... |
b489cfc4f9a04d7593b2083c80244ce788176683 | bef88657b897dabd82d9f25b324b85eb4906faa5 | /R/d3dendrogram.R | d2eb4bc474955cebb7b213af58fff2f01edc9ab7 | [] | no_license | RanaivosonHerimanitra/dendextend | 87ed77d136113a794a1b8bd0d81c8164f1de7380 | e6769519763e1efb707ef0afbf6ed988910253d2 | refs/heads/master | 2021-01-20T23:06:05.828089 | 2014-07-29T08:35:00 | 2014-07-29T08:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,368 | r | d3dendrogram.R | # Copyright (C) Mark van der Loo and Tal Galili
#
# This file is part of dendextend.
#
# dendextend is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any la... |
02ad95de1bbe4cdf362dcb5b6d2c91bbe4b939ff | ae9c3f4e717658e5ccd2566c8f87074ee4890301 | /R/sar.R | 30b42f1f9962ebc9ff5a1dc8c24a063c1d2a98c3 | [] | no_license | cmerow/meteR | 55dc8626c6034dc4c83a24960fc90b7060a1613a | d459165539ddad416b44f87862b4b15e6c255d75 | refs/heads/master | 2020-05-22T06:55:56.493291 | 2019-03-14T17:18:57 | 2019-03-14T17:18:57 | 26,815,258 | 9 | 5 | null | null | null | null | UTF-8 | R | false | false | 15,404 | r | sar.R | #' @title Compute METE species area relationship (SAR)
#'
#' @description Uses raw data or state variables to calculate METE SAR
#' and EAR (endemics area relatiohsip) as well as compute the observed
#' SAR or EAR from data, if provided
#'
#' @details Currently only doublings of area are supported. Predictions
#' an... |
e8297925b25bd2826320622923e17dfdd33b85ed | 5940c0ee54f892aa5f0933ee6991fbbf8ab1c406 | /man/iterateModels_raw.Rd | f15e72a446f85a7b57a2377916d85b4684883ad7 | [] | no_license | sboehringer/package | fff874cf7c7d9bd29d80da7e94e39ce8dbd99a1d | e069efa130486b82ad39f41ba65d971c5ac96ea5 | refs/heads/master | 2022-12-27T08:56:44.158868 | 2022-12-20T12:43:54 | 2022-12-20T12:43:54 | 220,493,110 | 2 | 0 | null | 2019-11-11T14:27:07 | 2019-11-08T15:18:23 | R | UTF-8 | R | false | true | 1,967 | rd | iterateModels_raw.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rdata.R
\name{iterateModels_raw}
\alias{iterateModels_raw}
\title{Iterate combinations of parameters}
\usage{
iterateModels_raw(
modelList,
models,
f_iterate = function(...) list(...),
...,
callWithList = FALSE,
callMode = NULL,
... |
54a67ae303419c20f0ccd4c7aa1c0bfecd15a61f | 977e25b030bc27e923f52b08305a6dec2cfd02fd | /finance_basics_with_r/xts-zoo2/5_extra/periodocity_example.R | 86368bd2f5a471bd20f579effbd389f50a576423 | [] | no_license | printfCRLF/rr | d4cd813fafef7d64da2722ade9e14220c12e17ff | 4116f726f5ad7a8cadbe6841d13abbdb998ee294 | refs/heads/master | 2021-04-15T15:08:37.032087 | 2019-07-12T08:29:26 | 2019-07-12T08:29:26 | 126,468,211 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 899 | r | periodocity_example.R |
temps_csv <- read.csv("Temps.csv")
temps <- as.xts(temps_csv)
determine_periodicity <- function() {
periodicity(temps)
p <- periodicity(edhec)
print(p)
edhec_yearly <- to.yearly(edhec)
p <- periodicity(edhec_yearly)
print(p)
}
find_number_of_periods <- function() {
n_months <- nmonths(ed... |
03a61e197cbe60f08be6b085ff5d4b2a62f1b47e | 74bc807e2c59d6e4eb881228bce0e1616db971cd | /r/rethinking/binomial_distribution.R | 77101e32b037b541725aeb3f405588f15b4f95c2 | [] | no_license | luigiselmi/datascience | 29f850bb8debd98560eb24b2144fee7ff1ff2fe8 | 7cffbeb6a8292633c8e204a8ac87e01790b23944 | refs/heads/master | 2023-07-11T00:39:08.367239 | 2023-06-27T10:20:54 | 2023-06-27T10:20:54 | 98,037,236 | 18 | 13 | null | null | null | null | UTF-8 | R | false | false | 3,432 | r | binomial_distribution.R | # Binomial distribution
# Estimation of the bias of a coin.
# We assume that a coin can be biased so that the probability
# theta that after a toss it shows head or tail
# may not be 0.5. We assume at the beginning that theta can have any
# value between 0 and 1 but with different probabilities. We have some
# ... |
f2458add20e4079f8e326ded6742747f6abad645 | 255aa1f4187b1851be410fa3498e78dc95b8eaca | /plot3.R | f9ec6cb613ffb4f29eaf08a62605b53c45188958 | [] | no_license | tregubov-kv/ExData_Plotting1 | 7f17f462764b2dc251f448da2c004b692c36f700 | a8c83e2c78617eabd48b0ef6df993edae5dbc9aa | refs/heads/master | 2021-01-18T00:20:36.081108 | 2015-04-10T14:47:02 | 2015-04-10T14:47:02 | 33,672,975 | 0 | 0 | null | 2015-04-09T14:16:00 | 2015-04-09T14:16:00 | null | UTF-8 | R | false | false | 1,002 | r | plot3.R | data <- read.table(".//exdata_data_household_power_consumption//household_power_consumption.txt", header = T, sep = ";", na.strings = "?")
data1 <- data[data$Date == "1/2/2007" | data$Date == "2/2/2007",]
rm(data)
data1$Time <- strptime(paste(data1$Date, data1$Time), "%d/%m/%Y %H:%M:%S")
data1$Date <- as.Date(data1$Da... |
5bd5fb1e95a80538a4f4ac929d171462d1fe8953 | 84f5ac25a17b16191b40d979b4d4fc0bc21b0b9e | /man/cliches.Rd | da365113f983ac82a78c0ece3216bc5ce00b4a9c | [] | no_license | cran/lexicon | 1d23c81e51c828020110b9f7d2d01980bdf78bf3 | 03761ddba87f3ac1dd6af743508a7e8303be061b | refs/heads/master | 2021-01-12T01:03:22.432056 | 2019-03-21T09:40:03 | 2019-03-21T09:40:03 | 78,337,774 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,541 | rd | cliches.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cliches.R
\docType{data}
\name{cliches}
\alias{cliches}
\title{Common Cliches}
\format{A character vector with 697 elements}
\usage{
data(cliches)
}
\description{
A dataset containing a character vector of cliches.
}
\section{Lic... |
ca61efb7190c249485499b663da380200d33e1a6 | d89873be285ea095c421aca70c4de4ce2480f41d | /ML/winecsv.R | 678b73a406bf691527001abba352667b2f46417d | [] | no_license | rusimody/PCISummerSchool2017 | 198026b16c3cd34255b8e5abb35beb24d0225b7e | 3d59539aacda3532faa1ba293976b7230f73135d | refs/heads/master | 2021-01-23T01:46:08.475385 | 2017-06-10T18:14:18 | 2017-06-10T18:14:18 | 92,891,351 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 1,549 | r | winecsv.R | library(e1071)
library(randomForest)
setwd("C:/Users/neel jambhekar/Desktop/persistent")
E=read.csv("wine.csv")
data=E
cl=as.factor(data[,1])
data=data[,-1]
s=sample(1:nrow(E),nrow(E)/5) #randomly sample 20 % for test
train=E[-s,]
cl_train=cl[-s]
val=E[s,]
cl_val=cl[s]
svm_cv=svm(train,cl_train,cros... |
35c80f3aa14dd6bf9a6b52be873a3d0a9eaa43fc | e429174458860830dd3f9428832d5494648d09f7 | /freqTableBuilder.R | 7aae61c0572ad0cacd75a94757458210cbd1f94d | [] | no_license | syarb002/textPrediction | 00333a50d0d21a1589f698af255a5f4aaeae3ad3 | 03451b483eda03468b12696fe4c7afd8c59d8218 | refs/heads/master | 2021-01-13T03:14:07.657551 | 2016-12-26T23:44:59 | 2016-12-26T23:44:59 | 77,412,252 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 829 | r | freqTableBuilder.R | # Frequency Table Builder for Capstone Project
#
# Grabs 1,000 documents at a time, tokenizes them, then summarizes by
# frequency. Limits analysis so that the system memory isn't exceeded.
i <- 1 # Set this to wherever you left off if processing interrupted
while (i < 333667) {
if (i == 1) {
dfm4G <- dfm(sam... |
7bc97597ca1809ac55339a743eb1d5a62ad483cb | 6db590e37ee3c17eb381d8e5c719b82ddcf010d8 | /Team5_Harkathon_AT.R | a81e1ae0107f8e2556bf17cc811e8b6297dbe6c3 | [] | no_license | netalexhk/SOA_PPAS_HarkAthon_2020 | b290f35217e72db631bdf078a999b0652d0f33f4 | d4bc1b46539c8e5541d2d796133dd1d29df42bf6 | refs/heads/master | 2022-12-18T12:17:38.898742 | 2020-09-25T21:08:08 | 2020-09-25T21:08:08 | 298,679,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,694 | r | Team5_Harkathon_AT.R | ---
## Load packages
library(dplyr)
library(lubridate)
library(car)
library(ggplot2)
library(tidyr)
library(tidyverse)
library(xgboost)
library(readr)
library(MLmetrics)
training <- read_csv("R/wd-PAF/training_prep_2.csv")
testing <- read_csv("R/wd-PAF/testing_2.csv")
mod.mat <- model.matrix( ~ .,
... |
1b73ac660b721443728b477bd4026397764a910f | 63db753857de5950ce413f2101d2b24854b2a7e3 | /R/portion_2.R | 78e81485dd0a04fd58c1d18ed94f107f3c826232 | [] | no_license | AACSB/assessmentAACSB | 8415f16f42426f52ea7f24b635329e2287140d48 | 9d407ebfcff3ee47abb4972fc56a6b9ce0b17af1 | refs/heads/master | 2023-02-18T10:34:53.889473 | 2020-12-22T20:35:35 | 2020-12-22T20:35:35 | 323,725,499 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 528 | r | portion_2.R | #' Return the total enrollment for each Group/Racial/Gender category for a given
#' state code.
#'
#' \code{get_category_by_state} returns total enrollment by diversity category
#' for a given state code.
#'
#' This function parses the \code{yaml} configuration file that lists all
#' of the sources for each customer. .... |
ff7edf52e2bf0d91ece2b1247c54b6edff94518a | 5640b05cb5e4182a3b5388531877a506c34e543b | /data-analysis/calculate_incidence.R | a5e8c893e67834035ce998f358e4613eb3224fe2 | [] | no_license | zeldow/edp-extras | 4f72d7d3fb6aa86d1ca882a3472787734ed2d8ff | 7d2cd96a356bdde4fe5fc0ee172118dbfcbdc1af | refs/heads/master | 2022-11-26T23:30:20.837344 | 2020-07-20T21:27:55 | 2020-07-20T21:27:55 | 281,157,776 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,063 | r | calculate_incidence.R | setwd("X:/dissertation/paper2/")
library(haven)
library(dplyr)
library(stringr)
outcome <- read_sas("outcome.sas7bdat")
## O1 - outcomes and time on study
out1 <- aggregate(outcome$Diag1, by = list(outcome$site1), FUN = sum)
time1 <- aggregate(list(time = outcome$surv1), by = list(outcome$site1), FUN = sum)
... |
c9982ae4f5763697d5dac523d16a36ec26e8f6fe | 14839c7f9ee1fbf176a1c675c42192a0c3534a61 | /rprog-data-ProgAssignment3-data/rankall.R | fc09dfc0bcdf4d2d251aa03b35a12597a7f4d186 | [] | no_license | carlosrojasmatas/rtraining | 70b21e8edd7c51bb2aaec41dd34fef76d05b0b4c | 2eb1f62d93f1dc0918147854b0c05e3bfef744f6 | refs/heads/master | 2021-01-10T13:27:29.804331 | 2016-01-02T15:28:18 | 2016-01-02T15:28:18 | 48,320,341 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,330 | r | rankall.R | rankall <- function(out, num = "best") {
outs <- c("heart attack" = 11,"heart failure" = 17, "pneumonia" = 23)
asNumeric <- function(x) {
suppressWarnings(as.numeric(x))
}
## Read outcome data
outcome <- read.csv("outcome-of-care-measures.csv",colClasses="character")
## Check that state and ... |
72b14fd1a266ae2d4318c58d681e42a07ec0f205 | ccc964ca50ccb486f3ff87ea26005a19c7ae72e5 | /R_codes/Corr2/Create_OR_correlation.R | ec58ffd115167953d4686dcf792041a57760b638 | [] | no_license | dtmlinh/Car-Crash-Fatalities-Exploration-Tool | 426d1b52b5c42b057de251c6276b6fd5d7b63ac5 | 3608aa473f2f091f10709e432be3e7321dffe1f5 | refs/heads/master | 2021-05-24T17:26:27.484837 | 2021-03-29T16:27:36 | 2021-03-29T16:27:36 | 15,200,840 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 331 | r | Create_OR_correlation.R | setwd("data")
OR=read.csv("OR.csv")
OR$State="Oregon"
OR=subset(OR,select=c("County","State","Fatalities.Count"))
OR=aggregate(.~County+State,data=OR,FUN="mean")
data=read.csv("Distance.csv")
data$County=toupper(data$County)
OR$County=toupper(OR$County)
dta=merge(OR,data,by=c("County","State"))
write.csv(dta,file="Cor... |
c00d99107b95f62abed325dbe2cdbf8f0a98aa31 | 0e7b0b1e3af416651e84b7906d9a5187a4b87a16 | /inst/UnitTests/runit.tests_1.R | 1e41140742cce0e06964b4916e83266833371bea | [] | no_license | cran/VFP | dbce80aecd16e7bca17dd7f98a1835549930ffe7 | da114228bfeb7cd9cc169265999661332a442dc5 | refs/heads/master | 2022-11-19T01:11:33.431124 | 2022-11-08T14:10:06 | 2022-11-08T14:10:06 | 145,906,962 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 12,574 | r | runit.tests_1.R | # TODO: Add unit-test functions which can be automatically run
#
# Author: schueta6
###############################################################################
library(VCA)
###
data(MultiLotReproResults)
fit.all.models <- fit.vfp(MultiLotReproResults, model.no=1:9)
means <- MultiLotReproResults$Mean
#* **... |
a500416eec39099ec72204a6119c3849ac98faa3 | c6e26f1bc6a874774973b3549bcf68d6d8e1991a | /tests/testthat/test-domains.R | 1deac4127d89e35ac36c2da0081fb2ce8703be94 | [] | no_license | Smaraki11/analogsea | 0550824155c59e5b27d51112b5e15f09b0057aca | 4791aae460c093d5029c283776c9438882dd8c6e | refs/heads/master | 2021-01-18T03:10:50.589038 | 2015-08-12T05:44:29 | 2015-08-12T05:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 143 | r | test-domains.R | # tests for domains
context("domains")
test_that("incorrect input to what param returns NULL", {
expect_error(domains_records("asfasd"))
})
|
562474ecf5ff0f7f279a302b1995e7ad33de7a03 | 4ca76a3cef4af592ba8ab121aae35f5eccb59670 | /man/rtauargus_options.Rd | b6065ab64aa09d6d801159647c969a761e020242 | [
"MIT"
] | permissive | InseeFrLab/rtauargus | 5e9405d3453a534adc235ec71f5d559de00f8f62 | f3810aff361d2eb7aa31d47e38fe1943f42733ad | refs/heads/master | 2023-08-18T22:24:22.967560 | 2023-07-20T16:33:36 | 2023-07-20T16:33:36 | 442,119,707 | 4 | 4 | MIT | 2023-09-05T11:56:35 | 2021-12-27T09:57:18 | R | UTF-8 | R | false | true | 6,001 | rd | rtauargus_options.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{rtauargus_options}
\alias{rtauargus_options}
\alias{reset_rtauargus_options}
\title{Manages options of rtauargus package}
\usage{
rtauargus_options()
# options(rtauargus.<opt> = <val>)
reset_rtauargus_options(...)
}
\argumen... |
76c4199a3add7094bade942459a606a11e55bec5 | 8b4254eeceaf1640422f113907e8361c6c2e35cb | /R/game_flow.R | 9a7da45c6243af5637d2e6fd7447aa62b3cc24a7 | [
"MIT"
] | permissive | lbenz730/ncaahoopR | f2d823032a397f7003a3ce4d543f914aade09ff7 | c3b6b3cc363d7632a817943b09e3d486c4f490c7 | refs/heads/master | 2023-06-22T17:48:19.757112 | 2023-06-19T15:30:16 | 2023-06-19T15:30:16 | 144,089,351 | 190 | 66 | MIT | 2023-04-18T14:02:15 | 2018-08-09T02:07:02 | R | UTF-8 | R | false | false | 3,117 | r | game_flow.R | #' Game Flow Chart
#'
#' Renders Game Flow Chart
#'
#' @param game_id ESPN game_id for which to render chart
#' @param home_col Color of home team for chart
#' @param away_col Color of away team for chart
#' @export
game_flow <- function(game_id, home_col, away_col) {
### Error Testing
if(is.na(game_id)) {
stop... |
15e1ceaa552cced9529f5d45b8d4372d381a5bd2 | d14bcd4679f0ffa43df5267a82544f098095f1d1 | /inst/apps/shockabsorber_quantiles/server.R | 365ce6695d94317258d532d5ce63a56e6b99ad4f | [] | no_license | anhnguyendepocen/SMRD | 9e52aa72a5abe5274f9a8546475639d11f058c0d | c54fa017afca7f20255291c6363194673bc2435a | refs/heads/master | 2022-12-15T12:29:11.165234 | 2020-09-10T13:23:59 | 2020-09-10T13:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 163 | r | server.R | server = function(input, output, session) {
output$squant <- renderPlot({
input$shockquants
return(isolate(eval(parse(text=input$shockquant))))
})
} |
25551eb2c6798a9d641f751c83384adf106f19cc | 77af7f6a404826f6819e67bd516d97a49795f1c7 | /Pollutantmean.R | 31ab986d3b9a0cfb783c94bbc8d3d299513a4406 | [] | no_license | Shakespeare1998/RStudio | 852ebc096deab311f4ff18ce327b0be494e6f35a | fc28e54ed061e7869ea08a0850733a0b896081f6 | refs/heads/main | 2023-06-02T05:06:06.539613 | 2021-06-18T15:52:16 | 2021-06-18T15:52:16 | 378,198,819 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 391 | r | Pollutantmean.R | pollutantmean<- function(directory="/Users/athindrabandi/Desktop/specdata", pollutant, id=1:332){
filenames <- list.files(path=directory, pattern="*.csv")
val<- vector()
for (i in id){
filename <- sprintf("%03d.csv", i)
path<- paste(directory,filename,sep="/")
dat<- read.csv(path)
d<- dat[,po... |
15b96eaeb82e3658872ce8a5c8624e32d0dc054f | 0cc55fc29238ab75cb4b8d0774f8f5d3150232b4 | /shiny/16-renderImage.R | c4e2475296eed233517f9e65c11a4cc6eaa72cb2 | [] | no_license | kelfan/rLearning | 237a6daf18a4275aead953546a222e1b75bbbf7c | 9b712fd3b0a81d3c323fdfa1981af5641c11b2ae | refs/heads/master | 2021-05-05T10:38:36.900619 | 2018-11-18T11:49:43 | 2018-11-18T11:49:43 | 118,072,547 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 100 | r | 16-renderImage.R | library(shiny)
runApp('E:/Dropbox/Dropbox/20181110-Caren-R-network-research/shiny/16-renderImage')
|
311ea2577788d7824b3c6134535836945b62bd82 | d633249f08fc289db62d52930ff7d7358de8fa70 | /tests/testthat.R | 6c317b03100023faad2905072b0453121964ccc4 | [
"MIT"
] | permissive | terminological/uk-covid-datatools | 37c59ac22adce135999b496bab82cfa7463772c9 | c42a5d539f52c732b3c4618a453a7bcaf98cb9a9 | refs/heads/master | 2021-12-25T22:32:39.693962 | 2021-06-24T14:02:09 | 2021-06-24T14:02:09 | 248,539,323 | 2 | 2 | MIT | 2020-11-30T09:34:58 | 2020-03-19T15:33:48 | R | UTF-8 | R | false | false | 68 | r | testthat.R | library(testthat)
library(ukcovidtools)
test_check("ukcovidtools")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.