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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35af5b40e5a0c4ae21474e856243a5766256eab3 | c9a3d2e2c5ee33ec96691e85c4c01517c1c83b08 | /Data_Science_with_R/8_Deploying_to_Production/simple_shiny_app.R | ffa2cbfc704a4d78b1691a5913d1dab463a1225a | [] | no_license | glegru/pluralsight | 61d010dd542f325d31b6fc6d34b1cdc2c2276961 | 7bb9707c69e8e252e35d1267df4d73eb969c25f0 | refs/heads/master | 2021-01-01T19:43:56.936734 | 2017-10-24T14:55:34 | 2017-10-24T14:55:34 | 98,661,031 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 871 | r | simple_shiny_app.R | # simple_shiny_app.R
# Further exploration of shiny, especially the ui and server interactions.
# date: 2017-09-15
# Needed : install.packages("shiny") # the Shiny R framework
# -------------------------------------------------------
library(shiny)
# ui
ui <- fluidPage(
titlePanel("Input and Output"),
sideb... |
5df17749e40b697b4e40665d82abdaad03324f78 | 4d9162efdb96e47c794129359a799b58c865b276 | /man/evaluate_CV.Rd | fdcc8d5d24fc2fb488e4934e461ea9ce0e788b39 | [] | no_license | cran/convoSPAT | a0b83dfc61315b999d44bafe1015760784979f58 | 2073c51e8630a7edc1e9682aa1e77927f1d5ed50 | refs/heads/master | 2021-06-22T17:02:49.412275 | 2021-01-15T23:50:04 | 2021-01-15T23:50:04 | 39,428,854 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,082 | rd | evaluate_CV.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convoSPAT_summplot.R
\name{evaluate_CV}
\alias{evaluate_CV}
\title{Evaluation criteria}
\usage{
evaluate_CV(holdout.data, pred.mean, pred.SDs)
}
\arguments{
\item{holdout.data}{Observed/true data that has been held out for model
comparison.}
... |
8ce42f4acd44407e992daeec129e7b8ba92b9cfc | cd2e6a05bbf1196bf447f7b447b01f0790f81e04 | /ch4-classification/4.R-classification-in-R/k-nearest-neighbors/4.6.5-k-nearest-neighbors.R | 90ac573f668184530434211ac8f277427e6f5ded | [] | no_license | AntonioPelayo/stanford-statistical-learning | d534a54b19f06bc5c69a3981ffa6b57ea418418f | c4e83b25b79a474426bb24a29110a881174c5634 | refs/heads/master | 2022-04-21T07:33:00.988232 | 2020-04-22T05:44:46 | 2020-04-22T05:44:46 | 242,658,021 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 671 | r | 4.6.5-k-nearest-neighbors.R | # 4.6.5 K-Nearest Neighbors
library(class)
attach(Smarket)
# Split data for train and test
train = (Year < 2005)
train.X = cbind(Lag1, Lag2)[train,] # Train predictors
test.X = cbind(Lag1, Lag2)[!train,] # Test predictors
train.Direction = Direction[train] # Direction labels for train data
# Predict movemen... |
b6f74133c6fcefa1488832e91697e729d0504a98 | a4a6a8efee03e6cf1002f4062e07791f62dfff19 | /Data_Preprocessing_Full.R | 5c0115fde58de5c1113f483297a71ce5c1663dc0 | [] | no_license | Mahmoud333/Data-Preprocessing | 092323a0a0aa9ecc74250b08db7607a4befe00ba | 29375c24fee03ebc822cd61eb7b8864ee0b1a789 | refs/heads/master | 2021-05-15T03:11:18.430495 | 2017-09-30T10:20:45 | 2017-09-30T10:20:45 | 105,361,647 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,866 | r | Data_Preprocessing_Full.R | # Data Preprocessing
#-- Importing the dataset
dataset = read.csv('Data.csv')
#dataset = dataset[, 2:3] subset of it
#-- Taking care of missing data
{dataset$Age = ifelse(is.na(dataset$Age), #true if missing, false if not missing
ave(dataset$Age, FUN = function(x) mean(x, na.rm = TRUE)), #t... |
b292c30a8787141dafedfd156ebce9b57990b740 | f29e1bbb05d7cf6c9136a6eb413038e2353d40f7 | /R/zzz.R | 3c3c5fdc9e176b9c9da52829b2f2b20d6c2633a5 | [] | no_license | LiamDBailey/climwin | 46fdb4e668e125a8064de090473864d3aedd0c5e | 3c28479c04ba858e83f6d6f3dcab8758d40e5751 | refs/heads/master | 2023-02-02T21:35:12.772236 | 2020-05-25T09:55:21 | 2020-05-25T09:55:21 | 32,844,500 | 12 | 10 | null | 2023-01-24T15:13:52 | 2015-03-25T05:29:40 | R | UTF-8 | R | false | false | 270 | r | zzz.R | .onAttach <- function(...) {
if (!interactive() || stats::runif(1) > 0.5) return()
intro <- c("To learn how to use climwin see our vignette. \n",
"See help documentation and release notes for details on changes."
)
packageStartupMessage(intro)
}
|
39b44764d2bff42ab5027ed7ed4315cda0ef4cb4 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/CoopGame/examples/getDualGameVector.Rd.R | 18b42598ea91f7d8a025b9d29efa05417cdd879e | [] | 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 | 209 | r | getDualGameVector.Rd.R | library(CoopGame)
### Name: getDualGameVector
### Title: Compute dual game vector
### Aliases: getDualGameVector
### ** Examples
library(CoopGame)
v<-unanimityGameVector(4,c(1,2))
getDualGameVector(v)
|
5d477bd154f37d69bea9a5704d8a8570d5cd9b8c | bdf1e6c71d3cc42492f0e3aa10abd42e9cc8b8ef | /R/xlsx_exp.R | 3ffc904b84de37ceead39be17b6aa56dd2fa6116 | [
"MIT"
] | permissive | cristhianlarrahondo/cristhiansPackage | ec78aca1c3d5bd0ccbd1e10ed29d9a56055590b0 | f58d3963949d49755276c133e1c794e96e12d58a | refs/heads/master | 2023-05-03T07:47:02.932995 | 2021-05-11T19:05:11 | 2021-05-11T19:05:11 | 365,832,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,389 | r | xlsx_exp.R | #' Exporting data into .xlsx files
#'
#' Exporting one or multiple tables into a .xlsx file.
#' If there are multiple tables, each one will be stored in the same file in
#' different sheets.
#'
#' @param data data frame or list of data frames
#' @param sheetnames character vector used to name each file sheet
#' @param ... |
d7362448253fe4ef199e729fbc05ddc2a168650e | 50819e94eaf31ca6360a1038b9079fc60abe738f | /Funmap2/R/zzz.r | 95d3862a5eb79dbd057660a4ad6acda3f81e14bd | [] | no_license | wzhy2000/R | a2176e5ff2260fed0213821406bea64ecd974866 | 2ce4d03e1ab8cffe2b59d8e7fee24e7a13948b88 | refs/heads/master | 2021-05-01T11:49:17.856170 | 2017-12-11T04:44:15 | 2017-12-11T04:44:15 | 23,846,343 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 810 | r | zzz.r | .onAttach<- function(libname, pkgName)
{
date <- date();
x <- regexpr("[0-9]{4}", date);
yr <- substr(date, x[1], x[1] + attr(x, "match.length") - 1);
packageStartupMessage("||");
packageStartupMessage("|| Funmap2 Package v.2.5");
packageStartupMessage("|| Build date: ", date(), "");
packa... |
352a4a9d6d94700b878d240eeb438bffb0a1bae5 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ggalt/examples/geom_bkde2d.Rd.R | 21a18e3a798671ce92c1f6813b4b605b62012463 | [] | 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 | 970 | r | geom_bkde2d.Rd.R | library(ggalt)
### Name: geom_bkde2d
### Title: Contours from a 2d density estimate.
### Aliases: geom_bkde2d stat_bkde2d
### ** Examples
m <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
geom_point() +
xlim(0.5, 6) +
ylim(40, 110)
m + geom_bkde2d(bandwidth=c(0.5, 4))
m + stat_bkde2d(b... |
0a11531f7135cda5b892e97004f06cbdd87a8d15 | 0dddd513e0dc84f80c46ddb2e1c7b4d6a050993d | /resources/methylation/methylation_pcs.R | 424db3760d57b1675c5ce03b182c6ed9a5914c62 | [] | no_license | AST87/godmc | 843542337e9f51fa7c96c83dd1070bac166cd270 | 3dd1949ede6500e134652e1b98a6f8d8a35e116c | refs/heads/master | 2022-12-04T04:59:35.495587 | 2020-08-21T09:26:13 | 2020-08-21T09:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,969 | r | methylation_pcs.R | suppressMessages(library(meffil))
arguments <- commandArgs(T)
beta_file <- arguments[1]
prop_var <- as.numeric(arguments[2])
max_pcs <- as.numeric(arguments[3])
phen_file <- arguments[4]
pc_out <- arguments[5]
message("Loading methylation data")
load(beta_file)
message("Extracting most variable probes and calculat... |
25419fa38bf459ed43afec4363f8dcfda7908ad5 | 7b8478fa05b32da12634bbbe313ef78173a4004f | /R/ops.R | 476a13db0251601b163450fe7db9361fb1b67c6f | [] | no_license | jeblundell/multiplyr | 92d41b3679184cf1c3a637014846a92b2db5b8e2 | 079ece826fcb94425330f3bfb1edce125f7ee7d1 | refs/heads/develop | 2020-12-25T18:02:10.156393 | 2017-11-07T12:48:41 | 2017-11-07T12:48:41 | 58,939,162 | 4 | 1 | null | 2017-11-07T12:01:35 | 2016-05-16T14:30:38 | R | UTF-8 | R | false | false | 37,240 | r | ops.R | # Operations on Multiplyr objects
#' Add a new column with row names
#'
#' @family column manipulations
#' @param .self Data frame
#' @param var Optional name of column
#' @return Data frame
#' @export
#' @examples
#' \donttest{
#' dat <- Multiplyr (x=rnorm(100), alloc=1, cl=2)
#' dat %>% add_rownames()
#' dat %>% shu... |
874caac47bf01bf9e98a26fe913b98a022ff0ef9 | 1c1c55fe1159201edbe63e537b2b8914a0d8e2ae | /R/create_ecospace.R | c9646640a0c8375bc4b0889a073069ee54152d58 | [
"CC0-1.0"
] | permissive | pnovack-gottshall/ecospace | 02b4290e4267a9d9eb28c190f78eb5b4e8fb1e79 | 3b1464498a5e0ec539aa3ab8c0859d2791a40ffc | refs/heads/master | 2021-01-10T06:20:32.845527 | 2020-06-13T17:19:06 | 2020-06-13T17:19:06 | 45,119,337 | 5 | 2 | null | null | null | null | UTF-8 | R | false | false | 20,877 | r | create_ecospace.R | #' Create Ecospace Framework.
#'
#' Create ecospace frameworks (functional trait spaces) of specified structure.
#'
#' @param nchar Number of life habit characters (functional traits).
#' @param char.state Numeric vector of number of character states in each
#' character.
#' @param char.type Character string listing ... |
5e99f02402ee92e99004c0ec811f8795c8375e4e | c9e0c41b6e838d5d91c81cd1800e513ec53cd5ab | /man/gtkTreeModelGetValue.Rd | 3ca67f58fb5fe9fd47f642c5514800af5b498973 | [] | no_license | cran/RGtk2.10 | 3eb71086e637163c34e372c7c742922b079209e3 | 75aacd92d4b2db7d0942a3a6bc62105163b35c5e | refs/heads/master | 2021-01-22T23:26:26.975959 | 2007-05-05T00:00:00 | 2007-05-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 679 | rd | gtkTreeModelGetValue.Rd | \alias{gtkTreeModelGetValue}
\name{gtkTreeModelGetValue}
\title{gtkTreeModelGetValue}
\description{Sets initializes and sets \code{value} to that at \code{column}. When done with \code{value}.}
\usage{gtkTreeModelGetValue(object, iter, column)}
\arguments{
\item{\code{object}}{[\code{\link{GtkTreeModel}}] A \code{\li... |
178b26e4cf1443f2dc235d13e51d05c7394eaa7a | 9f723e2f26cada7472ec3b8f5ae313f477a11281 | /Wrangling/src/tidy_text.R | 841365c4d0328aa935cf0be71ec5696258c53883 | [] | no_license | hallchr/TidySumData | 4386851d459e946453e89fa45549a9c3c5a97c41 | 85f5705336f82b9997be93b6a9eaf49dcf8a08ca | refs/heads/main | 2023-05-12T08:08:37.872466 | 2021-06-06T17:38:05 | 2021-06-06T17:38:05 | 366,885,602 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,212 | r | tidy_text.R | #Working with Text
library(tidyverse)
#install.packages('janitor')
library(janitor)
#install.packages('skimr')
library(skimr)
library(stringr)
#install.packages('htmlwidgets')
library(htmlwidgets)
#Beyond working with single strings and string literals, sometimes the information you’re analyzing is a whole body of ... |
07e1c49e887ec2a7ef17f5106ed3720e6d15fefb | 96aba36ec950b4752423cd352e56001e4f14d33b | /ExploratoryDataAnalysis/Week1/BasePlottingDemo.R | fec1a9a769b04d2c1d64a3f1fc6d21335bd22743 | [] | no_license | figoyouwei/datasciencecoursera | 4f879e6cd23cbcd0b99981741520d9ea8443c817 | ddd307451d8158fa6a58c655a513748a6dcfbf4e | refs/heads/master | 2021-01-10T20:25:35.309704 | 2014-09-21T06:52:59 | 2014-09-21T06:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,109 | r | BasePlottingDemo.R | # ----- show the example of plotting symbols
example(points)
# ----- little scatter plot demo with a model fit
x <- rnorm(100)
y <- rnorm(100)
plot(x, y, pch=20, xlab="Weight", ylab="Height")
title("scatter plot")
text(-2, -2, "label")
legend("topleft", legend="data", pch=20)
fit <- lm(y ~ x)
abline(fit, lwd=3, col="r... |
c009baf676501334da0b5e848a4d2f17b087008f | 8627421980f3a8e357a1590aac3a9d73eeef6561 | /R/getThePercent.R | 5387d4f086b1d7366b3397f42edf41848f6e8f53 | [] | no_license | zhaodexuan/NERF | 00a62b7987d8cc764f36719ecaa211de77179fe4 | 798076c3ca5ec36016a18bfa168e8650d75d15d4 | refs/heads/master | 2023-08-10T09:01:44.037413 | 2023-07-24T15:48:05 | 2023-07-24T15:48:05 | 228,681,419 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,516 | r | getThePercent.R | #' @title Step Percent of Random Replacement Deviation
#'
#' @description Step by step list the proportionally random expectation deviations.
#'
#' @param theData The prepared data matrix.
#'
#' @param theExpectPoint The expectation list.
#'
#' @param theCategory The Calculated Category.
#'
#' @param theDim The Calcula... |
2c827fc8f925ffc93892ee478a030ee0eb496106 | ec60103c7e33e6c2180c2efc6b33a7f83ae0b877 | /dynamicAnalysis.R | 57f24ee9aa28308f5bbec23e7dc35c94a72112e0 | [] | no_license | standardgalactic/adaptiveSharingSimulations | bc27ec5f1bb64367cb46d025752c8d1dd665b7a9 | 728becc37057e02da9f43b2dbb41f3075780afbc | refs/heads/master | 2023-03-15T16:25:35.965790 | 2018-07-21T15:40:20 | 2018-07-21T15:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,750 | r | dynamicAnalysis.R | #Script to analyize dynamic simulation data
#Charley Wu and Imen Bouhlel
rm(list=ls())
#load packages
packages <- c('zoo', 'RColorBrewer', 'scales', 'data.table', 'plyr', 'ggplot2')
lapply(packages, require, character.only=TRUE)
###################################
#Compile data
###################################
#... |
e581c3f6c5c65a2873f23ded963f0044aa87f851 | a811d5440137a37907dc8e50b45c4ebe0664b61f | /cachematrix.R | 3049d0188c3903ad417ba2ebd5e61a6a8fee877f | [] | no_license | puikchan/ProgrammingAssignment2 | 84d038af2bd8fac1e77a02f2588a2a5fe760aa4c | a9ab1fa804befbef22dcdd528295580524a3e873 | refs/heads/master | 2021-01-14T12:15:05.219372 | 2014-04-24T03:27:55 | 2014-04-24T03:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,403 | r | cachematrix.R | ## Function makeCacheMatrix
## It takes an argument x of type numeric matrix
## It returns a list of 4 functions
## list (set = set, get - get, getInv = set Inv, getInv = getInv)
## Example usage:
## a <- makeCacheMatrix(matrix(1:4,2))
## a$get()
## a$getInv()
## a$set(matrix(5:8,2))
## a$get()
makeCacheMatrix <- fu... |
21b1897238b37db65ed39f7d1f76a87fd86c147d | b8a14c99a9a982009d6bfb17cd38f5f15877c40a | /man/eblupgeo.Rd | d752d5861d9c3fb8d87aa97790e80082ac0cda61 | [] | no_license | ketutdika/geoSAE | 9ff07f7a5b1e641df43856276df0a0465dee1856 | 18710b2937d718617a99f9abb366cf35a3f4d8a9 | refs/heads/master | 2023-06-02T13:29:15.924404 | 2021-06-15T09:25:47 | 2021-06-15T09:25:47 | 374,709,910 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,015 | rd | eblupgeo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eblupGeo.R
\name{eblupgeo}
\alias{eblupgeo}
\title{EBLUP's for domain means using Geoadditive Small Area Model}
\usage{
eblupgeo(formula, zspline, dom, xmean, zmean, data)
}
\arguments{
\item{formula}{the model that to be fitted}
\item{zspli... |
c5c7520fa1c30c12a741df5b0cd969b5e5187d4f | e5836fa0f8b22d303c5299f3fc2a23638430203f | /scripts/owls-example/diagnostics-stage-one-table.R | 954ca863bef451edf33265b6012e43e9908971d0 | [] | no_license | hhau/melding-multiple-phi | dbd668cebf031428680126bb1a6d3abdf26a12d4 | 52c71674b75ff6a530581aa669bac0bce916f7fa | refs/heads/master | 2023-04-17T12:21:21.671249 | 2022-08-31T13:15:17 | 2022-08-31T13:15:17 | 251,345,078 | 6 | 1 | null | 2021-03-02T11:03:39 | 2020-03-30T15:20:22 | TeX | UTF-8 | R | false | false | 1,494 | r | diagnostics-stage-one-table.R | library(rstan)
library(kableExtra)
library(dplyr)
library(tibble)
# load model 1 and model 3 samples
capture_recapture_submodel_samples <- readRDS(
"rds/owls-example/capture-recapture-subposterior-samples.rds"
)
fecunditiy_submodel_samples <- readRDS(
"rds/owls-example/fecundity-subposterior-samples.rds"
)
# find... |
cd31585c972e6aba39cd568c64824bb7d6b60388 | 7456d3eae8574560e823cd4180579e7e16a5c9f0 | /tests/testthat/test_differential_expression.R | 787b5e05893decc015f8fece90ec40e77e18f989 | [] | no_license | fbertran/ebadimex | 7f362e82315f4172eef5798c57765611b3a311bc | e0db30de62b1b4d8fbd59cd567ffb4c4af498ba9 | refs/heads/master | 2021-09-22T03:20:25.246862 | 2018-09-05T18:34:46 | 2018-09-05T18:34:46 | 257,308,813 | 1 | 0 | null | 2020-04-20T14:36:00 | 2020-04-20T14:35:59 | null | UTF-8 | R | false | false | 1,765 | r | test_differential_expression.R | library(testthat)
context("Differential Expression")
# Agree with t-test
test_that("Agreement with t.test",{
x <- rnorm(30, 0, 0.4)
y <- rnorm(50, 0.2, 0.4)
irksome_test <- testDE(c(x,y), rep(c(T,F), times = c(30, 50)), k_win = 100)[1]
t_test <- log(t.test(x, y, var.equal = T)$p.value)
expect_lt(a... |
6bb64190e5ab5de38465ce1b88e9832e765d12a8 | 9eddf4b44d0fe0d8bcb1884bf4c5bff35cee31a0 | /ProgrammingAssignment5/plot4.R | 6d70a5739278434ac46849d2bc67e0c147e3a753 | [] | no_license | istanton1/datasciencecoursera | e8dd34946d0ac543e2e2694adc8fc9b6c3970d5d | a6a69351708ac0cc95ccc8dbff334e7339ab9cbb | refs/heads/master | 2021-01-01T20:34:53.118431 | 2017-02-27T16:10:34 | 2017-02-27T16:10:34 | 78,565,002 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 638 | r | plot4.R | # Across the United States, how have emissions from coal
# combustion-related sources changed from 1999-2008?
library(ggplot2)
summary <- readRDS("./summarySCC_PM25.rds")
source <- readRDS("./Source_Classification_Code.rds")
merged <- merge(summary, source, by="SCC")
coal <- grepl("coal", merged$Short.Name, ignore... |
7139d1d4bb0ccdd94f37cefca06506a065052710 | ff301c36e9ff64817554bd8d5198360cf0e07949 | /MovieLensDataset - Project - MTD Final.R | cf9f2f53b04519a55d512462386934941fbef343 | [] | no_license | mtwistondavies/Capstone---Movielens-Project---MTD | 0dc75f770d0500111a16d53e23ce4f0abc1c8ab1 | 5ebd3074624435091b28ebb55349c2c571c3a90f | refs/heads/main | 2023-02-09T19:29:56.326302 | 2021-01-03T21:24:50 | 2021-01-03T21:24:50 | 326,502,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,700 | r | MovieLensDataset - Project - MTD Final.R | # ---
# title: "MovieLens Project"
# author: "Michael Twiston Davies"
# date: "07/12/2020"
# output: html_document
# ---
# # Introduction
# ## History
# In 2006 Netflix created a $1m competition challenging data scientists to create a movie recommendation system better than their own "Cinematch". In order to qualify ... |
11fdb07b906b08272d3de3264f3ee1aeb06f5200 | 58da677e82d96ec6ac400e3578f190718c9ad78a | /server.R | 8d78e0e38c5030f800293eaeea909d7f58dc9226 | [] | no_license | zhangxudongsteven/DataProductAssignment | 8025ebc462c002808643590eb59b880b271609e9 | c8b729487c40237901b2b1533b100708dce8038f | refs/heads/master | 2021-06-12T00:01:08.695721 | 2016-12-09T16:28:10 | 2016-12-09T16:28:33 | 76,049,843 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,729 | r | server.R |
# This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
shinyServer(function(input, output) {
library(dplyr)
library(zoo)
library(forecast)
df <- read.csv("hr.data.csv")
dp... |
cb8892390fc579e3b9cce68486cd33ca75b29e6f | c7eb6366e11f8b80b1cbeb476d1cd2ff398de1c2 | /pflamelet/man/permutation.test.Rd | 33847d1837367bae08713d5c05930172355dac77 | [] | no_license | tulliapadellini/pflamelet | ad787218bb9b9d737da527a90012f0553cc92bed | debfc343ac40ce5777c0707e7dab11f8630c8837 | refs/heads/master | 2021-06-30T20:25:14.645653 | 2020-12-16T21:31:18 | 2020-12-16T21:31:18 | 205,159,987 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,477 | rd | permutation.test.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{permutation.test}
\alias{permutation.test}
\title{Two-sample permutation test}
\usage{
permutation.test(sample1, sample2, n.rep = NULL, seed = NULL)
}
\arguments{
\item{sample1}{a k x m x n1 array corresponding to the Persis... |
9bac3af815b8101913e0ae3409e7635e3f56fb58 | c573e2ac247817ee7c8ef35a26ba3197df424fd5 | /code/BCX_miscellaneous/clinvar_annotation.R | 55facf965755080e42731ad98521afc6cd27206c | [] | no_license | epiheather/manuscript_code | 6188b8200caeaca32e5af1cc3ff1ddabf5815a5f | e9ce4a3bfa566b4f0bb132106283b1c693a1482d | refs/heads/master | 2022-11-09T03:35:49.164706 | 2020-06-30T14:29:27 | 2020-06-30T14:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,019 | r | clinvar_annotation.R | ###########################################
### CLINVAR annotation for GWAS results ###
###########################################
# overlap our findings with ClinVar db to see which pathogenic variants we detect
# and if we can re-assign pathogenicity based on effect sizes distribution.
setwd("/Users/dv3/Desktop/... |
f60a37a00f39f777ce674dad56064468e7345df3 | dcab57188f2a7b82af1d865824b205b380d45cc8 | /cytof/src/model3/cytof3/man/yZ_inspect.Rd | bed5a78aed825f77659f7e619a7456d455e353ed | [] | no_license | luiarthur/ucsc_litreview | 5e718a951ce86a6a620d497d7d797f1c52da6aa3 | 791a2841fc285fcdaa1fac4be5590817e08ba04f | refs/heads/master | 2021-05-02T16:49:14.082267 | 2020-05-11T17:35:14 | 2020-05-11T17:35:14 | 72,487,240 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 693 | rd | yZ_inspect.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/yZ_inspect.R
\name{yZ_inspect}
\alias{yZ_inspect}
\title{Plot y and Z together}
\usage{
yZ_inspect(out, y, zlim, i, thresh = 0.7, col = list(blueToRed(7),
greys(10))[[1]], prop_lower_panel = 0.3, is.postpred = FALSE,
decimals_W = 1, na.co... |
12a761ed1c02e3f09a3dbdb9d475e9bb7c7bb7a9 | c786b84eaa1c289d2680d4d786d5916aa53522c6 | /combining_mixtures/R/Wholesale_customers.R | 789b02edb2974073463acd72301d3becab8b3251 | [] | no_license | mcomas/mixtures | 99a60ed6a320c2afb82b5ac60ebc78cc9dad7b84 | dd59832a744c6c6a56311ab7bed3c14690435d83 | refs/heads/master | 2021-01-10T21:26:46.280660 | 2015-07-20T18:27:30 | 2015-07-20T18:27:30 | 21,209,290 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 250 | r | Wholesale_customers.R | data <- read.csv("~/Research/mixtures/combining_mixtures/data/Wholesale_customers_data.csv")
devtools::load_all('../../packages/mixpack')
X = data[,3:8]
ggbiplot(clr_coordinates(X), obs.col = factor(data$Channel), transparency = 1, size = 2)
|
af0290a44fac7d0bfabf09882f3af10fc5168c9c | d45af762e445c3ed93a96f2c52e5750114e72446 | /Lecture2.r | f4bf97c552d6a8816db2adb0e6491810c05aa0fa | [] | no_license | doublezz10/relearning_stats | fb6c7dbbf53d0bc71d5bcfef75bacd983e9d4f12 | 21b8ef76b97af5c2d039161647c4e25f1eafaf58 | refs/heads/master | 2023-01-07T05:17:21.209504 | 2020-11-09T22:05:07 | 2020-11-09T22:05:07 | 295,513,870 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,580 | r | Lecture2.r | data(Howell1,package='rethinking')
library(brms)
# Fit a Bayesian model without setting priors (it'll do the median for us)
fit <- brm(height ~ 1, data=Howell1, family="normal")
summary(fit)
prior_summary(fit)
# Fit another model by setting priors
fit2 <- brm(height ~ 1, data=Howell1, family="normal",
... |
7a161d3a8f7f139c807ee394c912ac916303e87f | 5bd4b82811be11bcf9dd855e871ce8a77af7442f | /kinship/R/solve.bdsmatrix.R | 88627aeeda3f99cd23934d509da5f2c33473aab3 | [] | no_license | jinghuazhao/R | a1de5df9edd46e53b9dc90090dec0bd06ee10c52 | 8269532031fd57097674a9539493d418a342907c | refs/heads/master | 2023-08-27T07:14:59.397913 | 2023-08-21T16:35:51 | 2023-08-21T16:35:51 | 61,349,892 | 10 | 8 | null | 2022-11-24T11:25:51 | 2016-06-17T06:11:36 | R | UTF-8 | R | false | false | 4,082 | r | solve.bdsmatrix.R | # $Id: solve.bdsmatrix.s,v 1.6 2002/12/26 22:54:55 Therneau Exp $
# Cholesky decompostion and solution
solve.bdsmatrix<- function(a, b, tolerance=1e-10, full=T, ...) {
if (class(a) != 'bdsmatrix')
stop("First argument must be a bdsmatrix")
if (a@offdiag !=0) solve(as.matrix(a), b, tolerance=tolerance)
... |
60c30d730b5af291003e8fce2a7684fbcf19f699 | 002929791137054e4f3557cd1411a65ef7cad74b | /man/checkChangedColsLst.Rd | 484f2d1cb929beb7126bcba0383a5d93bf675f69 | [
"MIT"
] | permissive | jhagberg/nprcgenekeepr | 42b453e3d7b25607b5f39fe70cd2f47bda1e4b82 | 41a57f65f7084eccd8f73be75da431f094688c7b | refs/heads/master | 2023-03-04T07:57:40.896714 | 2023-02-27T09:43:07 | 2023-02-27T09:43:07 | 301,739,629 | 0 | 0 | NOASSERTION | 2023-02-27T09:43:08 | 2020-10-06T13:40:28 | null | UTF-8 | R | false | true | 1,395 | rd | checkChangedColsLst.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkChangedColsLst.R
\name{checkChangedColsLst}
\alias{checkChangedColsLst}
\title{checkChangedColsLst examines list for non-empty fields}
\usage{
checkChangedColsLst(changedCols)
}
\arguments{
\item{changedCols}{list with fields for each ty... |
5b6710f87a94ce325bbaa3f0a5e8ec606b11def6 | 1cc35a9425e25715e2f4dacc36efa31385925e1c | /rDataVis.R | ca51f403c14f30011b1d669fdd2e5c463180f34d | [] | no_license | freewillx/msba-datavis | 6c0f32db3872b4da8f87de80626453b64ea78f8f | 74c28d78f5e7949cf4c608d6d4c622d3405588f9 | refs/heads/master | 2021-01-24T11:00:25.817493 | 2016-10-10T03:22:50 | 2016-10-10T03:22:50 | 70,284,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,431 | r | rDataVis.R | library(ggplot2)
library(ggthemes)
library(lattice)
## Exercise E
# China Internet Usage - source: world bank 2012
chinainternet <- read.csv("./data/chinainternet.csv")
summary(chinainternet)
ggplot(data=chinainternet, aes(x=Year, y=Internet.Usage)) +
geom_line(size=3) +
ggtitle("Internet Usage in China: 1990 to... |
ef75571010bc44c123558638c0fb85b108f4369b | 39ed3b2824bef64238359d514f380be813dff1b9 | /tests/testthat.R | 16516e4b134aa80995dc8d0241765b346474d8d3 | [] | no_license | sathie/z11 | cb202a965b6a352c988f108e52e75a7b2928d015 | 80bf2820b767b2a711cb3f0aa5de2a223fa1f517 | refs/heads/main | 2023-09-01T04:52:00.809531 | 2021-11-10T01:05:44 | 2021-11-10T01:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50 | r | testthat.R | library(testthat)
library(z11)
test_check("z11")
|
d1b2a2e7be9ef81199802925a1de57f645b467f2 | a9c8054f50f0eaf7dd8c4f1a0a2c041753158d2a | /daniel/switch_paper_plotting_in_R/qPCR/Delta_CT_qPCR plotting.R | dd734388d368d2556d9f37cc8a848e904614aa0e | [] | no_license | YH-Cali/scripts | 91469c2161b46decb0ef184c3ef59f02bed840b4 | b306ebe59c509f0af8286f379ce838570fce96a1 | refs/heads/master | 2022-10-15T10:34:45.840733 | 2020-06-11T01:29:38 | 2020-06-11T01:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,560 | r | Delta_CT_qPCR plotting.R | ##don't forget the library dependencies
require(dplyr)
require(ggplot2)
#For these files, I used a separate text file to manually seek and replace gene names and time points in order to generate all 28 or so plots. Then I faceted them in Illustrator.
png("/home/daniel/Sync/Google Drive/Niyogi Lab/Zofingiensis/Switch... |
b5f38426115c29598ea1cd0377a92461a8dbe814 | f1556a59213e9dafb25db0d01760a1443c55b6b2 | /models/Ensemble/Stacking/tag_points/functions_Stacking_tag_points.R | c29cf2cbac2372c107e94f5f6dadf28c1bd21719 | [] | no_license | you1025/probspace_youtube_view_count | 0e53b0e6931a97b39f04d50a989a1c59522d56a7 | f53d3acd6c4e5e6537f8236ad545d251278decaa | refs/heads/master | 2022-11-13T13:22:51.736741 | 2020-07-12T04:14:35 | 2020-07-12T04:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,436 | r | functions_Stacking_tag_points.R | source("models/functions_Global.R", encoding = "utf-8")
load_tag_dict <- function(train_data, test_data) {
# 辞書のパス
filepath <- "models/Ensemble/Stacking/tag_points/dictdata/tagdict.csv"
if(file.exists(filepath)) {
# 辞書の読み込み
readr::read_csv(
filepath,
col_types = cols(
tag = col_char... |
2f458353bd73a8da706322304c01c29a59f139b9 | 329fbe8bdd0f52b7f1d02df40cdad09c865b0485 | /plot4.R | 18f58a19b86dfbe95f433d74a399ab7e9c571bdb | [] | no_license | svijetaj/ExData_Plotting1 | ced3390fa1d25f8e441b0936c7d1d0a24c7a7634 | 43fc036013c5d000df89590e427524e2c6562282 | refs/heads/master | 2021-05-01T20:24:16.357227 | 2017-01-17T07:03:36 | 2017-01-17T07:03:36 | 79,188,931 | 0 | 0 | null | 2017-01-17T04:39:05 | 2017-01-17T04:39:05 | null | UTF-8 | R | false | false | 1,542 | r | plot4.R | #read data into variable
hhpc <- read.table(hhpc_file, header = TRUE, sep = ";", stringsAsFactors = FALSE, dec = ".")
#subset data for the range
sub_hhpc <- hhpc[hhpc$Date %in% c("1/2/2007","2/2/2007"),]
#histogram for global active power
#convert the global active power to numeric data
global_active_po... |
085134271ac3d8db97a10d99e54423e3afb63aaa | 1edd2d4fcbe8756ef5c43bb5af1281c1e2384b50 | /R/liguria.r | 0999f44b01f3a1f6356538372429ee95630619c2 | [
"MIT"
] | permissive | guidofioravanti/regioniItalia | c232ce6dae60884f960cd90e1499141fbf90a0ae | 5607ce1334f1dffa4e30e3ee9721dbde01d86477 | refs/heads/main | 2023-05-06T07:37:27.133169 | 2021-05-28T12:00:02 | 2021-05-28T12:00:02 | 337,431,937 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 48 | r | liguria.r | #' Oggetto sf della regione liguria
#'
"liguria" |
ec99479653b61c1921896ce927be7b7b6299f07a | 92951f9fef15b6c664bbf7a57ac7833a1f55a052 | /R/gimage.R | 89f2bfa72434f95c061d3d303eb18450b66eb1b1 | [] | no_license | jverzani/gWidgetsWWW2 | ac2727344c0aba50cc082e92617b874b6d0e8c2b | 37ca4b89419ced286627ccec1a8df26fface702c | refs/heads/master | 2021-01-01T18:48:10.743913 | 2020-02-06T16:46:51 | 2020-02-06T16:46:51 | 3,021,944 | 2 | 1 | null | 2014-10-16T11:36:16 | 2011-12-20T19:32:24 | JavaScript | UTF-8 | R | false | false | 3,952 | r | gimage.R | ## Copyright (C) 2011 John Verzani
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##... |
25fc93c8c70a4deb24da7c0de30c7c52025e1e79 | 6f1be98f6fd2b7e860882a4c51737048d606c190 | /server.r | eb706f1a8c5a8f64d5b159e6ae6cb5b9522f6241 | [] | no_license | donalgorman/hello-world | 031cb3225f9d6abcdfcaeb47d1129d4ae3e71cd5 | 7540d716d5aac2f202d8919ed67e520d2e7e0c65 | refs/heads/master | 2021-01-09T20:27:11.758787 | 2019-03-05T19:25:07 | 2019-03-05T19:25:07 | 65,292,779 | 0 | 0 | null | 2016-08-09T12:28:03 | 2016-08-09T12:22:07 | null | UTF-8 | R | false | false | 109,964 | r | server.r |
################################################
# #
# Operating Characteristic Curve Generator #
# [Version 2.0] #
# #
################################################
### Search: 'TESTING' fo... |
37492b9602c8920dcbac7abb3db0735a04ea30bd | df02cb94ad5ac3ad922d46682b448da09a49bcdb | /R_teaching/code_data_in_III_R_courses/practice_datamining.R | bfd14db850a24d8674995b591081c3157f6f93c3 | [] | no_license | Liumingyuans/III_R | 0ec01fd39e3797ba7dfb0fdf0472538d4e4b738e | fc4f227ea6c02e204f8d25f5ef12b80c749db80d | refs/heads/master | 2020-12-24T20:14:37.836083 | 2016-05-07T06:36:46 | 2016-05-07T06:36:46 | 58,252,918 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,978 | r | practice_datamining.R | ######## Practice 2 ##########
library(arules)# for dataset "Adult" & functions
data(AdultUCI) # the "Census Income" Database
help(AdultUCI)
# dim(AdultUCI)
str(AdultUCI)
AdultUCI[1:3,] #head(AdultUCI, 3)
AdultUCI[["fnlwgt"]] <- NULL #其時就是移除該變數
#AdultUCI[["fnlwgt]] 其實就是 AdultUCI$fnlwgt <- NULL
#age 是定量變數, 須因子化
summar... |
6ca6a0f1380f656b94cee5fc29fb9ccabccf3ea3 | c2b4c38fe19acc9a0a83436c260b9bdacac39332 | /CourseSessions/Sessions67/tools/ui.R | d88e2559f841efa70ffeeb75a8310e0dcc2915c8 | [
"MIT"
] | permissive | konstantinosStouras/INSEADjan2014 | 5049245670a7b5b3d51778c94c06a1b617542fab | b65313be73753d7236f51239ba2126f4a1dc3857 | refs/heads/master | 2021-01-21T19:40:18.611191 | 2014-01-15T15:01:27 | 2014-01-15T15:01:27 | 15,969,639 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,017 | r | ui.R |
shinyUI(pageWithSidebar(
##########################################
# STEP 1: The name of the application
headerPanel("Classification Analysis Web App"),
##########################################
# STEP 2: The left menu, which reads the data as
# well as all the inputs exactly like the inputs in RunSt... |
69af2fe820c40ff69b7460ff6f0dbdf7f9d902bd | 37f1f9432d01b363a153ca881843826744e1ef3f | /man/SplitGraphs.Rd | 62e526f6d5b2f13dfcb27e7291edf0d06da06c2d | [] | no_license | sagade/inf460 | d50fa72d79e7f2fb075c5fe285290a7bce0040ff | 009f21a041f32ce96f15bb0c804606756a3eed7f | refs/heads/master | 2023-01-13T22:51:13.875007 | 2020-11-16T18:35:49 | 2020-11-16T18:35:49 | 310,693,208 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 568 | rd | SplitGraphs.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/graphics.R
\name{SplitGraphs}
\alias{SplitGraphs}
\title{SplitGraphs
Splits list of ggplot2 plots into several grids od define size and plots them}
\usage{
SplitGraphs(plot.list, nrow = 3, ncol = 2, ...)
}
\arguments{
\item{plot.list}... |
eb44a3fd6f93946cf313b02a4281d8b038d8f9c1 | 7dc9f4bf9a154a45b034733f4445e1b2cf79e352 | /Week5_DecisionTree_Music_Ashley.R | 40f39fca668df558c41be27c0118fa578f60d1ba | [] | no_license | aggiemusic/R | c67cb89e489bc21a48495f8173e4d9425a54c3bc | d40b46f82122b63e8f70ba227a0a6c1638da6720 | refs/heads/master | 2022-12-17T11:28:25.789005 | 2020-09-13T16:39:34 | 2020-09-13T16:39:34 | 294,177,054 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,575 | r | Week5_DecisionTree_Music_Ashley.R | #############################################
# #
# Name: Ashley Music #
# Date: 07/28/2020 #
# Subject: Predict Botson Housing #
# Class: BDAT 625 #
# File Name: ... |
a9b2ee0f4ae1d01512d945e5281a0b4e379ea507 | bccaf9ca75d67fef6bec733e784c582149a32ed1 | /tilit/R/ij.R | 91c9af36503557cd0693a6a485d4cccc1425930a | [] | no_license | brooksambrose/pack-dev | 9cd89c134bcc80711d67db33c789d916ebcafac2 | af1308111a36753bff9dc00aa3739ac88094f967 | refs/heads/master | 2023-05-10T17:22:37.820713 | 2023-05-01T18:42:08 | 2023-05-01T18:42:08 | 43,087,209 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 366 | r | ij.R | #' List of row and column indices for accessing 2D square matrix upper triangle
#'
#' @param n square matrix or length of one of its dimensions
#'
#' @return
#' @export
#'
#' @examples
ij<-function(n) {
if(!is.vector(n)) {
if(length(dim(n))!=2) stop('Too many dimensions')
if(diff(dim(n))) stop('Not square')
... |
effc2cab714d959c4ca7285dd1bc3c4117a777fd | c4e2f1eaf9ae10bb5e8998c7d731606a45624e8c | /scDD_analyses/scDD_analysis.R | c5e76f1870a22335361f9efb2ee8f064b43f949e | [] | no_license | systemsgenomics/ETV6-RUNX1_scRNAseq_Manuscript_2020_Analysis | c0e7483950990b9c5bf16f7f28f4b9c6acbfb31b | eb08df603f52779ffc781e71461c9175f83f8f24 | refs/heads/master | 2021-05-26T02:49:44.847600 | 2020-11-24T20:52:20 | 2020-11-24T20:52:20 | 254,022,211 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 16,866 | r | scDD_analysis.R | # scDD analysis with vst
#
# - HCA data: HSC + B lineage cells
# - ALL data: leukemic cells from ALL1, ALL3, ALL8, ALL9, ALL10, ALL10d15, ALL12 and ALL12d15
# - Nalm6 cell line: LUC and E/R induced
# - Use vst normalized data
# - Custom scDD installation devtools::install_github("juhaa/scDD")
# - adds jitter to count... |
6ad1cf13a375d62eab165a8a6e4e88a9423c9798 | d24aadf70825c32f150537bdd9f68d99fe6a8f5f | /ch11-apis/exercise-1/exercise.R | 548b98184ac9fde611432594bc9f7d30ce818962 | [
"MIT"
] | permissive | yprisma/INFO-201 | fd516762f77bbd208bc390db0e6dbc12e382ebf1 | d86d7f8a5ba5cafa8aa5765ce23dd8a79c191fd8 | refs/heads/master | 2020-05-25T08:38:50.010596 | 2019-03-22T08:34:28 | 2019-03-22T08:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,075 | r | exercise.R | ### Exercise 1 ###
# Load the httr and jsonlite libraries for accessing data
library(httr)
library(jsonlite)
## For these questions, look at the API documentation to identify the appropriate endpoint and information.
## Then send GET() request to fetch the data, then extract the answer to the question
res... |
4b5b6e0d96c3041bb12515f6b3adaac725e0b6e6 | 908d7f88068d50284bab29bb08355666a2342808 | /man/numberdiffs.Rd | 34c7b1453d0046bcc708c916dd8bc5b964d395d1 | [] | no_license | ttnsdcn/forecast-package | 88bd3ece3af7b001ed824cbdae65bc0efc1b7b2d | 0776e8b89790009c633f3598dd0701f03cd60e82 | refs/heads/master | 2020-12-31T04:42:08.682697 | 2012-01-31T02:29:17 | 2012-01-31T02:29:17 | 48,546,474 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,058 | rd | numberdiffs.Rd | \name{ndiffs}
\alias{ndiffs}
\alias{nsdiffs}
\title{Number of differences required for a stationary series}
\usage{ndiffs(x, alpha=0.05, test=c("kpss","adf", "pp"))
nsdiffs(x, m=frequency(x), test=c("ocsb","ch"))
}
\arguments{
\item{x}{A univariate time series}
\item{alpha}{Level of the test}
\item{m}{Length of seasona... |
ddd2b5f6b8cad66999b68e720276de6a4434876c | cba876fd1bab6561907b4bcdb58e3f0ac4f5decf | /R/accum_cruve_camdays.R | b20e9cf5478f3a85f79655c009f53ab605157671 | [] | no_license | ccheng91/occupancy | a004ee9cee0276a98cd7f6f3f9ef7a836e6e020d | c111181f3a95d9688d6a451a2eaab510612ae10e | refs/heads/master | 2021-01-19T06:25:56.680725 | 2017-11-23T21:04:04 | 2017-11-23T21:04:04 | 59,855,841 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,310 | r | accum_cruve_camdays.R | ### accumlative curve of camdays
library(vegan)
##
rm(list=ls(all=TRUE))
data.photo <- read.csv("data/All_photo.csv")
str(data.photo)
data.photo <- dplyr::filter(data.photo, data.photo$species != "bat" & data.photo$species != "commongreenmagpie" &
data.photo$species != "greateryellownape"... |
f0f0ce6a6bd52bd72fdcc3492e12d47bfc31e189 | 03f9b872f9e89453d1faf9b545d23fbad83bb303 | /man/summary_genotypes.Rd | bdbc463b3c396cee0927b7e72aadb2f34ca301ac | [] | no_license | kawu001/stackr | 99fa54f4b4e1c8194550752bb238864597442c08 | 684b29b9895c773f48d0e58cba3af22fc2c98a56 | refs/heads/master | 2023-01-06T06:47:55.234575 | 2020-11-05T13:51:20 | 2020-11-05T13:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,707 | rd | summary_genotypes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_genotypes.R
\name{summary_genotypes}
\alias{summary_genotypes}
\title{Summary of \code{batch_x.genotypes.txt} and
\code{batch_x.markers.tsv} files.}
\usage{
summary_genotypes(
genotypes,
markers,
filter.monomorphic = TRUE,
fil... |
63565b31cd62ff2c77423f5096dd1eb87594b6c9 | 57aa5e623b0a037c424fa257d259f59393436f24 | /DR_Method/SEQ_DIFF.R | 7a5e6517189f0d319edd04fdc42fcc0c0037e2ce | [] | no_license | emathian/DRMetrics | 24a0ab942562ac6f1d4a41cb39b7b386d0652a10 | ceeeb9501d838c4b0743dadb3cf942dc59020216 | refs/heads/master | 2020-06-27T05:59:15.403081 | 2019-09-30T09:52:44 | 2019-09-30T09:52:44 | 199,863,555 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 21,102 | r | SEQ_DIFF.R | # __________
# Tools :
# _________
Merging_function <- function(l_data, dataRef){
colnames(dataRef)[1] <- "Sample_ID"
res_l_data <- list()
for (i in 1:length(l_data)){
c_data <- l_data[[i]]
colnames(c_data)[1] <- "Sample_ID"
if (dim(c_data)[1] != dim(dataRef)[1]){
warning(paste("Warning : the d... |
857632c69fc3c463a8b042d5a163671ffe000f9f | 114e25c8be120bd53bac2c4b15f3352065163599 | /R/Create_Run_File_WEPP_2012_600_for_call_from_batch_file.R | 861a8bc50f31f6174156e609e35f52ee6349cc26 | [] | no_license | devalc/WEPP-Recipies | a71de08f97dd633c80424aef6de162ef6d1a85a1 | 79acbfa8f47bd3e27e45f36bf6ed63d92e5a596f | refs/heads/master | 2023-06-10T13:08:01.928430 | 2021-07-07T22:31:35 | 2021-07-07T22:31:35 | 238,544,617 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,733 | r | Create_Run_File_WEPP_2012_600_for_call_from_batch_file.R | ## --------------------------------------------------------------------------------------##
##
## Script name: Create_Run_File_WEPP_2012_600.R
##
## Purpose of the script: Creates Run file for the WEPP 2012.600_for_calling_from_batch_File.exe
##
## Author: Chinmay Deval
##
## Created On: 2020-04-14
##
##
## ---------... |
df3ac37d724ff055d3bf03f08196e7cc54e0793f | f186b57cf6e8f1d67055001dbc55a7d6e6d0681e | /man/dap_to_local.Rd | 0e16fb696ab3d5d8bd711e4a35754a88559db44f | [
"MIT"
] | permissive | mikejohnson51/climateR | 7f005e7ba5e8eb59245cc899b96362d8ed1256a2 | 4d02cd9ccc73f1fd7ad8760b50895a0daaa2f058 | refs/heads/master | 2023-09-04T08:57:09.854817 | 2023-08-21T19:53:33 | 2023-08-21T19:53:33 | 158,620,263 | 138 | 35 | MIT | 2023-08-14T22:52:00 | 2018-11-22T00:07:16 | R | UTF-8 | R | false | true | 1,118 | rd | dap_to_local.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{dap_to_local}
\alias{dap_to_local}
\title{Convert OpenDAP to start/count call}
\usage{
dap_to_local(dap, get = TRUE)
}
\arguments{
\item{dap}{dap description}
\item{get}{should data be collected?}
}
\value{
numeric array
}
\des... |
a127f4e3f661b6a4fd53a6a6bf30b3cc257d4b76 | 985070b5dbc05cc0a162389048b24701e2be83b9 | /src/03_job_scripts/01_helpers/phenotypes.R | d6d3f810d2ce1470da21377d8a5ce1d3617bec06 | [
"MIT"
] | permissive | RezaJF/cardiometabolic_prs_plasma_proteome | b284a06aecf7a1d1486fa9d14babf4c0806343f5 | 08799ac3558376ec6e696dfcff56229c54d7199d | refs/heads/main | 2023-03-28T04:08:46.821158 | 2021-02-22T11:13:04 | 2021-02-22T11:13:04 | 351,812,208 | 1 | 0 | MIT | 2021-03-26T14:38:16 | 2021-03-26T14:38:15 | null | UTF-8 | R | false | false | 693 | r | phenotypes.R | library(data.table)
# Not in its own directory so it doesnt get picked up by the polygenic association scan scripts
out_dir <- "analyses/processed_traits"
# Load phenotype data, set identifier to the genetic identifier, and remove blood cell traits
pheno <- fread("data/INTERVAL/project_1074/INTERVALdata_17JUL2018.csv... |
4af876e582b8b2478327b7e11a57b66d3c3b1db1 | dc0dfacaa2d82b87ea71a9e951ab2716d5459dd7 | /man/baseline.norm.cl.Rd | 6e5ec3e257a692e30b52cfef5406bdc99dd8b603 | [] | no_license | navinlabcode/copykat | 7e797eaad48a5a98883024dc0ee2194f9d7010e0 | b795ff793522499f814f6ae282aad1aab790902f | refs/heads/master | 2023-09-05T13:42:47.124206 | 2022-09-23T17:43:44 | 2022-09-23T17:43:44 | 231,153,766 | 158 | 53 | null | 2021-03-05T22:20:36 | 2019-12-31T22:45:07 | R | UTF-8 | R | false | true | 815 | rd | baseline.norm.cl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/baseline.norm.cl.R
\name{baseline.norm.cl}
\alias{baseline.norm.cl}
\title{find a cluster of diploid cells with integrative clustering method}
\usage{
baseline.norm.cl(norm.mat.smooth, min.cells = 5, n.cores = n.cores)
}
\arguments{
\item{nor... |
c82e894325ebc9b312242251209cd4c89965750d | 0ae69401a429092c5a35afe32878e49791e2d782 | /trinker-lexicon-4c5e22b/man/pos_preposition.Rd | 5391ec27321d845de737260cba8ae95749408bbf | [] | no_license | pratyushaj/abusive-language-online | 8e9156d6296726f726f51bead5b429af7257176c | 4fc4afb1d524c8125e34f12b4abb09f81dacd50d | refs/heads/master | 2020-05-09T20:37:29.914920 | 2019-06-10T19:06:30 | 2019-06-10T19:06:30 | 181,413,619 | 3 | 0 | null | 2019-06-05T17:13:22 | 2019-04-15T04:45:06 | Jupyter Notebook | UTF-8 | R | false | true | 351 | rd | pos_preposition.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pos_preposition.R
\docType{data}
\name{pos_preposition}
\alias{pos_preposition}
\title{Preposition Words}
\format{A character vector with 162 elements}
\usage{
data(pos_preposition)
}
\description{
A dataset containing a vector of common prep... |
6b207386fd879723cc74ff17a512bdebf33f45f0 | 946f724c55b573ef4c0d629e0914bb6bca96f9e9 | /R/intrinsic2.R | 047a4a9fdb2f88dd48f56f3334f00bad08e46473 | [] | no_license | stla/brr | 84fb3083383e255a56812f2807be72b0ace54fd6 | a186e16f22b9828c287e3f22891be22b89144ca6 | refs/heads/master | 2021-01-18T22:59:46.721902 | 2016-05-30T09:42:14 | 2016-05-30T09:42:14 | 35,364,602 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,214 | r | intrinsic2.R | #' Second intrinsic discrepancy
#'
#' Intrinsic discrepancy from \code{phi0} to \code{phi} in the marginal model.
#'
#' @param phi0 the proxy value of \code{phi}
#' @param phi the true value of the parameter
#' @param a,b, the parameters of the prior Gamma distribution on \eqn{\mu}
#' @param S,T sample sizes
#' @retu... |
37b27fa1a641255619cdd38ac0258634f82f8fff | 120e91e531a48f01e83c6a59bd0344316065ffef | /load_ODIN_ECan_data.R | 750f4c9ed9611e62e147b3f4946b1824ec25dcab | [
"MIT"
] | permissive | guolivar/cona | 0198a82b5be629d39d183070102806e2f57ae8d7 | 63b80d25ce6fc25da8e825a98acdfe2605cff83b | refs/heads/master | 2020-05-21T23:09:48.707117 | 2017-11-09T23:54:30 | 2017-11-09T23:54:30 | 41,452,370 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,881 | r | load_ODIN_ECan_data.R | #' ---
#' title: "ODIN CONA"
#' author: "Gustavo Olivares"
#' output: html_document
#' ---
# Load libraries
require('openair')
require('reshape2')
require('ggplot2')
# load_odin data
## ODIN_02.
odin_02 <- read.table("/home/gustavo/data/CONA/ODIN/deployment/odin_02.data",
header=T, quote="")
odi... |
7542b93e52b67e9f1bd6dc323f46ea6c92ad11b4 | 52b4102632b1c7efa62151499e8e5edd6289861c | /code/Coweeta_threshold_testing.R | b6299a8e3a8c79661ccf1fb121236c4805bb93c1 | [] | no_license | phenomismatch/moth-caterpillar-comparison | 4bbfbb00227fd02a35bc0e185de623db5cd1dddd | c82999468c2e9dd4c6af206e32079612fd330a5a | refs/heads/master | 2020-07-08T08:31:52.200714 | 2020-03-16T17:40:11 | 2020-03-16T17:40:11 | 203,619,400 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,765 | r | Coweeta_threshold_testing.R |
source('../caterpillars-analysis-public/code/analysis_functions.r')
source('code/formatting_coweeta.r')
#Function to filter by year and julian week, then gives the number of weeks that fulfill the designated threshold value and plot
threshold<-function(threshold_value, plot){
cow_thresh<-cowplusnotes%>%
fil... |
c84796389e8187dab0f26d0a71950e8c2eb9d9f8 | 681e00803a9d998ab9871fb141e55f0e4036687b | /R/FuzzyMatch.R | af33aebaaf03233d9f4e65dc7b4086faeae1439c | [] | no_license | altingia/evobir | 8cfdbaa10e0e51e9271386da1ac0f3ae2aa850dc | b3912ca77f4e23b6c70f51829bf265451c0dfdd6 | refs/heads/master | 2020-03-26T09:05:39.510817 | 2018-06-23T18:47:28 | 2018-06-23T18:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,021 | r | FuzzyMatch.R | FuzzyMatch <- function(tree, data, max.dist){
if(class(tree)=="multiPhylo"){
warning("Multiple trees were supplied only first is being used")
tree <- tree[[1]]
}
tree.names <- tree$tip.label # lets get the names on the tree
close.taxa <- data.frame()
counter <- 1
data.names <- unique(data)
for(... |
5271edb4a4f47babda8094ff8b39d670bd1637cf | 8bba25c2a3bc4725ba2a4760eec705fb5338f227 | /code/2_methods/2_rare variants/2_rvTDT/1_evs.R | 5493ad9590e8d822630f442d3ff3ba214c4d8fff | [] | no_license | lindagai/8q24_project | b5852d2c7950f2ccaba0e2f08e3c69d47e3d020e | d9bff162b56c55dd3baddac7c2fdfdc6f8dd1386 | refs/heads/master | 2021-04-03T08:26:56.634094 | 2019-12-03T14:24:06 | 2019-12-03T14:24:06 | 124,985,924 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,202 | r | 1_evs.R | ssh -Y lgai@jhpce01.jhsph.edu
#Allocate memory
qrsh -l mem_free=15G,h_vmem=16G,h_fsize=18G
module load R
R
################################
library(dplyr)
library(VariantAnnotation)
################################
##############################
#get raw.evs
filepath.annovar<-"/users/lgai/8q24_project/data/process... |
a68ed9446b20ca4f942246b53ed9c4a8585308fe | fde81cadf1e4a84951526027f702b9577d399d0f | /tools/ngs/R/annotate-variant.R | 39cf1cf922f009faec4e32aff9a64cc5eaa9e701 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | oheil/chipster-tools | d69a0fae3c2b904e3e521509fa228c2fcdc915cf | a74bc97ce05cb2907f812b5fdba689f7a397ec22 | refs/heads/master | 2022-12-14T19:07:46.599754 | 2022-12-02T11:36:21 | 2022-12-02T11:36:21 | 51,596,532 | 0 | 0 | null | 2016-02-12T15:20:33 | 2016-02-12T15:20:32 | null | UTF-8 | R | false | false | 6,433 | r | annotate-variant.R | # TOOL annotate-variant.R: "Annotate variants" (Annotate variants listed in a VCF file using the Bioconductor package VariantAnnotation. Coding, UTR, intronic and promoter variants are annotated, intergenic variants are ignored.)
# INPUT input.vcf: "Sorted or unsorted VCF file" TYPE GENERIC
# OUTPUT all-variants.tsv
# ... |
b147c83de5a31f4e1b50211a841f8f3aade94599 | 4ed6dfdbac828314df254c82b9dab547d7167a79 | /04.ExploratoryDataAnalysis/course_projects/assignment1/plot3.R | 4ec5e28893abff487d7153adff11cb76e6026a61 | [] | no_license | minw2828/datasciencecoursera | beb40d1c29fc81755a7b1f37fc5559d450b5a9e0 | e1b1d5d0c660bc434b1968f65c52987fa1394ddb | refs/heads/master | 2021-03-22T00:15:15.147227 | 2015-08-21T07:55:10 | 2015-08-21T07:55:10 | 35,082,087 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,451 | r | plot3.R | # /usr/bin/rscript
## Coursera Data Science Certificates
## by Jeff Leek, PhD, Roger D. Peng, PhD, Brian Caffo, PhD
## Johns Hopkins University
##
## 04. Exploratory Data Analysis
##
## Course Project 1
##
## Dataset: Electric power consumption [20Mb]
## https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2... |
96c19e1dae03c94c2d5b8b3d39810f7273361244 | 76687fd358d99e4edb73adae1d5bf20d0582b70c | /auxiliary_code_construct_generative_model/main_DGM1_pY_mimicTE.R | a0de28538184e2e64cf00246fa3a7c0ff4e840ca | [] | no_license | tqian/gst_tmle | 04008179e38627b06119bf5798f8d75dd845f2e0 | 6031c5aaf2b4339a69434f0fe5576b4ac0c78066 | refs/heads/master | 2020-06-19T23:17:30.410011 | 2019-07-25T18:39:14 | 2019-07-25T18:39:14 | 196,910,161 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 931 | r | main_DGM1_pY_mimicTE.R | rm(list = ls())
library(ltmle)
source("fcn_DGM.R")
dt100 <- read.csv("data100pts(updated).csv")
dt <- dt100
## Generate twin data set
dtaug <- DGM.step0.twins(dt)
### Now, dt is the original data set, dtaug is the augmented data set
## compute trt effect for dt and dtaug
# without calibration... |
e654f1e65dd93e634a9592939d63c367a95be414 | 0921ca89e1cfb9eefd2227f417bdb91457895b48 | /src/spin_example.R | 4450fe30a806b0e89884eed0f40a442346551d57 | [] | no_license | BarryDigby/Rscript2html | 4a6662885c73fff9992d9d7c878ef44bd844930e | e7fc2c9ca27c64dd00009b169013f712f83636fa | refs/heads/main | 2023-01-02T22:04:46.294810 | 2020-10-22T09:46:40 | 2020-10-22T09:46:40 | 306,291,043 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 540 | r | spin_example.R | #' # This is just an R script
#' ## Rendered to a html report with knitr::spin()
#' * just by adding comments we can make a really nice output
#'
#' > And the code runs just like normal, eg. via `Rscript` after all,
#' __comments__ are just *comments*.
#'
#' ## The report begins here
#+
head(mtcars)
#' ## A chart
#+ ... |
9a99bf560c333850e5d8598a84cc923085966d37 | dabfc981b18d08363e0688156812c0891d288c9b | /cachematrix.R | 79fe7f2ef6566c70f14a836e846c04f20593be75 | [] | no_license | ericxue77/ProgrammingAssignment2 | bcdc54589be98bdebcb743e4b3e453af2ea88f5f | 5f4c218d81134a422d3bea1bed019257c0852869 | refs/heads/master | 2021-01-09T09:34:03.399936 | 2014-12-15T20:25:22 | 2014-12-15T20:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 948 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## This function will get an input matrix, and then will create the cache for the inverse matrix
makeCacheMatrix <- function(x = matrix()) {
m<-NULL
set <- function(y) {
x <... |
fab84f0c00012cb47d37fa6ca8de6a2054389db7 | 1eee16736f5560821b78979095454dea33b40e98 | /thirdParty/HiddenMarkov.mod/man/forwardback.Rd | e16836781fdc96519faedd9987f41456a60d443e | [] | no_license | karl616/gNOMePeaks | 83b0801727522cbacefa70129c41f0b8be59b1ee | 80f1f3107a0dbf95fa2e98bdd825ceabdaff3863 | refs/heads/master | 2021-01-21T13:52:44.797719 | 2019-03-08T14:27:36 | 2019-03-08T14:27:36 | 49,002,976 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,013 | rd | forwardback.Rd | \name{forwardback}
\alias{forwardback}
\alias{forward}
\alias{backward}
\alias{forwardback.dthmm}
\title{Forward and Backward Probabilities of DTHMM}
\description{
These functions calculate the forward and backward probabilities for a \code{\link{dthmm}} process, as defined in MacDonald & Zucchini (1997, Page 60).
}
... |
7a5de2f11525a36c237088fe4dbcb03cae1d1419 | 788f5854c1c23cee0ea77238ffad7dcdcf9683c2 | /inst/bn/tests/mytest.R | 63ed71e3b3d0ae74f04e060222e7fc8db19b8696 | [
"Apache-2.0"
] | permissive | paulgovan/BayesianNetwork | 78b6978f43f9163b6de05338d7cf2270ffbf2768 | b0094d79234ba8b4db61203c0318b2fbb34c372d | refs/heads/master | 2023-08-04T13:05:45.085458 | 2023-07-15T21:21:12 | 2023-07-15T21:21:12 | 42,831,223 | 118 | 46 | null | null | null | null | UTF-8 | R | false | false | 945 | r | mytest.R | app <- ShinyDriver$new("../", seed = 123)
app$snapshotInit("mytest")
app$snapshot()
Sys.sleep(2)
app$setInputs(sidebarMenu = "structure")
Sys.sleep(4)
app$snapshot()
app$setInputs(net = "3")
app$setInputs(alg = "hc")
app$setInputs(type = "aic")
app$setInputs(sidebarMenu = "parameters")
Sys.sleep(1)
app$snapshot()
app$... |
4a020f890f12c0f6bd28679f9ac293131744dd08 | af550edba65daf05752ed515b830e4ffce9de7f7 | /man/plot.rmtfit.Rd | 0b55f8613aef333a7515f859f167b7edda6e1623 | [] | no_license | cran/rmt | 01bf3ccebbc134edab9f2034b282beae1e1454f9 | 16616c69c55ba10e42908d0afd77bc0c07c46dd5 | refs/heads/master | 2023-05-06T03:59:19.202575 | 2021-05-25T05:40:03 | 2021-05-25T05:40:03 | 370,748,790 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,117 | rd | plot.rmtfit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generic.R
\name{plot.rmtfit}
\alias{plot.rmtfit}
\title{Plot the estimated treatment effect curve}
\usage{
\method{plot}{rmtfit}(
x,
k = NULL,
conf = FALSE,
main = NULL,
xlim = NULL,
ylim = NULL,
xlab = "Follow-up t... |
8b0ddc0e615605ac432ad549e3770b72fecaaf43 | 251a3940e544dd6277fbdbc9f5cfebd53f98d3af | /man/count..Rd | c2966451a8e20c2faddb6ddf8be822eaa277164f | [
"MIT"
] | permissive | lionel-/tidytable | 641c45c6a367a17b8ece2babfeb27b89ca0e101b | 72c29f0e14d96343ba6e5dcd0517f7032d67c400 | refs/heads/master | 2022-07-11T22:33:29.352960 | 2020-05-10T18:33:10 | 2020-05-10T18:33:10 | 263,058,395 | 0 | 0 | NOASSERTION | 2020-05-11T13:59:12 | 2020-05-11T13:59:11 | null | UTF-8 | R | false | true | 649 | rd | count..Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/count.R
\name{count.}
\alias{count.}
\alias{dt_count}
\title{Count observations by group}
\usage{
count.(.data, ...)
dt_count(.data, ...)
}
\arguments{
\item{.data}{A data.frame or data.table}
\item{...}{Columns to group by. \code{tidyselec... |
d771f7df480438057780d49b75e4d58bef879cfd | eeadff12f42f4393bfc48136f33c9fb59fa96fde | /man/KmerCount.Rd | 9ac50b72aef508a520b3701b7b73ca8a6ae4e4ce | [] | no_license | larssnip/microclass | 654c2b6f3ca3b517a9cfb6f149f91dbba02e0267 | 7e549a441003b1e806061cb47a85fea2377fc0e6 | refs/heads/master | 2023-07-12T03:01:04.095770 | 2023-06-29T11:49:10 | 2023-06-29T11:49:10 | 99,898,801 | 3 | 3 | null | 2023-06-01T14:45:24 | 2017-08-10T08:16:07 | R | UTF-8 | R | false | true | 1,048 | rd | KmerCount.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/KmerCount.R
\name{KmerCount}
\alias{KmerCount}
\title{K-mer counting}
\usage{
KmerCount(sequences, K = 1, col.names = FALSE)
}
\arguments{
\item{sequences}{Vector of sequences (text).}
\item{K}{Word length (integer).}
\item{col.names}{Logic... |
d105ee9bb8d4ae326929a8911f7ef0630ed7df76 | 5341f4511794b81b66ac2ab41008b3ceb05e62ad | /R/search_pubmed.R | d798d5d47c23a035268eb2f158b40655200f3720 | [] | no_license | kamclean/impactr | f96d281ce114e14035a1f9b2869a0db7af14bd97 | b15f2a072c46f939537a9c90d0acb06e6963639b | refs/heads/master | 2022-12-23T01:15:03.958208 | 2022-12-13T19:56:46 | 2022-12-13T19:56:46 | 194,408,033 | 9 | 2 | null | 2020-02-16T15:41:07 | 2019-06-29T13:21:00 | R | UTF-8 | R | false | false | 2,924 | r | search_pubmed.R | # search_pubmed------------------------------
# Documentation
#' Perform a focused pubmed search to identify the PMID associated with specified authors or registry identifiers.
#' @description Search pubmed to identify PMID associated with specified authors or registry identifiers.
#' @param search_type Type of search ... |
7c7f6ec4f2bbb80e2d86af238769c07e9b18bae9 | aca48d46c64bb105b10b6cab1a30dcc5bd76eb50 | /R script_v3/Time_frequency_User.R | c28db5b8f86304349269ead7bc3f40c4bac57994 | [] | no_license | Inkdit/Codes_Yile | 395cb66f7abbacafe7eb00713b10c1a8abb29236 | fa830cd1baee5848f6ab9d34a136477156713462 | refs/heads/master | 2021-01-11T02:37:39.257104 | 2016-10-13T21:57:27 | 2016-10-13T21:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,252 | r | Time_frequency_User.R | rm(list = ls())
setwd("G:\\Codes\\Text_Mining\\R script_v3")
library(RPostgreSQL)
source("Time_Interval_Generator.R")
TimeGen <- function(Year = 2011, Month = 1, Day = 1){
return(paste("'", as.character(Year), "-", as.character(Month), "-", as.character(Day), "'", sep=""))
}
source("User_Frequency.R")
FrequentLi... |
56e228d01f22b582046aa6d90b1ded2893ab5a5f | caf99a85f73911f5215f1a136735bf01a8444843 | /drug_name_generator.r | 640a053755fa5df6807f2718d849c302fc267cd4 | [] | no_license | CrumpLab/MinervaReasoning | 289b0ca046451f535031cf8feda12f6b09c2e622 | bc214ea6245e6f2bc807eef136b2db03caf15dc1 | refs/heads/master | 2020-07-05T09:03:48.314112 | 2019-09-03T20:13:14 | 2019-09-03T20:13:14 | 202,600,744 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,480 | r | drug_name_generator.r | # Drug name generator
library(tidyverse)
# 40 common drug names, with the beginings and endings split
drugs <- data.frame(stringsAsFactors=FALSE,
Original = c("Acetaminophen", "Adderall", "Alprazolam", "Amitriptyline",
"Amlodipine", "Amoxicillin", "Ativan", "Atorvastatin",
"Azit... |
b21c945d48c3f3f9de834c0eeb37557302d9599b | 476c57e42c9361abaa79ffe1d82acda81a0cc402 | /7.quality traits/1.ANOVA/stripchart.R | c3f9c518996a811f4f3d0e54d250c5f652672e57 | [] | no_license | zzl2516/Using-gut-microbiota-to-predict-origins-and-qualities-of-cultured-sea-cucumbers | 210566d207d537f0e05ab64a7a25bcc79c021d9b | a0ac3450f052c69dc71038c948bc1d6c0b1256a7 | refs/heads/main | 2023-03-29T21:05:01.014582 | 2021-03-13T05:54:39 | 2021-03-13T05:54:39 | 347,279,463 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,922 | r | stripchart.R | class <- read.table("nutrition.txt",header = TRUE,sep = "\t")
colnames(class) <- c("Group","Protein (%)","Fat (%)","Sugar (%)",
"Saponin (g/kg)","Collagen (g/kg)","VA (μg/kg)","VE (mg/kg)",
"Taurine (g/kg)","CS (mg/kg)")
library(dplyr)
library(ggplot2)
library(reshape2)
bb <- cl... |
23e2286d48fd4bae71f8616f23dd54aa9400c4e4 | fda4611281af0bc21fd28b376e26266a101bdd3b | /Helper/helper_udell.R | 02f7e2a23088da04f1cbf6c267cec0900e3fbba0 | [
"MIT"
] | permissive | imkemayer/causal-inference-missing | bc75749682273ef2a5536540ff4af84cd7276ee8 | e440ecc7084bc80205f2291c1a9e1dff55723325 | refs/heads/master | 2021-09-27T00:13:39.469262 | 2021-09-22T13:32:50 | 2021-09-22T13:32:50 | 185,151,389 | 8 | 2 | null | 2020-10-13T14:08:06 | 2019-05-06T08:05:23 | HTML | UTF-8 | R | false | false | 3,747 | r | helper_udell.R |
make_V <- function(r, p){
matrix(rnorm(r*p), nrow = p, ncol = r)
}
design_matrix <- function(V, n, r, p){
# this function constructs the design list with U, V, X components
# U: n * r matrix with entries from standard gaussian distribution
# V: n * p matrix given in the input
# X: X = UV^T
des... |
d014341f44f7eca74bcfe33528bdc9e4dc3fb268 | d84d23c8eef6d63e4fba75d545d906508ffaba71 | /R/ipsimlist.R | a5edd4010477ae23571891ddcee900e0451dee92 | [] | no_license | cran/idar | eba09954b967015aad0e8ff44c5056964059653e | 9eb164fb099979980ed6e9e6878239018dbb71bf | refs/heads/master | 2023-01-25T03:12:10.573323 | 2023-01-05T14:50:08 | 2023-01-05T14:50:08 | 90,233,829 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 657 | r | ipsimlist.R | ipsimlist<- function(pp, mimark,listsim){
# inhomogeneous simulation of a type within a
# multivariate point pattern
# listsim: list with simulated pp from simulador2
listsim <- lapply(listsim, function(x, pp2=pp, mimark2=mimark) {
# First split the multivariate pp
... |
3ebd32663454aae59f662e6d35af10c240a4e2d4 | 11ca614b32749f369af93febbb04571b7f95748a | /statistical_inference/notes/useful_stat_scripts.R | b722f6f8a1de2a4cb4a28564468de4fd1f4b1924 | [] | no_license | richelm/course_notes | 61c525ca433d4faf90216509575432665fd7f461 | 0677708e8a05e67063a94a6dbee7e303b7b5d55a | refs/heads/master | 2021-01-18T21:51:10.181408 | 2019-12-03T22:36:29 | 2019-12-03T22:36:29 | 42,669,012 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,711 | r | useful_stat_scripts.R | # ----------------------------------------------------------------------------
# Standard error sample mean
m =
s =
n =
se = s/sqrt(n)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Standard error of d... |
ebefd1dc5c6f62a85843a177ce26f060487adbae | 49e1ad0295bf55151565814a531942c830fcd26b | /man/tmt_save.Rd | 7e19734e39cd0cd5f6b81d73548e8952e4be1cc0 | [
"MIT"
] | permissive | backlin/treesmapstheorems | 6d5fbdf78a0b78d895dc6fd835021b807c6be1b7 | 543d57a21526c2daa1df82f7391acb077a6c367c | refs/heads/master | 2021-01-11T11:46:12.368671 | 2018-08-09T08:43:18 | 2018-08-09T08:43:18 | 76,788,457 | 8 | 0 | null | 2017-05-15T10:57:16 | 2016-12-18T14:42:22 | R | UTF-8 | R | false | true | 638 | rd | tmt_save.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/output.R
\name{tmt_save}
\alias{tmt_save}
\title{Save a plot}
\usage{
tmt_save(filename, plot, width, height, units = "cm", ...)
}
\arguments{
\item{filename}{Output filename.}
\item{plot}{Plot drawn with ggplot.}
\item{width}{Output width ... |
8f0c87bad5839e22ad7077297a00a17249cb05dd | 647f90beb58faebe1f51114d964a75ba6dfa931e | /scripts/r_shiny_scripts/shiny_app_1/server.R | 6d9da12d2afe7f1bd0f9cb15bf0fe2b5d70e5931 | [] | no_license | cjfiscus/INDELible | f48c30a9f5724262e97e948a4dc9005c37950a29 | 5930be97c892528d6249c47c6c68f4ef3e006618 | refs/heads/master | 2021-08-29T12:03:50.563286 | 2017-12-13T04:52:27 | 2017-12-13T04:52:27 | 114,177,086 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 262 | r | server.R | library(shiny)
#
server <- function(input, output) {
# Generate a plot
output$chrm_histPlot <- renderPlot({
chrom_hist_plot(x, chrm = input$chrm_select,
bins = input$nbins, in_or_del = input$indel_type, test = input$test_select)
})
} |
e6d3e9192caa355fda5cccc09fb14688dc5f44d4 | 0cce806b7204607bd673ff5e6a790a748179c785 | /Review.R | b5810073fa2434dd6ae4150f28d5a91c6e7f962d | [] | no_license | AshutoshAcharya/CMAP-R | 0fa94c44e5acfd71b8d4a3acc1bff41ff2e5418e | d1c36a783678b80dd41970c1a521b8edd8eaedc6 | refs/heads/master | 2020-03-30T06:38:07.580791 | 2018-10-02T07:14:12 | 2018-10-02T07:14:12 | 150,876,420 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,269 | r | Review.R | population= sample(c('M','F'),size = 100,replace = T)
population
spl=sample(c('marketing','finance','HR'),size = 100,replace =T,prob =c(.33,.33,.34))
spl
grade=sample(c('a', 'b', 'c' , 'd' , 'e'),size = 100,replace = T)
grade
placement=sample(c('yes','no'),size = 100,replace = T)
age=ceiling(runif(100,min = 21,max = 3... |
6b7125aa0d7a2959b23685e474109d4111229c20 | 1e73cf11adf8b14a966dda08bc16263a5439b613 | /stanhw.R | e6d27d1aaaf30695c5fdb791093b2682bc7d7214 | [] | no_license | qchenclaire/Approximate-Inference | 70d390f90fae8bc601c55108cac21e4a9fbea2c2 | ca2bd253a0358e302b2fafd25b5cfeb83ccfa4e2 | refs/heads/master | 2020-05-05T03:29:59.220638 | 2019-04-05T18:07:03 | 2019-04-05T18:07:03 | 179,674,980 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,076 | r | stanhw.R | library(rstan)
y <- read.table("hw2data.txt")
N <- length(y[,1])
plot(density(y[,1]))
plot(density(y[,2]))
plot(density(y[,3]))
plot(density(y[,4]))
## stan data
stan_data <- list(N = N, y = y, K = 3, D = 4)
write("// Stan model
data {
int N; // sample size
int D; // dimension of observed var... |
64efa91b912def8cef4f5cc94b1a3d510559f564 | 0d15e0e25f3e5441169557203c65b971a2d4fb60 | /r code/code/pfix_time_since_onset.R | fa05b1fb09937f3d03523c26b060ea503848c6f7 | [] | no_license | mickeypash/maxi-lex-r | c206219b172220b595f25829a62ce08ced46e900 | e76207e9f490d5d556fc2296d9bbf28482a4d81d | refs/heads/master | 2016-09-03T07:24:41.604897 | 2014-12-20T23:53:54 | 2014-12-20T23:53:54 | 17,442,614 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,600 | r | pfix_time_since_onset.R | ## This script generates figures for activation over time for
## the four images
# Setwd
setwd("D:/Dropbox/Maxi/R/r\ code/output")
load(file="preprocessed.RData")
load(file="alldat.RData")
#colnames(alldat) <- sub("\\.x$", "", colnames(alldat))
#rownames(alldat) <- NULL
# Useful function for creating pdfs
to.pdf <- ... |
e6faf49e90c71cee1fb023597e80cc2726186ae5 | 2e7550600103108edbb7e1f01760766907a6b5c3 | /tests/testthat/test-verified-anovarepeatedmeasures.R | 99148696ba40583ed58a094b64b44e00ce38d80c | [] | no_license | djdekker/jaspAnova | 94db3b98ecf6c7031559b671c3ff3449c3ac1904 | 95f132a9756a20660e81b3ccb9868f2500bbce1f | refs/heads/master | 2023-08-18T03:31:46.691705 | 2021-09-18T02:43:16 | 2021-09-18T02:43:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,196 | r | test-verified-anovarepeatedmeasures.R | context("Repeated Measures ANOVA -- Verification project")
# Does not test:
# - type I and type II sum of squares
# - Contrasts apart from 'repeated'
opts <- options()
on.exit(options(opts))
options(list(
afex.type = 3,
afex.set_data_arg = FALSE,
afex.check_contrasts = TRUE,
afex.method_mixed = "KR",
... |
a98d9664aca0064adc903c644ec318de4b831d91 | 80badebbbe4bd0398cd19b7c36492f5ab0e5facf | /R/flipSGDF.R | 6cb2ab679323b02c65aa02db938be22d6f9f405f | [] | no_license | edzer/sp | 12012caba5cc6cf5778dfabfc846f7bf85311f05 | 0e8312edc0a2164380592c61577fe6bc825d9cd9 | refs/heads/main | 2023-06-21T09:36:24.101762 | 2023-06-20T19:27:01 | 2023-06-20T19:27:01 | 48,277,606 | 139 | 44 | null | 2023-08-19T09:19:39 | 2015-12-19T10:23:36 | R | UTF-8 | R | false | false | 674 | r | flipSGDF.R | flipHorizontal <- function(x) {
if (!inherits(x, "SpatialGridDataFrame")) stop("x must be a SpatialGridDataFrame")
grd <- getGridTopology(x)
idx = 1:prod(grd@cells.dim[1:2])
m = matrix(idx, grd@cells.dim[2], grd@cells.dim[1], byrow = TRUE)[,grd@cells.dim[1]:1]
idx = as.vector(t(m))
x@data <- x@data[idx, TRUE, dr... |
6d3c4b05766611a9c5387f2a54667cbbae0691a5 | 22057bf4f2eb001f739761e53a5578de578e6920 | /scripts_on_file1/Compare_FlowBC_Prior_Post.R | 8adff57540315dc15dd9bba88032e88cd83e7433 | [] | no_license | mrubayet/archived_codes_for_sfa_modeling | 3e26d9732f75d9ea5e87d4d4a01974230e0d61da | f300fe8984d1f1366f32af865e7d8a5b62accb0d | refs/heads/master | 2020-07-01T08:16:17.425365 | 2019-08-02T21:47:18 | 2019-08-02T21:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,812 | r | Compare_FlowBC_Prior_Post.R |
#This file is used for comparing boundary conditions prior and post to EnKF update
rm(list=ls())
output_folder = 'BC_CondSim_Mar2011_wo121A'
BCfile_ext = '_Exp_drift0_Mar2011_192to291h.txt'
subdir_plot = 'plots'
subdir_data = 'data'
#create the folders if they do not exist
if (!file.exists(output_folder))
dir.c... |
c84ac1c22a7d54c83fc082b6dd0283255a728b83 | 8986978a933ddcd9dbacb83b30bb37c88d52fe54 | /man/cut_pretty.Rd | 7d98ca21bf683da787e0c48f3633415c8221e71f | [] | no_license | ramhiser/pocketknife | 7625ee1bd21d48f0f3f76e7bbb2ebb5ecea9da59 | 51e669b49c758bbdae8f6101a8d098837965b3c4 | refs/heads/master | 2021-01-01T05:49:27.322019 | 2015-02-22T17:30:25 | 2015-02-22T17:30:25 | 26,447,783 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 598 | rd | cut_pretty.Rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/cut-pretty.r
\name{cut_pretty}
\alias{cut_pretty}
\title{Cuts a vector into factors with pretty levels}
\usage{
cut_pretty(x, breaks, collapse = " to ", ...)
}
\arguments{
\item{x}{numeric vectory}
\item{breaks}{numeric vector of two... |
2303319a30f47ea720dce7a3b12a92e1268a87e6 | 6dd311e67e479610e93d44cdbf6827bb1fa40939 | /Projects/murders/download-data.R | f5042deb3b40481af3bbc4564664706f6786e7b6 | [
"MIT"
] | permissive | JayChart/harvardx-ph125x | e81ea96df911f4d61bdb604007eff2b269f5f0aa | 4be7c7cabd99e05ac12975ac8ccdbe0a2070f6d5 | refs/heads/master | 2020-07-18T03:28:22.403155 | 2019-08-24T20:55:02 | 2019-08-24T20:55:02 | 206,165,329 | 1 | 0 | MIT | 2019-09-03T20:20:48 | 2019-09-03T20:20:48 | null | UTF-8 | R | false | false | 162 | r | download-data.R | url <- 'https://raw.githubusercontent.com/rafalab/dslabs/master/inst/extdata/murders.csv'
dest_file <- 'data/murders.csv'
download.file(url, destfile = dest_file) |
132cedc52b5eae820ba412ed8fb21c2c8dbd4cfa | 004e568967af944540411d5b0a9607258c5620b0 | /scripts/Conjoint analysis AMR final.R | 66d52decd0be1ecba87807bb26120341607abd99 | [] | no_license | kassteele/AMR-index | 14361600af0a2f7385d073e62433d93b7814185b | 29a20a7fb4fffb25c8c1bd8bda5ace86a061b928 | refs/heads/master | 2021-07-23T20:50:24.218177 | 2017-11-03T13:46:59 | 2017-11-03T13:46:59 | 109,375,902 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,019 | r | Conjoint analysis AMR final.R | #
# R-script belonging to the manuscript
# A summary index for antimicrobial resistance in food animals in the Netherlands
# Arie H. Havelaar, Haitske Graveland, Jan Van De Kassteele, Tizza P. Zomer, Kees Veldman, Martijn Bouwknegt
# Submitted to BMC Vet Res
#
# Author: Jan van de Kassteele
# Last revision date: Octobe... |
a4e2148a274ba7494cecd749e15105f643f81b5d | 81f68c4397dec52c5129cbff33988669d7431f36 | /man/perspective_projection.Rd | c6bf9e5a4663955737714acfdb0345b10f8818fa | [
"MIT"
] | permissive | coolbutuseless/threed | b9bb73da1bbbc4bd6f0fb8d3b4f310d013326dfd | 35d10852ef08f327011c82a586e85b1c39e64382 | refs/heads/master | 2020-04-05T07:47:24.436328 | 2018-12-02T07:41:17 | 2018-12-02T07:41:17 | 156,688,668 | 42 | 1 | null | null | null | null | UTF-8 | R | false | true | 581 | rd | perspective_projection.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/project-perspective.R
\name{perspective_projection}
\alias{perspective_projection}
\title{Perspective projection (symmetric frustrum)}
\usage{
perspective_projection(x, w = 2, h = 2, n = 1, f = 10)
}
\arguments{
\item{x}{matrix, mesh3d, vecto... |
8ac7d1b5c62c3b2f0a3fd364612af4c53b48cc23 | 44ae58ea68bf99fa22fe6f61aed41c263a34f249 | /cor_msms_genus.R | 160428d888e372d77ce1ddc2c56054ee42b8b9ee | [] | no_license | kyl1989/cor-heatmap | a3a5e57a9039965a586b79ca4c981704ade77a4a | 646e7cae60f46ac9e149912185dcf3c34a44afe5 | refs/heads/master | 2021-04-09T10:22:15.933232 | 2018-04-26T07:49:19 | 2018-04-26T07:49:19 | 125,492,922 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 658 | r | cor_msms_genus.R | library(pheatmap)
library(psych)
Genus = read.table('Genus.txt', header = TRUE, row.names = 1, sep = '\t')
Msms = read.table('msms.txt', header = TRUE, row.names = 1, sep = '\t')
Msms1 = t(Msms)
Genus1 = t(Genus)
Msms2 = Msms1[sort(row.names(Msms1)),]
Genus2 = Genus1[sort(row.names(Genus1)),]
Cor_P = corr.test(... |
1374719c705ed76c47ba069ec9bbe9a278beffb4 | 2d70c8e87de02da7b7d7d30f7a451d4bd941e0ed | /R/plotROC.r | 43c5b1f22073ef262ad6a6549923bdf6ebe89ffd | [
"MIT"
] | permissive | andybeeching/discern | 44601fc864cc8ed2fce6f59e0f097551f9e0d5b3 | 9b0a6b6d43fbc9f72b7ab7c74eae239986185c93 | refs/heads/master | 2021-01-18T21:10:10.739597 | 2016-05-22T18:22:40 | 2016-05-22T19:41:38 | 50,298,754 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,568 | r | plotROC.r | # !/usr/bin/Rscript
#' Utility function to plot multiple ROC curves against each other. Wraps the
#' *roc* method of the pROC package.
#'
#' - Comparison helps determine which models favour more TPs or less FPs
#' - Curves are shown overlaid in the same panel upto a max threshold, upon
#' when a new panel will... |
d43879eb73d2a8c0d0b2b06cb770a12fc6a7e506 | beb7e8c8000b6e23aa559090f557b6bab4543eef | /model/R/update_subsurface.r | 5cf0295b85af606c23532de8ec7450a66d8814f3 | [] | no_license | PeterMetcalfe/dynatopmodel | 4b06ae681a96beea63639b80400f021522571b65 | 3b24ce7a16165c5fff6a9c21784a138d65d9965f | refs/heads/master | 2021-01-10T16:07:17.615695 | 2016-01-05T18:29:27 | 2016-01-05T18:30:12 | 49,082,610 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,043 | r | update_subsurface.r | #source("kinematic_desolve.r")
#c.route.kinematic.euler <- cmpfun(route.kinematic.euler)
################################################################################
# run inner loop Solve kinematic equation for base flow at given base flows at
# previous steps and input at this one
# Input (all)
# w ... |
f4efba984962cab6ba87d108b7f400db298d6eb3 | db2d21bef6376995a5b0684049a149944b46881a | /dist_data_prep.R | 9f787a2b152e4c7d61782a2101a74453cab6eba0 | [] | no_license | matkalinowski/whyR_hackaton | 3e2ee4305f39659c7f07b4958c978bfb79d2f7af | 337a4324df4a39af465650cacd4f1700e93d97c2 | refs/heads/master | 2020-08-01T14:38:24.878754 | 2019-09-26T16:12:31 | 2019-09-26T16:12:31 | 211,024,223 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,379 | r | dist_data_prep.R | library(tidyverse)
library(RANN)
add_km_coordinates = function(df, lat_mean = 52.22922, lng_mean = 21.04778){
m_x = 111132.954 - 559.822 * cos(2 * lat_mean * pi / 180) + 1.175 * cos(4 * lat_mean * pi / 180)
m_y = 111132.954 * cos(lat_mean * pi / 180)
x = df$lat * m_x
y = df$lng * m_y
x = x - lat_mean *... |
49aa29e2d2894a7daa71dacfd2d07cb174ac727f | 83c13c6670c1f3527537ae22bcf05544bc9a91b7 | /Between_sample_effects.r | 88deb6a533e4a199a91083f183fddbcd62d2ed69 | [] | no_license | MatthewASimonson/gene_set_scripts | 3888e9daefe8f8bfce88f574ae531a22fe7a32d3 | 9b54d593eef3eeee56ad25aaad0661edb494d0b2 | refs/heads/master | 2020-08-23T17:26:13.902790 | 2015-05-01T13:05:21 | 2015-05-01T13:05:21 | 32,985,048 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,899 | r | Between_sample_effects.r | # Examine between sample bias that may be occuring:
###################################################
# First load data:
setwd("/home/simonsom/Obesity/Study_Merge/GenePath")
dataset <- 'MERGE.clean.FINAL'
#load("Cross_Validation.Rdata")
load("resid.models.Rdata") # load total phenotype with covariates for all subje... |
f09605c27c48120cef1cd4d42010d4e2d5e777db | 5ed2eda1f12a981732f42a363a3cce46c72c4e67 | /R/plot_issues_pending_response.r | 73b4447334239d994f166ef2fdb3957c62111965 | [] | no_license | mgaldino/r_we_the_people | 8f7e0029a3af243bb1cb06a3e1bd461e93987921 | eab1e11d26de81b9aa1955824744bd88a23437f0 | refs/heads/master | 2021-01-15T17:02:18.669278 | 2013-06-24T13:42:58 | 2013-06-24T13:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 591 | r | plot_issues_pending_response.r | #' Generates a plot of issues pending response over time.
#' @param petitions a data frame of petitions
#' @importFrom ggplot2 ggplot aes geom_point labs
#' @export
#' @examples
#' data(petitions)
#' plot_issues_pending_response(petitions)
plot_issues_pending_response <- function(petitions) {
issues <- melt_issues(pe... |
bc142eccec219b00089c73673951a8be61312ab1 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/auk/examples/read_ebd.Rd.R | 1a5c3e97b285ffe87837337dd4385ac2e3ae5a73 | [] | 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 | 438 | r | read_ebd.Rd.R | library(auk)
### Name: read_ebd
### Title: Read an EBD file
### Aliases: read_ebd read_ebd.character read_ebd.auk_ebd read_sampling
### read_sampling.character read_sampling.auk_ebd
### read_sampling.auk_sampling
### ** Examples
f <- system.file("extdata/ebd-sample.txt", package = "auk")
read_ebd(f)
# read a sa... |
e36137e2ed1e97538091604a449ef57bee0d5806 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/dga/examples/makeAdjMatrix.Rd.R | 97a94aa63c468612d8ad7275872e108b2758eb0b | [] | 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 | 711 | r | makeAdjMatrix.Rd.R | library(dga)
### Name: makeAdjMatrix
### Title: Adjacency Matrix Converter
### Aliases: makeAdjMatrix
### Keywords: adjacency matrix graph
### ** Examples
## The function is currently defined as
function (graph, p)
{
Adj <- matrix(0, nrow = p, ncol = p)
diag(Adj) <- 1
for (i in 1:length(graph$C)) {
... |
2ced63dd20f3525fa7312363ff2342b19b935297 | 555a96d19c5ba05d7c481549188219b0ee2b5855 | /man/calc_kobeII_matrix.Rd | 055b309c521f0ce50c326fd6399077b0c9da4f5f | [
"GPL-3.0-only"
] | permissive | ShotaNishijima/frasyr | 9023aede3b3646ceafb2167130f40b70c9c7d176 | 2bee5572aab4cee692d47dfb9d8e83ce478c889c | refs/heads/master | 2023-08-16T11:43:39.327357 | 2020-01-21T07:49:29 | 2020-01-21T07:49:29 | 199,401,086 | 0 | 0 | Apache-2.0 | 2019-07-29T07:26:21 | 2019-07-29T07:26:20 | null | UTF-8 | R | false | true | 591 | rd | calc_kobeII_matrix.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.r
\encoding{UTF-8}
\name{calc_kobeII_matrix}
\alias{calc_kobeII_matrix}
\title{Kobe II matrixを計算するための関数}
\usage{
calc_kobeII_matrix(fres_base, refs_base, Btarget = c("Btarget0"),
Blimit = c("Blimit0"), Bban = c("Bban0"), year.lag ... |
8823b9e923f5b49a1e860eba7e221cc64bd73cb4 | 2fb8f7de5622243765b6697a2d5d0a83578b59dc | /session 4/credit_linear_models.R | d815202446fd9752c012ceac7035089add5d09a8 | [] | no_license | kostis-christodoulou/c170 | b71b6741e73b1ee9656d773ff87d14d9a00008b8 | 6ae496b97bc61b9d5d709e9cab68a540fe9472df | refs/heads/main | 2023-08-01T07:55:13.586506 | 2021-09-16T16:11:53 | 2021-09-16T16:11:53 | 400,156,320 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,590 | r | credit_linear_models.R | library(tidyverse)
library(GGally)
library(skimr)
library(mosaic)
library(ggfortify)
library(car)
# while it's fine to know about working directories, I suggest
# you learn to use the package 'here' that makes organising files easy
# https://malco.io/2018/11/05/why-should-i-use-the-here-package/
credit <- read_csv(he... |
b8cb921888a1f954269aab2e2b6e1cd29ee24ff0 | 2dc78a3377c57e0e5fbe8ee41e85942946666a36 | /man/fishcoverEx.Rd | aa3471ca8c73d5991af2817b8fbfd07a85dab269 | [] | no_license | jasonelaw/aquamet | e5acce53127de4505486669597aed3dd74564282 | 3464af6dbd1acc7b163dc726f86811249293dd92 | refs/heads/master | 2020-03-25T16:19:46.810382 | 2018-08-07T20:51:01 | 2018-08-07T20:51:01 | 143,925,702 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 830 | rd | fishcoverEx.Rd | \name{fishcoverEx}
\alias{fishcoverEx}
\docType{data}
\title{Example Fish Cover Dataset}
\description{
A dataset containing raw fish cover physical habitat data for use in function examples.
}
\usage{data(fishcoverEx)}
\format{
A data frame with 396 observations on the following 6 variables.
\describe{
\item{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.