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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3d1b445c5563e9d8fc13d8b4f6b0659103e860b | 70c6f5c7eac898411bb1900de776111535fb624f | /cachematrix.R | 52cfa5d4ceb0a5be2dade27627f4bafcadb7391d | [] | no_license | bfurlan/ProgrammingAssignment2 | 82b2541d12659a56a15f5e3da476eb822eddc391 | 95fc7d6a1b32e0dfb27fe179b357360051a90b2e | refs/heads/master | 2020-04-06T06:25:18.534067 | 2014-12-20T12:51:18 | 2014-12-20T12:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,069 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
#set orig. matrix
set <- function(y) {
x <<- y
inv <<- NULL
}
#get orig. matrix
get <- funct... |
66580b0951ce350974022c48803c702be653f9e3 | ec1e4c46e8ed66233147de96e95a84d638d57079 | /cachematrix.R | 3c36d81a56a9ae8b43bffbbedac1f8f18b5e0c34 | [] | no_license | satbirminhas/ProgrammingAssignment2 | 4874119fbe9cc41a400fe23b70a2663275024207 | bd918e299fff673d67f364d2000c8f116d70f33d | refs/heads/master | 2021-01-22T17:17:56.470174 | 2015-06-19T11:33:26 | 2015-06-19T11:33:44 | 37,606,484 | 0 | 0 | null | 2015-06-17T16:21:27 | 2015-06-17T16:21:27 | null | UTF-8 | R | false | false | 1,279 | r | cachematrix.R | ## These functions provide a mechanism to cache the Inverse of a given matrix by
## utilizing the scoping rules in R
## This function creates a special matrix that contains a function to
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of inverse
## 4. get the value of inverse
... |
73c3bbbbc8d6e8708148cdaedf30bb6f9d0e0cc4 | 48705854e259262e4860d36f9ec805044641ca0a | /fun/tryMaxTimes.r | 825c245c5801191e153514ecfbd14632b1ba36e5 | [] | no_license | fxi/LebaMod | 9042b37a1c8762f21a5b3860c19ec05aae533c0d | c7933bb6b83b6c1f6b5c649ca95583404e4dbf0d | refs/heads/master | 2021-01-01T18:37:27.540506 | 2014-07-29T08:59:33 | 2014-07-29T08:59:33 | 22,042,033 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 644 | r | tryMaxTimes.r |
tryMaxTimes <- function(expr,maxTry=3,delay=1) {
stopifnot(is.expression(expr))
i=1
test=F
while (i==1 | !test ) {
message('TryMaxTimes. t=',i)
res <- try(eval(expr,envir=parent.frame()))
wMsg=paste(expr,'failed. ',maxTry-i,' try left.')
fMsg=paste(expr,'failed after ',i,' try')
#ifelse(!isTRUE(res)|i... |
0280d456f10afc503ee709c95a076fbc97ace36f | 9f94e2dc159f10282930049004d0bbcffd6728b9 | /analysis/publication.R | 70dde75239b706dc1b9476316744d007e3ef3729 | [] | no_license | louis21228/ca-parkinsons | 6506a7ddcede3b231bfde97f33c23898d5d6d04f | 2f6beedd2954938d210fb47c380b79880bf174e4 | refs/heads/master | 2020-06-13T14:52:35.389704 | 2017-11-13T03:03:00 | 2017-11-13T03:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 38,378 | r | publication.R | # Cleaning up and presenting data
# Because I need to learn Sweave at some poin
library(doBy)
library(xtable)
library(reshape)
library(grid)
library(RColorBrewer)
library(gridExtra)
library(plyr)
library(infotheo)
library(ggplot2)
library(rtf) # For outputting to microsoft word
library(gplots)
library(reshape2)
librar... |
ea454cb3d065d4624402a0760cc89a96621199f4 | 5397b2f52030662f0e55f23f82e45faa165b8346 | /R/j_db-functions.R | b8286602f7ceb1983c243eb79ae3efb2f8af0b0d | [
"MIT"
] | permissive | data-science-made-easy/james-old | 8569dcc8ce74c68bcbb81106127da4b903103fcd | 201cc8e527123a62a00d27cd45d365c463fc1411 | refs/heads/master | 2023-01-12T21:16:23.231628 | 2020-11-19T13:46:17 | 2020-11-19T13:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,014 | r | j_db-functions.R | j_db_put <- function(meta) { # meta$d0 is data
if (is_yes(meta$j_debug)) print(paste("IN j_db_put"))
db_writable <- !is.null(meta$j_db_path) && 0 == file.access(meta$j_db_path, mode = 2)
if (is_yes(meta$j_debug)) print(paste("db_writable:", db_writable))
if (is_yes(meta$j_debug)) print(paste("j_db_path:", meta$... |
155336e654df28f464a194c534936ede196c5375 | d15cc13117e1e179a92874f0623e80682871f9bf | /Week2/Day4/selfAssessment2.r | b35e37035679438653958138d1231057de7164c3 | [] | no_license | mdb2/SignalLearningWork | 415754388f32b829849e10718aa838529d0feb56 | 608e7fa3e886278b5edccc584aa16b7ab2a5c7f7 | refs/heads/master | 2020-12-24T19:13:29.705562 | 2016-05-28T00:49:29 | 2016-05-28T00:49:29 | 57,985,647 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,376 | r | selfAssessment2.r | #Started at 10:02, took lunch break at 12:00 resumed at 12:45 end at 1:18, 3 hours spent
library(psych)
set.seed(1)
#generates alphas and lambdas:
alphaIterOver = seq(0,1,length.out = 11)
lambdaIterOver = 10^seq(1,-2,length.out = 50)
df = msq
noNADF = df
#remove NAs replace with column mean:
for(i in 1:ncol(noNADF)){
... |
491a803d8eb045caa90e1fc9f6efb4e4557924f0 | cd1e96d1deae4efff9c7c3c73302e6e411ba0fd4 | /nyt_scrapeg.R | a40662a16d8cf5e0b7e0f62548c1ce474d48afef | [] | no_license | jtk5469/Karstens_497 | 2fd9983c4f5baf07bf2e385c586c9242d1b96f23 | 6e8ec5da6520a0fcd32ad06bc8173c01dc1ec747 | refs/heads/main | 2023-04-14T07:54:47.038808 | 2021-04-28T04:28:02 | 2021-04-28T04:28:02 | 346,462,950 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,280 | r | nyt_scrapeg.R |
library(jsonlite)
library(dplyr)
library(tidyr)
library(ggplot2)
library(stringr)
##code adapted from Heather Geiger
setwd("C:/Users/Jack Karstens/Documents/PLSC 497")
NYTIMES_KEY <- ("PRBP9pLaQoJsErAvkJh6fSNaH2eCy9vA")
term <- "facebook"
begin_date <- "20200101"
end_date <- "20200401"
baseur... |
c96b7ce413fb38ecaaa7ae80521aa4e85308f0a4 | 452042d9a5cb876a90a9cb1f4c802d0f4b1453c7 | /man/ff_transactions.Rd | 539310cba7c967dd91ae4ff8b2a1020399462722 | [
"MIT"
] | permissive | jpiburn/ffscrapr | dc420370f6940275aaa8cb040c5ec001a25268b8 | 4e7bda862500c47d1452c84a83adce7ee1987088 | refs/heads/main | 2023-06-02T00:09:09.670168 | 2021-06-12T15:52:23 | 2021-06-12T15:52:23 | 377,976,824 | 1 | 0 | NOASSERTION | 2021-06-17T22:42:26 | 2021-06-17T22:42:26 | null | UTF-8 | R | false | true | 2,656 | rd | ff_transactions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/0_generics.R, R/espn_transactions.R,
% R/flea_transactions.R, R/mfl_transactions.R, R/sleeper_transactions.R
\name{ff_transactions}
\alias{ff_transactions}
\alias{ff_transactions.espn_conn}
\alias{ff_transactions.flea_conn}
\alias{ff_transa... |
1bb3ab9791965f604ec20da1d5ada98c17bcab33 | b99c606e20930ed0c2ee15a166b6a4053c675c07 | /R/plot-network.R | 4afb6d049c91c12088e6bad8f43606959dfd0181 | [] | no_license | belgareth/scholarnetwork | c95c88a8fc1edd02ecf47231c31c90af41b0a55d | 9cd7fd16c96b8625657db138e9864ccda1e3b4fc | refs/heads/master | 2021-08-26T08:57:20.055506 | 2021-08-09T13:17:38 | 2021-08-09T13:17:38 | 255,119,315 | 0 | 1 | null | 2020-04-12T16:03:10 | 2020-04-12T16:03:09 | null | UTF-8 | R | false | false | 2,195 | r | plot-network.R | #' plotNetwork
#' @export
#'
#' @title
#' Plot collaborators network from Google Scholar page
#'
#' @description
#' Takes value from \code{extractNetwork} function and visualizes network
#' using networkD3.
#'
#' @param nodes Data frame with node information returned by \code{extractNetwork}.
#' @param edges Data frame... |
c8cad3e734b758feb0ceda3bb4707b4e73f4afd4 | f8a99bc9505ecb65f186f4dcb22f0fa9750ec85f | /scripts/bird_continental_tree.R | 25562d568f48fd4ee6144e2064ab07699f3e6c43 | [] | no_license | reptalex/dendromap | 015171627dc6031172db90414c6f5ec8b90e0722 | 3a0cd41f387fdc1ffbcefa7bbab054835173480c | refs/heads/master | 2021-06-12T00:14:57.326415 | 2021-04-15T20:21:22 | 2021-04-15T20:21:22 | 168,759,654 | 0 | 1 | null | 2021-04-15T20:21:23 | 2019-02-01T21:00:48 | R | UTF-8 | R | false | false | 405 | r | bird_continental_tree.R | library(phylofactor)
tr <- NULL
tr$tip.label <- c('Eurasia','NAmerica','Australia','Africa','SAmerica')
tr$edge <- c(6,7,
7,1,
7,2,
6,8,
8,3,
8,9,
9,4,
9,5) %>%
matrix(byrow=T,ncol=2)
tr$edge.length <- rep(1,nrow(tr... |
4007dece0b5ce7806a9a3080651edc6cdd3bf11d | ccbe01aef6cc0dd964215d117435304c7be91c98 | /man/loanbook_demo.Rd | 1c0560da7b5e688a9c54689b642536819faa5c2e | [] | no_license | andybue/r2dii.dataraw | b54964f3f5262953c6136d5f890564276dc4a2a2 | 82034bc91226ea87bed21912871556a0e6b30916 | refs/heads/master | 2020-08-20T00:52:06.401944 | 2019-10-17T20:03:23 | 2019-10-17T20:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 679 | rd | loanbook_demo.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loanbook_demo.R
\docType{data}
\name{loanbook_demo}
\alias{loanbook_demo}
\title{A loanbook dataset for demonstration}
\format{An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 320 rows an... |
1aa33945ecad2eb1f63e76261fc9acf7245aba49 | 2e3288f1e217cc8122ded5520fe30af869bfebec | /man/drawnetwork.Rd | e4a1ba806fb92dc2ca4866972c254f074867f53f | [] | no_license | ClausDethlefsen/deal | 267bbaa32c27fc7cff43a654430ddb9d4cbe83d4 | 81b063fae2444ae3630d6d80389a96fff92a27ab | refs/heads/master | 2022-12-03T06:25:09.296100 | 2022-11-09T19:08:40 | 2022-11-09T19:08:40 | 153,797,426 | 1 | 1 | null | 2018-12-05T08:40:50 | 2018-10-19T14:40:14 | R | UTF-8 | R | false | false | 3,606 | rd | drawnetwork.Rd | % -*- Mode: Rd -*-
% drawnetwork.Rd ---
% Author : Claus Dethlefsen
% Created On : Sat May 25 23:01:44 2002
% Last Modified By: Claus Dethlefsen
% Last Modified On: Thu Dec 04 13:15:16 2008
% Update Count : 50
% Status : Unknown, Use with caution!
%
... |
4f3ebfe081cb70932af5bdc2dbfed2ff870418b2 | 9158695e09e952d685bf7a00804c79a79db734d9 | /R/Fnames.r | 4863d9cec531f20c64a4114dcaec5004fbf7f557 | [
"MIT"
] | permissive | hdeng88/publishr | fc7bfed9f1c32aeb1ed8889117998a69cd0d37c5 | 7f1b2c9836713c1f7d5f2633020509a753902ff2 | refs/heads/master | 2023-08-31T23:31:47.799351 | 2021-03-02T19:42:39 | 2021-03-02T19:42:39 | 61,814,621 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 308 | r | Fnames.r | #----------------------------------------------------------------------------#
#' @title Factor names
#' @description Return a list of a Factor variables
#' @param x a dataframe to deal with
#' @export
Fnames = function (x)
{
flist <- sapply(x, is.factor)
flist <- colnames(x[, flist])
return(flist)
}
|
1f51ba1571426ab634d77c4bbb20f0863c83cb90 | b1fb0f1a62f14b2626a511611578deec69dd87d7 | /dataprods/clusterTester/ui.R | 3aef670d9ebbeb9e90bbce7f1446881093581463 | [
"MIT"
] | permissive | jjdelvalle/datasciencecoursera | e37a5ad6156eb78590dcc18ccb2fb415b3b5fde9 | 5afd476b713df421524f6c9b7a0125cc838bc33b | refs/heads/master | 2021-10-24T23:20:20.922665 | 2019-03-29T18:41:18 | 2019-03-29T18:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,046 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
... |
7510690120927a88beaae3bf8b5540c37bbc5284 | 092092a600d529414d172ab1c4726e935c5489e4 | /ising/ising_functions.R | b4fa3d1960a219501c6f0c15fc08f58cd8a1786c | [
"MIT"
] | permissive | niloyb/LlagCouplings | a17ba8e28fc02820edb1a3ecc33f49b52c67002c | 6db8067655fcbd2084fdb70ce4ed95de327bf194 | refs/heads/master | 2022-02-03T01:47:21.484315 | 2022-02-01T23:16:01 | 2022-02-01T23:16:01 | 188,317,660 | 11 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,010 | r | ising_functions.R | # Functions for the Ising model SSG and PT chains
Rcpp::sourceCpp("ising/ising.cpp")
# get_ising_ssg_kernel returns the kernels of a single SSG and a coupled SSG chain
get_ising_ssg_kernel <- function(size, beta) {
# precomputed probability for single-site flips, given sum of neighbors
ss <- c(-4, -2, 0, 2, 4)
p... |
ebc74caaa548a5cad5d36e35b53cfb1bcf84d66c | 75db022357f0aaff30d419c13eafb9dddfce885a | /inst/Requests/scofo.r | 29a697a6d275f06c8e194299d2e94d3253ec333d | [] | no_license | LobsterScience/bio.lobster | d4c553f0f55f561bb9f9cd4fac52c585e9cd16f8 | b2af955291cb70c2d994e58fd99d68c6d7907181 | refs/heads/master | 2023-09-01T00:12:23.064363 | 2023-08-23T16:34:12 | 2023-08-23T16:34:12 | 60,636,005 | 11 | 5 | null | 2017-01-20T14:35:09 | 2016-06-07T18:18:28 | R | UTF-8 | R | false | false | 1,882 | r | scofo.r |
p = bio.lobster::load.environment()
la()
p$current.assessment.year = p$current.assessment.year - 1 ########### check the year ############### !!!!!!!!!!!
figdir = file.path(project.datadirectory("bio.lobster"),"figures")
p$lfas = c("27", "28", "29", "30", "31A", "31B", "32","33","34","35"... |
b47f0f5b878cc68ff9816784c2ce76fc6a1d3501 | 82d128a4b47a0a3a85e6c768b25df5848b7f3b54 | /dvlp/survival.R | a7328a3239a0afe75699bb7cde8e89f7d3dc4064 | [] | no_license | tetomonti/CBMRtools | 37e19db6a23c46882ec850df64a0a664f39d57f6 | 6ea11896423219a1df91528eed7ba7744e1d27d0 | refs/heads/master | 2021-03-27T10:27:51.753463 | 2020-02-06T19:03:14 | 2020-02-06T19:03:14 | 35,168,993 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,163 | r | survival.R | ##################################################################
# Coxph-based gene ranking
##################################################################
coxph.pvalue <- function( x, digits=3, logtest=FALSE )
{
# this is copied from the procedure print.coxph. It simply implements
# the... |
b326f64df63a7491b3b6741041a548e6172565eb | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /bpnreg/man/fit.bpnr.Rd | c2cf3cd76624aae0064a19f26195ae59740dedc9 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,080 | rd | fit.bpnr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classfunctions.R
\name{fit.bpnr}
\alias{fit.bpnr}
\title{Model fit for a Bayesian circular regression model}
\usage{
\method{fit}{bpnr}(object)
}
\arguments{
\item{object}{a \code{bpnr object} obtained from the function \code{bpnr()}... |
e9cbce11da883fe3dcb5f113361c487ba8d007e8 | 041e37f557b9814921851fe1c4f0fb2b40a9edfc | /Evaluations/aveMetrics.R | 66e277b04d3bb8c4193203cd93747ec1ee7769b4 | [] | no_license | kuan0911/ISDEvaluation | 81aeb4b2ed6cfb10f13dea19857e02fc09c87ae7 | 0dbf2da9cdb85d287f9c4d3c94b8ec791ca3d7d0 | refs/heads/master | 2023-08-31T20:08:16.841262 | 2023-08-29T05:28:17 | 2023-08-29T05:28:17 | 236,837,046 | 2 | 0 | null | 2020-01-28T20:42:25 | 2020-01-28T20:42:24 | null | UTF-8 | R | false | false | 5,212 | r | aveMetrics.R | #source('Data/synthesizeDataN.R')
source('analysisMaster.R')
# source('Data/syntheticData/syntheticDataN1.R')
# source('Data/syntheticData/syntheticDataN2.R')
# source('Data/syntheticData/syntheticDataN3.R')
# source('Data/syntheticData/syntheticDataN4.R')
# source('Data/syntheticData/syntheticDataN5.R')
aveMetrics = ... |
9e95c2bec98e1e0cd9c5e21514acc52f1f0badc6 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/SBmedian/man/SBmedian.Rd | a02692a0f0ea727a4de574c0e5f104ef3f78830a | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 446 | rd | SBmedian.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package-SBmedian.R
\docType{package}
\name{SBmedian}
\alias{SBmedian}
\alias{SBmedian-package}
\title{Scalable Bayes with Median of Subset Posteriors}
\description{
Median-of-means is a generic yet powerful framework for scalable and robust e... |
2aa3ec64a49b603dd6fd786d8d06d59adaeba1ee | a7d8102b6044c950af756432737aee3c501d9be5 | /caribou-location-tracking/src/clean-raw-data.R | afce7f5d5b09cd2285dc4f6cdd363ec5283e606b | [] | no_license | rjake/data | 28d6451e709f5774a32c93823d6a40bf1969991f | a0330c6923d0d9d3f884dea08b476fdedaca4ff1 | refs/heads/master | 2023-01-30T19:37:47.033332 | 2020-12-08T18:20:09 | 2020-12-08T18:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,270 | r | clean-raw-data.R |
# Load libraries
library(tidyverse)
library(janitor)
# Import data
individuals_raw <- read_csv("./caribou-location-tracking/raw/Mountain caribou in British Columbia-reference-data.csv")
locations_raw <- read_csv("./caribou-location-tracking/raw/Mountain caribou in British Columbia-gps.csv")
# Clean individuals
indi... |
e4438e3fdafe0e0768e54ad1cfb8a70b507cc0d1 | 3026f0f01ff036e69ec97461392d37b2e17b6428 | /plot1.R | 857867a407d649008ad34b58cc72b9f419f59bed | [] | no_license | LegsTech007/ExData_Plotting1 | 41e5a6cd214309a376deb4a381af9fcf9440abc8 | aad2835078a68b80c07dd81b818d21dc2489886b | refs/heads/master | 2021-01-17T01:14:25.341602 | 2015-06-05T17:58:25 | 2015-06-05T17:58:25 | 36,770,232 | 0 | 0 | null | 2015-06-03T00:40:22 | 2015-06-03T00:40:22 | null | UTF-8 | R | false | false | 534 | r | plot1.R | ##Read file, set date range as set variables as numeric
hp_data <- read.table("household_power_consumption.txt", header = T, sep=";", stringsAsFactors=FALSE)
hp_data <- hp_data[which(hp_data$Date=="1/2/2007" | hp_data$Date=="2/2/2007"),]
hp_data$Global_active_power=as.numeric(hp_data$Global_active_power)
##Plot to PNG... |
5b271cd5b2283a14556e71b25a4d770d1486214d | eb127bbb4e75966296b4a2234250ba6819e513b1 | /code_analysis_obj/plot_nsexacts.R | d925d61f9f616abc9d926d14c9ac15f4f5783b60 | [] | no_license | davidchampredon/stiagent | 29cc33cc8e1a54763ccd5f12f05949ac80354575 | dc6cd187b7649ee4517fc27ea66aff377c8ff892 | refs/heads/master | 2021-01-10T12:50:45.273558 | 2016-03-21T03:45:58 | 2016-03-21T03:45:58 | 43,753,973 | 0 | 0 | null | 2015-11-18T01:53:12 | 2015-10-06T13:56:06 | C++ | UTF-8 | R | false | false | 1,039 | r | plot_nsexacts.R | library(plyr)
library(ggplot2)
load("/Users/davidchampredon/Dropbox/MyStudies/Syphilis_vax/simul-results/2016-02-01/compScen_A_0.2_1_0p05.RData")
scen.name <- list()
pop.scen <- list()
for (i in 1:length(all.scen)) {
x <- all.scen[[i]]
scen.name[[i]] <- x[[length(x)]]
x[[length(x)]] <- NULL
pop <- list()
fo... |
b1ed97f51f537b0db6da873e1f8bbfe88234a74b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/abd/examples/Trematodes.Rd.R | 7c80a0b8aaf40169903b5538c3a5df514df91c89 | [] | 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 | 183 | r | Trematodes.Rd.R | library(abd)
### Name: Trematodes
### Title: Frequencies of Fish Eaten by Trematode Infection Level
### Aliases: Trematodes
### Keywords: datasets
### ** Examples
demo(sec9.3)
|
85604f9c45c887718b867a629e80dc41130bd6a2 | 915bbce1893c4ee2dcef7065147a2b54542ced80 | /R/bridge_methods.R | 22580920eda310d6df070e39fa77e444e5d97bd2 | [] | no_license | quentingronau/bridgesampling | 8cea941a20ad0fd7874f8c3af25b5edfeffdcf2a | 6793386ffe30205d649d2fe5ce9597c0bff83142 | refs/heads/master | 2023-06-08T11:05:31.273244 | 2023-05-31T00:32:58 | 2023-05-31T00:32:58 | 85,564,272 | 31 | 16 | null | 2023-04-12T14:33:06 | 2017-03-20T10:32:46 | R | UTF-8 | R | false | false | 5,107 | r | bridge_methods.R | #' Methods for bridge and bridge_list objects
#'
#' Methods defined for objects returned from the generic \code{\link{bridge_sampler}} function.
#'
#' @param object,x object of class \code{bridge} or \code{bridge_list} as returned from \code{\link{bridge_sampler}}.
#' @param na.rm logical. Should NA estimates in \code{... |
a7b7d1a42ce23ed1410ea739b054cf042f2f2353 | e85b4314da671b63f08bbd00c33c8c6ceda10726 | /Fusion_and_Proto_Visualisation/sa_test_gridded_in.R | dd03f5b408e02492052cc39323ce6460bab8c228 | [
"CC-BY-3.0"
] | permissive | XSpacious/SpaceApps2013 | fbe9c8b3f2f48c027a14f9192cd5b4fdd60750e5 | dbdeb42a44fe4d9f52f8d2ded1810aebc88a0306 | refs/heads/master | 2021-01-19T13:49:48.032404 | 2013-05-01T19:58:57 | 2013-05-01T19:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,043 | r | sa_test_gridded_in.R | # XSpacious
# International Space Apps Challenge 2013
#
# Licensed under a Creative Commons Attribution 3.0 Unported License.
# http://creativecommons.org/licenses/by/3.0/
#
# When using this code please attribute as follows
# including code authors and team members:
#
# This code was developed by the XSpacious proje... |
f36a80037c6888d6de986601aca08d16223c98eb | fefa61346e5d97f339baaa4bd3bee36d2da401ec | /alternative_solution_with_dplyr_tmaps_htmlTable/eu_maps.R | 24749bc59a74eb94dd19f02a5e8890c0833f58a8 | [] | no_license | pablo14/EU_health | cdb0bcc0a6dac32ec97493dc83a6b9f435ae84ac | 2eb7d2a96ed7e1bfbd9f96ef2f6084c02766e777 | refs/heads/master | 2021-01-22T17:57:19.097132 | 2016-02-09T19:03:38 | 2016-02-09T19:03:38 | 32,360,049 | 3 | 7 | null | 2016-02-09T19:03:38 | 2015-03-16T23:50:29 | HTML | UTF-8 | R | false | false | 2,346 | r | eu_maps.R | library(magrittr)
library(knitr)
library(markdown)
library(dplyr)
library(tmap)
library(ISOcodes)
library(htmlTable)
## Read data (this data has already some data preparation)
data=read.delim("data.txt", header=TRUE)
data("ISO_3166_1") # countrycodes
data("Europe")
ISO_3166_1 %<>% transmute( iso_a2 = Alpha_2, iso_a... |
c6c1a01ce99d7eb1a862a984f297328fdd9f9c82 | 55998a12f0e624e76ebd18e43c43ad937bb7c0f2 | /man/model_info.Rd | 06299c53ffa6a090bd36cdf5628fdf4d95f7e84b | [] | no_license | garrettgman/modelglyphs | e9294c88c5fe0abe5c2d31a1ab6c426a1bf84baf | e000f76928ca1f5c882cebef3ef0b3179ac7793f | refs/heads/master | 2021-01-10T20:13:45.175563 | 2012-03-27T19:58:04 | 2012-03-27T19:58:04 | 3,650,689 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 283 | rd | model_info.Rd | \name{model_info}
\alias{model_info}
\alias{model_info<-}
\title{Get/set the model info attribute of an mg_ensemble object.}
\usage{
model_info(x)
}
\arguments{
\item{x}{An object of class mg_ensemble}
}
\description{
model_info should be the output of \code{\link{model}}.
}
|
f956d239d101171e5887ed1dff2afeb654194819 | 082ef57530c810147354b42cefc5ae7a0de1a6f8 | /man/MQTAd.Rd | d3ef5f2b53680b21da001d8f53a152bc96817610 | [] | no_license | baolinwu/MTAR | 9ec1f387d3721cf4d74bc98ab8a32dc817c6f2d5 | 0e170a15a0b78d589e4c057ee866c82f1510fad8 | refs/heads/master | 2021-08-22T21:39:44.439376 | 2018-10-30T21:18:51 | 2018-10-30T21:18:51 | 115,526,658 | 5 | 0 | null | null | null | null | UTF-8 | R | false | true | 838 | rd | MQTAd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdm.R
\name{MQTAd}
\alias{MQTAd}
\title{Multiple quantitative trait association test with differing covariates}
\usage{
MQTAd(obj, G)
}
\arguments{
\item{obj}{fitted null model from MDM.null}
\item{G}{genotype vector}
}
\value{
\describe{
... |
d1d78c515be0f0c52d80748c4cc34c31cb8170c6 | bef5e21ee3a7fb88e714d22e3e21b3a2162335a4 | /scripts/additional_analysis/analysis_paper_loda.R | dea6a7e3aaf934a98fc1b3bc58f6cda01cf29842 | [] | no_license | lisa-sousa/xci_epigenetic_control | 6afbe40a75fca87105a285eadc30e2c4560940b3 | 99b06220923e31c816b16bfd731c6b798939e326 | refs/heads/master | 2021-07-08T11:45:30.531661 | 2020-01-28T15:31:29 | 2020-01-28T15:31:29 | 222,667,602 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,824 | r | analysis_paper_loda.R | ###################################################################################
#libraries
###################################################################################
library(ggplot2)
library(RColorBrewer)
library(here)
###################################################################################
#d... |
f12b60846ab1872b2cf10216b21fe0eb9d9e8cdc | 7e9d0fb831546f65c9a5a091a734d1decbae298a | /run_analysis.r | d82216db5b25393613e3e2f25788686ee9e0916b | [] | no_license | LaurenR/tidyData | 4dd3fc6e9949c715e2195be88c6bb7f011d561c4 | c08013f8a52f608d83b4bc846a7fc189dc7fdb33 | refs/heads/master | 2020-12-24T14:45:05.562976 | 2015-06-20T20:04:21 | 2015-06-20T20:04:21 | 37,742,488 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,532 | r | run_analysis.r | setwd("C:/Users/Lauren/Documents/Data/tidy/UCI HAR Dataset") #SET WORKING DIRECTORY TO INSIDE FIRST FILE
list.files() #LIST FILES IN DIRECTORY
setwd("C:/Users/Lauren/Documents/Data/tidy/UCI HAR Dataset/test") #SET WORKING DIRECTORY TO FIRST DATA FILES NAMED TEST
subject_test <- read... |
c813aaec3ef0b22c43a32e06dd35b8d08efd41ef | 9d5c605c42f230411e601e552267ea5680ddb7c2 | /figures/plot_usd_jpy.R | 6d930cc1a0eaccbb6d9c386e02aa1238756bb5c8 | [
"CC-BY-4.0"
] | permissive | asclearuc/ndr-2018 | 5d13a5e553714314562a6b9954fac238bf0d463a | 93ffc5323f1279a3e3e0208dd400306f7ef4f308 | refs/heads/master | 2020-03-22T06:24:45.589272 | 2018-06-05T14:51:14 | 2018-06-05T14:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 510 | r | plot_usd_jpy.R | library("tidyverse")
usd_jpy <- read_csv("usd_jpy.csv")
phi <- (1 + sqrt(5)) / 2
(usd_jpy %>% ggplot(mapping = aes(x = dt, y = price)) +
geom_line() +
geom_vline(xintercept = as.Date("1995-01-17"), lty = 2) +
scale_x_date(date_breaks = "1 month", date_labels = "%b %Y") +
... |
9fce8547416b955152ca07eb256e8484a3f9b943 | 8f67330a4700bc888d13dd92c62220e20e6b6828 | /R/shapes.r | 8b4b03389589d8780be4f716b645beb7a3d325ac | [] | no_license | cran/clusterSim | cfcc584e368fa9f6d1d86887b0f61cc2f3676b32 | 54764dbd65330165e71fc1af2fadf75942915769 | refs/heads/master | 2023-06-25T15:51:42.061284 | 2023-06-10T17:30:02 | 2023-06-10T17:30:02 | 17,695,119 | 2 | 6 | null | 2015-12-05T19:09:43 | 2014-03-13T04:16:30 | R | UTF-8 | R | false | false | 6,930 | r | shapes.r | .numObjects<-function(numObjects,numClusters){
if(length(numObjects)<numClusters){
numObjects<-rep(numObjects,numClusters)
}
if(length(numObjects)>numClusters){
numObjects<-numObjects[1:numClusters]
}
numObjects
}
.toCsv<-function(file,data,klasy,outputRowNames,outputCo... |
1d0fc905215d02a1825c214ebbe970489b9db9ed | 64d5df27325f07af9c602ddf85a81ff4f0aec189 | /R/ref_df.R | bbf1bb8c7f3c0e5d6ff8223186c3500adf2198aa | [] | no_license | cran/stacomiR | 0641860bef2f4b5c05490d06de2c58fe3fe30059 | 981c67ba5d18ee9a5c357192e4ba4f9e864ec039 | refs/heads/master | 2022-07-22T14:11:55.680662 | 2022-07-18T08:20:02 | 2022-07-18T08:20:02 | 95,473,811 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,083 | r | ref_df.R | #' Class 'ref_df'
#'
#' Representation of a fishway, contains description data of all fishways from
#' the database along with the selected fishways (df) (integer)
#' Objects from the Class: Objects can be created by calls of the form
#' \code{new('ref_df', df_selected=integer(), ouvrage=integer(),
#' data=data.... |
20bb5046f2499d6e123b5589ea492cbf726675a9 | 75440e14f1ecfae3d0f67992ce49a38f77e14d46 | /bin/roxygenize.R | ee616db367b14cf92fa45def85e4b2b4997065ef | [] | no_license | eshilts/glmnetPlots | ec0538db90b2dbe49f4fb173f0aea8506aec1f05 | 640008c143c3acd5d15ca5f437444039d2dd256c | refs/heads/master | 2020-05-30T18:32:52.312121 | 2012-08-08T15:20:16 | 2012-08-08T15:20:16 | 5,343,894 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 144 | r | roxygenize.R | #!/usr/bin/env Rscript
system("echo 'roxygenizing the package.'")
library(methods)
library(utils)
library(roxygen2)
roxygenize('.', copy=FALSE)
|
d207ccaaf8123745117cb83664eeb4215f65dda6 | 82206536bb4e70b11bc07ba01000e3fe7484759c | /R/builtTable.R | 601548bc5a0f0d8212c64284f9f593e252a50f86 | [] | no_license | pablorodrig16/summaryFunctions | 68905d0c5c23fa9cbff3da83c88d14c163c1ce38 | 188491ef940042b830d017ba12f1605b55282683 | refs/heads/master | 2023-04-07T19:50:41.923249 | 2023-03-29T19:08:32 | 2023-03-29T19:08:32 | 190,251,633 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,586 | r | builtTable.R | #' Creates a summary statistics table of data comparing by group with the appropiated statistical test
#' @title Summary table with statistical tests for groups comparison
#' @param data is a vector with data
#' @param group is a factor vector for grouping
#' @param non.parametric is a logical vector. FALSE allows the ... |
19d6c984c12ee741be74ea2ee96830a54d24e1ba | 5d8846b18c132985cdf876ba399ca05d7436b060 | /02_R_Basic/R(20210708).R | b444f3a8ca6d1ce837f2f9cf5603e8c797b6a986 | [] | no_license | kjs34590/MC_data_review | 8b3d5f71e6bebbfc39e5c2f32f2465e9b1f11df8 | c08ca8cde719696ab491334edc3d6201bbcb65bd | refs/heads/master | 2023-08-26T23:18:11.334006 | 2021-10-28T16:22:24 | 2021-10-28T16:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,023 | r | R(20210708).R | # EDA(exploratory Data Analysis)
# 탐색적 데이터 분석 (데이터 전처리 + 시각화 + 통계분석)
# 통계분석 위한 가설 수립
# 데이터 전처리
# 1. 데이터 탐색(조회)
# 2. 결측값 처리
# 3. 이상치 발견하고 처리
# 4. 코딩변경(컬럼명 변경, 파생변수), 데이터 조작
# 5. 탐색적 분석을 위한 시각화
# 가설 검증
######
# 연습
library(ggplot2)
midwest.df <- as.data.frame(midwest)
str(midwest.df)
names(midwest.df)
head(midwest.d... |
b4280a2370db9896dbc22079679a9607b99fa0ca | 39d8220db6f690b905d96fd5ec4bf589612f23c4 | /packrat/lib/x86_64-apple-darwin15.6.0/3.4.3/scales/tests/testthat/test-bounds.r | 188f28b9bfe58b6e74a16cb2f5974c5a8f82bd90 | [] | no_license | alecri/kappa | ce398645e2430422d7b8263c10b3fa5d2b368c21 | 40307284fa59bc5469c96f51fa1f9b7069b05bc9 | refs/heads/master | 2021-01-11T19:59:58.977086 | 2018-03-14T10:03:26 | 2018-03-14T10:03:26 | 79,352,378 | 1 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,125 | r | test-bounds.r | context("Bounds")
test_that("rescale_mid returns correct results", {
x <- c(-1, 0, 1)
expect_equal(rescale_mid(x), c(0, 0.5, 1))
expect_equal(rescale_mid(x, mid = -1), c(0.5, 0.75, 1))
expect_equal(rescale_mid(x, mid = 1), c(0, 0.25, 0.5))
expect_equal(rescale_mid(x, mid = 1, to = c(0, 10)), c(0, 2.5, 5))
... |
e98996060f6384827ab4cbff8d92d09dc53deaf2 | d2922aa04644cb228c0a33488fc8a6f7c4783050 | /R/CohortPercent.R | 89ef7cf14b81b55fc4f92788be0c34882ea8d201 | [] | no_license | caiostat/churnFunc | 76277eb02b75e96732cfa16135fe74709c59fd02 | 0eb3c100b2c027d1d353afef2df46c6a5820dee1 | refs/heads/master | 2020-03-22T05:54:03.704590 | 2018-08-01T14:49:17 | 2018-08-01T14:49:17 | 139,586,240 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 934 | r | CohortPercent.R | #' @title Functions to help reporting churn
#'
#' @description function calculates the churn cohortwise
#'
#' @param c
#'
#' @return A bar graph describing churn patterns, discriminated by c.
#'
#' @examples
#'
#' @export CohortPercent
CohortPercent <- function(df, c, var, cols, cols2){
x <- df %>% mutate(ChurnAlvo ... |
8bcd887bf13fcfed1055f15071b96c2cebb420fe | 16f3ef5d42a94be44e73dbfa938476945ea0e954 | /Reconstructions/reproducing survival meta analysis/metaData.R | 712b09475b2e6f7ae4636f8932d659f5e6fb104b | [] | no_license | gabriben/survThief-Validation | 93b57093ccce3e8ea863b99c1036b32cf09c9a24 | f6e7b99459b1f4b75b54685c7665414d9cb2e1a8 | refs/heads/master | 2020-05-30T15:49:05.781925 | 2019-06-03T09:30:30 | 2019-06-03T09:30:30 | 189,829,056 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,130 | r | metaData.R | setwd("/Users/gabrielbenedict/Google_Drive/docs/UNIS/KU Leuven/Courses/Master Thesis/Reconstructions/reproducing survival meta analysis/Reconstructed")
studies <- list.dirs(getwd(), recursive = F, full.names = F)
## each dataset is saved in an object "img" in .RData format.
## loading RData does not allow for reassig... |
89f8a339774b8f136053967a04752a7174294abc | e78d0e86220c20477869ecd67ca6d2030598021f | /man/monday_list_columns.Rd | f7c815cfbe9e98a0fcff846fca8fbbd78cda8a53 | [] | no_license | lynuhs/MondayR | 0774a689a00f708c556bf9095bb40ff336a5b334 | 296f45c44dd131307bc2a9bbb96befef31bc8267 | refs/heads/master | 2023-03-18T11:57:55.572419 | 2021-02-20T11:22:05 | 2021-02-20T11:22:05 | 336,251,131 | 2 | 1 | null | null | null | null | UTF-8 | R | false | true | 391 | rd | monday_list_columns.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/monday_list_columns.R
\name{monday_list_columns}
\alias{monday_list_columns}
\title{A data frame of columns}
\usage{
monday_list_columns(board_id)
}
\arguments{
\item{board_id}{The id of a Monday.com board}
}
\description{
Get the columns of ... |
013d7f80488436edcac99ca867cfe1ad87dcd5c6 | cce85d168debacecc97c225c340fda2891772e1b | /3/1.r | 3665613a9aa7f51b92f7b558877bd5bff80bfeb7 | [] | no_license | sisu/uml | e58de0c009e42750f52deba36a712d6e9b452a43 | 61023ce8ec1100be43d68559e92e51f33f8c4922 | refs/heads/master | 2021-01-25T05:23:13.236569 | 2013-03-24T12:02:37 | 2013-03-24T12:02:37 | 7,877,643 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,608 | r | 1.r | library('MASS')
n <- 2000
genData <- function(theta, var, center) {
data <- cbind(rnorm(n),rnorm(n))
R <- t(matrix(c(cos(theta), sin(theta), -sin(theta), cos(theta)),2,2)) # Rotation matrix
D <- matrix(c(var[1],0,0,var[2]),2,2)# Dilation matrix
A <- D%*%R # First dilate, then rotate
data = apply(data, 1, "%*%", A... |
4cf8bf8b10d568df06b20181cda64a941f9d30ae | ae5805f9864f273b198e62a3e5a11d13f543f325 | /R/fun_expExtract.R | 23f3529b35bcc3b40fe736581564bd66440c3fb2 | [] | no_license | jacintoArias/exreport | a5a457e5fe594fabff2667279844b86aeead0048 | ac61cb5a88a64458ced16b47f28f3b1abc97f0e8 | refs/heads/master | 2021-07-03T13:40:40.524529 | 2021-06-03T10:48:36 | 2021-06-03T10:48:36 | 37,213,723 | 9 | 3 | null | null | null | null | UTF-8 | R | false | false | 2,023 | r | fun_expExtract.R | #' Extract statistically equivalent methods from a multiple comparison test
#'
#' This functions generates a new experiment incluing the methods that obtained
#' an equivalent performance with statisticall significance in the multiple
#' comparison test i.e. those whose hypotheses were not rejected
#'
#' @export
#' @pa... |
e08d170ce246e95048b7a1cb49a8b948c43ed40a | 73b8d80e4be9df5e6f38bae7bd9643315b4366a9 | /HW06_Week07_Armstrong_DigitRecognition.R | 839be26ac3568dde78242f49bbfe929a12b0a2f5 | [] | no_license | larmstrong/ist707_handwrititen_digit_recognition_1 | a010f73f2f9df537890ee1ab9e1faa3e398a8f2d | c9190380391cbddb0f5fd2e537b8c4ae75737816 | refs/heads/main | 2023-05-06T05:09:40.559384 | 2021-06-05T19:31:35 | 2021-06-05T19:31:35 | 374,196,981 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,806 | r | HW06_Week07_Armstrong_DigitRecognition.R |
## title: "HW07 - Digit Recognition"
## author: "Leonard Armstrong"
## date: "2/23/2019"
##-------------------------------------------------------------------------------------------------
## CLEAN START
# Remove any non-default packages
default_packages <- union(getOption("defaultPackages"), "base")
loaded_package... |
ebd5745fd235a2bfda72f038b92dfcba668360e0 | 72d03ec10b4955bcc7daac5f820f63f3e5ed7e75 | /input/gcam-data-system/aglu-processing-code/level1/LA100.0_LDS_preprocessing.R | c353d2f4be4cf4299bd636d1624cbc313c0905bc | [
"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 | 4,227 | r | LA100.0_LDS_preprocessing.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( "AGLUPROC_DIR" ) ){
if( Sys.getenv( "AGLUPROC" ) != "" ){
AGLUPROC_DIR <- Sys.getenv( "AGLUPROC" )
} else {
stop("Coul... |
39852fec1b7cc75a2f292266055863926252b654 | 8be8fe5e1a4ef5642640dff5b392f440303fe8d0 | /Workflow_Code/older_code/valid_iterative_taxa.R | 10ed497d7852d7dd64f17b093eb99d6e8865c47f | [
"MIT"
] | permissive | PalEON-Project/ReFAB | 63eb7a645f02a37069a566e771fdb3fba115d167 | 335d098c42dc2232b4b2e4bc93e263a9393daca2 | refs/heads/master | 2022-04-30T18:58:09.983560 | 2022-04-20T15:55:32 | 2022-04-20T15:55:32 | 87,744,726 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,673 | r | valid_iterative_taxa.R |
######## run on geo with job.array.taxa.sh
arg <- commandArgs(trailingOnly = TRUE)
if (is.na(arg[1])) {
runnum <- NA
} else {
group_rm <- as.numeric(arg[1])
}
library(nimble)
library(splines)
library(maps)
library(methods)
ciEnvelope <- function(x,ylo,yhi,...){
polygon(cbind(c(x, rev(x), x[1]), c(ylo, rev(yh... |
2ce484e0924ca6807a92bc798e337d28871784e0 | f05a2f7175f9422ac9908181c97aaab3c375fd34 | /tests/testthat/test-factorize-df.R | 21ea32c88e808a2f6e61b213a76694a21bdedca4 | [
"GPL-2.0-only",
"MIT",
"CC-BY-4.0"
] | permissive | tntp/tntpr | 19c6b39cf9252f2854a1faf7bd1062b582d8e5ab | fa9d7442cb42c667539213805192a9c845cf2913 | refs/heads/master | 2023-08-08T23:05:28.893304 | 2023-07-09T15:11:15 | 2023-07-09T15:11:15 | 158,586,843 | 4 | 0 | CC-BY-4.0 | 2023-08-15T17:43:50 | 2018-11-21T17:54:23 | R | UTF-8 | R | false | false | 2,081 | r | test-factorize-df.R | # Tests for factorizing columns based on string matching
library(tntpr); library(testthat)
context("factorize_df")
x <- data.frame(a = c("a lot", "a little", "some", "some"),
b = 1:4,
c = rep(as.POSIXct(Sys.Date()), 4),
stringsAsFactors = FALSE)
test_that("works with P... |
44c36e75bc6d87a84d63122e2f74f375c2078731 | 9580717f9f09fe026dee8224b35f3f72c9f78675 | /man/tween_microsteps.Rd | 3c49eb54d3a03f1d278cdd79de373cba9e999e32 | [] | no_license | sctyner/netvizinf | dc0fed9791ae7c29255ff133b010ed5f6bc39a17 | d9cd0e249ad6b351b59b9478d238dbaf0a8762ce | refs/heads/master | 2021-05-03T22:30:58.889245 | 2017-10-26T19:52:35 | 2017-10-26T19:52:35 | 71,607,611 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,536 | rd | tween_microsteps.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tween_microsteps.R
\name{tween_microsteps}
\alias{tween_microsteps}
\title{A function to create the full set of \code{\link[tweenr]{tween}}'d microstep data appropriate for animation.}
\usage{
tween_microsteps(ptv, pte, microsteps_df)
}
\argu... |
c3e4a6400f9ba34414752fddd75e757037c1666e | 286a38a9d52fef14b959763b0b920819c61a42cb | /GetXDataFrame.R | 22a1f68bd65a6d1673aca5eaf74feb71799d84de | [] | no_license | TBKelley/GettingAndCleaningDataPeer | 6b0df6bc74bb17df5bbe11d51d67e3c11cba8483 | 5da1a673e95964e9eb40f790902d8b541587269e | refs/heads/master | 2021-01-13T01:25:50.740562 | 2014-04-26T12:56:49 | 2014-04-26T12:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,707 | r | GetXDataFrame.R | ## GetXDataFrame.R
##
## Get a filtered X data frame of "UCI HAR Dataset".
##
## folderUNC: Source root folder for "UCI HAR Dataset"
## Example: "./UCI HAR Dataset"
## dataType: Type of data. Example: "test" or "train"
##
## Returns Data Frame with the following columns:
# 1 tBodyAcc-mean()-X
# 2 tBod... |
b3f87837896708b0923b218e03957d99500053b0 | c520c73d2db2b95ced0c6c75778b18b2b64e45d7 | /man/calculate_epp.Rd | 7a977193e9e45bc1f02f0c26f195608f9a4a4ab8 | [] | no_license | ModelOriented/EloML | 9c8b50b6e15b283d2dd930daf7001bea37f69f3f | 11d1670379b1602b662068f7aa9cce7deba0cdf1 | refs/heads/master | 2022-06-22T03:38:06.371318 | 2022-06-17T16:24:31 | 2022-06-17T16:24:31 | 206,395,947 | 23 | 2 | null | 2019-09-27T11:11:25 | 2019-09-04T19:21:29 | R | UTF-8 | R | false | true | 2,402 | rd | calculate_epp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_elo.R
\name{calculate_epp}
\alias{calculate_epp}
\title{Calculate EPP Meta-Scores for All Players}
\usage{
calculate_epp(
results,
decreasing_metric = TRUE,
compare_in_round = TRUE,
keep_columns = FALSE,
keep_model = FALSE... |
d24b6ae179e26d9bb53d50e60454be44820eeee0 | 4a9029585d7ab42959856fc46b5ef60618d9da49 | /Assignment1/Mandatory1.R | f1a155c7f6f97eded9d8ebe8cebfb3d04824577e | [] | no_license | Eiriksak/STA510 | c974b615165a48ad2b11ba61bb38691c53537f10 | 345f9fae82d611c34c10c99791da99aec87eccc8 | refs/heads/master | 2021-05-16T23:07:30.749377 | 2020-03-27T10:50:46 | 2020-03-27T10:50:46 | 250,508,408 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,255 | r | Mandatory1.R | rm(list=ls())
library("ggplot2")
library("gridExtra")
##Author: Eirik Sakariassen
######### 1C
#N = num of cards, k=num of success states among the cards, n=num of cards drawn
simCardDraws <- function(Nsim, N, k, n){
#Generate a deck of cards
suits <- c('Red','Failure') # Red=success, black+yellow=failure
ResVec... |
ea367c907cbc7d50333cad5bb76f0b8eb1a87e9f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/growthcurver/examples/SummarizeGrowth.Rd.R | 28771c19190b007969a17294f99ae102ee8ae0eb | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,226 | r | SummarizeGrowth.Rd.R | library(growthcurver)
### Name: SummarizeGrowth
### Title: Summarize Growth Curves
### Aliases: SummarizeGrowth
### ** Examples
# We can check that the parameters that are found are the same
# as we use to generate fake experimental data. To do so, let's first
# generate the "experimental" data using the logistic e... |
96f2d6ab1043ffb0a64aeeddc96cc31db21a0bac | 617a2b428dbee689943fbeb0d7058592666dc33b | /stockQuoter.R | 6ed7415058fdf4ac02e5bef0dd8c6f121299dfa6 | [] | no_license | mksaraf/finance-stockStrategy | b4c9aacbc562e3de01e530dc5500d11dbeddc722 | 6cb09e8a08bf62256eb5e0d2de144fb70fc0c840 | refs/heads/master | 2021-09-27T14:26:47.496263 | 2018-11-09T04:03:16 | 2018-11-09T04:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,218 | r | stockQuoter.R |
################# Finance : Stock Quoter STOCK Updates for Indian market ##################################
############## INput: Takes stock symbols from the database ################
############## Process: Gets Key Stats & STK data from Yahoo URL / Query ################
############## Process: Store into... |
c03ec9c0bbf7b19eae078e0391deb11f88fac30e | 9a4a0951042394c3bf29ac1ec4a8867891812568 | /data preparation/prep data for event study.R | 7652108d61e922e32908ed2d962528592b590bf5 | [] | no_license | dkori/east_lib_systems_git | 2d12aa3d6f00903edf5e5467215dc9ec5791fd66 | 6a82c5c5e5bf07d677199f7ba0f9507d41d0b6d2 | refs/heads/master | 2021-01-04T22:25:13.766397 | 2020-05-11T19:03:18 | 2020-05-11T19:03:18 | 240,785,146 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,998 | r | prep data for event study.R | rm(list=ls())
library(dplyr)
library(sf)
library(tidyr)
library(tidycensus)
library(leaflet)
#read in allegheny county blocks
load("quantitative analysis/block groups.Rdata")
blocks<-alle_co_block_groups%>%
st_transform(crs="+init=epsg:4326")
# read in neighborhood data
hoods<-st_read("data preparation/geocode ... |
f56673cc1db1e936e70ec3e820f66ba1fc6b4f4d | ebe176edc75218f81d56589fff819c5a1337179d | /Exploratory-Data-Analysis/ExData_Plotting1/main.R | 39553040953cd7a3747e10ce725b11060c9bc585 | [] | no_license | tcriscuolo/Coursera | 365ccea58ae810ab502da804abd264c41fa9966d | 559ba95cf1286aed32256c18b9cb249aa4d69cab | refs/heads/master | 2021-01-10T02:53:04.086237 | 2015-06-19T18:42:07 | 2015-06-19T18:42:07 | 36,746,163 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 653 | r | main.R | #Pre process the data
# It is assumed that the household power consumption file
# is ins in the same working directory
# The raw data set can be found at this link
# https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip
data <- read.table(file = "household_power_consumption.txt", sep = ... |
ccd2675589221a99526eda7c45fe1287dd624a10 | 95676ebfb27d6706d6bd9c23f04dfb43bd62bac2 | /BaseballHistoryPlot_script.R | f55c897b3d9f5ea678dc42ff8d4e191065d2ef6f | [] | no_license | jnotis99/baseball-history-plot | 3364498c0372dee9154f5e5e3fc816ad592bf496 | a5a185bfcfc0bb4c2c971a35eed56055027e1006 | refs/heads/master | 2021-04-03T05:20:59.882845 | 2019-11-07T21:45:48 | 2019-11-07T21:45:48 | 124,954,226 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,781 | r | BaseballHistoryPlot_script.R | ## Extra-Base Hit and Strikeout frequency throughout Professional Baseball
##
## Name: Joseph Notis
## Date: February 17, 2018
# Initial settings --------------------------------------------------------
library(tidyverse)
library(rvest)
library(ggrepel)
# Read and wrangle data ------------------------------------... |
c5bc874ba8c973f042a05c85b5b2655efa503ef3 | 4e09dc73001ca609406fef2b7dd9441b8ee1690e | /Plot4.R | 80298c5ffe46df6a40bece714e4a952186919aa3 | [] | no_license | Yun-Hui/ExData_Plotting1 | 5ffa47042edc4e171b314aff41c6dff9a2de837e | a08fa0c364e78881924bc571ae9f2f9659145d64 | refs/heads/master | 2021-01-01T16:57:36.383509 | 2017-07-21T15:43:06 | 2017-07-21T15:43:06 | 97,959,801 | 0 | 0 | null | 2017-07-21T15:02:40 | 2017-07-21T15:02:40 | null | UTF-8 | R | false | false | 1,640 | r | Plot4.R |
d<-read.csv(file="household_power_consumption.txt",sep=';',stringsAsFactors=FALSE, dec=".")
d$Date<-as.Date(d$Date, format = "%d/%m/%Y")
fd<-subset(d,Date=="2007-02-01"|Date=="2007-02-02")
fd$datetime <-paste(fd$Date, fd$Time)
fd$datetime<-strptime(fd$datetime, "%Y-%m-%d %H:%M:%S")
fd$Global_active_power... |
dc805948b58372fb7b42a8e4c7711d7538719128 | 0a8e985c6a53f05b771451502e20627b39ef8115 | /cleandata/air_quality_clean.R | 4ee37110e0aaaa602d2c75fef1a42527967b2759 | [] | no_license | osiau/GIS713DataChallenge | e7637a7cbefc185a0f8c72dc50bb6dd573aaa869 | 8e305bfc04237c45dbed32e4823f38d42dbc074f | refs/heads/master | 2023-01-30T12:23:34.349407 | 2020-10-07T01:49:56 | 2020-10-07T01:49:56 | 322,170,942 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,548 | r | air_quality_clean.R |
# THIS SCRIPT gives you clean air quality data (not clean air quality though, unfortunately)
# The final clean data objects are: air_qual2019 and air_qual2020
# No calculation has been done on the air quality fields
library(data.table)
wd <- getwd()
# read
air_qual2019 <- read.csv(file.path(wd,"Datasource... |
7d584b773bdf3237e463a6d80e813023b56bc1e3 | d92e24b978d924c3631ac9e34ad16d215e4484a4 | /CrudTest/app_new.R | 158654d2a67d21616ae8169abd84bc63c525f849 | [
"MIT"
] | permissive | Sumidu/dashboardtests | a98ab790ab8606662de41bde4a5e011ea2199301 | f6c23da50f1f297546ebdcc78c192ca94dde9200 | refs/heads/master | 2020-04-30T11:50:07.538680 | 2019-03-25T07:11:22 | 2019-03-25T07:11:22 | 176,812,099 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 781 | r | app_new.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(shinydashboard)
library(rhandsontable)
library(htmlwidgets)
library(dplyr)
library(DBI)
lib... |
d9b2aa56edf09ca9eae0f64687d8f34cf482d3ef | 8372f94c022cd1b6b36c787d0a8336a19ff8279f | /plot2.R | 4fbb6944b19a74a856bf6050f0c8424468691eca | [] | no_license | Dweepobotee/ExData_Plotting1 | 44ce8329b540070d17165abb88d0bd71f87a0935 | a77f8f55ff918320b99297f0884cac791581259c | refs/heads/master | 2021-05-15T07:46:29.349340 | 2017-12-04T16:21:31 | 2017-12-04T16:21:31 | 109,470,035 | 0 | 0 | null | 2017-11-04T05:37:51 | 2017-11-04T05:37:50 | null | UTF-8 | R | false | false | 606 | r | plot2.R | ## Reading the data
hpc<-read.table("household_power_consumption.txt", header=TRUE, sep=';', na.strings="?",stringsAsFactors = F, dec = ".")
hpc$Date<-as.Date(hpc$Date, format="%d/%m/%Y")
data1<-subset(hpc, subset=(Date>="2007-02-01" & Date<="2007-02-02"))
rm(hpc)
## Creating the datetime variable
datetime<-pas... |
a1e4af506c7bde96c5aa38c7fd06b4ded56d7353 | bf4dea5b896b89e14bac8ccfde707e67352208b6 | /src/ui/input_panels.R | fa926b7b78579c22cbf6fcf0f709658c1d4d0d9a | [
"MIT"
] | permissive | mrc-ide/shiny90 | 6afa140da681cf72f505c158bbf55db2ecaecdf4 | 4b8abb38cfc03e40bcaacc1987690b90c7f8fa36 | refs/heads/master | 2023-05-29T17:02:56.132104 | 2023-05-09T08:50:43 | 2023-05-09T08:50:43 | 146,604,625 | 2 | 0 | MIT | 2023-05-05T08:19:14 | 2018-08-29T13:32:42 | R | UTF-8 | R | false | false | 10,867 | r | input_panels.R | panelSurvey <- function() {
shiny::div("",
shiny::tags$p("Please provide survey data on the proportion of people ever tested by sex and age group, and HIV serostatus (if available).
Where available please provide the following:"),
shiny::tags$ul(
shiny::HTML("<li><s... |
cdea428803aed2862c576d63fd10326c96367b14 | de3f5864b44f6ba76807af0b1c9712e46cde590f | /summary_susie.R | dd30982819de54e95e7384b4567ed29ab01275e1 | [] | no_license | chr1swallace/coloc-susie-paper | 83c5ad461e56ad865b4d0c42f7fc61c04129138c | 3c1280508b4dafac75e69607970e753243f3b235 | refs/heads/main | 2023-06-27T01:04:18.748780 | 2021-08-03T09:34:39 | 2021-08-03T09:34:39 | 339,751,246 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 23,982 | r | summary_susie.R | #!/home/cew54/localc/bin/Rscript
setwd("~/Projects/coloc-susie")
source("dirs.rb")
library(randomFunctions)
library(magrittr)
## args=getArgs(defaults=list(chr=2, begin=43082452, end=44086664), numeric=c("chr","begin","end"))
source("~/E/sim_colours.R")
## example with high LD between CVs (0.0.99)
## f="data/sim/coloc... |
dc5d3730534719c8eccc57bac666869cf345d1cc | a114996ecfdd212ea60e54238a24b3bf51112b13 | /Problems/Problem58.R | c2c54d9849e55146475aef47632d0cf19a9becff | [] | no_license | Adam-Hoelscher/ProjectEuler.R | 35610697d5bc4c61e9adfaec6d923a424df20486 | e060484365cafcfcd400c3cecacc189293dfc682 | refs/heads/master | 2021-01-23T01:29:54.585429 | 2017-09-11T18:28:46 | 2017-09-11T18:28:46 | 102,432,553 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 906 | r | Problem58.R | Problem58 <- function(){
pos <- 1L
width <- 2L
prime <- 0L
total <- 1L
repeat {
for (i in 1L:3L){
pos <- (pos + width)
if (Functions$IsPrime(pos)) prime <- prime + 1L
}
#we know this one isn't prime; it's a perfect square
pos <- (pos + width)
total <- total + 4L
if (p... |
be2c37ab66561014bbcfbe992d1db7780a344630 | 89605002f363e92e2144dcecc4a46d5e407ccbda | /6/demo/server.R | 573754f0f1930858128603368b358471eb9d10af | [] | no_license | da-okazaki/jenkins | 9b2bca4d83372e126171bc5937df6d00e8ab5bcd | e96b5e9694354e0e1ecd51c96ffa0193702bc8ac | refs/heads/master | 2020-05-17T12:43:02.756276 | 2019-04-27T02:17:48 | 2019-04-27T02:17:48 | 183,717,583 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,665 | r | server.R | shinyServer(
function(input, output, session) {
output$contents <- renderTable({
# input$file will be NULL initially. After the user selects
# and uploads a file, it will be a data frame with 'name',
# 'size', 'type', and 'datapath' columns. The 'datapath'
# column will conta... |
e18b79a8764afc74e9ff47cfea255bd802da94f2 | 2465aa63e2f856b93d11cb75db5ebadfc738127f | /man/gcs_dir.Rd | 06cacacb01c5a9ef1bad2c5a2885048494fcc099 | [] | no_license | nturaga/GCSConnection | 078b6554afafbce5d1ff6ade437c39632ee24c0a | 91abb4d6d3e126174d32a54ef1983a53a866ba75 | refs/heads/master | 2022-11-09T09:38:59.255586 | 2020-06-19T14:49:24 | 2020-06-19T14:49:24 | 271,274,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,379 | rd | gcs_dir.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cloud-functions.R
\name{gcs_dir}
\alias{gcs_dir}
\title{List bucket/folder/object}
\usage{
gcs_dir(path, delimiter = TRUE, user_pay = gcs_get_user_pay())
}
\arguments{
\item{path}{character(1), the path to the bucket/folder/file.}
\item{deli... |
c11baceef6b793adf5dcbd59ea0c939c6a7c9b58 | 13c7670d460f72d4c3cd55b1f351ac2ef6eea8b6 | /Limpeza_Inspecao_Workspace.R | 5e09e2916f77125688fb63663c973f7990858203 | [] | no_license | metodosexatos/ccr | d5a0c9415e7a867db9665a3254521a8caf1d5a99 | 98277a8317d224d53ea29f6191ecc5f2e93b26b8 | refs/heads/master | 2020-05-02T16:53:28.429059 | 2019-03-31T14:24:13 | 2019-03-31T14:24:13 | 178,081,835 | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 1,586 | r | Limpeza_Inspecao_Workspace.R | #########################
##### Métodos Exatos ####
# www.metodosexatos.com #
#########################
# Autor: André Santos | andre@metodosexatos.com.br
# 04/03/2019
# citation()
# To cite R in publications use:
# R Core Team (5018). R: A language and environment for statistical
# computing. R Founda... |
44c4b7cbdbde6802f4a19fc321a201326ef5f97c | 016bbbbfbda258147cfa675b69f3c4a4a64f0c67 | /R/mb_delta_estimation.R | 9277f6e4b9c56437bfec0b6105ac2e75d3c40106 | [] | no_license | laandrad/SCEDbayes | a04b457003f3ae7eef700a052b59c15a1ca8d3f6 | ab3577f31a40bd685db7bf6bf783534992df0e46 | refs/heads/master | 2021-01-17T18:34:56.861894 | 2017-04-23T00:29:43 | 2017-04-23T00:29:43 | 71,513,188 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,969 | r | mb_delta_estimation.R | ## calculate standardized effect sizes for intercept only model
mb.compute.delta <- function(y, P, s, bayes.coeff, model) {
phases = mb.create.phases(P, s)
nPoints = length(y)
P1 = unlist(phases[1])
T1 = unlist(phases[2])
T2 = unlist(phases[3])
N = nrow(bayes.coeff)
nPoints = length(P)
x ... |
79f03d9cb68491596317fbe0619d88ad9b131c22 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612886722-test.R | 76799bd236d69b7c9cde4a333d8598c6b03efa63 | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 714 | r | 1612886722-test.R | testlist <- list(bytes1 = c(-8388608L, 16702978L, -8388608L, 8388608L, -16646144L, 16720383L, -1L, -65314L, 16703L, -55007L, 8388608L, 0L, 0L, -1414823936L, 65195L, -14614101L, -1414856448L, 3857920L, -14614529L, 32768L, 65279L, 553713664L, 50298880L, 65246L, 50298880L, 32768L, 65535L, -1L, -1L, -128L, 53L, 9898885... |
f194f326817a93048296be9a8ea4795fffd5461f | 570fe25860ba1fc28be96a9f6eeb0a07e0f27aff | /R/CheckPoisson.R | 3c70983547966f4c769cf0d34e28a919608e8139 | [] | no_license | apwheele/Blog_Code | 08ebd53623b46f2177e72f63fece2abccd1bd9b7 | 28811b33810632e39943d91c1fe7e449d419cc7e | refs/heads/master | 2023-08-15T18:21:40.942099 | 2023-07-22T13:59:03 | 2023-07-22T13:59:03 | 229,156,788 | 9 | 9 | null | null | null | null | UTF-8 | R | false | false | 1,161 | r | CheckPoisson.R | ################################################################
#This returns a dataframe with the columns
##Int -- cells with 0, 1, 2, etc.
##Freq -- total sample size in that count
##Prop -- proportion of the sample with that integer value
##PoisD -- the proportion expected via the Poisson distribution
##Resid -- re... |
d9e093ca692c15703557d1d75a1acdf4d23f7147 | d7a4eea625f8419f1dd2d523f954114c83c6ea69 | /Kuis1.R | 1feec1cadd24496837518bc4074911f3ac07c7c4 | [] | no_license | ulis-f/Kuis1 | 0a8bda12d46d3a1534a8a1832db633921b0a2148 | fa8aa2b117c0865646cd60ffce33b1240384fa25 | refs/heads/main | 2023-04-15T16:14:03.346840 | 2021-04-25T12:01:38 | 2021-04-25T12:01:38 | 361,416,103 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 46 | r | Kuis1.R | #Quiz 1 - Statistika Multivariant dengan R
|
5186ec7b4c3ee52b435d759a164fafd896428617 | 506cacd76e2e01ec709203bd2143ffbbf1a4e43e | /4_ExploratoryDataAnalysis/ProgrammingAssignment/PA2/plot5.R | b8109e362d17e5db34c7f5052de90bb1a482c482 | [] | no_license | proutray/datasciencecoursera | e897ffb2b0c405ca19a0e7e2e0ddd49e542448ea | 29c7883ca328637cfefbc0c7d69c4773a131c539 | refs/heads/master | 2021-01-06T20:46:36.356594 | 2016-02-18T19:57:29 | 2016-02-18T19:57:29 | 21,712,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 593 | r | plot5.R | library(dplyr)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
motor <- as.character(SCC$SCC[grepl("Motor",SCC$Short.Name)])
data <- filter(NEI, SCC %in% motor, fips == "24510")
plot5data <- aggregate(data[4], by=list(data$year), FUN=sum, na.rm=TRUE)
yrange = range(0,12)
plot(plot... |
3ee1da0d8b969464afcb6b8f7ee9e6d3a9ba2f6f | 9cbfb976df111cdb998ead2bb9aa7a05e6c81c9b | /first.R | c912c95ac19a077fefcf754540f31754b086c7af | [] | no_license | VedSengupta/MACHINE-LEARNING-PYTHON-R | bd18c7e38f712e85c899e5588687f056e44da94d | 90c34b73cdf1015eea0935cc67298ad22143cf8a | refs/heads/master | 2020-03-09T00:47:04.441299 | 2018-10-18T05:56:53 | 2018-10-18T05:56:53 | 128,497,243 | 0 | 0 | null | 2018-09-29T10:27:16 | 2018-04-07T04:48:23 | R | UTF-8 | R | false | false | 196 | r | first.R | vec1 <-c(1,2,3,4,5,6)
vec2 <-c(1L,2L,3L,4L,5L,6L)
vec3 <-c("ved","sudip","sourav")
vec4 <-c(1+2i,2+3i)
vecc5 <-c(TRUE,FALSE)
class(vec1)
class(vec2)
class(vec3)
class(vec4)
class(vecc5)
|
fa7bcacb21037003f5bf70456a36068b35539d19 | d9cc435d84d2b2f9d2b7ac974864db0420337e41 | /man/indocx.Rd | e7d1e8154d453e5c9a96f53ef9de5fdf749f03eb | [] | no_license | guokai8/eoffice | 162e98cef8722d69dd84a9e5735eb081e8ef94de | 4a9064451b3af51ca3bd97f91c782050bfe479ac | refs/heads/master | 2021-11-28T21:18:41.874439 | 2021-11-09T21:15:47 | 2021-11-09T21:15:47 | 184,794,096 | 23 | 7 | null | 2019-08-29T15:42:58 | 2019-05-03T17:22:21 | R | UTF-8 | R | false | true | 514 | rd | indocx.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inoffice.R
\name{indocx}
\alias{indocx}
\title{read table from docx}
\usage{
indocx(filename, header = FALSE)
}
\arguments{
\item{filename}{input filename}
\item{header}{use first row as column name}
}
\description{
read table from docx
}
\e... |
0dba8c6584437295a312be10f7278d35523a405e | a6596161ef3214df1bc054bb3f9fa03ab93a7221 | /ui1.R | 81c273b77f31fdc1c7e66c46f62bde967559c1c9 | [
"MIT"
] | permissive | Ben-NIU/HazTrak-Inventory | 5f3430a52767abadabe09d8830024093f54b4f5f | f87b6a783af06a1ab02358fb9786c4aa87621c08 | refs/heads/master | 2021-01-22T17:15:04.257231 | 2017-01-27T04:58:05 | 2017-01-27T04:58:05 | 68,497,325 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,765 | r | ui1.R |
shinyUI(fluidPage(
titlePanel(
fluidRow(column(8, div(p(strong("HazTrak Inventory Chemical List")),style="font-family:'bradley hand';color:purple; font-size:30pt"),
h4(em(strong("from", span("Gross Lab", style="font-family:'gabriola';color:blue; font-size:15pt"))))),
column(4, i... |
eccebea06101750a1bf513367d382e4b2d21692f | 9c4634e062e5bafa303effc781ef2b693825aa6a | /France.R | 6178d4982aee57b1801a222ae8f5f6d3744d92b2 | [] | no_license | Chavagnac/dissertation-soil-c | 74f52960d87a6b1b083b7296d53becf51cc38326 | 3c8ababd265ccadb1d1eae5fe43a6093c40f23fd | refs/heads/master | 2022-11-22T04:43:42.976461 | 2020-07-23T20:50:46 | 2020-07-23T20:50:46 | 267,895,010 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 59,183 | r | France.R |
install.packages("rio")
install.packages("rgdal")
install.packages("sp")
install.packages("ncdf")
install.packages("chron")
install.packages("ncdf4")
install.packages("rasterVis")
install.packages("gpclib")
library(rio)
library(rgdal)
library(raster)
library(ncdf4)
library(sp)
library(ggplot2)
library(tmap)
library(R... |
89dbdf7433bc56cd6296c0cdfd1435075c45292b | a3a95b468a64492be0d6067a14b350b4d281a123 | /man/map_5Lto3L.Rd | 47d44d602a7e19ec9ef5c636296009efa6eb79fe | [] | no_license | sheejamk/valueEQ5D | 25555943195782d2b1f1ee6edbb16afe6a9edfb7 | 24a8cba859996fd8c61b38924c4362702c0dc1a8 | refs/heads/master | 2022-10-19T23:07:01.287073 | 2022-10-03T20:20:57 | 2022-10-03T20:20:57 | 197,168,794 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,403 | rd | map_5Lto3L.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eq5d.R
\name{map_5Lto3L}
\alias{map_5Lto3L}
\title{Function to map EQ-5D-5L scores to EQ-5D-3L index values as per the
specific country and group by gender and age}
\usage{
map_5Lto3L(
eq5dresponse_data,
mobility,
self_care,
usual_ac... |
9d3d64824815f904b00cbe2fff4449ea175b485b | f0820801d84fdc435f14fac1e3da6c74fd948b8b | /3.pre_process2012.R | af2535c91f422e7b4be8ad1b18ff89f637cf2e0d | [] | no_license | mlieng/peds_ready_transfers | 45134389e963a4cec7a4ece5dab0bac6153aff1f | b69626afb8c0c05853452827cb1568a85b71ca4e | refs/heads/master | 2020-06-12T14:24:47.155481 | 2019-11-09T04:22:11 | 2019-11-09T04:22:11 | 194,328,925 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,161 | r | 3.pre_process2012.R | # Goal: Extract 2012 individual data, similar to `2.pre-process_and_merge`
# except it doesn't include derivation of hospital-level data
#
# Set-up ----
#
# Import libraries
library(RPostgres) #database
library(tidyverse) # data munging, plotting etc
library(feather) # output
library(icdpicr) # for illness... |
33ce765c3d94ec39d5a43f1bf9f7ec31abad6435 | 7ce20df30ce7a013177aad42b13ef7497c6e8fde | /scriptTests/depends.r | 2784820bf59cb0eb8253abebfbcc630b3d6163ed | [] | no_license | Gabriel-Cardoso-de-Carvalho/RProvenance | 4d2e57e155fd77509884dde74936935dacceb5aa | 9a65ee951187857de4aa41affb9c79f8d4054edd | refs/heads/master | 2020-05-21T02:57:38.968905 | 2019-06-28T21:27:01 | 2019-06-28T21:27:01 | 185,888,266 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,418 | r | depends.r | ### DEPENDS.R ###
#
# This file checks the current R installation for packages on which
# tests in examples/ depend on. It attempts to install them if they
# are not installed yet.
###
usePackage <- function(p) {
print(p)
if (!is.element(p, installed.packages()[,1])){
print("Installing...")
install.packages(p,... |
c05bbc10d5fb84ab3acb315f795c799480d3508a | 634907fa4b9ab946b9285b09e1614b363a8f9726 | /ModelTesting.R | d0ebe490cbc6b7ff85abff35b476f49476bf9c07 | [] | no_license | sophiehiscock/ST201-Sleep-Project | ea4f6647f28000169e8b47d2326c967a062a9768 | b2ea31be80149d3be50cc72370a0d7a9399ee9ed | refs/heads/master | 2020-04-30T08:18:50.640565 | 2019-04-26T22:26:58 | 2019-04-26T22:26:58 | 176,711,528 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,681 | r | ModelTesting.R | #dat<-read.csv("sleepedit.csv",header=T) #pre-edited data, without aliased coefficients
dat<-read.csv("sleepcut.csv", header=T) #missing first 10 rows so we can test with this later
head(dat)
#Testing variables from each group
dat$LarkOwl<-relevel(dat$LarkOwl,ref="Neither")
m5<-lm(CognitionZscore~Gender + LarkOwl +... |
039bfed5184e9b53eb18e22c4c9e558923fc5f19 | 0893b15352297d95bc5a51997b8e73a085620a54 | /r_plotting.r | a22e75860054d7883dcee4fe0189234b5e591d9a | [] | no_license | mrinalmanu/chipseq_and_peak_calling_pipelines | 893258e9a731e14b3fd70e704a81797513836006 | 5e9238349535ae5e953733306291b1da09546b5e | refs/heads/master | 2020-05-17T10:15:31.073959 | 2019-04-26T18:28:50 | 2019-04-26T18:28:50 | 183,652,574 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 994 | r | r_plotting.r |
#_________________________________________________________________________________________
install.packages('BiocManager')
# .libPaths("/tmp/RtmpYs45an/downloaded_packages")
library(BiocManager)
BiocManager::install('ChIPseeker')
BiocManager::install('TxDb.Hsapiens.UCSC.hg19.knownGene')
BiocManager::install('org.Hs... |
93e3a828e73d158c7f33280682d742c125e714c4 | 774df122ebc991da788d6ef4ffd5fea804ffd93c | /CODE/07-functional_diversity_plot.R | 127b57e2989383f0b8ae442c99cc8daf399096d1 | [
"MIT"
] | permissive | wabarr/heterogeneity-functional-traits | 7875b18b6a614018419897969ecd635b15df9e39 | 12f0a049cbb5f5cd80215f8d51cec64b61120eda | refs/heads/master | 2021-04-17T12:41:03.560430 | 2020-04-02T19:02:07 | 2020-04-02T19:02:07 | 249,446,134 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,314 | r | 07-functional_diversity_plot.R | library(ggplot2)
StatChull <- ggproto("StatChull", Stat,
compute_group = function(data, scales) {
data[chull(data$x, data$y), , drop = FALSE]
},
required_aes = c("x", "y")
)
stat_chull <- function(mapping = NUL... |
71333bb4f74b534713792a37df6ce9d33d04b565 | 9beeff6c4999aca9db1fe34ce82772fe0123560a | /man/mm.Rd | 6943b0bb394773e1dab8949e7ce4fa5ff26b1526 | [] | no_license | billpine/MQMF | fb028eebb7ae47b4c284a86c425a25fe14985c2d | cbf5472bc1799c210ad20d1b69fa736ce40dccf2 | refs/heads/master | 2020-09-03T04:35:18.252430 | 2019-11-02T08:41:40 | 2019-11-02T08:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 704 | rd | mm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fisheries.r
\name{mm}
\alias{mm}
\title{mm calculates the predicted Michaelis-Menton length at age}
\usage{
mm(p, ages)
}
\arguments{
\item{p}{is a vector the first three cells of which are a, b, c
for the mm curve.}
\item{ages}{... |
3b347b17ebab45a8549258b74cad45f71476d4f0 | 7f02263a680124a9b6fed6e709013034be0dc2e8 | /SciDataEpi2020/functions/arrow_overlay.r | 2e5c705c2fff9b2f4f41756a86a65cda284d79b9 | [] | no_license | Hindrance/EpiSciData2020 | a8fa07e67a240a81d76391b614175593369e2810 | b271bb99bd793992fea7f41fe46ef1a981e33e61 | refs/heads/master | 2022-11-10T14:53:32.093301 | 2020-06-23T11:21:55 | 2020-06-23T11:21:55 | 266,233,813 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 835 | r | arrow_overlay.r | # This is an arrow overlay function. It adds an overlay to plots where
# individual points are linked (I.E time-point data). It is currently limited to
# two point connections (df[1,n][1:2]) lthough it can be extended by explicitly calling the function
# for the 2:3, 3:4 and (n):(n+1) cases.
arrow.overlay <- func... |
fd1788e18b08fddbc10e848a249348f8a4eaec04 | 51d0c9d86c8aefe380a2aa15fa1bcb8c7575ec41 | /GAM/inst/make_examples.R | d495818f4bc298c3168029e6f1c0496fceff753f | [
"MIT"
] | permissive | ctlab/GAM | e0153d0d7e4c00175a527abdc03b2e4a7f371334 | e2e3ad335d944924c4bb25b3836b8d4a5130b4fc | refs/heads/master | 2022-08-28T18:01:40.966816 | 2022-08-11T09:13:11 | 2022-08-11T09:13:11 | 23,662,897 | 7 | 6 | null | null | null | null | UTF-8 | R | false | false | 2,426 | r | make_examples.R | #!/usr/bin/env Rscript
library("devtools")
library("GAM.db")
library("RCurl")
load_all("GAM")
load_all("GAM.networks")
library("igraph")
gene.de.M0.M1 <- read.csv(text=getURL("http://artyomovlab.wustl.edu/publications/supp_materials/GAM/Ctrl.vs.MandLPSandIFNg.gene.de.tsv"), sep="\t")
met.de.M0.M1 <- read.csv(text=get... |
5f6aac7ba0e209ebf0a72fe797b09f42dc6483e7 | 12ae74bd0ba9d5494d7301b521b45d1bfa5ff84a | /R/join.R | 408f8da318014270fa2c95c47a5b44425bb90f73 | [] | no_license | cran/do | 62b609a0f0cc0f0c0cc879adb821b1d9d95b6632 | fa0d7c8f9799326ffa6f0763f490c2873597131b | refs/heads/master | 2021-08-15T11:59:00.793187 | 2021-08-03T10:40:02 | 2021-08-03T10:40:02 | 206,034,685 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,150 | r | join.R | #' @title Join two dataframes together
#' @description Join two dataframes by the same id column.
#' @details join_inner(), join_full(), join_left(), join_right() and join_out() are five
#' functons to joint two dataframes together. They are based on package 'data.table',
#' so they are more efficient and ... |
c8f7f6130c2b2b0c4d1474f3cf6b136c60321857 | 1ba08b8bce8d1af9712f9ee02f24f89793e02a32 | /R/main.R | c5ed4ae0b3b2ffda71c15383995762556c9421cf | [] | no_license | fabiorcampos/software_analysis | 5c6557d62b4bc6c3cda8d050ad72660adaa10888 | 8c56822c6e97b6d98b5cbb36ce82b619c3fcacd2 | refs/heads/master | 2021-05-05T17:07:23.355517 | 2018-01-14T20:03:08 | 2018-01-14T20:03:08 | 117,342,473 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,161 | r | main.R | ### Load Libraries
library(dplyr)
library(tidyr)
### Load data
setwd("~/MEGA/SOFTEX/PREDICT/R/predict_2017/database")
df = read.csv("dataset.csv", header = TRUE, sep = ",", dec = ",")
### Classifications
#countries = c("BR", "CA", "CH", "KR", "FI", "IR", "UK", "US", "DE")
#sector = c("582, 62, 631, 951", "5821", "582... |
b9a4afaa58e7ab67b452b3202dfc705ccb13695e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/bayesTFR/examples/plot-trajectories.Rd.R | e2281524e5eb4a1be312ab743150cc6b54a6ca91 | [] | 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 | 538 | r | plot-trajectories.Rd.R | library(bayesTFR)
### Name: tfr.trajectories.plot
### Title: Output of Posterior Distribution of TFR Trajectories
### Aliases: tfr.trajectories.plot tfr.trajectories.plot.all
### tfr.trajectories.table
### Keywords: hplot
### ** Examples
## Not run:
##D sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "... |
c5b5e06fe7678241930f67cc420886e95cc5dbbb | 33fc8a4cf2f0ba9229306d3cbd576355a6916deb | /Algorithm.R | 23d7d941646b57241e39c11476c9f2f2ff8eb198 | [] | no_license | sagaraa/Unnati | a3762a66bb6faecc0f7db967599ec15848827c61 | 64d40ea985f0547212d9cc8949b72c3226b570b1 | refs/heads/master | 2021-01-21T20:08:20.355644 | 2017-05-23T17:08:29 | 2017-05-23T17:08:29 | 92,198,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,082 | r | Algorithm.R | unnati = read.csv("all_unnati.csv")
test = unnati[unnati$Status == "New",]
train = unnati[unnati$Status != "New",]
train$StatusValue[train$Status == "Enrolled"] = 1
train$StatusValue[train$Status == "Interested - Call Back"] = 1
train$StatusValue[train$Status == "Closed"] = 0
train$StatusValue[train$Status == "FollowUp... |
1e047130f60c6cffa71dddff920152a0cea2cae7 | 06d7da77c509f52f6d1629307b9c9a59ab106020 | /Rcode/03-preprocessing.R | b5f5c5e05a7c5d557fcc947b8b0ed2a2a4fdf278 | [] | no_license | happyrabbit/CE_JSM2017 | b823883d01c7787a77e424aa099464564005aedc | bddf17356b156c41bfe948ce6f86ee2d1198e4f8 | refs/heads/master | 2021-01-17T12:00:37.183957 | 2017-07-31T21:19:07 | 2017-07-31T21:19:07 | 95,393,608 | 8 | 4 | null | 2017-07-06T16:18:56 | 2017-06-26T00:27:40 | HTML | UTF-8 | R | false | false | 4,730 | r | 03-preprocessing.R | ### -----------------------------
### Hui Lin
### @gossip_rabbit
###
### http://scientistcafe.com
### -----------------------------
## Data Preprocessing
## -----------------------------
sim.dat <- read.csv("https://raw.githubusercontent.com/happyrabbit/DataScientistR/master/Data/SegData.csv ")
summary(sim.dat)
# s... |
4cb5c9b5e650d2dd14d1bcf29eccf12370375f4b | 1611e65477a0da49c4d36a2b65c07b121362e55e | /pkg/R/read_ess_report.R | bca13f61346a34b60b2e26b97b369d29fc7c1186 | [] | no_license | olavtenbosch/validatereport | 9ee51659f9f5e35ba5ee91e1fd45a38b6686237b | 2058efd3ce66cce4a9001449f08a441b0b2a9a35 | refs/heads/master | 2021-09-05T18:47:12.135905 | 2018-01-30T10:55:11 | 2018-01-30T10:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,524 | r | read_ess_report.R | #' @import rmarkdown
{}
#' Receive ESS json schema definition string.
#'
#' @note Currently only version 1.0.0 is supported.
#'
#' @param version \code{[character]} Version of reporting scheme.
#'
#' @references
#' M. van der Loo and O. ten Bosch. Design of a generic machine-readable
#' validation report structure.... |
23fcc68aa9d180ab33da10d1113af7482a33c898 | 5cd2e7251a1f3f2e5b3bb595ec147c05fe8b4fba | /workshop_scripts.R | e0345bef2afe06d3f218b5e03495a115be868c37 | [] | no_license | hshsl-training/R-workshop | 2f6c039d5ef9b1093bbe5319135fb945213c7080 | f6a0d4255325bd95a9ff6408843d3571183e1393 | refs/heads/master | 2021-01-10T10:12:20.663583 | 2016-03-01T17:07:03 | 2016-03-01T17:07:03 | 52,875,724 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,620 | r | workshop_scripts.R | x <- 4
y <- 5
z <- x + y
z
example("read.csv")
help.search("knit")
example("knit")
newV <- 1:10
newV
class(newV)
newV * 2
newW <- c(1:10, 4)
newW
help(c)
write.csv(newW, file="newW.csv")
list.files()
inTheFlesh <- read.csv("newW.csv", header = F)
View(inTheFlesh)
#
# Use the diamonds data to show basic exploration ... |
12f973d137c3b717b2e5bde5d568d4c22a7879bd | db4ab344e60cbbbd9a726dc8e84db32018dcb2e8 | /man/ncaa_schedule_info.Rd | 59cbedd0f044007429d9d803bb646a27a21b1641 | [
"MIT"
] | permissive | robert-frey/baseballr | 8491c93a9c1fdf74c74a75c3a6e2ebb65a7862e8 | 060cd8b18c080cbb50fae444460a4c0a4db175e9 | refs/heads/master | 2023-03-09T17:21:52.013535 | 2023-02-24T18:06:56 | 2023-02-24T18:06:56 | 248,656,064 | 3 | 0 | null | 2020-03-20T03:04:29 | 2020-03-20T03:04:29 | null | UTF-8 | R | false | true | 991 | rd | ncaa_schedule_info.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ncaa_schedule_info.R
\name{ncaa_schedule_info}
\alias{ncaa_schedule_info}
\title{\strong{Get Schedule and Results for NCAA Baseball Teams}}
\usage{
ncaa_schedule_info(teamid = NULL, year = NULL)
}
\arguments{
\item{teamid}{The team's unique N... |
83263f0442e8cb44ad8d3418fd4ee25d4d74af1f | de8eece112a5bdd437b2a2baad8a59a2380ec36f | /course5/assignment1/assignment1.R | 51b51a6b2b0d480a6ef24b9ce717eeb00bed8925 | [] | no_license | anthonylst6/datasciencecoursera | 58e536f25bf98ec0b95a2a200e9c52176aa7e878 | 87e44fb2f10acd66818292832148863d884af7ab | refs/heads/master | 2020-08-07T19:43:59.446528 | 2020-03-01T09:04:54 | 2020-03-01T09:04:54 | 212,740,406 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,017 | r | assignment1.R | library(ggplot2)
library(dplyr)
# Loading and preprocessing the data
data <- read.csv("activity.csv", header = TRUE)
# What is mean total number of steps taken per day?
data1 <- data %>%
group_by(date) %>%
summarise(steps_total = sum(steps))
ggplot(data1, aes(steps_total)) + geom_histogram(bins = 10) ... |
68b98d790b0b79fe9299c74d78bfe700d0aaa6e4 | 9c20dfe75c41283db15d80bef6ff60fbf4cb5255 | /Sol_and_mason_writing_a_function_AUG22.R | eb4bf491d1c08fe01f8f124f42db26350994f789 | [] | no_license | kristyrobledo/CodingConundrums | c9eadaa313afa5e04e47ecf5e016936b9bee328b | 7713b19a28774c75b9ae0e48b8ff7d648a40d278 | refs/heads/master | 2023-08-04T11:30:56.604221 | 2023-07-27T03:02:00 | 2023-07-27T03:02:00 | 237,126,082 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,165 | r | Sol_and_mason_writing_a_function_AUG22.R |
library(tidyverse)
library(dplyr)
# why make a function?
# often when we're writing script we find a chunk of code
# we want to repeat over again with new input
# instead of having to write the code over and over again
# we can put that code in a function, then with the function
# you do not need to rewrite the co... |
4f5cb51718afec87ec94a1a34062d8505e851785 | 0648e4a6470f4f7bdd324a55ae03ac723092d7f7 | /R/DataSetCreation/combine_sets.R | 9920a5e32eabdd30a6fa7161b7908b294412c0f5 | [] | no_license | icklerly/assignment_11 | babe14a5e2e240f76ad43d2ee515b4d6fc8600ad | 799b5a0327f2ea7d3191db81a74a6cd0da111a3a | refs/heads/master | 2021-01-10T10:16:59.343262 | 2015-10-11T22:11:33 | 2015-10-11T22:11:33 | 43,315,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 742 | r | combine_sets.R | methyl<-read.csv("/Users/icklerly/Desktop/UNI/PROJECT/data/completed_methyl_Set.csv",sep="\t",header=T)
mRNA<-read.csv("/Users/icklerly/Desktop/UNI/PROJECT/data/mRNA_Set.csv",sep="\t",header=T)
for (i in 1:516){
rownames(mRNA)[i]<-paste("BRCA+",strsplit(rownames(mRNA)[i],"\\+")[[1]][2],sep="")
}
#merge the two data ... |
22e8771b54c8e7fb1c7af6dc3ca0bd1167f1d4bb | c6ed09339ff21fa70f154f34328e869f0dd8e394 | /blog/20171212/mxnet_R/iris_hnn.R | 1487430e3df9cf5255b061f0522668453d96b5c7 | [] | no_license | fits/try_samples | f9b15b309a67f7274b505669db4486b17bd1678b | 0986e22d78f35d57fe1dd94673b68a4723cb3177 | refs/heads/master | 2023-08-22T14:35:40.838419 | 2023-08-07T12:25:07 | 2023-08-07T12:25:07 | 642,078 | 30 | 19 | null | 2022-12-28T06:31:24 | 2010-05-02T02:23:55 | Java | UTF-8 | R | false | false | 805 | r | iris_hnn.R | library(mxnet)
train_size = 0.7
n = nrow(iris)
perm = sample(n, size = round(n * train_size))
train <- iris[perm, ]
test <-iris[-perm, ]
train.x <- data.matrix(train[1:4])
# 0-2
train.y <- as.numeric(train$Species) - 1
test.x <- data.matrix(test[1:4])
# 1-3
test.y <- as.numeric(test$Species)
mx.set.seed(0)
model... |
48529ea1ec81329d6b5eab44137984c893463429 | 20bf2aace1538884b136f45a4bf8b8bc55488757 | /man/flag_variants.Rd | 9407d0a4cc2bde56830beef8bb5bde3ed2cb9361 | [
"MIT"
] | permissive | annaquaglieri16/samplepower | 9e1df31348c316e724962004e6f655708ed2b641 | 976df30813faf9cedd3621f3bf073909b9526301 | refs/heads/master | 2020-04-01T00:06:05.889841 | 2019-11-05T03:08:13 | 2019-11-05T03:08:13 | 152,682,047 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,370 | rd | flag_variants.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flag_variants.R
\name{flag_variants}
\alias{flag_variants}
\title{Flag and annotate variants using external databases and panel of normals information}
\usage{
flag_variants(variants, normal_variants, flag_patterns, exon_ranges,
homop_range... |
a9a2a1c28583717e47adac43039c9746a5218683 | 1802ce06d84e890fb5e38dafcf8444fa75e9c957 | /logRank1s.Rcheck/00_pkg_src/logRank1s/tests/testthat/test_power.R | dfd13bf4d3b89eebd66517f17e6bff25656846bf | [] | no_license | XiaomengYuan9709/logRank1s | 0f29f1c6e440ef88283b3971ad8a4d3cef4714c8 | d8f5660c87aaf61c016b8b1895eaef9277bdfa22 | refs/heads/main | 2023-02-05T01:19:15.549476 | 2020-12-28T17:20:01 | 2020-12-28T17:20:01 | 319,453,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 177 | r | test_power.R | test_that("test if f function is correct", {
expect_equal(power(alpha = 0.05, n = 88, ta = 5, tf = 3,
m0 = 9, delta = 1/1.75, k = 1.22), 0.803)
}
) |
70b24a7ec68c29ca5386a0b193cb225bd7ea4c4b | 2b5c9578a769743cd993e449e19039486c3416b7 | /calc/old/analyses_anes.R | 2d8a83f993912aa978d38342b6556b45525d579b | [] | no_license | pwkraft/knowledge | 3eebd4d8205058c7b9aed92405f0ee6caeb4d7cc | 71d6dd6f82c017d32aca93dd2bd2106cbf46ee64 | refs/heads/master | 2023-07-07T10:30:41.230585 | 2023-07-04T08:18:39 | 2023-07-04T08:18:39 | 55,650,963 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,745 | r | analyses_anes.R | ### ============================================================= ###
### Measuring Political Sophistication using Open-ended Responses ###
### Patrick Kraft ###
### ============================================================= ###
## main ANES analyses for paper + presen... |
e569bdd783cd25ab6c80ae07580e21ea5c86dc37 | 9fc1b9975e2002ca3916ae02108d90962f5d2090 | /Gibbs_sampling_model.R | 52467a22576d59538e144f3a637fd2e78f392c61 | [] | no_license | sarcusa/varveR_Gibbs | 1391effa759258ceb3fce6d5ee72c39fbfe67597 | da1e89b9e8435e4534220baf3795b171a54d20bf | refs/heads/main | 2023-04-16T01:26:34.341906 | 2021-12-10T06:01:12 | 2021-12-10T06:01:12 | 301,879,865 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,712 | r | Gibbs_sampling_model.R | ######
# Original gibbs model algorithm for one observer. Best to run this not too many iterations.
#
# S. Arcusa
# 17-04-2020
lpdfile = "" # LipD file for COlumbine Lake. Available at https://doi.org/10.6084/m9.figshare.14417999
Obs3dir_172 = "" # Location folder containing data from observer 3 core COL17-2. Data av... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.