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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67fe66a11ca422befdc57690f6d9cad50e2de386 | 184180d341d2928ab7c5a626d94f2a9863726c65 | /valgrind_test_dir/orderTriGrid_-test.R | 7fd7626669795d56c98dbf1724a9d33cb5662c7a | [] | no_license | akhikolla/RcppDeepStateTest | f102ddf03a22b0fc05e02239d53405c8977cbc2b | 97e73fe4f8cb0f8e5415f52a2474c8bc322bbbe5 | refs/heads/master | 2023-03-03T12:19:31.725234 | 2021-02-12T21:50:12 | 2021-02-12T21:50:12 | 254,214,504 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 384 | r | orderTriGrid_-test.R | function (faces, neigh, startFaces, startVert, nBelts, nV)
{
e <- get("data.env", .GlobalEnv)
e[["orderTriGrid_"]][[length(e[["orderTriGrid_"]]) + 1]] <- list(faces = faces,
neigh = neigh, startFaces = startFaces, startVert = startVert,
nBelts = nBelts, nV = nV)
.Call("_icosa_orderTriGrid... |
e716cfc1800d461206f559982a0d90f10e9320d6 | bd21a32d8baf53669f6e65c388d41aab38569ce5 | /R/plot_S_event_type.R | 95de75e722aa70440dc26f1111022da0e7ce30ee | [] | no_license | han-tun/rstanbmcm | e5b8f9a315ff09e11a11bd9816e555f5ce7aedce | 76d2c423fdd5d0a63040176df1068867a81da8e8 | refs/heads/main | 2023-01-06T09:38:31.432306 | 2020-11-03T15:20:05 | 2020-11-03T15:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,064 | r | plot_S_event_type.R |
#' plot_S_event_type
#'
#' Plot results of running stan
#' relative survival mixture cure model.
#'
#' @param file_names Nested list of file name for stan output
#'
#' @importFrom purrr map
#' @importFrom reshape2 melt
#' @importFrom rstan extract
#' @importFrom dplyr mutate
#'
#' @examples
#' load("data/file_names.RD... |
103230e9164a71f59bad8de6c47cee655f80036b | dcbd82e150369094a73253fa48cdd2887e1dd778 | /IO_M2.1_new/Report_M2.1a_LoadingDemoData.R | 3d76e6ba16f6386e68cee15bb101e36fc2445c13 | [] | no_license | yimengyin16/Model_Main | 0e8140ba296d1115bbbc64bcffefb05ac7a4fe86 | b63573407aaa0f6489d96083bf2fe09e843ca43f | refs/heads/master | 2022-07-03T22:44:47.660461 | 2018-02-22T01:36:15 | 2018-02-22T01:36:15 | 27,349,525 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 8,612 | r | Report_M2.1a_LoadingDemoData.R | rm(list = ls())
library(reshape2)
library(plyr)
library(dplyr)
library(tidyr)
library(ggplot2)
library(knitr)
library(magrittr) # to use %<>%
library(zoo)
library(grid)
library(gridExtra)
library(stringr)
library("readr")
library("readxl")
library(xlsx)
source("Functions.R")
IO_folder <- "IO_M2.1_new/"
#********... |
c803d2dad20a1ce642179d8d74963c00083a6eb8 | c83543898829fb207002ba13995d6a1f1e17fad0 | /subset selection.R | 2a6988444e088273044c4f16be4e0eccd5170044 | [] | no_license | eslh2050/Machine-Learning | ff6b28ac5bd7dfe4e61435887898cb08172b1376 | 038d62c3ed8c498e088a89545cd9ac9328c75496 | refs/heads/master | 2021-01-01T19:35:13.692499 | 2015-04-21T22:50:12 | 2015-04-21T22:50:12 | 34,356,186 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,484 | r | subset selection.R | library(ISLR)
?Hitters
attach(Hitters)
### check for missing Salary Values.
### There are 59 missing salaries
sum(is.na(Salary))
Hitters = na.omit(Hitters)
attach(Hitters)
dim(Hitters)
### the observations with missing values are deleted
### Use subset selection to decide what
### variables should be in our mode... |
0c7f9c467f1db6cc57d1fc7429fa6053121f5988 | d2088d962b87482688cfe98c0c73fe978bc38c5f | /src/function_def_stages.R | 9b5320838d98c3d263591e01ad9162c4794c2b88 | [] | no_license | pascaltimshel/temporal-brain-expression-scz | e7360890243de5df04cd3e3a71cd522315a67ed0 | 8a5bed33d1c3b689cbba18e0a6ec54c5eb05f2e8 | refs/heads/master | 2021-06-29T18:47:25.020356 | 2017-09-15T08:33:49 | 2017-09-15T08:33:49 | 26,609,253 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,719 | r | function_def_stages.R | ################### Defining stages ####################
stages = list()
stages[["s1"]] = c() # 1 4-7 pcw Embryonic
stages[["s2a"]] = c("8 pcw","9 pcw") # 2A 8-9 pcw Early prenatal
stages[["s2b"]] = c("12 pcw") # 2B 10-12 pcw Early prenatal
stages[["s3a"]] = c("13 pcw") # 3A 13-15 pcw Early mid-prenatal
stages[["s3b"]]... |
63c95bddec246d5c8f41904a82ac70f645e38a7a | a6eb20e849fd02cef5ad041762a8a753e70b0f1b | /plot1.R | 3d0d3dab797a0245c831c5f10ff2aaa444bcbf48 | [] | no_license | prcm066/ExData_Plotting1 | 6d367953493c378650cafd9178807e5696832df1 | 8849cd62b36eda990006696b73611015dfc24e1b | refs/heads/master | 2023-05-12T21:56:11.998679 | 2015-02-08T21:41:00 | 2015-02-08T21:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 620 | r | plot1.R | library(data.table)
library(lubridate)
library(dplyr)
#setwd("/home/pablo/Data-Science/ExpData/ExData_Plotting1")
# Download and Unzip data.
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip","hpc.zip")
unzip("hpc.zip")
#read data and filter by date
hpc<-read.csv("house... |
7247d33b062835f78b71ff1b21dbef4f84101201 | 4fe5f0bcf41beac5ef402d62df2aa87ff7a1bf32 | /man/jd_checklast.Rd | ea49d4dc0a23e2ff8d96af1c0919b0be62ca7b93 | [] | no_license | palatej/jdemetra-jdlight | 21a6769e1b6073496886fb8e3e605c6533b62f61 | 244693eca78c9c72cae5c3d3ac9b095683e73591 | refs/heads/master | 2021-01-11T04:11:45.177191 | 2018-09-17T07:46:38 | 2018-09-17T07:46:38 | 71,233,740 | 0 | 0 | null | 2016-10-18T09:49:36 | 2016-10-18T09:49:36 | null | UTF-8 | R | false | false | 978 | rd | jd_checklast.Rd | \name{jd_checklast}
\alias{jd_checklast}
\title{
Checking of the last observations (Terror-like)
}
\description{
jd_checklast is a straightforward implementation of Terror, a popular tool for detecting anomalies in the last observation(s). This function compares the out of sample forecasts of the series with the actua... |
d5ab54250efc74439e38291994dfab657b5d1c03 | 489df444580b3462aa582b6ad6aa24a779685754 | /mgmt-run.R | 4da3374fe203fb5cec2b4d14b0cc85e9b5e5a682 | [] | no_license | jogwalker/mgmt-jacobian-parallel | 75ccb351f509bbe1833f9408118498239d54ad13 | 25a0b4b8d1cc366f7d289430f6be8560919d43a8 | refs/heads/master | 2020-04-01T12:58:26.377062 | 2013-07-01T17:14:33 | 2013-07-01T17:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,009 | r | mgmt-run.R | args <- commandArgs(T)
outdir <- args[1]
jid <- as.numeric(args[2])
# read in the necessary functions
source("~/mgmt-jacobian-parallel/mgmt-functions.R")
# load network data
load("~/mgmt-jacobian-parallel/network.rdata")
# run simulations
set.seed(jid)
# load n
load("~/mgmt-jacobian-parallel/n.rdata")
mat.stable <... |
7f59b186e250d9e3810c6bc01683740c758623b5 | 73db71f7316c3d921a438cb2b6e4c567e9f84364 | /core/GENEO_VINYL.R | 03511eda456ce1e6f7a32eb35645d297fde4004d | [] | no_license | matteo14c/VINYL | f9249d6977b0f429e7a870c0cf2fabfc64456d29 | db14c03c609a4b204346c0da9630cb325595e9bd | refs/heads/master | 2020-12-19T16:42:46.461149 | 2020-10-27T17:26:16 | 2020-10-27T17:26:16 | 235,791,563 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,776 | r | GENEO_VINYL.R | #!/usr/bin/env Rscript
args <- commandArgs(trailingOnly = TRUE)
file1=args[1]
file2=args[2]
config=args[3]
minsV=as.vector(as.integer(unlist(strsplit(args[4], split=" "))))
maxV=as.vector(as.integer(unlist(strsplit(args[5], split=" "))))
ofile=args[6]
header=c("disease_clinvar","score_AF","score_functional","score_NS"... |
2442ee284389a3e888d1549a12d5a7e4a7b7a8d4 | 007ae03cfe5abf41a0ad864eade451141c267cca | /auto-docs/executables/r/line_scatter.r | 5055441c928078cc1e43730137494f8b3e9cb806 | [] | no_license | VukDukic/documentation | ca96eb1994eeb532fe60c542960b017354bcede1 | 8e5aefdc38788956cfe31d8fe8b4b77cdf790e57 | refs/heads/master | 2021-01-18T09:02:27.034396 | 2015-01-20T23:46:58 | 2015-01-20T23:46:58 | 30,007,728 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 654 | r | line_scatter.r | # Learn about API authentication here: {{BASE_URL}}/r/getting-started
# Find your api_key here: {{BASE_URL}}/settings/api
library(plotly)
py <- plotly(username='TestBot', key='r1neazxo9w')
trace1 <- list(
x = c(1, 2, 3, 4),
y = c(10, 15, 13, 17),
mode = "markers",
type = "scatter"
)
trace2 <- list(
x = c... |
46d96a38252b4616f0ea7b05ae8a0b7a87f61a64 | d160bcfc5ad9a9f2f0b2b8013927df0d91755553 | /code.R | abd74419da103a401bee89c0e992a22a2025f957 | [] | no_license | NafissahPouye/sdc-msna-afg-microdata | d461fe8ef3a204c02733fc5a4c6d5b7c04cce116 | a1687bc2d825c32adcecc48dc66e4f0b953291a4 | refs/heads/master | 2020-11-23T20:21:43.865057 | 2019-12-13T09:44:35 | 2019-12-13T09:44:35 | 227,806,223 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,107 | r | code.R | #Load required libraries
library(readxl) #for excel, csv sheets manipulation
library(sdcMicro) #sdcMicro package with functions for the SDC process
library(tidyverse) #optional #for data cleaning
#Import data
setwd("C:/Users/LENOVO T46OS/Desktop/sdc-afg-msna-microdata")
data <-read_excel("data.xlsx", sheet ... |
71da4840224443f4e255775d5521284c6490f781 | 7eb4348b59159f4f0c9b11d9b01b8a86fa839e71 | /R/For loops Running through column names.R | 1d8159d2aade2664955d4986aaa07f06d4d419c9 | [] | no_license | JustinMShea/stack-overflow | f5417e8cb968e62d1f9a54128c2bd2d7ad9c6d90 | e6559de8a50fc0db8faa2a0d1eb983205806163e | refs/heads/master | 2021-01-17T07:21:14.072144 | 2018-09-12T23:48:29 | 2018-09-12T23:48:29 | 95,308,778 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 430 | r | For loops Running through column names.R |
# example using 1000 rows and 50 cols of data
N <- 1000
P <- 50
data <- as.data.frame(rep(data.frame(rnorm(N)), P))
# Assign your y data to y.
y <- as.data.frame(rep(data.frame(rnorm(N)), 1))
# create a new data.frame containing y and the last 22 columns.
model_data <- cbind(y, data[ ,29:50])
colnames(model_data) ... |
1cdcc99faa873829d75381af054db7a5495e9767 | e6a31548cd2e3099adaad65ce3482c5bccfe410c | /jimmy_jimmy/jimmy_cumulative.R | 679ffc2c7023e41480d1796d74a51403e049d8bc | [] | no_license | committedtotape/i-dont-like-cricket | eb97ebd06115893782cad50142a2b0139eadd8d4 | 82496c223e5405069464f3891170292f4bc6da69 | refs/heads/main | 2023-03-09T19:05:21.082862 | 2021-03-01T21:33:27 | 2021-03-01T21:33:27 | 338,899,043 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,978 | r | jimmy_cumulative.R | library(tidyverse)
library(here)
library(janitor)
library(polite)
library(rvest)
library(ggforce)
library(glue)
library(ggtext)
#getPlayerData(profile = 8608, dir = here("data"), type = "bowling", file = "james_anderson.csv")
#jimmy <- cleanBowlerData(here("data","james_anderson.csv"))
jimmy_url <- "https://stats.es... |
9ccbafde991a3a8aff8682d52efb3ef0ed945f91 | e58ef035ef5f03d0407cc99e83c56cbe8fc5f44c | /R/zzz.R | ac109db72d6a9d6b902e5df57d3d5c732dd4e418 | [
"MIT"
] | permissive | medewitt/staninside | 422ec48ceaa8473ee4951384e9251dd12efeda05 | 2a27a54f87fe26bd45ed72a000621c9d7762e248 | refs/heads/main | 2023-05-22T16:24:11.087344 | 2021-11-20T12:55:29 | 2021-11-20T12:55:29 | 368,686,599 | 6 | 0 | NOASSERTION | 2021-11-20T12:55:30 | 2021-05-18T22:59:39 | R | UTF-8 | R | false | false | 197 | r | zzz.R | globalVariables({
})
this_package <- function() {
"staninside"
}
make_this_package <- function(pkg_name) {
txt <- sprintf(
"this_pkg <- function () {
'%s'
}\n", pkg_name
)
txt
}
|
1496d63dc4cb9763cfbb2eb17f2b0d0eab7246ad | e3259d8f489b093b246fe2fd0c4fb6999d6466bf | /man/strmean.dt.Rd | d6fbebc8393cfb5cf9ac806d361a340db3b04274 | [] | no_license | Franvgls/CampR | 7baf0e8213993db85004b95d009bec33570c0407 | 48987b9f49ea492c043a5c5ec3b85eb76605b137 | refs/heads/master | 2023-09-04T00:13:54.220440 | 2023-08-22T14:20:40 | 2023-08-22T14:20:40 | 93,841,088 | 0 | 2 | null | null | null | null | UTF-8 | R | false | true | 985 | rd | strmean.dt.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/strmean.dt.R
\name{strmean.dt}
\alias{strmean.dt}
\title{Medias intraestrato y estratificadas por estratos geográfico y batimétrico}
\usage{
strmean.dt(x, sector, area, Nas = FALSE)
}
\arguments{
\item{x}{Es el vector de abundancias en peso o... |
5152092f557b3d0f38ddf25d682c90303aa82fd6 | 959e7ec322afde2310f97ce493626676da5a2673 | /hosp_workers.R | 5871ec33be46e68db00c350f6e8a0d0377425f16 | [] | no_license | aseemdeodhar/hosp-workers-bos | c45cae6031aef526933b5f7f5d31d6a9759c848a | 45b1002d6cf90e038fb3a8627040978290baae3f | refs/heads/master | 2022-12-01T09:24:47.346787 | 2020-08-07T17:49:08 | 2020-08-07T17:49:08 | 285,401,737 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,244 | r | hosp_workers.R | # This analysis is to try and identify hospital shift workers by analysing usage statistics from
# the Transit App.
# loading required packages:
library(tidyverse)
library(lubridate)
library(sf)
library(leaflet)
# Loading required data:
bos <- read_sf("shapefiles/i95_tracts/i95_tracts.shp")
hosp <- read_sf... |
b9aef07bbce5b1c62b48a17fc9274fbfe1fb4013 | 5aa94eaf6fb56d125933f32a25e65ca6862ddb9a | /man/tfcalculus.Rd | bfb5c78e7e9c6d0e7a87e95d8a3734d12a931d92 | [] | no_license | HerrMo/tidyfun | a938149c69a7db6d9b4cae94f0d435a4dcad0450 | 8d7be6b48ac59bf1e34822baee760902a284540f | refs/heads/master | 2020-04-15T10:27:17.481261 | 2018-11-26T23:16:22 | 2018-11-26T23:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,718 | rd | tfcalculus.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculus.R
\name{tf_derive}
\alias{tf_derive}
\alias{tf_derive.default}
\alias{tf_derive.tfd}
\alias{tf_derive.tfb}
\alias{tf_derive.tfb_fpc}
\alias{tf_integrate}
\alias{tf_integrate.tfd}
\alias{tf_integrate.tfb}
\title{Derivatives and integr... |
93219884c0a387d4964a0a451037303e51d3b212 | 9a7d07e326185c1b2314c3adb3c3f99edaaadb12 | /inst/scripts/align.R | 3c0b4948981f11e532fa245cfefb085b6f9f1d10 | [] | no_license | lawremi/VariantToolsData | 59ef507f511da90314a4663c84b9787136adfe9f | c52bbad1584a43b7af6fe9c43860376776599e91 | refs/heads/master | 2021-01-12T08:11:57.456380 | 2018-02-02T16:57:07 | 2018-02-02T16:57:51 | 76,499,706 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 415 | r | align.R | library(gmapR)
param <- GsnapParam(TP53Genome(), unique_only = TRUE, molecule = "DNA",
batch = "4")
extdata.dir <- system.file("extdata", package="VariantToolsTutorial")
extdata.dir <- "../extdata"
first.fastq <- dir(extdata.dir, "first.fastq", full.names=TRUE)
last.fastq <- dir(extdata.dir, "last.f... |
06b935085ab05acc9fafad6d3832822c0f3b9f1d | 5f684a2c4d0360faf50fe055c1147af80527c6cb | /2019/2019-week-17/anime2.R | bda1d4c6448f0a0ca1fa79a920ba9fe9ca8723ab | [
"MIT"
] | permissive | gkaramanis/tidytuesday | 5e553f895e0a038e4ab4d484ee4ea0505eebd6d5 | dbdada3c6cf022243f2c3058363e0ef3394bd618 | refs/heads/master | 2023-08-03T12:16:30.875503 | 2023-08-02T18:18:21 | 2023-08-02T18:18:21 | 174,157,655 | 630 | 117 | MIT | 2020-12-27T21:41:00 | 2019-03-06T14:11:15 | R | UTF-8 | R | false | false | 1,695 | r | anime2.R | library(tidyverse)
library(wesanderson)
tidy_anime <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-04-23/tidy_anime.csv")
# remove NA
tidyA <- tidy_anime %>%
# set end_date to today for titles still airing and NA as end_date
# mutate(end_date = replace(end_d... |
4a27ef8124431b74a232c2bd763e68bb03cd4ebe | 3c449b1c7af361336841a55d347cb1bca1adab81 | /man/L1_reg.Rd | c003e3fd8fc8d37c52218be49daa980bdd545bb2 | [] | no_license | kcf-jackson/wandeRer | 600b3cdc1b76e72ff1a1e9bff060aa7d7559bf56 | 90a3066e35cc68366625d6d018ff4a810a834b6e | refs/heads/master | 2020-04-02T05:45:37.956462 | 2016-08-02T11:38:35 | 2016-08-02T11:38:35 | 64,651,023 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 235 | rd | L1_reg.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loss_and_reg_functions.R
\name{L1_reg}
\alias{L1_reg}
\title{L1 regularisation function}
\usage{
L1_reg(param)
}
\description{
L1 regularisation function
}
|
9e08878f7a6727c80081860e6988b70ca5004d10 | 292402192edd7cbde0f840efb82f09ea7ca92c15 | /R/optimise_point.R | e397781166cfb1607037a95134ee274261c76d83 | [
"MIT"
] | permissive | tanxuezhi/hydrostreamer | 94a466da9a3b19ad23d6c0b77bbb6203cb3f3372 | 4c78053ed175dffebfd486124bc0acdd3bb522a6 | refs/heads/master | 2023-04-18T14:26:32.983942 | 2021-05-05T15:23:29 | 2021-05-05T15:23:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,177 | r | optimise_point.R | #' Computes optimal estimate at a specific river segment(s)
#'
#' Function performs data assimilation by combining timeseries of downscaled
#' discharge estimates against observed streamflow timeseries at all river
#' segments with observations.
#'
#' Optimisation can be performed either using ordinary least square... |
64b3b117d432677ac13cee30d611defc9d715408 | 831d4a79ea5954ad7f52729b254587dd444761a7 | /test.R | 762569a01ad25add0f30543586655d47a0842c80 | [] | no_license | karlkwon/Cosera_practical_machine_learning | 6a09755c86b1c8cca1e7d53538171157b11bcd5d | 412804041a24cdfcd638cda3e8a5fe424475a0e9 | refs/heads/master | 2021-01-10T08:46:44.387062 | 2015-11-23T10:15:39 | 2015-11-23T10:15:39 | 46,615,139 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,956 | r | test.R | install.packages("caret")
install.packages("rmarkdown")
install.packages("data.table")
install.packages("list")
#library(data.table)
library(caret)
library(list)
training <- read.csv("pml-training.csv", stringsAsFactors=FALSE, na.strings = c("NA", ""))
head(training)
## when I look over training data, there is a emp... |
11b453d1f119f13fdc01e7dc689cc74df6bc8b19 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/globals/tests/globalsOf.R | bec84e33df2a0e5ab7d1ad127ec6879f0cb31e92 | [] | 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 | 12,672 | r | globalsOf.R | library("globals")
## WORKAROUND: Make sure tests also work with 'covr' package
covr <- ("covr" %in% loadedNamespaces())
if (covr) {
globalenv <- function() parent.frame()
baseenv <- function() environment(base::sample)
}
a <- 0
b <- 2
c <- 3
d <- NULL
e <- function() TRUE
expr <- substitute({ x <- b; b <- 1; y <... |
e3ef08a240926199397091ad293442324e4231b3 | 5ac6affeacb3e5214e4eb5e1423f6ac616676a0e | /StructuralVariants/NISTv0.6/171212_SV_merging_analyses_benchmarkoutputs_addbionano_addnabsys_v0.6.R | d7f713743601974810c756742625c9372393b8fe | [] | no_license | jzook/genome-data-integration | 7314f91e0560fc2b18c2ccf4a3ce681faf63099e | cfc5e261d9fc98cccd3de4648fe3805f256f2f1e | refs/heads/master | 2022-02-16T02:02:30.093298 | 2021-09-27T21:01:39 | 2021-09-27T21:01:39 | 6,076,562 | 39 | 14 | null | 2018-09-28T09:47:13 | 2012-10-04T14:31:16 | Shell | UTF-8 | R | false | false | 57,209 | r | 171212_SV_merging_analyses_benchmarkoutputs_addbionano_addnabsys_v0.6.R | library(ggplot2)
library(reshape)
library(data.table)
# #SURVIVOR merge if start and end are within 1000bp
# survivor1k<-read.delim("/Users/jzook/Documents/AJTrio/SVs/triounion_171212/SURVIVOR_dist1k_min20bp_suppvec_quotehead.csv", stringsAsFactors=FALSE, header = FALSE, sep = ",", na.strings = c("NA", NA, "NaN"))
# s... |
bfac550a5281bb09cc2e2433a5791c4400a42574 | f63a9c1887ec71cae6d65f88c33ddc99f3fded4a | /man/mongo.index.TTLcreate.Rd | ef761d26c9f2c2505b65794c1d9e39e73ca90fef | [] | no_license | agnaldodasilva/rmongodb | 41b337c42b4b6e1fb41b9ad2949fab1e6a850fb0 | 8eb2bca2d9c88f542832d1bcb6ccd209fdfc676c | refs/heads/master | 2020-08-07T15:39:41.703738 | 2016-03-21T10:36:28 | 2016-03-21T10:36:28 | 213,510,405 | 1 | 0 | null | 2019-10-08T00:10:59 | 2019-10-08T00:10:59 | null | UTF-8 | R | false | false | 1,757 | rd | mongo.index.TTLcreate.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{mongo.index.TTLcreate}
\alias{mongo.index.TTLcreate}
\title{Add a time to live (TTL) index to a collection}
\usage{
mongo.index.TTLcreate(mongo, ns, key, expireAfterSeconds, index_name = NULL)
}
\arguments{
\item{mongo}{(\link{mongo}) A mongo connection object.... |
459b450daf8f05e7714b190166764e0acf4dfd76 | 0d60e7809acc3ca8c4461469802f3d9bb50d3352 | /climatology_compile.R | c924c375071c8d5161e345746752d1e4caca1bf3 | [] | no_license | lark-gorilla/paper2 | 191a9e60bd07926ca7236c2d4402f9cee6d84ad0 | fd9d3fc39499067b2d13036c9afff8d32f262140 | refs/heads/master | 2021-01-22T07:03:33.841439 | 2020-03-03T12:09:16 | 2020-03-03T12:09:16 | 68,729,147 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,788 | r | climatology_compile.R | # 11/09/16 Lancaster, UK
#read in, select and compile hdf data for kernal-based extraction
rm(list=ls())
setwd("~/grive/phd/sourced_data/env_data/climatologies")
library("curl")
#Download data from bloomwatch 360 using get query
# REMEMBER you can grab the get query link by right clicking
# once parameters have been s... |
871c47fff2c4c0a73ce3beeaa2fec5dc75955aea | 81071399eea63bdcce4f43c1bd6186ac9e43a384 | /inst/shiny/gpApp/server.R | cbe931369d1928d7d8e46fc9d2bae6666fb1f0b1 | [] | no_license | computingway/gazepath | 8b5b7ff391f74e07a65f1740664f469e992c7b31 | 69383e53dd708de4f9436a6197fc98397ad4585f | refs/heads/master | 2021-03-31T17:44:12.190829 | 2020-02-09T14:20:02 | 2020-02-09T14:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,051 | r | server.R | library(shiny)
library(gazepath)
library(jpeg)
library(scales)
options(shiny.maxRequestSize = 50 * 1024^2)
options(trace = FALSE)
shinyServer(function(input, output) {
dataInput <- reactive({
inFile <- input$file1
if (is.null(inFile))
return(NULL)
data <- list()
for(i in 1:nrow(inFil... |
89c9a7846ee72f8eb0b9c3f1b20c8b7b096fc75e | ffcac99b2e266eadf9b2f284f002baa46e7f7303 | /01.Clinical Trial Study/Q1 Solution.r | 8f2fef079d7fb5c93560dc455420cda6331bfc37 | [] | no_license | haithamzd/Clinical-Trials-Using-R | b970c3aab719612f6f7ef331555e0b12aca0c0e1 | 1a53ed49328e4eb0cc8a535e14a79f9352e78dfb | refs/heads/master | 2020-08-11T08:04:44.605029 | 2019-05-30T13:37:51 | 2019-05-30T13:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,579 | r | Q1 Solution.r | # Q1:
# Hypothesis: H0: µ1 = µ2 Ha: µ1 ≠ µ2
# R code and results
# Input data
> data = matrix(0,24,3)
> data[,1]=c(2188,1719,1875,1797,1563,2344,1719,1875,2031,1719,2016,2188,1875,1797,2500,2266,2422,2031,2500,1875,2188,1797,1875,1875)
> data[,2]=c(2461,1641,1641,2215,1559,3117,2051,2215,1805,1969,2264,3117,2051,... |
3147991df5b7dc0af9dadd80c54b36b3d200fd8d | 6f74c7cff5963365ab5c37b283a9979edaaf75db | /WQ_get_ereefs.R | acf98534b858b24b062e114c76530af0473b783e | [] | no_license | eatlas/NESP-TWQ-3.2.5_WQ-Metric | e39bbaa9d0a0fe4eaeed5212cdf4b9bfd98ad4dc | 39e82ce002cf7c7f9c1b6ea79b265c9ad901ed72 | refs/heads/master | 2022-05-28T14:15:32.556896 | 2022-05-26T00:09:08 | 2022-05-26T00:09:08 | 131,679,869 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 24,655 | r | WQ_get_ereefs.R | library(ncdf4)
library(sp)
library(raster)
library(dplyr)
library(tidyr)
library(ggplot2)
library(broom)
require(doParallel)
library(gridExtra)
source('WQ_functions.R')
load('data/GIS/Polys.RData')
load('data/GIS/layers.RData')
plot(Polys)
Polys.df = tidy(Polys)
qld.df = tidy(qld)
## Get the 2014-2017 reanalysis ... |
cde5a0b448ef2f15505c5f2eaddb55b512fb4560 | c8d5e5e8eae8057746f3d72be582c30c1007f285 | /R/06_plot_hydroMet.R | 01474336b4041c1956d63769c0dd30c603ab2c05 | [] | no_license | cran/hydroToolkit | 2c3e3a42fe1cc1f745d5760642d02bf87bf6ea54 | 260c3b1b33cf195317f23d7c5635e6348bbb2472 | refs/heads/master | 2022-07-07T09:56:47.244814 | 2020-05-16T09:00:02 | 2020-05-16T09:00:02 | 264,451,856 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 121,744 | r | 06_plot_hydroMet.R | # **********************************************************
# Author : Ezequiel Toum
# Licence : GPL V3
# Institution : IANIGLA-CONICET
# e-mail : etoum@mendoza-conicet.gob.ar
# **********************************************************
#
#' Methods to easily use \code{ggplot2} or \code{plotly} (in... |
adca927123cf37f0fd17c485e6199ba9eb5692dd | 63beda838a67edda7393d3da991c98e6f7cd66bd | /MidtermSeatworks/SW5-Midterm.R | 5fd5f2495f80f7bd9f00b764274102ebd893255e | [] | no_license | hannahnavarro9827/Midterm_Repo | 780fbb222eda090963cd037d3f8ae4aa66a4dfea | 29926c6958b718036710e29b622eb6345d1661a8 | refs/heads/master | 2020-03-22T05:08:28.869932 | 2018-09-18T15:55:53 | 2018-09-18T15:55:53 | 139,544,917 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,166 | r | SW5-Midterm.R | #Seatwork No. 5 Midterm
#Navarro, Ma. Hannah G.
install.packages("imager")
library(imager)
file <- system.file('extdata/coins.jng' ,package = 'imager')
img <-load.image("C:/Users/RM A-225/Documents/R/win-library/3.5/imager/extdata/coins.png")
plot(img)
#Resizing the image
library(imager)
file <- system.file('extdata... |
0cff20b0394c170389d9328ddd2d84d4a03cc8a0 | c6c0881ca260a793a70f5814ab6993c61dc2401c | /scripts/pred_all_jhs.R | c27a742e1e0595ae1da1faa506b2d3474eaa76e5 | [] | no_license | luyin-z/PRS_Height_Admixed_Populations | 5fe1c1bef372b3c64bfd143397709c7529a2705a | bf04ba884fd16e5e8c0685ccfbc86ed72d02c7f2 | refs/heads/master | 2023-03-16T17:05:56.658896 | 2020-09-18T16:58:04 | 2020-09-18T16:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,103 | r | pred_all_jhs.R | #!/usr/bin/env Rscript
##preable###
###########
library(data.table)
library(dplyr)
library(ggplot2);library(reshape2); library(wesanderson)
library(rlist)
library(asbio)
library(GGally)
library(tidyr)
library(hexbin)
library(psychometric)
library(boot)
options(scipen=999)
a<-c('_p1.0000e-08','_p1.0000e-07','_p1.0000e-... |
865534576d450d9b19c7c2f3cc6a4a934c363fb2 | 7fc38c30ffa40b0e4efe78c529380038807b954c | /messageAcrossScripts/scripts/plotsGeneratorCHI.r | 5c43b9c8899829326066c6a2e4744677f447a609 | [
"CC-BY-4.0"
] | permissive | SamGomes/message-across | 2ac0ecf4958999e98639595f779d78a3abc09793 | 9edf8638d98e05755087c4138ce146c11eeab5ca | refs/heads/master | 2023-07-19T20:54:14.161122 | 2023-07-12T10:55:52 | 2023-07-12T10:55:52 | 132,795,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,238 | r | plotsGeneratorCHI.r | suppressMessages(library(ggplot2))
suppressMessages(library(multcomp))
suppressMessages(library(nlme))
suppressMessages(library(pastecs))
suppressMessages(library(reshape))
suppressMessages(library(tidyverse))
suppressMessages(library(sjPlot))
suppressMessages(library(sjmisc))
suppressMessages(library(dplyr))
suppressM... |
9674134c3d5884fdd7ab1e44fee01adc513a2ef1 | 58bbae05372d92b197078e2dc457a3bca7f21401 | /R/generate.R | a96cdf2523e30d0efbeb71eed7e223b2b65c31d2 | [
"MIT"
] | permissive | jonatanrg/fglm_intern | f964cfb7f0913af4af92499842dc7c476294a540 | bdf5765931d7f17e6fbe94857723dbbd10a3c53b | refs/heads/main | 2023-06-04T22:55:18.714871 | 2021-06-24T08:05:26 | 2021-06-24T08:05:26 | 379,848,277 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 444 | r | generate.R | generate_normal <- function(X, b, d = 1, ymax = 1){
# Do argument checking
stopifnot(is.matrix(X))
p <- ncol(X)
n <- nrow(X)
stopifnot(is.numeric(b), length(b) == p)
stopifnot(is.numeric(d), length(d) == 1, d > 0)
stopifnot(is.numeric(ymax), length(ymax) == 1, ymax >= 0)
y <- rnorm(n = nrow(X),0,1)
... |
38ebd7291c7d4ae01fc63da4aeb895331ff1f766 | 31547779d96b1369af66e09e3acefc38c81b70e3 | /server.R | 73f8e8346eb4c7e7187ea51701889df7c9be7f08 | [] | no_license | mwschultz/ExampleRUI | e3680c3ad08922ef4f30ceac1bf054db2e01541f | 700a27a71cf2bea8ce5fec65bf8b080ccc7ebda6 | refs/heads/master | 2021-01-16T18:10:49.595714 | 2017-08-11T19:08:36 | 2017-08-11T19:08:36 | 100,047,947 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 861 | r | server.R | library(shiny)
library(dplyr)
library(ggplot2)
shinyServer(function(input, output, session) {
newData <- reactive({msleep %>% filter(vore==input$vore)})
output$sleepPlot <- renderPlot({
if (input$conservation == TRUE) {
g <- ggplot(newData(), aes(x = bodywt, y = sleep_total))
g + geom_point(size = input$size, ... |
1d2af3f32a19e4bdc53b1eea1bec6a5a8b3b12e2 | 15dbd3d4e01b67d8d152396a22721ec7f00bc652 | /man/getsigns.Rd | ccc8c7526f984503fa47fe2b381afe493ac9cbec | [] | no_license | sckott/rwikispeedia | 5ff37d5d8a003ec625da6b988c5dacf40e2f45d6 | 71d5eaeeeab2954047b2eeeccf851fd81018b3bc | refs/heads/master | 2016-09-05T22:45:57.662950 | 2013-12-13T20:11:27 | 2013-12-13T20:11:27 | 3,345,521 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 725 | rd | getsigns.Rd | \name{getsigns}
\alias{getsigns}
\title{Search Wikispeedia for speed limit signs.}
\usage{
getsigns(nelat = NA, swlat = NA, nelng = NA, swlng = NA,
curl = getCurlHandle(), ...)
}
\arguments{
\item{nelat}{Northeastern latitude bounding point.}
\item{swlat}{Southwestern latitude bounding point.}
\item{nelng}{No... |
e0c4f47783f7d455ccf6cfd7f413e9b88894c9ce | 1ac95d877cf9686adbecf71548899da166e9e6f4 | /man/create_tibble.Rd | 3252febbef6fffb9fad41a8502a1e448b45aa86d | [] | no_license | joelgsponer/waRRior2 | 6bd343f537e5fd79eac757a3e8ca7f83d5023204 | c402215209735b89aefd32b3d54e5afa21e3fd03 | refs/heads/master | 2020-04-30T08:18:59.917677 | 2020-02-18T08:48:51 | 2020-02-18T08:48:51 | 176,711,590 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 441 | rd | create_tibble.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/examples.R
\name{create_tibble}
\alias{create_tibble}
\title{Create a tibble with random values}
\usage{
create_tibble(cols = 5, rows = 100, add_id = TRUE, type = "runif",
verbose = F, debug = F)
}
\arguments{
\item{debug}{}
}
\description{... |
1f5861d5fc16b0bb7a70868669be880b4a897445 | ef35717b113233dc1a9122df61cf1c06645ceaec | /man/nyse.Rd | 95b5c22bf137e32148dc974e8e40ecf2c44f9ac5 | [] | no_license | cran/astsa | d33ba640a0edda0dd9e112ed011bb05ac5c36fb3 | 1e597fa74efc437eb247787fcf7d26e0fe0c6b17 | refs/heads/master | 2023-04-10T07:36:18.196423 | 2023-01-09T21:50:14 | 2023-01-09T21:50:14 | 17,694,513 | 7 | 14 | null | 2016-03-21T15:10:46 | 2014-03-13T04:00:06 | R | UTF-8 | R | false | false | 1,095 | rd | nyse.Rd | \name{nyse}
\alias{nyse}
\docType{data}
\title{Returns of the New York Stock Exchange
}
\description{Returns of the New York Stock Exchange (NYSE) from February 2, 1984 to December 31, 1991.
}
\format{
The format is:
Time-Series [1:2000] from 1 to 2000: 0.00335 -0.01418 -0.01673 0.00229 -0.01692 ...
}
\s... |
f6ee6e4263d8a54c120683c026150a42ff911dcd | 4f4ee1b08bb83448eb96554c606387935456ae55 | /man/codelist.Rd | d438eea7be459385be22e694bb9169a1296401ec | [] | no_license | altaf-ali/countrycode | 2d3a61e41c04c12c16749947f594773f934c609f | b8db1690b1f3f82b05b858bba0808be07327ec43 | refs/heads/master | 2020-03-23T01:02:17.050397 | 2018-07-15T23:18:34 | 2018-07-15T23:18:34 | 60,879,538 | 0 | 0 | null | 2018-07-13T16:18:31 | 2016-06-10T22:05:17 | R | UTF-8 | R | false | true | 4,126 | rd | codelist.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/codelist.R
\docType{data}
\name{codelist}
\alias{codelist}
\title{Country Code Translation Data Frame (Cross-Sectional)}
\format{data frame with codes as columns}
\description{
A data frame used internally by the \code{countrycode()} function... |
fcfc46c1338bcafaea8aed2d824ccb464625a717 | b15fc352b31a36d0e136e1fae4c0c093ffa3635d | /man/AUC.uno.Rd | 7d581668191b31d0afc7799cff28a28859e3ab76 | [] | no_license | cran/survAUC | 76c3c54be6721f4e7e62c248c9ad231289a2384b | e211cd09d0523bdfcfe701a9aca191770878d75b | refs/heads/master | 2023-04-06T12:50:33.745180 | 2023-03-21T17:20:02 | 2023-03-21T17:20:02 | 17,700,199 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,413 | rd | AUC.uno.Rd | \name{AUC.uno}
\alias{AUC.uno}
\alias{spec.uno}
\alias{sens.uno}
\title{AUC estimator proposed by Uno et al.}
\description{
Uno's estimator of cumulative/dynamic AUC for right-censored time-to-event data
}
\usage{
AUC.uno(Surv.rsp, Surv.rsp.new, lpnew, times, savesensspec=FALSE)
sens.uno(Surv.rsp, Surv.rsp.new, lpnew... |
6a9ada4630b9b7e96561e4debb358b8ce7aa89e1 | cbd70b829a3dffc23bffe01929d7732f2df815f5 | /man/plot_interaction_heatmap.Rd | a26ca03b808ede845b2b7a0951af7bef0b53835a | [] | no_license | kimberlyroche/ROL | 603ac7a71a0487b1ff999a14cc34681090e299fc | d33c8f63c692a55cdca9c551b718f1c04929d6f8 | refs/heads/master | 2021-02-18T23:58:43.631388 | 2020-12-08T23:47:55 | 2020-12-08T23:47:55 | 245,254,434 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,528 | rd | plot_interaction_heatmap.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/universal_microbes.R
\name{plot_interaction_heatmap}
\alias{plot_interaction_heatmap}
\title{Plot heatmap over all pairwise (MAP) correlations between microbes at designated taxonomic level}
\usage{
plot_interaction_heatmap(
tax_level = "AS... |
bd85db7e8f622f541483422a9c04c70d9582e814 | 4c5c4febfb7f8cddb8a13368e4b6dad965684eaf | /NEFSC_trawl_explore.R | 200a2ac76263c0d23de5646d25162a64176af21f | [] | no_license | jlmorano/NYB_ecosystem | 1260255747171a79c37c10e4d0e8cc1f73b5d152 | f616446f8309ff39febb29b06d6bfcea566eb4dd | refs/heads/master | 2023-01-13T03:46:43.324088 | 2020-11-20T18:19:24 | 2020-11-20T18:19:24 | 300,346,051 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,848 | r | NEFSC_trawl_explore.R | # Using NEFSC trawl data to explore species distribution along Northeast US coast
# setup
# setwd("/Users/janellemorano/Git/MAB_ecosystem")
library (dplyr)
fall_twl_svbio <- read_csv ("/Users/janellemorano/DATA/NEFSC_trawl/Fall_trawl/22560_FSCSTables/22560_UNION_FSCS_SVBIO.csv")
colnames(fall_twl_svbio)
# [1] "CRUISE... |
4b0c47bd63f09db5cce25cff6d8dc1a15c85e27f | badba9cc4390c3e60e5f0837c74697d645dacc8e | /ucom/man/convert_choiceDF.Rd | e6df7a4ebb11af4ec504617692e805826a249a29 | [
"MIT"
] | permissive | UCOMstudy/UCOM-data-collection | f7ccf03690782ae6861fef49329d54501dbf9bf3 | 9c4f8bfcd72e81776d3626cfcdfa30b87c6d0291 | refs/heads/master | 2020-04-10T20:59:07.067826 | 2020-03-27T18:43:35 | 2020-03-27T18:43:35 | 161,284,380 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 546 | rd | convert_choiceDF.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transform.R
\name{convert_choiceDF}
\alias{convert_choiceDF}
\title{Convert choice Dataframe}
\usage{
convert_choiceDF(df, var_names,
pattern = "^(-)?[0-9]{1,5}(\\\\.[0-9]{1,4})?")
}
\arguments{
\item{df}{Data frame}
\item{var_names}{A vec... |
d5e4410c1fc2991cc926dfb70c0137472d0baf34 | 738cbcc77e4ffe408e3be114988e62141b4faf2e | /R/affixes.R | e38bb686f89de1657632e502bebc2366497d6902 | [
"MIT"
] | permissive | jmones/catmunalias | ab3da6ae9a2c507c422b791d768dbd10ba69e261 | 1dda8c32414fc90c2b1cd5e48b74e09b7323b664 | refs/heads/master | 2022-06-21T15:23:22.186997 | 2020-05-04T21:45:21 | 2020-05-04T21:45:21 | 257,105,799 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,093 | r | affixes.R | library(tidyverse)
#' Returns with element from 'from' matches 'words' using 'compare_function'
#' Returns Inf if none
#'
#' @param words words that will be compared
#' @param from elements to compare to
#' @param compare_function Function to use in comparison
#' @return A vector indexes of the same length of words, w... |
a77267e1c7c0c33c55ea73645fb1f42f3a4a590d | 08eb06a7e26e8fafe46c2cb5bbeca0e2d666bd97 | /tools/quantp/quantp.r | b33d4449134e5d9d368a16cb61a2c05f7599e5dd | [
"MIT"
] | permissive | bernt-matthias/tools-galaxyp | 9e558e0c4126f629ccba25160f14f2cc7a45ebc6 | 6128c982eda8bb6c7a9fd01bd9a5b8d7fc3f810d | refs/heads/master | 2023-08-17T03:10:04.843458 | 2023-08-07T10:49:17 | 2023-08-07T10:49:17 | 104,768,403 | 0 | 0 | MIT | 2022-11-25T21:24:32 | 2017-09-25T15:31:52 | JavaScript | UTF-8 | R | false | false | 67,744 | r | quantp.r | #***************************************************************************************************************************************
# Functions: Start
#***************************************************************************************************************************************
#=========================... |
d964d6f0e7e6a36f3be87022d2a0bd5d9729b60f | c981caf103a3540f7964e6c41a56ca34d67732c4 | /R/mice_imputation_get_states.R | 7c17f1b226cd47d4cd9658a67b9f788db2640133 | [] | no_license | alexanderrobitzsch/miceadds | 8285b8c98c2563c2c04209d74af6432ce94340ee | faab4efffa36230335bfb1603078da2253d29566 | refs/heads/master | 2023-03-07T02:53:26.480028 | 2023-03-01T16:26:31 | 2023-03-01T16:26:31 | 95,305,394 | 17 | 2 | null | 2018-05-31T11:41:51 | 2017-06-24T15:16:57 | R | UTF-8 | R | false | false | 1,108 | r | mice_imputation_get_states.R | ## File Name: mice_imputation_get_states.R
## File Version: 0.407
mice_imputation_get_states <- function( pos=parent.frame(n=1), n_index=1:20 )
{
if ( is.null(pos) ){
pos <- parent.frame(n=1)
}
#-- newstate
# newstate <- ma_exists_get(x='newstate', pos=pos, n_index=n_index )
res <- ma_exis... |
e0911fbe0741430583e70f673fd9c9802707a2cf | 6fba092cf7db695c2d0f4491bdc5a3ce7d4fcc49 | /tests/testthat/test-if_else.R | 2a40120c140738e844673598ab46d687009dbe72 | [
"MIT"
] | permissive | stjordanis/funs | 03b0fab3159eaf9e3a6ee2116b56c3148690165d | 37387ac97a7088e2c4e2ed73d2de59e123738561 | refs/heads/master | 2023-05-14T19:54:20.057387 | 2021-05-17T08:18:30 | 2021-05-17T08:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 730 | r | test-if_else.R | test_that("result has expected values", {
expect_equal(if_else(c(TRUE, FALSE, NA), 1, 2), c(1, 2, NA))
expect_equal(if_else(c(TRUE, FALSE, NA), 1, 2, 3), c(1, 2, 3))
})
test_that("size comes from condition", {
expect_vector(if_else(rep(TRUE, 3), 1, 1), size = 3)
})
test_that("ptype come from true/false/na", {
... |
eb9d2d11a893ce52fef922ef7172dbda5802e89b | ed084be9b1964f7072587863919ef4cddbb79e59 | /tests/testthat/test-urls.R | aab82dc56c5572aaace32444499007e6c62b987f | [
"MIT"
] | permissive | fmichonneau/checker | 008644f37edc0470a211243e41b66fe23400cd5b | 02d2003c99a2410faeebdfe7f0492ac674b6d65a | refs/heads/master | 2021-07-10T09:28:56.897958 | 2020-06-29T07:45:36 | 2020-06-29T07:45:36 | 157,784,463 | 7 | 0 | NOASSERTION | 2019-04-22T20:35:09 | 2018-11-15T23:14:56 | R | UTF-8 | R | false | false | 22,631 | r | test-urls.R | build_html_page <- function(o, self_contained = TRUE) {
f <- file.path("rmd_files", "test_urls_img.Rmd")
rmarkdown::render(
f,
output_file = o,
quiet = TRUE,
output_options = list(self_contained = self_contained))
}
## Common variables -----------------------------------------------------------
e... |
9c1be220cbf96f0ffe5898e3614b2ed74925ca2f | 83fc27eb524842ae12bed6a5f75cfd2557cffbc2 | /antcolorStats/generateSpeciesDistributionPolys.R | 3bfa40bf351233852050409e44602e4162756005 | [] | no_license | calacademy-research/antcolor | c6dd4891b20bf8f055d640326e7ca4ff78e313a4 | 93832e0c570faed1c629834f4adaa83d7f3998cd | refs/heads/master | 2021-11-23T11:37:48.460709 | 2021-10-30T04:53:05 | 2021-10-30T04:53:05 | 140,758,363 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,277 | r | generateSpeciesDistributionPolys.R | #Generate species distributions using raw AntWeb data
install.packages("devtools")
devtools::install_github("marlonecobos/rangemap")
library(rangemap)
unimagedspecimens <- as.data.frame(allspecimens)
View(summary(unimagedspecimens$antwebTaxonName))
unimagedset <- dplyr::filter(unimagedspecimens, grepl('formicinaecampo... |
5244019b1e819cf5ea0173f582b413e8ad74b25a | 6700a5a2525b1d5eeaa47913f2d859c386ed2f81 | /tests/testthat/test-plot.R | 7e8e0f32922562647551c5e85a0509d66ba21149 | [] | no_license | amanirad/DMCfun | fbba2d0183b0d1c94e0e60bc6e11f0562a1baf29 | e717cda849df4234df56837b92a64be1ebe19aec | refs/heads/master | 2023-07-30T14:35:52.483186 | 2021-09-20T10:36:37 | 2021-09-20T10:36:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,311 | r | test-plot.R | context("plot")
test_that("plot.dmcsim", {
# test 1
dmc <- dmcSim(fullData = TRUE, printInputArgs = FALSE, printResults = FALSE)
# should give error
testthat::expect_error(plot(dmc, figType = "xxx"))
# just check code does not error
testthat::expect_error(plot(dmc, figType = "summary1"), NA)
testthat:... |
71e607857e4a146140a969aa16e8db62dbaf10af | 40b8c18de5170436038973ed1478e9817a4270f8 | /scripts/04_predict_MICs_all_data.R | ce39649f8ec2d756e4c60d76fee5317aa0c0d161 | [] | no_license | desval/ResazurinMIC | a97eb7e12a8407e8af27cfb7de77d3fc60c269fe | 19b6aac10a24280eec77139c36e7192e280468c5 | refs/heads/master | 2021-09-15T16:56:18.775159 | 2017-07-10T10:46:04 | 2017-07-10T10:46:04 | 79,265,781 | 0 | 0 | null | 2017-01-17T19:54:13 | 2017-01-17T19:54:13 | null | UTF-8 | R | false | false | 5,318 | r | 04_predict_MICs_all_data.R |
# Description
## ----------------------------------------------------------------------------------------------------------------------------
# In this file we want to validate the method by predicting the E-Test starting from the MIC and its sd from the dose-response
# model. We do this by bootstrap, because we nee... |
6be0dd53747b8d98f49d18fa78be82a68e830df7 | 1152b0d52b9244257977f3b97b8c503bc9a6508b | /tests/testthat/helper.R | 45e460f236e9b29b8b2523007b81e702128ba6a1 | [] | no_license | ruaridhw/r-AMPL | 48c5310b7a693db573b4890ca09ae5514fa3d6e5 | 508431845e84c9f0327caba600647bc521e1901e | refs/heads/master | 2021-03-19T18:50:14.669663 | 2018-03-07T12:24:23 | 2018-03-07T12:24:23 | 118,458,045 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 87 | r | helper.R | library(magrittr)
library(reticulate)
reticulate::use_python("~/anaconda3/bin/python")
|
aa88b9cd072b684321ef8f804d5630806b01c8b6 | e7ed2ebcd4f42e4b4eac115ef15fdc6d3a191b5d | /app/dataProcessor.R | 3025b5f99c8dd0b9d3b386e36e7e056144262e78 | [] | no_license | HonHo/DataProducts | f703fd572edb11e9ce6f7025986c94b66f472f4c | c1bb9cce5c682a04048800fba5f794b05a2bfe51 | refs/heads/master | 2021-01-10T17:52:29.513790 | 2016-02-28T03:38:18 | 2016-02-28T03:38:18 | 52,702,471 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,205 | r | dataProcessor.R | library(lattice)
library(ggplot2)
library(caret)
#library(rattle) # Not supported by shinyapp.io!
library(e1071)
library(randomForest)
library(MASS)
library(survival)
library(splines)
library(parallel)
library(gbm)
library(plyr)
library(rpart)
library(reshape2)
accuDataFile <- "./data/accuracies.data"
accuData <- read... |
46a5cffff7dba8171a01d54b5d1bf3d6c85db46f | 387f07b6ecb1f1218fc3b78889703bb4bab2f4f5 | /RUNME.R | 4242541c46989bd196310e5b4311243f69d654b4 | [
"MIT"
] | permissive | JouniVatanen/stools | 94dee1eb23e1883b782220e8dd1f749dcba895fa | e0035fd5aa26dcb06fc7a0b1c4088e7f71f489d0 | refs/heads/master | 2023-01-28T21:39:41.085342 | 2023-01-11T07:31:22 | 2023-01-11T07:31:22 | 142,003,341 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,221 | r | RUNME.R | # What you need to do, for install() to work
# 1. Install Rtools 4.0 and R 4.0.3
# 2. Set ...\Rtools\usr\bin to your PATH e.g. with Powershell
# https://stackoverflow.com/questions/714877/setting-windows-powershell-environment-variables
# 3. Set ...\Rtools\mingw`$(WIN)\bin to your BINPREF e.g. with Powershell
# 4. Chec... |
5b3ea04183ac67768d31045cc6a394a40184361b | 43123af59b384a0adb1d2f1440e1c33dce4d5449 | /examples/jobs/test_aggregate_gr.R | bbf8aac22d530351f5138a00f9a4d6916bd3cbff | [] | no_license | timemod/regts | 8723e6b2f2e4f088564c648fbdecf1a74ade7203 | 754490eb024354d37774e929bf640f1af58ccb5a | refs/heads/master | 2023-03-06T16:45:31.978567 | 2023-03-03T13:36:53 | 2023-03-03T13:36:53 | 107,998,574 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 92 | r | test_aggregate_gr.R | library(regts)
ts <- regts(matrix(1:10, ncol = 2), start = "2010Q3")
ts
aggregate_gr(ts)
|
a8512878e2cc7cc38bca5a437355ef86aeb9b74b | 3ad602aee1c2c0efea2a34a38511322c29b65f45 | /man/summarize_enrichment_results.Rd | d9cc7a247890b343aac19408655ca46aa535ae98 | [
"MIT"
] | permissive | AntonioGPS/pathfindR | f773480d490c76954692b11e5758e1a67360a35d | 3ab885e04ae798e82ddbf2bac7a5169b447ebcfe | refs/heads/master | 2020-08-01T02:13:04.450534 | 2019-09-25T09:50:43 | 2019-09-25T09:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,774 | rd | summarize_enrichment_results.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/enrichment_functions.R
\name{summarize_enrichment_results}
\alias{summarize_enrichment_results}
\title{Summarize Enrichment Results}
\usage{
summarize_enrichment_results(enrichment_res,
list_active_snw_genes = FALSE)
}
\arguments{
\item{enr... |
3f05a27f0d4711e1789d53126bc340e844f1a082 | 09b60cc0cf3fdd7b90e957d9e4c1681d0fd639e2 | /R/head.R | 67819626cea02c92b28936853dc7a8914f9996f1 | [] | no_license | mobilizingcs/mobilizr | 2eaf7642e7f31ed023f6ffbb508db4622cf1a57a | e9b50361ba6b0eec32876e4f595fd18c13f86736 | refs/heads/master | 2023-08-08T01:39:54.796438 | 2023-07-23T23:39:55 | 2023-07-23T23:39:55 | 35,117,092 | 9 | 13 | null | 2022-08-15T19:59:29 | 2015-05-05T18:34:13 | R | UTF-8 | R | false | false | 440 | r | head.R | #' Print first six observations.
#'
#' \code{head} will print the first six values of an object.
#'
#' @param x Formula or other object to print.
#' @param data Data frame. The data where the variables can be found.
#' @examples
#' head(~hp, data = mtcars)
#' tail(~hp, data = mtcars)
#'
#' @importFrom mosaic aggregatin... |
58aa1535429e8213d6d765552c3368767900a5ea | 009d8646c21cb4687765e653a21a34b67e28bf72 | /Airpollution.R | 39b2beeb643336192d91bf38a129d2fb08d7a207 | [] | no_license | rutujak24/AirPollution | 3be86c9eb22018a29b7b22b7c73b076cbc9d1c02 | 787aa06267e0d717c03fc1396e5266f2b670c17f | refs/heads/master | 2022-05-30T03:24:32.637207 | 2020-05-04T04:31:12 | 2020-05-04T04:31:12 | 261,074,428 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,450 | r | Airpollution.R |
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' f... |
977f10fe092f783e74bc2e57171fb925b2d2a390 | 384c3dbc571be91c6f743d1427dec00f13e0d8ae | /r/kernels/zhangyan0623-titanic-analysis/script/titanic-analysis.r | 22ad1380c0f266d4c0f8bf34ddf819e1d75bb51f | [] | no_license | helenaK/trustworthy-titanic | b9acdd8ca94f2fa3f7eb965596eed4a62821b21e | ade0e487820cf38974561da2403ebe0da9de8bc6 | refs/heads/master | 2022-12-09T20:56:30.700809 | 2020-09-10T14:22:24 | 2020-09-10T14:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,410 | r | titanic-analysis.r |
# This R environment comes with all of CRAN preinstalled, as well as many other helpful packages
# The environment is defined by the kaggle/rstats docker image: https://github.com/kaggle/docker-rstats
# For example, here's several helpful packages to load in
library(ggplot2) # Data visualization
library(readr) # CSV... |
ad99a750cff662485fb3478d4b7a06a66c2953bc | d796eddc2063b019a0972009ac50dcc2388a1d4a | /R/Order_of_Predictors.R | ac213ffacd4841f0c02d8df64fa96d62a0758890 | [] | no_license | jbryer/DATA606Spring2021 | 6139f786bc27c847621ca2b9bcae5347877b8a87 | 94a5c58d481484cd3440c5e3a40beea17291fd7f | refs/heads/master | 2023-06-08T14:06:32.861816 | 2021-07-01T17:23:24 | 2021-07-01T17:23:24 | 312,899,219 | 2 | 7 | null | null | null | null | UTF-8 | R | false | false | 454 | r | Order_of_Predictors.R | lm1 <- lm(poverty ~ female_house + white, data=poverty)
summary(lm1)
anova(lm1)
132.57 + 8.21
lm2 <- lm(poverty ~ white + female_house, data=poverty)
summary(lm2)
anova(lm2)
45.71 + 95.06
lm3 <- lm(poverty ~ female_house, data = poverty)
summary(lm3)
lm4 <- lm(poverty ~ white, data = poverty)
summary(lm4)
lm5 <- lm... |
4736f964d6a2ba29cc62d70e1761fd1d5b4b8c06 | 13adac8ae3ee91265aa08327cb8e9d4a0bd877d0 | /results/rt_graphs.R | a68f23ffca1a783f9fa58d4c8c16bdfb60280eb0 | [] | no_license | mmcauliffe/mcauliffe-phd | 6b29be70bedf4cdd21741983bdc796d255989c3f | 99f0ecfdcf102826bf44e07a9e47aa2289b0a04d | refs/heads/master | 2020-05-20T06:01:12.507561 | 2015-11-25T01:44:14 | 2015-11-25T01:44:14 | 20,273,235 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,403 | r | rt_graphs.R |
### EXPERIMENT 1 RESULTS
### EXPOSURE
for.plot <- subset(expose.word, Experiment == 'exp2')
for.plot$TrialCat <- "1-50"
for.plot[for.plot$Trial < 101 & for.plot$Trial > 50,]$TrialCat <- "51-100"
for.plot[for.plot$Trial < 151 & for.plot$Trial > 100,]$TrialCat <- "101-150"
for.plot[for.plot$Trial > 150,]$TrialCat <- ... |
541330bc1708ba56c8ddfa9ef88bf44f73a413e5 | 43baa73789bcda4ddfedf65142e6cb0bc7c3149a | /R/StatCharrms-internal.R | ca9e3e3fa73d2a544704abfb200e99e75e851fdb | [] | no_license | histopathology/StatCharrms | 575e1d4ca2efdd1d78b84821431151a730a3ad77 | e8892cb101bb4b8464da20c22830648a4c5e025b | refs/heads/master | 2020-06-04T22:43:18.381077 | 2019-02-11T15:33:15 | 2019-02-11T15:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 44,227 | r | StatCharrms-internal.R | .changeStatusValues <-
function(){
#Changes the Cencerd Value to 0
#Changes the Event Value to 1
#' @export
TempData<-.time2EventEnv$UseData
#Change Event status to 1
.time2EventEnv$UseData[which(TempData[ ,.time2EventEnv$StatusVar]==.time2EventEnv$StatusEventVal),.time2EventEnv$StatusVar]<-1
if (length... |
981410379305a738acfdf258e8c83f15d544c51c | aa5903e21db7f9f9720fcad70039c83111cae6c1 | /gis-visualization/winter-2019/R/leaflet-example/app.R | 960e4a577104cba8442a84213e5d1ef751c342c6 | [] | no_license | chloemhall/workshop-scripts | 0e35081c490daf5f8849e611283c6985c6007c83 | f4ab527469c1026362cf094ab696897d290b63d0 | refs/heads/master | 2023-03-17T19:28:51.805613 | 2019-11-19T20:37:29 | 2019-11-19T20:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,854 | 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)
library(leaflet)
library(spData)
library(dplyr)
# Define UI for application that filters map point... |
3f7f7cd32ba2afd4f8ae0b4a333b3928f127ddc3 | 631e0b190ebb86d3fcf42cadd5518897a1207ab0 | /R/mfa.R | 70a780410ae78c895eb7c4b398d3e640e5ffcf43 | [] | no_license | cran/ade4 | 983e580cb214801b255d74f9f72b1d3a2058726c | 847abbecb91b66d7c8674252bbd0b3d5faaef05f | refs/heads/master | 2023-02-24T02:39:38.784756 | 2023-02-06T13:32:37 | 2023-02-06T13:32:37 | 17,694,266 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,761 | r | mfa.R | "mfa" <- function (X, option = c("lambda1", "inertia", "uniform", "internal"),
scannf = TRUE, nf = 3)
{
if (!inherits(X, "ktab"))
stop("object 'ktab' expected")
if (option[1] == "internal") {
if (is.null(X$tabw)) {
warning("Internal weights not found: uniform weigths are used")... |
49bb555956e362007aaf7fa563b6fe200372fb49 | c48e5f42f154a44c5d08142fea2ff34ea8380535 | /inst/bin/gwasio | 35e7f11a79e7584a7801a1fb46d962dba0b5e00c | [] | no_license | aaronwolen/gwasio | 1da1b1ce80c9186131e7e6f923450f73490197c3 | 7e2a3b31e2b19fbf8361af783b070cb4759093ea | refs/heads/master | 2021-03-30T16:00:26.357106 | 2019-12-08T23:16:45 | 2019-12-08T23:16:45 | 67,529,775 | 0 | 1 | null | 2018-01-02T15:05:54 | 2016-09-06T17:11:34 | R | UTF-8 | R | false | false | 684 | gwasio | #!/usr/bin/env Rscript
local({
p = commandArgs(TRUE)
if (length(p) == 0L || any(c('-h', '--help') %in% p)) {
message('usage: gwasio input [-o output]
-h, --help to print help messages
-o output filename(s) for knit()')
q('no')
}
library(gwasio)
o = match('-o', p)
if (... | |
4b7041df9d0cef0206cf890c6f4921c27a9c68f9 | 056054deb7225c29388ffb7b4011e67ded8e5d89 | /man/vbglmss.fit.logistic.X.Rd | b7b38b7cb03973e392c5f0a59d7df559ada9561e | [] | no_license | antiphon/vbss | b47c7057c4d3585e085b3dd90ac7078ebc50f2ca | 5e99e04c711c2a873fd2d63679bfc7a66919b4cb | refs/heads/master | 2020-05-31T17:23:11.097733 | 2013-09-25T06:21:34 | 2013-09-25T06:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 458 | rd | vbglmss.fit.logistic.X.Rd | \name{vbglmss.fit.logistic.X}
\alias{vbglmss.fit.logistic.X}
\title{Fit logistic regression with only SS coefficients.}
\usage{
vbglmss.fit.logistic.X(y, X, prior, cat2, eps = 0.01,
...)
}
\arguments{
\item{y}{binary response.}
\item{X}{the SS covariates.}
\item{prior}{a list of priors}
\item{cat2}{pri... |
f02c55e6ef1d849e57bf49012379c0c7c94538f9 | ca7ffd847a0af6c75e18995984eadf54c51e8e3a | /R/translator.R | 7641ac67d516543696cb7740878a1000a047fc48 | [
"MIT"
] | permissive | ClaraRC/shiny.i18n | 06de7539eecd6ee7b342a406471ce734eac657a3 | 992df3a89c469c281e1b91546f20e146fff2cbd8 | refs/heads/master | 2020-03-27T23:30:00.408717 | 2018-08-03T13:47:16 | 2018-08-03T13:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,252 | r | translator.R | #' Translator options
.translator_options <- list(
cultural_bignumer_mark = NULL,
cultural_punctuation_mark = NULL,
cultural_date_format = NULL
)
#' Translator class
#'
#' @field languages character vector with all languages
#' @field options list with options from configuration file
#' @field translations data.... |
bdcf854799e6451b7d72ff7e70c5e2d6c9da7e58 | caa6fc35f1803dfc319f41ed738d6fbd4156d951 | /060-retirement-simulation/server.r | 5c761ca04c69757f3470191f1baafb2650db2873 | [] | no_license | dougsanders79/shiny-examples | 8dea4534ec88d03e391f15aadbc072653fe8b710 | 8b1c940e2a38671204e7aa0ab219d0a0246d1166 | refs/heads/master | 2021-01-14T12:45:46.101981 | 2015-11-16T04:43:18 | 2015-11-16T04:43:18 | 45,952,337 | 0 | 0 | null | 2015-11-11T01:32:06 | 2015-11-11T01:32:06 | null | UTF-8 | R | false | false | 7,887 | r | server.r | library(shiny)
paramNames <- c("start_capital", "annual_mean_return", "annual_ret_std_dev",
"annual_inflation", "annual_inf_std_dev", "monthly_withdrawals", "n_obs",
"n_sim", "monthly_additions_br", "annual_mean_return_br", "n_obs_br")
# simulate_nav <- function(start_capital = 2000000, annual_mean_return = 5.0,
#... |
6abd061e5034974efe523d047834f507ecd4fa76 | 765c4ced3ddb8eb8d86fdce28f2abe9017b9deec | /biomod2_brisca_version/biomod2/R/FilteringTransformation.R | a5563c088ecb9d53d59c04a673b38008527e8db9 | [] | no_license | DamienGeorges/briscahub | 1e83b60edc24b3b5de927cbcfe96f1964270bd08 | b3443c80a086fe062ad8a0b1e714ca4431ca4099 | refs/heads/master | 2020-05-21T22:34:00.090074 | 2017-07-07T16:06:02 | 2017-07-07T16:06:02 | 42,178,363 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,205 | r | FilteringTransformation.R | # `FilteringTransformation` <-
# function(ProbData, CutOffdata)
# {
# if(is.data.frame(ProbData)) {
# N <- dim(ProbData)[2]
# i <- 1
# while(i <= N) {
# if(sum(ProbData[,i])!=0) ProbData[ProbData[,i] < CutOffdata[i, 1],i] <- 0
# i <- i + 1
# }
# }
# el... |
fd8a93bc339d6ef89a69ccb6e849e2cfc1085eed | 4564742526c7278b8317133ae42a4fe93184e130 | /vignettes/old/01_2_location_elp.R | 2cc467ab28c04b5309a40839559ca234068cc038 | [] | no_license | livioivil/eegusta | 0bfd0880cc75198b03e4853584d8b0117ad5957c | 70f6693bbf998b6fa3325f3b43a5177514c0b539 | refs/heads/master | 2023-06-22T00:10:37.768054 | 2023-06-19T14:20:11 | 2023-06-19T14:20:11 | 255,547,295 | 1 | 3 | null | 2022-05-12T20:32:47 | 2020-04-14T08:03:00 | HTML | UTF-8 | R | false | false | 624 | r | 01_2_location_elp.R | rm(list=ls())
setwd("~/hdeeg")
library(eeguana)
library(eegusta)
files=dir("./data_bdf",full.names = TRUE,pattern = "elp$")
# for(i in 1:length(files)){
# print(i)
# res=read_elp(files[i])
# }
locs=lapply(files,read_elp)
LOC=locs[[1]]
for(i in 2:length(locs)){
LOC[,5:7]=LOC[,5:7]+locs[[i]][,5:7]
}
LOC[,5:7... |
cd5c89496369d83f039dffdeab9f11614d6c7721 | 1926f167463787636fa4c6350600bcd6ba172a6a | /man/theme_light.Rd | 5415e290e2252bb5e702223c11cc0e5ef16d6f54 | [] | no_license | nietzsche1993/ggplot2 | f82bec898ce5fc8fd225ac7f61b93577b4a2cfc9 | 188c8e02b2a101091af1511b03cb30255ddd9c69 | refs/heads/master | 2020-12-31T02:01:53.263340 | 2014-03-17T21:50:21 | 2014-03-17T21:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 771 | rd | theme_light.Rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{theme_light}
\alias{theme_light}
\title{A theme with white background and light grey lines}
\usage{
theme_light(base_size = 12, base_family = "")
}
\arguments{
\item{base_size}{base font size}
\item{base_family}{base font family}
}
\description{
A theme wi... |
28b153b5901329afbeb391db76661629f17768c4 | 160d17e91f168f19d41fdbda99e58ed42467e2f5 | /Package/R/sfc.editEqus.R | a3915a5c87d167605a577121ededefad91e4d6ac | [
"MIT"
] | permissive | andersonjames492/PKSFC | fa981c0d4bd3d4ef4d96b4297b8fe9f31f956532 | c32ef687dddd1f3b4c8d9d2f66bd00ca1aa95395 | refs/heads/master | 2023-03-20T18:45:34.882228 | 2020-03-15T14:37:10 | 2020-03-15T14:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 877 | r | sfc.editEqus.R | #' Edit equations.
#'
#' Edit a series of equations in an sfc object.
#'
#' @param model an sfc object.
#' @param list a list containing lists of the indexs of equations to be changes,
#' the equations to be changed, the initial conditions, the lags and the descriptions of the
#' equations to be edited.
#' @return an... |
2b2e937a724b798c5ee6a73dcf934b58354ffcb9 | 37e0837026bb71e1ffcc7596c1a112e01aa67e84 | /SMRD_3.4.4/doc/echapter14.R | fde1014149c7f5c61827df56bdab278001162578 | [] | no_license | erhard1/stat687 | 1726c873524d099b76c612e9a4064319bff7223a | c908e84139e5f3e80c059490897cf4a0c34da7f3 | refs/heads/master | 2022-01-25T18:25:01.740916 | 2018-08-23T23:34:35 | 2018-08-23T23:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 12,990 | r | echapter14.R | ## ---- echo = FALSE-------------------------------------------------------
SMRD:::vinny()
library(SMRD)
## ------------------------------------------------------------------------
BearingCage.ld <- frame.to.ld(bearingcage,
response.column = 1,
censor.column... |
d2a15427944341f41e635cdc01ca406d52d2f3d6 | c403ee9c4caaf1fc4e9aefde7262bc8896f2ab59 | /three_sons.R | 151988cfdac636488ab0e308738aaa4ef7c0105c | [] | no_license | gdemin/Experiments-Snippets | 09b45e0c4410b256b77347eb9eaa6cccf19fca9b | d0085fa44ad30b1350585e78e5046d7557e35ed1 | refs/heads/master | 2021-01-18T22:38:51.937423 | 2016-04-20T21:47:12 | 2016-04-20T21:47:12 | 26,373,292 | 1 | 0 | null | null | null | null | WINDOWS-1251 | R | false | false | 3,433 | r | three_sons.R | # Mathematician with three sons.
# http://orabote.net/feedback/show/id/342281
# Возраст сыновей
# Два математика, не достигшие пенсионного возраста, встретились после долгого
# перерыва. Приведем фрагмент их диалога:
# - Ну, а дети у тебя есть?
# - Три сына.
# - А сколько им лет?
# - Если перемножить, будет как раз тво... |
dd89ff9da7591bafd546c2ca398e2bba4ad60cc7 | 0a1d55418d5185ed4d61ef17785a58addf88c56a | /R/api_get.R | 75555498711296d7f4b6872dcb49c7419dd81a57 | [] | no_license | rupertoverall/COVIDminerAPI | 707fe24698ec4b5131874bdb888cbdce62fc2363 | 1b0522f169c1d52c8178abcebdf0463440c55df1 | refs/heads/master | 2023-03-13T17:19:57.145036 | 2021-03-06T10:06:28 | 2021-03-06T10:06:28 | 344,797,447 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,312 | r | api_get.R | #' Get interactions from the COVIDminer database.
#'
#' This function takes a vector of COVIDminer database IDs and allows networks
#' containing these entities to be retrieved.
#'
#' @param query A character vector of text descriptors of database IDs. See
#' Details.
#' @param filters A character vector of filters. ... |
613626665cd9169d09df3ff89a4273ec071543e2 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.cost.management/man/costandusagereportservice_put_report_definition.Rd | 0f84baedeca4cce3ac4557a43eb92bb3b4541bc8 | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 767 | rd | costandusagereportservice_put_report_definition.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/costandusagereportservice_operations.R
\name{costandusagereportservice_put_report_definition}
\alias{costandusagereportservice_put_report_definition}
\title{Creates a new report using the description that you provide}
\usage{
costandusagerepo... |
d4946b5b738a56556076f18e84702259e8d558a2 | 360df3c6d013b7a9423b65d1fac0172bbbcf73ca | /FDA_Pesticide_Glossary/diazosulfonate.R | aefe5fc5d721cae334f1be79a3b018208b593470 | [
"MIT"
] | permissive | andrewdefries/andrewdefries.github.io | 026aad7bd35d29d60d9746039dd7a516ad6c215f | d84f2c21f06c40b7ec49512a4fb13b4246f92209 | refs/heads/master | 2016-09-06T01:44:48.290950 | 2015-05-01T17:19:42 | 2015-05-01T17:19:42 | 17,783,203 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 240 | r | diazosulfonate.R | library("knitr")
library("rgl")
#knit("diazosulfonate.Rmd")
#markdownToHTML('diazosulfonate.md', 'diazosulfonate.html', options=c("use_xhml"))
#system("pandoc -s diazosulfonate.html -o diazosulfonate.pdf")
knit2html('diazosulfonate.Rmd')
|
10c2a699b5b7eb005c1ae297cc56511ca403d18d | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/inaparc/examples/rsamp.Rd.R | 19a602b86414e37e67caf9b8deec75bf8226f7c1 | [] | 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 | 243 | r | rsamp.Rd.R | library(inaparc)
### Name: rsamp
### Title: Initialization of cluster prototypes using simple random
### sampling
### Aliases: rsamp
### Keywords: cluster
### ** Examples
data(iris)
res <- rsamp(x=iris[,1:4], k=5)
v <- res$v
print(v)
|
7b6997a0cbaeaac9a2c15369d1724a171727b477 | 9eaee48e819bded9e865b97d327df65563fe9616 | /cachematrix.R | de95677b2e3102d60a25ce03580d9e79ea343422 | [] | no_license | mmalhotra01/ProgrammingAssignment2 | c6a803312eeca76a618fd766553b81ad64a4500d | 62338d19af897c1ef6735789ee6f2107b5960705 | refs/heads/master | 2020-04-06T04:58:17.208179 | 2015-04-25T14:45:39 | 2015-04-25T14:45:39 | 34,423,612 | 0 | 0 | null | 2015-04-23T00:19:40 | 2015-04-23T00:19:40 | null | UTF-8 | R | false | false | 854 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# this function works like a class, it creates a list of functions: set, get, setCache and getCache.
makeCacheMatrix <- function(x = matrix()) {
xCache <- NULL
set <- f... |
bbf0fe2627e46b410450b2f908708264a0b9df80 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/agridat/examples/zuidhof.broiler.Rd.R | a7e0b802ae275fadbd6d3f82b39d4a3990ff7a7d | [] | 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,278 | r | zuidhof.broiler.Rd.R | library(agridat)
### Name: zuidhof.broiler
### Title: Daily weight, feed, egg measurements for a broiler
### Aliases: zuidhof.broiler
### Keywords: datasets
### ** Examples
data(zuidhof.broiler)
dat <- zuidhof.broiler
dat <- transform(dat, age=age/7) # Change days into weeks
# Reproducing figure 1 of Zuidhof et ... |
be5dcad55abf290d6fe513bb64ac976228b9261c | cd3d6404093d457944dd56d6b5411da4262ac982 | /lucky_num.R | 21ec7f93fff838392af96c9775f48f7edb731a68 | [] | no_license | mascoma/make_graph | 5bf48ae33da1635085fb23522ca430759cb22201 | ff67b8cda9d3ccd5a2e9492a295c7bdcfb68d56d | refs/heads/master | 2021-01-10T07:21:29.777630 | 2016-03-19T05:55:11 | 2016-03-19T05:55:11 | 50,301,016 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,075 | r | lucky_num.R | library(dplyr)
library(reshape2)
library(ggplot2)
library(RCurl)
library(splitstackshape)
URL = "http://www.powerball.com/powerball/winnums-text.txt"
x = getURL(URL)
dat = read.delim(textConnection(x), header = F, sep="")
pn = dat[-1,2:8]
names(pn) = c("wb1", "wb2", "wb3", "wb4", "wb5", "rb", "pp")
v1 = dat[-1,1]
v1 ... |
88346c1d4f2a344a1ff3f05261569e180a56454c | 9d10ba9e0b76fd8e78ecf30ad3da08080047d3b0 | /inst/scratch/census scratch work/census bivar sctatch.R | ae6d500d79e9087e6d3bdc35a759e83b6493eaec | [
"Apache-2.0",
"LicenseRef-scancode-us-govt-public-domain",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | ishaandave/DemographySpawnR | 75dc67add6fac4b3fe3a26682a2cfae464d24e56 | 802abee7e4d5d4cb733dbc00898ca0a5ac442dfb | refs/heads/master | 2021-07-13T14:04:10.198404 | 2020-07-30T02:51:00 | 2020-07-30T02:51:00 | 191,783,050 | 0 | 0 | Apache-2.0 | 2019-06-13T14:54:13 | 2019-06-13T14:54:12 | null | UTF-8 | R | false | false | 2,065 | r | census bivar sctatch.R |
### Takes census data and allows you to map racial distributions across the US (according to HHS boundaries)
### Will allow user to make a map whatever race/ethnicity they want to input
## eventually want to make it so, so we can create racial distributions across the 10 HHS divisions and use that
## to sample into o... |
44b0592b30c80b773c24985373fce32c67d21bde | e9fe5defca0107b67b0f571d70d38ace249aef75 | /R/mainFUN.R | cc77a3a78b61686724721686b5b46b997bcfb33b | [] | no_license | inambioinfo/MSIQ | ea5235bdf2ab2d0e8e7d11f51ed61af03ef2364b | 36fc63ee0db1cba70f643c3d8b9b8a191d1eef43 | refs/heads/master | 2020-03-28T03:10:45.409208 | 2018-02-14T17:55:55 | 2018-02-14T17:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,684 | r | mainFUN.R | #' use MSIQ to quantify transcript expression from multiple samples
#'
#' @param D An integer specifying the number of RNA-seq sample supplied
#' @param gtf_path A character specifying the full path of the .gtf file
#' @param bam_path A character vector. Each element gives the full path of one .bam file.
#' @param A An... |
f16ca58d9d9388c691626a9ea9ae0bd95101e704 | 705255987191f8df33b8c2a007374f8492634d03 | /design/devel/varnames.R | 0fb3ec90a180d1ae294e76ecb63545a8130c2eb7 | [] | no_license | Roche/crmPack | be9fcd9d223194f8f0e211616c8b986c79245062 | 3d897fcbfa5c3bb8381da4e94eb5e4fbd7f573a4 | refs/heads/main | 2023-09-05T09:59:03.781661 | 2023-08-30T09:47:20 | 2023-08-30T09:47:20 | 140,841,087 | 24 | 9 | null | 2023-09-14T16:04:51 | 2018-07-13T11:51:52 | HTML | UTF-8 | R | false | false | 236 | r | varnames.R | alllines <- paste(readLines("varnames.txt"),
collapse = "\n"
)
alllines
splitlines <- strsplit(alllines, split = "visible", fixed = TRUE)
gsub(
pattern = ".*'(.+)'.*", replacement = "\\1",
x = splitlines[[1]][2],
perl = TRUE
)
|
71647e19db47fdd50cbef8bd2e1ee3e0d28aa629 | 4791761f3cb1fd85f280f1d2d5c815042f713cc3 | /tests/testthat/test-remote.R | 439af3b6c2153f944acb13cfef9cd09c833e926f | [
"MIT"
] | permissive | han-tun/orderly | c6de7267c426b1f96f7be86aaab232bcc71e4da2 | fae07efedfd9c8ab7f5347f5463ef2b4d7203ece | refs/heads/master | 2021-02-13T12:40:06.741484 | 2020-03-02T11:27:17 | 2020-03-02T11:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,583 | r | test-remote.R | context("remote")
test_that("defaults: null", {
path <- prepare_orderly_example("minimal")
expect_null(orderly_default_remote_set(NULL, path))
expect_error(orderly_default_remote_get(path, FALSE),
"default remote has not been set yet")
expect_error(get_remote(NULL, path),
"defaul... |
3e297a0e5eaa7cc0d8caead16c70ec5fc596dcf0 | 2908e8dd8c6fe598942d21e2b4f8112daf4aac31 | /R/model_additive.R | a246e240ad2db6d215fa657677dfd368973a8b94 | [] | no_license | cran/deaR | 734b7d33e9afecc30e49bac385d12c0ecd37af2a | 49e5427f0b0a24014e5d67420f972aac51cdcbf4 | refs/heads/master | 2023-05-11T02:54:01.278513 | 2023-05-02T08:20:02 | 2023-05-02T08:20:02 | 162,907,947 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 14,186 | r | model_additive.R | #' @title Additive DEA model.
#'
#' @description Solve the additive model of Charnes et. al (1985). With the current
#' version of deaR, it is possible to solve input-oriented, output-oriented,
#' and non-oriented additive model under constant and non-constant returns to scale.
#'
#' Besides, the user can set... |
5f32bc033044ce0bea49a435b8e40dd974216c83 | e81de997187aac7d10d2a6b0513c0cfbd5038c62 | /web_crawling01.R | 1b4852258fefb95411bbca8330a3c3a7dbfbc4db | [] | no_license | hyunnie94/self_r | c09c6d76d070c1e51bda770f1a68401bf27ea488 | f7a0e757d147c000a9b7dd1c671e77f7becee53e | refs/heads/master | 2020-06-17T00:23:36.584856 | 2019-07-20T10:18:31 | 2019-07-20T10:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,837 | r | web_crawling01.R |
#R로 웹 데이터를 가져오는 4가지 방법(웹크롤링)
#웹에 있는 데이터를 가져오는 단계 : 요청 -> 추출 -> 저장 -> 반복 -> 예외처리 -> 최적화
install.packages("rvest")
library(rvest)
#xml_document라고 하는 r class로 만드는 과정
tar <- "https://news.naver.com/main/ranking/read.nhn?mid=etc&sid1=111&rankingType=popular_day&oid=052&aid=0001321181&date=20190720&type=2&rankin... |
27665d713d25e801207e9710cf21570293d953a3 | b4ff4bbc9d4fb425cdd665588d916ed3b7012239 | /best.R | e633bd5e9df743e865a4af2e6b4287361a0617f3 | [] | no_license | jjsjamesj/datascience | 5e091023f1f1493cfaecd4b14aa3a6d1875de0bd | 0625a943206365a5b211f0de14ffda4222f78c60 | refs/heads/master | 2021-01-15T17:20:33.389994 | 2016-10-10T04:36:39 | 2016-10-10T04:36:39 | 68,292,073 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,100 | r | best.R | ## This file contains the definition of the function 'best'.
best <- function(stateArg, outcome){
data <- read.csv('rproghw3/outcome-of-care-measures.csv', na.strings = 'Not Available')
outVector<- c('heart attack', 'heart failure', 'pneumonia',
'Hospital.30.Day.Death..Mortality..Rates.from.Heart.... |
7bcbc220aab6799edf19e6213ad6dcb0d12bb7af | 829b03a589cb54a5c8c1ba095d75728aa90ab929 | /test/tests.R | 2b66c70efccf4ea1fc7c09cd7443bc51307c1051 | [
"MIT"
] | permissive | antoine-lizee/R-GSC | 2d56bba3675fd347f8be4c63f1824cba218b6e98 | 353047286b71d7225e6766d73e7e71c868a6b2c6 | refs/heads/master | 2021-03-12T20:10:43.384789 | 2015-02-25T04:28:47 | 2015-02-25T04:28:47 | 29,715,727 | 1 | 1 | null | 2015-01-26T22:51:41 | 2015-01-23T03:59:48 | R | UTF-8 | R | false | false | 1,039 | r | tests.R | # This is the test file accompanying the main GSC.R
#
# Copyright Antoine Lizee 01/2015 antoine.lizee@gmail.com
source("GSC.R")
source("test//GSC2.R")
# This is the actual example in the paper appendix [doi:10.1016/0022-2836(94)90012-4]: https://pdf.yt/d/Sx3jMbr8vANgxAej/download
# The reader should be warned that t... |
8ba690070dcd717528408042e64d9f10194798aa | 383e67439d920e91ad2a9e8528e6fc68288796af | /0-libraries.R | 71c765012822e4991a49ae158c2e802b2dfc687a | [] | no_license | SciBorgo/READY-study | e422505855b8bd3e530a8cdb6957e5736d9c98d2 | e583934e11b9c42c2689256795b130c1a1ada59c | refs/heads/main | 2023-09-03T07:05:36.467805 | 2021-11-13T05:32:31 | 2021-11-13T05:32:31 | 375,308,529 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 246 | r | 0-libraries.R |
# Packages
library(readr)
library(ggplot2)
library(dplyr)
library(car)
library(naniar)
library(visdat)
library(tidyverse)
library(janitor)
library(cowplot)
library(lubridate)
library(mice)
library(randomForest)
library(brms)
library(tidybayes)
|
8f604849e9a287a2b1a287d74360f94c333ab1bc | ac7cb7f7852daad5cd9748f631dfa071f5a731ac | /tests/testthat/test-densities.R | 8fe331f911097b9f28a5b4fd605c55f176a2926a | [] | no_license | nschaefer1211/OSE | 762d25eabd31452c1fe22a7c1a4d6300f1ee5847 | 3a6910180083bee15f020bd362d535fc8cdf7f7e | refs/heads/master | 2023-01-16T00:39:45.377897 | 2020-11-30T20:25:00 | 2020-11-30T20:25:00 | 317,336,894 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,166 | r | test-densities.R | #Beachte: Aus Vollständigkeitsgründen existieren diese Testfiles, sie sind aber zu nicht viel nütze, da
#unsere Resultate Approximationen sind, die wir mit keinen existenten Datensets abgleichen können.
#Wertvoller zum Verständnis des Pakets und zur Überprüfung der Funktionen sind die Datei 'plots' und die Vignette.
c... |
98dc86eabef6f928010779632b912d83c1cb1b86 | 3b2b5636282ae842def1c16265cccac19f9d125a | /R/plotSpectrum.R | 23ef365779d77e051d1bf3f50cb766a623bca84b | [
"BSD-2-Clause"
] | permissive | ilkkavir/LPI.gdf | 06cf2ccb0ed19b7a04df417fe93cef2f7e530115 | 088a53c3624c68406b87ccaf8d1451ef678c3b62 | refs/heads/master | 2023-05-28T09:56:00.948551 | 2023-05-15T13:23:37 | 2023-05-15T13:23:37 | 205,375,323 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,944 | r | plotSpectrum.R | ## file:plotSpectrumR
## (c) 2015- University of Oulu, Finland
## Written by Ilkka Virtanen <ilkka.i.virtanen@oulu.fi>
## Licensed under FreeBSD license.
##
##
## Color-coded image of power spectral density
## estimated by means of the Lomb-Scargle periodogram
##
## Arguments:
## data an ACF list from LPI.gdf output... |
f11ff0adf341cda92a999da6ffab5abfd93c14e8 | e11528102c9dd7e8c43828a39c649e39f366683c | /test.R | 0815e86a0475279f2a57c6777f6b531717b8e776 | [] | no_license | RogerPink/twitter_crawl | 064090a994e8832085e36ff388f0b57001c46f2b | c9fa77c88cf23b87d2659a4b3ea314cc9136d6da | refs/heads/master | 2020-04-21T10:44:58.026287 | 2019-06-13T01:51:36 | 2019-06-13T01:51:36 | 169,495,627 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 23 | r | test.R | y<-3
x<-y + 3
print(x)
|
b5bcb515bcb1fd5c10234318be5af409bab671b9 | 7a85e51da609955285640d05cea1e9153fe721a4 | /day01/ch10.R | dc68d6ff958207a21c21c5d9351862e732b3be09 | [] | no_license | up1/study-r-programming | 2180b8d783859191815a07f709e63dd485cc48cf | 57ca8f379f247d1e210d8404b269bf47800aff83 | refs/heads/master | 2022-07-17T22:00:55.479726 | 2020-05-15T16:39:03 | 2020-05-15T16:39:03 | 263,380,566 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 156 | r | ch10.R | score <- 70
grade <- "C"
if(score >= 80) {
grade <- "A"
}else if(score >= 70) {
grade <- "B"
}
result <- ifelse(score >= 80, "A1", "B1")
print(result) |
28ec451965e2ca174e29843d2f35c230d5b127ae | 29585dff702209dd446c0ab52ceea046c58e384e | /blkergm/R/zzz.R | 99d9f99412881ad06399e6027a1a13b0c8ff2d09 | [] | no_license | ingted/R-Examples | 825440ce468ce608c4d73e2af4c0a0213b81c0fe | d0917dbaf698cb8bc0789db0c3ab07453016eab9 | refs/heads/master | 2020-04-14T12:29:22.336088 | 2016-07-21T14:01:14 | 2016-07-21T14:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 707 | r | zzz.R | # File R/zzz.R in package ergm.userterms, part of the Statnet suite
# of packages for network analysis, http://statnet.org .
#
# This software is distributed under the GPL-3 license. It is free,
# open source, and has the attribution requirements (GPL Section 7) at
# http://statnet.org/attribution
#
# Copyright ... |
43efed56c402449eb37853d3e5067546ec660ef4 | cca7f37876c8dc54f8c296f90ff7af28313ae3f9 | /一般机器学习方法.R | b57f7338dd718de1384e73af3d4751991e27a1cf | [] | no_license | CHDYangMeng/R_Code | e8913cff90f695e1459d4df09438019fb73965e7 | 960f8b5ea52a7d3cceb8506a27549d36d572ef4b | refs/heads/master | 2022-10-20T03:54:32.352056 | 2020-06-10T08:13:20 | 2020-06-10T08:13:20 | 271,218,379 | 0 | 0 | null | null | null | null | GB18030 | R | false | false | 8,049 | r | 一般机器学习方法.R | rm(list = ls())
options(warn = -1)
# -------------------------------------------
# ###########################################
#
# 机器学习
#
# ###########################################
# -------------------------------------------
#
# 神经网络 Neural Networks and Deep Learning
#
# --------------------------------------... |
db68f81cdb78b81985dcb37bd57aebc528728c0a | f2809fe5dffcbd82cfb7ada6cbf60398746512eb | /R/percent_tolerant.R | b80d67f9cb82ff03770e0120a0bb2ca2822c0762 | [
"CC0-1.0"
] | permissive | mpdougherty/mcat | 7374d207b39a3a4b32b61a95ebb61dab8bada6d9 | a69bbc006d54763e68a87939309e0fc68a9b5aa6 | refs/heads/master | 2020-05-23T19:34:06.037792 | 2019-05-28T20:54:36 | 2019-05-28T20:54:36 | 186,914,680 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,605 | r | percent_tolerant.R | #' @title Percent Tolerant
#'
#' @description Calculates the percent tolerant MCAT metric for the input
#' individual mussel data frame.
#'
#' @export
#' @param individuals data frame; a data frame of individual mussel records.
#'
#' @return A data frame of sampled sites with the calculated percent tolerant
#' ... |
b4414802b93ceee53d1dfbe63b1653c2a68aa7b3 | 454c1254be5ec2d6f7d3a9d864fa603a9fd95a74 | /R/Step1_Identify_homologous_series.R | 14e797fa5511e18aca1dad356a1f594f657b3049 | [] | no_license | CRKOMassSpecComputing/HomoSeriesMatcher | aae13d201d34eca3ef8a0491de2e4fdac85e7c46 | 4e89a6615eec300ebd835a808035ea3ad11cde9f | refs/heads/master | 2020-03-18T13:06:40.777168 | 2018-05-24T21:24:44 | 2018-05-24T21:24:44 | 134,761,200 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,714 | r | Step1_Identify_homologous_series.R | ##################################################################################
# Step1_Identify_homologous_series
#
# Karl Oetjen and Christopher Ruybal
# Last modified: 5/10/2018
#
#################################################################################
# Non-Target Screening Tool
#Package Sourc... |
d79a67a7b7b858148035b8bd6abe94cb2df2b8bf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Sequential/examples/SampleSize.Binomial.Rd.R | a3b0afa3ab3d046cca25ceb1c90bb9036788bcca | [] | 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 | 487 | r | SampleSize.Binomial.Rd.R | library(Sequential)
### Name: SampleSize.Binomial
### Title: Sample size calculation for continuous sequential analysis with
### binomial data.
### Aliases: SampleSize.Binomial
### Keywords: Continuous MaxSPRT analysis
### ** Examples
result<- SampleSize.Binomial(RR=5,alpha=0.01,power=0.88,M=1,z=2)
# if you type... |
cb2aeb50b510a9ff9cd6ce4d3fe720cf953f4d3e | c1463667cf3ff1057859b4bbd956b7e1737bc187 | /R Primer Codes.R | fe66cb3c142662ed969dcd15a8f6badcd41b1fb5 | [] | no_license | kshirasaagar/R-U-Ready | 0c6ce8d8d0bb297a754d2229c86ff268755720d7 | 1caf81814cdd9cc779771f763f34bbfa2fc424c9 | refs/heads/master | 2021-08-03T19:23:51.091305 | 2021-01-28T23:06:36 | 2021-01-28T23:06:36 | 30,675,127 | 1 | 1 | null | 2021-01-28T23:08:06 | 2015-02-11T23:24:22 | R | UTF-8 | R | false | false | 15,107 | r | R Primer Codes.R | ##-----------------------------------------------------------
## Program: A Course in R.R
## Purpose: A basic introduction to R
## Author : Indrajit Sen Gupta
## Date : January 2012
##-----------------------------------------------------------
##-----------------------------------------------------------
## Load re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.