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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbdee02ea9a516f8fe87182d401e3431926a5208 | f257ca25070d67cb26915f83d1cfe1db0d26f21e | /bootstrap/csquare_lookup.R | eb1b3106925ad1fabf5860d39dd3b93fa920c3b5 | [
"MIT"
] | permissive | ices-taf/2021_2007-36_SpecialRequest | 9433f37c0a0f34d3dc06d904172c8308cb9d91d0 | 7fdb46342acfbb6c0bfe01f735036d906f1dab02 | refs/heads/main | 2023-08-05T19:34:58.711433 | 2021-09-24T11:38:12 | 2021-09-24T11:38:12 | 408,114,517 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 968 | r | csquare_lookup.R | #' Statistical Rectangle lookup table subset to SWE EEZ
#'
#' A list of stat squares and accociated info, such as ICES area
#'
#' @name csquare_lookup
#' @references \url{https://ices.dk}
#' @format a csv file
#' @tafOriginator ICES VMS and Logbook database
#' @tafYear 2020
#' @tafAccess Public
#' @tafSource script
# ... |
fe5d8deeedd31aef3471b9e233e43e3c657ac788 | 579ea905352ed45a672e76081e999cba0c58ebb1 | /scripts/track_description.R | 2d6c53d0061f75de021a608696da10e8344a20d0 | [] | no_license | Fjellrev/SeaWinds | d40a70f3fa2505d894be878acc377d6014e7da90 | 8b2e9d95be7057741a0b8be2f4dc91ce37ebcf74 | refs/heads/main | 2023-06-03T00:38:16.359754 | 2021-06-15T13:28:35 | 2021-06-15T13:28:35 | 342,537,155 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 2,005 | r | track_description.R | ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##
## SeaWinds - Data processing & Analyses
##
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sapply(c('sf','sp','spData','tidyverse', 'data.table','rgeos','MASS','plyr', 'magrittr', 'gdistance','geosphere','raster', "doParallel", "foreach",
'ggplot2', 'rWind','windR','adeha... |
1e341ad3e98aeedc764707590c5a9489bfeee2b4 | 020bdfef944d184f248cb26cda9f42346003128f | /Analysis-on-OTT-Platforms/After and During Pandemic (Line Graph).R | c4140f8541fbe8bdbb4bd1e21daf241fc38fab57 | [] | no_license | Nemwos/Analysis-on-OTT-Platforms | e523a6552f82cde8be82b564620d60c88c44d37e | 85994e207a4397e7bde86acae7d1a04ea541434e | refs/heads/main | 2023-07-31T13:09:45.857566 | 2021-10-01T08:40:34 | 2021-10-01T08:40:34 | 412,390,726 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 380 | r | After and During Pandemic (Line Graph).R | #####After,During######
("C:\\College\\R Project\\R Case Study")
data<- read.csv("ott data.csv")
a <- table(data$DP)
b <- table(data$AP)
plot(a, type="l", col="Yellow", xlab="Avg Min", ylab = "Frequency")
lines(b, type="l", col="Green")
legend("topright",
legend = c("Now","During Pandemic"),
... |
d133e5ecd824f93a1fb487fecbdd2994b0fc319b | aee39ba8f18f1d85a9a6a6fcadd71b3f70ef1ae8 | /notes/rank.R | b51a35aa6436587d62ff236ad5942fbdcb503fc3 | [] | no_license | abarciauskas-bgse/computing-lab | 93dd817f4180a8d39633666561619b27e1a6b975 | 15756b0eb56ea4a3ccb839441f74213cc8c87e64 | refs/heads/master | 2016-08-12T08:22:40.696639 | 2015-11-24T14:58:38 | 2015-11-24T14:58:38 | 44,059,076 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 609 | r | rank.R | (r1 <- rank(x1 <- c(3, 1, 4, 15, 92)))
x2 <- c(3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5)
names(x2) <- letters[1:11]
(r2 <- rank(x2)) # ties are averaged
## rank() is "idempotent": rank(rank(x)) == rank(x) :
stopifnot(rank(r1) == r1, rank(r2) == r2)
## ranks without averaging
rank(x2, ties.method= "first") # first occurrence ... |
dacf845a9ddaef1019d70a3f50b19cbfe98d6d45 | e2f3320198c9244d9fa33bb682386120e8324d54 | /man/match_datasets.Rd | 9111fc38c0771b4069328ecb07279ba63ff7c542 | [] | no_license | leffj/mctoolsr | 495f1d3d87425d52a4fea3632a5d94221643689e | c7c9404ee932a07d4d1768b14895a2174324a118 | refs/heads/master | 2022-09-09T06:02:50.086961 | 2022-08-03T05:26:26 | 2022-08-03T05:26:26 | 32,060,772 | 17 | 8 | null | 2022-08-03T05:26:26 | 2015-03-12T06:24:28 | HTML | UTF-8 | R | false | true | 1,265 | rd | match_datasets.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input_output_filter.R
\name{match_datasets}
\alias{match_datasets}
\title{Match up samples from two datasets}
\usage{
match_datasets(ds1, ds2, match_taxa = FALSE)
}
\arguments{
\item{ds1}{The first dataset as loaded by \code{\link{load_taxa_t... |
a2e544bc35af1a57a2a56c8d656657ef020b5c68 | 8df9e457baa116ad2cce228c307aa3a7d0ed1c84 | /Plot1.R | 0b62b5ddc197f130271299642b8b95a172b71066 | [] | no_license | jackspringman/Exploratory-Data-Analysis-Course-Project-2 | 045b4b6c9e3a8cc2d59c44c78e2cd5d849194262 | ec244d3529f1c65104a8261242a5bf942746de64 | refs/heads/master | 2021-01-21T05:05:14.767135 | 2015-02-22T17:05:43 | 2015-02-22T17:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 568 | r | Plot1.R | # Read in RDS files
NEI <- readRDS("R Programming/summarySCC_PM25.rds")
SCC <- readRDS("R Programming/Source_Classification_Code.rds")
# Aggregate PM 2.5 emissions for 1999, 2002, 2005, 2008
TotalPM25ByYear <- aggregate(Emissions ~ year, NEI, sum)
# Plot aggregated emissions as a bar chart to answer whether total U... |
b7ee2789392cfcdb1879eff74ecf012f0fe77a5a | d247e779e90fc4d1f69710b15e00a21b8cd9af89 | /plot1.R | 8c92c0ea009deadd31819dc2a6f4cf124c041d99 | [] | no_license | jmiller42/ExData_Plotting1 | 5eaff9cbf807bf769b87f373f68675be2a02fbde | 5a255c0c551aeb9559f214d20653633069f7c615 | refs/heads/master | 2021-01-16T23:00:10.526007 | 2014-08-09T19:18:41 | 2014-08-09T19:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 633 | r | plot1.R | plot1 <- function() {
##Read in data (assuming it exists in this location)
data <- read.csv("exdata-data-household_power_consumption/household_power_consumption.txt", sep=";")
##Concatanate date and time
data <- subset(data, data$Date == "1/2/2007" | data$Date == "2/2/2007")
##Convert relevant values... |
5caa21ab1aa0aea5b91fabb1ce64ac658bb6fc4f | 037ddd4a706753cf89acad97f504e6863bcc08b6 | /man/tophits.Rd | 5f3ef479e45c235fe97002d3fe60a8f8b219aeed | [
"MIT"
] | permissive | mcgml/ieugwasr | 7ebd65af51508fc6308eae8b5a3243497e046963 | a68d9e5338ef75c0c8b4a4e6a91b17b11c8d3d45 | refs/heads/master | 2021-07-16T16:47:31.560328 | 2021-06-23T16:13:32 | 2021-06-23T16:13:32 | 235,069,948 | 0 | 0 | NOASSERTION | 2020-01-20T09:58:52 | 2020-01-20T09:58:51 | null | UTF-8 | R | false | true | 1,386 | rd | tophits.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{tophits}
\alias{tophits}
\title{Obtain top hits from a GWAS dataset}
\usage{
tophits(
id,
pval = 5e-08,
clump = 1,
r2 = 0.001,
kb = 10000,
pop = "EUR",
force_server = FALSE,
access_token = check_access_token()
)
... |
5ab349f1063125e79c0e518fb0202c474bcfe30a | 09ae0effee47cd56c95e9b1e382a18112eba890f | /plot1.R | 6ebf17db5fed02511766d88bd4d419d454544814 | [] | no_license | Vishwanathkvs/Coursera-exploratory-data-analysis-course-project-2 | 0850bacf85795c8a49d23396943352d2d94495a5 | 7f2e082f03f2d2a265aa1c80eba27c72d6bbf3ed | refs/heads/master | 2021-01-21T14:39:35.415017 | 2017-06-24T20:48:34 | 2017-06-24T20:48:34 | 95,321,917 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 822 | r | plot1.R | #Setting working directory
setwd("~/R/Coursera/exdata%2Fdata%2FNEI_data")
## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Have total emissions from PM2.5 decreased in the United States from 1999 to 2008?
#... |
45fc7362337e7afe93f580348bcce3bcfea41e0a | 35b2adcba4aac515dc54a2eeb36bf502de8a8467 | /textanalysis.R | 6a67520b0300e702f2717261c53392ad290526ad | [] | no_license | Sara-Abrams/PathfinderCenter | 43d2dea232a5c73e7c82dcdde8dd723f8d1f85e0 | b6cd3bb9dcfd2bee6ddbaf716fddaa1fab1522d8 | refs/heads/master | 2021-05-04T01:31:21.971034 | 2019-01-25T15:46:33 | 2019-01-25T15:46:33 | 120,356,974 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,385 | r | textanalysis.R | library(dplyr)
library(tidytext)
library (ggplot2)
library(purrr)
library(tm)
library(SnowballC)
library(wordcloud)
library(RColorBrewer)
library(tidyr)
library(igraph)
library(ggraph)
library(topicmodels)
library(tidyr)
data("stop_words")
read_plus <- function(flnm){
read.csv2(file=flnm, stringsAs... |
26a5294a801397a140017cba9d4ddfde97642e96 | af3074731acae1fdea91fc0f4b3a2a33e87b0c1e | /R/_ARCHIVE/CopyOfnwos_response_rate.R | 654f9784f14371af62bc1f8efe2fb5518fd96ce4 | [] | no_license | bbutler01/nwos | ee5eb2b11d5dd38aaaaaa822476cf0d85a11a47b | fd7d86eebaf1aef4699bf68d5a89839fefe48c64 | refs/heads/master | 2021-01-25T12:42:08.163289 | 2019-08-29T18:19:27 | 2019-08-29T18:19:27 | 123,034,933 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,001 | r | CopyOfnwos_response_rate.R | #' NWOS Response Rate
#'
#' This function calculates response rates for the NWOS.
#' @usage nwos_response_rate(index = NA, data, stratum = "FFO", point.count = "POINT_COUNT", response = "RESPONSE")
#' @param index vector of observations in data to include. If NA, the index is set to the row names of data (i.e., uses al... |
d51763d591af0a053e6ada7e57c62b14349ca5b6 | 472081e8eeef613e93fbd4ea939fe0142505545d | /man/wfgTransformation.Rd | aa61440824d08d95a901161340bd282f90f81d05 | [
"MIT"
] | permissive | tudob/wfg | 914b78ff0192ca211a7d3790fa1908113929f5d1 | 274e17243ea5ec94604f4f950af82b7141bf1cb1 | refs/heads/master | 2020-05-12T15:12:29.352884 | 2014-10-22T15:46:32 | 2014-10-22T15:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 998 | rd | wfgTransformation.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{wfgTransformation}
\alias{wfgTransformation}
\title{wfgTransformation - used by wfgEval to apply a transformation to part of the search-space vector}
\usage{
wfgTransformation(M, current, t_, start.index, apply.length, n, k, params)
}
\arguments{
\item{M}{The n... |
f57b0427dce9ca4a2dcc5bab133ba763c4c7ad02 | 6b119674bd7227f5e9a670a22e2410e41be4ea5d | /2020-09-29 Beyonce TSwift/TswiftLyrics.R | a270fa334664cd019603c62b78ec3ca3776e26c5 | [] | no_license | juliekewing/tidytuesday | ee756a6d7d7962539ba3147c7c968da457a0f42a | 838459f06bdff2e365630464e20bd2f2584735c7 | refs/heads/main | 2023-01-02T08:05:53.026550 | 2020-10-18T04:01:29 | 2020-10-18T04:01:29 | 305,001,705 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,122 | r | TswiftLyrics.R | # Setup
library(tidyverse)
library(tidytext)
# Get the Data
# Read in with tidytuesdayR package
# Install from CRAN via: install.packages("tidytuesdayR")
# This loads the readme and all the datasets for the week of interest
# Either ISO-8601 date or year/week works!
tuesdata <- tidytuesdayR::tt_load('2020-09-29')... |
02291c270133cb44f35529a4cab1876a99f3d61d | c874e55ec73043f6b837601cc58d855d37649e59 | /mlcenzer/stats/src/generic models-Gamma glm 3-FF inverse link.R | fea5ae4146905a3bac867477d954b012dcebd060 | [] | no_license | mlcenzer/SBB-dispersal | 85c54c924b399834a798d700cabf0b2702ae0755 | 1a777370986f83186180552a09149dfba72b96d0 | refs/heads/master | 2022-12-11T10:13:32.416530 | 2022-12-03T16:23:52 | 2022-12-03T16:23:52 | 229,098,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,518 | r | generic models-Gamma glm 3-FF inverse link.R | library(lme4)
#generic three factor analysis with binomial data
m0<-glm(R~1, family=Gamma(link="inverse"), data=data)
m1<-glm(R~A, family=Gamma(link="inverse"), data=data)
m2<-glm(R~B, family=Gamma(link="inverse"), data=data)
m3<-glm(R~C, family=Gamma(link="inverse"), data=data)
m4<-glm(R~A+B, family=Gamma(link="i... |
77731a962ed8335eb38a7bc3b48338768f1aba14 | d69b50072a174ba4f0cf7818bc1063decb85dab9 | /Walmart_Sales_in_Stormy_Weather/R_Script/Hybrid_Model.R | b73892ad3df49c01e2dbc915fa0e9bccb12de658 | [] | no_license | chriszeng8/Kaggle | be80c02f2de6579a6e69a5fb683a9c2fb2532240 | 3f15483cd3d28de6fe46d45aae8c0bfdb295cf2d | refs/heads/master | 2021-01-23T12:07:06.908784 | 2015-05-20T07:31:51 | 2015-05-20T07:31:51 | 30,375,080 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,646 | r | Hybrid_Model.R | setwd("/Users/emmama/Google Drive/Data Mining Project/Data")
# By Ling Cong Ma
#==============================================================================
# Import Data
#==============================================================================
weather<-read.csv("/Users/emmama/Google Drive/Data Mining Project/... |
c26112a5d7eb7dce5ff543aaf0fc45dfa08749e0 | 933f7e96ff913739b22053ba81651797178ecc0a | /man/inv.f5pl.Rd | 7ef46f3c778b1e78cad4bc214d32754c0933f108 | [] | no_license | cran/ELISAtools | 8ffafdb930fe47c5c1cd619cb54644ee9f1210d6 | 67e6926484f17d9fde53237659415fa11398f2c4 | refs/heads/master | 2021-06-19T08:26:43.601807 | 2021-01-21T14:40:05 | 2021-01-21T14:40:05 | 174,589,176 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 517 | rd | inv.f5pl.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Regression.R
\name{inv.f5pl}
\alias{inv.f5pl}
\title{The inverse of the 5-parameter logistic function}
\usage{
inv.f5pl(pars, y)
}
\arguments{
\item{pars}{the parameters of the function. It has the following content: [a, d, xmid, scale, g].}
... |
1d5d219e421232026d130fc75e8f479c7c8f91ca | 3bfe4f88a0190b3dca045b8388cb6080a1cacb44 | /liftcode.R | ec42ece8bb7333fc35b0b6f32e4356039ae2e710 | [] | no_license | jakempker/lift | 0a93a380697e510af303f821ad8b2d9ed7330847 | 8fb13f05230a9185c4ca0d16438b47d510017c4d | refs/heads/master | 2021-01-13T10:18:08.570207 | 2016-08-25T00:40:22 | 2016-08-25T00:40:22 | 66,485,458 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,739 | r | liftcode.R | setwd("C:/Users/jkempke/Box Sync/Coursera/lift")
download.file(url="https://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv",
destfile = "./pml-training.csv")
download.file(url="https://d396qusza40orc.cloudfront.net/predmachlearn/pml-testing.csv",
destfile = "./pml-testing.csv")
library(caret)
library... |
6fc9c60e653b99e4ae5b76dc95468cf5a72550e7 | 7193be8e52b2095d8b6472f3ef2104843dca339e | /Project4-MachineLearning/Datasaurus/Nick/TryKNN.R | e355783c799f514ad11c564a83ec253fc6e71e50 | [] | no_license | vuchau/bootcamp007_project | 4b0f37f49a1163ea6d8ee4143a5dcfdef0d352dd | ffbd0f961b18510fc72fd49770187ec1b4b013ae | refs/heads/master | 2020-03-20T13:19:58.812791 | 2017-06-08T05:13:24 | 2017-06-08T05:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,845 | r | TryKNN.R | #rm(list = ls())
library(class)
library(qdapRegex)
library(kknn) #Load the weighted knn library.
library(VIM) #For the visualization and imputation of missing values.
library(ggplot2)
library(stringr)
library(Hmisc)
library(stringi)
library(dplyr)
library(plyr)
library(foreach)
library(parallel)
library(doParallel)
cor... |
2f8162152103d155f6176d82dec577fef4fdfd76 | 58235e8e6c953f628f25da903764432fe19feafa | /inst/examples/04-selected/server.R | ec6a33c538faa1bc8f1a68e88f20b3fc879c1161 | [
"MIT"
] | permissive | timelyportfolio/shinyTree | 6be833fb7e932ec42aa04e6c4dc08009a4438d9e | 52996823084827279a07361820c2d7edb6f9bfb1 | refs/heads/master | 2023-07-20T13:45:11.414436 | 2023-07-15T16:08:48 | 2023-07-15T16:08:48 | 124,381,230 | 2 | 0 | MIT | 2018-03-08T11:21:47 | 2018-03-08T11:21:47 | null | UTF-8 | R | false | false | 649 | r | server.R | library(shiny)
library(shinyTree)
#' Define server logic required to generate a simple tree
#' @author Jeff Allen \email{jeff@@trestletech.com}
shinyServer(function(input, output, session) {
log <- c(paste0(Sys.time(), ": Interact with the tree to see the logs here..."))
output$tree <- renderTree({
list(
... |
3b42fcc25ca4b123e6bd8f375eed785774a10b54 | 3aa9c5d5c41eb2f47f48cc057b89b9bf1d2473cf | /bigdata-R-Azure/fundamentals/07-Matrizes.R | 322b292cc05a233766bea780fdd482c67588037b | [
"MIT"
] | permissive | RaniereRamos/data-science | dc124ec94889903f27fd5a344483486b61dd924c | a9535ac09c2f8f07faecee421be76816f85c2760 | refs/heads/master | 2022-11-05T03:56:49.182063 | 2020-06-23T14:14:07 | 2020-06-23T14:14:07 | 272,301,444 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,373 | r | 07-Matrizes.R | # Matrizes, operacoes com matrizes e matrizes nomeadas
# Obs: caso tenha problemas com a acentuacao, consulte este link:
# http://support.rstudio.com/hc/en-us/articles/200532197-Character-Encoding
# Configurando o diretoria de trabalho
# Coloque entre aspas o diretorio de trabalho que voce esta usando no seu co... |
85edba4968a86bb84985841fe164292d21375eac | 8397af2a24361e014d345c9c801ce019cdfabfb8 | /plot4.R | 53a3a80bf2b98a6e86f55d666d46f37eb4b14fe1 | [] | no_license | lukaszoleksy/ExData_Plotting1 | bcc2056895d4484fb6c78d9b3c72a8963da27abc | 99abbc7975b90ec5873aff818dd5976312f76320 | refs/heads/master | 2021-01-15T08:35:58.942448 | 2016-09-07T22:00:27 | 2016-09-07T22:00:27 | 67,646,579 | 0 | 0 | null | 2016-09-07T21:57:35 | 2016-09-07T21:57:34 | null | UTF-8 | R | false | false | 1,180 | r | plot4.R | startReadingFrom<-66637
nRowsToUse <- 2880
colNames <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
data <- read.table("c:/temp/household_power_consumption.txt", header = FALSE, na.strings = "?", sep=";", skip=startRead... |
db222c6aa42efdf106d51e6728777c58ed07319a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/mvmeta/examples/summary.mvmeta.Rd.R | c8ae0f29e17750bec348d5bdbe1fb6b6c74c3eb1 | [] | 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 | 430 | r | summary.mvmeta.Rd.R | library(mvmeta)
### Name: summary.mvmeta
### Title: Summarizing mvmeta Models
### Aliases: summary.mvmeta print.mvmeta print.summary.mvmeta
### Keywords: models regression multivariate methods
### ** Examples
# RUN THE MODEL
model <- mvmeta(cbind(PD,AL)~pubyear,S=berkey98[5:7],data=berkey98)
# SIMPLE PRINT
model
... |
53034f2d84448f25a1798a7e019258f8b4880648 | e205d4542b2f7d13bc3c1a3bba2eae4c16cfc743 | /tests/testthat/test-13-dd-double-triangulation.R | e73cede2c03e13448285c7ee299984a48ef836e1 | [
"MIT"
] | permissive | trenchproject/TrenchR | 03afe917e19b5149eae8a76d4a8e12979c2b752f | 7164ca324b67949044827b743c58196483e90360 | refs/heads/main | 2023-08-20T11:54:26.054952 | 2023-08-04T03:52:42 | 2023-08-04T03:52:42 | 78,060,371 | 8 | 8 | NOASSERTION | 2022-09-15T21:36:08 | 2017-01-04T23:09:28 | R | UTF-8 | R | false | false | 545 | r | test-13-dd-double-triangulation.R | context("Double Triangulation")
test_that("degree day function-double-triangulation work", {
# fpath <- test_path("degree-days-double-triangle.csv")
# doubletriang <- read.csv(fpath)
#doubletriang$DD.Trench<-degree_days(doubletriang$Air.min,doubletriang$Air.max,12,33,"double.triangulation")
#corrdoubletrian=cor(... |
c24b08a1e72a6b53ed913b57ab0966484d8f8ed7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Momocs/examples/coo_area.Rd.R | 3cf8d08e4c3ab7174725e103b434f1b3a43d7db8 | [] | 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 | 240 | r | coo_area.Rd.R | library(Momocs)
### Name: coo_area
### Title: Calculates the area of a shape
### Aliases: coo_area
### ** Examples
coo_area(bot[1])
# for the distribution of the area of the bottles dataset
hist(sapply(bot$coo, coo_area), breaks=10)
|
0f83dfd672cd6f269b76097db886047463b2dd2b | 3d0974bf3ab2c4d27c001513b02b1ce15a6ed745 | /plot4.R | dade0e2cece58845cedbe7b287c6f7c0c52f0589 | [] | no_license | YujiShen/ExData_Plotting1 | 5ea57e0ab249053d5242cab43ed67474109237e1 | 2d98a639e93b35bbefba3c34dab4d232274fd0b5 | refs/heads/master | 2020-12-24T20:15:47.166412 | 2014-06-06T13:39:58 | 2014-06-06T13:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,327 | r | plot4.R | #load data.table package
library(data.table)
#get the colClasses and read table
tab5rows <- fread("household_power_consumption.txt", header = T, sep = ";", nrow = 5, na.string = '?')
classes <- sapply(tab5rows, class)
power <- fread("household_power_consumption.txt", header = T, sep = ";", na.string = '?', colClasses ... |
33c36dec735078fc247ece861f94fd7dde540c74 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/coxmeg/R/fit_ppl.R | 1657706514b03b411dfb26549438bf167e172f97 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 9,106 | r | fit_ppl.R |
#' Estimate HRs using PPL given a known variance component (tau)
#'
#' \code{fit_ppl} returns estimates of HRs and their p-values given a known variance component (tau).
#'
#' @section About \code{type}:
#' 'bd' is used for a block-diagonal relatedness matrix, or a sparse matrix the inverse of which is also spa... |
4a619cd569c3bc35f6213fa803cb0c36cbe953e6 | bcfde339f22bd8470f6eb88daa82f83e51cbaa77 | /Calculating Colley Ranking - Web Scraping and so on.R | 5895d5f8cb741722201e0d8521bf8f3a8f3ef572 | [] | no_license | sunlee0216/Data-Science-Portfolio | 5f7a0d6e5d0acdeee267b236bc7d2c6ff8ca26c9 | adc96f786d462fc0252356e83b10465275ab95da | refs/heads/master | 2020-06-22T13:33:31.735442 | 2019-08-02T19:47:43 | 2019-08-02T19:47:43 | 197,722,639 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,797 | r | Calculating Colley Ranking - Web Scraping and so on.R | # In this project, I will write a function (named "colley") that takes a year (any between 1961 and 2010)
# as input and calculates the Colley rankings using the matrix method for that year. The function should
# return a data frame with two columns, team name and colley score, and should be ordered from best to
# w... |
d5e93bb7d8a839d8afb53f79ab64a476013019a2 | 27b4436fdbab36fd3d7963df408a2d259e8fd909 | /man/extract_precip.Rd | 305c260f41c650e70ebf634a2d551fb48ef0d903 | [] | no_license | dklinges9/mcera5 | 962833c6b208d892ddb7e1ef1f9e80b9b7fa6140 | a37074a74f78439118f90c2ee76ab5bafaf7f2ed | refs/heads/master | 2023-07-23T11:09:26.529124 | 2023-07-10T23:13:41 | 2023-07-10T23:13:41 | 260,175,954 | 10 | 4 | null | 2023-09-05T13:51:41 | 2020-04-30T10:01:45 | R | UTF-8 | R | false | true | 1,823 | rd | extract_precip.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_precip.R
\name{extract_precip}
\alias{extract_precip}
\title{Produces daily or hourly precipitation data for a single location ready for use
with `microclima::runauto`.}
\usage{
extract_precip(
nc,
long,
lat,
start_time,
end... |
e21129060c7f0ebebab833314121b69bd3913b7c | de93acb5426b3d637c7f1a10d902b837fbcd6988 | /man/check_team_membership.Rd | e79a01dac312d39543442ad55da481a0e2c22021 | [
"MIT"
] | permissive | Sage-Bionetworks/dccvalidator | 40c32495bdf3b06f6601b0cc63e12e6872bca0d3 | dcdddd8c6e3c3cfc56388352501de0d947fa60b5 | refs/heads/master | 2023-04-09T04:26:45.088613 | 2022-05-05T20:59:53 | 2022-05-05T20:59:53 | 130,909,540 | 10 | 16 | NOASSERTION | 2022-12-08T07:01:16 | 2018-04-24T20:23:02 | R | UTF-8 | R | false | true | 832 | rd | check_team_membership.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check-team-membership.R
\name{check_team_membership}
\alias{check_team_membership}
\title{Check team membership}
\usage{
check_team_membership(teams, user, syn)
}
\arguments{
\item{teams}{Team IDs to check membership in}
\item{user}{User to ... |
f2bdd451c318213a1f46855b2d06f99efb999986 | f7290d41cdcf6fd40b7647b69670e09d96c8386f | /R/SS_VCM.R | aa79e20dfa2bdb70e145818e0617547de7fb8c21 | [] | no_license | Heuclin/VCGSS | ff9a3d401b59d2d5bbf7163e536016f66ac4419f | 71dd884ec402a5dfdd3e98c93ea18e1b66a1acd6 | refs/heads/main | 2022-05-01T19:42:44.321397 | 2022-04-26T13:33:23 | 2022-04-26T13:33:23 | 408,858,225 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 25,727 | r | SS_VCM.R |
#____________________________________________________________________________________________________________________
#
# Varying Coefficient Model (VCM) code
# B. Heuclin, F. Mortier, C. Trottier, M. Denis
# 22/09/2020
#
#___________________________________________________________________________________________... |
9e25c5f0014dd08823b6faad46995a5760e0ab8a | a7c4723087d16f75add07061726058060008c74e | /testCode.r | 3e4616171350976edbaef78cd30398a99556c7ab | [] | no_license | c-zhong/TriageBehaviorGraphAnalysis | 29c37aff35af2b9518c53e384c0c1188d58f6f4f | 25a492e5ab6253e1559946835f4a9f03255ba60c | refs/heads/master | 2021-05-28T21:01:06.651241 | 2015-02-25T19:16:21 | 2015-02-25T19:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 290 | r | testCode.r |
g1<-graph.formula( A--B--C--D)
g2<-graph.formula( A--B--C, A--C)
g3<-graph.formula( A--D, A--B, A--C)
g4<-graph.formula( A--B, C--D, E)
plot(g)
#linux
setwd("//home//amyamyamy//Dropbox//Work//Filter Graph Analysis//")
#windows
setwd("C://Dropbox//Work//Filter Graph Analysis//")
|
382cf5c8f7f97cfda2dec9c893f0d51b46fba6b0 | 70ef9078060688fd4fa238d717907d3ca7a3c931 | /run_jags.R | 4852eefb2d189ae2599bc45610342b7751c8bbe7 | [
"MIT"
] | permissive | claraqin/beta_regression | 7f90f486468135aed320307737f66b717f627bb8 | 0cd45bd19981b4add3ff1d8dde38a08f40de4cee | refs/heads/master | 2020-05-31T03:56:30.786751 | 2019-07-24T01:13:06 | 2019-07-24T01:13:06 | 190,090,461 | 4 | 0 | MIT | 2019-07-24T00:57:48 | 2019-06-03T22:23:04 | R | UTF-8 | R | false | false | 951 | r | run_jags.R | # Bayesian beta regression using JAGS: running the model
library(rjags)
library(R2jags)
# read in simulated data
jags_data <- readRDS("jags_data.rds")
# hierarchical model structure
jags_mod <- function() {
# likelihood
for(i in 1:N) {
y[i] ~ dbeta(shape1[i], shape2[i])
shape1[i] <- phi * mu[i]
shape... |
ccfabad8dc3bd09064adc7b6f80bd980dec77d39 | c45e23e739438902c1d1e271a62b498b7a2c9cde | /MixRHLP/R/ModelMixRHLP.R | a39a597da91d6f89c5d3f7f5950ca47879a73ceb | [] | no_license | oxygenwu/MixFRHLP_R | 7354bd24ce49be1da2d8c81099309b5105887cb4 | 2f761b6a9fe1084de16a3a0922779cb0b0dedb64 | refs/heads/master | 2020-05-18T07:45:03.546979 | 2019-04-25T15:25:53 | 2019-04-25T15:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 922 | r | ModelMixRHLP.R | source("R/FData.R")
source("R/enums.R")
ModelMixRHLP <- setRefClass(
"ModelMixRHLP",
contains = "FData",
# Define the fields
fields = list(
G = "numeric",
# number of clusters
K = "numeric",
# number of regimes
p = "numeric",
# dimension of beta (order of polynomial regression)
q = ... |
d0101545fdd3a6a2bc973f7902cc3230b7eadde7 | c787120d5e80587bf4ce62ae858d653d11743b18 | /man/create.roi.Rd | 7f9bb5ceabe9dcfeea7e2c9e3f44a71ba54a59af | [] | no_license | cran/erpR | d2105b844fce3dd3c0dc0e8b47fc33850cf2d68c | 6c33fb2cd818c0f9172cdba4253b99857eca0ac5 | refs/heads/master | 2021-01-20T12:45:06.305879 | 2014-05-14T00:00:00 | 2014-05-14T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,566 | rd | create.roi.Rd | \name{create.roi}
\alias{create.roi}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
create electrode region of interests
}
\description{
An utility function to create a factor that collapses other factor levels (typically electrode names) in a new variable vector with the new ROI (region of inte... |
5470980b086d94f8a0c59bfca30105847933d1e9 | 29585dff702209dd446c0ab52ceea046c58e384e | /HardyWeinberg/inst/doc/HardyWeinberg.R | b2890eeaeb81c6c5697f2ceb8ab40348a4838960 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,587 | r | HardyWeinberg.R | ### R code from vignette source 'HardyWeinberg.Rnw'
### Encoding: ISO8859-1
###################################################
### code chunk number 1: HardyWeinberg.Rnw:736-737
###################################################
options(prompt = "R> ", continue = "+ ", width = 70, useFancyQuotes = FALSE)
... |
e051c006916da49139481778887397346e75d036 | 113b03cf0597cdb6af61fe9d47268ceb5215c86a | /R/flag_suicide_types.R | 43b56a57774a1f45f9c17113b98548697f86b183 | [
"MIT"
] | permissive | mkiang/narcan | a26e529d600d9f71ae6bec83b1ae7592069dd14a | 5627c00debf4db8a939889210c9e167a2578f6e7 | refs/heads/master | 2023-04-22T09:48:55.612283 | 2023-04-19T15:39:20 | 2023-04-19T15:39:20 | 102,496,439 | 9 | 0 | null | 2018-03-13T17:09:07 | 2017-09-05T15:09:55 | R | UTF-8 | R | false | false | 2,168 | r | flag_suicide_types.R | #' Flag suicide five types: firearm, poisoning, fall, suffocation, or other
#'
#' TODO: Make this also work with ICD-9
#'
#' @param df processed MCOD dataframe
#'
#' @return new dataframe
#' @importFrom dplyr mutate
#' @export
flag_suicide_types <- function(df) {
new_df <- df %>%
flag_suicide_firearm() %>%
... |
a995069e9d3d5c33d975d8be5462750a823e9a56 | 8a768c89ea59d7f29795d3750901378828b7b2c2 | /plot3.R | 5472627847bf8c014b89bcb759b592cd0f508155 | [] | no_license | wojaw/ExData_Plotting1 | fd20baed77b2cf8da1ba6db54efc8c8611353869 | 2dbca4336bc98206b194d16f5e78a5885f5badc2 | refs/heads/master | 2020-07-15T07:23:51.025179 | 2014-09-07T23:03:27 | 2014-09-07T23:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 347 | r | plot3.R | png('plot3.png', width=480, height=480)
plot(data$Sub_metering_1, axes=F, xlab=NA, ylab='Energy sub metering', type='l')
lines(data$Sub_metering_2, col=2)
lines(data$Sub_metering_3, col=4)
box('plot')
axis(1, at=plot2_days, labels=c('Thu','Fri','Sat'))
axis(2)
legend('topright', lty=1, col=c(1,2,4), legend=paste0('Sub_... |
9e571da346fc58bebfe0ea85910276d341767426 | 435c24d24e98feb41a81ee4d06c305832577d2f0 | /cachematrix.R | d4f4d5a5dfc176455575b8a81acad40e70eafe87 | [] | no_license | sonalimanohar/ProgrammingAssignment2 | 80539421a605dc7e6379eec6c1d94ea11f69dc2e | 485546f788446b97b9676b22ce50bdf63d2bc010 | refs/heads/master | 2021-01-17T08:26:53.469312 | 2014-11-23T22:45:12 | 2014-11-23T22:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,424 | r | cachematrix.R | makeCacheMatrix <- function(xsolve = matrix())
{ ## makeCacheMatrix is a Function which does the following:
## -- Creates a matrix via the "set" function.
## -- Creates 'attributes' such as set, get, setsolve, getsolve and assigns it to the matrix
## -- Resultant matrix is now capable of performing tasks such as... |
02c4e08da4305181092892ac59ff6decb4ac0200 | 973cf626ce20a6facdff3e08bc7f5b7f7553faa8 | /BioStats2/q1.R | 80caeaae5d13e88be344556495b85b4890703a0f | [] | no_license | RobertCPhillips/CourseraJohnHopkinsDataScience | c9b3ca59f208e9cc0c24e40674eeffd01b329824 | e0fc46b404d76e1aa689d85b72bd7c13dea95c90 | refs/heads/master | 2021-01-23T12:17:16.871163 | 2016-01-02T15:33:38 | 2016-01-02T15:33:38 | 22,586,700 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,944 | r | q1.R | #--------------------------------------------------------------------------------
#1 - one sided test
#--------------------------------------------------------------------------------
n <- 100
x <- 12
s <- 4
a <- .05
za <- qnorm(1-a)
se <- s/sqrt(n)
rr <- x - za*se
#--------------------------------------------------... |
893cf762af4966bf72daaa335f55c4d56d434633 | 6cbb51fe996e65a51a8d9f2f35e3159721933f25 | /inst/shiny/ui_10_1_TSCAN.R | 4370cb3aeb63f9be6ee6f1dcad91ca184a217d41 | [
"MIT"
] | permissive | compbiomed/singleCellTK | 927fb97e257ba89cddee9a90f9cb7cb375a5c6fb | 990e89e7ccfbf663f23c793454f72fb8c6878a32 | refs/heads/master | 2023-08-11T09:17:41.232437 | 2023-07-26T20:43:47 | 2023-07-26T20:43:47 | 68,756,293 | 144 | 89 | NOASSERTION | 2023-09-06T18:22:08 | 2016-09-20T21:50:24 | R | UTF-8 | R | false | false | 17,054 | r | ui_10_1_TSCAN.R | # User Interface for TSCAN ---
shinyPanelTSCAN <- fluidPage(
# Dropdown closing script ####
tags$script("Shiny.addCustomMessageHandler('close_dropDownTSCAN', function(x){
$('html').click();
});"),
tags$script("Shiny.addCustomMessageHandler('close_dropDownTscanDE', function(x){
... |
c3392eded79bdd00c2876539ebb91be7ffb79aa6 | 9772d0d606d8cd06284d4dbc85ce8a6110aef08c | /R/residuals_multiflashlight.R | 3af5ff4f7c2ec01f96c949a131662c6fa063816c | [] | no_license | cran/flashlight | abeb64b4ed5efc2ecdbd0ec5f6cfac7619161838 | ffbc6ad57eab440ae6b7f5702ca16d43f534077a | refs/heads/master | 2023-05-24T21:33:00.607373 | 2023-05-10T01:40:06 | 2023-05-10T01:40:06 | 209,293,489 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 897 | r | residuals_multiflashlight.R | #' Residuals for multiflashlight
#'
#' Residuals method for an object of class "multiflashlight".
#' Pass additional elements to update the multiflashlight before calculation of
#' residuals.
#'
#' @param object An object of class "multiflashlight".
#' @param ... Arguments used to update the multiflashlight befo... |
93eb767ed7fed79baac08c48eb3053454f6c4bbe | 4cdeb4d6f2c0574f73f958a32a25263b63e568b3 | /src/diagnose/covid_deck/MAIN_fit_ELG.R | 7037dc62347259a5b517190c3e97c84b0dd872bb | [] | no_license | jiachengwang2019/tsforecast_val | 5a136a730bdad0a8e25fcbc181aa2a44c3cab868 | e1ee5b14554502e4bd3fc7da144c6c6038f97767 | refs/heads/master | 2022-11-05T20:32:05.215093 | 2020-06-29T13:28:51 | 2020-06-29T13:28:51 | 273,545,643 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,261 | r | MAIN_fit_ELG.R | library(here)
library(RMySQL)
library(dplyr)
source(here::here("src","common_codes","parameters_CENT.R"))
source(here::here("src","common_codes","data_prep_functions_v2.R"))
source(here::here("src","common_codes","forecasting_functions.R"))
source(here::here("src","common_codes","model_evaluation.R"))
source(here::her... |
43b7efda3cb8c4a58820c7c135051d7ff6d44f84 | 873394d6cd11b544d602a7038c6e4890073727c7 | /Lab_10.R | 10797938e99ac60ea43364b0f920354a548577d1 | [] | no_license | michaelchoie/Introduction-to-Statistical-Learning | bb44c1c48155034da0ed99af776bd0f7cb17a2c6 | fb52ee1124bfe7c0267727790a9aec4cbe26c9a8 | refs/heads/master | 2021-08-19T23:43:46.172749 | 2017-11-27T17:55:50 | 2017-11-27T17:55:50 | 106,619,417 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,053 | r | Lab_10.R | ########################################################################################
# LAB 10.4 Principal Component Analysis
########################################################################################
USArrests <- data.frame(USArrests)
summary(USArrests)
apply(USArrests, 2, var)
# Must standardize va... |
905594a04aa71f193c6ae84a0dffad424e83d047 | 1d176135777b85272c99ac0b9edf3a41f5a72a29 | /Figure_6/compare_strains/read_phaster_results.r | 5f849d84270c23a60e96908ac778cdb66d1cb3de | [] | no_license | paraslonic/GCBPaperCode | 429a0528b1a78fbdbb35946bc789972d822433f7 | 7760cd72d4ea480f5b1b5233c2fb3a312ceaa587 | refs/heads/master | 2022-06-21T02:10:20.169991 | 2020-06-18T10:35:45 | 2020-06-18T10:35:45 | 224,661,526 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,308 | r | read_phaster_results.r | phaster.o157 <- read.delim("phaster/summary_o157.txt", head = T, sep = "\t")
phaster.o157 <- strsplit(as.character(phaster.o157$REGION_POSITION), split = '-')
phaster.o157 <- as.data.frame(phaster.o157)
phaster.o157 <- apply(phaster.o157, c(1,2), as.integer)
phaster.iai1 <- read.delim("phaster/summary_iai1.txt", head ... |
f0f4135a5e3738eaf962e4627a03845ba4e82a9b | 5226f717b17677c2de63188482b5424e9666112d | /man/Moran.I.calc.Rd | 8e84785cc7333436762b2c25be49fe4e36c1ba54 | [] | no_license | ballengerj/FishyR | 04c7fa0934f1979347d699bd002d9a7dc7dbda80 | 9c33bb8f491c4ec481ef0b60988deb5c94d292f4 | refs/heads/master | 2022-06-17T15:24:25.366847 | 2022-06-08T21:52:55 | 2022-06-08T21:52:55 | 54,901,542 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 810 | rd | Moran.I.calc.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spatial_correlation_functions.R
\name{Moran.I.calc}
\alias{Moran.I.calc}
\title{Moran's I Test for Spatial Autocorrelation Among Residuals}
\usage{
Moran.I.calc(data)
}
\arguments{
\item{data}{numeric data frame with three columns. First col... |
d15662ae838eded5a46b01af2ce2fa342058a32c | b712e229f1cedbf19cb8e7fcfcc3d59f336429de | /Market_State_Estimation_v1.R | 59bf1bc787f914e7d562618aeb2baed4c1e5159c | [] | no_license | Ani-07/Portfolio_Optimization_with_ML | 904e9798abaabf89af1d2e7851e203a8a07ed7b9 | 3767212bf8fb33b960141ff4af790cf12edf0f3b | refs/heads/master | 2022-12-25T13:56:35.183545 | 2020-10-02T03:31:40 | 2020-10-02T03:31:40 | 297,230,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,632 | r | Market_State_Estimation_v1.R |
library(quantmod)
library(TTR)
library(tree)
# Obtain Stock data of Apple July 30th, 2002 and Dec 31st, 2019
RSI_data <- function(ticker){
apple <- getSymbols(ticker, from = "2002-07-30", to = "2019-12-31", auto.assign = F)
weekly.rtn <- weeklyReturn(apple, type = "arithmetic")
rsi_5 = RSI(apple[,4], n =... |
691cf00652574baeffa74436434353992cf31a09 | 25cb70237f3350bb4b13cb7261bc6bd7593be7d7 | /hawaii_seir_model/test_hawaii/hawaii_test_EH.R | fdeeabf5a948f76b35b4ff5ddf7fb7f5577a0c8c | [] | no_license | mbutler808/Zool719-covid19 | 91de53ee3622023a256b308686f58dc514ed5613 | 65700d6a9e23f71612fa792006c09ab28d0b577c | refs/heads/main | 2023-04-18T21:29:13.810358 | 2021-05-05T08:46:03 | 2021-05-05T08:46:03 | 331,101,143 | 0 | 0 | null | 2021-05-05T08:46:04 | 2021-01-19T20:28:14 | HTML | UTF-8 | R | false | false | 14,785 | r | hawaii_test_EH.R | require(tidyverse)
require(pomp)
require(ggplot2)
#input vaccine data
vax <- read.csv("Hawaii_vaccine_data.csv", fileEncoding = "UTF-8-BOM")
COUNTY = "Honolulu"
data = read.csv("../hawaii_covid_cases.csv")
data = data %>%
select(-c(New.Positive.Tests, Total.Test.Encounters)) %>%
filter(County == COUNTY)
data <-... |
8b8103d08a6dee410c6aeafaaed44464e433e7f2 | 4e50d2345a2cfeb3c9ecb02187f88e753d1ed83c | /bin/02.taxonomy/species.barplot.r | deb43e96e3bdb4cd4ac3865fc04ee01c86aeda1a | [] | no_license | ms201420201029/real_metagenome_pipeline | 7c7b54e5e8a798933387f960256ebb849e9c2200 | e8f0b188f21975305565d06e4fefe4f4c9adc1f7 | refs/heads/master | 2020-04-05T06:41:34.349662 | 2018-12-04T05:48:52 | 2018-12-04T05:48:52 | 156,646,750 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,304 | r | species.barplot.r | args = commandArgs(T)
profile <- read.table(args[1], header = T, check.names = F);
number <- args[2]
level <- args[3]
## reorder
#neworder = as.character(unlist(read.table("species/top20/20150717/bar/sample.order.list")))
#profile = profile[, neworder, drop = F]
## unknown change
#colnames(profile) = gsub("M", "m", ... |
4772407d01b7c8572b4966d02c3783450528da5d | fd42672a6013783e5348bb313c3ae9c4f5d224f8 | /R/create_dataset.R | 629f23239b5cf737a73e464c1bb72a07220c8162 | [] | no_license | cran/openblender | 5d3d202cb7623210daec0647b74459cc9f687728 | 3d7a297710830f648b06347c9cfff73ac6c5f22a | refs/heads/master | 2020-07-18T05:25:17.689857 | 2020-06-19T11:00:02 | 2020-06-19T11:00:02 | 206,186,000 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,137 | r | create_dataset.R | #'@title Request to the API, depending on the action provided
#'@description Prepare the creation of a Dataset in 'OpenBlender' API. This function is not used by users.
#'@param json_parametros Request parameters that contains the dataset structure
#'@param url Url selected
#'@return Dataset's id just created, usin... |
046761659111effd3e2edba03a636a19fa9c4568 | 0913ef989631d5fbb6461667563bb13c102d22c8 | /man/ss_section.Rd | 3ac665451817f2b34c63dfa86d2f331a57b28fe7 | [] | no_license | oucru-biostats/C306 | 57c8b501a106384f101d20c54bdcbc54d99c8bdf | 7d30d14b081ba64b32fc47ac985bc45ad2672f70 | refs/heads/master | 2022-05-01T09:33:44.355345 | 2022-04-28T11:42:23 | 2022-04-28T11:42:23 | 203,103,489 | 0 | 2 | null | 2019-11-07T05:46:23 | 2019-08-19T05:21:54 | R | UTF-8 | R | false | true | 450 | rd | ss_section.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ssformat.R
\name{ss_section}
\alias{ss_section}
\title{Designation of section title rows for custom sstable}
\usage{
ss_section(sstable, rows)
}
\arguments{
\item{sstable}{a data frame following sstable's grammar}
\item{rows}{a numeric vecto... |
aaa75395c8f2c4ccd33af1358cdec854196623c3 | dfd5e44293393f83019bb905bb96cb1d6353903a | /master_data/raw_species_papers/599_Noe_and_Zedler_2001/599_Noe_and_Zelder_2001_diversity_calcs.R | df3e745863e7f458d725573754ad284e2ce07fda | [] | no_license | jdunic/local-marine-meta | efe61516e0492d0bfa9532e76b256b639aa92689 | b5ba23d901f8d3e785a35b60dbe93f40966d1434 | refs/heads/master | 2021-03-19T09:33:43.926716 | 2019-02-20T22:00:56 | 2019-02-20T22:00:56 | 43,651,540 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,329 | r | 599_Noe_and_Zelder_2001_diversity_calcs.R | library(tidyr)
library(dplyr)
library(vegan)
data <- read.csv('/Users/jillian/Desktop/Meta-analysis_papers/Papers to QC/599_Noe_and_Zelder_2001_Table1.csv', stringsAsFactors = FALSE, na.strings = '')
data <- select(data, -Species.classification)
data[is.na(data)] <- "9999 (9999)"
mean_sd_df <- lapply(names(data[,... |
a1e750027eae8c389748a2afd53025086a6eb931 | 2d6eb3d08d5cb8d5ae075dd2c1e113d0996c3009 | /man/gitlabr_0_7_renaming.Rd | 60f7cfb1acfbe8c7293e56f21640d47da763d675 | [] | no_license | jirkalewandowski/gitlabr | 4c040c1e320c2cfb852de5dad79bb18e6bbebd61 | c64979c71c8d2e2be4a00f031e560da7c085892f | refs/heads/master | 2021-01-11T15:58:19.068337 | 2019-03-14T19:08:05 | 2019-03-14T19:08:05 | 79,971,979 | 23 | 9 | null | 2019-06-05T03:34:39 | 2017-01-25T01:23:36 | R | UTF-8 | R | false | true | 377 | rd | gitlabr_0_7_renaming.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/legacy_headers.R
\docType{data}
\name{gitlabr_0_7_renaming}
\alias{gitlabr_0_7_renaming}
\title{renamings from gitlabr version 0.6.4 to 0.7}
\format{A data frame with 33 rows and 2 variables}
\description{
List of of old and new function name... |
336197ff7bc7922cc2f7ba54a1951d76708d1714 | f6150b8fe6f9dc44be22cd470969afacb44efe51 | /figs/flavorsMS/mv_spam_coefs.r | 34df250f382e46de1baf94931ce005409a1e461a | [] | no_license | qdread/nasabio | 83e83a4d0e64fc427efa7452033eb434add9b6ee | 7c94ce512ae6349d84cb3573c15be2f815c5758d | refs/heads/master | 2021-01-20T02:02:53.514053 | 2019-12-28T15:22:53 | 2019-12-28T15:22:53 | 82,062,690 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 21,003 | r | mv_spam_coefs.r | # Fixed effect coefficient plots from spatial mixed models (multivariate version)
# QDR/NASABioxgeo/28 May 2018
### THESE ARE THE ACTUAL PUBLICATION FIGURES FOR THE "FLAVORS" MANUSCRIPT!
# Modified 24 Dec 2019: make figures legible in grayscale.
# Modified 20 Dec 2019: also output PDFs
# Modified 08 May 2019: add WAI... |
790273e99b84b64e4d15c88b4dbb1d1539574d89 | cef3b5e2588a7377281a8f627a552350059ca68b | /paws/man/connect_describe_quick_connect.Rd | 078ea61171ca3da3b6f4e6168619e3acc9654265 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sanchezvivi/paws | b1dc786a9229e0105f0f128d5516c46673cb1cb5 | 2f5d3f15bf991dcaa6a4870ed314eb7c4b096d05 | refs/heads/main | 2023-02-16T11:18:31.772786 | 2021-01-17T23:50:41 | 2021-01-17T23:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 761 | rd | connect_describe_quick_connect.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/connect_operations.R
\name{connect_describe_quick_connect}
\alias{connect_describe_quick_connect}
\title{This API is in preview release for Amazon Connect and is subject to
change}
\usage{
connect_describe_quick_connect(InstanceId, QuickConne... |
521309f741a22f0d9ef892d16957f2bbf4c4aa42 | e6e19f449aee70d3dbb56ac405ba657cb602cc1e | /_build/jupyter_execute/RL_implementacion.r | b7bfce989164f5b548935accec850530dd94f726 | [] | no_license | david-dlta/libroBasicosML | ec2217eb94c7057e28ed97dc65a34bd219fab786 | 89bca2dd2cbb5601c0a4a3cfb973e62b3e0c05e7 | refs/heads/master | 2023-01-20T00:48:23.018369 | 2020-11-19T19:03:34 | 2020-11-19T19:03:34 | 309,460,050 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 91 | r | RL_implementacion.r | #Paquetes necesarios
head(mtcars,10)
RegresionLinealFit <- function() {
return()
}
|
bfa6279e3074c73b27431980a9393e39b6447c52 | 57a791c35698e39313c97598d7d528843a0b0f1f | /02-event-studies.R | 1bde0f89b6bb6fb35b4eb8871ed18d731c044825 | [] | no_license | arnsbarger/opioid-mine-proj | 87d290723c551c382c36ba87ef80e2f4c1278cf3 | b4385c7b12606243d07a4987ee6df7555cd83ccf | refs/heads/master | 2023-08-04T15:47:32.994278 | 2021-09-17T17:22:25 | 2021-09-17T17:22:25 | 235,850,624 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 257 | r | 02-event-studies.R | library(eventstudies)
# https://r-forge.r-project.org/scm/viewvc.php/*checkout*/pkg/vignettes/eventstudies.Rnw?revision=339&root=eventstudies
# have a clean data script and source it here...
# for now, I'm picking up at the end of 01-randomness-tables.R
|
782ec956de61d2289761169944eb0bef0ea24fd6 | 4abb96d54155309109db47b9b39e183484999864 | /runStanModel.R | 668dbf2ea88fbfa4c571d07ea2fa0d122e1cfae2 | [] | no_license | diogro/arabidopsis_gmatrix | 210926d8b8a69b54b2e56dc33b883e6544e7b630 | c2856b82581694fe55bdee8886cf2ead94bc43d5 | refs/heads/master | 2021-01-23T22:53:27.578931 | 2020-10-22T13:35:44 | 2020-10-22T13:35:44 | 20,691,702 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,338 | r | runStanModel.R | library(ggplot2)
library(reshape2)
library(plyr)
library(dplyr)
library(lme4)
library(rstan)
library(gridExtra)
library(gtools)
library(glmer2stan)
library(MCMCglmm)
raw_arabi_data <- read.csv2("./raw_data.csv")
arabi_data <- select(raw_arabi_data, ID, RIL, Block, Partner, HEIGHT, WEIGHT, SILIQUEN, NODEN, BOLT3)
names... |
62660ecee914b33e598f626e98aa3dcecdb95ff1 | cec0ceec4b86c70ea2ee6253200aa609db0395f2 | /debug_runner.R | 8766480088b682c31c388dfff31c388453520edd | [] | no_license | TheHuessy/Viewer | a8aed038742de0a3a6bcc8bd0359deebcaecee69 | ab9854a54ca5f177380ed29af37225f574512794 | refs/heads/master | 2023-04-24T12:04:01.433663 | 2021-05-17T20:19:14 | 2021-05-17T20:19:14 | 295,907,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 527 | r | debug_runner.R | library(shiny)
options(shiny.host = "192.168.0.113")
options(shiny.port = 6519)
# Adjust the path to match where the server file is.
# It looks like it starts the kernel in Documents on this machine when running Rstudio
#runApp('Jupyter Notebooks/Mobile Culler/Swiper')
# Running the runner as a standalone... |
5d22ee2c28ce5c3ea736d1b733cec6777abac88f | 154e28504bee14a1f994b52c989715771611bc61 | /01-preprocessing.R | 7c46c495e093986889f95d07963dfd86ccef2763 | [] | no_license | dfalbel/deep-autoencoder-netflix | 0fd88bcb288ba6a5853cc26d9e48e688c96a4138 | 936def06a86d08048eb79574e83f8c7a9dae9d96 | refs/heads/master | 2021-09-11T12:31:00.796247 | 2018-04-06T20:51:08 | 2018-04-06T20:51:08 | 119,589,441 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,255 | r | 01-preprocessing.R | library(readr)
library(purrr)
library(lubridate)
library(dplyr)
library(Matrix)
# Untar dataset -----------------------------------------------------------
# untar("nf_prize_dataset.tar.gz", exdir = "data-raw")
# untar("data-raw/download/training_set.tar", exdir = "data-raw")
# Files --------------------------------... |
95f3cc7c30b2a41c59ec9d2d881afc73d41c4fcb | c87f87a4956b76fadf40374c9da3d0aba93fe6d4 | /R/update_relevants.R | 44ce4680fe28d917bd61f0c48b6b46771a61342d | [] | no_license | zackarno/kobold | 20c012fb8595726ad8b1ab2a2aad827de781715f | 9bb0a93e1f4853fb6038e0b9d25cfdaedf4d7c26 | refs/heads/master | 2021-07-11T20:23:00.993698 | 2021-03-04T13:33:42 | 2021-03-04T13:33:42 | 236,489,190 | 2 | 0 | null | 2020-01-27T12:48:06 | 2020-01-27T12:48:05 | null | UTF-8 | R | false | false | 6,843 | r | update_relevants.R | #' Update relevant logic referencing a different sheet
#'
#' @importFrom glue glue glue_collapse
#' @importFrom dplyr filter select matches mutate
#' @importFrom rlang sym !! := is_empty
#' @importFrom stringr str_detect
#'
#' @noRd
separate_relevants <- function(rel_sheet, var_sheet, q_name, relevant, env) {
select_... |
d760d886a893da889310d57e880ac169dd92bb91 | bbbc74bb47beeb260b9a7b2e6f3307a4ccaccaa6 | /others/SDM/landraces_classification/classification_algorithms/explore_and_classify_occurrence_data_statistical_approach.R | 18c9c1da307b8d8140d14bb23ceb40f3d93cece6 | [] | no_license | CIAT-DAPA/gap_analysis_landraces | a534c92478fba0174be2c0821dd4c1e5b90dc4d7 | 19d6ca622cf4c5d93c2e895074aed7e86d541746 | refs/heads/master | 2021-11-10T17:02:09.417139 | 2021-11-02T14:42:33 | 2021-11-02T14:42:33 | 95,039,342 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 43,269 | r | explore_and_classify_occurrence_data_statistical_approach.R | # Explore and classify occurrence data
# A. Mendez & H. Achicanoy
# CIAT, 2017
# R options
options(warn = -1); options(scipen = 999); g <- gc(reset = T); rm(list = ls())
OSys <- Sys.info()[1]
OSysPath <- switch(OSys, "Linux" = "/mnt", "Windows" = "//dapadfs")
root <- switch(OSys, "Linux" = "/mnt/workspace_cluster... |
3d7e124c1591643aaa93ca4dc6bbb60f4b630acc | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ddpcr/examples/reset.Rd.R | ed3395a50d00c0ff35d4ecc31796579e51d494fe | [] | 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 | 270 | r | reset.Rd.R | library(ddpcr)
### Name: reset
### Title: Reset a plate
### Aliases: reset
### ** Examples
## Not run:
##D plate <- new_plate(sample_data_dir(), type = plate_types$custom_thresholds)
##D plate <- reset(plate, type=plate_types$fam_positive_pnpp)
## End(Not run)
|
b5c2b2eaca3966726c81c26b541c0dead2fcd76f | 1a62112ebb392399e96157a1f27d92a6179b208d | /man/eq_create_label.Rd | 086498176963f15f6d4ec68ccea37a7429583326 | [] | no_license | jianweilu/mycapstone | 1e473e55b2483ac103def004fdafff3ba7156889 | 554153b8cf8dc0fd4335eb35688d683aba63cd11 | refs/heads/master | 2023-03-26T11:11:31.313564 | 2021-03-23T03:42:19 | 2021-03-23T03:42:19 | 350,567,769 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 898 | rd | eq_create_label.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/1capstoneproject2.R
\name{eq_create_label}
\alias{eq_create_label}
\title{Creates pop up text for markers.
generates HTML formatted text for popups for map markers.}
\usage{
eq_create_label(eq_clean = NULL)
}
\arguments{
\item{eq_clean}{The c... |
04ef30e3f48004c71c99a5ebad928e8bb75e565a | 79a6beed8e70869b1053cdf85fc13c50c58ffe7e | /MLSplayers-dirty/cluster-MLS-players-diana2.R | 6c65cf357fa9897145e0d76c74c1e3a2cf84d365 | [] | no_license | mimburgi/SoccerStuff | 07cfe200f056d9257d28a2735d68f8ccd6573808 | 5c50a239f4b7f58be7cd0837a378d8e852d2cbee | refs/heads/master | 2022-11-27T21:29:17.312796 | 2020-08-05T01:57:04 | 2020-08-05T01:57:04 | 281,275,496 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,235 | r | cluster-MLS-players-diana2.R | library(dplyr)
library(ggplot2)
source('soccer_util_fxns.R')
library(caret)
## data read in and preproc ####
chain<-read.csv('./2019/ASA_PlayerxGChain_per96table.csv', stringsAsFactors = F)
A3pass<-read.csv('./2019/ASApassingtable-attackthird.csv', stringsAsFactors = F)
M3pass<-read.csv('./2019/ASApassingtable-midd... |
10c5d8d1d8c6d0e98727c840dd3c48ed03779608 | 68ff38466550b1c1938d949e444a0603a18bf853 | /R/to_lang2.R | 7f824a11c7ada578376279fb5e5da77a0e389a6a | [
"MIT"
] | permissive | zumbov2/deeplr | 4ca3fec34999cce718a2e7f53e956bce8e4b3adf | b9206467e7b0a116b29476107bddcb84215c4de2 | refs/heads/master | 2022-12-21T06:45:38.311513 | 2022-12-19T20:11:37 | 2022-12-19T20:11:37 | 134,332,386 | 24 | 5 | null | 2022-12-19T20:11:38 | 2018-05-21T22:39:57 | R | UTF-8 | R | false | false | 24,825 | r | to_lang2.R | #' Translate texts into English using DeepL API Free
#'
#' \code{toEnglish2} translates a text from an available language into English
#' using DeepL API Free. Use \code{available_languages2} to list all supported languages.
#' An authentication key is required to use this service. With the DeepL API Free packa... |
4023dcbb9d19583b7e1083b5f023ba751692f91c | a89dd7bfee6da1f2192d33e9bc3903feee601fa8 | /Project2_004773895_404753334_704775693 (1)/code/q7.R | 1a02b9b33e48c1a4de80151faec7ff23ef2fdae8 | [] | no_license | jameszrx/EE232E-Network-and-Flows | 1e2c7aa3e6d47857a832b89f036f0b8e9ab60bf1 | 995098166614a5e565aeb63d3b49b4125d044ecf | refs/heads/master | 2020-09-19T18:08:58.969016 | 2017-06-16T02:29:15 | 2017-06-16T02:29:15 | 94,496,055 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,745 | r | q7.R | library(igraph)
library(stringr)
library(data.table)
library(plyr)
print("start reading data")
edges_list <- fread(input="C:/Users/James/Desktop/EE232/Project_2/edge_list_file_15actor_singletab.txt", sep = "\t", header = FALSE)
print("start constructing network")
movie_network <- graph.data.frame(edges_list, direct... |
f168cacccb156eab008f9f095a1258094d158a92 | 19e775dd94828a0323ecae33983f9066bc2f20bb | /barchart_backtest.R | 3945a3cf72190eca0fee73072bdc993be93d2654 | [] | no_license | connerpharmd/Test_fin_stuff | 69f5aec903449d44ba8b6b50297e064cdcaf34d3 | 19f5a62568620711fb84cdc09bb86f89ee44b8b8 | refs/heads/master | 2020-06-10T06:27:32.615068 | 2019-06-25T04:37:18 | 2019-06-25T04:37:18 | 193,607,960 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,400 | r | barchart_backtest.R | ##
##
##
require(quantmod)
require(jsonlite)
require(data.table)
fmt.doll <- function(x){
paste("$", format(round(x, 2) , big.mark = ",", scientific = F ), sep="")
}
source.file.dir <- "home"
##
## NOTE:
## sometimes you have to change name.index to "stocks-options..."
## other tiumes "options..." works fin... |
2a1365fcdca4a622901b1c138a71c1a965128a9f | a8ab4bfe4a9473f73ab7864ac98b625989dbb3b3 | /man/IQR.Rd | 45b4fbc96e56e68ea2ea29e89288c1553ab9d0cd | [] | no_license | WeigeHuangEcon/ccfa | 05955111940c0d59a6224c65efa80d261edb04fe | bf88d858e605e373b883a146cf05e1ad3dc292da | refs/heads/master | 2021-06-04T19:03:31.679532 | 2020-12-14T18:57:35 | 2020-12-14T18:57:35 | 96,262,831 | 9 | 0 | null | null | null | null | UTF-8 | R | false | true | 345 | rd | IQR.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper-functions.R
\name{IQR}
\alias{IQR}
\title{IQR}
\usage{
IQR(edf, t1, t2)
}
\arguments{
\item{edf}{an ecdf}
\item{t1}{upper quantile}
\item{t2}{lower quantile}
}
\value{
scalar interquantile range
}
\description{
compute interquantile ... |
bdd69d96254a18f001d8416f7f1cbeeb5ac885e3 | 806ca2e424e11a5b7eab6c947fc47b5aee8a6c84 | /R/tsdb.R | 5960de398399abfd6190e220ade1650926bd2a1a | [] | no_license | dfyj/wm | cefcb9f3c11bd37bef69e4a9e2a24b93f180bb60 | ecf27eb4349400717a8fdee16754c253c8543ec7 | refs/heads/master | 2020-03-24T22:34:01.845300 | 2019-01-26T04:02:12 | 2019-01-26T04:02:12 | 143,091,352 | 0 | 2 | null | 2018-08-01T02:52:48 | 2018-08-01T02:04:38 | R | UTF-8 | R | false | false | 1,700 | r | tsdb.R | .tsdb_root <- function(){
'C:/db/tsdb'
}
#' Parse Tsdb symbol
#'
#' @return c(db, dir, name) for valid symbol, NA otherwise
#'
#' @examples
#' symbol <- 'eq_000300.SH@@close'
#' .tsdb_parse_symbol(symbol)
.tsdb_parse_symbol <- function(symbol) {
m <- stringr::str_match(symbol, '([a-zA-Z0-9]+)_(.+)@(.+)')
if (is... |
4b4a94d1e04556e54d29319ac55dd2c1f6c1da0e | af1dcafc1ba3cdc3bfeff520177dfa84f337d6d0 | /Charpter_16.R | 66ff98409f5282197be96717ea4a98e3aaaa1186 | [] | no_license | JiahaoWongg/-R-in-Action- | aa4b89e45ab8639ff8dc0c9d96ba4f699a928503 | 0037a1b257e7cabf1d7c29c6817f8557274bd0fc | refs/heads/master | 2020-12-11T12:30:48.035045 | 2020-01-14T13:52:45 | 2020-01-14T13:52:45 | 233,850,436 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,293 | r | Charpter_16.R | install.packages("cluster")
install.packages("NbClust")
install.packages("flexclust")
install.packages("fMultivar")
install.packages("rattle")
library("ggplot2")
library("cluster")
library("NbClust")
library("flexclust")
library("fMultivar")
library("rattle")
library("ggplot2")
data(nutrient, package="flexclust")
hea... |
95c6178c4918461fadfd48e5c8337329bbcc1fdd | c3dcc9c43c5868ca272a93839a08f80c316820eb | /man/formatOutputData.Rd | eccb440a7bf797f49784200df6d48772278a8e24 | [
"Apache-2.0"
] | permissive | gregorbj/FSDM | 46df63010dc7a9514a8e7d0ff37edb3404e716e4 | 63f8c517e8b931fcb0d45f3e4b01ae6f16dbefdc | refs/heads/master | 2021-06-03T14:19:26.172954 | 2021-05-21T17:30:26 | 2021-05-21T17:30:26 | 70,544,520 | 5 | 3 | Apache-2.0 | 2021-02-11T21:55:29 | 2016-10-11T01:39:44 | R | UTF-8 | R | false | true | 1,057 | rd | formatOutputData.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fsdm.R
\name{formatOutputData}
\alias{formatOutputData}
\title{Create data frame of selected scenarios and concepts to plot and save}
\usage{
formatOutputData(ModelDir, ModelName, Sc, Vn)
}
\arguments{
\item{ModelDir}{a string identifying the... |
424747fde65ecdc0b5a0b8c005ba68ceb61bff95 | b5527e19861d9118617b1b5b9f0f44d0ee615dd8 | /tests/testthat/test-recom.R | b8310e40707560a4cbe0b9abde83f894992664b0 | [] | no_license | tedconf/recommenderlab | 1deaafd1b541a8a142ff683c5a42961a4938e66c | 17f620efbaf97ef0bda44076ed660004529358c7 | refs/heads/master | 2022-04-08T21:47:14.486739 | 2019-12-17T19:29:40 | 2019-12-17T19:29:40 | 109,738,323 | 1 | 0 | null | 2017-11-06T19:48:03 | 2017-11-06T19:14:40 | R | UTF-8 | R | false | false | 2,594 | r | test-recom.R | library("testthat")
library("recommenderlab")
data("MovieLense")
### test all real rating recommenders
methods <- unique(sapply(recommenderRegistry$get_entries(
dataType="realRatingMatrix"), "[[", "method"))
MovieLense100 <- MovieLense[rowCounts(MovieLense) > 100,]
MovieLense100 <- MovieLense[, colCounts(MovieLen... |
d1c281b1263da5ead49fa155d83fd71b7c5a1026 | ebc224256513e968a325510648cf415004044822 | /R/ex_node.R | 4c90e8c9b394d8d37f8ef5fcfdf04a350658b6e7 | [] | no_license | cran/halfcircle | a118e3513c4ed9ef105eaf765e2b22096eb5aae3 | cc8c312e8e9dc36acd7c88e768249f7cf5433475 | refs/heads/master | 2020-04-04T11:53:46.872315 | 2018-11-02T17:30:11 | 2018-11-02T17:30:11 | 155,907,036 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 757 | r | ex_node.R | #' country attributes
#'
#' A dataset containing 154 countries who participate in the trade and related attributes.
#'
#' @format A data frame with 154 rows and 8 variables:
#' \describe{
#' \item{country}{name of exporting country}
#' \item{x}{longitude of the center of a country}
#' \item{y}{latitude of... |
3be64e40a7a5261bd7e6e32314919f1bc94ec681 | 4ef1abc89cd63293ad7da8c799492aff5ae5a666 | /man/addBarcodes.Rd | 12bafbf95fed88c900b3b7ed95126e8eeaa8bcc4 | [
"MIT"
] | permissive | bengalengel/OmicNavigator | 07ae25f23b8162e3fdee9b7b6cad7f84b4190e32 | 2edaf7204afe9d37467be474ef39ed40ca2d393f | refs/heads/main | 2023-04-17T22:53:51.470685 | 2021-04-26T14:51:43 | 2021-04-26T14:51:43 | 348,800,839 | 0 | 0 | NOASSERTION | 2021-03-17T17:46:59 | 2021-03-17T17:46:58 | null | UTF-8 | R | false | true | 1,424 | rd | addBarcodes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add.R
\name{addBarcodes}
\alias{addBarcodes}
\title{Add barcode plot metadata}
\usage{
addBarcodes(study, barcodes)
}
\arguments{
\item{study}{An OmicNavigator study created with \code{\link{createStudy}}}
\item{barcodes}{The metadata variab... |
0e5c79253ba929b432e4837b22f7cd9b453791e7 | 3da3895c22be687f0a079877e1c52e9dea283e96 | /R Programming/Week 3/lapply.R | 2f79a21c1b25ef9e8c67b68a7f2b332c8a720a77 | [] | no_license | meethariprasad/Data-Science | b165a04031a5efb266e9e79e0074547e3930e062 | 70abd81773b78bf4e597fb6afd1ed879af5a28d6 | refs/heads/master | 2021-01-17T23:23:09.036056 | 2020-03-30T08:38:30 | 2020-03-30T08:38:30 | 84,219,764 | 0 | 0 | null | 2017-03-07T16:10:42 | 2017-03-07T16:10:42 | null | UTF-8 | R | false | false | 63 | r | lapply.R | library(datasets)
data(iris)
?iris
summary(iris$Sepal.Length)
|
de8c2145a822f1f48bf79d2afcf5fe319836d3e8 | 247106f2776815e5f14d520d2ea822f06490c228 | /R/mnist/hello_keras_mnist.R | 14a7315669e55dab6f47db1ee97330e12c7d8bb5 | [] | no_license | GiulSposito/HelloKeras | 532797320f1e61a2561e009c2b3ed57ee1c6d460 | 3105ff7c15d6c1f7aedacf3d9a034f6d64bdd9a9 | refs/heads/master | 2020-04-13T03:05:58.911956 | 2019-12-04T22:07:03 | 2019-12-04T22:07:03 | 162,921,614 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,444 | r | hello_keras_mnist.R | library(keras)
mnist <- dataset_mnist()
x.train <- mnist$train$x
y.train <- mnist$train$y
x.test <- mnist$test$x
y.test <- mnist$test$y
dim(x.train) <- c(nrow(x.train), 784)
dim(x.test ) <- c(nrow(x.test ), 784)
x.train <- x.train/255
x.test <- x.test/255
y.train <- to_categorical(y.train,10)
y.test <- to_cat... |
d7de9d2ea089c6685b6babcebae26ffef3b76518 | 91a77be68e5ad1aa16e9a2681ba6fb090c118e4d | /R/scores.R | 0140801bd616fbc64e97c20e085610634ed944d1 | [] | no_license | cran/qdap | e42f194e98a38eb02084eb6ac92dd587024b8540 | 5f032a6a8bf41255cd2547b11325ed457a02a72a | refs/heads/master | 2023-05-25T03:10:36.324940 | 2023-05-11T05:10:02 | 2023-05-11T05:10:02 | 17,698,836 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 524 | r | scores.R | #' Generic Scores Method
#'
#' Access the scores dataframes from select qdap outputs.
#'
#' @param x A qdap object (list) with a dataframe of scores (e.g.,
#' \code{\link[qdap]{fry}}, \code{\link[qdap]{formality}}).
#' @param \ldots Arguments passed to scores method of other classes.
#' @export
#' @seealso \code{\li... |
db3c3223cc87653cb309cee8eba52728e9e9cf98 | 37ac6d63b7329dc036eb7cd948f60910ff3bedec | /cachematrix.R | 0f5dc2436108857dc4993b5d9adf061b6e982b4f | [] | no_license | peschleifer/ProgrammingAssignment2 | 7721612b453623ef61d7e8fb7ce84ed2a9cf53bc | 2cf0429a083adda7c2d35a58b3b64d8a47ea1cd3 | refs/heads/master | 2021-01-15T13:14:24.603015 | 2015-04-26T19:40:59 | 2015-04-26T19:40:59 | 34,363,267 | 0 | 0 | null | 2015-04-22T02:11:52 | 2015-04-22T02:11:52 | null | UTF-8 | R | false | false | 1,193 | r | cachematrix.R | ## Creates matrices that are able to cache their own inverse
## and provides a function to calculate the inverse, using the cached inverse when it is valid
## Creates a 'special' matrix that can cache its inverse (can be extended to other operations)
## Creates the functions used for this special matrix
makeCacheMatri... |
69797cdc8f903b00c5a9b6ac3b5c7281e366125c | 3005450e4faa88b0b364da0e4e6f101cd59d5d1a | /man/nirm_ms.Rd | 9c226972c7327ca46b78df27cec15fd72e6f9b40 | [] | no_license | kentjin97/nirm | 11c791599ca0bf48dc827c45e37b8b7a5717ae7c | 14e33a5fec225c7f05c8271597911edba014cca9 | refs/heads/master | 2020-04-06T08:08:50.841624 | 2018-11-13T00:30:37 | 2018-11-13T00:30:37 | 157,296,560 | 2 | 2 | null | null | null | null | UTF-8 | R | false | true | 507 | rd | nirm_ms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nirm_ms.R
\name{nirm_ms}
\alias{nirm_ms}
\title{title}
\usage{
nirm_ms(dataset, nsample, nitem, ndim = 2, nset, nsamp_max, nitem_max,
ntotal_max, niter = 30000, nburn = 5000, nthin = 5, nprint = 100,
jump_beta = 0.2, jump_theta = 1, jump_... |
0c59b8cf9e836f94acc32aa508db94926cb9a405 | 8f8d7c9f128841985bba9f7ecf4b57cc853ec410 | /Tutorial 1/ex1.R | c06051b623ed5a6b5457b77997269c55f8cddbad | [] | no_license | oshadhi-vanodhya/Business-Intelligence | cd632c977e46eb728a6685c7092b754a12eab6d0 | be47e630bb9d6e95b08f86ce01d889c8c0d8e35f | refs/heads/master | 2020-08-07T00:08:47.652268 | 2019-10-06T17:51:45 | 2019-10-06T17:51:45 | 213,213,578 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 218 | r | ex1.R | x = 5
y <- 10
15 -> z
a = x + y
b = x - y
c = x / y
d = x * y
2^3
a = 22 %% 7
a = 20 %% 3
a = 27 %/% 3
a = 22 %/% 3
flag = x > y
flag
x = 1 : 10
x [5]
x = 101 : 110
x[6]
y %in% x
102 %in% x
my_list = c(4,3,4,56,78,100) |
a5bfe0459961c5fe2a8b051c52c14930655c7da6 | 02754f51d7970c6c76097084e8fa1a75bd7bf8dc | /week2a-svm/example1-func.R | 959ddd2c03f95c11a90d3587f9ced2c59ad3a790 | [] | no_license | tutrunghieu/html2015b | eea165eaddc2953ae7097446c393e5433307febd | 10e0933d4d5d7b5fd5a4348ac90929eb3ffbad85 | refs/heads/master | 2016-09-03T07:01:02.903848 | 2015-10-17T15:11:01 | 2015-10-17T15:11:01 | 42,796,729 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 850 | r | example1-func.R | rm(list = ls()); # to remove variable
library(caret); # for machine learning
library(e1071); # to use svm
data(iris); #to load dataset
# print( iris ); # to print the data table
print( head(iris) ); # to print just first rows of the data table
print( iris[5:15, ] ); # to print just selected rows of the table
D <... |
8a7559db55152b7d8488be8bf2476e23aaa7656d | 241555f63dd8a2d315b9efe0d1dcb2f031263b9a | /decisiontree.R | 2add15c45bac3ddb31c687a3d3a25516a5bc4307 | [] | no_license | saikiran2893/Datascience- | 0c72ff4b87fe811cd98709dcb6ac7b94f198911f | 1513cc814d96c2ce13b5d7fb24cf90d4474f87ca | refs/heads/master | 2021-03-22T04:08:59.455230 | 2018-02-08T15:39:50 | 2018-02-08T15:39:50 | 120,771,361 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,611 | r | decisiontree.R | setwd("G:/R_Training/DEcision Tree")
getwd()
credit <- read.csv("credit.csv",stringsAsFactors = TRUE)
View(credit)
str(credit)
##table command used to check the number of occurances
##to explaore categorical variable
table(credit$checking_balance)
table(credit$savings_balance)
##to explore numeric ... |
7aa3723fa9290ae67c200ec1668e8504f44dd555 | 4c6865757cb84a64dbb49aad3c4560571de78308 | /tests/testthat/test_createNanoStringSet.R | a2eb8c7ad72dae8343ff4d81c2f90ff870efc3d8 | [] | no_license | Shedimus/NanoStringDiff | c4a1dd448ceb73591268ca8b8c622241641e8935 | a4ceb4e5ba14e004568a65c60daeb01f56e116c9 | refs/heads/master | 2020-09-21T04:38:06.896828 | 2019-12-02T15:31:14 | 2019-12-02T15:31:14 | 224,680,499 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,117 | r | test_createNanoStringSet.R | ## generate count matrix
endogenous = matrix(rpois(100,50),25,4)
sample.names = paste0("Sample",1:4)
colnames(endogenous) = sample.names
positive = matrix(rpois(24,c(128,32,8,2,0.5,0.125)*30),6,4)
colnames(positive) = paste("Sample",1:4)
negative = matrix(rpois(32,10),8,4)
colnames(negative) = sample.names
hous... |
90bfdd927ed2ae9e94ce7ec0328dd41fd2d9a983 | 70affdb293361dc91363a394a09f557a0730b30c | /dataCompareR/man/listObsNotVerbose.Rd | 67f20caf0a9de6531f9a2610763bd762d7934c9d | [
"Apache-2.0"
] | permissive | Lextuga007/dataCompareR | cb1f4885660af97ef9088a4379eafe58ba190dfd | 2824fecd6746b65a44092d2499bdd30e29cceebd | refs/heads/master | 2022-05-07T14:23:18.028950 | 2018-09-07T09:28:41 | 2018-09-07T09:28:41 | 254,414,896 | 1 | 0 | Apache-2.0 | 2020-04-09T15:51:36 | 2020-04-09T15:51:35 | null | UTF-8 | R | false | true | 580 | rd | listObsNotVerbose.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/out_outputStructureFunctions.R
\name{listObsNotVerbose}
\alias{listObsNotVerbose}
\title{listObsNotVerbose}
\usage{
listObsNotVerbose(i, x, uniquevarlist, nObs)
}
\arguments{
\item{i}{The position of the element we want to compare}
\item{x}{... |
0ecd840ccae47711ff7980d3cad853ce63d55836 | 11b95acbf2553de662c028a9de2b019e423d1055 | /HMG_Analysis/gene_counts_ggtree_barplt.R | 4e697fa51dd8018230774838a16ab7395e8d2c6a | [] | no_license | stajichlab/Chytrid_Coelomomyces_Project | 91b9779355e841525a511224dddcef794b08c649 | 44e8d1d5db60300c47f1e8edbc2a197d8ce477db | refs/heads/main | 2023-04-27T17:33:23.066860 | 2023-04-19T21:36:01 | 2023-04-19T21:36:01 | 386,721,342 | 1 | 2 | null | 2023-01-13T04:32:47 | 2021-07-16T17:52:06 | HTML | UTF-8 | R | false | false | 2,056 | r | gene_counts_ggtree_barplt.R | ##################
library(dplyr)
library(rvcheck)
library(ggplot2)
library(ggtree)
library(treeio)
library(ggstance)
library(ggtreeExtra)
library(RColorBrewer)
geneCopies <- read.table("Chytrid_gene_counts.csv", header=TRUE, sep=",", row.names = NULL)
geneCopies
tip_metadata <- read.table("Chytrid_metadata.tab", sep... |
303cbddeca375242ee0d897a8fcfb6f57e4b9978 | 8a32ea28dc84c6423221dc0d3d2d44dc38d05cfa | /R/readUniProtExport.R | 110593c13db44944e6ae55fe212b18304d9e9110 | [] | no_license | cran/wrProteo | d5932a2f48d8e1ff0397691b0e8027ca360b9b7f | 348376e6931d279200da2cc1ed85f8c57ec516f4 | refs/heads/master | 2023-09-05T12:04:30.055590 | 2023-08-18T10:10:02 | 2023-08-18T11:31:04 | 236,959,541 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,614 | r | readUniProtExport.R | #' Read protein annotation as exported from UniProt batch-conversion
#'
#' This function allows reading and importing protein-ID conversion results from \href{https://www.uniprot.org/uploadlists/}{UniProt}.
#' To do so, first copy/paste your query IDs into \href{https://www.uniprot.org/uploadlists/}{UniProt} 'Retrie... |
666ea8bd8204911432d776ba8faad579451c8879 | a9a30dd73cbcea225106545d0d3a06b3d6f0d8f0 | /inst/tests/test-getthetapermute.r | 74447113216f403a73f610b725b5130ddc7093fb | [] | no_license | HopkinsIDD/IDSpatialStats | c5eff56b3b0f861ee1e29ee14aec760b05d1bfa3 | cf8c0602c6af4b471cbd60441237cb1f6acee27d | refs/heads/master | 2022-01-01T07:16:19.928915 | 2021-08-07T19:05:42 | 2021-08-07T19:05:42 | 17,963,841 | 4 | 9 | null | 2023-09-08T14:48:47 | 2014-03-21T00:59:32 | R | UTF-8 | R | false | false | 2,083 | r | test-getthetapermute.r | context("get.theta.permute")
test_that("get.theta.permute returns appropriate values for test case 1 (equilateral triangle)" ,{
x <- rbind(c(1,0,0), c(1,1,0),c(2,.5,sqrt(.75)))
colnames(x) <-c("type","x","y")
test <- function(a,b) {
if (a[1] != 1) return(3)
if (b[1] == 2) return(1)
... |
cc5f6506d0814e90416485be57015046dc868b0b | ccfa45fedfb7a39cc24864a5356be438c6e3dddb | /R/user_info_out.R | a1ec72d4f043a7a820e7b6aaa373db02a97b19a5 | [] | no_license | wing328/namsor-r-client | b0c66151f620736f8aa69fa8921d2e3be2264e6e | 3f950cf980ded7a5997f2429cbe82468cd2de8a5 | refs/heads/master | 2020-04-22T14:51:04.232759 | 2019-02-15T13:06:16 | 2019-02-15T13:06:16 | 170,458,537 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,721 | r | user_info_out.R | # NamSor API v2
#
# NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many m... |
742e6d4d4d9d40c4af9fce564eee6b86409e7c50 | c13ce1d62b066f4180b0a4b5c4db6a068eae079f | /man/parse_surface.Rd | ed0eb5e7940ff6f43bf2e5c611a67c3e25952358 | [] | no_license | muschellij2/cifti | 9aa5c0ef0edeafd1a2688166dfc99a8b0e9f661e | 84b7947310dd5657dd22b809ca838e876f03673b | refs/heads/master | 2020-12-24T11:53:10.701313 | 2020-08-10T16:06:53 | 2020-08-10T16:06:53 | 73,105,792 | 4 | 7 | null | 2020-07-20T12:35:01 | 2016-11-07T17:57:04 | R | UTF-8 | R | false | true | 685 | rd | parse_surface.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse_surface.R
\name{parse_surface}
\alias{parse_surface}
\alias{get_surface}
\title{Parse Surface from CIFTI}
\usage{
parse_surface(nodeset)
get_surface(fname, verbose = TRUE)
}
\arguments{
\item{nodeset}{Set of XML nodes corresponding to ... |
60d34f99d7fa6e3333ad01b9816f0f988b15807a | 4fce29de32f8f7c10321b2de3bc22a214449e3e5 | /tests/testthat/test-estim_tmle_os.R | ed83dfb200c74ddd0baf5ffcf643b4de24569324 | [
"MIT"
] | permissive | ehsanx/txshift | c690b3b2915d5195f94d8f90dffea28c34014e68 | 1622c808291033a73280c42688ee53faa35e5f1c | refs/heads/master | 2023-02-20T12:58:16.095639 | 2021-01-22T22:54:31 | 2021-01-22T22:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,136 | r | test-estim_tmle_os.R | context("One-step and TML estimators produce similar results")
library(data.table)
library(rlang)
set.seed(172943)
if (require("sl3")) {
# Example based on the data-generating mechanism presented in the simulation
n <- 100
W <- data.frame(W1 = runif(n), W2 = rbinom(n, 1, 0.7))
A <- rpois(n, lambda = exp(3 + .3... |
45af47800ef125143d38e30b0cb1d96008564544 | 6f3bf762c79e6db1434dc67ecbd03abe15ab5752 | /code/ts.R | b9f475f492bd4cb1823a4da24460c04edad3c858 | [] | no_license | Sommerzzz/yelp_star | b570908a7c3c405323808944a976e522e74c8570 | 9b012c89eada1539b3f71d89528784e6d36fa5de | refs/heads/master | 2021-04-03T06:29:49.308103 | 2018-03-12T04:44:28 | 2018-03-12T04:44:28 | 124,795,356 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,841 | r | ts.R | library(plyr)
library(dplyr)
library(readr)
library(SenSrivastava)
library(ggplot2)
library(ggmap)
library(hexbin)
library(data.table)
library(choroplethrMaps)
library(choroplethr)
library(mapproj)
library(tidyr)
library(lubridate)
library(nycflights13)
library(stringr)
library(TSA)
library(forecast)
library(ModelMetri... |
bebf61d1b86dcf49be062d79f7a31b5d22dd25e9 | 3d4e617dc530679024c97ad61c4d7445e7eb0932 | /01_Model.R | dee7f62f2389971947e3fce8c41d36d2bb7c31c1 | [] | no_license | rwilkes1/COMPEAT | 1e393d9fb0bf4d24e93d013fe6a0a8247faa73dd | 0727110042b46bb6bf6b5eacf76efcabeb9e89be | refs/heads/master | 2021-02-03T22:03:02.758594 | 2020-02-26T14:28:07 | 2020-02-26T14:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,832 | r | 01_Model.R | # Install and load R packages ---------------------------------------------
#
# Check to see if packages are installed. Install them if they are not, then load them into the R session.
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(ne... |
d6327616cb55ba0c74668c392139f0741d65355d | aba0008e63f77b56c8d437faa3d77677e5c8aa69 | /0-easy/split_the_number.R | 78f709f5c3e99943b20030f3a7c9cddbd21d62cc | [] | no_license | OehlR/codeeval | d690a11a5a1c2a5bbfaebd607452c953f78706a8 | b269b99d1d639ec17688dd9f7e66e23e6711fc67 | refs/heads/master | 2021-05-02T08:58:46.005968 | 2017-11-03T22:25:12 | 2017-11-03T22:25:12 | 28,037,547 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 561 | r | split_the_number.R | args <- commandArgs(trailingOnly=TRUE)
## FOR LOCAL TEST
if(F) {
cat("3413289830 a-bcdefghij\n776 a+bc\n12345 a+bcde\n1232 ab+cd\n90602 a+bcde\n",file=x<-tempfile())
args<-list(x)
#unlink(x)
}
## BEGIN
con <- file(args[[1]], "r")
while(length(l <- readLines(con, n = 1, warn = FALSE)) > 0) {
x <- strsplit(str... |
84c7aa0e284dae776c15be96f6bacb303bb30827 | 3c01db1a4b2f29873dab7ff00919ac529645b848 | /man/vis_som_TopoView.Rd | 422013f258a00be959fa3ac04b83993fb804bdd1 | [] | no_license | somdisco/SOMDisco | 8d48740702069f43260d2ec50595f0854bd9416a | 2e653ab4aa5af6aa2b9c960ea2c5ae4df60a59cc | refs/heads/master | 2022-12-29T03:08:06.403448 | 2020-10-16T16:16:13 | 2020-10-16T16:16:13 | 288,159,407 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,553 | rd | vis_som_TopoView.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis_som.R
\name{vis_som_TopoView}
\alias{vis_som_TopoView}
\title{TopoView Visualization}
\usage{
vis_som_TopoView(
SOM,
ADJ,
add = F,
nu.pch = 16,
nu.cex = 1,
nu.col = "black",
edge.col = "darkorange",
edge.lwd_range = c(1, 5... |
9b13386ef963405600769b0a62f608064d388bf7 | e8db9e50f36055b44668f27fe075df51e647b6f6 | /src/day2-03-vector-plot-shapefiles-custom-legend.R | f9595d2bb04b2dbcae91340c4f18f14740780dcb | [] | no_license | huan7515/BCB503_advanced_geospatial_workshop | cff3346c907cb27e658fee200e95a3b79e8c7dd5 | 4435ce6a85a00b0345432da7f17a62b5a141c707 | refs/heads/main | 2023-04-19T17:47:50.797645 | 2021-04-29T20:49:23 | 2021-04-29T20:49:23 | 354,941,322 | 0 | 0 | null | 2021-04-29T20:49:23 | 2021-04-05T19:00:55 | R | UTF-8 | R | false | false | 7,311 | r | day2-03-vector-plot-shapefiles-custom-legend.R | #Title: day2-03-vector-plot-shapefiles-custom-legend.R
#BCB503 Geospatial Workshop, April 20th, 22nd, 27th, and 29th, 2021
#University of Idaho
#Data Carpentry Advanced Geospatial Analysis
#Instructors: Erich Seamon, University of Idaho - Li Huang, University of Idaho
library(raster)
library(rgdal)
library(ggplot2)
li... |
6ab64e1ccc6c28bf0db7d3a03243f114acb43da3 | addb430906b1bb5f7ce034da99f0f39d7366309a | /plot4.R | 3b2083b737af257a1919353274bca5ca7f0cb1ec | [] | no_license | srenevic/ExData_Plotting1 | 52ec72accafab3a6052a518b2282d038165a182b | 6802e8d885d466c9e1ebde5f0ebc06e9abbc4d7b | refs/heads/master | 2021-01-16T20:33:18.516446 | 2015-03-08T16:48:25 | 2015-03-08T16:48:25 | 31,668,462 | 0 | 0 | null | 2015-03-04T16:57:24 | 2015-03-04T16:57:24 | null | UTF-8 | R | false | false | 1,310 | r | plot4.R | plot4 <- function(data_file) {
data <- read.table(pipe(paste('grep "^[1-2]/2/2007"'," ",data_file)),sep=";",na.strings="?")
names(data) <- unname(unlist(read.table(data_file,nrows=1,sep=";")[1,]))
data$dateTime <- strptime(paste(as.Date(data$Date,"%d/%m/%Y"),data$Time), "%Y-%m-%d %H:%M:%S")
png(file= "plot4.png",w... |
8d892bb44e9f53252ec7c520a2e530255a72b183 | 549315bab20fa1ae03b4f21d72dbd171dce30f18 | /R_in_action/5_advanced_data_management/1.R | 687e847ed29be992796a87ee37df65d6f33109dc | [
"MIT"
] | permissive | HuangStomach/machine-learning | ff94a4aa97f82a61fdbcd854170562a71ad16ffa | 47689469c431e2a833437b38832d3fdceda7b2b2 | refs/heads/main | 2021-08-16T05:37:01.343676 | 2021-08-09T13:09:24 | 2021-08-09T13:09:50 | 178,584,824 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 148 | r | 1.R | x <- c(1, 2, 3, 4, 5, 6, 7, 8)
mean(x)
sd(x)
# ⬇️冗长
n <- length(x)
meanx <- sum(x) / n
css <- sum((x - meanx)^2)
sdx <- sqrt(css / (n - 1)) |
1182dff064023a2c5e556c65e8cc77e299fbace8 | 3bba52743cc37cd587df45d1e3cfb25fde65ce2b | /src/datacleansing/combine.R | 364b94eecf25a779a2011f378dedb42c2eda9b5a | [
"MIT"
] | permissive | kim3-sudo/march_madness_analysis | 5b4229453ccba27e6ce543c19691b2c06d0ab469 | 8d9c0b72f50e3fb1c0a7d8241a82afd4b63639ce | refs/heads/main | 2023-04-08T09:51:18.644655 | 2021-04-21T18:25:31 | 2021-04-21T18:25:31 | 342,004,796 | 0 | 0 | MIT | 2021-03-16T04:01:57 | 2021-02-24T19:01:00 | Python | UTF-8 | R | false | false | 4,397 | r | combine.R | ### March Madness Analysis
### Steven Lucas & Sejin Kim
### STAT 306 S21 @ Kenyon College
# Purpose ----
### This file will grab all of the PBP data from the remote repo
### and create a single R dataset as an export to the directory
### of your choice
# Set your output directory here! ----
outputDir <- "/home/kim3/... |
4e8ff87d88c536cd04e0fe0e6af0103d0e05950d | 815581b69b43ff3caac4f614b2345a044b186e25 | /GettingAndCleaningData/run_analysis.R | 9c64cdd06d28db38987324112fb80f07451e0905 | [] | no_license | gosuchoi/datasciencecoursera | fda1bcbf0efddba86694f1e7d0c0a8c395a8c751 | c2d9815d985c20adcb89d5fa5ed3358728c3f82d | refs/heads/master | 2021-01-23T13:37:10.799280 | 2015-04-26T02:49:03 | 2015-04-26T02:49:03 | 30,798,994 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,162 | r | run_analysis.R | # function : run_analysis
# Author : Wooseog Choi
# Date : 2015. 4. 24
#
# This program is to generate tidy dataset from raw data given by
# the Getting and Cleaning Data class in Coursera.
#
run_analysis<-function()
{
library(dplyr)
feature<-read.table("features.txt")
# Get only mean and s... |
396e6510668d1709a72e8c8278be8f193f5fa43b | 5d335b0908b199e03f88421ec2f72fb0eb5b1e6b | /plot4.R | 7aec7a1e52f0ed1a1c1787cf684cea7814aa1efc | [] | no_license | arun843p/ExData_Plotting1 | f19b12040c5258ff6f29ac5e7546fa9c6d790d68 | cb5e63e0de411f6784fcece48c39e35586b8e7dc | refs/heads/master | 2021-01-18T00:30:03.187068 | 2015-04-12T21:47:04 | 2015-04-12T21:47:04 | 33,519,963 | 0 | 0 | null | 2015-04-07T03:31:12 | 2015-04-07T03:31:10 | null | UTF-8 | R | false | false | 2,469 | r | plot4.R | plot4 <- function() {
##Get Required data for charting
df <- read_req_data()
##Convert Required Chart elements to Numeric class
df$Global_active_power <- as.numeric(df$Global_active_power)
df$Voltage <- as.numeric(df$Voltage)
df$Global_reactive_power <- as.numeri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.