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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d443e0cdd8d3bd947a52900a1118506ab827f5f | 6c55d0793217f79c36fe4ef59ae2a9e6907af3db | /Day05/day05.R | a4454c404ca36ba85527afd0eacce52612af9202 | [] | no_license | Darius-Jaraminas/advent_of_code_2020 | decb06a1b9262fbf06de6ef1f92efd14d3d4f0dc | 88242d6c185a528d2ac251094ad8908c8bc54cf6 | refs/heads/master | 2023-02-07T02:14:38.090605 | 2020-12-25T09:22:21 | 2020-12-25T09:22:21 | 317,453,101 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,162 | r | day05.R | library(dplyr)
source("fun.R")
# part 1
# test
t1 <- read.csv("test1.txt", header = FALSE, stringsAsFactors = FALSE)
row <- numeric(nrow(t1))
seat <- numeric(nrow(t1))
seat_id <- numeric(nrow(t1))
for (i in 1:nrow(t1)){
row_coord <- clean_coord(board = t1[i, 1], subset = c(1, 7))
row[i] <- find_binary(set = 0:127... |
d9841ad32028b0288c14d64a39b0a5c716d709f0 | 78aa2a91d46ef0f030f30bc5adf3bddf100416cd | /man/getXrange.Rd | 87677595eefb352c64916bdae87dd51de0d24f7e | [] | no_license | jrthompson54/DGE.Tools2 | c7239ee27c1d6c328d2c860618fbd09147ae5fc5 | f7f9badef7d94a7e637ca3716a073a1ddbf4f5d2 | refs/heads/master | 2021-08-06T04:30:18.547140 | 2021-05-12T13:15:13 | 2021-05-12T13:15:13 | 250,071,780 | 3 | 1 | null | null | null | null | UTF-8 | R | false | true | 532 | rd | getXrange.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ThemePack.R
\name{getXrange}
\alias{getXrange}
\title{Function getXrange}
\usage{
getXrange(p)
}
\arguments{
\item{p}{A ggplot object}
}
\value{
a vector of length 2 with xmin, xmax
}
\description{
Deprecated. Use xrange instead.
A simple f... |
4123863d6cc82463029e94e4c33c61a4b43907bc | 0a906cf8b1b7da2aea87de958e3662870df49727 | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609962534-test.R | 5686f0abd114eba6218ca7645844b0fbfe16c9c5 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 574 | r | 1609962534-test.R | testlist <- list(x = 1465341783L, y = c(-1499027802L, -1499037696L, 0L, 0L, 32934L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, -1499027802L, 367L, 1853030400L, -539616721L, -11788545L, -65281L, -1L, -2686977L, -134225921L, -1L, -256L... |
b28efcee427826cc438e01fc74ed3c23c08be675 | db9babe7093ccc38fe3ed282974922960a3d97fa | /Scripts/Broken_axis.R | a2222fe8665f040da39583eb9bfba5e102a9a1a0 | [
"MIT"
] | permissive | cxli233/FriendsDontLetFriends | f6826aa7e486b55bc82cdd0edabc67db5deade6c | c58f9eee68088183b5dc515384e0fd7872653088 | refs/heads/main | 2023-03-17T06:27:18.882960 | 2023-01-16T23:28:27 | 2023-01-16T23:28:27 | 495,942,174 | 794 | 30 | MIT | 2022-12-31T16:52:37 | 2022-05-24T18:26:12 | R | UTF-8 | R | false | false | 3,037 | r | Broken_axis.R |
library(tidyverse)
library(patchwork)
library(RColorBrewer)
a <- data.frame(
x = c("a", "b", "c", "d", "e"),
y = c(10, 20, 30, 450, 500)
)
lower <- a %>%
ggplot(aes(x = x, y = y)) +
geom_bar(stat = "identity", aes(fill = x),
width = 0.7, color = "black") +
geom_text(aes(label = ... |
d45f48cc9613aa862d9bb1b242bb434ce4def546 | 1250dace0174bc93655c08cca190bed948717f40 | /R/cartotools-package.R | af71fc7e9a123e724ccf96766ea1cf16cd810d15 | [] | no_license | sumtxt/cartotools | 80ced0ba486603b1b5848e2bb2b93c748195f5ff | 8dd3237c80cc74344700da5d9f89d285912384c4 | refs/heads/master | 2021-04-27T00:16:05.426269 | 2018-03-04T11:25:00 | 2018-03-04T11:25:00 | 123,781,848 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 548 | r | cartotools-package.R | #'
#'
#' Feedback is very welcome!
#'
#'
#' @details
#' \tabular{ll}{
#' Package: \tab cartotools\cr
#' Type: \tab Package\cr
#' Version: \tab 0.0.0.9000\cr
#' Date: \tab 2018-02-11\cr
#' License: \tab GPL-3\cr
#' }
#'
#' @name cartotools-package
#'
#' @docType package
#' @aliases cartotools
#' @title Simpl... |
89de35d51c36f9f1c25afc887692e299980bf1fe | 441801672f62ec4513c600e09f63305572b1b11d | /man/metadata.Rd | f5cea8666afcc22cce5710b4db850490dfafc1e8 | [] | no_license | sneumann/mzR-playground | d2379e6790cebf32ba3887bbb9ffad35af07d6ad | 134104c7af6d979e41c62ea75f84cb45aa84b05d | refs/heads/master | 2021-01-19T13:46:21.843142 | 2014-04-03T08:49:07 | 2014-04-03T08:49:07 | 1,159,529 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,368 | rd | metadata.Rd | \name{metadata}
\alias{analyzer}
\alias{detector}
\alias{instrumentInfo}
\alias{ionisation}
\alias{manufacturer}
\alias{model}
\alias{runInfo}
\title{
Access the metadata from an \code{mzR} object.
}
\usage{
runInfo(object)
analyzer(object)
detector(object)
instrumentInfo(object)
ionisation(object)
manufacturer(obj... |
df916869223959e9af4b25e1cc59acfc5e3275e5 | f52a49233f0df01966a2cbf787823a19aa63d20d | /man/bind_rows2.Rd | f918c8b5b4293c2a9f4f9273d2ff2cf8a0a2eb1d | [] | no_license | markwh/markstats | e09b5e3598b3ba5e26fd961e02026932f452c49f | b8da28f7b1975fc9bc94818a92dd644d38155a4e | refs/heads/master | 2021-01-17T09:20:20.239503 | 2019-05-21T02:05:18 | 2019-05-21T02:05:18 | 40,378,676 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 363 | rd | bind_rows2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{bind_rows2}
\alias{bind_rows2}
\title{A better (but slower) version of dplyr::bind_rows}
\usage{
bind_rows2(dfList, addMissing = TRUE, verbose = FALSE)
}
\arguments{
\item{dflist}{a list of data.frames}
}
\description{
A better ... |
0b29c94dd3520e0c0f313ae79effbc9672d3491e | 623931d5753b1d5691e5dcb9a133c1c786b56bc5 | /SpeciesListBreeding.R | a4f180bdb872a10c1829bea983cd75a348183e59 | [] | no_license | daisyduursma/CleanBreedingBirdObservations | e971ab54221284e84dea8bace22e717125afa9c9 | 76838c0d531d3766b8158925d024af0128647474 | refs/heads/master | 2021-08-26T07:08:56.928559 | 2017-11-21T20:42:18 | 2017-11-21T20:42:18 | 111,591,719 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,143 | r | SpeciesListBreeding.R | rm(list = ls())
#prep species list
sp<-read.csv('/Users/daisy/Google Drive/PhD/BreedingTiming/tables/speciesOfInterest_2015-07-06.csv')
colnames(sp)[1]<-"ScientificName"
colnames(sp)[4]<-"CommonName"
sp$genus<-t(as.data.frame(strsplit(as.character(sp$ScientificName),
" ")))[,1]
sp<-sp[,c(... |
e106d8dff70ffa1be29caeabb5e0a1a780af1e89 | 71ee5477aa69fa3bbd891ed71c9739342338bb39 | /cachematrix.R | 71d5b52127e56cd813c39e9eba7a18ab1a9699b5 | [] | no_license | kshieh/ProgrammingAssignment2 | bb09613a160976495d4e56de3d50fc5b455d670b | 6aadb02aa5dba66530b077e5f99b6391df2c36ff | refs/heads/master | 2021-01-18T05:36:40.255530 | 2015-02-18T17:08:30 | 2015-02-18T17:08:30 | 30,698,260 | 0 | 0 | null | 2015-02-12T10:51:33 | 2015-02-12T10:51:32 | null | UTF-8 | R | false | false | 1,440 | r | cachematrix.R | ## Functions to cache the inverse of a matrix, which can be a time-consuming
## calculation. When the inverse is needed again, it can be looked up in the
## cache instead of recomputed. These functions take advantage of the scoping
## rules in the R language to preserve state inside of an R object.
## Creates a specia... |
6a8113e9b43b6886730d06014ead199775acc0bd | 381917652785e00bdf86890a30fb73f2f3a84651 | /man/standardize.Rd | 52d5795ee7a0a8f027a187f581746f5e71606d10 | [] | no_license | cran/SIS | b1625b801a9a994825531b2b72e9907b867fec84 | 711e96f624e1421ecc1a68ac3f9a1a48b6059e6d | refs/heads/master | 2020-05-22T14:36:04.971738 | 2020-01-27T16:10:07 | 2020-01-27T16:10:07 | 17,693,541 | 3 | 2 | null | null | null | null | UTF-8 | R | false | true | 1,462 | rd | standardize.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/standardize.R
\name{standardize}
\alias{standardize}
\title{Standardization of High-Dimensional Design Matrices}
\usage{
standardize(X)
}
\arguments{
\item{X}{A design matrix to be standardized.}
}
\value{
A design matrix with standardized pr... |
8187cd9b5900f9ff9470adedbbd632f7c64db867 | 7a0db46e0d8207d2e7cdb1447a2ed2029d97f47d | /man/fuzzy.CM.Rd | 2aff25ec45e24aaee12aac280db1e63b8e2feaf6 | [] | no_license | fauzipandya/advfclust | 726571a0436befde2482b2c2d002c41bd0711f14 | ebeaa97ce8ca4e8aeea10695b0ebb7c09ede25d6 | refs/heads/master | 2020-09-21T19:37:09.567968 | 2016-09-24T16:45:42 | 2016-09-24T16:45:42 | 66,117,846 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,322 | rd | fuzzy.CM.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fuzzy.CM.R
\name{fuzzy.CM}
\alias{fuzzy.CM}
\title{Fuzzy C-Means}
\usage{
fuzzy.CM(X, K, m, max.iteration, threshold, member.init, RandomNumber = 0,
print.result = 0)
}
\arguments{
\item{X}{dataset (matrix/data frame)}
\item{K}{number of c... |
266bea9dbab0da97c7165420fea1d399bacf442d | 1528645b51076a3036642e54ebfc4aeb525ece92 | /fastinR/man/simulation.Rd | 924555765778f06a69911a43b38930f6e5e60cc7 | [] | no_license | Philipp-Neubauer/fastinR | e1d058bca1b4f40917cb2f4fec5cd4c41a9092ce | e6081d0e65348131a8f17058cc35e95cab0513b5 | refs/heads/master | 2021-07-10T19:23:52.889509 | 2018-06-20T10:42:13 | 2018-06-20T10:42:13 | 8,904,070 | 4 | 5 | null | 2017-02-28T01:09:18 | 2013-03-20T12:54:23 | TeX | UTF-8 | R | false | false | 4,450 | rd | simulation.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/Simulator.R
\name{simulation}
\alias{simulation}
\title{GUI: Simulate Fatty Acid profiles and Stable Isotope data}
\usage{
simulation()
}
\value{
\code{Write simulations to files} will produce a series of files that can be used as inp... |
a96ef1262bf5bf080e91844cc751a92704abf539 | d936566997935dc6f85c96f9408fe9fb3f2a0efc | /code/generate_stat_graphs.R | fd4970045d6e7020003775b21cc3c5ffb8c68dbe | [] | no_license | suryaeada9/imsi_biocro | 9472674be098b8aee83eebd56bec235abfbdd605 | e1cd736b9985a4927a80aabd5b383c88db804f02 | refs/heads/main | 2023-07-01T09:02:09.922215 | 2021-08-06T22:13:05 | 2021-08-06T22:13:05 | 386,355,905 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,346 | r | generate_stat_graphs.R | library(ggplot2)
library(dplyr)
library(patchwork)
#for sorghum graphs
setwd("C://Users/stark/OneDrive/Documents2021/biocro-dev/sorghum_stat_graphs_v3")
sorghum_stats <- read.csv("C:/Users/stark/OneDrive/Documents2021/biocro-dev/sorghum_stats.csv")
sorghum_stats['quality_stat'] <- 100 * (1-log(sorghum_sta... |
04c8f12430cd649d736fde93a57e2ed400e49d45 | 7322d471211d096da536eb3383753fd75c994807 | /res/rol-4.r | f717ac95e12b9e5a6eddb1633a6938838777fd99 | [] | no_license | HeitorBRaymundo/861 | fbe09d7d226511895a493174b90fcdfe0a7f490d | cfcedf9097280073d4325fc9c5d7e28ba3633a52 | refs/heads/master | 2020-06-28T18:22:50.598143 | 2019-11-01T21:45:39 | 2019-11-01T21:45:39 | 200,306,264 | 0 | 0 | null | 2019-11-01T21:46:10 | 2019-08-02T22:48:20 | Assembly | UTF-8 | R | false | false | 1,295 | r | rol-4.r | | pc = 0xc002 | a = 0x14 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc005 | a = 0x14 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 | MEM[0x0300] = 0x14 |
| pc = 0xc008 | a = 0x14 | x = 0x00 | y = 0x00 | sp = 0x01fd | p[NV-BDIZC] = 00110100 |
| pc = 0xc00b | a = 0x14 | x = 0x00... |
d22fe5d5e0c37bcb7617de767eeaea028ddd070a | f454ace78f514cde609ff15152f347441286dd60 | /cachematrix.R | 3bebc205a141924e45374b978ffcfff0db20221c | [] | no_license | jasonschaad/ProgrammingAssignment2 | 2468e66c74a16d7eab7d859c2f3e8d66418811af | 5114635a95ab513f5209b62d71df55131e2f899b | refs/heads/master | 2022-12-30T07:48:19.109990 | 2020-09-09T20:12:29 | 2020-09-09T20:12:29 | 294,206,388 | 0 | 0 | null | 2020-09-09T19:13:19 | 2020-09-09T19:13:18 | null | UTF-8 | R | false | false | 1,616 | r | cachematrix.R | ## Taking the inverse of a matrix is very computationally expensive.
## In the case where we have to compute the inverse multiple times
## of the same matrix, we will cache inverse so if needed again we
## do not have to compute but only fetch it from the cache.
## Creates a special "matrix", which is really a list ... |
7a471332cd5534b1955ca1e5e7abffd77a31fdc4 | 7e6a3b7d3f0f4295e3473fa7438192fed0f27a10 | /predict.R | 21b880bedd11a82c182bd29d0889e4c1912a2d28 | [] | no_license | DKooijman97/MUVR_Selectivity_Ratio | ecb1ba3a2cc4100b781428b93e01c6b92ca05249 | de8cbe730bc1b25370d2527493b551709134b232 | refs/heads/master | 2020-05-20T04:27:57.494950 | 2019-05-07T11:11:42 | 2019-05-07T11:11:42 | 185,384,887 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,359 | r | predict.R | #' Predict pls
#'
#' Adapted and stripped down from mixOmics v 5.2.0 (https://cran.r-project.org/web/packages/mixOmics/)
#'
#' @param object a plsMUVR object
#' @param newdata new data
#' @param onlyPred Boolean for whether to report back predictions only (defaults to FALSE)
#' @param scale
#' @param ...
#'
... |
fcc7e9751ae1edd7af35adaaa737babb47136531 | ea0904825812f1c80bedb575cb5bb5b7da7ec9c0 | /R/function-buildPairwiseComparisonMatrix.R | 8db157d6c73450406298a4d52bf00d3e90356fa4 | [] | no_license | cran/FuzzyAHP | f1cebe1e55d01956d04010250b1d189ae4e8167c | 1e2015389867bdab2351fe7ba9a34e2b534ae331 | refs/heads/master | 2021-01-10T13:17:36.203197 | 2019-12-06T15:40:02 | 2019-12-06T15:40:02 | 55,608,658 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,340 | r | function-buildPairwiseComparisonMatrix.R | #' Function that builds Pairwise Comparison Matrix based on list of Pairwise Comparison Matrices
#'
#' @description
#' This functions builds Pairwise Comparison Matrix based on list of Pairwise Comparison Matrices
#' the resulting Pairwise Comparison Matrix is calculated as geometric mean of all
#' Pairwise Compar... |
8e12c65accf2f102e761913269f6dccc9b83f6d9 | 7b8478fa05b32da12634bbbe313ef78173a4004f | /tests/testthat/test-summarise.R | 8dc556b4d4d40ce368bd2b5df58fcb2e20b73662 | [] | no_license | jeblundell/multiplyr | 92d41b3679184cf1c3a637014846a92b2db5b8e2 | 079ece826fcb94425330f3bfb1edce125f7ee7d1 | refs/heads/develop | 2020-12-25T18:02:10.156393 | 2017-11-07T12:48:41 | 2017-11-07T12:48:41 | 58,939,162 | 4 | 1 | null | 2017-11-07T12:01:35 | 2016-05-16T14:30:38 | R | UTF-8 | R | false | false | 1,961 | r | test-summarise.R | context("summarise")
#summarise
cl2 <- parallel::makeCluster(2)
test_that ("summarise() works on ungrouped data", {
dat <- Multiplyr (x=1:100, y=rep(2, 100), alloc=1, cl=cl2)
dat %>% summarise (x=length(x), y=length(y)/2, z=sum(y))
expect_equal (dat["x"], c(50, 50))
expect_equal (dat["y"], c(25, 25))... |
7e1d689a7dc93e8e82ec31361db5c7ffa2c5ac85 | f586cc3599f8685ffed9f10befa8bef0dd761cd4 | /R/vconf.R | 3d74d7c37926845c9e2c22531c9539ffd8a5e24f | [] | no_license | cran/mrt | 87bd3d0b56c73c95146ab1c1d8703f8a303e3c89 | b2ad5f7db7432499d81f827812b2cfbf068132c1 | refs/heads/master | 2020-04-07T15:45:38.872572 | 2009-08-17T00:00:00 | 2009-08-17T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 676 | r | vconf.R | vconf <-
function(ctab,clevel=.95){
if (clevel < .5)
warning("With low confidence values interval may not include sample value")
# This function ignores the warning if any E_ij < 5
suppressWarnings(chsq <- chisq.test(ctab,correct=FALSE))
df <- chsq$parameter
stat <- chsq$statistic
N <- sum(ctab)
cls... |
010bc8c6826a072d5a08d25941ed7905e2b0c155 | ed3f052100d437c57c52b737d4c0f91d3b20c0af | /scriptsAndDatabase/detective_clean/unused/ALBERTclean.R | 22fb0343fd697c5cb4fa4ad29a10edaf8b7ef677 | [] | no_license | timschott/dmp | 216f1b21a95dce67f55097fccf1dce599fd7884b | 13859bda6e9adefc1ebbf26a98a299c457b4468e | refs/heads/master | 2021-10-14T11:49:54.435887 | 2021-10-05T02:59:56 | 2021-10-05T02:59:56 | 156,625,032 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,828 | r | ALBERTclean.R | setwd("~/Documents/7thSemester/dmp/corpus")
library("RSQLite")
library("tokenizers")
library("dplyr")
library("textclean")
library(stringi)
library("stringr")
library("tm")
library(qdap)
# just do the paragraphs first then distill down.
alb.paragraphs <- read.csv("Python_Scripts/checkCorpus/ALBERT_paras.csv", string... |
149a134df3964490132ff8e0d027b7929cd1dcfa | 8844083a2d42ee4f70b6802fc41927f4775f4a60 | /inst/doc/nVennR.R | 93ab7e51c3958890b07a7e8764276a71203101d9 | [] | no_license | cran/nVennR | 96450c25d9e2c9522e5845c4b3cf1498991e7d5e | beeadaf9fc5aabb9392077544d2c35ad034e302b | refs/heads/master | 2021-04-15T14:19:38.166640 | 2021-01-24T16:00:05 | 2021-01-24T16:00:05 | 126,218,349 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,617 | r | nVennR.R | ## ----setup, F, include = FALSE------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.show='hide'
)
library(knitr)
uuid <- function() {
hex_digits <- c(as.character(0:9), letters[1:6])
hex_digits <- toupper(hex_digits)
paste(sample(hex_digits,... |
8a2f11abde15699884a2311a966834bb751f407c | 7735468e0344aa52827ad65c3af0535abf5c6dd6 | /R/gjam1_PA/gjam.R | 282520f2c13a53016bb216b5d3c696c850e330b9 | [] | no_license | tywagner/FishJSDM | 3c5bbb9c723bebfc353dcdc8eca9d229626f16ce | 367940382d3c3e91e6d5792d661eb0a96f5818e5 | refs/heads/master | 2022-01-21T03:23:24.864211 | 2019-07-25T14:36:33 | 2019-07-25T14:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,516 | r | gjam.R | # rm(list=ls())
# library(gjam)
library(data.table)
library('Rcpp')
library('RcppArmadillo')
# placed cppFns.cpp in working directory and it worked
sourceCpp('cppFns.cpp')
source('C:/Users/txw19/Documents/Manuscripts/Joint_Fish_Modeling/gjam/R/gjam.r')
source('C:/Users/txw19/Documents/Manuscripts/Joint_Fish_Modeling/... |
acb6577d927a8899dbc0ffeb201102b96935a5df | ef3df1815a47215ade0239fa928277679d361a69 | /functions/geospatial.R | 50169d60c553198a420ae89ba3fa13fea83978c6 | [] | no_license | ntag1618/phenoSynth | 72b86d3e71e6994baff0674c5987f29207439f18 | 99e36716169ea8df567f65ffdf0ba24b79542a6d | refs/heads/master | 2023-01-30T10:16:40.353940 | 2020-12-14T18:40:01 | 2020-12-14T18:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,477 | r | geospatial.R |
#' matrix_to_polygon
#'
#' @param matrix
#' @param id
#' @param type_
#' @param crs
#' Converts the highlighted pixel coords into a spatialpolygon class
#' @return - sps
#'
matrix_to_polygon = function(matrix, id, type_, crs = '+proj=longlat +datum=WGS84'){
p = Polygon(matrix)
ps = Polygons(list(p), ID = i... |
e3dedc063c83373aa958091378f7946aa343cce6 | 50f04ac4d39b12959b5635bd97ac37e659cb8e0f | /Analysis/MNepal_Casestudy01.R | f4417a309ce6d9937d23345204474a60218357d5 | [] | no_license | m-nepal/MSDS6306_CaseStudy01 | 61fe65dfe07c4d6e3309ea5e45767b338b681af6 | bffb42324d409dbebcbd2c5c552ab04dff44a023 | refs/heads/master | 2021-01-21T14:40:26.290590 | 2017-07-01T04:43:39 | 2017-07-01T04:43:39 | 95,325,373 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,490 | r | MNepal_Casestudy01.R | # cleaning variables
rm(list=ls())
ls()
# set the working dir and imprt the two csv files
setwd("C:/Users/mohan/Desktop/MSDS6306_CaseStudy01/Data")
# here we are replacing blank cell as NA
beers <- read.csv("Beers.csv", sep = ",", header = TRUE,na.strings = c("","NA"))
breweries <- read.csv("Breweries.csv", header = T... |
d40903c0bc570bd0569d3b6b44546cd732f687ad | c0e87f9fc0886ccee5eeac245dc906f804ee95f6 | /src/LesserAlleleFreq_singleSample.R | 61d80fb3e6c2a51f9a27286fe9e1ae9b9aaca6da | [] | no_license | davemcg/variant_prioritization | f4809fc1df721c39ce1a3cddfa919ee8d176232d | dbb2334b3bda698b2bae3bdced036aa2a89847ac | refs/heads/master | 2023-04-10T12:12:18.621889 | 2020-02-04T20:46:51 | 2020-02-04T20:46:51 | 76,049,497 | 2 | 3 | null | 2020-02-23T04:23:11 | 2016-12-09T15:59:42 | Python | UTF-8 | R | false | false | 2,123 | r | LesserAlleleFreq_singleSample.R |
args <- commandArgs(trailingOnly=TRUE)
#When testing, comment out line above and use the line below.
#args <- c("W:/Brooks_Coloboma/rd2/prioritization_freebayes/gemini_tsv/freebayes.combined.filtered.rd2.COL124_1.gemini.sorted.tsv",
# "COL124_1", "COL124_1.LAF.jpeg")
library(tidyverse)
library(RColorB... |
b6ad4e4b37bd7492e8609b94c371be53ac704a41 | 1875ad05eafdaab03dc9fbb7f0bcee207c0b8cbc | /1. Descriptive stats_thesis.R | 63aa8c87f8dc856beb9faaa0f643a502857d8c9d | [] | no_license | sybrendeboever/Master-thesis-statistics-KUL | 91ab784829669a357db91a37353b8e14d11833f3 | caba87d8aba7966721df84ddbb6cd76301dafb90 | refs/heads/main | 2023-07-09T11:47:59.687771 | 2021-08-15T17:45:53 | 2021-08-15T17:45:53 | 378,909,408 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,484 | r | 1. Descriptive stats_thesis.R | # -------------------------------------------------------------- #
# -------------------- 1. DESCRIPTIVE STATS -------------------- #
# -------------------------------------------------------------- #
### Final dataset
data = read.csv("D:/Unief/Master Statistiek/Jaar 2/Thesis/6. Data/all_NA_2019_2020_NoMiss_Omg... |
c38eed1095373b687eed3cafc6117719cb1f0b58 | 66539bfe3ccea078550d60b55b1d20b8b484dc90 | /R/ind_to_day.R | ce4af8cca16ac009cfcac3d61f89623c90ab6378 | [] | no_license | xinyue-L/PML | ee1e189f32ecbaad4f24d710d517e818d9a231b6 | 79f67a8d3443b514e4536daa4579524881096292 | refs/heads/master | 2020-07-05T17:48:39.537834 | 2020-05-07T03:59:40 | 2020-05-07T03:59:40 | 202,718,263 | 0 | 1 | null | 2020-05-07T04:01:11 | 2019-08-16T11:46:35 | R | UTF-8 | R | false | false | 1,103 | r | ind_to_day.R | #' trelliscope auxillary function
#'
#' Take individual characteristics and map it to individual-day observations. For example, individual A/B is 40/45
#' years old and has 4/2 day observations in dataset D. Therefore, mapping age to dataset D generates
#' 40, 40, 40, 40, 45, 45 for day 1,2,3,4/1,2 observation of A/B... |
419de38ae893a15df04dac09bb11e011af97a232 | 3fc3964396f8010aae9345d37f551c4431c52ff9 | /man/nii2mnc.help.Rd | 1aefd804ded0aba4783af7898a2355a42924c442 | [] | no_license | muschellij2/freesurfer | ff96f465ebbfbb0b7ce18644be5f4c5ea753fc45 | 7d70f616e760d8d3a453a652d98756e34877fed7 | refs/heads/master | 2021-06-24T00:57:12.644687 | 2020-12-08T18:41:34 | 2020-12-08T18:41:34 | 67,370,835 | 9 | 8 | null | 2020-11-15T23:42:38 | 2016-09-04T22:12:47 | R | UTF-8 | R | false | true | 283 | rd | nii2mnc.help.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nii2mnc.R
\name{nii2mnc.help}
\alias{nii2mnc.help}
\title{Convert NIfTI to MNC Help}
\usage{
nii2mnc.help()
}
\value{
Result of \code{fs_help}
}
\description{
This calls Freesurfer's \code{mnc2nii} help
}
|
75de42b4d0439eb87a5688fc4dc62591bf544e4a | 8105d46b2ae06b7bb76d3c0ab0fc195b687bd750 | /R/hydrographTEST.R | 73bc4887e4a9000c6072e6b9aa09e3e900d1512c | [] | no_license | tnkocis/stReamflowstats | c8f0d8b905afccd40fc5a280f17378de4ba800bf | 0fc1c7ff1eb024e8434ee5898884e02e95fa7b51 | refs/heads/master | 2020-04-12T02:25:09.302694 | 2017-07-01T01:43:56 | 2017-07-01T01:43:56 | 34,279,048 | 0 | 3 | null | 2015-04-24T21:38:07 | 2015-04-20T18:37:04 | R | UTF-8 | R | false | false | 3,207 | r | hydrographTEST.R | # TODO: Add comment
#
# Author: tiffn_000
###############################################################################
plot(blah$All$Continuous, type="n")
lines(blah$All$`1960s`, col="red")
lines(blah$All$`1970s`, col="orange")
lines(blah$All$`1980s`, col="yellow")
lines(blah$All$`1990s`, col="green")
... |
d50f5d92ef6f6c93164bf46229b1d388c7cb71f6 | 1567bf78cd76fd6e5909e6e0dbcb71e4a4f69621 | /man/DaMiR.FSelect.Rd | 46ee4a3ead2d33fe5d2ab333dd1a9dea8c445eef | [] | no_license | BioinfoMonzino/DaMiRseq | 734a20159b09ce37b0f54524d0be4bca0e435cc5 | 318c280f23f009f27f1d3841f63bb916e75a46c4 | refs/heads/master | 2021-11-21T12:30:59.022190 | 2021-08-19T13:06:35 | 2021-08-19T13:06:35 | 81,440,079 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 3,451 | rd | DaMiR.FSelect.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Feature_Selection.R
\name{DaMiR.FSelect}
\alias{DaMiR.FSelect}
\title{Feature selection for classification}
\usage{
DaMiR.FSelect(
data,
df,
th.corr = 0.6,
type = c("spearman", "pearson"),
th.VIP = 3,
nPlsIter = 1
)
}
\arguments{
... |
777fb84f8cb24ee0527a4283c924841854da9015 | e29dd0b088d8e898a1382b8cd59a3048807ccaa1 | /R/dbscan.R | 78eea39d2d31c257ea55ba62bf176e0afabd66fa | [] | no_license | fcen-amateur/tp5-aed | df58bedd027a2bd02b8c1534b0a862a48993fec6 | f15ec8d8a1b0e1a0694e7914bc2732741fca66af | refs/heads/master | 2021-09-18T17:09:05.169836 | 2018-07-17T11:06:34 | 2018-07-17T11:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,049 | r | dbscan.R | dbscan <- function(X, epsilon = 0.5, min_pts = 5, fun_dist = distancia_euclidea) {
if (is.data.frame(X)) { X <- data.matrix(X) }
N <- dim(X)[1]
etiquetas <- rep(0, N)
clase <- 0
for (punto in seq(N)) {
# si el punto ya fue etiquetado, seguir
if (etiquetas[[punto]] != 0) { next }
... |
78e2c63734bf26af743f71d587d8de22923d88a0 | ebfe6574ca88dcf7aebd887adee0f2969e8b971a | /plot3.R | d62e3428541701fc15dbfe9db296866b8227d7c3 | [] | no_license | hermanmeijer/ExData_Plotting1 | fbdb61b22a57b4888734f11f10a2632339b74833 | 932856f62f38dd4a7a51edb92245495d5cbcbffd | refs/heads/master | 2020-12-28T19:11:25.002136 | 2016-01-09T10:49:53 | 2016-01-09T10:49:53 | 49,283,332 | 0 | 0 | null | 2016-01-08T16:32:46 | 2016-01-08T16:32:46 | null | UTF-8 | R | false | false | 866 | r | plot3.R | ## set working directory and read data
setwd("D:/Data Science Course/Assignments/Irvine")
dat<-read.csv("household_power_consumption.txt", sep=";", na.strings = "?",
stringsAsFactors = FALSE)
## restrict dates and format date and time
dat<-dat[dat$Date == "1/2/2007" | dat$Date=="2/2/2007",]
dat$Time <-... |
759ffd1ddaf6d049c18327fa7a34b6c91a5d6525 | 9bdc9b33874e5ccef6cad2ef015f4ad08414f45f | /Laks/Rscripts/ExtractExonicSNV.R | 10b8dda604f838830ba5fd6510aa36f01bcd0f09 | [] | no_license | junseonghwan/ScRNACloneEvaluation | fd891a821c28382cbc11beba5e0923e6b05e454b | 8a78fca4b473ab2a69e4dbd44acc3e420f4dbfe7 | refs/heads/master | 2022-12-14T06:19:51.041374 | 2020-08-16T20:13:49 | 2020-08-16T20:13:49 | 271,387,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,477 | r | ExtractExonicSNV.R | library(GenomicRanges)
library(ScRNAClone)
# TODO: Location to GTF file to be provided as an argument.
gtf <- read.table("/Users/seonghwanjun/data/references/Homo_sapiens.GRCh37.75.gtf", header=F, sep="\t")
names(gtf) <- c("seqname", "source", "feature", "start", "end", "score", "strand", "frame", "attribute")
exon.gt... |
c80c6251e8dfdf53fa9272c9f587bc9944e5b778 | 23ac665552c844602528be7702c74c86d80bcff2 | /prdct2.R | f02913a5b5dbda9238fc2a7ce9b9f42650c4322b | [] | no_license | sahaditya/sentiment-analysis-model | 330e83045d6384dbc4e1cc5f6e20dfeb8a4347f7 | f0e7dfa91caf56921a95018c72730fa9eebd5bef | refs/heads/master | 2021-07-14T04:49:42.991956 | 2017-10-14T13:40:04 | 2017-10-14T13:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,038 | r | prdct2.R | library(ggplot2)
library(tm)
library(wordcloud)
library(syuzhet)
setwd("D:/Rproject/New folder")
texts<-readLines("pReview2.txt")
docs<-Corpus(VectorSource(texts))
trans<-content_transformer(function(x,pattern) gsub(pattern," ", x))
docs<-tm_map(docs,trans,"/")
docs<-tm_map(docs,trans,",")
docs<-tm_map(docs... |
b46ba24100d64da8674d1ea0815b7bb3d3c5fccc | 61b173db3da0d949dbc9741ec86b02eda23ad591 | /binomial/R/auxiliary.R | 8dc22e7ef255d909f792baea2b355584e9edaa5e | [] | no_license | stat133-sp19/hw-stat133-luciachenxl | bf4a8ec9ec9f5c324f57b3288cd10932ce8ebd27 | fa2f2d4b9588544001bfe5d0e4af1e6cc1a3de12 | refs/heads/master | 2020-04-28T03:18:35.019804 | 2019-05-01T03:38:20 | 2019-05-01T03:38:20 | 174,931,792 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 925 | r | auxiliary.R | # private auxiliary function to calculate the mean of a binomial distribution
aux_mean<-function(trials,prob){
return(trials*prob)}
# private auxiliary function to calculate the variance of a binomial distribution
aux_variance<-function(trials,prob){
return(trials*prob*(1-prob))}
# private auxiliary function to c... |
8e734fc71828cad5392c3e5d20f80b5b62deadb9 | edf85e1521d59deb8eae765cba6f484125f63426 | /R/miRtest.R | 5c77608ac428679ce623cbfd1462dbe2723cd024 | [] | no_license | cran/miRtest | 73657e65bbab2f680797d461d85663a00ef21137 | e3394c8f727304c25780d237e17c459ee1bd94ff | refs/heads/master | 2022-06-04T23:57:19.189079 | 2022-05-23T19:50:02 | 2022-05-23T19:50:02 | 17,697,463 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,893 | r | miRtest.R |
#' Contingency table. Necessary for Fisher test.
#' @param gene.set Vector of gene sets.
#' @param p.val Vector with p-values.
#' @param sign Significane threshold.
#' @author Stephan Artmann
contingency.table = function (gene.set,p.val,sign=0.05) {
sign.gs = length(which(p.val[gene.set] <= 0.05));
sign.not.gs = l... |
ebb5dfc48bfd5c70084f6a478e3265df7c962642 | c33af3f2dd80f61baef3be46eb25421ec38af4bc | /man/nntsloglikSymmetric.Rd | c4d2b5de4d4c87ba41398c8b63f53253e8d9f876 | [] | no_license | cran/CircNNTSR | 51cb9cf39ab32a5476e252e3711ee0d89e35fdd5 | ee53f05ee5c5e98fddd0791d452c6b622127e7c0 | refs/heads/master | 2021-01-18T21:47:10.362545 | 2020-02-18T04:10:02 | 2020-02-18T04:10:02 | 17,678,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,616 | rd | nntsloglikSymmetric.Rd | \name{nntsloglikSymmetric}
\Rdversion{0.1}
\alias{nntsloglikSymmetric}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{NNTS symmetric log-likelihood function}
\description{Computes the log-likelihood function with NNTS symmetric density for the data}
\usage{nntsloglikSymmetric(cpars = c(0, 0... |
44eb938dd73bd2c34e22bd0be15944db87cb47da | c58a0407c213283cc8e32aa97f8fe167f7c416ff | /plot1.R | 4d91c27b79a7e8cd22e630fe14c357991020737a | [] | no_license | HeberTU/ExData_Plotting1 | 38a04c46374f586ee147f8e9834e278950b1c843 | 57576d515b2a5a18b197ff91eff867f1aa19bc13 | refs/heads/master | 2020-03-29T07:59:17.137446 | 2017-06-18T06:34:13 | 2017-06-18T06:34:13 | 94,664,782 | 0 | 0 | null | 2017-06-18T04:23:26 | 2017-06-18T04:23:26 | null | UTF-8 | R | false | false | 489 | r | plot1.R | library(dplyr)
setwd("D:/Data/Academic/Coursera/R/02.-Data Scients with R/04.-Exploratory Data Analysis/W1/10.-Course Project")
db = read.table("household_power_consumption.txt",header = TRUE,sep=";",
na.strings = "?")
db_fltr<-db%>%
filter(Date=="2/2/2007"|Date=="1/2/2007")
png(file="... |
e508528ca107b80e07e60708032b2e93d4f1e3f2 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/qiimer/examples/dist_groups.Rd.R | 6f62bba19f7d9bb7f1542bc7dbdadc9e6575f7a8 | [] | 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 | 238 | r | dist_groups.Rd.R | library(qiimer)
### Name: dist_groups
### Title: Create a data frame of distances between groups of items.
### Aliases: dist_groups
### ** Examples
data(relmbeta_dist)
data(relmbeta)
head(dist_groups(relmbeta_dist, relmbeta$Diet))
|
70dafe8b50816e0805579ad56c25f21664b5431c | a0549180a550c7241130ebc84b2693b0935c011a | /man/ti_projected_monocle.Rd | 05562e4e0e962207954473d9f08fe493c8343e16 | [] | no_license | Feigeliudan01/dynmethods | 7cc2bde206e1c0489d3bd0ab3cd0505ddfeae3c5 | 53c6d1d486887692e513cc8537c9caf9ca107160 | refs/heads/master | 2020-08-30T21:50:40.163847 | 2019-07-03T09:32:38 | 2019-07-03T09:32:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,846 | rd | ti_projected_monocle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ti_projected_monocle.R
\name{ti_projected_monocle}
\alias{ti_projected_monocle}
\title{Projected Monocle}
\usage{
ti_projected_monocle(reduction_method = "DDRTree", max_components = 2L,
norm_method = "vstExprs", auto_param_selection = TRUE,... |
ae545957923f2cc753b22cca92d393473b73d4e3 | 0613b060b9128653edbc1ba023f23fad3cb264f8 | /man/checkped.Rd | 0d35ce58491a0e8c1f8a2844a04695f1c8827931 | [] | no_license | luansheng/visPedigree | dc3526b2567b0ffb18b3f259eb89a6fc6603b534 | ae4692d0d52d3f3b3d4cb7c1f945d5538c3eadd4 | refs/heads/master | 2023-01-23T07:35:21.733015 | 2023-01-12T09:05:45 | 2023-01-12T09:05:45 | 149,978,617 | 14 | 8 | null | null | null | null | UTF-8 | R | false | true | 2,067 | rd | checkped.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkped.R
\name{checkped}
\alias{checkped}
\title{Check a pedigree}
\usage{
checkped(ped, addgen = TRUE)
}
\arguments{
\item{ped}{A data.table or data frame including the pedigree, which including the first three columns: \strong{individual}... |
20515fadcca1ffee6a0d69ce0857e40f9549dae1 | 75a8669174b81d336147dc34f38c716c00064ac6 | /Reporting/SynopticEventsAnimation/RainResponse.R | b3125cf60e783693fa4ee5024611932aabf6036b | [] | no_license | feralindia/CWC | da54305dabc973014c94ce762db9f27627f98741 | 36148bc90b5d86b7f7d6dc467ee769171fda6c19 | refs/heads/master | 2021-01-17T08:20:24.750716 | 2018-04-09T05:57:05 | 2018-04-09T05:57:05 | 38,206,355 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,990 | r | RainResponse.R | ## Get "n" highest periods of rainfall for all raingauges
## Merge across timestamps keeping raingauge IDs
## Merge with spatial attributes
## Merge with wind direction and speed data
## Merge with ground level and 0.6m gauge
##---- Pull out period of X highest rainfall events defined in function read.max.rain
## merg... |
a2e8e34589ab7ec553ac981fa58ede6b1d8e483b | 5e9bde2328f48b94e97bc00af73f85b3c2a7d358 | /scripts/join_cities_boundaries.R | 3aacc6fea5eb009ef1eac7d27b5cf005e1e6347f | [] | no_license | chrisleboa/sc-evictions | 974f150ab359db5062af5368d1019b6edc62e6e4 | 8ec491c4e79575ecc7198aeacb1727b53f75fb6f | refs/heads/master | 2020-12-24T02:03:02.811021 | 2020-01-31T04:42:01 | 2020-01-31T04:42:01 | 237,344,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 790 | r | join_cities_boundaries.R | # This script joins the data for 2016 city evictions and city boundary data
# for south carolina
# Author: Chris LeBoa
# Version: 2020-01-30
# Libraries
library(tidyverse)
# Parameters
file_path_input_cities <- here::here("data/sc_cities_2016.rds")
file_path_input_boundaries <- here::here("data/sc_boundaries.rds")
... |
60fb1208e72df87e54ecb28c6fb3a569d88dbc84 | 95e8a55975508f823758eccdbc6c8e041491724f | /man/percent.Rd | 1f3598712072a5e9d75b3372c76659bb5c62ee70 | [] | no_license | rickdonnelly/pcvmodr | f2a1f4306efde60997039e0c6309dc48d7b1e451 | af3a333174c5a0fc1afb93684ae5fe5aa6fa5513 | refs/heads/master | 2020-09-15T12:56:00.432031 | 2019-05-02T18:07:23 | 2019-05-02T18:07:23 | 94,478,198 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,123 | rd | percent.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/percent.R
\name{percent}
\alias{percent}
\title{Calculate the percent value of a vector (stunning this isn't built-in to R)}
\usage{
percent(x, y = sum(x), places = 1)
}
\arguments{
\item{x}{Value or vector of number to calculate as percentag... |
4aa8159c5cc32aa727a0fb0416b49892a0e3b56a | 96e944ee2b65cf15aee1772265a9134ed8ed9640 | /R/caller.R | 8e08e93945ecfea169f7922abde3558be65308f3 | [] | no_license | rcodo/nseval | 3b906346a0c5691224595552d9d8c7752440f74d | 3384910f8403f4cf5839da7ba947100f6843917e | refs/heads/master | 2021-09-20T09:46:51.200827 | 2018-08-08T04:57:37 | 2018-08-08T04:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,206 | r | caller.R | #' Find the caller of a given environment.
#'
#' Given an environment that is currently on the stack, `caller`
#' determines the calling environment.
#'
#' For example, in the code:
#'
#' ```
#' X <- environment()
#' F <- function() {
#' Y <- environment()
#' caller(Y)
#' }
#' F()
#' ```
#'
#' the environment calle... |
80deecb0f6e9fdf30baa6ba37eda339313422f5e | b824dbf13f3d7c39a26a552e7f070402e720cfcc | /plot3.R | 2123549895700ff19c9dcaab33bce3a2f01430c0 | [] | no_license | szamehlg/ExData_Plotting1 | 117699e445b83b375047df38a6ef223667ab59e3 | 8e818b86dbc0ffd554e7681b907cfe33ed8c5bd2 | refs/heads/master | 2020-12-26T11:15:50.316082 | 2014-11-08T21:29:40 | 2014-11-08T21:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,143 | r | plot3.R | ###
## Exploratory Data Analysis, Course Project 1: Generation of Plot 3.
##
## File 'household_power_consumption.txt' should be in the working directory.
##
## If not, this script contains code which will download and unzip
## the raw data into 'household_power_consumption.txt' - on a
## Windows machine only due to th... |
d304a6d0fd6d634ed1926fe635f859e608c46b8d | 1b9b0984597d406c4729ba4e28a6c396ead15f1e | /man/download_24hr_average.Rd | c17be85733567a55e8271b27693b4e26bdfcb5a7 | [
"BSD-3-Clause"
] | permissive | diegovalle/aire.zmvm | d660ed8c8359d9d650dca3cce935a5c750e83b89 | 2fa88498496cf93023faa3d20f2d345a1ef6d065 | refs/heads/master | 2021-11-18T20:51:18.515842 | 2021-08-13T20:52:14 | 2021-08-13T20:52:14 | 54,172,869 | 10 | 5 | null | null | null | null | UTF-8 | R | false | true | 1,123 | rd | download_24hr_average.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_archives.R
\name{download_24hr_average}
\alias{download_24hr_average}
\title{Download archives of the 24 hour averages of pollutants}
\usage{
download_24hr_average(type, year, progress = interactive())
}
\arguments{
\item{type}{type ... |
f22d71f5d7015db334c8864cf5aa109c146960bb | 778e03320cd7cc4e0b17e829ff3ece07725f1d86 | /R/bubbleplot-package.R | 8357ac7cabc8128798ca1986ed367fb1bf3e814a | [] | no_license | arni-magnusson/bubbleplot | abb3c809a5ebd4d44c9d754d312c70350b4c3d9d | 8a0f49b11ed7c626b3ec94a571ced259c9da7c16 | refs/heads/master | 2022-05-01T09:50:01.332412 | 2022-03-20T12:18:18 | 2022-03-20T12:18:18 | 222,415,625 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 709 | r | bubbleplot-package.R | #' @docType package
#'
#' @name bubbleplot-package
#'
#' @title Bubble Plot, a Scatter Plot with Varying Symbol Sizes and Colors
#'
#' @description
#' Draw a bubble plot, a scatterplot with varying symbol sizes and colors, or
#' add points to existing plots. A variety of input formats are supported,
#' including vector... |
3854ae2e0ad83625adb3ef583bc8e05683c272b8 | 6e910000ab0b80f097ba60724834c2ca46830e9f | /supervised /classification_code/bikeshare/models_nongrid.R | a907db395ce0ce5975f9e4098b837d30ab751992 | [
"BSD-3-Clause"
] | permissive | taposh/mlearning | 4d65f10ceb57ac13ba45bb357dfa4d0401190020 | 1f33c4223c0a33589530a16bac32a1016231737b | refs/heads/master | 2022-11-01T16:47:42.781101 | 2022-10-18T20:12:52 | 2022-10-18T20:12:52 | 28,143,470 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 13,022 | r | models_nongrid.R | #--------------------------------------------------------
# Non-Grid based models for kaggle-bike-sharing
# Taposh Roy
# @taposh_dr
#--------------------------------------------------------
#For counts
train_factor <- cbind(countresult,bike)
colnames(train_factor)[1] <- "count"
colnames(train_factor)
#For causal
... |
4be7909873bcb019ec8cffb5f5321bf89d1be0da | 138a742c1c5602e77cc32d979c2d393edbc6df6f | /R/paste.R | bcc4d0d5c7240888336956f686bea89a02312305 | [
"MIT"
] | permissive | jonmcalder/dm | d7ba794cfd6962fa71e2b76023e0b6c5ebe7318d | 1ec42058ab4e196e5265e499dfd2dd4b594ef9f7 | refs/heads/master | 2021-03-31T06:12:07.470091 | 2020-03-14T12:59:25 | 2020-03-14T12:59:25 | 248,084,785 | 0 | 0 | NOASSERTION | 2020-03-17T22:23:06 | 2020-03-17T22:23:05 | null | UTF-8 | R | false | false | 3,248 | r | paste.R | #' Create R code for a dm object
#'
#' `dm_paste()` takes an existing `dm` and emits the code necessary for its creation.
#'
#' @inheritParams dm_add_pk
#' @param select Boolean, default `FALSE`. If `TRUE` will produce code for reducing to necessary columns.
#' visualizing the tables.
#' @param tab_width Indentation... |
f2e4aaee07703234d18f5eff67920816f5def552 | f1a7b6a71400395eec7ab3445ad2142fa055634b | /man/bigtext.Rd | beee4a4e46a7f3629204009e29cc4a05627a0ed4 | [] | no_license | ketanmd/xacc | ada2ac185ddaae474d13b415e9e9448a32f39464 | 66e446afe96bb93c959ce003024134166dba0b97 | refs/heads/master | 2020-03-06T18:34:39.350188 | 2018-08-27T22:11:24 | 2018-08-27T22:11:24 | 127,009,821 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 282 | rd | bigtext.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/myacc-internal.R
\name{bigtext}
\alias{bigtext}
\title{set font size for plots}
\usage{
bigtext(size = 24)
}
\arguments{
\item{size}{font scale for output plots}
}
\description{
set font size for plots
}
|
9e1135a505642da3d1378c63de458d8199e8b987 | 78e656557b5cc6b77f8a30a3792e41b6f79f2f69 | /aslib/man/getDefaultFeatureStepNames.Rd | 8a54a5b68763d6f3df8392bba95fb4f4606fccb2 | [] | no_license | coseal/aslib-r | f7833aa6d9750f00c6955bade2b8dba6b452c9e1 | 2363baf4607971cd2ed1d784d323ecef898b2ea3 | refs/heads/master | 2022-09-12T15:19:20.609668 | 2022-09-02T17:48:51 | 2022-09-02T17:48:51 | 27,724,280 | 6 | 7 | null | 2021-10-17T17:34:54 | 2014-12-08T16:38:21 | R | UTF-8 | R | false | true | 476 | rd | getDefaultFeatureStepNames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDefaultFeatureStepNames.R
\name{getDefaultFeatureStepNames}
\alias{getDefaultFeatureStepNames}
\title{Returns the default feature step names of scenario.}
\usage{
getDefaultFeatureStepNames(asscenario)
}
\arguments{
\item{asscenario}{[\cod... |
edd259ddc093a44a636ff596de11aa6eff6d8154 | 3632465c101324fc2ee5ad8dec22f45b30130c0c | /man/obsCols_ltp.Rd | 196206aff8a93edd608d98eef015cc6cb65c2074 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | ddalthorp/GenEst | 3921d5b4b48936dbe41667d5221b36a7d620735b | 7dfc443913da2fb7d66d7a3553ac69714468422c | refs/heads/master | 2023-08-16T23:17:34.073169 | 2023-05-29T01:23:46 | 2023-05-29T01:23:46 | 97,149,192 | 8 | 9 | NOASSERTION | 2023-05-25T17:45:11 | 2017-07-13T17:33:07 | R | UTF-8 | R | false | true | 501 | rd | obsCols_ltp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app_utilities.R
\name{obsCols_ltp}
\alias{obsCols_ltp}
\title{Select the columns from a data table that could be CP Last Time
Present observations}
\usage{
obsCols_ltp(data)
}
\arguments{
\item{data}{data table}
}
\value{
colum... |
ba7fdc0cf7b6aa3e1f4c2b3d770337a45c933669 | 3ab7e4dd53b3e88e62bfb193da41c761bb607530 | /cachematrix.R | 6cd8265a2ae41ea2a7cca7e6bcc1caecb2f36f24 | [] | no_license | jennicat/ProgrammingAssignment2 | ff47f94077307e01627e9c9563b820c1bef439b0 | 2aff1dd43958968f31b4608651f846029b611548 | refs/heads/master | 2021-01-23T12:58:21.079215 | 2017-06-03T14:21:08 | 2017-06-03T14:21:08 | 93,215,335 | 0 | 0 | null | 2017-06-03T01:23:45 | 2017-06-03T01:23:45 | null | UTF-8 | R | false | false | 2,198 | r | cachematrix.R | ## Programming Assignment #2 (Course 2, R programming, DataScience coursera.org)
## The purpose of these functions is to cache the results of a slow
## calculation. In this case it is for Matrix Inversion.
## The first function creates a faux matrix object that caches its own inverse.
## The second function calculates ... |
0178e56703582afd63f7d89363614b376eed0d6e | 29586c3686eb5871bf4ea3182d917f18d750813e | /HMS-Summary/functions.R | 004def890f4c2f4a48caecdb8b8e87d170ac6bc1 | [] | no_license | linxiliang/Keurig | 6dcc8cf1ed80224726854d6d73d94e240a844e34 | ebfea47380bd20bee175231563e55f05388febb1 | refs/heads/master | 2021-01-13T16:58:33.901332 | 2020-11-29T22:52:22 | 2020-11-29T22:52:22 | 77,353,601 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,045 | r | functions.R | #Functions
#Time Trend Plot when first recorded purchase is on site.
#Then plot 4 things, number of units purchased, no.upcs/unit, no.brands/unit, and average pack size.
TimeTrendPlot<-function(dt, min.period=12, days=90, cond=TRUE, platform="ALL"){
dt = copy(dt)
if (toupper(platform)!="ALL") dt = dt[ptype==platf... |
db760b5ed8fd8fbfca1d4e4848523caa7c84ad49 | 5e70dd71ba15eff2de5fbb134f356d6a062551a0 | /Programs/makeBigPlotTrendsObj2.R | 3d76927082c7acee846f60c4082b86556742d718 | [] | no_license | jasmyace/PrairieNPS | 96989bbf29a12eff98594c70a0624b0b2b736297 | e9afb6a3db56fb79fad32b95774b9b45c725b2df | refs/heads/master | 2020-04-06T06:59:18.863854 | 2016-08-30T14:18:13 | 2016-08-30T14:18:13 | 63,260,018 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,053 | r | makeBigPlotTrendsObj2.R | makeBigPlotTrendsObj2 <- function(tc){
png(paste0("//lar-file-srv/Data/NPS/Prairie/Analysis/Trending/Objective2-Trends.png"),width=36,height=90,units="in",res=300)
# ---- Medium, with 4.
string <- c(rep(1,28),rep(2,28),seq(3,6),rep(7,5),8,rep(9,5),10,rep(11,5),12,rep(13,5),14,rep(15,28),seq(16,19),rep(... |
2f267d6373cac67c9c8e9f27cbeb2f9c17c37681 | f680ff6e25a828bbac8b244f9061a3fa71125836 | /R/MultiDataSet-add_table.R | cc8fa0ff3afb3d5ff746724ab85497a2808e4930 | [
"MIT"
] | permissive | isglobal-brge/MultiDataSet | db7348454ffc202469b7354d0b7252eedc7659a4 | c4bea804bd9b8b53b8d96928d9148f09787f475e | refs/heads/master | 2021-10-07T17:58:31.164306 | 2021-10-07T13:34:50 | 2021-10-07T13:34:50 | 80,110,013 | 2 | 0 | MIT | 2021-01-29T10:27:17 | 2017-01-26T11:45:31 | R | UTF-8 | R | false | false | 1,958 | r | MultiDataSet-add_table.R | #' @describeIn MultiDataSet Method to add a \code{matrix} to \code{MultiDataSet}.
#' @aliases MultiDataSet-methods
setMethod(
f = "add_table",
signature = c("MultiDataSet", "matrix"),
definition = function(object, set, dataset.type, dataset.name = NULL, warnings = TRUE,
overwrite ... |
c3e7a38b23ac56d10a9aa11e131568f9e5260006 | 770ce91dddf1804af88d4ce763d8371a94079498 | /R/DNAcopyMethods.R | 8bad2ef82a6ad100fc8da2844744fc12534e2699 | [] | no_license | rptashkin/DNAcopy | 564d58a8cf173a91a07e3577f2200b537dbb7fd7 | 3d917491857fe08010fd1747029f8bb60f00179a | refs/heads/master | 2020-05-30T10:09:40.082310 | 2017-04-24T19:50:57 | 2017-04-24T19:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,308 | r | DNAcopyMethods.R | CNA <- function(genomdat, chrom, maploc, data.type=c("logratio","binary"),
sampleid=NULL, presorted=FALSE)
{
if (is.data.frame(genomdat)) genomdat <- as.matrix(genomdat)
if (!is.numeric(genomdat)) stop("genomdat must be numeric")
if (!is.numeric(maploc)) stop("maploc must be numeric")
... |
f4513e65e264fdccb1446e659b28456f2b3f6972 | 7a0ec22b3e72d18a14d34a6ce05869f0fdd8492b | /data-raw/make_kenya.R | fb668b75b3a76f28440096fb2b2b9c1aa3414180 | [
"MIT"
] | permissive | tcweiss/primer.data | cb202567e34fc7198f4c5fb45e5f9793b3e0c167 | 7a7b4c5c0d71ab2d2b5c4dee3211f3c8a9c4320b | refs/heads/master | 2023-08-09T18:46:38.351436 | 2021-08-19T17:22:29 | 2021-08-19T17:22:29 | 320,058,988 | 0 | 0 | NOASSERTION | 2020-12-09T19:29:55 | 2020-12-09T19:29:54 | null | UTF-8 | R | false | false | 1,929 | r | make_kenya.R | # work in progress preparing the data set from Harris, Kamindo, and Windt (2020):
# Electoral Administration in Fledgling Democracies: Experimental Evidence from Kenya
# The replication data can be located at:
# https://dataverse.harvard.edu/dataset.xhtml;jsessionid=786d92e2aec3933f01bd0af48ec0?persistentId=doi%3A10.... |
d78dca25c7bd869b114dbd9533ef6a2be0ad785c | e725e28b66bf0a13793f172b51c0111a068bcfbe | /tests/testthat/test-methods.R | 6188cfdb5e493a8ebded150e129cefdd6300c561 | [
"Apache-2.0"
] | permissive | mikemahoney218/typogenerator | 86aa47c3450654df6ef2de4ac2c44a227671c82b | 23cf8a5ed05f10adf2029c4a6cb482a6f6e376c2 | refs/heads/main | 2023-03-18T09:23:43.327024 | 2021-03-03T00:12:48 | 2021-03-03T00:12:48 | 343,555,776 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 432 | r | test-methods.R | test_that("methods are stable", {
expect_true(
all(
typo_vowelswap("Michael")[[1]] %in% typo_bitsquat(
"Michael",
c("a", "e", "i", "o", "u")
)[[1]]
)
)
expect_equal(
length(typo_doublehit("Michael")[[1]]),
60
)
expect_equal(
typo_hyphenation("Michael", ";"),
... |
e7dd5488c7d2a2f1a166cb469ef13033e3f1d8da | 224c39c8c38dc3ac7d86dfd596f4d434704c5c8a | /run_analysis.R | d64ebb4f198ff77d601ec40f956114dbdbc7f0f5 | [] | no_license | glebart/getting_cleaning_data_course_proj | 4b9d56024a4edd943829663b76918d9f4fb94a2f | ac814072d30b073d48e140a95bf4868ae6707d26 | refs/heads/master | 2020-03-24T20:48:47.592015 | 2018-07-31T11:12:29 | 2018-07-31T11:12:29 | 142,997,784 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,753 | r | run_analysis.R | library(data.table)
library(magrittr)
options(stringsAsFactors = F)
path=paste0(getwd(),"/UCI HAR Dataset/")
features= paste0(path,"features.txt") %>% read.table
activity_labels= paste0(path,"activity_labels.txt") %>% read.table
cols=features$V2 %>% grep("mean\\(\\)|std\\(\\)",.)
datalist=list()
for (i in c("train","... |
6eb04c55e1e595c0a7f239cd4891588f56e3f5db | b9ef047b65e05a6a9dd665a496c37689d628e5c1 | /man/fill_array3d.Rd | ccff13c1af48dc86f8f9c50544bb5659c667bb0a | [] | no_license | kongdd/RcppArray | e65c1049dc5ffbe7c9807cf5d6a1fd83d1232af0 | b720d8139a5611c1e6c8194bba8f0b7b8b2fe4ea | refs/heads/master | 2020-04-07T04:58:46.570131 | 2018-11-20T01:43:00 | 2018-11-20T01:43:00 | 158,079,307 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,071 | rd | fill_array3d.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{fill_array3d}
\alias{fill_array3d}
\title{fill_array3d}
\usage{
fill_array3d(mat, newmat, i_start = 1L, j_start = 1L, k_start = 1L)
}
\arguments{
\item{mat}{A 3d Array.}
\item{newmat}{A 3d Array to fill \code{mat}.}
\ite... |
651bde1757f457463c88ec8cd8a1bdf07c7dcc71 | 29a2daaa4aadaa7e04987cf1aaed0501362028ae | /additional_functions/_init.time.sim.R | 010580b6b89d8d1001aff2bb6a4aba6e2d6b7195 | [] | no_license | lfcampos/Space-and-time-with-fixed-K | e7a58d5efcb4b280fe355431a096679149b3c836 | 50b15dfdb8dcc63251362a825e6303d3e037dcf5 | refs/heads/master | 2022-10-28T08:24:54.517237 | 2020-06-08T07:47:28 | 2020-06-08T07:47:28 | 101,098,105 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,255 | r | _init.time.sim.R | source(paste(home,"/additional_functions/", "initialization.time.simulation.R",sep=""))
k_curr <- theta # Number of sources
initialize_list <- initialization.time.simulation(params)
mix_num <- k_curr+1 # Number of mixture components (sources + background)
mu_curr <- t(initialize_list[[1]]) # Locations of sources... |
3ece5a97a2e018c67c4eee72d711a7d9f2566d91 | c071023e743755d79216b05d9b35ebf1889eb47b | /src/13_generate_variables_3.R | 3eb23f4f914bf90dc192de68ac8d9ffa5c18da83 | [] | no_license | nishinoh/article_2021_jws | 2ddd85daec6036235d28a97dd1124e3a9adc5554 | 9f95e0411ea66fbb6bf140847a2757f693f955e6 | refs/heads/main | 2023-03-01T11:08:55.478069 | 2021-02-17T06:15:53 | 2021-02-17T06:15:53 | 328,964,377 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,183 | r | 13_generate_variables_3.R | ##### 0. 前準備 ========================================================
# library(tidyverse)
library(dplyr)
library(tidyr)
library(stringr)
library(forcats)
library(tibble)
library(readr)
# データのファイルパス。各自のパソコンのディレクトリ構造に合わせて書き替える。
DATA_PATH <- "~/Data/JAHEAD/Process_Files/"
# これまでのデータの読み込み
load(str_c(DATA_PATH, "data_aft... |
24c07d9bba5847380cbf9d2379b85f3e09acd6a9 | 27773c13edf3b66ae7b9957db384137f8eb85f50 | /man/highdimdiffindiff_crossfit.Rd | bd164c0a8ddde1f3a086460817a1b412c467d359 | [
"MIT"
] | permissive | abhradeepmaiti/HDdiffindiff | e333854bc94af5ee4f1982715b400b3c637ca1c2 | f66b6d6b8dda7d58d0bc8416aed4da943e2fd459 | refs/heads/master | 2023-03-17T22:55:31.919712 | 2020-07-23T15:48:59 | 2020-07-23T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,365 | rd | highdimdiffindiff_crossfit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/highdimdiffindiff_crossfit.R
\name{highdimdiffindiff_crossfit}
\alias{highdimdiffindiff_crossfit}
\title{Perform doubly robust diff-in-diff estimator under high dimesional covariates}
\usage{
highdimdiffindiff_crossfit(y0, y1, treat, x, z, k ... |
677046278f15c16ad949b086d1f573fbea4ac977 | a2ba705d17e9ac508303132f0c582039fc484731 | /inst/snippets/pizza-domain-command.R | 75ed8cb02d83dfaa9a112460850ae097015f10ad | [
"MIT"
] | permissive | tidylab/ddd | 5b6e5e6e59ebc39b10fcb3e576f9b3f5ce05f23d | cec12d4fc114be99581910e50a0c67cd417fa514 | refs/heads/master | 2023-08-26T08:34:13.103279 | 2021-01-04T23:37:46 | 2021-01-04T23:37:46 | 300,146,337 | 6 | 0 | NOASSERTION | 2020-12-07T22:00:59 | 2020-10-01T04:45:56 | R | UTF-8 | R | false | false | 383 | r | pizza-domain-command.R | add_step("start_order", domain = "pizza_ordering")
add_step("add_pizza_to_order", domain = "pizza_ordering")
add_step("select_pizza_size", domain = "pizza_ordering")
add_step("add_topping", domain = "pizza_ordering")
add_step("remove_topping", domain = "pizza_ordering")
add_step("review_pizza", domain = "pizza_ord... |
4536979cacebf8a078de18d46729055fe8b36014 | 279d1f7d6a3b8ba82b5c89c987057f40c0868fbb | /codebook.md.R | b524e6c10371e2ff2ea57a328fc47a16a783bbd1 | [] | no_license | Andrew316/Final-Assignment-week-4 | c067c69f7c079296db8559aa868a7651ff93103b | 7980c0e668eb3d7af925106b3574704f4985d242 | refs/heads/main | 2023-01-06T02:20:51.568332 | 2020-10-31T01:53:57 | 2020-10-31T01:53:57 | 307,886,469 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 938 | r | codebook.md.R | The variables that I used were the featureNames and the activityLabels because
they were the two metadatas of the project within the UCI Har datasets.
In the UCI Har Dataset there are two folders that contain the information of test
and train.
Part 1 is to merge the datasets of both train and test to create one... |
a42aec1f9b34a3a77e844051384e72771a0ec5f2 | f10d81106efc6330c43c82f027fdb238fed4745e | /TrigramGeneration.r | e38ce483d365fb4602f0ffb1400bd6eab92c639a | [] | no_license | kevingscott/CouseraCapstone | be79303751fe592fcd26bdd17d02d2a7e6306b75 | 1c16aef1924949ce924adcf04c92097ded1ff055 | refs/heads/master | 2021-01-15T16:16:18.567125 | 2015-03-27T01:42:55 | 2015-03-27T01:42:55 | 32,428,184 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,596 | r | TrigramGeneration.r | done <- FALSE
buffer_size <- 100000
rows_proc <- 0
global_counts <- data.frame(word = character(),prev_word = character(), freq = integer())
TrigramTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 3, max = 3))
trigram_token <- function(these_lines){
#endline_regex <- "[\.\?\!]\s"
remove_non_words <-... |
abeda875206c4139ed7610278106d2cb754abd37 | 86542a2f8c34345dd1f86047b02672755dcf8f48 | /8.R | 52f46825a8606f983b17bd7ab9a7928084c43e54 | [] | no_license | jenchen08/RRRR-STUFF | 3bc667f09f25ab5f0d05428eaa6fa3aad1589033 | 2232e6740476fa8272ee6bac16bd1ed4c4d88dee | refs/heads/master | 2020-04-16T22:33:52.295568 | 2019-01-16T04:49:32 | 2019-01-16T04:49:32 | 165,973,741 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 243 | r | 8.R | set.seed(4901)
n = 10000
sum = 0
sum1 = 0
for (i in 1:n) {
u = runif(1, min = 18, max = 25)
y = (53 - u)
sum = y * rnorm(1, mean = 1200, sd = 300)
loss = sum - 20000
if (loss < 0) {
sum1 = sum1 + 1
}
}
print(sum1 / n)
|
a1610d7744f008a418d23a89253ac3b7f359f24a | 12280abdaa1c352417797406290364bbe8109250 | /Fig1C_AML_cytscore_flow_RNAseq_comparison.R | aab3b5da5b3ad741beb903ff0b3a4d6fd6c44980 | [] | no_license | ppolonen/ImmunogenomicLandscape-BloodCancer | aeca4e50c2bd60ec8fe4e69291e2a617b2b5f21a | 234fd9438c68bfc11c897282508236175bb42bc3 | refs/heads/master | 2023-03-19T21:38:57.259707 | 2021-03-23T19:04:03 | 2021-03-23T19:04:03 | 306,509,974 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,350 | r | Fig1C_AML_cytscore_flow_RNAseq_comparison.R |
# Plot comparison of AML BM T/NK% based on flow cytometry vs cytolytic score (Figure 1C)
library(dplyr)
library(ggplot2)
library(cowplot)
library(ggpubr)
library(gridExtra)
# read in lymphocyte fractions out of total BM cells (gated in FlowJo)
data <- read.table("aml_bm_tnk_cytscore_comparison.txt", header = TRUE)
... |
f0570903c6815fc3fbf985ca1cf9e9c70d914c51 | 21d254c5de5d382c54e9bc518ab315c8526e1fc7 | /man/DR_JonkerSA_Hill2.Rd | ebed5dfa3b0a4a89bd32627ac630a5e6bbfb24ba | [] | no_license | gilles-guillot/MDR | 7d5f2ff1b686d4444a6c72a3d9aa0964f0b6884f | 7eb1e050f861f190312060583b61bff07601f0ad | refs/heads/master | 2020-09-14T17:00:02.201598 | 2020-01-20T10:42:27 | 2020-01-20T10:42:27 | 223,192,822 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,088 | rd | DR_JonkerSA_Hill2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DR_Jonker_Hill2.R
\name{DR_JonkerSA_Hill2}
\alias{DR_JonkerSA_Hill2}
\title{Bivariate dose-response function under Jonker S/A model}
\usage{
DR_JonkerSA_Hill2(d1, d2, a1, b1, a2, b2, alpha)
}
\arguments{
\item{d1}{dose of first compound: a nu... |
4d7671b48a0f7edf675ff1337c3d25f68d724ce4 | 2e580e51cf9ddb8d71851d9dc33bc160c7cdbc36 | /tidy.R | 550ba847fd63cda387573ad0ebb94904377bcc86 | [] | no_license | hammoire/dengue_cohort_symptom | 8b09a69d7e7537975dc9660b7bd82cd8937dfaa0 | 3b1830ea160b359f603c7c8e0f137436e765777a | refs/heads/master | 2020-07-05T16:29:25.716330 | 2019-08-16T09:34:41 | 2019-08-16T09:34:41 | 202,699,513 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,471 | r | tidy.R |
# Check duplicates --------------------------------------------------------
#Start by defining duplicate rows into a single list of multiple dfs.
#ids var defines the vars for which dups have been checked
#These will need to be checked by hand
ids <- c("fs_id", "consent_id", "sample_collection_id_a", "sample_collecti... |
590f024e6541dabcac98085e8281f7348a783fb8 | 4ea08d36b916aa8388e28c44c04d2d4c0e4577ff | /knntest2.R | 3bb0f24c2d216b809cb43e84bb762a3c3921bfc1 | [] | no_license | anhnguyendepocen/econoknn | 73b02c3b5dde7ad44fce6686fbf99002856f67aa | e08f2b8615e948b2347ea957d4e594b826107f48 | refs/heads/master | 2021-09-06T02:28:28.605024 | 2018-02-01T18:05:36 | 2018-02-01T18:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,791 | r | knntest2.R | setwd("~/research/gcp/econoknn")
library(readstata13)
library(Hmisc)
source("knnalg2.R")
redo.demean <- F
df <- read.dta13("/home/solomon/Dropbox/GCP_Reanalysis/interpolation/data/consolidated/mortality_AEA_time-variant-inc_2.dta")
df <- subset(df, agegrp == 33)
df <- subset(df, !is.na(precip1_GMFD) & !is.na(precip2... |
d2fef747d93e410f13a36a28ae07faa9966689c8 | b0917fe842734573b056276767f233ab1696dd62 | /inst/testpackages/testpkg0/R/bad_coding.R | 0585c0d9614cce2fc7b863f1c4ca81b41b8ba7c8 | [] | no_license | aljabadi/BiocCheck | 53c788308cc6e0f52bb1b66d73d3c589e97d56e8 | a4dec415d595c11ee0eb2c2e1bff5cc36e89b2c1 | refs/heads/master | 2023-04-19T10:15:10.423997 | 2021-04-14T01:30:43 | 2021-04-14T01:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 823 | r | bad_coding.R | bad_fun <- function(){
update.packages("base")
for (i in 1:10) {
print("test")
}
sapply(letters, function(x) x)
}
pasteTest <- function() {
message(paste0("A", "B"))
message ( paste("A", "B"))
warning(paste("A", "B"), "C")
warning(paste0("A", "B"), "C")
stop("A", paste... |
c6e36c56ce1a8d500f4d61feae991c5b13a5161c | 9e2296d74051d725efcc28cab16ca7703c8a6c1b | /man/set_app_parameters.Rd | e96196d36b98cb649d9aff962a976454f85a5a54 | [] | no_license | neuhausi/periscope | 59f5d74cc7e399a9a9e03e19199409a6438a4a91 | e0364b0db9b9bbcbc4b6c295bbbb6fa1d1d65fd4 | refs/heads/master | 2023-07-06T05:44:50.295396 | 2023-07-03T21:39:01 | 2023-07-03T21:39:01 | 171,934,957 | 27 | 1 | null | 2023-07-03T21:39:02 | 2019-02-21T19:49:03 | R | UTF-8 | R | false | true | 1,588 | rd | set_app_parameters.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ui_helpers.R
\name{set_app_parameters}
\alias{set_app_parameters}
\title{Set Application Parameters}
\usage{
set_app_parameters(
title,
titleinfo = NULL,
loglevel = "DEBUG",
showlog = TRUE,
app_version = "1.0.0"
)
}
\arguments{
\ite... |
5f0ecd2e15c8aff5556b25ad70a26a9e311fb045 | 8a1c37df68b008fd45c20306f82fab720e881454 | /R/qqPlotDemo.R | a13d044fa37024bfdd0ef09e9c6a41c47862089c | [] | no_license | cran/CarletonStats | 80a126daaf4b85a6f37bcffb74727f4e6e23b8a5 | ca18949778d921fceb85adbf2928fde75e5a2c08 | refs/heads/master | 2023-08-31T10:54:45.273600 | 2023-08-22T16:50:09 | 2023-08-22T18:30:35 | 21,466,009 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,805 | r | qqPlotDemo.R | #' Demonstration of the normal qq-plot.
#'
#' Demonstrate the normal quantile-quantile plot for samples drawn from
#' different populations.
#'
#' Draw a random sample from the chosen sample and display the normal qq-plot
#' as well as the histogram of its distribution.
#'
#' @param n sample size
#' @param dis... |
14daaae684d714e2591d8221a83d8c9704ecdbf0 | 81057a4f9fc81d3b285081bb7a7066abe37f7965 | /doi-bandit-planner/app.R | de1d4f0bbbf58f5de2cb107dfb541f106387a894 | [] | no_license | carlos-chre-work/Practicing | f22dfd1a02796f1c1e726815f3aae9edee92abcf | e61551826a2cdef8ddd8de80742b87eeab0170d1 | refs/heads/master | 2020-07-07T00:13:02.907008 | 2019-08-20T13:01:40 | 2019-08-20T13:01:40 | 203,182,273 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,770 | r | app.R | library(shiny)
library(ggplot2)
library(dplyr)
library(tidyr)
source("functions")
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Day Of Innovation: Shiny Test Planner"),
# Sidebar with a slider input for number of bins
sidebarLayout(
side... |
fd5bfd32d0cb197a5e6d9c77d9de84502f3f212a | e5036c7f2d13b1cea8b010acaee53ce34074b918 | /man/GenUD_MS.Rd | 046971cdfcf8510129fadc6c5faf7846e9a08e17 | [] | no_license | cran/UniDOE | 28c90515ebf5139cef7e3559b75f0e183834971b | 8e3ba53b85975865c17641e91b6d495018cad175 | refs/heads/master | 2021-09-12T16:19:30.056341 | 2018-04-18T12:22:01 | 2018-04-18T12:22:01 | 112,484,584 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,457 | rd | GenUD_MS.Rd | \name{GenUD_MS}
\alias{GenUD_MS}
\title{Generating Uniform Design of Experiments using diffrent initial designs}
\usage{
GenUD_MS(n, s, q, crit, maxiter, nshoot, vis)
}
\description{
This function takes n,s,q,crit and nshoot to return a design. nshoot number of random initial designs are used in each shoot. The desig... |
b217282a633538f73f925690f31266b0f6973ee8 | 6d4f31e1c8e619810260ea3d67a043731b456d1c | /Rscripts/drying.R | 6ee67a2d284af68ce7ec88ac3e46e066902d58d8 | [
"CC-BY-4.0",
"MIT"
] | permissive | BIOL548O/macdonald_andrew | bc35b7ae18cb65b8a2033eb3ba88fd9f46457376 | acbde2d1975f74aba6f4be6f723917c2ea71cb62 | refs/heads/master | 2020-04-09T12:44:33.256793 | 2016-03-03T23:17:43 | 2016-03-03T23:17:43 | 51,113,120 | 0 | 1 | null | 2016-03-04T00:19:20 | 2016-02-04T23:23:53 | R | UTF-8 | R | false | false | 397 | r | drying.R | # drying rate survey
# Andrew MacDonald March 2012
# load packages ---------------------------------------
library(readr)
# read in raw data ------------------------------------
dry.survey <- read.table("data-raw/drying.survey.csv",
comment.char = "#",sep = ",",
he... |
71139e0c160c3b7408711080fcc504db3cbd530d | cfaf35c07adaf9393c519e72e32b773952789035 | /R_profile_helper.R | f6afdb5a3d293518acff954f21b3300ca1daf0f8 | [] | no_license | GrahamDB/testing_selac | 25ba9c70fbb05c9cf75a0cd688f34cf15660b1a0 | 663ad0563cc19810899f8b841aef656e2538b254 | refs/heads/master | 2020-03-21T16:51:00.983839 | 2018-08-09T21:04:00 | 2018-09-06T16:07:41 | 138,797,352 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 58,407 | r | R_profile_helper.R | #Profile basic test
source("setup.R")
local({
if(!require(profvis,lib.loc = user_path)) {
install.packages("profvis",lib = user_path)
if(!require(profvis,lib.loc = user_path)) {
stop("Failed to install profiler")
}
}
library(htmlwidgets,lib.loc = user_path)
library(jsonlite,lib.loc = user_pa... |
abb1e598748c7ce973e63ec9703b19295201965b | 90118609911bb5a97941830cbc1f7020d239405d | /Samsung/code/exploratory/randomForest.R | feb73c70b2ee4a1f8280aeae145940dd39ac1d6b | [] | no_license | shannonrush/Contests | 6e0eba560413723a11d1de1ddb0e3b1f1f440c56 | 4b930624a5c6ea1030f1e82b1829d4fa0a1261df | refs/heads/master | 2021-01-01T05:31:27.616173 | 2014-06-05T18:56:17 | 2014-06-05T18:56:17 | 2,697,116 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,651 | r | randomForest.R | source("../../helpers.R")
load("../../../data/processed/training_clean.rda")
load("../../../data/processed/validating_clean.rda")
set.seed(335)
library(randomForest)
load("../../../data/processed/train_clean.rda")
load("../../../data/processed/test_clean.rda")
Optimum ntree with default sampsize:
rf325 <- randomFores... |
cbef19e6a6398f15f0d74e3cd7ad289aa748dc98 | 80c7241e2f4f1e596e59eabbe8b679962da2a403 | /PS6Package/man/createRace.Rd | 8aa287bfc9f2585f08fbbc9f2ac12aec2c4e28a6 | [] | no_license | tmuraoka320/PS6 | 3ec6c30ed3fefcd1d64281953523516998458175 | 47f07333d80e86f012040f9324ac7b764a979e67 | refs/heads/master | 2020-11-30T04:57:19.660855 | 2016-03-19T18:49:03 | 2016-03-19T18:49:03 | 54,056,487 | 0 | 0 | null | 2016-03-16T18:25:13 | 2016-03-16T18:25:13 | null | UTF-8 | R | false | true | 1,226 | rd | createRace.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/createRace.R
\name{createRace}
\alias{createRace}
\alias{createRace,Race-method}
\alias{plot,Race-method}
\title{Create an Object with class "Race"}
\usage{
createRace(candidate_list, ...)
}
\arguments{
\item{candidate_list}{A list of objects... |
02eac078fbd4c1baf67dc8b33b3414e954233395 | 734405d4e0d6f941c50e5b4862943ffc1cab0aa6 | /script/0703reshape예제.R | 1bf7622e84e03442eff618f346c6ceb411fb87f9 | [] | no_license | valborgs/RStudy | e98a079a5d0ea7a48f6bf19555630d117df44983 | ac1808fcc1c3362876e8f2d8823d304496f29231 | refs/heads/master | 2020-07-04T14:15:30.309572 | 2019-08-14T08:32:00 | 2019-08-14T08:32:00 | 202,308,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,301 | r | 0703reshape예제.R | # 예제 1
# melt: wide->long
# 파일에서 데이터 읽기: wide형 데이터
emp_wide<-read.csv("data\\2000-2013년 연령별실업율_연령별평균.csv")
View(emp_wide)
head(emp_wide)
# 변수명 확인
ls(emp_wide)
# variable과 value없이
# 기준열 지정하지 않고
# 변환열 지정하지 않고
emp_melt<-melt(emp_wide)
emp_melt
# 결과
# 기준열이 없어서 모든 데이터를 변환시킴
# 연령을 기준열로 잡아서 변환
# ->연령별 요소값이 문자기 때문
# 기준열만... |
6af5f43693ce9f15b18dbf1fbc2aa7d05310c353 | 7fc453391224956da9ce2867d9bd54530a66aa43 | /R/is_site_model.R | 017c463a7bb54fc74eaf88283af02b3aabd88fc0 | [] | no_license | cran/beautier | 880277272f6cf48b4eca9c28db68e4a42c4ccc3a | 439683e296d755698c3861b447106556e540aa9f | refs/heads/master | 2022-08-30T18:21:31.772630 | 2022-08-11T09:40:07 | 2022-08-11T09:40:07 | 127,175,959 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,201 | r | is_site_model.R | #' Determine if the object is a valid site_model
#' @param x an object, to be determined if it is a site_model
#' @return TRUE if the site_model is a valid site_model, FALSE otherwise
#' @seealso A site model can be created using \code{\link{create_site_model}}
#' @examples
#' check_empty_beautier_folder()
#'
#' # TRU... |
7b6f7252d011efd28b25e73c1719997563610459 | a2a203ff87ad061a06aa8348fcb7fbf8b5abfc68 | /PS3/PS3_3.R | 20444092f7e98a379897a1a5374ce0ca45a7811d | [] | no_license | violentelder/ESE5023_Assignments | 0e2bbd54055810aef866231b7345d751e103a854 | 1e07d184142093f57f62fdc446e36bdb4dfad8a3 | refs/heads/main | 2023-02-06T13:07:04.256940 | 2020-12-31T11:24:27 | 2020-12-31T11:24:27 | 298,271,496 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 667 | r | PS3_3.R | #========Vegetarians and Zinc=======
library(tidyr)
library(dplyr)
setwd('D:/ESE5023/ESE5023_Assignments/Data')
DATA <- read.csv("Zn_woman.csv",header = T)
DATA <- as_tibble(DATA)
nonvegetarians <- DATA %>%
gather(type, value) %>%
filter(type == "Pregnant.nonvegetarians") %>%
pull(value)
vegetarians <- DATA... |
2eb78c7c3f2845140eca83b3aac9f691739bbb42 | 4f522d2d8d9d0a54ec6340f94ee66f74b1022050 | /man/GetSparseCholeskyDefaultMicrobenchmarks.Rd | abd70f749f7b997177e7a070f397468248f4bdb6 | [
"Apache-2.0"
] | permissive | cran/RHPCBenchmark | 2b69e57b644651eb3034b23bd8ff9df5a1ca1c84 | c1335a4fcb14e6b871d73e3929f188a92a273308 | refs/heads/master | 2021-01-21T20:11:16.606699 | 2017-05-23T16:26:28 | 2017-05-23T16:26:28 | 92,201,283 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,661 | rd | GetSparseCholeskyDefaultMicrobenchmarks.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sparse_matrix_benchmark.R
\name{GetSparseCholeskyDefaultMicrobenchmarks}
\alias{GetSparseCholeskyDefaultMicrobenchmarks}
\title{Initializes the list of default sparse Cholesky factorization
microbenchmarks}
\usage{
GetSparseCholeskyDefaultMic... |
fedcb59348bad15068df93111f3079755765c391 | a3a3f2b7739fb126d516b7eddb444ea1394f0956 | /pre-papilla-cells/ppcell/R/adultdensity.R | f7d2dfa70ed87561c3b92c61d0dd59f8e0eb64b7 | [] | no_license | nevillejackson/Fleece-biology | 1935436dfbb5edd4b8fc42240576074d9c54a041 | f55f4c9a960905aec50a75e15842d62cde97fc0f | refs/heads/master | 2022-01-02T02:38:28.940195 | 2021-12-31T05:07:18 | 2021-12-31T05:07:18 | 105,637,314 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 541 | r | adultdensity.R | adultdensity <-
function(adultsurfarea,follno,pfollno,sofollno,sdfollno)
# adultdensity() - convert follicle nos to densities given surfarea
{
last <- length(follno)
samm2 <- adultsurfarea * 100 # sa in mm^2 instead of cm^2
dens <- follno[last]/samm2
pdens <- pfollno[last]/samm2
sodens <- sofollno[last]/sa... |
28add0ea785bcdfd0e6a9b5970d8b0480db153cd | 4c2835dcc76cdff0f3c7f2fcae6fc59896a6f632 | /R/constants.R | 05aa0498acff778b251d6ed889284088bf5971aa | [] | no_license | birderboone/Radar | fe747a1d3991a4e1ab99616d4b5efe765d786f46 | b1715b1006faf676152cef697c05f49e230f017b | refs/heads/master | 2021-05-06T23:16:38.482865 | 2017-12-03T20:31:02 | 2017-12-03T20:31:02 | 112,961,156 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 249 | r | constants.R | #constants
deg2rad <- 0.017453293 #convert degrees to radians
halfbeam <- 0.008464847 #0.485 degree half power radar beam width of 3 dB beam in radians
earthe <- 6378137 #earth radius
rad2deg <- 57.295779513
WDZ <- "%Y%m%d-%H%M%S"
|
40fa964d20a0d071bb1e5c614f3b18910f237826 | 35ddd33a47b4694bae19bc64bc3c3e6e09c1c964 | /P6/Intento.R | 331990b90058df7e604ee1be4af095eba744ae17 | [] | no_license | angelesmttz/Simulacion | a9f566f51671fb117fdb0784e5b7daf8e05f896f | 79825bd9978bfebed2fbb1c0083fb37e9dbf16ea | refs/heads/master | 2021-01-19T16:05:13.983682 | 2017-12-12T18:01:30 | 2017-12-12T18:01:30 | 99,719,891 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 762 | r | Intento.R | l <- 1.5
n <- 50
pi <- 0.05
pr <- 0.02
v <- l / 30
agentes <- data.frame(x = double(), y = double(), dx = double(), dy = double(), estado = character())
for (i in 1:n) {
e <- "S"
if (runif(1) < pi) {
e <- "I"
}
agentes <- rbind(agentes, data.frame(x = runif(1, 0, l), y = runif(1, 0, l),
... |
57cd3a44cc95a9aa28fc51fdec7dca3556720f9c | 29ba4f78eb2558b1a2db9fdc8b3f5a1e61dc245a | /man/plot_dive.Rd | 38c2dfe7ef95e7ab169bde8d376336e7777343cb | [] | no_license | mczapanskiy-usgs/pfsh.dive | 0ff431379ee8dfcb9158848c05c7dba4c73ab71e | c72fcdefad6cba1f5c32eda6e19323d6350310fc | refs/heads/master | 2021-05-09T01:10:53.034516 | 2018-02-07T03:58:21 | 2018-02-07T03:58:21 | 119,780,100 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,614 | rd | plot_dive.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_dive.R
\name{plot_dive}
\alias{plot_dive}
\title{Create a dive plot}
\usage{
plot_dive(calib_tdr, diveid, surface_thr = 0.1)
}
\arguments{
\item{calib_tdr}{data.frame. Use \code{\link{calibrate_tdr}}.}
\item{diveid}{integer. Identifier ... |
16531d936af5c27c3f8dadb1926ebae9c6428897 | 924c24d5633f0296c461ce22764bd905898cbdad | /R/bignmf.R | 98164edceea949c64d044b54c2ca8731820e7be6 | [] | no_license | congc19/bignmf | cf5127131ef061293c5ef3a6187b5613b1420344 | 416708f9bf05f198b9251e83533ee3b2014e2936 | refs/heads/master | 2020-06-30T13:36:48.582561 | 2016-05-22T14:46:49 | 2016-05-22T14:46:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,905 | r | bignmf.R | ##V: the matrix to be factorized.
##r: the rank of resulting matrices.
##initial: can be "H.kmeans", "W.kmeans", or the initial W or H matrix. "H.kmeans" means initialize H with kmeans(V,r)$centers, while "W.kmeans" means initialized W with kmeans centers. The default is "H.kmeans".
##max.iteration: the number of itera... |
f0a0919a47ffad41d02cf52bce3a7f9aa2d91390 | 59d439e3690bb5bda3077ba410ff13ae5a3d9731 | /R/add_block_number.R | ec459b68d2558c36d93f36e16bc9123f39d2f53b | [] | no_license | MoseleyBioinformaticsLab/li.ntkoldlrkoLipidomics | e4864a8d79ab678fa1d8020a94b1f168c319b040 | b6442d3d6c87fec6e8cc48ac0f0a59144124dcad | refs/heads/main | 2023-04-13T03:15:41.842885 | 2023-01-03T21:12:02 | 2023-01-03T21:12:02 | 581,537,941 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 360 | r | add_block_number.R | #' .. content for \description{} (no empty lines) ..
#'
#' .. content for \details{} ..
#'
#' @title
#' @param ko_info
#' @return
#' @author rmflight
#' @export
add_block_number <- function(ko_info) {
group_run = rle(ko_info$group_number)
block_groups = rep(seq(1, length(group_run$values)), group_run$lengths)
ko... |
3b8d8a7391506a7b307cc67135f2a0dd204becf4 | fb036b826e32f4700c44a912079fa8ba3ba19f60 | /AcmTransactions/code/PlotRanges.R | 882b48ceb378b27df865649597a24f6845506264 | [] | no_license | srvanderplas/LieFactorSine | d10ad465ff5706fdd7f9b8bc9017cb6464a75e8e | 7934646013864b0283f5259a36b7ffce0c2cc84a | refs/heads/master | 2021-01-19T00:16:29.391362 | 2015-05-21T13:53:50 | 2015-05-21T13:53:50 | 8,753,157 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,424 | r | PlotRanges.R | require(ggplot2)
require(plyr)
library(msm)
# set.seed(70032608) # so that intervals don't change
turkdata.full <- read.csv("./data/turkdataclean.csv", stringsAsFactors=FALSE)
turkdata <- subset(turkdata, len>10)
library(doMC)
registerDoMC(cores=12)
turkdata <- ddply(turkdata, .(ip.id, test_param), transform, n=le... |
e5d714ac9dfe09d70681da68effaf8d1254c4067 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/JacobiEigen/examples/JacobiS.Rd.R | 992f1ed0b4577cebe19805e5bef12821d3282811 | [] | 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 | 328 | r | JacobiS.Rd.R | library(JacobiEigen)
### Name: JacobiS
### Title: The Jacobi Algorithm using Rcpp with a stagewise rotation
### protocol
### Aliases: JacobiS
### ** Examples
V <- crossprod(matrix(runif(40, -1, 1), 8))
JacobiS(V)
all.equal(JacobiS(V)$values, Jacobi(V)$values)
zapsmall(crossprod(JacobiS(V)$vectors, Jacobi(V)$vecto... |
068c15d00f6c7a0868878b6c55912a2b6217f1f7 | 4b571306a706d3fc339fdc3bea0501c867018d02 | /run_analysis.R | 66f25c9d3f0dfacc16a86824952eacba0dbfb65d | [] | no_license | hari916/GettingandCleaningDataProject | 9add1ffa11e4d63e400e36c707457a11c275845c | 18cf28f6a362a9c078f83e1248cf53c6792c8d0c | refs/heads/master | 2021-01-22T15:22:40.428180 | 2016-09-17T18:55:13 | 2016-09-17T18:55:13 | 68,470,345 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,815 | r | run_analysis.R | ###########################################################################################################
# Getting and Cleaning Data Week 4 Assignment
# run_analysis.R
# Initial ver 1.0
# Date Sep-18-2016
###########################################################################################################
rm(... |
1729fb8b56502ab7f108cecf25766ba58870677b | 2958ba45bce43cedb86154a9c469c1c8362f5832 | /Plot2.R | 404ef2e781ec8ec76a0f412cc715220be65f8ad7 | [] | no_license | mohaody/ExData_Plotting1 | 561fff9f8dbd318e512a9d02ed625e8a8f818ea1 | 3649680f2690ba9babb39d0bd80f4bff0b875ccf | refs/heads/master | 2021-01-19T21:02:05.773616 | 2017-04-19T02:42:42 | 2017-04-19T02:42:42 | 88,597,172 | 0 | 0 | null | 2017-04-18T07:47:25 | 2017-04-18T07:47:24 | null | UTF-8 | R | false | false | 1,062 | r | Plot2.R | ## Download and unzip the data file
setwd('C:/Users/xxxxxx/Desktop/ExData_Plotting1')
if(!file.exists('data')) dir.create('data')
fileUrl <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
download.file(fileUrl, destfile = './data/household_power_consumption.zip')
unzip('./data/h... |
7591ac06c8a06c2ef6671496de4ffcf16f67b905 | 2219b30a78132a42ef6cc1d6bbbf5b5248e14540 | /HarpiaApp/harpia.R | 06c90ab01148c78bacb83f298720e9206f459a8b | [] | no_license | barbachanM/HarpiaTest | 8f0fc031bae05c009b5443abf189c1b15a1b772d | cbe4bb0618c360af1cf050b5b4b4827fb073516f | refs/heads/master | 2021-01-14T20:02:21.447481 | 2020-02-24T13:18:32 | 2020-02-24T13:18:32 | 242,740,404 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 37,402 | r | harpia.R | library(shiny)
library(shinyjs)
library(shinyFiles)
library(shinythemes)
library(shinydashboard)
library(shinyBS)
library(hash)
library(stringr)
library(lmerTest)
require(ggplot2)
library(markovchain)
library(igraph)
library(mixOmics)
library(Boruta)
library(gtools)
library(stringi)
library(readr)
library(ggedit)
libra... |
59e131de7fdd6904e75814fb147f4f5c88ef8336 | 0d2d79c5ba3b638f429dcd13eb1f7d6fbb21b9ac | /server.R | 7e9f1c9a790e63b1ff6cc81787ec69855c3f19b6 | [] | no_license | chrishatesbeer/DevelopingDataProducts | c3be55933ec19fc74f877d9bef82bef5066b23df | fb991142385acfc37e440ff3443b8b02d45981a5 | refs/heads/master | 2021-01-01T05:54:42.447804 | 2017-07-15T08:55:57 | 2017-07-15T08:55:57 | 97,303,771 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 730 | r | server.R | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
mtcars$cyl <- as.factor(mtcars$cyl)
model = lm(mpg ~ wt + disp + cyl, data=mt... |
28db444c052975b02e7ddbd34041fca3e5136564 | 8c88871493dab02a680fc47a2afe295e01fa0d1b | /man/coarse_body.Rd | 63a6fe349736eb05f9095db79b2ab58a1e96bb66 | [] | no_license | ryansar/lungct | 5a0e44815f428860aa2e33f3e2a469700410eba3 | 592b80efa9d7e1e62eecdaf8625896c2eae78c2f | refs/heads/master | 2020-03-22T12:04:27.845557 | 2019-08-12T14:31:27 | 2019-08-12T14:31:27 | 140,015,196 | 4 | 0 | null | 2018-07-06T17:52:04 | 2018-07-06T17:52:04 | null | UTF-8 | R | false | true | 434 | rd | coarse_body.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coarse_body.R
\name{coarse_body}
\alias{coarse_body}
\title{Coarse Masking of Image from Z-slicding}
\usage{
coarse_body(x, keep_slices = 20)
}
\arguments{
\item{x}{Binary \code{antsImage}}
\item{keep_slices}{number of slices to keep if need... |
99528411a0d2bcdf6255532bfc03a6b1c12bad87 | 0512cbc5d4eff295f4ff17b3a147232dd733ec47 | /content/simulate-ddi.R | ef41d817af944366ffa47e7e67d8158802881ee0 | [] | no_license | Karnpob-coder/r-pharma-pkpd-2020 | 648faa15bf2a2cae6dd00232f9e80b106d819633 | 9e664e0ebb1ad4224f47ffb315d2e3e076cb84aa | refs/heads/master | 2023-03-17T06:00:08.033758 | 2020-10-09T14:19:19 | 2020-10-09T14:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 496 | r | simulate-ddi.R | library(tidyverse)
library(PKPDmisc)
library(mrgsolve)
mod <- mread("model/yoshikado.cpp", end = 12, delta = 0.1)
ddi <- c(
ev(amt = 2000, cmt = 2, time = 0),
ev(amt = 30, cmt = 1, time = 1)
)
n <- 2000
idata <- tibble(ikiu = rlnorm(n, log(mod$ikiu),sqrt(0.09)))
out <- mrgsim_ei(mod, events = ddi, idata = ida... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.