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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b76a1d52903d944f6e89026814e6b38b4e3ebf4f | bd664fa8c415fb7cac646d61c0f6738228a0fdc5 | /code/neon_organism_api_export.R | 7d22128687d1d7ddf6def3b33fb273c92321363b | [] | no_license | sydnerecord/NEONss2019-biodiv | e37617df704719b2dfab6c61c925bc3ae48b303e | fba60146f9a5771d4fb9ccab4d07ea1bfbaec937 | refs/heads/master | 2021-07-04T12:46:50.661197 | 2020-12-22T14:08:40 | 2020-12-22T14:08:40 | 215,184,635 | 4 | 10 | null | 2020-10-01T16:44:21 | 2019-10-15T02:08:15 | R | UTF-8 | R | false | false | 12,778 | r | neon_organism_api_export.R | ## THIS SCRIPT IS NOW OUT OF DATE IN TERMS OF THE WAY TO PULL NEON DATA; KEEPING HERE FOR REFERENCE/BITS OF CODE ##
##
## TITLE: NEON Organismal Data: read in via API, export data
## AUTHOR: Phoebe Zarnetske, Quentin Read
## COLLABORATORS: Sydne Record (Bryn Mawr), Ben Baiser (UFL), Angela Strecker (PSU... |
a8122d3829d85bb80ab603463ff84cf6e490f1ef | e1ebc5da547e60c517aa99c3ebcb9557064b2f54 | /plot3.R | c7bfb60fbf3be943def2dd57e0fd37217f650c09 | [] | no_license | datatony/ExData_Plotting1 | f14152c9d4782b9eb5985a77ce431f0c22d50ac9 | 2479f00bce45ff6f7af215feecf87848f746bc45 | refs/heads/master | 2020-12-29T00:41:35.757966 | 2015-05-09T16:40:04 | 2015-05-09T16:40:04 | 35,334,161 | 0 | 0 | null | 2015-05-09T15:42:02 | 2015-05-09T15:42:02 | null | UTF-8 | R | false | false | 1,414 | r | plot3.R | ##download file from source
temp <- tempfile()
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp)
##read and clean data
dat <- read.table(unz(temp,"household_power_consumption.txt"), sep = ";")
unlink(temp)
dat[,1] <- as.Date(dat[,1], "%d/%m/%Y")
dat <- subset... |
8e649ac438e4017a6bfe6dde608babeeed24a584 | 7c39da976f28af016e5b1f847e68473c659ea05d | /man/PreprocessViews2-coercion.Rd | 850d37ef7726444bb251115930fff7dfb714b217 | [] | no_license | cancer-genomics/trellis | b389d5e03959f8c6a4ee7f187f7749048e586e03 | 5d90b1c903c09386e239c01c10c0613bbd89bc5f | refs/heads/master | 2023-02-24T05:59:44.877181 | 2023-01-09T20:38:36 | 2023-01-09T20:38:36 | 59,804,763 | 3 | 1 | null | 2023-01-11T05:22:52 | 2016-05-27T04:45:14 | R | UTF-8 | R | false | true | 728 | rd | PreprocessViews2-coercion.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Preprocess-class.R
\docType{methods}
\name{setAs}
\alias{setAs}
\alias{coerce,PreprocessViews2,RangedSummarizedExperiment-method}
\title{Coerce a \code{PreprocessViews2} object to a \code{RangedSummarizedExperiment}}
\arguments{
\item{from}{c... |
178e4589f7ea749c28750dd80994653dee45347e | c756acb3a3d25a279e8e5209ab524d421f2fd236 | /run_analysis.R | 42005724db2771d60d5ef2b56083c68ac0a54437 | [] | no_license | ru-garcia/TidyData | fdc3351ee083a62a8e75301407b8dc2fcb489c5e | 581ce8294b8afc60b547a9fb2e1f8eb6de953b65 | refs/heads/master | 2020-07-08T10:55:29.781638 | 2015-02-23T05:12:01 | 2015-02-23T05:12:01 | 31,172,802 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,302 | r | run_analysis.R | ## Getting and Cleaning Data Course Project
##
## This R srcipt creates the function run_analysis, which imports and merges
## data files in the UCI HAR Dataset directory and creates the two required tidy data files.
##
## To use, run this script in R Studio to create the function, then call the function
## with the pa... |
08965038c8accd641c0f76038dc68a1fef610706 | df575dfbb2687921a72b56230f961461e53234ff | /src/pbr_plots.R | e875e6f779a059b91451073a3c9e0a13522bce9e | [] | no_license | ECGen/pb_removal_nets | ae3eb07aa7ddbf13cdff0a39a8ed2a0af1ce275b | 1ce0ed51235230b942fe7e2779da99587db8e54f | refs/heads/master | 2022-03-27T07:32:46.793140 | 2020-01-08T21:23:21 | 2020-01-08T21:23:21 | 13,688,660 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,448 | r | pbr_plots.R | ### PBR one off plots
### MKLau
### 18 Jun 2015
source("../R/packages.R")
coa <- read.csv('../data/pbr_coa.csv')
coa <- coa[c(4,5,8,9),]
x <- unlist(lapply(strsplit(as.character(coa$X),split='\\.'),function(x) x[length(x)]))
x[x == 'avg'] <- 1;x[x == 'npb'] <- 0
trace <- substr(coa$X,1,1)
z <- coa$z
par(cex.lab=1.25,... |
4b75262821bb20ab7dd0ab507b6fd45947bfb4d4 | 39851ccdf21d02180a5d214ae84082e9c210dd97 | /man/dumpDatabase.Rd | 04ecc6b3fe413575621b675c5afbfce59075878a | [
"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 | true | 1,586 | rd | dumpDatabase.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dumpDatabase.R
\name{dumpDatabase}
\alias{dumpDatabase}
\title{Export Database Tables to CSV Files}
\usage{
dumpDatabase(
db,
pattern = "^tbl",
target_dir = NULL,
create_target_dir = FALSE,
sep = ",",
dec = ".",
as.is = FALSE,
... |
2cb7f063cc9a192ee9a4f81a52bf5b5720ae8c05 | f4d86d015400a9972f9b9c38b02913ba4162a50b | /R/limma_diff.R | 3e33fe17fe20399ee94c5f739510519c899973d9 | [] | no_license | aidanmacnamara/epiChoose | 2ba4e6c6348bf763a40edd7e1285098e1bc7a14a | 11cbb78cf063afa767943c8d6e0779f451317550 | refs/heads/master | 2021-12-22T13:12:04.352433 | 2021-12-10T07:33:51 | 2021-12-10T07:33:51 | 83,414,546 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,002 | r | limma_diff.R | #' @title What are the features that are separating 2 groups?
#' @description TO ADD
#' @description This is a new line ...
#' @details What's this?
#' @param dat PCA matrix
#' @return TO ADD
limma_diff <- function(dat, groups, thresh=5000) {
require(limma)
dat = t(log(dat))
dat[is.infinite(dat... |
2bbf99dadfa28a7d5d18710389ef63dc32a312ad | 9f0447180a6b23d51f00c2ffff4a61baf01ea82d | /man/ParamsInfo.Rd | 34146da1822c6313a48d1fcb84f8bf52b128ba5d | [] | no_license | aleksandra197/airPL | 7653dfd651e4b78637a38564d773f6844030c31e | 76e60f935f1bfc1e532a39238c5b69549bfc7b23 | refs/heads/master | 2023-02-20T23:16:50.573587 | 2021-01-25T21:36:38 | 2021-01-25T21:36:38 | 332,884,290 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 275 | rd | ParamsInfo.Rd | \name{ParamsInfo}
\alias{ParamsInfo}
\title{ParamsInfo}
\usage{
ParamsInfo()
}
\description{
Displays info about sensors available for selected air pollution measuring station.
Information from this function is neccessary to use GetData() function.
}
\examples{
ParamsInfo
}
|
e583240d86a81b518388de52cb6caf2279e93d85 | b3a191d2b4c7e3011375135b87f3dd876cf05111 | /man/ConvertModelList.Rd | e20aaf702ef81a0c4f0af8e92186089161d47b5e | [] | no_license | tdhock/PeakSegJoint | 3d712782cf601f4e0478653ebab7e4eea5684d04 | c80a250b00f6e6a60a0c4dcb3d02e98c9d95cebd | refs/heads/master | 2023-04-27T05:14:53.542606 | 2023-04-24T23:53:31 | 2023-04-24T23:53:31 | 33,544,447 | 6 | 3 | null | 2020-02-14T19:26:32 | 2015-04-07T13:22:43 | R | UTF-8 | R | false | false | 778 | rd | ConvertModelList.Rd | \name{ConvertModelList}
\alias{ConvertModelList}
\title{ConvertModelList}
\description{Convert a model list from the non-repetitive format that we get
from the C code to the repetitive format that is more useful for
plotting.}
\usage{ConvertModelList(model.list)}
\arguments{
\item{model.list}{List from PeakSegJointHe... |
1940f9438850fb66926a9147b10d36270415e266 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/fugeR/R/fugeR.load.R | 18278bdbd9f00101e3f8138822a55e75d79fdbde | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,335 | r | fugeR.load.R | ######################################################################################
# fugeR.load
#
#' Load a fuzzy system.
#'
#' Load a fuzzy system saved into a file with \code{fugeR.save}
#'
#' @param file [\"\"] A character string naming a file.
#'
#' @examples
#' ##
#' ##
#' ... |
728f86683d60dca9245a0919ce6318673da16189 | fa1a17fca2d7025c4815e3fc6fd7ef6e32f251b2 | /Script_final_PME.R | 993e00c8953adbcf9b9657a61c53627f8f545440 | [] | no_license | JeromeLaurent/R_Hg_PME | 8d7acde2a992d7b1776d6f71aa0e9d3111f160e5 | cac2d62d7b58d9a7b91b34b6fe88c12ea7b29aae | refs/heads/master | 2021-01-23T09:29:40.526565 | 2014-07-18T10:45:23 | 2014-07-18T10:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 107,929 | r | Script_final_PME.R | ############################
##### SCRIPT FINAL PME #####
############################
rm(list = ls () ) # nettoyage memoire de R
require(MASS)
require(ggplot2)
require(plyr)
require(dplyr)
require(scales)
require(reshape) # pr fction melt, afin chgt format wide -> long
require(reshape2)
require... |
39a31fe6123c71672ad3a201c67ba195f0196e22 | 8edfa79c1293f4941dc7308e3b40a845b2aab2ca | /plot3.R | b6a356976dda4c522e0c87ea87b07f7342c1a6f7 | [] | no_license | kublankhan75/ExData_Plotting1 | 1103061427d632aa986f7c666e288ebc654798e9 | 1f36e69e72eb836c47d0466452c4882b83aabfd4 | refs/heads/master | 2021-01-17T06:30:45.399472 | 2015-03-04T21:57:20 | 2015-03-04T21:57:20 | 31,571,667 | 0 | 0 | null | 2015-03-03T00:46:53 | 2015-03-03T00:46:53 | null | UTF-8 | R | false | false | 1,138 | r | plot3.R | # plot3.R
# Check for prior existence of subsetted data
if(!exists("power.sub")){
# Read the source data
power <- read.table("./data/household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
# Format Date and Time variables
power$Date <- as.Date(power$Date, ... |
407e5555409930fabd75bc77786c739b4ad278c9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/natural/examples/olasso_cv.Rd.R | 30c32c6d5b33bade854c3b0e539febd0b96b8a08 | [] | 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 | 274 | r | olasso_cv.Rd.R | library(natural)
### Name: olasso_cv
### Title: Cross-validation for organic lasso
### Aliases: olasso_cv
### ** Examples
set.seed(123)
sim <- make_sparse_model(n = 50, p = 200, alpha = 0.6, rho = 0.6, snr = 2, nsim = 1)
ol_cv <- olasso_cv(x = sim$x, y = sim$y[, 1])
|
1930216b4b50a575fbbc147497c9ca4c793bd980 | 9262e777f0812773af7c841cd582a63f92d398a4 | /man/coef_marssMLE.Rd | 1ee9cdac612d02674ef39da4dfc254ac3da240c6 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | nwfsc-timeseries/MARSS | f0124f9ba414a28ecac1f50c4596caaab796fdd2 | a9d662e880cb6d003ddfbd32d2e1231d132c3b7e | refs/heads/master | 2023-06-07T11:50:43.479197 | 2023-06-02T19:20:17 | 2023-06-02T19:20:17 | 438,764,790 | 1 | 2 | NOASSERTION | 2023-06-02T19:17:41 | 2021-12-15T20:32:14 | R | UTF-8 | R | false | false | 2,922 | rd | coef_marssMLE.Rd | \name{coef.marssMLE}
\alias{coef.marssMLE}
\keyword{coremethods}
\title{ Coefficient function for MARSS MLE objects }
\description{
\code{\link{MARSS}()} outputs \code{\link{marssMLE}} objects. \code{coef(object)}, where \code{object} is the output from a \code{\link{MARSS}()} call, will print out the estimated para... |
d6507c6eb961ff26e2eb000e5a7cbcf8ecce9c30 | 3def32e587e51ac218c0882426cd9277ed568c49 | /tests/testthat/test-parser-missing-sps.R | edfecce4e61387e7006805b631adb8758e2028d6 | [
"MIT"
] | permissive | jacobkap/asciiSetupReader | e94d5f6003a42c8c8411b9b19aec7e67ae84f980 | 8a2620be788b109b7b72327cc23b6b73f7e1ef43 | refs/heads/master | 2023-07-25T14:18:09.646809 | 2023-07-05T19:45:30 | 2023-07-05T19:45:30 | 92,419,358 | 7 | 7 | null | 2017-11-30T00:52:18 | 2017-05-25T15:49:57 | Scheme | UTF-8 | R | false | false | 35,993 | r | test-parser-missing-sps.R | context("test-parser-missing-sps")
test_that("Right number of missing values", {
expect_equal(nrow(sac_parsed_sps$missing), 261)
expect_equal(nrow(sex_offender_parsed_sps$missing), 18)
expect_true(is.null(ucr1960_parsed_sps$missing))
expect_equal(nrow(weimar_parsed_sps$missing), 19)
expect_true(is.null(acs_... |
e4db3202a7c8997c9775410f038a64209cf8a389 | d9c32002215d0dd67a68d99586c7daafdfb385dc | /R/MCGHD.R | f30c8f5a865db6ef43fc5c59bfafb1da9c4c9c1c | [] | no_license | cran/MixGHD | 1d88b7a2236e2767b21d807289d8c75f2613a2c5 | 15cc4f93efde88be56fdb41ccc3c466983d8c2e5 | refs/heads/master | 2022-07-04T05:40:25.297469 | 2022-05-11T10:50:07 | 2022-05-11T10:50:07 | 22,120,018 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,244 | r | MCGHD.R | MainMCGHD=function(data=NULL, gpar0=NULL, G=2, max.iter=100, eps=1e-2, label=NULL, method="km",nr=NULL){
pcol=ncol(data)
if(!is.null(label)){
lc=apply(data[label==1,],2,mean)
# if(min(label)==0&max(label)==G){
for(i in 2:G){
lc=rbind(lc,apply(data[label==i,],2,mean))
}#}... |
4628df7b3afe6bc8efc95185200d84e201b38b7f | 47c5a1669bfc7483e3a7ad49809ba75d5bfc382e | /man/getKnownS3generics.Rd | ce69764c546c531024299f717446d2b4b76f4b2d | [] | no_license | tdhock/inlinedocs | 3ea8d46ece49cc9153b4cdea3a39d05de9861d1f | 3519557c0f9ae79ff45a64835206845df7042072 | refs/heads/master | 2023-09-04T11:03:59.266286 | 2023-08-29T23:06:34 | 2023-08-29T23:06:34 | 20,446,785 | 2 | 2 | null | 2019-08-21T19:58:23 | 2014-06-03T14:50:10 | R | UTF-8 | R | false | false | 365 | rd | getKnownS3generics.Rd | \name{getKnownS3generics}
\alias{getKnownS3generics}
\title{getKnownS3generics}
\description{Copied from R-3.0.1, to support getKnownS3generics.}
\usage{getKnownS3generics()}
\author{Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre], Keith Ponting [aut], Thomas Wutzler [aut], Philippe Grosjean [aut], Markus... |
44a2fc4ba29a833f96d291b038d74e9f00e5bec9 | fc5a777ea963c978ad82ab3e4050d0c66dfe4df8 | /data-raw/md.human.custom.R | 8d6dba7c915b3d14a73554870e7739992578bff3 | [] | no_license | mdozmorov/msigdf | e17379951ca71e65c1cad0c9f397c3a825a639cb | 72c8778b9978bbe60666b3abe827b6ddc44a3c64 | refs/heads/master | 2021-01-19T22:20:44.604682 | 2017-01-17T21:16:48 | 2017-01-17T21:16:48 | 65,923,906 | 0 | 0 | null | 2016-08-17T16:29:26 | 2016-08-17T16:29:26 | null | UTF-8 | R | false | false | 3,633 | r | md.human.custom.R | options(stringsAsFactors = FALSE)
library(annotables)
### Create annotation dataframe
# First column - general category. Second - signature. Third - EntrezIDs
md.human.custom <- data.frame(collection = vector(mode = "character"), geneset = vector(mode = "character"), entrez = vector(mode = "character"))
### PAM50
mt... |
9d888b3bcff4f15e7eca6b221229bdc4177bfe14 | 848cd95fd8cbe16f0c5141ff3f3f45abd9deb88b | /man/design.M.Rd | 9a4cf9f3157e905c1b45904cd8f4f1a503eab1c5 | [] | no_license | UMN-BarleyOatSilphium/GSSimTPUpdate | 51d02af36449150f2dd3806572b92619a05636b2 | 17aa82dfa8936b5ea286ab555ac90e65e6c018a1 | refs/heads/master | 2021-05-01T16:39:19.674734 | 2017-04-21T15:25:57 | 2017-04-21T15:25:57 | 58,579,569 | 2 | 2 | null | null | null | null | UTF-8 | R | false | true | 664 | rd | design.M.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convenience_functions.R
\name{design.M}
\alias{design.M}
\title{M matrix}
\usage{
design.M(n)
}
\arguments{
\item{n}{The number of rows of matrix X}
}
\description{
Creates an M matrix, or the orthagonal projector
}
\references{
Rincent, R., ... |
2f17d29003e0a20d251e42ca908cc036ae588922 | 590c3f28f3fb89e0cde3abd9cd45ebe927c91a4b | /CommonMind/matrixeqtl.R | f318ff4aeb5108eb6fefa7557129371944288d67 | [] | no_license | ComputationalBiology-CS-CU/Gene-Expression-Analyses | a4f469650ee0c7e9dc89475dde7b705d6c83d974 | 110663c3f8d0128b6e0641588166a0b642f30a15 | refs/heads/master | 2016-08-13T01:45:57.093219 | 2016-01-27T18:33:34 | 2016-01-27T18:33:34 | 50,528,839 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,460 | r | matrixeqtl.R | #### Script adapted from tutorial on matrixEQTL website. FDR filter added
# R script to conduct cis eQTL analysis with MatrixEQTL package
# Necessary to format the input files according to specifications
# given in the website: http://www.bios.unc.edu/research/genomic_software/Matrix_eQTL/
# Argument parameters for sc... |
ca294723397da6ed6aa9a4d7b95bb85198b22fe3 | d4cf0bbfad4dfd5d6a01f7ac8852d3f0e1b7d560 | /project_05/stock_data.R | 48b7b717579b74e7f1e3d2b6decc8baa8a64ed52 | [] | no_license | snowdj/math_425 | 216cd98f19f2a3c87343b8735583dd4175099a68 | 9f70c6d88f968abf7280eb0ad5bea9f7cb96087a | refs/heads/master | 2020-03-19T04:44:15.078280 | 2018-04-15T15:40:13 | 2018-04-15T15:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,564 | r | stock_data.R | library(tidyquant)
stocks <- c("^GSPC", "AAPL", "JBLU", "BBY", "GM", "AMZN") %>%
tq_get() %>%
select(date, symbol, adjusted) %>%
group_by(symbol) %>%
tq_transmute(select = adjusted,
mutate_fun = periodReturn,
period = "daily",
type = "log",
... |
ff1f1a5415eb5126680b1034064ccc46701ec731 | 52d0411931e9af474f9e7ce1002c621cbe7e73f1 | /Misc/emulator.simpact.best.R | 892292add1301bb3d6be877afd23b54b2a817768 | [] | no_license | niyongabirejunior/arteta | fd064e995c8a6450ea0ccde40d5e7e1d8b144a05 | 7932edc12f7fe77048abd5b3be8db92a5f15ff17 | refs/heads/master | 2023-04-20T23:24:36.155888 | 2018-11-16T14:45:33 | 2018-11-16T14:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,602 | r | emulator.simpact.best.R | #Read the data from the emulator best 274.
summaryparameters.best <- c("growth.rate", "inc.men.20.25", "inc.wom.20.25", "prev.men.25.30",
"prev.wom.25.30","prev.men.30.35", "prev.wom.30.35", "ART.cov.men.18.50",
"ART.cov.wom.18.50", "median.wom.18.50.AD")
targets ... |
4198c3ac91f10f56883da5fb6e781e73944c2336 | 4483e0c1924204c74d10b30333cd6529ca529d7e | /R/nlm_wheys.R | 7364b7e781203e8ac51f5e7e073ee7e4492bc819 | [] | no_license | BorjaZ/NLMR | e6f35912b9af62644543fe183834b70609c06936 | e0516590cc2adc1a27bb453a9a3dd27dca9037d9 | refs/heads/master | 2021-04-28T18:00:32.276707 | 2018-02-16T13:42:29 | 2018-02-16T13:42:29 | 121,864,946 | 1 | 0 | null | 2018-02-17T15:12:04 | 2018-02-17T15:12:04 | null | UTF-8 | R | false | false | 3,008 | r | nlm_wheys.R | #' nlm_wheys
#'
#' @description Simulates a wheyed neutral landscape model.
#'
#' @details Wheyed landscape models builts on landscapes derived from random
#' curdling (\code{nlm_curds()}), by adding "wheye" on the "curds". Wheye is
#' hereby an additional step after the first recursion, where previously
#' selected ce... |
38f50874bd3024fea7153d1c4cd0d7cbca5cd1dd | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/biglasso/examples/predict.cv.biglasso.Rd.R | 6f52a9eaf874dd9a5a741e0c708379d7444f07d7 | [] | 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 | 625 | r | predict.cv.biglasso.Rd.R | library(biglasso)
### Name: predict.cv.biglasso
### Title: Model predictions based on a fitted 'cv.biglasso' object
### Aliases: predict.cv.biglasso coef.cv.biglasso
### Keywords: models regression
### ** Examples
## predict.cv.biglasso
data(colon)
X <- colon$X
y <- colon$y
X.bm <- as.big.matrix(X)
fit <- biglasso... |
c62643a94153865c60cdc5d68e764f767442c596 | fa139885e57dbd498849ae80edd0fb76f5c72c21 | /nyctaxitest.R | f38761b33044a5a1efc0f022612893e0b86b00c3 | [] | no_license | jreynolds01/spark-mrs-demo | fc500e19342943230e5ed85d25cab7d5a9b3b5a4 | 90df77043ec9c098752a4f4b64bbd03eddbf6dd4 | refs/heads/master | 2021-01-09T05:19:14.590538 | 2016-06-07T18:29:48 | 2016-06-07T18:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 630 | r | nyctaxitest.R | sparkEnvir <- list(spark.executor.instance = '10',
spark.yarn.executor.memoryOverhead = '8000')
sc <- sparkR.init(
sparkEnvir = sparkEnvir,
sparkPackages = "com.databricks:spark-csv_2.10:1.3.0"
)
sqlContext <- sparkRSQL.init(sc)
dataframe_import <- function(path = "wasb://nyctaxidata@alizaidi... |
8c5091eee4f3589bc7086f3f25b86236af5ffd24 | 9a79c6d33fc2776d08c72e71c8ad91aa73df2e10 | /R/dataset.r | baf8671b36896f372dffa17986cd029b662610d1 | [] | no_license | giupo/rdataset | 8e6d1d645e1806bed616f2c9d34fdeac3af65129 | 7786febfadb60bf37343976a0d0d2a0286cca259 | refs/heads/master | 2021-06-07T19:17:06.802211 | 2021-05-14T15:29:23 | 2021-05-14T15:29:23 | 67,530,543 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,867 | r | dataset.r | ## Whenever you have a cyclic dependency, without really having one,
## it's due some generics you are defining in your code:
## that's why I'm writing here this reminder. If you ever encounter a
## cyclic dependency, slap this to R console:
##
## trace(stop, recover)
##
## and then inspect in which frame there's a ge... |
72c58133fe40edc75456c1ef384d7954ed2c2420 | af4d49456b47fb82ea016753943b7b73cea8253a | /chapter3.R | 31f60a6959cb489e798099781584bab9bbe8a798 | [] | no_license | LarsIndus/local-gaussian-correlation | d95f2b84aeb45e20ddf3f6770d8398d340e3c760 | 8fcb8c7bc3ad88875416f1b5507102f500fa0369 | refs/heads/master | 2021-06-24T16:26:53.212139 | 2020-12-05T11:58:32 | 2020-12-05T11:58:32 | 177,267,581 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,136 | r | chapter3.R | # Setup ----------------------------------------------------------------
library(localgauss)
library(magrittr)
library(ggplot2)
library(MASS)
source("plot_localgauss.R")
SEED <- 42
# LGC for Normal Distribution (Figure 3) --------------------------------------------------------
set.seed(SEED)
n <- 1000
mean_x <-... |
6cd8157a54fa17e7b4af6b21d81131eb5ebb6394 | 549b9ea2de06a6704912f5de95d2e9bca87440ae | /man/Connectance.Rd | 7ce4debcd7061ea5c14fda09e9233247268ace6b | [] | no_license | akeyel/spatialdemography | 38e863ba231c77b5e9d4d1c7357d98929f171de9 | cf0b006d43d0b55c76b55da3027210a4ceee29ef | refs/heads/master | 2016-12-13T05:19:09.151285 | 2016-04-02T03:56:27 | 2016-04-02T03:56:27 | 39,295,792 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 731 | rd | Connectance.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sdhelper.r
\name{Connectance}
\alias{Connectance}
\title{Calculate distances between cells}
\usage{
Connectance(NumPatches, extent)
}
\arguments{
\item{NumPatches}{Number of cells in the landscape, equal to the extent squared}
\item{extent}{... |
fa1bae4cd61ee206dd27b4d9c613db371c833dec | a37122475660395c7306c661f8baa33421228a75 | /man/streamSet-cash-getPlot.Rd | b9020ddc3e0b9c6f2ea47b921a25c8c556717fea | [
"Apache-2.0"
] | permissive | eddyrene/PI-Web-API-Client-R | 726b1edbea0a73bf28fe9b2f44259972ddecd718 | 7eb66c08f91e4a1c3a479a5fa37388951b3979b6 | refs/heads/master | 2020-04-17T01:01:27.260251 | 2018-11-14T10:48:46 | 2018-11-14T10:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,468 | rd | streamSet-cash-getPlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/streamSetApi.r
\name{streamSet$getPlot}
\alias{streamSet$getPlot}
\title{Returns values of attributes for an element, event frame or attribute over the
specified time range suitable for plotting over the number of intervals (typicall... |
7465a7a03db5bb5c870d985974f3c171da39b973 | bd0c2f6797bb1bd130f6935b9650cc4cdb99a928 | /exercise01/census_logistic_v2.r | f4d1c36dc7c261f01805de5b4814a887e9d61328 | [] | no_license | rptaheri/exercises | c136ae57cf6ce8b215d8c271aadebb6b638f1ba4 | 93547977cb03169d9fb71947463d0aa0fe5b14e1 | refs/heads/master | 2020-02-26T13:29:37.139420 | 2015-01-26T23:56:48 | 2015-01-26T23:56:48 | 29,747,454 | 0 | 0 | null | 2015-01-23T18:49:25 | 2015-01-23T18:49:24 | null | UTF-8 | R | false | false | 3,076 | r | census_logistic_v2.r | library(gmodels)
library(caret)
library(pROC)
# read from CSV file
records = read.csv(records_log)
# recode ? values to missing
records$native_country[records$native_country == '?'] <- NA
records$occupation[records$occupation == '?'] <- NA
records$working_class[records$working_class == '?'] <- NA
# create new vari... |
480ea0755048ddb4f83e7ca91b24e4c1597f3860 | d57b47733f71cafdf1af9dfacd2e8b859c3acdc0 | /R/gg_desc_lsmeans.R | 1b0bfa67129e4ad0c76153ddf4a7508194952300 | [] | no_license | jfrancoiscollin/ClinReport | 1d66270446f3621eff19552ee713558db7c92f0f | 445bac0b579b23eefb7ccb7753f9c695cd62df0c | refs/heads/master | 2021-07-03T08:29:50.477437 | 2020-09-16T08:47:55 | 2020-09-16T08:47:55 | 171,647,479 | 13 | 2 | null | 2019-02-27T09:00:06 | 2019-02-20T09:58:57 | R | UTF-8 | R | false | false | 4,681 | r | gg_desc_lsmeans.R | # TODO: Add comment
#
# Author: jfcollin
###############################################################################
#' Creates a ggplot object corresponding to a LS Means desc object
#'
#'
#' @param desc Desc object
#' @param title Character The title of the plot
#' @param ylim Numeric of length 2 for... |
55c604e2cbaac0c65a60880628c5dae4aa92769a | f1172b6676c4f20034df5b4eca15dbc66c209c9b | /server.R | 97b32f7ce463f5fc9a2bef07a0a4b861e4aac322 | [
"MIT"
] | permissive | agbleze/GA | 7fabb91c15e1a692f416a252455e3ee2bb854c22 | b5dab8ac17227039980b1a9930b423e3a3816f99 | refs/heads/main | 2023-07-18T04:55:14.023131 | 2021-08-23T20:43:52 | 2021-08-23T20:43:52 | 399,218,661 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,533 | r | server.R | ### load libraries ######
#library(shiny)
library(readr)
library(forecast)
library(tidyverse)
library(ggplot2)
library(fpp2)
library(lubridate)
library(GGally)
library(dplyr)
library(magrittr)
library(labelled)
library(gtsummary)
library(bfast)
library(ggstatsplot)
library(googleVis)
library(formattable)
library(fonta... |
a1c754930f438e8d9b82ac1965067616086a4ce9 | b62236109f1e8d01739e6cc8ec3d62fd046a1784 | /dataFromBook DataVISWithR/scripts/timeseries_seasonalsubseries_inc.r | bf8577190fd27b48c416b0266640c4935aa36154 | [] | no_license | shahidnawazkhan/Machine-Learning-Book | 049670a3b9d74b11e619428ee11468f08ffee595 | f152f36a8b7dbabe30d2c1b6de10788cbd1fa5e8 | refs/heads/master | 2023-08-22T02:48:33.039710 | 2021-10-19T14:59:49 | 2021-10-19T14:59:49 | 395,435,421 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 951 | r | timeseries_seasonalsubseries_inc.r | pdf_file<-"pdf/timeseries_seasonalsubseries_inc.pdf"
cairo_pdf(bg="grey98", pdf_file,width=8,height=8)
par(omi=c(1,0,1,0.5),mai=c(2,0.80,0,0.5),family="Lato Light",las=1)
# Import data and prepare chart
source("scripts/inc_datadesign_dbconnect.r")
sql<-"select left(week, 4) year, substr(week, 6, 2) month, avg(chicke... |
f1e5c73cfc2df6b35df27478c937b78a2a4e975b | 3578f8aed6fd510830bf79aa4213c4d6c30f48cc | /man/fs_di.Rd | ec02dab632241092018d8176d9f65b7e23bf978e | [
"MIT"
] | permissive | diazrenata/sadspace | 01d772eff7be14acb9c89c6774f6aba25d3dbebd | e8a1f105320dd99a8af7f94aaa8b644298fc8f3c | refs/heads/master | 2021-01-03T21:27:03.940129 | 2020-04-26T18:49:57 | 2020-04-26T18:49:57 | 240,241,563 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 286 | rd | fs_di.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sample_fs.R
\name{fs_di}
\alias{fs_di}
\title{Add diversity indices}
\usage{
fs_di(fs_samples)
}
\arguments{
\item{fs_samples}{fs df}
}
\value{
fs df summarized to dis
}
\description{
Add diversity indices
}
|
cc25698bb4a38e444c8a8a35d99c2e2fb9b05a26 | c0e397f20fc5070e859cf2fe181767549be790e3 | /man/Mesh.Rd | 9da5443186b60360726d5f520f2d0d3241deb9e4 | [] | no_license | mayunlong89/RISmed | 8c3ef9245105ce914d3203020022f3daa088ba24 | f61c84dc295681bb22d514d834ff4fa421cf7920 | refs/heads/master | 2023-08-19T08:04:07.559181 | 2021-10-03T06:53:26 | 2021-10-03T06:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 961 | rd | Mesh.Rd | \name{Mesh}
\alias{Mesh}
\title{
Extracts \code{Mesh} headings from \code{Medline} object.
}
\description{
Extractor for the \code{Mesh} headings of a \code{Medline} object.
}
\usage{
Mesh(object)
}
\arguments{
\item{object}{instance of class \code{Medline}}
}
\value{List by Pubmed article. Each list contains a d... |
b28091f731e7400c8033f414034e3d184b0d90d3 | 3b4d121df48e0b09c3a8b7b95154a7ab2b29a40b | /softChange/pg/size.r | 4ccf8ceb9716669e0d2a37de11601a240f24b2c0 | [] | no_license | hackerlank/hacking | 998e11061584ca4acad56312d7dafad51de0722c | 873f30cf1489c7856842b1a861c817f0f1963ed4 | refs/heads/master | 2020-06-12T19:03:47.656164 | 2016-07-06T15:48:51 | 2016-07-06T15:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 570 | r | size.r | #!/usr/bin/Rscript
library(RdbiPgSQL)
conn <- dbConnect(PgSQL(), host="localhost", dbname="ruby", user="dmg", password="patito32")
#res <- dbSendQuery(conn, "select date, avg(churn) from (
#select extract(year from datecomm) * 12 + extract(month from datecomm) as date, sumadd-sumrem as churn from commitsum natural... |
73951df60c9cbd86fb2ae46dabc605912560bcc9 | 1e4c9ffd2979c793edf1312b220abeecb3d1a25b | /man/computeMethylationProfile.Rd | aba16dd751b757992b15862f4d5432189e344e33 | [] | no_license | nrzabet/DMRcaller | e21e2919f191fbb9b5db4a8a91be15526c288c22 | 6191d9e68dee6e0a2daedc07485bdc939e84e14e | refs/heads/master | 2020-03-11T13:32:07.018510 | 2019-02-15T18:16:10 | 2019-02-15T18:16:10 | 130,027,757 | 5 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,209 | rd | computeMethylationProfile.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/profile.R
\name{computeMethylationProfile}
\alias{computeMethylationProfile}
\title{Compute methylation profile}
\usage{
computeMethylationProfile(methylationData, region,
windowSize = floor(width(region)/500), context = "CG")
}
\ar... |
f8b3a4da6762e08fd8c26dfff0b0e874b540f184 | 4f6639f66fc05559d38b46483cd26cdd1037d0f1 | /r/rproject2hrace/src/env.r | 8abde899d2dc310c59c82c4ec57ea34c7e7a6279 | [] | no_license | renc/coding_exercises | fb1bda9f4951ea7501dcdf253e82e35257c26352 | 2e531f548c92e066a473c7685be24776ff85196c | refs/heads/master | 2023-09-01T19:38:11.319703 | 2023-08-28T13:22:46 | 2023-08-28T13:22:46 | 16,608,891 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 498 | r | env.r |
row.win <- 50
start.date <- 50
period <- 1
finishing.position.ix <- 1
horse.ix <- 4
jockey.ix <- 5
trainer.ix <- 6
load.ix <- 7
weight.ix <- 8
interval.ix <- 15
odd.ix <- 16
race.ix <- 19
roll.back.horse.interval.1 <- 100 #300 # renc, original code use 300/200/100 but should be 100/50/20 from the comments
roll... |
dbc241d84c33c3f7490caeca43e00689790667d7 | c03726589af4d711b9d010e742ff5285ec42a76d | /plot.mc.C.r | 70d5887a6f67d9431eca05797de300774c9cc126 | [] | no_license | EmilyKlein/KPFM2 | abdda7d656104aa92628605478845f0ed27862ba | 7bcc660332d4f02a2dba828dfeee7025cd3b84da | refs/heads/master | 2022-01-31T15:40:35.618126 | 2022-01-18T22:14:37 | 2022-01-18T22:14:37 | 225,436,222 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,522 | r | plot.mc.C.r | plot.mc.C<-function(mc.object, quants = c(0.2, 0.5, 0.8), plot.trials = TRUE, annual.plots = TRUE, connector = "sum", page.layout = c(4, 4), Cylimits = c(0, 3), color.tags = NULL)
{
# auxiliary function to plot abundances from Monte Carlo trials
# George Watters
# code last edited 19 July 2006
#
if(!is.null(... |
767fc3b11c4d18b4b26878c6840b508c517dbef2 | d1525206f07392821e1c6611f8c70d3dbf686c7a | /man/perms.Rd | 3361562fb357091dd992a76208364188c4609c74 | [
"MIT"
] | permissive | mattwarkentin/sandbox | 8319143142f5069050d45275cb89a944111194da | 7b0cff18583b2ff14e9ce57373205ddf37a80c4b | refs/heads/master | 2020-04-18T09:41:49.185540 | 2020-01-24T21:14:43 | 2020-01-24T21:14:43 | 167,443,475 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,559 | rd | perms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/perm-test-funs.R
\name{perms}
\alias{perms}
\title{Permutation Resampling}
\usage{
perms(
data = NULL,
...,
strata = NULL,
times = 25,
apparent = FALSE,
seed = NULL
)
}
\arguments{
\item{data}{A data frame.}
\item{...}{Column nam... |
802f58da4a714c24202cc3702e7309b8354ccd28 | fe41c9601e66865451ee464e937a1d3bfe3f507e | /cachematrix.R | 731e4a6067d9dfca583c1ad583ecca24a14b8bd5 | [] | no_license | ecrvanberkel/ProgrammingAssignment2 | 0e88e94c8a8d6da45bcfa153579dc50d56a287d3 | bacc43c04f1567439c58fe1064a1afeb1ab9d95d | refs/heads/master | 2021-01-12T20:56:01.678618 | 2014-05-21T11:54:22 | 2014-05-21T11:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,103 | r | cachematrix.R | ## These functions are able to compute the inverse of a matrics and
## store it to cache. The next time an inverse is to be computed,
## it is first checked whether the inverse already exists and it is
## only recomputed if the inverse does not yet exist.
## In makeCacheMatrix, a list is created which is used for inse... |
48078d6436ae3a1a6b6c18978ade5feffb684a3d | 984852db807b748035294db8843d570a336ca2b2 | /Lab/Lab2.2.R | d9c20697e82be4b78146a53cabc63bd90f77f21c | [] | no_license | xiaoyaoyang/Applied-Data-Science | f6502b5bcfe0f08f5b87ddfe63c4082cea661c0e | 4031345ca5e82bbb9902fcc40aac0c70737afccd | refs/heads/master | 2021-01-02T22:45:45.150783 | 2014-10-27T20:50:13 | 2014-10-27T20:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 213 | r | Lab2.2.R | \documentclass{article}
\begin{document}
@BOOK{barberBRML2012,
author = {Barber, D.},
title= {{Bayesian Reasoning and Machine Learning}},
publisher = {{Cambridge University Press}},
year = 2012}
\end{document} |
b2db90a48f3576483b4248806b3ce0304a8f9cd2 | 9721b23133259c14b670297ea36a6e55a6040e1b | /man/ia_cast.Rd | 5e7471aae392cabde5038d5159284ba028a623d4 | [] | no_license | ryantimpe/ipfitr | 8261d959cb0e79f746af0ec3ba00fdf213229442 | 272448090af95c63092471b7d01997db041cf3e3 | refs/heads/master | 2021-10-12T00:04:45.603694 | 2019-01-30T21:26:45 | 2019-01-30T21:26:45 | 103,159,300 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,307 | rd | ia_cast.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ia_cast.R
\name{ia_cast}
\alias{ia_cast}
\title{Use one vector to fore- or backcast another vector}
\usage{
ia_cast(target, cast_source, cast_source_metric = "level",
direction = "forward", base_index = NULL)
}
\arguments{
\item{target}{Vec... |
83ea8f293cf27b8e1e674892773b42a73fb640dd | a5e49e9b3e7892ce476bab528cde3f686d5a5e3d | /R/reg.5Plot.R | 7b7da712898a89ec36facc0aec8b938897fe59d2 | [] | no_license | cran/lessR | a7af34480e88c5b9bf102ab45fa6464a22ffbe3b | 562f60e6688622d8b8cede7f8d73d790d0b55e27 | refs/heads/master | 2023-05-29T07:57:09.544619 | 2023-05-14T20:20:02 | 2023-05-14T20:20:02 | 17,697,039 | 6 | 3 | null | null | null | null | UTF-8 | R | false | false | 10,554 | r | reg.5Plot.R | .reg5Plot <-
function(lm.out, n_res_rows=NULL, n_pred_rows=NULL,
scatter_coef=FALSE, X1_new=NULL, ancova,
numeric.all, in.data.frame, c.int, p.int, plot_errors=FALSE,
digits_d, n_cat, pdf=FALSE, width=5, height=5, manage.gr=FALSE,
quiet, ...) {
nm <- all.vars(lm.out$terms... |
bbab6ccfa17d77d4964f563cccf1b6b359caff88 | 42289239f68be6a947a917bb88cd77443cc4e762 | /functions/create.energy.time.sequence.R | 3ed63807bfb75bb71db070df286ea854eb512023 | [] | no_license | Ness2/ecogenie | 7802e8f8b2227ea5ccffbe56b25a1aefdf6c031d | 004bf5d61294e82d0d8c8d3bd590f26e5ff3dadf | refs/heads/master | 2021-04-06T08:21:09.876443 | 2018-05-01T13:56:50 | 2018-05-01T13:56:50 | 125,255,976 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,331 | r | create.energy.time.sequence.R | #####################################################################################
#
# create energy time sequence
# - for energy-years
# - start of energy-year is on April 1st
# - end of energy-year is on March 31st
#
#####################################################################################
c... |
6b24d8107868bfe8ef77574c168895b090d569f5 | 461669c8e2b2aaeb5823dcf07e0e6a0bfe38c77d | /exemplos/09-exemplo-arvore-pt1.R | 6b17f5b099139d8da28e74f99679d81545fe2f2c | [
"MIT"
] | permissive | curso-r/202104-intro-ml | aba675b6af96bd9efb74b29fdb7d8df33de08050 | 8971b4bdfc6da9a9fc4424fab07dd9090643ce1b | refs/heads/master | 2023-04-29T06:20:19.317100 | 2021-05-21T01:28:06 | 2021-05-21T01:28:06 | 315,781,009 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 724 | r | 09-exemplo-arvore-pt1.R | library(tidymodels)
library(tidyverse)
library(rpart)
library(rpart.plot)
dados <- tribble(
~Pressão, ~Glicose, ~Diabetes,
"hipertensao" ,92 , "nao",
'normal' ,130 , "sim",
"normal" ,130 , "nao",
"normal" ,55 , "nao",
"hipertensao" ,220 , "sim",
"normal" ,195 , "sim"
... |
9122a3527b7132a0c85ac7bc5bac0d7d0b9f26c3 | dd9631162faded93831096c8459c9133a3a4a507 | /man/furrr_options.Rd | 2973a5e96745e5d55c898b07f432d11c515ce2aa | [
"MIT"
] | permissive | DavisVaughan/furrr | c6eae607aaad6b1fcb33d2f9812f893ddad9bc19 | aa124bc06d9fc3e18ea047cb90d270ebeb8d9698 | refs/heads/main | 2023-08-26T09:58:43.261373 | 2022-08-15T19:35:39 | 2022-08-15T19:35:39 | 129,414,651 | 698 | 44 | NOASSERTION | 2023-01-17T03:37:54 | 2018-04-13T14:38:15 | R | UTF-8 | R | false | true | 5,857 | rd | furrr_options.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/furrr-options.R
\name{furrr_options}
\alias{furrr_options}
\title{Options to fine tune furrr}
\usage{
furrr_options(
...,
stdout = TRUE,
conditions = "condition",
globals = TRUE,
packages = NULL,
seed = FALSE,
scheduling = 1,
... |
dc03a193ce003e40707826ef3f1d7b7e2f7186c0 | 8f21792a43ea9d59275e2afdef59dbcc0cec1410 | /EJERCICIO CALCULO PRIMA DAÑOS PROPIOS manuel_delpino.R | 0f11ab080e4bd07ab94b9f8832e423c5845dd20f | [] | no_license | Manueldelpino/Pricing-y-Tarificacion | 8d026d6600fdd032c28964b61215c4c5f59d6195 | f534205dc8c059abb4879073421b3b7e380e7585 | refs/heads/master | 2020-06-23T15:41:04.369984 | 2019-07-24T15:55:11 | 2019-07-24T15:55:11 | 198,666,805 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,964 | r | EJERCICIO CALCULO PRIMA DAÑOS PROPIOS manuel_delpino.R | ### EJERCICIO CALCULO PRIMA DAÑOS PROPIOS - Manuel del Pino Guerrero
##### 1. Bloque de inicializacion de librerías #####
if(!require("zoo")){
install.packages("zoo")
library("zoo")
}
if(!require("caTools")){
install.packages("caTools")
library("caTools")
}
if(!require("ROCR")){
install.p... |
675e39e159692c509f63b4b24701cd4067206452 | 97558a08d71b43814c2e8884d40cd13fed3efab3 | /R/show_vinagre.R | a3925b2541e584ca6f1b23342120d529b06f1375 | [
"MIT"
] | permissive | sambold/bagR | 3cde66501497d3da08209d34d4cfdc19c9ea5a2f | eba539bd5aedcb766921a00183592d3d196d8f18 | refs/heads/master | 2020-09-25T08:25:55.671750 | 2020-09-08T20:45:36 | 2020-09-08T20:45:36 | 225,961,937 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 283 | r | show_vinagre.R | #' show_vinagre:
#'
#' @description oeffnet Vinagre
#' @param vinagre_port Numeric, gibt Port an auf dem Vinagre-Instanz laeuft
#' @export
#'
show_vinagre <- function(vinagre_port=5901){
# show browser (password: secret)
system(glue::glue("vinagre 127.0.0.1:{vinagre_port}"))
} |
9323ad63ef3223825472a0f19ef59e74f8488a8e | 246154d146ecfd6b6dd579200a8b65c4eba6b7ba | /man/unadj.Rd | f575a0061386bac85f3dcc81c5f8873c1f609420 | [] | no_license | cran/subtee | 310c2d481959e69237401ef303ecf0720e7d0247 | 92c86b0a4334580fb5010a78701d566b5c735080 | refs/heads/master | 2022-05-07T11:55:45.240047 | 2022-03-22T13:10:05 | 2022-03-22T13:10:05 | 162,720,131 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,914 | rd | unadj.Rd | \name{unadj}
\alias{unadj}
\title{
Treatment effect estimation based on marginal subgroup models.
}
\description{
Unadjusted estimation of treatment effects in subgroups.
Fits separate (marginal) models for each candidate subgroup, i.e. including
the subgroup as a main effect and interaction with treatment for ea... |
bc82435a5d2d094ea1d23c7131d432a966358b06 | b4aa624f520353afa3c82111d274b7d68b0c112a | /ARIMA model code.R | 9ae6dc87374d0acd9ab81983ea349f770e191673 | [] | no_license | jiaxijiaxi410/time-series-Rcode | b5eefa856d71d3dc59f7624254a0fa1d73e0f2d5 | d0f34b790c2e0ce10d1f219797ce881c59d52374 | refs/heads/main | 2023-04-04T22:27:32.478136 | 2021-04-03T19:10:06 | 2021-04-03T19:10:06 | 354,373,228 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,057 | r | ARIMA model code.R | rm(all)
library(forecast)
##We will R to simulate and plot some data from simple ARIMA models.
##Use the following R code to generate data from an AR(1) model with ϕ1=0.6ϕ1=0.6 and σ2=1.
#The process starts with y0=0.
y <- ts(numeric(500))
e <- rnorm(500)
for(i in 2:500)
y[i] <- 0.6*y[i-1] + e[i]
#Produce a tim... |
e8c2525f37aedb916a1ef9d4f4242e4ffa430347 | eac759ea418d8522b239cd420039c5047f34b546 | /R/size.comparing_probs.mcnemar.R | 1971646138403dc5d39c6f97ae1d2064cbf526f1 | [] | no_license | cran/OPDOE | 1dac02018283dcbe1ad0cd8b85736baf930718f4 | cc4f73c76e7a3655ddbc7fc8be069d150182f15d | refs/heads/master | 2021-05-15T01:55:50.474710 | 2018-03-17T21:49:18 | 2018-03-17T21:49:18 | 17,681,194 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 550 | r | size.comparing_probs.mcnemar.R | size.comparing_probs.mcnemar <-
function(p1=NULL, p2=NULL, delta=NULL,
alpha, beta,
alternative=c("two.sided","one.sided")){
if ((is.null(p1))&(is.null(p2)))
{h <- p1 <- 0.5}
if (is.null(p2))
{p2 <- p1-delta
h <- p1+p2-2*p1*p2}
if(alternative == "two.sided") {q1 <- qnorm(1-al... |
2642dd0eace03b73b66c9ad0bcfcfa6915280b09 | 6b04bdd75e32f2c290638b067f8c58ec1bdbe4a0 | /mvn_bernoulli_AntMAN.R | 76f1c7eaba263a635e5c1f7bef9876e09c1061c2 | [] | no_license | prisong97/AntMAN_submission | 3f3bc910cc82e10cabd983db23d907ebf58ae3e0 | c732dc771ad4f2a9857c3f0b7b21a6aacb55eb88 | refs/heads/master | 2023-03-27T19:15:37.375061 | 2021-04-04T03:21:35 | 2021-04-04T03:21:35 | 354,310,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,002 | r | mvn_bernoulli_AntMAN.R | ########################################################
library("devtools")
load_all('/Users/Priscilla/Desktop/antman/AntMAN/AntMAN')
# load external file
source("run_experiment_AntMAN.R")
########################################################
#load the data
data(carcinoma, package="AntMAN")
y_mvb <- carcinoma
n... |
14cd0091380639808db14486260aa86ad8a661c5 | daa8a987518a0251c4788c8ccc707b5d059f371e | /R/font.R | 3671f20ced86a62dea8e820b8f98a08e70de1770 | [] | no_license | ajrominger/sfiR | e74de40aa0028ba4d5962022ff869f27f066fd7b | e0b4e9757cc809ff7eca6157fb2a9a6f76555821 | refs/heads/master | 2020-03-19T00:50:56.958574 | 2018-06-01T23:19:54 | 2018-06-01T23:19:54 | 135,505,481 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 249 | r | font.R | extrafont::ttf_import(pattern = 'cmunbmo.ttf')
extrafont::loadfonts(quiet = TRUE)
pdf('test.pdf', family = 'CMU Bright', width = 3.7, height = 6.5)
plot(1, xlab = 'Long ass name', ylab = 'Other stuff')
text(1.3, 1.3, labels = 'fooFOOfoo')
dev.off() |
8af48b723d6097b85728f8b850b9f158f2f6ad5d | 5b62e239de22b36aa5f827e0e0fe7c732cecd551 | /marked/man/mixed.model.admb.Rd | 0d91d1c58b014652ff89af021a8f1a2aeadcc6f7 | [] | no_license | jlaake/marked | 46b3b2327f5ac6625a47f1da53f8fc9a1c2e7eac | 5ef47016f36056dc51e4e1638630447bec333c69 | refs/heads/master | 2021-09-08T11:22:28.162273 | 2021-09-06T21:26:43 | 2021-09-06T21:26:43 | 2,009,632 | 7 | 10 | null | 2019-09-16T15:52:25 | 2011-07-06T23:59:24 | R | UTF-8 | R | false | true | 2,351 | rd | mixed.model.admb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mixed.model.r
\name{mixed.model.admb}
\alias{mixed.model.admb}
\alias{mixed.model}
\alias{mixed.model.dat}
\alias{reindex}
\title{Mixed effect model contstruction}
\usage{
mixed.model.admb(formula,data)
mixed.model(formula,data,indice... |
c37163975f8a82f884e0c8a94a8a83b8e6524155 | a8e4f7ae7f9e695c50bba0998193a4dd42cfd508 | /Titanic case study/titanic_101.R | 861f6865f153aaa90b54f26db341cf065f16ba86 | [] | no_license | 106035007/Text-Mining | fe3c77a3c198c32ade8c4b8ff59f5b00912aec94 | abca47596e8de7181ab6edc965c3aabb7287d3cb | refs/heads/master | 2020-09-11T15:24:26.073308 | 2020-03-24T14:46:41 | 2020-03-24T14:46:41 | 222,110,050 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,443 | r | titanic_101.R | # http://www.networkx.nl/programming/titanic-machine-learning-from-disaster-part-1/
# https://www.kaggle.com/c/titanic
# https://trevorstephens.com/kaggle-titanic-tutorial/r-part-1-booting-up/
# https://trevorstephens.com/kaggle-titanic-tutorial/r-part-3-decision-trees/
# How to do the Titanic Kaggle competition in R -... |
591f36510fe164c638de7c1f3a1bb31413678736 | f7f61a04ae1f0b30c1c11083aa5424558da06df3 | /bk/S/clang/mlhfit/masaomi_mlh/mlh_fit/mlh_fit_kidera/result/16N_d_b.r | 11f4afbb0e4301a788eeb109efcfff2b88d594d4 | [] | no_license | gezhuang0717/ms2 | ac789867a621ad96cd789ccc74ae837348a97758 | 65fbeb43623dfc1b68d27a0cbffdd9c80065145b | refs/heads/master | 2020-12-03T08:04:57.084395 | 2017-06-28T10:02:02 | 2017-06-28T10:02:02 | 95,652,410 | 0 | 0 | null | null | null | null | SHIFT_JIS | R | false | false | 777 | r | 16N_d_b.r | output file : result/16N_d_b.r result/16N_d_b.s
Data file name : data/16N_d.dat
Number of points of data = 244
Number of parameters = 2
Number of free parameters = 2
Fitting region : 153 -> 231
Initial ... |
6b687eb7e034e1288a407df1a34920ee03e0f27b | 029f359113e3b40674bc9220c00406b60c302e42 | /support/readme2_va2_replication.R | 17371f05374ed6638ee3dffaa4f9cdf2b0ccfdf3 | [] | no_license | leiqi/readme-software | f713d195e30c84ae363074a85b2bd7ee70d8546c | 49ec05b56b3bfe1f6024a1bfa4ce12cfd6f69a2a | refs/heads/master | 2020-03-28T17:58:27.573173 | 2018-05-19T02:32:57 | 2018-05-19T02:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,253 | r | readme2_va2_replication.R | va2 <-
function(termMatrix,seed, nsymps=2, ...) {
# This is the function which runs all of the VA2 clusters and merges them into a single "ensemble" estimate.
# Takes the term matrix which contains
ensemble_VA2<-function(termMatrix,seed, nsymptoms=2){
# Measure running time
startTim... |
c74967f0f5d9059d661d5b5d5c049a8eaa1fbd0a | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ccaPP/man/ccaPP-package.Rd | ba3e53c95ba12805c8b4edc3c8c0378268b39de2 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 711 | rd | ccaPP-package.Rd | \name{ccaPP-package}
\alias{ccaPP-package}
\alias{ccaPP}
\docType{package}
\title{
\packageTitle{ccaPP}
}
\description{
\packageDescription{ccaPP}
}
\details{
The DESCRIPTION file:
\packageDESCRIPTION{ccaPP}
\packageIndices{ccaPP}
}
\author{
\packageAuthor{ccaPP}
Maintainer: \packageMaintainer{ccaPP}
}
\references{
A... |
cc529d1704f24f3ea90febec7875f26711f3e1a7 | 7c39da976f28af016e5b1f847e68473c659ea05d | /tests/testthat/test_segmentation.R | 01bfa6bf8185f8d446af7867eaec2f83d520817a | [] | no_license | cancer-genomics/trellis | b389d5e03959f8c6a4ee7f187f7749048e586e03 | 5d90b1c903c09386e239c01c10c0613bbd89bc5f | refs/heads/master | 2023-02-24T05:59:44.877181 | 2023-01-09T20:38:36 | 2023-01-09T20:38:36 | 59,804,763 | 3 | 1 | null | 2023-01-11T05:22:52 | 2016-05-27T04:45:14 | R | UTF-8 | R | false | false | 833 | r | test_segmentation.R | context("Segmentation")
test_that("duplicate segments", {
library(trellis)
library(svbams)
library(svfilters.hg19)
library(Rsamtools)
path <- system.file("extdata", package="svbams", mustWork=TRUE)
data(bins1kb)
data(germline_filters, package="svfilters.hg19")
bins <- keepSeqlevels(bins1kb, "chr3", pru... |
1c744da205bb7c7dc69d1666a7600a0dd4aa6bce | 7e0191ea7e31539200b1c6bebd35972f2f8bd7c9 | /run_analysis.R | c47e38e0b22484c25807dfcc976782144f2dc443 | [] | no_license | OzturkArda/Coursera_CleaningData_ProjectAssignment | a634b52194561663abf23abca27a536609e3c5c6 | 991ee0e50832ad8c841d4027acbc450c5de1e3c0 | refs/heads/master | 2021-01-10T15:59:33.904526 | 2016-01-31T20:16:25 | 2016-01-31T20:16:25 | 50,789,756 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,705 | r | run_analysis.R | # Author : Arda OZTURK
# Subject : Getting and Cleaning Data Course Project
# Date : 28.01.2016
#
##############################################################################
#
#This script is created to fulfill the tasks listed below:
#
#Task 1:
#Merge the training and the test sets to create one data set.
#
#Ta... |
5f9ded0d42e589d8c1705695094d3b47d8ab10ca | 8213941f015535abc4eda6aabaad02a6f31736de | /Github_Run_Code.R | bc02f0d6731697ebe0fbe2a0bc3f7ef8d6402aba | [] | no_license | mayank221/TABA-Assignment | 515c40c820f322011fedb607c87b5452e47fc6b1 | 30822abd1a306e2dc4480a8a81eaaa0cf35a26c9 | refs/heads/master | 2020-06-25T11:02:57.629882 | 2019-07-28T19:51:16 | 2019-07-28T19:51:16 | 199,291,247 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 153 | r | Github_Run_Code.R | library(shiny)
source("https://raw.githubusercontent.com/mayank221/TABA-Assignment/master/Dependency.R")
runGitHub("TABA-Assignment","mayank221")
|
8b2a0498208684ea6a91841b967644e7eb8e6839 | 91be731811b205de722f4a7b960133638be48713 | /R/markerQualityControl.R | 8e8eb95a2319ee02e48568e935e1e28decd6cdcf | [] | no_license | TanerArslan/SubCellBarCode | caa47f2b50120eea93abe3a1542a7f866389e41d | fb5b25d6c56cda4cc21cd13bfe0580ca6c800d2c | refs/heads/master | 2021-06-08T22:32:18.314935 | 2021-06-05T10:47:08 | 2021-06-05T10:47:08 | 172,898,704 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,930 | r | markerQualityControl.R | #' @title Evaluate the quality of the marker proteins
#' @description Given the proteomics data, quality of the overlapped
#' marker proteins are evaluated by correlating replicates of fractions.
#' @param coveredProteins character; list of marker proteins, gene
#' symbols, that are covered in 3365 marker proteins.
#' ... |
f1ede1f0fdaa81ca6d617879704232199edf27c5 | ae9970a483fa3023732ab726f12354f4d2aa9911 | /GIS pH analysis (all crops) v4.R | d3c8ae007628c224b3f24610205383807ed4a73a | [] | no_license | aj-sykes92/pH-optimisation-arable | 1460fb00c89de3c6e0c96724edfb28a4ea0788e0 | 09ba5d0355b1b20aa0dae855efeceabe433dad2b | refs/heads/master | 2023-01-21T12:40:16.379472 | 2020-12-05T15:51:30 | 2020-12-05T15:51:30 | 211,346,121 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 30,497 | r | GIS pH analysis (all crops) v4.R | # packages
library(raster)
library(tidyverse)
library(sp)
library(soiltexture)
data_repo <- "DEFRA Clean Growth Project/pH Optimisation/Extension for publication"
UK <- find_onedrive(dir = data_repo, path = "GIS data/DA shapefile/GBR_adm_shp/GBR_adm1.shp") %>% shapefile()
# read in soil raster data and stack
Soil_st... |
f31f9a235abbf0c13e45c7ce52f769f6cd3c4cbd | b946c489e67a65008de77a6a8da93f4d398e3f33 | /R/reco.R | 6b84eec253b387b4aa2a8b75f317c4410286b88d | [] | no_license | EPauthenet/fda.oce | 6380852e8998a0b956b46acc044c71717f5e1859 | 38c6b1d2dd6a4645235f7ec8db2dda7caad56c65 | refs/heads/master | 2022-12-10T14:37:26.095737 | 2021-02-01T13:14:00 | 2021-02-01T13:14:00 | 138,511,460 | 4 | 3 | null | 2022-12-07T02:45:42 | 2018-06-24T19:58:42 | R | UTF-8 | R | false | false | 1,580 | r | reco.R | #' Reconstruction of hydrographic profiles
#'
#' This function reconstructs hydrographic profiles with a chosen number of Principal Components (PCs).
#'
#' @param pca list containing the modes produced by the function \code{fpca}
#' @param Ntrunc how many PCs to use in the reconstruction, default is set to the total nu... |
fd19ecca3a5a7ada13814ccd698c88d14a55b8a1 | 8702f0dd56b29655402a4d4a191d67168cfd5878 | /AEGIS/Machine_Learning/LogisticRegression.R | e3fa5087dfad0aeeab4d2101435bf4cdf3a6494b | [] | no_license | vipin752/datascience-machineLearning | 6efb4f6e5a69dd7b18a75d8f257f44d3d2648811 | 82b1f6b97a0250371efe9a1737da7ec4e13249f5 | refs/heads/master | 2020-03-09T06:02:51.749802 | 2019-09-29T19:24:34 | 2019-09-29T19:24:34 | 128,617,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 958 | r | LogisticRegression.R | #Source video link: https://www.youtube.com/watch?v=mteljf020EE
#1: Load and try to understand the data
#install.packages("ISLR")
library(ISLR)
attach(Smarket)
View(Smarket)
?Smarket
summary(Smarket)
cor(Smarket[,1:8])
pairs(Smarket[,1:8])
#2 Split the data into training and test
smp_size <- floor(0.75 * nrow(Smark... |
868356756efef3a74e80b8f5ec81e681369191d3 | eff5959757dca0c497fa636490cdedeea36443bc | /codeLibrary/R/R/ggplot_part2.R | 1c119647c97533c7b73b4de83847889f583440b3 | [] | no_license | profSeeger/LVM-Code | 1b5ae20d18680ea91597ebcdbc3b799b0f5555d3 | f3886f0dcdd3267eda3f7d6c1406f2f0b7db624f | refs/heads/master | 2023-08-03T23:31:34.049529 | 2023-08-01T12:13:28 | 2023-08-01T12:13:28 | 177,437,983 | 0 | 0 | null | 2023-03-04T15:16:36 | 2019-03-24T16:10:06 | JavaScript | UTF-8 | R | false | false | 4,605 | r | ggplot_part2.R | # Introduction #######################################################################################
# The tidyverse is an opinionated collection of R packages designed for data science.
# All packages share an underlying design philosophy, grammar, and data structures.
# You can optionally nstall the complete tid... |
e994271b7f8d682305cd7e38ef056c617c6c62c3 | 6236bf2c0b93422485fc3b3affe682843bf71895 | /doc/code/data.R | 49c564a865d0be1613297d69e624772853299572 | [] | no_license | zjiayao/stat7614 | 0a6895876a903979fa0f2bed68844076e09f8d47 | a5f639642397e49e5aed8cd36c460f2b3fc966b6 | refs/heads/master | 2021-03-19T13:05:35.791009 | 2018-09-16T22:54:20 | 2018-09-16T22:54:20 | 121,031,089 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,176 | r | data.R | library(dplyr)
raw = read.csv(url("https://i.cs.hku.hk/~jyzhang/misc/cs_reduced.csv"),
header = TRUE) %>% data.frame()
raw$id <- NULL
raw$university <- NULL
raw$season <- NULL
raw$gre = raw$gre_verbal+raw$gre_quant+raw$gre_writing
raw$gre_verbal = NULL
raw$gre_quant = NULL
raw$gre_writing <- NULL
raw$post_data ... |
8eafcce44958304f0483a1b81ca22b61d8675418 | cf606e7a3f06c0666e0ca38e32247fef9f090778 | /test/integration/example-models/bugs_examples/vol1/mice/mice.data.R | 7067744884fc70867500a18614f2ea4ba9c7c4fd | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | nhuurre/stanc3 | 32599a71d5f82c759fd6768b8b699fb5f2b2d072 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | refs/heads/master | 2023-07-05T02:27:08.083259 | 2020-11-12T15:37:42 | 2020-11-12T15:37:42 | 222,684,189 | 0 | 0 | BSD-3-Clause | 2019-11-19T11:50:39 | 2019-11-19T11:50:38 | null | UTF-8 | R | false | false | 689 | r | mice.data.R | N_uncensored <-
65L
N_censored <-
15L
M <-
4
group_uncensored <-
c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4)
group_censored <-
c(1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3,... |
03c55a97b3b0d72171b8afb9d1f78265f00370c7 | 599d3aa9869829f5b6508d8169aab8ddcdb907b7 | /build_package.R | aa7e65f3d5b2a1ebe36ca98ea1ebfc1353705dd6 | [
"MIT"
] | permissive | databrew/portfoliodash | a31290e1b99354a12ad338653212158f19b50568 | 0ceeb9b21d5069aee5f7ddeb167bb31462cc761f | refs/heads/master | 2021-05-14T04:59:35.498354 | 2018-04-11T19:28:38 | 2018-04-11T19:28:38 | 116,656,208 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 307 | r | build_package.R | #! /usr/bin/R
# reconstruct_data <- FALSE
library(devtools)
library(roxygen2)
library(rmarkdown)
document('.')
install('.')
# render('README.Rmd')
# setwd('vignettes')
# render('vignette.Rmd')
# setwd('..')
# if(reconstruct_data){
# setwd('data-raw')
# source('create_data_files.R')
# setwd('..')
# }
|
39c63b0da5936a6192806021010fee69e2672576 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ggedit/examples/clone_facet.Rd.R | c993541ac7cdeff89057ee7a361c8fd537393f10 | [] | 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 | 264 | r | clone_facet.Rd.R | library(ggedit)
### Name: cloneFacet
### Title: Clone ggplot facet object
### Aliases: cloneFacet
### ** Examples
obj=ggplot2::facet_grid(a+b~c+d,scales = 'free',as.table = FALSE,switch = 'x',shrink = FALSE)
cloneFacet(obj)
cloneFacet(obj,verbose=TRUE)
|
f70d5c52d591c16bac1ade730459391f70e6d3b4 | d184e1fbff172fb64f823abde53b8e8125d78964 | /gg_Tuts.R | 94643709f84267ecec60276bec4bf71c3292e9f6 | [] | no_license | mahendra-16/gg_tutorial | c3c7bd1ed39baad7d276f4ea82079b97058268f7 | 669e6eadc8bb22ad443c6b7276a56a2050711cbe | refs/heads/master | 2020-04-06T16:08:39.907173 | 2018-11-14T20:37:54 | 2018-11-14T20:37:54 | 157,607,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 230 | r | gg_Tuts.R |
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length, y=Petal.Length)) + geom_point(aes(color=Species, shape=Species))
library(ggformula)
gf_point(Sepal.Length ~ Petal.Length,data = iris, color = ~Species, shape = ~Species)
|
8df77f76a2615a03242ebf54f7635ce9d4c45d0c | e80f2a5a0e13370e52cc97fe42f5c9edcc8eead5 | /man/cxhull_range.Rd | bf64eeac0c720a727a9c94ffbc775e7821d09579 | [] | no_license | marlonecobos/rangemap | 80cd91c6847338763f793ad7ac66f6fc3a1210eb | 1edfc01612a120de25f92cf651e9ca64a4f8535a | refs/heads/master | 2022-05-21T11:48:08.929230 | 2022-04-14T17:51:43 | 2022-04-14T17:51:43 | 133,424,345 | 17 | 11 | null | 2020-09-15T03:58:57 | 2018-05-14T21:36:23 | R | UTF-8 | R | false | true | 910 | rd | cxhull_range.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ranges_doc.R
\docType{data}
\name{cxhull_range}
\alias{cxhull_range}
\title{Example of sp_range* object based on convex hulls}
\format{
sp_range_iucn with 6 slots.
\describe{
\item{name}{character, name identifying the origin of the object.}
... |
96b04bc818282c68c81772bfba4949ed9e206d9d | 2e0db0e29d4f9be2fdf97750aca3f6834d087fd4 | /exploring categorical and numerical data.R | 6fbf383df5abdde9d351cd7340fb30595bf0ae30 | [] | no_license | agbleze/Academic-repo | 049f0b23de5e9313988a785e03568fcc6146abf7 | f3d959c5e93e5d516081e4cdd167350b0e862031 | refs/heads/main | 2023-08-01T00:08:29.281134 | 2021-09-10T21:05:48 | 2021-09-10T21:05:48 | 372,232,015 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,873 | r | exploring categorical and numerical data.R | library(moments)
#install.packages("moments")
library(outliers)
#install.packages("outliers")
testData <- read_xlsx("~/Downloads/R FOR DATA ANALYSIS AND SCIENCE/R_Business_Analytic/Baseball Salaries 2011.xlsx")
testData
View(testData)
library(ggplot2)
library(readxl)
testDatan <- read_excel("~/Downloads/R FOR DATA ANA... |
eedc90d771711e94001d30a7fadd26808594f71a | d08e69198fbd60086aa35d765c7675006d06cf3f | /R/dlines.R | 92951eb48cc88eaa5bbf108b266ea7de822bc0b6 | [] | no_license | villardon/MultBiplotR | 7d2e1b3b25fb5a1971b52fa2674df714f14176ca | 9ac841d0402e0fb4ac93dbff078170188b25b291 | refs/heads/master | 2023-01-22T12:37:03.318282 | 2021-05-31T09:18:20 | 2021-05-31T09:18:20 | 97,450,677 | 3 | 2 | null | 2023-01-13T13:34:51 | 2017-07-17T08:02:54 | R | UTF-8 | R | false | false | 240 | r | dlines.R | "dlines" <-
function(SetA,SetB,lin="dotted",color="black", ...) {
np<-nrow(SetA)
if (length(color)==1) color = rep(color, np)
for(i in 1:np) lines(rbind(SetA[i,1:2],SetB[i,1:2]),lty=lin,col=color[i], ...)
return(NULL)
} |
dc5488eaf2cbe559a17bb5b35e9e818e01c946d9 | c7a15db8eae83c859bfdbe1e62ab5a7075493637 | /lib/covidPlots/R/newEvents.R | 8376d53e1181bbd2f1ebdfb64d3c531610481900 | [] | no_license | dgJacks0n/covidPlots | 0cd911a9eebe0a97085a2c1a2aad0646b703e9ac | c056bbfe2f8256534d2fe2d78eb274eacef3591c | refs/heads/master | 2021-07-15T18:27:16.258077 | 2021-04-05T00:45:49 | 2021-04-05T00:45:49 | 250,050,837 | 0 | 0 | null | 2021-04-05T00:45:50 | 2020-03-25T17:51:49 | R | UTF-8 | R | false | false | 914 | r | newEvents.R | #' Calculate new deaths and cases from cumulative values
#'
#' @param myData state or county-level data
#' @param level level to group data at
#'
#' @return input data with additional columns 'new_cases' and 'new_deaths'
newEvents <- function(myData, level = c("state", "county")) {
# use on state for state-level bu... |
b0d1c5e9dd670b798e2db99f70693459689bfa8d | 3c10b4570575457750e12d97e2366fb10a21490e | /cachematrix.R | 977b855a26405c874668bc476c4e71aea7e42c98 | [] | no_license | fat-rabbit/ProgrammingAssignment2 | 0e59e55e9a96681e3ddcb68d94f0eb04fb64a0b9 | b15e1110f1c832d88a03e9cc2d2ec74e2977e07d | refs/heads/master | 2021-08-19T14:15:58.331463 | 2017-11-26T16:01:54 | 2017-11-26T16:01:54 | 112,083,342 | 0 | 0 | null | 2017-11-26T13:08:18 | 2017-11-26T13:08:18 | null | UTF-8 | R | false | false | 1,336 | r | cachematrix.R | ## Creates special object 'cacheMatrix'
## and deal with it for getting inverse of the matrix
## Creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(msource = matrix()) {
if(is.matrix(msource)){
functionToApply <- NULL
se... |
df41857556c289848692d42df8dd67f384cb58ee | 698bb4ca00e389fa6feb2fb8c7f6dc275049f698 | /eagle2/man/eagle2_re.Rd | 20a3e4915d14251b281d597f5c86c3a28155adce | [] | no_license | davidaknowles/eagle2 | 25d324fa3c387d205c90e4cd7346c7430d4810bb | 3ac7b66968ed4ad96104e27f9c17cd4de7c73d0d | refs/heads/master | 2021-01-22T19:49:45.773200 | 2018-10-13T21:04:52 | 2018-10-13T21:04:52 | 85,250,216 | 0 | 2 | null | null | null | null | UTF-8 | R | false | true | 866 | rd | eagle2_re.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eagle2_re.R
\name{eagle2_re}
\alias{eagle2_re}
\title{Beta binomial GLMM with flips. Prior on concentration parameter is Gamma(concShape,concRate)}
\usage{
eagle2_re(ys, ns, concShape = 1.0001, concRate = 1e-04,
USE_LBFGS = T, burnin = 3000... |
77e84fcb65ae166fc97cf193f7455737ac0d6dd7 | 5e2d2b544ef2661a4d65dced302730cbc524c1be | /cachematrix.R | 054e0cbafef7625bb9dbce655c713e6b4cbe85f2 | [] | no_license | jc873/ProgrammingAssignment2 | 4cb191a430af5c4d61fa7a50b89e82c63534dae0 | baf2cb69f2baa6e7ab229cc049374c771c4ced1c | refs/heads/master | 2021-01-14T13:07:34.805903 | 2015-04-22T20:41:10 | 2015-04-22T20:41:10 | 34,410,312 | 0 | 0 | null | 2015-04-22T19:10:58 | 2015-04-22T19:10:57 | null | UTF-8 | R | false | false | 3,063 | r | cachematrix.R | ## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
## The following functions are used to cache an inverted matrix.
## Write a short comment describing this function
## makeCacheMatrix creates a special "matrix",... |
bacfb1b6459a16803d1dc5dad4d14bf004435ecf | 15828f1f15e5600801cf705fbc3dcbf0b6eb972c | /churn reduction.R | 089772ac3212404db39990ac8f21e11a246e7149 | [] | no_license | asif786raza/project | 41d74eb1c1d7a3c41979848f9a2b1c942e86a6f0 | 87e2914bf6a35d11d27f83b573b85aca0f03ba65 | refs/heads/master | 2020-03-25T19:42:30.231171 | 2018-08-09T04:26:06 | 2018-08-09T04:26:06 | 144,096,081 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,830 | r | churn reduction.R | rm(list=ls())
setwd("C:/Users/user")
getwd()
#LOAD Libraries
x=c("ggplt2", "corrgram", "DMwR", "Caret", "RandomForest", "unbalance", "C50", "dummies", "e1071", "information", "MASS", "rpart", "gbm", "ROSE")
lapply(x, require, character.only=TRUE)
#LOAD Data
Train_data=read.csv("Train_data.csv", header=T)
Test... |
db6dad9d9834fc0f17e6aa5fd82c7d395c56f328 | d1c351ea97dc9442bea3b6230e31fa060e23df8b | /man/queries.redshift.Rd | aeb27b1cc30c6907c4359acfcab4db4699ecd128 | [] | no_license | zhaojkun/db.r | 59967213cbd4d9255cc2c4d6f3248e3b65ab8f8a | 1899501d609ca76faba47a04ab1a4d629d746064 | refs/heads/master | 2020-12-07T05:14:35.627805 | 2014-12-17T14:30:20 | 2014-12-17T14:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,682 | rd | queries.redshift.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{queries.redshift}
\alias{queries.redshift}
\title{Queries for Redshift}
\format{\preformatted{List of 3
$ column:List of 4
..$ head : chr "select \%s from \%s limit \%d;"
..$ all : chr "select \%s from \%s;"
..$ unique: chr "select dist... |
da7fb0c9f0206e4fd234ac209269533e19d7729b | 8f0431de29762061acb57e06f492d22d5ce2604f | /tests/testthat/test-gt_win_loss.R | bb2097b250e7bf709e460bf3b877c5a5a6354ac0 | [
"MIT"
] | permissive | adamkemberling/gtExtras | 2c3e1a81d5dd97666dedab710d49377a2a7572dd | 40d1e5a006fa67833a702733055c94606f8cffb7 | refs/heads/master | 2023-08-17T11:12:00.431133 | 2021-10-13T16:28:10 | 2021-10-13T16:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,708 | r | test-gt_win_loss.R | # Function to skip tests if Suggested packages not available on system
check_suggests <- function() {
skip_if_not_installed("rvest")
skip_if_not_installed("xml2")
}
test_that("SVG exists and has expected values", {
check_suggests()
set.seed(37)
data_in <- dplyr::tibble(
grp = rep(c("A", "B", "C"), each ... |
112f429c7eab69168a243e28cd079897e4908654 | 8f94ccd8d3aed33b418cb9639dc64a159931ae4e | /R/transform-helper-functions.R | d57bc37ffa97443d77d9c2a166019ca473c6b686 | [] | no_license | cran/scan | 8c9d9b2dc44bbb8c339be3795a62bb5c49be87b0 | 860599c21c4c5e37746fa8e6234c6f6cc8028070 | refs/heads/master | 2023-08-22T17:47:22.450439 | 2023-08-08T13:00:02 | 2023-08-08T14:31:36 | 70,917,562 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,054 | r | transform-helper-functions.R | #' @rdname transform.scdf
#' @param lag Number of values surrounding a value to calculate the average
#' @export
moving_median <- function(x, lag = 1) .moving_average(x, lag, median)
#' @rdname transform.scdf
#' @param lag Number of values surrounding a value to calculate the average
#' @export
moving_mean <- functio... |
edf0cc96c8d5865c9de31b343c830b1f12a3d71a | a1ddcadac53260794a3198e6e614b3427bcae19a | /demo/MA(2).R | 9cfa8d0ca61c9392edc749aea3816b1c03ff3dfd | [] | no_license | xiaoyulu2014/ABCpack | 2b2b3ce54d3713a8e4b2ae9bc4f90d9cfbb28444 | a536410320cee3e94b6de23649c9e404af5c3d14 | refs/heads/master | 2020-05-18T18:03:11.675068 | 2015-02-06T12:47:38 | 2015-02-06T12:47:38 | 30,258,157 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,727 | r | MA(2).R |
######################################################
##data generation MA(2)
n = 100
q = 2
theta = c(0.6,0.2)
u = rnorm(n+q, 0, 1) #shifts the indices by q
y = c()
for (k in 1:n) {
y[k] = u[k+q] + t(theta) %*% u[(k-1+q):k]
}
##define prior and likelihood sampler
prior = function() {
a = runif... |
709d6fe5a6edbb5ee1b434aed121749a68bf0e8e | 4c311a95facb2b74a65329b9fffac402888d914f | /data_science_capstone/model_builder.R | 23c296539171029a45b734c4d6eff1df56fd49ad | [] | no_license | ttirm/Coursera_DScience | 5a4115e0e8138501590f87bca931c978717e397a | 05d72ee36f9a15c2084da6d67202a8cd551fbe55 | refs/heads/master | 2021-01-16T23:09:59.660515 | 2016-10-29T16:26:54 | 2016-10-29T16:26:54 | 72,292,251 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,437 | r | model_builder.R |
# Load the necessary libraries
library(plyr)
library(tm)
library(RWeka)
library(NLP)
library(openNLP)
library(magrittr)
library(openNLPmodels.en);
library(SnowballC)
library(slam)
start <- "sstrtss"
# Bad words list
#################################
url <- 'https://gist.githubusercontent.com/ryanlewis/a37739d710ccd... |
45c2860c91e7e571c1e8e2ffbd2b8d3e69ec17d2 | 62e1665efcbd67bc0de0d9be749d5d2b222c80ce | /R/dipfix.R | 1bd397ca05d54ccf03c11678abe5e8f7cc899a68 | [] | no_license | sewouter/StratigrapheR | 25e669143eeb73051e79e0b4cb490e6060ed0d4b | 2d19b6cc5dbbb4bade454ad83b61842d2f8871e1 | refs/heads/main | 2021-09-28T00:26:51.110494 | 2021-09-24T12:23:45 | 2021-09-24T12:23:45 | 341,558,856 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,121 | r | dipfix.R | #' Fix Dip
#'
#' @description Fix dip and strike of planes so that they fall in the correct
#' quadrant. The provided quadrant is the determining factor. If unavailable or
#' not helpful, the sign of the dip is used as determining factor.
#'
#' @param strike strike of the data; it is the angle from the north of
#' the ... |
6898655052159234b48d602aaee26a74552b2ed5 | fffd71a82402b0d147ef1aeadce101f047ebe7fc | /shiny/thermoclineAdjustment/functions.R | b935c3393aba8b1512416798a35c1261c9b2093d | [] | no_license | ferag/DataManagement | b8cb57f18eaabe241a68b1a7435a7009755e3a45 | 49a1fbd36d7b9c51ef951a92d99d4ee880d65d99 | refs/heads/master | 2020-12-02T08:15:01.784829 | 2017-07-11T09:15:09 | 2017-07-11T09:15:09 | 96,793,178 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,098 | r | functions.R | library("RMySQL")
getProfile<- function()
{
db='processed'
query='SELECT startDate, endDate from profile WHERE YEAR(startDate)=2014'
con <- dbConnect(MySQL(),user="webuser",password="webuserpass",dbname=db,host="doriiie02.ifca.es")
profileList <- dbGetQuery(con, query)
dbDisconnect(con)
return... |
6781b84530f3aa78bf33487c87b0cbb412b53fa5 | 28e4fe8e74911e8adb9c852a3640a4cc3d988ab1 | /R_scripts/test_fanos.R | c7446c617273344e77de720dbc8b852668e92dc8 | [] | no_license | MikeDMorgan/flow_pipeline | 09a7481d9e85cb5248891f59f2c507750d1b1d2a | d551cb53748d87013fe34b9a55dacd813e00589d | refs/heads/master | 2021-01-15T10:07:20.759454 | 2016-10-31T14:49:51 | 2016-10-31T14:49:51 | 41,031,501 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,213 | r | test_fanos.R | library(ggplot2)
library(reshape2)
library(ICC)
source('/ifs/devel/projects/proj052/flow_pipeline/R_scripts/multiplot.R')
# one file - test
df1 <- read.table("/ifs/projects/proj052/pipeline_proj052/twin_files.dir/CD4_Tcell_fano-Aq.CD45RA.CD3-P2",
h=T, stringsAsFactors=F, sep="\t", row.names=1)
df2 <... |
50942d0320b0d9cea91fd1ffc2db30280e852bad | 84952d1e47391c3f40c652d31cd3d0299b6a168a | /man/Sequence_Duplication_Levels.Rd | c16271d84b5c0c3a9aee8840d601242101a05301 | [] | no_license | AngelikaKritz/ngsReports | 476e3254391d3f94e6335f95b6ba1c5f1ae3113c | 14c8052ff2518dc3f83ed62208837476595d07ab | refs/heads/master | 2020-04-28T22:59:16.813890 | 2019-02-05T16:56:24 | 2019-02-05T16:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,597 | rd | Sequence_Duplication_Levels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Sequence_Duplication_Levels.R
\docType{methods}
\name{Sequence_Duplication_Levels,FastqcData-method}
\alias{Sequence_Duplication_Levels,FastqcData-method}
\alias{Sequence_Duplication_Levels}
\alias{Sequence_Duplication_Levels,FastqcDataList-m... |
73c967d1de61af1b6f033c39c68b3b45f7051f9d | 4a58c1124aab594575ca5c87a58e451056f96008 | /gnmDayCourse.R | 275bc9fb22c58c1769766faf612f307ed392726f | [] | no_license | hkejigu/gnm-day-course | c2bd4efa8efc28f7b0265c439915b027f7875fb4 | eb77c995c0ea1d1ef5dcc0b5abbdb81ca7f72762 | refs/heads/master | 2020-04-13T19:58:37.109656 | 2018-06-20T15:34:14 | 2018-06-20T15:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,576 | r | gnmDayCourse.R | ## ----setup, include = FALSE----------------------------------------------
library(knitr)
opts_chunk$set(fig.path = 'figure/beamer-', fig.align = 'center',
fig.show = 'hold', size = 'footnotesize')
## markup inline code http://stackoverflow.com/a/16406120/173755
knit_hooks$set(inline = function(x) {
i... |
67e30162b0ab6f1dd42badf2a78585a2fce3f693 | 22793bd62a12a4663e7e3a720a683b021bb5ab73 | /src/examples/console/readLines.R | ab691fb98dc67e578d218e22e7a83d41ca2d9f05 | [] | no_license | veltzer/demos-r | 8f9a4947287ad1c8a5021c449e54153931778c1b | ad19c05ed697a4b0366f04a9401638ab61020547 | refs/heads/master | 2023-07-07T10:28:54.702975 | 2023-07-01T14:37:40 | 2023-07-01T14:37:40 | 28,448,519 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 184 | r | readLines.R | #!/usr/bin/Rscript
# This method of waiting for user input will work
# in a script (Rscript) well.
cat("Press [enter] to continue...")
invisible(readLines('stdin', n=1, warn=FALSE))
|
8aba88ea0a5676f7c4aa62614a763bd420d0c16b | 9f081507cfad007ff1321f3e8553bdadef734d54 | /man/crop_map_spdf_maker.Rd | ce08a90b085bb1ee0ce39d8983ef05ca15cb7628 | [] | no_license | harithmorgadinho/ggg | 42f420602324bdef7cb5f84845d346fa1efb476c | 9c0943cb817bb84485effca80464cc0b7a3347da | refs/heads/master | 2020-05-18T00:57:55.489851 | 2019-05-13T16:57:33 | 2019-05-13T16:57:33 | 184,076,468 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 515 | rd | crop_map_spdf_maker.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crop_map_spdf_maker.R
\name{crop_map_spdf_maker}
\alias{crop_map_spdf_maker}
\title{crop_map_spdf_maker}
\usage{
crop_map_spdf_maker(input, crs = "auto", zoom_out = 1)
}
\arguments{
\item{input}{df or raster}
\item{crs}{projection of data pr... |
789dfdf3b53c8161529a486627e31febfdaa408a | dd8132404e8c7b028cb13cba904c50aace01c6a7 | /swt/src/spc/c1.u/c1_alloc.r | 532adb90c332038e404a943d05e3d5f522ad3c20 | [] | no_license | arnoldrobbins/gt-swt | d0784d058fab9b8b587f850aeccede0305d5b2f8 | 2922b9d14b396ccd8947d0a9a535a368bec1d6ae | refs/heads/master | 2020-07-29T09:41:19.362530 | 2019-10-04T11:36:01 | 2019-10-04T11:36:01 | 209,741,739 | 15 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,724 | r | c1_alloc.r | # enter_id_decl --- given a pointer to an identifer name, a
# a storage class, mode, and parameter list,
# enter an identifier in the symbol table
subroutine enter_id_decl (id, mode, xsc, params, arg, body)
pointer id # text pointer in, pointer to SYM entry out
pointer ... |
9b7e74e11c892e6d1b3c4107f616d03c7e19eeb9 | eaf654a68caab37b7dc9231421713c990f3b9b9e | /run_analysis.R | a3b45cb6b0b4e9dcb5e0dbc57e25be4849d64aef | [] | no_license | fritss/GettingAndCleaningData | a1f4e49e6a662f64f7ef62c388d805ce20c92df5 | fce793998b99fc3825c5f7f026a863f2cf008dcb | refs/heads/master | 2021-01-11T15:45:33.676762 | 2017-01-24T15:49:27 | 2017-01-24T15:49:27 | 79,923,052 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,574 | r | run_analysis.R | library(data.table)
# the directory where all data is located
dataDir <- file.path(getwd(), "UCI HAR Dataset")
# the file with activity labels
actfile <- file.path(dataDir, "activity_labels.txt")
# the file with features
featfile <- file.path(dataDir, "features.txt")
# read the feature names
features <- read.table(... |
3c36c01fb894dd2c23c43d41ba14ce4ff0d38da2 | 610912b74d16e1fafb73357b3ae45bb1a5522ac3 | /R/Kanyama-simplified.R | c3f38db8bc29942295daf6256a6fc8322ae320bf | [] | no_license | loumishima/Kanyama-Data-Exploration | ff24de553b9e080e7dec965f01db306b5c2636a6 | e2b36f458386fcf7fcd7ef60158a476ecc9c6da2 | refs/heads/master | 2020-05-02T15:14:54.889094 | 2019-10-01T15:59:13 | 2019-10-01T15:59:13 | 178,035,003 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,259 | r | Kanyama-simplified.R | #Loading the libraries and dataset ----
library(dplyr)
library(readxl)
library(leaflet)
library(ggplot2)
setwd("/Users/gather3/Documents/Kanyama - Data Exploration/Kanyama Data Exploration/R")
source("functions.R")
setwd("/Users/gather3/Documents/Kanyama - Data Exploration/Kanyama Data Exploration/data")
Kanyama.raw... |
a597555ecc350be6c9718c7e47052994ce06461f | b80df8ae387e2990b04007768ab8633d2c622db1 | /R/ecflow_suite.R | 6ade63c8707ceeb5fc60f563e562238f011e5a95 | [] | no_license | waternumbers/ecFlowR | 215517bf86891580bb0d3a449d24353a5e2fef35 | 923a5db0e06ffa07803967c14d9370dc74a72c2a | refs/heads/master | 2020-07-02T13:47:15.532954 | 2019-08-16T16:52:59 | 2019-08-16T16:52:59 | 201,542,980 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,501 | r | ecflow_suite.R | #' ecflow_suite definition
#'
#' @description Functions for building ecFlow suites
#'
#' @param name name of the suite, task, family or label
#' @param val desired value for \code{name} to take
#' @param par parameter to set
#' @param start start of cron period
#' @param end end of cron period
#' @param step step of cr... |
3be8b3a1f6f03eb5f7352e00689775a216b5dfb2 | f67fedd3f28b44ffb4f4bb350308301d15d74d1f | /R/functions.R | 09f2d1164de9e52c4033c64eda5b07cb8d8c3dfd | [] | no_license | nandhinidev/IsoPatGen | e547032a84e2d712df26a3fa2c04dc9b882c7d45 | e3ffba94cb25537381db932262d1c23f395d857c | refs/heads/master | 2020-05-30T10:00:00.096463 | 2019-05-31T21:59:14 | 2019-05-31T21:59:14 | 189,662,435 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,961 | r | functions.R | # Functions to calculate the isotope distribution for each element
cdist <- function(carbon,ci)
{
if (carbon >= ci)
{
return(dmultinom(c(carbon-ci,ci),carbon,c(0.9893,0.0107)))
}
else {return(0)}
}
hdist <- function(hydrogen,hi)
{
if (hydrogen >= hi)
{
return(dmultinom(c(hydrogen-hi,hi),hydrogen,c... |
6b2038e82de0fdc7743d12b9067550328bd5757d | eec85f9050812d9ee1a3954b59acf5255fa22a01 | /Plot/Script/Fig1.R | cdb54ba5a883088478ec1f4d822dc3536d2567fc | [] | no_license | kjshan/SARS-CoV-2-Mutation-Spectrum | 58ec588654bc720b60ac9327d27d1f4c6b58041d | 4c18e9e71edfd36001e86271d0f36d31c4c3b0cb | refs/heads/master | 2023-04-07T03:02:09.466515 | 2022-12-07T05:44:15 | 2022-12-07T05:44:15 | 295,629,435 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,936 | r | Fig1.R | ###########################################################
#SARS-CoV-2 mutation spectrum
###########################################################
#color and themes
library(RColorBrewer)
brewer.pal(12, name="Paired")
Self1<-c("#1F78B4","#A6CEE3","#33A02C","#B2DF8A","#E31A1C","#FB9A99","#FF7F00","#FDBF6F"... |
ff39a8e8b97cd9f455e02921eedb3b05e6640655 | bc2da1dc6085d7cb83e46da2c86e58ecef2b73a7 | /data/2019-01-22/prisonHolds.R | 7fb5583e266fc8c2463d1d2b285de8f909f71165 | [
"MIT"
] | permissive | tanyaberde/tidytuesday | f2aa130c80e8aa713f1611f3b03cacf5d26385a9 | b6202565f634135b85608eaa0d75708925a71a9a | refs/heads/master | 2020-04-08T14:08:08.591005 | 2019-03-20T23:59:09 | 2019-03-20T23:59:09 | 159,423,426 | 0 | 0 | MIT | 2018-11-28T01:16:13 | 2018-11-28T01:16:13 | null | UTF-8 | R | false | false | 2,076 | r | prisonHolds.R |
require(tidyverse)
require(ggplot2)
# Get the data
url1 <- 'https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-01-22/incarceration_trends.csv'
incarc_dat <- read_csv(url1)
# Add a row ID for later joining if needed
d2 <- incarc_dat %>%
mutate(row_id = row_number())
# Have other_... |
f885371456d91d27f4d497a63db49105410ff6da | 3fc3964396f8010aae9345d37f551c4431c52ff9 | /R/read_label.R | d720dc7c2b301d6993f8214e50eb5c180f5ea632 | [] | 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 | false | 1,297 | r | read_label.R | #' @title Read Label File
#' @description Reads an \code{label} file from an individual subject
#'
#' @param file label file from Freesurfer
#'
#' @return \code{data.frame} with 5 columns:
#' \describe{
#' \item{\code{vertex_num}:}{Vertex Number}
#' \item{\code{r_coord}:}{Coordinate in RL direction}
#' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.