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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
982cd5516fe375f243459df76aa8da164444c8dd | bf304e7ffa1a7cd1c34358874e59f26aa18d8c6e | /man/kdplotnumz.Rd | 506640c804dc787378d5dee12018202e73ebbdae | [] | no_license | jpison/KDSeries | e9c05daa4296d3508c3d5ed497dd4667fb6164ee | 86835e1633698b1524edbff6393f569239b94433 | refs/heads/master | 2021-01-19T17:30:28.464273 | 2017-08-22T17:56:14 | 2017-08-22T17:56:14 | 101,063,307 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 668 | rd | kdplotnumz.Rd | \name{kdplotnumz}
\alias{kdplotnumz}
\title{kdplotnumz Function}
\description{Plot Number ZerosCrossing Curve vs Filter's Windows Width}
\usage{
kdplotnumz <- function(MAT, Positions=1:dim(MAT$MFilt)[1])
}
\arguments{
\item{MAT}{Matrix with Differents Filters(from kdmatfilter()).}
\item{Positions}{Plot filter place... |
601f3cf2b95457906a68df2caadc2212532b55b5 | 7dc95714e6ce1fc6c65279a8da618c69652f7fa9 | /man/geneInfo.Rd | d61565116131deb2b43bc1aa809a4a19a2b650e4 | [] | no_license | tiagochst/TCGAbiolinks | 0ed95a69b935edf9a94f24f7b31137698d5d3278 | f8f7fb9e2ad9147cb8ef09cc5d9dc19edb35e8db | refs/heads/master | 2021-01-18T12:33:31.573345 | 2015-11-08T11:18:47 | 2015-11-08T11:18:47 | 45,870,428 | 1 | 0 | null | 2015-11-09T22:16:58 | 2015-11-09T22:16:58 | null | UTF-8 | R | false | true | 293 | rd | geneInfo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TCGAbiolinks.R
\docType{data}
\name{geneInfo}
\alias{geneInfo}
\title{geneInfo for normalization}
\format{A data frame with 20531 rows and 2 variables}
\description{
geneInfo for normalization
}
\keyword{internal}
|
080ddd59c15a6a59477294b4b91740d891ff21ac | 8ffb7983b6deba81d2a83ac959998cc86749ec00 | /plot2.R | 2e94ceadcdd671f2ccc7ed7f6de225795ec07fc4 | [] | no_license | kathleen-hop/ExData_Plotting1 | ffbb49838f930da6a8e876df8765ac346ea5ae93 | 442a3028ce0cc9f2b93b731d61b36f3fbb3d9c94 | refs/heads/master | 2022-12-24T18:45:34.651558 | 2020-09-22T01:32:16 | 2020-09-22T01:32:16 | 296,841,580 | 0 | 0 | null | 2020-09-19T10:19:17 | 2020-09-19T10:19:16 | null | UTF-8 | R | false | false | 678 | r | plot2.R | #read in data
allData <- read.table("household_power_consumption.txt", sep = ";", header = TRUE)
#convert data and time variables
allData$Date <- as.Date(allData$Date, "%d/%m/%Y")
allData$DateTime <- paste(allData$Date, allData$Time)
allData$DateTime <- strptime(allData$DateTime, "%Y-%m-%d %H:%M:%S")
#subset data
sta... |
7739f3f797f1e7356fc38f0d8997b1e5b647cd63 | 168e077a90f0a3ec27b191cab93cb3ce0d8b8dd7 | /code/R/pval.R | b02d02f16320b5368ff80055082455e66285df3d | [] | no_license | runesen/icph | e71d2edd89aaef8cc1e21ec0fb4c40a84636e2a6 | 10b5ab5eb35b1765d7bc89c582f39e1d4d791b6a | refs/heads/master | 2020-03-26T04:01:50.991424 | 2019-12-08T22:18:28 | 2019-12-08T22:18:28 | 144,482,655 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 8,323 | r | pval.R | # Intersecting confidence regions and calculating pvalues
# source("fisher.info.R")
intersect.fun <- function(MF1, MF2, testpars, alpha=l/ne, arbvar){
w <- which(MF1$parameter %in% testpars)
if(!arbvar & "sigma" %in% testpars){
ww <- which(MF1$parameter == "sigma")
w <- w[!(w %in% ww[2:length(ww)])]
... |
cf3a3efe481b03f0c68ae971689d74aaf405d1bc | fbe895c5ceb7ffb1b49e4a3de9c8c9d1d3cd1aae | /man/gendata_Fac.Rd | 90dd0003252882af97583e0dd45b28a9049e72b5 | [] | no_license | feiyoung/TOSI | aba563334bf8e4cac07395a2494e2f9729cd2405 | ee68a1ca3239b60737749951b6e511cce0460c0f | refs/heads/master | 2023-05-27T14:41:49.209725 | 2023-04-29T13:01:52 | 2023-04-29T13:01:52 | 283,396,199 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,521 | rd | gendata_Fac.Rd | \name{gendata_Fac}
\alias{gendata_Fac}
\title{Generate simulated data}
\description{
Generate simulated data from high dimensional sparse factor model.
}
\usage{
gendata_Fac(n, p, seed=1, q=6, pzero= floor(p/4),
sigma2=0.1, gamma=1, heter=FALSE, rho=1)
}
\arguments{
\item{n}{a positive integer, the... |
f7120c26f8364aaa21b599d776f53f230d236ed0 | 3e692132e9a1372d5c9181fed53871febc547298 | /GEE of Version 09.07/GEE main function real data 03.R | f327606fd5f49be7fc0a51298e5f78ac40dcfe90 | [] | no_license | Duanchenyang/WeightedADMM | df00cdaa0fb2df7c17922de9b1e5d65ee01741ca | 97c5d75f8aa1f50dc89605bb682aa7610e3c7e97 | refs/heads/master | 2022-12-15T08:03:19.222045 | 2020-09-08T12:08:18 | 2020-09-08T12:08:18 | 266,042,696 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,927 | r | GEE main function real data 03.R | library(plyr)
library(fda)#bspline basis
library(Matrix)
library(matrixcalc)
library(igraph)
library(Rcpp)
library(tidyverse)
library(matlab)
data <-read.csv('GEE of Version 09.07/juvenile_growth.csv', header = TRUE)
timerange <- data$age.years*12
y <- as.matrix(round(data[,12:23]*data[,2],0))
X <- bsplineS(timerange,k... |
f7cac86c36ecb19c143cb9da6e95ae13580e604a | 12180c9c90eebc7137cef7f718c802b2d7047e44 | /calculate_overlap.R | d7ac888b51d0c8c6df5c2cf32863d25d70195c25 | [] | no_license | zhijcao/omics | 5444258e3cd1f20d2953b594ef649a3ec981af6c | ac924cfdfb6c465b1f9f2db0b34424468a9b9efc | refs/heads/main | 2023-08-28T01:30:03.572990 | 2021-11-11T20:02:32 | 2021-11-11T20:02:32 | 419,838,520 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,685 | r | calculate_overlap.R | col<-function (x)
{
if (1 == length(x)) {
overlap <- x
}
else if (2 == length(x)) {
A = x[[1]]
B = x[[2]]
nab<-intersect(A, B)
a1=A[-which(A %in% nab)]
a2=B[-which(B %in% nab)]
overlap <- list(a1 = a1, a2 = a2, a3 = nab)
#make results easy to underst... |
0a82f8142307a4fd3a650e7e17644d983bca5353 | 6bf04c9c71d566dfcbc5d498652764ce29cb1fd0 | /analysis/social_interdependence.R | c530a7ba0bf93b42b0e839343e210b7de3dfac7e | [] | no_license | bilakhiaricky/4cases_routines | df49257bd1e97953e310a63b837e160c4c36004c | d9d341b2a74e6ca61378c5234713d24f5d60abe3 | refs/heads/master | 2021-01-10T22:42:18.661241 | 2016-03-08T19:20:01 | 2016-03-08T19:20:01 | 54,907,444 | 1 | 0 | null | 2016-03-28T16:49:34 | 2016-03-28T16:49:34 | null | UTF-8 | R | false | false | 2,824 | r | social_interdependence.R | # load the data
create_network <- function(project){
dat <- read_seqdata_for_network(paste0("/Users/aron/git/4cases_routines/data/activity-", project, ".txt"), '2012-01-06', '2013-01-06')
dat_split <- split(dat, dat$id)
actors_per_PR <- list()
for (i in 1:length(dat_split)){
actors_per_PR[i] <- lis... |
558e264a4ec17cccb73b62ea9ad6d7d938025478 | a4981f3a463848081f67846c8b460a89c39c2353 | /twitter-rest-api.R | 8a91318081cb00af39632e01e98788a437ecb11a | [] | no_license | MUSA-620-Spring-2017/MUSA-620-Week-4 | 842bdb3e9d72910a523f5d53a7945df5f0e8677e | d476e48d2923b64160d0d736d3d9d39ca32fdd8e | refs/heads/master | 2021-06-11T18:28:49.472499 | 2017-02-10T22:32:01 | 2017-02-10T22:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 446 | r | twitter-rest-api.R | library(twitteR)
access_token <- ""
access_secret <-""
consumer_key <- ""
consumer_secret <- ""
setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret)
#When it prompts you with the question below, answer 2: No
# Use a local file to cache OAuth access credentials between R sessions... |
848a032594a1d0b0c400578e1c37c3002b91acae | 505ee53f4392dca51fccfc3b63f1c9814db93b1d | /R/dd_KI_sim.R | e377728185340ce04d9f4bce5c4cee4f6a64b91b | [] | no_license | EvoLandEco/DDD | 6ba006a696c17801b5f51350e28b5e5f29dc0b0f | 31b10b3f3aeda596570aabc264ca988dd8dbc4fc | refs/heads/master | 2021-07-11T00:36:31.811962 | 2020-12-07T14:48:34 | 2020-12-07T14:48:34 | 220,970,383 | 1 | 0 | null | 2019-11-11T11:51:36 | 2019-11-11T11:51:36 | null | UTF-8 | R | false | false | 13,137 | r | dd_KI_sim.R | dd_KI_lamuN = function(ddmodel,pars,N)
{
laM = pars[1]
muM = pars[2]
KM = pars[3]
laS = pars[4]
muS = pars[5]
KS = pars[6]
NM = N[1]
NS = N[2]
n0 = (ddmodel == 2 | ddmodel == 4)
if(ddmodel == 1)
{
# linear dependence in speciation rate
laMN = max(0,laM - (laM ... |
a348ccfa0ead4ffbc285940bacde93d1f19c482e | eccfcd967550ac1431856f1a5f83f7b3187b11ab | /data_analysis.R | 0563943fb82beb1540c73a6669986e470021cfaa | [
"MIT"
] | permissive | cgoettel/thesis | b7e32a118b1c036c1f47e218156115611e8c5d89 | b7bd9dbda729212123199d165639dc0b15e7c878 | refs/heads/master | 2021-03-16T05:42:41.521695 | 2018-04-05T20:30:09 | 2018-04-05T20:30:09 | 35,571,363 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,987 | r | data_analysis.R | # Initialization
## Packages.
## To install, run `install.packages("<package_name>")`.
library(car)
library(ggplot2)
library(grid)
library(Kendall)
library(lmtest)
library(sandwich)
library(stargazer)
## Input data
data <- read.csv("data.csv")
## Dataset without IS
data.mis <- data[data$Major != "is",]
## Dummy vari... |
fc73087f6336149d28c594066e8e8ec6f70a6f10 | 727ee66a4f5da790a3aeda05a7fd58e0d3ab6a4d | /Rpractical03.R | d64a4a82a9bb3e723fe22a38688a20befaaf8b83 | [] | no_license | TheEWave/My-R-practicals | b12cc63cc714d3d76c594b0a960804232006291c | 476981afb78b4f3efb2a9f8d904011004ef69289 | refs/heads/master | 2020-04-27T08:15:07.193068 | 2020-03-17T13:55:26 | 2020-03-17T13:55:26 | 174,163,762 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 187 | r | Rpractical03.R | y<- c(1,2,3,4,5,6,7,8,3,9,10)
#mean
mean(y)
#median
median(y)
#mode
names(sort(-table(y)))[1]
#range
range(y)
#inter-quartile range
IQR(y)
#Standard Deviation
sd(y)
#quartiles
quantile(y) |
fba9d5d97ab4e3abd5186dcb443e376238cb6bfc | e6c99af609e16b03a1e26f6c24a4d92b6edb3e4c | /Alex/tadpole_prep_dates.r | 077396d7e58341e78cb79e952b802e15be62d026 | [] | no_license | apclarkva/tadpole-project | 381144441d610c200275ec4ddf622bac945b6d41 | 46f85c7a7754b0387536bba5b43c726c50ed3491 | refs/heads/master | 2020-04-01T15:07:58.303689 | 2018-12-06T13:58:02 | 2018-12-06T13:58:02 | 153,322,675 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,696 | r | tadpole_prep_dates.r | ## Load in training information
trainingInputsRNN <- read.csv("data/trainingInputsRNN.csv")
validationInputsRNN <- read.csv("data/validationInputsRNN.csv")
## Load in targets
trainingTargets <- read.csv("TADPOLE_TargetData_train_pre_processed.csv")
validationTargets <- read.csv("TADPOLE_TargetData_validation_pre_proce... |
eedfc5277ee824d5f5e34022b008d1d38b2f6d61 | 30fdbcadb43c57a414ffa409cd70e5a52b478948 | /06-social-media-data.r | a6bf381a4e7b786b7d0db0e55577dbf24f7571a3 | [] | no_license | eborbath/rscraping-eui-2017 | 1d05cb91b1b26398e87333da0c69610cf74288e2 | 41b602f43deaa0c001f4c541cf3fc7ec1ab02167 | refs/heads/master | 2021-01-22T08:01:59.314758 | 2017-05-22T14:00:25 | 2017-05-22T14:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,715 | r | 06-social-media-data.r | ### -----------------------------
### simon munzert
### gathering social media data
### -----------------------------
## peparations -------------------
source("00-course-setup.r")
wd <- getwd()
## mining Twitter with R ----------------
## about the Twitter APIs
# two APIs types of interest:
# REST APIs --> r... |
d6fb31197fa56aad4e1e8fd37363ca946d02013e | 13c0687d2111ea43aad32f319b46a6f67bd2f53a | /__09_week_01/__09_week_serialize_02blobs/__f_funs.R | 4260e0e85817e1171583e1a92d60a7ce628e47ef | [] | no_license | davezes/MAS405_S2021 | 0a672892ca320dbad952697948b610adcffc0656 | 025a3ea1de268c05c1a426bdb8944d2367789847 | refs/heads/master | 2023-05-10T22:14:20.857391 | 2021-06-05T21:33:26 | 2021-06-05T21:33:26 | 350,537,508 | 4 | 6 | null | null | null | null | UTF-8 | R | false | false | 3,521 | r | __f_funs.R |
##### to use these, table must have fields
## "file TEXT, ",
## "segment INT(14), ",
## "raw_data MEDIUMTEXT, ",
### xobj <- xwav ; xfile <- xthisFN ; xdrv <- drv; xtableName <- "MAS405audio_serialSegs" ; xsegSize <- 10^6 ; xcomp <- "xz" ; xoverWrite <- TRUE ; xverbosity <- 2
f_dbwrite_raw <- function(
xobj,
xt... |
47f80e4395f59cecec00df6add5a27ef05626f20 | 4673e7ccf7fe53ff8dacb56453580cdb11075319 | /scripts/mapaincidenciagif.R | 3696f828f5aa9b4963859b0cb63739e70f00100f | [] | no_license | dogomoreno/Covid19-Sonora-Municipios | 2beb16fed697160b5785c961a6d88d6c6417a7d9 | 440eee0435dba671936194d8927e3dc4db95d690 | refs/heads/master | 2023-08-14T22:10:20.303409 | 2021-10-04T06:14:27 | 2021-10-04T06:14:27 | 274,054,270 | 6 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,727 | r | mapaincidenciagif.R | # Paquetes
library(tidyverse)
library(extrafont)
library(scales)
library(plotly)
library(htmlwidgets)
library(showtext)
library(tint)
library(rgdal)
library(rgeos)
library(ggiraph)
library(miniUI)
library(units)
library(reactable)
library(zoo)
library(lubridate)
library(treemapify)
library(wesanderson)
library(ggsci)
... |
cdcd9d242d26c1bc5901260675363c06d2b17269 | 7d8d298b008f1171bd11055ad311a16f63826eaf | /modeling/vector-occurrence-sdm/eval-cv-gam-tgb.R | 63a9860a991de9d8e0566b6e016723a31b004e15 | [] | no_license | jgjuarez/chagas-vector-sdm | d387b5a24a8468a4d3bf03a390e1a93c5382f451 | 2fe11f5cad13c2b179784af439327a6fb4f2ec0c | refs/heads/master | 2022-07-03T21:29:13.575668 | 2020-05-19T16:49:49 | 2020-05-19T16:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,517 | r | eval-cv-gam-tgb.R | library(purrr)
devtools::load_all("../../tcruziutils")
library(mgcv)
library(tmap)
folds <- readRDS("../../preprocessing/folds_list_vector_presence.Rds")
cv_res <- readRDS("cv-results.Rds")
# endemic zone country polygons
countries <- readRDS("../../preprocessing/countries.Rds")
p_endemic_zone <- tm_shape(countries) ... |
ec15cfbe604096cd3a24657924c8faae6a84f7e0 | 2ecbc024125f8d8bb983627cc8322f8682f79524 | /R/strip_.randomForest.R | 4dee1e85f13b2eacb6558b539d20a7706fac5c01 | [] | no_license | cran/strip | 1d83857506ee3882925539ac44888fcbb23dfb86 | af5187116b6e480a90c9f387293ed3f9550a339e | refs/heads/master | 2020-03-27T04:02:43.301804 | 2018-10-29T14:30:03 | 2018-10-29T14:30:03 | 145,907,925 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,712 | r | strip_.randomForest.R |
#' @author
#' The method for \code{randomForest} objects is adapted
#' from \href{http://stats.stackexchange.com/a/171096/55854}{ReKa's answer}
#' on StackExchange.
#'
#' @export
#' @rdname strip
#'
strip_.randomForest <-
function(object,
keep,
...)
{
keep <- match.arg(tolo... |
5d96998d9feda4ef0e79b197f5a5fefa8ff7144d | 47a6df31ea34de98fded35bc7fef1974ee35062e | /fetchNRSATable.r | cea8a375cec1341a0e78319223cdcabfc40ae1a2 | [] | no_license | jasonelaw/nrsa-epa | 4e2ec7b04ba1e441679496b7af9d41a780482e15 | 7ac13283e34a65890a0dad024ce8239168159fa2 | refs/heads/master | 2020-05-16T23:04:45.345580 | 2013-11-21T22:27:52 | 2013-11-21T22:27:52 | 14,342,574 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,663 | r | fetchNRSATable.r | # fetchNRSATable.r
#
# 10/05/09 cws Created
# 11/09/09 cws Does not create UID column unless BATCHNO column exists.
# Explicitely de-factors character columns.
# 11/13/09 cws Explicitely sets NA UNITS to ''
# 12/03/09 cws Standardizing empty UNITS as NONE and upcasing UNITS.
# 12/04/09 ssr/mrc Brilliant... |
5da857731855f58ed2b55a3fdf20bc352380192a | 75011b657b7473e51ac41f1ca3f00a9bcc557c9d | /man/plot.amce.Rd | 6c8d9073a14a71522bec3dfda6083d381806a620 | [] | no_license | cran/cjoint | 9f9efd775ac6aed4b1928b0f035b02a4abd59844 | f9f84fb2ae9c8dee6b7b4db64ef00b17a77c903b | refs/heads/master | 2023-09-01T01:26:43.447652 | 2023-08-22T07:50:07 | 2023-08-22T09:30:51 | 27,119,034 | 4 | 11 | null | 2023-01-09T23:28:38 | 2014-11-25T09:46:21 | R | UTF-8 | R | false | false | 8,669 | rd | plot.amce.Rd | \name{plot.amce}
\alias{plot.amce}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot AMCE Estimates
}
\description{
\code{plot} method for "amce" objects
}
\usage{
\method{plot}{amce}(x, main = "", xlab = "Change in E[Y]", ci = 0.95,
colors = NULL, xlim = NULL, breaks = NUL... |
91df1120ef6fe5e4427b4c31ac2671f33382f5d1 | e4211288e2e0818b3147f711b28e757cad82b6bb | /2_metab_models/run1/code/run_model.R | 1df982d2982ae65a628c9e0323fc4af9a6bcab21 | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | aappling-usgs/stream_metab_usa | 04a804c65fff3aeae8ab1d50d6c737fbd2cb4ce8 | 6b9e21de352df12001edcd91a9b5fc042b9744ec | refs/heads/master | 2021-01-24T01:01:45.831107 | 2019-03-19T14:45:25 | 2019-03-19T14:45:25 | 34,343,300 | 1 | 0 | null | 2015-04-21T17:57:37 | 2015-04-21T17:57:36 | null | UTF-8 | R | false | false | 1,787 | r | run_model.R | #' Do the modeling stuff specific to one config row. For the prep MLE run, run
#' the model and compile daily K and Q into a summary data.frame
#'
#' @import streamMetabolizer
#' @import mda.streams
#' @import dplyr
#' @import unitted
run_model <- function(config_row, verbose, outdir, model_name) {
# sleep somew... |
2c8b662995ea50a104e547650b1a73b0b4d33a12 | 58d7df72a0a4991039adb3fa0f162f48dda1850d | /app.R | eb93c30588f7e8a86140dcb525d07a412e47aff3 | [] | no_license | annettetran/shinyapp | 2db05a48e66b798c472aa52d598b588cb81068c7 | df4e65a7f05ffb023967b40398f5a2c81761b4fb | refs/heads/master | 2021-04-03T04:59:17.891508 | 2018-03-14T06:37:26 | 2018-03-14T06:37:26 | 124,464,989 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,768 | r | app.R | #####################################
#Salton Sea App
####################################
library(shiny)
library(shinydashboard)
library(tidyverse)
library(leaflet)
library(sf)
library(devtools)
library(maptools)
library(rgdal)
dust <- st_read(dsn = ".", layer = "Emiss_Dissolve")
dust_df <- st_transf... |
e09aa1ce70cb081e2980e34d7421d4abee554826 | 6fa6ffc373d37fbbfeb8e625987698100ee114e9 | /Pgm_SR/Barents.R | 29f6644d02d90099dfe553f96091b391f4e63b3d | [] | no_license | Rmomal/these | 57cd82130c6844fc422f53bb3212f2e22eaad9b3 | 9e65bf3048c407232fb9882c3b7f3f99026d935a | refs/heads/master | 2021-06-11T12:04:11.485315 | 2021-01-26T08:09:55 | 2021-01-26T08:09:55 | 107,094,010 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 912 | r | Barents.R | # PLNtree for Barents fish data
rm(list=ls()); par(pch=20)
library(PLNmodels)
source('../pack1/R/codes/FunctionsMatVec.R')
source('../pack1/R/codes/FunctionsTree.R')
source('../pack1/R/codes/FunctionsInference.R')
# Data
data.dir = '../Data_SR/'
data.name = 'BarentsFish_Group'
load(paste0(data.dir, data.name, '.Rdata... |
cdbafdaf5dd51ffd8471428541557c7ab10aabd1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/pivot/tests/test-unpivot.R | 4921038c93d3def24e9156cec8039c518adc48a9 | [] | 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 | 3,437 | r | test-unpivot.R | context("unpivot.R")
test_that("UNPIVOT construction", {
con <- simulate_mssql()
src <- src_dbi(con)
base <- list( x = ident('##iris')
, vars = tbl_vars(iris)
) %>% structure(class=c('op_base_remote', 'op_base', 'op'))
db_iris <- structure( list( src = src
... |
019e6ef8cb7457eba4d037bc254d0f5ebadff414 | 29585dff702209dd446c0ab52ceea046c58e384e | /geotopbricks/R/read.vectorized.geotop.recovery.R | a0553bf2af126a360caad96b57d668e0f2d2506f | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,788 | r | read.vectorized.geotop.recovery.R | # TODO: Add comment
#
# Author: ecor
###############################################################################
NULL
#'
#' Reads a text file like the one generated by \code{\link{write.vectorized.geotop.recovery}}
#'
#'
#' #. containing values and matedata of a z-layer brick referred to a time instant (e.... |
d3fbc294b48ec5d241d89f99e7709d1276cbf882 | 98ed123ae4350c79f3b4aeb2075a786e07e8f711 | /Assignment/Hypothesis Testing/BuyerRatio_Hypothesis.R | 99e8bc1e0e60927356d65b203f8ed0847e8978d3 | [] | no_license | ShilpaAChavan/Datascience-With-R | e1c582f08e2f2d32e055a09aacf54adb6a44c329 | 2a062317de101c72bb5d767d9bc036f2efb2b556 | refs/heads/master | 2021-01-05T05:15:30.844529 | 2020-09-20T15:36:13 | 2020-09-20T15:36:13 | 240,893,393 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,573 | r | BuyerRatio_Hypothesis.R | #################################Hypothesis Testing#####################################
#Problem Statement:Sales of products in four different regions is tabulated for males and females.
#Find if male-female buyer rations are similar across regions.
# Data : BuyerRatio.csv
#####################################... |
abaa8a8d957aba546c3f4c04630cb77d81844866 | 1e620d83967acb48dfba21436d88bf4697904ba0 | /scripts/14B-dynamical_scvelo_on_all_cbps_hto_samples.R | 60ca055b6a57eda9835eb1510cc434bbdf92d0bf | [
"MIT"
] | permissive | umr1283/LGA_HSPC_PAPER | e6c32af5fd7303dd93b802b7a2d04704d421b305 | 5ff879dc64d555452d8ee980b242a957f412b6c6 | refs/heads/main | 2023-04-17T15:57:57.025596 | 2022-07-18T15:27:35 | 2022-07-18T15:27:35 | 404,302,229 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 140 | r | 14B-dynamical_scvelo_on_all_cbps_hto_samples.R | #run scvelo in dynamical mode in cbps hto merged samples
reticulate::py_run_file("scripts/14B-dynamical_scvelo_on_all_cbps_hto_samples.py")
|
26d3674153d38652fbdfa521644bd865227364e5 | fd25b96601cf7ac4e7762183c0faeec87963aede | /supervised/mixmod1_train.R | 0d878c92b9939167ec6e2f150b013a4dfa283382 | [] | no_license | edz504/plankton | 08b9cf88db36a97a89b33d3e06da3bb169e15e5e | 3d45f585bd8644feaa9f991402c80d0fc3e0d548 | refs/heads/master | 2021-01-13T02:05:55.243329 | 2015-02-09T03:56:02 | 2015-02-09T03:56:02 | 28,106,911 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,146 | r | mixmod1_train.R | library(e1071)
library(dplyr)
wd.top <- "C:/Users/edz504/Documents/Data Science Projects/Kaggle/plankton"
wd.train <- paste(wd.top, "/train", sep="")
load("training_30x30.RData")
labels.df <- data.frame(labels)
counts <- labels.df %>% group_by(labels) %>% summarise(count=n())
# take the first N of each kind
labels.df... |
da816f63115c3c203fb4b26447abf8b1ad0cdda1 | ffe87a0a6134783c85aeb5b97332b201d50aca9d | /MINI_2015/prace_domowe/PD_4/Sudol_Adrianna_pd4.R | 7013f92296e8e63e6d16cae47aec36000e1ed844 | [] | no_license | smudap/RandBigData | d34f6f5867c492a375e55f04486a783d105da82d | 4e5818c153144e7cc935a1a1368426467c3030a5 | refs/heads/master | 2020-12-24T15:51:11.870259 | 2015-06-16T08:50:34 | 2015-06-16T08:50:34 | 32,064,294 | 0 | 0 | null | 2015-03-12T07:53:56 | 2015-03-12T07:53:56 | null | UTF-8 | R | false | false | 1,146 | r | Sudol_Adrianna_pd4.R | library(dplyr)
library(PogromcyDanych)
tmp <- tbl_df(auta2012)
info=function(marka,model,rodzaj_paliwa,moc_silnika,rok_produkcji,przebieg){
if (!missing(marka)) {tmp <- filter(tmp,
Marka == marka) }
if (!missing(model)) {tmp <- filter(tmp,
Model ==... |
6132717cd879a8a9e4082ab14f18e292c23d0f78 | 6579fa137eda608c0cdb22fa7236667972fb57de | /R/helpers.R | 89028ac022a32c55c679244d1d3abd2a2e5a58ac | [
"MIT"
] | permissive | nischalshrestha/sketch | 258a700bb0de38b5832861c7365605640c75cdbb | ab3258c3707aa768d31bfc7fe9c9d8916c8e1632 | refs/heads/master | 2022-11-24T16:54:46.185048 | 2019-12-09T07:57:32 | 2019-12-09T07:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 831 | r | helpers.R | #' Get the source link of a JavaScript library
#' @param x A character string; name of the JavaScript library
#' @export
src <- function(x) {
switch(x,
"dataframe" = "https://gmousse.github.io/dataframe-js/dist/dataframe.min.js",
"math" = "https://cdnjs.cloudflare.com/ajax/libs/mathjs/6.2.2/ma... |
ec178a925be367f1f570812b4080fd969142bde1 | 953754f186ab7b6d0634868567dc60efa7130875 | /programs/panelmodel.R | dee14bd214563b72650abae7e5523935bdb66af2 | [] | no_license | lfthwjx/PriceDiscovery | 58693f4108842e894c54943560dacd23d18f30cc | e677d8672d2471a0c3222d840a31fa479fa87a9a | refs/heads/master | 2021-05-02T16:00:32.769644 | 2016-11-01T21:23:50 | 2016-11-01T21:23:50 | 72,577,563 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,980 | r | panelmodel.R | library(xlsx)
library(xts)
library(timeSeries)
library(plm)
#library(car)
#library(dynlm)
setwd("C:\\UM\\R\\calGARCH\\output")
load("./.RData")
lr.model.arg<-list()
lr.arg.inter<-list()
lr.model.met<-list()
lr.met.inter<-list()
cleandata<-function(cpi.met){
cpi.met<-unname(cpi.met)
cpi.met.num<-ap... |
665ccad8b21351e9919da715953463efbd14a8e6 | 591771c6a3972cab8c680696771fd4b4aa0c3f20 | /R/getURI_Depth.R | 04e610d009a871b0ce4874982c46ac4cbb1d77a4 | [] | no_license | Sumpfohreule/S4Level2 | a36dfc014dde47763009dcc4420a198ce11a9a5d | 9034cddbd04efed8cea8c5b90cb2e4fbf16209e7 | refs/heads/main | 2023-08-19T08:58:05.616624 | 2021-09-29T14:47:03 | 2021-09-29T14:47:03 | 304,371,990 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 223 | r | getURI_Depth.R | ########################################################################################################################
setGeneric("getURI_Depth", def = function(.Object) {
standardGeneric("getURI_Depth")
}
)
|
914f5802d33cfcf29044b145ae3a289185b20aae | 21c830330e6343d2fc389949441b1cdb8dafa307 | /man/pkpd_hemtox.Rd | 52ec8623bd9f226e491f1a394aed67acf5b7e014 | [
"MIT"
] | permissive | yookhwan/PKPDsim | 778cd5278023dc1ed68134a83408a38fbf5cec7d | a26546513fdffe96abeaf16f65b33e2a9bec3a88 | refs/heads/master | 2021-01-18T08:39:35.286597 | 2015-08-06T18:29:59 | 2015-08-06T18:29:59 | 32,412,709 | 1 | 0 | null | 2015-03-17T18:37:03 | 2015-03-17T18:37:02 | null | UTF-8 | R | false | false | 363 | rd | pkpd_hemtox.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/pkpd_hemtox.R
\name{pkpd_hemtox}
\alias{pkpd_hemtox}
\title{ODE system for PKPD - 2 compartment IV, neutropenia model (Friberg et al. JCO 2002)}
\usage{
pkpd_hemtox(t, A, p)
}
\description{
ODE system for PKPD - 2 compartment IV, neut... |
168db820fc3df498d4b12998f60c188d31272b51 | b4d8f682a6ffa6932130fa0565d3e69e7bd38296 | /r/figure2.R | d85ad558e49b82938d2e0428df41391ac6aa3e1b | [] | no_license | micahwoods/2016_mlsn_paper | db56599a089cecc22a2b647589a684f19affc9d7 | aea91c42304f7f444d62c5ff73f98b6473b43884 | refs/heads/master | 2021-01-19T02:31:10.887330 | 2016-11-08T01:59:32 | 2016-11-08T01:59:32 | 60,707,479 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,123 | r | figure2.R | # for figure 2, ecdf of data and then of modeled data
# set.seed at MLSN by letter of alphabet, thus 13,12,19,14 13121914
# write function to make an ECDF for an element
# x is vector to plot, zed is the axis label
# put outside function so is defined globally
col2 <- adjustcolor("grey", alpha.f = 0.6)
ecdfPlot <-... |
1bb7a1eae91bc908925c6d0f00833e95c6e8519c | a465e1d61e996bd5c018c764d9b46dcd115893c8 | /R/TraceCorrelationTSIR.R | 40e54cb5e19a2b457a5bacc8ce80e3c246e828d4 | [] | no_license | hectorhaffenden/TSIR | 9154107523002d4b3619bf70a298cd7dad7e242e | c4d2f79c3516d8e594b2799d582955eb59e4fae9 | refs/heads/master | 2020-07-10T03:03:23.948745 | 2019-08-24T21:57:34 | 2019-08-24T21:57:34 | 204,149,950 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 328 | r | TraceCorrelationTSIR.R | TraceCorrelationTSIR = function(v1,v2, d = 1){
if (dim(as.matrix(v1))[2] == 1)
{p1 = v1%*%t(v1)/c(t(v1)%*%v1)
p2 = v2%*%t(v2)/c(t(v2)%*%v2)
di = sum(diag(p1%*%p2))/d
return(di)} else
p1 <- v1%*%matpower(t(v1)%*%v1,-1)%*%t(v1)
p2 <- v2%*%matpower(t(v2)%*%v2,-1)%*%t(v2)
di = sum(diag(p1%*%p2))/d
retur... |
826a963613ac6a246263f18569d9417210e275c3 | 2c277539ab857e30a1f49e76695727089b92a325 | /man/GetCOSMICMutSigsNames.Rd | d981054c30d8401baede417d5f7a5305a21f089d | [
"MIT"
] | permissive | cgab-ncc/FIREVAT | 0c99bb9af00f715fde3b19204798f0acd65ee700 | 093ab9b241288b5f1251b60da8a23ce20c752da2 | refs/heads/master | 2022-12-01T12:25:33.831570 | 2022-11-18T16:47:28 | 2022-11-18T16:47:28 | 170,807,255 | 22 | 6 | null | null | null | null | UTF-8 | R | false | true | 308 | rd | GetCOSMICMutSigsNames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/firevat_utils.R
\name{GetCOSMICMutSigsNames}
\alias{GetCOSMICMutSigsNames}
\title{GetCOSMICMutSigsNames}
\usage{
GetCOSMICMutSigsNames()
}
\value{
a character vector
}
\description{
Returns all COSMIC mutational signature names
}
|
8842bb23b45a66cc2c93819fdd671830acf9820c | 41693ade868da170fcc46acc58a74dc38d24903e | /tests/testthat/test-reframe.R | b86d0413a55948250041e6c345e8cec0f71b1364 | [
"MIT"
] | permissive | tidyverse/dtplyr | 6dfa2492af55482cda9654be6a7071aa20a8f787 | 774f00dd90c6a017c9311458a425466ac47df028 | refs/heads/main | 2023-08-26T12:47:14.841458 | 2023-08-19T18:24:49 | 2023-08-19T18:24:49 | 53,366,659 | 518 | 48 | NOASSERTION | 2023-09-14T16:40:33 | 2016-03-07T23:28:16 | R | UTF-8 | R | false | false | 1,431 | r | test-reframe.R | test_that("`reframe()` allows summaries", {
df <- lazy_dt(tibble(g = c(1, 1, 1, 2, 2), x = 1:5))
expect_identical(
collect(reframe(df, x = mean(x))),
tibble(x = 3)
)
expect_identical(
collect(reframe(df, x = mean(x), .by = g)),
tibble(g = c(1, 2), x = c(2, 4.5))
)
})
test_that("`reframe()` a... |
1e336983bf14d30818a265c5376f2a565c7188c4 | 2d34708b03cdf802018f17d0ba150df6772b6897 | /googledataprocv1.auto/man/SparkSqlJob.Rd | f8a20951f26dbf7bc87b4fe761d0a1328ae667f0 | [
"MIT"
] | permissive | GVersteeg/autoGoogleAPI | 8b3dda19fae2f012e11b3a18a330a4d0da474921 | f4850822230ef2f5552c9a5f42e397d9ae027a18 | refs/heads/master | 2020-09-28T20:20:58.023495 | 2017-03-05T19:50:39 | 2017-03-05T19:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,460 | rd | SparkSqlJob.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataproc_objects.R
\name{SparkSqlJob}
\alias{SparkSqlJob}
\title{SparkSqlJob Object}
\usage{
SparkSqlJob(SparkSqlJob.scriptVariables = NULL,
SparkSqlJob.properties = NULL, queryFileUri = NULL, queryList = NULL,
scriptVariables = NULL, jar... |
28b229aeb5fd7fab8bdf3bd6ec2e348e0ce1578e | cdcbac50a8a378f1b5fcb7600386951081f3bbfa | /inst/templates/method.R | 9121ac5aefd44387e619e19800c90ebe8f95d026 | [] | no_license | cran/zooimage | 278c083204d6604049ca8d8fccfa8add274d618e | f1f6cebc1faae5f49087275c69b6c67037a20b0c | refs/heads/master | 2020-05-20T12:21:01.539855 | 2018-06-29T15:00:26 | 2018-06-29T15:00:26 | 17,700,978 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,968 | r | method.R | ## Zoo/PhytoImage process REPHY version 1.0
## Copyright (c) 2014, Philippe Grosjean (phgrosjean@sciviews.org)
## Note: we need to start with the directory containing this script as default one!
# e.g., setwd(~/Desktop/ZooPhytoImage/_analyses)
## Should use source("~/dir/file.R", chdir = TRUE) to get there temporarily
... |
ba13526527d0b97de87e46177ea4166277ba2fa1 | 6d98dfe9d7ed3319ccda5cc7978885114c68c09d | /R/switch_branch.R | 7b5665ade2e09661da1259f92da54fae7dd0d6a4 | [
"MIT"
] | permissive | MyKo101/mpipe | 44c552abc758f316ba6aed2b03f933a4afa43383 | d1e16c77525288123b0491b836bcac05f0c0b790 | refs/heads/main | 2023-02-22T04:27:48.580286 | 2021-01-31T01:32:54 | 2021-01-31T01:32:54 | 256,473,147 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,903 | r | switch_branch.R | #' @name switch_branch
#'
#' @title
#' Perform an switch-like branch in a pipeline
#'
#' @description
#' Allows the user to perform a switch-like
#' branch without breaking out of a pipeline.
#' To maintain the flow of a pipeline, it is recommended
#' to use `fseq` style arguments (i.e. pipelines) for the cases,
#' how... |
86667a8e0fd803fe97ee97956e1893cd6dee2fea | b3f5ac1755f52e3671351df6b2fbc702a75d9b26 | /R/assertions.R | 91520c07536c5a79fdcbc27f1f9d4069146fa27c | [
"MIT"
] | permissive | wch/webdriver | 26d52755512564b3f06b8c6574080b4551537ca8 | 4ab54a9b030ca29e12f8b831a45396407d931791 | refs/heads/master | 2021-07-05T04:41:56.990084 | 2016-10-08T11:42:08 | 2016-10-08T11:44:12 | 70,522,580 | 0 | 0 | null | 2016-10-10T19:44:24 | 2016-10-10T19:44:24 | null | UTF-8 | R | false | false | 1,001 | r | assertions.R |
is_string <- function(x) {
is.character(x) && length(x) == 1 && !is.na(x)
}
assert_string <- function(x) {
stopifnot(is_string(x))
}
assert_url <- assert_string
assert_filename <- assert_string
assert_count <- function(x) {
stopifnot(
is.numeric(x),
length(x) == 1,
!is.na(x),
x == as.integer(... |
2edd4fca5bc5412a76e08f6de0210289a776aa78 | cf36e0840325ff945b56a0a96436d6000daf3018 | /scripts/Figure_S1_ABCD.R | 82ff1bba6611455a2e0b7051cc3b77226a25785b | [
"MIT"
] | permissive | SysBioChalmers/EPO_GFP | 30c5fe36d1276daf99c225703eb32ab2d93740de | 838b9b12194c3fa58de29c1c6264f92e010852f4 | refs/heads/master | 2023-04-11T05:56:32.806196 | 2022-05-05T07:57:47 | 2022-05-05T07:57:47 | 290,705,446 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,727 | r | Figure_S1_ABCD.R | library(pheatmap)
library(ggplot2)
library(grid)
library(gridExtra)
library(GenomicRanges)
library(GenomicFeatures)
library(rtracklayer)
library(plyr)
library(biomaRt)
library(readr)
library(data.table)
library(ggrepel)
library(ggthemes)
library(RColorBrewer)
library(ggpubr)
library(ggExtra)
library(cowplot)
library(DE... |
21519990c9de98addbf975e8c9a37e4ac96d1a53 | 691e8d13247c4278de689a24992d00cc7560f9b7 | /man/regions_map.Rd | d2be533553b776ca0a7c520a7d992f94ad45b785 | [
"CC0-1.0"
] | permissive | jas1/chilemaps | 2876a40b0770fc0d9e79e89838584e0737a5f0b1 | 62b3a7b3e3538072b4dca59cb62ce2b90f2feaeb | refs/heads/master | 2020-08-12T09:48:30.658043 | 2019-09-05T20:27:35 | 2019-09-05T20:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 852 | rd | regions_map.Rd | \name{regions_map}
\alias{regions_map}
\docType{data}
\title{
Map of Chile at region level (new regions)
}
\description{
Contains all the regions in the nation's territory. This dataset
considers 16 regions.
}
\usage{regions_map}
\format{
List of 16
> str(regions_map[[1]])
Classes ‘sf’ and 'data.frame': 1 obs. of 3 v... |
caa9b081a1f152b71b8e27723ae5c0aac2775849 | afdbf7c244976b8b240fedc85efb46b5c364cf82 | /man/dsQueryBuild.Rd | e0d0002c0dffcb6795f6625a75858be9a0f11645 | [] | no_license | cran/dimensionsR | b7c7f57f264093d603c7bb9efb0e81d0bf597e34 | 13ace74be692215ed4bedb93c4cf0c3bb4f0eca5 | refs/heads/master | 2022-02-21T17:14:14.581212 | 2022-02-07T12:50:02 | 2022-02-07T12:50:02 | 248,759,156 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,721 | rd | dsQueryBuild.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dsQueryBuild.R
\name{dsQueryBuild}
\alias{dsQueryBuild}
\title{Generate a DSL query from a set of parameters
It generates a valid query, written following the Dimensions Search Language (DSL), from a set of search parameters.}
\usage{
dsQuery... |
f6087b7ee4e9afe4a38e8fa2477496f72957c881 | b31760e9aa2bc6f89f8818f5c1b921a484166140 | /man/cb_load_cohort.Rd | 0de1e1da3e5c3e1657d5332b52e32294193bf57a | [
"MIT"
] | permissive | abrahamlifebit/cloudos | 36226edf8f023a6aad95b1eee725653f7af37089 | 8a1d6f2d5105e49fd0320df65c5ed5b08e39c893 | refs/heads/master | 2023-07-06T15:43:15.514280 | 2021-08-09T11:14:40 | 2021-08-09T11:14:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 530 | rd | cb_load_cohort.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cb_class.R
\name{cb_load_cohort}
\alias{cb_load_cohort}
\title{Get cohort information}
\usage{
cb_load_cohort(cohort_id, cb_version = "v2")
}
\arguments{
\item{cohort_id}{Cohort id (Required)}
\item{cb_version}{cohort browser version (Option... |
8c0d598bdb8f56b13843b85d5342f969ea809baa | a21cbae78a994c4598bd10cb39db39ebefe633b7 | /Lesson03-Receive_arguments_from_command_line/receive_args.r | 976e86e323c98e204c8911c79f695159eb96afd8 | [] | no_license | lilca/Lessons-for-learning-R-language | b68968b1f23435c95cc4da89cbf0383fef773602 | c763d417cafd905304ff48603a459b6b52a830a5 | refs/heads/master | 2020-05-31T16:08:53.199269 | 2015-03-24T00:24:19 | 2015-03-24T00:24:19 | 15,925,566 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 523 | r | receive_args.r | # Receive arguments following "--args" when you set "trailingOnly=TRUE" in a argument of "commandArgs()"
# commandArgs()の引数にtrailingOnly=TRUEを設定すると、--argsにつづく引数を受け取る
arg1 <- commandArgs(trailingOnly=TRUE)[1]
print(arg1)
# Other than above case, receive command line
# 上記以外の場合、コマンドラインを受け取る
cmd1 <- commandArgs()[1]
cmd2 ... |
bcbae15e6d7c0ce1ff12fff7c4bee340613b0a5c | bbdfb40766403ed5da4e517b78b6daf45275ac47 | /analysis_code/spells.R | 12df774d70bb2d37e1884b7832c39415f52d0baf | [] | no_license | uvastatlab/libwifi | d8566b8b93834e9d549fb2c79d02e17cc1c0a804 | fcd64d0318e61faa0e03529cadb0e534922f741a | refs/heads/master | 2020-07-24T06:11:49.903212 | 2020-01-17T19:11:05 | 2020-01-17T19:11:05 | 207,824,406 | 0 | 2 | null | 2019-11-13T17:11:19 | 2019-09-11T13:51:36 | HTML | UTF-8 | R | false | false | 1,544 | r | spells.R | # Spells: duration of visits
# reads in files created by spells.py, creates spells.csv?
# Margot Bjoring
library(tidyverse)
library(lubridate)
clem_spells <- read_csv('clemons-spells.csv')
ald_spells <- read_csv('alderman-spells.csv')
har_spells <- read_csv('harrison-spells.csv')
clem_spells <- clem_spells %>%
mu... |
fb9c4f582a8271025f40cbb64f49e753653a3f29 | c1439351216e4cd99ba17f3f0cdc7290e4ba6fe3 | /man/filterExogenous.Rd | 3b12b91671ac60783bc58ef9eb15cb71897b4cf7 | [] | no_license | cran/piecewiseSEM | cb751749c7ba0485eb81840b366dd8aae3dbe12d | c8264234681c9954c88c5926d477f5dd181112cf | refs/heads/master | 2023-03-08T20:59:05.204323 | 2023-03-04T17:00:02 | 2023-03-04T17:00:02 | 48,085,794 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 409 | rd | filterExogenous.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/basisSet.R
\name{filterExogenous}
\alias{filterExogenous}
\title{Filter relationships among exogenous variables from the basis set (ignoring add.vars)}
\usage{
filterExogenous(b, modelList, amat)
}
\description{
Filter relationships ... |
df3dcd8e5107f5f2611b9d597f3ca737b9b86979 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/BayesS5/examples/Bernoulli_Uniform.Rd.R | c2e90e1af8ab6322afcdec32036c12228409679e | [] | 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 | 198 | r | Bernoulli_Uniform.Rd.R | library(BayesS5)
### Name: Bernoulli_Uniform
### Title: Bernoulli-Uniform model prior
### Aliases: Bernoulli_Uniform
### ** Examples
p = 5000
ind = 1:3
m = Bernoulli_Uniform(ind,p)
print(m)
|
979d2af82dea05d36b32ebc71a3887fc1eb7c46a | fa696d2dffa2548f80b5ffe67cc71dae7c81d537 | /cachematrix.R | 7052cb8070dd2fe49f771e98830b565c95e5ea40 | [] | no_license | txv428/ProgrammingAssignment2 | 563c13e07882cc27ca562205c8c393c810e95376 | 1c0aa0d075e9a74d26e29329e53d493452b3c9df | refs/heads/master | 2021-01-19T22:05:19.862491 | 2017-04-19T15:38:02 | 2017-04-19T15:38:02 | 88,750,066 | 0 | 0 | null | 2017-04-19T13:44:10 | 2017-04-19T13:44:10 | null | UTF-8 | R | false | false | 1,425 | r | cachematrix.R | ## Here in the makeCacheMatrix, a special "matrix" object is created which cache its inverse
## The first function, makeCacheMatrix, creates a list of four
## functions functions:
## 1. set the value of a matrix (get)
## 2. get the value of a matrix (set)
## 3. set the value of the inverse of the matrix (setinverse)
... |
7e27ca93da804627a36437e7e906f3c8a2975ed0 | e127968280caa872ea7479f88a5b9b1c29849cf1 | /R/examples/get_param_vals.R | fd22e3a3509c337cffd20375db94dfb6a55d3b6d | [] | no_license | gilesjohnr/hmob | 7a03882f8487027e5bf775aa3729f45ab0acc3b2 | a999c1f83d55b96b30cb8d48e4a90ac0036268df | refs/heads/master | 2021-07-07T23:58:00.771489 | 2020-08-06T18:49:40 | 2020-08-06T18:49:40 | 168,587,776 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 362 | r | get_param_vals.R | load('./output/decay_1day_62dists_summary.Rdata') # mod.decay # Summary of decay model parameters (Lambda)
# Get trip duration decay rate rate parameter lambda
lam <- get.param.vals(n.districts=62,
name='lambda',
level='route',
stats=mod.decay,
... |
3b080f7234c6213ed10ab3a20c479fb3b0036bd6 | 5a345571b8855ed9c95c2a42021f6b9125817830 | /R/src/R_operator.R | b592da625017703b0fde20b803397194b3e9c136 | [] | no_license | HaYongdae/TIL | 6eb9db589b5425bec0ff5afad9c5c003b954dd63 | 175368f4930a3339b9cc823f43ef7d12da8c108b | refs/heads/master | 2021-06-17T11:46:45.485585 | 2021-03-23T08:16:06 | 2021-03-23T08:16:06 | 188,196,967 | 0 | 0 | null | 2019-08-30T04:21:18 | 2019-05-23T08:52:37 | null | UTF-8 | R | false | false | 332 | r | R_operator.R | ################## 연산자 ##################
# 타 연산자와 동일
# 특이사항 ↓
## T/F에서 다르면 FALSE, 같은면 TRUE
x < FALSE
y <- FALSE
xor(x,y)
# 비교 연산
c(TRUE,TRUE) & c(TRUE, FALSE)
# 각각의 값을 비교 => [1] TRUE FALSE
c(TRUE,TRUE) && c(TRUE, FALSE)
# 전체 형태를 비교 => [1] TRUE
|
308e195411f3295ff1eecd0517a2de80ca466315 | a0cf3e3d7cd0487520afe2db18cc27d823be2608 | /examples/example_1/script.r | ecd0e4cb099e972abd6dc4ef432d655ada87b1ae | [
"MIT"
] | permissive | franckverrot/mruby-r | 9ce8bca3a8714d6843260635167923fa9951d45d | 5882a3a5492bab45e5d1868df37d4c40b2421b6f | refs/heads/master | 2021-01-16T18:19:37.431429 | 2015-08-08T19:26:15 | 2015-08-08T19:26:15 | 38,016,830 | 31 | 0 | null | null | null | null | UTF-8 | R | false | false | 213 | r | script.r | # script.r
# This script will generate 100 strings
dyn.load('../../build/mruby-r')
values <- .C("mruby_r_eval", source="./source.rb", output=rep(c(''),each=1000))
dist <- values[2]
table(dist)
plot(table(dist))
|
440b0a8979fc09f945b9b50a7d53dcece64d0ad4 | 49796db8334d0a1fc15e012a855bf71d793ac695 | /pB_data_codes/Preprocessing_Pipeline_BConly.R | 2d7712a91184fdc8f7ce8acabbcbbc8120e5dbe7 | [] | no_license | katiemeis/code_gradlab | 97bf08b549b446b0abcd0d1fa02a67f8bf9ea1fd | 1dab064afc9f6405f969b53198664cbe51eaea2d | refs/heads/master | 2020-03-29T21:06:27.483895 | 2018-10-24T01:37:51 | 2018-10-24T01:37:51 | 150,349,943 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,678 | r | Preprocessing_Pipeline_BConly.R | ### Set working directory -- START HERE!!!
setwd("C://Users//katie//Documents//ferdig_rotation//pB_data//Data//")
### attempt to load packages, may need to install if not already installed
library(reshape)
library(preprocessCore)
### Get list of txt files in working directory and then remove .txt extension
Fi... |
5dbe6a1b2f23774e17adc5ce2213117e1ce1e52a | 541fff10228b07c9b54437c7e5f8e674eb7a3211 | /man/show-commaNMFns-method.Rd | ff50354ba00cb6364a826cb466c068164efa8d89 | [] | no_license | cran/NMF | 8d125625278b93f52bdcc646e382a969d6ea717d | 14e3f913b2de158149bf1fc869952cf6bb3d0561 | refs/heads/master | 2023-06-28T00:46:53.707046 | 2023-03-20T14:30:02 | 2023-03-20T14:30:02 | 17,692,093 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 293 | rd | show-commaNMFns-method.Rd | \docType{methods}
\name{show,NMFns-method}
\alias{show,NMFns-method}
\title{Show method for objects of class \code{NMFns}}
\usage{
\S4method{show}{NMFns}(object)
}
\arguments{
\item{object}{Any R object}
}
\description{
Show method for objects of class \code{NMFns}
}
\keyword{methods}
|
77da22b80c9ff2cea19ff4a2cafa9f2360cff3d2 | 59be5f9071b9bcaf2ab2fd017fc731a0ef8daf62 | /plot1.R | 805c29ef88dc784bfcdaaa6947b4255b296836ea | [] | no_license | Ankit-anand18/ExData_Plotting1 | a8b37c62f36bfb19afd2d627d5409ee2b855c457 | 85445ce7dcdf8826b401d97c3f3752123a95b6c8 | refs/heads/master | 2020-06-02T00:00:25.009996 | 2019-06-09T09:06:11 | 2019-06-09T09:06:11 | 190,971,595 | 0 | 0 | null | 2019-06-09T06:21:11 | 2019-06-09T06:21:10 | null | UTF-8 | R | false | false | 761 | r | plot1.R | # Plot 1
# read the dataset
powerCon <- read.table("household_power_consumption.txt",
header = TRUE,
sep = ";",
na.strings = "?"
)
# coerce column1 to Date
powerCon$Date <- as.Date(powerCon$Date, "%d/%m/%Y")
... |
8f9ab459563d904bd49932a6aca786b3e5dcbb2d | de7bf478ce5b3bd796ab9bd8054b00e8b94cc9d2 | /R/roundConstantSum.R | fb0ca0aa3dd5959c083b17c8a910c54de4aaf769 | [] | no_license | cran/FFD | b454ef48bf69f08d5014bb5b3a42f7df7401bb02 | 78eefbd15c03bf7362d9f39aca0be1c0d3d02c98 | refs/heads/master | 2022-11-11T01:55:17.186774 | 2022-11-08T09:10:06 | 2022-11-08T09:10:06 | 17,679,131 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,449 | r | roundConstantSum.R | ## roundConstantSum
##
## Ian Kopacka
## 2011-07-05
##
## Inputparameter:
## numVec...Numerischer Vektor. Die Summe der Elemente sollte eine
## ganze Zahl sein. Falls nicht, wird mit einem gerundeten Wert
## gerechnet und wahlweise eine Warnung augegeben.
## output...... |
6a219bc984d2b2b3ea0eaee9006f57025cf00a8f | ee54a85e446285fcc568caffe2dab934089e12e2 | /xp10/plotpost.R | a2a80bb9fd2bc5339955f8a834b9be14a28c0423 | [
"CC0-1.0"
] | permissive | bricebeffara/rwa_evaluative_conditioning_data_analysis | e8697aee9cb7097c19ec9207a092d547658246e2 | 81c35c84148f9579b68624e32c0efc0dbad43e3c | refs/heads/main | 2023-06-03T01:15:34.778559 | 2021-06-17T09:55:12 | 2021-06-17T09:55:12 | 375,408,897 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,696 | r | plotpost.R | old.par <- par(mfrow=c(3, 2))
BEST::plotPost(posterior_samples(spread_resp, "b")$b_RWAscore,
credMass = 0.95, compVal = 0,
ROPE = c(-0.2, 0.2),
xlab = expression(beta[RWA["positive indirect"]]),
col = as.character(bayesplot::color_scheme_get("brightblue")[2])... |
e303539fb1308b29c44011d393a5d73888517564 | ec98f3ad87391c21ef03c31ea3b102a9507d4cfd | /cachematrix.R | 2ed204829d3337dbc5c8bd4c9e9e8624f0925225 | [] | no_license | kentlottis/ProgrammingAssignment2 | 646353b65ae4b3ad5b166928c6cf99b0a06e628b | 500ddece450a89b1382d073dd39c6c89d8b5d181 | refs/heads/master | 2020-12-25T16:26:03.448989 | 2014-08-23T17:26:51 | 2014-08-23T17:26:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,745 | r | cachematrix.R | ## R Programming - Assignment 2 - Caching Matrix Inverse
## makeCacheMatrix() This function creates a special "matrix" object that can cache its inverse.
#
# Note: this implementation intentionally differs from the cacheMean example in that it omits a 'setInverse' method
# instead, the getInverse() method itsel... |
d69270a8e15eeb127d9abc73bd1d7a9dc7cd180b | c16684c93fb95310a315c223af03f9dc9bc77a76 | /linregpackage/R/methods.R | ca57ef48a9f3c6d37478f4f9e212982ca451409b | [] | no_license | gitter-badger/Lab4 | 15dda9957c5c81b6b8ec86704d6348dc76741f22 | 22b628f755f5f4e78ae7367e000e8013a7557b6a | refs/heads/master | 2020-04-01T18:20:40.753966 | 2015-09-18T10:40:17 | 2015-09-18T10:40:17 | 42,716,424 | 0 | 0 | null | 2015-09-18T10:58:44 | 2015-09-18T10:58:43 | null | UTF-8 | R | false | false | 453 | r | methods.R | #tries to do the plot operations
data(iris)
mod_object <- lm(Petal.Length~Species, data=iris)
print(mod_object)
as.data.frame.linreg <- function(x) {
df <- data.frame(fitted=x$fitted_values, residuals=x$resi)
return(df)
}
plot.linreg <- function(y, ...) {
y <- as.data.frame(y)
ggplot(y) + geom_point(shape=1,... |
5285f739180f10a827c596c234410ba1a15db498 | e0bae273f83296aefc64ddc6b88a35a8d4aa6d84 | /man/ubiquity.Rd | 21bfac812e8883388403adf96a74554ff508692e | [] | no_license | PABalland/EconGeo | 9958dcc5a7855b1c00be04215f0d4853e61fc799 | 420c3c5d04a20e9b27f6e03a464ca1043242cfa9 | refs/heads/master | 2023-08-08T04:22:25.972490 | 2022-12-20T11:03:49 | 2022-12-20T11:03:49 | 63,011,730 | 37 | 11 | null | 2018-09-18T15:22:21 | 2016-07-10T18:00:42 | R | UTF-8 | R | false | true | 1,680 | rd | ubiquity.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ubiquity.r
\name{ubiquity}
\alias{ubiquity}
\title{Compute a simple measure of ubiquity of industries}
\usage{
ubiquity(mat, RCA = FALSE)
}
\arguments{
\item{mat}{An incidence matrix with regions in rows and industries in columns}
\item{RCA}... |
8934438509b66421f58e060c10f3dd6c66b77434 | 5c0b215a506702310ebcd13d32ef398d2be23a1c | /DA2_Classification_LogReg_Intro.R | c7eb8c3d971693dc5c0fd99991a5b6d670e69c88 | [] | no_license | CollinCroskery/Foundations | ebda9e2b2b3fd2d72217fec6ffde1e819894cc08 | 9f1e9ca22ad8a4ec0c24d148039b3a477eb67a16 | refs/heads/master | 2022-12-19T13:09:40.319729 | 2020-08-27T19:01:28 | 2020-08-27T19:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,375 | r | DA2_Classification_LogReg_Intro.R | library(tidyverse)
library(MASS)
library(ISLR)
# from book
dfDefault <- Default
glm.fit <- glm(default ~ student, data = dfDefault, family = binomial)
summary(glm.fit)
dfDefault$Prob <- predict(glm.fit, type = "response")
ggplot(dfDefault, aes(x=balance, y=Prob)) + geom_point()
#--
glm.fit <- glm(default ~ bala... |
51abd05169f8911fb40742858909bfb7d6e843a6 | 29585dff702209dd446c0ab52ceea046c58e384e | /TraMineR/R/normdist.R | 1302bb9775e41e818b5c970853356ddf211b035d | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,000 | r | normdist.R | ## Normalize distance using the following codes (same as in C code)
## 0 => no normalization
## 1 => Abbott
## 2 => Elzinga
## 3 => Maximum possible distance normalization (divide by maxdist)
## 4 => Yujian and Bo (2007) (divide by maxdist+rawdist)
normdist <- function(rawdist, maxdist, l1, l2, norm) {
if... |
c67bb6bc7cf653a6dc39b5697520c80fb6d578af | 0736b7c3b67690cae38122c0d82b74ce5c339329 | /datawrapper_code.R | abbd068e9eff022ce8082fb2391785788cc9f6e6 | [] | no_license | pmannino5/datawrapper_learn | 54dd1a496fcaa9b449d830a4868ffdcea9519f37 | 7cbc9a4693c5861e4a88dc662e1e3ddbe4b1fdfd | refs/heads/main | 2023-05-04T13:10:05.888664 | 2021-05-20T08:51:39 | 2021-05-20T08:51:39 | 368,796,577 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,723 | r | datawrapper_code.R | # This short script begins using the Datawrapper API
# Fortunately, there is a nice package called DatawRappr that makes using the API very easy.
# https://munichrocker.github.io/DatawRappr/index.html
# For this learning script, I'm going to use the exoneration data I downloaded a couple years ago
# and make a line gra... |
ed8254c5676d6ae8c884119591a321da2b79e065 | d1fa97a9e157f5e18745db31763d87ea252baa39 | /man/ncdfFlowSet-Subset.Rd | ff7bb3dba9fcd2510431f77882a0465f39077e0d | [] | no_license | RGLab/ncdfFlow | eb9766e1fb26b7cdcdf3b2fd54c2141e90ee5141 | 53144b18262197ad498a9422c2a5549675dbff05 | refs/heads/master | 2022-07-16T18:49:45.433285 | 2022-07-01T01:38:22 | 2022-07-01T01:38:22 | 7,230,355 | 6 | 7 | null | 2021-01-22T02:07:13 | 2012-12-18T21:02:00 | R | UTF-8 | R | false | true | 1,163 | rd | ncdfFlowSet-Subset.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ncdfFlowSet-Subset-methods.R
\name{Subset,ncdfFlowSet,filterResultList-method}
\alias{Subset,ncdfFlowSet,filterResultList-method}
\alias{Subset,ncdfFlowList,filterResultList-method}
\alias{Subset,ncdfFlowSet,filter-method}
\alias{Subset,ncdfF... |
ffc5d6d1c4602a555b4553f4e267efe6e7aa2c9c | 93704f74aae600d3cf2d5307026b2bfb44c678c4 | /Week3/R/week3_Navie_Bayes.R | f1a216545ae356a5cfb1dc3bc14f72001201b27a | [] | no_license | mrjaypandya/Practical-Machine-Learning-on-H2O | edffd9339572a3c3e0a1652c7bfe094c3469aca0 | 602ca359ea3ddda2ae5b28e71bd236dfb3840653 | refs/heads/master | 2020-05-18T11:14:06.438683 | 2019-05-01T05:21:59 | 2019-05-01T05:21:59 | 184,372,422 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 500 | r | week3_Navie_Bayes.R | library('h2o')
h2o.init()
url <- "http://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_wheader.csv"
iris <- h2o.importFile(url)
parts <- h2o.splitFrame(iris, 0.8)
train <-parts[[1]]
test <-parts[[2]]
nrow(train)
nrow(test)
mNB <- h2o.naiveBayes(1:4,5,train)
mNB
p <- h2o.predict(mNB,test)
p
h2o.perfor... |
afae54bc061b2354c4c611ef860dcb44a147537e | 03bfebaf16626cedda6487d231bcba89a7679762 | /Sample code/TT_RScript.R | f02ca2ce0236d53d049886466e8bfd446e4472da | [] | no_license | ynchen08/Accessibility_Analysis_Demo | 48e0859d68611df53682ff2a30b46cf3165a7c03 | d4699ec16d751cfaa2a2b1d394b978461f2546ea | refs/heads/master | 2022-05-16T00:31:17.107206 | 2018-12-23T22:33:25 | 2018-12-23T22:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,768 | r | TT_RScript.R | setwd("D:/SA study/R travel Time")
library(readxl)
#import excel coordinate file
LatLon_forR <- read_excel("D:/SA study/R travel Time/LatLon_forR.xlsx")
View(LatLon_forR)
#create new coordinate var by concatenating lat and long
LatLon_forR$coord=paste(LatLon_forR$LatDD,LatLon_forR$LongDD, sep="+")
#Install R google api... |
27a6a0550b3876ce56dd8e1a8c1ae876ea4b119e | ae881520d35b6205e13c6200a0e78ba98515738b | /R/table.R | 039a1a6b83b0b348eb9692347b8bd4127e60a90c | [] | no_license | subreddit-emportugues/pagina | d793723229e94b6cd677cb8fe0b56301877484bd | 9ce04a517a70b655b0c9a52085e4b5a08574faa8 | refs/heads/master | 2020-04-27T15:56:23.488540 | 2019-03-11T07:19:36 | 2019-03-11T07:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,779 | r | table.R | datatable(
get_data(),
rownames = FALSE,
class = 'cell-border stripe hover',
style = 'bootstrap',
escape = FALSE,
extensions = c('ColReorder', 'FixedHeader', 'Responsive'),
options = list(
language = list(
url = 'https://raw.githubusercontent.com/subreddit-emport... |
2f985c164c5521285ef8b025e49bf1500f7ed75f | df712880b661e0148f7173d2e5e26fc69f84a07f | /attic/sanity.R | 65ad343670203e9061f25a19c83b05e8ddcecddc | [] | no_license | mlr-org/mlr3mbo | 006de583ae52232e32237e7a8986f65e6bde5cc9 | 520622de10a518b4c52a128b79398960dc7e6e09 | refs/heads/main | 2023-06-21T23:12:53.325192 | 2023-06-20T08:01:40 | 2023-06-20T08:01:40 | 212,462,939 | 23 | 1 | null | 2023-08-23T21:20:31 | 2019-10-02T23:44:40 | R | UTF-8 | R | false | false | 3,009 | r | sanity.R | devtools::load_all()
library(bbotk)
library(paradox)
fun = function(xdt) {
a = 20
b = 0.2
c = 2 * pi
y = - a * exp(- b * sqrt((1 / 2) * rowSums(xdt^2))) -
exp((1 / 2) * rowSums(cos(c * xdt))) + a + exp(1)
data.table(y = y)
}
domain = ps(x1 = p_dbl(lower = -33, upper = 33), x2 = p_dbl(lower = -33, upper =... |
ef71a4dc29d963c1062f4179b9eb38fa5fe98639 | 65f74c82c53d9cead52187da34967e3b3e90b381 | /stylo_ternarize.R | e0fb6c8185e3c414956fccb8acf37519b89f4c77 | [] | no_license | EdgarRandLivid/university-master | 239a90e2d8e472c1e4608f622670e66bcae9a53c | 809b02cc6ee02bd73471d0386e8b0be4052e9d2f | refs/heads/master | 2020-03-12T09:50:07.913890 | 2018-05-16T15:48:34 | 2018-05-16T15:48:34 | 130,560,415 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,026 | r | stylo_ternarize.R | library(stylo)
## Skript verarbeitet z-scores aus stylo und ternarized die Werte
## zu -1, 0 oder 1. Es wird eine Tabelle der 50 haeufigsten Woerter
## erstellt, die fuer einen erneuten stylo()-Aufruf als frequencies dient.
path = "" #Pfad
setwd(path)
mycorpus = "corpus"
example = stylo(corpus.dir = mycorpus)
###e... |
24a4869df72b0f79b299e86ac303f6a67bda0c79 | 8743cb01e02a5cf45d5e40d59fd04a40e68139b6 | /postprocessing/performance/model/gb14/mesh_based_model_gb.r | 71adfa00d72a2a398be03eda01b0e417011b8ea5 | [
"BSD-3-Clause"
] | permissive | SeisSol/SeisSol | a2c9ae29021251db5f811c343762e0699756b39d | 7fde47786f10aebbb4225f4c5125829ea9b541a1 | refs/heads/master | 2023-09-01T08:57:51.863085 | 2023-08-31T07:29:26 | 2023-08-31T07:29:26 | 21,459,883 | 227 | 129 | BSD-3-Clause | 2023-09-13T10:06:09 | 2014-07-03T11:17:47 | C++ | UTF-8 | R | false | false | 17,021 | r | mesh_based_model_gb.r | ##
# @file
# This file is part of SeisSol.
#
# @author Alex Breuer (breuer AT mytum.de, http://www5.in.tum.de/wiki/index.php/Dipl.-Math._Alexander_Breuer)
#
# @section LICENSE
# Copyright (c) 2014, SeisSol Group
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modificatio... |
21288f7a79ce292605b88571b15545a5efdf1869 | 2b1e495d311dbd7fec69a37afcd0e70a6a755f48 | /run_analysis.R | 4e54f8909e93a85357bd8ef6f4c38b2199b6e703 | [] | no_license | desantisll/GCD_Project | 334ccd85f1e40d850ad9f983217debfa9cec3948 | bf547fcc6baf7b60e34aa6703beb6de73824ce67 | refs/heads/master | 2016-09-09T20:21:02.024236 | 2015-07-27T15:57:09 | 2015-07-27T15:57:09 | 39,306,953 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,387 | r | run_analysis.R | #Getting and Cleaning Data project
library(plyr)
library(dplyr)
#load and merge test + train subjectID data containing geach data points Subject ID
subject_test = read.table("UCI HAR Dataset/test/subject_test.txt")
subject_train = read.table("UCI HAR Dataset/train/subject_train.txt")
subjectAll <- rbind(subject_test, ... |
b22574abb2acc134ad1de060a9c7ecb9f8024790 | 28b8ae24faf48299abba720d98473557c7933349 | /Task_08/task08.r | a964039aab7f8a40b8409086a4d95ec61616109f | [] | no_license | elg0012/Tasks | 2326e53122b7463f29117d499ebfd7eedec273fa | ff9a4866990bd128a07ef4ca703bf9230b1513c7 | refs/heads/master | 2023-04-12T10:52:46.409424 | 2021-04-30T13:03:41 | 2021-04-30T13:03:41 | 332,598,800 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,590 | r | task08.r | setwd("~/Desktop/Evolution/Tasks/Task_08")
library(phytools)
tree <- read.tree("https://jonsmitchell.com/data/anolis.tre")
plot(tree, type="fan")
tree$tip.label
#QUESTION 1: There are 82 tips, and branched lengths are present.
data <- read.csv("https://jonsmitchell.com/data/svl.csv", stringsAsFactors=F, row.names=1)
d... |
5df42cf43b6381495c879de361514fbfff65662e | d317f7e6a38bd252cfdf69e3846905c24e14f2fc | /R/make_qc_dt.R | 279065045260e3455aa92c8557e63166c66d868f | [
"MIT"
] | permissive | Yixf-Self/SampleQC | 208bb170884c6c9dbc1596a277186abd5a43d548 | 82f4483eafdaac93c17710bf605e147ad4611f0c | refs/heads/master | 2023-07-28T06:09:25.504772 | 2021-08-29T14:05:10 | 2021-08-29T14:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,577 | r | make_qc_dt.R | # make_qc_dt.R
# Make nice data.table of QC metrics
#' Checks specified QC metrics and makes data.table for input to
#' \code{calc_pairwise_mmds}.
#'
#' Takes a \code{data.frame} of raw QC metrics, and makes a nice neat
#' \code{data.table} output that can be used in \pkg{SampleQC}. For example,
#' users with a \p... |
ef9d20402eeaa4e646d2eec79c7364461f9a57f8 | e5b96e28f051beb07e94d9d9ff27c91f464a1fe4 | /R/20-upwards.R | 47921c3cb915eca8f5491eb383ad49bbfc0dcd44 | [] | no_license | vicky-rojas/30DayChartChallenge2021 | f6f33337a95da7c1cc866b335a4615b44d2cbbf9 | f6eec8ccd13e79be8feb74f01b7a06e38682cb51 | refs/heads/main | 2023-04-22T19:23:27.773394 | 2021-04-30T19:52:08 | 2021-04-30T19:52:08 | 353,714,097 | 0 | 0 | null | 2021-04-01T13:44:19 | 2021-04-01T13:44:18 | null | UTF-8 | R | false | false | 4,704 | r | 20-upwards.R | library(tidyverse)
library(lubridate)
library(gganimate)
# Temperatura promedio anual
df_temperatura <- read.delim("input/cr2_tasDaily_2018/cr2_tasDaily_2018.txt",
sep = ",",
header = T,
na.strings = c("NA","-9999")) %>%
sele... |
60aba6bb25f57d7bad76ccaafcc18892923643d0 | a8903875bd24b53c0e4d2e771c054f2b144960c4 | /R/makeDT_lab.R | 4c1f29a2f007ee26c106873ce51c4aa45b799944 | [] | no_license | chang70480/YCfun | ceef82a02e55ad16a0c0a50e7e9aeedb7b2de254 | a055dc63946e2d9f012b67bf497c73d6b9b69065 | refs/heads/master | 2021-03-01T20:34:18.422508 | 2020-11-30T07:50:52 | 2020-11-30T07:50:52 | 245,812,658 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,343 | r | makeDT_lab.R | #' \code{makeDT_lab} read spss and dta
#'
#' This function is based on \code{foreign} and \code{readstata13} this two package, but use this function can operater data easier after some recode dealing.
#'
#' There are three attribute providing for user to konw variable information in each variables. One is \code{variabl... |
40bf64e5bf3eaa730c6a3c485541637168ce3b11 | f997b825b89a191ef89709870065d375dd84358d | /man/set_stamp.Rd | 264e1434bc49dc172220f7d1e1e715482d77b5b8 | [
"MIT"
] | permissive | teunbrand/datastamp | 1557b85d423c7a892696a4900c3e239870d1bf72 | ebd6c3bc3a3bd9efe08bc615cc7d9e38ea252ebd | refs/heads/master | 2022-12-28T19:44:54.396093 | 2020-10-19T08:49:09 | 2020-10-19T08:49:09 | 304,337,082 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,438 | rd | set_stamp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stamp.R
\name{set_stamp}
\alias{set_stamp}
\alias{set_stamp.default}
\alias{set_stamp.datastamp}
\alias{set_stamp.Vector}
\alias{get_stamp.default}
\alias{get_stamp.Vector}
\alias{get_stamp.datastamp}
\title{Stamp setter}
\usage{
set_stamp(ob... |
ec4645a2344114bbbd7cfb182ab4669fb682bbc3 | 112f803e7d96e533166d05be62286add3dabaaad | /CMEEMainProject/Code/QuickSOMBoxplots.R | 8e4f1bba1a605e9b7b00ee092b8008d35b504ad2 | [] | no_license | PetraGuy/CMEECourseWork | 51a9b559e0463585827c07ef7a9a776d21f48488 | 0f14009a1e1b41f916bd76df7000a526dd0d6204 | refs/heads/master | 2018-10-21T23:07:18.916906 | 2018-10-02T07:31:28 | 2018-10-02T07:31:28 | 105,747,959 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 10,036 | r | QuickSOMBoxplots.R |
library(dplyr)
require(ggplot2)
require(reshape)
library(gridExtra)
rm(list = ls())
cat("\014")
site_data = read.csv("../Data/CompleteSiteLevelVars.csv")
AllPlotsvars = read.csv("../Data/AllPlotsVarsRichness.csv")
W4 = AllPlotsvars%>%filter(ShortNVC == "W4")%>%select(ShortNVC,SOMYr2,pHYr2,plot_richness)
W8 = AllPlot... |
842f1bc65ff495db86042fee28717daefef6688c | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.security.identity/man/securityhub_accept_invitation.Rd | c9eb9aa6a9ecddf59f161bf14bd3b3dca32ee9db | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 1,146 | rd | securityhub_accept_invitation.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/securityhub_operations.R
\name{securityhub_accept_invitation}
\alias{securityhub_accept_invitation}
\title{Accepts the invitation to be a member account and be monitored by the
Security Hub master account that the invitation was sent from}
\u... |
9abba53dc0ed7406fe51325dc2b3aae9ffca444b | 37a875fb2142480f3bf8da9d3ab5457d006bcd26 | /ifelseBasics.R | 03f48664b9ca37745ae970fd0376c5b6b3531be9 | [] | no_license | Goddoye/R-Coding | 62bdecf611a789e768a9b14b0800c1ee3346b25d | 6c857347687ad547b4b46bdebb20899f36b74dd5 | refs/heads/master | 2022-05-20T11:50:35.352989 | 2020-04-29T12:27:06 | 2020-04-29T12:27:06 | 254,621,629 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 289 | r | ifelseBasics.R | #If else, and else if statements
x = 15
if (x==10){
print ('X is equal to 10')
} else if (x==12){
print('X is equal to 12')
} else {
print("X is not equal to 10 or 12")
}
hot <- FALSE
temp <- 60
if (temp >80){
print("It is hot")
}else{
print("It is not hot")
} |
818ffb63c4225aabf53c2ca5a263cdb6d7de0caa | fd56b6a77bbb080ac7d1e3109446b635ae8eed69 | /man/extractPIDs.Rd | fea3d81cb58b3db298d4917a917cf8ad4d93e9f2 | [] | no_license | philliplab/MotifBinner2 | 325c010b18d662be1abf700e6028eaf138705ad5 | 734b24c2f9d009cd6c8d3ea4a8f8085ac9d4a7dd | refs/heads/master | 2021-07-01T12:36:35.369658 | 2020-09-07T15:11:15 | 2020-09-07T15:11:15 | 149,005,542 | 0 | 0 | null | 2018-09-16T14:51:06 | 2018-09-16T14:51:05 | null | UTF-8 | R | false | true | 493 | rd | extractPIDs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extractPIDs.R
\name{extractPIDs}
\alias{extractPIDs}
\title{Extracts the PIDs after affixes were trimmed and add then to the sequence names}
\usage{
extractPIDs(all_results, config)
}
\arguments{
\item{all_results}{A list of all results given... |
cfdcead77d63edf01d4b8c15cbf798803937c658 | 3d329328120305f23142ac17ea0b29cec007fae8 | /R/data.R | d69957b11e4831341b955a0f89142068c3c46aae | [] | no_license | yufree/rmwf | 61031a8e3e58328022f8a645799df55c985ed7d7 | 4306be624f36c2d7ee1e4295ec899a320866257c | refs/heads/master | 2023-04-09T19:18:37.829131 | 2023-03-27T22:40:42 | 2023-03-27T22:40:42 | 161,683,036 | 6 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,536 | r | data.R | #' Demo mzrt list object
#' @docType data
#' @format mzrt list object
"mzrt"
#' Demo mzrt list object for negative mode
#' @docType data
#' @format mzrt list object
"mzrtn"
#' Demo ipo parameters object
#' @docType data
#' @format ipo parameters
"para"
#' Demo ipo parameters object for negative mode
#' @docType data... |
52b5e38cc045b06616561c7480b45bb158704cd2 | fadcb5eff5af4586fcc574ea73c7679780762674 | /R_Basics_01.R | 7a152ca0d5dc841db572fa291ac87cbf95d2f687 | [] | no_license | ojask1205/Machine-Learning-using-R | 7fa2d6ac21396d3113505a83db29e877371d44ad | 1b37634ca8617e779546abe51bb04e7281e092bf | refs/heads/master | 2021-05-03T08:06:47.809535 | 2018-02-07T04:00:38 | 2018-02-07T04:00:38 | 120,560,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,696 | r | R_Basics_01.R | a=5
a
a=5
a
class(a)
a=5
a
class(a)
b="c"
b
class(b)
a=5
a
class(a)
b="c"
b
class(b)
b="5"
b
class(b)
a=5
a
class(a)
b='c'
b
class(b)
b="5"
b
class(b)
a=c(2,3,4,5)
a
b=c("2","3")
b
b=c("2","3")
b
a=c(2,3,4,5)
a
b=c(2,"3")
b
a=c(2,3,4,5)
a
b=c(2,"3")
b
class(b)
a=c(2,3,4,5)
a... |
64b10e534e2c4ccbbe4c80cbc74f1ffe63460c46 | b6a4b68ec502322a8ba8a9151e67e818cd112cb8 | /man/getRecordForUser.Rd | 13e42075165f0100519cea6c52f8e32479ce5a27 | [] | no_license | ralmond/EABN | ffd67e3ba2e112bf69e42ee5c60eb1e2ec1734c5 | ff55aa44c756cb6157d907f66b7d54f33766c01c | refs/heads/master | 2023-07-25T13:29:02.241959 | 2023-07-12T20:45:02 | 2023-07-12T20:45:02 | 240,610,408 | 1 | 1 | null | 2023-07-11T22:00:12 | 2020-02-14T22:36:52 | R | UTF-8 | R | false | false | 4,929 | rd | getRecordForUser.Rd | \name{getRecordForUser}
\alias{getRecordForUser}
\title{Gets or makes the student record for a given student.}
\description{
The \code{\linkS4class{BNEngine}} contains a
\code{\linkS4class{StudentRecordSet}}, which is a collection of
\code{\linkS4class{StudentRecord}} objects. The function
\code{getRecordForU... |
60d6d339e7abf5bc6eedf26b961be7c499e7e7cb | 0409799b662616035ff32251511f1f8fe56766a6 | /WIRDS/homework/praca_domowa_2_orchowski.r | 46feaee988646e5ba87aa993eff06ccbfc6f5f85 | [] | no_license | tomasznierychly/Dydaktyka | c79f51181f0438f03f5182ae1f70d98a51c866c3 | 3433ef5e034f362ce43ce2f2742967540eb92b77 | refs/heads/master | 2021-05-28T19:29:20.715906 | 2015-03-24T08:50:00 | 2015-03-24T08:50:00 | 32,805,457 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 625 | r | praca_domowa_2_orchowski.r | library(XLConnect)
library(dplyr)
library(tidyr)
library(ggplot2)
wb <- loadWorkbook('./Dane_zaj3_wlasnosc.xlsx')
dane <- readWorksheet(wb,1)
dane_liniowy <- dane %>% gather(rok, y, -Kategoria)
ggplot(data = dane_liniowy,
aes(x = rok,
y = y,
colour = Kategoria,
group = Katego... |
38d653ced08ce2ee8cca257469905d547f27ceaf | effe14a2cd10c729731f08b501fdb9ff0b065791 | /cran/paws.customer.engagement/man/pinpoint_update_apns_channel.Rd | 88c9167e2dcfe3689aeee18731a3a3d9353116ba | [
"Apache-2.0"
] | permissive | peoplecure/paws | 8fccc08d40093bb25e2fdf66dd5e38820f6d335a | 89f044704ef832a85a71249ce008f01821b1cf88 | refs/heads/master | 2020-06-02T16:00:40.294628 | 2019-06-08T23:00:39 | 2019-06-08T23:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 869 | rd | pinpoint_update_apns_channel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pinpoint_operations.R
\name{pinpoint_update_apns_channel}
\alias{pinpoint_update_apns_channel}
\title{Use to update the APNs channel for an app}
\usage{
pinpoint_update_apns_channel(APNSChannelRequest, ApplicationId)
}
\arguments{
\item{APNSC... |
b78d1f4e3676b100257ecbdd3295c0d0cf5d15f5 | eb6f8b652a5c600f5f84d67b2e643fb6fe29cd17 | /99_debug_model.R | 2df27f204571f4dc007faba1bdc9ea4b2d5c7c9b | [] | no_license | jkbest2/spatq_sims | b528ab6a81f3a42473700bfa295247152f0186a0 | e2f4c1e65a32ce437e878717773dd41ff3574c6e | refs/heads/master | 2022-08-15T05:01:25.337849 | 2022-05-18T21:33:29 | 2022-05-18T21:33:29 | 225,442,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,385 | r | 99_debug_model.R | library(tidyverse)
library(TMB)
devtools::load_all("../spatq", helpers = FALSE, export_all = FALSE)
source("97_debug_fns.R")
compile("src/spatq_simplified.cpp")
dyn.load(dynlib("src/spatq_simplified"))
## estd <- specify_estimated(omega = list(
## omega_n = list(
## ... |
85d4ff050470e914d6930e79a2142de628c33006 | 10a373397568b0e5235221d509d71f824e67e871 | /Counting_DNA_Nucleotides/countLetters.R | 8f43d0a9ee615a18ab141b2c5b5ab3dba6f4b450 | [] | no_license | j23414/Franklin | bb3ca90c5ec3404080ff2cf9e28463e7cd9d9883 | 516a1f8341c4691e670973cdebbac5e51840d008 | refs/heads/master | 2021-01-11T23:09:51.369752 | 2017-01-11T18:49:45 | 2017-01-11T18:49:45 | 78,554,737 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 621 | r | countLetters.R | #! /usr/bin/env Rscript
#====================================Libraries
library(ggplot2)
#====================================Analysis
f <- file("stdin")
open(f)
d<-data.frame(Letters=c())
while(length(line <- readLines(f,n=1)) > 0) {
temp<-data.frame(Letters=strsplit(line,split=""))
names(temp)<-"Letters"
d<-r... |
2294d028e963a184c19f16ae69cb43259208229f | 84c71eebf4fc69c5cf052b222fd378eb7c6af4d2 | /moneyBall.R | 58af8da0bca00c45bb9180dccb8a12a3c4108bbb | [] | no_license | G-M-C/MoneyBall | 42f304aa35d9ec0d8e4280e39855c8aa04f5515a | abe6354f8584495efc8cd6d172a483a46bebe0b2 | refs/heads/main | 2023-02-07T18:26:33.432566 | 2020-12-21T17:25:46 | 2020-12-21T17:25:46 | 323,400,653 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,240 | r | moneyBall.R | library(dplyr)
library(ggplot2)
batting <- read.csv('Batting.csv')
print(head(batting))
batting$BA <- batting$H/batting$AB
batting$OBP <- (batting$H + batting$BB + batting$HBP)/(batting$AB + batting$BB + batting$HBP + batting$SF)
batting$X1B <- batting$H - batting$X2B - batting$X3B - batting$HR
batting$SLG <- ((1 * b... |
3bbe6912cc0e0a0b0c0aba5bf55a8cccb8f48820 | e7f016514dabb463518cd24ef5740cbf77dd70ec | /man/DYNAMIC_DATA.Rd | 939d85a39c6684bf0db51d846b5bae3512f1aa52 | [] | no_license | dr-consulting/ibi_VizEdit | 5d4bd02fdb60419c6f26202912a3e6e3b284e01f | a56672add886c2ac0e0064d428566c3bf6878a7c | refs/heads/dev | 2023-01-23T19:37:08.986103 | 2020-11-21T20:44:00 | 2020-11-21T20:44:00 | 119,615,926 | 0 | 0 | null | 2020-07-04T03:31:21 | 2018-01-31T01:13:19 | R | UTF-8 | R | false | true | 490 | rd | DYNAMIC_DATA.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_init_global_vars.R
\docType{data}
\name{DYNAMIC_DATA}
\alias{DYNAMIC_DATA}
\title{Initialization of DYNAMIC_DATA reactiveValues that can change and be modified based on user actions}
\format{
An object of class \code{reactivevalues} of ... |
2b889461f9e295358a6dd3eddf5bd3ce10ad8bda | 23093affc35a4376384b3a47b24382e11078999b | /R/mqtls_LC.R | 3545feb273a636e3889a5d014af19541af1b53c3 | [] | no_license | roderickslieker/CONQUER.db | f35d36c57fc937a1e489c6a2dd1f1a4f5287943a | 85139b8feaac3bbfe69dacec22519364ebf1c303 | refs/heads/master | 2021-07-31T18:46:35.240183 | 2021-07-27T06:16:38 | 2021-07-27T06:16:38 | 250,022,871 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 399 | r | mqtls_LC.R | #' Data frame of lQTLs
#'
#' Author: E. Rhee
#' Title: A Genome-wide Association Study of the Human Metabolome in a Community-Based Cohort
#' Journal: Cell Metab DOI:https://doi.org/10.1016/j.cmet.2013.06.013
#' GWAS Data for All 217 Metabolites Measured by Our Platform, Including All Loci with P < 1.0 × 10−3
#'
#' @fo... |
57218921504f1477c247cd48a4814eeb7badd2dc | 6b9091d3dfc7827e00b0f1fbe25f615280fee906 | /EDA Assignment 2/plot4.R | 80e4cfd757d26d084f0e7a5e79bdef58f14de1e4 | [] | no_license | avkarthik/ExData_Plotting1 | 4e28f3a05fe097f39b33327c96ca7a25aa11842f | ac9f62506b9666de89f9d9810869e9f69dbadc93 | refs/heads/master | 2021-05-29T08:24:03.614696 | 2015-05-24T03:33:24 | 2015-05-24T03:33:24 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | R | false | false | 1,663 | r | plot4.R | #Question 4:Across the United States, how have emissions from coal combustion-related sources changed from 1999–2008?
#Loading necessary packages
library("ggplot2")
library("sqldf")
#Reading data from the files
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#Renaming Column na... |
f024b6713d6c961f25cb43944ed06a1c6ffacd7b | 6c781fd2987dc22589ffc00855c9ed242e44c377 | /hierarchicalclustering_analysis.R | 473bbcd7b0ab6988fbc2083e731bbe86bbf01c97 | [] | no_license | AmyLei96/unsupervised-learning-breast-cancer-subtypes | 65469e119c292aae15eb65b4e07a0f634bac72af | 7bdd96c76353ea6f52b0ea9bb1575202518d265a | refs/heads/master | 2020-05-19T03:21:32.521602 | 2019-05-19T00:06:23 | 2019-05-19T00:06:23 | 184,798,138 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,473 | r | hierarchicalclustering_analysis.R | ###########################################################################################################
# hierarchical clustering analysis
###########################################################################################################
library("xlsx")
library("dplyr")
source("src/normalization.R")
sourc... |
286460f606638e55c8da197b21bde599b395079b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/multisensi/examples/gsi.Rd.R | b36dcb5d41eff8430b13b502dec726598126f1a8 | [] | 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 | 946 | r | gsi.Rd.R | library(multisensi)
### Name: gsi
### Title: Generalised Sensitivity Indices: GSI
### Aliases: gsi
### ** Examples
# Test case : the Winter Wheat Dynamic Models (WWDM)
# input factors design
data(biomasseX)
# input climate variable
data(Climat)
# output variables (precalculated to speed up the example)
data(bio... |
7efd752ddfee376e37674cb4e94e59186b036a4c | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.machine.learning/man/voiceid_delete_domain.Rd | 27aa790528f45369c339810f068b9357b715a01d | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 511 | rd | voiceid_delete_domain.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/voiceid_operations.R
\name{voiceid_delete_domain}
\alias{voiceid_delete_domain}
\title{Deletes the specified domain from Voice ID}
\usage{
voiceid_delete_domain(DomainId)
}
\arguments{
\item{DomainId}{[required] The identifier of the domain y... |
422ef00df0b74675110e882cceb53cc4bba2b90e | 1d8da8cb8048c2d8ee87e977be9f90291e0ccf84 | /R/fit_model.R | d7f3a695241c94328f96c0966c2da795feb4fa58 | [] | no_license | cran/HCR | 59cc96fc83dcc777c0e6ad751b97754d4210c0cc | 827a42d1c3dd91f1b7844cb580a0d6221c7e85ad | refs/heads/master | 2020-03-31T08:54:11.989703 | 2018-10-26T13:50:32 | 2018-10-26T13:50:32 | 152,076,559 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,095 | r | fit_model.R | L<-function(X,YPrime,Y,score_type="bic",is_anm=FALSE,is_cyclic=FALSE,...){
freqx=as.data.frame(table(X))$Freq
freqx<-freqx[freqx!=0]
px= freqx/sum(freqx)
nx<-uniqueN(X)
nyp<-uniqueN(YPrime)
if (is_anm) {
# data preprocessing for ANM
if(is_cyclic){
Y=(Y-YPrime)%%(max(Y)-min(Y)+1)
}else{
... |
97c7a4496d30b4f22e8a59d22a488f9115dbb5c2 | dc2823335a53bbe74ae29810ed3273ce8890b7e7 | /Resampling_ex.R | fabb3375d084c7b3723bb34241b68cdeb83edfb5 | [] | no_license | hcasendino/FISH.553 | 2088fe575089c69cb9598523fa670dd2aaa5070b | 5a4d7718cae4eb1847bad7660246b38fcadfd7c5 | refs/heads/main | 2023-07-26T04:24:51.729345 | 2021-09-09T07:47:40 | 2021-09-09T07:47:40 | 404,631,387 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,078 | r | Resampling_ex.R | #==========FISH 553 Lecture 3 Quiz=======================
#==hindex function
#calculates h index (Hirsch 2005)
#Hirsch JE 2005 An index to quantify an individual's
#scientific research output. PNAS 102:16569-16572
#"A scientist has index h if h of his or her Np papers
#have >=h citations each and the other (N... |
85381f83f519266d0eb85d32c10410d88d2042da | 29b41178e146e3b53e410827b74518519150655b | /IndividualScenarioAnalysis/MAMHMt.R | 8624583e065aa923e413550e0e81fe98bb524038 | [] | no_license | timotheenivalis/PodarcisAnalysis | 945dae6af881ecd4351405de52fb4adbf0a34fe1 | 3108a7934f484524d06b1dc1bfe6d4a0984eb325 | refs/heads/master | 2021-03-30T17:45:52.279793 | 2018-01-23T04:22:32 | 2018-01-23T04:22:32 | 53,960,957 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 5,563 | r | MAMHMt.R | ###################################################################
source(file="C:/Users/Timothée/Documents/Studies/PodarcisCBGP/New simulations/FunctionsSimul.R")
setwd("C:/Users/Timothée/Documents/Studies/PodarcisCBGP/New simulations/MAMHMt/")
Simul<-"MAMHMt0"
outR<-mtfunc(Simul)
results<-outR$results
resultsnofix<... |
535aeadfe00c7df3e94373ca2fc80d02447e9f1c | ab731773df55f8f608d820357c92450e5fc83537 | /openarch_deaths_2_zeelandchallenge.R | 3dba55ea2777e29162d8ade582559f04583ef88a | [] | no_license | CLARIAH/wp4-civreg | 390cd3482f65d515215a4b2161b77759503381b7 | 56587e000e1f1b9becdea7fa1799f0a68fbf322e | refs/heads/master | 2021-12-06T20:42:53.466119 | 2021-08-26T17:33:56 | 2021-08-26T17:33:56 | 209,570,553 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,366 | r | openarch_deaths_2_zeelandchallenge.R | # reshape openarch data into zeeland challenge format
rm(list = ls())
library("data.table")
library("stringi")
setDTthreads(threads = 8)
# openarch = fread("/data/auke/civreg/openarch/openarch_deaths_dedup.csv")
openarch = fread("gunzip -c openarch_deaths_dedup_amco_ages_sex.csv.gz")
# replace "" by NA for charact... |
7b02ab8de32d0d5fd438992312799e5597953658 | 08f8df4123d1d49a1b14e29f71c86410399b2a5b | /R/likelihood.R | 35809a1b529c7df005922c8112001f45d3a91e62 | [
"MIT"
] | permissive | mrc-ide/first90release | 67652154cb6c142906a49d94f617bc138f7a4e1b | 200d2e4d47dbe2214d52bf4d072d0b2ffa241089 | refs/heads/master | 2023-05-10T21:12:05.587741 | 2023-05-08T18:28:39 | 2023-05-08T18:28:39 | 167,279,837 | 5 | 0 | NOASSERTION | 2023-05-08T18:28:40 | 2019-01-24T01:17:53 | R | UTF-8 | R | false | false | 8,535 | r | likelihood.R | #' @export
ll_hts <- function(theta, fp, likdat) {
fp <- create_hts_param(theta, fp)
mod <- simmod(fp)
val1 <- ll_evertest(mod, fp, likdat$evertest)
if (!is.null(likdat$hts)) {
val2 <- ll_prgdat(mod, fp, likdat$hts)
} else { val2 <- 0 }
if (!is.null(likdat$hts_pos)) {
val3 <- ll_prgdat(mod, fp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.