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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2355bed6ba3bbfbb2b5804ed92f2075fcdd07e9 | d68441b6311721a84d0210c371a1a94b2eb5f261 | /R/cbind.fill.R | a2f4307a90770b50d80c27974ff614dfcf95bc10 | [] | no_license | jasdumas/dumas | 0e787cb29037cbfac331af108cff0f28c758b513 | 84aedfdd0e095e3a20d07877120a86e7b5d64f8b | refs/heads/master | 2020-04-06T05:37:36.930368 | 2017-07-17T19:24:24 | 2017-07-17T19:24:24 | 38,554,253 | 3 | 2 | null | null | null | null | UTF-8 | R | false | false | 624 | r | cbind.fill.R | #' cbind.fill
#'
#' returns a data.frame joined by columns but filled with NA's if the values are missing
#' @param ... data.frame objects needed to be combined by columns
#'
#' @return a data.frame
#' @export
#'
#' @examples
#' x = data.frame("x1" = c(1, 2, 3))
#' y = data.frame("x1" = c(1, 2), "y1" = c(1, 2))
#' cbin... |
04a8e7cf5be47a4f25b3528bbe3a3dd9aae2bbb7 | 7561c7a2bda45a2cbcccd9e22cc4135ac1e711bc | /Fishers_Criterion.R | 6eb2bccb7e8b70fadcb85ea6b40e170550d710c1 | [] | no_license | a30123/R | 10cc9e071f75e55a96320e5b078f102d83c86a23 | 6f5280874eb5c0c7eeb9ebaf1299a77bfbc822af | refs/heads/master | 2020-05-17T15:24:01.282712 | 2016-01-29T07:01:22 | 2016-01-29T07:01:22 | 34,438,393 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,188 | r | Fishers_Criterion.R | #setwd("D:/20150602")
#Fisher's criterion function
Fisher_cri = function(y,feature){
x_1 = feature[ y== unique(y)[1]]
x_2 = feature[ y== unique(y)[2]]
j = (mean(x_1)-mean(x_2))^2 / (var(x_1)+var(x_2))
return(j)
}
#test
y = sample(x = c(0,1),size = 100,replace = T)
feature = rnorm(100)
Fisher_... |
15c1d15ddeb8395cca128430efae91620eca2384 | c4a36c8bd4aac9b17904b1db90d0196f994da8b7 | /CFBavgprobit.R | f78a3731d0d04907bce6575b810c13b595fae0bb | [] | no_license | lizerlfunk/categoricaldatacollegefootball | 01c8be4d7cfb4a22d184be9cdc9a35ba22bfe758 | b58dcf6f3a68ef3a1687ac4c50431478f09da4c6 | refs/heads/main | 2023-03-08T03:46:45.951795 | 2021-02-24T03:55:41 | 2021-02-24T03:55:41 | 341,772,458 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,787 | r | CFBavgprobit.R | CFB2019 <- read.csv("~/OneDrive - SectorShield Inc/2020 Summer/CFB2019-v2.csv")
View(CFB2019)
attach(CFB2019)
Vars18 <- c("Pass.Yards.Per.Game.Allowed","Penalty.Yards.Per.Game","Avg.Yards.Per.Punt.Return","Avg.Yards.Allowed.per.Punt.Return","Rushing.Yards.per.Game")
Data18 <- CFB2019[Vars18]
names(Data18)[1:5]=c("x1"... |
71517705787d2d44cd3e02412e75f7c51e13174f | 8d81ecafe5095bd5b180d5e1c9d871c66b6a8f76 | /rrapply/63_grolemund_list_columns.R | 549ac98ee8217ef4d478dc074644fe51cdeffc16 | [] | no_license | jimrothstein/try_things_here | 0a3447b5578db293685fb71c7368f1460d057106 | d2da5ce3698dd21c2fe1a96c30f52cefe6f87de4 | refs/heads/main | 2023-08-28T08:55:43.314378 | 2023-08-25T23:47:23 | 2023-08-25T23:47:23 | 98,355,239 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,926 | r | 63_grolemund_list_columns.R | # REF: video-
# https://resources.rstudio.com/webinars/how-to-work-with-list-columns-garrett-grolemund"
library(tidyr)
#library(babynames)
x <- c(1L, 2L, 3L)
typeof(x) # integer
# Create new data types by adding class or other attribute
# Date
# make it Date (actually S3)
class(x) <- "Date"
# but still integer... |
c37848131ebbcf85eea5ade9cf11292b3d811907 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Ultimixt/examples/K.MixPois.Rd.R | 0588a908c2ca4566b7f665c5a0063a04766b5196 | [] | 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 | 563 | r | K.MixPois.Rd.R | library(Ultimixt)
### Name: K.MixPois
### Title: Sample from a Poisson mixture posterior associated with a
### noninformative prior and obtained by Metropolis-within-Gibbs sampling
### Aliases: K.MixPois
### Keywords: Poisson mixture model Non-informative prior
### ** Examples
#N=500
#U =runif(N) ... |
8771603289c9037d0cf184f02a7e96f565e30343 | 2e731f06724220b65c2357d6ce825cf8648fdd30 | /dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612727870-test.R | 5484df2bbdc388692c6b2c35c57ceedc25308c0d | [] | no_license | akhikolla/updatedatatype-list1 | 6bdca217d940327d3ad42144b964d0aa7b7f5d25 | 3c69a987b90f1adb52899c37b23e43ae82f9856a | refs/heads/master | 2023-03-19T11:41:13.361220 | 2021-03-20T15:40:18 | 2021-03-20T15:40:18 | 349,763,120 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 780 | r | 1612727870-test.R | testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = -1L, item_score = c(-1802201964L, -1802201964L, -1802201964L, -1802201964L, -1802201964L, 1397053520L, 673866607L, 1853252978L, 1951690561L, 1819552040L, 1668247155L, 1948271464L, 1634885987L, 1952805462L, 1701016687L, 1915103636L, -1802201964L, -180... |
7fb4a5ea216283f662b8c5fc70db6a972e34acc3 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/aplpack/examples/slider.lowess.plot.Rd.R | 986119dbdfd1fba8520393485d176cbde2b43c2f | [] | 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 | 316 | r | slider.lowess.plot.Rd.R | library(aplpack)
### Name: slider.lowess.plot
### Title: interactive lowess smoothing
### Aliases: slider.lowess.plot
### Keywords: iplot
### ** Examples
## Not run:
##D ## This example cannot be run by examples() but should be work in an interactive R session
##D slider.lowess.plot(cars)
## End(Not run)
|
24db295d943e119150a09fdee01c68c1ca87b052 | 7a018a314f4a5c80be897e7ef52e659da937debd | /plot3.R | 2441ebad47cac518492880033be75839dcd76d2c | [] | no_license | RedTigerbear/ExData_Plotting2 | b2c45411feb4b86d5e4df959cd15db62b3044832 | 14668c3d0746defd930864631c5bb20c1702bc32 | refs/heads/master | 2016-09-10T15:16:29.423234 | 2015-05-15T10:46:18 | 2015-05-15T10:46:18 | 35,280,773 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,218 | r | plot3.R | ## Set locale to English
Sys.setlocale("LC_TIME", "English")
## Get file with data
FileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
if (!file.exists("NEI_data.zip")) {
download.file(FileUrl, destfile = "NEI_data.zip", method = "curl")
}
unzip("NEI_data.zip")
## Get data
NEI <- readR... |
0c8afbc318501f1b9203e9accf3e614adc327ff0 | 0a69c354a77a56ad5dac93967d2576e10fefffd5 | /s3/buckets/templates/1/r/code/main.R | c64e020711273ecf532665efc0c1ce0fee0c257b | [] | no_license | codeocean/private-cloud | 524f1e87b596af268f4319f1138ee2c41c4ce075 | 5fcb541485e04a05cc84384f9dac8271027f291d | refs/heads/master | 2021-09-16T23:51:17.414464 | 2021-05-24T11:35:25 | 2021-05-24T11:35:25 | 244,925,666 | 2 | 0 | null | 2021-08-12T02:25:47 | 2020-03-04T14:46:03 | TypeScript | UTF-8 | R | false | false | 1,034 | r | main.R | # Install and load ggplot2 R package
library(ggplot2)
# get command line arguments
args <- commandArgs(trailingOnly = TRUE)
# check the amount of arguments
if (length(args) >= 3) {
plot_title <- args[1]
number_of_cycles <- args[2]
input_data <- args[3]
} else {
plot_title <- "Hello Code Ocean"
number_of_cyc... |
989b2b41d4d667aa3af97a825800d82907012622 | c26a15db12227206fe363d3807ca2b192f4df2bc | /man/lzo-test.Rd | 52638f7bfe02def20c0e59bb90e25d822a2f7ae4 | [] | no_license | cran/RTisean | 52f3e67f0b18f8ed9a141841b70170fa43cf4e50 | f819f6b88aa814cdaa5d1d2f1411cee105c978d2 | refs/heads/master | 2021-01-01T05:49:40.303232 | 2011-12-29T00:00:00 | 2011-12-29T00:00:00 | 17,692,991 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,009 | rd | lzo-test.Rd | \name{lzo.test}
\alias{zeroth} %old routine name
\alias{lzo.test}
\title{ Modeling data trough a zeroth order ansatz }
\description{Makes a zeroth order ansatz and estimates the one step prediction errors
of the model on a multivariate time series.}
\usage{
lzo.test(series, l, x = 0, m=c(1,2), c, d = 1, n, S = 1, k = ... |
2350cbfcdeca1156ffcce32cdba18bd9440b9fc1 | c11aa641eb4e619f40ec9e68883c11f362ed8ee4 | /man/is_GSVD_gsvd.Rd | 8084b58eb808a9a407817ca7a1810e7dbdf99b36 | [] | no_license | derekbeaton/GSVD | d27e4c1a70f74dd8fb94b5d5d7e17995da354e83 | 0f41cf29bcdcadc6c3a45847427df83e5226ceb3 | refs/heads/master | 2023-04-15T07:28:59.832285 | 2020-12-29T23:06:30 | 2020-12-29T23:06:30 | 152,910,640 | 18 | 6 | null | 2023-04-08T14:17:44 | 2018-10-13T20:14:45 | R | UTF-8 | R | false | true | 475 | rd | is_GSVD_gsvd.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/class_methods_helpers.R
\name{is_GSVD_gsvd}
\alias{is_GSVD_gsvd}
\title{is_GSVD_gsvd}
\usage{
is_GSVD_gsvd(x)
}
\arguments{
\item{x}{object to test}
}
\value{
boolean. \code{TRUE} if the object is of class gsvd, FALSE otherwise.
}
\descriptio... |
d8797538f9a99373fc8b1d27de0ea5c49a5bedfa | ad474589dc5f3ec309b89faff60984d662b63861 | /tests/test_helper.R | 83ecd767eb3e97b65e4cb0e69b4cb89f29f345a3 | [] | no_license | massgov/bradford | 553d97b7f0d9bee2d740662d3ddf6e83acc3d66c | dd3e7f085314db1b6f027287b9f07b62387a3451 | refs/heads/master | 2021-05-01T04:28:44.048186 | 2017-03-20T21:05:24 | 2017-03-20T21:05:24 | 73,943,412 | 0 | 1 | null | 2017-03-20T21:05:25 | 2016-11-16T17:20:20 | CSS | UTF-8 | R | false | false | 6,031 | r | test_helper.R | library(testthat)
library(methods)
source("../functions/helper.R")
context("Helper functions")
test_that("factorPercentage fails on incorrect input", {
factor.vec <- factor(c("cats", "cats", "dogs", "rabbits"))
expect_error(factorPercentage(factor.vec = list()))
expect_error(factorPercentage(factor.vec = factor... |
621d133e176bc785d6ea70aba67b8ac821e7e982 | 7db08f13e152824a3c12a2620ef22b1a19c9e810 | /_in-progress/prop_var.R | 68d362d3d46f69bb7bd45c7786799174b1d2ba6b | [] | no_license | stenhaug/kinedu | 53db9caeabcb21a523fdc8866790b3551eeee4f1 | 35db19a7378e278a8c3957a78ebffa4e646f6455 | refs/heads/master | 2022-11-23T10:22:02.671958 | 2020-07-30T22:32:10 | 2020-07-30T22:32:10 | 267,909,431 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,388 | r | prop_var.R |
model <- results$model_full[[4]]
rotation <- "varimax"
library(tidyverse)
library(mirt)
d_mat <- read_rds(here::here("data-clean/d_mat.rds"))
mirts <- read_rds(here::here("02_mirts_2_add_5.rds"))
bifactor <- read_rds(here::here("02_bifactors.rds"))
full <-
bind_rows(mirts, bifactor) %>%
rename(out_... |
d67570bb365ff2876c232bd3675c6fb430976a87 | 3f183be77d1083af606a56db1cbd66eea97dde3d | /Shiny/Endpoint/server.R | afb97e92a2cd3b9347aee8b0f3dd15f225ab40c2 | [] | no_license | therandomwa/BERDShiny | 0ed361abc338c014ac22b3f689e7cb8e4b47b419 | e9e0d20fe2c0233039dc06738524e79f4e363d53 | refs/heads/master | 2020-09-06T00:57:04.910263 | 2019-11-19T16:18:44 | 2019-11-19T16:18:44 | 220,264,944 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,781 | 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(tidyverse)
library(plyr); library(dplyr)
library(viridis)
library(plotly)
server ... |
d2e6bb392da3a02eb302c2097fa4d7bb7cdac50a | c1045ee07cd88d40fa35df9bad13773b72e69994 | /R/zz-rascunho.R | a21aad713a6ed605a2b4e8a53f3cac18ff8df980 | [] | no_license | curso-r/stn-caixa | fba2fd3035e728dcc429bb4c2cf17848a2c832ec | 58af2946553aef69365c39e1a56327523daf688f | refs/heads/master | 2022-09-17T18:24:45.824523 | 2020-05-29T07:16:21 | 2020-05-29T07:16:21 | 223,437,254 | 1 | 3 | null | 2020-03-11T13:58:00 | 2019-11-22T15:56:27 | HTML | UTF-8 | R | false | false | 1,729 | r | zz-rascunho.R | library(tidyverse)
library(data.table)
obrigacoes <- read_rds("data/obrigacoes.rds")
# exemplos de documentos
obrigacoes %>% count(ID_DOCUMENTO, sort = TRUE)
obrigacoes %>% filter(ID_DOCUMENTO == "200109000012019OB802321") %>% select(-starts_with("ID_"), - starts_with("CO_")) %>% View(title = "obrigacoes")
obrigacoe... |
e3c5b6311196ee910dfc99d88f7723c728877bb2 | 6fd0155b54c02014e7cb6ab955ccf5f3a125eb4d | /data-raw/gse68456-reference.r | 9586296726c80150502a50f8c5411b8fd6d1a5a0 | [
"Noweb",
"Artistic-2.0"
] | permissive | perishky/meffil | 736f2576e50063074d5260a3115686664fbb1d98 | 7788be938877ff9367d33bb02169c09142e1d49c | refs/heads/master | 2023-06-08T17:18:38.127236 | 2023-05-26T08:30:06 | 2023-05-26T08:30:06 | 30,215,946 | 41 | 25 | Artistic-2.0 | 2023-03-28T14:43:58 | 2015-02-03T00:11:11 | HTML | UTF-8 | R | false | false | 2,238 | r | gse68456-reference.r |
#' Defines cell type reference "cord blood gse68456"
#' from the GEO repository GSE68456
#' for estimating cord blood cell counts.
retrieve.gse68456 <- function(dir) {
wd <- getwd()
on.exit(setwd(wd))
setwd(dir)
cat("Downloading data ...\n")
filename <- "gse68456.tar"
download.file("http... |
1bf7b89f848ca0055e93f0e2034c85879088c125 | f871ea0fdfc0ba93e65037f28090fb0a60513bec | /FACS_umaps/fig1b_c_7.16.R | 52cf710edde196c5fd05bf352ecefe3016346d7c | [] | no_license | jcooperdevlin/RewildedMice | 8b838ff2831ea5f3e8432859dbb8c1631ab142c5 | fd95ba111a3c2127939c85e336091de78fa724c1 | refs/heads/master | 2023-03-07T08:45:19.141349 | 2020-04-06T14:16:53 | 2020-04-06T14:16:53 | 340,936,220 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,167 | r | fig1b_c_7.16.R | ### Plot figure 1b and c indiv umaps and some boxplots
### 6.25
setwd("/Volumes/lokep01lab/lokep01labspace/Rewilding_Data/int/FACS_umaps")
library(ggplot2)
library(reshape)
library(ggsci)
library(gridExtra)
colors_clusters = c(pal_d3("category10")(10), pal_d3("category20b")(20), pal_igv("default")(51))
ramper_basic ... |
d51a39929ddf31b6e169e6556ac3d631c6202f7a | 89f09607d51b2552f05465d7325e235fe376ba19 | /f3_DStat_qpWave/sharedDriftOutgroupF3Map.R | 35edf7073c83c0d7f3e40ae4c185ef81477e17ca | [] | no_license | weigelworld/north_american_arabidopsi | d0e68bcd749ffa4634c154e884d49e05d807b777 | 00cb7750fe04e1246d2bcb3bd058cca23b3d8f03 | refs/heads/master | 2023-05-30T12:37:11.772765 | 2021-06-10T05:00:36 | 2021-06-10T05:00:36 | 375,575,979 | 6 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,518 | r | sharedDriftOutgroupF3Map.R | #usethis::edit_r_environ() #put admixtools path in there
library(admixr)
###################################################
library(maptools)
library(ggplot2)
library(ggthemes)
library(raster)
library(akima)
library(wesanderson)
###################################################3
#import data
snps <- eigenstrat("/mnt... |
3b3c8848aa2bf9c4797d35419705ccae4843e2ef | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /ClusterStability/man/ClusterStability.Rd | b735865bc4f4a2b78ed079d68ba6d2a9d0300888 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,444 | rd | ClusterStability.Rd | \encoding{ISO-8859-2}
\name{ClusterStability}
\alias{ClusterStability}
\title{Calculates the approximate stability score (\emph{ST}) of individual objects in a clustering solution (the approximate version allowing one to avoid possible variable overflow errors).}
\description{This function will return the individual st... |
e5ac5b215b733c135ed246efcac27e70f34464e1 | eb9883eda588ca0d115fe22595b7c861d29b8cd5 | /Web Scraping/Web Scraping.R | c93566533ba34f829a435e078aeb9eeb9f23f776 | [] | no_license | Nikita-data-scientist/Projects | 0bff1005c17a2a47552cc30ac5e1999285031c0e | 5ab13da8e3f01facffd43c6524bce39e57a45c3f | refs/heads/master | 2021-06-21T11:28:45.543810 | 2017-07-30T15:56:05 | 2017-07-30T15:56:05 | 93,074,266 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,483 | r | Web Scraping.R | library(rvest)
url <- ("http://www.imdb.com/search/title?count=100&release_date=2016,2016&title_type=feature")
#Чтение html-страницы
webpage <- read_html(url)
#Использование CSS селектора для сбора рагнов фильмов
rank_data_html <- html_nodes(webpage, '.text-primary')
#Конвертация rank_data в текст
rank_data <- html... |
3d0b91fce6d3f33224288cebf62414a648a5e767 | 18e521773cd8dcb9e5983982b4c59cdc657f0ecd | /DataCamp R/datacamp notes.R | 39bf8ef3f0aa0cc5d8eca894768a327bcd54a572 | [] | no_license | dblosqrl/learning2017 | 2a3a87742415a1a855f7300f59800a5afa6049a8 | 20e5347e785dc71636acebb5d585f7d3b7b109db | refs/heads/master | 2021-05-14T14:18:13.615414 | 2018-01-02T03:41:20 | 2018-01-02T03:41:20 | 115,968,138 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,028 | r | datacamp notes.R | # Intro to data - R notes
install.packages('openintro')
install.packages('dplyr')
install.packages('ggplot2')
install.packages('tidyr')
library(dplyr)
library(openintro)
data(hsb2) # use this syntax to load into environment, don't need the assignment
str(hsb2)
data(email50)
str(email50)
?table
?ifelse
# Calculat... |
116282f0c961740e8776da2ff53fa3e2e4ce36e5 | a641e294f9525468294a2b702a5370d88b4e402d | /experiments/2017-03_def_fitting/rmse_err.R | 69e32ceabec6c4aebf30f1690ef5936d25d3adc7 | [] | no_license | tambu85/misinfo_spread | 252b5c010b59c3a2cac7795331364916feb73bb2 | 3911892e40075ab118a5eb848f38f0806b60d266 | refs/heads/master | 2023-02-23T14:16:41.101763 | 2023-02-15T18:30:41 | 2023-02-15T18:30:41 | 44,867,463 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 6,173 | r | rmse_err.R | library(reshape2)
library(ggplot2)
library(plotly)
setwd("~/Desktop/fit/fitting_data")
files=list.files("~/Desktop/fit/fitting_data")
# Function that returns Root Mean Squared Error
rmse <- function(error)
{
sqrt(mean(error^2))
}
seg_b_rmse <- vector()
seg_f_rmse <- vector()
noseg_b_rmse <- vector()
noseg_f_rmse ... |
54dbe804713a3cb17704469c55985d8a64865da5 | a981c72c198a24e55f8c6b008033edb6c419011a | /r-programming/week-4/programming-assignment/rankhospital.R | 2e747964942a106931bc90ba4c83ac88df483dc1 | [] | no_license | antoinemertz/datasciencecoursera | db9bc3a1180ffc53fb1fbc5496d66479c832f410 | 5ba1e621b2fb99d07927300aa71a0341722a0d62 | refs/heads/master | 2021-01-22T21:27:59.092110 | 2018-07-03T17:32:15 | 2018-07-03T17:32:15 | 85,433,280 | 0 | 0 | null | 2018-07-03T17:32:16 | 2017-03-18T21:30:31 | HTML | UTF-8 | R | false | false | 1,407 | r | rankhospital.R | #setwd("Documents/Perso/Perso/Coursera/Data Science - John Hopkins/datasciencecoursera/ProgrammingAssignment3/")
rankhospital <- function(state, outcome, num = "best") {
library(dplyr)
# read csv file
df <- read.csv("data/outcome-of-care-measures.csv", colClasses = "character")
# check that state is valid
... |
e12c1f0933e2159bc880131372296c41c0c02ace | b2f61fde194bfcb362b2266da124138efd27d867 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Kronegger-Pfandler-Pichler/dungeon/dungeon_i15-m7-u4-v0.pddl_planlen=20/dungeon_i15-m7-u4-v0.pddl_planlen=20.R | 55322250e451f9eff64ff679d1550f149ecacd85 | [] | 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 | 88 | r | dungeon_i15-m7-u4-v0.pddl_planlen=20.R | 927c0d7c4c021f5bf42b728097d48371 dungeon_i15-m7-u4-v0.pddl_planlen=20.qdimacs 6293 25663 |
d4473150eaf0e6cea7b1507634412b00aae929da | 681d96f700665b54e841219de5f872b853c22477 | /dataframes_plots.R | a3e8ff39b8555182d7c5a5a7135d662136765d1f | [] | no_license | hylsonk/TrabalhoAD | 28aac918e88018a1949a6be5392dc2e88cd5aabc | 47b338fccd806475ddd5cf5adf760fe4706d5005 | refs/heads/master | 2020-09-24T01:46:26.100125 | 2019-12-24T00:50:07 | 2019-12-24T00:50:07 | 225,632,878 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 674 | r | dataframes_plots.R | f1 <- function(n) {
eixo_x <- numeric()
eixo_y <- numeric()
for (i in 0:n) {
print(i)
eixo_x[i] <- i
eixo_y[i] <- (n-(i-1))
}
data.frame(eixo_x, eixo_y)
}
df=f1(5)
df$eixo_x
df$eixo_y
#plotar gráficos (x, y, tipo de grafico, label do eixo x e y, titulo do plot, cor do plot)
plot(df$eixo_x, df$eixo... |
79ef6fa9ff0aa72560e0823142af5529e4167429 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Haplin/examples/output.Rd.R | 199eba4dfe62247d77527bbed8abfe8f38ea1b51 | [] | 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 | 394 | r | output.Rd.R | library(Haplin)
### Name: output
### Title: Save files with summary, table, and plot from a haplin object.
### Aliases: output
### ** Examples
## Not run:
##D
##D # Run haplin and save results in separate files
##D # in the c:\work\haplinresults directory:
##D res <- haplin("data.dat", use.missing = T, maternal ... |
57b06b64eaded6097976a970a18016b7d72337b9 | cee6e1465fa98f6dcb12f936130ab4e625fe8c84 | /cachematrix.R | b3183107565effa507dab158454f0581806a15d1 | [] | no_license | chujustin/ProgrammingAssignment2 | 174c826d05411b643b496d0e1e52abdb16ec8757 | 810a42a79c0f94a76a0055af1b71e3db91e0cfad | refs/heads/master | 2020-08-17T20:47:40.838600 | 2019-10-18T04:15:55 | 2019-10-18T04:15:55 | 215,710,479 | 0 | 0 | null | 2019-10-17T05:32:01 | 2019-10-17T05:32:00 | null | UTF-8 | R | false | false | 976 | r | cachematrix.R | ## These functions cache the inverse of a matrix, so that if it is cached, it
## does not need to be computed again, which is useful for costly/big
## computations.
## This function creates a list that sets and gets x and the inverse of x.
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
set <- f... |
7dae62ea127bc9d8889a8a62a751f17f4151fc7b | 7225139edc69f95a358143b6da98dee0d8dd83b4 | /r_kkagi/ch04_ex01.R | 801156dca3881b91645e5b03ea1e8a28b0db9ef9 | [] | no_license | diligejy/r_train | 57512fb571fcef4bdc63e3fccdc8d304ff020024 | 925bb9fea85151a4e1be8ddc9ced3e48a3d789a8 | refs/heads/master | 2022-12-16T06:44:49.017734 | 2020-09-16T10:04:42 | 2020-09-16T10:04:42 | 258,130,049 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,820 | r | ch04_ex01.R |
# 데이터 로드
DF <- read.csv('C:/Users/jinyoung/Pictures/example/example_studentlist.csv')
# 데이터 확인
head(DF)
str(DF)
# 기본 plot
plot(DF$age)
# 상관관계 파악하기
plot(DF$height, DF$weight)
plot(DF$weight ~ DF$height) # 두 가지 모두 같으나 이 방법은 정규식을 쓰며 종속변수 ~ 독립변수 적어주면 됨
# 명목형 변수와 수치형 변수의 관계계
plot(DF$height, DF$sex)
plot(DF$sex, DF$weig... |
75098ae1a75e21b2c037326359b793451ffc91aa | 740d61a6181e12753c10a83bf7c6ee13541744ac | /Сбор данных в интернете/14/11-jump_follow.R | 3d3757191ae2643d6ec45085d7867b9b96a782d1 | [] | no_license | kn7072/R | d566efd2410421b4333b8666bfc99ce90c2cbec7 | 142f3d51d2beff767896c43307881be6f9a64fee | refs/heads/master | 2021-01-11T11:07:02.972657 | 2017-02-05T16:59:29 | 2017-02-05T16:59:29 | 72,877,223 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 219 | r | 11-jump_follow.R | # Навигация.
library(rvest)
s <- html_session("http://hadley.nz")
s$url
s <- s %>% follow_link("github")
s$url
s <- s %>% back()
s$url
s <- s %>% jump_to("http://recipes.had.co.nz/")
s$url
session_history(s)
|
c162dbc53eb10e98b37052d2590f5f9c9569f211 | 95f623500066946fbc6fe4951195fc55d3567289 | /2020/scripts/day_16.R | 2bb4c7d6df51ae54a4118784144afaedcd622675 | [] | no_license | dzhang32/advent_of_code | cdb148fd5a599bcea57e3b725d28f761bf1ef0b7 | 52e06cfb2808db069b465031b6dc990640b6e1af | refs/heads/master | 2023-02-05T20:26:38.812659 | 2020-12-27T17:36:11 | 2020-12-27T17:36:11 | 319,388,437 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,866 | r | day_16.R | library(tidyverse)
library(stringr)
# Load data ---------------------------------------------------------------
tickets_raw <- read_lines(here::here("2020", "raw_data", "day_16.txt"))
# Main --------------------------------------------------------------------
##### Part 1 #####
rules_raw <- tickets_raw[1:which(tic... |
20d906c1a93f6fa64428ef488aa6f66c1af29e33 | 23632e85dfd7e75d4b394c7d98fa5bfaf72f21ea | /plot2.r | a1b8dd97ab289637e7a9dd1a24cae83591ac194c | [] | no_license | dipeshwalte/ExData_Plotting1 | 53c3485d3f07c757bbffcba1b05cd60f773d3280 | 51bd5949b86b7cdd2585833835d387919d9d6332 | refs/heads/master | 2021-01-24T15:52:28.888337 | 2016-09-19T16:57:03 | 2016-09-19T16:57:03 | 68,602,059 | 0 | 0 | null | 2016-09-19T12:08:17 | 2016-09-19T12:08:17 | null | UTF-8 | R | false | false | 1,009 | r | plot2.r | setwd("F:\\Data Science\\My Codes and Assignments\\Coursera\\Exploratory Data Analysis\\Data")
data <- read.table("household_power_consumption.txt",stringsAsFactors = FALSE,sep = ";",header = TRUE)
#Select only the two dates
exploratoryData <- subset(data,Date=="2/2/2007"|data$Date=="1/2/2007")
exploratoryData$Da... |
1537df22b38b9ac12f851c0d23f2f32cdcd6f732 | 2d6b42f1a95a9544b42939dcb13b29e6e503ef79 | /R/.Rprofile | 0aa2f2163275c7ab2de481e9261ef9f8bf100f8e | [] | no_license | jamesgitting/linux | ce82b832b798f9ae264dc9a59c2bd78151d64bb8 | ff48a2005bf3bea8453074e74364b54d97aee684 | refs/heads/master | 2020-03-21T01:27:40.809150 | 2018-07-10T14:57:49 | 2018-07-10T14:57:49 | 46,635,445 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,071 | rprofile | .Rprofile | options(prompt="R> ")
options(continue="R+> ")
options(width=200)
options(scipen=999)
options(repos = c(CRAN = "https://cran.rstudio.com"))
options(stringsAsFactors=FALSE)
q <- function (save="no", ...){
quit(save=save, ...)
}
.Last <- function(){
if(interactive()){
hist_file <- Sys.getenv("R_HISTFILE")
if (hi... |
6dd081a24640150dbdee35ce2f5992bd9d94b2bf | f07095445cf41012f652e4862d10c839f7602de8 | /getPanelIDs_NEB.R | 126a31110aa19a3d51f844e0cae6e1236a26fdf1 | [] | no_license | CoreyVernot/data-plus | f9658bcf743e753edb964bd48bf8f830f7f82150 | a5795cd548421f2ed5d33af2eed82102ec5ae81e | refs/heads/master | 2021-01-20T19:53:30.321690 | 2016-07-29T15:28:44 | 2016-07-29T15:28:44 | 62,651,859 | 2 | 2 | null | 2016-08-16T18:55:31 | 2016-07-05T16:18:49 | R | ISO-8859-1 | R | false | false | 6,396 | r | getPanelIDs_NEB.R |
####DON'T USE THIS CODE!!!!!!!!!1 ####
library(RODBC)
getRx <- function(years = c(10,11,12), server = "SQLServer_IRI" ){
ch <- odbcConnect(server)
rx <- data.frame()
allRx <- paste("Rx",years,sep="")
for(i in 1:length(years)){
rx_i <- sqlFetch(ch,allRx[i])
rx <- rbind(rx, rx_i)
}
#rx_sub <- data.fr... |
7eb4a11b031f65e1031df70ed5102444d5f66373 | e33778b8ba153ed995589a63afc85c3d78e4cf29 | /scripts/undeveloped/database.R | 6089feb0e6336ebef3097ed1168dd7e3c10594c2 | [
"MIT"
] | permissive | bransonf/stlvacancy | 3728337d726f4ec0e5cc6f4a8549c3f6da19201c | 357e0c6856f581a97fc85591ff4253eb73d17634 | refs/heads/master | 2020-08-23T11:36:18.518321 | 2019-12-19T19:36:29 | 2019-12-19T19:36:29 | 216,606,662 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 369 | r | database.R | # Implement the Final Dataset
library(RPostgreSQL)
library(cyphr); library(yaml)
# Credentials for Admin Access are Encrypted
cyphr::decrypt_file('creds.yaml', )
drvr <- dbDriver('PostgreSQL')
connection <- dbConnect(drvr, dbname = ,
host = ,
port = ,
... |
71c8f49b4c09333c936a54d0e2c842b94991d974 | c771e1a0d82be152def79aa1fc3e8f0c5e8ef0f4 | /scripts/r/Preprocesamiento/Muestreo.R | a4bea90dfd2a1db3ab8ff72ad8346bbc21c31dd0 | [] | no_license | jstamayor/DataMining-USAccidents | bc497a728e9e7a7498ce4481215e4d348ff6f978 | 9684734be2598d9da5f2a01ef6c47846bfc56d2a | refs/heads/main | 2023-04-09T17:40:22.677685 | 2021-04-13T23:18:58 | 2021-04-13T23:18:58 | 347,643,914 | 0 | 0 | null | null | null | null | ISO-8859-3 | R | false | false | 1,971 | r | Muestreo.R |
#Cargando el conjunto de datos con variables climaticas imputadas
load("C:/Users/Daniela/Documents/Maestria/Semestre 1/Mineria de datos/Proyecto final/Datos_preproc.RData")
#Seleccion las variables requeridas para el muestreo
subs_clim_var<-data.frame(US_var_selec$ID,US_var_selec$`Temperature(F)`,US_var_selec$`H... |
53e3c939ee5f62a103ff7317db3aab0c31c84897 | cd4673aea4e41a212ff5c57e2b1d99a7ade1fbf1 | /R/sqlp_base.R | 28016c43f389bf84af0bf86a44d04c1bf586c49c | [] | no_license | cran/sdpt3r | 62765e36a08557f846fe50312a2ced20debdf153 | 6668a2744cfbe777717e3175d0a79ac542823e2c | refs/heads/master | 2021-07-15T04:50:22.141609 | 2019-02-11T07:50:03 | 2019-02-11T07:50:03 | 102,360,434 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,415 | r | sqlp_base.R | sqlp_base <- function(blk=NULL, At=NULL, C=NULL, b=NULL, OPTIONS=NULL, X0=NULL, y0=NULL, Z0=NULL){
if((is.null(blk) | is.null(At) | is.null(C) | is.null(b))){
stop("Error: Improper input methods")
}
b <- as.matrix(b)
##########################################
######## Define Local Variab... |
a22ad107c17dd593b007701b8a118cc43334db3c | 4459eb5432916b4ad6c5c5d911b50c9d2fec1ad5 | /R/ActivePremium.R | 837c2702e0eaf200684ba83d20fc94af09afc31f | [] | no_license | braverock/PerformanceAnalytics | 057af55b0a4ddeb4befcc02e36a85f582406b95c | 49a93f1ed6e2e159b63bf346672575f3634ed370 | refs/heads/master | 2023-08-03T10:18:27.115592 | 2023-03-29T09:23:17 | 2023-03-29T09:23:17 | 58,736,268 | 209 | 113 | null | 2023-05-23T17:46:08 | 2016-05-13T12:02:42 | R | UTF-8 | R | false | false | 2,985 | r | ActivePremium.R | #' Active Premium or Active Return
#'
#' The return on an investment's annualized return minus the benchmark's
#' annualized return.
#'
#' Active Premium = Investment's annualized return - Benchmark's annualized
#' return
#'
#' Also commonly referred to as 'active return'.
#'
#' @param Ra return vector of the portfolio... |
d249e4ec8590ee22ab6048489061bebfd48de859 | caa801ed1f7212b51e705be70f0cb2609036e4ab | /inst/tinytest/test_lamW.R | 7538e68a32f8f31e557da21be9a8ecb64e6832ec | [
"LicenseRef-scancode-dco-1.1"
] | no_license | aadler/lamW | a57fa45e872e45b81b869f2e20b50d18fbf609cc | aed91c4b7cbb130dc35b68c5e28e879cd9bb8122 | refs/heads/master | 2023-08-29T07:00:05.471058 | 2023-08-07T16:19:42 | 2023-08-07T16:19:42 | 275,083,232 | 1 | 1 | NOASSERTION | 2023-08-06T20:26:26 | 2020-06-26T05:47:21 | C++ | UTF-8 | R | false | false | 2,325 | r | test_lamW.R | # Copyright (c) 2015, Avraham Adler All rights reserved
# SPDX-License-Identifier: BSD-2-Clause
tol <- sqrt(.Machine$double.eps)
# Test that functions return proper values
principleBranchAnswers <- runif(5000, min = -1, max = 703.22703310477016)
principleBranchTests <- principleBranchAnswers * exp(principleBranchAnswe... |
412a8b3ce747cb74dffb5b0b0a39767c059dfe2d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/diffpriv/examples/DPMechNumeric-class.Rd.R | 88450fa89f90b0b5a2f03e8666a5b2ccdf0f8cd5 | [] | 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 | 643 | r | DPMechNumeric-class.Rd.R | library(diffpriv)
### Name: DPMechNumeric-class
### Title: A virtual S4 class for differentially-private numeric
### mechanisms.
### Aliases: DPMechNumeric-class DPMechNumeric show,DPMechNumeric-method
### sensitivityNorm,DPMechNumeric-method
### releaseResponse,DPMechNumeric,DPParamsEps-method
### ** Examples... |
7719e9d2abbee28485dce7d2e5351be4f2244c37 | becd75b18af72191be27f00ce22ba464d2e91b84 | /man/g_sex.Rd | 862616666487f77bfb908aa3c8bf7c7562c0fc6a | [
"MIT"
] | permissive | fidelmorla/drcovidplots | 7247f8d4ddc961034be903725f34d7dceed2ebed | a44fe6338be064607cd846089dcc02a76a3f139f | refs/heads/master | 2022-11-16T08:49:23.898762 | 2020-07-09T19:18:56 | 2020-07-09T19:18:56 | 260,526,704 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 756 | rd | g_sex.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/g_sex.R
\name{g_sex}
\alias{g_sex}
\title{Distribution by sex of COVID19 positives in the Dominican Republic}
\usage{
g_sex(saveplot = FALSE, savepng = FALSE)
}
\arguments{
\item{saveplot}{Logical. Should save the ggplot objet to the \code{.G... |
a638bd0165f795d39846bb7265949e93e992f2b5 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/geoCount/examples/rhoPowerExp.Rd.R | 1ccc7cf1b18f92f1ac729ddb2387419874eb7a25 | [] | 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 | 248 | r | rhoPowerExp.Rd.R | library(geoCount)
### Name: rhoPowerExp
### Title: Powered Exponential Correlation Function
### Aliases: rhoPowerExp
### Keywords: Correlation
### ** Examples
## Not run:
##D rhoPowerExp(0.3, a=0.1, k=1)
## End(Not run)
|
424042a68d1b0e553c8f945683596f631c592d0c | fea57649b5ca68431d41a49fc9e73dd018e5007d | /test/server.R | a85fcfff826cc6789069cf4d4b99628acef0bf4e | [] | no_license | ThePaulTanner/R | 366fd6e6445c45f9efe393f2067b2c640d815375 | 7eeafdf7c53920628f07dc03824e429c4521521c | refs/heads/master | 2021-07-11T07:22:17.307185 | 2017-10-07T21:47:33 | 2017-10-07T21:47:33 | 106,131,513 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 285 | r | server.R | shinyServer(function(input, output) {
x <- 1:10
y <- x^2
output$main_plot <- renderPlot({
plot(x, y)}, height = 200, width = 300)
output$main_plot2 <- renderPlot({
plot(x, y, cex=input$opt.cex, cex.lab=input$opt.cexaxis) }, height = 400, width = 600 )
} ) |
7cb8a4cd4ba2945306cff4c09087353be9cc5b0d | 02b5ba32a64d0be0e09d1f1c463239999e5670ed | /tests/testthat/test-parameters.R | 40cdfdd78e647310f7cece9449241aa622cfbe27 | [
"MIT"
] | permissive | mrc-ide/sircovid | 2b4c169eaeca2d59cb684537d284d7b2942a2c08 | 8df142d85859deebf96eae3c69524aace3dbd5cd | refs/heads/master | 2023-07-09T23:15:06.853906 | 2023-06-06T11:21:50 | 2023-06-06T11:21:50 | 252,092,864 | 30 | 6 | NOASSERTION | 2023-06-21T10:22:45 | 2020-04-01T06:38:31 | C++ | UTF-8 | R | false | false | 7,607 | r | test-parameters.R | context("parameters")
test_that("single piecewise linear value", {
expect_identical(sircovid_parameters_piecewise_linear(NULL, pi, 0.1), pi)
expect_identical(sircovid_parameters_piecewise_linear(NULL,
matrix(c(1, pi),
... |
7c85930842a6aabe9235b73e517ed3faba5f1d6c | 2b73cb9ae681bc43be9c1d53eee9e6116a1af173 | /R/wt.R | 6e4b19663d0ef4f6caea7a2a65f55552aabd0de5 | [] | no_license | cran/wsyn | 8a161b1c239875cddb0a802e8393b4a1993725e9 | 72e97f83500ebc44fb1a15d968c426ad478d4f9f | refs/heads/master | 2021-08-22T22:28:55.339113 | 2021-06-18T20:10:02 | 2021-06-18T20:10:02 | 167,043,420 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,107 | r | wt.R | #' Computes the wavelet transform of a timeseries. Also the creator function for the
#' \code{wt} class.
#'
#' Computes the wavelet transform of a timeseries. Also the creator function for the
#' \code{wt} class. The \code{wt} class inherits from the \code{tts} class, which
#' inherits from the \code{list} class.
#'
... |
c62a4fc4d882fcba5914c483b00869ea70b0d070 | 138c2843cd7f8aff3bd326f669961260a2c77b8f | /R/coco_loader.R | 92564fd76bc83f3cd2a7b7c372b41c82b5fc5cc1 | [] | no_license | leslie-arch/R-vqa | 30a27c39c0b562ddbcaf31cca85446bffcc6469b | 6bec4b883c40583326cbff64afc02932524834b3 | refs/heads/main | 2023-08-08T04:48:08.471098 | 2021-09-23T03:10:07 | 2021-09-23T03:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,550 | r | coco_loader.R |
load_train_batch <- function(config)
{
anno_path <- config$input_json
annotations <- fromJSON(file = anno_path)
image_path <- config$image_path
if (length(image_path) <= 0)
{
tmp <- strsplit(anno_path, split = '/')
lentmp <- length(tmp[[1]])
list_tmp <- tmp[[1]][-c(lentmp, lentmp - 1)]
anno_... |
c8cfb2d89d8ec6c5d85eac6127dd9849242cc2b9 | 74797ca0c5961bdd78c025ba55c2339169fbe7dc | /my packages/s.FE/man/get_num_statis.Rd | e56a9bdff93957dacb9436259d87c103dca0e763 | [] | no_license | fangju2013/RProj | af895d87bdcef0425ea5bcad7c4d38d4d63b5533 | e7eb4983966794bd5a59229b5a45973ea3e3e8ab | refs/heads/master | 2021-01-11T15:36:43.591629 | 2017-01-24T09:23:24 | 2017-01-24T09:23:24 | 79,896,894 | 0 | 0 | null | 2017-01-24T09:26:39 | 2017-01-24T09:26:39 | null | UTF-8 | R | false | true | 606 | rd | get_num_statis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nums_handle.R
\name{get_num_statis}
\alias{get_num_statis}
\title{get numeric variables' statistics index}
\usage{
get_num_statis(df, key.vec, varname, targ.vec = NULL)
}
\arguments{
\item{df}{the discreting dataframe by best seperation}
\it... |
432e6526989723dc2f91ebe32e39686cdfd69137 | 291a6b11be20e97e0160100ee94b9d7cfaf06fc1 | /R/helpers.R | 3e25748503a2c3e54346ea808df1f6e3c65c6960 | [] | no_license | IvanVoronin/mlth.data.frame | 992302d7911b0e5a966c3c14f6bb17ca3e99bd02 | d9cfd47e0c3ed52d81923c169bad2fa0f4db1bb1 | refs/heads/master | 2023-07-08T06:31:30.465193 | 2023-06-27T15:48:17 | 2023-06-27T15:48:17 | 80,029,460 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 17,072 | r | helpers.R | #' @export
kable2 <- function(x, ...) UseMethod('kable2')
#' @export
kable2.default <- function(...) {
# Additional arguments:
# align_first
# footnote
# register_output
# name
dots <- list(...)
if (length(dots$register_output) > 0 && dots$register_output) {
dots <- register_output_internal(...)
... |
d3ac8471411b60f58cf0d86dfb5c2310556fc1b6 | 7917fc0a7108a994bf39359385fb5728d189c182 | /cran/paws.storage/man/s3_get_bucket_intelligent_tiering_configuration.Rd | 53c2120a7da59de529441f40e32154fc83f815ab | [
"Apache-2.0"
] | permissive | TWarczak/paws | b59300a5c41e374542a80aba223f84e1e2538bec | e70532e3e245286452e97e3286b5decce5c4eb90 | refs/heads/main | 2023-07-06T21:51:31.572720 | 2021-08-06T02:08:53 | 2021-08-06T02:08:53 | 396,131,582 | 1 | 0 | NOASSERTION | 2021-08-14T21:11:04 | 2021-08-14T21:11:04 | null | UTF-8 | R | false | true | 2,920 | rd | s3_get_bucket_intelligent_tiering_configuration.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3_operations.R
\name{s3_get_bucket_intelligent_tiering_configuration}
\alias{s3_get_bucket_intelligent_tiering_configuration}
\title{Gets the S3 Intelligent-Tiering configuration from the specified bucket}
\usage{
s3_get_bucket_intelligent_t... |
890d48c4127324103c427b7790a065ff33bb09a1 | d45d799cbbb7be7013ae3e56f143f333e2ff4319 | /Procesamiento.R | 898a7cebbc970ed963af0ad2a8c10aa3a3dced64 | [] | no_license | nico2021-s/Miprimerrepo | f0b5b8a9a6f2e8e1073a6eb7450cd87ef17e7405 | d44457e72bcd099c00cf5e71907a31e61babea7b | refs/heads/main | 2023-04-13T12:35:49.152880 | 2021-04-25T04:13:53 | 2021-04-25T04:13:53 | 361,295,561 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,476 | r | Procesamiento.R | # install.packages("dslabs")
# install.packages("tidyverse")
library(dslabs)
library(tidyverse)
s = dslabs::gapminder
library(ggplot2)
ggplot(s, aes(x=continent, y=fertility))+geom_col()
unique(s$year)
length(unique(s$year))
# Agrupar por año la cantidad de observaciones que aparecen para Colombia
length(unique(s$coun... |
7b0c5fa980f2ce59107b45f02bdd64072e2a08f7 | d80e56a3c15e8156ad9ce75b54d3bc147351b78f | /R/ex6_template.R | 51bf8c7ca8b6607a5ccf85588e6a1462b6e34a6a | [
"MIT"
] | permissive | Lornebradia/c4l_workshop | e0bc8ffc08354f1da3db1bc016bda2fa72c2d25a | 62e54318de5152146180e0815162ae672f3cb71c | refs/heads/master | 2020-04-29T23:13:06.563591 | 2019-04-11T16:35:13 | 2019-04-11T16:35:13 | 176,470,559 | 0 | 0 | NOASSERTION | 2019-04-10T20:53:45 | 2019-03-19T09:08:29 | HTML | UTF-8 | R | false | false | 477 | r | ex6_template.R | #' Exercise 6 - Reporting
#'
#' Prepare the report for running
library(shiny)
# Add to plan ----------
#' We need to export the results to be able to later publish:
#' the drake cache is not available for export
# Create target to export the data that will be needed (final, seasonal_plots, aggregated data)
# Run the... |
061fc68b7f3df8bc9a8f762a62cc62a291214a25 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ContourFunctions/examples/cf_func.Rd.R | 2bb479d33b488d75637fa0d31e51e3ddff86e7cd | [] | 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 | 392 | r | cf_func.Rd.R | library(ContourFunctions)
### Name: cf_func
### Title: Makes filled contour plot from function without sidebar, uses
### cf_grid
### Aliases: cf_func
### ** Examples
cf_func(function(x){x[1]*x[2]})
cf_func(function(x)(exp(-(x[1]-.5)^2-5*(x[2]-.5)^2)))
cf_func(function(xx){exp(-sum((xx-.5)^2/.1))}, bar=TRUE)
cf_fu... |
9def8b862040baef8e03ccbdcd094c04accb3941 | 4b76f1a19c6fc9a8a2263ddda140aff00ec3396a | /man/rtmvn.Rd | fc50b8e50e0a56f74a436c824b5a7c340b2ca10d | [] | no_license | cran/tmvmixnorm | db90df7285039e701fde8ce91665fd133327313a | cbb7edbc4b3c255eea3ceeaea9e77947c6422ddd | refs/heads/master | 2021-06-27T21:36:10.016413 | 2020-09-18T17:00:02 | 2020-09-18T17:00:02 | 145,902,241 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,241 | rd | rtmvn.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rtmvn.R
\name{rtmvn}
\alias{rtmvn}
\title{Random number generation for truncated multivariate normal distribution subject to linear inequality constraints}
\usage{
rtmvn(
n,
Mean,
Sigma,
D = diag(1, length(Mean)),
lower,
upper,
... |
b90bb24ce740f6e8c7dbe2e4f9d2b2e894114243 | 8c67a0356c5086cfc2534727bfd2e6ff4618f112 | /man/coalesce2.Rd | 37085e64307b2b14eaf0ea6fb6ccfebf09ba6fd9 | [
"MIT"
] | permissive | PelizaC-Jacobs/SOBPredictR | a3106489e07f398ecb1bf2c70dd4778fcb834c81 | 5689656dbd2dfeda6217d92b40eab9b21b29a7bc | refs/heads/main | 2023-03-17T23:59:04.407642 | 2021-02-09T00:07:26 | 2021-02-09T00:07:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 310 | rd | coalesce2.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_wrangle.R
\name{coalesce2}
\alias{coalesce2}
\title{Modified Coalesce}
\usage{
coalesce2(...)
}
\arguments{
\item{...}{vector}
}
\value{
vector
}
\description{
Coalesce two dataframes
}
\examples{
\dontrun{
coalesce2(x, y)
}
}
|
b65d11e4046c2c9989f1b457c65853377631fe3b | d0957837cc4dae8843c1c5037ec5f1f83e393ff1 | /man/Detergent.Rd | 7249c66fa05d385d0c2c0239bcd1438cb4080efe | [] | no_license | cran/vcdExtra | 99ade8da0accd5d400cda9489f32aee3a0a1de3f | d98d118bf59554f334f0c9782857aae663744611 | refs/heads/master | 2023-04-27T19:29:18.255703 | 2023-04-16T14:10:02 | 2023-04-16T14:10:02 | 17,700,730 | 1 | 0 | null | 2014-03-24T22:41:21 | 2014-03-13T06:43:46 | R | UTF-8 | R | false | false | 1,782 | rd | Detergent.Rd | \name{Detergent}
\Rdversion{1.1}
\alias{Detergent}
\docType{data}
\title{Detergent preference data}
\description{Cross-classification of a sample of 1008 consumers according to
(a) the softness of the laundry water used, (b) previous use of detergent Brand M, (c) the temperature of laundry water used and (d) exp... |
4670ddb5a56f0ffec2dfe4fc58b713e91c6d4051 | 9b76f92dfecfc84e2a43da24b9e4aa678a2de356 | /bootcamp/064PipeOperator.R | abdc6850f58fea1a0f021808f9b8394de32f18a9 | [] | no_license | rathanDev/r | fa9d82582a83271b1f771c3bc9dd4348b0b28f73 | 2c4871f13de7cde82df7e0e63a253fa4a575a23b | refs/heads/master | 2022-12-13T17:56:46.669651 | 2020-09-10T12:32:49 | 2020-09-10T12:32:49 | 264,051,092 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 513 | r | 064PipeOperator.R | library(dplyr)
df <- mtcars
df
head(df)
# Nesting - efficient memory usage, but hard to read
result <- arrange(sample_n(filter(df, mpg>20), size=5),desc(mpg))
result
# Multiple assignments - more memory usage
mpg20 <- filter(df, mpg>20)
sample5 <- sample_n(mpg20, size = 5)
result <- arrang... |
c9d33c05011bbc798bcc1b094255786acabe35cb | df7e56686117977a8a0721a432ea6a954d11831d | /app.R | cfd1d96808d608e413270a369a44eb201083e3e3 | [] | no_license | stat133-sp19/hw-stat133-Aadiraj | 2603ae1a35d16d4826e6a154cc0787808afe5c44 | 4aba22ae80f551ee97a632ed71d98d7097f9cae8 | refs/heads/master | 2020-04-28T20:19:46.108210 | 2019-05-05T03:05:19 | 2019-05-05T03:05:19 | 175,540,912 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,025 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
... |
9519e27c66fd574295d7e3ba4aa57e1db9ced4e8 | 1c9e02b3e531f1dad978afff5fd863e6fe007383 | /man/rawsDF_isRawsDF.Rd | 9c4fa8e85b1c29a53e21d93344d81943f94da4f1 | [] | no_license | mgjust/RAWSmet | 95d23fdc45bba8e3cfa3974f85847e8b077ac4ac | 79bad67e4d8a13a966dc19c40144bddba44e6254 | refs/heads/master | 2023-02-18T21:39:20.503427 | 2021-01-19T00:25:55 | 2021-01-19T00:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,676 | rd | rawsDF_isRawsDF.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rawsDF_utils.R
\name{rawsDF_isRawsDF}
\alias{rawsDF_isRawsDF}
\title{Test for correct structure for a \emph{rawsDF} object}
\usage{
rawsDF_isRawsDF(rawsDF = NULL)
}
\arguments{
\item{rawsDF}{\emph{rawsDF} object}
}
\value{
\code{TRUE} if \cod... |
bcfd50925247bc082c83cd6c3b35b5d045962c44 | 27da76805544719c650c644a1eb2433b7ec7e3f4 | /missingness.R | 84c27237fa93ba218cbf3716554f97e5a6d89033 | [] | no_license | Joe-Hilgard/vvg-2d4d | 3428ae003b4f0d2294b53c61c5ea8c8dcfe5f40c | 1f94e83c0a7b02eef464bb6f2369ab03f2cf1224 | refs/heads/master | 2020-03-19T22:54:45.787129 | 2019-01-16T23:58:40 | 2019-01-16T23:58:40 | 136,985,930 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 473 | r | missingness.R | # Script for identifying missingness of data
library(dplyr)
dat = read.delim("./analysis/aggregated_data.txt",
#quote="",
sep="\t",
stringsAsFactors=F)
names(dat)[names(dat)=="Assignment"] = "DV"
dat$Subject = as.numeric(dat$Subject)
dat %>%
filter(is.na(DV) |... |
d1461ecdf7fc88f5f407c485471d1ac41963e960 | 63f7123c43e044985c41f89e3b5b523bf862c3ef | /BT/BT/BTvantagemsemW1delta/GSMH_BT_DIF4A.R | baac1010cf85bad776dde44675ec15853cef9c64 | [] | no_license | danilomachadopires/CodeThesis | ab18813bab64bd5a854870c1961cbac32491a101 | d9b419f684fa33dd8f5ea5f2bc8eec3e5c159950 | refs/heads/master | 2020-06-16T20:23:45.008573 | 2019-07-07T20:45:49 | 2019-07-07T20:45:49 | 195,447,375 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,649 | r | GSMH_BT_DIF4A.R | #-----------------------------------------------Modelo com um único delta-sem w---------------------------------------
# Entra com o rating e a dif de cada jogador
# theta = c(gama1,gama2,delta1,delta2)
rm(list=ls(all=T))
source("FGSMH.R")
dados <- read.table("granprix2010a2013.txt",h=T)
attach(dados)
nomes ... |
671f955686a2d12cd244f1a857519bd5522bba5c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/sppmix/examples/plot_CompDist.Rd.R | 74505356f621bd7a9f587e0bf4d93122648be000 | [] | 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 | 326 | r | plot_CompDist.Rd.R | library(sppmix)
### Name: plot_CompDist
### Title: Plots for the number of components
### Aliases: plot_CompDist
### ** Examples
## No test:
fitBD <- est_mix_bdmcmc(spatstat::redwood, m = 10)
plot_CompDist(fitBD)
CAfitBD=est_mix_bdmcmc(pp = CAQuakes2014.RichterOver3.0, m = 10)
plot_CompDist(CAfitBD)
## End(No test... |
b151034ff935207f728e058f464e85bb76c83775 | 557c317f924f94019e60b40cc2a0a6b713c80543 | /OlderCode/SYV_vs_Tower.R | a75453c3cc27cd3ce18e16ebe470520544ffd1a4 | [] | no_license | bblakely/SapFlux | 23416d66479dc80cf420b1dbeabb6443976bac58 | 122973ab38ae07c20e7d80087ea67a5ab8694234 | refs/heads/master | 2021-01-10T13:25:32.786118 | 2020-05-06T19:31:37 | 2020-05-06T19:31:37 | 55,317,548 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,585 | r | SYV_vs_Tower.R | start=190
end=230
tower.raw.syv<-read.csv('Syv_TowerData_2015.csv',skip=1, header=TRUE)
tower.names.syv<-colnames(read.csv('Syv_TowerData_2015.csv'))
names(tower.raw.syv)<-tower.names.syv
tower.match.syv<-tower.raw.syv[tower.raw.syv$DTIME>=start & tower.raw.syv$DTIME<end,]
#Ustar filter
#tower.match.syv[tower.match.s... |
6c7e05d769c322557ae0bf01a85a8049af92e219 | a01a72a5b9ac2fa81930df2d687623956ed19b6c | /R/singlecell_network_attributes.R | ffb0636b5c3bd80906b30ab3e2e98c8f15c84ec6 | [] | no_license | sturkarslan/single-cell-analysis | 5fc12c8ba94613537410c4de405ff6856211f031 | 52380cd52f9c8b8329934993a2d5ec0b7c443518 | refs/heads/master | 2021-09-17T14:47:40.597471 | 2018-07-02T21:59:19 | 2018-07-02T21:59:19 | 108,581,692 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,506 | r | singlecell_network_attributes.R | # This script creates network attributes for single cell mutation nodes
#load early geenration mutations
ua3.b = read.delim("~/Google Drive/Single-Cell-Genomics/variants/EPD/UA3_variants.FINAL-dvh.txt", sep="\t", header=F, stringsAsFactors = F)
ua3.b$line = "ua3.b"
ua3.03 = read.delim("~/Google Drive/Single-Cell-Genom... |
45f85aed5b6fd4f00a57c55d97b683dd75f90f1f | 67c56336d7d1236fa57700af759fe75e9454ed44 | /util/var_exists.R | a24c63ea5fa8d7480d92af770682e9fd039e14a6 | [] | no_license | actongender/geam-report | b9fbec753a0fca1a4854d60d0abf00a55d3ca65b | 163f5b88dacf1ead8cb0397f1ad0e795ffbcb1eb | refs/heads/master | 2023-04-28T06:14:36.966608 | 2021-05-21T06:51:58 | 2021-05-21T06:51:58 | 275,156,339 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 823 | r | var_exists.R | #' @title Check if variable name exists in data frame.
#'
#' @description Useful to avoid error messages before generating figures and tables. Performs exact match.
#'
#' @param needle String of one or more column names.
#' @param stack String of all column names
#'
#' @return logit
#'
var_exists <- function(... |
8109fb7cf25078be0c6284e2eb9868fd956789c1 | c605fe0c0bcdafc69b4c1b5ba84b0c1aa20f1b4d | /longitudinal/ch2.R | a4bcf48590fa8fc54ac3f33d1ec84ab35d5333ec | [] | no_license | Privlko/datacamp | cf2edddd7e1b8ece148e198e64e91948a766e0ec | 74467d52a96c4068d4772189ee125ef5b09489a3 | refs/heads/master | 2020-04-07T02:57:41.441283 | 2019-07-23T21:30:41 | 2019-07-23T21:30:41 | 157,997,025 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,083 | r | ch2.R | library(nlme)
library(lme4)
library(tidyverse)
View(BodyWeight)
ggplot(BodyWeight, aes(x = Time, y = weight)) +
geom_line(aes(group = Rat), alpha = 0.6) +
geom_smooth(se = FALSE, size = 2) +
theme_bw(base_size = 16) +
xlab("Number of Days") +
ylab("Weight (grams)")
B1 <- mutate(BodyWeight, Time ... |
8fa5f349df494e63e0888b156ed2ce7e44f980cd | aad7ad92d65f2f81957b6f0e6928c6f3fdbb2bd5 | /code/Rintro.R | a052fc5d19d030d8bc8ea8edc175bcd38da11e45 | [] | no_license | pr453/Pratiwi-Ridwan | a24b1be4413ef473c90ea7513d2794384cf13fad | d73e2882833dcc7db7d49de215a431745beaecc9 | refs/heads/master | 2021-05-08T19:47:37.407631 | 2018-01-30T17:25:27 | 2018-01-30T17:25:27 | 119,578,391 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,193 | r | Rintro.R |
# make sure we are in the right directory
getwd() # get working directory
setwd("..") # go up one level
getwd()
setwd("datasets") # down one level into datasets subdirectory
getwd()
setwd("../code") # up one and back down into code
getwd()
# reading in data
iaafdata <- read.csv("../datasets/iaaf_testosterone.... |
b08b6923b65dea512f5b412c10f9c885240c91ce | 8d8d1d24986dce6b8a56ed8bcb71ada4b4eeb2bd | /man/animal_15.Rd | 736a29e2763b898701e0d035e6c98a14ab174cef | [
"MIT"
] | permissive | schochastics/networkdata | edaed94b788dcd925f55ae07f8a2d8b58d45ae8e | 535987d074d35206b6804e9c90dbfa4b50768632 | refs/heads/master | 2023-01-07T07:20:41.475574 | 2023-01-05T18:54:17 | 2023-01-05T18:54:17 | 226,346,857 | 142 | 17 | null | null | null | null | UTF-8 | R | false | true | 1,219 | rd | animal_15.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-animals.R
\docType{data}
\name{animal_15}
\alias{animal_15}
\title{Asianelephants Dominance (unweighted)}
\format{
list of igraph objects
}
\source{
https: //bansallab.github.io/asnr/
}
\usage{
animal_15
}
\description{
Species: \emph{El... |
7835c8dc000ba52394e8012371507a9659dde22b | c63fc5e6607e2cd5d62464a72c78b06191277eb6 | /R/adaptTradeDataNames.R | af133a6686b6d18cdcfb08578093f23f4dad1b32 | [] | no_license | SWS-Methodology/faoswsTrade | 6ce400e545fc805fe1f87d5d3f9d5ba256a8a78c | 2145d71a2fda7b63d17fa7461ec297f98b40756c | refs/heads/master | 2023-02-17T08:40:21.308495 | 2023-02-09T13:53:56 | 2023-02-09T13:53:56 | 55,507,302 | 4 | 1 | null | 2020-05-15T14:45:59 | 2016-04-05T12:49:03 | R | UTF-8 | R | false | false | 1,216 | r | adaptTradeDataNames.R | #' Standardise TL or ES variable names.
#'
#' Use the same variable names in both datasets.
#'
#' TL and ES data use different variable names for reporters, partners,
#' commodities, values, quantity, and year. This function give these
#' variables the same name in both datasets.
#'
#' @param tradedata TL or ES trade d... |
c507d4940cccbb35feaf9cedced60e4298759609 | b3ef2bf029d200fb43ec8530899208d5b5887887 | /edivalo-seedlings-traits.R | 884c4163f2ab2a809c32ba28092f1b21a29a2f6e | [] | no_license | cmwerner/edivalo-seedlings | f9c3266578f7246d5746541654c9715704d3a99e | a5cfecaef4946650b41a218bff702255bb720d84 | refs/heads/master | 2021-07-04T04:18:16.051888 | 2021-07-02T21:05:19 | 2021-07-02T21:05:19 | 238,467,918 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,243 | r | edivalo-seedlings-traits.R | # condense the seedling trait data into single average values
library(tidyverse)
library(GGally)
library(ggplot2)
### Biomass and Length ---------------
# main path
seedlings.size <- read.csv("data/seedling_traits_size.csv",
stringsAsFactors = FALSE)[,1:7]
# change the names of the newly ... |
d2f82af12155e9280d42758d9396e394a15b7932 | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613100339-test.R | 45ea488fbfac421309d89ecfcfb108903df63d01 | [] | 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 | 123 | r | 1613100339-test.R | testlist <- list(b = c(0L, 0L, 659968L, 1376511L, 255L))
result <- do.call(mcga:::ByteVectorToDoubles,testlist)
str(result) |
a59ab3bb12aff868d2ca4d78d6b0c9bcf6f72def | 4967f91b14024b361a9bd23ebad17be23775c0b3 | /TSA Crime.R | 07ca93053bde2e32236c2b8a450e66841b914212 | [] | no_license | Mrinal-P/Boston-Crime-Rate | 20234b7ac35807676dd07972c65af4d0986fbf4e | c2043ee829fc885dac93dbd48d4c2b26151ee552 | refs/heads/master | 2020-03-24T19:13:52.853617 | 2018-07-30T18:21:19 | 2018-07-30T18:21:19 | 142,911,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,820 | r | TSA Crime.R | # Boston Crime Rate- TIME SERIES ANALYSIS
# Data visualization
library(xlsxjars)
library(xlsx)
violent <-read.xlsx("E:\\NEU\\IE 7275 Data mining\\R\\case\\violent crime.xlsx", sheetIndex = 3, header = T,stringsAsFactors = F)
str(violent)
# Parsing the date format
library(zoo)
violent$DATE1 <- as.yearmon(violent$DATE,... |
3006b50ead16fc62150f1c6bc4e0afc40e184643 | f6ec5794dce638094fe6a5d0de698415db12a24c | /R/ols-f-test.R | 87bcb979b323cbab69ce6d0314d1f54cc127fb6e | [
"MIT"
] | permissive | FantasticFreddy/olsrr | d4507a26a1dc4aa7ec8b0619e1c09c4147db2c89 | 5c638713d2d365623e68daedc428290c84611d61 | refs/heads/master | 2020-03-22T00:08:29.851414 | 2018-06-03T16:12:21 | 2018-06-03T16:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,405 | r | ols-f-test.R | #' F test
#'
#' @description
#' Test for heteroskedasticity under the assumption that the errors are
#' independent and identically distributed (i.i.d.).
#'
#' @param model An object of class \code{lm}.
#' @param fitted_values Logical; if TRUE, use fitted values of regression model.
#' @param rhs Logical; if TRUE, spec... |
c6d21796a2309d550b3f7902b2a7107e2f270a70 | a9063297b1b78391a0def226296df30c380f553d | /book/packt/Big.Data.Analytics.with.R.and.Hadoop/3282OS_05_Codes/codes/Webpages_categorization_analytics1/codes/RGA_dataextraction.R | b686a635d631646eadb2ae298a0bf78cd4001810 | [] | no_license | xenron/sandbox-da-hadoop | 4f0171b1f3277d7ff9f79c82e5a4475ed9aed183 | 2ae0092627aff6e61e82bf8d53b7ecd4977af2de | refs/heads/master | 2022-10-17T18:47:03.445080 | 2016-08-24T06:02:39 | 2016-08-24T06:02:39 | 32,766,392 | 2 | 0 | null | 2022-10-05T18:40:14 | 2015-03-24T00:22:56 | Java | UTF-8 | R | false | false | 1,903 | r | RGA_dataextraction.R | ================================================================================
Book - Big Data Analytics with R and Hadoop
Book URL - https://www.packtpub.com/big-data-analytics-with-r-and-hadoop/book
Chapter - 4 Using Hadoop Streaming with R
Author - Vignesh Prajapati
Contact - a. email -> vignesh2066@gmail.co... |
365d56e12841650cb759d1ba90c6f09d0df72662 | 1c74d653f86b446a9cd87435ce3920977e2cb109 | /packages/seewave/test.R | eb2ba73c7db653b1c874aa4a4ef55e9abf7266e5 | [
"Apache-2.0"
] | permissive | rstudio/shinyapps-package-dependencies | f1742d5cddf267d06bb895f97169eb29243edf44 | 8d73ce05438f49368b887de7ae00ff9d2681df38 | refs/heads/master | 2023-07-22T08:53:56.108670 | 2023-07-12T13:58:58 | 2023-07-12T13:58:58 | 22,746,486 | 81 | 76 | NOASSERTION | 2023-07-12T13:59:00 | 2014-08-08T04:57:26 | R | UTF-8 | R | false | false | 137 | r | test.R | install.packages("seewave", repos="http://cran.at.r-project.org/")
# call a function as a test case
library(seewave)
data(tico)
ACI(tico) |
f945f6f6f7d7dfff2f8a0f1bb46660f08ad79d7e | c13cb27a79df9353978edb94fdb2376cd6e2dd96 | /hello.R | cffd50324654fffd4d7a337f6b262cfce0cc2353 | [] | no_license | jvmurray/Rtest1 | d6a12318cc10ef792e80a5f7dff34195c5c41d5e | 9fc4c74e25c81f47e97749e4543e275036fc7ecd | refs/heads/master | 2022-12-23T05:10:52.518199 | 2020-09-04T18:34:53 | 2020-09-04T18:34:53 | 292,919,379 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 245 | r | hello.R | n=100000
die1 = sample(1:6,n,replace=TRUE)
die2 = sample(1:6,n,replace=TRUE)
die3 = sample(1:6,n,replace=TRUE)
diesum = die1+die2+die3
prob = 0
for (i in 1:n) if (diesum[i] < 5) prob = prob+1
prob = prob/n
print(prob)
#This is a Change |
ae0eb7a34f2a9b2536275a49da06306f0aeaa0ba | dd80dace8fda16b5cfee3d6d0faf48552b3b3d3b | /plot1.R | 90e4da2df1d0dc6d7599855824b3583c3c697c54 | [] | no_license | ZhPrav/ExData_Plotting1 | 38a67b90e6c7ace1dfd29b27fba42d946527ac0f | 46438eb18762a162db0dddf64bfa720477a12604 | refs/heads/master | 2020-03-09T08:44:53.507999 | 2018-04-09T01:24:04 | 2018-04-09T01:24:04 | 128,696,497 | 0 | 0 | null | 2018-04-09T01:12:31 | 2018-04-09T01:12:30 | null | UTF-8 | R | false | false | 1,247 | r | plot1.R |
## Create a directory
if (!file.exists("./household_power_consumption") | !file.exists("./household_power_consumption/household_power_consumption.txt") ) {
dir.create("./household_power_consumption")
## download file
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumptio... |
93ea2334bd19be944693595870d58510057124b1 | 98a871f8f4c41311fec4ecd24b95cb43fdddf209 | /R/update_aqi_history.R | 39d9fc84dad9ff268e7dd35f867c3b904786bdab | [] | no_license | MPCA-air/aqi-dashboard | 90b906df62d2c06e8a1cbee0c809ccea57f2e152 | 23c65c7c49510f723d9ee6450ef359024adbcf33 | refs/heads/master | 2021-01-01T20:39:04.091594 | 2017-09-20T23:47:13 | 2017-09-20T23:47:13 | 98,908,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,133 | r | update_aqi_history.R | # Update annual AQI history charts
# Load fonts
extrafont::loadfonts(device="win")
#extrafont::font_import()
#import_roboto_condensed()
library(tidyverse)
library(hrbrthemes)
library(magick)
# AQI color functions
setwd("X://Agency_Files//Outcomes//Risk_Eval_Air_Mod//_Air_Risk_Evaluation//Staff Folders//Dorian//AQI//... |
0b5d46643fb76879d686b903cab9944835aa2bfe | c2a20a3c33a2ad3898e4192d7a07b767575cfc29 | /man/in.calc.Rd | ca73cda2580d0167859c4a58e4f07cd89ef4d8bb | [] | no_license | kkeenan02/diveRsity-dev | 401f094789c8bc3f5de85ba94d3a8af0aed5c09e | c6557b8b2c881b909baa9ed8d5f2b5be4e2f3821 | refs/heads/master | 2021-01-01T18:37:08.317050 | 2013-10-28T14:49:47 | 2013-10-28T14:49:47 | 13,863,669 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 636 | rd | in.calc.Rd | \name{in.calc}
\alias{in.calc}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A function to calculate locus informative for the inference of ancestry
}
\note{This function is deprecated. Please use \code{inCalc}. See \code{?inCalc} for detail on its' usage.}
\description{
\code{inCalc} allows th... |
b245862dd1f0300aecd5ff23908e2296dace2849 | 05c62f1af1025e734060806d73dd6a4300bbef81 | /code/1_header.R | f184d2549342126cb6b76b7533c2f6e1e6ed0fea | [] | no_license | EmilyMarkowitz-NOAA/FishR101-Models | 33d50398b10b05adbee95df1d8462c2925f4cbc7 | 245a902b7ac6a826c8ffcd88960dc1087d7a42b7 | refs/heads/main | 2023-07-26T13:33:49.924716 | 2021-02-23T09:47:27 | 2021-02-23T09:47:27 | 323,549,826 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,174 | r | 1_header.R | # Lesson 8: Modling
# Created by: Emily Markowitz
# Contact: Emily.Markowitz@noaa.gov
# Created: 2020-12-18
# Modified: 2021-02-17
# packages ----------------------------------------------------------------
library(tidyverse)
# install.packages("broom")
library(broom)
# install.packages("modeldata")
library(modeldata... |
fa2603200f1a14a4c7f2c77aed91c5c5fb163867 | 9946c1f093399ec8d83b02324a2f0fed95cbdc19 | /man/plotgl.Rd | bed6506838f8befc5378dbe6159d104556f40bc5 | [] | no_license | cran/gld | 6a60f0fd164f6a3db98d2212440c081a27afefd3 | 8b6ac4a399deb0479737710576217e24f393d878 | refs/heads/master | 2023-04-08T03:52:28.262264 | 2022-10-23T13:25:06 | 2022-10-23T13:25:06 | 17,696,412 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,071 | rd | plotgl.Rd | \name{plotgl}
\alias{plotgl}
\alias{plotglc}
\alias{plotgld}
\title{Plots of density and distribution function for the generalised lambda
distribution}
\description{
Produces plots of density and distribution function for the generalised lambda
distribution. Although you could use \code{plot(function(x)dgl(x))... |
56837b9a0d14e06c580a0f1af9532f3c26a1de70 | c5f7ccf06e8bce436bebc6492d6030a5ca0b54f5 | /Maps_for_SSpaper_2020.R | 79a2845ba6d7592980c998903707378956616fc7 | [] | no_license | elasmobranch23/Sperm-storage-maps | 953014366d64a6713fca14dfb7a75667367dc563 | 821e5aa1d7cd4507feb03f923e768ab4e814b957 | refs/heads/main | 2023-01-12T17:56:32.455330 | 2020-11-18T09:39:38 | 2020-11-18T09:39:38 | 313,882,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,730 | r | Maps_for_SSpaper_2020.R | library(ggplot2)
library(sf)
library(rnaturalearth)
library(readxl)
library(ggsn)
####### Code for map for the Indian Ocean
#Load data used
Indian <- read_excel("C:/Users/G00303872/OneDrive/Masters/Data Sheets/Spatial.xlsx", sheet = "Indian")
Cou <- read_excel("C:/Users/G00303872/OneDrive/Masters/Data Sheet... |
1b3c08259751fceed7f7d865450a30444f66fd4d | 0ebb4b9fc23b67a30522ccb5b1fb248532ae810b | /code/historical_dhs.R | 0892af90fc47615240af8e73f1f0258cf825b8bc | [] | no_license | danjwalton/p20_indicator_time_trends | 64e6490cd4448ed4d60f16570cf1d3a491ed4232 | 5fb7f4c69cd2602e1b310e6db91f07d96ebb6a14 | refs/heads/master | 2020-06-04T08:06:03.888612 | 2019-06-14T13:22:31 | 2019-06-14T13:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,815 | r | historical_dhs.R | ####Function and setup####
list.of.packages <- c("Hmisc","plyr","foreign","data.table","varhandle","zoo","survey")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
lapply(list.of.packages, require, character.only=T)
#Tak... |
cf36de7a92668743c8fc58ae0342f95814303d89 | 73267cef739013c42899c0cd00b261a3610dbb91 | /data_scientists/03_tidy_data/w2/install_sqldf.R | aa9221423ef22a2985e19336cec6854a7be8e6bb | [] | no_license | annie2010/coursera_2014 | 3509ea690f1dbf76285a168d18d447787ba2316d | ad64465cd1e48e948da399aa4b3a72258af4874d | refs/heads/master | 2020-04-06T06:43:12.395104 | 2014-07-15T06:12:52 | 2014-07-15T06:12:52 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 938 | r | install_sqldf.R | #install.packages('/tmp/Rtmp7uX5lV/downloaded_packages/RJDBC_0.2-4.tar.gz',repo=NULL) # DONE (RJDBC)
#install.packages('/tmp/Rtmpn14y5d/downloaded_packages/doBy_4.5-10.tar.gz',repo=NULL) # DONE (doBy)
#install.packages('/tmp/Rtmpn14y5d/downloaded_packages/quantreg_5.05.tar.gz',repo=NULL) # DONE (quantreg)
#install.... |
614f0f01fa1fc38d19aec1d9f2dd65e603908eb2 | e756c6f0872f95f6893703582e183ca167d2dd85 | /analysis/reasons.R | 4b1c8983147203357661115e35cdbe32d3fc6ccc | [] | no_license | johnjosephhorton/sharing | 2a1c3d9fc8c47011f2a71c99b9f6df2f6296e507 | 524873092891cdc2e96968676a223e7d8016a39c | refs/heads/master | 2021-01-10T09:19:47.823454 | 2017-01-03T17:30:10 | 2017-01-03T17:30:10 | 52,822,774 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,578 | r | reasons.R | #!/usr/bin/env Rscript
library(shaRing)
library(JJHmisc)
df <- shaRing::GetDF()
df.no.own <- data.table(subset(df, !is.na(answer.no_own_reason) & answer.no_own_reason != "space"))
df.no.own.summary <- df.no.own[, list(
num.obs = .N,
num.income = sum(answer.no_own_reason == "expensiv... |
1e151b20752054cf83e7ee457f5ad6840a060192 | 3976f0dd4fa56d39f1a06ac09e9fa7575573b0c8 | /R/mc-rank-test.R | e12fe208d4f05175d4af95d32b36cf283f82603c | [] | no_license | lcallot/pcvar | 309e08ac3dd3eda108c44b515c458a4fe7487b03 | cabe10cbdc2b0dea931bc0fda4fd6941d07ce2eb | refs/heads/master | 2021-01-01T17:21:40.264823 | 2015-06-10T09:03:27 | 2015-06-10T09:03:27 | 15,044,879 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,340 | r | mc-rank-test.R | #' @description bla!
#'
#' @details bla, bla?
#'
#'
#' @name mc.rank.test
#' @aliases mc.rank.test
#' @title Performs a Monte Carlo experiment on the performance of the panel rank test procedure of Callot (2013) to a pcvar model.
#' @author Laurent Callot \email{l.callot@@vu.nl}
#'
#'
#'
#' @param obs An integer, ... |
a3a94c2a7bb3523b6fe0b5a73530946f341b11c3 | f3521b6175374e344ff73def2f9e5d7c2a440b00 | /footprints/testdb/AWS_test/fillFunctions.R | b8179d1b0002232ff94f568ef4e23ec2cbfdec89 | [] | no_license | PriceLab/BDDS | 2c450bab947df96a3767c4f5d7082f3fc2441b1e | 9ebedeb27bbb2921b40ec8b05290a111d5582c70 | refs/heads/master | 2021-03-27T15:45:39.175845 | 2017-12-06T23:27:41 | 2017-12-06T23:27:41 | 67,898,606 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,885 | r | fillFunctions.R | simpleLoopFill <- function(dbConnection, tbls){
print("Beginning simple for loop on regions")
# Loop through the table, construct each query,
# and run it in series
for(i in 1:length(tbls$regions$loc)){
my.query <- sprintf("insert into regions values ('%s','%s',%d,%d) on conflict (loc) do noth... |
5bcd56fe5fddfbcc8e1bf611ec0da29eef465e15 | 9a58513989a0ab0bdb4fb4352f17aa572c375d0e | /run_analysis.R | bd95c5087bcd20d9ad993244e40b4ffa50589f8e | [] | no_license | NestaKobe/Getting-and-cleaning-data-Week4-assignment | 22fd59a2f28e9e1474300651c0a5411101f629f0 | 8b97d9b61ce8c197dd2c11bab452176f6dd0256e | refs/heads/main | 2023-03-01T06:41:22.741452 | 2021-02-10T16:05:56 | 2021-02-10T16:05:56 | 337,706,275 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,357 | r | run_analysis.R | # Getting and Cleaning Data Project John Hopkins Coursera
#Week 4 Assignment
#The data for the project:
#https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip
#TASK: create one R script called run_analysis.R that does the following.
#1. Merges the training and the test sets to cre... |
6f8a1df13aba4af5c115f4cdcf61157290030fc7 | 3478901ab27212ba5798db9b6a8813b7ef596724 | /Project_Scripts/ClassificationTree.R | 9784019cb108ba79858acc7856bc1a8516d4eeba | [] | no_license | NicSchuler/DSF_NFLDraftPrediction | 016e341a2f870d98af4bcaa21a747e224d2150ee | 301032b0b9f7053a5ac8303cf2357de496c53925 | refs/heads/master | 2020-09-07T11:59:57.337829 | 2019-12-02T22:38:33 | 2019-12-02T22:38:33 | 220,773,179 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 53,932 | r | ClassificationTree.R | # Load required packages
library(dplyr) # data wrangling
library(rpart) # performing regression trees
library(rpart.plot) # plotting regression trees
library(tidyverse)
library(rattle) # Fancy tree plot
library(RColorBrewer) # Color selection for fancy tree plot
load("../Data/CleanData/CleanCl... |
79369b3d1683104f16f1e5b1446034ca7810bdf9 | 1e820fe644a039a60bfbee354e50c775af675f6b | /Sampling/sampling_from_50_straws.R | de77fcaed4e7f1d1a47343f6e8b820136ef82f63 | [] | no_license | PyRPy/stats_r | a334a58fca0e335b9b8b30720f91919b7b43d7bc | 26a3f47977773044d39f6d8ad0ac8dafb01cce3f | refs/heads/master | 2023-08-17T00:07:38.819861 | 2023-08-16T14:27:16 | 2023-08-16T14:27:16 | 171,056,838 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,834 | r | sampling_from_50_straws.R |
# Sampling from 50 Straws -------------------------------------------------
# This sampling method is for 'draw 6 x yao' to determine a 'gua' use
# 'yin' or 'yang' to represent changes;
# 'yin' in yiching is like 0 while 'yang' is 1, so the gua is like a
# six digits like 011011
# The sampling method is farily a ... |
b862b68b4f5e6ac5e1d90e05917859a611720dea | f9c0a474528efd3f9afb1854a577f7bd7986bae8 | /long_lat_locations.R | d6e313d5ecde87a8f7399561904c85b0cfbc375c | [] | no_license | billzkhan/Dangerous_driving_behavior_AV | 4443858d0a43bf4f245b1ee587b2ef26a0a26ded | e90a8a9511fc2b254cb35c37f9da5881f26fcab1 | refs/heads/main | 2023-05-28T14:07:41.956360 | 2021-06-09T00:38:43 | 2021-06-09T00:38:43 | 375,180,194 | 0 | 0 | null | null | null | null | UHC | R | false | false | 839 | r | long_lat_locations.R | # ggmap 2.7을 설치합니다. (아직 CRAN에 등록되어 있지 않습니다.)
devtools::install_github('dkahle/ggmap')
# 필요 패키지를 불러옵니다.
library(ggmap)
register_google(key = 'AIzaSyCRNk5UxmpemxrqUxQKymycSSVBT5CpYsU')
get_map(location = '세종',
zoom = 14,
maptype = 'roadmap',
source = 'google') %>%
ggmap()
#instal... |
74a3f3af96a6b4a944173649982f660315ee3e80 | 844439538e4c7ddf130b791d348618374f2c2ea3 | /man/collect.Rd | 9084ce78f01b35c7fc0fdeb2276693d700ca4d80 | [
"Apache-2.0"
] | permissive | cran/narray | bdb2011851021a35a638e7d9ee97dddb92843976 | 2581863eb61fb37a6728bca79a72418f932ec731 | refs/heads/master | 2023-03-21T05:58:32.962838 | 2022-10-02T12:40:02 | 2022-10-02T12:40:02 | 75,849,917 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 424 | rd | collect.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/collect.r
\name{collect}
\alias{collect}
\title{Converts a logical matrix to a list of character vectors}
\usage{
collect(x, along = 2)
}
\arguments{
\item{x}{A logical matrix}
\item{along}{Which axis to spread mask on}
}
\value{
A character... |
c4b7475799acaa9c44edc8b3826331a373399e44 | 40ec7ab6d73f71688c4ef417f0d4850049a8af1d | /Monte_Carlo_Simulation.R | cc05a3765148ec37fc85347fa26a4be7994a537f | [] | no_license | gsatone/data-analytics | 28dfe94421e3ce882c38e10c660f63fcfbf127e0 | f4e1e0d3094d8c644900812a81eaeda6fdf48c53 | refs/heads/master | 2022-12-21T00:34:53.406468 | 2020-04-02T15:52:40 | 2020-04-02T15:52:40 | 242,031,344 | 0 | 0 | null | 2022-12-16T10:02:33 | 2020-02-21T01:48:39 | Java | UTF-8 | R | false | false | 2,965 | r | Monte_Carlo_Simulation.R | #Monte Carlo simulation
p <- 0.45 # unknown p to estimate
N <- 1000
# simulate one poll of size N and determine x_hat
x <- sample(c(0,1), size = N, replace = TRUE, prob = c(1-p, p))
x_hat <- mean(x)
# simulate B polls of size N and determine average x_hat
B <- 10000 # number of replicates
N <- 1000 # sample ... |
0ecfa5d3a463816c527d258d593c12cc58d1fa03 | 42deb94948bd04300274d517aa8e3033c8dd3df2 | /R/checkGMU.R | 04ae1d5ada7dcb2b9adca6d29289252dae7a0fda | [] | no_license | cran/pedometrics | fe0940a0af6ceb02f9910d955ce6af72da94a5dc | 7329722f174c88e86620b21a81c1affc0e42b93f | refs/heads/master | 2022-07-03T13:49:28.737562 | 2022-06-19T05:10:02 | 2022-06-19T05:10:02 | 22,748,555 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,213 | r | checkGMU.R | #' Evaluation of geostatistical models of uncertainty
#'
#' @description
#' Evaluate the local quality of a geostatistical model of uncertainty (GMU) using summary measures
#' and graphical displays.
#'
#' @param observed Vector of observed values at the validation points. See \sQuote{Details} for more
#' information.
... |
2ad4eff1b315363184e6cde925a72dc800d7cbfc | de9d448132f90f073d29add688de2fcf72527a89 | /man/prepSeurat.Rd | ec177e0b878750ffef497ae1672c5390ae3a0282 | [
"MIT"
] | permissive | NMikolajewicz/scMiko | 33f137e9e3a6318fb0386506ac4666a3822463f0 | bd00724889db265817fc54d0d50b14647d32438d | refs/heads/master | 2023-06-09T05:51:30.199131 | 2023-06-04T20:23:51 | 2023-06-04T20:23:51 | 249,496,034 | 20 | 4 | null | null | null | null | UTF-8 | R | false | true | 394 | rd | prepSeurat.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preparation_functions.R
\name{prepSeurat}
\alias{prepSeurat}
\title{prep Seurat}
\usage{
prepSeurat(object)
}
\arguments{
\item{object}{Seurat objects}
}
\value{
Seurat object
}
\description{
Preprocess using fixBarcodeLabel(), UpdateSeuratOb... |
799f82dda917186a959758a453525338820c8790 | 834d59eb3b518dd33732b92d99d4767b868cbe20 | /src/download_file.R | 22ece6244ce709876151ae31c7ffff22be7c5edb | [
"MIT"
] | permissive | UBC-MDS/DSCI522_Group413_WhatHappensInVegas | 2937624020d8788ba54e0f4525188e8b096a9ae4 | f12f231eeed3462d69c7819be4b48180dd54891c | refs/heads/master | 2020-12-14T05:33:02.647061 | 2020-02-08T21:52:08 | 2020-02-08T21:52:08 | 234,657,738 | 1 | 4 | MIT | 2020-02-08T21:52:09 | 2020-01-18T00:07:32 | R | UTF-8 | R | false | false | 607 | r | download_file.R | # authors: Arun, Bronwyn, Manish
# date: 2020-01-17
"The script downloads a file from specified url to specified location on location machine.
Usage: src/download_file.R <file_source> <destination_file>
Options:
<file_source> Takes in a link to the data (this is a required positional argument)
<destination_f... |
1334ad9f5fb4c52de9cf544357b82c5842d32889 | e7fcc7ba4ed4ecc842c13a09e44c32cdf88cff46 | /lol.R | 4fa4e5c0c32cc6fd8af884c5b63fd394e1487fd1 | [] | no_license | josephcoz/lol | 58177ad6dadfbec6a48c7f19f849d6c31a11f1d6 | b738517cf4683ef2552b2ce4fd31f84b4cbd3f12 | refs/heads/master | 2020-06-28T03:12:06.701986 | 2019-08-01T22:58:54 | 2019-08-01T22:58:54 | 200,129,140 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,870 | r | lol.R | # attach relevant libraries
library(httr)
library(jsonlite)
get1<-GET("https://s3-us-west-1.amazonaws.com/riot-developer-portal/seed-data/matches10.json")
alljson1<-fromJSON(content(get1, "text", encoding = "UTF-8"))
# get 100 chunks
lol <- data.frame(win=integer(),
kills=integer(),
... |
b64804002692af9e2bfdb49aeb1086f082aee08b | 4732ee568329830a646280c2267a1d9e4fd7dba3 | /Ejemplo2.R | e18f607522f9bb283513acfbb1b738d94c2539e4 | [] | no_license | OscarSalaza/BSSESION7 | 6fcf591998eb723f8cc457faaff8dedd9bc28d93 | 2629841076e3131a729720d276e4cee462d2b0ab | refs/heads/main | 2023-02-24T10:23:41.634762 | 2021-01-28T02:04:51 | 2021-01-28T02:04:51 | 333,608,453 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 42 | r | Ejemplo2.R | #otro intento
summary(mtcars)
#funciona
|
819c93a0004787508d45925366c9905632d7bf42 | a349462b9abf56b84eef64eb32c34e2c5b019483 | /tests/testthat/test_data.R | 27f7b67fe440e004d517ae90220e5d88565de02d | [] | no_license | timmcm/dibbler | e040b7afdd0ebea5d2d1eea1b1befa0431c72b06 | 0703c35648271914f008c0d3a23822a01ffe4da0 | refs/heads/master | 2021-01-21T18:22:13.203421 | 2016-07-08T15:57:32 | 2016-07-08T15:57:32 | 65,034,201 | 0 | 0 | null | 2016-08-05T16:43:16 | 2016-08-05T16:43:15 | null | UTF-8 | R | false | false | 289 | r | test_data.R | context("Test input data processing")
## test data ##
test_that("test: data are processed fine", {
## skip on CRAN
skip_on_cran()
rm(list=ls())
## generate data
expect_error(dibbler.data())
## check output shape
## check attributes
## round trip
})
|
0c3826a63e01af5c9cc6fee12fa6d6a66e3fc1f3 | 04ff194cd73de53e0172e1ce59ba8ab755c95783 | /2021-04-21 lecture/ch02.R | 89665f2f32767ae629efd22f07b56a50708baaf2 | [] | no_license | GhyunOh/R-Lecture-2021 | fb7c9e59f2a4f6c93f07e077460e559ba81ebad9 | 6505abe48030f19181c378eff3f3d93621a8f74d | refs/heads/main | 2023-04-19T19:45:13.591122 | 2021-05-18T08:54:37 | 2021-05-18T08:54:37 | 359,694,713 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,175 | r | ch02.R | women
plot(women)
str(cars)
# 두 줄을 선택한 후 상단에 있는 'run' 버튼을 누르면 한꺼번에 실행됨
a <-2
b <- a*a
# 작업 디렉토리 지정
getwd()
setwd('/workspace/r')
getwd()
library(dplyr)
library(ggplot2)
search()
str(iris)
iris
head(iris) # Default는 상위 6개만 보여줌
head(iris, 30)
tail(iris) # Default는 하위 6개만 보여줌줌
plot(iris)
plot(iris$... |
bae6696d975f1cb531d799099726bc51801dc386 | 3449a99c56cf3120aa02ab22c58edbd3d6286074 | /get_var.R | 9fbfe27b98e059f12af617a70563d03d6b82d0f9 | [] | no_license | martin-vasilev/Bmeta | f124f73e8d2b53ecddb41ef50ecde699b35c84e6 | 39d587df5f816c24510093a44d8d2f100729292c | refs/heads/master | 2021-01-18T02:20:32.482029 | 2016-08-02T10:53:23 | 2016-08-02T10:53:23 | 58,971,665 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 64 | r | get_var.R | get_var<- function(s1, s2, n){
return((s1^2+s2^2)/n)
} |
47f507d5b41e266b82ca8e3c275e6d4fa2c7b790 | b25541ff0ed8d5a85b52137e16795c38306ca534 | /Project Analisa Klasifikasi Pinjaman untuk Sektor UMKM.R | 149610c12238402972bad1d6c321e24afc73c163 | [
"MIT"
] | permissive | mulkiah/Data-Science-with-R | a23a0097d0250780dab01f8ad60b2f0e067ce8bc | 3429fc7969d13b6d0a575a28cbd8d9e2601b6925 | refs/heads/main | 2023-08-18T11:44:29.993627 | 2021-10-20T01:25:06 | 2021-10-20T01:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,573 | r | Project Analisa Klasifikasi Pinjaman untuk Sektor UMKM.R | # Membaca Data External
data = read.csv("https://storage.googleapis.com/dqlab-dataset/project.csv")
# Inspeksi data
# Enam baris teratas data
head(data)
# Tampilkan tipe data setiap kolomnya
str(data)
# Statistik Dekriptif data
summary(data)
# Menghapus kolom X dan nama nasabah
data_reduce = data[-c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.