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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
213c5830c10bfd0306d3b0fe3f35f2d72a44d03b | 80f7469eb388ae3ba95b11042dd00ff48d62e424 | /man/trello_get_token.Rd | 7caa7d01c4a20ad08f3343d5b15a4a0db7c983f7 | [] | no_license | vfulco/trelloR | b6bbb505093fb5b6259e3ebdf4982180bc7c6572 | 566e0a3ec1841cee25572452de98d18b98c6cdf9 | refs/heads/master | 2021-05-01T07:54:38.666171 | 2017-01-08T12:28:57 | 2017-01-08T12:28:57 | 79,654,801 | 0 | 0 | null | 2017-01-21T15:43:27 | 2017-01-21T15:43:27 | null | UTF-8 | R | false | true | 1,346 | rd | trello_get_token.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trello_get_token.R
\name{trello_get_token}
\alias{trello_get_token}
\title{Get A Secure Token}
\usage{
trello_get_token(key, secret, appname = "trello")
}
\arguments{
\item{key}{developer key}
\item{secret}{developer secret}
\item{appname}{... |
8f0052542f1e535ec21279a67ea8f7fc6696bbd3 | e0aac8b978f4fe440a62de240b1fcf2bad45f8c4 | /create_shiny_data/01_get-ccbio-quants.R | dee55b01904b25d1123aaa635415152f6c2651f3 | [] | no_license | vanichols/shiny_ryeSalus | 1f73daefa0646444b039319806a595ef5b1d4cb6 | 4371895a3afb981533cbaa029ed3eded1647ba45 | refs/heads/master | 2023-06-27T15:36:20.581873 | 2021-07-22T03:06:20 | 2021-07-22T03:06:20 | 298,075,986 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,407 | r | 01_get-ccbio-quants.R | # Gina, modified the map.R code 9/22/2020
# trying to get Iowa data to make a shiny
# updated 11/2, making it generalizable to state
library(tidyverse)
library(maps)
library(mapdata)
library(magrittr)
# create quantile database ------------------------------------------------
# find 20, 50, and 80% quantiles
#--d... |
0f6c07c88c18fe12146288bfb8cac88da41e77dc | 830b84d4e05be365884585babebc75f206f3f72d | /man/plotTZprofile.Rd | 65a9ca3028544f6c6ae1927a25a25e49358f8c51 | [] | no_license | galuardi/analyzepsat | 439c1e95e767bd0499536d0697ef02e036887579 | bf1332bf5adb4eb91144de1e7c5c0a47c651ad0b | refs/heads/master | 2021-01-17T07:44:22.023727 | 2017-12-08T21:29:16 | 2017-12-08T21:29:16 | 32,556,813 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,220 | rd | plotTZprofile.Rd | \name{plotTZprofile}
\Rdversion{1.1}
\alias{plotTZprofile}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plots the depth and temperature using the depth time series colored by temperature.
}
\description{
Plots the depth and temperature using the depth time series colored by temperature.
This u... |
f27cdaf8175977eaa8a5456ceb0c8a2c7643d94b | a247d7852235013f4733e28da4827bf4ef85de98 | /data-table.r | f2f8703f571cafdf4b7e29ce8feb5f1700377d1a | [
"MIT"
] | permissive | FiaDot/R-usage | da06f1f8d57594dde7404d8cf7890a469da8d721 | 3ad5975499ba463fcdd40f8ab2e7bb1670b5ce33 | refs/heads/master | 2016-09-06T13:22:19.373022 | 2015-09-13T05:47:27 | 2015-09-13T05:47:27 | 42,385,237 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 261 | r | data-table.r |
library(data.table)
library(ggplot2)
library(corrplot)
# install.packages("corrplot")
# install.packages("data.table")
setwd("D:/data")
getwd()
# test code
filename <- "1_result.csv_stat.csv"
d = read.csv(filename)
dt <- data.table(d)
plot(dt)
|
047c1d693e44d0fb9724f21f94c206b15c7431b6 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/df2json/tests/test-all.R | ad81726a82f01996c2b704c3dd186b3726bcfc71 | [] | 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 | 42 | r | test-all.R | library(testthat)
test_package("df2json") |
bfbb9c9a90bd24cedf74bfdeddc9ddcd6471cd22 | 0cf9f5aa0978ac801eb1e4fa5401d6ddf394840f | /R/classes.R | 291d6104fc248cdc2316bd0d63fd5eae462360f8 | [
"MIT"
] | permissive | slopp/caselaw | b4a72b08056060422c18d26c8df480bdc4f3f785 | e1ce00be1ca03a553f31a51c6b8bc978e29f8d0a | refs/heads/master | 2022-12-26T20:17:18.626234 | 2020-10-09T22:03:30 | 2020-10-09T22:03:30 | 276,238,923 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,240 | r | classes.R | #' Class representing the case law API
#'
#' @name caselaw
#'
#' @section Usage:
#' \preformatted{
#' cl <- cl_client$new()
#' }
#'
#' @section Details:
#'
#' This class allows a user to interact with a case law API and provides
#' utility functions for GETs including cursor pagination and
#' the specifics of the case ... |
08697f62f18966b29318347254ddff664e10f925 | 680a5de85b7153b6e3e8ffb0f81cf3f72405aa34 | /main.R | 6642409bd25407e278956788e81b3ea768de3c6e | [] | no_license | TheLeopards/Assignment5 | 29a08508c94b1a2ce58350281fd6d97f47a2b5dc | dd5af90699ee4765f7dbc4bc5b978c888644f4c6 | refs/heads/master | 2021-01-10T15:11:41.037474 | 2016-01-11T08:10:15 | 2016-01-11T08:10:15 | 49,411,639 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,925 | r | main.R | # Author: TheLeopards (samantha Krawczyk, Georgios Anastasiou)
# 8th January 2016
# Pre-processing chain to assess change in NDVI over time
library(sp)
library(raster)
download("https://www.dropbox.com/s/akb9oyye3ee92h3/LT51980241990098-SC20150107121947.tar.gz?dl=0", "landsat5")
download("https://www.dropbox.com/s/i1... |
1b649e09887c52d9d035c02dc0451bc89644f66f | 2aad105780d14d8b0a0764fb0e2d4975e4516a8e | /R/check_iris.R | de1a95f1744b669cd94c4d588d0085a5b75c0253 | [] | no_license | phileas-condemine/comparaison_distanciers | 4d32d1372b79717204dc4b168e70d13dde074f87 | 762606702804c1246b91abcb2e89b833dbb48d9e | refs/heads/master | 2023-07-16T20:48:06.687676 | 2021-08-27T07:59:36 | 2021-08-27T07:59:36 | 198,305,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 691 | r | check_iris.R | library(data.table)
library(readxl)
pop_iris = read_excel("external_data/base-ic-evol-struct-pop-2015.xls",sheet = "IRIS",skip = 5)
pop_iris= data.table(pop_iris)
pop_iris=pop_iris[P15_POP>0,c("P15_F1529","P15_F3044","P15_POP","LIBCOM","IRIS")]
pop_iris[,prop_femme_procreation := (P15_F1529 + P15_F3044)/P15_POP]
ecart... |
c415c4af407832f7a925134d4314270cdd18b042 | 09c6c0f81c427d8ba8deac97ce32197a26a93441 | /unit_2-linear-models-overview/01-overview.R | e8e781fc4d072dd1b4d6ebe25004e94176d38f6b | [] | no_license | wjamesTMC/ds-education-linear_regression | 5b62dc1107abc9c0fdc7fad19a988933de87f909 | ce4e65ab07e17afecb75a6d054e403e859065155 | refs/heads/master | 2020-03-25T03:20:12.835090 | 2018-10-23T11:28:33 | 2018-10-23T11:28:33 | 143,336,211 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,076 | r | 01-overview.R | # --------------------------------------------------------------------------------
#
# Overview
#
# --------------------------------------------------------------------------------
# Linear Models Overview Bookmark this page In the Linear Models section, you
# will learn how to do linear regression.
#
# After completi... |
2bcaee5dfb085f7cee6d488449e7388af6050c11 | 3fa8041faede40a2f0481294a7aa8773bc6e16a9 | /write.R | d76f4955ff121d5730c237eec21bfe0791e45488 | [] | no_license | samssr/daily | 47619ee98d79e544f6f52739234f0b123dfcc4d2 | aa997e4c91c106d76112ff94932c3a7db0d1ce1c | refs/heads/master | 2020-07-05T07:18:43.726933 | 2020-02-20T15:58:39 | 2020-02-20T15:58:39 | 202,568,965 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 141 | r | write.R | library(stringr)
library(dplyr)
dat <- readClipboard()
# dat <- RCurl::base64Encode(dat,mode = "character")
write(dat,file = "./api.txt")
|
8637e9f516e67c4d4aa7ffa17811d5795710048a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/astrolibR/examples/planet_coords.Rd.R | fb70f7c37f44f059a83309088c217104c1a18c35 | [] | 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 | 803 | r | planet_coords.Rd.R | library(astrolibR)
### Name: planet_coords
### Title: Calculate low precision Right Ascension and declination for the
### planets given a date
### Aliases: planet_coords
### Keywords: misc
### ** Examples
# Find the RA, Dec of Venus on 1992 Dec 20
# Result: RA = 21 05 2.66 Dec = -18 51 45.7
planet_coords(c(199... |
52ed127788ac02bdd61dc8bdf56697194aed491a | 918a9b0c0f5fe928eaa42c5287f31e1562de596a | /scripts/viridis.R | 353f65403c0358fe366b3013dd8eb22569a4727e | [] | no_license | Luohuhu/STAT-240 | 47c372e47120d6a81cfa993769f18dd34ac32e64 | 09399f99ba42931c5f49ca2dda77f80e18dc1f1e | refs/heads/main | 2023-08-21T23:12:52.577234 | 2021-10-11T02:05:04 | 2021-10-11T02:05:04 | 414,400,786 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 403 | r | viridis.R | ## reset color defaults
## Source https://data-se.netlify.com/2018/12/12/changing-the-default-color-scheme-in-ggplot2/
library(viridisLite)
#### continuous variables color and fill
options(ggplot2.continuous.colour = "viridis")
options(ggplot2.continuous.fill = "viridis")
#### use viridis for discrete scales
scale_co... |
9f14ed5aaa3c8d25e9cd325f5dbd0f166fdcf8ed | ddbec4e6028dd4799c79dca91f60d2baea132d8e | /datastructure1.R | d1c33b007084f8a40ca37fa32a5d8ff4a255469c | [] | no_license | swarnavanaskar/analytics_1 | d5c271686442b6f066b3b4970ef558ac3d6a1395 | 6feef8c6580922a93277ebc8b9f94c859101600f | refs/heads/master | 2020-04-02T16:33:19.937918 | 2018-10-28T09:25:41 | 2018-10-28T09:25:41 | 154,617,638 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,907 | r | datastructure1.R | # Data Structures in R
#control+enter when you are in the line to execute
# Vectors-----
x=1:10 #create seq of nos from 1 to 10
x
(x1 <- 1:20)
(x1=1:30)
(x2=c(1,2,13,4,5))
class(x2)
(x3=letters[1:10])
class(x3)
LETTERS[1:26]
(x3b = c('a',"SWARNAVA","4"))
class(x3b)
class(x4)
#access elements
(x6 = seq(0,100,by... |
bb1213381aab61cd5e92f629de7b9de1e2c90c8c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/MSnbase/examples/Chromatogram-class.Rd.R | 558c1ffd800d8103d237c6eb49fbc3b59eb7608a | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,487 | r | Chromatogram-class.Rd.R | library(MSnbase)
### Name: Chromatogram-class
### Title: Representation of chromatographic MS data
### Aliases: Chromatogram-class Chromatogram aggregationFun
### show,Chromatogram-method rtime,Chromatogram-method
### intensity,Chromatogram-method mz,Chromatogram-method
### precursorMz,Chromatogram-method fromF... |
9bd3e4f4da3349350cd32d7e04495a758484a302 | fdecc167ccbd9246139243e037f1fe11e5a6c443 | /man/read_lca_parameters_from_xls.Rd | a6405ab87a54ed7bb2fb089dbe70faa218ddb71a | [
"MIT"
] | permissive | zlfccnu/kwb.lca | 254b445e87e3aa2a152aaec5090ddd6a0267fee8 | e15557fb20fc87d11cf654179e47334f11515fd0 | refs/heads/master | 2023-03-15T07:39:26.618806 | 2020-01-10T13:46:41 | 2020-01-10T13:46:41 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 533 | rd | read_lca_parameters_from_xls.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_lca_parameters_from_xls.R
\name{read_lca_parameters_from_xls}
\alias{read_lca_parameters_from_xls}
\title{Read LCA Parameters from an Excel File}
\usage{
read_lca_parameters_from_xls(file, country = "de")
}
\arguments{
\item{file}{path t... |
ad3900f0c3ff3fb18d61567ac6568071a8d09ccc | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/abd/examples/Pseudoscorpions.Rd.R | 6a40519125d849f8e0331ada07cb50ccf778e24e | [] | 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 | 304 | r | Pseudoscorpions.Rd.R | library(abd)
### Name: Pseudoscorpions
### Title: Multiple Mating in Pseudoscorpions
### Aliases: Pseudoscorpions
### Keywords: datasets
### ** Examples
str(Pseudoscorpions)
bwplot(successful.broods ~ treatment, Pseudoscorpions)
aggregate(successful.broods ~ treatment, Pseudoscorpions, favstats)
|
44c8c0f78595e36bf5814a5b6a2493029bfc461c | 92562f35e515ef901dc2623dbee39f7235cd8301 | /R/corrected_z_test.R | b7ff0a6b220551ca023290774bbf5280ec42acac | [
"MIT"
] | permissive | HorridTom/meancomppp | 25faa19a79c61cd3c054d0d2689187f4b79ba852 | 93988af280e563394e9b2599d9a8414b78d17618 | refs/heads/master | 2020-09-14T17:03:46.673845 | 2019-11-21T17:44:12 | 2019-11-21T17:44:12 | 223,194,086 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,170 | r | corrected_z_test.R | #' corrected_z_test
#'
#' @param data partially paired data
#' @param sig_level significance level for the hypothesis test
#'
#' @return list object containing in particular:
#' z_corr, the corrected z statistic for the hypothesis test
#' stat_sig, the result of the hypothesis test
#' @export
#'
#' @examples
#' correct... |
cfd633a4e5570c5b9588f52b3ffddf79410f6e74 | ff2b418f76f82ecdd399951f9750fe3386f834f6 | /week_5/project_1/TFIDF for project1.R | 4c3f3646ff4aaf75d84c1a3b038041ff180b25c7 | [] | no_license | b03602023/1062CSX_project | 545b636331e2038a2df578754f90fe27fecd204e | e42ed5911830b5c1641638998ad9d624f6db0f7c | refs/heads/master | 2021-01-25T10:49:47.428765 | 2018-06-25T02:00:53 | 2018-06-25T02:00:53 | 123,371,347 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,365 | r | TFIDF for project1.R | #------getpost-------
rm(list=ls(all.names=TRUE))
library(httr)
prefex <- "https://graph.facebook.com/v2.10/"
token <- "EAACEdEose0cBABh9UHkbum4Bu2lcd7gZBilEFMofndeV8PNJXkWZCzfFg8GcaukItTvmE9EElr8rWKTyQpbc2DDEjgZAbW6Da0rTxBQ4MSzjSrzagkNT3xJWgnG9iV6ZA2A5ZCzETc3xZCRbZAKqZC0x9uohQTD41n3ZA4M8R2yuNmZBwKwc0tseCYDkmijWLfBL4ZD... |
878774de5c52d335abc0519163002eb55fc7cb93 | 5edf3ebc52f12c8b7ed4dbc1aa5f97a8e8929605 | /models/openml_stock/classification_binaryClass/ca3055556ced97040c944c88d0b2f0ba/code.R | ac8978021d220bbf9b7e59400bf18baa550c5e44 | [] | no_license | lukaszbrzozowski/CaseStudies2019S | 15507fa459f195d485dd8a6cef944a4c073a92b6 | 2e840b9ddcc2ba1784c8aba7f8d2e85f5e503232 | refs/heads/master | 2020-04-24T04:22:28.141582 | 2019-06-12T17:23:17 | 2019-06-12T17:23:17 | 171,700,054 | 1 | 0 | null | 2019-02-20T15:39:02 | 2019-02-20T15:39:02 | null | UTF-8 | R | false | false | 3,156 | r | code.R | #paczki i seed
set.seed(123, "L'Ecuyer")
library(jsonlite)
library(OpenML)
library(farff)
library(digest)
#wczytujemy dataset
dataset<-read_json("dataset.json",simplifyVector = TRUE)
preprocessing<-dataset$variables
dataset$source=="openml"
pattern<-regexec("\\d+$",dataset$url)
ID<-regmatches(dataset$ur... |
0ce1df2caf1faad8afeff5b5f89d8bd71f09bd15 | 2ee316fe8a552c8fd9804200df2cf5a78561f4c6 | /01_Data_Science--R Basics/02_Vectors&Sorting/Exercises/2. Sorting/Exercise 2 - Order.R | 98ecdee6eaacd9fd975e9f03195216c11c57cebb | [] | no_license | vishwasbasotra/Data-Science-Professional-Certificate-by-Harvard-University | 67afe5f44b1f9988eb2809d64c15110ca046d112 | b8483334628695ef6af95e9487e610befc212b3e | refs/heads/master | 2022-09-26T02:25:04.911961 | 2020-06-07T21:02:22 | 2020-06-07T21:02:22 | 260,374,610 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 291 | r | Exercise 2 - Order.R | # Access population from the dataset and store it in pop
pop <- murders$population
"Use the command order to find the vector of indexes that
order 'pop' and store in object 'ord'.
"
ord <- order(pop)
"Find the index number of the entry with the smallest
population size"
which.min(pop)
|
184962562d5d43a93ccf773d856c5b51e59162d3 | 16f75b6adf36d01a8acd35d0626a7ce234b3eb84 | /script/clean_data/02_FIPScode.R | 58148d0490f3ce6858b0467f4f49f346f84f0853 | [] | no_license | amikami102/rainfall_and_voterturnout | 3375124bc7b0a143d6009f727e6b14289f30289f | dd16f909a41c7303dbbae310de7648ccbcf56880 | refs/heads/master | 2020-08-12T07:25:58.531750 | 2019-10-13T03:34:34 | 2019-10-13T03:34:34 | 214,252,274 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,578 | r | 02_FIPScode.R | ####---------------------------
# This script creates a new column called
# "fips_code" for all cces data sets which records
# the 5-digit FIPS code of respondent's state and
# county of residence.
#--------------------------------
# We use 2010 Census to match county
# name to their FIPS code.
#--------------------... |
2ad3d111e4a2278d4562034584e137e3ad4d10da | 8c20cb1afd621c732382ffe50a53b1a978010a42 | /R/simulateAccumulationRate.R | 92534dd14ea7cd7c070e286d822e6a6c33e7ce12 | [] | no_license | BlasBenito/virtualPollen | 01daa3bec05c5caeefa2f52109df8a7df115c0d0 | b33c7929ce802f3764fdcee39a911243984698ee | refs/heads/master | 2022-02-28T17:42:46.520588 | 2022-02-11T17:46:27 | 2022-02-11T17:46:27 | 177,762,046 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,913 | r | simulateAccumulationRate.R | #' Simulates a virtual sediment accumulation rate.
#'
#' @description Generates a virtual sediment accumulation rate to be applied to the results of \code{\link{simulatePopulation}}.
#'
#'
#' @usage simulateAccumulationRate(
#' seed=50,
#' time=1:1000,
#' output.min=10,
#' output.max=40,
#' direction=1,
#' ... |
5f30545c060b550d81fbbebacae467759dd34b28 | 3243f82998ccb54bf721435e5957c35632e1091b | /cachematrix.R | 212ad0e8fe1f231a88b351a3c69405a22c002604 | [] | no_license | Daisybeth/datasciencecoursera | f3b1e61b61ba08d4da63f5d3e823e5bd7aff5718 | 14ca871687ed93d1387f9dc16cb321c48b307155 | refs/heads/master | 2020-12-02T08:54:10.785979 | 2020-01-09T16:17:50 | 2020-01-09T16:17:50 | 230,952,438 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,479 | r | cachematrix.R | ## **These functions calulcate the inverse of a given matrix (x) and cache this object**
## **This can then be retrieved without recalculating the inverse of x**
# Builds a set of functions to inverse a given matrix (x) and returns these functions within a list to the parent environment through <<-
makeCacheMatrix <-... |
c7c4844aa74d2552f7907cb5ee48cea36072cf8c | c3c9f11298fb747f840e2e4ec0397992db25214d | /R/lspartition_illustration.R | c05b93dae9e56a05bd826c368ef9025d1b7fdead | [] | no_license | lnsongxf/lspartition | b11ef2779cabc28dde6a73dfa64c3ddc987b13d2 | fd62c3861e41c0c6e6a55ef9042ef2f3cf8e29f6 | refs/heads/master | 2023-03-09T03:14:41.560698 | 2021-02-28T13:59:40 | 2021-02-28T13:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,883 | r | lspartition_illustration.R | ################################################################################
# lspartition: illustration file
# Authors: M. D. Cattaneo, M. Farrell and Y. Feng
# Last update: 07-AUG-2019
################################################################################
rm(list=ls(all=TRUE))
library(TeachingDemos); li... |
ef37041ec8367d2d36b33328e2d7de0a30efaa62 | 5d8481c35b70c7a898a3a1a3a4fc0841cc0301c5 | /BacklogMonitoring.R | b3c8a5ec2a290917ccf0e11ddbd209e118761d91 | [] | no_license | robert-krasinski/VelocityReporting | 638e0c6a3cc7da9d38595bcc86ef7d1a35628194 | 366e6ee684de881c46b9ee99cb5b1f38a9309b3f | refs/heads/master | 2020-06-15T09:52:20.366061 | 2017-03-24T14:09:34 | 2017-03-24T14:09:34 | 75,303,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 17,092 | r | BacklogMonitoring.R | # first try Windows CP1252, although that's almost surely not supported on Mac:
Sys.setlocale("LC_ALL", "UTF-8") # Make sure not to omit the `"LC_ALL",` first argument, it will fail.
#Sys.setlocale("LC_ALL", "UTF-8") # the name might need to be 'CP1252'
# next try IS08859-1(/'latin1'), this works for me:
#Sys.setlocal... |
463de633e3e3c6a5c4ead172cb32e08b28e791ef | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_falsequ_1344/query09_falsequ_1344.R | 8610efa4744d9c9d4e2815be0c537cda0944d915 | [] | 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 | 67 | r | query09_falsequ_1344.R | fa0c3c2faf9b4fcdef98677986e24322 query09_falsequ_1344.qdimacs 17 17 |
3beb3d61c31cb14e3ee3c90bf77672ea38529efc | a2863ae7988e85fec7f63341d9d80c9139ab0f70 | /IncredibleHack/server.R | 0c122dbbb78cf0b14b4b8912e65c1005a047d963 | [] | no_license | draja54/IncredibleHack | 91416f309747c1e8fd2594b8242d2bb53b090dd2 | 3f12004bce3950f362204b1faa6a4a1b86963fbb | refs/heads/master | 2021-01-05T01:12:36.425338 | 2020-02-16T04:04:27 | 2020-02-16T04:04:27 | 240,825,779 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,033 | r | server.R | #
# This is the server logic 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)
library(DT)
# Define server logic required to draw a histogram
shinyServer(f... |
410f709adcd131491c5d5d2858bff8bd57bb681a | 7275a7bfd93be8d6fa94d74d76d75e05378881f6 | /tests/testthat/test-plots.R | e34bca0a4ea5ed4fbc39978758645981f988b926 | [] | no_license | sizespectrum/mizerExperimental | 2a6b4c1ab39b36d3bf7de95ecd80ed5c3e7936fc | 204fc144dc36833842eaad931e90f9d66924fab4 | refs/heads/master | 2023-05-10T22:10:02.631431 | 2023-05-03T12:11:33 | 2023-05-03T12:11:33 | 243,489,553 | 1 | 5 | null | 2023-03-30T07:49:01 | 2020-02-27T10:13:48 | R | UTF-8 | R | false | false | 2,655 | r | test-plots.R | # Initialisation ----------------
species_params <- NS_species_params_gears
# Make species names numeric because that created problems in the past
species_params$species <- 1:(nrow(species_params))
species_params$pred_kernel_type <- "truncated_lognormal"
params <- newMultispeciesParams(species_params, inter, no_w = 30,... |
e4c347bfb47af2a2239f22c24132155d030c4c73 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /meteor/inst/testfiles/E_Penman/libFuzzer_E_Penman/E_Penman_valgrind_files/1612738392-test.R | ea7e79740cef1cf23dbae1fd07a938edaaa45a87 | [] | no_license | akhikolla/updatedatatype-list3 | 536d4e126d14ffb84bb655b8551ed5bc9b16d2c5 | d1505cabc5bea8badb599bf1ed44efad5306636c | refs/heads/master | 2023-03-25T09:44:15.112369 | 2021-03-20T15:57:10 | 2021-03-20T15:57:10 | 349,770,001 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 481 | r | 1612738392-test.R | testlist <- list(Rext = numeric(0), Rs = c(-4.99215858773676e+304, -2.97403382465903e+284, -2.63554871998898e-82, NaN, 5.72778080503264e+250, NaN, NaN, 4.6918049798495e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), Z = numeric(0),... |
e0d2a8a5f6ce8963e874462936d20fdba3ef230c | c1938a2d3461a22b3601798396c27f097655fb62 | /H2O/examples/GLRM.R | e90e9380b1f377ddcee9a75342b176860a93600c | [] | no_license | a-ghorbani/notebooks | 9feead587fc5c8e6c5e9543ce7f892ff3e93152e | 86a636330a74fbcb82f2c69ec1479695edf45b60 | refs/heads/master | 2020-03-26T15:50:16.235013 | 2017-04-22T18:05:27 | 2017-04-22T18:05:27 | 46,682,743 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,592 | r | GLRM.R |
#=============================================================
# Load required packages
#=============================================================
require(h2o)
require(lattice)
h2o.init()
#port = 54324,
# username = "aghorbani",
# password = Sys.getenv("h2oPass"),
# startH2O = FALSE)
#... |
6b72492d334d9d1dea9cb1fee55125f5a7c5d4d9 | 864735bee686c07a8549d689af9f3fa162e33c6a | /R/memo.R | 0cc106a1c92c68373a123e13886af6def898cea5 | [] | no_license | emraher/eertemplates | 7ab61d6a6a6ecc77ee5f9b6a46ce143d289cf7dd | 5f7eba2d33d9a5b4b09b7526d42be220e2253bd0 | refs/heads/master | 2023-09-02T19:29:16.340844 | 2021-11-15T14:10:36 | 2021-11-15T14:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,312 | r | memo.R | #' Steve's Memo Template
#'
#' A template for memos. For more information, see here:
#' <http://svmiller.com/blog/2019/06/r-markdown-memo-template/>.
#'
#' # About YAML header fields
#'
#' This section documents some of the YAML fields to know
#' for this template.
#'
#'
#' | FIELD | DESCRIPTION |
#' | ------ | ------... |
d94ffd09ad608eac3ee0a5cfa2ca2ff083fb6952 | b819df606b40063a4ab0542d8f830546ab5523c2 | /run_analysis.R | e92d5a4b9be460ea43d6e2981f04b590d9aca59c | [] | no_license | datadogmd/human-activity-project | 3186d45338aaae4743c6b2af4fe0e690fa54a095 | 05b5f2858f2f44848f87116cf102948e28f1d881 | refs/heads/master | 2016-09-03T07:13:47.083308 | 2015-08-24T16:38:35 | 2015-08-24T16:38:35 | 41,204,527 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,273 | r | run_analysis.R | # Clear all variables.
rm(list = ls())
# Load libraries.
library("dplyr")
# run_analysis.R expects the data to be unzipped in a folder named "data"
# located in the working directory.
datafolder <- "./data/getdata_projectfiles_UCI HAR Dataset/UCI HAR Dataset"
# Read data.
features <- read.table(... |
50fda27fe550ca97bec692d117308f55dc1b82b1 | fd9f793260f6d9f61a90cec7fc1b40e30cbd4ad2 | /ch02/03.확률과 확률통계/190620(2) - 이산확률-이항분포,정규분포예제.R | 862e62fafb7008486ac1c703a2af025b2cc4f85d | [] | no_license | kwonhyoseong/R_Statistics | 1e8f574aebe7495893a6b3f218cbf4ad91ee7d3e | 264d1847de5132092ce7f97bb134917376ab907e | refs/heads/master | 2022-02-19T07:09:39.132115 | 2019-06-28T08:33:11 | 2019-06-28T08:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,270 | r | 190620(2) - 이산확률-이항분포,정규분포예제.R | # 3. 확률과 확률 분포
install.packages('prob')
library(prob)
# 코인을 던졌을때 나오는 패키지
tosscoin(1)
tosscoin(2)
# 확률을 알려주는 확률코드
tosscoin(2, makespace = T)
# 주사위가 나올 경우의 수
rolldie(1)
# 한 주머니 안에 가능한 경우의 수가 나오는 조합만을 알려주는 코드
urnsamples(1:3, size = 2)
# 복원추출 빼고 넣고 를 반복해서 나올 수 잇는 경우의수
urnsamples(1:3, size = 2,replace = T)
# 5 C 2
... |
84a72d78bfa520ff8d777faaa7fd586e796da241 | e9308a298ecc021917931f0e86d2788d2ab4ccc1 | /man/summary.Rd | f0dda78d3ef062814e8e4af9d50ef76f3e9645fa | [] | no_license | jcfaria/ScottKnott | 51f9c2d77d64793f16ec45673ffe0d322b3accdd | 85f053e0f848d49735418e09948db8970cd82e65 | refs/heads/master | 2021-06-03T14:18:46.738234 | 2020-10-15T23:55:15 | 2020-10-15T23:55:15 | 4,248,644 | 1 | 3 | null | 2020-10-03T01:29:57 | 2012-05-07T10:56:07 | R | ISO-8859-1 | R | false | false | 1,040 | rd | summary.Rd | \name{summary}
\alias{summary.SK}
\title{
Summary Method for SK Objects
}
\description{
Returns (and prints) a summary list for \code{SK} objects.
}
\usage{
\method{summary}{SK}(object,
\dots)
}
\arguments{
\item{object}{A given object of the class \code{SK}.}
\item{\dots}{Potential further... |
009c4a8af5e7644aa933d8012b77ba6180180821 | 2b285112c5a30b07803898a3d1933344c6d03546 | /eda_ts.R | a5f219384c47934731472dce9390357cf7ff9e7b | [] | no_license | wikimedia-research/Discovery-WDQS-Usage-Explore | 48cc65f8bf477c3982d589961322dee07640dbbf | 6a3b53d055646d394e34f71c74ca87eab4af2fa8 | refs/heads/master | 2020-12-06T17:05:28.628222 | 2016-10-04T20:52:59 | 2016-10-04T20:52:59 | 67,155,311 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,070 | r | eda_ts.R | webrequest_by_country <- readr::read_rds("data/webrequest_by_country.rds")
user_by_country <- readr::read_rds("data/user_by_country.rds")
user_by_os <- readr::read_rds("data/user_by_os.rds")
user_by_browser <- readr::read_rds("data/user_by_browser.rds")
user_by_device <- readr::read_rds("data/user_by_device.rds")
user_... |
7317527b29b503c0fce4b9eb52f6e19d9764d13c | 688185e8e8df9b6e3c4a31fc2d43064f460665f1 | /R/rbind.trackdata.R | f4a95b2ff51525513586a81ffc57303b02fe4ded | [] | no_license | IPS-LMU/emuR | 4b084971c56e4fed9032e40999eeeacfeb4896e8 | eb703f23c8295c76952aa786d149c67a7b2df9b2 | refs/heads/master | 2023-06-09T03:51:37.328416 | 2023-05-26T11:17:13 | 2023-05-26T11:17:13 | 21,941,175 | 17 | 22 | null | 2023-05-29T12:35:55 | 2014-07-17T12:32:58 | R | UTF-8 | R | false | false | 2,289 | r | rbind.trackdata.R | ##' A method of the generic function rbind for objects of class trackdata
##'
##' Different track data objects from one segment list are bound by combining
##' the $data columns of the track data object by rows. Track data objects
##' are created by \code{\link{get_trackdata}}.
##'
##' All track data objects have to... |
3350ed70493c67612cf14f1dc7ae542a86b653d6 | b080803cad0a97516391eae2744f1c89fd0ea523 | /examples/process-agg/scripts/plot-time.R | 248fa7aac7af9a9acc2b2bfa176199db5770eb84 | [
"MIT"
] | permissive | arosch/duckdb | 3f26e54c0f0c49535f08dfa496a2680c3806eae9 | c383e9446d0fe73f1001fc9c323dfc13a903c78c | refs/heads/master | 2020-08-17T00:58:15.913545 | 2020-05-27T13:23:58 | 2020-05-27T13:23:58 | 215,583,242 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,314 | r | plot-time.R | library(ggplot2)
library(gridExtra)
library(egg)
# command line arguments
args = commandArgs(trailingOnly=TRUE)
if (length(args) != 2) {
stop("Rscript efficiency-plot.R <data file> <output file>", call.=FALSE)
}
# import csv data
dataFile <- args[1]
df <- read.table(dataFile, header=TRUE, sep=",", numerals="warn.lo... |
4f402d3d2d40ece16ac18804869d71aa045ddaca | 224807bcc64ee023d59db89da1ff436a2aa44ba8 | /tests/testthat/test-cell_info.R | f6fba7688e98dfbe0ef17f9f278b996d07777954 | [] | no_license | sdcTools/sdcTable | cf963624c44510e8c77c6b4ba83fe064a84c168c | ade7328a1c73b3fa2d7f17b725ad193389d0bde6 | refs/heads/master | 2023-09-03T14:59:24.853963 | 2023-08-16T06:27:56 | 2023-08-16T06:27:56 | 61,604,088 | 7 | 5 | null | 2019-10-04T10:14:39 | 2016-06-21T05:14:13 | R | UTF-8 | R | false | false | 1,268 | r | test-cell_info.R | context("test cell_info()")
test_that("cellInfo works", {
skip_on_cran()
sdc <- sdc_testproblem(with_supps = TRUE)
expect_is(sdc, "sdcProblem")
expect_equal(sum(sdc@problemInstance@sdcStatus == "u"), 1)
# check correct input
expect_error(cell_info(p))
expect_error(cell_info(p, 1))
# vector input
sp... |
d9e82a7bb977ebff8348c2b32d5a1e8f8f16f623 | 4128746ae0e5bdc33e21844ca4b1c617231aae55 | /lib/states/wa/seattle.R | 4a3f2d11c8995762a53cffd3ac27a3c8c19aa39e | [] | no_license | stanford-policylab/opp | b71f80888110035318d860114c7572fe00a4664f | fdb3b9f8ea9fd85a5b0fb9dcde19021bcf2c8231 | refs/heads/master | 2023-05-26T03:04:16.760645 | 2023-05-17T20:23:46 | 2023-05-17T20:23:46 | 103,974,255 | 85 | 53 | null | 2023-05-17T20:27:01 | 2017-09-18T18:09:02 | HTML | UTF-8 | R | false | false | 3,580 | r | seattle.R | source("common.R")
# VALIDATION: [YELLOW] The Seattle PD doesn't appear to put out Annual Reports
# or statistics on all traffic stops, but the numbers seem reasonable given the
# population. Unfortunately, a lot of relevant demographic data appears to be
# missing.
# NOTE: The Seattle PD has a smaller dataset focus... |
cb4b2124d8719d3a2886c702bcc567ea9a9a906b | c24949a902e18b051d7e4ed6cf348e06a1ee138a | /rmagi/tests/testthat/test_z02_HMC-noODE-shortened.R | 572e1c46ee50c8fb1bd50ac5d67443459cbe4dff | [] | no_license | yyang97/magi | 2025786815a887b71ac551557fcf5770117caaaa | 9a6585bb9623782a22a4fc7aba36a788fdae7655 | refs/heads/master | 2023-03-31T08:03:16.407736 | 2021-04-10T00:51:02 | 2021-04-10T00:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,436 | r | test_z02_HMC-noODE-shortened.R | testthat::context("test run HMC-noODE")
### Required variables
### - fn.sim with nobs rows (noisy V and R in cols 1 & 2, using sigma = 0.1)
### - VRtrue with 401 rows (V and R true)
library(magi)
VRtrue <- read.csv(system.file("testdata/FN.csv", package="magi"))
phitrue <- list(
compact1 = c(2.618, 6.381, 0.152, 9.6... |
ff3bc18db903e822068394edfe0668a4280483f1 | 72504818c6707235d7902cda47929c4d3a362f1e | /man/box_fresh_auth.Rd | bfa5d7216c23f8b12698f17c9f22f6a7d1b69c93 | [
"MIT"
] | permissive | ijlyttle/boxr | 4a933f67a0a885d646d07c858c61f1f4844b5c40 | bc2f867855a1fbbbe0b4e75b59250ba197053b9a | refs/heads/master | 2021-01-12T10:55:15.304085 | 2019-03-29T00:05:38 | 2019-03-29T00:05:38 | 72,751,933 | 0 | 0 | null | 2016-11-03T14:11:35 | 2016-11-03T14:11:34 | null | UTF-8 | R | false | true | 685 | rd | box_fresh_auth.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boxr_auth.R
\name{box_fresh_auth}
\alias{box_fresh_auth}
\title{Obtain a fresh Box token}
\usage{
box_fresh_auth(cache = "~/.boxr-oauth", ...)
}
\arguments{
\item{cache}{Passed to \code{cache} in \code{\link[=httr]{httr()}}.}
\item{...}{Pass... |
a99324e51fd51779519093771d872c1b652c1f39 | a99d389911551bf880a692d1142809bc8ef5d7d8 | /R/SetSortOrder.R | c5860e11f7fff62dbaf183e655a9f5aa19256102 | [
"CC0-1.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | jfisher-usgs/RSurvey | 97357051cee074e0ad75163225a924adebf6925d | 52b9597a512eb672ded04cd665a001d83096737e | refs/heads/master | 2020-12-22T21:11:59.449895 | 2020-06-30T18:02:43 | 2020-06-30T18:02:43 | 1,533,926 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,183 | r | SetSortOrder.R | #' GUI: Sort Order
#'
#' A graphical user interface (\acronym{GUI}) for specifying the variable used to sort the data set.
#'
#' @param col.ids character.
#' Vector of variable names
#' @param sort.on integer.
#' Index for the variable used to sort the data set.
#' @param parent tkwin.
#' \acronym{GUI} parent win... |
1fbb23fc73b568ae69aacc6244dbd49f5878dadc | 8884de5c13cb902326178a5bcb45d5bc3b77bca9 | /ui.R | f8c69b0c57fa81f037dbb1fc7e14c72afe8336ed | [] | no_license | gonzalor/Coursera-DataProducts-Shiny | ebf91b241ba9dc862a174cac79d0135684b49034 | 4be3a3cb999cbf8da8278a6165cdc10aa586ba9a | refs/heads/master | 2021-01-10T10:53:51.270299 | 2015-09-26T14:39:37 | 2015-09-26T14:39:37 | 43,144,089 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,614 | r | ui.R | # Shiny application - User Interface
#
library(shiny)
library(leaflet)
suppressPackageStartupMessages(library(ggplot2))
# Choices for drop-downs
varsXAxis <- c(
"Types" = "types",
"Zones" = "zones"
)
varsYAxis <- c(
"Count" = "count",
"Resolution Days" = "resolution"
)
shinyUI(
navbarP... |
500a8121f4254335b624af1243862d70376e5e2e | 6b57ed4964727602b75250c5dbcfa10653cf2ee0 | /tests/test_contestMD.R | 0a4ceca20ca7129f114d2e962c6a05d87cc1af28 | [] | no_license | runehaubo/lmerTestR | 278b4b1a4f99387cc0216193a5236cae6e6a4f0c | 35dc5885205d709cdc395b369b08ca2b7273cb78 | refs/heads/master | 2021-06-05T16:38:46.427782 | 2020-10-23T06:59:55 | 2020-10-23T06:59:55 | 117,861,877 | 47 | 10 | null | 2020-10-19T13:52:50 | 2018-01-17T16:26:02 | HTML | UTF-8 | R | false | false | 4,190 | r | test_contestMD.R | # test_contestMD.R
library(lmerTest)
# WRE says "using if(requireNamespace("pkgname")) is preferred, if possible."
# even in tests:
assertError <- function(expr, ...)
if(requireNamespace("tools")) tools::assertError(expr, ...) else invisible()
assertWarning <- function(expr, ...)
if(requireNamespace("tools")) tool... |
f3782c69af8dda01ac34ba23596c67c7b651e1ee | 9e0f6cb11b63bf93ba817f13750f12c9dd44ed28 | /fmle_bb.r | dbbaecd60e48f0061ec83e1d98490338f7978f54 | [] | no_license | slarge/fmle_bb | 192a56be7def4866fc10805e0c712ceceb9483f3 | 2fcd1539f1217bd1f678cbeea1ecfd52f8052e41 | refs/heads/master | 2021-05-04T03:11:53.785924 | 2016-10-25T09:26:34 | 2016-10-25T09:26:34 | 71,358,700 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,706 | r | fmle_bb.r | # fmle_bb() {{{
setGeneric('fmle_bb', function(object, start, ...)
standardGeneric('fmle_bb'))
setMethod('fmle_bb',
signature(object='FLModel', start='FLPar'),
function(object, start, method='Nelder-Mead', fixed=list(),
control=list(trace=1), lower=rep(-Inf, dim(params(obj... |
bf87b0e45ce189d824da0cd4bcb426bd9932e94f | 5ed86a18aac40468d7516f94583cbd06ea03dc47 | /R/subset_run.R | f0176960013420ebcad004cae63b89d9fd89c880 | [
"MIT"
] | permissive | diazrenata/cvlt | 22e8a758ff7098a042712ed4e21936af7980c2ca | e90c762361d2ec427210e207a82d4b82cdc5fbcb | refs/heads/main | 2023-04-13T11:01:07.547451 | 2021-07-07T15:08:50 | 2021-07-07T15:08:50 | 363,262,562 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,878 | r | subset_run.R | #' Run LDATS on a single dataset subset
#'
#' This function runs on a single subset (e.g. the dataset with timestep 1 as the test timestep). Run `fit_ldats_crossval` to run this function on every subset.
#'
#' First, fits an LDA to the *full* (not subsetted) dataset. Then splits the matrix of topic proportions (`gamma`... |
2c737fd84c2d24ee883a80cad8759be6d3193f8e | 6502ceccc2bed9aa21f2f1fa02abd59f8a2b9e07 | /R/hello.R | 07fe2acd437c02e0ba43445737addecc605b76ac | [] | no_license | zahrakhoshmanesh/happyR | 14b6fe8f16eedfbb35d1bed381a99ca8ab68e633 | 6dad6a939de6b3f10e8cc6e7a8368a0ee5671c3c | refs/heads/master | 2020-04-30T13:19:13.595524 | 2019-03-21T04:08:37 | 2019-03-21T04:08:37 | 176,853,622 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 161 | r | hello.R | #' print hello "name".
#'
#' @param x A number.
#' @export
#' @return print name.
#' @examples
#' hello("Sam)
hello<- function(s){
sprintf("hello %s",s)
}
|
22abfb5f1a3bb7e626df76926fbfe13e627e03fd | 8fb171e8e1827efd6b615fe2ce41f126a1fb4564 | /man/markov_expanded.Rd | 63c0fdb970cb7d19729cda8f3500f40d4f0426fc | [
"MIT"
] | permissive | HealthEconomicsHackathon/hermes6 | 745b9e1b85c0e22c5f8cff7f728cbfbe8e480d0b | 2ee4db4e99d6c02dcc3800f95737c2914bf0b0f5 | refs/heads/master | 2020-09-05T04:12:46.566159 | 2020-04-07T14:16:33 | 2020-04-07T14:16:33 | 219,979,028 | 4 | 1 | NOASSERTION | 2020-04-07T14:16:34 | 2019-11-06T11:15:45 | R | UTF-8 | R | false | true | 340 | rd | markov_expanded.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/markov_expanded_probabilistic.R
\name{markov_expanded}
\alias{markov_expanded}
\title{Reduced dimensions in markov smoking probabilistic model}
\usage{
markov_expanded()
}
\value{
Output
}
\description{
Reduced dimensions in markov smoking pr... |
7ed16d96f1f53070590f59748ad888519cf5eae1 | d5fbf5023653a02e38a090e6365f100f078716c8 | /Predictions.R | c239a662ccc2e8c9e080884cb9cbd98be1497b6c | [] | no_license | graceedriggs/Fake-News | d0c42d2acaf7344bc6327a60f15eba56468fa39d | 956a1cdbc796434357c867f1880e3a6ec9d939e7 | refs/heads/main | 2023-01-08T16:51:41.607886 | 2020-11-05T04:44:17 | 2020-11-05T04:44:17 | 310,192,244 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,436 | r | Predictions.R | ##
## Predictions for Fake News
##
## Libraries
library(tidyverse)
library(caret)
clean.train <- read_csv("./CleanTrain.csv")
clean.test <- read_csv("./CleanTest.csv")
clean.fakenews <- read_csv("./CleanFakeNews.csv")
sum(is.na(clean.train))
## replace the NAs with 0
clean.train[is.na(clean.train)] = 0
clean.train$i... |
185786aba25b3b2a2d8f80af4afc5bfb64d1a465 | 8e80765a6b757263315ffb8e42718fbb1359c924 | /ch04/vector_matrix.R | 8b6d5aac08b000365d044d3a396c2a5359de6ace | [] | no_license | sycho0311/R-Basic | 5c0c5499535b454f5399b99c8558356acfb56eb4 | 39ba67a34a0812faef7ef7a2e9b9ff15b9bd7cb9 | refs/heads/master | 2020-04-01T17:35:17.387095 | 2018-10-17T10:24:12 | 2018-10-17T10:24:12 | 147,784,310 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 503 | r | vector_matrix.R | score <- matrix(c(80, 60, 90, 70, 70, 50, 100, 80, 95, 70, 95, 80), nrow = 4)
# 4개의 행을 같은 행렬
score[2, 2] <- score[2, 2] + 20
print(score)
kor <- score[, 1] # 하나의 열의 데이터만 가져오는 경우
print(kor)
kor <- score[, 1, drop=FALSE] # 벡터가 아닌 행렬로 데이터를 가져오고 싶은 경우
print(score[c(3,4), c(1, 2)]) # 벡터 행을 설정, 벡터 열을 설정
# 3행의 1열 3행의 2열이... |
1ebbf4cf472c578c3789b29c9057f6f3bc4efe8c | 14bbda859b6b252c1793b3b5d5e293ad6aed2ce4 | /SupportingScripts/CS2FeatureSelection.R | bf469dea141d8fbb4c23b204d58f87cfec878941 | [] | no_license | NicoleABartholow/MSDS6306CaseStudy2 | 5bbd515d626df0262a3d334c64dfb45c14a61552 | a10188ae5abc977b8481a6dcbdf273e86296bd97 | refs/heads/master | 2020-04-09T00:17:27.043235 | 2018-12-10T06:32:19 | 2018-12-10T06:32:19 | 159,860,641 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,635 | r | CS2FeatureSelection.R |
#Predictions for model using Test dataset
TestAttrition <- DFTest$Attrition
DFTrainFS<- subset(DFTest, select=-c(Attrition ))
ctrl <- rfeControl(functions = nbFuncs)
rfe1 <- rfe(x=DFTrainFS, y=TestAttrition, sizes = 2^(2:27), maxit = 10, metric = "Accuracy" , rfeControl = ctrl, testx = DFTrainFS, testy = TestAttrit... |
4714f3b4864257dadf72cd83eb44961a1901ed9c | 1a4c806a0745850e725040bca561fa109c0d5019 | /stat/peptide/ResidueMaster.R | 6c85bc7ccec4683cbaebed351c8af5b00ec3ee12 | [
"Apache-2.0"
] | permissive | tipplerow/jam | 9037ae5aefd6f38315855c0f893eb8fa9d842bf3 | 464b78819f064a248425b4703dd96fa4f337ea67 | refs/heads/master | 2021-05-09T05:19:08.698810 | 2021-02-12T17:01:29 | 2021-02-12T17:01:29 | 119,304,231 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 219 | r | ResidueMaster.R |
ResidueMaster.find <- function() {
file.path(Sys.getenv("JAM_HOME", names = FALSE), "data", "residue_master.csv")
}
ResidueMaster.load <- function() {
read.csv(ResidueMaster.find(), strip.white = TRUE)
}
|
c4c3da7f45d791c24abc2c5dd66902c7906eff61 | 5589f0f59c12712e6765850fcff0fb46028287e7 | /man/dirichlet.mle.Rd | 2f078a6040d6c28c5057c170641e6dc52e296a84 | [
"MIT"
] | permissive | bcbritt/brittnu | e93ef06fef2d1db7b11637b59a80573d5fda3c56 | 17e3b4dc11f3c03ddeef7b3cdadde350811904e2 | refs/heads/master | 2023-05-14T19:40:29.449482 | 2021-03-31T06:27:15 | 2021-03-31T06:27:15 | 352,232,783 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,818 | rd | dirichlet.mle.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brittnu.R
\name{dirichlet.mle}
\alias{dirichlet.mle}
\title{Dirichlet.MLE}
\usage{
dirichlet.mle(
x,
weights = NULL,
eps = 10^(-5),
convcrit = 1e-05,
maxit = 1000,
oldfac = 0.3,
verbose = FALSE
)
}
\arguments{
\item{x}{A list wi... |
f4d9961f7791fd4addb0a03c9ae398dcd4464850 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/gsw/examples/gsw_pot_enthalpy_ice_freezing_first_derivatives.Rd.R | fd2f838b297c46712a84447907e8d9b754545b77 | [] | 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 | 758 | r | gsw_pot_enthalpy_ice_freezing_first_derivatives.Rd.R | library(gsw)
### Name: gsw_pot_enthalpy_ice_freezing_first_derivatives
### Title: First Derivatives of Potential Enthalpy
### Aliases: gsw_pot_enthalpy_ice_freezing_first_derivatives
### ** Examples
SA <- c(34.7118, 34.8915, 35.0256, 34.8472, 34.7366, 34.7324)
p <- c( 10, 50, 125, 250, 600, ... |
d5edb6c40c1d26a3822b2e17717455f681a0c4b4 | 2a71a1e4b6d183da7d6bbf3adf76955fc1d4254e | /ROS/KidIQ/kidiq.R | 4c13f87456b5d9d49740fc837c8c34cdc1796ec6 | [] | no_license | lizzieinclass/oeb201 | fc3f8babb2b63ece6208cf954c5e68572ffe8369 | 3d09ca890642cb052721aba174c5b938ef621ed9 | refs/heads/master | 2021-01-23T12:55:26.435075 | 2017-11-29T05:29:24 | 2017-11-29T05:29:24 | 102,660,185 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,603 | r | kidiq.R | # setwd("~/AndrewFiles/books/regression.and.other.stories/examples/KidIQ")
library("arm")
library("rstanarm")
options(mc.cores = parallel::detectCores())
library("ggplot2")
library("bayesplot")
theme_set(bayesplot::theme_default(base_family = "sans"))
## code for nlsy kid iq data for Chapter 3
library("foreign")
kidi... |
25d63f3c6cf54a3ca76fb75d41d3396e5f9aa277 | 5a10a60157e344bcdea3b2a5af1ef150cd5864e3 | /R/hct_method_MC_corr.R | 8b563c94d7feaf99bee9b5efe4cbecf8a79f3fc1 | [] | no_license | cran/HDDesign | 7d7044a1d3ae5f2e87bb2d24cbf2811be147cc29 | 5ea3d93332514d337fcbf151be677e19072e6b05 | refs/heads/master | 2020-04-02T04:11:11.704074 | 2016-06-11T09:37:25 | 2016-06-11T09:37:25 | 60,896,538 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 318 | r | hct_method_MC_corr.R | hct_method_MC_corr <-
function(mu0, p, m, n, hct, alpha0, nrep, p1=0.5, ss=FALSE, ntest, pcorr, chol.rho,sampling.p)
{
temp=sapply(1:nrep, hct_method_single_MC_corr, mu0, p, m, n, hct, alpha0, p1, ss, ntest, pcorr, chol.rho,sampling.p)
if (ss==FALSE)
mean(temp)
else
apply(temp, 1, mean)
}
|
75c95116edda4a057ab81ebe904efe0f6f09d745 | 1380a6e8ffa98cea38e39a006e79cd364463dab4 | /R/pcpn_iso_active.R | 3b5d6ea29391bf350dc7d3f5b4ee20ee340cf2d0 | [] | no_license | cvoter/CSLSiso | 7ec1227c474e9691b3ac5733b6871fa77513c142 | d86f068a9b5b0ce35e098ef84c08929bec9d14b0 | refs/heads/master | 2021-05-20T09:05:07.354843 | 2020-03-24T22:29:16 | 2020-03-24T22:29:16 | 206,828,195 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 403 | r | pcpn_iso_active.R | #' Precipitation Collection Dates
#'
#' Date intervals when precipitation collector at Hancock agricultural research
#' station was actively deployed for isotope measurements.
#'
#' @docType data
#'
#' @usage data(pcpn_iso_active)
#'
#' @format A lubridate interval with time periods when precipitation collector
#' wa... |
0415c54ddac31b7ff46702ab9f831798dc8d7754 | 3305747fa8c8da01422c30328e17c9354111d0e7 | /R/rdbGetEntries.R | 871ecd99af369a5b41e7032c45e6f5caa3e1a62e | [] | no_license | jjcurtin/StudySupport | 53c312a4d73eb79fe28f56a5e77e2d48c0a56d8f | 60024bb750543eba67374c47c213763ae741dfc0 | refs/heads/main | 2023-04-24T09:09:09.844913 | 2021-05-06T02:38:31 | 2021-05-06T02:38:31 | 364,763,735 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 181 | r | rdbGetEntries.R | rdbGetEntries= function(d = NULL, Phone = NULL)
{
#return by phone
if(!is.null(Phone)) {
dE = d[d$Phone == Phone,]
}else {
dE = data.frame(NULL)
}
return(dE)
} |
6db00c928a95899d30ae991f59b53a22a749b4b6 | 82b8d888be750c9a5c37664b19bc6d4dee2ea17c | /R/Modules_R/ms1_peaks.r | 9ebdb1bfd0bccb3eb1fc7070f4afbc26ee55abcb | [
"MIT"
] | permissive | zmahnoor14/MAW | 2d775cbc0aaebe47a1f244172a571f39a683ab02 | 2da7fbaab0e2e4ebbff3f36d631336690fb318b0 | refs/heads/main | 2023-08-03T09:30:16.118159 | 2023-08-01T14:15:02 | 2023-08-01T14:15:02 | 438,345,970 | 19 | 5 | null | 2023-04-19T21:32:40 | 2021-12-14T17:42:08 | Jupyter Notebook | UTF-8 | R | false | false | 7,545 | r | ms1_peaks.r | #! /usr/bin/Rscript
#' @title Extract isotopic peaks and save as txt files
#'
#' @description
#'
#' This function takes the isoptpic peak annotations performed by CAMERA
#' and generates the MS1 or isotopic peak lists for each precursor m/z
#' @param x is the result csv file from the function - ms2peaks
#'
#' @param... |
7bedce4c50925d73fcce3649307394b5d4f7ae02 | 0c68982b31105dc858b460b43be01fea8919467f | /plotting/plot_filled_assigned_sperm.R | 4f36f2a1d28f85b18d6f4154ce907c24b21ad057 | [] | no_license | mccoy-lab/transmission-distortion | 003a3ee0391d8b38f15647cbcc784e00550666d2 | d30bde24ca6d385036b88527c66a4a7d6261f8a5 | refs/heads/master | 2022-12-14T18:13:18.169290 | 2022-07-26T19:38:01 | 2022-07-26T19:38:01 | 280,891,155 | 1 | 0 | null | 2023-08-21T16:34:57 | 2020-07-19T15:11:56 | R | UTF-8 | R | false | false | 1,448 | r | plot_filled_assigned_sperm.R | # Plot randomly sampled sperm, after assigning stretches to each haplotype
# filled_sperm is the output of other steps in assign_haplotypes
outcome_new_5 <- as.data.frame(filled_sperm)
outcome_new_5 <- outcome_new_5[,sample(1:ncol(outcome_new_5),20, replace=FALSE)]
rownames(outcome_new_5) <- positions
# write filled... |
f2739bda0bd636a1cd50077b21d21afa574c15ba | e0b530f1d389c1de35175643d306eb4be64445f4 | /googlegmailv1.auto/R/gmail_functions.R | 29f97bf4654eba67e2c3ed81b30f42f54639bf2d | [
"MIT"
] | permissive | Phippsy/autoGoogleAPI | 3ce645c2432b8ace85c51c2eb932e1b064bbd54a | d44f004cb60ce52a0c94b978b637479b5c3c9f5e | refs/heads/master | 2021-01-17T09:23:17.926887 | 2017-03-05T17:41:16 | 2017-03-05T17:41:16 | 83,983,685 | 0 | 0 | null | 2017-03-05T16:12:06 | 2017-03-05T16:12:06 | null | UTF-8 | R | false | false | 4,495 | r | gmail_functions.R | #' Gmail API
#' Access Gmail mailboxes including sending user email.
#'
#' Auto-generated code by googleAuthR::gar_create_api_skeleton
#' at 2016-09-04 00:01:53
#' filename: /Users/mark/dev/R/autoGoogleAPI/googlegmailv1.auto/R/gmail_functions.R
#' api_json: api_json
#'
#' @details
#' Authentication scopes used are:... |
dbaf6967c7520d94e5abe245d74cd2a121e967e6 | 86c10d6aa4f2cef5168375b766b78466278b37f1 | /R/summary_xi.R | 34127bcf798c1b2c2d241d166be1edd6f2632b4a | [] | no_license | pjoao266/bayesbr | 30ccf36b27cade956d2fe9f6cf0547e6114d5a4f | 88ebd3837ca83fd9c0ce979b233871ddef0379b4 | refs/heads/master | 2023-06-15T18:25:50.092487 | 2021-07-16T19:24:53 | 2021-07-16T19:24:53 | 276,712,638 | 2 | 0 | null | 2021-07-16T19:24:54 | 2020-07-02T17:55:00 | R | UTF-8 | R | false | false | 1,574 | r | summary_xi.R | #'@title Coefficients for xis
#'@aliases summary_xi
#'@name summary_xi
#'@description A function that uses posterior distribution values of the model and calculates the estimates for xi parametrer.
#'@usage summary_xi(x,prob=0.95)
#'@param x an object of the class \emph{bayesbr}, containing the list returned from the \... |
ddef0676f0d34c265a311e3d8adaf234464e7675 | 6a48e67720f48380c37a7c8cae41a6e2bcc56636 | /factorial.R | 98ae4ace9e3c184b77421c7f75872e9bb572906f | [] | no_license | SHIVAMBASIA/R-Lab-Tasks | 299778de7c90263cd8095bb8629d363ad87b7b29 | 3129da1d257b15c83b3e7634c24362b1a8cabdbf | refs/heads/master | 2020-08-05T06:16:24.228635 | 2019-10-02T19:46:28 | 2019-10-02T19:46:28 | 212,426,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 105 | r | factorial.R | a=readline("enter number")
a=as.integer(a)
i<-1
fact<-1
for(i in 1:a){
fact=fact*i
}
print(fact) |
ca25728782acc663b6e79a6a305bf3713ed8e8e5 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/kergp/examples/covMat-methods.Rd.R | 6b775a85c9c8f0abad8a513bc832a4aba258665d | [] | 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 | 759 | r | covMat-methods.Rd.R | library(kergp)
### Name: covMat-methods
### Title: Covariance Matrix for a Covariance Kernel Object
### Aliases: covMat,covMan-method covMat,covTS-method
### ** Examples
myCov <- covTS(inputs = c("Temp", "Humid", "Press"),
kernel = "k1PowExp",
dep = c(range = "cst", shape = "cst"),
... |
731d7a25774b7825f5cf22a9ff88affba162af99 | 1b53071b8198a4705ca11b63c444f02763eedbd6 | /Rfun/cdntc.R | d9f725fefab952021ccc5fe3458f104461dad945 | [] | no_license | tadhg-moore/MyLake_R | bbd33c02ddea3725b338acfd72865717d610afca | 3641a82ad882c4965e7f9aeb4aff70160d2edc0e | refs/heads/master | 2020-12-11T10:45:15.619867 | 2020-01-14T11:37:43 | 2020-01-14T11:37:43 | 233,827,050 | 0 | 0 | null | 2020-01-14T11:33:24 | 2020-01-14T11:33:23 | null | UTF-8 | R | false | false | 610 | r | cdntc.R | cdntc<-function(sp,z,Ta){
#CHECK: simplified - works well for 1-dim input
tol<-.00001 # iteration endpoint
visc <- 1.326e-5*(1 + 6.542e-3*Ta + 8.301e-6*Ta^2 - 4.84e-9*Ta^3)
# remove any sp==0 to prevent division by zero
sp[which(sp==0)]<-.1
# initial guess
ustaro<-array(0,length(sp))
ustarn<-.036*sp... |
8c85ace2762864f5aaa4f12a3a5d53bf8f158d1c | 74bf5107855b1695a1ac7d128c4df7b485e9c429 | /R/checkSize_remeas.R | e4f126102afb93d12e51f5b52cffb123d402108d | [
"Apache-2.0"
] | permissive | bcgov/FAIBBase | 6b3b284e78257006c282c530ab01f897cc33e4c7 | 1c15295015a448e9ebd2aebec469cbf2b58e88b8 | refs/heads/master | 2023-08-03T11:05:59.717645 | 2023-07-19T16:57:09 | 2023-07-19T16:57:09 | 195,133,665 | 0 | 0 | Apache-2.0 | 2020-02-12T17:59:58 | 2019-07-03T22:24:25 | R | UTF-8 | R | false | false | 7,732 | r | checkSize_remeas.R | #' Check the size change of a remeasured subject
#'
#' @description This function is to check the size change for a remeasured subject.
#'
#' @param subjectID character, Specifies subject ID, such as a tree id.
#' @param measTime numeric, Measurement number with bigger value indicates a later measurement.
#' @param siz... |
341caa1dc71ffba3ffa97d84fca7e55169db7daa | 2e0b18721959cf04addbc1b9f07188b5ce352ebc | /man/module_metadata.Rd | 64482edbaeb211855d85dd470913f62c07251873 | [
"MIT"
] | permissive | aclemen1/modulr | cde8ed13e708d8207362006c0dc38f4cc81edb65 | 0162dde8a7281380b82d2446841520f3299f87df | refs/heads/master | 2023-05-25T19:41:37.659195 | 2023-05-18T10:42:45 | 2023-05-18T10:43:37 | 41,587,794 | 9 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,405 | rd | module_metadata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modulr.R
\name{module_metadata}
\alias{module_metadata}
\alias{.__name__}
\alias{.__file__}
\alias{.__version__}
\alias{.__namespace__}
\alias{.__initials__}
\alias{.__final__}
\alias{.__path__}
\title{Module Metadata.}
\usage{
.__name__
.__... |
3fdb73f3e1b471330a1465f632ebb03c04c63523 | bb1fc4854812f2efe4931ca3c0d791317309e425 | /scripts/older_scripts/getFipsForPoints.R | 4f1dc451c599dfd382ea66ec5bff57fdec1bcff2 | [
"Apache-2.0"
] | permissive | dlab-berkeley/Geocoding-in-R | 890e491d84808e29d07897508dc44f2bd9a3f646 | 40a0369f3b29a5874394ffafd793edc7012144ea | refs/heads/master | 2023-03-06T07:54:41.997542 | 2021-02-18T17:42:22 | 2021-02-18T17:42:22 | 47,520,653 | 5 | 1 | null | null | null | null | UTF-8 | R | false | false | 8,466 | r | getFipsForPoints.R | ## ############################################################################
#
# Joining Census FIPS codes to points via point in polygon overlay
#
# Author: Patty Frontiera pfrontiera@berkeley.edu
# Date: 2014_04_15
# Last updated: 2014_04_17
#
# Purpose:
## This script takes as input a point file and a file of C... |
4faedc2cff646058b07fd4259cb2bd25ff25522e | 8ad686537311f3432667d8d96502981d02245ae0 | /helper/identifiers.R | 3116168f840f11f651ae29277a2929cc58417253 | [
"MIT",
"CC-BY-4.0"
] | permissive | HannesOberreiter/inat-austria-city-challenge-2021 | dac033226d4f392e66e216b4cbe8a879d2e1ac5d | 1c20e7e86a6eebb7b64158ad63028334b0f31a43 | refs/heads/master | 2023-08-28T12:58:02.255817 | 2021-10-23T10:01:59 | 2021-10-23T10:01:59 | 418,587,727 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,340 | r | identifiers.R | # Add Identifier too our dataset from API -----
library(here)
library(tidyverse)
library(httr)
library(jsonlite)
library(glue)
# Import Data ---------
data <- readxl::read_xlsx(
"data/16-10-2021-raw.xlsx",
col_types = "text",
sheet = "edited"
) %>%
mutate(
latitude = as.numeric(latitude),
longitude = a... |
cf9e66c90483f964bf89e87e0f299f465a157b56 | 22c625269e9878e3d028b56398d8a43c90b7bc16 | /global.r | 822479bd219f3d45562022a8dcedf6c4b459a74f | [] | no_license | kblocksom/eForms_FishUpdates_NRSA | 6c3b5efe381c78040a17b1d85224da3d175440d2 | ce9f5c5fa166dbf965d3c36d3423027505643c49 | refs/heads/master | 2020-08-27T09:57:39.160458 | 2019-12-26T19:19:33 | 2019-12-26T19:21:29 | 217,325,514 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 619 | r | global.r | list.of.packages <- c("shiny","Hmisc","dplyr","shinyjs","shinythemes","shinyBS","RJSONIO","DT","stringr","data.table","jsonlite","shinyalert","gtools")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packa... |
78a126ab6dc0f57cebddbf9b6a4c595aacf6d0a9 | 07a74984bf59ce4486e1bcaefafb8ce692b50d5a | /data-raw/geojson.R | 90c2cd3935febd1914291932bb93630e7be9a49a | [] | no_license | SymbolixAU/mapdeck | c3bc3a61b8d8ade69b9b67fa69a00f9294281630 | 6138c6845e37ab3479e4ff65d9b0fff29e20f070 | refs/heads/master | 2023-09-03T22:34:43.418728 | 2023-08-24T22:14:59 | 2023-08-24T22:14:59 | 141,350,341 | 344 | 50 | null | 2023-08-09T22:22:59 | 2018-07-17T22:06:34 | HTML | UTF-8 | R | false | false | 2,869 | r | geojson.R |
library(sf)
# sf <- geojsonsf::geojson_sf(googleway::geo_melbourne)
# sf <- sf[, c( 'geometry')]
# sf$id <- 1:nrow(sf)
#
# #geojson <- geojsonsf::sf_geojson(sf)
# geojson <- geojsonsf::sf_geojson(sf)
#
# attr(geojson, 'class') <- 'json'
# usethis::use_data(geojson, overwrite = T)
library(data.table)
dt_shapes <- f... |
d3725f6e38ee197989530e5930539d711a0873f5 | b8cfc932bd048d70e2fb4b6fe1e15d285e4771a5 | /man/StatisticsPhD.Rd | 439e4e91d93c1f61eb277325820990c719ac11b2 | [] | no_license | rpruim/Lock5Data | 3df5b5d1c1fc6e6dac9bc2453c16c8d18465bcf8 | 9e5b33f8800dc48c09b1e0c85dc2eefd3f967fe4 | refs/heads/master | 2016-09-10T15:25:39.616331 | 2014-03-04T14:50:16 | 2014-03-04T14:50:16 | 12,008,109 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,086 | rd | StatisticsPhD.Rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\docType{data}
\name{StatisticsPhD}
\alias{StatisticsPhD}
\title{Statistics PhD Programs}
\format{A data frame with 82 observations on the following 3 variables.
\itemize{
\item{\code{University}} {Name of the school}
\item{\code{Department}} {Type of departme... |
7588772f8ee4a2184faab53165509f674b49eb5a | 0226b6b2bca3405586901a9b8a0d2768a7c4a911 | /R/stan_group_fit.R | 35acafc6e17bf5df5bea496c499a7c0e367dfc3a | [] | no_license | bgoodri/breathteststan | 20d1d6787c084722e6662333a44bf57d6cf6bbea | 6487bcc776c1360a5087cb78501f2ccd801c8578 | refs/heads/master | 2020-04-01T12:52:29.554806 | 2018-10-16T05:43:03 | 2018-10-16T05:43:03 | 153,227,629 | 0 | 0 | null | 2018-10-16T05:29:35 | 2018-10-16T05:29:34 | null | UTF-8 | R | false | false | 6,511 | r | stan_group_fit.R | #' @title Bayesian Stan fit to 13C Breath Data in Multiple Groups
#' @description Fits exponential beta curves to 13C breath test series
#' data using Bayesian Stan methods, by assuming fixed between group effects.
#' This model is overly parsiomonious. Do not use it
#' unless you check the results carefully and unders... |
8f15724fa3f564d999ec98bbe9bd82472cd54d0e | b75bc9ec3507d55bfa8fc534958027948d8c342f | /tests/testthat/test-get_dictionary.R | d5276e176e3021c56be3b9aefbdbf8f19d76d187 | [
"MIT"
] | permissive | CDU-data-science-team/experienceAnalysis | 456185ac3ab7570ba10ed50d35e34873cd101e2c | e54ff773f48436876abd638d0775725bf2ef00b3 | refs/heads/main | 2023-07-16T13:26:39.847924 | 2021-08-23T13:22:19 | 2021-08-23T13:22:19 | 346,350,668 | 0 | 0 | NOASSERTION | 2021-07-28T22:10:33 | 2021-03-10T12:35:11 | R | UTF-8 | R | false | false | 219 | r | test-get_dictionary.R | test_that("Dictionary retrieved", {
df1 <- get_dictionary("nrc")
df2 <- get_dictionary("afinn")
df3 <- get_dictionary("bing")
expect_gt(nrow(df1), 0)
expect_gt(nrow(df2), 0)
expect_gt(nrow(df3), 0)
})
|
dfbaf463c29287ec439d2c0517315b56c837fe85 | 62c7b65acf01ca4ceb49f3d22a4349fa6d62ca82 | /R/save-flow.r | 181644ca7dddefbd42153e6f4986d09ec411faf8 | [] | no_license | hrbrmstr/flowdockr | 8114e11f1f2f67ece7b0c85f065e1451c7855aa9 | 9da2bd1b47ca060fe9cfff73102192467083fae4 | refs/heads/master | 2021-01-10T10:06:35.621486 | 2016-02-18T15:38:54 | 2016-02-18T15:38:54 | 51,620,601 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,106 | r | save-flow.r | #' Save R objects to an RData file on Flowdock
#'
#' @param ... objects to store in the R data file
#' @param file filename (without extension) to use
#' @param flow parameterized flow name (i.e. "\code{this-flow}")
#' @param tags vector of tags for the flow
#' @param flowdock_api_key used to authorize you to Flowdoc. ... |
a33d47a254293ac3b65226ec5ca76e816dd9b909 | 5ea3ebf35a2059f50690e6eaed1918d5a6bc90f3 | /man/long2mids.Rd | c22ce7c11bb1f65369dbd88df5ca6a9a54113cd2 | [] | no_license | cksun/mice | 59ff1291ccaa305b882054da308a11bae4a4bdba | 2bcb306418db3a4469388b659c934c8f68f991a3 | refs/heads/master | 2020-12-11T09:23:06.251006 | 2014-04-07T18:38:37 | 2014-04-07T18:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 341 | rd | long2mids.Rd | \name{long2mids}
\alias{long2mids}
\title{Conversion of a imputed data set (long form) to a \code{mids} object}
\usage{
long2mids(x)
}
\arguments{
\item{x}{}
}
\value{
An object of class \code{mids}
}
\description{
Conversion of a imputed data set (long form) to a
\code{mids} object
}
\author{
Stef van Buuren, 2012
}... |
0f8864a4590900aed6a2b73bf3f313ed00e89895 | 03af0227dc9d978acdbd95a3437486ab10249704 | /dump_versions.R | 18ee998d1ca0c3d9621f24445df7d49ec204a9c2 | [] | no_license | pieterjongsma/circular-rjmcmc | dd68efaa5938410dfa442c3a91c484c12dcf156a | 66c9d6a2f8783f6f40478af46cd4171d75ff3437 | refs/heads/master | 2021-08-23T15:31:11.745521 | 2017-12-05T12:46:25 | 2017-12-05T12:46:25 | 112,741,111 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 157 | r | dump_versions.R | #! /usr/local/bin/Rscript --vanilla
library('gtools') # For defmacro
library('circular')
library('xtable')
library('Rcpp')
library('stringr')
sessionInfo() |
6a537546037e1644f91308ea3ec40a097230e3c1 | e0810ebeed1b0e5488443943115de7bfe83e1228 | /SIS/data_plotting/ode_comparsion.R | 06706e9b6d589059488801392d490b0c1832dd6c | [] | no_license | ksuchak1990/network-gillespie | eb9439bc9bfac7ad32f38d1f1f2aad50b69a392d | 38b4801b533ee1e8afd01970b58a7c02289d8954 | refs/heads/master | 2021-01-20T20:48:45.385406 | 2018-05-23T15:28:46 | 2018-05-23T15:28:46 | 62,816,946 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,202 | r | ode_comparsion.R | ### Simulation data
R <- 2000
# Import data, make workable dataframe
mydata <- as.data.frame(read.table("../output/output.txt"))
colnames(mydata) <- c("t", "state")
mydata$state <- strtoi(mydata$state,base = 2)
# Sort data by time
data_sorted <- mydata[order(mydata$t),]
# Find unique times
times_unique <- unique(dat... |
8efef42ecb3ff19ca4c0eaf54579d13378840e6d | 81436a57285b11749ecd5b3048f96a4b44604d1a | /utils/models/MICE_imputation.R | 621addf46dcadc46b8281c6163f7a018e856e656 | [] | no_license | ChayutWo/Nonparam-oridinal-nominal | 3c8ee1492ca711c03f43fab126b148a7dd94c1db | a9f2517741b9a800d21e412f499b5af7d429010d | refs/heads/master | 2023-05-04T07:32:11.854195 | 2021-05-20T03:12:51 | 2021-05-20T03:12:51 | 255,473,233 | 1 | 0 | null | 2020-06-08T19:08:39 | 2020-04-14T00:39:37 | Python | UTF-8 | R | false | false | 498 | r | MICE_imputation.R | library(mice)
MICE_imputation <- function(df_observed, n_imputations){
# Perform missing data imputation using MICE approach
# df_observed: observed dataset
# n_imputations: number of imputed dataset that want to generate
# return: imputation_list
# a list comprising of imputed datasets
imputed_df <- mice... |
c5ea357ed8207cee9055ec712cc565626e2384b4 | f2da63de512183804290bfcabfa60eaca3649e05 | /projects/miniCRAN/run_installpackages/code/run_installpackages.R | f5d14c432cf3c8e3d7e268576e0b07262798e199 | [] | no_license | paradisepilot/statistics | a94bb57ebe453d49c06815c523e8f633423cb68e | 50daf644baca1f40253edf91083ed42d4c5f9342 | refs/heads/master | 2022-07-25T16:19:07.751886 | 2022-06-26T21:18:38 | 2022-06-26T21:18:38 | 5,012,656 | 0 | 2 | null | 2019-04-22T06:52:55 | 2012-07-13T01:11:42 | HTML | UTF-8 | R | false | false | 4,898 | r | run_installpackages.R |
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
command.arguments <- commandArgs(trailingOnly = TRUE);
code.directory <- normalizePath(command.arguments[1]);
output.directory <- normalizePath(command.arguments[2]);
pkgs.desired.FILE <- normalizePath(command.arguments[3]);
setwd(output.directory);
### ~~~~~~~... |
e116d47ce4da6c628fc9ee5e60040c4f0f0a4b82 | 55e78caca6c071a161f4e9885a875de0bfb09378 | /man/cvar-package.Rd | 0997079dd0dbede2acba43765781e9264947974d | [] | no_license | GeoBosh/cvar | d3c5b8697809302f9803b191923e474a69f49800 | 207fd77ccc804123cd31126b2ce6d79402611754 | refs/heads/master | 2022-11-24T11:55:31.576486 | 2022-11-09T21:52:26 | 2022-11-09T21:52:26 | 128,628,020 | 5 | 3 | null | null | null | null | UTF-8 | R | false | true | 4,336 | rd | cvar-package.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvar-package.R
\docType{package}
\name{cvar-package}
\alias{cvar-package}
\alias{cvar}
\title{Compute Conditional Value-at-Risk and Value-at-Risk}
\description{
Compute expected shortfall (ES) and Value at Risk (VaR)
from a quantile funct... |
43589178c6130d2f53c56db136f4606fada248b5 | c74b4096a66df8d61a85aeef35daf17012befe12 | /Assignment 2/rprog_data_ProgAssignment3-data/best.R | 388f47ecd79e9e47094a35cddd90e4802775306c | [] | no_license | Amircrown/R | fe8e567584787e6febdce54add723a3b66c5d6ba | db75ac944a91dd482586fbecd7a60e631f695eaf | refs/heads/master | 2021-01-13T02:05:58.582657 | 2015-04-20T00:50:27 | 2015-04-20T00:50:27 | 33,512,599 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 917 | r | best.R |
# This is from deleteme 2
best <- function(state,outcome){
data <- read.csv("outcome-of-care-measures.csv", colClasses ="character" )
data1<- data[,c(2,7,11,17,23)]
if (outcome == "heart attack")
coloumn <- 3
else if (outcome == "heart failure")
coloumn <- 4
els... |
fca68df1477be039ee87adf5b676f4112bc94141 | c8fbccfe947a9643f0af1a4dc21ca8d090c06d3d | /01_dev-env.R | a4db984e6ee90ea01701515ba9883a11d7873074 | [] | no_license | rstats-wtf/wtf-dev-env | dd9cf2f32c788e2d8f59e87e1e59d06ca9288110 | a6f4989a8dce6a2803e7db35ba349fb0139ae476 | refs/heads/master | 2020-12-19T18:13:18.829532 | 2020-01-23T15:53:03 | 2020-01-23T15:53:03 | 235,811,386 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 319 | r | 01_dev-env.R | # Make sure you have devtools and the BRRR package installed
install.packages("devtools")
devtools::install_github("brooke-watson/BRRR")
# We will use has_devel to verify you have your system setup properly
# You will also need to turn on your speakers to hear the sounds
if (devtools::has_devel()) BRRR::skrrrahh(36)
|
90dbce7fc1118d7777f97d1566fd5665dac10aff | 6a54a5e5d8ec493a37f63a8f2fb2223d11b4e3b3 | /tests/testthat/test-src_dbi.R | 24d21a6efa7ab119135b31ac1b7b7efe0097c205 | [
"MIT"
] | permissive | WbGuo96/dplyr | 1b480906180de091d74942201a2ff4c12de4a38b | 1382b65c8cd5002d3ceb80e092fec9739bdbf02a | refs/heads/master | 2022-03-27T08:16:34.443466 | 2020-01-08T16:07:11 | 2020-01-08T16:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 216 | r | test-src_dbi.R | test_that("src_sqlite() errs if path does not exist", {
skip_if_not_installed("dbplyr")
expect_error(
src_sqlite(":memory:"),
"`path` must already exist, unless `create` = TRUE",
fixed = TRUE
)
})
|
b4547506431965ddcf6313839fa9894dc003d5a8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/InfoTrad/examples/EA.Rd.R | 779a47c5455f2ebb0fcba2342505cb0b37537195 | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,273 | r | EA.Rd.R | library(InfoTrad)
### Name: EA
### Title: Ersan and Alici (2016) Cluster analysis with the altered steps.
### Aliases: EA print.EA_class EA_class print
### ** Examples
# Sample Data
# Buy Sell
#1 350 382
#2 250 500
#3 500 463
#4 552 550
#5 163 200
#6 345 323
#7 847 45... |
277106a5aac2d87365e587a52105707622262e1e | 0fbc58702c39addfa7949391d92533922dcf9d49 | /inst/examples/plot-type-tikz.R | 8cfc2ed2bca09bae309a9cb0deddca27abd8a65d | [] | no_license | yihui/MSG | d3d353514464f962a0d987efd8cf32ed50ac901a | 8693859ef41139a43e32aeec33ab2af700037f82 | refs/heads/master | 2021-11-29T08:12:02.820072 | 2021-08-15T17:14:36 | 2021-08-15T17:14:36 | 1,333,662 | 30 | 12 | null | 2021-08-15T17:14:37 | 2011-02-06T05:42:53 | R | UTF-8 | R | false | false | 265 | r | plot-type-tikz.R | # 作图的九种样式
par(mfrow = c(3, 3), mar = c(2, 1, 3, 1))
for (i in c("p", "l", "b", "c", "o", "h", "s", "S", "n")) {
plot(c(1:5, 5:1), xlab = "", type = i, ylab = "", axes = FALSE,
main = paste("\\texttt{type = \"", i, "\"}", sep = ""))
box()
}
|
ff0dc627ba25cf567a9ecfe931017d294c8408b5 | 71c579f5f8ac72d7e3d21c77855b62690433c919 | /Documents/Git/Targil3/Ex3_1.R | 500e860f445d2e5e6d164ca36d26d4b259fd80fb | [] | no_license | hilakr/Text-Mining | 90ed7d2bcd5e89f29a1b9d693e19b1c2a7517498 | d4778d60d999c2bc756b9e210d77dae677f610b8 | refs/heads/master | 2022-02-20T07:49:22.768320 | 2016-06-12T15:59:20 | 2016-06-12T15:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,326 | r | Ex3_1.R | install.packages('igraph')
library(igraph)
require(igraph)
edges.data = read.csv('ga_edgelist.csv',header = T)
ga_edges = graph.data.frame(edges.data,directed = F)
summary(ga_edges)
V(ga_edges)$name
#Remove self-Loops is exist
ga_edges = simplify(ga_edges)
#Calculate betweenness
ga_bet = betweenness(ga_edges)
ga_b... |
04ac514730dc7742a1a938b3bfc912aae543c60b | 119eb210049745e82f058ab6cad13ccac892433c | /Script/week_6_assignment_RCH.R | ed662bda1a1ba20d6100c644c3a84eb2f29eb3de | [] | no_license | gge-ucd/r-davis-in-class-rchiggins | 52ec0a39f6b32d0a897d910fb76c9fa809b6ae30 | a39f50e3f11cb058ba5402dadd5dcd46d3572aaa | refs/heads/master | 2020-04-17T03:06:27.217967 | 2019-09-23T21:38:44 | 2019-09-23T21:38:44 | 166,166,768 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,291 | r | week_6_assignment_RCH.R | #Week 6 assignment
library(tidyverse)
gapminder <- read_csv("https://gge-ucd.github.io/R-DAVIS/data/gapminder.csv")
#1A Modify the following code to make a figure that shows how life expectancy has changed over time:
ggplot(gapminder, aes(x = gdpPercap, y = lifeExp)) +
geom_point()
ggplot(gapminder, aes(x = yea... |
8feaee9e154b74a1a35f4132dd5584c3ee4881ae | b6d08af0a15af8bd5974218eecf45b58ea194289 | /R_working_archive/pub_vf_analysis_regressions.R | 1a791fc2f8ed31194754c8da680c226fcd6527ac | [] | no_license | csjohns/pb-voter-turnout | dd9ecbb3c1d26529d86789f78b4f8a128caeca17 | 221dd06d6db0bde2e801d2a6f865575acec933d3 | refs/heads/master | 2021-05-23T05:01:35.410913 | 2021-02-24T06:33:23 | 2021-02-24T06:33:23 | 81,271,059 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 11,864 | r | pub_vf_analysis_regressions.R | #################################################################################################################################################
###
### PB and voter turnout: Regression analyses from matched dataset
### Calls the pub_vf_matching.R script and the pub_balance_checking.R scripts
###
### Created by: Car... |
3bc47d0bca4a85b424b1acc5945e8043ac824727 | b25823f5b05e403f791b2424729040fae485150f | /run_analysis.R | 70382501c8a426db48354233268c03bb7124ccf3 | [] | no_license | ErazeX/Gettingandcleaningdata | 275c5cd3930d21d21e8bf8ea7936b33bca0e3a62 | a1e4caa5d8c9c2107872370b54a4c4c20ef23500 | refs/heads/master | 2021-01-15T23:45:42.909806 | 2014-05-25T19:38:06 | 2014-05-25T19:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,318 | r | run_analysis.R | subject_test <- read.table("~/R working/UCI HAR Dataset/test/subject_test.txt", quote="\"")
X_test <- read.table("~/R working/UCI HAR Dataset/test/X_test.txt", quote="\"")
y_test <- read.table("~/R working/UCI HAR Dataset/test/y_test.txt", quote="\"")
subject_train <- read.table("~/R working/UCI HAR Dataset/train/subje... |
b0ace17596d7431ed5661ee781e92e204e39b3cf | 066ff002724a0fa18db0c4f2921d2a121b027c3e | /scripts/r/old/create_graph.R | c89e1a052ad64047bc233279c65d32a35be64da5 | [] | no_license | wri/demographic-identifier | a361afabc98eb0e1faa2f49ef0ccce2558a89068 | aa7228da11110375e46f63e648472bbec0c0551b | refs/heads/master | 2021-08-16T18:02:40.220571 | 2020-04-01T13:22:50 | 2020-04-01T13:22:50 | 144,755,460 | 26 | 2 | null | 2019-05-10T13:38:19 | 2018-08-14T18:06:04 | Jupyter Notebook | UTF-8 | R | false | false | 7,872 | r | create_graph.R | library(tidyverse)
library(ggridges)
figdata <- read.csv("master-scripts/output-wiki-pred-race.csv")
figdata$race <- as.character(figdata$race)
figdata$race[figdata$race == "GreaterEuropean,WestEuropean,Hispanic"] <- "Latino"
figdata$race[figdata$race %in% c("Asian,GreaterEastAsian,Japanese",
"Asian,Greater... |
53510432d7b62e39d118cbd8aea15688d814ab95 | 2d628fbf686e4dbf9284cd213dc2f7ef0e0ba758 | /plot3.R | 2a09b773798f2bc9fa4d622564ef330fe2aadcef | [] | no_license | ssendhil/ExData_Plotting1 | dbdca063207520107f3ef8e297b43ecc67d30775 | e0be507716fb7261cfb6dcd94f33adaf8c7e6f7a | refs/heads/master | 2020-06-13T18:25:56.237191 | 2019-07-02T00:56:29 | 2019-07-02T00:56:29 | 194,748,502 | 0 | 0 | null | 2019-07-01T22:00:29 | 2019-07-01T22:00:29 | null | UTF-8 | R | false | false | 1,017 | r | plot3.R | setwd("~/Desktop/Coursera/4_Exploratory_Data_Analysis/Project 1")
plot3_data <- read.table("household_power_consumption.txt", header = T,
sep = ";", na.strings = "?")
# Fix dates
plot3_data$Date <- as.Date(plot3_data$Date, format = "%d/%m/%Y")
# Subset the data
plot3_data_subset <- subset(p... |
9c0369912e20acfd7860b3b36467a6419930dc2e | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/gtfsrouter/tests/testthat.R | 336a8901746b2072277b7255aef547710e171a81 | [] | 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 | 64 | r | testthat.R | library(testthat)
library(gtfsrouter)
test_check("gtfsrouter")
|
ab34bac0fdedbff8adc080a49addf188c2ce32ce | 5e7733232f464b41fc94a3ba19fc2dc46a64ca8f | /bc.R | e8156f8b913675aedeb2c365c10d4fac0e1ac974 | [] | no_license | ryninho/functions | 5e6d345d70ad4b1a8434fa5fbe5ea4917f3bc020 | 78c13a7e833bef62eafb52bcfd6207629ea9cf4b | refs/heads/master | 2021-01-17T07:25:35.195697 | 2017-10-02T04:07:53 | 2017-10-02T04:07:53 | 20,424,099 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 422 | r | bc.R | #' Calculate the Bhattacharyya coefficient of a pair of discrete distributions.
#'
#' https://en.wikipedia.org/wiki/Bhattacharyya_distance
#' @param p,q Vectors of probabilities.
#' @return The Bhattacharyya coefficient of \code{p} and \code{q}.
#' @examples
#' bc(c(.5, .25, .25), c(1, 0, 0))
#' bc(c(.2, .6, .2), c(.4... |
9a23161a8ac3bfebe0cd5c855e4554e4d1738fd0 | 51f38bc84a50b94f8e52eb368565fd521b17ac38 | /sampleFromTau2Dist.R | 2bd50c4c34eab361fb50841a61192d4e6bb9ba69 | [] | no_license | tlafarge/NICOB_app_public | ce1bc91c0538eed48ea889566ea03b0170385d77 | 0389374a0cbf7f43abb26fd8c3158bd7ebcacf37 | refs/heads/master | 2022-09-13T14:59:19.784305 | 2022-09-01T21:10:16 | 2022-09-01T21:10:16 | 235,769,104 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,310 | r | sampleFromTau2Dist.R | ######################################################################
##
## FILE : sampleFromTau2Dist.R
##
## AUTHOR : Amanda Koepke & Antonio Possolo
## MODIFICATION: 2016-Mar-31
##
## INPUT : y = Numeric vector with values measured by the labs
## sigma = Numeric vector with standard uncertainties... |
1eceaa4cadf4d5421719fd32fd20cf2f5dd9f9fb | 2805259234d195d4982709427e7301092c1cf951 | /R/asn.R | 3be691c03bf14bdd41624c7a6ad10d273cd2a373 | [] | no_license | hrbrmstr/cymruservices | d5d1c30290179225d24a30ef1f13550380479de3 | 6bdde182f4555b2a8e40f5d24aac210f9a185b9d | refs/heads/master | 2021-01-17T13:07:16.606407 | 2018-09-16T17:05:03 | 2018-09-16T17:05:03 | 39,524,054 | 7 | 4 | null | null | null | null | UTF-8 | R | false | false | 9,654 | r | asn.R | # the documented, memoised versions of these are at the bottom
.bulk_origin <- function(ips, timeout=getOption("timeout")) {
host <- "v4.whois.cymru.com"
port <- 43
# setup query
cmd <- "begin\nverbose\n"
ips_c <- paste(unlist(ips), collapse="\n")
cmd <- sprintf("%s%s\nend\n", cmd, ips_c)
# setup conn... |
a5e10d5c5a8280befcd900415ebda08957b1db8f | 0c97842a4b2465063c91dc82748f6376e0bb0f9e | /man/dict_all_geocomponent_2010.Rd | eb25671d6bb6774dee42cf7e5177b97106a45d17 | [] | no_license | raivtash/totalcensus | dcc2b11a03273b8a66af0b0417187c903cbc2195 | a9542819a58081e7978c0f8b99c02b32d0d1040b | refs/heads/master | 2020-04-10T10:59:27.234397 | 2018-12-08T15:13:37 | 2018-12-08T15:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 824 | rd | dict_all_geocomponent_2010.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_acs.R, R/data_decennial.R
\docType{data}
\name{dict_all_geocomponent_2010}
\alias{dict_all_geocomponent_2010}
\alias{dict_all_geocomponent_2010}
\title{List of all geographic components, 2010 version}
\format{A data.table with 114 rows a... |
fa666656370fa3606bbbcef0bdd2fe1e31752211 | ab06f734214a5d90724da9389932a653845079cd | /run_analysis.R | 9595ca3b9b0a82fd8ee31f2e8e4ad1331fa9deba | [] | no_license | jlabeaga/coursera_clean_data | 3eb4cdbb8dcc106079415bc43059dd9db7689a9c | e2c7153e2d6ee4b089cb4a97df848019293b53db | refs/heads/master | 2021-01-10T09:50:02.517398 | 2016-02-27T11:34:18 | 2016-02-27T11:34:18 | 52,613,893 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,049 | r | run_analysis.R | library(plyr)
# ===============================================================================
# Step 1:
# Merges the training set (read from X_train.txt) and the test set (read from
# X_test.txt) to create one data set.
# ===============================================================================
# read train ... |
308e7d72c86317a1b654df53c54100120d563100 | c267b09529ad20ba29c23b9922cbb94ce5b2e2d8 | /man/createGroupFromInput.Rd | f886b8b5a32504d516f116d28497fdab6bf9623e | [] | no_license | IlyaFinkelshteyn/psichomics | 7f004cffcdabf028ef3094b3a6a6b290fb377cd4 | a7f2db7954f6962ff7a487369c7b367a1d999daa | refs/heads/master | 2021-01-11T06:08:04.688256 | 2016-09-24T01:40:53 | 2016-09-24T01:40:53 | 69,070,120 | 0 | 0 | null | 2016-09-24T00:37:37 | 2016-09-24T00:37:36 | null | UTF-8 | R | false | true | 604 | rd | createGroupFromInput.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/groups.R
\name{createGroupFromInput}
\alias{createGroupFromInput}
\title{Set new groups according to the user input}
\usage{
createGroupFromInput(session, input, output, dataset, datasetName)
}
\arguments{
\item{session}{Shiny session}
\item... |
561cca0705692f9d7976f319ae489f7f0a916ec2 | ae7f71577a5d730d7712ba6aa196d770827c28f1 | /ngs/R/mergeRData.R | c9c9ff884087a071ce0fef90876284d9c287fbb9 | [] | no_license | plijnzaad/phtools | e688b036e72734512159dc1cede1305394910284 | 650edbc855c9772662cda34f67fae15b070437e5 | refs/heads/master | 2023-04-07T03:37:06.355512 | 2023-03-23T12:23:15 | 2023-03-23T12:23:15 | 46,286,525 | 5 | 5 | null | null | null | null | UTF-8 | R | false | false | 3,190 | r | mergeRData.R | #!/usr/bin/env Rscript
## merge objects found in an .RData file into a big RData file.
warning("Running on host ", Sys.getenv("HOSTNAME"), "\n")
library(parseArgs, verbose=FALSE)
usage <- function()warning("Usage mergeRData [--regexp '^.*$' ] --out totals.rda *.rda
Merges objects inside RData files using the c() ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.