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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad69932eed6aff5e64db7657be8cd1dbce5761ed | c3542f507d35c5fc3f7c266b3552e6ef13765253 | /Schritte/3_interaktiv.R | 985883c6cd14e92efa316c3dba30577212ebbfc6 | [] | no_license | helge-baumann/leaflet_germany | fc59689e86d4061f776fdf3f849160d5d956ead1 | 6d1638c61cb10b67c9144b09e3329ad62c428ed6 | refs/heads/main | 2023-02-21T03:47:10.560170 | 2021-01-22T15:19:49 | 2021-01-22T15:19:49 | 331,964,748 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,988 | r | 3_interaktiv.R |
# Hintergrunddaten laden -----
# Annahme über Dateipfad siehe funktionen/funktionen_karten.R
geo <- load_shapefile(path=NULL, level=ebene, leaflet=T)
geo <- merge(geo, dat, by=key) # dat siehe 1_read.R
# Farbenpalette: Woran geknüpft?
colfunc <- colorFactor(farben(col_i), domain=geo$gruppe, ordered=T)
geo$color <- c... |
7c51e18a7024fdb1299a5f2977b031bf3faa6cd8 | 5c4494b116a8a14b58d923fd471fca996dc29ad7 | /R/split.R | 9fa6944995e3382ad9fd5a30968a12f0ca28c16d | [] | no_license | chenx-bob/simplifyGO | ba7a9ae10772e24f5371b7ad3ed9e8097dade542 | 13644aaabb19ee37ec2f569b66d2e23ca2b69dc4 | refs/heads/master | 2022-04-19T23:25:52.518629 | 2020-04-17T11:42:09 | 2020-04-17T11:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,781 | r | split.R |
cut_dend = function(dend, cutoff = 0.8, field = "score2", plot = FALSE) {
children_score = function(dend, field) {
if(is.leaf(dend)) {
-Inf
} else {
d1 = dend[[1]]
d2 = dend[[2]]
c(attr(d1, field), attr(d2, field))
}
}
dont_split = function(dend, field, cutoff) {
s = attr(dend, field)
if(s ... |
4475b2a049e55eba7d4caf0a958e483401c7c358 | 48423d753b948fe9b9ff7abc138743fe1e4ef50e | /cachematrix.R | 0a05441400984bc2fc487fc742b48423a67ca517 | [] | no_license | noics02b/ProgrammingAssignment2 | e8370afb0c6360c61a1aa04beb34b9188c4f726c | de457332fd07e02ed2770f81174d0c94b2bb53eb | refs/heads/master | 2020-12-11T04:19:57.531381 | 2014-10-25T11:43:26 | 2014-10-25T11:43:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,821 | r | cachematrix.R | ## Assignment #2 by Winston A. Sumalia
## The makeCacheMatrix creates a special "matrix" object that can cache its inverse.
## subfunctions:
## a.) set - redefine the elements of the matrix
## b.) get - passes on the elements of the matrix as defined in the makeCacheMatrix function
## c.) setinv - writes into cache t... |
e1632040f6b26de09e313dd1b20b07b53b5dc928 | 017592988b877cf6f74cd3b7a763e9fde9cd7a0e | /BCC_DEA.R | 6a881056129aeb59df92cc12b3e9cb9c90d08262 | [] | no_license | njpates/R_Code | 8942195648bd57908324c925162fca5dd6e7b79f | b8db53a23adc91b0b80136514d8deee2bc8782ea | refs/heads/master | 2021-01-15T15:39:09.697712 | 2016-08-31T18:12:32 | 2016-08-31T18:12:32 | 56,538,736 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 927 | r | BCC_DEA.R |
library(lpSolve )
data <- read.csv("DEAsample3.csv")
labels <- data[,1]
In <- data[,2:3]
Out <- data[,4:5]
BCC_DEA <- function(In,Out,labels){
theta <- rep(0,times=nrow(data))
for(i in 1:nrow(data)){
inputs <- as.matrix(In)
inputs1 <- t(inputs)
Inputs <- cbind(inputs1[,i],-inputs1... |
c6776dbb9ec457b66154850034081ebc37cfb45e | 78a29329d6aab0c6e047666653c7ab442ddfd8fc | /python/exomedepth_patch/function/exomeDepthPipe.R | 334916f8fbf4cac571d9989d7e3d1b84674f2ea3 | [] | no_license | pzweuj/practice | 3a17f37236f930ea68f514df3b9aa772a8ced52f | 7a51d1924addaf926ca6e727aee8c35902af3dd4 | refs/heads/master | 2023-07-07T09:16:41.049571 | 2023-06-25T09:46:10 | 2023-06-25T09:46:10 | 113,008,473 | 10 | 5 | null | null | null | null | UTF-8 | R | false | false | 2,702 | r | exomeDepthPipe.R | #!/usr/bin/env Rscript
# 20211012
# pzw
library(ExomeDepth)
library(getopt)
# data(Conrad.hg19)
# data(exons.hg19)
# 传参
# args <- commandArgs(TRUE)
spec <- matrix(
c(
"bed", "b", 1, "character", "bed file, need 4 columns without header",
"input", "i", 1, "character", "bam file directory",
... |
6903fe7795d02d82754c0e59ba6a366420781e2b | fdef19b8a214d9e5a96d3c5e558fb8dc3ba066bf | /analysis_test_copd.R | 856712797d2534156698fb365fe64adcaed2f887 | [] | no_license | ragnvalds/Granheim_COPD | b7e722f4aa57ac86e1fbf104cddeb5912cfd296d | 957a944e673c2d71e5826aa51023514b0bb1e7e2 | refs/heads/master | 2021-01-02T10:57:54.885286 | 2020-02-14T10:31:44 | 2020-02-14T10:31:44 | 239,589,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,796 | r | analysis_test_copd.R | ####analysis of qPCR copd testrun####
## qPCR import
library(qpcrpal); library(dplyr); library(qpcR); library(readxl); library(ggplot2); library(stringr); library(tidyr)
### Prepare a batch of imported data
batch <- prepare_batch("./data/exports/", equipment = "quant", skip = 21) %>%
model_qpcr()
## Perform model... |
0fbe5d4e396be8823623dfb532721e004290161e | 3bed450a6c2394d7b95fe86397170d01e4c7af6d | /archived R/mixpoisson-functions.R | a6dd128397d54e6bf01e8eb3b871ea13bdcb8837 | [] | no_license | jlivsey/countsFun | 4f2d06a9e1f3c176c98a204b81d79ec9a884c98f | e2dca09f1878d94955649536a420d1fc63e90f2a | refs/heads/master | 2023-04-07T00:21:30.626480 | 2023-03-01T04:34:58 | 2023-03-01T04:34:58 | 234,409,290 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,157 | r | mixpoisson-functions.R | # #---------inverse cdf of mixpoisson series---------#
# qmixpois = function(y, p, lam1, lam2){
# yl = length(y)
# x = rep(0,yl)
# for (n in 1:yl){
# while(pmixpois(x[n], p, lam1, lam2) <= y[n]){ # R qpois would use <y; this choice makes the function right-continuous; this does not really matter for our model... |
412eee054c77d4ebaa6c5bf7c92458603fb8df93 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/iMediate/examples/fimle.lnl.Rd.R | 9aa184ae697e79b662dc8f090ab5e85be46a2919 | [] | 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 | 614 | r | fimle.lnl.Rd.R | library(iMediate)
### Name: fimle.lnl
### Title: Full Information Maximum Likelihood Estimates in Linear M-model
### and Linear Y-model
### Aliases: fimle.lnl
### Keywords: estimates
### ** Examples
data("jobs", package = "mediation")
fit.M <- lm(job_seek ~ treat + econ_hard + sex + age, data=jobs)
fit.Y <- lm(... |
fcc6cab3487d7fc762def3efede51e58d017deaf | 476639c612f10f610b59a14e1d29022b8cae0086 | /man/fit_topt_VJs.Rd | 0183fb2d682c440f96878be47e91c2c859a7ee70 | [] | no_license | jstinzi/plantecowrap | 4b81090370e51804a6590385ca866cb6478f0e0b | 3fcd4cdb4a29055e130ea0daed4728e5d5813120 | refs/heads/master | 2020-08-05T05:09:24.392516 | 2020-04-27T14:29:18 | 2020-04-27T14:29:18 | 212,407,836 | 6 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,331 | rd | fit_topt_VJs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_topt_VJs.R
\name{fit_topt_VJs}
\alias{fit_topt_VJs}
\title{Fitting multiple temperature response curves}
\usage{
fit_topt_VJs(
data,
group,
varnames = list(Vcmax = "Vcmax", Jmax = "Jmax", Tleaf = "Tleaf"),
limit_jmax = 1e+05,
li... |
849ba7c44f5b7ea26b11d398b4d680cf24f917cb | 005fd58207cfba90a5ae54577d36b55ff3905280 | /OldCode/Phenology_GLMMER.R | 538eb6c522a3cf50938215af6f4b11030d17f140 | [] | no_license | audhalbritter/Phenology | ae8b4ce130213a6e9da5872e9c5c8c28ed0b8ad7 | d1c2cbd73610306363686198c385a1305bc2a09c | refs/heads/master | 2020-12-07T19:20:38.625764 | 2018-09-16T12:26:36 | 2018-09-16T12:26:36 | 66,484,125 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,530 | r | Phenology_GLMMER.R | ####################################
# Bayesian Phenology Model
####################################
#install.packages(c("rjags", "coda", "INLA", "rgdal"), repos = c(getOption("repos"), "http://www.math.ntnu.no/inla/R/stable"))
# drop levels and convert factors in integer
pheno.dat <- pheno.long # rename data set
# ... |
c10c97c936bcc008edc46c270df6fc1210fc700f | 7946b84034a7dd7e3d5b4d69db88373d58185789 | /man/ellipsoid_cluster_plot_3d.Rd | 297eaa8d6aa11a122c9a4c3c8426ff00b711d180 | [] | no_license | luismurao/ntbox | 3839a7a346b390850d9d1dc77cbd50cb32a52d00 | 220112e32c53ceef4f5f1bcdb7daed6b755604bf | refs/heads/master | 2023-07-09T05:55:01.119706 | 2023-07-08T18:01:47 | 2023-07-08T18:01:47 | 79,830,037 | 7 | 9 | null | 2020-07-21T00:42:51 | 2017-01-23T17:39:41 | R | UTF-8 | R | false | true | 2,218 | rd | ellipsoid_cluster_plot_3d.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ellipsoid_cluster_plot_3d.R
\name{ellipsoid_cluster_plot_3d}
\alias{ellipsoid_cluster_plot_3d}
\title{Function to plot clusters in 3-dimensions.}
\usage{
ellipsoid_cluster_plot_3d(
niche_data,
cluster_ids,
x,
y,
z,
mve = FALSE,
... |
92b6fbc5e779c2038801ec455953d45c49fea729 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Rnightlights/examples/getPolyFnameRDS.Rd.R | 08a26f38196490c5293a1eb97d311a7457c7a735 | [] | 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 | 260 | r | getPolyFnameRDS.Rd.R | library(Rnightlights)
### Name: getPolyFnameRDS
### Title: Get the filename of the polygon zip file as downloaded from
### <URL: http://GADM.ORG>
### Aliases: getPolyFnameRDS
### ** Examples
Rnightlights:::getPolyFnameZip("KEN")
#returns "path/to/"
|
31c3cb2be39e8e7e458469e5505a96a677d111b0 | ecb91b4e873fc01abda8b16a314e8f05a6aae2d7 | /man/geom_bgimage.Rd | b6a39faa6c78fd52cc32f36d64a6cd5ff88617c2 | [] | no_license | cran/ggimage | 0d1f6ac6aeb2b010d92c629a9b4b096e46bbf7f1 | a2f90b69b18263d7593fd1fb1dda36c67ed8b259 | refs/heads/master | 2023-06-22T23:12:01.059798 | 2023-06-19T04:10:02 | 2023-06-19T12:47:37 | 82,685,702 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 342 | rd | geom_bgimage.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_bgimage.R
\name{geom_bgimage}
\alias{geom_bgimage}
\title{geom_bgimage}
\usage{
geom_bgimage(image)
}
\arguments{
\item{image}{image file}
}
\value{
ggplot
}
\description{
add image as background to plot panel.
}
\author... |
4b6e7f0a07f108625a6aa20eb2f16c78a1bee16e | 6778d5ab56c3215d5b840cea14fb13a61042adf6 | /stemr/man/stem_inference_ode.Rd | 34d6ad767d45d04c4290e973fd15aa2a62f942a7 | [] | no_license | popoloni/stemr | c6b54d1be6c2a30102153c4570ec6d73b1976c3e | 4dc0de5c4083d786cb9d80125f2b4f953715cc1a | refs/heads/master | 2021-04-16T21:20:14.119358 | 2020-03-09T23:50:38 | 2020-03-09T23:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,271 | rd | stem_inference_ode.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stem_inference_ode.R
\name{stem_inference_ode}
\alias{stem_inference_ode}
\title{Approximate Bayesian inference for a stochastic epidemic model via
deterministic trajectory matching.}
\usage{
stem_inference_ode(
stem_object,
iterations,
... |
39a0311729f19f9d3b865725508020ebdf281505 | e405d48e8413d2d182aa662be327e9995105acfd | /tests/testthat.R | 91f7561b3d56fbcd292623d18a270de1a729314b | [
"MIT"
] | permissive | joebrew/tango | 53615bf0098c0ab3a5ac24637814ce90b8c4d22b | 5ae9c0115d1d9887b2a43462c6217d2d1c2a47a2 | refs/heads/master | 2021-05-18T17:54:21.877607 | 2020-04-07T08:41:36 | 2020-04-07T08:41:36 | 251,347,057 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 54 | r | testthat.R | library(testthat)
library(tango)
test_check("tango")
|
e6cbf8d6ef1dad71a3ae16ce562e05a088a067df | 5e832862b2e36be6ba27e874e98499bc399de699 | /inst/NEWS.Rd | 193712a16f33d8c6dad2c26bbfe25d497cd364cc | [] | no_license | dmgatti/DOQTL | c5c22306053ddbd03295207702827cf2a715bb70 | a1a4d170bf5923ca45689a83822febdb46ede215 | refs/heads/master | 2021-01-17T02:08:27.831277 | 2019-05-24T19:22:35 | 2019-05-24T19:22:35 | 13,506,518 | 15 | 12 | null | 2019-02-27T13:46:31 | 2013-10-11T18:33:24 | R | UTF-8 | R | false | false | 3,717 | rd | NEWS.Rd | % -*- coding: utf-8 -*-
\name{NEWS}
\title{News for Package \pkg{DOQTL}}
\encoding{UTF-8}
\section{CHANGES IN VERSION 1.5.3}{
\subsection{CHANGES}{
\itemize{
\item Added get.pgw() to allow users to get genome-wide p-values for LOD or -log10(p-values).
}
}
}
\section{CHANGES IN VERSION 1.5.0}{
\sub... |
9168970eed022a07e7eb783a9b6a3abaab55994d | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/ClustVarLV/R/crit_init.R | 45b7b7e1faba60dd6701479e9e02096a5e50145a | [] | 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,424 | r | crit_init.R | crit_init <-
function(method,X,EXTr,Xr,EXTu,Xu)
### initial clustering criterion (each variable = one group) / hierarchy
{
n<-nrow(X)
p<-ncol(X)
# verification if there are NA values
valmq=FALSE
if (sum(is.na(X))>0) valmq=TRUE
# method 1
if (method==1) {
if ((EXTu==0)&(EXTr==0)){ crit<-... |
47559dd6b3908a6e4427a59ae13aa09c64f5d12a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/BinaryEPPM/examples/foodstamp.grouped.Rd.R | 584f2a78ae7515495bcfeae72c4395fea536d80c | [] | 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 | 267 | r | foodstamp.grouped.Rd.R | library(BinaryEPPM)
### Name: foodstamp.grouped
### Title: Participation in the federal food stamp program as a list not a
### data frame.
### Aliases: foodstamp.grouped
### Keywords: datasets
### ** Examples
data(foodstamp.grouped)
print(foodstamp.grouped)
|
c2a81dfe33e33c4b2430054134c282483c1c970e | 89c14aa2c3d9341081b9ff6b560d93e97796ead6 | /R/NetSim.R | cb65416b75d4c4d8494e6cd5dcf9a08763a4154d | [] | no_license | AkandaAshraf/netsim | 338af794b507062fde99ef297a750070bbf88a3e | 8ea1310f9e186912a157dee3c9b83fa6bf436b2d | refs/heads/master | 2021-01-19T02:26:37.633643 | 2017-02-09T11:23:58 | 2017-02-09T11:23:58 | 78,456,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50,860 | r | NetSim.R | #' This fucntion allowes you to generate three different types of networks with same number of vertices and edges
#' @param ScaleFreePowerRange A vector containing powers for scale free networks, e.g. c(1.5,1.75)
#' @param SmallWorldProbability A vector containing probabilities for small world networks, e.g. c(0.5,0.6)... |
ed96309dc89e048dbf22f16167891573d5fb42f9 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rubias/examples/mixture_draw.Rd.R | dc77724323f1e3fca648a406035f5145e8a1633b | [] | 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 | 378 | r | mixture_draw.Rd.R | library(rubias)
### Name: mixture_draw
### Title: Separate a chosen proportion of a reference dataset into a
### mixture with known population proportions
### Aliases: mixture_draw
### Keywords: internal
### ** Examples
rhos <- as.vector(gtools::rdirichlet(1, table(alewife$repunit)))
cross_val <- mixture_draw(D =... |
6efe81f4b98eba9ba0a98e1f3ac2bfe96cb771dd | c486604d9335890f984a425eb9bab70aabfd8c66 | /Rfiles/fyp.R | cd9e712ced2b2a81d2b537c5398d55383531d711 | [] | no_license | Colin303/An-Analysis-of-the-Dublin-rental-market | 4c0a0f5365fcd5c2033d02b9cc4d8699e199dd76 | 0ee878cd253010b2736630e2a4c95779007c7104 | refs/heads/master | 2021-04-14T02:19:08.251063 | 2020-03-25T19:35:16 | 2020-03-25T19:35:16 | 249,202,147 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 19,720 | r | fyp.R | #final year project
#install.packages("pxR")
#install.packages("dplyr")
#install.packages("tree")
library(tree)
library(pxR)
library(dplyr)
library(ggplot2)
library(plotly)
?read.px
df <- read.px("ria02.px")
df <- as.data.frame(df)
?select
dublin <- df %>% select(Number.of.Bedrooms, Property.Type, Location, Year, value... |
fb6b0143c6f8a9e00968fa6204159cb287f33260 | 88d9c0d58c72ba565d403a21de37f9169ac282a0 | /man/fcds_const.Rd | 5b3105599eb070abe2125de5b0c26fb8c1b95a18 | [
"MIT"
] | permissive | GerkeLab/fcds | 01191bc32e4b73a857ae7ab7ef39e29c6c2713c4 | 7d6cbc89726418629d9c3cd54b10414eb7cab028 | refs/heads/master | 2021-07-08T02:48:46.061128 | 2020-07-30T18:45:01 | 2020-07-30T19:04:25 | 167,439,089 | 3 | 1 | NOASSERTION | 2020-07-30T19:04:26 | 2019-01-24T21:16:41 | R | UTF-8 | R | false | true | 1,374 | rd | fcds_const.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/import.R
\name{fcds_const}
\alias{fcds_const}
\title{List Expected or Valid FCDS Constants}
\usage{
fcds_const(var = "year_group", full = FALSE,
fcds_recoding_file = NULL)
}
\arguments{
\item{var}{An FCDS variable or a package constant. Set... |
b4d15af0bf4dd1b87aeb6cc3a3e6da64d8896ba7 | f8a9279f9726238f606877417b8978cf2766cf49 | /R/Bn.R | f6dedf99a1887513f0934ed73b1cd4ea0f88ae9b | [] | no_license | gcybis/Uclust | fd09bca691d283dbcc4abd3f43bbdbd33e83bcae | 10ae3f89a83f001942abc626d72a4c63f72d8e14 | refs/heads/master | 2020-04-21T02:16:36.053717 | 2019-02-05T14:03:17 | 2019-02-05T14:03:17 | 169,249,205 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,853 | r | Bn.R | #' Computes Bn Statistic.
#'
#' Returns the value for the Bn statistic that measures the degree of separation between two groups.
#' The statistic is computed through the difference of average within group distances to average between
#' group distances. Large values of Bn indicate large group separation. Under overall... |
e371614b70862a7182125c4fc95652cedca22fa9 | 8c7b47e2d083ab703e17e2f392750aa878193b41 | /scripts/ldshrink_ldo.R | 3cbb96572441b66785391e3a832675da332df893 | [] | no_license | CreRecombinase/PolygenicRSS | 847adedd95e437b56903f48a65797e6fd9245e55 | a77be2bea99a6fbddd8b8b6054e4998f69217e9a | refs/heads/master | 2021-06-03T02:27:52.602202 | 2021-03-29T21:16:31 | 2021-03-29T21:16:31 | 98,669,066 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,574 | r | ldshrink_ldo.R | library(dplyr)
library(ldmap)
library(ldshrink)
library(EigenH5)
shrink <- snakemake@params[["shrink"]]
if(is.null(shrink)){
doshrink <- TRUE
}else{
doshrink <- shrink=="shrink"
}
snplist_f <- snakemake@input[["snp_list"]]
snplist_df <- tibble(rsid=rsid2int(scan(snplist_f,what=character())))
bim_df <- read_plink_b... |
d7ef8cf11f91f9d0caea9c434dc7742c39fcbf9f | 360df3c6d013b7a9423b65d1fac0172bbbcf73ca | /FDA_Pesticide_Glossary/4'-methoxy-2-propyl-.R | 7832a45e632ac37e1abc8abff77215a1a57428cb | [
"MIT"
] | permissive | andrewdefries/andrewdefries.github.io | 026aad7bd35d29d60d9746039dd7a516ad6c215f | d84f2c21f06c40b7ec49512a4fb13b4246f92209 | refs/heads/master | 2016-09-06T01:44:48.290950 | 2015-05-01T17:19:42 | 2015-05-01T17:19:42 | 17,783,203 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 276 | r | 4'-methoxy-2-propyl-.R | library("knitr")
library("rgl")
#knit("4'-methoxy-2-propyl-.Rmd")
#markdownToHTML('4'-methoxy-2-propyl-.md', '4'-methoxy-2-propyl-.html', options=c("use_xhml"))
#system("pandoc -s 4'-methoxy-2-propyl-.html -o 4'-methoxy-2-propyl-.pdf")
knit2html('4'-methoxy-2-propyl-.Rmd')
|
a9a1d7b38b73fb4aa412ce0be15a8fce681b9aaa | 750c72e3cceedbe65146442dcc6de16923af8fcc | /man/genertestPreSelect.Rd | e9154a1a2ecbd9cfcc86e8e6049442490c7a43ea | [] | no_license | llaarraa/genertest | 075fd472503d9d3e6a23a85e66d9091a90e51932 | 576b4035d50f3cd94e4413ee34dff1cead34a19c | refs/heads/master | 2018-12-28T05:27:22.615172 | 2014-02-17T13:42:50 | 2014-02-17T13:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,206 | rd | genertestPreSelect.Rd | \name{genertestPreSelect}
\alias{genertestPreSelect}
\title{Function that Generates Tests using a list of prespecified questions}
\description{
This function generates tests with questions drawn from a tab-delimited database. The questions to be included in each test are specified by the user. The tests can include p... |
a68e5055978b477c7c885119c14f2719757cff0b | 8ae4e43fd9f3468232ac2035a12ee9a20eb7f064 | /Homework1.Rcheck/00_pkg_src/Homework1/R/dmvnorm.R | a1f02a5a5f27ae6cd8e5bbf17703f8af55851802 | [] | no_license | duyu8411/Biostat778_HW1 | 40d60343a624c51fa4120c6a3452f364cf3b4a96 | ca182445349846a46832b7e91d3d215e90c6af2e | refs/heads/master | 2020-12-14T09:58:21.868668 | 2013-11-13T18:29:45 | 2013-11-13T18:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 705 | r | dmvnorm.R | ##Fast Multivariate Normal Density
dmvnorm <- function(x, mu, S, log = TRUE) {
if (!is.matrix(x)){
x=t(as.matrix(x))
}
k=length(mu)
n=nrow(x)
##Check if S is positive definite
R=tryCatch({chol(S)},
error=function(e){
... |
ae3889520f055d438f8455a76dcd68fe48100c9a | 4aa72199184e3fbbcfa21e7e7d2a058fd56ce24a | /R_ARA/userdata_ARA.R | 4d8d33114aed2c7a2956bc560ab4b273d0fae6cc | [] | no_license | 0525hhgus/GameR | 71813f692ce42798a1d301155e78c63566532031 | ae6f9b25916c7bdf1c28733a5bef05f1d3fec0bb | refs/heads/master | 2023-02-07T01:15:46.671650 | 2020-12-28T06:39:09 | 2020-12-28T06:39:09 | 248,466,592 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 912 | r | userdata_ARA.R | # userdata Association Rule Analysis
# userdata(ID, Gamename)
# set working directory
setwd("D:/Project/test")
# association rule analysis package
library(arules)
# data import-> make transaction data
udata1<-read.csv("merge_new_userdata_notime.csv")
head(udata1)
udata.list<-split(udata1$Game,udata1$ID)
udata.tran... |
d31f4e9abc1c9c15459a76f453d2618c7930495e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/tidypredict/examples/tidypredict_sql_interval.Rd.R | 6e2121ff2adf0301404198721d060fa06589b75b | [] | 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 | 330 | r | tidypredict_sql_interval.Rd.R | library(tidypredict)
### Name: tidypredict_sql_interval
### Title: Returns a SQL query with formula to calculate predicted interval
### Aliases: tidypredict_sql_interval
### Keywords: internal
### ** Examples
library(dbplyr)
model <- lm(mpg ~ wt + am + cyl, data = mtcars)
tidypredict_sql_interval(model, simulate_d... |
8c050daaa55749e33b0c1b34f206fc0b794966fe | b8cb7d600124f924712ce542c8aa681a8dac409e | /tests/testthat/test_map.R | 4ee4a51d4dcd24ce37aa0f8db22a6428bd338322 | [] | no_license | itsaquestion/MyUtils | c963d37d4412d1e8ec8572cfde230b7a9ffdb5da | 9f9b644d59986c9099a49527b920e219261c2c30 | refs/heads/master | 2021-06-21T02:44:25.781272 | 2019-08-25T03:13:09 | 2019-08-25T03:13:09 | 106,079,702 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 273 | r | test_map.R | library(testthat)
context("row_col_map")
library(xts)
a_df = data.frame(a = 1:10, b = 11:20)
a_xts = as.xts(a_df, order.by = seq(Sys.Date() - 9, Sys.Date(), by = 1))
a_xts
expect_is(colMap(a_df, max), "data.frame")
expect_is(colMap(a_xts, max), "matrix")
|
bc77f136f159451d8ef7be4c71f7cd957f7fe42a | 129408919e4fcde9818bef047f6e9b2a74d23c8a | /tests/testthat/setup-run-model.R | 8cb1089e1dc6c715a19cc374fcf8684ebb8471f7 | [
"MIT"
] | permissive | mrc-ide/naomi | 93decfb73624de911f298aadcc0e0d02b8d7d5e5 | 94d34246144e4dfcb86161258faf213a7db03268 | refs/heads/master | 2023-06-14T06:37:36.343882 | 2023-05-05T11:08:33 | 2023-05-05T11:08:33 | 204,965,083 | 7 | 6 | NOASSERTION | 2023-09-12T12:54:48 | 2019-08-28T15:32:00 | R | UTF-8 | R | false | false | 2,871 | r | setup-run-model.R |
## A single set of valid model options and data, update once instead of copying
## for every test.
a_hintr_data <- list(
pjnz = system_file("extdata/demo-subnational-pjnz/demo_mwi2019_region-pjnz.zip"),
population = system_file("extdata/demo-subnational-pjnz/demo_population_zone.csv"),
shape = system_file("extd... |
2510ed3e3e4c0df9372a6d6175b61f774c421764 | dca44395dbf60e1743c65bced7b26838bd676781 | /HGU/BioData/Data/07_1.Union_with_vennDiagram.R | ec604d69a4e985a2683b5dea7da3be0caacd3339 | [] | no_license | ksmpooh/SungminCode | 1b550c375125ea7869917de337aa093160aa03eb | 33b266b80389664282a2d4d6eb9c2db593442a5f | refs/heads/master | 2023-08-03T16:22:35.085299 | 2023-07-31T16:12:33 | 2023-07-31T16:12:33 | 106,177,934 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,331 | r | 07_1.Union_with_vennDiagram.R | ##Union count
# unique(c(A,B))
## ensemble model data.
# 1. CV
# 2. Mean
# 3. Var
# 4. annotation 308
# 5. annotation 2267
#library(VennDiagram)
library(limma)
library(gplots)
library(dplyr)
##옛날 data
CV <- read.csv("D:/biodatalab/2018-1/TCGA_with_GEO/union/names_GEO_input_ensemble_CV_3000.csv",header = T, sep = ",")... |
f4f1b6ff92ccbe2354db5f8d16db2e8972288c25 | 9fda538efa5f6cd2a5cecc2df29600871b537d6a | /netsim/testset/prova_sn_actfun.R | e75be3fd84afe8d0596a4345299274e869078baf | [] | no_license | mfalda/gen-net-sim | f4b84e8215e4ffcf117099e2d096ee4e61b50915 | 3018f43d4e8dfbf4e37593af8d7d22171061f3ea | refs/heads/master | 2021-03-12T20:00:20.007538 | 2015-08-25T07:34:52 | 2015-08-25T07:34:52 | 41,350,192 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 86 | r | prova_sn_actfun.R | library("netsim")
ris <- simulatenet(N=5, act.fun="linear", times=seq(1,5))
cat("ok") |
199a9093bfc6b997a15d3be9504bd07f51aff9b7 | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Tentrup/mult-matrix/mult_bool_matrix_12_12_11.unsat/mult_bool_matrix_12_12_11.unsat.R | 520d311d86bdd080b536b86bdf3bb3f4770e0d31 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 84 | r | mult_bool_matrix_12_12_11.unsat.R | ec0c63fecb1bdc3e6ce6590c60df747b mult_bool_matrix_12_12_11.unsat.qdimacs 23900 70494 |
6c57e127745fa7fe3fefe7feaa2362f667d6c36a | 966634f142f00afef1259057bde4a2895224a085 | /man/bisect.Rd | 4f07ea1642a01a708206e4ad774e37a1d3c80675 | [] | no_license | pra1981/setsim | 1c6b14d4535820521a128768bb375c1ae502c486 | 068363c626c051a82c7cbd69b1a9c31b85ff85d3 | refs/heads/master | 2020-04-03T06:36:10.289957 | 2014-03-27T14:53:04 | 2014-03-27T14:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,501 | rd | bisect.Rd | \name{bisect}
\alias{bisect}
\title{Bisection Method}
\description{
This function finds the approximate roots of a numeric function by bisection algorithm. The root-finding method is one-dimensional.
}
\usage{
bisect(fn, a, b, tol = 1e-05, error = 1e-04, decimal = 5, input, VZ, c_value)
}
\arguments{
\item{fn}{a ... |
f4ea7ec660e155bdf933aa1a7b01aae320e1da03 | 4d6cb9288727a510475fc1e9ebcf247653486580 | /2020/day05.R | a3876c7db8c0c5b3a1ac40127da8a942ecd237c9 | [] | no_license | rrrlw/advent-of-code | b9ac82442d7c6164ca49c4fb3107fa323810680a | 66c26a723717bfd7d95e2cb4e690735ec0f66005 | refs/heads/main | 2021-12-28T02:36:51.593985 | 2021-12-15T19:40:24 | 2021-12-15T19:40:24 | 226,371,569 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 839 | r | day05.R | library(magrittr)
#####INPUT#####
fin <- file("day5.in", "r")
seats <- readLines(fin)
close(fin)
#####UTILITY FUNCTIONS#####
seat_row <- function(seat) {
seat %>%
substr(start = 1, stop = 7) %>%
gsub(pattern = "F", replacement = "0", fixed = TRUE) %>%
gsub(pattern = "B", replacement = "1", fixed = TRUE)... |
9e0465aa1f02bd32fec53887e417b168d9489fc3 | 541fff10228b07c9b54437c7e5f8e674eb7a3211 | /man/show-commaNMFOffset-method.Rd | 9068347b17226500089d078f2628f6bf5e148208 | [] | 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 | 313 | rd | show-commaNMFOffset-method.Rd | \docType{methods}
\name{show,NMFOffset-method}
\alias{show,NMFOffset-method}
\title{Show method for objects of class \code{NMFOffset}}
\usage{
\S4method{show}{NMFOffset}(object)
}
\arguments{
\item{object}{Any R object}
}
\description{
Show method for objects of class \code{NMFOffset}
}
\keyword{methods}
|
d050e7dda6cc7da900fc9a8ca9912abd96744b5b | 7ba42ea09417547219343e5532a1f7954bdf10b2 | /R/symmetric-delete.R | 01c993d8b3f60345975983e66dddabbf2283a31f | [
"Apache-2.0"
] | permissive | r-spark/sparknlp | 622822b53e2b5eb43508852e39a911a43efa443f | 4c2ad871cc7fec46f8574f9361c78b4bed39c924 | refs/heads/master | 2023-03-16T05:35:41.244593 | 2022-10-06T13:42:00 | 2022-10-06T13:42:00 | 212,847,046 | 32 | 7 | NOASSERTION | 2023-03-13T19:33:03 | 2019-10-04T15:27:28 | R | UTF-8 | R | false | false | 9,038 | r | symmetric-delete.R | #' Spark NLP SymmetricDeleteApproach
#'
#' Spark ML estimator that is a spell checker inspired on Symmetric Delete algorithm. It retrieves tokens and utilizes
#' distance metrics to compute possible derived words.
#' See \url{https://nlp.johnsnowlabs.com/docs/en/annotators#symmetric-spellchecker}
#'
#' @template roxl... |
d33541c7e5d59f0f58675d4511decb337bc076e8 | b539cbf73742731f3363ba67e256632d8f4bf929 | /models/churn/rf_jay.r | 87a0be5ce4973d6ccefa29d4513609738939a1bb | [] | no_license | emmanuelq2/454-kdd2009 | b600042674d28021ac5c87b1499f5068efd3156a | 5884645e6bfa77545f2b196760fc42e31a50bf07 | refs/heads/master | 2021-01-15T22:38:20.173538 | 2015-08-31T03:58:15 | 2015-08-31T03:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,458 | r | rf_jay.r | library(randomForest)
library(dplyr)
library(ROCR)
dirs <- c('c:/Users/jay/Dropbox/pred_454_team',
'c:/Users/uduak/Dropbox/pred_454_team',
'C:/Users/Sandra/Dropbox/pred_454_team',
'~/Manjari/Northwestern/R/Workspace/Predict454/KDDCup2009/Dropbox',
'C:/Users/JoeD/Dropbox/pred_454... |
6f40e538c5227837129f124194ba6064580ad80b | 1b1241229f6386662bef24be67ca94e0ac8f7ca5 | /R/br_contribReadin2006.R | 2974ff4145f8930a73074b809ee2f6a3f98c8de1 | [] | no_license | rafaeldjacome/CongressoAberto | c928815bef71008ffadefc7d2ea1d07fd75129a1 | a4785785cb37e8095893dc411f0a030a57fd30f8 | refs/heads/master | 2020-03-18T00:33:50.482718 | 2010-04-14T14:46:51 | 2010-04-14T14:46:51 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 15,689 | r | br_contribReadin2006.R | #### To do:
#### Export output table to mySQL
#### Incorporate Leoni's techinque for a faster routine ... |
05539034a6f55caa5b92d4a818d23a455c2cbc60 | 5ae9dc9e4052d7e6117c76fbf08041b3871b2e5e | /Analysis/sce_zinbwave.R | 9d7d12d6cec61971cb2cca33829512f0aaa13366 | [] | no_license | LieberInstitute/HumanPilot | 110074304e850b5110d70067d8022c0be31cb352 | eca2070bcd09282a8adbdc3de310084834b7cd9e | refs/heads/master | 2023-04-13T13:14:41.101756 | 2023-02-10T16:25:59 | 2023-02-10T16:25:59 | 225,910,046 | 50 | 25 | null | null | null | null | UTF-8 | R | false | false | 6,362 | r | sce_zinbwave.R | # screen -S sce
# qrsh -l mem_free=60G,h_vmem=60G,h_fsize=100G -pe local 4
# module load conda_R/3.6.x
library('SingleCellExperiment')
library('zinbwave')
library('clusterExperiment')
library('BiocParallel')
library('scran')
library('RColorBrewer')
library('sessioninfo')
dir.create('pdf_zinbwave', showWarnings = FALS... |
294d94dc60ac254c039aff80685e222fb582c8a9 | 7a7375245bc738fae50df9e8a950ee28e0e6ec00 | /R/LGA__Year_Sex_SpeaksEnglishOnly.R | 787445413fe7cffef1b410336da69a8fe9e51d6f | [] | no_license | HughParsonage/Census2016.DataPack.TimeSeries | 63e6d35c15c20b881d5b337da2f756a86a0153b5 | 171d9911e405b914987a1ebe4ed5bd5e5422481f | refs/heads/master | 2021-09-02T11:42:27.015587 | 2018-01-02T09:01:39 | 2018-01-02T09:02:17 | 112,477,214 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 201 | r | LGA__Year_Sex_SpeaksEnglishOnly.R | #' @title Sex, SpeaksEnglishOnly by LGA, Year
#' @description Number of personsSex, SpeaksEnglishOnly by LGA, Year
#' @format 6,756 observations and 5 variables.
"LGA__Year_Sex_SpeaksEnglishOnly"
|
366e0267148eb127c7fc129ea96e8f9c0d186147 | 5a5271666cebe26ee08d92fff11fdbd1a207deb9 | /ui.R | 990125eaa59b04e54ef48873b680c7ff0ee9086c | [] | no_license | elias-nicholson/NFL-2016 | 41745bef6bcb941db993912b2103e79b0ee20117 | 9a26593cd3042134f5e991c96b9086809afd1588 | refs/heads/master | 2021-01-01T19:09:46.034735 | 2017-08-07T17:48:57 | 2017-08-07T17:48:57 | 98,529,578 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,369 | r | ui.R | library(shiny)
library(leaflet)
vars <- c(
"Rank" = "Rank",
"Points Per Game" = "PointsPerGame",
"Total Points" = "TotalPoints",
"Plays From Scrimmage" = "PlaysFromScrimmage",
"Yards Per Game" = "YardsPerGame",
"Yards Per Play" = "YardsPerPlay",
"1st Down Per Game" = "1stDownPerGame",
"3rd D... |
ed1a3ec337d31178967f655ae68b9f2e63044b6e | 54ed1cde940049aecaf859c897a12ff90f83aff8 | /man/lemad_prepare_q_matrix.Rd | 823335e2c70f13eaa63b750a302a1d9fde16be97 | [] | no_license | leonelhalsina/lemad | e23c735fa9499c9912efddd766be6f92f3c89271 | cca43ebff36b67fd78a11c58257a8f4cc15572bf | refs/heads/main | 2023-09-01T17:51:24.864455 | 2023-08-07T13:25:25 | 2023-08-07T13:25:25 | 508,330,655 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 804 | rd | lemad_prepare_q_matrix.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lemad_utils.R
\name{lemad_prepare_q_matrix}
\alias{lemad_prepare_q_matrix}
\title{Transition matrix preparation.}
\usage{
lemad_prepare_q_matrix(
all_area_combination,
matrices_names,
id_q_expansion,
id_q_contraction
)
}
\arguments{
\... |
8d3561f0589c8cb113cf9e97c3597193043ee43d | 2b52b13f54b7139851b9ff0d1ca9ac547d54c3bb | /1b.R | 0c03f4ec76f72c5c434596610fb63e7d2b530ef1 | [] | no_license | friedpine/scRNASeq_ESCC | 1fd37d98eef83b8ed44c9d2789ae852afb102ffc | 1c0b0011337671c9212b290ec92b054a5202f6ac | refs/heads/main | 2023-04-30T15:05:58.418996 | 2021-05-13T08:26:03 | 2021-05-13T08:26:03 | 365,109,859 | 6 | 3 | null | 2021-05-13T08:26:03 | 2021-05-07T04:04:57 | R | UTF-8 | R | false | false | 2,404 | r | 1b.R | setwd("/home/data/human/ESCC/Linna-ESCC/Fig/source_data/")
library(scales)
library(ggplot2)
####CD45- TSNE####
df1 <- readRDS("/home/data/human/ESCC/Linna-ESCC/Fig/Cellinfo_20190924/Cell.info/CD45-_addTEC5_info.rds")
df_EPI=df1[df1$celltype=="Epithelial",]
df_FIBRO=df1[df1$celltype=="Fibroblast",]
df_Endo=df1[df1$cell... |
9ec97f2ce679de4b39bf4b5e0bd0010e5b7849b5 | c4a1f2829277b32dcc5cad6e450548280a7030a0 | /man/read_sql_query.Rd | 0f3937e8d684f26e7544f56fb16b4fd4387b856b | [
"MIT"
] | permissive | moj-analytical-services/dbtools | 32f309d7b1e1a991c1b2b9bcc8a5a3e774731641 | b40672c8e4d91c01991ffd5bdf9bed3a5265ce46 | refs/heads/main | 2023-08-04T14:40:34.161304 | 2022-07-13T11:12:57 | 2022-07-13T11:12:57 | 145,823,893 | 6 | 4 | NOASSERTION | 2023-05-23T03:21:15 | 2018-08-23T08:24:09 | R | UTF-8 | R | false | true | 469 | rd | read_sql_query.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{read_sql_query}
\alias{read_sql_query}
\title{Send an SQL query to Athena and receive a dataframe.}
\usage{
read_sql_query(sql)
}
\arguments{
\item{sql}{An SQL query}
}
\value{
Dataframe or tibble if the tibble library is loaded.... |
4fbec1eb17f433344e318ead37ebcd3c1d4a17f3 | e1c388af0d6464a60848d46e3379c1ce24deb7e3 | /R/run_all.r | 872adabff498d41e5c244efd1c2051e09a40b32d | [] | no_license | mengeln/PHAB-metrics | 485886dbf0591be17f6050f0ea3e0a2d5cb3e9e6 | 6387e32611cc9eecb53ef4a5e9dbab79f83eb0bd | refs/heads/master | 2021-03-12T23:55:50.680066 | 2013-02-06T21:28:19 | 2013-02-06T21:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,592 | r | run_all.r | ###PHAB metrics###
###Metric Calculations###
start <- proc.time()
source("L://Bioassessment Data Management Tools_RM/R Scripts/Bank_morphology.r")
source("L://Bioassessment Data Management Tools_RM/R Scripts/channel_morphology.r")
source("L://Bioassessment Data Management Tools_RM/R Scripts/densiometer.r")
source("L:/... |
dcf118a7267ed13f09f52a0b65ad6d819d54ff81 | a9f9590616da68ae0672ed090a0913820d1d558f | /lab 5/Lab5.R | 4e72e4d2cf9d23363a97ce0b0aa004c08971a0fb | [] | no_license | christian-miljkovic/R-projects | ab144771df651dc6b61fc2ef186feca8caeef76a | 998a1cb952c61306d64756a50ee317c5152188fb | refs/heads/master | 2021-01-13T08:34:12.694878 | 2016-12-16T17:14:50 | 2016-12-16T17:14:50 | 71,661,772 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,772 | r | Lab5.R | #group Christian Miljkovic, Zachary Fineberg, Suchit Sadan
#load in the libraries that you need to use
library(rpart)
### part 1 ###
#load in the data
train = read.csv("/Users/christianmiljkovic/Downloads/LoanStats3c.csv", skip = 1)
test = read.csv("/Users/christianmiljkovic/Downloads/LoanStats3d.csv", skip = 1)
... |
de2c0857bf8329a0dd99cbb9060babe4431911e9 | 9d7f54434513aef0cb5391e473b8203f7767f79d | /man/subform.Rd | 62d893abc2f4f39c68ea767f5673e37bd7fe819e | [] | no_license | blosloos/enviPat | 8c84d7cccb66d4db171d6c3e04c3bbb185314d4a | 2a44696579178c9f8365c1dc179125be2c4982ad | refs/heads/master | 2022-11-05T09:23:11.980814 | 2022-11-03T10:05:47 | 2022-11-03T10:05:47 | 28,415,727 | 8 | 6 | null | 2022-03-07T20:32:03 | 2014-12-23T19:31:19 | C | UTF-8 | R | false | false | 834 | rd | subform.Rd | \name{subform}
\alias{subform}
\title{Subtract one chemical formula from another}
\description{Subtract one chemical formula from another}
\usage{subform(formula1,formula2)}
\arguments{
\item{formula1}{Chemical formula to subtract from}
\item{formula2}{Chemical formula to subtract}
}
\details{
Useful for a... |
e426ac40b05399a1bd0dba4b114c3cfe325a7ac8 | 07bd88725a753783fe892df3bee11c511be6b7f3 | /man/mhingeova.Rd | 345de5cb1cff00f09ac2c183db609f968b42a9c9 | [] | no_license | cran/bst | aaf796323637dea5bdf4efa35cf3b88c2be4dbc4 | 53dbd049b094eee6de2c02c00969900f01da88d2 | refs/heads/master | 2023-01-12T09:01:02.160478 | 2023-01-06T17:50:56 | 2023-01-06T17:50:56 | 17,694,897 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,370 | rd | mhingeova.Rd | \name{mhingeova}
\alias{mhingeova}
\alias{print.mhingeova}
\title{ Multi-class HingeBoost}
\description{
Multi-class algorithm with one-vs-all binary HingeBoost which optimizes the hinge loss functions with componentwise
linear, smoothing splines, tree models as base learners.
}
\usage{
mhingeova(xtr, ytr, xte=NUL... |
2d324ae1833183be0c9bd0dec7e17584de892f2e | 8ff3fd8e4ce47b5a09880bb2f2279c114c8b4064 | /R/MinstressV4.R | 045a2b81625962a674c1fcf1880cfcf147eceb21 | [] | no_license | cran/analytics | cafa61c9e15f59974e4468094158f69ced3d66d7 | b5a52e2ebfef87c1acec2ffe8dcea7188cd7d9bc | refs/heads/master | 2021-01-11T16:33:02.057567 | 2018-10-14T22:30:06 | 2018-10-14T22:30:06 | 80,107,975 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,951 | r | MinstressV4.R | #' @title Better Starting Configuration For Non-Metric MDS
#' @description \code{Minstress} is a heuristic to find better non-metric MDS solutions,
#' by finding better starting configurations, instead of just using a random one.
#' @details This function performs several iterations, each using a different starting ... |
6c0bfc6c6b2b1afd1ac58ef3c0800b14c9685539 | 74b77f77bb7adbb429ed5cf8f8765a5d914337a7 | /R/bisection.update.R | dfe12256aa889a41fa9abafefb283f9aa7004419 | [] | no_license | cran/gIPFrm | 59d349575ec4324951106a8a0f341897a5f233e1 | ec662590567da2900f2bfc8fbd4059eee7de9915 | refs/heads/master | 2020-06-06T12:22:21.899567 | 2017-07-24T08:49:06 | 2017-07-24T08:49:06 | 17,696,180 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,052 | r | bisection.update.R | bisection.update <-
function(ModelMx, ObsTbl, tolerance)
{
obs.s <- sum(ObsTbl);
b <- suff.stat(ModelMx, ObsTbl/obs.s);
gamma.one <- 1/(sum(b));
gamma.two <- min(1/b);
gamma.mid <- (gamma.one+gamma.two)/2;
F.gamma.mid <- ipf.gamma(ModelMx, ObsTbl, gamma.mid, tolerance, "probabilities")
p... |
86947e8f27c3e99192116e49c655436a7f464d58 | 983585773a5f29526e764ff9b35c9a00bbe993c4 | /simple regression.R | 0a931aab9b80e2f4fe84f2b247cde11cb74fb16a | [] | no_license | arjunchandrashekara/R-codes | 3361f23b5867e4130df8a327ba1c0931cb73c2d3 | f9fcdd275c77c639900823ab6a22c6234473857f | refs/heads/master | 2023-03-26T09:05:51.945927 | 2021-03-29T13:48:19 | 2021-03-29T13:48:19 | 294,035,218 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,658 | r | simple regression.R | #MODEL 1 (without applying transformation)
library(ggplot2)
library(readr)
diet <- read.csv('E:/excelr data/assignments/simple regression/calories_consumed.csv')
View(diet)
attach(diet)
plot(Weight.gained..grams.,Calories.Consumed)
cor(Weight.gained..grams.,Calories.Consumed)
diet_model <- lm(Calories.Consumed~... |
848d6a8d2710e1d2664ba882d71cb56dcb7ecce4 | 52a2ee6ebfa9183312b16694fc3cdd57a18186e2 | /importexport.R | f5d842e6a9719ba6b5046c8128a5603887af8821 | [] | no_license | mahamoodsalamalipm1994/analytics1 | 1befd665b2377afe4fe5f740ae1fccf2fa561278 | f832c2f0b367e231153a75ee3b15020b3370dcad | refs/heads/master | 2020-04-02T16:33:18.211769 | 2018-10-27T15:53:57 | 2018-10-27T15:53:57 | 154,617,619 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,382 | r | importexport.R |
#check for files and folders
dir('./data2')
list.files('./data2')
list.files('./data')
file.exists("./data/mtcars.csv")
#Reading from a flat file into a vector
list.files('./data2')
data= scan("./data2/hhe.txt",what="character")
head(data)
class(data)
#csv read from csv
#First create as csv file from iris data
head(... |
a23eaf683a1288e0b66bde51289e8713f1023b18 | d859174ad3cb31ab87088437cd1f0411a9d7449b | /autonomics/man/prepare_rnaseq.Rd | eb77f754142577e8cba7584edc80f8920d5e5eff | [] | no_license | bhagwataditya/autonomics0 | 97c73d0a809aea5b4c9ef2bf3f886614eceb7a3c | c7ca7b69161e5181409c6b1ebcbeede4afde9974 | refs/heads/master | 2023-02-24T21:33:02.717621 | 2021-01-29T16:30:54 | 2021-01-29T16:30:54 | 133,491,102 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 719 | rd | prepare_rnaseq.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_omics.R
\name{prepare_rnaseq}
\alias{prepare_rnaseq}
\title{Prepare rnaseq counts for analysis}
\usage{
prepare_rnaseq(
object,
filter_exprs_replicated_in_some_subgroup = FALSE,
plot = TRUE
)
}
\arguments{
\item{object}{Summariz... |
44a52cae0957430783d7eb6d763ea90acb52e2a8 | 3165136f79bb0154b8af62dc71a112ffc80ae787 | /funs/sf.count.R | 433d7f3791de43353bb1b71f8e53860a1dba454f | [] | no_license | yuliasidi/wilson_newcombe | 0dce8043477417799fe098f1a99645fb12f5e9d0 | 0b9b065bdb01b35f48088df787d0e3b6a15bda02 | refs/heads/master | 2021-06-23T00:14:48.715457 | 2019-10-21T01:28:03 | 2019-10-21T01:28:03 | 192,383,341 | 0 | 0 | null | 2019-10-21T01:28:05 | 2019-06-17T16:37:50 | R | UTF-8 | R | false | false | 369 | r | sf.count.R | #count number of successes and failures for variable y.m in the dataframe
sf.count <- function(dt){
out <-
dt%>%
dplyr::filter(is.na(y.m) == F)%>%
dplyr::group_by(y.m)%>%
dplyr::summarise(nobs = n())%>%
dplyr::mutate(y.name = ifelse(y.m==0, "fail", "success"))%>%
dplyr::select(-y.m)%>%
ti... |
9ec3503849ddfd2314c438d3f30ca0a148619acf | 5c418434fdc42397f1273d32d00180b18c823b42 | /ig1/plot-snpindex.R | 3bd262a8ce7869c5df28389137a083a19fb3a4ce | [] | no_license | carnegie-dpb/evanslab-R | 82d75d06d7f49d6d57daf76f513900c9659f1909 | c9d9f252d985092ef5809fd9033cd14339aade1b | refs/heads/master | 2020-08-24T13:53:23.010546 | 2020-03-12T14:01:55 | 2020-03-12T14:01:55 | 216,839,315 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 714 | r | plot-snpindex.R | ##
## plot the "SNP Index" for each seg call on each chromosome, stacked.
##
opar = par()
par(mfrow=c(10,1),mar=c(0.4,4,0.4,0.4))
strain = "B73"
minsize = 20
xmax = max(seg$start[seg$contig==1])
xlim = c(0,xmax)
ylim = c(-1,1)
plotrange = (seg$a+seg$b)>minsize & (seg$c+seg$d)>minsize
plotseg = seg[plotrang... |
b44bade795347102615a0ec8bcd3583bb26a36db | 7f85b0a178495cc4e56b9321f0b4f4d22c7eb5bd | /Experimental/nsx.R | bbe7c4d090ec0a788e657c1da1982f500f07a903 | [] | no_license | LasseHjort/cuRe | 9e07b9bc7aadf33bed424bfe0053693c1ee58cd9 | b8043decfe107f1e6f94fcea074e08fcad4e41f3 | refs/heads/master | 2023-07-06T12:44:30.247560 | 2023-06-29T21:01:42 | 2023-06-29T21:01:42 | 85,562,010 | 8 | 4 | null | 2022-02-28T22:00:21 | 2017-03-20T10:08:30 | R | UTF-8 | R | false | false | 3,432 | r | nsx.R | nsx <- function (x, df = NULL, knots = NULL, intercept = FALSE,
Boundary.knots = range(x),
derivs = if (cure) c(2,1) else c(2,2),
log=FALSE, # deprecated: only used in rstpm2:::stpm2Old
centre = FALSE, cure = FALSE, stata.stpm2.compatible=FALSE)
{
nx... |
5466d7e4aaa6a9fe4a14f80ad20a2aaf415abd8d | 7dda987e5bc0dea30143ad52f190b41bc06a1911 | /LeafletMapping/mappingLeafletTrailPCT.R | 283a32e8dbe9be6757c3b57d46333b717109ff2c | [] | no_license | bgbutler/R_Scripts | 1b646bc4e087e8d80b52d62fed8eb20841ed2df7 | b10e69f8781eb2a19befe5f80f59863a0f838023 | refs/heads/master | 2023-01-25T04:08:44.844436 | 2023-01-12T16:00:55 | 2023-01-12T16:00:55 | 28,370,052 | 5 | 4 | null | null | null | null | UTF-8 | R | false | false | 1,169 | r | mappingLeafletTrailPCT.R | #testing alternative mapping with leaflet
library(rgdal)
library(maps)
library(htmltools)
library(devtools)
library(leaflet)
library(sp)
library(htmlwidgets)
library(plotKML)
library(maptools)
library(XML)
library(RCurl)
library(stringi)
library(mapview)
install_github("environmentalinformatics-marbur... |
769e9fe94d1972514d0b400bc7b8cbd35a4d1c94 | b2016858528a47152f8895761fd22b739cb7ee5a | /ApeR/R/Graficas.R | e3efce1245ecf86eaeb2def90394847eaf05ff1d | [] | no_license | crisns1d/BiologiaComparada | 165d1371843e88b087e5f8a7f8f5fbd15d485839 | 3a1c51f7b6d6b49d0cc2164c98ae9b3afe976988 | refs/heads/main | 2023-03-20T02:24:15.226454 | 2021-03-10T16:15:20 | 2021-03-10T16:15:20 | 341,722,364 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,537 | r | Graficas.R | library(ape)
library(ade4)
library(phangorn)
library(adephylo)
library(phylobase)
library(rgl)
getwd()
setwd("C:/Users/UIS/Downloads/ApeR")
tre1 <- read.tree(text = "(((a:0.7,b:0.2):1.5,d:2):1,c:7);")
#####ARBOLES CON LONG DE RAMA Y TITULO#####
par(mfrow=c(1,3))
plot(tre1, use.edge.length = FALSE... |
9553cc7c5efd36bdc16112cbb51360f8ffdb9fd9 | a7fcfcd589789859ea7fc129246820502578d97f | /scripts/da.R | 1d5fd5c6ded40a1ad0d49846a66337c91eb9e09b | [] | no_license | mikkimikki2020/multivariate_analysis_final_project | 7c27106a8975f21ad2737e72ac95ced123eaab31 | 02863423f625fa9d66096afd22d1f4c834c6f851 | refs/heads/main | 2023-05-06T23:06:47.945321 | 2021-04-28T14:52:51 | 2021-04-28T14:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,472 | r | da.R | # Applied Multivariate Data Analysis
# Final Project
# Emrecan Ozdogan and Kyle Naddeo
#--------------------------------------------#
# Linear and Quadratic Discriminant Analysis #
#--------------------------------------------#
# Import
library(dplyr)
library(magrittr)
library(ggplot2)
library(MASS)
# Read in data
#... |
4b65587ce133ef0f5fa84fdabf266045cb0049fe | 2b9f876089553638cab483e1744533eb5a0bee90 | /scripts/tests.R | 59be9e22cd1839e5312bf386caf7e42583e2d294 | [] | no_license | hunzikp/dimstar | 028e2d609f5248511b6bba5872aced1db82be2b2 | d512e2d130d805772eea234c1b5ddf17747c5d79 | refs/heads/master | 2020-03-21T04:25:38.326133 | 2018-10-07T14:39:18 | 2018-10-07T14:39:18 | 138,107,604 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,006 | r | tests.R | ##################################################
# Test
##################################################
library(dimstar)
reticulate::use_condaenv("py36")
#########################
# Set parameters
N <- 256
TT <- 20
G <- 1
n_pairs <- ifelse(G > 1, ncol(combn(G, 2)), 1)
temporal_dep <- TRUE
spatial_dep <- TRUE
o... |
7db45d57ae4fd6e4187b0574aadd717be932a763 | dd75f1e69992dc37957d45f1cb6c22e7b134251f | /R/GenLengthAgeKey.r | 31e438187a67242993833c336bd44ab06e794ca0 | [] | no_license | allen-chen-noaa-gov/nwblastarca | 03ba1f7248661e0c80d7a8b6a2bdfad415fce694 | 4bd06d76c66aaeba4cb6e01228834d138f328288 | refs/heads/master | 2023-03-29T17:14:50.047636 | 2021-03-29T21:32:02 | 2021-03-29T21:32:02 | 297,245,801 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,121 | r | GenLengthAgeKey.r | GenLengthAgeKey <- function(numbersatage, ALKey) {
#' GenLengthAgeKey
#'
#' Organize the numbersatage and age-length-key
#'
#' @param numbersatage Vector of current numbers at age
#' @param ALKey DF of age-length-conversion w/ C1=LBins, C2=first age
#'
#' @return tmp6 Probability distrib... |
0950227f540dde0ff41018f1feb0ebc473889946 | 371c46abac59d344a0ef068bab5540d2df0eeda9 | /Week 8/ROICalc/.Rproj.user/8F601889/sources/per/t/C79AA8CB-contents | a4d8c477c3ae425c11f47dde87a89fa815a0a644 | [] | no_license | searssl/My-First-Repository | 83e60e238f5562a0ac0b29fd882949b987a53637 | 67bbaa6ac772a51fff98c6c868731e7e453e9995 | refs/heads/master | 2020-08-01T04:42:05.526993 | 2019-12-20T06:43:49 | 2019-12-20T06:43:49 | 210,867,405 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,046 | C79AA8CB-contents | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/InvestmentCalculator.R
\name{InvestmentCalculator}
\alias{InvestmentCalculator}
\title{Return on Investment Calculator}
\usage{
InvestmentCalculator(IA, Fee, PT, PP, SP, ST)
}
\arguments{
\item{IA}{Initial Investment: The value of money to be... | |
09602e1d3387c9f7b27488c13e5aa4dcc57bfc98 | 1162ed3eb91acc15f6b3d4d1505adc4d7c7bb86e | /tests/testthat/test-corpus_sample.R | 803ea8e2418975fe3b3aef6d74d06d827b83f541 | [] | no_license | leeper/quanteda | 01fec90decb0e8ee5a4984c41269f3fbbebe4490 | 8b4ee857251ad14494c107aca889cd1b844c6418 | refs/heads/master | 2021-01-20T03:47:37.822050 | 2017-04-27T10:55:57 | 2017-04-27T10:55:57 | 89,587,640 | 1 | 0 | null | 2017-04-27T10:53:45 | 2017-04-27T10:53:45 | null | UTF-8 | R | false | false | 1,004 | r | test-corpus_sample.R | context("corpus_sample tests")
doccorpus <- corpus(c(one = "Sentence one. Sentence two. Third sentence.",
two = "First sentence, doc2. Second sentence, doc2."))
sentcorpus <- corpus_reshape(doccorpus, to = "sentences")
test_that("test corpus_sample to see if without grouping, documents can ... |
11ae884cf90764e880a0310b8241d4c4825536a0 | 16d234889fef3e74dbf1e271b8b29577218fc915 | /R/ld_for_finemapping.R | 2a0f94d13ff190cc60760f672c4598502bb896e6 | [] | no_license | CreRecombinase/ptb | d5fd1cc8e6fe003028d84b010a5404c0de08f7fa | d14650f83260c74ca8a9f13910dc4e4612aadda2 | refs/heads/master | 2020-04-29T01:11:34.537193 | 2019-04-18T20:42:27 | 2019-04-18T20:42:27 | 175,722,378 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,406 | r | ld_for_finemapping.R | library(tidyverse)
library(spaa)
library(Matrix)
args = commandArgs(trailingOnly=TRUE)
blocks <- as.numeric(args)
#b <- 512
zscores <- read_tsv("ga.zscores.tsv.gz")
snp_info <- readRDS("/project/compbio/LD/CEU/SNP_chunks.RDS")
block2chunk <- readRDS("/project/compbio/LD/CEU/block2chunk.RDS")
#annot <- read_tsv("..... |
4db0cccdca0104e0ac42905f3ca8474f2cee5985 | 6beef7a871c10d3baf74d87520ae53dbd52cf450 | /man/aggregate.Rd | 48d1bd6c9f6e37c55844cb9c0e3574170b909e81 | [] | no_license | FelixErnst/RNAmodR | d66ed5cb83b300b3d9e24f8310f46bb2f9b734ee | 114a9f8f781a896205e573c3a87f437978dfe03f | refs/heads/master | 2021-11-22T11:37:10.254735 | 2021-08-25T19:23:14 | 2021-08-25T19:23:14 | 53,844,127 | 2 | 0 | null | 2020-04-29T10:15:57 | 2016-03-14T09:40:42 | R | UTF-8 | R | false | true | 4,372 | rd | aggregate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R, R/SequenceData-class.R,
% R/SequenceDataSet-class.R, R/SequenceDataList-class.R, R/Modifier-class.R,
% R/ModifierSet-class.R
\name{aggregate}
\alias{aggregate}
\alias{aggregateData}
\alias{getAggregateData}
\alias{hasAggreg... |
38f921ddc11dbeceb6abae08718f387e2d692390 | 2725b52781b03ea0e49fe75c8d1184ab91bdf383 | /man/dvrpc_bg_data.Rd | b1a5044ade0e48c33a6c9bc793adb1826ba0b0c9 | [
"MIT"
] | permissive | davisadamw/evworkplace | 8f45428ab2231b0ec0038d522968f68b3295bb3d | 4279e532eb0d88cb040e408c74d8c8385fc06167 | refs/heads/master | 2023-04-29T10:38:34.564711 | 2021-05-17T03:09:37 | 2021-05-17T03:09:37 | 351,246,349 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,414 | rd | dvrpc_bg_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{dvrpc_bg_data}
\alias{dvrpc_bg_data}
\title{EV adoption data for the DVRPC region.}
\format{
A data frame with 7128 rows and 13 variables: \describe{
\item{GEOID}{FIPS code for each block group in the region}
\item... |
f5c7caedf80a08eb811e4fc5e7d86dbac8d02503 | e8d454a6501c12436bd88c9b68745233945907dd | /tests/testthat/test_check_data.r | c61f03c4577a6677b88f5c558ad1464d55b40d85 | [] | no_license | CharnelMouse/relationcheckr | 0d75e50acab13726151e7cd46c3653c693a663e6 | 18f0f7d18e222c6e22cc8ebedef6fc9a83ca8962 | refs/heads/master | 2023-04-20T14:37:33.562568 | 2021-05-10T09:54:11 | 2021-05-10T09:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,962 | r | test_check_data.r | describe("check_primary_keys_unique()", {
it("expects at least one column name for primary key", {
expect_exerr(
check_primary_keys_unique(data.table(a = integer()), character()),
"colnames cannot be length zero"
)
})
it("expects colnames to be in dt", {
expect_exerr(
check_primary_k... |
7c30e8f98cb903f7120799429f43e59c2e62753d | 9be16fab833da0f2355961d57b8b077a3380a352 | /icesIntro/data/nscod_natmort.R | 130b652556232fb4fe413614643f61560cda915a | [] | no_license | ices-eg/tc_tcsai2017 | 6747783d450a77990f02d32a5f8b65e0f13a0b9f | 4fe6988b4124e3da9970a056b930043a61dd4d62 | refs/heads/master | 2021-06-17T20:17:34.840348 | 2017-06-12T15:49:53 | 2017-06-12T15:49:53 | 93,315,117 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,692 | r | nscod_natmort.R | nscod_natmort <- as.matrix(read.table(text="
Year 1 2 3 4 5 6
1983 1.357 0.715 0.212 0.200 0.200 0.200
1984 1.344 0.717 0.212 0.200 0.200 0.200
1985 1.325 0.718 0.213 0.200 0.200 0.200
1986 1.301 0.718 0.213 0.200 0.200 0.200
1987 1.274 0.718 0.214 0.200 0.200 ... |
a06883c7ae52ccfed56060f041b8bc53ab8aaefd | 29585dff702209dd446c0ab52ceea046c58e384e | /markovchain/tests/testthat/testInference.R | 300fbce7e960566bab42097d409957af513c6987 | [] | 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 | 706 | r | testInference.R | #library(markovchain)
sequence<-c("a", "b", "a", "a", "a", "a", "b", "a", "b", "a", "b", "a", "a", "b", "b", "b", "a")
mcFit<-markovchainFit(data=sequence,byrow=FALSE)
# verifyMarkovProperty(sequence)
# assessOrder(sequence)
# assessStationarity(sequence, 1)
# divergenceTest(sequence, mcFit$estimate@transitionM... |
09628358222abc10bb0a284a45a665f19d1ba101 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/MPTmultiverse/tests/test-identifiability_checks.R | 184dc51997720fceb614f74836b413bf32514643 | [] | 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 | 1,932 | r | test-identifiability_checks.R |
context("MPTinR: Identifiability of individual parameters")
test_that("Non-identified parameters are excluded", {
testthat::skip_on_cran()
testthat::skip_on_travis()
op <- mpt_options()
mpt_options("default")
mpt_options("bootstrap_samples" = 200)
mpt_options(n.optim = 5)
EQN_FILE <- system.fil... |
3b4e8ffee39cdb6f4fb28792cb65b88770a9dcf4 | 6eb980a9312f50491782a92875a52618dfbcffc6 | /man/print.available_packages.Rd | 3ca307d6f55d8afb28e5db6421c45848ecbb8d7a | [] | no_license | cran/deepdep | d9636bb8dd22b64e86b893adb2c0873ea87068c4 | 74b4aafcb30d8d1bde5e212c6187d052180a7e94 | refs/heads/master | 2023-03-05T18:45:35.804669 | 2023-02-20T23:10:05 | 2023-02-20T23:10:05 | 245,601,598 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 572 | rd | print.available_packages.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_available_packages.R
\name{print.available_packages}
\alias{print.available_packages}
\title{Print function for an object of \code{available_packages} class}
\usage{
\method{print}{available_packages}(x, ...)
}
\arguments{
\item{... |
db0712c4737b635bfb28b7e214fdea76c1c25269 | 2a63bbb53d797c916ae959dde41fe263a7ae8d44 | /rankall.R | d5df290e72f24b0c5f593f0a429357c20370ec53 | [] | no_license | emiliehwolf/prog3 | 0b0e77a7456fa6e83f172bb2370ebbf8893eef74 | 29ca28a61d87795be67639ef031ad636f89a888b | refs/heads/master | 2020-04-06T07:04:08.765064 | 2017-02-12T09:56:31 | 2017-02-12T09:56:31 | 33,079,881 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,389 | r | rankall.R | ##rankall.R
##Author: Emilie H. Wolf
##February 12, 2017
rankall <- function(outcome, num="best") {
## Read outcome data
df <- read.csv("outcome-of-care-measures.csv",
colClasses = "character",
na.strings = "Not Available")
... |
544ba753e01be090925588864ec841a4fc00ac30 | 297723ea95582c22fba42adb1e375a20863f3f94 | /SC_HOBO2020.R | bf6e9fd74ba65d598a38c95c93880942cfd72773 | [] | no_license | kellyloria/megacosm | ac9f6ebea9d56f6fc3b87e5af9348f9e3ad4179b | ebbbbf2a7b4d179c4c2d749877bb544aa62d7cd9 | refs/heads/master | 2020-08-29T19:39:15.884895 | 2020-07-29T21:12:17 | 2020-07-29T21:12:17 | 218,150,596 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,923 | r | SC_HOBO2020.R | ## ---------------------------
## QA'QC for 2020 Sandy Corner (SC) "Megacosm" Pilot:
## Zooplankton Community Comp Data Logger Data
##
## Author: Kelly A. Loria
## Date Created: 2020-06-22
## Email: kelly.loria@colorado.edu
##
## ---------------------------
## Load packages:
library(ggplot2)
library(dplyr)
library(lu... |
aa4208569629a1bf9a3794d823b75b5bd1281c65 | 02b5125f6b2f94430176c1de91d4e65aef7e9ff5 | /binomial/man/bin_probability.Rd | 4cdaf018f9e35638642db6df3511210e760998da | [] | no_license | stat133-sp19/hw-stat133-sp8268 | 1a3c4586e621becaa3547a06e334609cb9536947 | 9a6d68542ff0452bf4c222ac11cc06a3f1614de8 | refs/heads/master | 2020-04-28T06:17:40.574375 | 2019-05-02T06:07:14 | 2019-05-02T06:07:14 | 175,051,636 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 704 | rd | bin_probability.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/density_functions.R
\name{bin_probability}
\alias{bin_probability}
\title{Binomial Probability}
\usage{
bin_probability(success, trials, prob)
}
\arguments{
\item{trials}{number of trials, must be non negative int}
\item{prob}{probability of... |
1a795de3e7f91294b8581d4aef4f43986dd1701e | 8d2dad35b45e1d4a477cae2411c4a2aabc54dc5b | /DiscriminantAnalysis.R | ae1f07899aed0e8ecb59a27476792f12463b0fef | [] | no_license | dov1000/Seasonal_Forecast | fce3ea3acc4ddcf23ba8b84b6135e3a5ef23bd80 | 5cb86b2dd7b3d08f67d0d9ea9ad4177e512d8458 | refs/heads/master | 2023-05-05T11:14:24.941515 | 2021-05-10T18:33:59 | 2021-05-10T18:33:59 | 365,926,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,610 | r | DiscriminantAnalysis.R | library("tidyverse")
library('caret')
library('MASS')
library('mda')
setwd("C:/Users/daoban/Documents/RelacionIndicesLluvia/")
data_reventazon <-read.csv('Ventanas.csv') %>%
as_tibble()
#Primero comparamos con los deciles de la lluvia total, luego vemos si funcina
#mejor la comparación dividiendo po... |
b7fdfae199b0f0836b5c24aa4800b703fee25e7d | 5241969456b343da0cafa603f6b373c3bc0863eb | /man/LAhighweewoo.Rd | 11d776b2f3125fea57d4ea84759c640f8af30597 | [] | no_license | cran/IDmeasurer | 880fc937e1eda6c7ca891eeaf3e516d3a5675032 | c89c6d520a594207d3e099f9edd66287837f4560 | refs/heads/master | 2020-05-21T00:44:51.684846 | 2019-05-09T14:10:10 | 2019-05-09T14:10:10 | 185,838,467 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,125 | rd | LAhighweewoo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_LAhighweewoo.R
\docType{data}
\name{LAhighweewoo}
\alias{LAhighweewoo}
\title{Yellow-breasted boubou, \emph{Laniarius atroflavus} - spectrum properties}
\format{A data frame with 330 rows and 7 variables:
\describe{
\item{id}... |
4703ae5922f786517dbbb331c8c40668dd002d4a | 5e4b2875992bd59ff81a39d5898edfb881c963e0 | /R/hello.R | e8ff43f59b80f9bdb3fbb21eaf78215862e1c77f | [] | no_license | A-Mani/RapidRoughSets | 000202f67e909dd15a3150f2007760226fe139e4 | 2f25ce5ba9f31d47cfa35d76b2d758c243f291ac | refs/heads/master | 2020-05-29T11:04:56.183312 | 2015-09-03T20:30:11 | 2015-09-03T20:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,738 | r | hello.R | # Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Build and Reload Package: 'Ctrl + Shift + B'
# Check Package: ... |
0983539815307873228ee36f5d472b4817b2067e | f5b5aaa6bce2ddfb76ee0b519533e72d254fd125 | /Plot4.R | ee3f437fffb33ee9b93d11ad3a2ea20e91e05a83 | [] | no_license | JulesBuh/ExData_Plotting1 | 6d73beaafe8415a2eaea65016b98b1275cdce009 | cc6d621e06c785420dff7eed65d08c5440d105df | refs/heads/master | 2021-01-18T17:34:16.917814 | 2017-04-02T16:30:47 | 2017-04-02T16:30:47 | 86,810,546 | 0 | 0 | null | 2017-03-31T11:08:26 | 2017-03-31T11:08:26 | null | UTF-8 | R | false | false | 19,423 | r | Plot4.R | ##Plot 4----
#> Description----
# outputs a line graph as a png file with a transparent background
# subsets with differnt colours and labels
#>0 Input and prerequsites----
#date range 2007-02-01 and 2007-02-02
studyPeriodMin<-as.Date("2007-02-01")
studyPeriodMax<-as.Date("2007-02-02")
#gets t... |
816830d5fe6f04966f3adffdf2131b4ac47da9f7 | da79c7c583e1786763e8fb4c85609de33dea1996 | /Homework-3/ENVE_681_HW_3.R | c80c987eea5f3f50d8c14c99421ac6defd12384c | [] | no_license | nhorscroft/ENVE-681 | 13815d9ef6033281db7ff3dff43c5b7d537ea30c | 2d25be025c836b660bba712f4a261f11f0224709 | refs/heads/master | 2021-08-15T14:50:58.020585 | 2017-11-17T21:32:58 | 2017-11-17T21:32:58 | 107,407,500 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,682 | r | ENVE_681_HW_3.R | # Homework 3 ------------------
# Nicola Horscroft
# 10/23/17
#------------------------------
library(tidyverse)
library(lubridate)
library(plotly)
# Define input variables
#------------------------------------------------------------------------------
# x_len = length in x direction in meters
x_len = 600
# y_len =... |
cdd0d75629a5ce1e28858be4c6921d7bdaa67918 | 738bb985cee6f38c65b1bc627545a546918d67ae | /src/prediction_binary.R | 87c7a3668b43c2cb4d934dcdf80192b1e71290c6 | [] | no_license | zrxing/multiseq_analysis | ca610a62fa1b6625808baac72a157ea2acb534c6 | 6c0905d98488bc0054dccff118c193d4fdc676b0 | refs/heads/master | 2021-01-17T13:17:12.345993 | 2016-06-16T22:30:25 | 2016-06-16T22:30:25 | 34,276,097 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,235 | r | prediction_binary.R | library(multiseq)
nbase = 2^7
normalize = function(x) x/sum(x)
dprof = read.table("data/Batf_S356_dnase_data.txt.gz")
cinfo = read.table("data/Batf_S356_site_and_chip_data.txt.gz",header = TRUE)
ccount = cinfo[,6]
train.size = round(0.8*dim(dprof)[1])
set.seed(417)
train.ind = sample(1:dim(dprof)[1],train.size,repl... |
d619de9480171b75d9b8e6be35d570b6f34c8554 | 453af6b3999d75b9fa9ab0521c38e530b3dfacb0 | /data-raw/gesundheitsaemter_geolocation.R | 93e8f62ce6ac4441d3d2e17feeacd0fb8f47b06a | [
"MIT"
] | permissive | gstephan30/sormasmap | 5824be33f8f053da477524493414e1e9f3a7ea56 | 62a506c341695e10837fcf52bb4474c8a1ed7b7f | refs/heads/master | 2023-02-15T20:36:10.767043 | 2021-01-15T13:25:05 | 2021-01-15T13:25:05 | 329,615,108 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,751 | r | gesundheitsaemter_geolocation.R | library(tidyverse)
library(ggmap)
library(janitor)
# import data
load("data-raw/gesundheitsaemter_plz.rda")
# prep data
# filter geo locations with address
gesus_nested_prep <- gesus_nested %>%
mutate(geo_string = paste(Street, Postalcode, Place),
geo_string= str_trim(geo_string)) %>%
# filter geo locati... |
6a567c8acdca4d24f4c0fe9ce227789f069bc4bb | c320f24a8099951a226944cb5ca681808f6689c5 | /9_Positive_selection_analysis/positive_sel_plot_perm_lrt.R | c527178bb32ca5d55bc4261c0ae732b09f37b127 | [] | no_license | AsexGenomeEvol/Timema_asex_genomes | 8abb44a8eee376aaf1e9f71fa3a825a9c2850416 | d224ec578dce30799e152a9a29b134fd725e0ad5 | refs/heads/main | 2023-04-16T02:55:04.951616 | 2022-05-31T16:27:42 | 2022-05-31T16:27:42 | 313,881,475 | 2 | 3 | null | null | null | null | UTF-8 | R | false | false | 6,023 | r | positive_sel_plot_perm_lrt.R | ### +ve sel
library(ggplot2)
library(cowplot)
library(hash)
library(stringr)
library(car)
library(MASS)
library(fitdistrplus)
print (sessionInfo())
# R version 3.5.1 (2018-07-02)
# Platform: x86_64-apple-darwin15.6.0 (64-bit)
# Running under: macOS 10.15.7
# Matrix products: default
# BLAS: /Library/Frameworks/R.f... |
19e08ecbc794292625caaea887bccbb201c2a261 | 59d6c373b4a59dd6f4ad6f771a4bc147d71bb4a3 | /man/sensPlotMatrix.Rd | 01e5b3987754b47852f059e6f073d87a90bc01e7 | [] | no_license | dkneis/mcu | 0107c4b6f5cf6d1d4ec3b66889783868da0a7eb8 | 0b87de1944d553b23386c0e35f11f65f4c1a70f9 | refs/heads/master | 2021-01-24T16:10:03.146094 | 2016-03-17T17:32:30 | 2016-03-17T17:32:30 | 38,431,953 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,385 | rd | sensPlotMatrix.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/sensPlotMatrix.r
\name{sensPlotMatrix}
\alias{sensPlotMatrix}
\title{Plot sensitivity info as a matrix}
\usage{
sensPlotMatrix(sout, thr = 0.9, xpars = TRUE)
}
\arguments{
\item{sout}{A list of data frames returned from a call to \cod... |
0f7404466675d37cf515622925914c724f215d46 | b98aa1f5e3bdc1b3c9d0cf29d2f7ad7711707a41 | /GUI.R | 28d7a68171990ed5344905ec4f5b031766c68c6b | [] | no_license | Matheesha-Nayanajith/R-Project01 | 7fee4ad74ff7b31987b3130ff397e92f34a68368 | ab585b0346f112212a57b287f0c433273d5a59df | refs/heads/main | 2023-07-19T03:31:52.146735 | 2021-09-27T08:21:21 | 2021-09-27T08:21:21 | 380,057,264 | 0 | 0 | null | 2021-09-27T08:21:22 | 2021-06-24T21:44:54 | R | UTF-8 | R | false | false | 15,002 | r | GUI.R | #simple scatterplot----
?plot
X1 = 1:10
Y1 = X1^2
X1
Y1
plot(x=X1 , y=Y1)
#adding linetype
plot(x=X1, y=Y1, type='p') #lty = linetype = points
plot(x=X1, y=Y1, type='l') #lty = linetype = lines
plot(x=X1, y=Y1, type='b') #lty = linetype = both
#adding line width, color and cex(size of point)
plot(x=X1, y=Y1, type='b... |
55e8a778926f197c624d25d62a58ec6630ed4e08 | 411028fa05f953b3b129ff0e289fac869d314453 | /LIME_data_prep.R | 67614c586516228173298cc0be48a537392a64e0 | [] | no_license | davidgillmarine/spatial-fisheries-analysis | 2a4959ee8b9f7eaca1461931d4bf5cfe7c7e2912 | b2f932b3d4bad5c7387b068c4b9ef2df91c27b86 | refs/heads/master | 2023-06-08T23:17:42.360084 | 2023-05-31T15:04:30 | 2023-05-31T15:04:30 | 184,622,949 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,035 | r | LIME_data_prep.R | library(rio)
library(janitor)
library(tidyverse)
#set working directory to the R Drive
workdir <- "R:/Gill/research/spatial-fisheries-analysis/"
input.dir <- paste0(workdir,"tables/raw/")
spatialdir <- paste0(workdir,"spatial/raw/")
plotdir <- paste0(workdir,"output/")
tabledir <- paste0(workdir,"output/")
speciesdi... |
19f6beab6f34e885443ed5c20cb43daab8dd347c | 02e4fa1103ff77f47562d06b7a5c7898547daf6e | /misc/rename_vars.R | 2b0145b773403b8e0b6fad377345823a10f7ffe1 | [] | no_license | uhoang/mec | fb3d29badf1d9ee4353c70eaf1b322b4d042cd9d | 341c0b229bb37ee27daf3eb2f754b0fcd40cdf87 | refs/heads/master | 2021-05-02T10:19:51.342436 | 2018-02-21T19:29:01 | 2018-02-21T19:29:01 | 120,794,523 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,147 | r | rename_vars.R | questions <- c(
'Q_LANGUAGE' = 'Q_LANGUAGE: In which language do you prefer to take this survey? / Dans quelle langue préférez-vous effectuer cette enquête?',
'Q_AGESCREENER' = 'Q_AGESCREENER: How old are you?',
'h_AGE' = 'h_AGE: How old are you?',
'Q_PROVINCE' = 'Q_PROVINCE: Which province/territory do you currently l... |
83e806a81918dede404bbf817bf02cf4b791d514 | 4dda5c9494580ea7e20a1465f9016364a9a7cdda | /calculos/script_wsdi_todo.R | 38ba93bbea8c4d6eded95710fe04ebcccca74607 | [] | no_license | MOfelia/PaperHeatwaves | 20af18280c5b24aef4c12f4b046670d00c9caf5c | 788dfdb8cc52ba51036c0c1b30bd23176eaec7b1 | refs/heads/master | 2022-03-31T20:00:08.217428 | 2020-01-18T20:16:41 | 2020-01-18T20:16:41 | 110,706,492 | 0 | 0 | null | 2019-04-03T07:26:59 | 2017-11-14T15:14:44 | TeX | UTF-8 | R | false | false | 5,790 | r | script_wsdi_todo.R | ## Sugerencias:
## Los comentarios con 2 signos # (bueno, esto es casi obligatorio).
## En lugar de cambiar el directorio de trabajo cada vez, que además cada uno tendremos uno distinto, se puede poner la ruta en la lectura del fichero. Si los datos están siempre en una carpeta datos, por ejemplo, esa ruta no haría f... |
7c86365d144b57e36ef3efd504f969f23534cda8 | 1c24900c933b48b6448aa3581ed088dd25a96df1 | /GenIns/HaiData.R | f361fce968b47d96745227bc50a69abde92693c5 | [] | no_license | trinostics/IBNR | e8e8f70bd1312efcb6b8e780a797079f336e8850 | 577d5360845950f4e802c21442b796477bed9edd | refs/heads/master | 2021-06-18T17:43:33.120641 | 2019-08-24T11:40:55 | 2019-08-24T11:40:55 | 135,292,278 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,224 | r | HaiData.R | library(excelRio)
library(reshape2)
library(mondate)
library(ChainLadder)
setwd("~/GitHub/IBNR/GenIns")
det <- readFromCsv("AggregatedClaims.csv", stringsAsFactors = FALSE)
det$EvaluationDate <- as.Date(det$EvaluationDate)
det$AccidentDate <- as.Date(det$AccidentDate)
det$ay <- year(det$AccidentDate)
det$age <- as.nume... |
eec446e31db39b6a9919bb40d52348f8937b0a25 | aa5cab15e2296fd18ec2ebe29b927a821bd60e42 | /R/grading_script.R | 1ead607babe470ccdca57550357daa19133e7f58 | [] | no_license | jdtrat/ds4psych_actions | 0e3a2d46b4023727752a7b066bfd609eb05562c0 | a2432245044ac870c10af4192b0de9773a43e51e | refs/heads/master | 2023-03-01T05:24:38.391272 | 2021-02-11T19:20:14 | 2021-02-11T19:20:14 | 337,856,007 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,804 | r | grading_script.R | my_repo <- Sys.getenv("MY_GITHUB_REPO")
my_pat <- Sys.getenv("GITHUB_PAT")
# simplegit::gh_collab_invite(path = my_repo, invitee = "smasongarrison", .token = my_pat)
#
# path <- simplegit:::check_path(path = my_repo)
#
# gh::gh("PUT /repos/{owner}/{repo}/collaborators/{username}",
# owner = path[1], repo = path... |
b8a68edf053f0191b3de597ff8c281686a2915c7 | 8d72f133d5c9557c70e4f6ac99ef510c7e08ef71 | /Scripts/FNoDiv.R | 558bd2590467aa9afce5ec501743df109e16802c | [] | no_license | jesusNPL/FurnariidesDiversification | 841b73c9845ae1b4e204924d784ea786aaeb3701 | 4813927e30be7d0165baeef2cac67fb12c2e84ab | refs/heads/master | 2020-03-18T22:04:00.949144 | 2019-04-26T16:14:57 | 2019-04-26T16:14:57 | 135,322,373 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,217 | r | FNoDiv.R | library(nodiv)
library(picante)
library(geiger)
library(raster)
library(sp)
library(letsR)
library(maptools)
library(rgdal)
library(rgeos)
##### Prepare data #####
fcomm <- read.csv("Table_S2.csv", row.names = 1)
dim(fcomm)
head(fcomm[, 1:2])
ftree <- read.nexus("furna_divTime_WO_MCC_newNames.nex")
forest <- rea... |
0d92f0f51af2a655bc65dbb2ea072bec73d90a88 | 31006ee88ed15cd7d6647ef49433b44898d7141a | /extra/package/example/man/hello.Rd | 7d952d58e0a1836e22b74d5075b2cfa907151ad2 | [] | no_license | wfjvdham/Rcourse | c463c283897e73aa63a86be37ec330b8941f015f | e8aeab0b64843669135a82a0e4cbae443fac9d4b | refs/heads/master | 2021-06-02T00:17:51.705609 | 2021-02-27T19:58:59 | 2021-02-27T19:58:59 | 102,542,422 | 5 | 29 | null | 2018-02-23T07:55:47 | 2017-09-06T00:16:31 | HTML | UTF-8 | R | false | true | 384 | rd | hello.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hello.R
\name{hello}
\alias{hello}
\title{function for printing hello}
\usage{
hello(word = "world")
}
\arguments{
\item{word}{that is printed after the hello}
}
\value{
string message
}
\description{
prints the hello string combined with the... |
50c033584b62b623d3cd180edad9dcf21e8d30b1 | defd78f89939c108dab7515871412036ff8c575a | /plot3.R | cfbbf2e3360618be4c0c8f556f51c85eb9384319 | [] | no_license | Clymsw/ExData_Plotting1 | dde9f2599b275fbaf94d9f3c93daf7d68b704bb8 | a128d603b75d0610e73ad1eb41c0abfe44a10ac1 | refs/heads/master | 2021-01-15T09:57:46.275244 | 2015-10-10T22:52:39 | 2015-10-10T22:52:39 | 44,031,034 | 0 | 0 | null | 2015-10-10T22:41:30 | 2015-10-10T22:41:30 | null | UTF-8 | R | false | false | 611 | r | plot3.R | # Load data
source("loadData.R")
# Plot 3
png("plot3.png")
plot(timeDataSetToUse, dataSetToUse$Sub_metering_1,
type = "l",
ylab = "Energy sub metering",
xlab = "",
main = ""
)
points(timeDataSetToUse, dataSetToUse$Sub_metering_2,
type = "l",
col = "Red"
)
points(timeDataSetToUse, ... |
98ed54f1cd68338c07401483ed5d944fe99655b4 | 151277f6eb0b0d67003360f9469e53b7ac21672c | /data/SIR/example-plots.R | 62a1a2297c5b394e2e159cec4315b259db9fa108 | [] | no_license | NLMichaud/seqInfSIRD | 930c0f10732fed9e971a443aaa42dbd892d79352 | e85885363e0ed88614ed271c120794a2386d0d86 | refs/heads/master | 2021-01-20T08:25:15.961031 | 2013-09-16T18:21:49 | 2013-09-16T18:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,536 | r | example-plots.R | # Creates plots to see how the methods compare to the data on a single run
load("sims.RData")
n.sims = length(sims)
source("settings.R")
ll = which(probs==.025); ll=1 # current the former doesn't match
ul = which(probs==.975)
load("PLq.RData")
#load("LW90q.RData"); lw90q = lwq
load("LW95q.RData"); lw95q = lwq
load(... |
9bffb44d5b917bd8a7dbd3ce6da62dd7b6eacd67 | ae2e4402aade4cdd9a7346f59e16246d0bb150b3 | /05_Build_Cares_Act_Eviction_Summary.R | 69ae407efb87e958912365fdd1fce740a2323069 | [] | no_license | Karnaadam/evictionlab | 6f474cd18a42798217b81e0b9462fa3ec5f4521b | 5855ce50f05d92eeb3a3eb4ff29dc6f15db43851 | refs/heads/master | 2022-11-26T23:16:57.356253 | 2020-08-03T12:07:51 | 2020-08-03T12:07:51 | 272,962,470 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,569 | r | 05_Build_Cares_Act_Eviction_Summary.R | ##############################################
#Program to group coverage of general eviction orders by source and state.
# Author: KA
setwd("~/Desktop/R/EvictionLab")
rm(list = ls())
source("header.R")
##############################################
#Load in cleaned data
load("master_raw_cleaned.RData")
#Limit to o... |
5718d2c3bab85a0e99dbf003df9e001618154dfe | d080cf5725411e18d3aebdece53019c313a33fe3 | /plots/seasonality_plot.R | fe7840ed1c87794bfb5b052dabdd8a2cca7f7179 | [
"MIT"
] | permissive | MacroFinanceHub/commodity-realized-volatility-forecasting | f625317c15c395c39239977ebb072b6ba4c9fabe | f8236269245eb1c56d108f725caa7f60393d72fa | refs/heads/main | 2023-04-26T03:43:39.098595 | 2021-06-07T17:07:28 | 2021-06-07T17:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,123 | r | seasonality_plot.R | SeasonalPlot <- function(df = df.min288
, ticker = "C"
, ticker.name = "Corn"){
library(reshape2)
library(ggplot2)
n.df <- dim(df)[1]
p.df <- dim(df)[2]
rv <- 0.5 * cleaner.vec(log(as.numeric(df[, paste0("rvar.288.", ticker)])))
my.time <- as.POS... |
af2776c537e1c229c70c763e7858416da7d83f70 | 56afafa119c6babbb6e551b48a3356fb34fc7bde | /Create_Edges.R | 3e0c7dea51b2ab0fb5efe98a4bf455e629a9f89c | [] | no_license | mflucas/Multimodal-RL-preparation | 8cd7c146e982ddc6eb62340394bbbf0670839621 | 4eb9ac4ec0ead3eaa21fe42fa3e0aaa546faad6e | refs/heads/master | 2020-04-04T10:50:30.751964 | 2018-11-04T13:14:00 | 2018-11-04T13:14:00 | 155,868,431 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,983 | r | Create_Edges.R | #setwd("C:/Users/mlucas/polybox/Masterarbeit/Multimodal_Estimation/Data_preparation")
setwd("/Users/lucasmeyer/polybox/Masterarbeit/Multimodal_Estimation/Data_preparation")
getwd()
library(plyr)
library(dplyr)
library(geosphere)
library(stringr)
library(data.table)
library(igraph)
library(rgdal)
library(r... |
a9e3c52a9fc8fb628942eabb0aff7d969f3e3338 | 117bcd434e6b982d6f63eee04c6ab6c8d6c7c5f8 | /ChiSqTests/main.R | 2d03a24b845d7a2480b7fe9d977ee04fcaf93a6f | [] | no_license | Rashid-Ahmed/Statistics-with-R | 26849d6ce322fed487715ad93244a682e9d63494 | 3bc5fbc72badb27423a348b99ebe767a828b0d28 | refs/heads/main | 2023-07-29T20:41:14.506544 | 2021-09-24T17:49:28 | 2021-09-24T17:49:28 | 358,590,715 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,949 | r | main.R |
###############
### Exercise 1: Plotting graphs using ggplot.
###############
# There are many ways of making graphs in R, and each has their own advantages
# and disadvantages. One popular package for making plots is ggplot2.
# The graphs produced with ggplot2 look professional and the code is quite easy
# to mani... |
365516aa39e719b23235b4f6ba33cd786311c2bc | 180d78934071c2308630fd1095f99a0afb5bcb66 | /R-Tutorial/r-t-test-one-sample_kr.R | 3709892c7355fadf1252964b17d619ae000a71e2 | [
"MIT"
] | permissive | misdb/R | d43d19303bdd74fc61ce9593e80b33f05ac4c11d | 2532215acdac013ae7d6925174472850fe266b9f | refs/heads/master | 2021-08-16T10:07:19.398509 | 2021-06-25T09:09:40 | 2021-06-25T09:09:40 | 211,976,382 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 424 | r | r-t-test-one-sample_kr.R | set.seed(123)
sugar_cookie <- rnorm(30, mean = 9.99, sd = 0.04)
head(sugar_cookie)
# one-sample t-test
# H0 : mu = 10
t.test(sugar_cookie, mu = 10)
# paired t-test
set.seed(123)
# sales before the program
sales_before <- rnorm(7, mean = 50000, sd = 50)
# sales after the program.This has higher mean
sales_after <- rn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.