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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9788843912191eee4fc46ea93223bc6e86ca80c8 | a4493811b918ec3b77a0d819ef2d2ed4475c5cda | /funcoes.R | 4198e689d627c3c80792c510dc2d5c26002f7f03 | [
"MIT"
] | permissive | GabrielReisR/shiny_corrs | 8651fe938baf0c50233b686f5e70fbe778dcf6bd | 4c452387e7c4494e726b085f1cdd30513ff14275 | refs/heads/main | 2023-06-06T04:56:09.331931 | 2021-06-26T21:54:55 | 2021-06-26T21:54:55 | 380,274,903 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,764 | r | funcoes.R | # Nome: Understanding correlations
# Autor: Gabriel dos Reis Rodrigues
# June, 2021
# Last update: 2021-06-25
# ----------------------------------------
# Initial loading ====
if(!require("faux"))
install.packages("faux"); library(faux)
if(!require("ggplot2"))
install.packages("ggplot2"); library(ggplot2)
if(!requ... |
dd272251e97dd8bcacd64935a29a602653bd6249 | a58657feb0655fe9b1be89dc8b88e3c07f71bc17 | /source/Shiny/rCharts/Leaflet.R | ed48b55827959fb31eb2085b43530eba29271e3a | [] | no_license | irichgreen/R_Practice | f026a16de6df62571ee296fd747e5f98e1824fa9 | 457f33a9c0051950cfa837a2387b7f28b43aa813 | refs/heads/master | 2020-05-22T04:13:08.815089 | 2017-01-14T01:58:19 | 2017-01-14T01:58:19 | 63,691,875 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,820 | r | Leaflet.R | ..p. <- function() invisible(readline("\nPress <return> to continue: "))
require(rCharts)
map1 = Leaflet$new()
map1$setView(c(45.5236, -122.675), 13)
map1$tileLayer("http://a.tiles.mapbox.com/v3/mapbox.control-room/{z}/{x}/{y}.png", zoom = 8)
map1
..p.() # ================================
map1 = Leaflet$ne... |
d618c35c5aa1b690fcc53ab2be2e38ce5281bcdd | 8dfee68e3695253eb9aa719a2571ea5607a5311b | /R/drive_update.R | e3c08e5ee6dbf751008e11bd4b4712b7217323d7 | [
"MIT"
] | permissive | fuentesortiz/googledrive | 49e7384a0749fbb9870821541e7b8e3ca1d7f735 | 20ffe8cb87ef180246fd3a94e00010879117aaa1 | refs/heads/master | 2023-03-07T17:37:20.406535 | 2020-11-19T21:47:22 | 2020-11-19T21:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,050 | r | drive_update.R | #' Update an existing Drive file
#'
#' Update an existing Drive file id with new content ("media" in Drive
#' API-speak), new metadata, or both. To create a new file or update existing,
#' depending on whether the Drive file already exists, see [drive_put()].
#'
#' @seealso Wraps the `files.update` endpoint:
#' * <h... |
0071177fe9033e65128cc1f3d01b89829d041aef | a47ce30f5112b01d5ab3e790a1b51c910f3cf1c3 | /B_analysts_sources_github/Robinlovelace/cycling-chd/analysis-minap.R | 6df45437ce50c5ed43f8f3ffdbbb0161fd1d14a5 | [] | 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 | 7,966 | r | analysis-minap.R | ##########################################
######## Cross-sectional Analyses ########
##########################################
# Libraries
library(data.table)
library(plyr)
library(MASS) # For Negative Binomial Regression
library(AER) # Test for over-dispersion
library(pscl) # Test for over-dispersion
# Load data... |
56b1b365b7b1579bdfa08b8f1d43492e0c7912e7 | 57e96f47bb38efa99dea6e52e01d4e12ba79ac5b | /src/utils.R | bf101181371a78664789e374656dc6b0585eab77 | [] | no_license | maheshkkolla/learnR | f5019b66761d9a4c69d4887018e827e8352bfd63 | cc912acd2707d322106f2db0b96637f2b7265a16 | refs/heads/master | 2021-01-01T03:46:10.078908 | 2016-05-18T13:25:15 | 2016-05-18T13:25:15 | 58,992,147 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 234 | r | utils.R | isOne <- function(number) number == 1
isTwo <- function(number) number == 2
isZero <- function(number) number == 0
isNegative <- function(number) number < 0
isZeroOrNegative <- function(number) isZero(number) || isNegative(number) |
9b3d64a672b2a493daa0e22b05689d9ef7d1ae8e | 79f980b8a424cb3852058008b5869f9259e77394 | /R/weather.R | ac8176aa1686227dc15db7f0f80339a99e8edfab | [] | no_license | rjsteckel/boilkettle | 762281d2a46c775b9b96b59540d7f965f9902baf | 0b05405c3d6bf7d7fdb32fb4989dcd7e3826c977 | refs/heads/master | 2021-09-18T00:07:20.707889 | 2018-07-07T15:59:28 | 2018-07-07T15:59:28 | 115,065,461 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 136 | r | weather.R |
weather_forecast <- function(zipcode) {
set_api_key(Sys.getenv('WUNDERGROUND_KEY'))
forecast3day(set_location(zip_code=zipcode))
}
|
0e6ce552320ae78a0c5206421ec089f49dec8540 | 74fe29da37e54fb5e49a1ae7d4cf5051428202eb | /demo/example_hl_competitiveness.R | ed2886163e3c55d1bfccfd7cb814fac5d36dccc1 | [] | no_license | CRAFTY-ABM/craftyr | 7fd8e63f85f4ddc13fbb0a79b67710a7b5a818f2 | 5630d1f0e4a1b1c34e3d10740640d414346f1af4 | refs/heads/master | 2022-08-11T13:20:13.579266 | 2018-06-16T06:55:19 | 2018-06-16T06:55:19 | 266,212,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 155 | r | example_hl_competitiveness.R | cfuncs <- c("Cereal" = function(x) {100*x},
"Meat" = function(x) {100*x},
"Recreation"= function(x) {100*x},
"Timber" = function(x) {100*x}) |
95ba164daaa0efa8257ae03cbb262fc380d47784 | fff251aa07e97496f6ea1785b6b8109723ad5510 | /tests/testthat/test-article.R | 98ab201ceba18dc1631fbe0a9c5386d1f7243ae9 | [
"Apache-2.0"
] | permissive | kevinykuo/radix | 509ac2015b33aba816153aa52147ed4ef0185f6d | 6c79cd0c42a20b494ddf63adcc0a5d2bd2861c0a | refs/heads/master | 2020-04-11T18:02:23.198125 | 2018-12-14T17:19:42 | 2018-12-14T17:19:42 | 161,983,999 | 0 | 0 | Apache-2.0 | 2018-12-16T08:58:01 | 2018-12-16T08:58:01 | null | UTF-8 | R | false | false | 183 | r | test-article.R | context("article")
source("utils.R")
test_that("radix articles can be created", {
skip_if_pandoc_not_installed()
expect_s3_class(radix_article(), "rmarkdown_output_format")
})
|
a9806fc1ee51d42d6642d0574b7d1d9b8a8e03ac | 0204a92ca1094acb54ae9ddd8a418ea1fae11d83 | /bridge_results.R | 1b20e3dafef91323fa88472a19c3d64f7f8e9a6a | [] | no_license | Hel1vs/Bridge | 379223f53a461c9cde3c6cace260184e75996e3f | 270aaeefc7dde79347cb3807e13e68700a8087d3 | refs/heads/master | 2023-04-17T18:10:58.376242 | 2022-03-08T20:34:15 | 2022-03-08T20:34:15 | 285,506,442 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 124,187 | r | bridge_results.R | # Load data ---------------------------------------------------------------
setwd("~/disks/y/Project/E555163_COMMIT/Data/Database/Snapshots/Scripts/R/Bridge/Bridge")
config <- "config_bridge" #"config_COMMIT"
scencateg <- "scen_categ_bridge" #"scen_categ_COMMIT"
variables <- "variables_bridge" #"variables_xCut"
adjus... |
f6e3d68ccea8a555da7b62eb05c6fd9eb73f2328 | 2d994c4a960ec254aa08933f7138c822baa6febe | /cachematrix.R | d5a20afce375dfa38b2ae2fbf2379adcebbe876a | [] | no_license | fp-repo/ProgrammingAssignment2 | 6af9222cb405541c5d136032ca7d62ac65c2bd70 | c6e1245345bdb963ac41abfecbf811a510c84587 | refs/heads/master | 2020-06-29T07:16:06.495958 | 2019-08-04T13:02:32 | 2019-08-04T13:02:32 | 200,472,272 | 0 | 0 | null | 2019-08-04T09:11:28 | 2019-08-04T09:11:27 | null | UTF-8 | R | false | false | 1,626 | r | cachematrix.R | ##
## The functions makeCacheMatrix and cacheSolve have been designed as second
## assignment of the "R Programming" course over the Coursera platform. The two
## functions allow calculating and storing the inverse of a matrix in order to
## reduce the number of iterations executed by the system.
## The function mak... |
772faeba7fe39a61f04f37bdd5707a3e8433e829 | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#118.A#48.c#.w#7.s#15.asp/ctrl.e#1.a#3.E#118.A#48.c#.w#7.s#15.asp.R | 73cbc27aa86e1068e27e8a5708c3c36dd3fb2ce7 | [] | no_license | arey0pushpa/dcnf-autarky | e95fddba85c035e8b229f5fe9ac540b692a4d5c0 | a6c9a52236af11d7f7e165a4b25b32c538da1c98 | refs/heads/master | 2021-06-09T00:56:32.937250 | 2021-02-19T15:15:23 | 2021-02-19T15:15:23 | 136,440,042 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 91 | r | ctrl.e#1.a#3.E#118.A#48.c#.w#7.s#15.asp.R | a339df0656f6cbcc1c8e666d968db0a7 ctrl.e#1.a#3.E#118.A#48.c#.w#7.s#15.asp.qdimacs 6773 19822 |
22808ca4563757e71d6d0c5b676e14181c0f95e3 | 0ca8fd2b2f7ed68d977f1cca1bb3c25b6acbdb26 | /Dis_graph_review.R | 4d3a90fb0410091ce1af734a2e235cebe6aa55c5 | [] | no_license | TheMoorLab/Tooth | 87b1534628c9b06e9c87b1076f413d020754c604 | b32bf333f1933a48436e9520ca1ae358a0c9f497 | refs/heads/master | 2023-04-07T10:42:06.842346 | 2021-04-07T07:36:28 | 2021-04-07T07:36:28 | 239,493,294 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,683 | r | Dis_graph_review.R | # Jaccard distance plotted tih force-directed graph layout
# MUST BE RUN AFTER umap_heatmaps.R OR must load:
library(plyr) #join
library(proxy) # more distances (ejaccard)
library(qgraph) # force-directed graph layout
Idents(object = merged_harmony) <- "groups_bysize"
av.ex_top = AverageExpression(merged_harmony... |
67d7314720b9b1b102da91138b4ca5946e17ef71 | 93a0fb25288a0602a6189b6930bc6329ee4ac124 | /pandey_200151827_Q9_3.R | de59d6ab60ee5ac9e749a23751283efea3cefd42 | [] | no_license | apan255/R_Workspace | 001cf88b1ae0b697358ab9a0f3c0c26bfd40f59e | 5639fa2bec0943d9e26d27fc5c1da8696aeb0ff0 | refs/heads/master | 2021-01-11T16:17:45.254730 | 2017-01-25T21:17:33 | 2017-01-25T21:17:33 | 80,058,682 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 185 | r | pandey_200151827_Q9_3.R | normal_random_variable<-rnorm(300, m=24, sd=5)
qqnorm(normal_random_variable, main="Sample normal qqplot of normal random variable with mean 24 and sd 5")
qqline(normal_random_variable) |
87f12df862a846599f15403f6b054bae9b2c5221 | 33bb983cc20cff0a5bfc8ef342addd678274b061 | /Mail/mail.R | 1f113995e7ced4e8296c6403066c115217ab30b4 | [] | no_license | Gottavianoni/R | 00c65142fd29e62cc010147b9089eaecd85f0ea9 | 6918a4dec29faa442567f7ce271c38d001b9a2af | refs/heads/master | 2021-01-22T20:35:18.829590 | 2017-04-05T15:17:39 | 2017-04-05T15:17:39 | 85,334,011 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 406 | r | mail.R | #MAIL
install.packages("RDCOMClient")
library(RDCOMClient)
## init com api
OutApp <- COMCreate("Outlook.Application")
## create an email
outMail = OutApp$CreateItem(0)
## configure email parameter
outMail[["To"]] = "*****"
outMail[["subject"]] = "some subject"
outMail[["body"]] = "some body"
## send it ... |
6f16dff48837a9ccf205b900bb9a069c1c6d7248 | bad7f54bb4235f354a70dcf10f28f2e7b139ba4b | /R_script/Sylvioidea_Ultimate/Geodesic/find_potent_knum.R | e99b895c78a717fe3d67b55c37ebca15ef5067d2 | [] | no_license | HKyleZhang/Sylvioidea_project | 05f13565b00fdb63cc4f6d6b5f302424a5923af4 | c581310129f9f4e0d7a53790bb74bc3ddc88e4e0 | refs/heads/master | 2020-04-11T03:32:18.118864 | 2019-03-19T15:02:08 | 2019-03-19T15:02:08 | 161,481,178 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 762 | r | find_potent_knum.R | logd <- read.csv("logLkhforR.csv", header = TRUE)
logd <- abs(logd[,2]-logd[,3])
logdmin <- min(logd, na.rm = TRUE)
min.ind <- which(logd == logdmin)
logper <- seq(1:14)
for (i in 1:13) {
logper[i+1] <- logd[i+1]/logd[1]
}
res <- array("NA", 14)
j <- 1
threshd <- 0.5
for (i in 1:12){
if (logd[i] <= logd[i+1]){
... |
6f4ec2c486fb72d812990c29a804f22ca6ca6090 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.mobile/man/mobileanalytics_put_events.Rd | ce2315c05db0ec5434fdc1e57b77ae0af1e6a046 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 1,350 | rd | mobileanalytics_put_events.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mobileanalytics_operations.R
\name{mobileanalytics_put_events}
\alias{mobileanalytics_put_events}
\title{The PutEvents operation records one or more events}
\usage{
mobileanalytics_put_events(events, clientContext, clientContextEncoding)
}
\a... |
d2ebf457287b1215b772eea5e0c21a61c170e05a | 55686d2928596baa6bbde6b972d191f8a035f573 | /Week_7_Discussion/Discussion_Week7_V1.R | af3bcec0a8b2c7fbe43e397bc0bdf668bda1c4fb | [] | no_license | DarioUrbina/Teacher-A-Statististical-Methods-BME-423 | 6556688a414c1b3ee404aacdbf4401324f0b2645 | 1572301100c96583da46209d08ceac4efa570024 | refs/heads/master | 2023-01-06T23:57:37.652149 | 2020-11-06T02:45:19 | 2020-11-06T02:45:19 | 288,513,280 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,865 | r | Discussion_Week7_V1.R | #Chi-square goodness-of-fit
#GOF tests if the observed data fits a certain distribution (probability)
#Modify cards to one column
rm(list = ls());
cat("\014")
setwd("~/Desktop/Week_7_materials")
load("randomness.Rdata")
library(lsr)
who(expand = TRUE)
head(cards[,c(1,2)]) #1st selection
TotalSelections <- 200 ... |
8c97046065f238a4ae4922b938641817a38f99cf | be348ef72c01bd46481b14a9f9df770b46c25f72 | /UsToDec.R | 92c3c03c294502d0abb7fc69d816998c5f6c7032 | [] | no_license | cardsbettor/OddsEngine | b0ad1d16bf02e54da316240ec825ecc48c7ecd58 | dcda80a365a96bf1602f2ac19119c57f93007ccc | refs/heads/main | 2023-02-10T00:13:42.766742 | 2021-01-01T21:18:05 | 2021-01-01T21:18:05 | 321,608,874 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 172 | r | UsToDec.R | UsToDec <- function(price){
if(price <= -100){
round(100/abs(price) + 1,2)
}
else{
if(price >= 100){
round(price/100 + 1,2)
}
else {NULL}
}
}
|
54f63fda1d2ee4e5a1793446f79ec50045de71ac | c7b96498e324b23287b7e6b286e23f7d599abba3 | /Zika-ZF Yi.r | 43e228e40165413d100a11cd3f4b7bfd67c1355b | [] | no_license | Geoyi/Data-visualization-of-global-zika-Virus-epidemic-in-2015-and-2016 | 52698b1f4127b5623d278649e0ca88c68ffa7ea7 | f5f4601f0e4d7299036dc0ab61b16a61723d0017 | refs/heads/master | 2021-01-19T05:39:36.550647 | 2016-07-29T17:52:06 | 2016-07-29T17:52:06 | 64,427,493 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,169 | r | Zika-ZF Yi.r | library(dplyr)
library(data.table)
library(ggplot2)
library(RColorBrewer)
library(rworldmap)
#system("ls ../input")
#zika = read.csv("../input/cdc_zika.csv", stringsAsFactors = F, header = T)
setwd("C:/Data Science Fundation with R/Kraggle/zika-virus-epidemic")
list.files("C:/Data Science Fundation with R/K... |
6acdef8b4e11c00931bdfed27357ab1ed0c6a25d | e71493c5666af39ca887c9e71b6e50b08d8fa508 | /R/values-methods.R | 0451533d2aba923e58d853458d097d6c523c4e56 | [] | no_license | cran/MendelianRandomization | 6d4d9bd2418b9d706bb41f5af7e1deb281156438 | 7c5864084eaf2a68534d16617c7319bbb08226d9 | refs/heads/master | 2023-08-17T13:29:51.450083 | 2023-08-08T18:10:02 | 2023-08-08T18:31:16 | 67,027,188 | 33 | 23 | null | null | null | null | UTF-8 | R | false | false | 1,705 | r | values-methods.R | #' Applies method values() to different output classes
#'
#' @description Enables the internal function \code{values}, used in the \code{mr_allmethods} function.
#' @docType methods
#' @name values
#' @param object Object (could be an object of class "WeightedMedian", "Egger", or "IVW").
#'
#' @keywords internal... |
1afc0d266ada7aa78bdf9c0c1f1cd4f1bcd4599c | 337deca529928a9036c8939cb47a39b7435d0f1a | /R/simplify.R | 15d868a209f6c4b001867c742fd7200e739a4c98 | [] | no_license | alko989/icesTAF | 883b29e78ee69a5ef2dd5e5ca5a680cb220789d8 | a5beaaf64ed1cacc09ca7732e791e89373d1d044 | refs/heads/master | 2020-04-28T10:02:16.923481 | 2019-03-09T23:15:02 | 2019-03-09T23:15:02 | 175,188,781 | 0 | 0 | null | 2019-03-12T10:36:18 | 2019-03-12T10:36:18 | null | UTF-8 | R | false | false | 951 | r | simplify.R | simplify <- function(x) {
# from Arni's toolbox
# coerce object to simplest storage mode: factor > character > numeric > integer
owarn <- options(warn = -1)
on.exit(options(owarn))
# list or data.frame
if (is.list(x)) {
for (i in seq_len(length(x)))
x[[i]] <- simplify(x[[i]])
}
# matrix
else... |
35c5bde8682ebc5cc55b618423e18f8a04176e49 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/wakefield/examples/r_list.Rd.R | 36acfc1645f0199f7bcd0655799d6095f8e8a81e | [] | 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 | 432 | r | r_list.Rd.R | library(wakefield)
### Name: r_list
### Title: List Production (From Variable Functions)
### Aliases: r_list
### Keywords: list
### ** Examples
r_list(
n = 30,
id,
race,
age,
sex,
hour,
iq,
height,
died,
Scoring = rnorm
)
r_list(
n = 30,
id,
race,
age(x = 8:1... |
ade5bc5feb0cd2d8cf10b8fdae5a1a028930f045 | 4d83f68148bbafb7a00990fd8da17548970ac021 | /bin/191007_figure3.R | c413fc094ea4ad3b984ed9e9a63c6775cf1808a9 | [] | no_license | liwenbo520/Yeast-GGE | 265082d10628c9d75a98e24907252ab4971df99d | 044ff8b9c6003e3d7915e95a720568f62c41e9e3 | refs/heads/master | 2022-04-07T21:17:21.518852 | 2020-02-26T09:28:19 | 2020-02-26T09:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,689 | r | 191007_figure3.R | load("./results/figure3.RData")
#dev.off()
par(xpd=T,mar=c(4,4,2,1),mfrow=c(4,4),cex.lab=1.52,cex.axis=1.1)
plot(p$loadings[,1], p$loadings[,2],col="black",frame.plot = F,xlab="PC1",ylab = "PC2",pch= ifelse(rownames(p$loadings) %in% index_selected,19,0) )
text(x =p$loadings[,1],y=p$loadings[,2]+0.04,labels =rownames(p$... |
f167f6f8fcdfbe432ce5f76e330f87d9e6bd6a6e | 20c367ee9f5d5585a41d0b3d12a48633ea7c5f03 | /pre-process_trips.R | 98a59dffa8c8643909525c55a0e7a21c806a20f1 | [
"MIT"
] | permissive | WorldFishCenter/timor-catch-estimation | ea908664c5e9ea49dea8e8a7482b68234d448ad5 | de66b2e04224fa8aa84f76d3a8d20c3027cfe030 | refs/heads/master | 2023-03-26T22:12:55.612292 | 2021-03-19T00:23:48 | 2021-03-19T00:23:48 | 317,982,927 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,970 | r | pre-process_trips.R | files <- list.files("data/raw/peskas-tracking2",
pattern = "timor_all",
full.names = TRUE)
library(magrittr)
library(data.table)
process_track_file_dplyr <- function(x){
m <- readr::read_csv(x, col_types = "Tccdddddcccc")
on.exit(remove("m"))
if (isFALSE("imei" %in% coln... |
8c19c5e3ecfae8efd0f6b93e1bf8c61b857df3ab | 28361565ec0320451d6e4ec45c630613f0294486 | /lab5sarasara/man/lab5sarasara.Rd | 7b002072bbbb3f0a6f364c901555d106b83bc663 | [] | no_license | SaraJesperson/AdvancedRlab5 | a7c5177500711bcb4274324455a4ac3da284dc71 | 35809b7f6c47c2592813ec0ad1e592212d93f611 | refs/heads/master | 2020-03-29T00:03:54.226716 | 2017-10-06T08:40:36 | 2017-10-06T08:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 412 | rd | lab5sarasara.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lab5sarasara.R
\docType{package}
\name{lab5sarasara}
\alias{lab5sarasara}
\alias{lab5sarasara-package}
\title{Election results of the Swedish election 2014}
\description{
A package containing a function to visually analyze the election result... |
e512bfc37407e70d38d4c7bbe246c37f713e6780 | a4bd05fdf74fa9a6172d5902f588b643a75d33c9 | /Inference/PF/2-Senegal/pft_21_network_exec_fan_pred.R | 7c1a0e6c48e4ee9c4b62eed3e8979e99e606c7dd | [] | no_license | Fanfanyang/Projects | 53abfd6ee02105aa5cc1b9d04a21a7fcba783375 | 615c3ca5e751fa699a710a5ec91e743b090d401f | refs/heads/master | 2020-03-28T09:50:35.763635 | 2018-10-29T02:23:05 | 2018-10-29T02:23:05 | 148,063,753 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,658 | r | pft_21_network_exec_fan_pred.R |
library('Matrix')
require('TTR')
require('igraph')
require('survey')
require('grr')
require('RcppEigen')
require('Rcpp')
load("data_exec/Xt_real_fan.RData")
load("data_exec/Yt_fan.RData")
load("data_exec/m.time.fan.RData")
load("data_exec/obs.matrix.RData")
load('data_prep/tower_dakar.RData')
load('data_exec/vehicle.... |
84c29780423b34d3f2e783bb4925d8ef1f42293a | 82b1c5655856b660c053d18ec7ad94f3aa30a964 | /tests/testthat/test-function-plot_file_size_in_depth.R | 0f05dbe8230fcbf5a37f1ebb26f5b16c7894b6ce | [
"MIT"
] | permissive | KWB-R/kwb.fakin | 9792dfa732a8dd1aaa8d2634630411119604757f | 17ab0e6e9a63a03c6cb40ef29ee3899c2b2724a0 | refs/heads/master | 2022-06-09T22:25:09.633343 | 2022-06-08T21:24:14 | 2022-06-08T21:24:14 | 136,065,795 | 1 | 0 | MIT | 2021-03-15T10:55:17 | 2018-06-04T18:21:30 | R | UTF-8 | R | false | false | 202 | r | test-function-plot_file_size_in_depth.R | test_that("plot_file_size_in_depth() works", {
f <- kwb.fakin:::plot_file_size_in_depth
expect_error(f())
df <- data.frame(extension = "xls", depth = 1, root = "a", size = c(1,2))
f(df)
})
|
e03a1006cfc17d800508b19bf55173a8044efa3a | 7eb63399fa00e3c547e5933ffa4f47de515fe2c6 | /man/print.stppp.Rd | 28159b94fe266a8eb31ae6d52044248620c6bcbc | [] | no_license | bentaylor1/lgcp | a5cda731f413fb30e1c40de1b3360be3a6a53f19 | 2343d88e5d25ecacd6dbe5d6fcc8ace9cae7b136 | refs/heads/master | 2021-01-10T14:11:38.067639 | 2015-11-19T13:22:19 | 2015-11-19T13:22:19 | 45,768,716 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 377 | rd | print.stppp.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/stpppClassDef.R
\name{print.stppp}
\alias{print.stppp}
\title{print.stppp function}
\usage{
\method{print}{stppp}(x, ...)
}
\arguments{
\item{x}{an object of class stppp}
\item{...}{additional arguments}
}
\value{
prints the stppp ob... |
764b430b481b62225918d2316445fccbc1edc45f | 331234b7eabbe4daf51ee8143c6dcbc768da0595 | /Plot Distribution Speciation Events.R | 5d2267d9d66e0de442055cabe5755d542e2dcdaa | [] | no_license | IanGBrennan/Convenient_Scripts | 6e3959ad69e594b21a5b4b2ca3dd6b30d63170be | 71f0e64af8c08754e9e3d85fe3fb4770a12ec2d4 | refs/heads/master | 2021-05-12T03:57:32.339140 | 2020-01-30T01:58:19 | 2020-01-30T01:58:19 | 117,630,023 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 817 | r | Plot Distribution Speciation Events.R | library(geiger)
library(ape)
library(BAMMtools)
library(phytools)
#####################################################################
#### Plot Distribution of Speciation Events (not all branching events)
#####################################################################
mar<-read.tree("oz.marsupials.tre")
n<-le... |
1568b0fa81833c834b715cb792d9276877e4838a | c7aa8e706945584fbf1cab17d47cb95d22170bb8 | /plot1.R | 27194014988f1a9cd5f97abf3ad47c5e101ac552 | [] | no_license | Tonnia/ExData_Plotting1 | 8fd9c1cca1b623ace06577c7f70c8817feb070af | 841f99b2bdd1f801424681e4ea6feff2339e08a6 | refs/heads/master | 2021-05-12T11:32:22.654690 | 2018-01-14T01:26:25 | 2018-01-14T01:26:25 | 117,390,095 | 0 | 0 | null | 2018-01-14T00:40:51 | 2018-01-14T00:40:50 | null | UTF-8 | R | false | false | 510 | r | plot1.R | # read in data date = 2007/02/01 and 2007/02/02
data <- read.table("household_power_consumption.txt", stringsAsFactors = FALSE,
na.strings = "?", header = TRUE, sep = ";")
data_use <- subset(data, Date %in% c("1/2/2007","2/2/2007"))
data_use$Date <- as.Date(data_use$Date, format="%d/%m/%Y")
# ... |
2721d2a5945eb1543ba8dffd620c00b2f817b5cd | 3541b9aca6dc776827dd780f25e2e41f07fcb322 | /plot4.r | 641a5ed60574d4fb50523c960878afdac1e57429 | [] | no_license | pilimayora/ExData_Plotting1 | e970f7ba77b355c9205ae9856413252246620e1d | 088f64152bd95493f758a0ab313d1009e6c3080b | refs/heads/master | 2020-12-28T20:19:25.518045 | 2016-03-06T23:38:32 | 2016-03-06T23:38:32 | 53,272,986 | 0 | 0 | null | 2016-03-06T19:51:55 | 2016-03-06T19:51:54 | null | UTF-8 | R | false | false | 2,110 | r | plot4.r | # Replace by URL where file was downloaded
epc <- read.csv("/Users/pilimayora/Downloads/household_power_consumption.txt", sep=";")
# Change ? by NA
epc[epc == "?"] <- NA
# Update date column as Date
epc$Date <- as.Date(epc$Date, format = "%d/%m/%Y")
# Subset only Feb1st and Feb2nd, 2007
epc_feb <- subset(epc, Date==a... |
5d8baa0fff310e0ec20d704fb6180574d30e678e | 88ef8c8d97e825a78e96da1346e1bc3bcfaf7d63 | /seismology.R | 600adfaf65035d5e21e9c6096a370b57c65554c5 | [] | no_license | earlbellinger/mesa | 9a4aad16ca608cd0fb9e949338168facfd0f64af | 4f6b3aa7396c496a8bd1cd6db78b603845eb94f4 | refs/heads/master | 2021-03-16T10:22:34.916871 | 2015-12-14T16:48:56 | 2015-12-14T16:48:56 | 38,882,904 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,375 | r | seismology.R | #### Obtain model properties from evolutionary tracks
#### Author: Earl Bellinger ( bellinger@mps.mpg.de )
#### Stellar predictions & Galactic Evolution Group
#### Max-Planck-Institut fur Sonnensystemforschung
options(error=traceback)
library(matrixStats)
library(magicaxis)
library(RColorBrewer)
library(parallel)... |
ca5ce1fcf183cf25e5aa99e8aa84b9de0943d6b0 | 17d4e98e859d4ea34a6783ed3757a6e3d89b32e3 | /wikipageview/R/articlecount.R | 619da1742cf075ff7031af6bf993f70c32f4c234 | [
"MIT"
] | permissive | haotianjin/ubco-data-534-project-group | 318409dc7226dc156751174ff2c809426ecfa557 | e006c9e9a1b5102e37e2f12d191f006815b4cd72 | refs/heads/main | 2023-03-11T18:32:06.333202 | 2021-02-19T02:20:49 | 2021-02-19T02:20:49 | 338,165,641 | 0 | 0 | null | 2021-02-15T14:21:00 | 2021-02-11T22:10:01 | R | UTF-8 | R | false | false | 2,632 | r | articlecount.R | #' Return a period page view count of a specific article from wikipedia page view api.
#' This function generate a data frame contains a specific article page view count within an entered period.
#'
#' @import tidyverse
#' @import httr
#' @import jsonlite
#' @import stringr
#' @import lubridate
#' @param article_title ... |
f5ab5e8486b5a1f3f9f89fe76d6ccae585cf6ece | e5b0acd8a255c9491d27fc7706db6833b151db22 | /R/test-in-sso.R | aa1ac0624436d26a28c99eaa35fa201550fa8345 | [
"MIT"
] | permissive | rstudio/shinycoreci | 52b867e603a207d1e62552bf006572f6365f85fe | 05cb467a217972a5f838d18296ee701307a2430f | refs/heads/main | 2023-08-31T14:59:49.494932 | 2023-08-14T14:49:17 | 2023-08-14T14:49:17 | 227,222,013 | 38 | 5 | NOASSERTION | 2023-09-11T18:29:27 | 2019-12-10T21:46:45 | HTML | UTF-8 | R | false | false | 8,143 | r | test-in-sso.R | #' Retrieve default GitHub username
#'
#' Equivalent to the terminal code: `git config github.user`
#' @export
github_user <- function() {
system("git config github.user", intern = TRUE)
}
#' Test Apps in SSO/SSP
#'
#' Automatically launches docker in a background process. Once the docker is ready, a shiny applica... |
8eae3c055b99164a0c4fef823fd7038c17a60712 | c012e767662190621ff739c0610653c1b6a9984b | /man/backup.Rd | 8d93e5b5e1b1b848cb92f481306822c57ded533d | [
"MIT"
] | permissive | IMCR-Hackathon/toolkit | e63d663fb650c966796957d5a2ea9462004c74fb | dff0643fe9d02f9da61c4c677d57596d661ed385 | refs/heads/master | 2020-06-24T05:11:46.037268 | 2019-09-26T19:48:49 | 2019-09-26T19:48:49 | 198,857,632 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 491 | rd | backup.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/backup.R
\name{backup}
\alias{backup}
\title{Back up all software metadata in the IMCR Portal}
\usage{
backup(path)
}
\arguments{
\item{path}{(character) Where IMCR metadata will be written.}
}
\value{
(.json) JSON metadata files written to t... |
8dd4129713ab04378b422ecb649dddbb7339777b | 3474af6c604afd89a64b3a1a637f02384669dba7 | /R/geom-pictogram.R | 9e335e893a4889084dc0ddaa0190a3d04985a378 | [] | no_license | edwindj/waffle | 4dbb28d1aabaaa0a93502fa122fcb853400924dd | 1d076c55f30b1a5ad101679be726e5d90c86f91b | refs/heads/master | 2020-07-08T04:51:51.664029 | 2019-08-21T12:20:26 | 2019-08-21T12:20:26 | 203,570,123 | 1 | 1 | null | 2019-08-21T11:28:08 | 2019-08-21T11:28:07 | null | UTF-8 | R | false | false | 5,718 | r | geom-pictogram.R | picto_scale <- function(aesthetic, values = NULL, ...) {
values <- if (is_missing(values)) "circle" else force(values)
pal <- function(n) {
vapply(
if (n > length(values)) rep(values[[1]], n) else values,
function(.x) .fa_unicode[.fa_unicode[["name"]] == .x, "unicode"],
character(1),
U... |
150a81d74fe5d74cc4aea8283615fc126c9b9d57 | 9251053f822d7761f5f664c84c103e97a492f212 | /R/simulate_individuals_df.R | dea5c7fd4e7f6daa40f359b33021e224455f1342 | [
"MIT"
] | permissive | uk-gov-mirror/ukgovdatascience.orgsurveyr | c1554a7d224f6a77c2247364080d1a1a52a74c61 | a7ff62bd4a5e5975bc7302b543695481c2fd7708 | refs/heads/master | 2021-10-01T00:56:28.514944 | 2018-11-26T14:06:30 | 2018-11-26T14:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,242 | r | simulate_individuals_df.R | #' Simulate individuals data frame
#'
#' Given an organisation tbl_graph object with the unit_size column defined, a tibble will be generated
#' with one row per individual in the organisation. For test purposes a dummy variable is also generated.
#'
#' @param x tbl_graph organisation with unit_size defined
#'
#' @ret... |
2cc7edaeed65b9adbc7c82b2cd402f077e4f9fcf | 5d6f5daba9f5f9374039bcc649da05ae7626819f | /man/print.RV.Rd | 8aedfd245f8bcb47c5e564e7cfb5b7b5d402e692 | [] | no_license | Dasonk/drvc | b3db750bc396acea475793506ee630fef7ba02ef | b78dd94c7961b941f3ce4a5729421c276a86dc5d | refs/heads/master | 2021-01-11T04:57:39.898768 | 2014-05-04T02:47:00 | 2014-05-04T02:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 350 | rd | print.RV.Rd | \name{print.RV}
\alias{print.RV}
\title{Print random variable}
\usage{
\method{print}{RV} (x, ..., digits = 4)
}
\arguments{
\item{x}{A random variable}
\item{digits}{The number of digits to use when printing}
\item{\ldots}{Further parameters to pass to
print.data.frame}
}
\description{
Provide a nice way... |
4120ba2004e759313b3cc6480703d6338f2351ea | 9ddd623471e8174ade5b9921dbc1cb1da731e115 | /man/calendar.Rd | e32abb0141349ddafa15d5889adabd3b7af4363e | [] | no_license | zackarno/koborg | 2eba2f837b51a494b7efcb8d491e800de6ec70d9 | 6312bb3ab0b59b96f91812b90f5afd224d599b04 | refs/heads/master | 2022-09-13T17:11:09.884337 | 2020-05-27T09:45:22 | 2020-05-27T09:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 325 | rd | calendar.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class_calendar.R
\name{calendar}
\alias{calendar}
\title{Calendar constructor}
\usage{
calendar(
x = new_date(),
relevant = NA,
label = NA,
constraint = NA,
source = "excel"
)
}
\description{
`calendar()` constructs a calendar vecto... |
bd87579365ec93350daa8a72e3dba770627faa90 | db2cbc930ff30ec463901319136c55322d2ec296 | /Assignment 5.3.r | 1b4a9b60a041997851ee205c22f3bec60b2ee583 | [] | no_license | hariarjun/Assignment-5 | eab60494e67df2d613d07ea28756304c311b80c7 | 31a459dbcd669a19c5bf568e812d730153288108 | refs/heads/master | 2020-03-23T05:57:18.534563 | 2018-07-16T18:42:17 | 2018-07-16T18:42:17 | 141,178,930 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,158 | r | Assignment 5.3.r | #Question 1 : Test whether two vectors are exactly equal (element by element).
vec1 = c(rownames(mtcars[1:15,]))
vec2 = c(rownames(mtcars[11:25,]))
vec1 %in% vec2
vec1 == vec2
identical(vec1,vec2)
all.equal(vec1,vec2)
#Question 2: Sort the character vector in ascending order and descending order.
vec1 = c... |
0000ed418e5903aaf38e7109f69a336ed75d08e7 | 9d8b86b2a20d5fd3c31a3bce56e7f52312187be1 | /R/start.session.R | 4ab20a26f98cda71f0d8310a64b1433fbc0837e8 | [] | no_license | hms-dbmi/Rcupcake | d4141be5394de83340f476392defa11477fda1ee | 2f87f7c771ceb0da7813a90529c973e1f028b6e8 | refs/heads/master | 2022-01-17T06:03:15.038438 | 2019-07-02T23:44:11 | 2019-07-02T23:44:11 | 81,849,992 | 2 | 5 | null | 2018-04-06T15:36:32 | 2017-02-13T17:08:40 | HTML | UTF-8 | R | false | false | 2,662 | r | start.session.R | #' Start the connection to the database
#'
#' Given a URL and a key access it starts the connection to the database
#'
#' @param url The url.
#' @param apiKey The key to access to the data.
#' @return A message showing if the connection has been done or not.
#' @examples
#'
#' sessionEx <- start.session(
#' ... |
8ae896f9ce2e6afb396722aaa92edbe2bc70252a | c8bce529daccc22533607fd83eeced0509b044c8 | /tests/testthat/test-make_grps.R | 93e195ca948563b5799e070eb2a020ed8b213994 | [
"MIT"
] | permissive | camille-s/camiller | 4621954dac2954ed1d6ef60cc8b273ef533ab78e | 544ee2879a1c4f6bc5a75b854d1d3c57a99bae84 | refs/heads/main | 2022-03-05T22:57:39.198220 | 2022-01-21T21:52:56 | 2022-01-21T21:52:56 | 134,476,995 | 2 | 0 | NOASSERTION | 2022-01-21T20:43:39 | 2018-05-22T21:18:03 | R | UTF-8 | R | false | false | 2,884 | r | test-make_grps.R | library(camiller)
library(testthat)
test_that("make_grps gets group names", {
ages <- c("Under 6 years", "Under 6 years", "Under 6 years", "6 to 11 years",
"6 to 11 years", "6 to 11 years", "12 to 17 years", "12 to 17 years",
"12 to 17 years", "18 to 24 years", "18 to 24 years", "18 to 24 yea... |
c3a6d4d435cd86c8917d01ceae26513d3cdd3e93 | f6b808b919500f3cad19ddd1e04d3959957ae9c0 | /plot4.R | 7021423851b7745fc1c92216768e54a37ed9c86f | [] | no_license | Rajat9654/ExData_Plotting1 | b63ae463b716ac64636b28296457146cee4271eb | 9ecc5c72c43fb45e6456f9565a96f4671168509a | refs/heads/master | 2021-01-20T04:11:44.299566 | 2017-04-30T07:14:29 | 2017-04-30T07:14:29 | 89,656,123 | 0 | 0 | null | 2017-04-28T01:42:57 | 2017-04-28T01:42:56 | null | UTF-8 | R | false | false | 1,739 | r | plot4.R | library(lubridate)
data <- read.table("household_power_consumption.txt" , sep = ";" , header = TRUE)
data$Date <- dmy(data$Date)
Subdata <- subset(data , c(Date == '2007-02-02' | Date == '2007-02-01'))
Subdata$Global_active_power <- gsub("?",NA, Subdata$Global_active_power , fixed =TRUE)
Subdata$Globa... |
71ec9e017abefad447bf07a919d17f744d83a07d | 2f6ee1089c3888ff01b4e880724445fc2c74817a | /server.R | 890e4633aad57dd9e9f4c7b83eee113f2bcb5ca3 | [] | no_license | hknust/ddpapp | 82d671fa35655082fe57f6e9298ec04af760fa10 | 400fb5ce31b8ae63baf4e0fc7a10ed51c8e7c31d | refs/heads/master | 2020-04-22T07:49:10.682388 | 2015-07-26T21:30:43 | 2015-07-26T21:30:43 | 39,742,808 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,534 | r | server.R | library(shiny)
library(ggplot2)
library(data.table)
library(maps)
library(rCharts)
library(reshape2)
library(markdown)
library(mapproj)
states_map <- map_data("state")
load("data/state_gdp_final.RData")
industries <- sort(unique(gdp$Description))
shinyServer(function(input, output) {
gdp.agg <- reactive({
ss ... |
02102298fdaeeb4c117a4c6f3b5be2981070ee8b | 9e713bd43e164d946c2e9fcaefc86e218145f387 | /sparseDataFrame.R | 914e42c3334eb9a2fdd3d4d6ff13ef93a47d00e4 | [] | no_license | klh8mr/travel_search_analysis | cd41ca46bac15c6188ab49dbf7cd1a3bd2053c04 | 63426a74f1a263b99860c0849887831d12daf43c | refs/heads/master | 2021-01-18T23:17:01.355555 | 2017-05-08T02:00:23 | 2017-05-08T02:00:23 | 87,102,768 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,600 | r | sparseDataFrame.R | library(jsonlite)
library(plyr)
library(stringr)
library(arules)
library(magrittr)
library(dplyr)
setwd("~/UVaMSDS/MachineLearning/FinalProject")
df <- read.csv("cityData.csv")
df_city <- df # save version of df to get avg and min distance later
## Create Sparse Matrix
###############################################... |
93a3fe3158867ca4d492a1393bd01f8a41c2997c | a9356c021ef2d7d73bdebaa35793b07fbe2eff3d | /R scripts/CPdayFR SCRIPT.R | f66346dfd54a5a02beb643caf24de06fff70c133 | [] | no_license | vegmer/NMDA | be523fb55eba8e35e22f34d7e044987171e69ffe | 9d33a480973db217b7624ba8d0598edb160e85f4 | refs/heads/master | 2020-03-24T01:20:53.056317 | 2019-05-08T15:11:54 | 2019-05-08T15:11:54 | 142,332,441 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,282 | r | CPdayFR SCRIPT.R | CPdayFR <- function(experiment="Exp 4", masterDF=list(masterDF_DS_VEH, masterDF_DS_AP5),
comp=c("VEH", "AP5"), graphFolder=MixedGraphFolder, dataProcess="Zscores",
correctOnly=FALSE, cueExcOnly=FALSE, color=colindx,
yAxMinZ = -2, yAxMaxZ = 10, yAxMaxRaw = 1... |
2fca678a1cff5e5c9ff76167267ccef6ddb5d4f6 | 749687f99c1cb3aced1b64c8c2609dc36ba52b8c | /tests/testthat.R | 6f221b76eec5c134337579f61a013cff58d93540 | [] | no_license | srvanderplas/ShoeprintCleanR | fa2316404b764fd560723b13073919ea6073518c | cf334aefa83997d0ecc0fc2602b013b99ef1738b | refs/heads/master | 2021-04-12T08:21:19.145091 | 2019-09-05T19:03:15 | 2019-09-05T19:03:15 | 126,033,594 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 76 | r | testthat.R | library(testthat)
library(ShoeprintCleanR2)
test_check("ShoeprintCleanR2")
|
8e979e8012c1c624768ff8ea6faeed3da4be4f55 | 2a1b80a49c7aaf7a97ed8721dc95b30f382fb802 | /MI_RBIG_2016_algo.R | 4a5817fe02831cd091d033f803f1183e0cad0202 | [] | no_license | thaos/RBIG | 42a334c61edebc2177a435d078031620adaa075a | 9b9e5177943eed770aeebf748a57a9e361e1d669 | refs/heads/master | 2021-01-13T03:47:12.220454 | 2017-02-03T09:04:03 | 2017-02-03T09:04:03 | 77,227,106 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,381 | r | MI_RBIG_2016_algo.R | library(entropy)
library(sROC)
library(mixAK)
library(MVN)
library(hexbin)
library(cramer)
library(lpSolve)
library(memoise)
library(amap)
library(scales)
# library(sn)
entropy_mm <- function(x, nbins=sqrt(length(x))){
dx <- discretize(x, nbins)
delta = diff(range(x))/ nbins
hx = entropy.MillerMadow(dx, ... |
936c7ec0bd57715d58a1d8275b788bab268f43db | f8853c17bd18fc7a9e625a98e1ffd20cee02ee63 | /man/erhmm.Rd | ce6f541bc87331fc4bc9829373509718538c9c2e | [
"MIT"
] | permissive | okamumu/mapfit | 9005f612df3c79301dd7a72a55b7881dd2cf8445 | 77fc2ab0b450fafdb8ae2ace348f79322d43296b | refs/heads/main | 2023-03-16T12:52:05.978437 | 2022-11-23T02:36:47 | 2022-11-23T02:36:47 | 495,679,672 | 2 | 0 | NOASSERTION | 2022-11-23T02:36:48 | 2022-05-24T05:19:18 | C++ | UTF-8 | R | false | true | 708 | rd | erhmm.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_erhmm.R
\name{erhmm}
\alias{erhmm}
\title{Create ERHMM}
\usage{
erhmm(
size,
shape,
alpha = rep(1/length(shape), length(shape)),
rate = rep(1, length(shape)),
P = matrix(1/length(shape), length(shape), length(shape))
)
}
\argu... |
4170495c3e13e9823f48ad6c3b77f81cafc2de52 | eeaa4f12f6f4e031a16323b6bdda5408874874d4 | /man/L1splines.Rd | 10e8ac1f0749287d75741abf5cfe3dc5641059f8 | [] | no_license | helenecharlotte/L1splines | bef04e0dbe95f827298ddcf825e7d2126dc9326a | 4a0b4cf4edfe32dc3c0e7980d2448caef6b5eb49 | refs/heads/master | 2021-01-20T17:54:02.255473 | 2017-11-20T10:48:10 | 2017-11-20T10:48:10 | 62,609,980 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 196 | rd | L1splines.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/L1splines-package.R
\docType{package}
\name{L1splines}
\alias{L1splines}
\alias{L1splines-package}
\title{L1splines}
|
35bf499def292f3e3ff4e03df3d470796a8d72d4 | b443cb3ec7263930f12ae4e97c01aea77c2f5c89 | /R/08_regional_baseline_differences_MACRO.R | 87cba2a1c2376b6ea007bd161b9fba11f3fd86d2 | [] | no_license | yoffeash/geo_spatial_copd | a90bf798efb02e90bc0fa242673e09f24d2430c3 | c00b5b9451ded3a98d6faa91653bc11cc4fd63ff | refs/heads/master | 2020-03-28T00:21:13.287811 | 2018-10-24T16:53:03 | 2018-10-24T16:53:03 | 147,401,747 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 898 | r | 08_regional_baseline_differences_MACRO.R | ### differences in regions by baseline characteristics ###
pairwise <- list(c("Midwest","Northeast"), c("Northeast","South and West"), c("Midwest","South and West"))
## age
ggplot(data=copd_region, aes(x=region_2, y=age)) + geom_boxplot() + stat_compare_means() + stat_compare_means(comparisons = pairwise)
## gold s... |
d2afb5ea0e0362e4eb8a897fff0fa50145d85811 | 3ae034f636da3885d76ed09f03222520d557f8b9 | /R/reader.R | 733ca5e4b9b1671344709de0f08a06a2cd90681e | [] | no_license | vlcvboyer/FITfileR | e32b03762ac55bfb6ac8e38aeb0f7ed6dadf549c | 90f52e716022123a02ecd2c44bdb73967d3f467c | refs/heads/master | 2023-07-09T05:02:09.914129 | 2021-08-11T08:11:07 | 2021-08-11T08:11:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,259 | r | reader.R | #' Read a FIT file
#'
#' Reads a specified FIT file and returns an object of class \code{FitFile}
#'
#' @param fileName A character specifying the FIT file to be read.
#' @param dropUnknown Many FIT files contain data that is not defined in the FIT
#' file specification. This may be used by the device manufacturer f... |
8c1ef0f900c34846241c103958f4c5bd2b0408f2 | a593d96a7f0912d8dca587d7fd54ad96764ca058 | /R/ml_feature_idf.R | 98bfceddb24f18909d1afd9232d84b45c3d67ba9 | [
"Apache-2.0"
] | permissive | sparklyr/sparklyr | 98f3da2c0dae2a82768e321c9af4224355af8a15 | 501d5cac9c067c22ad7a9857e7411707f7ea64ba | refs/heads/main | 2023-08-30T23:22:38.912488 | 2023-08-30T15:59:51 | 2023-08-30T15:59:51 | 59,305,491 | 257 | 68 | Apache-2.0 | 2023-09-11T15:02:52 | 2016-05-20T15:28:53 | R | UTF-8 | R | false | false | 2,388 | r | ml_feature_idf.R | #' Feature Transformation -- IDF (Estimator)
#'
#' Compute the Inverse Document Frequency (IDF) given a collection of documents.
#'
#' @template roxlate-ml-feature-input-output-col
#' @template roxlate-ml-feature-transformer
#' @template roxlate-ml-feature-estimator-transformer
#' @param min_doc_freq The minimum number... |
7c80e60e2ccf033a59f0cea18e5deebe600d18bd | 8dd69bdc4e638dc9def63e026f6db32cc4b118b6 | /man/ImmunoAssay-class.Rd | e6afea3f11c21d29ee126f3d1116fa67beff2dad | [] | no_license | cran/rADA | cc3833046cb41a33de37a114f2f5ced83e6f573f | 10b8e8e44f674f528b1d09ea3078103834f8e7db | refs/heads/master | 2023-03-27T07:18:44.412472 | 2021-03-23T18:40:06 | 2021-03-23T18:40:06 | 350,936,809 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 946 | rd | ImmunoAssay-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/immunogenicity_functions.R
\docType{class}
\name{ImmunoAssay-class}
\alias{ImmunoAssay-class}
\alias{ImmunoAssay}
\title{Define ImmunoAssay class}
\description{
This stores the data that is used for screening cut point analysis.
}
\section{Sl... |
b33a2acaa755acf4f6a12e341747ddd2905e3270 | d56a43fe676f14b7a6ebca3fdbdf7ab65548a0f6 | /inst/zztools/pkgdown.R | 14fdabf0f685c07fe9e4d0a838f9f73cebdd5b96 | [] | no_license | jranke/officer | 45742a768b13511135ba818403e3e7aa1c59706b | 59d8ef5193108f93f3dbeb3be1b814ac2d66a09c | refs/heads/master | 2023-01-03T03:47:33.741340 | 2020-10-23T20:58:28 | 2020-10-23T20:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 471 | r | pkgdown.R | # unlink("vignettes/offcran/assets", recursive = TRUE, force = TRUE)
pkgdown::build_site()
file.copy("vignettes/offcran/assets", to = "docs/articles/offcran", overwrite = TRUE, recursive = TRUE)
browseURL("docs/articles/offcran/assets/docx/toc_and_captions.docx")
browseURL("docs/articles/offcran/assets/docx/body_add_d... |
73d37255494a3392f917c1a954f6a6e09bc77123 | 332041cde99bc19f33ca63dca74d05b016b5de3c | /cachematrix.R | 1858c3e242f9b6d585930f9c6cc8fb81a480931a | [] | no_license | geoffsnowman/ProgrammingAssignment2 | db6752cac0acd6ccc5b1ef5ce4801aa36bef3a02 | 00f8502081032731e35bc47d5d228c079b14a1fd | refs/heads/master | 2021-01-15T09:46:55.923274 | 2016-08-15T03:40:05 | 2016-08-15T03:40:05 | 65,693,093 | 0 | 0 | null | 2016-08-15T00:37:07 | 2016-08-15T00:37:07 | null | UTF-8 | R | false | false | 1,445 | r | cachematrix.R | ## These functions create a cache that allows the user to invert
## a matrix once and then return the results of the solve function
## as needed.
## This function creates the special cache list that stores the
## inverted matrix. The object returned by the matrix is a list of
## four functions: set, get, setInverse... |
7affa7ecfdb9c6a6207fc9cfb7c45521781d93e4 | cf0dd17d275d592d60292002e102735b6456aa65 | /man/affinityMatrix.Rd | 8a859d01164d898ec9a1ed968eb0e1b67634af4d | [] | no_license | cran/M2SMJF | d6c732f88872974061e2460b9dc286376308eacf | 3d54f69f3524716ed2d7c767ab00c3efdababf4d | refs/heads/master | 2023-01-22T02:29:26.738578 | 2020-11-23T07:40:06 | 2020-11-23T07:40:06 | 315,982,793 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 724 | rd | affinityMatrix.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/affinityMatrix.R
\name{affinityMatrix}
\alias{affinityMatrix}
\title{To calculate the similarity matrix}
\usage{
affinityMatrix(Diff, K = 20, sigma = 0.5)
}
\arguments{
\item{Diff}{A diff matrix}
\item{K}{The number of neighbors i... |
d3dc60767da707db83bde0899e94c34ae9336bae | fa117c1f993a91208a70f2ff6090c642c44560e9 | /run_analysis.R | da00a91b32c304b4251e2a6f50660049b0b5d687 | [] | no_license | fabiolarw/CleanData | 5418a58222f38dd020d9e76390c338b80dbbe721 | 268dcc8ed034d17ca66ff61b0d95b42afbcc869a | refs/heads/main | 2022-12-28T22:54:05.402839 | 2020-10-18T20:57:33 | 2020-10-18T20:57:33 | 305,185,430 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,536 | r | run_analysis.R | ##You should create one R script called run_analysis.R that does the following.
##1. Merges the training and the test sets to create one data set.
##2. Extracts only the measurements on the mean and standard deviation for each measurement.
##3. Uses descriptive activity names to name the activities in the da... |
20966c171f4726b55af672d87a10a18f21d57647 | d0340fb5a69f12a8395e3721525186919515223d | /1_Explore.R | a774cfa755bfd06c4e0320d01bcffb2c3fbc0c74 | [] | no_license | evanchildress/lee | 444a7c78068f7e0ce47e0351ad56a3edb985f1e4 | ce697dfd519ea5aa96bb2b184522340733ff35fe | refs/heads/master | 2016-08-11T07:01:23.844719 | 2016-04-25T16:15:44 | 2016-04-25T16:15:44 | 46,361,654 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,397 | r | 1_Explore.R | # rm(list=ls())
library(R2jags)
library(lme4)
library(MCMCpack) # rwish function
library(nlme)
library(plyr)
library(lubridate)
library(lattice)
library(RgoogleMaps)
library(PBSmapping)
library(maptools)
library(rgdal)
library(maps)
library(GISTools)
library(mapplots)
library(plotrix)
library(seqinr)
library(rgdal)
#... |
decd48a2e583d3eb961fec6948fd521c766a7aaf | 6373f402637e20d84125026edc8a9f2c857d2ce4 | /restopicer-research/NetworkBasedTopicModel/code/demo/main_for_demo_linkcomm.R | a1caf8b8eca30aa6ebf4721cc112d66f1ec44b02 | [
"MIT"
] | permissive | JoshuaZe/restopicer | bddce0a435a686ca45ef4b67e7947221d70d2fd5 | 28d0833e7b950356ae6e29459991d87a53073a72 | refs/heads/master | 2021-01-17T10:10:19.437197 | 2016-04-22T03:13:35 | 2016-04-22T03:13:35 | 41,923,476 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,431 | r | main_for_demo_linkcomm.R | rm(list = ls(envir = globalenv()))
setwd("F:/Desktop/restopicer/restopicer-research/NetworkBasedTopicModel")
#####
# required library
#####
library(linkcomm)
load(file = "rdata/demo.RData")
source(file = "code/functions.R")
##############
# Traditional Network Topic Model demo
# linkcomm.community
##############
# prep... |
929117ed2460bec275a0122528ed8f954d460e99 | 1562c46daad656a3757b6d54019c8a2d55460f65 | /R/scatterplot.R | 744ad2d41dfda47584745d6d4b24eaf8fd45297e | [] | no_license | yaprakozturk/miRmoset | c97b1ae73f3abe4d96124bcfa49a272fb517b838 | 0ed4aab0dcb3a733d8bb6dab10d69d9fea11199a | refs/heads/main | 2023-05-09T20:55:47.341869 | 2021-06-08T09:53:23 | 2021-06-08T09:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 385 | r | scatterplot.R | #' Scatterplot
#'
#' Plot a chosen miRNA and mRNA
#' @param miRNA_name The miRNA
#' @param mRNA the mRNA
#' @param cut_off set at 0 and is the minimum expression it should have
#' @return A scatterplot with the tissueType on the right
#' @examples
#' temp1 <- F_to_C(50);
#' @export
F_to_C <- function(RNAscatterplot){... |
9f45f9ea50279277c298c6ad1b9906a7ca8fefd6 | 6daeb33a35fd354502e1c23e977355295eef6f6c | /R/aggregate.R | aeea09328a6ccecf0664152868aab2f09c8fb6b9 | [] | no_license | pik-piam/rmndt | 2642f3b2703b148f37bd942b3b96ae7a8a0bbbbc | f7b0704d78f2058c690885726247c703d9677277 | refs/heads/master | 2023-07-10T13:14:27.388585 | 2023-07-10T09:32:59 | 2023-07-10T09:32:59 | 243,305,595 | 0 | 3 | null | 2023-07-10T09:33:00 | 2020-02-26T16:07:29 | R | UTF-8 | R | false | false | 7,261 | r | aggregate.R | #' Internal function to apply the weights and perform some checks.
#'
#' @param data a data.table.
#' @param mapping a mapping between the aggregated categories and their parts. *All* aggregated categories in `data` have to be part of the mapping.
#' @param weights table with weights for disaggregation, the name of the... |
94a73cf09271aad53f89f58249f60686c356005c | 7ad3ffcfb001733227962a2aeacc00657d30350f | /inst/resources/scripts/book/sweetgum.r | a9f5822cfaaa9b4eec00ab321cb863f580027aed | [] | no_license | cran/FAwR | b70f10a5ada58a3da4a56464d86534eb1a59fbb0 | 9917873167c1a0109136e772024009c7e81131ab | refs/heads/master | 2021-06-02T13:37:48.157146 | 2020-11-09T04:20:02 | 2020-11-09T04:20:02 | 17,679,114 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,678 | r | sweetgum.r | ### R code from vignette source 'sweetgum.rnw'
###################################################
### code chunk number 1: sweetgum.rnw:4-5
###################################################
options(width=67)
###################################################
### code chunk number 2: Read sweetgum
###############... |
d565eb298809133aea195885e419fd548f85b89f | 1ca927126130a42d1dcdb9565f9e24b0409c7ce9 | /Tennis/ui.R | fdafa809862458927743b46a8477d41defbc6c92 | [] | no_license | NAGTennis/Projet_Tennis | b2b16cfafd1aae8b4957a32cd1bfd42b61607f0b | 58771ff74144f21ace3b13ad1b30a210794dcceb | refs/heads/master | 2020-04-06T23:38:49.599918 | 2019-03-29T05:57:56 | 2019-03-29T05:57:56 | 157,876,495 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,987 | 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)
######Ne plas oublier d'importer les tables de données
setkey(Rank,Player_Id... |
e9041a87d4b4400f162cdbbd2d12dba3bd12809f | f26781b86f2dea0394809d1951bad4550d82ba3c | /util/modeldev/read_runSummary_table.R | cbc2b93509854054a211ab2096230f0966d5f36e | [] | no_license | fyang72/handbook | 0ac0d616f033747347bce3fe72219223a2553ab8 | 89abb7b557b83d9b651821780b92410623aaa9a2 | refs/heads/master | 2022-09-30T10:36:14.303860 | 2019-12-16T19:32:13 | 2019-12-16T19:32:13 | 171,066,670 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,028 | r | read_runSummary_table.R |
batch_read_runSummary_table <- function(
runno_lst,
local_home = "./",
local_ctl_dir = paste0(local_home, "/ctl/"), # local directory that holds all ctl files
local_data_dir = paste0(local_home, "/data/"), # local directory that holds all data files
local_output_dir = paste0(local_home, "/output/"... |
8af60fd360996a327eb4034519d87ec4e08e9174 | f46c0880bf841ca246fda76cd60444b4d87f48ca | /final_figures.R | 979e02d992b64e0f22e685572cd6d7d93fff5dbf | [] | no_license | ajvsom/LCS_TAR | 5ab18e639475084dacad2aabe16d4673bc8f2fb5 | 7ae113ec5e641cfe290eb054de1966c64441d515 | refs/heads/main | 2023-04-10T18:40:28.759439 | 2021-04-26T16:43:33 | 2021-04-26T16:43:33 | 361,819,703 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 48,609 | r | final_figures.R | # TAR & LCS Representations -----------------------------------------------
#AR(1) Difference Equation
T = 10
a = seq(-1.5, 1.5, .1)
y_ts = matrix(NA, length(a), T)
y_ts[,1] <- 4
for (i in 1:length(a)){
for (j in 2:T){
y_ts[i,j] = a[i]*y_ts[i,(j-1)] + 4
}
}
y_ts = as.data.frame(y_ts)
names(y_ts) = c(paste... |
898255feb2f4e61cfd1666e5fb8ad751e56776c9 | cd442a4c4870194ab71caf58eace95a9124f04e7 | /Lab_Code/R/Lib/Rgetopt/R/main.R | edebc3378c6cc8e6721791617db6d2ae6d809a87 | [
"MIT"
] | permissive | alexgraehl/TimeForScience | 662041383cdd8ecb1ae606ca9e71983151ff6c7e | f383d397ac3ff8030ccf068cdfea26a8b8bc60c0 | refs/heads/master | 2023-01-24T09:11:15.725640 | 2023-01-14T01:24:07 | 2023-01-14T01:24:07 | 32,352,233 | 6 | 1 | null | 2021-04-09T01:14:09 | 2015-03-16T20:51:38 | Perl | UTF-8 | R | false | false | 6,146 | r | main.R | parseString <- function(string) string
parseInteger <- function(string) {
i <- suppressWarnings(as.integer(string))
if (!is.na(i) && i == string) return(as.integer(string))
else return(NULL)
}
parseFloat <- function(string) {
if (!is.na(suppressWarnings(as.double(string)))) return(as.double(string))
else re... |
33bf98789cdce32be43fb287c13e330ab34562da | 22c7f49d2537292a849a8dfe513d48c23629fcef | /LibBi-code/to_table.R | a4d6740b8f4e03dd794a6356ebd2c3a03715c684 | [] | no_license | kjartako/TMHMC | 3d059cc214fc48c104742ca6bde05ab4dad706bf | 95da66b129d20bf4e2c6fda23ee7866ca9353821 | refs/heads/master | 2021-06-26T23:48:50.522592 | 2021-03-17T16:26:29 | 2021-03-17T16:26:29 | 226,729,484 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 715 | r | to_table.R | library(coda)
load("Computations_new")
means <- matrix(0.0,3,8)
sds <- means
ESSs <- means
ESSspert <- means
for( i in 1:8){
t <- summary(llist[[i]])
means[,i] <- t$statistics[,"Mean"]
sds[,i] <- t$statistics[,"SD"]
ESSs[,i] <- effectiveSize(llist[[i]])
ESSspert[,i] <- ESSs[,i]/timing[i]
}
print("time")... |
26ae3b9dae6601f392474f0fff1793b5bb5bb0aa | 4c9f29cb8e4bb24d7d2042ca006fd7df010fc9f0 | /man/bootbctype2.Rd | 978b1b998729df05e04f9b0039b22bb95898bc79 | [] | no_license | cran/bccp | 595b03fc436305b92ff1286ade0131de2895f795 | 197450e9e6b3733571dce84e78fa627b2d99d628 | refs/heads/master | 2023-04-23T23:14:41.410214 | 2021-05-18T03:10:05 | 2021-05-18T03:10:05 | 307,947,900 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,291 | rd | bootbctype2.Rd | \name{bootbctype2}
\alias{bootbctype2}
\title{Computing the bias corrected maximum likelihood estimator under progressive type-I interval censoring scheme using the Bootstrap resampling}
\description{Computes the bias corrected maximum likelihood estimator under progressive type-I interval censoring scheme using the... |
bc6cd08f013ffb277627d90938aed559d5cb3bd9 | 4a00886d627412c19bfa4c6e664dc44740a3d675 | /man/IRB.Rd | b3c47f98e151463a3e5907f641454a86069b6e3f | [] | no_license | mireia-bioinfo/plotRegulome | a668abe92445594bbdba54014b08388cfea7378d | 21a46e971c4f249dd84073faa437350a8b17d290 | refs/heads/master | 2021-06-25T12:34:50.322389 | 2020-12-30T16:30:54 | 2020-12-30T16:30:54 | 175,781,508 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 331 | rd | IRB.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/IRB.R
\docType{data}
\name{IRB}
\alias{IRB}
\title{IRB}
\format{List containing each type of dataset with the available dataset names.}
\usage{
IRB
}
\description{
Dataset containing all available dataset names to use for plotting.
}
\keyword... |
e9bddc2f5eba62b0aee1585bbd405863abf53da4 | c96347a1f9e940bb3b071178190cf6c2dd39bafe | /plot4.R | 6e7ad784ac866059ebe2fa1d75251c4ec8d4e23d | [] | no_license | alexcastilio/ExData_Plotting1 | e8730007da72394891328aede1daef716c4d0185 | 21e6cea6fcd31b453613f4b2443bd0cb34a57c7c | refs/heads/master | 2021-01-22T12:56:55.252473 | 2015-05-10T21:55:23 | 2015-05-10T21:55:23 | 35,383,460 | 0 | 0 | null | 2015-05-10T18:49:25 | 2015-05-10T18:49:25 | null | UTF-8 | R | false | false | 1,504 | r | plot4.R | plot1 <- function(){
#read data from file
data<-read.table("household_power_consumption.txt",sep = ";",header = TRUE,na.strings = "?",
colClasses = c("character","character","numeric","numeric","numeric","numeric","numeric", "numeric","numeric"))
#filter by data
data<-data[data$Date=="1/2... |
5ba35a202d7bff71eceaa4e188ba0c2396d55976 | 1b6ee52e76965af92946adb8dcab35b366c1135a | /circuits/adder.R | e90c2e89f9a2f4f4393982b9f649b7a7d4e23eea | [] | no_license | SalonikResch/QuantumNoiseProfiling | 985e269f194fbf09c8a74f98ea7aeb7608e242d9 | 5e670bc57177ac9125d465d7571afd7bdbb10712 | refs/heads/main | 2023-05-26T16:36:07.182968 | 2021-06-03T02:08:45 | 2021-06-03T02:08:45 | 373,354,204 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,489 | r | adder.R | Toffoli <- function(a,b,c){
gates <- list()
gates <- c(gates,list(list('H',c,'')))
gates <- c(gates,list(list('CX',c(b,c),'')))
gates <- c(gates,list(list("T'",c,'')))
gates <- c(gates,list(list('CX',c(a,c),'')))
gates <- c(gates,list(list('T',c,'')))
gates <- c(gates,list(list('CX',c(b,c),'... |
73206657a5682a869e56b8093eccb9b4ae501b7a | 1d028fb3473f1bcbb3e0c899f79dd435b8c275a6 | /tests/testthat.R | 914dad626468a1ed235104380adda2ef58cd5944 | [] | no_license | cran/samplingbook | a2257b7c259249eaf0c8cfeae1aee0a37659eb6f | 1253c518ff04c41c537b0100bebaadd94b96a0ae | refs/heads/master | 2021-07-11T12:20:27.502856 | 2021-04-02T20:40:03 | 2021-04-02T20:40:03 | 17,699,456 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 72 | r | testthat.R | library(testthat)
library(samplingbook)
test_check("samplingbook")
|
befd59763145c698f3881511c7e5859c1d16ec58 | 0abf4159b861a4e19ed0941fb85c55746ea47ac0 | /R/importZikaData.R | 2cee956d44f3d14d776f0dad90bbd9496e340732 | [] | no_license | smorsink1/ncov2019 | a31b9953cdb10241986041e74d8671f4a6797760 | e309e12e371fa3dcd73412bc894d9db13efacbc6 | refs/heads/master | 2021-04-15T01:55:06.487031 | 2020-03-26T18:03:15 | 2020-03-26T18:03:15 | 249,284,980 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,766 | r | importZikaData.R |
#' Downloads Zika virus data
#'
#' Imports the Kaggle Zika virus data from a public Github repository.
#'
#' @return Output is a dataframe with rows for date-location-case_type pairs
#'
#' @importFrom readr read_csv cols col_character
#' @importFrom magrittr %>%
#'
#' @examples
#' scrapeZikaData()
#'
#' @export
... |
e1330a056fbcfbfc6ed5e71f48bea3bdf39b4f25 | 8e82a1e639f05beed4b76893c80e91b6453879fa | /R/Proteomics.R | 266a09c2d6d775589b7a03323ae6b74f543c024a | [
"Apache-2.0"
] | permissive | dlroxe/EIF-analysis | 52f7cba51f36b0f6527f50fb671b96da27a9095a | 6189c6ecc9368c188c7532fae402a0cfe4cdaa03 | refs/heads/master | 2020-07-30T11:24:01.302589 | 2020-01-12T07:56:13 | 2020-01-12T07:56:13 | 210,213,138 | 0 | 0 | NOASSERTION | 2020-01-11T19:51:55 | 2019-09-22T20:56:37 | R | UTF-8 | R | false | false | 3,065 | r | Proteomics.R | BiocManager::install("RforProteomics")
library("ggplot2") ## Convenient and nice plotting
library("mzR")
library("RColorBrewer") ## Color palettes
library("RforProteomics")
library("reshape2") ## Flexibly reshape data
library("rpx")
###########################
## Importing experiments ##
###########################
... |
3e2b13d8b54e308586ece87c15978cb51b982a7b | 2df42b13fef6978ad09b407c6791031a959f449f | /man/downloadProjectZip.Rd | a2443eea1bff542f8373bd4c51a5fb313d26c421 | [] | 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 | 1,118 | rd | downloadProjectZip.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rstox_base.r
\name{downloadProjectZip}
\alias{downloadProjectZip}
\title{Download a zipped StoX project to a specified project path.}
\usage{
downloadProjectZip(URL, projectName = NULL, projectRoot = NULL,
cleanup = TRUE, ow = TRUE, msg = T... |
503877f0018235114559e8778dd30e78b00f3473 | 0a13213a5bd373eee3e67bb27260c9f59f0f6ac8 | /R6.R | f42bc145a8ea795ec9cc3be06195714f8b0f569a | [
"Apache-2.0"
] | permissive | mt-christo/r-prog | 6757afa4071c20b0c45f2fc0f4d4692364add84d | 11bdaef32ae7580cc73761b37a60c0b6801e8c00 | refs/heads/master | 2020-07-13T11:57:36.686887 | 2019-02-23T11:25:08 | 2019-02-23T11:25:08 | 26,853,999 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,549 | r | R6.R | snow1D_R___ <- function(arr,arr_length,i,wgh,br_length){
a = arr
a[i] = a[i]+wgh
Excess = 0
Num_Avalanche = 0
Av_Array = c(0)
av_lengths = array(0,2)
if(a[i]>=1){
a[i] = a[i]-1
nb = ceiling(runif(2)*br_length)
l1 = if(nb[1]>0 && nb[1]<=arr_length) Recall(a... |
5e0f4e810bbb0bc46f648c08a69e44f7249f5fe0 | f1df80ec987a517546a34c8589691206e079fc8b | /R/imagetools.r | 851246fcf4added8872ee8ad7c3b2bd3f3887747 | [] | no_license | skranz/sktools | 3c38b49d990a2f6e18bb92b614f8b47a79a7fc42 | 8e629e09f0b72b1471b4a4eb89f3ada0a43e4aaf | refs/heads/master | 2021-07-11T23:03:31.263729 | 2021-04-06T05:34:30 | 2021-04-06T05:34:30 | 9,919,328 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,699 | r | imagetools.r | #' Uses Manipulate to interactively change some parameters of an image.plot
#'@export
explore.image = function(x,y,z,xlab="x",ylab="y",main="",num.colors=30,add.plot.fun = NULL, pal.colors=c("red","white","blue")) {
library(fields)
library(manipulate)
# Specify a palette
my.palette <- colorRampPalette(pal.co... |
967f311665c1a6824a4f2f56ecd411625bc2769c | 71fbbbaa53672ec7478c580f517f00ab7d24a917 | /Team Case 1 - Code.R | cd9641de95e986522da597429688534db518961c | [] | no_license | huonganh-nguyen/Personalized-Health-Care-Analytics | 0d7ecb5ddb80cf239a507e7cac95f745a1382464 | 01462ac2bf6d4606c066a629a577bb59543d35fa | refs/heads/master | 2021-05-06T20:43:19.843641 | 2017-11-29T19:49:42 | 2017-11-29T19:49:42 | 112,507,426 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,402 | r | Team Case 1 - Code.R | ### Question 1
# Stacked Bar Plot with Colors and Legend
counts <- table(DATA$smoke, DATA$ed.col)
#Proportional Stacked Bar Plot
prop = prop.table(counts, margin = 2)
barplot(prop, main="Smoking and College Education",
names.arg=c("No or Some College", "Completed College"), col=c("darkblue","red"),
l... |
24e04481fd94ef5b9b9dd96887da7b10e7c5db20 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sampler/examples/rpro.Rd.R | 85b35c3ba25d4ecd5be5fdae143f43ef822e8430 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 209 | r | rpro.Rd.R | library(sampler)
### Name: rpro
### Title: Calculate proportion and margin of error (simple random sample)
### Aliases: rpro
### ** Examples
rpro(df=opening, col_name=openTime, ci=95, na="n/a", N=5361)
|
b43ae790b58e6ebcba9ee6dd8e299273b156906b | 2ac64f6ab560715d7460c32ecd5f47e3816a928b | /genderclassification.r | 999b8a036a8adc4be261e38857287aa2e908e72d | [] | no_license | gtople92/Gender-Classification-using-voice-data | 6ff715d797406698a565df2f69a6c460dbfb7213 | 270f624bc1165f88ac1498598390e92fd616d60f | refs/heads/master | 2022-08-20T09:49:09.734798 | 2020-05-25T21:28:19 | 2020-05-25T21:28:19 | 266,867,925 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,647 | r | genderclassification.r | # Load the required libraries
library(dplyr)
library(Amelia)
library(ggplot2)
library(corrgram)
library(corrplot)
library(caTools)
library(caret)
library(gains)
library(class)
library(randomForest)
library(e1071)
library(psych)
library(neuralnet)
library(pROC)
library(gmodels)
library(tuneR)
library(ps... |
fb622735391b946cbecbb9e6fc75f1f7c42c3d4d | 87b03390e65a8e6ad1689b4b19f79514ba308f2e | /code/archive/7. tree_fz.R | 286114ed8988c2ae434cf3a17bd549af655f0e5c | [] | no_license | tincerti/corruption_meta | 377c895f45fc4663dd3c74c06a12708a52a219a3 | 8c8cc78b85d1f93df5e927f61e5fe5fa341190bb | refs/heads/master | 2022-04-30T22:17:35.488617 | 2022-04-12T17:38:30 | 2022-04-12T17:38:30 | 179,543,429 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,120 | r | 7. tree_fz.R | ################################################################################
# Libraries and Import
################################################################################
rm(list=ls())
# Set seed
set.seed(300) # Estimates will of course vary slightly with change in seed
# Libraries
library(foreign)
libr... |
fa6b1e0803b8ca3c816f79cecd5308c5981e2b06 | 05678f03a83ce73472b1473f2d0743c9f015f2b8 | /R/observations_api.R | 598b75a33a1e0ac8083ea21ba47c39d661cbc761 | [] | no_license | Breeding-Insight/brapi-r-v2 | 3a7b4168c6d8516eb1128445a2f281d1199668a3 | 5cfa7453947121496780b410661117639f09c7ff | refs/heads/main | 2023-03-14T22:20:29.331935 | 2021-03-17T01:31:11 | 2021-03-17T01:31:11 | 348,535,689 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 54,280 | r | observations_api.R | # BrAPI-Core
#
# The Breeding API (BrAPI) is a Standardized REST ful Web Service API Specification for communicating Plant Breeding Data. BrAPI allows for easy data sharing between databases and tools involved in plant breeding. <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">General Reference Documenta... |
79ed37586c7869af4e7ffd96c73de416c166bb7e | 1b17c973a8cf41d6349fc33f098086ef6603f696 | /cachematrix.R | 37721893904b9c1aa931631ce9ae4b2855e8b7d0 | [] | no_license | vicki167/ProgrammingAssignment2 | 7e9db55da776b39a4073737487557e994d1ea4cb | fc0fe3e3fe67b411dd411ae001cf40252f72af9c | refs/heads/master | 2021-01-23T12:54:58.885875 | 2017-09-06T23:57:37 | 2017-09-06T23:57:37 | 102,659,629 | 0 | 0 | null | 2017-09-06T21:23:59 | 2017-09-06T21:23:59 | null | UTF-8 | R | false | false | 1,436 | r | cachematrix.R | ## These functions work in conjunction to provide
## a matrix implementation that caches the value
## of its inverse
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## the inverse
i <- NULL
## function to set the value
set <- function(y) {
x <<- y
... |
af6ec403c1451a2c3afbda1cac420a9f1f720bf0 | 217a471ec71f6a4d9db0a4a34b453b242aed053c | /R/form-chl2qc.R | d245e98bb31b3e159e3e2eede67101a6e5b206b2 | [] | no_license | mcmventura/fcdata2qc | 0fd5c2668cdf8e59805b7ce5e7922f36e920c17d | 2ac2d1a63b8f1c47ea22a45a9840ba046aa57738 | refs/heads/master | 2020-04-23T16:33:44.888237 | 2019-05-23T09:31:52 | 2019-05-23T09:31:52 | 171,302,176 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,569 | r | form-chl2qc.R | #' Converts to WP3 C3S-QC Format the Digitisations of Chilean Surface Records
#' 1950-1958 performed by FCiências.ID.
#'
#' Splits the annual digitisations per station into several data frames by type
#' of meteorological variable. The output data frames and text files are in the
#' WP3 C3S-QC format: \strong{variable ... |
aa4f9389a0d57cef556c7216dd676c98ec4898a3 | 969d915cc9f1cc0f040a9652af1002bc3c7d3b2e | /DM_Secramento.R | 135bc2c4d178addbcc817aca412e2fb35852ff59 | [] | no_license | Wasabiijelly/datamining-class | 38fa188d7334de8bb0ce53adcfdffc0442e028c8 | 05a1dc81acb1a7561f8c1b5c8f61cd65784815fb | refs/heads/main | 2023-06-21T05:53:37.664029 | 2021-07-25T12:19:15 | 2021-07-25T12:19:15 | 389,314,780 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,253 | r | DM_Secramento.R | ##################################################
## Data Mining Homework3
## Implemented by Hyeyoon Kim
## 2021-06-08
##################################################
## Set Env.
setRepositories(ind = 1:8)
library(tidyverse)
library(datarium)
library(caret)
library(dplyr)
library(rpart)
library(rpart.plot)
librar... |
85acf79b01184cb5c45068840c843c6c3d4d8654 | 9d8d244651fba10db19748b90ef70dd9fcc4ae27 | /mapTileToPopGrids2.R | 9d7f48f9d84b35a3baac8eee9f84d3f5c9313858 | [] | no_license | ander2ed/R | 0428c285a20bb8f9eb0ac0f2652333f7c1c6f335 | d0664ca3d2f56b7ecc17cce7441a95269990e7b2 | refs/heads/main | 2023-01-07T10:28:08.022024 | 2020-11-10T16:29:09 | 2020-11-10T16:29:09 | 311,685,832 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,374 | r | mapTileToPopGrids2.R |
# library(jpeg)
library(sf)
library(RgoogleMaps)
library(ggplot2)
library(ggmap)
library(rjson)
library(randomForest)
rm(list = ls())
source("Z:/E_Anderson/Research/R/getBingMap.R")
## Grids;
grids <- st_read(dsn = "Z:/E_Anderson/_Projects/Shell/2018/Malaysia/LabuanGridIssue/Labaun_250m_Pop.ta... |
6496f243bbb7277c071c98aaa6c38657e6561e98 | db9234cd98b6ec28207bf974a3173b43093e8e9a | /urlSearch.R | 52327aa14447eafc83e6ca8335d6bd31931e7ef0 | [] | no_license | avnerkantor/openpisa | ce9c5e6446cc5546113d5b976022076a27bdc58c | 74558a83583fab179fc841318f98cf3e31c58253 | refs/heads/master | 2020-07-30T15:51:24.643312 | 2017-08-14T14:13:25 | 2017-08-14T14:13:25 | 73,626,165 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,340 | r | urlSearch.R | #https://gallery.shinyapps.io/032-client-data-and-query-string/?a=xxx&b=yyy#zzz
#https://github.com/rstudio/shiny-examples/tree/master/061-server-to-client-custom-messages
#http://stackoverflow.com/questions/25306519/shiny-saving-url-state-subpages-and-tabs
# output$queryText <- renderText({
# query <- parseQueryStr... |
5bb447de06e47636b0ed52a937b364ebdcf475e6 | 8cf0bb6f877c48a6ec866eb3a59ec3cf3ea0de81 | /cachematrix.R | 4f64a6e85c1920d3b426d8e654d800b1b5fba63e | [] | no_license | janse/ProgrammingAssignment2 | 958d15cf1ec430d9eb7862cb50b6f8a6e5e33f17 | eb63c22683bf27129425b1c395d40135cb76e6e1 | refs/heads/master | 2020-05-29T08:54:26.325632 | 2016-09-24T19:19:03 | 2016-09-24T19:19:03 | 69,101,682 | 0 | 0 | null | 2016-09-24T12:44:27 | 2016-09-24T12:44:27 | null | UTF-8 | R | false | false | 941 | r | cachematrix.R | ## Two functions to calculate the inverse of a matrix using the cache
makeCacheMatrix <- function(x = matrix()) {
## Store the inverse of 'x' in the cache
mat <- NULL
## Set the value of the matrix
set <- function(y) {
x <<- y
mat <<- NULL
}
## Get the value of the matrix
get <- function() ... |
82fe1fe7ef69c4acc4a50b782592a3a62b2968dc | 4dad2d41b33d98c5b783a805990c1c426cecbd05 | /Comadre_gbif_lpi_counts.R | 034fc37d68d9f7173294b4cf12f6ae74342ece85 | [] | no_license | spoonerf/PhD_Method | b90ac02d68a0ce7b1e67d38178b8ce733b1b6ec1 | 210aca3e36bfa96ab1b1012ef1cb84b9bbef7e01 | refs/heads/master | 2020-04-04T06:19:53.840889 | 2019-06-19T17:51:50 | 2019-06-19T17:51:50 | 48,995,337 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,191 | r | Comadre_gbif_lpi_counts.R | install.packages("rgbif")
library(rgbif)
pop<-read.csv("LPI_pops_20160523_edited.csv")
head(pop)
plot(pop$Longitude, pop$Latitude)
pop<-pop[pop$Specific_location ==1,]
pop$Binomial<-as.character(pop$Binomial)
bin_bind<-unique(bin_bind)
library(dismo)
#gbif occurrence poiont counting
gbif_count<-function(binomial)... |
475bc86dc76ab52e340a180b6d897bb10aa8236f | 31a03dd17df86005ac26c9da65511181a3480a1a | /man/varImpact.Rd | a0aaa77d60eeadae38cc7bf1d6b1761c786f5f18 | [] | no_license | jonrobinson2/varImpact | b1e7bd434e46687d28dd80b2757a60f3cbf5e883 | 23ca4c2aa628e43549918ca79a7f0589985f39aa | refs/heads/master | 2021-01-18T12:09:42.097922 | 2016-06-23T20:10:00 | 2016-06-23T20:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 6,452 | rd | varImpact.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/varImpact.R
\name{varImpact}
\alias{varImpact}
\title{Variable Impact Estimation}
\usage{
varImpact(Y, data, V = 2, Q.library = c("SL.gam", "SL.glmnet", "SL.mean"),
g.library = c("SL.stepAIC"), family = "binomial", minYs = 15,
minCell = 0... |
b3629564d940701d740da258f224ce6e403c8dc2 | 938a210f435725e4ab3608306dcac9810d52ccde | /Birth-death-analysis(2011-2016)-lab1/lab1_plot.R | ae2b9904aa2f49c5c99171ad26fb3691154a6d13 | [] | no_license | KAPILJHADE/Data-Analysis | b562e589248162e1490f7b7a9365febe6a0e5e6a | b288ab2f794fc165f2a5f4d589a147ca5b136034 | refs/heads/master | 2021-01-02T01:59:48.280054 | 2020-04-14T07:38:40 | 2020-04-14T07:38:40 | 239,444,938 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,545 | r | lab1_plot.R | data <- read.table("/home/kapil/desktop/study material notes/6TH SEM/Data Analysis/DA LAB/data.csv", sep = ",", header = TRUE)
data
# Find Min
min(data$nve_l)
min(data$nve_s)
min(data$nve_d)
min(data$c_b)
min(data$c_d)
min(data$per_b)
min(data$per_d)
# Find Max
max(data$nve_l)
max(data$nve_s)
max(data$nve_d)
max(data... |
976fa36978b8840dfcca39040111e6f54875ceb9 | 833bdb27d5bc39d7dae655e9dfde0b3208db956d | /man/dum9.Rd | 91705110314693854b40e0f28f10186a5c5ac4c3 | [
"MIT"
] | permissive | dennist2/QuantResearch | 98492cc8767aea7ab5f639a86d67ab37145d60d2 | b4dae474b2faa6217b0b3d8ac5400650f305ed0e | refs/heads/master | 2022-09-08T19:30:06.833929 | 2020-06-02T17:02:49 | 2020-06-02T17:02:49 | 268,732,257 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 386 | rd | dum9.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dum9.R
\name{dum9}
\alias{dum9}
\title{dum9}
\usage{
dum9(x)
}
\arguments{
\item{x}{a list or data.frame}
}
\value{
returns the list/df but with return
}
\description{
Takes output from histXCII and tells you the return
}
\details{
DETAILS
}
... |
a1db61e4c03a6db46abe1502b3cdb398f4b2fa0e | 155ab54887496697271f8cf473bc978c41fb6406 | /Tidy Data and Summarize/ClimateData/gd_get_biomes_spdf.R | 59b5d4f0d3143a8cc2c259bf16d651d3ecddd73e | [] | no_license | robbinscalebj/DetritalNutrientsSynthesis | fe20246369e60376e0301f42edf713eef3e40036 | 8cd7822b725545eb6d570797e5d45946c438bb6b | refs/heads/master | 2023-05-11T18:44:15.347983 | 2023-05-10T05:30:07 | 2023-05-10T05:30:07 | 270,461,610 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,599 | r | gd_get_biomes_spdf.R | # pulled this biome code from now defunct guillembagaria/ggbiome
gd_get_biomes_spdf <- function(merge_deserts = FALSE) {
# STEP 0
# Argument checks
# Is merge_deserts logical?
if (!(is.logical(merge_deserts))) {
stop('merge_deserts must be logical.')
}
# Is merge_deserts NA?
if (is.na(merge_desert... |
9496b4d7dc2cf2e16093083acc174b3bc3b83d11 | 8a45b18d417bca59ac4320236c365d6a21c4672b | /cachematrix.R | 31fdf677c766d1a6ffde9327c92e07dd07890fdb | [] | no_license | mpolugodina/Maria-Polugodina-Repository-for-Programming-Assignment-2 | 8565f5c821f6b3bfe844577e40fe9778a7013eeb | b6ba4b74fa4417dec1410ca3bd1ffd09c5a3d0d2 | refs/heads/master | 2022-11-14T10:57:42.982618 | 2020-07-08T15:28:00 | 2020-07-08T15:28:00 | 278,095,614 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,515 | r | cachematrix.R | ## 'makeCacheMatrix' creates a special "matrix", with a list of functions to
# 1. Set the value of a matrix x (set)
# 2. Retrieve the value of the matrix (get)
# 3. Set the value of the matrix' inverse (setinv)
# 4. Retrieve the value of the matrix' inverse (getinv)
#The default argument value is an empty matrix, othe... |
7343c57cd3b2e2769160ecaa0532939b7cbd6b1e | 8c70bae5ec757d3a4d9404d34196ca165afcb4c5 | /R/analyses/women.R | 014c1f7514ab2d8390ebb3533122f3a8b321bb4a | [] | no_license | JeredLinares/Olympic_history | 8c091ecffa8d3d069ffae6940de1304d04a79eb8 | b14dd25bf2b63c562fc7771c70439d005696ea4c | refs/heads/master | 2022-04-08T14:27:35.088304 | 2020-02-16T19:13:35 | 2020-02-16T19:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,047 | r | women.R | ################
# PREPARATIONS #
################
# load packages
library("tidyverse")
# load data
data <- read_csv("~/Documents/GitHub/Olympic_history/data/athlete_events.csv",
col_types = cols(
ID = col_character(),
Name = col_character(),
... |
061dfb6cf66b0d299a4b6a7dd706be84d6bcd540 | 71f31688fc7f4e6eed62492edf4d0c1a369e03b7 | /Scripts/EU_US_map_univariate.R | fae32541dec2568fb25f2509fc566a9b39dd3264 | [
"BSD-2-Clause"
] | permissive | elslabbert/ARAGOG | 55bcf631e4f45fdd32f6384a2df7307b5446c496 | 9e4bb2ab6bd55fbc705a9a4a5da4be31239c4a2a | refs/heads/master | 2021-01-07T05:21:09.866549 | 2019-11-18T14:24:48 | 2019-11-18T14:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,679 | r | EU_US_map_univariate.R | ###########
# Create EU and US maps for one variable
# of choice from a table in the Ready_tables folder
###########
source("Scripts/library.R")
#plots functions
make_EU_plot <- function (df, variable_to_plot) {
ggplot(df, aes(fill = as.numeric(variable_to_plot)))+
geom_sf(color = "grey", size = 0.001)+ #lwd = ... |
b7baca11fdc4085427cd017dc26c277d2c02251f | 979846e786f49fa6f69b0cba4eb1b36efcf2809c | /1-Bildspektrenextraktion.r | 28850bdd21cb9320ed13a663d6662974ac3b6b87 | [] | no_license | fabianfassnacht/AVI_carotenoids | 69de5d9cca8685bb3b1f03ec40c84d0ac64e8157 | 7408d891971edf487bef41ed90f416cd4182cc30 | refs/heads/master | 2020-03-20T00:45:28.822514 | 2018-06-12T10:28:35 | 2018-06-12T10:28:35 | 137,054,940 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 773 | r | 1-Bildspektrenextraktion.r | library(rgdal)
library(raster)
library(maptools)
###Einlesen###
hyp<-stack("U:/EnMap/AA_BaumartenErkennung/Hyperspektralszenen/Karlsruhe/100820_Karlsruhe_02_rad_atm_geo_masked.bsq")
shp<-readOGR("U:/EnMap/AA_BaumartenErkennung/ReferenceDatasets/Karlsruhe/Samples_Baumarten/Final_Samples_Shapes_60",layer="Samples_60... |
1054593a414f22074ee26f553d51b1194f325fe3 | a0fb87ab6ddc7ecae238e768c21918e54d40a5a3 | /Airlines-Forcasting.R | 3f0c7b4cabb508d53f61bd1565e7d6e6ce2e6eb0 | [] | no_license | itsme020/Final | bc471c59072584b67b3296f2751e5af86f2d99d3 | 7e70fe8d015d6407c81e4bc55cb879a8138d0e79 | refs/heads/master | 2022-04-20T06:16:33.061538 | 2020-04-20T07:08:01 | 2020-04-20T07:08:01 | 257,199,725 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,070 | r | Airlines-Forcasting.R | library(readr)
windows()
.
#attach dataset
plot(Airlinesdata1$Passengers,type="l")
#so creating 11 dummy variables
x<-data.frame(outer(rep(month.abb,length=96),month.abb,"==")+0)
View(x)
colnames(x)<-month.abb# assigning month names
View(x)
trakdata<-cbind(Airlinesdata1,x)
View(trakdata)
colnames... |
27a9e13af021b494efb2ab2a19efc24ddd9baeb1 | 9e4df408b72687493cc23144408868a975971f68 | /SMS_r_prog/flsms/sms2flsmss.r | afb793796ad4432eb171ec913c46897c9f266cb7 | [
"MIT"
] | permissive | ices-eg/wg_WGSAM | 7402ed21ae3e4a5437da2a6edf98125d0d0e47a9 | 54181317b0aa2cae2b4815c6d520ece6b3a9f177 | refs/heads/master | 2023-05-12T01:38:30.580056 | 2023-05-04T15:42:28 | 2023-05-04T15:42:28 | 111,518,540 | 7 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,263 | r | sms2flsmss.r |
SMS2FLSMSs<-function(sumfile=file.path(data.path,'summary.out'),residualsFile="Catch_survey_residuals.out",bio.interact=FALSE,read.input=FALSE,read.output=TRUE,
control=NULL,FLStocksMulti=NULL) {
if (is.null(control) | (!inherits(control, "FLSMS.control")))
stop("A valid 'FLSMS.contr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.