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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fcf444ac841378b010c9cf6ffd933283a5b00a7 | ec1ce1d118af37136e93ada8ba2be12333ed505f | /R/summary.parGADA.R | 27097c16fb2643751c43a5ab5f3bfd341a024af9 | [
"MIT"
] | permissive | isglobal-brge/R-GADA | d80bf3a5970aaff39f038bf69468fcdeff3c0d40 | 5ec5b5eb1f7da4b946d795425cec02c196f33245 | refs/heads/master | 2022-01-09T15:40:17.053097 | 2019-05-04T18:13:06 | 2019-05-04T18:13:06 | 114,474,855 | 2 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,864 | r | summary.parGADA.R | summary.parGADA<-function(object, Samples, threshold, length.base, chr=c(1:22,"X","Y"), ...)
{
x <- object
setwd(x)
if (missing(length.base))
{
warning("All segments are reported. If you want to filter the minimum and maximum \n lenght of segments, adjust 'length.base' \n (e.g. length.base=c(500... |
3f3f40748ed4083a520bdd2057e8015999539249 | eda8d141b93c154e4c680e08a8bb6564e165713f | /R/datesplitter.R | 85d5669f4ffb5ce9d207a88db5f03604dcb3686d | [] | no_license | yoavbendor1/LakeN | 1ec810515a1c14140f80d2fdaf1dd9bfeb981a49 | b6f378992fc33fdd3c02840aed48d0a8ed9524d3 | refs/heads/master | 2020-06-13T23:05:48.966498 | 2017-01-12T10:54:34 | 2017-01-12T10:54:34 | 75,534,210 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,514 | r | datesplitter.R | #' date splitter
#'
#' this function splits the input data.frame into a list of data frames according to a specified date range
#'
#' @param input (-) input data as dataframe
#'
#' @author Yoav BD
#' @return only the data that falls into the required date range
datesplitter <-
function(input, max.date,min.dat... |
877ae1b4d97014c46253323a32f7c0163f4e9632 | 8b093e95766bf3c10cb83a115d4ea64672e6aa60 | /gsplom.Rcheck/00_pkg_src/gsplom/R/gsplom.R | d66a63d80944232650a90986d8ba7ba9d20409c0 | [
"Artistic-2.0"
] | permissive | andrewdyates/gsplom.rpackage | 8a833398809246fe2882b53f4722529ebae04208 | 50a01d0a85cc299886bf9d812c441ed71589cd0c | refs/heads/master | 2021-03-12T23:26:51.662351 | 2014-04-18T23:04:14 | 2014-04-18T23:04:14 | 17,549,321 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,767 | r | gsplom.R | ##########################################################################
# Copyright (c) 2014 Andrew Yates
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including witho... |
554ac7f1010aa498c934bbcfd0f2901ddb91fc02 | 999bae91d5c15cd8f5371468a89a977c2cb36cbc | /man/doMitosis.Rd | 2dc83cc8bd030f45bd510ff1bd73dec91f3694b3 | [] | no_license | ataudt/CINsim | 1311be6c4a5e28206366a07074031b540841c097 | 4f21df879b275a7e33ce45236fd408c7635bd185 | refs/heads/master | 2021-01-22T01:10:45.500354 | 2017-09-03T17:41:55 | 2017-09-03T17:41:55 | 102,203,380 | 0 | 0 | null | 2017-09-02T14:49:19 | 2017-09-02T14:49:19 | null | UTF-8 | R | false | true | 798 | rd | doMitosis.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/doMitosis.R
\name{doMitosis}
\alias{doMitosis}
\title{Perform a round of mitosis with possible mis-segregations}
\usage{
doMitosis(karyotype, pMisseg, cellID)
}
\arguments{
\item{karyotype}{A karyotype provided as a vector on which t... |
f5e9656ed69b7a57974243ad9c92060285ef59ce | 069b5c0f325197dfbcc6584288a70ae7c51c8b81 | /RegressionModel/Quiz3.R | 679cda37a55667d157ae941f1830e247276b0132 | [] | no_license | JohanLi1990/DataScienceCoursera | 3db341c5a2074f9bc25121a699a0374026fdf233 | 99aa5574e530b6f9b9dd9bf208008e2c845625ae | refs/heads/master | 2021-01-23T13:44:02.512726 | 2017-12-25T00:40:32 | 2017-12-25T00:40:32 | 38,518,965 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 725 | r | Quiz3.R | #Question 1
data("mtcars")
fit_cars <- lm(mpg ~ factor(cyl) + wt, mtcars)
summary(fit_cars)$coef
#-6.0709
#Question 2
fit_noWT <- lm(mpg ~ factor(cyl), mtcars)
summary(fit_noWT)$coef
#Question 3
fit1<- fit_cars
fit2<- lm(mpg ~ factor(cyl) + wt + factor(cyl)*wt, mtcars)
summary(fit1)$coef
summary(fit2)$coef
#a better ... |
1a820c6b7ac00e783f849dffdd1c8d9139002607 | 7b8478fa05b32da12634bbbe313ef78173a4004f | /man/partition_group.Rd | 6a03332ac952ca6e173287bf96311dc1dcd2cfe0 | [] | no_license | jeblundell/multiplyr | 92d41b3679184cf1c3a637014846a92b2db5b8e2 | 079ece826fcb94425330f3bfb1edce125f7ee7d1 | refs/heads/develop | 2020-12-25T18:02:10.156393 | 2017-11-07T12:48:41 | 2017-11-07T12:48:41 | 58,939,162 | 4 | 1 | null | 2017-11-07T12:01:35 | 2016-05-16T14:30:38 | R | UTF-8 | R | false | true | 1,087 | rd | partition_group.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nse.R, R/ops.R
\name{partition_group}
\alias{partition_group}
\alias{partition_group_}
\title{Partition data so that each group is wholly on a node}
\usage{
partition_group(.self, ...)
partition_group_(.self, ..., .dots)
}
\arguments{
\item{... |
c43d04a80188f1e5b01b0f69f439c517932cb162 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rredis/examples/redisRPopLPush.Rd.R | c9e8a783f1a415e236f93c3a68959601c251f303 | [] | 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 | 322 | r | redisRPopLPush.Rd.R | library(rredis)
### Name: redisRPopLPush
### Title: Remove the tail from a list, pushing to another.
### Aliases: redisRPopLPush
### ** Examples
## Not run:
##D redisConnect()
##D redisLPush('x',1)
##D redisLPush('x',2)
##D redisLPush('x',3)
##D redisRPopLPush('x','x')
##D redisRPopLPush('x','x')
## End(Not run)
... |
94b8285b1d9309d4317f1ee74d941712cc2cf02e | 15b683ee0db7721bafbe55a7bc7ec77618492957 | /server.R | 6ea7f9948f6daf566d1c0d1db31afdbb3241a37c | [] | no_license | pssguy/worldPopulation | b9f62cc19e00f8a41acbb9e2ebe56ade5f8bcb62 | afdd89be425e852fd0e64d89ba31fae6f2ba4cbd | refs/heads/master | 2021-01-10T04:45:44.853127 | 2015-06-07T00:04:54 | 2015-06-07T00:04:54 | 36,402,707 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 379 | r | server.R |
shinyServer(function(input, output,session) {
source("code/charts.R", local=TRUE)
#source("code/maps.R", local=TRUE)
source("code/maps2015.R", local=TRUE)
source("code/tables.R", local=TRUE)
source("code/worldPop.R", local=TRUE)
source("code/streamFront.R", local=TRUE)
source("code/countryPop.R", loca... |
8668157f1b8ba9e12ca29c0cd992f878c1018574 | d4eb16fea7caf5f560d447d2c987e7a4f502ef73 | /man/tbl_last_name.Rd | e616fa0412d420f5004a0d903154496a7ee31cc6 | [] | no_license | abresler/entities | 640334c6e1c145bce1bb13058744dd98949962bd | bb7bc0e721032f1126dd95d0127d9e383f7f1867 | refs/heads/master | 2023-08-08T05:07:36.241883 | 2023-07-19T13:09:15 | 2023-07-19T13:09:15 | 196,063,861 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 490 | rd | tbl_last_name.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ethnicity_parser.R
\name{tbl_last_name}
\alias{tbl_last_name}
\title{Parse name column into parts}
\usage{
tbl_last_name(
data,
name_column = "namePrincipalInvestigator",
include_name_type = F,
snake_names = F,
return_only_names = F... |
49cfed9ee345988b3dcfe7189c96c32ea40a425a | 29585dff702209dd446c0ab52ceea046c58e384e | /formula.tools/R/parts.rhs.get.R | 22496b35110c9848e9403accf30dc405b6714135 | [] | 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 | 1,490 | r | parts.rhs.get.R | # -----------------------------------------------------------------------------
# rhs
# extract and manipulate the right-hand side of R objects
# -----------------------------------------------------------------------------
#' @name rhs
#' @rdname formula.parts
#' @export rhs
setGeneric( 'rhs', function(x, ...) sta... |
1731ab741b6c42f9d8aac835fed6a0278c990f6f | ea0d9ecd125ee8765a7073fc7ce7853711be855a | /old/neuro.R | 6dda68d9dc7d7af12e6c80ceb261e742c6c44633 | [
"MIT"
] | permissive | mattocci27/TurnoverBCImain | c94737f77a0a581c8f0a83a973bb7ae2dddd1449 | cc3c0317243daa6e44c46d6fbc65d81e03f7405c | refs/heads/master | 2021-01-19T05:06:43.153545 | 2017-08-03T17:15:19 | 2017-08-03T17:15:19 | 46,080,402 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,427 | r | neuro.R | rm(list = ls()) # This clears everything from memory.
setwd("~/Dropbox/BCI_Turnover")
load("BCI_turnover20150611.RData")
source("~/Dropbox/MS/TurnoverBCI/TurnoverBCImain/source.R")
library(dplyr)
library(ggplot2)
library(nnet)
ab_data <- as.data.frame(sapply(D20m,function(x)apply(x,2,sum)))
ab_data$sp <- rownames(ab... |
44584e97881ae734b36c301b04b58d8c0e2c8b34 | 139e93dc5ad1f30938195671caf4aefce99f188d | /man/reduce_right.Rd | f3478e4f640ad9405df8210dfb1f8190678c458f | [
"MIT"
] | permissive | tidyverse/purrr | 7b94592b1eb6f4e6db8d83fc307465ce7b65b520 | ac4f5a9b9ff2b5b36770c4c5e064547264544fd2 | refs/heads/main | 2023-08-28T01:39:40.614443 | 2023-08-10T14:13:52 | 2023-08-10T14:13:52 | 27,309,729 | 901 | 265 | NOASSERTION | 2023-09-03T11:49:30 | 2014-11-29T17:33:40 | R | UTF-8 | R | false | true | 2,266 | rd | reduce_right.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reduce.R
\name{reduce_right}
\alias{reduce_right}
\alias{reduce2_right}
\alias{accumulate_right}
\title{Reduce from the right (retired)}
\usage{
reduce_right(.x, .f, ..., .init)
reduce2_right(.x, .y, .f, ..., .init)
accumulate_right(.x, .f,... |
cfae9b49eaa053bbf866966047fd787007ffef81 | c6da4424c172b71477fe5c8420d0ab69d3b277cf | /R/Other.classifier.R | 50117c60e9f55868edaaa6cdfaa9893c9c6cff93 | [] | no_license | cobrbra/RPEnsemble | 68702aaf1bca8bf605407f93cabfec6ee0f1feef | d1161d8e9352a98eb0cbb1a224db91f420edd66f | refs/heads/main | 2023-08-26T13:17:08.488723 | 2021-10-09T12:03:53 | 2021-10-09T12:03:53 | 337,134,340 | 0 | 0 | null | 2021-02-08T16:18:04 | 2021-02-08T16:18:03 | null | UTF-8 | R | false | false | 1,026 | r | Other.classifier.R | #' The user's favourite classifier
#'
#' @description User defined code to convert existing R code for classification to the correct format.
#'
#' @param x An n by p matrix containing the training dataset.
#' @param grouping A vector of length n containing the training data classes.
#' @param xTest An n.test by p test ... |
1066df7c8c1547f7ad8ca22b3ae10339d0a798a6 | bc7120d924070eb3a482923f20e7507dcae0a751 | /simulation/n2_02/sum2_20191002.R | 4f494e12bb52a6c8a91ae8174c76a88962866b7c | [] | no_license | dragontaoran/proj_two_phase_mexy | 803ec584f2eb260ec48901126cc933032ce8edd1 | ccbf3365b6285e0bc6869f3c907703f2a8217760 | refs/heads/master | 2022-12-14T01:16:51.212254 | 2020-09-12T17:06:18 | 2020-09-12T17:06:18 | 159,406,581 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,584 | r | sum2_20191002.R | n2 = c(50, 100, 200, 300)
hn = c(40, 30, 10, 1)
beta = 0.4
z975 = qnorm(0.975)
nrow = length(n2)
fn_out = paste0("sum2_20191002.tab")
sink(fn_out)
cat("\tMBE\t\t\t\t\t\tUAEE\t\t\t\t\t\tSMLE\t\t\t\n")
cat("n2\tBias\tSE\tSEE\tCP\tRE\t\tBias\tSE\tSEE\tCP\tRE\t\tBias\tSE\tSEE\tCP\n")
sink()
res = matrix(N... |
fc372429081a7d428488bad765becc2f7a813249 | 032d7c101fbe2f572d34845353813d806331ba27 | /tests/testthat/module_examples/mappingSelect/app.R | e0b0382c1de0a0c4e1b0169e2a90c241092063f9 | [
"MIT"
] | permissive | SafetyGraphics/safetyGraphics | 1fb022b3e6825395ac87475a88fc87bdf6c7a842 | f602cdc2068e7b290513c9accad7cf351775ce4e | refs/heads/dev | 2023-06-21T11:37:46.817097 | 2023-05-08T15:20:57 | 2023-05-08T15:20:57 | 145,888,064 | 83 | 20 | NOASSERTION | 2023-06-16T17:08:28 | 2018-08-23T17:45:06 | R | UTF-8 | R | false | false | 1,853 | r | app.R | library(shiny)
library(safetyGraphics)
ui <- tagList(
tags$head(
tags$link(
rel = "stylesheet",
type = "text/css",
href = "index.css"
)
),
fluidPage(
h2("Example 1: Column select - No Default"),
mappingSelectUI("NoDefault","Subject ID... |
b7f114ca2e72664b9f999afe546a713b09041627 | 3aef5a679c390d1f2c7ecba35eca09864164c5a5 | /man-roxygen/example-CohortDtstmTrans.R | 909badc0ecdcd9233c66a6cb906edddd649d439e | [] | no_license | jeff-m-sullivan/hesim | 576edfd8c943c62315890528039366fe20cf7844 | fa14d0257f0d6d4fc7d344594b2c4bf73417aaf3 | refs/heads/master | 2022-11-14T07:35:15.780960 | 2022-09-02T03:13:49 | 2022-09-02T03:13:49 | 140,300,858 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,817 | r | example-CohortDtstmTrans.R | library("msm")
library("data.table")
set.seed(101)
# We consider two examples that have the same treatment strategies and patients.
# One model is parameterized by fitting a multi-state model with the "msm"
# package; in the second model, the parameters are entered "manually" with
# a "params_mlogit_list" object.
# M... |
0d9d628ceae8aa6c0cd4b73a94d64e9e0d069f55 | fd2cd35a789adc3a1e4c83cd7798c6385118c068 | /scripts_R_genericos/positividade/exploracao_positividade.R | cf4e198f402ec4cdf0c01ae91391bd0f35fa23b3 | [] | no_license | covid19br/central_covid | 1ce07ad6a086304983aa97caee9243bfc37367ee | 74e1ca39e4307fc43a8c510d7e98825ae1816d91 | refs/heads/master | 2023-05-11T14:45:02.202142 | 2023-03-22T21:20:51 | 2023-03-22T21:20:51 | 263,488,734 | 12 | 1 | null | 2020-07-10T18:42:29 | 2020-05-13T00:55:54 | HTML | UTF-8 | R | false | false | 5,541 | r | exploracao_positividade.R | library(plyr)
library(dplyr)
library(ggplot2)
library(zip)
library(aweek)
source("../../nowcasting/fct/get.last.date.R")
set_week_start("Sunday")
################################################################################
## Campinas
################################################################################... |
e263b0253838d841b9ad0ed7a30c81f23639b707 | 38d76982c3844b8dd57c5f51d5691fc803728a1a | /graphs/rscripts/overlay.R | 04356db6b00498c21182ba68646f5cb80eeb9797 | [] | no_license | alfa07/FixCache | afd6a0ed865afe47329b63fe380ade66e7f0be9b | d1de1b96332fef6de06a8ca51c5772e094d5af73 | refs/heads/master | 2020-12-25T11:31:49.207985 | 2012-03-13T22:13:31 | 2012-03-13T22:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,123 | r | overlay.R | #!/usr/bin/env Rscript
# month vs hitrate
rates <- read.csv("apache.csv", comment.char="#")
maxmon = max(rates$Month)
#maxmon = 36
plot(rates$Month, rates$HitRate, type="p", ylim=range(0,100), xlim=range(1,maxmon), xaxt="n", ylab="HitRate", xlab="Month")
axis(at=rates$Month, side=1)
#abline(h=max(HitRate), lty=2)
#abl... |
cd684edeb6dc6c87127c9cc30bf9cf6abe7e652f | a593d96a7f0912d8dca587d7fd54ad96764ca058 | /man/spark_integ_test_skip.Rd | d88123772c445edd9c118283c55f11ab2f1e1c58 | [
"Apache-2.0"
] | permissive | sparklyr/sparklyr | 98f3da2c0dae2a82768e321c9af4224355af8a15 | 501d5cac9c067c22ad7a9857e7411707f7ea64ba | refs/heads/main | 2023-08-30T23:22:38.912488 | 2023-08-30T15:59:51 | 2023-08-30T15:59:51 | 59,305,491 | 257 | 68 | Apache-2.0 | 2023-09-11T15:02:52 | 2016-05-20T15:28:53 | R | UTF-8 | R | false | true | 587 | rd | spark_integ_test_skip.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{spark_integ_test_skip}
\alias{spark_integ_test_skip}
\title{It lets the package know if it should test a particular functionality or not}
\usage{
spark_integ_test_skip(sc, test_name)
}
\arguments{
\item{sc}{Spark connection}
\i... |
18724dd4228fe40ffd13d1218fbac25a7352c1a7 | 8bc373f5ef5e4918d3f1e2d4a3ff3194bfbdfb20 | /USAspending FY18 Contracts Analysis.R | bbaf2b763825b26815c67b2d70be5d0912404738 | [] | no_license | shunley42/ShunleyLearnsGit | 94d2e0088d23aeee1099aceda2d4e171e5b4be27 | 776d004c4cf3ce04ae239a7666be723c693f00fa | refs/heads/master | 2020-07-30T00:43:12.430153 | 2019-10-13T22:57:36 | 2019-10-13T22:57:36 | 210,022,791 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,878 | r | USAspending FY18 Contracts Analysis.R |
library(tidyverse)
library(vroom)
# Create Working Directory Short Cuts
local_dir <- "/Users/samhunley/Desktop/2018_all_Contracts_Full_20191009"
setwd(local_dir)
# Loading that data
# vroom is fun, loads multiple csvs at once
# The data are the 2018 contracts archive from https://www.usaspending.gov/#/download_cen... |
6ccb6dc29b0a8242bfdf5fc46aa2b1a2bf6d02a6 | 1381b8df20007b2fdda32a61f90031ca6a161d59 | /Intro to R/workshop examples.R | 371eda92316be9cb5edbbcaaa20d15717ae101e4 | [] | no_license | gridclub/r-summer-workshops-2016 | 02f13fdb45f6a99a749f8353e1fbdb74fb378af5 | 0f7867cf02df991fdb14115a9fe57cea9cc2bba7 | refs/heads/master | 2021-01-09T20:47:39.999744 | 2016-07-19T17:51:48 | 2016-07-19T17:51:48 | 63,630,839 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,283 | r | workshop examples.R | library("Hmisc")
getHdata(FEV)
#FEV example
mean(FEV$fev)
median(FEV$fev)
summary(FEV$fev)
plot(x=FEV$height, y=FEV$fev)
class(FEV$height)
class(FEV$sex)
class(FEV$smoke)
str(FEV)
FEV$height2<-round(FEV$height/12, digits = 2)
View(FEV)
plot(x=FEV$height2, y=FEV$fev)
#MTCARS example
# Find dataset usi... |
345da27e99a350284346249027dd4dca7cea5554 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610044401-test.R | 37bc2862f7e0932a7b194592eb32569d9993c59b | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 176 | r | 1610044401-test.R | testlist <- list(hi = -1.33360288657597e+241, lo = NaN, mu = -7.47863579530838e+240, sig = -7.47863579530838e+240)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
57e92775de8e110670fcc8a653c8f0f553e71fc2 | 8482c80d84ac0ad76c32b2bbc93d8b0c4df0e90d | /subsetting.R | d02d4519ae32f3e6272b875566be689ff1cc5a6a | [] | no_license | errpv78/Data_science_coursera | 52b6881b4d85bd9c4b96bf2201d1b397dbd83bce | eb529f975c807e144cea2e54014d038130ef1136 | refs/heads/master | 2022-11-04T21:49:16.963371 | 2020-06-17T18:02:47 | 2020-06-17T18:02:47 | 272,050,338 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,797 | r | subsetting.R | # Subsetting
"[ - returns an object of same class as original, can be used to
select more than 1 element
[[ - to extract elements of a list or df, can extract only a single
element and class of returned object not necessarily be a list or df
$ - to extract elements of list or df by name, semantics same as [[
> x = c... |
783c8d0b0b5e91e8916e22a2fdd1566bf26ca2df | 020f5a54a70d4790de6643cd6feaf809afcf1621 | /man/estimateIGTProjection-methods.Rd | c830447d30a24e37460bef24f8d32bebab8b6a50 | [
"Apache-2.0"
] | permissive | hms-dbmi/EHRtemporalVariability | 2377d8d5ae78777ad3edb64f2cfa39d679fbbd18 | a1e2aa12b391b268d7000d93ce67da1bfc43c199 | refs/heads/master | 2021-06-08T01:44:27.951209 | 2021-05-31T11:51:28 | 2021-05-31T11:51:28 | 140,324,604 | 14 | 7 | null | null | null | null | UTF-8 | R | false | true | 2,879 | rd | estimateIGTProjection-methods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/allGenerics.R, R/allMethods.R
\name{estimateIGTProjection}
\alias{estimateIGTProjection}
\alias{estimateIGTProjection,IGTProjection-method}
\alias{estimateIGTProjection,DataTemporalMap-method}
\title{Estimates an Information Geometric Tempora... |
9647e82987cd65e65c50f9f25274d24439dda9d5 | f3d976a4c8407b3254253a8b4ef8ff764bde241d | /Open science workshop/t-test messing.R | 2a875db1c7900d1dd8e7dcef29ef4da7f0383743 | [] | no_license | charliekirkwood/demos | d98a0391836b577303b8e4b782f419931b4919b3 | ec299ebfc1d74f8b6fbfddff9bf7361ef18d2147 | refs/heads/master | 2021-07-14T08:43:49.832928 | 2020-07-25T21:49:08 | 2020-07-25T21:49:08 | 183,048,869 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 328 | r | t-test messing.R | library(data.table)
library(ggplot2)
n <- 1000
scoresA <- rnorm(n = n, m = 0, sd = 1)
scoresA
scoresB <- rnorm(n = n, m = 0.1, sd = 1)
scoresB
t.test(scoresA, scoresB)
ggplot(melt(data.frame(A = scoresA, B = scoresB))) + geom_jitter(aes(x = variable, y = value, col = variable), alpha = 0.33, shape = 16) + theme_cl... |
109f16a4fe083ddcce650d4823425855a8d316e0 | b6a030a2141f52f114844e33fefe2b7cc72df6f6 | /Credit Data Analysis Using Tree, Random Forest,Bagging.R | 15dc495343f239384c61056169994a2b58b6cdd9 | [] | no_license | NavneetSonak/Credit-Data-Analysis-Using-Various-ML-Alogorithms | 639dae62fbd73a38a001b4adf48da35996228c62 | 0cb6941a563e6555d706455294cfecf336b82113 | refs/heads/master | 2021-05-10T14:09:38.581261 | 2018-01-22T20:04:37 | 2018-01-22T20:04:37 | 118,503,835 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,601 | r | Credit Data Analysis Using Tree, Random Forest,Bagging.R | setwd('/Users/navneetsonak/Desktop/ClassesSlides/DataMining/R')
library(readxl)
library(dummies)
library(tree)
library(ISLR)
library(dplyr)
library(gbm)
library(randomForest)
## Importing Credit Data and doing data preprocessing.
credit <- read_excel('credit3.xlsx',sheet=1)
credit$profitable <- NULL
change <- functio... |
55afb7f06045a2b7ec3c38887ce639e7278fee06 | 38fe31eca00aead4f35512d0dffe84b80ca994e6 | /R/profile.uiprobit.R | 00fabd21240c0c7dff13f03bb73fd9f39dd1f09e | [] | no_license | cran/ui | 8f780729efca11df54b7a86947988fd4b6ab2345 | c426fcbce6ae3ca676b092a45b02d67f8ee6bdd2 | refs/heads/master | 2020-12-22T22:58:12.606147 | 2019-11-11T12:10:02 | 2019-11-11T12:10:02 | 236,955,797 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,290 | r | profile.uiprobit.R | #' Plot of UI and CI
#'
#' Plot function for objects returned from \code{\link{ui.probit}}.
#' Plots confidence intervals for different values of rho and the uncertainty interval.
#' @param fitted An object of class uiprobit
#' @param plot.all If TRUE, plots all covariates.
#' @param which Specify which variables shoul... |
886dc6f2228cce19043f815aa17c5e1dd582b3b8 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/boot/examples/simplex.Rd.R | d12d2fa22d2a4c3dbd4bd2c45cfd7af5f37f95f0 | [] | 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 | 490 | r | simplex.Rd.R | library(boot)
### Name: simplex
### Title: Simplex Method for Linear Programming Problems
### Aliases: simplex
### Keywords: optimize
### ** Examples
# This example is taken from Exercise 7.5 of Gill, Murray and Wright (1991).
enj <- c(200, 6000, 3000, -200)
fat <- c(800, 6000, 1000, 400)
vitx <- c(50, 3, 150, 100)... |
00301961ec02e1f0a8302ca827cb95de96fea809 | f9783fa798eed1074a94a9fb882fccb9c3b21a81 | /315B_HW2/hw2_q13.R | ff848e816322ff60c424f6f357c8bc84de2d2908 | [] | no_license | isaackleislemurphy/Stanford-STATS-315B | d7eae223d0062f543c1ed934196958356ebba3a1 | 89291693cbcb82d12901da831292d1075326030c | refs/heads/main | 2023-05-14T08:52:58.505531 | 2021-06-05T03:22:30 | 2021-06-05T03:22:30 | 333,242,486 | 1 | 0 | null | 2021-02-27T01:47:33 | 2021-01-26T23:11:20 | R | UTF-8 | R | false | false | 3,230 | r | hw2_q13.R | # STATS 315B Homework 2 Question 13 and 14(RPART)
library(dplyr)
library(gbm)
age_df <- read.csv("/Users/kaiokada/Desktop/Stanford/Q3/STATS315B/HW1/age_stats315B.csv")
age_df <- sapply(age_df, as.numeric)
age_df <- transform(age_df,
age = as.numeric(age),
Edu = factor(Edu, ord... |
7640d842abf0ba413183b3a8c77c5dca02fd0acd | 1cc809cc80bafec357d5ff1c1fa0f259d6f6ade9 | /Ch044.R | 8673e2becc15a8da8668084caf00c6fd14c49de9 | [] | no_license | SoonKwon/SSCRL381Summer2015 | a82c2ace7a12600f7616ba61ec83bc0ab3052a9c | 8447970a7cd6fcc782b0f421d9b43e7a8be23b9c | refs/heads/master | 2021-01-19T00:16:13.653400 | 2015-07-25T02:59:21 | 2015-07-25T02:59:21 | 38,501,737 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,275 | r | Ch044.R | x <- c(1, 2, 3, 4, 5,6 ,7, 8, 9, 10)
x
y <- 1:10
y
z <- c(1:10)
z
1:10
10:1
-2:3
5: -7
x*5
x+2
x - 3
x/4
x^2
sqrt(x)
mean(x)
length(x)
nchar(x)
nchar(y)
?mean
?length
?'+'
?'=='
?'++'
?'^'
apropos("mea")
?kmeans
x[1]
x[1:2]
x[1, 2]
x[4]
x[4:6]
x[4,6]
x[c(4, 6)]
x[c(4, 60)]
c(One = "a",... |
d33038dfff3d3392d474f54d665c2b386402b936 | a864a155a4ac597349fdc6a0d0b7618e695f1f2e | /man/VisiumExperiment.Rd | 2b61e957aa125e9a989492b59d8581a602364c9c | [] | no_license | celsomilne/SpatialExperiment | eb80936e938596ced34514c5a7af4b30e18e7658 | ae1da7d1eaeeed6bee5492b0cb08a7e05ac544f2 | refs/heads/master | 2022-12-02T06:22:56.199378 | 2020-07-31T00:52:29 | 2020-07-31T00:52:29 | 280,007,348 | 0 | 0 | null | 2020-07-31T00:52:30 | 2020-07-15T23:49:43 | null | UTF-8 | R | false | true | 2,957 | rd | VisiumExperiment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{VisiumExperiment-class}
\alias{VisiumExperiment-class}
\alias{VisiumExperiment}
\alias{coerce,SpatialExperiment,VisiumExperiment-method}
\title{The VisiumExperiment class}
\usage{
VisiumExperiment(..., scale... |
9579a6bc62650a6b1f0865316fe06bd7b4ac4c28 | 200412f0bd7d414124b3ea07478e7a40d48c338e | /man/initpi.Rd | 505d9dec75541951621e18103b7a77b3ba8826a4 | [] | no_license | dcgerard/stramash | 6c4eb8cc168d6ae7800c5949885f32984d367c3d | 7578dbad1bddc3d6a3fcb1bb0e0134cdb79dde40 | refs/heads/master | 2021-01-20T17:26:56.198069 | 2016-06-21T16:04:55 | 2016-06-21T16:04:55 | 61,399,327 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 547 | rd | initpi.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stramash.R
\name{initpi}
\alias{initpi}
\title{This is copied from the ashr package because I need it and it is
not exported.}
\usage{
initpi(k, n, null.comp, randomstart)
}
\arguments{
\item{k}{The size of the grid.}
\item{n}{The sample siz... |
110a17e4fb62f7fc50839bbf908050c12e2532e0 | 9cc64c2a53e17d943119ff2eea6004777104e005 | /35225_Public_Health_Information_Data_Analysis/Chapter04/ch04_2.R | 70269b0911ca503bcbd6d4871b1d1cec422daa68 | [] | no_license | devmei/KNOU | da8ba1d315ffc9a40605c97175d470c660750fc0 | e6b77d83c77ab6b11e7ecddfec1fb0a2e2ca49f5 | refs/heads/master | 2023-09-01T00:36:12.143572 | 2021-10-19T08:24:15 | 2021-10-19T08:24:15 | 349,593,800 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,355 | r | ch04_2.R | # 동질성 검정의 예
# 비타민 효과
vitamin_effect <- matrix(c(31, 109, 17, 122), nrow = 2, byrow = T)
# 비타민 복용 여부: 대조군, 처리군
# 감기 여부: 감기 걸림, 감기 안 걸림
dimnames(vitamin_effect) <- list(taking = c("Control", "Treatment"), cold = c("Catch", "NotCatch"))
vitamin_effect
## cold
## taking Catch NotCatch
## Control 3... |
12348ff11d6b3ecdb85bb581ee86346468703296 | b7194433c8b351b730fe7b398ac8a76659ee27f2 | /Scripts/read.tre.R | f53674760ba22b800003d65b37fe49ae54515156 | [] | no_license | samuelgerber/VascularNetworks | 1a95ce87b333f9d0019f35601f40e8f01facd947 | daf82992d38836a662d3de79532bf0ccc1a772a3 | refs/heads/master | 2021-09-18T20:43:40.671339 | 2018-07-19T19:27:21 | 2018-07-19T19:27:21 | 110,156,971 | 0 | 1 | null | 2017-12-09T01:06:01 | 2017-11-09T19:25:34 | R | UTF-8 | R | false | false | 1,097 | r | read.tre.R |
read.tree <- function(inputFile){
con <- file(inputFile, open = "r")
X = c()
id = 0
pid = 0
while (length( line <- readLines(con, n = 1, warn = FALSE)) > 0) {
if( startsWith( line, "ID" ) ){
id = as.integer( strsplit(line, "=")[[1]][2] )
}
else if( startsWith( line, "ParentID" ) ){
... |
eb18b79584365654c7a7fd84a9926fbe2afd10f8 | 221befa0744f895155f744b6702bb5fa04334c1c | /lecture13.R | 8607174025a495fc13ded4bd70bfa8aa40d95d80 | [] | no_license | LEESUAJE1978/Habit-Factory | 66c651ce5100e35ef2dcff8a4965b37cf6ede4f2 | 27cea363ecfa28797b38b202f1e64b29b6e84378 | refs/heads/master | 2020-03-20T16:32:03.861433 | 2018-11-28T12:05:47 | 2018-11-28T12:05:47 | 137,541,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,224 | r | lecture13.R | require(dplyr); require(stringr); require(KoNLP); require(wordcloud); require(ggplot2); require(lubridate)
str(bium.cart)
theme_set(theme_gray(base_family="AppleGothic"))
par(family='AppleGothic')#그래프 한글 깨짐 해결 방법
Sys.setlocale(category = "LC_CTYPE", locale = "ko_KR.UTF-8")
# 1. 성별에 따른 구매금액의 차이
class(bium.cart$gende... |
c98d8b849e8e3930fa763e8d8c67013b25f2cb7e | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/NISTunits/examples/NISTmilePerGallonTOmeterPerCubMeter.Rd.R | 276d9d2d4b3022b3e4192260801fcd25525f7c18 | [] | 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 | 263 | r | NISTmilePerGallonTOmeterPerCubMeter.Rd.R | library(NISTunits)
### Name: NISTmilePerGallonTOmeterPerCubMeter
### Title: Convert mile per gallon to meter per cubic meter
### Aliases: NISTmilePerGallonTOmeterPerCubMeter
### Keywords: programming
### ** Examples
NISTmilePerGallonTOmeterPerCubMeter(10)
|
51d3e11df9d1f94359f47032027b7c4e14d81462 | e66d20590a2a24489b3ced4f20885d6bfcf312ed | /ESA5-RandJulia/Exercise1-guessingNumber.r | 210a27c672ced09b368ccd89fb2c368202ca188f | [] | no_license | Karina1988/DataScience2020 | 3270de13dabda54b3231d5a33abfa96784126ea3 | 975b97ec6a16cae105bc80a24edbd2ab6cfeeced | refs/heads/master | 2022-11-07T05:25:21.727440 | 2020-06-28T16:17:07 | 2020-06-28T16:17:07 | 260,479,731 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 705 | r | Exercise1-guessingNumber.r | startGame <- function()
{
randNumber <- round(runif(1, 0, 100))
guess = -1
while (guess != randNumber)
{
guess <- readInput()
if (guess == randNumber)
{
cat("Jippie, die Zahl ist korrekt!\n")
restartGame <- readRestartGame()
if (restartGame == "y")
{
startGame()
}
else
{
cat("... |
39f74f4c8e20ae66a5d691b2727030f45e3df7ee | 9d068471c68078d3a26d83929158dd3b51e96887 | /R/calc_stream_voronoi_weights.R | 923fdb9b5206e7abfe2b5d865efbd310391b4efd | [
"MIT"
] | permissive | scantle/pbjr | b4077d5c19c58f6e7f5db978f6a82205cf9b2394 | 365106683e21ef9358695aceecc265346d6c4ea5 | refs/heads/master | 2023-04-13T05:33:18.764597 | 2021-04-15T19:28:37 | 2021-04-15T19:28:37 | 279,678,995 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,576 | r | calc_stream_voronoi_weights.R | #-------------------------------------------------------------------------------------------------#
#' Calculate polyline (e.g. stream) barycentric coordinates
#'
#' These coordinates are used as "weights" in the PBJ MODFLOW-USG package to interpolate heads and
#' distribute flows.
#'
#' The function can take a while t... |
6e2284c11ff10c31b34d845709d732a3abd4e2d3 | 82c8de125787a80a6fbdc190c72b83c2819275dc | /fft_funs_reduced.R | f4df93985e4f4d351ee9f3894e3011ca3bc09e3e | [] | no_license | chxyself25/GLOBAL-SPACE-TIME-MODELS | 929b9b6b83d3d91d8a1ff30544f188c2a1b3f48e | 3c634f0aa0e2b120374ea7c066789113837d9688 | refs/heads/master | 2020-04-03T04:01:21.586460 | 2019-11-08T05:42:33 | 2019-11-08T05:42:33 | 155,001,090 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 4,482 | r | fft_funs_reduced.R | # covariance function for section 5.2: single latitude
library(Matrix)
## F operator
DFT_mat <- function(N){
M <- outer(0:(N-1), 0:(N-1), function(i, j) exp(-(2*pi*1i*i*j)/N) ) / sqrt(N)
return(M)
}
# Foutier transform to Z
FFT <- function(D_mat, T.len = 15, N=96) {
res <- apply(D_mat, 2, function(x) {
unli... |
5f0b431a85eaa3bb5374fcadce9a05be17fa5fd3 | 2b811017ef9ad341af3bf7fd94703da31a7a0f24 | /common.R | b6c6c85a000231062d59e2d83eb939ce53c909ca | [] | no_license | maptracker/ProgrammingAssignment3 | c01425528bdf70b57faa2e3c4c58aec74d2257fb | d655490085864ecb6fc39c49de8bf141a7f14d60 | refs/heads/master | 2021-01-10T07:54:14.801014 | 2015-10-29T14:02:15 | 2015-10-29T14:02:15 | 45,136,728 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,554 | r | common.R | # Coursera course assignment
# https://class.coursera.org/rprog-033/assignment/view?assignment_id=7
# These are functions common to all three sub-assignments
readOoCM <- function( file = "outcome-of-care-measures.csv") {
# Build the column classes
# These are names and addresses in the first columns:
addr... |
f83351d964ce2ebea663e82849dfacd83cd1340f | c005f838c7f71d734a1409c003b053d5fdcefb87 | /hackthon2021/ui.R | 17c81ee40eed685fdb77712fc48213f009b43af0 | [] | no_license | JJimLee/MountainMadness | 199321cdc2cbc719c6364c18767cf101c997be72 | c05917d7a0601c75711b1ef0e0fc62caaa2ddb5d | refs/heads/master | 2023-03-07T04:28:31.112442 | 2021-02-14T18:30:03 | 2021-02-14T18:30:03 | 338,662,340 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,415 | r | ui.R | #
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
getwd()
library(shiny)
library(ggplot2)
library(tidyverse)
library(dplyr)
library(cowplot)
na... |
c20356251cd24f1931539c83eb91a249dd1c76b7 | 58b0cfbf14d5adcf8b84bedf827d7cbde1c3e1dd | /data-raw/usa_fc.R | 03133c3532a100337be67f3b6c6695b6946241f4 | [] | no_license | ipeaGIT/gtfs2emis | 5c40fcb787eaa72a6b4e67c9199c5220a7542d10 | d68ffe805a66229f73df76de1e9b42c39d981688 | refs/heads/master | 2023-07-19T16:04:46.727586 | 2023-07-13T15:31:34 | 2023-07-13T15:31:34 | 218,305,263 | 23 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,491 | r | usa_fc.R | # ------------------------------------------------------------
# based on EMFAC2017 "Volume III – Technical Documentation V1.0.2 July 20, 2018"
# ------------------------------------------------------------
# Table 4.3-55 Speed Correction Factors for Diesel Buses
# ------------------------------------------------------... |
39159051a4bdb41b3d627794a17253a793153780 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ggspectra/examples/s.e.response_label.Rd.R | 03c4b5ffd7359c67352e2abc3783510112445a0d | [] | 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 | 230 | r | s.e.response_label.Rd.R | library(ggspectra)
### Name: s.e.response_label
### Title: spectral response axis labels
### Aliases: s.e.response_label s.q.response_label
### ** Examples
counts_label()
counts_label("R.expression")
counts_label("LaTeX")
|
eba947572dbe5ceafa5967576f759e2ef994af24 | 48aaf67e29ebf44aadea93c2c51cec2a5797464e | /code/code_macro_ggplot.R | f0583204f92d9f5a714ac8c26550fbc0fdd61a11 | [] | no_license | Osant11/ggplot_function | 81fdf11156885d9cf87856c75131d1a02e1f338b | 1ead432c16183166a0a9ca0d9c9bced6aed7f6e8 | refs/heads/master | 2022-11-21T05:15:09.469419 | 2020-07-30T14:20:37 | 2020-07-30T14:20:37 | 283,795,119 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,532 | r | code_macro_ggplot.R | library(haven)
library(ggplot2)
library(plyr)
library(dplyr)
library(shiny)
library(tidyr)
library(knitr)
library(stringr)
library(DT)
library(tidyverse)
library(plyr)
library(shinyWidgets)
library(jsonlite)
library(gmodels)
library(gridExtra)
library(grid)
library(egg)
library(ggpubr)
library(foreign)
library(writexl)... |
c923ad6254ca1e79bc084f6d23ca05a4f06cbc23 | 810cbb5991fe2214217322fe08045c3c2f2ba242 | /demo_plotly3.R | b39b3e175398e3fbd49228a3c524a7901b800fd5 | [] | no_license | jpcolino/R_plotly | 0a55eb77e1bb99a3b397be20b49a53f25ca97dcd | edc4e4024155c37022d6b34bf64fe05ba066ea85 | refs/heads/master | 2020-04-06T04:00:31.354747 | 2014-08-19T13:12:43 | 2014-08-19T13:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 995 | r | demo_plotly3.R | library(plotly)
p <- plotly(username="****", key="****")
trace1 <- list(
x = c(1, 2, 3),
y = c(2, 3, 4),
type = "scatter"
)
trace2 <- list(
x = c(20, 30, 40),
y = c(5, 5, 5),
xaxis = "x2",
yaxis = "y",
type = "scatter"
)
trace3 <- list(
x = c(2, 3, 4),
y = c(600, 700, 800),
xaxis = "x", ... |
de2b3c7f38adda03f9adcc898a20986dff8c23d7 | 527d1b56858db7817dc4a855ae5758bfb5d6f7ec | /man/polish_publisher_forby.Rd | 2168cca5597310b9a621a3cd4ae55602b2a2a48d | [] | no_license | aa-m-sa/estc | 8d758a743f415a5e8957505fa3493373fb58f9d9 | eaa6dd925d67fec214f61bbf23d7ee1eaf15fcd5 | refs/heads/master | 2020-04-03T16:11:23.692465 | 2016-02-08T14:42:01 | 2016-02-08T14:42:01 | 51,322,179 | 1 | 0 | null | 2016-02-08T19:46:17 | 2016-02-08T19:46:15 | null | UTF-8 | R | false | true | 566 | rd | polish_publisher_forby.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/polish_publisher_forby.R
\name{polish_publisher_forby}
\alias{polish_publisher_forby}
\title{Polish publisher}
\usage{
polish_publisher_forby(x)
}
\arguments{
\item{x}{Publisher vector}
}
\value{
Polished vector
}
\description{
Polish publish... |
f2fa54f0f3fe4914d235bcf06c1cd94c6d0a5a2a | 3fe32caad93364807d28380dde65409429324649 | /man/image.pyn.psres.Rd | bdbc4d84e79436280ddc9bf6c0f54516ae4dab99 | [] | no_license | serhalp/pyn | c890b80f0286fba3c03413a511254fa65403ce06 | 6b88b622f44df69f2ec737096bf48f9d0e491544 | refs/heads/master | 2021-01-20T06:57:00.226739 | 2014-05-21T15:30:26 | 2014-05-21T15:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,484 | rd | image.pyn.psres.Rd | \name{image.pyn.psres}
\alias{image.pyn.psres}
\title{
Spatial distribution of probe residuals
}
\description{
Generate a heat map of probe residuals in a dataset, for visual inspection of empirical
spatial distribution.
}
\usage{
image.pyn.psres(batch, which = 1:length(batch), transfo = log2, draw.legend = TRUE,... |
68e4e7db3e83849f47e536f9891a01ca8db2ba22 | 88b1344aa6dd01a44141c5971c357f8ecacbd469 | /R_Indice/MMIRIQ.R | 46dda36eaea5aa321ac96674e05f3dea25b67e82 | [] | no_license | Meomeoowww/R | 8a6790d1b4c5cc38dbbceab47d9112963ef8dd72 | f3752069a11e450b09f5b61f9ceb1446f0fdaf1a | refs/heads/master | 2020-12-04T22:34:13.455214 | 2020-01-05T14:36:17 | 2020-01-05T14:36:17 | 231,923,675 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,248 | r | MMIRIQ.R | MMIRIQ <- function(df, v_input) {
#Evaluation et substitution de la variable
dfvar<-eval(substitute(v_input), eval(df))
# Library
library(classInt)
nclass=classIntervals(dfvar, n=10, style='equal', intervalClosure='right')
Etendue<-max(dfvar)-min(dfvar)
library(modes)
mode... |
4888af72e3b3463b9665b6e18ce23ecf9f9647fb | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/nproc/examples/print.nproc.Rd.R | f6308792909cc8c4fad13c9ff564088ac9ee8f66 | [] | 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 | 245 | r | print.nproc.Rd.R | library(nproc)
### Name: print.nproc
### Title: Print the nproc object.
### Aliases: print.nproc
### ** Examples
n = 1000
x = matrix(rnorm(n*2),n,2)
c = 1+3*x[,1]
y = rbinom(n,1,1/(1+exp(-c)))
fit = nproc(x, y, method = 'lda')
print(fit)
|
ffe5be0e399f9dfa3645db82905a6aeda7e8c5c7 | b9cb63e0be55172f45ac7679506fd0e5d11d6571 | /R/BivBoot.R | 8d8b64b1b4e8b0c19828f38b6ccb2f77a88a924a | [] | no_license | cran/survivalBIV | de95fe0fefb5bbe0a7b5ddf1ac08aec993ed3c37 | b98f7c532f452931274e92c09715315685733ad4 | refs/heads/master | 2018-12-29T19:16:45.958191 | 2012-02-28T00:00:00 | 2012-02-28T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 743 | r | BivBoot.R | BivBoot <- function(object, t1, t2, n.boot, conf.level, method.boot, new.class) {
vec <- vector( mode="numeric", length=nrow(object$data) )
for (i in 2:n.boot) {
x <- with( object, list("data"=data[sample.int(n=nrow(data), replace=TRUE),]) )
class(x) <- new.class
x <- Biv(x)
BivSort(x)
vec[i] <- BivD... |
a17dd45aa915e051ffd35779fd939d3d40e6ef74 | 443f745e549179abb00c1e78ed1fdd4a1a26270d | /pareto/man/rpareto.Rd | b7dea6daa91ccad0f13f161120ad395c601b097c | [] | no_license | ruc067/ucsd-291-computing | 631817f0e0b2e163ff4c3c83cdb8e73113d74eb5 | d17c1de4c1227fddea5a3438383a23f7586d1ef0 | refs/heads/master | 2020-04-10T07:38:31.028724 | 2018-12-15T18:28:57 | 2018-12-15T18:28:57 | 160,885,007 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 700 | rd | rpareto.Rd | \name{rpareto}
\alias{rpareto}
\title{
Random number generator of pareto distrition
}
\description{
it will generate random variable of pareto distrition.
}
\usage{
rpareto(n = 1, alpha = 2, beta = 2)
}
\arguments{
\item{n}{
int n
}
\item{alpha}{
vector alpha
}
\item{beta}{
vector beta
}
}
\details{
... |
f98c45a32a34cae96a6fe3e642ef2bc45a515c30 | eb02c02ed9104c3d2117ee09e2e04be40510c70d | /man/generalize.hz.Rd | 72a1f052a3ecb76fc8c35a8d7cbaa326fa1a7e37 | [] | no_license | rsbivand/aqp | e53458c345ecf3e2d86b21907d7ecce874efcbcf | 0d940dbb433b54b9db8749642e627de38890924c | refs/heads/master | 2022-12-08T20:35:37.938564 | 2020-09-11T03:17:59 | 2020-09-11T03:17:59 | 293,072,930 | 0 | 0 | null | 2020-09-05T12:37:47 | 2020-09-05T12:37:47 | null | UTF-8 | R | false | false | 1,519 | rd | generalize.hz.Rd | \name{generalize.hz}
\alias{generalize.hz}
\title{Generalize Horizon Names}
\description{Generalize a vector of horizon names, based on new classes, and REGEX patterns.}
\usage{generalize.hz(x, new, pat, non.matching.code, hzdepm, ...)}
\arguments{
\item{x}{a character vector of horizon names}
\item{new}{a charac... |
a18221d5bce7945a3b38159e60be5dc80b1427a3 | 2487dfa8bb23d3e1a9000dba265c416cccb69939 | /demo/MCMCGuide01.R | efce6b1bf353643b57c8c1a2707dd723ec439ef3 | [] | no_license | cran/R2MLwiN | f2c5694b60e3a392ad516ab63689c642f3fc72bb | 593d94db244d3fc07538aedf83fc183859b9f5fd | refs/heads/master | 2023-03-21T15:14:11.554599 | 2023-03-14T04:40:02 | 2023-03-14T04:40:02 | 17,681,793 | 3 | 1 | null | null | null | null | UTF-8 | R | false | false | 6,066 | r | MCMCGuide01.R | ############################################################################
# MLwiN MCMC Manual
#
# 1 Introduction to MCMC Estimation and Bayesian Modelling . . . . . . . 1
#
# Browne, W.J. (2009) MCMC Estimation in MLwiN, v2.13. Centre for
# Multilevel Modelling, University of Bristol.
##########... |
86cddbc47f76f584ae5372a37f8059f6c85a7400 | a52d2e7daf2471b89d559cd516d3652dbe6315f3 | /Code/02_3c_Format GLOBI.R | b746e6e3430b74c5852ae70bfa990f00c1a2c7c4 | [
"MIT"
] | permissive | viralemergence/virion | f659713981367304f78b9368c48cf8773177e58e | a44e986ff40eb56121f93f6fd1715469532c99fc | refs/heads/main | 2023-09-02T10:25:00.523067 | 2023-08-30T21:21:54 | 2023-08-30T21:21:54 | 319,686,363 | 26 | 7 | null | 2023-09-11T19:16:03 | 2020-12-08T15:50:12 | R | UTF-8 | R | false | false | 2,222 | r | 02_3c_Format GLOBI.R |
library(tidyverse)
library(magrittr)
globi <- read_csv("Intermediate/Unformatted/GLOBIUnformatted.csv")
temp <- data.frame(Host = character(),
Virus = character(),
HostTaxID = double(),
VirusTaxID = double(),
HostNCBIResolved = logical(),
... |
40dd86db06c57156ba437cba978e3bc2c16f6bdb | a231d4d134b59309c1b4e7f89534600e0e6054b7 | /tests/testthat/test_search_users.R | 7e5fa73747ea56ef5d58fb1198f582478a5203f3 | [] | no_license | cderv/rtweet | 30403ca521ea0fbeb04d83ad4d80c915b19ab6ec | 1bf207122b891ad6a0261b41c4151846ec892cde | refs/heads/master | 2020-12-03T00:23:38.962959 | 2017-06-26T18:11:32 | 2017-06-26T18:11:32 | 96,025,023 | 1 | 0 | null | 2017-07-02T13:26:56 | 2017-07-02T13:26:56 | null | UTF-8 | R | false | false | 604 | r | test_search_users.R | context("search_users")
test_that("search_users returns users data", {
skip_on_cran()
n <- 3
token <- readRDS("twitter_tokens")
x <- search_users("twitter", n = n, verbose = FALSE, token = token)
expect_equal(is.data.frame(x), TRUE)
expect_named(x)
expect_true("user_id" %in% names(x))
expect_gt(nrow(... |
7adb0c5fdd97e3581ca792656fbff12800b6b594 | 0626a4ee953adb6c076c7d49e0273919d393a896 | /DecisionTrees/trn_decTree.R | 62ff943c401766c85400ae19f4659838a2ace7eb | [] | no_license | jtuttle7/MachineLearning2019 | af1366227654f5c559ef2ed430e575142e12e6b0 | a93044fa7f65f7e661f2892ce0fd9eb311e04c47 | refs/heads/master | 2020-04-22T20:18:52.004782 | 2019-04-24T21:33:45 | 2019-04-24T21:33:45 | 170,634,067 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 83,344 | r | trn_decTree.R | # Decision Tree Training Algorithm
# Librarys ----
# update.packages(old.packages())
data_tree_Flag <- require(data.tree)
dplyr_Flag <- require(dplyr)
# tidyverse_Flag <- library(tidyverse)
if(!data_tree_Flag){
install.packages("data.tree")
library(data.tree)
}
if(!dplyr_Flag){
install.packages("dplyr")
}
sou... |
cc905476775b6beac0b0091855a81264b36cd951 | 4582853950f0b804f12bc7a135ab581f972e14d5 | /code/RS_pheno_model_1.R | cd1c9b68c297bc82358e8aa64087fbb87608e49a | [] | no_license | katjakowalski/MA | 2eae69e2e70af51be5ef2eafaf2f773e01ccc547 | 96e43199c4041e798601471c9d61a93e8cc468e9 | refs/heads/master | 2020-03-28T06:39:22.670034 | 2019-05-01T13:46:05 | 2019-05-01T13:46:05 | 147,850,556 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,689 | r | RS_pheno_model_1.R | #### load packages ####
library(mgcv)
#library(tidyverse)
#library(ggplot2)
#library(reshape2)
library(dplyr)
library(tidyr)
library(lubridate)
library(zoo)
#### end ####
path_data <- "\\\\141.20.140.91/SAN_Projects/Spring/workspace/Katja/germany/data_USB/data"
path_results <- "\\\\141.20.140.91/SAN_Projects/Spring/... |
b4a3d4e1a97b4f6149ebbbcb4a1dc2b9c5f629e1 | 0cb55c0b8e87681d1d7e372794b0c4ef3acd15ed | /GISforMaddie.R | a048f783082ae67f1e89a973509b3184efef3127 | [] | no_license | jsilevine/MpalaWater | 2d0ac7543f2968d8916f2682183adda8355dc87c | f8984274b25f51bed37bd260856fff4cb4157f25 | refs/heads/master | 2022-11-15T12:21:48.251595 | 2020-07-08T19:07:35 | 2020-07-08T19:07:35 | 257,985,948 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,703 | r | GISforMaddie.R | library(ggplot2)
library(rgdal)
library(rnaturalearth)
library(sf)
library(raster)
library(ggplot2)
library(stars)
library(maptools)
library(data.table)
library(birk)
library(plyr)
##INSTRUCTIONS:
#Move to line 218 to Start, first part
## read data
# data <- read.csv("sightings.csv")
# data <- data[data$Y > 0,] ## get... |
8b4b114c0c4c7771b5f20a2eeed3e238b8033aef | 38eb5cf2965f0b2319942cd04c0a70c59d8825bc | /mlr_regression/mn_regression_swc.R | 283fafcb978e473bf95bd0daa69a9c1c7f6df267 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | lmanubens/BigNeuron | 769f1cb5451691a820c42c2dcccee649f5d002be | fc9d2052589f03d45ff530f56beebb1f1b18b77a | refs/heads/main | 2023-04-18T18:39:54.181296 | 2023-01-21T00:46:46 | 2023-01-21T00:46:46 | 362,476,584 | 7 | 3 | null | 2022-05-12T01:22:09 | 2021-04-28T13:26:16 | R | UTF-8 | R | false | false | 5,534 | r | mn_regression_swc.R | # require(foreign)
# require(nnet)
# require(ggplot2)
# require(reshape2)
# # https://stats.idre.ucla.edu/r/dae/multinomial-logistic-regression/
# ml_b <- read.dta("https://stats.idre.ucla.edu/stat/data/hsbdemo.dta")
require(tidyr)
plotCM <- function(cm){
cmdf <- as.data.frame(cm[["table"]])
cmdf[["col... |
d92b834a4c2891013ad05cd9faa622f982f3274b | 057cb37817ffeec47fffecdabb59fc1f060884e8 | /old/experiment_real_data_missing_data_3/import.data.pf.R | c9af0f520d6ed13f3e768087f9b765d14b1434ff | [] | no_license | BIMIB-DISCo/MST | 7e1a89e430ed0c16f42a9caecafb0e1f426189fc | d1db82d70c6df9c19ab86153e3b7e696d1f7588b | refs/heads/master | 2021-01-13T06:56:36.494870 | 2018-12-09T22:22:08 | 2018-12-09T22:22:08 | 54,653,989 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 920 | r | import.data.pf.R | # load the required R packages
library(ape)
library(TRONCO)
# structure to save all the results
data_paper1 = list()
# read the data and format them
data_1 = read.table(file=paste0(getwd(),"/alterations.txt"),header=TRUE,sep="\t",check.names=FALSE,stringsAsFactors=FALSE)
#rownames(data_1) = data_1[,1]
#data_1 = data... |
82c40864f911f784e34d5c4e6962b119d4f8df3b | 1757fb5db6b90cfb4a09e73cf1178fdbe851bf3d | /script_prep_recursive.R | 0357e5d2d8a530754aa89d522c8ec3571c3df873 | [] | no_license | gvschweinitz/BLS_19_Does-Machine-Learning-Help-Us-Predict-Banking-Crises | b03a2ea494926033fed547d1b0e5a11f80696e8f | 578a204b6f4fade8bf05793535607b68a463ea3a | refs/heads/master | 2023-01-21T10:03:37.193918 | 2020-12-01T09:28:38 | 2020-12-01T09:28:38 | 313,629,287 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,220 | r | script_prep_recursive.R | ####################################
# Setting some names
datasets.eval <- "data.db.recursive.eval"
resnames <- "res.recursive"
posvecs.eval <- "pos.eval.recursive" # posvecs.eval is used to select from resnames (in script_tables)
resnames.bs <- "res.bs.recursive"
##################################
# Bootstrap settin... |
28717ab29152a359909941bc0067fc0a34f0ebca | 7f61b86168c2cf799a8bb34bb0e889909f72d302 | /onlyr.r | 68f74738025cf1430014d7dee765c37924d2db22 | [] | no_license | alex-mccall/NER | b4debcc66971a94a5872e3bfa38f097d15bc5b2a | fcc089e7f5869e811087d4d40911e7caf2bea7c8 | refs/heads/master | 2023-08-03T21:57:20.677670 | 2021-09-22T09:50:38 | 2021-09-22T10:27:39 | 376,233,380 | 0 | 0 | null | 2021-08-16T01:15:05 | 2021-06-12T07:53:26 | R | UTF-8 | R | false | false | 2,013 | r | onlyr.r | library(crfsuite)
x <- ner_download_modeldata("conll2002-nl")
subset(x, doc_id == 100)
library(data.table)
x <- as.data.table(x)
x <- x[, pos_previous := shift(pos, n = 1, type = "lag"), by = list(doc_id)]
x <- x[, pos_next := shift(pos, n = 1, type = "lead"), by = list(doc_id)]
x <- x[, token_previous := shi... |
49326bd26389f2985b09546ff5ae4a8b07eebfb6 | 81d75f0a026326a6a504c9acee33ca49029765d7 | /R/MultiscaleAnalysis/man/trim.trailing.Rd | de8d33985097961047719104b67889459462d85b | [] | no_license | jamiepg1/multiscale-galactose | 669b3068850ebdf324a90af3c35a01874dcfea16 | 05b0a7b3a41e5870c23fc1c9711ec6d46126d6a2 | refs/heads/master | 2018-05-30T08:02:58.651778 | 2014-08-06T15:26:09 | 2014-08-06T15:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 303 | rd | trim.trailing.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{trim.trailing}
\alias{trim.trailing}
\title{Returns string w/o trailing whitespace}
\usage{
trim.trailing(x)
}
\arguments{
\item{x}{string to strip whitspaces}
}
\value{
stripped string
}
\description{
Returns string w/o trailing whitespace
}
|
640452439366ef8a815c23260df98373b0de4710 | dbf026742bfa0213d8fde73647e24e6a940d4ba4 | /week2.R | 072eadf9f2f5f40810bcd7c14d0da2640a767f66 | [] | no_license | cjf4/Summer-Bridge-Assignments | 549cb07d73620b29c6518026ad40a4f231d19a75 | 0fb5657b8bfc8f477f399eb49e61940f6c24cfe8 | refs/heads/master | 2021-03-12T20:06:23.046012 | 2015-09-01T01:45:00 | 2015-09-01T01:45:00 | 38,578,341 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 394 | r | week2.R | fenton_factorial <- function(x) {
factorialized <- 1
if (x == 0) {
return(1)
} else if ( x < 0 || round(x) != x) {
return("Factorials must be non negative integers")
}
for (i in 1:x) {
factorialized <- i * factorialized
}
return(factorialized)
}
fenton_choose <- function(n,r) {
retur... |
f1aa60bbb839ef6f0c0b2c66efd998c6be3eacf2 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/Rankcluster/man/unfrequence.Rd | 465cfe3b90dc8362a477a51e18085a10eca1bf93 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | true | 660 | rd | unfrequence.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RankFunctions.R
\name{unfrequence}
\alias{unfrequence}
\title{Convert data}
\usage{
unfrequence(data)
}
\arguments{
\item{data}{a matrix containing rankings and observation frequency.}
}
\value{
a matrix containing all the rankings.
}
\descri... |
9add266af52bf6fcf3c0488ac55068e753f58aa6 | 7635df9f67bc61d1ead8da6b8d6a876f4a79340d | /old_scripts/05_plotting/counting.R | 3d89bd5fdd605de5f9df3f86961b4f16ae5c890e | [] | no_license | Tubbz-alt/RNAseqMuscle | ea66d4196889aed912a1dcc94f972e1f9c8e0817 | d56b152e2db30e778a14cee7830a86545f1ae489 | refs/heads/master | 2022-02-14T23:22:34.280891 | 2019-07-11T23:10:42 | 2019-07-11T23:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,725 | r | counting.R | # Need to load the jaccard.R and logseq.R functions before running this function.
# --- Change these conditions ---
data_file = 'C:/Users/sarah/OneDrive/Documents/2018/04_2018_Fall/RNAseq_analysis/2018_12_12/soleus-data-combined.txt'
# directory to save results - no trailing forward slash!
save_path = 'C:/Users/sarah/... |
315caf360846ce6154b5f558b68aec06d0c5f3d3 | fb1140dd0146e7c42ec2352ea8492be7a492d062 | /code/tdc_ed.R | 16212e5a9f27135b28efc74fd8d72165c9e7ec7c | [] | no_license | rowlandseymour/PBLA | 4231f545c6d2456ed0402b1957eba42e08755933 | d9d9e72d53bf53dfb861a19febcf1ef981c384dd | refs/heads/master | 2022-03-16T16:50:49.545215 | 2019-11-06T00:22:13 | 2019-11-06T00:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,087 | r | tdc_ed.R | ##################################################
### Code to generate Eichner Dietz (ED) method ###
### results for the Tristan da Cunha data ###
##################################################
# Install any missing and required packages
list.of.packages <- c("ggplot2")
new.packages <- list.of.packages[!(lis... |
83f0654f36fa8ba87eb092ae9052271894f03543 | d1844855b2aff3b43af5094f1a214b0a84b75242 | /2.Tables.R | 96ed190e663a0602a3bee5bcf756aaf96e3d0305 | [] | no_license | AlistairMcNairSenior/BCAAs_Meta_Analysis | 829b9879ae4eb032c35064809aa6d7a7e6427b01 | 8d19585625e09ad60b3c01ba7f95f42ee24598a5 | refs/heads/main | 2023-05-11T20:57:54.284148 | 2021-06-09T02:58:57 | 2021-06-09T02:58:57 | 375,200,615 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,245 | r | 2.Tables.R |
# Clean up the R environment
rm(list=ls())
# Set the WD
wd<-"/Users/alistairsenior/Dropbox (Sydney Uni)/2018 BCAA Meta-analysis/Analysis" # Work iMac
#wd<-"/Users/asenior/Dropbox (Sydney Uni)/2018 BCAA Meta-analysis/Analysis" # Work Macbook
#wd<-"/Users/asenior/Dropbox (Sydney Uni)/2018 BCAA Meta-analysis/Analysis" #... |
c579d00caed67f48016f3bc92d5fbdb49f18e6b8 | 8f14b26387e0a19bc51cc4b40c67ccd225accb9b | /man/calc_uncertainty.Rd | d1fd078d6b64ddcafe44e14060a7736bf5a2e83b | [] | no_license | mikkelkrogsholm/pollofpolls | fcfc3b98f165e13e4bd4580411cdfd3af014a12c | 5e9c845658daac93fc20d6ac510cfa1e6b93c069 | refs/heads/master | 2020-03-28T01:05:16.176564 | 2018-10-01T10:33:57 | 2018-10-01T10:33:57 | 147,475,979 | 1 | 1 | null | null | null | null | UTF-8 | R | false | true | 429 | rd | calc_uncertainty.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{calc_uncertainty}
\alias{calc_uncertainty}
\title{Calculate poll uncertainty}
\usage{
calc_uncertainty(p, n, z = 1.96)
}
\arguments{
\item{p}{share of poll}
\item{n}{number of respondents}
\item{z}{the z-score}
}
\value{
a n... |
cd8650937fde246cf427d72971c7fc5560f0ecf1 | dd8c07ac7e734bc1ecacedd5cab0909bbb96b345 | /Projekt2_kody_AnnaKoziol.r | 30fb83a04db9f03ca405f6147f22ac76ec68919a | [] | no_license | AniaKoziol/DataMining | 84df6ee9e405c7dd17839bfea0df89019a0ab055 | 34db2073f5caf6d9be15c313913db41d66cb8eee | refs/heads/main | 2023-02-23T18:16:19.495502 | 2021-01-29T21:51:59 | 2021-01-29T21:51:59 | 334,271,005 | 0 | 0 | null | null | null | null | WINDOWS-1250 | R | false | false | 11,206 | r | Projekt2_kody_AnnaKoziol.r | install.packages("praznik")
install.packages("verification")
install.packages("infotheo")
install.packages("AUC")
install.packages("randomForest")
install.packages("class")
install.packages("Boruta")
install.packages("factoextra")
install.packages("ROCR")
install.packages("adabag")
install.packages("caret")
... |
cd8eec4f6fb014a2c450c4bdc4a318d9613c3860 | a73f297916588af6cbfa7779b236fa26891c5478 | /run_analysis.R | 1b7b0b5b39fd23835da020881b76722fc312e24b | [] | no_license | arildnor/GettingAndCleaningData | 13aa1782a74bf86fa168dafd0ed72e59d3d1830b | e5c65f61e00d6092344fb8f411a2ff9dbe2b5a04 | refs/heads/master | 2021-01-10T18:30:53.365445 | 2015-02-22T10:09:35 | 2015-02-22T10:09:35 | 31,122,952 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,401 | r | run_analysis.R | ################################################################################
##
## Getting and Cleaning Data
## Programming assignment
##
## 1. Merges the training and the test sets to create one data set.
## 2. Extracts only the measurements on the mean and standard deviation for
## each measurement.
## 3. Us... |
cf519c98505060a185fe554a4fc11ded8a0ce7a9 | 1aa7f59efe886e200ebfa4b1a1eb7b038e2239fa | /PenDrive/JR/R/ex03_exploratoria.R | 3c21493ace1b5c66db627cfc06cb3ca2259dec23 | [] | no_license | jayme-jr/Backups | 72b2de6d99ed9061eeafa3b98136a1c4edb3246f | 29f7f0a2dea038726d93d0c3c2241e6781c8cc25 | refs/heads/master | 2021-03-02T17:18:09.013473 | 2020-03-08T21:49:30 | 2020-03-08T21:49:30 | 245,887,640 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,287 | r | ex03_exploratoria.R | ##======================================================================
## Exercícios - Análise Exploratória de Dados
##======================================================================
##======================================================================
## Importação e conferência dos dados
## Baixar os dad... |
6c8636d3d943666298e66ea630d988ef07c3ed7f | 309d9decb79e9853a10d17e4822367dc7b75d831 | /plot2.R | 6d4b2f8e5e042c5c4a3e4ebd0189ae82e7832300 | [] | no_license | cgangwar/ExData_Plotting1 | 5d6a398cb9a8210700ce32e491f32891e58ddafc | 9f240df610261922db7d23370dbc3030598a5940 | refs/heads/master | 2021-01-24T21:35:54.020072 | 2015-10-11T07:38:13 | 2015-10-11T07:38:13 | 44,043,168 | 0 | 0 | null | 2015-10-11T07:28:29 | 2015-10-11T07:28:29 | null | UTF-8 | R | false | false | 728 | r | plot2.R | #load data from current directory
classes <- c("character","character", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric", "numeric")
file <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";", na.strings = "?", colClasses = classes)
#clean up and subset
file$Date <- as.Date(file$D... |
8b7661acaa6613a4779045a7209fd2cee0bbe113 | 7c0f1ca5f591fbfa8be8d94f0bc422bc7c9f39b7 | /man/GenomicAnnotationsForPREDA2GenomicAnnotations.Rd | fc41560f8f61e0428b3d8ce6c12f2afaa43ae1a5 | [] | no_license | bernatgel/PREDAsam | 2779a93879cf8b0d641cc2dec7857024f4e63513 | fe90fd71652cc52a99e9946ee78bcb3152c00270 | refs/heads/master | 2020-05-21T07:34:39.489048 | 2019-05-10T10:11:31 | 2019-05-10T10:11:31 | 185,964,143 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 528 | rd | GenomicAnnotationsForPREDA2GenomicAnnotations.Rd | \name{GenomicAnnotationsForPREDA2GenomicAnnotations}
\alias{GenomicAnnotationsForPREDA2GenomicAnnotations}
\alias{GenomicAnnotationsForPREDA2GenomicAnnotations,GenomicAnnotationsForPREDA-method}
\title{
extract the GenomicAnnotations object from the GenomicAnnotationsForPREDA object
}
\description{
extract the GenomicA... |
0552ded4b1d6c3cb6ae541c35efd505535f4779a | c48f2a584ba20fab90aaeab28b575e180a276928 | /man/gforce.confint2test.Rd | f9997af6ca9eb89f17114681ce40a7aeceb8f0bd | [] | no_license | cran/GFORCE | 3a2fab8e3cf3d07c18427332985d0901c00c17d7 | 1c89579c5ecce1e8aef93bd7d2854986b835454a | refs/heads/master | 2020-03-20T11:15:14.741926 | 2019-04-07T08:42:42 | 2019-04-07T08:42:42 | 137,397,785 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 628 | rd | gforce.confint2test.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FDR_control.R
\name{gforce.confint2test}
\alias{gforce.confint2test}
\title{Convert confidence intervals to equivalent test statistics.}
\usage{
gforce.confint2test(conf_ints, alpha)
}
\arguments{
\item{conf_ints}{\eqn{d x d x 3} array. Each ... |
9e0d6c16f7b82d670b47e571195a6993b3686a2a | 1b73390902afc90781b72e7cf49f08878ddd4a08 | /R/shiny_chunk.r | 74a927d5ffc08c45a7d832a859bedec0a8d7c1ae | [] | no_license | skranz/RTutor2 | cf018a114a724a666672399e73b8da38c58bd522 | cb19b69a6d11d2f957dad72df56a52680c2ff353 | refs/heads/master | 2021-01-17T13:24:57.440277 | 2017-10-07T01:51:22 | 2017-10-07T01:51:22 | 51,748,016 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 15,270 | r | shiny_chunk.r | set.nali.names = function(x, nali) {
restore.point("set.nali.names")
ind = match(names(x), names(nali))
names(x)[!is.na(ind)] = unlist(nali[ind[!is.na(ind)]])
x
}
# update a chunk.ui to the specified mode
update.chunk.ui = function(uk, mode=uk$mode,app=getApp(),dset=TRUE) {
restore.point("update.chunk.ui")
... |
79c8e0819a5bfe546e4745a91ddf0159b9fe931d | f990b8616b9ae5b343bec0faa3721ec1610aa2e1 | /scripts/combine_snvs_pindel.R | 8350c27d089df4cde1ab01d5da8e7aa3e68fad27 | [] | no_license | UCSF-Costello-Lab/LG3_Pipeline | 7f46f266d8b94825d786b5c4f74f136cd06c0230 | 4a9751d742ed21a604e2dfe6257410bcc7c7183f | refs/heads/master | 2022-10-21T04:59:20.822171 | 2021-10-12T02:55:34 | 2021-10-12T02:55:34 | 138,243,933 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 635 | r | combine_snvs_pindel.R | assertFile <- function(pathname) {
if (!utils::file_test("-f", pathname)) {
pathnameX <- normalizePath(pathname, mustWork = FALSE)
stop(sprintf("File not found: %s => %s (current working directory is %s)", sQuote(pathname), sQuote(pathnameX), sQuote(getwd())))
}
invisible(pathname)
}
args <- commandArgs(... |
a05d6889f4e18dbb89541b03dcd2fd11e3b57f9f | e7133561b40db4b5bfa6a09248a2d7b48aee0144 | /collection_I_need_to_sort/missing_data_exercise.R | 673fc01b6cf252233e1eaf9b60535d34ed9d6734 | [
"MIT"
] | permissive | jokedurnez/RandomNotes | 25f6f8d557740d69e00963995ce3c3e15202cfc4 | 12b5c95a2f038e80159dd97e84e863e6a5b11541 | refs/heads/master | 2021-01-20T17:54:44.271016 | 2018-02-02T21:12:21 | 2018-02-02T21:12:21 | 60,736,193 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 460 | r | missing_data_exercise.R | null = 10
total = 30
par(mfrow=c(1,3))
for (alt in c(0,0.2,0.5)){
plot(1:3,c(0,0,1),col="white")
l = 0
for (eff in c(0,0.2)){
l = l+1
mnT = c()
vaT = c()
typeI = power = c()
k = 0
for (null in seq(0,29,10)){
k = k+1
print(null)
p = c()
t = c()
for (i in 1:10000){
y = c(rnorm(total-null,eff,1),rep(alt,null))
tes... |
86512be64a1200fda6716843ffb5a32846c187ed | d5173f5299f3e4b556caf219f4dc1913f2c050db | /plot2.R | 1d9540e8003c6163b5fa61144aad42b260c6dc78 | [] | no_license | mhrds/ExData_Plotting1 | 68cefb2daa6e90e91302e40e56b786bb599f5071 | ac43812baceee0137af7a268bc05fdce6d72bb6b | refs/heads/master | 2021-01-16T19:27:27.413110 | 2017-08-13T11:20:50 | 2017-08-13T11:20:50 | 100,170,037 | 0 | 0 | null | 2017-08-13T10:44:48 | 2017-08-13T10:44:48 | null | UTF-8 | R | false | false | 477 | r | plot2.R | source("getdata.R")
df <- getdata()
# *************************************************************************
# Plot 2: line plot, Global Active Power ~ week day
# *************************************************************************
png(file = "plot2.png", width=480, height=480)
par(mfrow=c(1,1),mar=c(5,5,1,1))... |
7ac0b3c4dd7b0eaf2c1ce976c9ad989ea195988f | f6954adefc687611fdabe5fe9729b85e39880137 | /man/plot_spliced_isoforms.Rd | 7aa273edbb17c9dce6c2e082c9d46c75744116d8 | [] | no_license | GiuseppeLeuzzi/iSTOP | 0d4e5e00a77483ef1d593000f2825fbcf4101251 | 86c6f98695cb3a76b78b496185f1931013db641a | refs/heads/master | 2023-04-19T16:56:42.520003 | 2021-05-06T19:45:48 | 2021-05-06T19:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 609 | rd | plot_spliced_isoforms.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-isoforms.R
\name{plot_spliced_isoforms}
\alias{plot_spliced_isoforms}
\title{Plot spliced isoforms}
\usage{
plot_spliced_isoforms(gene, coords, colors = NULL, ...)
}
\arguments{
\item{gene}{A single gene name}
\item{coords}{A dataframe ... |
52fe9777ff9d2ea61abb56edc50112d78b480a70 | 924cf645f797e404689ead13ea4f2b398b3c0feb | /R/saeeb.R | fab91fed27781bc972a3399eefb2ae224e6acfe9 | [] | no_license | cran/saeeb | b8f56e7c643bae215b9e52a0377c63ed03a9935c | 1e368f6cbb1e17afa20181dbd265add280be142a | refs/heads/master | 2022-04-27T20:29:27.990958 | 2020-04-28T08:50:03 | 2020-04-28T08:50:03 | 259,620,543 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,751 | r | saeeb.R | #' Small Area Estimation for Count Data
#'
#' This package provides functions for small area estimation using Empirical Bayes (EB) Poisson-Gamma model. This model only accomodates count data type and gives option whether to use covariates in the estimation or not. Each function returns EB estimators and mean squared ... |
2af3592961b315cf1c4eb8d7faa36aab1ae638c2 | a0f45dc0295161eb4c0345a7ce44626146972e0f | /dropdown_shiny_module.R | 53f0aa26496f0ea9640af8a1b70c69b927b969cb | [] | no_license | imsashii/appsilon_task | bdcaed08d777c8bd488219b6c637381a5c35ae18 | 47abef472ddcbb3956a117b34b3331e96b6351df | refs/heads/main | 2023-02-21T14:01:58.949432 | 2021-01-24T17:38:28 | 2021-01-24T17:38:28 | 332,344,443 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 882 | r | dropdown_shiny_module.R | dropdown_ui <- function(id) {
tagList(
#for vessel type
selectInput(NS(id,"vessel_type"),label = "Select Vessel Type:",
choices = str_sort(unique(ship_type_and_name$ship_type_name)),
selected = "Tanker",
width = "90%"
),
tags$br(),
#for vessel name
uiOutput(NS(id,"select_vessel... |
47dee265f73f7a90f4605eac72bed3dbd09a405b | 7a95abd73d1ab9826e7f2bd7762f31c98bd0274f | /metacoder/inst/testfiles/centroid/AFL_centroid/centroid_valgrind_files/1615765267-test.R | abe7b8d4be79c39330120ad82800ce5b6a3611a9 | [
"MIT"
] | permissive | 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 | 176 | r | 1615765267-test.R | testlist <- list(b = c(1.79303608770963e-248, 8.27286244416292e-317, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
result <- do.call(metacoder:::centroid,testlist)
str(result) |
f99fa17df81e402fac64bf806dbadac8372d17ee | 55e31f67fae4ca26ac652784bbf1a99f820465c2 | /ui.R | e62fd278f8ca8d7f6cad3d2a1df698072bac5fa8 | [] | no_license | justmytwospence/StochastiWalk | b5323a965f64ba0c8662cc81321b197790843a40 | 1d9d8f545bf007798a6009d77b30b17af4b3f742 | refs/heads/master | 2021-01-01T05:36:05.522548 | 2013-11-25T01:02:18 | 2013-11-25T01:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,558 | r | ui.R | library(shiny)
sidebarPanel <- function (...)
{
div(class = "span3", tags$form(class = "well", ...))
}
shinyUI(pageWithSidebar(
headerPanel("StochastiWalk"),
sidebarPanel(
checkboxInput('showmodel',
'Show model',
value = FALSE),
checkboxInput('showforecast',
... |
47f955d4ceb91dd633d459d0ec77f66602df2234 | 94fb0b0151efcb821ce317032f24b6029605a98c | /R/models_plots.r | 9116b47c68a87e1301ff8ab86afc910a9ca0e082 | [
"MIT"
] | permissive | Seneketh/StanDDM | bf00b318ef90796abe16fd7206d5aeecd4bfaac6 | f70ad34e9f760512dc62cab0c7297737c3f87586 | refs/heads/master | 2023-07-20T07:18:50.904778 | 2023-07-16T12:55:49 | 2023-07-16T12:55:49 | 188,408,350 | 38 | 3 | null | null | null | null | UTF-8 | R | false | false | 6,654 | r | models_plots.r | #' Data Simulation Plots
#'
#' Plots simulated and experimental data. The created plots are: Reaction times densities for
#' correct and incorrect responses and the proportion of correct answeres for each one of
#' six reaction time bins. A folder with the model name is created and the plots saved
#' automatically ... |
1b578218f5ba5174858f2967312e901366ee6a5a | 32c9487479a074f78b2e69ea400112373613fd7f | /man/create_Lines.Rd | 1a82fda25c2e4cd4a19df49f6550acb2c6dee4a7 | [] | no_license | ccamlr/CCAMLRGIS | 0be131efab80a140e4974db299b4562b136e181b | 96e25f5261cfdeac716d33fcd29bed8dc894d81c | refs/heads/master | 2023-08-31T04:24:56.468626 | 2023-08-29T00:34:22 | 2023-08-29T00:34:22 | 211,758,459 | 8 | 2 | null | 2023-08-29T00:34:24 | 2019-09-30T02:21:14 | R | UTF-8 | R | false | true | 2,478 | rd | create_Lines.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create.R
\name{create_Lines}
\alias{create_Lines}
\title{Create Lines}
\usage{
create_Lines(
Input,
NamesIn = NULL,
Buffer = 0,
Densify = FALSE,
Clip = FALSE,
SeparateBuf = TRUE
)
}
\arguments{
\item{Input}{input dataframe.
If \c... |
89f332c16b707179bf03b5ac1ac469c4ec71c09b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/glmgraph/examples/coef.glmgraph.Rd.R | 3985b0d4a4e6ee8d2e7ffd43f3231de810abdb13 | [] | 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 | 797 | r | coef.glmgraph.Rd.R | library(glmgraph)
### Name: coef.glmgraph
### Title: Retrieve coefficients from a fitted "glmgraph" object.
### Aliases: coef.glmgraph
### Keywords: models regression
### ** Examples
set.seed(1234)
library(glmgraph)
n <- 100
p1 <- 10
p2 <- 90
p <- p1+p2
X <- matrix(rnorm(n*p), n,p)
magnitude <- 1
## constr... |
17f155b0e789f2d3c39157e032fe93d9f4e89faf | 4c3ff90922b2fa72e82e7ab9a3ba8e7c8ad51113 | /code/rnaseq_code/is_elements_assemblies.R | 975186549c304b0131836e16f63ff3e278c50751 | [
"MIT"
] | permissive | felixgrunberger/pyrococcus_reannotation | cdb6390aa160c879599ddcc92986ed8491ae3af2 | d3fb45473bb0c92a2edf99ab770ac8f32e69e55c | refs/heads/master | 2020-04-29T18:04:05.504125 | 2019-10-22T08:18:24 | 2019-10-22T08:18:24 | 176,313,200 | 0 | 0 | MIT | 2019-10-22T08:18:02 | 2019-03-18T15:16:47 | R | UTF-8 | R | false | false | 3,480 | r | is_elements_assemblies.R | # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
# Number of iselements in pyrococcus assemblies
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #
# load libraries
# >>>>>>>>>>>>>>>>>>>>>>>... |
871d2fd26449eb22a3db5d3fdb654f3048038b39 | ed3509c1c488234d378f008ed7e76b2325e3ac3f | /scripts/unsc_2020_script.R | 136e08bed2a33f0c7b9a80dbe9f49fdc18cc7a70 | [] | no_license | antonio-henrique-pires/unsc_2020 | 0a19b415c56b7dfdad3166274c66107aeb049680 | 2bcad093b1d692ae34257c52c39161e7807aab28 | refs/heads/main | 2023-06-18T20:49:41.459444 | 2021-07-03T03:12:46 | 2021-07-03T03:12:46 | 375,398,527 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,795 | r | unsc_2020_script.R | ### unsc extract - live meetings
library(tidyverse)
library(magick)
library(tesseract)
library(lubridate)
library(quanteda)
library(stringi)
eng <- tesseract(language = "eng", options = list(tessedit_pageseg_mode = 1))
readpdf <- image_read_pdf("speeches_pdf/S_PV.8724_E.pdf")
txt <- ocr(readpdf, engine = eng)
readpdf2... |
3e60d722b4a396facfd9216ad2606fb0809c3a22 | 42289239f68be6a947a917bb88cd77443cc4e762 | /functions/plot.min.elec.ambTemp.R | 129cd4a5252bdf090e85c3d44676c31d59354fbc | [] | no_license | Ness2/ecogenie | 7802e8f8b2227ea5ccffbe56b25a1aefdf6c031d | 004bf5d61294e82d0d8c8d3bd590f26e5ff3dadf | refs/heads/master | 2021-04-06T08:21:09.876443 | 2018-05-01T13:56:50 | 2018-05-01T13:56:50 | 125,255,976 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,829 | r | plot.min.elec.ambTemp.R | #####################################################################################
#
# ecogenie: plot by minute, electricity and ambient temperature versus time
#
#####################################################################################
# EcoGenie Plot
plot.min.elec.ambTemp <- function(yearStart = ... |
93fd68b2543b5b475d98faea2f560b1f041202dc | bcf7553b47d6d1c444d7310fab129a5ddd13c818 | /zindi.R | b26d55043844b1e8066d4b1207e9fcb540ce5f2a | [] | no_license | mousaa32/zindi_competition | f6c1a8bc0e9a1704f5e39ffc46b53a53038f4143 | 721a0d309c3904123cc11cc7dcabb55c53f7ed7b | refs/heads/master | 2020-12-20T17:15:45.789013 | 2020-01-25T09:48:58 | 2020-01-25T09:48:58 | 236,151,505 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 749 | r | zindi.R | train=read.csv(file.choose(),header = TRUE,sep = ",",quote="\"")
train
train1=train[,-3]
train1
summary(Time.from.Pickup.to.Arrival)
attach(train1)
#nombre de temperature et precipitation qu'on a pas renseigne
sum(is.na(Temperature))
sum(is.na(Precipitation.in.millimeters))
#pour echanger les NA par la moyenne
library... |
feb14f3db93dc4073595a70f299b9e7dce48d0f1 | 970095a9f7a3c2c2d683b63fd6708e35b9be99b3 | /man/is_ggthemr.Rd | 3ec9db8ee0ada0b4a0424bc9c5ae4ca31cd62719 | [] | no_license | fxcebx/ggthemr | dbdca484f213d9c4a7798d9950611344420cb751 | 8f9ec298c3d890942e77b38d7fd090e41d55002a | refs/heads/master | 2021-01-22T14:55:51.447304 | 2014-09-13T10:53:18 | 2014-09-13T10:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 333 | rd | is_ggthemr.Rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{is_ggthemr}
\alias{is_ggthemr}
\title{Is a ggthemr object}
\usage{
is_ggthemr(x)
}
\arguments{
\item{x}{object to test.}
}
\description{
Test an object to determine if it is of class ggthemr.
}
\examples{
themr <- ggthemr('sea')
is_ggthemr(themr)
}
\author{
Cia... |
65806049b150e3e00f65d005947102783725451e | 9191588c3b7796015ee122631d4abf34b6f95c57 | /r_code/hapmap_asw_results.R | d44252ef3594e0cad730630ca798542fec577f8b | [] | no_license | mchughc/hapmap_analysis | 7b3f72e73d856c78da9097a1e1e4bcd460fe3d8c | e3b22e36e025b62032a02db16177c5605a9b59d0 | refs/heads/master | 2021-01-25T12:01:44.956468 | 2015-11-16T22:23:29 | 2015-11-16T22:23:29 | 15,750,864 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,487 | r | hapmap_asw_results.R | # hapmap ASW ancestry results
## load in all data
asw <- get(load("hapmap_aswOnly_estimates.RData"))
dim(asw) # 87 76
# check proportion native american --
png("../ancestry_differences/plots/asw_chrall_chrX_hgdp.png")
plot(asw[,"chrAll.hgdp"],asw[,"chrX.hgdp"],xlab="All Autosomal SNPs",ylab="X Chromosome",
type... |
6cd7fe4f832d751efc37c1e60b730fff711f9878 | cc2bd8bb7a92aad4b7b4186c58a3ce0a00aa9f97 | /R/run-code.R | 8a3c538ea1f1055ec2fd4a0f32b6461e05bc407e | [
"MIT"
] | permissive | d-edison/RSOQuestions | 419bb486bd9579a49513e0a8e5db60939df18c8f | 32d1e72d8e99d2c80d2f00101025f49abaf2d791 | refs/heads/master | 2020-05-07T15:19:35.266164 | 2019-04-10T17:47:04 | 2019-04-10T17:47:04 | 180,631,894 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 598 | r | run-code.R | #' Run A Question's Code
#'
#' This function takes all formatted code blocks and attempts to run them in the
#' global environment.
#'
#' @param q An object of class \code{SOQuestion}
#'
#' @return results and errors, invisibly
#' @export
#'
#' @examples
#' q <- get_question(54028838)
#' run_code(q)
run_code <- functio... |
e23f4f97243f8d1df4c2dc147b1f16787f738081 | 66ad2ca9bc3b25ac120c00346eb4f0ff391ad7e9 | /workflow/scripts/report_maker.r | 1a6989606cc07eb1635290875c542f156d19e621 | [] | no_license | functional-dark-side/agnostos-wf | 258681b3794c3f44cdc0f72e99dd9dba15c1c857 | 96ead910150ec1f3d2ffa1ac1e23d0e18e41ee09 | refs/heads/master | 2023-08-19T10:36:36.914637 | 2023-06-27T09:13:19 | 2023-06-27T09:13:19 | 251,011,742 | 41 | 16 | null | 2022-06-16T11:09:05 | 2020-03-29T11:04:00 | R | UTF-8 | R | false | false | 1,774 | r | report_maker.r | #!/usr/bin/env Rscript
library(tidyverse)
library(knitr)
library(rmarkdown)
library(optparse)
# Script command line options ---------------------------------------------
option_list <- list(
make_option(c("-b", "--basedir"), type="character", default=NULL,
help="Main workflow folder path", metavar="ch... |
333b536edb03d13ea312bffc935c3b36c8b67980 | fab27c3ae407b98c6f0d4a5bb5640232ddc8322f | /PS5/cTree.R | 173599afdf590d66d591a056d45806cdfdf6bd3a | [] | no_license | denipanova/adcomp | 7af9049a62d72fef97f7e732d942760e5933afea | e4246815b8be5eb219846fb2f088dd7a91b9a48e | refs/heads/master | 2021-01-10T11:58:04.475738 | 2016-03-08T23:25:50 | 2016-03-08T23:25:50 | 49,706,592 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,361 | r | cTree.R |
#Define Treshold function for multiple classes and multiple
# variables
findThreshold <- function(boundary,X_data,Y_data,depth, minPoints, costFnc) {
indices<-rep(TRUE,nrow(X_data))
varNames<-colnames(X_data)
for (var in varNames){
ind<-(X_data[,var]>=boundary[1,var] & X_data[,var]<... |
f7aa3168fd1519b7c8073dbfe6367a710203aee3 | cba90745ccc82ec6528b8887faa3c2cbcd51d169 | /npl-20180815/npl.R | 2a36cfaa9ab272ecf8b3fca2ba3f67294820914d | [] | no_license | sifat2207/finhacks2018 | 4885e8793ed362afa8d2564072fd825ec4a39c24 | ee2c800d1e5bfe7568920ef06cbaef552291afcd | refs/heads/master | 2020-04-24T08:07:48.266908 | 2018-09-22T16:25:56 | 2018-09-22T16:25:56 | 171,820,957 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,149 | r | npl.R | #library-----
library(dplyr)
library(pROC)
library(caret)
library(xgboost)
library(smbinning)
library(e1071)
# data------
data_train=read.csv("npl_train.csv")%>%
select(-X)
data_test=read.csv("npl_test.csv")%>%
select(-X)
#data preparation
#cek missing data
summary(data_train)
summary(data_test)
#tida... |
50eda883558111a4314517dd0410b76467e389e9 | 65b1646d9f20dda9f11409eb83415f4c186294a0 | /man/owtemps.Rd | 602ac64c8efc60864676d8a32ad79459dec7c08b | [] | no_license | paulnorthrop/chandwich | a1ac1a7504ee4e291834ac47b9548b04e1e93af5 | 3a58e1fc2347db976434ae61385b404be44495b4 | refs/heads/master | 2023-04-07T00:54:04.576945 | 2022-04-02T01:21:27 | 2022-04-02T01:21:27 | 105,452,669 | 4 | 2 | null | 2023-04-04T19:28:18 | 2017-10-01T15:38:38 | R | UTF-8 | R | false | true | 762 | rd | owtemps.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chandwich.R
\docType{data}
\name{owtemps}
\alias{owtemps}
\title{Oxford and Worthing annual maximum temperatures}
\format{
A dataframe with 80 rows and 2 columns, named Oxford and Worthing.
}
\source{
Tabony, R. C. (1983) Extreme value analys... |
01621556adf2519f17f15b20100d7e0d20473d91 | 9de3b2b8b28f89cfb13723b6be99f157fc13a313 | /2_Functions/2_Analysis/Function_process_covariates_include_longmatch.R | ffea53be35d49af17a46cc1e7bcc24b6ffe560af | [] | no_license | WWF-ConsEvidence/MPAMystery | 0e730dd4d0e39e6c44b36d5f9244a0bfa0ba319b | 6201c07950206a4eb92531ff5ebb9a30c4ec2de9 | refs/heads/master | 2023-06-22T04:39:12.209784 | 2021-07-20T17:53:51 | 2021-07-20T19:34:34 | 84,862,221 | 8 | 1 | null | 2019-07-24T08:21:16 | 2017-03-13T18:43:30 | R | UTF-8 | R | false | false | 6,685 | r | Function_process_covariates_include_longmatch.R | #---- Preprocess matching covariates function ----
# author: Louise Glew, louise.glew@gmail.com
# modified: --
process_covariates <-
function(HH.data, DE.data,t0.t2.pairs, t0.t4.pairs) {
#---- Import look up tables ----
ethnic.lkp<- read.delim("x_Flat_data_files/1_Social/Inputs/BHS/eth_output_kc_2017_121... |
ef1669f86ee112e7d21ad32168376438f5d478ad | 94aed35f1f7cca636419b88a53799f34e5c5dfee | /man/makeSingleCellExperiment.Rd | 7e9f1d3a118485e5c1d92cc15b0f4e4085cf6dca | [
"MIT"
] | permissive | trichelab/basejump | a4a3b9e58016449faeb9b3d77cf1c09d4eafe4c7 | 6724b10dbf42dd075c7db5854a13d9509fe9fb72 | refs/heads/master | 2020-12-12T11:54:17.660956 | 2020-01-08T13:24:07 | 2020-01-08T13:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,340 | rd | makeSingleCellExperiment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R,
% R/makeSingleCellExperiment-methods.R
\name{makeSingleCellExperiment}
\alias{makeSingleCellExperiment}
\alias{makeSingleCellExperiment,SimpleList-method}
\alias{makeSingleCellExperiment,list-method}
\title{Make a SingleCellE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.