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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
167395623dc0cc3f89882fd6bd2da67801c28e80 | 357c61695c0b2885916745226b5d0dc7408766c0 | /BAMMtools/R/arc.R | f2afaddda3b13a4829f9072c74d56d3b2370b379 | [] | no_license | macroevolution/bammtools | 62b4f9c6dd20ea37d1df6b7dd75d10967a8f3e75 | 07a17d8260a9e17419ca4bbc27687b4b6a7164be | refs/heads/master | 2022-11-22T15:11:11.336582 | 2022-11-11T17:08:43 | 2022-11-11T17:08:43 | 17,520,404 | 7 | 7 | null | 2016-05-05T21:09:28 | 2014-03-07T16:42:06 | R | UTF-8 | R | false | false | 1,700 | r | arc.R | ##################################
# Internal function called by plot.dtrates(...)
# Arguments:
# x,y = coordinates of center of curvature of arc, e.g. (0,0)
# theta1 = initial theta of arc (radians)
# theta2 = ending theta of arc (radians)
# rad = radius of arc
arc <- function(x,y,theta1,theta2,rad,border,...)
{
... |
e6dc6f0e90802635192c9923ea5bee585cc0c491 | 257a9d151f700a429b79a7d8a34fb1298b807cf2 | /FinalAssignmentR.R | 09f3eee3da807926b6fc9dc4d970a174bf4606a8 | [] | no_license | jmepstein/mammalian_body_size | bc322d4910a6f6cd7a02487d3f4df528a91ec6b3 | c13f7ef26223e64ca1f252a1e9b5d9055ec34f59 | refs/heads/master | 2021-01-10T09:53:39.834737 | 2015-11-13T19:53:12 | 2015-11-13T19:53:12 | 46,136,109 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,342 | r | FinalAssignmentR.R | # R Assignment 8 (Final Assignment)
#Installing and loading packages:
install.packages("dplyr")
library(dplyr)
#Importing mammal body size data:
mammal_sizes <- read.csv("MOMv3.3.txt", header=F, sep = "\t", na.strings = "-999",
stringsAsFactors = F)
head(mammal_sizes)
#Adding column names to... |
5c0c8c1e3a9b5819d2f672689683794d95f61544 | 896e730c38dcc06bc34c57032309d6c3faaae656 | /plot3.R | d8e480be31a75de66cfb472108acc41019fca797 | [] | no_license | elfatherbrown/ExData_Plotting1 | 0c6a2aa4520b8d530c770dfb6675d5f7a76c37b2 | 1064b0ddfcb4efc50a20d1259de6a2585c14cdcb | refs/heads/master | 2020-06-03T04:22:18.557776 | 2019-06-11T23:43:14 | 2019-06-11T23:43:14 | 191,436,203 | 0 | 0 | null | 2019-06-11T19:23:20 | 2019-06-11T19:23:19 | null | UTF-8 | R | false | false | 753 | r | plot3.R | source("./downloadandpresent.R")
png(
file = "plot3.png",
bg = "white",
width = 480,
height = 480
)
rd <- d
rd$fulltime <- with(d, ymd_hms(paste(Date, Time)))
rd <- rd %>% select(Date, Time, fulltime, contains("meter"))
plot(
rd$fulltime,
rd$Sub_metering_1,
col = "black",
type = "l",
xlab = "",
yla... |
684e50ab8821ef3137d0c1580868964f17ab564b | 12b690443ef108af4758e216952f0b3e154d77aa | /org/koyck/koyck.data.R | a0b9758b1a4efafe886f8548a3fbead251232232 | [] | no_license | FinancialEngineerLab/new_org | 55ab854f6d28e4052ad46c3f6041070e13fefb03 | fb1e42cc5e300ecb32c2fa30ddbc9fef37182c64 | refs/heads/main | 2023-02-25T03:16:00.969189 | 2021-02-01T06:57:50 | 2021-02-01T06:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,694 | r | koyck.data.R | alpha <- -1.25
beta <- 0.75
lambda <- 0.6
sigma <- 0.5
t <- 200
T <- 200
x <-
c(0.0530897649405518, -0.427176340746955, 0.575506045064776,
-1.05503057032362, -0.00138425373659317, 0.362367184144129, -0.906400668762085,
1.39464604836768, -1.40047244298115, -0.872458836353285, -0.425555167755021,
-0.192907289991263, 0.6... |
42ac1de820a9d62881ec15daec44cc17818c0876 | 4b79446af819574bee58d92a97638efd900fe6fd | /RandomForest_parit.R | 3477d0773d95ce4b3c869d86ebc79c19ffeae723 | [] | no_license | shoili/soccerdatamining | ea54b4e55d8993b057a3b1eba63ced726d159b1f | d1bcdc6477613092d24ecf8eee29e72064cc72ce | refs/heads/master | 2021-03-27T16:36:27.217080 | 2017-07-17T12:55:24 | 2017-07-17T12:55:24 | 84,890,208 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,430 | r | RandomForest_parit.R | setwd("C:\\Users\\Parit\\Desktop\\Classwork\\Georgia Tech\\Spring 2017 work\\ISyE 7406 - Data Mining and Statistical Learning\\Project")
data <- read.csv('soccer_4_14.csv',header=TRUE)
y <- data$home_team_goal - data$away_team_goal
y[y>0] <- 1
y[y<0] <- -1
data1<-data
data[,c('home_team_goal','away_team_goal','Go... |
c7b12be9bdfde3bde1498de37460b14e560129df | 9eeabfd860248fd8a24044c80c44ccfca6280f29 | /UI.R | e44921c535e599ed6f9cd7d2553023126226cd92 | [] | no_license | katywren/FAIR_Shiny | 57d3a3a78920248b03038ae34d2d0187462dc31c | 25e35fb0d4c82812c87e245cb5d84c21fb34782a | refs/heads/master | 2020-08-17T03:49:37.340014 | 2019-10-16T19:57:48 | 2019-10-16T19:57:48 | 215,602,948 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,091 | r | UI.R | ui = navbarPage("FAIR EU Recommendations App",
tabPanel("About",
mainPanel(h2("Stakeholder App"),
br(),
p("In 2018, the EU produced the document ",
a("Turning FAIR into Rea... |
aa8f7d92d8b2c3ecebfa76f017216239c4af2b73 | 79c36961decb27e9fe6d3fe5ce6f185cce5c680d | /man/searchFrames.Rd | 3ead052cb2189102dae3910e1cb9d60a7506acec | [] | no_license | lkumle/PreProcessingDistractor | efe09db7bf23eddcd82978f4b85b408c7b391101 | 9034b176899092c89e1db69da7a698b20a71da41 | refs/heads/main | 2023-08-25T01:03:29.038851 | 2021-11-03T00:32:39 | 2021-11-03T00:32:39 | 424,042,533 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 341 | rd | searchFrames.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/searchFrames.R
\name{searchFrames}
\alias{searchFrames}
\title{Read in data files for Object Sorting Task in VR.}
\usage{
searchFrames(df_main, cutoff = 10)
}
\description{
Does not explicitely return data but assigns it to global variable in... |
e5ce97a4e3d6c32b3928766be3de6b629631b8fb | c7e1c0014b9e279e9f38a763e4f2ad1ddd260194 | /R/data_description.R | 9332799a93a0d8f694cacdfcabdd6765c5fa33f2 | [] | no_license | ipstone/germVar2 | 476d5081183044520d8b658300bbc0fd9b8f0a0f | f7bc89f46d8b88e11a3972f47201c5ae42ece12e | refs/heads/master | 2020-04-08T16:34:38.600777 | 2015-08-19T18:45:19 | 2015-08-19T18:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,483 | r | data_description.R | #' Clinical info of 8852 TCGA patients
#'
#' A dataset containing the attributes of 8852 TCGA patients . The variables are as follows:
#'
#' @format A data frame with 8852 rows and 11 variables
#' \itemize{
#' \item Patient.
#' \item disease2.
#' \item age. Age at diagnosis.
#' \item agez. Standardized a... |
095e2fc8e3296a61b9c17949106fb3ccb13519f9 | 5501ebe1bb155819a4e4c103db6a2714aff9998f | /global.R | 06d6be6c8a10827e5a417fbcb72e816d0651fb46 | [] | no_license | yannickkk/tirages_tiques | 2eb4a03648282b5585c882141c5fdfcae092be9c | 5c2d6cb2fc438a6aa05fb8566a5b74646864f007 | refs/heads/master | 2020-03-20T00:21:23.012912 | 2019-11-06T17:16:04 | 2019-11-06T17:16:04 | 137,040,708 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 163 | r | global.R | library(shiny)
library(shinythemes)
library(DT)
library(dplyr)
library(shinyBS)
library(shinyTime)
library(RPostgreSQL)
library(shinyalert)
library(chron) |
9a6f3fc7917fd6a88dbf889f55f6cfa7dee74b80 | d1030a067b465a5604fc2dae84ca75820bfe0943 | /Capitulo2/Ejemplos/Ejemplo1.R | a95b46a92be593eefe3866d7ab37a23c30c22d1f | [] | no_license | DanielCarmine/TareaLibro | 62431577e297fcbcd84417e092d764dc97e31dd2 | d760c955c86424e6e8f0ed3e6a0c994b785e97c0 | refs/heads/master | 2020-12-20T02:57:06.530510 | 2020-02-03T02:12:27 | 2020-02-03T02:12:27 | 235,940,071 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 50 | r | Ejemplo1.R | library(MASS)
library(car)
plot(UScereal, las = 2) |
e1da2d2001e04ac020a38f6d51516e894a18dbef | c7e9a7fe3ee4239aad068c6c41149a4a09888275 | /OLD_GALLERY_RSCRIPT/#126_add_a_segment_to_a_plotly_graph.R | 3d00ef9723e0d7913835a3d39397dfbe7e2209b8 | [
"MIT"
] | permissive | holtzy/R-graph-gallery | b0dfee965ac398fe73b3841876c6b7f95b4cbae4 | 7d266ad78c8c2d7d39f2730f79230775930e4e0b | refs/heads/master | 2023-08-04T15:10:45.396112 | 2023-07-21T08:37:32 | 2023-07-21T08:37:32 | 31,253,823 | 591 | 219 | MIT | 2023-08-30T10:20:37 | 2015-02-24T09:53:50 | HTML | UTF-8 | R | false | false | 1,137 | r | #126_add_a_segment_to_a_plotly_graph.R |
# -----------------------------------------------------------------------------------------------------------------------------------------------------
#126 : Add a segment to a plotly graph.
# Let's start by charging the plotly library and having a look to the iris dataset that we will use.
library(plotly)
Sys... |
a1d4d2415ce1a8c3d941e18f466329f0af8e61d6 | 65f970d1ea3f922b13ac155f84783e8a2173a3cc | /man/shinycopy.Rd | 6aa0992341d53803459e222da17659620d4a7e39 | [
"MIT"
] | permissive | kasperwelbers/shinyBZpers | b7cc2e076e749a3e8f68063f371b1190cf7f38b3 | 17e7d1970c72790de017e2c9718a9c88f6e6274f | refs/heads/master | 2021-07-08T07:01:57.728858 | 2021-06-29T06:31:33 | 2021-06-29T06:31:33 | 237,210,903 | 0 | 1 | NOASSERTION | 2021-04-12T16:58:26 | 2020-01-30T12:42:55 | R | UTF-8 | R | false | true | 221 | rd | shinycopy.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_app.R
\name{shinycopy}
\alias{shinycopy}
\title{Run the Shiny Application}
\usage{
shinycopy()
}
\description{
Run the Shiny Application
}
|
e2cbc9d4ad1850ad24220ddc6788f6030dfa9b30 | 2f090b2feaff63f96269a09197797dd692df77e3 | /man/blockDiag.Rd | ac7f1b0414d8c89f8d2d832d9ffaab0fffe00f5c | [] | no_license | rjbgoudie/utils.rjbg | 6d17f8189ec5934c76d82c4c717e622b4c8f22cb | 8691850461ce9c9066d6e6e3bcea11e76e626521 | refs/heads/master | 2021-01-17T17:15:23.075727 | 2014-09-08T10:48:49 | 2014-09-08T10:48:49 | 63,424,890 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 195 | rd | blockDiag.Rd | \name{blockDiag}
\alias{blockDiag}
\title{blockDiag}
\usage{
blockDiag(nr, nc, sample.size)
}
\arguments{
\item{nr}{...}
\item{nc}{...}
\item{sample.size}{...}
}
\description{
...
}
|
fd6ab7fc4a066c5469fd480cc72bf0e92c4fd17b | 1451c80d0462f459c9ebb34d9c7cc325fb6a8875 | /src/plot_kha.R | f8ac5e7af01755c2dbe3af6efa6a245dabfd7511 | [] | no_license | TomHarrop/asw-nopcr | b1ddc2111bc373bdf64837c389cb5344106192d6 | 8c7e3ba6a6790654ff2bdf22bfb2f5f6759e699f | refs/heads/master | 2021-01-19T20:54:28.797777 | 2020-08-04T02:07:22 | 2020-08-04T02:07:22 | 88,576,094 | 0 | 0 | null | 2020-06-19T02:25:08 | 2017-04-18T03:13:50 | Shell | UTF-8 | R | false | false | 3,126 | r | plot_kha.R | #!/usr/bin/env Rscript
# set log
log <- file(snakemake@log[[1]], open = "wt")
sink(log, type = "message")
sink(log, append = TRUE, type = "output")
library(data.table)
library(bit64)
library(ggplot2)
library(scales)
###########
# GLOBALS #
###########
hist_before_file <- snakemake@input[["hist"]]
hist_after_file <... |
641e0f84ee7c26efd6f717165120b402b8beb9a8 | 657f8f17907fef8a6ebf11355ce37e6ed85a9890 | /man/rowr.Rd | a04e64ae73d749ea6066782f8925ccc2e4327bc7 | [
"MIT"
] | permissive | jimjunker1/junkR | d34c935d266b845cb4fe01fc23243510ed46ea07 | 136f1d7234828a1a35e15942e10fb892645afe3a | refs/heads/master | 2022-05-08T16:25:48.013811 | 2022-04-01T16:15:22 | 2022-04-01T16:15:22 | 165,153,893 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,089 | rd | rowr.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rowr.R
\name{rowr}
\alias{rowr}
\title{Row-Based Functions for R Objects}
\description{
Provides utilities which interact with all R objects as
if they were arranged in rows. It allows more consistent and predictable
output to common functio... |
c98337637bbd270814b39aa7b4a9edd8693d42a1 | e983d6616614cb0b9ea5e2de6399480ebff96052 | /man/hbrplot.Rd | d2a4ae1fcc4808e37c58db2f6315f5c962230ea5 | [] | no_license | CerebralMastication/hbrplot | 79972f11fb301364d558eb9252338b3a0191d99e | 877c245939ce6877fef5772c79ea6f5d359c59ff | refs/heads/master | 2021-12-29T18:58:24.538537 | 2021-12-22T13:53:23 | 2021-12-22T13:53:23 | 155,118,978 | 8 | 4 | null | 2018-10-31T20:33:52 | 2018-10-28T21:48:19 | R | UTF-8 | R | false | true | 1,021 | rd | hbrplot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hbrplot.R
\name{hbrplot}
\alias{hbrplot}
\title{Produce a glorious HBR style 2x2 plot}
\usage{
hbrplot(items = LETTERS[1:15], quadrants = c("one", "two", "three",
"four"), x_labels = c(""), y_labels = c(""))
}
\arguments{
\item{items}{A vec... |
d411c8c11af7f92046b2ceb39876d1da3e1d17e7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/FSA/examples/chapmanRobson.Rd.R | b3a726ba76a7a5bc8191baa31f8278579accef06 | [] | 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 | 979 | r | chapmanRobson.Rd.R | library(FSA)
### Name: chapmanRobson
### Title: Computes Chapman-Robson estimates of S and Z.
### Aliases: chapmanRobson chapmanRobson.default chapmanRobson.formula
### plot.chapmanRobson summary.chapmanRobson confint.chapmanRobson
### coef.chapmanRobson
### Keywords: htest manip
### ** Examples
plot(catch~age,... |
99781dbd05970a2f23752d1fdd6d7cbd0f673d71 | a2fc6071ce8176f39db921d79cd9dcb27bacb6da | /R/textInputRow.R | b0a0f1e1a99b9942effbdacd103a39082e19ce18 | [] | no_license | senickel/surveycleanup | bdf0298cea14493506045444589b0c392e1fbac4 | 435a02c8ed42afc467d24820930facbeae660747 | refs/heads/master | 2020-04-07T16:21:28.226489 | 2018-03-07T10:54:28 | 2018-03-07T10:54:28 | 124,221,758 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 440 | r | textInputRow.R | #' textInputRow
#'
#' check nominal if they are nominal
#' @param Click here and there
#' @keywords nominal
#' @keywords
#' @export
#' @examples
#' checking.nominal()
#' @importFrom magrittr %>%
#'
## fields side by side
textInputRow<-function (inputId, label, value = "") {
div(style="display:inline-block",
t... |
f475415f1d46a0b1543dd721c067262e3e6c3319 | 16f50a812eca90748e87bfe471e0c05f178337fd | /2do_Semestre/Biologia_computacional/introduccion.r | 84492ab5886ccc643fc382d7fe03bca243d89967 | [] | no_license | SeaWar741/ITC | 65f73365762366f56cfbd6d0bc788cd384672d12 | 5f75716be58ca6e00bcd8dae7546fd19fe37657f | refs/heads/master | 2023-02-05T23:25:13.972031 | 2022-09-29T10:38:32 | 2022-09-29T10:38:32 | 205,020,772 | 4 | 2 | null | 2023-01-19T15:28:45 | 2019-08-28T20:48:35 | Jupyter Notebook | UTF-8 | R | false | false | 807 | r | introduccion.r | a <- 10
b <- 20
a
b
#operaciones basicas
a==b
a<b
a>b
a+b
a+5
#numerica
x <-2
x
x <- 4+3*5^2
x
#caracter
x <- "TP53"
x
x<-letters[26] #en R inician desde 1 los arrays
x
#boolean
x <- 3 ==3
x
x<-4==5
x
x<-4==3+1
x
#funciones
x<- exp #funcion exponencial
x(log(5))
x<-max
x(c(1:4))
trunc(5/2)
a = TRUE
b = FA... |
06ee0a27a4f706b7fefe41e51afde68fb2db0e27 | cc303f4de5eeb3bc4530a52dd963190675a8f9f4 | /scripts/eems_grid_dist.R | d0593a35ae407faedb3ffcccdac69965f418b75b | [] | no_license | NovembreLab/eems-around-the-world | 6bfc5b30d6ce4bc2277b16dc52bbb6e63eaf8809 | c1443ef034f447cc41e1ff90c3b067e04d6f8fa0 | refs/heads/master | 2021-03-27T12:37:14.705011 | 2019-10-23T23:47:45 | 2019-10-23T23:47:45 | 55,014,895 | 14 | 7 | null | null | null | null | UTF-8 | R | false | false | 502 | r | eems_grid_dist.R | library(dplyr)
library(reshape2)
require(fields)
require(readr)
require(abind)
D <- snakemake@input$mat
outname <- snakemake@output[[1]]
statname=snakemake@params$statname
#load mats
l <- lapply(D, read.table)
l[['along']] = 3
a <- do.call(abind, l)
dmat <- apply(a, 1:2, mean)
rownames(dmat)... |
83bee79d90646968b6dbdfc78d185f8dcf0590fa | 80e67f800de8107de6aa06b0d0e3613cc0fd8366 | /Residual Analysis.R | d82d9cf6228e6a3375c470086b9d213d9c818c70 | [] | no_license | khurram6968/Residual-Analysis | 201f82ace61c75f62f2cbd6c29702be43626d879 | fb7a56f3abd5505aad1434a3ff2582080a301187 | refs/heads/master | 2020-03-30T08:10:11.294280 | 2018-10-01T18:14:02 | 2018-10-01T18:14:02 | 150,994,712 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,601 | r | Residual Analysis.R | #Residula Analysis
#Here i use cars data in R
lm_model=lm(dist~speed,data=cars)
lm_model
#We can check heterosedasticity in the models there are two ways:
#1-Graphically
#2-Through Statistical Test
###1
par(mfrow=c(2,2))#to set graph in one panel 2row and 2col.
plot(lm_model)
#If there is no hetroscedasticity... |
daf239a0f8add01d1879c2ad4a6637d6f9b531d2 | afae537bcbbbfea2b260f431a0a3ed50f447a515 | /results/.ipynb_checkpoints/utils-checkpoint.R | db46f801630228d6a7aeb06e40ec145b2b258d0d | [
"MIT"
] | permissive | lgarayva/ex-modulo-3-comp-matricial-svd-czammar | 2adab9c33eeb76173a8dbea9609febb0c4f2d83c | c070ad3a2c57c0c02059c460dd6b73d803eebe5d | refs/heads/master | 2022-04-17T22:17:14.176329 | 2020-04-19T18:09:56 | 2020-04-19T18:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,629 | r | utils-checkpoint.R | ### 1.1 Generación de índices
indices <- function(n) {
# Crea una lista de tamaño (n-1)n/2 con pares de índices de la siguiente
# manera: (1,2),..,(1,n),(2,3),..,(2,n),...,(n-1,n)
# Args:
# n (int): número entero postivo
# se refiere al número de columnas de una matriz
#Returns:
# lista con... |
3a0f17abd75d4300c17abd08a4760a0f8a86c017 | 360df3c6d013b7a9423b65d1fac0172bbbcf73ca | /FDA_Pesticide_Glossary/flumetsulam.R | f724e55b9bb98bbc71741d7ba96fab1c24611994 | [
"MIT"
] | permissive | andrewdefries/andrewdefries.github.io | 026aad7bd35d29d60d9746039dd7a516ad6c215f | d84f2c21f06c40b7ec49512a4fb13b4246f92209 | refs/heads/master | 2016-09-06T01:44:48.290950 | 2015-05-01T17:19:42 | 2015-05-01T17:19:42 | 17,783,203 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 222 | r | flumetsulam.R | library("knitr")
library("rgl")
#knit("flumetsulam.Rmd")
#markdownToHTML('flumetsulam.md', 'flumetsulam.html', options=c("use_xhml"))
#system("pandoc -s flumetsulam.html -o flumetsulam.pdf")
knit2html('flumetsulam.Rmd')
|
fcfdd228499aeced5c7a566de55912b28573664b | a47ce30f5112b01d5ab3e790a1b51c910f3cf1c3 | /B_analysts_sources_github/jennybc/r-graph-catalog/fig05-08_monterey-bay-aquarium-data-mosaic-plot-preliminaries.R | e3399571a02f2a7f4fd63fa4b625f7a0ad155fc1 | [] | no_license | Irbis3/crantasticScrapper | 6b6d7596344115343cfd934d3902b85fbfdd7295 | 7ec91721565ae7c9e2d0e098598ed86e29375567 | refs/heads/master | 2020-03-09T04:03:51.955742 | 2018-04-16T09:41:39 | 2018-04-16T09:41:39 | 128,578,890 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,614 | r | fig05-08_monterey-bay-aquarium-data-mosaic-plot-preliminaries.R | ## NOTE: THE DATA USED WAS ESTIMATED, WE DID NOT HAVE ACCESS TO THE
## RAW/ORIGINAL DATA.
library(ggplot2)
library(plyr)
library(reshape2)
library(gridExtra)
this_base <- "fig05-08_monterey-bay-aquarium-data-mosaic-plot-preliminaries"
my_data <- data.frame(
time = c("S", "M", "L"),
dont_like = c(20, 7, 1),... |
e104a9e7dc4812572686434103897704de528205 | 7ae05409cd3e2c2224500c9ea2f0aa37987c1984 | /results/star_salmon/rseqc/read_duplication/rscript/WT_REP1.DupRate_plot.r | f9cf7df0243c68ca8b53f9a6fa61545de687cfc4 | [] | no_license | Mufeedmk4/ag-intro | 9aceaf34bf9068e7faa6025c525c86cdecbfe76e | d07ea026c11ee4833e88704b6c92d523759187e2 | refs/heads/main | 2023-06-04T22:50:10.211141 | 2021-06-22T16:54:51 | 2021-06-22T16:54:51 | 372,893,244 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,525 | r | WT_REP1.DupRate_plot.r | pdf('WT_REP1.DupRate_plot.pdf')
par(mar=c(5,4,4,5),las=0)
seq_occ=c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,... |
dfbc7ddfc8da147eed765bb0a622cf40f0a15ae5 | c484d8f11ab6af74f8da0303dffac019f1aacdb2 | /script/aggregate_clean_phys_data.R | 31c2459d3fb2ab81f574a1978437f0b0d3ea5f81 | [] | no_license | nthun/nightmare_and_ans | ea343f485e5c15111f0e130f426e02a4e8212aa3 | d473a34f4be3a2e948f23843b4621a607c2cdf33 | refs/heads/master | 2021-04-03T03:01:12.116418 | 2018-09-28T16:38:25 | 2018-09-28T16:38:25 | 124,545,367 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,264 | r | aggregate_clean_phys_data.R | # Create one single clean file for the aggregated ECG and SCR data
dir = "all_data/converted/"
ecg_pattern = "_ECG.txt"
scr_pattern = "_SCR.txt"
# Aggregate all ECG data and write it in a single file
all_ecg <-
tibble(file = fs::dir_ls(dir, regexp = ecg_pattern)) %>%
mutate(name = str_replace(file, str_glue(... |
1e8947b71d0d6e8ec51c8f3b25a8e22cbb7bbeb5 | 9562a04eab487d910505119a8d82c6c202273fb8 | /man/wordmargin.Rd | af049f90d28675f132b7dad5112b80ccf18b1b4c | [] | no_license | markwestcott34/austin | 847217831ce01b292cee8bc0a232e71c9a79116f | df1fa1271e01fce0a0d94e9ca5ff53c56b0d52a2 | refs/heads/master | 2021-01-23T04:10:15.423556 | 2017-05-31T07:55:29 | 2017-05-31T07:55:29 | 92,919,749 | 0 | 0 | null | 2017-05-31T07:51:38 | 2017-05-31T07:51:38 | null | UTF-8 | R | false | true | 511 | rd | wordmargin.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wfm.R
\name{wordmargin}
\alias{wordmargin}
\title{Which margin holds the words}
\usage{
wordmargin(x)
}
\arguments{
\item{x}{a word frequency matrix}
}
\value{
1 if words are rows and 2 if words are columns.
}
\description{
Checks which margi... |
f04290c5dade19e3f8e88fc03a99d1fa348b81ef | dbbc22c755b067dc2a494d1a3db27ae72186cda7 | /man/gRbase-utilities.Rd | 532086b541203833303a4212cdf352baa8756b92 | [] | no_license | velanati/gRbase | 084ca847256ad9e304847c2900e012130cf12d3f | 8f2ba1cc85a429a424e4259d006d7610927c4793 | refs/heads/master | 2021-01-22T16:25:16.328910 | 2015-08-21T00:00:00 | 2015-08-21T00:00:00 | null | 0 | 0 | null | null | null | null | ISO-8859-15 | R | false | false | 1,701 | rd | gRbase-utilities.Rd | \name{gRbase-utilities}
\alias{colwiseProd}
\alias{is_subsetof_}
\alias{get_superset_}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Utility functions for gRbase}
\description{
Utility functions for gRbase package. Includes 'faster versions' of
certain standard R functions.
}
%... |
1a4e29d4b1736f9709a8c11a02bb1aea1dcdac69 | 48d2c8117c4604e32bef0752f16447641bd82718 | /electability/R/LinearElectionModel.R | 035f92058932d59783625bac70d936a0f92451d1 | [
"MIT",
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | tmcintee/electability-2020-pub | b3334cf5ada9c74a43f5cdc9bbb5742cfef290d1 | 5dd97241c7551633890020b4a5ce92eff78dc468 | refs/heads/master | 2020-12-13T09:14:24.949548 | 2020-01-16T17:23:56 | 2020-01-16T17:23:56 | 234,372,855 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,595 | r | LinearElectionModel.R | LinearElectionModel <- function(df, ev_frame)
{
answer <- ev_frame %>%
select(State, Total.EV,Total,Democratic,Republican,Year)
answer$Variability <- 0
answer$Share.Democratic <- 0.5
answer$Share.Republican <- 0.5
answer$Weight <- 0
for(state in ev_frame$State)
{
print(state)
temp_df <- df %>%... |
0632660f3bc60c547e3f15e25e79fb6ae98b8be6 | 81c72a71a68de09c1c78b1091186f613fcbaae6e | /figure/etFlux.Fig.dT.Summer.USA.R | 18ddcdc1b59f92b5c71ffbdd8f366b507a265190 | [] | no_license | planttrt/etFlux | 4ff06ff45d7f7dfa5e59345e9c56a364f24c8d7e | 11be25df8a34b4a6aaa0e4db34414cd056ecce8a | refs/heads/master | 2020-04-20T09:58:27.754429 | 2018-06-15T20:56:06 | 2018-06-15T20:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,042 | r | etFlux.Fig.dT.Summer.USA.R | physio <- shapefile('data/physioProvinceLatLon/physioProvinceLatLon.shp')
# source('transAuxFuncs.R')
r <- sapply(dir('~/Box Sync/Home Folder/Private/DATA/DT/4K/NORM//', recursive = T, full.names = T), raster)
rng <- c(5,20)
# colList <- rev(colList.FunAndTropical)
# colList <- colList.Ideas4Homes
# colList <- colList.... |
0bcc6b6b5fa9b3638116c42c834e6fb15d9b7232 | 43a688d2c8f4fa45ac8569f48e94cc1213ddebe5 | /man/positions.Rd | 24be1bd2768ed5a54db88d340e47021b78ff2b43 | [] | no_license | cran/MaskJointDensity | a0c5316667697e7f5b79b9a6820c160f5f202db0 | 929b9710f19e2552d6a7e629a27cf3b85e5bffa2 | refs/heads/master | 2020-03-18T06:41:41.441830 | 2018-05-22T11:13:25 | 2018-05-22T11:13:25 | 134,410,302 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,175 | rd | positions.Rd | \name{positions}
\alias{positions}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Function for finding the positions of the node representing the points at which to sample from the kernel density estimate.
}
\description{
Purely used by EQsampleDensity and sampleDensity
}
\usage{
posit... |
613325071e614ef184e3b340fef07879894d6830 | 9482668bd3d152147d920c8bb252c8bc4ee04ef7 | /What.R | e5a0deb5e77c41291bdcbc6f4ef0f53a18f12c3f | [] | no_license | fredcommo/FredScript | 315ecc803a93649aa38f29d49e4ccb143be6c4cc | e618fdf893163e5a5516ae59652db1b7b9b5700d | refs/heads/master | 2016-09-07T22:45:20.572252 | 2013-06-27T01:25:36 | 2013-06-27T01:25:36 | null | 0 | 0 | null | null | null | null | ISO-8859-2 | R | false | false | 935 | r | What.R | What<-function(train,...)
{
n<-dim(train)[1]; # nombre de lignes (individus)
p<-dim(train[,-1])[2]; # nombre de v.a.
table_class<-table(train$letter); # nombre d'indiv. par classe letter
k<-dim(table_class); # nombre de classes
prop<-table_class/n # proportions (nk/n)
# centr... |
4ae41733e3aa808bcbb8c5079cae0ddc0bbfa24f | 377a111fb7585caf110377625ad0e261a44e93ed | /herbie/rj/organ.r | e0f8d859040875bfdc56de455659dc51f9a67536 | [] | no_license | gasduster99/theses | ba385499ea0a502b9067c243f7100d82ff1ef4ce | 9c5f8b5d7564292e2e36547ed8d5563a8639f158 | refs/heads/master | 2023-08-25T18:14:09.741032 | 2023-08-22T05:33:06 | 2023-08-22T05:33:06 | 217,375,576 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 243 | r | organ.r | organ = function(mixedList){
out = list()
for (j in seq(1, max(k))){out[[j]]=numeric(0)}
for(ind in seq(1, length(mixedList))){
jHat = length(mixedList[[ind]])
out[[jHat]] = rbind(out[[jHat]], mixedList[[ind]])
}
return(out)
}
|
8e5e3c63968810850ba405be5febbc7befb721e2 | 8e95e6f1e63e43abf6c37d1c30fc1dc511c68287 | /Data_prep/remove_probe_id_from_gene_subsets.R | 4b64c05b3d133d61477a6a7125a112375dc545c8 | [] | no_license | stcolema/ra_chris_wallace | d5f849e9734d0fdaf86fec99cd31ec020649cdf2 | 69bfcbc2ed9cb42039bcef45498a1357becee5a9 | refs/heads/master | 2022-12-07T12:12:39.033518 | 2019-08-01T16:10:48 | 2019-08-01T16:10:48 | 169,764,705 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 516 | r | remove_probe_id_from_gene_subsets.R |
# To remove the V1 columm from gene subset data
library(magrittr)
library(data.table)
home_dir <- "~/Desktop/ra_chris_wallace/Data/"
dirs_to_read <- c("Big_gene_set", "Med_gene_set", "Small_gene_set") %>%
paste0(home_dir, .)
for(curr_dir in dirs_to_read){
files_present <- list.files(path = curr_dir) %>%
gr... |
e219188877686c85470562487cb42a09b369be96 | 158af21f249555f32e12889c7344f06042120748 | /man/convertEnsemblToGeneSymbol.Rd | d5370b63077345db31e5e000feaba1bbf37dbe18 | [
"MIT"
] | permissive | RubD/Giotto | cd441655913246190f5097d4fbff869a9e8d7d0a | 3e6671a2512484a7b90b421b7e697d1abc2ec760 | refs/heads/master | 2023-09-01T06:21:39.024110 | 2023-04-19T14:34:40 | 2023-04-19T14:34:40 | 547,482,695 | 8 | 5 | MIT | 2023-04-04T17:56:36 | 2022-10-07T19:03:41 | R | UTF-8 | R | false | true | 641 | rd | convertEnsemblToGeneSymbol.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/general_help.R
\name{convertEnsemblToGeneSymbol}
\alias{convertEnsemblToGeneSymbol}
\title{convertEnsemblToGeneSymbol}
\usage{
convertEnsemblToGeneSymbol(matrix, species = c("mouse", "human"))
}
\arguments{
\item{matrix}{an expression matrix ... |
3c25e51a51b7a7fbc5573291c19d4fb8208faf0f | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/edgar/examples/get8KItems.Rd.R | 094b3eeeeb8dc1b2f76dc75300cc591ffdbe48b8 | [] | 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 | get8KItems.Rd.R | library(edgar)
### Name: get8KItems
### Title: Retrieves Form 8-K event information
### Aliases: get8KItems
### ** Examples
## Not run:
##D
##D output <- get8KItems(cik.no = 38079, filing.year = 2005)
##D ## Returns 8-K events information for CIK '38079' filed in year 2005.
##D
##D output <- get8KItems(cik.no = ... |
6a70b26595353a258977fed9702cb7590b1ef3df | 49d98693d18439ea60fa69b4a9e517dab49ea4a5 | /P1/nvolverorigen.R | bdc8a27428863e4f248e8bc3ed36193526feb01d | [] | no_license | VictorOrtiz0320/SimulacionComputacional | 24f2cec6c648bdc4dc1a461d272813d8f542059a | 0dcfd683b1005ff531ef99ce4b0bd66764157b11 | refs/heads/master | 2021-01-15T16:47:30.521679 | 2017-12-12T17:39:06 | 2017-12-12T17:39:06 | 99,720,927 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 855 | r | nvolverorigen.R | dur=1000
contador1=0
contador2=0
contador3=0
for (dim in 1:3) {
pos=rep(0,dim)
origen=c(pos)
contador=0
for (t in 1:dur) {
cambiar <- sample(1:dim, 1)
cambio <- 1
if (runif(1) < 0.5) {
cambio <- -1
}
pos[cambiar]= pos[cambiar]+ cambio
if (all (pos==origen)){
cont... |
c665bc31b68702cfee00414524ec5db6182fd3d6 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gets/examples/ES.Rd.R | 7ab02c97de66ef4e50711222927db57046c16175 | [] | 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 | 573 | r | ES.Rd.R | library(gets)
### Name: ES
### Title: Conditional Value-at-Risk (VaR) and Expected Shortfall (ES)
### Aliases: ES VaR
### Keywords: Statistical Models Time Series Econometrics Financial
### Econometrics
### ** Examples
##generate random variates, estimate model:
y <- rnorm(50)
mymodel <- arx(y, arch=1)
##extract... |
72969e7d70f906d8a54813159d2ab37d3c667fa7 | 8deba66229f92b0280e2a5281a71aff5a91ee8b4 | /miscellany/R_scripts/amend_wintimes.R | 112419c921f3322c9317bfd344f7b4e3874b05dc | [] | no_license | hullboy73/deepmine | e57b63734de1cb41f3e3520592e85e52450b83bc | e2f3bac3e869b7def43f97296b50ee94f22e7ffa | refs/heads/master | 2020-05-29T11:46:35.955508 | 2016-09-21T03:09:57 | 2016-09-21T03:09:57 | 68,774,609 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 519 | r | amend_wintimes.R | # amend_wintimes.R
library(dplyr)
wintimes <- age_wintimes
min_wintimes <- aggregate(wintimes$wintime, by=list(wintimes$distance, wintimes$racecourse, wintimes$raceclass), FUN=min)
mean_wintimes <- aggregate(wintimes$wintime, by=list(wintimes$distance, wintimes$racecourse, wintimes$raceclass), FUN=mean)
wintimes_95 <... |
383b1d138bb04dde074fc5c5e433ab7fd08c0e6f | 40924a950c155e3ba69b54b8e749a892cf0c1d84 | /Getting and Cleaning data/Quiz 4/1.R | c10ee9bf3405cc1f508eddb691c1eb72a20b4878 | [] | no_license | giu87/datasciencecoursera | cc7e5e21539e53d5efbef4cc7c3126994a8d08dd | f54a4f681c81b05ffc87f295d8b031eca52f822e | refs/heads/master | 2020-03-30T07:17:36.990255 | 2016-11-20T17:43:54 | 2016-11-20T17:43:54 | 19,123,973 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 239 | r | 1.R | download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv", "getdata%2Fdata%2Fss06hid.csv")
data <- read.csv("getdata%2Fdata%2Fss06hid.csv")
x <- names(data)
x_splitted <- strsplit(x, "wgtp")
print(x_splitted[123])
|
7d035cfba88e4be97b0bb8b1403ad7b8f9839b13 | e68e99f52f3869c60d6488f0492905af4165aa64 | /man/linalg_eigvalsh.Rd | db1825035277d1e99853c79c4812340957c99480 | [
"MIT"
] | permissive | mlverse/torch | a6a47e1defe44b9c041bc66504125ad6ee9c6db3 | f957d601c0295d31df96f8be7732b95917371acd | refs/heads/main | 2023-09-01T00:06:13.550381 | 2023-08-30T17:44:46 | 2023-08-30T17:44:46 | 232,347,878 | 448 | 86 | NOASSERTION | 2023-09-11T15:22:22 | 2020-01-07T14:56:32 | C++ | UTF-8 | R | false | true | 2,919 | rd | linalg_eigvalsh.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linalg.R
\name{linalg_eigvalsh}
\alias{linalg_eigvalsh}
\title{Computes the eigenvalues of a complex Hermitian or real symmetric matrix.}
\usage{
linalg_eigvalsh(A, UPLO = "L")
}
\arguments{
\item{A}{(Tensor): tensor of shape \verb{(*, n, n)}... |
ebaa430e8736f4b19053011cde5de8bff1fb5bd9 | b20d447cf7cfd90c3e295c35a21c168cd2b1c451 | /man/expected_textures_5x7_2x3.Rd | 74c7f39d80a6bf527786c38d9a56c69c36eaa151 | [] | no_license | azvoleff/glcm | e584c5c8200502d11d841baea867529de6c1ea4d | 3fadf27e1b6120d05476d62fa1ce3b38c3249152 | refs/heads/master | 2021-01-02T09:16:00.558599 | 2020-02-26T21:44:22 | 2020-02-26T21:44:22 | 16,706,182 | 16 | 6 | null | 2015-11-23T13:14:24 | 2014-02-10T19:15:28 | R | UTF-8 | R | false | true | 776 | rd | expected_textures_5x7_2x3.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glcm-package.R
\docType{data}
\name{expected_textures_5x7_2x3}
\alias{expected_textures_5x7_2x3}
\title{GLCM textures calculated in EXELIS ENVI (for testing purposes)}
\description{
This is the output from running a "co-occurrence measures" c... |
9cd5097a630e30db44ed701e3026e986995c9639 | 0bcb0836e2870b7be4072110f0b41c1b61afd4b3 | /ProgrammingAssignment3/rankall.R | 807399bfea658ec018c0812a0cc1e9737b247b48 | [] | no_license | sproddle/datasciencecoursera | 17b57443f053d2b053b8c53352a53c18a1506d22 | f8c782de3b2a6d1bf654e49d40b801d5c1485fb2 | refs/heads/master | 2021-01-21T13:11:53.754722 | 2016-05-15T01:31:09 | 2016-05-15T01:31:09 | 49,173,127 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,952 | r | rankall.R | ##best.R
## takes two arguments: the 2-character abbreviated name of a state and an outcome name.
##The outcomes can be one of "heart attack", "heart failure", or "pneumonia".
## The function reads the outcome-of-care-measures.csv file and returns a character vector
## with the name of the hospital that has the best (... |
dfd4613bb30b726f1d861ed3ac24ba576055bc05 | 5e3011b1de8bbb6e2a0e092eb01b0b1ce678a4d6 | /tests/testthat/test_fill_in_zeros.R | 7bcbfd3b973b3297e6c57fd07ae55b870b47dc5f | [
"MIT"
] | permissive | evanjflack/cfo.behavioral | a95a81bd89903f4b876522331860b607fa08b83b | b10e451026910c48a08c3bdda011bde039250959 | refs/heads/master | 2023-02-23T09:08:59.557128 | 2020-10-06T19:13:57 | 2020-10-06T19:13:57 | 227,146,208 | 0 | 0 | NOASSERTION | 2020-08-03T16:20:28 | 2019-12-10T14:50:50 | R | UTF-8 | R | false | false | 448 | r | test_fill_in_zeros.R | # ------------------------------------------------------------------------------
# Tests the fill_in_zeros function
DT_id <- data.table(id = c("1", "2", "3"))
DT <- data.table(id = c("1", "2"),
x = rnorm(2))
DT_exp <- DT %>%
rbind(data.table(id = "3", x = 0)) %>%
.[order(id), ]
DT_new <- fill_... |
68557740fe2df48519972024fe7c7eb6dbe35221 | 364c6bafaa9529fcf15851f859fdbc6cc45f7fc5 | /r_package/AlloHubMat/R/generics.R | cd1b5893035f86041bd48583a216355b63c18dcf | [] | no_license | jamieAmacpherson/allosteric_signal | 842a5b446924a5b84b2aff589bcb6f51beabc8a1 | 297ef7cd79748d864a2a8f12ff5924064ebd4ed2 | refs/heads/master | 2021-10-12T04:49:27.252794 | 2019-02-01T18:13:05 | 2019-02-01T18:13:05 | 95,106,128 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,269 | r | generics.R | #! /usr/bin/R
#===============================================================================
# Bayes variant detection
# (C) 2018 Jens Kleinjung
#===============================================================================
#_______________________________________________________________________________
#' sadata... |
218dbf7a8f575fa0d991edc89bb27a51b1a9fedc | 3fe1517654896fb0e0e821380c907660195b2e0f | /tests/testthat/test_plot_sampling.R | a509e605dbaad6afe0eaa4765402a280c2e107ce | [] | no_license | eliotmiller/metricTester | 9462035d8342e49d766ec37463cd27c2090c85c1 | 976d9b43773f1a06bc0254d3f355d2ee9f4be659 | refs/heads/master | 2020-04-06T06:30:42.528226 | 2019-12-12T20:38:53 | 2019-12-12T20:38:53 | 11,936,920 | 8 | 5 | null | 2017-03-21T15:00:28 | 2013-08-06T23:25:26 | R | UTF-8 | R | false | false | 1,754 | r | test_plot_sampling.R | library(metricTester)
context("Functions related to sampling plots from arenas")
tree <- geiger::sim.bdtree(b=0.1, d=0, stop="taxa", n=50)
temp <- evolveTraits(tree)
prepped <- prepSimulations(tree, arena.length=300, mean.log.individuals=4,
length.parameter=5000, sd.parameter=50, max.distance=20, proportion.killed=0... |
37f3f2699402b3d431d7b18fc8ceeda67ddec811 | c986e8d48f8c5142392d48df0575901fdf62894b | /ScientificDataAnalysis/CPS/cps12k.R | e027d510a38d7da81532356ceff36d9ea1e084d5 | [
"MIT"
] | permissive | subond/Temperature12k | 2d2ee515d16fc103f149ed169abcae841163492e | ea854570be681680dc724fd6b2f31c0f4667483c | refs/heads/master | 2022-10-07T02:37:14.488906 | 2020-06-10T16:54:30 | 2020-06-10T16:54:30 | 276,101,973 | 0 | 1 | null | 2020-06-30T13:09:43 | 2020-06-30T13:09:42 | null | UTF-8 | R | false | false | 8,363 | r | cps12k.R |
library(geoChronR) #devtools::install_github("nickmckay/geoChronR")
library(lipdR) #devtools::install_github("nickmckay/lipd-utilities",subdir = "R")
library(purrr)
library(magrittr)
library(ggplot2)
library(compositeR)#devtools::install_github("nickmckay/compositeR")
library(foreach)
library(doParallel)
#load databas... |
1c12e946293c50a333c81534d74d258fa8f408e8 | cb4d7327f61fbc91c3eeced9998fc8cd96eef85f | /Q6.R | f5f3166ba2e9c7f3fb7581c466cb9af3c7a6e4fe | [] | no_license | digust10/Ad2_Lab1 | 0a016026e8ce03107d9dc210a9b8b292c800f779 | a1276771f16a011c096cab53a8ca2cf4e906f793 | refs/heads/master | 2020-12-24T13:28:33.547666 | 2014-10-18T17:54:16 | 2014-10-18T17:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 465 | r | Q6.R | dados = read.csv("salario.csv")
profissionaisSudeste =subset(dados,Regiao == "Sudeste")
salarioMediana = aggregate(Salario.Bruto ~ UF, data = profissionaisSudeste, FUN = median)
salarioMediana = salarioMediana[ order(-salarioMediana[,2]), ]
salarioMediana
profissionaisRJ =subset(dados,UF == "RJ")
salarioMediana = aggr... |
62c11e65669ed5259155b8b478d0106d1751a7e3 | 5718519f59c4cb41439d48171215ef284feae197 | /plot1.R | e77ab86b6e95df2b47d73d9851221452ed43b47c | [] | no_license | CriscelyLP/Assignment1 | 3f4e3c9f5982f7a4c048afb0c385d69fbf9d06af | 70d89ff21f46230eebec396a6ce62b2ab3986b23 | refs/heads/master | 2021-01-10T18:19:48.162226 | 2015-11-08T17:43:48 | 2015-11-08T17:43:48 | 45,756,435 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 327 | r | plot1.R |
# Plot1 -------------------------------------------------------------------
# Loading the data
source("loadData.R")
# Plot
png(filename = "plot1.png", width = 480, height = 480, units = "px")
hist(data$Global_active_power, col = "red",
xlab = "Global Active Power (kilowatts)", main = "Global Active Power")
de... |
2c45fe9b664a7d5dd00f1ac50fabb258b9f4202e | 2a62e3d95e54c54a3ddcdcfb1c94e8337be1d32c | /bioinformatics/optic_calib.r | b021efc14b262321fbfc69eec089b43d5f4d052e | [
"Apache-2.0"
] | permissive | chaibio/chaipcr | e5d45899f614b43bbf244fba58f4169dd15f6702 | 8153be9add46f1b29b89a4dde72ed3ad907321f3 | refs/heads/master | 2023-03-15T20:55:35.404867 | 2023-03-11T16:54:08 | 2023-03-11T16:54:08 | 59,871,130 | 76 | 34 | null | 2023-03-11T16:54:10 | 2016-05-28T01:07:56 | C++ | UTF-8 | R | false | false | 17,217 | r | optic_calib.r | # calib
# old default: step ids for calibration data
oc_water_step_id <- 2
oc_signal_step_ids <- c('1'=4, '2'=4)
# # default: preset calibration experiment(s) # not set up yet
# preset_calib_id <- 1
# dye2chst <- list( # mapping from dye to channel and step_id.
# 'FAM'=c('channel'=1, 'step_id'=4),
... |
8f79b3b7e8eab899d3c7edb2bade99cb80e28afa | b3f764c178ef442926a23652c4848088ccd40dca | /man/Lda-class.Rd | 61a6169caeedd4deb9f4bab92d3b3f5963b0468c | [] | no_license | armstrtw/rrcov | 23e7642ff2fd2f23b676d4ad8d5c451e89949252 | 684fd97cdf00750e6d6fd9f9fc4b9d3d7a751c20 | refs/heads/master | 2021-01-01T19:51:52.146269 | 2013-07-24T18:18:24 | 2013-07-24T18:18:24 | 11,597,037 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,527 | rd | Lda-class.Rd | \name{Lda-class}
\docType{class}
\alias{Lda-class}
\alias{predict,Lda-method}
\alias{show,Lda-method}
\alias{summary,Lda-method}
\title{Class "Lda" - virtual base class for all classic and robust LDA classes
}
\description{ The class \code{Lda} serves as a base class for deriving
all other classes repr... |
e37f0aeb7c577aed2844d141f97fcf29baf3a098 | b16359a14fd84fa9bc81f9b4d1d6d259fe42f770 | /scripts/INFO 201 map.R | dd53d1d75e79eb18b8c8b75ca82ce47ce3bdae3c | [] | no_license | Ethan-McGregor/seattle-collisions | daf3ba35708b6af2e88e3664f8813b981426c806 | 0b7236c4289e8c3c8bd8eb08a69b9e22ea2b89a4 | refs/heads/master | 2021-01-23T00:57:00.484769 | 2017-06-02T00:57:31 | 2017-06-02T00:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 857 | r | INFO 201 map.R | library(shiny)
library(leaflet)
library(plotly)
library(dplyr)
library(knitr)
data <- read.csv('data/SDOT_Collisions.csv')
# remove missing data
acc.data <- na.omit(data)
# find most popular month
freq <- as.data.frame(table(acc.data$INCDTTM))
month.day = sub('/([^/]*)$', '', freq[,1])
month.day <- as.data.frame(t... |
a7eeca91f04d8531baae3e4ba3604dec3bcc66a9 | 58759602aafec49cd8d854beb9b366e0af3f69c3 | /man/regularize.Rd | d8ab1e6ce63153ef1f63e2cda48f9165bf637d37 | [
"MIT"
] | permissive | macheng94/bioRad | 2ce38553b5f145ca046d90f5a173e44064976449 | 38719d9e7a15b009b9adfef5cb2415e4b6c5f7df | refs/heads/master | 2020-03-10T08:20:47.285310 | 2018-03-27T21:10:20 | 2018-03-27T21:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,452 | rd | regularize.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bioRad.R
\name{regularize}
\alias{regularize}
\title{Regularize a time series}
\usage{
regularize(ts, interval = "auto", t.min = ts$daterange[1],
t.max = ts$daterange[2], units = "mins", fill = F, verbose = T)
}
\arguments{
\item{ts}{an obj... |
e7397d8ca9f5e990b310b48f7537cc627c6dbd96 | b29b91f1c84be419c2135cb8283d34890437ef48 | /man/derivative.Rd | 41bc741ed53167d4c1f83e89bc4b7328f863efb3 | [] | no_license | Susarro/arqastwb | 8ededc0e8c5f8d74e0dd8df5cd196b3082d377db | 0dd802ec946d25f306d6018c0f0f3d52f6bddfc8 | refs/heads/master | 2020-05-04T12:45:17.341662 | 2019-04-03T20:57:14 | 2019-04-03T20:57:14 | 179,133,627 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 616 | rd | derivative.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roots.R
\name{derivative}
\alias{derivative}
\title{First derivative for the function and value given}
\usage{
derivative(fnc, x, incrx = 0.01)
}
\arguments{
\item{fnc}{Function}
\item{x}{Value in which the derivative should be calculated}
... |
4fa0fb8d81378425577350058da9dbb19da054cd | 7139dd72c06d321690853dca65e5ad5da68ec3f5 | /revenue/notepad.R | efc4ee440462720a10048a828ee485eb2a2e920b | [] | no_license | stylianos-kampakis/kaggle_competitions | 94a2668789276de8c9863d09dad42e52ed69ad70 | 7b0073481c783437330542ede168a0ec2a7af28c | refs/heads/master | 2021-01-19T11:48:20.745415 | 2015-05-21T13:03:10 | 2015-05-21T13:03:10 | 35,339,553 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,166 | r | notepad.R | d<-read.csv("C:\\train.csv")
d$Open.Date=as.Date(d$Open.Date,"%m/%d/%Y")
d$Open.Date=format(d$Open.Date,"%Y")
d$Open.Date=as.numeric(d$Open.Date)
d$Id=NULL
d$City<-NULL
d$City.Group<-NULL
d$Type<-NULL
d$revenue=log(d$revenue)
library(MASS)
fit=lm(revenue~.,d)
step <- stepAIC(fit, direction="both")
step$anova # displa... |
de618019a2d9306101c6f04fd6acb1f471897ae0 | bbde47b8c2b383416bf7f3ddbb46923e6d583fa2 | /R/PedToNum.R | d35d35292d365e111081f066c2ad260d5a304e8b | [] | no_license | JiscaH/sequoia | 51e2988aae6273ea7af21806d8b4753b1a2eec72 | 0a7bbad4ad6afd44ded9a1743d30e4aea5e27b8f | refs/heads/master | 2023-06-26T19:22:31.694572 | 2023-06-20T13:44:26 | 2023-06-20T13:44:26 | 52,889,270 | 24 | 6 | null | 2021-05-03T15:23:18 | 2016-03-01T15:51:52 | Fortran | UTF-8 | R | false | false | 8,090 | r | PedToNum.R | #=============================================================================
#' @title Turn Character Pedigree into Numeric Pedigree
#'
#' @description Genotyped individuals get rownumber in genotype matrix,
#' non-genotyped individuals either all get an arbitrary negative number
#' (\code{DoDummies = 'new'}) or ... |
342b1d5cffbbd10293d40c5a34cd47a9bb3697e4 | fd0ab0f09d3c07f03e0af82bf93875524c44a0e9 | /tmp-tests/test-clumping-bed.R | 1ec0c078417c66d8b8cda6b6e0abe6c3422eeec5 | [] | no_license | privefl/bigsnpr | b05f9e36bcab6d8cc86fb186c37fe94a6425960a | 83db98f974b68132a9a3f3ee7ca388159a4c12b5 | refs/heads/master | 2023-08-02T13:31:18.508294 | 2023-06-30T12:15:55 | 2023-06-30T12:15:55 | 62,644,144 | 162 | 47 | null | 2022-10-12T16:46:15 | 2016-07-05T14:36:34 | R | UTF-8 | R | false | false | 1,151 | r | test-clumping-bed.R | library(bigsnpr)
fake <- snp_fake(200, 100)
fake$genotypes[] <- sample(0:3, length(fake$genotypes), replace = TRUE,
prob = c(1, 1, 1, 3))
(n_bad <- sum(big_counts(fake$genotypes)[4, ] > 100))
bed <- snp_writeBed(fake, tempfile(fileext = ".bed"))
library(testthat)
expect_warning(ind.keep <- be... |
e2af9ab687247fed9aef33cd44e88f52393fa97b | 742987e658baec8f280792b07253b8e1d7d00bf4 | /R/Prob.branch.R | 7e4bfdb20570f38eb40c97b1d6813f42d7e5d259 | [] | no_license | ZRChao/LRTT | ab083de0a8d64f688ac68ff7e2cd2cff39ff10ae | 47ea5c46adf326e101b86b80a95019182980f178 | refs/heads/master | 2020-03-06T14:47:49.748541 | 2018-09-12T11:52:33 | 2018-09-12T11:52:33 | 126,942,320 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 591 | r | Prob.branch.R | ## function to simulate the probability along the tree branch
Prob.branch = function(tree, seed, dif.taxa){
p <- min(tree$edge[, 1] - 1)
prob1 <- rep(0, nrow(tree$edge))
prob2 <- rep(0, nrow(tree$edge))
for(j in (p + 1) : (p + tree$Nnode)){
set.seed(j*seed)
pi0 <- runif(1, 0.1, 0.9)
prob1[which(tre... |
248bbbe1a224fe2f5c23d24abad3e18268b36655 | f12cfd4a9c89ae6ae5c9d65d46c4535a75520570 | /inst/doc/FateID.R | df4c819d47998f8dc3180a5a47f6ece26c95c260 | [] | no_license | dgrun/FateID | 946747f3eed9f853bb65e6ed9e0c1bc4e2bbff31 | f2ea6f9b4981ae47cb1e5fd55d38ae9de144ad52 | refs/heads/master | 2022-06-24T02:21:20.578956 | 2022-06-14T12:17:40 | 2022-06-14T12:17:40 | 94,758,534 | 20 | 7 | null | null | null | null | UTF-8 | R | false | false | 6,073 | r | FateID.R | ## ----echo=FALSE---------------------------------------------------------------
knitr::opts_chunk$set(fig.width=8, fig.height=8)
## ----eval = FALSE-------------------------------------------------------------
# install.packages("FateID")
## -------------------------------------------------------------------------... |
439b416335dcd8d7423894cf3bb317e7d5fe5b35 | e19b396f0dc7c8e8b489a02e650f4fbee6606d5e | /docs/visualisation/exercise_ggplot_09.R | eb3a81ca365bae3d49f54c74a8328df3b53251c4 | [] | no_license | djnavarro/robust-tools | 0886db364f7048906d0513091e406b5d369ea3a1 | e3c9f445bd426f687022f928879adfcda24af958 | refs/heads/master | 2020-12-21T00:01:27.017012 | 2020-05-30T08:03:12 | 2020-05-30T08:03:12 | 236,247,979 | 24 | 6 | null | null | null | null | UTF-8 | R | false | false | 1,849 | r | exercise_ggplot_09.R | # Exercise 5
#
# Luckily for us, there is an upside to my daughter's emoji terrorism.
# What we now have is a kind of "template" that we can use to draw quite
# a lot of new plots. Let's see if we can apply it to some real data!
#
# The "data_forensic.csv" file contains data published by Kristy Martire,
# Bethany Gro... |
e107fa0b8132a5fc9d77784d302c7f81a50d36bd | 5885524cbba3f812c1eddc1912ec33304b54c1d4 | /man/theme_bailey.Rd | b71d38d1d02e585c9fe57889bba17506b370c593 | [
"MIT"
] | permissive | jackobailey/jbmisc | a198ab9855800dfcd8bd2c9d639f6dc70413ddef | 960ce7852fe3144359972500b2858a2976323dff | refs/heads/master | 2021-12-14T19:01:18.073680 | 2021-12-09T20:29:04 | 2021-12-09T20:29:04 | 142,127,918 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 414 | rd | theme_bailey.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme_bailey.R
\name{theme_bailey}
\alias{theme_bailey}
\title{Jack Bailey's Custom ggplot Theme.}
\usage{
theme_bailey()
}
\description{
This is a convenience function that makes it easier for me to make nice plots. It is an extension of the... |
bfaa9535aad14304535eb8d06022e6ab95d391f3 | feeaffa6c69c7d4b93ea404a5fc7065f4b7ff6c6 | /TidyTuesday_TaylorSwift.R | 72526cfd725568d948f82bc39a951b6f721bb71a | [] | no_license | anhnguyendepocen/TidyTuesday | c84adfd1558fe60bcce34f4474efa77f7eec941d | 6a14f8f9a9fbef28102ec5e0bd3911ee5bd06b8d | refs/heads/master | 2023-02-02T15:26:01.128129 | 2020-12-15T16:09:03 | 2020-12-15T16:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,259 | r | TidyTuesday_TaylorSwift.R | #TidyTuesday
#===============================================================================
#Taylor Swift
#@sil_aarts
#===============================================================================
library(tidyverse)
library(cowplot)
library(showtext)
library(showtextdb)
library(stringr)
library(reshape2)
library(gg... |
0fcc44f3876000701ff4f9c51f5f4bb3a7932a7b | 8ef27de17d0110828d77ca91b4f4e71af73fc12f | /man/wormsPE.Rd | 8d9097e62fcf04e8d3cd669d34d5aebca7470dea | [] | no_license | marcpaga/pulsedSilac | 95537ce75dc65a9573186708b2917ac700c7cbe6 | 23e5e48083b5edfc99c5dbc42bef487610bec5af | refs/heads/master | 2020-05-17T09:29:16.236700 | 2020-03-07T12:58:50 | 2020-03-07T12:58:50 | 183,634,007 | 2 | 0 | null | 2019-12-05T09:54:02 | 2019-04-26T13:31:31 | R | UTF-8 | R | false | true | 1,887 | rd | wormsPE.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{wormsPE}
\alias{wormsPE}
\title{ProteomicsExperiment with pulsed silac data from C. elegans strains}
\format{A \code{SilacProteomicsExperiment} object with 250 proteins and 3574
peptides in a total of 14 sample... |
e18ecc598152320677d7a132f1d177a0f2397266 | 9431f2901a1f0efa409ef6ee81ce5e825dcf1193 | /man/saveInterpolatedPanels.Rd | 692c3734887cd4adf916c38d95b3693d1b1c4002 | [] | no_license | piotrek-orlowski/impliedCF | 3304069a1fd6b5ff07b8ff6c281eb841316c87ec | 27ed2e5947b6855c72156d62987a54719f342450 | refs/heads/master | 2021-03-19T11:22:14.143712 | 2018-07-17T20:46:23 | 2018-07-17T20:46:23 | 123,603,931 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,253 | rd | saveInterpolatedPanels.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpolateAndSavePanels.R
\name{saveInterpolatedPanels}
\alias{saveInterpolatedPanels}
\title{Calculate the implied GFT for a series of option panels, using a square-root frequency scaling and for fixed maturities.}
\usage{
saveInterpolatedP... |
f28de65cfb36e09e369176b3bb4fc48af2cb4b80 | 3365692614767c738e38448f3a5d022cbe0ca45a | /trait_correlations.R | 1724f310c68247ebe271e6962bcd2c891f0550a3 | [] | no_license | LanceStasinski/Dryas2 | 89ac26c1a19cd3dabc9636b26967e24d1df75928 | 049f4461b0251174be4f0e208795333ea9a3c935 | refs/heads/master | 2023-06-02T02:32:56.480834 | 2021-06-17T17:33:59 | 2021-06-17T17:33:59 | 268,616,307 | 2 | 3 | null | 2021-03-22T20:17:30 | 2020-06-01T19:43:25 | R | UTF-8 | R | false | false | 1,403 | r | trait_correlations.R |
library(corrplot)
library(plyr)
library(vegan)
library(ggplot2)
library(ggpubr)
setwd("C:/Users/istas/OneDrive/Documents/Dryas Research/Dryas 2.0")
leaf = read.csv('morphology.csv', stringsAsFactors = F)
#data sets
traits = leaf[, -c(1,2,3,4,10,11,12)]
parent = traits[!traits$Species == 'DX',]
parent = parent[,-5]... |
7eda8daee67c79594b8f241134a3a04442dc47fa | 7a4fe2d2d49906518c381d30591bef944ac2b9f7 | /Bike Riders - Week 10/Bike Rider Subscription.R | 2d51e3834ecac58c601e5f5a3a3bd588eff1833f | [] | no_license | Choke77/Tidy-Tuesday-Projects | 93f942c566882a719b4773b0b307837b34ee38ca | cf66f8db03f49b0798cb7aaa77c047bdb7a5d7d0 | refs/heads/master | 2020-08-08T09:21:36.849847 | 2019-10-03T21:44:24 | 2019-10-03T21:44:24 | 213,803,786 | 0 | 0 | null | 2019-10-09T02:38:24 | 2019-10-09T02:38:24 | null | UTF-8 | R | false | false | 1,297 | r | Bike Rider Subscription.R | library(tidyverse)
library(lubridate)
filesToLoad = list.files()
fileList = lapply(filesToLoad,read.csv)
dataset = do.call("rbind",fileList)
rm(fileList)
summary(dataset)
#Clean the dataset
df <- dataset %>%
filter(Duration != "",
Distance_Miles != "",
!is.na(StartLatitude),
!... |
106013393eb0e5bf230e0d1d11889a3cac59c2e3 | 46e0d1707d8c24168b6837071168ed8714e48770 | /R/Data Science/Statistic Inference/Project/Simulation.R | bb5d3a75cca9364e0685a3501e7f8a56651a08fd | [] | no_license | hyqLeonardo/Hacker | fd7c112198adfa9278f978dcef36d6e7a82ebc77 | 9e9b6384c3d8d05cd9ab56cba11ec2c1357426d5 | refs/heads/master | 2020-04-28T23:20:44.778614 | 2015-02-22T09:38:39 | 2015-02-22T09:38:39 | 30,788,527 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 462 | r | Simulation.R |
nosim <- 1000
lambda <- 0.2
cfunc <- function(x, n) sqrt(n) * (mean(x) - 1/lambda) / (1/lambda)
dat <- data.frame(
x = c(
apply(matrix(rexp(nosim * 40, lambda),
nosim), 1, cfunc, 40)
),
size = factor(rep(c(40), rep(nosim, 1))))
g <- ggplot(dat, aes(x = x, fill = size)) + geom_histo... |
cae80258aea906a823b3d5b74c6b5ef5aea5413c | 543f60c0dd71a6eb227c0d8176b38d7e3554b00e | /Femalefertility Linear Regression.R | 8223905565d4c5e3f0cc7b72d3772fb5511d2275 | [] | no_license | ChandanNaik24/Data-Science- | b9e60e31f8b33211708e1f69691b1bdfabfd3714 | f6dcf43d57a37f81bb28b54eb1ebd508943ff941 | refs/heads/master | 2023-04-16T10:12:37.658918 | 2021-04-15T06:01:35 | 2021-04-15T06:01:35 | 287,471,833 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 733 | r | Femalefertility Linear Regression.R | ### Loading the CVS file to R Studio cloud ###
data <- SLR2
### EDA ###
summary(data)
dataframe1 <- summary
### Plot ###
plot(data)
dataframe2 <- plot
### Checking for outliers ###
boxplot(data$worker.percent,horizontal = T)
boxplot(data$fertility.rate, horizontal = T)
boxplot(data$fertility.ra... |
cc7643f1e67df75d58e423bb9acb1fc3f7b79536 | 98eaa4e4992701d44c3637f292ded9b26017f9f1 | /man/cubehelix.Rd | c594d474a6ee975620dbdeb73c37ef157707eaf1 | [] | no_license | nplatonov/ursa | 4e946f4bddea1b947200953f0570c01a0b8734c1 | ecb0b4693b470a9bc4df34188b4925589b8d3988 | refs/heads/master | 2023-06-26T12:12:58.134465 | 2023-06-13T10:01:34 | 2023-06-13T10:01:34 | 46,657,847 | 7 | 2 | null | 2023-09-10T18:03:27 | 2015-11-22T11:34:23 | R | UTF-8 | R | false | false | 6,446 | rd | cubehelix.Rd | \name{cubehelix}
\alias{cubehelix}
\title{
Generate "cubehelix" palette.
}
\description{
\code{cubehelix} returns set of RGB colours, which are screen display of intensity images
}
\usage{
cubehelix(n, value = numeric(), weak = NA, rich = NA, rotate = NA, hue = NA, gamma = 1,
dark = NA, light = NA, bright = ... |
fae11929262d4cb46a8cd58cd1011d1b4893191a | 0ccb2ef7d5d608d9c33ec1b68c176c17a7a3d888 | /whole_genome_age/ICOG/ERPRHER2GRADE_fixed_baseline/code/2_whole_genome_ERPRHER2Grade_fixed_baseline.R | 8e9c4ba58b50bece78f2260bb07dd51472f2d507 | [] | no_license | andrewhaoyu/breast_cancer_data_analysis | dce6788aa526a9a35fcab73564a457e8fabb5275 | d84441e315e3ce135149e111014fa9807228ee7c | refs/heads/master | 2023-05-31T20:59:44.353902 | 2023-05-15T19:23:30 | 2023-05-15T19:23:30 | 103,444,023 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,618 | r | 2_whole_genome_ERPRHER2Grade_fixed_baseline.R | rm(list=ls())
#i1 represent the index of genotype file
#i1 ranges from 1 to 596
arg <- commandArgs(trailingOnly=T)
i1 <- as.numeric(arg[[1]])
print(i1)
library(R.utils)
library(data.table)
library(devtools)
library(withr)
library(gtools)
library(doParallel)
library(foreach)
#install R package
#bc2 is a development ver... |
1e18c24039275ba67a4f96d61f1c45486638aa8e | df562e5ef9ea2846cb05319114009c3de7e4dee1 | /MasterR/MachineLearning.R | 961c41b767e90e3baad74d247043aad25b1375bc | [] | no_license | SCelisV/R | a05d9dc1b0bcb2bfabfbe83703db8364edd8a9ab | 0aa0a984dae0c0466addbf6dc0dd629d863f7cf5 | refs/heads/master | 2022-12-23T23:23:40.878996 | 2020-09-30T20:10:21 | 2020-09-30T20:10:21 | 286,298,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 42,559 | r | MachineLearning.R | # ML.R
# http://archive.ics.uci.edu/ml/datasets.php => dataSets
# Machine learning => automatiza la construcción de un módelo analítico, uso de algoritmos que aprende de los datos.
# Algoritmos: Supervisado, NO Supervisado, de Refuerzo
# Supervisado => necesita datos previamente etiquetados(lo que es correcto y lo qu... |
875f5eecb96e7d491b757fbfbf3facced7ea1610 | 7f204da91304186ead43ac64f281b9531ed36d07 | /man/dini.surface.Rd | 5d9f8f6067b4a6cd89cd558dbdd34537a09db4cb | [] | no_license | schloerke/geozoo | 3b61808be45f056e0e138e49ed50bc185bf6fd7c | f633781f098779f8ad2b95c19811b11738b39068 | refs/heads/master | 2021-01-17T13:54:24.858588 | 2016-05-06T03:06:47 | 2016-05-06T03:06:47 | 16,112,665 | 5 | 0 | null | 2016-01-13T18:04:53 | 2014-01-21T18:05:20 | R | UTF-8 | R | false | true | 645 | rd | dini.surface.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parametric.R
\name{dini.surface}
\alias{dini.surface}
\title{Dini Surface}
\usage{
dini.surface(n = 10000, a = 1, b = 1)
}
\arguments{
\item{n}{number of points}
\item{a}{outer radius of object}
\item{b}{space between loops}
}
\value{
\item... |
4af1fd1eb535c6a38f3ce3e71182f07361526bd9 | eec11787a7884f1ad0658b8955d183e5b67cbc77 | /package/mcmc/man/logit.Rd | aa9144ef73bf1b4875df843dcc76e1f8f9b5138f | [
"ICU"
] | permissive | cjgeyer/mcmc | 5e917b5c3b7dc696c5173d06432421bbf647df7a | 225fa82eefcdc6d75fd7ad21acfd9e5373ef9fa2 | refs/heads/master | 2021-01-13T02:38:48.445095 | 2020-03-24T04:41:02 | 2020-03-24T04:41:02 | 2,998,392 | 18 | 5 | null | null | null | null | UTF-8 | R | false | false | 524 | rd | logit.Rd | \name{logit}
\docType{data}
\alias{logit}
\title{Simulated logistic regression data.}
\description{
Like it says
}
\usage{data(logit)}
\format{
A data frame with variables
\describe{
\item{x1}{quantitative predictor.}
\item{x2}{quantitative predictor.}
\item{x3}{quantitative predictor.}
\item{x4}... |
427e4905aef32984da59179d13bfb7a05dc296d7 | a9550fbcc10bdda5cc6ab8a985a0e8c15c98c100 | /man/treePlot.Rd | 6e66a030f1dfe7d87f41d30d85b4c6c389ae6944 | [] | no_license | markrobinsonuzh/treeAGG | fa6a7705b1a0d74dfedbb18a43d309a818f237ef | e26b9401369ddc3682677d644232cc0205e5fdeb | refs/heads/master | 2021-03-16T07:44:55.688468 | 2019-03-23T14:07:19 | 2019-03-23T14:07:19 | 98,645,726 | 2 | 1 | null | 2019-03-23T14:07:20 | 2017-07-28T12:04:06 | R | UTF-8 | R | false | true | 5,448 | rd | treePlot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/treePlot.R
\name{treePlot}
\alias{treePlot}
\title{Visualize the phylogenetic tree}
\usage{
treePlot(tree, branch = NULL, col.branch = "blue",
col.other = "grey", point = NULL, col.point = "orange",
size.point = 2, zoomNode = NULL, zoomLe... |
823ae9c090af667c7c5e637456bf5e62fee24d6a | b66de58525899583058979bc7da771f36fe7e0db | /man/importWAQN.Rd | 49736c82b26383887f4565cf8a0f14f773cd4554 | [] | no_license | keyonghu/openair | 4e90d78e23f170e3299870fd88bcd616cdee14cf | a432ec912180678b7f3034eaec98c9b0e36485b9 | refs/heads/master | 2021-05-26T03:10:21.854502 | 2020-04-06T08:04:48 | 2020-04-06T08:04:48 | 254,028,347 | 1 | 0 | null | 2020-04-08T08:24:50 | 2020-04-08T08:24:50 | null | UTF-8 | R | false | true | 2,933 | rd | importWAQN.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/importWAQN.R
\name{importWAQN}
\alias{importWAQN}
\title{Welsh Air Quality Network data import for openair}
\usage{
importWAQN(
site = "card",
year = 2018,
pollutant = "all",
meta = FALSE,
to_narrow = FALSE
)
}
\arguments{
\item{sit... |
d3f1846bdd31f39618f3274d07f43cd2e1ac42d7 | 15654deeaf224a14bd5e5db656179e991e498caa | /man/get_alberta_case_data.Rd | c0d817ed40f41286bf52a02f1e4a9bad8da8c924 | [
"MIT"
] | permissive | mountainMath/CanCovidData | 8451475655fa84ce6d4b4e59db58cd17a1ec4680 | b7782d9d96e0f1b9083fd38337bc1ae593b818ca | refs/heads/master | 2022-08-03T14:03:41.422542 | 2022-07-24T01:02:08 | 2022-07-24T01:02:08 | 251,169,972 | 9 | 3 | NOASSERTION | 2020-08-05T04:48:04 | 2020-03-30T01:16:04 | R | UTF-8 | R | false | true | 504 | rd | get_alberta_case_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/canada_covid_data_import.R
\name{get_alberta_case_data}
\alias{get_alberta_case_data}
\title{import and recode ontario case data from Alberta Open Data. Tends to have a day lag}
\usage{
get_alberta_case_data()
}
\value{
a wide format data fra... |
2b2f8f0c9081626318c01e54235448fee6594a65 | 9a006d47b7d13beea5005c543e99d6c123736e96 | /plotNetwork.R | ba7135db40f2c541705eff19e2794665e9f0cbef | [] | no_license | yenlow/emailNetwork | e7924a1d952337cc814e9ec7dca960179c853496 | 9c14977c9abb53ab598988e9ca55c7002490c704 | refs/heads/master | 2020-12-24T13:18:17.554466 | 2015-01-24T00:40:31 | 2015-01-24T00:40:31 | 29,760,187 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,248 | r | plotNetwork.R | # plot network of sender -> receipient activity from Enron email logs
# Input: output (enron.csv) from parseEmail.py
# 23-Jan-15 Yen Low
#source("~/scripts/R/utils.R")
#source("http://bioconductor.org/biocLite.R")
#installnewpackage(c("graph", "Rgraphviz", "chron"))
#biocLite("graph")
#biocLite("Rgraphviz")
require... |
62866544b46fc38759a6b8a9a2951128dc5bcd83 | aa12f960ef508476e6ea7aa3da09aee0d917d35b | /VG_Sexism.R | 4010d0987c6bce822fc899e85df6a9d5416c2d1f | [] | no_license | DalJeanis/VG_Sexism | 1ea04e156ed846d1c8acc1c97a6583702b243b7e | c89e3c4b4527425c86c90b7aa816148223a037e3 | refs/heads/master | 2021-01-15T20:52:21.670903 | 2015-09-03T04:05:10 | 2015-09-03T04:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,381 | r | VG_Sexism.R | #####Import data and Check
##Read csv data table (File = "Data")
data = read.table(file.choose(), na.strings =".", header=T, sep=",")
##Attach and check the headers of each column
attach(data)
names(data)
############################
####General housekeeping####
##Load the necessary libraries
library(plyr)
library... |
8fdf61aa572435357cd201b5944eb415ef506c2d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gap.datasets/examples/hr1420.Rd.R | e7de974dabb6c5155731c88df0d6996cac7da69d | [] | 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 | 191 | r | hr1420.Rd.R | library(gap.datasets)
### Name: hr1420
### Title: An example data for Manhattan plot with annotation (mhtplot2)
### Aliases: hr1420
### Keywords: datasets
### ** Examples
head(hr1420)
|
b897811e67773cd1c829b18748f2517effb68698 | 8e0f351a163a775e07a6f9839a32f8a093d630bd | /barplots.R | 46d1d860a5996d47067119ae4b2aa196be738497 | [] | no_license | GreggLab/R_Code | 226e7d3ae29ad79aea5ee8925228c43fc462d404 | aac59baa9851cfdd2b54b245ee36c8ec54be2ae2 | refs/heads/master | 2020-03-21T21:13:59.222508 | 2018-07-23T13:43:22 | 2018-07-23T13:43:22 | 139,053,555 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,399 | r | barplots.R | #Stacked Community Plots
#6-19-18
#Adapted from Christine Bassis, Ph. D. code
#Adapted by Zach Carlson, email: zcarlson@umich.edu
library(RColorBrewer) #gives color schemes
library(ggplot2) #data plotter
library(gplots) #data plotter
library(vegan) #ecology package, diversity analysis, etc.
library(plyr) #tool for spli... |
8e92382db331d706e4543915f2d18e4cf7334676 | a61b76d7649cea8e9d70608852592ac9ee6bd8dd | /codes/MedSchool.R | 89a64d1a2fdcbbe9f75e7fd50173610edfa35cd7 | [] | no_license | benjaminsw/Generalised_Linear_Models | fdb7ad08e4f5394a4d792b8a159def1330b8cf42 | 2ff85b8193b84ddc1d0c5e26fe1e8dd8e24e0387 | refs/heads/main | 2023-03-04T04:20:17.613245 | 2021-01-27T11:10:47 | 2021-01-27T11:10:47 | 330,643,819 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,210 | r | MedSchool.R | # Admissions to medical school
# Load the package containing the data
library(Stat2Data)
data(MedGPA)
# Plot the data allowing for some jitter to better see overlapping points:
library(ggplot2)
medgpa.plot <- ggplot(data = MedGPA, aes(y = Acceptance, x = GPA)) +
geom_jitter(width =0, height =0.01, alpha =0.5, colo... |
139bff6e09fc35109efdfe850836b7abd2dbf0d0 | 42fdc59279057501501f134e2187ec4dc6194b2b | /rscripts/permutation_bootstraps_server.R | bb97455c18390be02aebca4d98b7f16c11da62f7 | [] | no_license | majpark21/Master_project | 4904ec182b512aae1ddc74d06963c9fe30413b07 | 467a42f594099850ec0eb4b5e0edbb2cedb8cb49 | refs/heads/master | 2021-03-16T09:17:09.600691 | 2018-02-11T23:27:43 | 2018-02-11T23:27:43 | 98,453,350 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,018 | r | permutation_bootstraps_server.R | library(stringr)
library(data.table)
library(plyr)
CastCluster <- function(data, time.col, condition.col, label.col, measure.col, k.clust, na.fill, plot = T, return.quality = T, ...){
# Cast to wide, cluster and get quality indices
require(dtwclust)
temp <- myCast(data, time.col, condition.col, label.col, measur... |
66e5e463c308f2bdd8d804eebbc2198233de5477 | 2df42b13fef6978ad09b407c6791031a959f449f | /man/plot_pred_box.Rd | 9dc659a433a92858389954088465ad21edbe567d | [] | no_license | Sea2Data/Rstox | 4284021138ea244eaaccded3f7728f9cc06cb03d | 71367f11deec42791e809c28cdf7752c5c6ca1f3 | refs/heads/master | 2023-03-07T00:03:22.039374 | 2019-02-08T22:40:17 | 2019-02-08T22:40:17 | 90,259,495 | 1 | 3 | null | 2022-01-05T12:36:08 | 2017-05-04T12:15:33 | R | UTF-8 | R | false | true | 669 | rd | plot_pred_box.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RECA_plots.R
\name{plot_pred_box}
\alias{plot_pred_box}
\title{Plot catch by age prediction as boxplots}
\usage{
plot_pred_box(pred, var, unit, xlab = "age",
ylab = paste("posterior catch", unit), ...)
}
\arguments{
\item{pred}{RECA predict... |
92340dab67ee69142f0e4c2f62d3ae83a31a69dd | 0c89428a775d9095ebce45fc434bfd000a2e9147 | /plot3.R | 57cfca982632f9661fcf37fe45236cddce509ff4 | [] | no_license | ericsturman/ExData_Plotting1 | 4d07fc273ed2c18f820a9e24c3fe182ed5b2967d | 7223ff385f42cec5063000b88bcd8e3a299908d9 | refs/heads/master | 2020-04-03T18:18:38.434063 | 2018-11-03T15:29:00 | 2018-11-03T15:29:00 | 155,478,394 | 0 | 0 | null | 2018-10-31T01:12:54 | 2018-10-31T01:12:53 | null | UTF-8 | R | false | false | 1,039 | r | plot3.R | library(lubridate)
# read in data and add datetime field
householdPower<-read.csv("household_power_consumption.txt", sep=";", stringsAsFactors=FALSE)
householdChartData<-householdPower[as.Date(householdPower$Date, "%d/%m/%Y") >= as.Date(ymd("20070201")) & as.Date(householdPower$Date, "%d/%m/%Y") <= as.Date(ymd("200702... |
5beced314a2ee83226727990bd718b6a66cfa97b | a6284a5c546f4a0bc827e20289bdbc6fcaf28172 | /man/Levi_Tripathy.Rd | 0528df8e363da19cacfe46e0568dfaa51f7ad905 | [] | no_license | cran/modelfree | 6f428c443f94f2181425aeb621fe3eca88b9a688 | 453b3c46c5171ef6765cc519a359214fd0bc906d | refs/heads/master | 2023-05-26T11:52:10.754440 | 2023-05-20T06:40:02 | 2023-05-20T06:40:02 | 17,697,617 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,197 | rd | Levi_Tripathy.Rd | \name{Levi_Tripathy}
\alias{Levi_Tripathy}
\docType{data}
\title{
Visual detection of path deviation
}
\description{
The subject was presented with the image of a dot moving rightwards on a linear path until it reached the midline of the display, when it changed direction either upwards or downwards. The subject had to... |
5194b52624199a17590bb262546751c67d954cc0 | 42a0668a13259bb4301a86ebf592dbadc83f82b2 | /Fase 2/ANOVA/anova.r | 0ff2bc1e59289fd70b4d79f9b248e1f139f1eb87 | [] | no_license | 2kodevs/Student-Performance-Analysis | 5c56c7c82a97216a17dd0f9c141ef8775aae230d | 1aa8c91e2db72fa177911be5ccdd4c0e85cd9228 | refs/heads/master | 2021-02-06T02:42:18.715583 | 2020-10-15T16:27:11 | 2020-10-15T16:27:11 | 243,866,573 | 0 | 0 | null | 2020-10-15T16:27:12 | 2020-02-28T22:35:30 | TeX | UTF-8 | R | false | false | 2,916 | r | anova.r | require(lmtest)
box_plot <- function(df, label) {
title <- 'Box-plot de las medias por zona'
png(paste('images/box-', label, '.png', sep = ''))
plot(
df$measure ~ df$addr,
data=df,
xlab="Zona",
ylab="Resultado medio",
main=title
)
dev.off()
}
qq_plot <- fun... |
0152e568c8b5bebfa5ef4587430d052fd8e33671 | 5b4722beafbbf6f88b177b8f1455f22d74411a0a | /Aditya/Project Script-Aditya Ratna.R | 2b6bc54cd3788c180de1e548bfaf5bcd37844e4b | [] | no_license | umangmystery/craigslist-r | 75462a22c3e5eab847e677cee89ff63b3d503bb8 | 8064b3076f0c2555cb5e0f7bbff286336ddee568 | refs/heads/main | 2023-04-07T07:33:04.981592 | 2021-04-18T22:58:11 | 2021-04-18T22:58:11 | 349,236,324 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 15,240 | r | Project Script-Aditya Ratna.R | # Odometer is empty / is null
# Skewness check
# Price category cut bins changed
# ODometer and price scatter plot
#
# installing required packages
# install.packages("readxl")
# install.packages("lubridate")
# install.packages("writexl")
# install.packages("funModeling")
# install.packages("tidyverse... |
086b780dfbb5d37372cbc09af92635209fc516a8 | ee0689132c92cf0ea3e82c65b20f85a2d6127bb8 | /78-TM/SM-rtexttools1.R | 34ef07e98368489ca1a72ca1eb753c465b043380 | [] | no_license | DUanalytics/rAnalytics | f98d34d324e1611c8c0924fbd499a5fdac0e0911 | 07242250a702631c0d6a31d3ad8568daf9256099 | refs/heads/master | 2023-08-08T14:48:13.210501 | 2023-07-30T12:27:26 | 2023-07-30T12:27:26 | 201,704,509 | 203 | 29 | null | null | null | null | UTF-8 | R | false | false | 6,196 | r | SM-rtexttools1.R | # Text Analysis
library(RTextTools)
library(e1071)
pos_tweets = rbind(
c('I love this car', 'positive'),
c('This view is amazing', 'positive'),
c('I feel great this morning', 'positive'),
c('I am so excited about the concert', 'positive'),
c('He is my best friend', 'positive')
)
neg_tweets = rbind(
c('I... |
dc96cce17dae17a3d644b0f2ac0b3f896d54d902 | 6682e0eabb4f934d177397904b55bea31d49cc0d | /config/2014_PR_config.r | bac48cce1dd5bf772066da18f12a0356ef241183 | [
"MIT"
] | permissive | methiess/PSC-FRAM-Admin | 9159aa6fc4644fd0a321fec2d63ca1400fab7572 | 14309790ecb30118757dc890fcb5d6e5c85db3f8 | refs/heads/master | 2020-04-16T08:18:21.410928 | 2019-01-18T03:45:20 | 2019-01-18T03:45:20 | 165,419,485 | 0 | 0 | MIT | 2019-01-18T03:45:22 | 2019-01-12T18:06:22 | HTML | UTF-8 | R | false | false | 780 | r | 2014_PR_config.r |
run.year <- 2014
post.season.fram.db <- "./fram db/PeriodicReportdb/FramVS2-PSC-Coho-Backwards-redo 2010-2016 January 2019 products.mdb"
post.season.run.name <- "bc-bkCoho2014 step 3"
post.season.tamm <- "./fram db/PeriodicReportdb/updated2010-2016TAMMfiles/BK 2014 January 2019 redo step 3.xlsm"
post.season.tamm.fish... |
1f4290cd149e6364380e5f27ea6da9cb2ef0b26e | a246c544d53ca52369cfc89879937d70f26eb1bb | /test.R | cc667c6a348e6eb9938197372ea16400b0e6598f | [] | no_license | innuo/CausalSimR | a06a2b7d108dc391eb46f6dc0cda213c9acc1840 | 2f0cdbf1f3a23a32f51b81e8c49b5cbe224791d4 | refs/heads/master | 2020-05-05T09:04:35.422413 | 2020-02-29T21:21:47 | 2020-02-29T21:21:47 | 179,890,124 | 0 | 0 | null | 2020-01-20T15:17:02 | 2019-04-06T21:46:34 | R | UTF-8 | R | false | false | 3,252 | r | test.R | # Does this row work
single_row_test <- function(){
d1 <- read.csv("../CausalSimPy/data/SinglePearlTest1.csv", na.strings=c("NA", ""))
d2 <- read.csv("../CausalSimPy/data/SinglePearlTest2.csv", na.strings=c("NA", ""))
dataset <- DataSet$new(d1)
dataset$attach_data(d2)
sim <- CausalSimModel$new(dataset)
si... |
dfdac2e64dca7abb48948ed3be78c05ad563cb3e | 79d422c4d5614cb08bc91963efabab72a2de1b1a | /Stringr().R | 61713f14f569a02b514a392f55e86875b7ddc8e1 | [] | no_license | jenny2202/Bank-optimization | 1edb61a0605efef519dd00203c6b49032e4d2ad9 | 292d8ecd676b2a0c12c5bb46669450423091ee14 | refs/heads/master | 2021-10-25T23:46:58.939592 | 2019-04-08T12:08:45 | 2019-04-08T12:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 447 | r | Stringr().R |
library(stringr)
do.call("bind_rows", my_card) %>%
slice(-1) %>%
select(-breaks, -is_special_values, -count, -count_distr, -good, -bad, -badprob) %>%
mutate_if(is.numeric, function(x) {round(x, 3)}) %>%
mutate(bin = bin %>%
str_replace_all("\\[", "From ") %>% # Replace [-Inf,6000) -> f... |
8c8f1c22085fccb318c09fae25e90a12af69510c | 2721df14d282cc9e1c00169b35b4ae27990b80be | /Final/pollutantmean.R | ef0ede950f9094b579a9df2d5ec03f3915c74428 | [] | no_license | diegonogare/datasciencecoursera | bab2606ae7ca50760171cbf633819652e899b1b8 | 782910ee772ca4d259906d2090c8ec376db7bf28 | refs/heads/master | 2020-06-06T13:00:20.139936 | 2014-07-25T14:26:27 | 2014-07-25T14:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 248 | r | pollutantmean.R | pollutantmean <- function(directory, pollutant, id = 1:332) {
loadFiles <- dget("loadFiles.R")
lst <- loadFiles(directory, id, pollutant)
values <- unlist(lst)
values[which(c(1,diff(values)) != 0)]
mean(values, na.rm = TRUE)
}
|
a99430509ca437ec0a3545749589dcf5af87007f | dade7b41292cdbc491cbfff3660b21f7a40ac45e | /tests/testthat/test_best_models.R | 102bd0770fb17cc56a65d43fb6c0bcfc317dc6a6 | [] | no_license | statdivlab/CatchMore | 8eb735a84df2b8788f4bd8d127b30f969625d623 | 8c1ec51f6a6ac2939b9561130e2ce74ada1b91cd | refs/heads/master | 2020-04-09T15:13:41.012918 | 2019-03-15T17:42:55 | 2019-03-15T17:42:55 | 160,420,021 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 490 | r | test_best_models.R | library(CatchAll)
library(breakaway)
library(testthat)
context("Best models are the same")
data(apples)
test_that("Analysis of the apples dataset gives the same best model", {
apple_best_model <- best_model(apples)
expect_equal(apple_best_model$name,
"Three-component Geometric mixture Model")
ex... |
91990995b04d82086e8c89af7720b0fc2aa02ba5 | 54bf9bc76aaa7e1fec5961efb12bfb636fa90a2e | /Archive/NIMBioS.code/shiny/server.R | f056c7e682db3181a6a8045a188f2db5e440961e | [] | no_license | christianparobek/skeleSim | 25d63dc3eeee6d8218d19e0f011229cfb843d053 | 0d61409497283ac1db129379b479639261695f83 | refs/heads/master | 2020-03-28T05:36:45.448623 | 2020-02-26T21:55:51 | 2020-02-26T21:55:51 | 32,469,895 | 3 | 9 | null | 2017-11-22T16:30:16 | 2015-03-18T16:16:29 | HTML | UTF-8 | R | false | false | 2,135 | r | server.R | library(shiny)
library(datasets)
# Define server logic required to summarize and view the selected
# dataset
shinyServer(function(input, output) {
# Server-side suppor for composing table of megalist values
megalistValues <- reactive({
# Compose data frame
data.frame(
Name = c("SNPs",
... |
cb8e9698f387244e0d93059efa4d50d1d49ec097 | 2d8ed97505da8675d277fc3b2ada8efcefc30185 | /cachematrix.R | c4e82236f3c92dc42a50630f6992ae79216951f4 | [] | no_license | rbidanta/ProgrammingAssignment2 | 1528f90d6a8f8dbf4e20a4b414f8c4cef9dc025d | 216d45b83671425f0ff119d681bed2837cc3ffc0 | refs/heads/master | 2020-04-03T07:22:20.321401 | 2016-01-24T00:59:26 | 2016-01-24T00:59:26 | 50,223,605 | 0 | 0 | null | 2016-01-23T04:37:45 | 2016-01-23T04:37:45 | null | UTF-8 | R | false | false | 1,182 | r | cachematrix.R | ## In this assignment I am creating two R functions.
## makeCacheMatrix() and cacheSolve()
## This funtion takes a matrix as an argument and returns
## a special list does the following
## Sets the value of Matrix
## Gets the Value of Matrix
## Sets the value for Matrix Inverse
## Gets the value of Matrix Inverse
... |
29aa61aacc6a6ec86e8ee463a54b42a1ac2e335c | 935282511da356aea1d1376112eb73ab947237e4 | /doc/olink.annotation.R | e3b488fb7bad6b59fbbf5c3c736b9c08b4d46dc0 | [] | no_license | jinghuazhao/INF | c129b3871dd38db03392085e99b851edc7e036d2 | 18af1c5b8124b068ad9fdc2b24caa06183492e08 | refs/heads/master | 2023-08-14T19:57:48.911731 | 2023-08-14T16:44:57 | 2023-08-14T16:44:57 | 145,544,979 | 7 | 3 | null | null | null | null | UTF-8 | R | false | false | 8,585 | r | olink.annotation.R | # Goal: create master mapping file for Olink proteins
rm(list=ls())
#--------------------- Import ---------------------#
library(readxl)
library(stringr)
# no of tabs in the shitty olink sheet
n=12
mylist <- vector('list', n)
names(mylist) <- c('cardiometabolic', 'cell.regul', 'cvd2', 'cvd3', 'devel', 'imm.resp',
... |
2d4b82fcce755648db5d561820b37e94ed0dbc4e | a0ceb8a810553581850def0d17638c3fd7003895 | /scripts/rstudioserver_analysis/spikeins/mouse/H3K27me3_merged/project_new_K27me3_onto_old.R | 40a3305913968c5ccf894b923527504004c4031e | [] | no_license | jakeyeung/sortchicAllScripts | 9e624762ca07c40d23e16dbd793ef9569c962473 | ecf27415e4e92680488b6f228c813467617e7ee5 | refs/heads/master | 2023-04-15T22:48:52.272410 | 2022-10-24T10:45:24 | 2022-10-24T10:45:24 | 556,698,796 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,767 | r | project_new_K27me3_onto_old.R | # Jake Yeung
# Date of Creation: 2020-10-04
# File: ~/projects/scchic/scripts/rstudioserver_analysis/spikeins/mouse/H3K27me3_merged/project_new_K27me3_onto_old.R
#
rm(list=ls())
library(dplyr)
library(tidyr)
library(ggplot2)
library(data.table)
library(Matrix)
library(topicmodels)
library(scchicFuncs)
library(hash)... |
75d7ebfff81c07b4f2eca1124385f7d40e185f9d | 615e1677bbe198ed819600ff110129f9456b81f7 | /Examples/mass-funcitons.R | 04c9c96e866df72061057b7ec6854088615af90e | [
"MIT"
] | permissive | mattcwilde/stat509 | b5de627628e399a6ffa2b4681eab47dd61651cf1 | 89c80453eb478c5373655bf2499036d8153614da | refs/heads/master | 2021-05-21T23:40:42.374449 | 2020-04-03T23:17:07 | 2020-04-03T23:17:07 | 252,863,009 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,236 | r | mass-funcitons.R | ### Some examples of probability mass functions
# (1) Bernoulli
p <- 0.1
dbinom(1,1,p) # P(X=1) = p
dbinom(0,1,p) # P(X=0) = 1-p
# here we use the fact that Bernoulli(p)
# is the same as Binomial(n=1, p)
# "silly" values
dbinom(2,1,p) # P(X=2) = 0
dbinom(-1,1,p) # P(X=-1) = 0
dbinom(0.5,1,p) # P(X=0.5) = 0
#P... |
2662eec832a93d81154943c983457a20ebb1bdf8 | 47aad5007e300f78e3404ed0147f92cd2eb56df2 | /R/confint.fitpot.R | 52d901e65505f450eb641ecdb89c0aede865fe2d | [] | no_license | cran/ercv | 16c5c1cc44c7a76d955b35eddfd2c4db1d8cf07a | 77db65e5be9e8c99d819b2fa1d162692a595f48a | refs/heads/master | 2021-07-03T13:21:33.182423 | 2019-10-15T14:30:02 | 2019-10-15T14:30:02 | 97,489,837 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 601 | r | confint.fitpot.R | confint.fitpot <- function(object, parm, level=0.95, ...)
{
if(class(object)!="fitpot") stop("Object should be of class fitpot")
cf <- object$coeff
ses <- c(attr(object, "evi.sd"), attr(object, "psi.sd"))
if (length(ses)==2)
{
pnames <- c("evi", "psi")
}else{
pnames <- c("psi")
}
if (missing(par... |
d8e71ccd402288a1dee5291bb63da93d9930d36f | 46002cc5ac222968ce2e8637754447673d9639bd | /multivariate_ARMA.R | 65b3b58464e933a038e727c9cb93b8a0c52f3431 | [] | no_license | bjorn81/Bayesian | dc9d01df6e68587cf1210f6898ebf847bf5b6d34 | b137ba8aea4a66619f7e51db1c14254026be6d1d | refs/heads/master | 2020-04-08T20:50:56.122287 | 2018-11-29T19:37:20 | 2018-11-29T19:37:20 | 159,717,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,819 | r | multivariate_ARMA.R | library(forecast)
library(data.table)
library(rstan)
library(coda)
# Simulate data
error.model=function(n){rnorm(n, sd=.3)}
y0 <- arima.sim(model=list(ar=0.6, ma = -0.9), n=10000,
n.start=200, start.innov=rnorm(200, sd=.2),
rand.gen=err... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.