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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9aab6431bdfd09744b1a5cdc76b78380344c725 | ae4580e6f8626853ce5353fe89cac50cc506481d | /Unsupervised Learning/HW5/p3.R | bc0705d930dd8c1f2e509f7f29c15c4353636661 | [] | no_license | kunalkm12/Unsupervised-Learning | 8900bcb6520a8d55d127fd7eef643b36b1c9b1eb | 39c52261c7eb88fde80b862ce57e9ac8bb1255ae | refs/heads/main | 2023-01-12T13:48:00.718475 | 2020-11-10T20:18:39 | 2020-11-10T20:18:39 | 308,265,182 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,331 | r | p3.R | rm(list = ls())
library(recommenderlab)
### Accessing the dataset
data(MovieLense)
### SPECIFICATION of k
k = 30
### Getting a feel of the matrix
getRatingMatrix(MovieLense)[1:10,1:10]
### Verifying if no of rows and columns match values in the problem statement
nrow(MovieLense)
ncol(MovieLense)
### ... |
e83101d23a86277932dd6251077eeee8302567dd | feb2e64dba1e0a88e9e157610305da70a60e1026 | /Quiz2C7.R | 8c9243120791cd42fe3597fcc4116b924264d20f | [] | no_license | anncrawford01/RegressionModelsCrs7 | 8ce8a3d7dac6916d4383b9e953ac0cd5bbc3783a | 954c590d461701f95ff98649c586ebc452b47e5d | refs/heads/master | 2021-05-05T15:09:52.777394 | 2017-10-07T06:16:06 | 2017-10-07T06:16:06 | 103,148,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,730 | r | Quiz2C7.R | ## Regression Models Course 7
## Quiz 2
## Q1 ###
## https://www.zoology.ubc.ca/~schluter/R/fit-model/
x <- c(0.61, 0.93, 0.83, 0.35, 0.54, 0.16, 0.91, 0.62, 0.62)
y <- c(0.67, 0.84, 0.6, 0.18, 0.85, 0.47, 1.1, 0.65, 0.36)
plot(x,y)
fit <-lm(y ~ x)
## this plots the residuals vs fittted, Normal Q-Q, Scale-Locati... |
8671fa364683e49e7540fab7007ea233436031d4 | 1542b8ef5c6387facf4d49f8fd4f6b5ef5d8e9c0 | /man/xGScore.Rd | a76dff0c0efbfe88e996754062d6ed6299351289 | [] | no_license | wuwill/XGR | 7e7486614334b664a05e389cd646678c51d1e557 | c52f9f1388ba8295257f0412c9eee9b7797c2029 | refs/heads/master | 2020-04-12T12:38:04.470630 | 2018-12-19T17:40:30 | 2018-12-19T17:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,756 | rd | xGScore.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xGScore.r
\name{xGScore}
\alias{xGScore}
\title{Function to extract scores given a list of genomic regions}
\usage{
xGScore(data, format = c("chr:start-end", "data.frame", "bed",
"GRanges"), build.conversion = c(NA, "hg38.to.hg19", "hg18.to.h... |
dad6b016501fd96e6edfd0d06bb7b2d9a753ff7a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mlbstats/examples/obp.Rd.R | 6c79ad83dd55fbe005e3a68687be5aa58f75725d | [] | 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 | 137 | r | obp.Rd.R | library(mlbstats)
### Name: obp
### Title: Calculates on-base percentage
### Aliases: obp
### ** Examples
obp(150, 40, 2, 400, 5)
|
12e64d954a1836caabe4eb34be0002f2ae6b95b4 | 596d5cf92032d3afbd4ca595b0e27da40b1f2c78 | /R/choropleth_GnmNum.R | 802e22ee9b1e0bc9b05ba0dbceb78e2086489179 | [] | no_license | datasketch/hgchmaps-1 | 0c8c3b35597d580ac8cb84a26d2152314486019a | 5505615c88dd045247e8fdd167d83ab0992e0efb | refs/heads/master | 2023-06-13T02:25:31.072468 | 2021-06-15T12:35:43 | 2021-06-15T12:35:43 | 534,674,465 | 0 | 0 | null | 2022-09-09T14:22:41 | 2022-09-09T14:22:41 | null | UTF-8 | R | false | false | 3,862 | r | choropleth_GnmNum.R | #' choropleth chart Gnm Num
#'
#' @description
#' `hgch_choropleth_GnmNum()` Create a Highcharter choropleth map based on a particular data type.
#' In this case, you can load data with only two columns, where the firts it's a **geoname column**,
#' and the second is a **numeric class column**, or make sure that the fi... |
86a8fd472ca28312ddcb1046ecb37d139408f144 | a495b873b0c82b31b5a75ca3547c9febf3af5ddc | /array/DNAm/analysis/EWAS/mlm.r | 6a1274f467e7ffabf77214f58ba2c3803864dce6 | [
"Artistic-2.0"
] | permissive | ejh243/BrainFANS | 192beb02d8aecb7b6c0dc0e59c6d6cf679dd9c0e | 5d1d6113b90ec85f2743b32a3cc9a428bd797440 | refs/heads/master | 2023-06-21T17:42:13.002737 | 2023-06-20T12:35:38 | 2023-06-20T12:35:38 | 186,389,634 | 3 | 2 | Artistic-2.0 | 2022-02-08T21:45:47 | 2019-05-13T09:35:32 | R | UTF-8 | R | false | false | 3,782 | r | mlm.r | ##---------------------------------------------------------------------#
##
## Title: EWAS with mixed effects regression model
##
## Purpose of script: perform DNA methylation association analysis of
## schizophrenia vs controls testing for main and cell-specific effects.
## simulataneously testing for cell type... |
d73c9fc277238417946e8444add9fb95a858ce50 | 1ee3625bc622a90c92617d2bb2711abff8e8c74f | /man/APA_stat.Rd | 574ad7467e9f35a0e5959219b7f8eb41f13c6422 | [] | no_license | darrellpenta/APAstyler | d54a49cd328261b448db5afa0dabee4c0d4612c2 | c895a13f0473d76efc15bd42d202c245fe36a021 | refs/heads/master | 2021-01-22T19:08:28.415784 | 2017-10-07T13:55:11 | 2017-10-07T13:55:11 | 85,164,023 | 2 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,117 | rd | APA_stat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/APA_stat-function.R
\name{APA_stat}
\alias{APA_stat}
\title{Format a statistic}
\usage{
APA_stat(stat, pre_stat = NULL, post_stat = NULL, snip = FALSE,
digit = 2, ...)
}
\arguments{
\item{stat}{A number, supplied as a numeric or character v... |
b6fb84ba99381b5173bc639f401d7945e146b9f6 | 22a7b51fcfcbef8291962d0d70237dada281e71b | /App2/ui.R | e8af21fd590c1807789d2413410637771e212b06 | [] | no_license | meetnfx/WASP | a17c1ea689cc8cb948558347614a402f6f3dae98 | 952fcfcac97e18cf5cd449484d6d74211b0dedb9 | refs/heads/master | 2022-11-29T21:18:06.264545 | 2016-12-19T06:07:29 | 2016-12-19T06:07:29 | 283,109,422 | 0 | 1 | null | 2020-07-28T05:28:30 | 2020-07-28T05:28:29 | null | UTF-8 | R | false | false | 801 | r | ui.R | library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel(""),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
numericInput("target",
label = "Target",min = 0,max = 450,value = 3... |
b3a0d64bea1a146b084cea6503c8b6293428b91b | 223a47aefa299993a1ca5b92c0f031639c869310 | /src/6_unpaid_carer_analysis.R | 76715465bedc2878cdc0cd124f2417dada949d69 | [
"MIT"
] | permissive | jfontestad/Unpaid_Carers | 98b1f9e94d2463953b171ceb22a32e750359f143 | 5a10d4ecc7b75bb8d628dd062dded13a94151380 | refs/heads/main | 2023-05-15T00:57:49.349940 | 2021-06-03T10:47:38 | 2021-06-03T10:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,232 | r | 6_unpaid_carer_analysis.R | #
# Project: Unpaid Carers during the pandemic
# Purpose: Preliminary Analysis
# Author: Anne Alarilla
# Date: 17/05/2021
#
# Set up ------------------------------------------------------------------
##Load library
library(tidyverse)
library(THFstyle)
library(ggplot2)
library(ggfittext)
library(scales)
library(jan... |
a76bbd0812b2592b40ae631de83382b93bcc248f | 8e4c50756478359905823835ba31ce09be93a4f6 | /man/repeatWiseAnalysis.Rd | 77d10253cd182b592fb1ccb2726a210259f3d5a8 | [] | no_license | RamsinghLab/arkas | 0ff25cfdd40363dc914a16c9d3a6369be6371058 | cdceb435c4ac438f631d67250e44d391aece6a56 | refs/heads/master | 2021-05-24T06:28:51.123257 | 2017-05-24T20:05:41 | 2017-05-24T20:05:41 | 55,867,218 | 3 | 3 | null | 2016-08-26T17:10:36 | 2016-04-09T21:13:15 | R | UTF-8 | R | false | true | 1,394 | rd | repeatWiseAnalysis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/repeatWiseAnalysis.R
\name{repeatWiseAnalysis}
\alias{repeatWiseAnalysis}
\title{Downstream analysis of bundle-aggregated repeat elements}
\usage{
repeatWiseAnalysis(kexp, design = NULL, how = c("cpm", "tpm"),
p.cutoff = 0.05, fold.cutoff =... |
137f4479342e2262e09ed5400337e4eced9e6c40 | 72d03ec10b4955bcc7daac5f820f63f3e5ed7e75 | /input/gcam-data-system/emissions-processing-code/level2/L211.ag_nonco2.R | 4cf7365427a064cc1d2b4bbbb82b8b48ec5504b6 | [
"ECL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bgmishra/gcam-core | 54daddc3d037571bf745c4cf0d54c0d7a77f493f | bbfb78aeb0cde4d75f307fc3967526d70157c2f8 | refs/heads/master | 2022-04-17T11:18:25.911460 | 2020-03-17T18:03:21 | 2020-03-17T18:03:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,675 | r | L211.ag_nonco2.R | # Before we can load headers we need some paths defined. They
# may be provided by a system environment variable or just
# having already been set in the workspace
if( !exists( "EMISSPROC_DIR" ) ){
if( Sys.getenv( "EMISSIONSPROC" ) != "" ){
EMISSPROC_DIR <- Sys.getenv( "EMISSIONSPROC" )
} else {
... |
7e3b35a5567512d2f2d69d97ac5783828deef775 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/iopsych/examples/internal.indexMat.Rd.R | 536a0f1e88838fb33e64550e3e66672109a19f9c | [] | 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 | 184 | r | internal.indexMat.Rd.R | library(iopsych)
### Name: .indexMat
### Title: Finds rxx and rxy for a correlation matrix
### Aliases: .indexMat
### Keywords: internal
### ** Examples
print("example needed")
|
eec4c051627fa88627885a97b6d6c5a8233bd50e | eac5313f1066c61b16667e3b4c1048fde0dde122 | /local_run.R | 272a080d0a18c59b51e34e0f8d168966f7add90d | [] | no_license | liuyanguu/proper_names | b85bd52937b27cfe162e563362eb342cf232783a | 15e2a32c706878bfe98252b0f6446248fe46f1db | refs/heads/main | 2023-08-14T08:44:12.626466 | 2021-09-30T17:10:43 | 2021-09-30T17:10:43 | 412,153,442 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 712 | r | local_run.R | library("shiny")
library("readxl")
library("cld2")
library("data.table")
library("DT")
library("here")
Sys.setlocale("LC_ALL","Chinese")
options(shiny.maxRequestSize = -1)
# source("R/func.R")
# dt1 <- setDT(readxl::read_xlsx(here::here("data/people.xlsx"), col_types = "text"))
# head(dt1)
# dt1[, Category:= "人名"... |
2c4a67da391d5a730f7d9dc1750f69032bfd0465 | fe53aa17ab441378c19f8fbbcc3a7466fa086d03 | /server.R | fb71e97e07561c9143479bd7cffcb98c3237f044 | [] | no_license | alexwhan/shinymagick | ddc908f6fe1721127a64e3bd627a6ccae9df7985 | e3bf0e9d0be97095490f56aebaccdad77b42aad0 | refs/heads/master | 2021-01-19T04:15:03.726399 | 2016-07-28T06:57:50 | 2016-07-28T06:57:50 | 64,371,192 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 511 | r | server.R | library(shiny)
shinyServer(function(input, output) {
get_image <- reactive({
if(is.null(input$img_input)) return(NULL)
else {
outfile <- tempfile(fileext = ".jpg")
image_write(image_read(input$img_input[[4]]), outfile)
return(outfile)
}
})
output$img_output <- renderImage({
... |
9d736da0decaf8dd8df25c0440e6d4677a0703ae | 03db6b2e77d001c85f871a20ad83ce98a01243fe | /R/sampleAA.R | 19d9bdab82955a2281577065640a083ad01850d0 | [] | no_license | kmcalist682336/SimScalingRC | 2ba27349ee30149f253d5ef8643f99a33af0522f | 199bb645514abef9656fbe3db5b80e2f21dfa0bf | refs/heads/master | 2020-03-21T09:50:58.225280 | 2018-06-24T04:18:39 | 2018-06-24T04:18:39 | 138,420,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,446 | r | sampleAA.R | #A function for approximating the log likelihood for a new proposal of A
approx.ll <- function(new.aa,zz,pi.star){
new.dists <- make.norm.dist.mat(new.aa)
new.pis <- new.dists%*%pi.star
new.probs <- (zz*new.pis) + ((1 - zz)*(1 - new.pis))
return(sum(log(new.probs)))
}
#A function for sampling AA, the matrix of ... |
057a84965ebcde5c2a87b32e92e54e0a0fbb1ba0 | d55d27b0dca8c78ad752849b96eb7b849c933d85 | /man/aov.ispd.imcs.Rd | 3811fc8333a8f7b21370ffc2a5329bc84e110ea1 | [] | no_license | cran/ispd | f50e477b7388ec59818d98a09a4f823529741516 | a155e56059cf19558b6de2725007a7b2ab701110 | refs/heads/master | 2020-06-22T00:23:25.961235 | 2019-08-19T09:20:03 | 2019-08-19T09:20:03 | 197,588,213 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 783 | rd | aov.ispd.imcs.Rd | \name{aov.ispd.imcs}
\alias{aov.ispd.imcs}
\title{Analysis of variance of data from an incomplete split-plot design with incomplete blocks and complete main plots}
\description{This function performs analysis of variance of data from experiments using
an incomplete split-plot design for the situation when blocks a... |
873f4c52486e0c10842e32b542677e33fc76e95a | 440df580a0d0be2595b1f80b7f19f154f5aa5eee | /Plot.R | 0a30da0b7c29039e22f7cca3fdb47c1145b6cecb | [] | no_license | xywanggg/Data-Science-Foundations-using-R | 0ecc781b6cb167aaa6d7179e098edecfe5f8fa6e | da4a4091832e40e04c43d87d8447a2bd48ee8a96 | refs/heads/master | 2022-11-26T06:11:09.066350 | 2020-07-27T22:47:43 | 2020-07-27T22:47:43 | 280,541,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,089 | r | Plot.R | ## principles of analytic graphics
#1 show comparisons
#2 show causality, mechanism, explanation
#3 show multivariate data
#4 integrate multiple modes of evidence
#5 describe and document the evidence
#6 content is king
pollution<-read.csv("./data/pm_tx.csv")
head(pollution)
summary(pollution$PM2.5)
#boxp... |
f6d0218490bffe8ed5a1a141429912d1ba296711 | c600e67f82df25deb8f81d6e1b4ffdf6dd372927 | /R/convert2snafu.R | b7cfd80b37933388f5625da2140d5bfeff29d515 | [] | no_license | cran/SemNetCleaner | 3e8675a984baa20e8d9f3b45f5e4095a10ac7f79 | c9c8671684233f65e499db8082f5c387e76296f3 | refs/heads/master | 2021-11-20T18:16:48.827959 | 2021-09-16T13:00:02 | 2021-09-16T13:00:02 | 133,685,844 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,005 | r | convert2snafu.R | #' Pathfinder Network
#'
#' @description Estimates a pathfinder network using the MST-Pathfinder
#' Network method from Quirin et al. (2008; see also Schvaneveldt, 1990)
#'
#' @param ... Matrix or data frame.
#' A clean response matrices
#'
#' @param category Character.
#' Category of verbal fluency data
... |
db6e6f3114c9c3890745b4ea4ac588fe020becb6 | fec3bf0fe08305ca687f871d444c78b327879420 | /get_data.R | 9edab84c76ee2ea9a0d9cecddafe7e5221bcf22c | [] | no_license | GeorgyMakarov/rus_traffic_accidents | 7eaddb2414ceefcfe057d93986833ba49c190bfa | 7fa3a3c1ea9b03305365d155e04b00809788f363 | refs/heads/master | 2022-11-06T18:40:04.454698 | 2020-06-29T09:18:34 | 2020-06-29T09:18:34 | 260,383,742 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,324 | r | get_data.R | # Prerequisite libraries
library(reshape2)
library(ggplot2)
library(dplyr)
library(tidyr)
library(lubridate)
library(XML)
library(readr)
library(stringi)
library(stringr)
# loop for reading .xml files
files <- list.files("./raw_data")
files <- as.list(files)
setwd("./raw_data")
list_file <- list.files(pattern = "*.xm... |
5204a2fdc66cc2debcb9eaf8aed7e60f6000f914 | aa550db31fcc15f424a8468797c459048d50b8fd | /tests/testthat/test-assert.R | ebd3080a9abd3aceb37cad08671bdbf5131276f9 | [] | no_license | jeffreypullin/vctrs | 5e23153a5195103b5287518389d067cb96092a11 | 035311f5ed1eb8cf9f0d7545372d72f90a31a7e0 | refs/heads/master | 2020-05-04T16:28:18.079491 | 2019-04-02T12:04:29 | 2019-04-03T07:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,741 | r | test-assert.R | context("test-assert")
test_that("basic assert is idempotent", {
x <- new_vctr(1:4)
expect_true(vec_is(x))
expect_identical(vec_assert(x), x)
expect_identical(vec_assert(x), new_vctr(1:4))
expect_false(withVisible(vec_assert(x))$visible)
expect_true(vec_is(1:4))
expect_identical(vec_assert(1:4), 1:4)
... |
01c6c8645367c457860d1268622db7f90514a729 | c7d703db40b9639e2c440c2484975966aa081d1c | /man/opnmfR_test_ranksel.Rd | 879f016acc2cc6ff53c8ab4a16b49f6861461620 | [] | no_license | kaurao/opnmfR | ef11922b141be3995c968de86197e7db7fbae5f5 | 5972f8db63df91776ba2116f827479e99292223c | refs/heads/master | 2023-03-01T11:20:26.160096 | 2021-02-19T08:27:13 | 2021-02-19T08:27:13 | 324,676,654 | 1 | 0 | null | 2021-02-18T11:19:34 | 2020-12-27T03:07:17 | R | UTF-8 | R | false | true | 1,183 | rd | opnmfR_test_ranksel.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/opnmfR.R
\name{opnmfR_test_ranksel}
\alias{opnmfR_test_ranksel}
\title{Rank selection test on user provided data
Runs all three avilable rank selection methods.}
\usage{
opnmfR_test_ranksel(X = NULL, rs = NULL, W0 = "nndsvd", nrepeat = 1)
}
\... |
bea80c596e4632a183cc422c85bd5ceeaea21db5 | db21b12d844b8323e1bdf8ef00c8e60e5f29c297 | /R/seawifs.R | ad03ade04362d648adaa3f0958b22c4a8ee6d839 | [] | no_license | AustralianAntarcticDivision/future-krill | dc3546c4a957883a9f3c2f89a9153fe64d52e2cc | 04993920f9dc9db14fcdc9001aa7381b6f197c2c | refs/heads/master | 2020-08-31T09:26:33.233546 | 2020-01-09T04:58:42 | 2020-01-09T04:59:47 | 218,659,576 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,242 | r | seawifs.R | library(SOmap)
#x <- SOmap_data$CCAMLR_SSMU
library(sf)
x <- as(readRDS("/perm_storage/home/mdsumner/Git/future-krill/shapes/Area_48_Krill_Domain.rds"), "Spatial")
ex <- extent(x) + 1
## map seawifs and modis bins to ssmu polys
library(croc)
n_bins <- 2160
theprod <- "SeaWiFS"
sw_bins <- tibble::tibble(bin_num = crop_i... |
4efa83538e5001494ec3b7440968a420cec6d73f | 1f0764b617f16a9a85347b4fb343504944c59249 | /man/eigenSentences.Rd | e0bde8d23d110e2bd895a874624ec370191ef568 | [] | no_license | stnava/RKRNS | 8eb5cd0cdff9f015289673a315f48f7d24dfc6b9 | 252269d7eab3d7db120f347f3cd113b104a000ae | refs/heads/master | 2021-01-22T22:45:08.564502 | 2017-08-24T13:22:40 | 2017-08-24T13:22:40 | 21,015,814 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 940 | rd | eigenSentences.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eigenSentences.R
\name{eigenSentences}
\alias{eigenSentences}
\title{Simple eigenSentence estimation function.}
\usage{
eigenSentences(wordembed, functiontoapply = sum, normalize = F,
eigsentbasislength = NA, sentencesIn = NA, eventdata = N... |
1cdcf5522ac44cfe15a2e02c315a2ccd0356c276 | 100c3acce75579481f94d162ed803c094292e88c | /R/Repaso.R | 544fe0c04b3ca2d1c3527051b33ac04dbd33d2f5 | [] | no_license | jcms2665/WorkshopR_2 | a955a753ca0dad245d9f8fbe605655cb01c04712 | 47369a43119e4b421e83be59d7b81dcf9bc69a5a | refs/heads/master | 2021-05-05T07:41:58.404780 | 2018-01-26T16:44:51 | 2018-01-26T16:44:51 | 118,878,345 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 6,858 | r | Repaso.R |
# Repaso de R
## Contenido
#1. Preliminares
#2. Objetos en R
#3. Paquetes y librerías
#4. Importar datos
#5. Gráficos
#1. Preliminares
# Comentarios
# Todo aquello que se escriba a la derecha del signo numeral (#) se
# coloreará de verde pálido y será tomado por R como un comentario.
## ... |
5606d817d0869fa7c4e2991c3a6affb0a1dd4c09 | 066d43e9d84e29c05b9d3ab423665efda8008eb7 | /R/map-utils.R | ebc56f555d890786f5824ea29783a78a52d4aa54 | [] | no_license | espinielli/italian-comuni-bot | 18bd16d10f9ffcc5ada673df9ce7bb34ab65c8b6 | 96871013862bc8637f8d3443f2a9188a5771e78b | refs/heads/master | 2021-06-15T01:23:42.403848 | 2021-02-14T13:27:31 | 2021-02-14T13:27:31 | 139,019,912 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,952 | r | map-utils.R | # Fixed to ggmap:calc_zoom
# see https://github.com/dkahle/ggmap/pull/141
calc_zoom_fix <- function (lon, lat, data, adjust = 0, f = 0.05)
{
if (!missing(adjust))
stopifnot(is.integer(adjust))
if (missing(data)) {
if (missing(lat)) {
bbox <- lon
errorString <- "if specifying a bounding box, the ... |
e103d6b7c45ea009e87b0d2de82018b448c7cb9b | 0eac6f72fc988546ee57127b5741e3d12e2379a5 | /man/craigsendi.Rd | 836be112d1884ff7301c0aac494f15e1b1660321 | [
"MIT"
] | permissive | spedygiorgio/markovchain | 4e70064a749f55d52bcdfffb7559e7027b161cc1 | 4eb1ec1b67f9231c129db5da3cc2ba51bd5f4121 | refs/heads/master | 2023-06-09T15:48:30.895373 | 2023-05-16T21:25:26 | 2023-05-16T21:25:26 | 31,481,152 | 111 | 58 | NOASSERTION | 2023-05-18T22:00:52 | 2015-02-28T23:54:38 | R | UTF-8 | R | false | true | 904 | rd | craigsendi.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{craigsendi}
\alias{craigsendi}
\title{CD4 cells counts on HIV Infects between zero and six month}
\format{
The format is:
table [1:3, 1:3] 682 154 19 33 64 19 25 47 43
- attr(*, "dimnames")=List of 2
..$ : chr [1... |
ecbc96aa12bf1e7ce3d8ff0b0ee5dd9c74e65e68 | 0e3611663f54a79f65cf918d2e543dea6d42bb27 | /src/core/assessments/bivariate/inactive/84_sc_iqr.R | bf082b74b5490f43d23915238572703fc03ff17c | [] | no_license | imclab/cai | 37e96c08d91340ebab5289fe80f6a3d091d08ea7 | f8213ca990e664afd9ee68479ce2b5e89faa03b2 | refs/heads/master | 2020-12-26T00:07:36.286908 | 2014-07-13T00:22:01 | 2014-07-13T00:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 141 | r | 84_sc_iqr.R | # Copyright 2013, 2014 by Christopher L. Simons
assessment <- createSCAssessment("IQR", "IQR")
assessments[[assessment$name]] <- assessment
|
e399e29b83e63f3973ae3f1b756c9e3d3ff581b6 | 5db62e916fb7dc421067525da59a65af61e66e29 | /test_code.R | e19e317bc53be2e0adab82b7226b55caa6b9ab99 | [] | no_license | alexandrashtein/test_250118 | ab38f5fbcb0b379b20d1b22e2b77c0ff13d4ab97 | 085c00b88668342acce6a1251c53f9d6a603611c | refs/heads/master | 2021-09-05T07:56:20.525046 | 2018-01-25T12:08:51 | 2018-01-25T12:08:51 | 118,907,558 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17 | r | test_code.R | # Some code
# New |
07fc4d06332cd591b5714e50eebc93805ccf8c86 | 0732213947df3a08c33d7414ea1e1dd461c142e7 | /ch_RealSample/基金推薦/基金推薦_Hybrid.r | 5ae0234fd4f2699e596615a13d566adf7fbcce67 | [] | no_license | arpitag1/R-for-data-science | ea3c580dd8288a1bb368c5aba14911785bec387b | f09fb8ebb9f44a0bec242126de8b3cdfe9ef5bc1 | refs/heads/master | 2022-02-08T23:37:06.525461 | 2017-09-29T06:51:16 | 2017-09-29T06:51:16 | null | 0 | 0 | null | null | null | null | BIG5 | R | false | false | 11,319 | r | 基金推薦_Hybrid.r |
# 基金推薦--協同過濾法-- -----------------------------------------------------------
## 套件引用
library(RODBC)
library(tidyverse)
library(recommenderlab)
library(reshape2)
library(data.table)
## 連結資料庫
conn <- odbcDriverConnect("Driver=SQL Server;Server=dbm_public;Database=project2017;Uid=sa;Pwd=01060728;")
load('./模型評估/fundsDis... |
b1935852f1e342cb864ae6904577c6ec3f971e13 | 50c21e2a446a39b2062fda951e0fd5519524709d | /ase_ys/src/st.16.ase.1.R | 25aa85079a87a99a235d0eb16751f74a965d87c0 | [
"BSD-2-Clause"
] | permissive | orionzhou/misc | 2e2990dca514464f8d82e10d89e044e237c729da | eef4799cb6d16fde8d37d0f896d209cc8d514366 | refs/heads/main | 2022-12-25T18:13:01.620988 | 2021-05-23T15:23:22 | 2021-05-23T15:23:22 | 239,606,926 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,764 | r | st.16.ase.1.R | source('functions.R')
dirw = glue('{dird}/16_ase')
#{{{ functions
require(stats4)
require(multidplyr)
require(bbmle)
calc_bic <- function(i, p1, p2, h1, h2, disp, method='L-BFGS-B') {
#{{{
cat(i, "\n", sep = '')
#{{{ LLs
LL1 <- function(mu1, mu3) {
#{{{
l1 = dnbinom(p1, size=size, mu=mu1, log=T)
... |
3fbe5efffedae912cd05b2d31f30aa6d203e6a00 | 475cf3ba4a5e4fe5fca1a4bda10424c33dbac34a | /plot1.R | 2693aa6ee88bdec042eab4b45c2e3c46d8dd746e | [] | no_license | moolins12/ExData_Plotting1 | f773d5adea0467ea819fcdb301bb4e9e108cf681 | 9dc932b8afbbbd1fee889eb1a4921c6666ec0da3 | refs/heads/master | 2022-05-01T11:23:19.574225 | 2022-04-25T12:46:50 | 2022-04-25T12:46:50 | 135,728,188 | 0 | 0 | null | 2018-06-01T16:33:56 | 2018-06-01T14:31:43 | null | UTF-8 | R | false | false | 1,394 | r | plot1.R | ##### Exploratory Data Analysis - Course Project 1
### Plot 1
### Download and read in datafiles
filename <- "Course_Project_Data.zip"
if(!file.exists("Data")) {
create.dir("Data")
}
setwd("Data")
if (!file.exists(filename)) {
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_... |
bc893aec4b96aca9d47db4c2d5936bfe239d2c44 | 9fd92a3597adbc6a711d9ef5e63881477073e629 | /man/A.frac.Rd | 7cfd5c106b6f81ebdff3b15c99df29c18c741e09 | [] | no_license | ryamada22/SelfDecABP | 1adc6675002de12880b2d12e64eca0cafb91f32f | 6d1b945832a160091e703cde623547036dd6e251 | refs/heads/master | 2020-05-29T12:25:19.480839 | 2016-09-21T01:38:58 | 2016-09-21T01:38:58 | 68,680,737 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,037 | rd | A.frac.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manual R codes.r
\name{A.frac}
\alias{A.frac}
\title{Calculate the Fraction of A-arm Selection of Two-armed Bernoulli-outcomes.}
\usage{
A.frac(x)
}
\arguments{
\item{x}{a vector of 4 elements including A$Success, A$Failure, B$Success, and B$... |
d7e11d9addeae01d45b24d12b31b2c86fdc729d6 | 5ca959c15764a014400c9ed90cf393a9172e62f4 | /3 - Scripts/Paper 1/results.R | 5ef5f2ac7d8e5dc73a6e3751e76d31294148e0eb | [] | no_license | mccorvie/BackToSchool2 | 08e8a6ae5a8004d7d400bc6b9e0caa15f7bd201b | 6bc57c6a956022700c1d4d1656822f14bbc23fc0 | refs/heads/master | 2023-07-13T06:53:54.763632 | 2021-08-16T02:42:11 | 2021-08-16T02:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 26,392 | r | results.R | #*************************** Code to replicate results and figures ************************#
# #
# #
# ... |
35e608195e83f2ab09fd26deeff4337152a5762e | c9e51dd4ef1053ba79e2f4cf15ffbeff785db518 | /man/run_glm_combo_formal.Rd | ea9236832f445587bf701a8fad91c068f13ce53f | [] | no_license | jacob-ogre/section7.quality | 3479908aa6bb2b600760729931905713419706ed | 8c16ce0297b54eac0d957bf8f7c49ec88579eaa1 | refs/heads/master | 2021-01-20T00:41:42.170864 | 2017-10-20T19:29:14 | 2017-10-20T19:29:14 | 83,167,618 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 730 | rd | run_glm_combo_formal.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{run_glm_combo_formal}
\alias{run_glm_combo_formal}
\title{Run binomial GLM for overall quality of formal consultations}
\usage{
run_glm_combo_formal(x)
}
\arguments{
\item{x}{The 'formal' data.frame of formal consultations}
}
\v... |
a1984253e00e4c200e2a8803aaefc6edd932f465 | 897ae677171a43d05f2f9ebe7bf09230b2064646 | /R/input.check.R | 7bacc364cbbdb72c403bc61b96401d5920b87846 | [] | no_license | cran/ACTCD | 663aabf6200fc95e45e1098255ec7dded4143251 | 594f873d8591f137cede01739e791f989b910359 | refs/heads/master | 2021-01-10T21:23:27.917813 | 2018-04-23T04:25:33 | 2018-04-23T04:25:33 | 17,677,568 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,370 | r | input.check.R | input.check <-
function(Y, Q, cluster.method="HACA", HACA.link="complete",
label.method="2a",perm=NULL)
{
##################################################
# Check Y and Q #
##################################################
if (!is.matrix(Y)){
... |
69b9695b3997ce5e07f7baacceca2ea32cf59df5 | 3f2c6d6bd10005be79120c2bf100602bda31dc0f | /man/infctMRoi.chkclosemz.Rd | 75d15140d02278e4f22227ad40bf5569745cfd86 | [] | no_license | tonedivad/metaboGoS | e0913d188f832d455837b8199ddc8284c94eab56 | f2038f34ddf1635d0e23ecccd8679a85615e36d2 | refs/heads/master | 2021-01-23T01:59:45.823999 | 2017-06-25T16:17:10 | 2017-06-25T16:17:10 | 85,953,526 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 664 | rd | infctMRoi.chkclosemz.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mergeROI.r
\name{infctMRoi.chkclosemz}
\alias{infctMRoi.chkclosemz}
\title{Merge slices from the same sample within a single ROI}
\usage{
infctMRoi.chkclosemz(tmproi, indicatorVec, thrMZ = 0.001, dmz = 5e-04,
dppm = 2.5)
}
\arguments{
\item... |
c48c805595c18399e2602901992b50f847f5702e | 37520057f8324bbddcebaa3276fdc5c7390bca14 | /eda/no_beds_no_baths.R | 90767a3437df049d874c059748cd6ed641d64736 | [] | no_license | JordanJamesSands/melbourne_housing | 8aa9eac49f5f6ae25a2de4df5793d07a06d150b3 | e00ed6b81c48b67f5b88bdba102902f5ead1e749 | refs/heads/master | 2020-04-29T10:29:44.704673 | 2019-04-30T06:54:41 | 2019-04-30T06:54:41 | 176,063,789 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 357 | r | no_beds_no_baths.R | #explore properties without any bathrooms or bedrooms
no_beds = subset(d,nbedroom==0)
View(no_beds)
no_baths = subset(d,nbathroom==0)
View(no_baths)
mean(d$nbedroom==0 | d$nbathroom==0,na.rm=TRUE)
#only 0.2 % fit this strange occurence
#are they garages?
no_beds_baths = subset(d,nbathroom==0 & nbedroom==0)
mean(no_beds... |
0ca32e4b2e16c3fefb1c6338839d2cefb793e3fa | 021cf7b0683c948a3936848b27b339dc429e8128 | /main.R | 47baae5d93e0d320150df20b736eb553cffb6caa | [] | no_license | jdh009/Lesson4exercise4 | ae6ac946e83540b1ec732a3df7aa7fbfc4733ab2 | c923699fe8fead529e30f07edc1d85281aba0402 | refs/heads/master | 2016-08-07T06:33:19.516391 | 2015-01-09T03:42:30 | 2015-01-09T03:42:30 | 28,999,035 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,949 | r | main.R | ### Jeroen Roelofs
### January 08 2015
# Load packages.
library(rgdal)
library(raster)
library(downloader)
# Source Scripts
source("R/Cloud2NA.R")
source("R/CalculateNDVI.R")
# Download data from source. Does not work for windows, got the files by direct download. Can skip this part if needed
# download('https://www... |
2c11439a3a6715538baf95825904a23f881585fd | c750c1991c8d0ed18b174dc72f3014fd35e5bd8c | /pkgs/lawstat/R/lorenz.curve.R | 4727fd99538723d0bf760ed0f25049b147214f25 | [] | no_license | vaguiar/EDAV_Project_2017 | 4b190e66fe7a6b4078cfe1b875bccd9b5a594b25 | 288ffaeec1cfdd873fe7439c0fa0c46a90a16a4f | refs/heads/base | 2021-01-23T02:39:36.272851 | 2017-05-01T23:21:03 | 2017-05-01T23:21:03 | 86,010,131 | 1 | 0 | null | 2017-05-01T23:43:04 | 2017-03-24T00:21:20 | HTML | UTF-8 | R | false | false | 3,209 | r | lorenz.curve.R | `lorenz.curve` <-
function(data, weight=NULL, mul=FALSE, plot.it=TRUE,
main=NULL, xlab=NULL, ylab=NULL, xlim=c(0,1), ylim=c(0,1), ... )
{
### Function for the lorenz curve. Lorenz Single is the default and
### Lorenz Multiple is an option. The input data should be
### a data frame with 2 columns. The first... |
4219054b1057a8d244968ee90c5260b24772eaf1 | 85e89b63736bd186d0dac6b515fe4de60e9c3821 | /R/CodesFun.R | 1d69cd11f4e9885c092616a5621428b6e17c4a34 | [] | no_license | dtbinh/RQDA | cbad809817296860b2b0093a90ad80e8e1f3fb22 | d840c6feccc7f98128ff668555b48d3c6fe074d7 | refs/heads/master | 2020-06-14T01:43:06.239102 | 2016-11-24T10:52:27 | 2016-11-24T10:52:27 | 75,526,174 | 1 | 0 | null | 2016-12-04T08:33:19 | 2016-12-04T08:33:19 | null | UTF-8 | R | false | false | 47,933 | r | CodesFun.R | addcode <- function(name,conName="qdacon",assignenv=.rqda,...) {
if (name != ""){
con <- get(conName,assignenv)
maxid <- dbGetQuery(con,"select max(id) from freecode")[[1]]
nextid <- ifelse(is.na(maxid),0+1, maxid+1)
write <- FALSE
if (nextid==1){
write <- TRUE
} else {
dup <- dbGe... |
8f4420c7127c33d154eafb97fdfea7c273b7a471 | 0551b7a697f099dda594df1cfcad16d2969f1c8f | /DataCleaningScripts/old_counts.R | bbb5c5ef90b93fbdc7709d6705561c0225bfb0b7 | [
"CC0-1.0"
] | permissive | weecology/EvergladesWadingBird | 82c8b7e2d5179433813c430498bcddeb440b352b | 46ab55289a0c4b5ed326ddb8b802c810009a3504 | refs/heads/main | 2023-08-31T05:20:50.368672 | 2023-08-29T18:07:56 | 2023-08-29T18:07:56 | 238,316,459 | 3 | 2 | CC0-1.0 | 2023-09-11T21:19:55 | 2020-02-04T22:04:09 | R | UTF-8 | R | false | false | 3,873 | r | old_counts.R | ## Used to clean count data 1994 - 2020 into standard long format
## Done one year at a time, format is different every year
## G. Yenni
source("~/EvergladesWadingBird/DataCleaningScripts/clean_counts.R")
# All original data files containing count data were pulled into a separate directory
# Original files:
# [1] "20... |
4f79cdd3e3ec062f1c7016434248bf17717ff74c | 34289a04a4dd4088079d4598faee0d3d4e41fea0 | /Script/eplot.r | 908e58b1a46ff43f367bd3fb18a0295af6255fad | [
"MIT"
] | permissive | david-beauchesne/Predict_interactions | 6034004897860ced2ed47d4ba503330a5374a7b0 | bcddde0b04325a7c8a64467d4adcf8f13d7208c5 | refs/heads/master | 2020-05-21T20:44:17.918693 | 2018-06-27T18:40:12 | 2018-06-27T18:40:12 | 65,501,383 | 7 | 1 | null | 2016-08-12T14:35:17 | 2016-08-11T21:03:01 | R | UTF-8 | R | false | false | 232 | r | eplot.r | # Creating an empty plot
eplot <- function(x = 1, y = 1, xmin = 0, xmax = 1, ymin = 0, ymax = 1) {
plot(x = x, y = y, bty = "n",ann = FALSE,xaxt = "n",yaxt = "n",type = "n",bg = "grey", ylim = c(ymin,ymax), xlim = c(xmin,xmax))
}
|
d0d6d950fe380c2d758e8009ecd2273a0f59045b | ebbe08d58a57ae2e9d308a12df500e1e0ef8d098 | /scRef/codes/scripts/figure1.R | 86d491e6ea375c651afb6b97fc85ae1aadab6234 | [
"MIT"
] | permissive | Drizzle-Zhang/bioinformatics | a20b8b01e3c6807a9b6b605394b400daf1a848a3 | 9a24fc1107d42ac4e2bc37b1c866324b766c4a86 | refs/heads/master | 2022-02-19T15:57:43.723344 | 2022-02-14T02:32:47 | 2022-02-14T02:32:47 | 171,384,799 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,653 | r | figure1.R | library(Seurat)
library(ggplot2)
library(SeuratData)
data("pbmc3k")
pbmc3k.tag <- pbmc3k$seurat_annotations
table(pbmc3k.tag)
new.tag <- rep('0', length(pbmc3k.tag))
# new.tag[pbmc3k.tag %in% c('Naive CD4 T', 'Memory CD4 T', 'CD8 T')] <- 'Cell 1'
# new.tag[pbmc3k.tag %in% c('CD14+ Mono', 'FCGR3A+ Mono')] <- 'Cell 2'
#... |
f27b19bc00b626f96d6f9a6877b2a024a0fcb1ff | da928003b54ed1c4e016eef8ff663069554bf925 | /R/api/ffa_league.R | 4169051a178bb50967ad54a03134f59caea0137b | [] | no_license | GiulSposito/DudesFantasyFootball | c3c412a697f073c48aec61ad637d0e9a79ea3007 | eccdd274cac718de2c7c099a6637b8bf8cdb2804 | refs/heads/master | 2021-09-21T14:03:25.540083 | 2021-09-08T16:14:52 | 2021-09-08T16:14:52 | 153,347,513 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,653 | r | ffa_league.R | source("./R/api/ffa_api.R")
ffa_league_settings <- function(.authToken, .leagueId){
ffa_api(
.path = "/v2/league/settings",
.query = list(
"appKey" = "internalemailuse",
"leagueId" = .leagueId
),
.auth=.authToken)
}
# return the user id, leagues and teams of a 'authToken'
ffa_league... |
1e5b134edb204eb5f62356ef178d6d52638ddd7f | c0edfdfa9df200f6a5bc124d37d83bc26850b011 | /inst/Shiny/MSMplus/joint_lab_separate/4.predict/server_visit.R | 9c190bb3818a26fb2af07a9a7a74cdbbbef222e4 | [
"MIT"
] | permissive | nskourlis/rpkg | 394ed58cc5859a3777406c5e05869ad7f9c8788b | 2944993edce3c3c3f49fe27b6b34f0ca7b36927a | refs/heads/master | 2023-06-11T01:19:26.177563 | 2021-06-24T16:18:19 | 2021-06-24T16:18:19 | 378,363,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 98,251 | r | server_visit.R | ###### Show and hide and tick inputs ####
timerv <- reactiveVal(1.5)
observeEvent(c(input$showtickvis,invalidateLater(1000, session)), {
if(input$showtickvis=="No"){
hide("tickinputvisit")
}
if(input$showtickvis=="Yes"){
show("tickinputvisit")
}
isolate({
tim... |
5cec6071d77ef99b0597c011e1852ce973db5070 | 4bbbc253e2640fa5cfd1f1e947ddcfb8a9aee849 | /Script/Main.R | 4b753b059594d3ae6fffda4a11cdf3fcdb9d5d27 | [] | no_license | Hjacer/Govhack2021_Ken_Behrens_Collective | 750de10a960dee971c30799701a1d0da032b3fae | 78b00bfc35e2d8fe0594487885fb14a001affd13 | refs/heads/main | 2023-07-14T14:39:33.335067 | 2021-08-22T06:53:00 | 2021-08-22T06:53:00 | 398,726,160 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,702 | r | Main.R | library('openxlsx')
library('data.table')
library('tidyverse')
library('ggplot2')
library(lubridate)
project_path = "https://github.com/Hjacer/Govhack2021_Ken_Behrens_Collective/"
script_path <- paste0(project_path,'Script/')
output = paste0(project_path,'Output/')
out_plot_ts <- paste0(output,'Time series Pl... |
f5b45ff5f72634a3ded81f5e25a90c0106eacf85 | 92ba3ed47ef15dfb096003cfb959a32852b686b9 | /AvI_metaanalysis_slopes__24_03_19.R | b19cf86b2e4455892804ed50174d7c24d745105c | [] | no_license | rajwhitlock/Invasive-abundance-native-impact | 2c4caef8e3a03a0848a2dc97d4c2cc42011e47c0 | df6874876de4024deb5a10e681fd73ddde89777d | refs/heads/master | 2020-04-30T12:31:52.135892 | 2019-03-26T07:59:55 | 2019-03-26T07:59:55 | 176,828,931 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 67,524 | r | AvI_metaanalysis_slopes__24_03_19.R | #Meta-analysis code and analysis framework written by Raj Whitlock (RW) 08/01/2017
#Code last updated by Bethany Bradley and RW 03/24/2019
#Overview: this code allows raw data pre-processing to calculate "slopes" effect sizes, meta-analysis of processed effect-size data and figure creation from model output
#You wil... |
35c1cac39f62c8b7a090608b381e2bf5b1a88260 | 510172d8e8aa68d23d38e63271aa07f0e3f97660 | /code/ensemble/process_ensemble.R | 3f6c902afa5f3e7d334a2857bd5a21bf9bc6415e | [
"MIT"
] | permissive | nickreich/covid19-scenario-modeling-hub | bef5bf197aaafe04f697a0dfb84e66cf91162a08 | f36a437c3591e62416e468af1d92e3b6b6752e95 | refs/heads/master | 2023-08-16T07:46:27.869612 | 2021-09-27T21:26:13 | 2021-09-27T21:26:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,458 | r | process_ensemble.R | # Library and System -----------------------------------------------------------
# Installation
# install.packages(c("purrr", "lubridate", "dplyr", "vroom", "stringr"))
# Library
library(purrr) # for list management;
# for "flatten", "reduce"
library(lubridate) # for date management;
# for "epiweek", "year"
l... |
59bd2fb353ef432329e2d6610172182e3e20f6de | fe612f81a3118bf3ebef644bae3281bd1c156442 | /man/h2o.listTimezones.Rd | c9aa99b73aa65e9556c27d7278295ead8ed99f81 | [] | no_license | cran/h2o | da1ba0dff5708b7490b4e97552614815f8d0d95e | c54f9b40693ae75577357075bb88f6f1f45c59be | refs/heads/master | 2023-08-18T18:28:26.236789 | 2023-08-09T05:00:02 | 2023-08-09T06:32:17 | 20,941,952 | 3 | 3 | null | null | null | null | UTF-8 | R | false | true | 307 | rd | h2o.listTimezones.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/frame.R
\name{h2o.listTimezones}
\alias{h2o.listTimezones}
\title{List all of the Time Zones Acceptable by the H2O cluster.}
\usage{
h2o.listTimezones()
}
\description{
List all of the Time Zones Acceptable by the H2O cluster.
}
|
0d7f9018ac68c175e9364f6dcec3f7932dbac781 | 42567bc0d579a357d8340c6b3b6f6205726367ba | /assignment3/assignment3.R | 79df8b0c088693837fc8f06b70ca0833a170be14 | [] | no_license | koallen/skku-data-science | ba89fc6084e46db84d65789acd14ee29dcfdbd44 | 65a5d1293502016780a755dc1c682b7317cb2244 | refs/heads/master | 2021-01-09T06:47:09.970391 | 2016-07-05T05:54:53 | 2016-07-05T05:54:53 | 38,341,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,065 | r | assignment3.R | # Data Science and Management
# Assignment 3
#
# Liu Siyuan
# 15/07/2015
#
# Regression
#
# the dataset 'phones' is used here
library(MASS)
data(phones)
# plot original data and do linear regression
plot(phones$year, phones$calls)
ye.model <- lm(calls~year, data=phones)
phones$pred <- predict(ye.model, phones)
# p... |
f4077b7160481b59c3dc188d04d93d9cbfc33dfb | 7a659c0d9d85442acc3aef13958e38fa1964df15 | /man/calc.DESeq2.L2FC.Rd | 3d57795bee1a764ff45c58ace5e52869939f6591 | [] | no_license | christensensm/COMPOSE | f6fd8a4ba2eb920fddbdf3672000aa1918ee61c8 | fcce69bc70fd64c7ef5992e884e47788014f3b03 | refs/heads/master | 2021-06-21T22:03:31.328698 | 2020-12-21T18:18:21 | 2020-12-21T18:18:21 | 160,730,927 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,173 | rd | calc.DESeq2.L2FC.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc.DESeq2.L2FC.R
\name{calc.DESeq2.L2FC}
\alias{calc.DESeq2.L2FC}
\title{Fold-change calculation for CRISPR screen}
\usage{
calc.DESeq2.L2FC(
countsTable,
metadata,
meta.idnum = NULL,
include.batch = F,
p.cutoff = 0.05,
save = F... |
6f1f29bf4d59b7fa071e5e7dd12a8dab6d36e569 | 7b2eff9c39e1f62dbab32a00d3e7fe1369c8c6dd | /R/lefse_rawdata.R | fb7890d8c5fcbea547054e9ef73175c430fb2744 | [] | no_license | ZhonghuiGai/gglefse | de1b1650d745b95ee15c2f11011829e0175a9cc1 | 7e13b30d53b731f02c6b0a779954160f8831c608 | refs/heads/main | 2023-08-21T20:43:00.356744 | 2021-10-13T02:03:31 | 2021-10-13T02:03:31 | 393,857,495 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,998 | r | lefse_rawdata.R | #' Prepare data for downstream Lefse analysis using asv.table, taxa info and the grouping metadata
#'
#' @param asv.path the path of ASVs_table obtained using usearch
#' @param taxa.path the path of ASV_taxa info obtained suing usearch
#' @param group.path the grouping metadata
#' @param lefse the logical value for whi... |
14096e7a34eceb96fa0475f43541d987469fac3d | 8d5d4ec19ff50496c6ee023221d28b23a1c1594a | /test_dummy_proofing.R | 1e0fe4acf7864d3e1804fa02d94047426fbdd4e9 | [
"MIT"
] | permissive | RMHogervorst/templates | 61b2a3054d715ac6e63d0ce9b71b923013710c64 | bb8194878a1e7705ee7c8b36db7493769cb231cb | refs/heads/master | 2020-05-22T01:38:52.339664 | 2018-04-04T04:54:51 | 2018-04-04T04:54:51 | 59,126,035 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,842 | r | test_dummy_proofing.R | # This is a template for dummyproofing your functions
# based primararly on https://github.com/jtleek/rpackages
#######################
# i expect that you use testthat
#
# Goals ####
# That your error messages catch what they should
# That your outputs are what you expect them to be
# That you get reasonable answers f... |
51e65d533ba6f49750de93d0ffbe08ca9d3147c6 | 6e51b924f87575b662160b34f4a903d1fc7fa0e2 | /RcppExports.R | 7e197d055008032fa660cbde5f7e8639f459bbe4 | [
"Apache-2.0"
] | permissive | dominikj2/RoI_Align_3D | c19823f8e4984c639509283713246076582ac843 | f4e990924cdf395f29f0169b82b1fb5c518cf8b1 | refs/heads/main | 2023-07-18T13:42:34.078399 | 2021-08-23T01:22:53 | 2021-08-23T01:22:53 | 398,936,749 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 167 | r | RcppExports.R | cpp_contrib_RoI_Align_3D <- function(Voxel_Space, boxes, box_index) {
.Call('_torch_cpp_contrib_RoI_Align_3D', PACKAGE = 'torchpkg', Voxel_Space, boxes, box_index)
} |
595d97875a3efe9288e25be01239e8971b519c2b | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/2766_0/rinput.R | 384ced2c326b10d355e1e8af62a15960df2637ad | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("2766_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="2766_0_unrooted.txt") |
19c9e0072f1624f8d4116b578f05929b709e7962 | 43ecaba0b376d125f5b9c78a1a0f480003a744d1 | /R/is_dist_units.R | 4ff5c4cd994242d49775ac816fc71bc33766dfda | [
"MIT"
] | permissive | elipousson/overedge | fc26a11ebbf2bdda30d5a88a35c6bbbd67bc176e | 27dd49ed496601efdc25f1cb56c9d40e2f02155a | refs/heads/main | 2023-05-23T05:56:13.443240 | 2022-08-10T21:28:44 | 2022-08-10T21:28:44 | 449,945,031 | 13 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,736 | r | is_dist_units.R | #' General utility functions for working with distance units objects
#'
#' - [is_dist_units]: Is x a distance unit object?
#' - [is_diff_dist]: What is the difference between x and y distance?
#' - [is_same_dist]: Is x the same distance as y? or does the bbox of x and bbox of y have the same x, y, or diagonal distance?... |
2beae3b6fbc14f1c46a44edabdab6616a31f9f23 | a76e6b446f784d30e8e0eb761b816d92cf056934 | /R/rs_compare_groups.r | b0e3b99829bb796039a6aa35b5bc13c1ed073218 | [] | no_license | tilltnet/ratingScaleSummary | 55879033b905cc5370f10d82cb44e040eb94c680 | c792c882eec2cef0cd0e8983518cf5f48bde6085 | refs/heads/master | 2021-01-11T19:48:45.545975 | 2017-01-19T22:59:24 | 2017-01-19T22:59:24 | 79,402,288 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,245 | r | rs_compare_groups.r | #' Compare Medians of a questionnaire battery of equally coded ordinal/
#' categorial variables
#'
#' @description Returns a \emph{data.frame} where each row represents one variable
#' and the columns show the median values of the comparison groups. An additional
#' colum shows the significance levels, based on the \em... |
90fbffb11612bb66cad633cccaad66cabccc15bd | 33b6d6594a378b009170401675babc913cf3ec8a | /man/make_tidy_df.Rd | 1de9b376d8f9612ed63f04f1a91d84af11399c34 | [] | no_license | berthetclement/covid | 0bcf19101eac6be3100950c4fcb825bac7f6e37e | 8e4fad6924e191f55f84d80e2a52cb2556bb4c7a | refs/heads/master | 2023-01-23T10:48:30.002524 | 2020-11-23T13:34:14 | 2020-11-23T13:34:14 | 294,462,880 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 545 | rd | make_tidy_df.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_tools.R
\name{make_tidy_df}
\alias{make_tidy_df}
\title{Structuration des donnees.}
\usage{
make_tidy_df(data)
}
\arguments{
\item{data}{Objet de type data frame (time series cases/deaths/recovered).}
}
\value{
Data.frame au format tidy.... |
c132a3e05657811a64ac7da913d7ef1567c1d37e | fc0f27dfd49ab477995b68a4d9e0acbfcf193eb0 | /man/timeBlock.append.Rd | 8e9fdac1bbf339491749b1e517c31b6e1c358891 | [] | no_license | EpidemiologyDVM/contact | c96d8a22375d20d7c881965d7dbcd1270ebc147a | a048a21ca6474cde0d241871353e523d73d3341f | refs/heads/master | 2021-01-14T23:30:11.405964 | 2020-02-24T22:06:47 | 2020-02-24T22:06:47 | 242,796,232 | 0 | 0 | null | 2020-02-24T17:16:01 | 2020-02-24T17:16:01 | null | UTF-8 | R | false | true | 2,308 | rd | timeBlock.append.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timeBlock.append.R
\name{timeBlock.append}
\alias{timeBlock.append}
\title{Append TimeBlock Information to a Data Frame}
\usage{
timeBlock.append(x = NULL, dateTime = NULL, blockLength = 10,
blockUnit = "mins")
}
\arguments{
\item{x}{Data f... |
65503c3699ab31bd1cde3524c48d495383ae37dd | 9f273727d61fea30a468dc1e5f8c7b6fd14ed0eb | /HUD_GenMatching1.3_9_24.R | a6d82f52e0291bd000f33b96661eb5db4ca29617 | [] | no_license | checono/christine_code | 3f9ec0cb8c6bdf67800d0aca1e8fa1120f4f5d85 | 3ba222656405a8c12bbe8eb3e56cd8932606071c | refs/heads/master | 2021-01-12T00:05:27.566184 | 2017-01-11T19:57:25 | 2017-01-11T19:57:25 | 78,672,198 | 0 | 0 | null | 2017-01-11T19:32:41 | 2017-01-11T19:30:44 | null | UTF-8 | R | false | false | 5,611 | r | HUD_GenMatching1.3_9_24.R |
#--------------Set up-----------------------------------------------------------------------------------------------------------------------------------------------#
install.packages("sas7bdat")
install.packages("Matching", dependencies=TRUE)
install.packages("dplyr")
install.packages("stats")
#initiate sas7... |
180114fac4e3a7cf590ed6bb91655aec4f004af1 | 8450cd8d46322e46964eaeabb27e299d5d417ca6 | /inst/R_old/plotBactRes.R | 8cb4dbcc9ad668e5e80b359d774ae103b13b54a4 | [] | no_license | WillFox/TBsim | 0251b444b8247796ed11d56283344b88e4329099 | d304c5957dd1199e2ad08ba00fe054b8c6e30366 | refs/heads/master | 2020-07-07T04:07:23.609484 | 2018-07-05T21:52:44 | 2018-07-05T21:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,088 | r | plotBactRes.R | #===========================================================================
# plotBactRes.R
# Plot resistant bacteria - as totals or per compartment
#
# John Fors, UCSF
# Oct 10, 2014
#===========================================================================
plotBactRes <- function(isSummary, isFromDrugStart)... |
95d6e0af67f47103e7f3d9029e9a817be2008432 | 903da089f3ac659f7295a2b1d351981394e8bcdc | /man/mc.wlinreg.Rd | d25343cdb59f3be9a2347b9374ca602b20466722 | [] | no_license | cran/mcr | 1f27b59cda2a87be199a8f6534bec6882154b042 | 069b879be631491ed07a54a0f348b1adbebf7867 | refs/heads/master | 2023-02-06T22:38:44.942104 | 2023-01-26T21:00:19 | 2023-01-26T21:00:19 | 17,697,375 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 928 | rd | mc.wlinreg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mcLinReg.r
\name{mc.wlinreg}
\alias{mc.wlinreg}
\title{Calculate Weighted Ordinary Linear Regression
and Estimate Standard Errors}
\usage{
mc.wlinreg(X, Y)
}
\arguments{
\item{X}{measurement values of reference method.}
\item{Y}{... |
396d3fb2b91760a0a1a298b69fdeba4180be8224 | af1d09f6444857362b9fc2d863d5d543faeb8ab1 | /man/av_complexity.Rd | 290eebbe9e9e48b44b93f2e5deaf1e44e9ff3efa | [
"Apache-2.0"
] | permissive | franzbischoff/tsmp | aaa754fa031ff8cf20de90231d96429c51ff68ec | 13f796dfe9d25f6111b1bbc50779fd0c89da67d5 | refs/heads/master | 2021-06-08T16:23:24.541370 | 2020-03-03T16:55:01 | 2020-03-03T16:55:01 | 226,805,705 | 6 | 0 | NOASSERTION | 2020-03-03T15:13:56 | 2019-12-09T06:58:45 | R | UTF-8 | R | false | true | 1,458 | rd | av_complexity.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotations.R
\name{av_complexity}
\alias{av_complexity}
\title{Computes the annotation vector that favors complexity}
\usage{
av_complexity(.mp, data, dilution_factor = 0, apply = FALSE)
}
\arguments{
\item{.mp}{a Matrix Profile object.}
\i... |
70c51c2573bd6262b9efe434bc5bff0698f38e5e | ec8a8287a6c6fddaae2a9fa9b56f18312708af1f | /Desktop/Assignment2JS/cachematrix.R | 56c06d6ef2cd865dc1f12187d6d79c7eef91de6e | [] | no_license | jsigman1/Assignment2JS | bc17ba8b49d3e703c160f91636b3645ab88919c0 | c432e67edc400a04a68856e99c0daab7e6dfebb3 | refs/heads/master | 2020-12-24T09:00:30.577292 | 2016-11-09T18:23:38 | 2016-11-09T18:23:38 | 73,309,025 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 860 | r | cachematrix.R |
## First function sets and gets matrix, then sets and finds inverse of matrix
makeCacheMatrix <- function(x = matrix()) {
i<- NULL
set<- function(y){
x<<- y
i<- NULL
}
get<- function() x
setInv<- function(inv){
... |
4e7e2c8c38ae29aeb97e361904cda47a98edcfd6 | 50d98feafa15c290ef429ae307a20a5ca5e21018 | /demo/demo_leverage_exposure_constraint.R | da32be563b17806368a3dc9d0af1664c23a3ffcd | [] | no_license | IanMadlenya/PortfolioAnalytics | cebdcc7017b095d78853b4b6a526f04becb4a28e | 0bb92fcb424a2f3d3ad88a3910752a05aa2e2e0d | refs/heads/master | 2021-01-21T05:15:07.988245 | 2014-06-09T15:33:44 | 2014-06-09T15:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,278 | r | demo_leverage_exposure_constraint.R |
# Examples for solving optimization problems with a leverage exposure constraint
library(PortfolioAnalytics)
data(edhec)
R <- edhec[, 1:10]
funds <- colnames(R)
# Set up an initial portfolio object with basic constraints
init.portf <- portfolio.spec(assets=funds)
# Add an objective to maximize mean return per unit... |
834fd6120dd7a4906b55b390244e1b9140c5ec28 | 152bc5dff8535503f6d61aa481c5a5d4ea08289b | /wk3/hw3p1.R | 700ee151ee494ebe20a5770b7ca78dfcfe677d14 | [] | no_license | franciszxlin/MSCFRiskManagement1 | 122abcda9d48b7da69c81769ee4e3f5305b5fc14 | 5dc86fb3b6f9a5cdef90894d37a86a28f57ac3af | refs/heads/master | 2021-07-22T09:12:44.236573 | 2017-10-31T18:29:13 | 2017-10-31T18:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,314 | r | hw3p1.R | # Homework 3 problem 1
# Part (a)
# This is a function to generate a specified number of random variables with the Frechet distribution.
# Inputs:
# n - size of the sample of random variables with the Frechet distribution
# alp - the specified constant value of alpha parameter in the Frechet c.d.f.
# Output: a vect... |
bf7f7d0d9534ad564f2e115775557ceaf2cd0659 | 20ce64eef4b8b3b0e6a62b5dbd639cfb1758db47 | /ch02_Statistical_Learning/shiny/auto_hist/App.R | e89fa46ac134df81259f58903cf78ded98db43e6 | [] | no_license | GucciTheCarpenter/ISLR_labs | d87da85762b63d9e00ea6669f99f92a97bd246bb | 72132ecae7a9ffc4ec8bfcc9df1efe4516d9f01c | refs/heads/master | 2021-01-10T17:40:19.863721 | 2016-03-31T09:00:30 | 2016-03-31T09:00:30 | 50,114,757 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,494 | r | App.R | require(shiny)
Auto <- read.csv('../../../data_sets/Auto.csv')
ui <- fluidPage(
titlePanel('Auto'),
sidebarLayout(
sidebarPanel(
h4('Choose feature & bins'),
br(),
selectInput('f',
'Feature',
... |
544dc583bd0763ee1e5c4cee0c35a5a852c11d06 | f9252ab1aab8bf9db53b12c10246343552aec7f0 | /tests/testthat/testAst.R | 16b615ae58f542441c8305cea3e22e8863d1b6f4 | [] | no_license | cran/rethinker | e1ac739b9cb8c0f15331587c4a2ade43def67289 | 001eea06f489680a59c0668ca70630bc3efd82df | refs/heads/master | 2021-06-03T10:06:13.156582 | 2017-11-13T10:20:29 | 2017-11-13T10:20:29 | 48,087,317 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,347 | r | testAst.R | library(rjson);
context("Abstract Syntax Tree");
test_that("Basics",{
expect_identical(
toJSON(r()$db("a")$table("b")$add()$query),
"[24,[[15,[[14,[\"a\"]],\"b\"]]]]");
expect_identical(
toJSON(r()$db("a")$table("b")$query),
"[15,[[14,[\"a\"]],\"b\"]]");
});
test_that("Functions",{
Q<-r()$funcall(functio... |
c40e5a9c68ce096da367f51a93646aaf85c0dbd6 | f72d96e618ace7455424a5bf5da9064f0ac37b30 | /data/deaths.R | 259a5ca8cc337f3d28877012d6107b864dc3cf74 | [] | no_license | yikouyi312/mortality | 27e317fdee872a40e081de55259b42c0a95a6795 | 556c1d8568695822e4d139a8c9d51ae9e47e1038 | refs/heads/master | 2023-07-26T12:35:00.168409 | 2021-09-04T00:57:25 | 2021-09-04T00:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 792 | r | deaths.R | library(tidyverse)
library(feather)
zip3_rel <- read_feather("zip3_rel.feather")
deaths <- read_csv("covid_deaths_usafacts.csv") %>%
mutate(countyFIPS = as.character(countyFIPS)) %>%
mutate(countyFIPS = str_pad(countyFIPS, 5, pad = "0")) %>%
mutate(state = str_sub(countyFIPS, 1, 2), county = str_sub(countyFIPS,... |
bc01cce8765ce526b7b8e93841b775552100d84d | d57908fd05d972c9d1c9d89e51c41771022a3d35 | /Code/Code_art_rem_sen_2020/Code_r/func_obj_l_L_mu_produto_biv.r | 821e8860fc3484c8bd1cc84598c8ad8dcc9f9451 | [] | no_license | anderborba/ufal_mack | b7be15ec5a025359d27386cf644100c153b7c05e | a9aee623e40f309afd946e3bd3960b25654377ac | refs/heads/master | 2023-09-01T20:37:26.185653 | 2023-08-23T18:55:20 | 2023-08-23T18:55:20 | 99,868,996 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,759 | r | func_obj_l_L_mu_produto_biv.r | # Autor: AAB data: 12/09/2018 versao 1.0
# A funcao recebe parametros ao qual atribui param como variavel da funcao,
# L como numero de visadas, m (< L) como o número de canais da imagens,
# N como o tamanho da imagem e z como valores da imagem (dist Wishart),
# assim a subrotina define a funcão objetivo l(j) descri... |
9e2f706060a8f23d69afbc588bcb52e1fdbac435 | e530188423158c74d8487cc11a9e7110e11134cb | /R/item_move.R | 818bc6eeac32e270cb896ed08da009a213002a38 | [
"CC0-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | dblodgett-usgs/sbtools | dca8c2cd70eb402ba506a5d54c900072a133eec7 | da21bc9815c1972534dcca133cde3492733cbb3a | refs/heads/main | 2023-05-10T03:08:06.333294 | 2023-05-01T11:19:15 | 2023-05-01T11:19:15 | 227,438,050 | 0 | 0 | CC0-1.0 | 2019-12-11T18:55:35 | 2019-12-11T18:55:34 | null | UTF-8 | R | false | false | 896 | r | item_move.R | #' Move item from one folder to another
#'
#' @export
#' @template manipulate_item
#' @param id_new Folder/item to move \code{id} to. A ScienceBase ID or something
#' that can be coerced to a SB item ID by \code{\link{as.sbitem}}
#'
#' @return An object of class \code{sbitem}. Same as \code{id}, but with new
#' pare... |
15645dbddf3abf6bc2f99d60a989ed6805f05f94 | df9c306238e105d36561c94aaed36dc6073492b7 | /scripts/figure_04.R | 7b9f40e77b23c2e9ab6f3e4374c9942477edde86 | [] | no_license | cmcninch/bulliform_cell_gwas | 743b630556ef71f6305037f5963f243594a193d3 | 59c55411ded101dc4ea849bf965202dd43606736 | refs/heads/master | 2020-08-17T10:02:19.067425 | 2019-10-16T22:01:12 | 2019-10-16T22:01:12 | 215,649,656 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,544 | r | figure_04.R | ### Load libraries ###
##################################################
library(tidyverse)
library(data.table)
library(poppr)
library(ape)
library(lme4)
library(multcompView)
library(genetics)
library(GenomicRanges)
library(LDheatmap)
library(mapLD)
library(grid)
library(grDevices)
### Load data and format ###
#####... |
90186b6c571957174ea9029b329f27164bacbf82 | 7ae3892dc8325f65537f3c9ade61f85f8eff9c29 | /R/qgg_utility_functions.R | 66fa41beb60e2d80fd9d78a95437640ecf23a965 | [] | no_license | vplagnol/qgg | f26c2bf859c3742124df7959741537643b7d5079 | 1c7c193948613e976f3247b8464529eabcd4e84b | refs/heads/master | 2020-04-16T07:17:34.849187 | 2019-04-13T10:49:42 | 2019-04-13T10:49:42 | 165,380,653 | 0 | 0 | null | 2019-04-13T10:49:43 | 2019-01-12T11:35:32 | R | UTF-8 | R | false | false | 5,423 | r | qgg_utility_functions.R | #' @export
#'
auc <- function(yobs=NULL, ypred=NULL) {
n0 <- length(yobs[yobs==0])
n1 <- length(yobs[yobs==1])
y <- cbind(yobs, ypred)
y <- y[order(y[,2], decreasing=TRUE),]
y <- cbind(y, seq(from=nrow(y), to=1))
rd <- mean(y[y[,1]==1,][,3])
auc <- (1/n0)*(rd-(n1/2)-(1/2))
auc
... |
035b25eb4e20818e16e0c4cb89c7c07a1a43920a | 66587ef188a45a2074acd1e14e88fd62da412be6 | /R Code zum Lernen/imputation.r | e0ef3b952eaff0e70eddb98cbdc54a7997b5c1f1 | [] | no_license | malsch/R-Code-Snippets | 51ff6cf08afb4659289a2862b80ad9204ec26d53 | 8c72c688bd777faba8bb44c8c0500b576ecd6002 | refs/heads/master | 2021-03-12T20:46:49.494334 | 2013-03-18T07:22:11 | 2013-03-18T07:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 225 | r | imputation.r | # impute missing values
library(e1071) # recommended from http://horicky.blogspot.com.au/2012/05/predictive-analytics-data-preparation.html
fixIris1 <- impute(irissample[,1:4], what='mean')
# alternative in discussion: Amelia |
9648f84c26c200ac1d9f932bb13f71f39392f6d8 | 31c951d364bd64c1e983cb9400d1f257d1b6e35a | /Plot3.R | 44b1cbbdfc141c587d4288fe2d5bd7884fd9da7b | [] | no_license | charlestsang/ExData_Plotting1 | 0eb9c1638500c393dea46ace1ea28ba808a4e10e | 14a0810888a58ca3f6cc0a6ef763174dca0efd17 | refs/heads/master | 2021-01-19T09:08:56.588547 | 2017-04-09T21:20:12 | 2017-04-09T21:20:12 | 87,732,791 | 0 | 0 | null | 2017-04-09T19:12:57 | 2017-04-09T19:12:57 | null | UTF-8 | R | false | false | 1,127 | r | Plot3.R | getwd()
setwd('/Users/Charlestsang/Dropbox/Data_Science_Coursera/Course4_Wk1/Course4_Wk1_Assignment')
dir()
#Load dataset as data
data <- read.csv("household_power_consumption.txt", header=T, sep=';', na.strings="?",
nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"')
#Obse... |
6bd6b44626bd58f07162ac3687f6d916c648de73 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rsimsum/examples/simsum.Rd.R | af8233166f588454c68ab91eaa79879bb3460273 | [] | 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 | 413 | r | simsum.Rd.R | library(rsimsum)
### Name: simsum
### Title: Analyses of simulation studies including Monte Carlo error
### Aliases: simsum
### ** Examples
data("MIsim")
s <- simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", ref = "CC")
# If `ref` is not specified, the reference method is inferred... |
9497fedd67162b0e5ff4263dbd13ccf0a2de2a02 | 7d29aba8439e5c673eb8da4e3bd7829b0ae416fd | /man/PAL.Rd | fdaf7e508ecaa35a5e196fa539d20842cc5c2ae7 | [] | no_license | cran/ITRSelect | 3e5d60be33685b7e8a5d7c3e5e721b749120a225 | cc008e6031cce24cf92bb4519bcfd64fbf2d42e4 | refs/heads/master | 2020-03-14T13:19:57.601976 | 2018-09-24T03:20:10 | 2018-09-24T03:20:10 | 131,630,693 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,612 | rd | PAL.Rd | \name{PAL}
\alias{PAL}
\alias{PAL.fit}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Penalized A-learning for optimal dynamic treatment regime
}
\description{
Selects important variables that are involved in the optimal treatment regime based on
penalized A-learning estimating e... |
a71a77d97fa4234626730b60e9c3480e4afd4742 | 83d08b682b35e1fdc2fdba3b4caedf07de87e72f | /data_preparation.R | 75e7d12af847d2a73d22c870042782b24c15f152 | [] | no_license | ZenCO/Data-Visualization-Lesson | 3372703e5ac2018ab2b3ffda49a7bcfdcda7794d | 3431eaf40bd116330a9ab89d29fef49180611e3a | refs/heads/master | 2020-05-23T19:49:48.240103 | 2019-05-14T22:14:19 | 2019-05-14T22:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 961 | r | data_preparation.R | # This file will prepare the data
# Data was originally found on data.world
# http://www.eia.gov/dnav/pet/pet_crd_crpdn_adc_mbbl_m.htm
library(dplyr)
library(tidyr)
library(stringr)
library(zoo)
getData = function(){
data = read.csv('Monthly Crude Oil Production by State 1981 - Nov 2016.csv')
data = data[data$... |
840e22984513398f89241357abb9c30f6a5f39d9 | e40c58f8d40e6dca14c26d7ddf9f437642c15b81 | /man/rapport.inputs.Rd | 5175d9dd7caa440925b0f7306e73c8f8e412e750 | [] | no_license | cran/rapport | 304e9930d913db4590abbce26a184de89a09c044 | 18a98122f53c25a8d1cdc30dd7f5a464499a477e | refs/heads/master | 2021-06-03T23:38:32.485410 | 2021-04-11T20:50:02 | 2021-04-11T20:50:02 | 17,699,014 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,670 | rd | rapport.inputs.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/template.R
\name{rapport.inputs}
\alias{rapport.inputs}
\alias{tpl.inputs}
\title{Template Inputs}
\usage{
rapport.inputs(fp, use.header = FALSE)
}
\arguments{
\item{fp}{a template file pointer (see \code{rapport:::rapport.read} for details)}... |
11164e05782a74013bc23b852b4badf1519f2bca | 32c105a13c42333c8359ef19c610e7e0fca7ed8d | /codes/Arthur/modelisation_cout.R | b463225e876cfe09d8072a3614739f40594bec45 | [] | no_license | YohannLeFaou/Pricing-Game-2017 | 7e68d3e84c440ce952eba74c5c8f5fc789e5ff27 | 8be758368743ac65e844ef9f277b432a69916ffa | refs/heads/master | 2021-01-11T18:35:27.366199 | 2017-04-29T13:08:44 | 2017-04-29T13:08:44 | 79,576,502 | 0 | 1 | null | 2017-04-29T13:08:45 | 2017-01-20T16:37:24 | R | UTF-8 | R | false | false | 3,453 | r | modelisation_cout.R | library(caret)
library(MASS)
load("train_cout.RData")
Score_GLM<-function(dataX,dataY,controle_methode,controle_nombre_fold,controle_nombre_repetition=1,fit_famille,fit_metrique = "RMSE",seed=2017){
#dataX : Les prédicteurs
#dataY : La variables Cible
#controle_methode : Paramètre de contrôle qui peut prendre l... |
fc5d788bce491a9a310bbcfc96dcbfb2d81ca622 | 9ddd623471e8174ade5b9921dbc1cb1da731e115 | /man/rank_char.Rd | 41f6ebe341dd04ee28670d0d51a7b083f990ea82 | [] | no_license | zackarno/koborg | 2eba2f837b51a494b7efcb8d491e800de6ec70d9 | 6312bb3ab0b59b96f91812b90f5afd224d599b04 | refs/heads/master | 2022-09-13T17:11:09.884337 | 2020-05-27T09:45:22 | 2020-05-27T09:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 585 | rd | rank_char.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class_rank.R
\name{rank_char}
\alias{rank_char}
\title{Rank character constructor}
\usage{
rank_char(
x = character(),
relevant = NA,
choice_names = NA,
choice_labels = NA,
q_name = NA,
label = NA,
constraint = NA,
max_rank = ... |
99c794a95b8e393436a96526a6766feba5e9c8f6 | d102c6ec4db9f2a932fcb6b424773469dbf989fc | /venn_diagram.R | 8a6df0f930a9f584697d854ba417e3f100e1d8d9 | [
"MIT"
] | permissive | Jokendo-collab/R_codes | 94fae0fa004fdc1d012386a4329b8ccacacd816c | 35a90d4e218c535bfb47c42929708aa1a137b0b5 | refs/heads/master | 2022-04-11T17:46:39.383799 | 2020-03-07T18:28:13 | 2020-03-07T18:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,636 | r | venn_diagram.R | install.packages('VennDiagram')
setwd("/home/javan/Downloads")
dir()
# Libraries
BiocManager::install("limma")
install.packages("tidyverse")
install.packages("hrbrthemes")
install.packages("tm")
install.packages("proustr")
library(tidyverse)
library(hrbrthemes)
library(tm)
library(proustr)
library(limma)
data <- re... |
5fd41a65a21dc300a1b149ed9363d2df6a4555e6 | 0898f23284c280dc10c4526bd45b80068eb3a97c | /fbs.codes/fun.DU.CCBS.R | 5c6bf612d2757b4263510ce63098c9e47bd5ba16 | [] | no_license | AdamNewb/fbs.compiler | 9f171c478a04bc51972ee4ed82329cff40bd2493 | 4d65ccc669ef3d4b6fedd6da59662cfcb1fbcfa8 | refs/heads/master | 2021-01-01T15:19:11.425472 | 2014-12-09T18:50:38 | 2014-12-09T18:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,552 | r | fun.DU.CCBS.R | #' Function to get cereal food from the CCBS database of EST
#'
#' This function imports CCBS data in the form of FCL area coded csv files
#' and then consolidates into a dataframe of cereal food availabilities. These quantities
#' inform FBS cereal food. Feed is also collected for reference.
#' @param sYr - from whic... |
b1869d6d858ba48e50ed61666a5af5cd1a4e3148 | 920d09a034d18fc1fa7e8add14a6fe0fc4472f8e | /src/data/get_teams.R | d436a01961087fe1811ac63bb8cc3193b0cd6a17 | [] | no_license | zmalosh/SoccerDashboard | b7eca92380f2818f60e2568e0c437e5e022b61a6 | 807024c67d6378d100ef0be71bcb55c229109846 | refs/heads/master | 2020-08-29T02:06:10.507249 | 2020-01-05T19:12:08 | 2020-01-05T19:12:08 | 217,889,245 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,137 | r | get_teams.R | source('requirements.R')
source('src/data/get_api_football_json_from_url.R')
get_teams_by_league <- function(leagueId, allowCache = TRUE){
localPath <- paste0(getwd(), '/data/raw/teams/teams_', str_pad(leagueId, 4, pad = '0'), '.csv')
cacheExpirationMin <- 24 * 60
if(allowCache){
if(!dir.exists(dirname(localPath... |
493c8bf20363371e7e1153bbc523cc3ddc93c563 | 2b7066f30b070930a3e325f9a2f3abbf774da88c | /man/print.summary.roll.Rd | 33bb71b0d37ac0e29edbb09d731678610f203875 | [] | no_license | clagett/dieroller | cc1e896f648af366669bbf31fa26c263fb12e40a | 21f0c2af629d09753262637e77a2668675b89d09 | refs/heads/master | 2020-03-14T01:30:20.126938 | 2018-04-28T06:15:30 | 2018-04-28T06:15:30 | 131,378,845 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 253 | rd | print.summary.roll.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rolls.R
\name{print.summary.roll}
\alias{print.summary.roll}
\title{summary.roll}
\usage{
\method{print}{summary.roll}(x, ...)
}
\description{
print method for summary.roll
}
|
6b612eb25154d2d94c8e4144f8160bd500db1640 | c04220321b8886ea49930bc7fd7ea0ab24462eb5 | /charclust/man/objcharac.Rd | dd12d653aedaf688fc7bb36db231498b967286cd | [] | no_license | andlg/Package_R_Caracterisation_Classes_Clustering | 185fa4e7f2b3a2831ec653f7218e45c0a9fd4b06 | 62b66ac9e4196d80ec11208b581467879130c62a | refs/heads/main | 2023-01-29T04:39:49.892309 | 2020-12-08T19:36:10 | 2020-12-08T19:36:10 | 317,900,910 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,047 | rd | objcharac.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/object.R
\name{objcharac}
\alias{objcharac}
\title{objcharac}
\usage{
objcharac(df, var_act, var_illus = NULL, var_grp)
}
\arguments{
\item{df}{a dataframe with all the data}
\item{var_act}{a dataframe with active variables}
\item{var_illus... |
6dd56eaf588b09653adbcebcb0d8f8e515d25c5b | 7641a5bb8a685bc2ae38a0fa32615dd7539f6442 | /man/timeDot.Rd | c0949ecb87847a6c6b5fd659d4cf6ddef6eb3685 | [] | no_license | grantg012/XCTrackerCpp4 | 9e0c1b0d72b76a8e25f3e9f6adbf590928ec00fc | 757b41a22ad37714c0d8bd4146e17c0a6cecba13 | refs/heads/master | 2021-01-19T18:48:28.924742 | 2018-08-12T02:31:38 | 2018-08-12T02:31:38 | 88,383,000 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 365 | rd | timeDot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{timeDot}
\alias{timeDot}
\title{Appends word to the prefix "Time."}
\usage{
timeDot(word)
}
\arguments{
\item{word}{A string of the word to append}
}
\value{
The concatenation of "Time." and word.
}
\descript... |
e725c108ed9ef0f822f909a7d27bdbef2535bd9e | bd56d216f8ea8c7a5edab6986c168f8a405d9bb7 | /R/asDataFrame.R | 7f01c46bd271f2c04318a14ee13896b4cf88b1ca | [] | no_license | cran/datarobot | 2b00acb58e93740848508666cf5b29e45fab4f94 | 2466c294c9827923d727d77393522e101fc087aa | refs/heads/master | 2023-08-23T18:48:30.147248 | 2023-08-07T20:00:02 | 2023-08-07T21:30:43 | 67,064,589 | 3 | 6 | null | null | null | null | UTF-8 | R | false | false | 12,187 | r | asDataFrame.R | #' DataRobot S3 object methods for R's generic as.data.frame function
#'
#' These functions extend R's generic as.data.frame function to the
#' DataRobot S3 object classes listOfBlueprints, listOfFeaturelists,
#' listOfModels, and projectSummaryList.
#'
#' All of the DataRobot S3 `listOf' class objects have relatively
... |
dc9e48b032108739234c213e45fced98cd41e193 | c1a38a900066e7a679e5f77108fc29fe4f5e4b15 | /man/xmu_safe_run_summary.Rd | e7437b7669300c6f4a29085b6db19ff0eac2f2b6 | [] | no_license | qingwending/umx | 3024a3cc8bb64c244d79b530add3797309a659fd | 810c93657407058efb75ae7e46d102375f7bcf93 | refs/heads/master | 2020-06-20T11:34:51.982246 | 2019-07-14T14:14:38 | 2019-07-14T14:14:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,624 | rd | xmu_safe_run_summary.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xmu.R
\name{xmu_safe_run_summary}
\alias{xmu_safe_run_summary}
\title{Safely run and summarize a model}
\usage{
xmu_safe_run_summary(model1, model2 = NULL, autoRun = TRUE,
tryHard = c("no", "yes", "mxTryHard", "mxTryHardOrdinal",
"mxTryHa... |
a9dc510f92d70c58d6697d8afe819b1a7c6a2cc3 | 18347ef9bc1f489e63e83cf03338b7211d21b7c8 | /man/match.Rd | fba3b3083988d81c56e1bf1f84b03649a2e0847d | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | stan-dev/posterior | cd1e0778f5b930b7ef97b9c1f09167f162fb9d7e | 55e92336c2984be1a2487cdd489552a07e273d70 | refs/heads/master | 2023-08-18T07:53:15.023052 | 2023-08-07T08:13:36 | 2023-08-07T08:13:36 | 212,145,446 | 105 | 20 | NOASSERTION | 2023-08-07T08:13:37 | 2019-10-01T16:30:28 | R | UTF-8 | R | false | true | 2,023 | rd | match.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rvar-.R
\name{match}
\alias{match}
\alias{match.default}
\alias{match.rvar}
\alias{\%in\%}
\title{Value Matching}
\usage{
match(x, table, ...)
\method{match}{default}(x, ...)
\method{match}{rvar}(x, ...)
x \%in\% table
}
\arguments{
\item{... |
71ba12b5e088e844efc9277bd8802e78e271e2ac | 04405e66b5736b252ecb49aecf4503929c76e35f | /man/attribute.project.Rd | fda35e740dfab03d2ad6023b394e3e3cc15b7583 | [] | no_license | fridde/OilSandsTools | eb1029dc004750320d247e9041c3a426484148cc | 3dcb49cd5a9288bb2104418fad242392b941edaa | refs/heads/master | 2021-01-19T00:12:50.576487 | 2013-03-20T13:58:16 | 2013-03-20T13:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,161 | rd | attribute.project.Rd | \name{attribute.project}
\alias{attribute.project}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
%% ~~function to do ... ~~
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
attribute.project(project.values.string, columns.to.include = "")
}
%- ma... |
d0b8212ccb2b9b4e371e2d6117f7bc599cf1620e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/expss/examples/vlookup.Rd.R | b5deb838d71138c60694bc1dd3c5cefe617eb1eb | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,767 | r | vlookup.Rd.R | library(expss)
### Name: vlookup
### Title: Look up values in dictionary.
### Aliases: vlookup vlookup_df add_columns .add_columns
### ** Examples
# with data.frame
dict = data.frame(num=1:26, small=letters, cap=LETTERS, stringsAsFactors = FALSE)
rownames(dict) = paste0('rows', 1:26)
identical(vlookup_df(1:3, dict)... |
25460338381aeb1abb539c65184a030548d5210a | 44d0ba82f86729e2f6966f107911d16c99bb6722 | /R/scoreVars.R | cda6076fe38f0debbf9955bac100c2b2ad357650 | [] | permissive | isglobal-brge/nlOmicAssoc | 6f51e329f820dad39173e7632ef6d36c037d737f | 8bd77d15c1ce426afb9594c824678632d3ab9816 | refs/heads/master | 2021-01-20T01:14:17.247921 | 2019-02-21T12:21:40 | 2019-02-21T12:21:40 | 89,244,014 | 0 | 1 | MIT | 2018-09-14T08:08:36 | 2017-04-24T13:34:13 | R | UTF-8 | R | false | false | 468 | r | scoreVars.R | #' scoring the variables of selected_vars slot in an nlAssoc object
#'
#' @param res an nlAssoc object as obtained by nlOmicAssoc()
#'
#' @export scoreVars
scoreVars <- function (res)
{
#we will return a score of the repeated vars/number of tested probes
#if there are many null results, % will decrease
if (!(is.... |
d597cd0c1b7228ca490168af09e81770cd6b60ce | 7dd4aacc963aa0ed128f79cd65812343dc1838fb | /corresp.R | 5d8eea959f7f1b7def6372af262896e9f39ad40c | [] | no_license | abraham314/multivgit | 4004ac28b211728d3a3a35989a967767c6ee3be0 | cdb45853ae34a171a3a0d29bf2fd365a91ef590b | refs/heads/master | 2020-05-27T07:01:58.011353 | 2017-05-11T13:02:14 | 2017-05-11T13:02:14 | 82,531,984 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 248 | r | corresp.R | datasets::HairEyeColor
help("HairEyeColor",package = "datasets")
summary(datasets::HairEyeColor)
Haireye<-apply(HairEyeColor,c(1,2),sum)
Haireye
test<-chisq.test(Haireye)
plot(function(x) dchisq(x,df=9),xlim=c(0,150))
test$observed
test$expected |
f08f42929d078477bfdcdc0f89aa4d1d7e39eae4 | 00de211efeabe8582a307c517f83ed0f3dcd9e98 | /plot3.R | 11c6bda5565dcc9edf12c2d29a89ed9e99d7c94f | [] | no_license | macjoan/ExData_Plotting1 | ff91a22f1b71177d67cae6aa32972885f199c79b | bdc78ce47bd05e579e7692bcb507112ddce5d2b6 | refs/heads/master | 2021-01-04T06:53:35.450800 | 2020-02-24T04:36:38 | 2020-02-24T04:36:38 | 240,438,048 | 0 | 0 | null | 2020-02-14T05:50:40 | 2020-02-14T05:50:39 | null | UTF-8 | R | false | false | 1,277 | r | plot3.R | # REading the file andsaving in a R object mfor power consumption data
powerDF <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?")
powerDF <- subset(powerDF, powerDF$Date=="1/2/2007" | powerDF$Date == "2/2/2007")
# Convert date an time as Date and time type
powerDF$Date <- ... |
ed765dece92a5987dac6ce8f6f5f1e7495522990 | 774fb176051d79ed83955ec2bc98b83363fa23da | /plot4.R | 9e3d4dc801a9d16bca4c0ee643985881e159b567 | [] | no_license | git-mhaque/ExData_Plotting1 | 185a2cd6a731e670014669877f4665719ac1cdef | 95ed8663b2f531db93c89bef6bb401e5c8c8138c | refs/heads/master | 2021-01-18T05:26:14.414152 | 2015-02-05T13:02:44 | 2015-02-05T13:02:44 | 30,299,404 | 0 | 0 | null | 2015-02-04T13:13:26 | 2015-02-04T13:13:25 | null | UTF-8 | R | false | false | 1,299 | r | plot4.R | data <- read.csv("household_power_consumption.txt",sep=";",header=TRUE)
data$Date <- as.Date(data$Date,format="%d/%m/%Y")
sub <- data[data$Date >= as.Date("2007-02-01") & data$Date <= as.Date("2007-02-02"),]
#Plot 4
png(file = "plot4.png")
par(bg = "transparent")
par(mfrow = c(2, 2))
with(sub, {
plot(as.POSIXlt(p... |
7e03b2dacf14234f3826500e7fb9dbe0a7f83c8c | 3286ce572728b201ad5c8ee17211b7d8e78b380f | /Waldron_2016-07-15_CSAMA_metaanalysis/curatedMetagenomicData_MAE.R | daf59d72be01081dea8e72e0ac2f7adcb7490bfd | [
"CC0-1.0"
] | permissive | Tatisgua/presentations | 07b3b0584330171a9c090a559102d9ebd8bf041a | abb16713c23aacd9f00473f0028f25ee3f513c32 | refs/heads/master | 2021-04-12T03:26:42.020884 | 2017-07-31T03:47:08 | 2017-07-31T03:47:08 | 125,815,912 | 1 | 0 | null | 2018-03-19T07:08:21 | 2018-03-19T07:08:21 | null | UTF-8 | R | false | false | 663 | r | curatedMetagenomicData_MAE.R | ## curatedMetagenomicData and ExperimentHub demo
## requires bioc-devel (2.4)
library(ExperimentHub)
eh = ExperimentHub()
myquery = query(eh, "curatedMetagenomicData")
View(mcols(myquery))
candela.eh = display(myquery)
##candela.ids = c("EH2", EH6", "EH7")
candela.list = lapply(names(candela.eh), function(id) cande... |
140254e7eea483b9d7b84c186e79c4a677d15536 | b2135b13e71233c9d9c0bc712b44e98a4b0aceb2 | /plot3.R | b1d5e75558fdeb3444b50f7d9536af7bb53a64f5 | [] | no_license | yunshun26/ExData_Plotting1 | 65897c99b150afc68f91bba04cbf53d424b09b18 | 4b3799b16eb1876e9ae83d29e43765a34ffc5ffb | refs/heads/master | 2021-01-15T13:29:45.517646 | 2017-08-12T14:51:19 | 2017-08-12T14:51:19 | 99,675,455 | 0 | 0 | null | 2017-08-08T09:29:37 | 2017-08-08T09:29:36 | null | UTF-8 | R | false | false | 1,892 | r | plot3.R | #-----------------------------------------------------------------------------
#THIS R SCRIPT GENERATES PLOT 3 AND SAVES TO FILE IN PNG FORMAT
#-----------------------------------------------------------------------------
## Set library and current working directory
library(sqldf)
setwd("C:/Users/catherine/projects/ExD... |
0095a67ae7a847cf831836bc3038fab60c735ebb | 1ec02088714f94bfcf8e6d20cd4f7153b5e60427 | /processed_data/preprocessing_scripts/R_functions/visualize_data.R | cc654e90e80590598ff3a7f19130800e59477d70 | [
"MIT"
] | permissive | kristabh/gaze-following-analysis | 0592472328034d90baf769e48b12671b573b4767 | e84238f827a2f7e00983dd123c37c96e33fc9c1a | refs/heads/master | 2022-02-25T10:15:27.106172 | 2022-02-08T22:42:05 | 2022-02-08T22:42:05 | 171,480,702 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,715 | r | visualize_data.R | ## make plots to inspect data quality
library(ggplot2)
library(RColorBrewer)
visualize_data <- function(x){
d <- x[[1]]
output_data <- x[[2]]
aoir <- x[[3]]
aoil <- x[[4]]
aoif <- x[[5]]
SCREEN_RES_HEIGHT_PX <- x[[6]]
SCREEN_RES_WIDTH_PX <- x[[7]]
STIM_HEIGHT_PX <- x[[8]]
STIM_WIDTH_P... |
5a711d6117efee7d4e13da23cc888629a02d3324 | b6b746c44ea977f62d8bb7c98137b477b931ca64 | /man/pWNMT.Rd | fb08667986146f9a73458753851c4ea0ba72319a | [] | no_license | cran/NSM3 | 77f776ba5f934652800ecb0c3fbc8f87a7428571 | 7318aa2e0e6bf4f2badf8d0ae014f297650347f4 | refs/heads/master | 2022-08-30T00:39:28.420513 | 2022-08-16T21:40:02 | 2022-08-16T21:40:02 | 17,681,120 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,262 | rd | pWNMT.Rd | \name{pWNMT}
\alias{pWNMT}
\title{
Wilcoxon, Nemenyi, McDonald-Thompson
}
\description{
Function to compute the P-value for the observed Wilcoxon, Nemenyi, McDonald-Thompson R statistic.
}
\usage{
pWNMT(x,b=NA,trt=NA,method=NA, n.mc=10000, standardized=FALSE)
}
\arguments{
\item{x}{Either a matrix or a vector contain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.