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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aedbc65ff55d7b428d5a6dad2abd1195419eda90 | 9f7baaad4b6028ab5ed2fd20d8d1ca18045ffff0 | /man/Decumulate.Rd | e9b32beff1b481881e42bec69782d4998293f822 | [] | no_license | ArnaudBu/ReservingLad | d294adde36af6d498d02be023ed46a87715c4ff2 | 59e9854d90825e2acf0e7770e7e3ca9ce19c6519 | refs/heads/master | 2021-09-26T08:54:56.473788 | 2021-09-19T15:19:04 | 2021-09-19T15:19:04 | 102,781,474 | 4 | 1 | null | null | null | null | UTF-8 | R | false | true | 421 | rd | Decumulate.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Decumulate.R
\name{Decumulate}
\alias{Decumulate}
\title{Decumulates a triangle}
\usage{
Decumulate(triangle)
}
\arguments{
\item{triangle}{Cumulated triangle as a matrix}
}
\value{
The decumulated triangle as a matrix
}
\description{
\code{D... |
758e3300105bc8efa5b6f638731e7c28ec80925b | 109734b597c2d760725a1a050174a5d11b3c1a9b | /man/clickbox.Rd | 9f24f0fea23aaa2865903ba2bc84645000470746 | [] | no_license | rubak/spatstat | c293e16b17cfeba3e1a24cd971b313c47ad89906 | 93e54a8fd8276c9a17123466638c271a8690d12c | refs/heads/master | 2020-12-07T00:54:32.178710 | 2020-11-06T22:51:20 | 2020-11-06T22:51:20 | 44,497,738 | 2 | 0 | null | 2020-11-06T22:51:21 | 2015-10-18T21:40:26 | R | UTF-8 | R | false | false | 1,329 | rd | clickbox.Rd | \name{clickbox}
\alias{clickbox}
\title{Interactively Define a Rectangle}
\description{
Allows the user to specify a rectangle by
point-and-click in the display.
}
\usage{
clickbox(add=TRUE, \dots)
}
\arguments{
\item{add}{
Logical value indicating whether to create a new plot
(\code{add=FALSE}) or draw... |
fa9bb6a3ab0af4cd4a6f466d930b0fbc5c023b00 | 1357fa0b4f0fbf49d09eb7a0b772c5742640701e | /myrpkg/tests/testthat/test__init.R | 6bb21d3b1928888caf7182c4909a9edcc08ba7bc | [] | no_license | wenweiP4/rpkg_test | 321478588bf3e0b15acf80247a825be95883d994 | 73608d82b738a41c327423bebdf322fde96266a1 | refs/heads/master | 2023-03-18T23:46:52.634464 | 2021-03-02T19:27:07 | 2021-03-02T19:27:07 | 283,297,978 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 351 | r | test__init.R | context("Test initialization")
# # Only set the option with the 'name' if not set
try_set_option = function(name, func, overwrite = FALSE) {
if(is.null(options(name)) || overwrite){
cat(glue::glue("\nSet the option '{name}'\n"))
args = as.list(setNames(func(), name))
do.call(options, args)
}
}
try_set... |
f8d66d98bafc59a4ed6c18fa654e76670d855985 | ff33fdc95e43f00f3bfeab883a3e3dc6d4e9f50d | /vacation/R/Basic R Programing/ch04/ex2.R | a999ad9541a221b651b80e582ae66bc10e71369b | [
"Apache-2.0"
] | permissive | define16/Class | e2da95b744e2be8fc40342d127f0f401787b9a6f | 8b0771a348b2bcb19ba338ebff94326828a293ea | refs/heads/master | 2021-06-27T20:08:05.578408 | 2019-09-08T15:49:57 | 2019-09-08T15:49:57 | 148,975,197 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 267 | r | ex2.R | kor <- c(80, 60, 90, 70)
eng <- c(70, 50, 100, 80)
math <- c(95, 70, 95)
totStu <- kor + eng + math
cat("totStu : "); print(totStu)
res <- kor / math # 벡터의 길이가 다르면 짧은 길이를 갖는 벡터가 앞부터 반복된다.
cat("res : "); print(res)
|
6183cab91e45cf07a60ca788927c690b6cde2115 | b435d2302878789d64d3448f8d6535888770f659 | /mwHashtags.R | 21daa07cf942873d97e26811da1c28763d7f5366 | [] | no_license | PeerChristensen/PossessivePronounsTwitter | 28e9c30e7a12e7163e14ff94cfeafd88e825177a | b6fe471bd7cad333c039378bc710f4d96f0459bf | refs/heads/master | 2020-04-11T17:03:29.662218 | 2019-01-02T20:29:23 | 2019-01-02T20:29:23 | 161,946,470 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,344 | r | mwHashtags.R | #Hashtags
library(tidyverse)
library(tidytext)
library(udpipe)
library(wordcloud)
df <- read_csv("mwTweets.csv") %>%
select(X1,screen_name,text) %>%
mutate(text = tolower(text))
remove_reg <- "&|<|>"
df <- df %>%
filter(!str_detect(text, "^RT")) %>%
mutate(text = str_remove_all(text, remove_reg... |
2387d4af807fb976b85d45988fd2e7b6c37dbc58 | 62eb9ded6a2704d077b62fd7e3b7378044d22c13 | /MySQL_create_tables_scripts/CREATE_patient_pkt.ANTHROPOMETRICS_CDC_NHANES_WHO.R | b796d783b6b45fe04c3b5dae3cfbcaa524146711 | [] | no_license | borumlab/db_mngr | 56acda296d814a0e0e38c9fc8130d35bb52615d0 | fea7332ff17d8b7e6b05396f27c2b74dcd206290 | refs/heads/master | 2020-05-21T13:55:30.542595 | 2017-03-14T20:34:49 | 2017-03-14T20:34:49 | 47,643,621 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,150 | r | CREATE_patient_pkt.ANTHROPOMETRICS_CDC_NHANES_WHO.R | #Script to upload Anthropometrics references to MySQL
#Step 1: set directory to filepath where the most up to date references are stored
setwd('G:/Grad Notebooks_E/e6/growth')
#Step 2: upload CDC reference file
CDC <- read.csv('ANTHROPOMETRICS_CDC_REFERENCES_SOURCE_08012016.txt', header=TRUE, sep="\t", na.strings=c("... |
9247cb91b21ff035ebde9870faba70f44e33af17 | 6221d64a98fa5d0bb559878254a387984a03ac37 | /RF_newyork.R | 08396bd807c76d0ea2c2647e29843ab5aebec4cc | [] | no_license | deepstuff/census_linkage_1900_1910 | 5d21fb1f5735f22bd66bec32cc7dd00069a3b9e0 | 9cba96f285f291c2f8c27441e4616afb72a900dc | refs/heads/master | 2021-01-19T03:52:19.629713 | 2017-04-17T14:54:17 | 2017-04-17T14:54:17 | 87,340,211 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,151 | r | RF_newyork.R | library(randomForest)
library(dplyr)
library(mltools)
dir <- "R:/JoePriceResearch/record_linking/projects/deep_learning/training_sets"
setwd(dir)
df <- read.csv("ny_numeric.csv")
df <- df[complete.cases(df),]
#now lets mix up the test and training sets
rfSample <- function(ratio, trees, threshold = .5) {
N... |
cb3626162755dac27fcaa14b6197dfeb3b895f4d | 4617424ce62a896f3b1245a17d5f8f891b796b81 | /man/text_sentiment.Rd | a7b8504facc830f9a531bbc128d2bfd39f1daab5 | [] | no_license | cspenn/cognizer | f43f12a263339aaf8c5870e1a7bd3796810aa2dc | 39c598da051956a0218ab6b76a452ef743515b6d | refs/heads/master | 2020-04-09T03:56:17.063645 | 2018-12-02T01:37:08 | 2018-12-02T01:37:08 | 160,003,499 | 0 | 0 | null | 2018-12-02T01:34:40 | 2018-12-02T01:34:40 | null | UTF-8 | R | false | true | 5,146 | rd | text_sentiment.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/text_cognizers.R
\name{text_sentiment}
\alias{text_concept}
\alias{text_emotion}
\alias{text_entity}
\alias{text_keywords}
\alias{text_language}
\alias{text_relations}
\alias{text_sentiment}
\alias{text_taxonomy}
\title{Process text with IBM ... |
aff54754fef48a785f17eb2fb4e289e0ceb83c56 | 5805523d88d318da0eb9483a43191d84b0439255 | /predict.R | 3ef8cc145a43177350fef594361e61da0e11db0e | [] | no_license | nattsp/ShinyTextPrediction | 99479bb6d93a9c4944be4a772b135d6138158351 | 79716c70ad88663c4b88e71c518deb367476c6fd | refs/heads/master | 2021-08-23T01:37:45.413988 | 2017-12-02T06:26:32 | 2017-12-02T06:26:32 | 111,287,331 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,668 | r | predict.R | ## Predict
#library(tm)
#library(readr)
library(quanteda)
library(tidytext)
library(stringr)
#library(dplyr)
library(data.table)
## Predict
tokensFun <- function(xt){
txtCorp <- corpus(xt)
txtTok <- tokens(txtCorp
#, tolower = TRUE
, remove_numbers = TRUE
... |
4196c333fcb5d018d0744e2c2468c2c73675ee9e | f9d4c59898b827e6548cd108c4ca2190fabadb8e | /man/as.list.tracks.Rd | 5883f03b89c32bf3c377ff216ebb585ee1346176 | [] | no_license | ingewortel/celltrackR | d272a6328c748cfe57a86b91f9e0b803d9d6cb4b | e8cc8b301c7026c3a5f68802fe2f0076fba83577 | refs/heads/master | 2022-07-21T07:09:07.687728 | 2022-07-18T12:44:51 | 2022-07-18T12:44:51 | 188,240,556 | 12 | 3 | null | 2021-04-12T18:47:01 | 2019-05-23T13:33:47 | R | UTF-8 | R | false | true | 623 | rd | as.list.tracks.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-structures.R
\name{as.list.tracks}
\alias{as.list.tracks}
\title{Convert from Tracks to List}
\usage{
\method{as.list}{tracks}(x, ...)
}
\arguments{
\item{x}{the \code{tracks} object to be coerced to a list.}
\item{...}{further argument... |
ecbdebf9d2c905164a59af3364100fd4de5b2d0e | 9c56ebf6d04be0f0666675e11b0856431c0bd375 | /man/patch_tag.Rd | f41d435585a55d37b6c530f881323b58e94bbad0 | [] | no_license | AndyZHGai/ggpatch | b307b1e715201258793bfd9b2469a60b70b5616b | edb488242d35978a873d0b2d498cacfcc642c8cb | refs/heads/main | 2023-08-22T04:58:53.935853 | 2021-10-31T01:07:48 | 2021-10-31T01:07:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 484 | rd | patch_tag.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/patch.R
\name{patch_tag}
\alias{patch_tag}
\title{Format the tag test of Figures, using with patchwork usually}
\usage{
patch_tag(vjust = -1)
}
\arguments{
\item{vjust}{adjust the y_position of the tags}
}
\value{
}
\description{
Format the ... |
f803f89b6737e36c8fda4010251d66a8dfa11cd8 | 8186662824b6f675f92358b1e37dbb3d0ca3636d | /src/plot_code/make_figures.r | aca6b6cca281ada1bdc579adb4d624718fb0bdaf | [
"MIT"
] | permissive | davidanthoff/paper-2017-sccprioritarianism | 812e43fa055e15e8fc49e3bea7f70839cd22db95 | a998d35b79a27d4a08661000ae47c9ccf64a80ff | refs/heads/master | 2021-01-20T01:59:40.058575 | 2017-03-23T19:06:34 | 2017-03-23T19:06:34 | 82,596,759 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,011 | r | make_figures.r | #################################################
#
# make_figures.r 16 FEB 2017
#
# Generates figures 2-5 in "Priority for the
# worse off and the Social Cost of Carbon".
#
#################################################
# Directories
scriptdir <- "."
datadir <- "../../results"
plotdir <- "../../plots"
# Librar... |
a8f3fb1afddcfa3b169876bd5697680b6b06849c | 14c80ea0be9edea6bda1114a5bcf55cec002309c | /Scripts/Matching/Helper/GenerateMatches.R | 801934211054effdbf112dd1396a2d008e6943b2 | [] | no_license | fahmidah/bridge.collapses | 3c0b7bae9a854096d2848c4e690ac746480a5ca3 | 3710a254a67575f77e96a4e447fd50eebe14c187 | refs/heads/master | 2022-02-26T17:24:53.110648 | 2019-10-28T14:35:07 | 2019-10-28T14:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,833 | r | GenerateMatches.R | # Note: relies on MatchTarget source data existing in global environment
GenerateMatches <- function(MatchEntry, # 1-row data.frame for which to find matches
MatchType, # type of match to be performed (bin, stream, road, route, gage, dam)
M... |
30066df9506afa834470ca73464d54921747a993 | 1d9d3356e820606e5dd5a465dd80428cc6388f68 | /script/mycophyloplot.R | a4c29ee85c11e380cf7aca1a08e3aa8ff7265f10 | [
"MIT"
] | permissive | hettling/phylo-primates-sim | 1506d821a54ac3acdd1c89c4f8fb3983b51ca98f | 62ddbc8ee8e9eb549989cddfe4b0c9f96c49c016 | refs/heads/master | 2021-01-10T10:43:12.398387 | 2016-04-21T13:11:16 | 2016-04-21T13:11:16 | 45,845,003 | 0 | 1 | null | 2016-04-15T11:35:12 | 2015-11-09T14:57:40 | R | UTF-8 | R | false | false | 9,860 | r | mycophyloplot.R | ## This script defines a modified version of ape's 'cophyloplot', named
## 'mycolphyloplot'. The modified function can take an additional set of taxa,
## branches and taxon names for these taxa are then colored in red.
mycophyloplot <- function (x, y, assoc = NULL, use.edge.length = FALSE, space = 0,
... |
765b06d5c4fc1bb8ffe267d5a22a072c64700e73 | 2655fcbde895737e36a1f2283e0cd51765e98168 | /Taxonomy/R/remove_attributes.R | 2c12b2a6cfb14754aec23d14c36303179a3d719b | [] | no_license | DDTD-IS/DDTD-IS | 5b7128df844289fa804bc9a3750c73898001bfb4 | eb21f343a7224793af823cd580f206d2fb48b604 | refs/heads/master | 2020-09-21T19:21:24.316497 | 2019-11-29T17:38:21 | 2019-11-29T17:38:21 | 224,897,542 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 818 | r | remove_attributes.R | #' @title Simple function that removes all attributes associated with a feature
#' @description This function simply removes any attributes from the features of a data frame (comments, class, ...)
#' @param dataset \code{data.frame}\cr
#' The dataframe of which the attributes shall be removed
#' @return \code{dataset}... |
cafaf1345f04c6afeeec9d8688c741e3aad76f59 | 10c97b033b7d93d500a4dd563234eef128dc43ab | /tests/testthat/www.fleaflicker.com/api/FetchLeagueTransactions-925711.R | ca34eef56936ad676891668984105c7b983be2de | [
"MIT"
] | permissive | tonyelhabr/ffscrapr | f38e7c87bb65ddbf6e1c9736c16e56944760af46 | 4e0944da56d8890c441c4abe9c25bc2477a1e388 | refs/heads/main | 2023-03-10T08:48:01.840281 | 2020-12-16T06:19:07 | 2020-12-16T06:19:07 | 328,791,006 | 0 | 0 | NOASSERTION | 2021-01-11T23:59:24 | 2021-01-11T21:03:44 | null | UTF-8 | R | false | false | 99,936 | r | FetchLeagueTransactions-925711.R | structure(list(
url = "https://www.fleaflicker.com/api/FetchLeagueTransactions?sport=NFL&league_id=206154&team_id=1373475&result_offset=330",
status_code = 200L, headers = structure(list(
date = "Tue, 24 Nov 2020 01:19:58 GMT",
`content-type` = "application/json;charset=utf-8", vary = "accept-encoding",
... |
733be40bee369d6aca845a39a57d175797ff49cb | 9ee9a94e65e11b67d8d5dc22e9cfcffa82ce9a59 | /分开导入.R | 67afdb4c7b9503769d01e5924ac9df9bce5af52a | [] | no_license | Jasoncbh/scRNA | b501c9ea605ef3ecbddfeb6b11976a4c1469f9d8 | 31c54616dcf3bf327cfa3246eb301b8a34a8a752 | refs/heads/main | 2023-08-15T15:41:25.376608 | 2021-10-20T02:56:28 | 2021-10-20T02:56:28 | 419,165,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 30,418 | r | 分开导入.R | rm(list = ls())
library(monocle3)
library(tidyverse)
library(imputeTS)
library(Seurat)
library(RColorBrewer)
library(Matrix)
library(cowplot)
library(future)
require(scales)
library(ggthemes)
library(sctransform)
library(patchwork)
library(harmony)
values <- c(brewer.pal(9,"Set1"),
brewer.pal... |
4e6b73c0a8b1b9799d92d63c03cb159f8703491a | 8983a1817e77cc0162f5f1b1f9130d7b33fd86e7 | /MriCloudR/man/MriCloudR-class.Rd | 429f091ab8c8ed345440d795a7969cbea71686dd | [] | no_license | kb1ooo/MriCloudR | e31c0e1dfadac18ba8eb10edb89ac60bdf65c9f4 | 23c972b5d82de34e60b78eda6be381197e51c06c | refs/heads/master | 2020-05-27T15:02:56.084480 | 2016-11-19T06:33:15 | 2016-11-19T06:33:15 | 82,562,289 | 1 | 2 | null | null | null | null | UTF-8 | R | false | true | 574 | rd | MriCloudR-class.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MriCloudR.r
\docType{class}
\name{MriCloudR-class}
\alias{MriCloudR}
\alias{MriCloudR-class}
\title{A wrapper around the AnatomyWorks MriCloud Web API}
\description{
This class makes the MriCloud API functionality available in R,
encapsulatin... |
b387eeeabef85c4a1513ca0737420ca83bbd3fe8 | ec6b73ff7f434ee5440ab62d067283c4c1ad8edd | /man/vec_default_cast.Rd | f87838c48bfbe6b3ed867933b97ebf47dfcc101d | [] | no_license | trinker/vctrs | 5d97d0d8674a29da7f6e8b0648d4d424eaf4e391 | fa323896984a37b772dbc6830a7228534bab26d9 | refs/heads/master | 2022-04-28T07:52:32.154094 | 2020-04-20T15:02:57 | 2020-04-20T15:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,231 | rd | vec_default_cast.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cast.R
\name{vec_default_cast}
\alias{vec_default_cast}
\title{Default cast method}
\usage{
vec_default_cast(x, to, x_arg = "", to_arg = "")
}
\arguments{
\item{x}{Vectors to cast.}
\item{to}{Type to cast to. If \code{NULL}, \code{x} will be... |
dccc73f482765acfa628e5df440769fd7805fb9b | daff42d6df4932403b74bf9914e6fd238b77b024 | /mlr.R | d6b6bb72fa1ef200f34a5e486d363afad81274a7 | [] | no_license | Kienka/Occupancy-Detection | 4c6b28b94fdc8ea426f585f316bc400118bb0d2a | 1b6a67aff7480e8b7d3d48fb19b9b4e04e3c0998 | refs/heads/master | 2021-01-11T17:03:04.637881 | 2016-09-28T22:39:56 | 2016-09-28T22:39:56 | 69,508,801 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 45 | r | mlr.R | #Writing R codes for handling many examples
|
e8aee9357a4934a84cfdc71abb210a8da35c4c1e | 727b8af88b6d32bb1f4087537779ea269cf9cd07 | /mcp_estimation.R | 37f8a3c2696a981c88dcee146991d564574e5107 | [] | no_license | Rene-Gutierrez/boom_project | 3b13848465484f52fcafd2ecc740ee14029c26e3 | cd6af9024ed2b504918f6baa82d5a5205f975396 | refs/heads/main | 2023-06-18T04:28:11.370121 | 2021-07-17T17:16:18 | 2021-07-17T17:16:18 | 360,395,925 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,074 | r | mcp_estimation.R | mcp_estimation <- function(y, G, A){
# Problem Dimensions
n <- dim(G)[1] # Number of Observations
V <- dim(G)[2] # Voxel Size
P <- dim(G)[3] # Number of ROI's
# Auxiliary Variables
GX <- G
dim(GX) <- c(n, V * P)
AX <- A
dim(AX) <- c(n, P * P)
A... |
3d322bd00b9ca9fa580727bfb344bc6d2baa06eb | a7f3f05fa37b0c8e1362ae2d8027acd0e3794422 | /scrapeData.R | 64178d577a1cafd1b94ab889616377c96ae7f048 | [] | no_license | averyrobinson98/ST-series-Text-Mining | 2e57f1f631bc3e813a50cbe0ae40e5f0b16283e2 | 6e068bbf827663b9c0b274e4dbe2044f72cba496 | refs/heads/main | 2023-07-04T11:12:46.417128 | 2021-08-11T14:48:44 | 2021-08-11T14:48:44 | 302,234,821 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,387 | r | scrapeData.R | # Load libraries
library(dplyr)
library(rvest)
library(xml2)
library(stringr)
# get urls for all episode scripts
mainurl <- "https://transcripts.fandom.com/wiki/Stranger_Things"
epNames <- read_html(mainurl) %>% html_nodes("#mw-content-text a") %>% as.character()
epNames<-str_extract(epNames,".*(?=(title))") %>% str... |
8c1bc085441ff6a5bf8751837d2a38640bc3915d | ed4ce12c2b3290f19d1d6e4cfeb219ec0562c172 | /plot2.R | f6c4d75ef4fcd0bc29edaf911d7c663d1b929fcb | [] | no_license | burgstbt/ExData_Plotting1 | ad1c305f8833788a11a7a17ae1eb811eb4b26699 | f936f92685ce5b4172e07c30aaa1cdb64839940e | refs/heads/master | 2021-01-11T15:01:26.854558 | 2017-01-29T13:22:36 | 2017-01-29T13:22:36 | 80,281,521 | 0 | 0 | null | 2017-01-28T11:47:52 | 2017-01-28T11:47:52 | null | UTF-8 | R | false | false | 714 | r | plot2.R | # Read from Unzipped file only relevant lines
df <- read.table("household_power_consumption.txt", header = FALSE, sep = ";", dec = ".", skip = 66637, nrows = 2880)
# Read and assign headers
header <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", dec = ".", nrows = 1)
names(df) <- names(header... |
978ed16c8cfbd79ffe9a6691279e398b6fdaa02d | 39d05ea98a2700794e5af537a016fadfce2f804d | /R/process_flu_city_log.R | 1e568d796c131b94fdfbb7cd79f6f2a553c6440e | [] | no_license | lwillem/IBMcourseTutorials | 269cbb6ddea0a34b0d3a3ec1d73c690677e0e50a | 18df35832de40311e686786b6619944d4045d384 | refs/heads/master | 2020-03-07T03:58:37.306004 | 2018-10-02T18:02:17 | 2018-10-02T18:02:17 | 127,252,783 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,614 | r | process_flu_city_log.R | ############################################################################
#
# This file is part of the course material for "Individual-based Modelling
# in Epidemiology" by Wim Delva and Lander Willem.
#
############################################################################
process_flu_city_log <- function(si... |
0aa1a03f1c869319dffac3d8bbef0cb7874583a5 | 399b71de13e2ef9015671ba83768a7542d8875ad | /R-tools/mergecuffdiff_denovo.R | 4456494dcf047bec9a0167c6517174198b44268a | [] | no_license | JonBarenboim/mugqic_tools | b73b4883c86cc3e47f7f0cb3bea5f06a571bb889 | 20801d48cf10f239799f0009e031a8b20f8bbe6a | refs/heads/master | 2021-01-20T04:43:31.660119 | 2017-04-28T16:26:40 | 2017-04-28T16:26:40 | 89,723,729 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,008 | r | mergecuffdiff_denovo.R | # Merges sample fpkm with cuffdiff denovo output file
# Maxime Caron - Jan 2012
# Arguments; output dir and design file
args <- commandArgs(trailingOnly = TRUE)
output_dir<-args[1]
input_dir<-args[2]
designFile<-args[3]
designs<-read.table(designFile, header=F, sep="\t", check.names=F)
# Iterate for each design
for... |
ddd22fc9e7834f897bf8332260975357255e9eb2 | a43a5f942ebf81cbc2bda2b8b5413efdedb03ed8 | /man/cfbd_metrics_ppa_teams.Rd | 3fdd54648caaf1073508a34333ae14ffc85e448a | [
"MIT"
] | permissive | Engy-22/cfbfastR | 7d6775943c8124c532c36728dec5cc7aee9ad4f5 | 92ebfdd0fb4a70bcb9f3cc2d11f3a61d863d9743 | refs/heads/master | 2023-08-30T11:08:09.332930 | 2021-10-26T17:34:33 | 2021-10-26T17:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,010 | rd | cfbd_metrics_ppa_teams.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cfbd_metrics.R
\name{cfbd_metrics_ppa_teams}
\alias{cfbd_metrics_ppa_teams}
\title{\strong{Get team averages for predicted points added (PPA)}}
\usage{
cfbd_metrics_ppa_teams(
year = NULL,
team = NULL,
conference = NULL,
excl_garbage_... |
c1e2880f4b7203ad363d4765c3351c553cfd0fa7 | 52826e06350b265406f831756043d6c1afba6b63 | /Computación en Estadística y Optimización/Práctica Final/Ejercicio1.R | 02d771ed8026c3e07eccacf9871c6142a9d4bf52 | [] | no_license | MGijon/Learning-R | eea7b0ed377a5b2398c3c0acfe41061ba51e0539 | 9fb8778ba895a4d8003d5af7ee0743f95e932b01 | refs/heads/master | 2021-05-05T04:03:20.651493 | 2018-12-27T18:25:16 | 2018-12-27T18:25:16 | 105,207,704 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 322 | r | Ejercicio1.R | ## ============ ##
## EJERCICIO 1: ##
## ============ ##
# (a)
# ---
install.packages('RODBC')
library(RODBC)
# (b)
# ---
# (c)
# ---
# (d)
# ---
# (e)
# ---
# (f)
# ---
# (g)
# ---
# (h)
# ---
# (i)
# ---
# (j)
# ---
# (k)
# ---
# (l)
# ---
# (m)
# ---
# (n)
# --... |
517d263cd7528c9b3378701b7986232e19662b64 | 6901d5e6f6b9775e305602394acb2ab1ab531a93 | /Data-Mining/DM Assignment5/Q14.R | 88a9cf2ca179a52614f2dc8d02940646e2f808a6 | [] | no_license | viswa9688/DataScience_2019501065 | 1f23f7ebde9407dc6c40d0f970f7094574efb5a4 | e29e4f509c87db02e7cb037d48d0590b9075627c | refs/heads/master | 2023-04-10T13:42:19.283471 | 2021-04-28T10:26:56 | 2021-04-28T10:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 484 | r | Q14.R |
setwd("C:\\Users\\HARIKA\\Desktop\\DataScience_2019501065\\Data-Mining\\DM Assignment5")
exams <- read.csv("spring2008exams.csv")
str(exams)
q1 = quantile(exams$Midterm.2, .25, na.rm = TRUE)
q3 = quantile(exams$Midterm.2, .75, na.rm = TRUE)
iqr <- q3 - q1
iqr
exams[(exams$Midterm.2 > q3 + 1.5 * iqr), 3]
exams[(exams$... |
c0edaf4cb2745f36023603efeee1922cb0ffc816 | b6a8376f95fc89d100bb971800f37897d6ae084a | /Lending Club Prediction/LendingClubLoan.R | 667cd98354c591f9bc16f65cbaf56d958e015dbd | [] | no_license | Bekterra/My_ML_Projects | 393daa032815f982fec6663e1fff9cf19b231b1d | 2632b200c9607ff537f2d2d22351f21c76c5852f | refs/heads/master | 2020-04-02T15:22:44.290500 | 2018-10-24T20:35:00 | 2018-10-24T20:35:00 | 154,565,494 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,344 | r | LendingClubLoan.R | # Import file
loan <- read.csv("LoanStats.csv")
# Set missing data to NA
is.na(loan) <- loan == ""
# Create date variables that R recognizes as dates
loan$issue_d <- as.Date(paste('15', loan$issue_d), format='%d %b-%y')
loan$earliest_cr_line <- as.Date(paste('15', loan$earliest_cr_line), format='%d %b-%y')
# Identif... |
0f4a19a5461ab6f0c859f061f5db93a27a9d5709 | 0eb22bf570e6a3f079b4e561568627c4f1fa815b | /man/inverse.Rd | d34fb2e5c6e86db531801a299c94a83ce0451bdd | [
"MIT"
] | permissive | lfpdroubi/appraiseR | 7e6795d3287dfeb8bcc50e38d33ae6c7bafdf5ca | 8ed726beb34c7e16005abda21582ebb5e46c5169 | refs/heads/master | 2022-05-26T20:43:45.722451 | 2022-03-19T16:00:20 | 2022-03-19T16:00:20 | 211,920,843 | 3 | 1 | NOASSERTION | 2020-10-15T11:49:17 | 2019-09-30T17:54:13 | R | UTF-8 | R | false | true | 811 | rd | inverse.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{inverse}
\alias{inverse}
\title{Returns a vector generated with the inverse of the function f}
\usage{
inverse(x, func)
}
\arguments{
\item{x}{A vector or object of type}
\item{func}{a function of the box-cox family (rsqr(), ... |
4d7f429a1fda59c99726332a69cffbccbcf19599 | d5e6a60ae67f953cc7ec2f02acfb08c9fa56f3c3 | /ggplotGraphics.R | 4184799a0f295404b079ab444bf59d922a2b8e51 | [] | no_license | anyasteinhart9898/BIOL-381 | 0e3643621eb451263f4c454779496db76e854583 | 56db1b0e14f0bafd5344111ed45727f2022e84b2 | refs/heads/master | 2021-05-11T19:31:39.397246 | 2018-05-02T18:00:26 | 2018-05-02T18:00:26 | 117,877,935 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,001 | r | ggplotGraphics.R | #Hadly Wickham, ggplot. And Winston Chang- R Graphics cookbook
#ggplot graphics
# 5 april 2018
# NJG
#preliminaries
library(ggplot2)
install.packages("ggthemes")
library(ggthemes)
library(patchwork)
library(TeachingDemos)
char2seed("10th Avenue Freeze-Out")
d<-mpg
str(d)
# qplots for use while coding
#Basic Histog... |
c92b86ec65d32f3b90ec7c1c7824d572ca392914 | 6a9472f0d627bb859ae0b424f61ddce0f0c06a29 | /problemSet2.R | 6430bf7ca18e8e1d0b93376c694486af8c92bb11 | [] | no_license | viren-velacheri/Statistics-Programs | 944ae53c4e4f979b4fa9e9831db5c92bc78038f2 | ccaaf3deea8741b4d71ca3121fd1aa013698bd1c | refs/heads/master | 2020-04-11T20:00:23.728836 | 2018-12-17T01:21:52 | 2018-12-17T01:21:52 | 162,056,171 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,569 | r | problemSet2.R | mlb <- read.csv(file.choose(), header = TRUE)
attach(mlb)
winpct_HR <- lm(WinPct ~ HR)
summary(winpct_HR)
winpct_Doubles <- lm(WinPct ~ Doubles)
summary(winpct_Doubles)
winpct_hitsallowed <- lm(WinPct ~ HitsAllowed)
summary(winpct_hitsallowed)
winpct_strikeouts <- lm(WinPct ~ StrikeOuts)
summary(winpct_strikeouts)
winp... |
18fd09bf5c2faf7b67c7aaca01874cab8899228e | 3ddebe6b6a2db6a06a4458064de681e7c8ffb329 | /randomOrchard.R | 5b07ec1df46d696279ec8afb90eb7f6eb81f4653 | [] | no_license | pnandak/wagesOfSin | 7529a44983927d12d548c42cc615fbe48735d9a7 | 47792e3b6560d05f79b941c73b9ca3d2bbbdff36 | refs/heads/master | 2021-01-16T22:08:59.780683 | 2013-03-26T09:35:56 | 2013-03-26T09:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,432 | r | randomOrchard.R | #################################
# randomOrchard.R
# written by Jet Goodson
# started on 15 March 2013
# contact at jetgoodson@gmail.com
#
# handling of random forest alg on data
##################################
#set up and run random forest
randomOrchard <- function(trainFrame, samplingSize = 1000, folds = 2, rep... |
767ebdf62138d7d07f1c4deff9a704c5e19fae64 | a4879863092102da8bf7185513f9a2d6e07eb336 | /man/darfur.Rd | 15bc054524d5a291c87c8f150f7cc06696247ced | [] | no_license | cran/sensemakr | 47be071b9994d898863d05752280e077ebd6f12a | fd10a6ce3bcc691547c07071f057d12da75640f5 | refs/heads/master | 2021-10-27T22:56:34.746995 | 2021-10-08T04:00:02 | 2021-10-08T04:00:02 | 200,671,548 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 3,116 | rd | darfur.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{darfur}
\alias{darfur}
\title{Data from survey of Darfurian refugees in eastern Chad.}
\format{
A data frame with 1276 rows and 14 columns.
\describe{
\item{wouldvote}{If elections were held in Darfur in the futu... |
330239223affc48bb92108be554aa3b5b8a34d9a | 74cd0f24030fbdf3c9db290be481560f91b9d62d | /plot1.R | 4d7d36f541d625dab62f47e8c79f5e1a1c77c42e | [] | no_license | dpshipley/ExData_Plotting1 | 6dbfda34c5a18f8cb6445775740820ddefbe9aa5 | e6c5fcecd1e2cf61ba3696a43a19c9fe34c6d8d3 | refs/heads/master | 2020-12-25T04:38:40.579420 | 2015-03-06T07:12:01 | 2015-03-06T07:12:01 | 31,729,802 | 0 | 0 | null | 2015-03-05T18:43:46 | 2015-03-05T18:43:46 | null | UTF-8 | R | false | false | 451 | r | plot1.R | library(datasets)
#Read file
dt <- read.table ("household_power_consumption.txt",header = TRUE, sep = ";",stringsAsFactors = F, na.strings="?")
#Create subset based on date range
dt<- subset(dt, (dt$Date == "1/2/2007" | dt$Date== "2/2/2007"))
#Build plot and create png
png("plot1.png", width=480, height= 480)
hist(dt$G... |
2e21ab2991961a60535203896c898eb50d4f3501 | 9ac398969b1a6951b9aab5f2742445ada5b12ea3 | /movie_reviews_glove.R | b5931cc141a6e416df33e4aaed2140a9b9378806 | [] | no_license | pcode93/movie_reviews | 693334d01deace7196b3cbc427e4a94086c0ed06 | 883ed0516776c6546d3893ba172988d651a3d96f | refs/heads/master | 2021-01-25T10:50:20.108945 | 2017-06-09T18:01:24 | 2017-06-09T18:01:24 | 93,884,121 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,963 | r | movie_reviews_glove.R | source('movie_reviews_get_data.R')
result <- lapply(
list(
c(5,50),c(5,100),
c(7,50),c(7,100),
c(10,100),c(10,150),c(10,200),
c(12,150),c(12,200),
c(15,150),c(15,200),c(15,250),c(15,300),c(15,350),c(15,400),
c(20,300),c(20,350),c(20,400)
),
function(params) {
print(paste('Skip grams w... |
85738061e6d4515a7682112108fee9fa419e46ee | c980f79cc06629ba0c5f2e970aeb60ac94edb048 | /forecasting.R | b0fe1085f1fe17a111462bfc5de7a38b1ea9ce25 | [] | no_license | claytonglasser/siuslaw-basin-precipitation | 605cd0dc11335eab240cff4a5e6121170167b30e | 799555de260cc5f236d027ea3b1153f132c950b8 | refs/heads/master | 2020-03-29T12:57:03.699506 | 2019-03-15T18:37:02 | 2019-03-15T18:37:02 | 149,930,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,085 | r | forecasting.R | library(tidyverse)
library(ggplot2)
install.packages('forecast')
library(forecast)
install.packages('tseries')
library(tseries)
install.packages('TSA')
library(TSA)
#Wrangling the data
##Read in cleaned up csv as dataframe
clean.csv <- read_csv("siuslaw_basin_climate_clean.csv")
##Convert observations to needed obj... |
88b6dae7041f0f29ac7639be5c1fd89a2dadda8a | 9eac9f8e7495d916f7596c4444461521b1a39086 | /scripts/gtf_exons_union_to_gtf.R | 2c1ee502848f15d0af62221341f619700b2b4dbd | [
"Apache-2.0"
] | permissive | uniqueg/scripts | bbb42d455196f8e047df2681661a02d38e4a762f | 9fdcb93f740c0d353b8f9c0fe3ceab6a941af87d | refs/heads/master | 2023-04-08T17:08:00.911197 | 2023-03-16T08:46:40 | 2023-03-16T08:46:40 | 211,389,152 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,321 | r | gtf_exons_union_to_gtf.R | #!/usr/bin/Rscript
#==================#
# HEADER START #
#==================#
### Created: Nov 25, 2014
### Author: Alexander Kanitz
### Company: Zavolan Group, Biozentrum, University of Basel
#==================#
# HEADER END #
#==================#
#===================#
# OPTIONS START #
#=============... |
320145b30f772f08718b2856f858151360f44304 | 7abce5f5d467b244bbd3f65ed20dfeaf16ff41a9 | /scripts/02-Plot.R | a6344d566233a6a666f8d37616dfe5c18157b5f5 | [] | no_license | majazaloznik/PH13.01.FS | 739ef339ac322db0cbe189143ccb12f958a632fc | 013258ab8929eafc24fc48abda99379e6c9198e4 | refs/heads/master | 2020-06-10T23:05:22.517871 | 2017-04-04T13:30:28 | 2017-04-04T13:30:28 | 75,848,768 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,855 | r | 02-Plot.R | ###############################################################################
## plots
###############################################################################
## preliminaries
###############################################################################
load("data/imported.RData")
library(dplyr)
library(ti... |
a59c4609306dffe58acb39bec25d14e85f5fc6e2 | ae4832aa6e2c608c84fb67c997f10c179ece18df | /source/truncated_normal_distr_mean.R | f132acdb86c7373a336787de96b1cb9d762b1694 | [] | no_license | SpyrosSpiliopoulos/snippets | fe35a2c93ffa8e5244ff6d1e9fb67eeaaadda196 | a93d5d3bb1f7392228d2aa71b67d2f16f85e2b10 | refs/heads/master | 2020-12-15T00:56:52.217438 | 2019-06-27T17:54:18 | 2019-06-27T17:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,742 | r | truncated_normal_distr_mean.R | # |-----------------------------------------------------------------------------------------------------|
# | Project: Means of truncated normal distributions |
# | Script: Means of truncated normal distributions |
# ... |
42d0f5b38728c276ab8ecea563f88e4428e842d7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/wpp2017/examples/migration.Rd.R | 2617301c4d92fb83e421a1a554bae05772f06e65 | [] | 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 | 169 | r | migration.Rd.R | library(wpp2017)
### Name: migration
### Title: Dataset on Migration
### Aliases: migration
### Keywords: datasets
### ** Examples
data(migration)
str(migration)
|
9f19723fcfe4c8e2138fb41d7990d1e3e5cf9ea2 | 898b56496da3b29740a17f3a91654e512eaa7a18 | /R_trivial_simulation/zipf.R | 8e0ff0f1dc56822963cf584bbd60d6c35004f141 | [] | no_license | JunpengGao233/R_simulation | e6516ed1ebb3f813740792be10b71cf1b286d543 | 4fc837fc3b49c2ed6dd0a63e2e5defe8b94baad3 | refs/heads/master | 2020-04-12T15:45:19.766105 | 2018-12-21T10:04:28 | 2018-12-21T10:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 685 | r | zipf.R | zipf<-function(a)
{trials=10^6
simlist<- numeric(trials)
simlist[1]<-2
for(i in 2:trials){
if(simlist[i-1]==1){
first=sample(c(-1,1),1)
if(first==1){
simlist[i]=1}
else{
p<- (1/2)^(a)
new<-sample(c(1,2),1,prob=c(1-p,p))
simlist[i]<-new
}}
else{leftright<- sample(c(-1,1),1)
if... |
51731bf3e1630b8dfabdcb7bb797afaadd872a5f | abe6814c80f5839131e726069762708ec9ed0ce6 | /scripts/013 Time Series Predictors from Scratch.R | 83209eabb0ff3ab67792f5a0330f21f6abca18d7 | [] | no_license | guariglia/HDA | 3345d260cf6dac4cac89cee5b90b9ce124974263 | 53bcf3dcb24fd220b78df790676c141c8a84f213 | refs/heads/master | 2023-07-14T13:22:42.597632 | 2021-08-24T11:00:10 | 2021-08-24T11:00:10 | 336,018,665 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,489 | r | 013 Time Series Predictors from Scratch.R | # This is an extra script in which I am trialling:
# Adding date predictors into the time series model for the full dataset:
# Time of day
# Day of week
# BST vs GMT
# Removal of 5am peak
# Linear modelling and plotting (nb. linear model not appropriate due to heteroscedasticity)
setwd("~/summerproj/... |
165d63530f29f4e4fd18cf784e9a52e0241a130b | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/JOUSBoost/examples/circle_data.Rd.R | 4c16bdd61451f143b114158e35353a7834a2e324 | [] | 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 | 634 | r | circle_data.Rd.R | library(JOUSBoost)
### Name: circle_data
### Title: Simulate data from the circle model.
### Aliases: circle_data
### ** Examples
# Generate data from the circle model
set.seed(111)
dat = circle_data(n = 500, inner_r = 1, outer_r = 5)
## Not run:
##D # Visualization of conditional probability p(y=1|x)
##D inner_r... |
d5908a5ab016aa11d12fc2e7349f4d778b2a6861 | 8c4a74b0a344440a15a2edee5bb761bcd2dfcad9 | /man/FuzzySet.Rd | d1a1de686ef09a916fdd302d62ddae41309f3c4a | [
"MIT"
] | permissive | xoopR/set6 | 341950b7649629dc9594b9230710df5140679bf7 | e65ffeea48d30d687482f6706d0cb43b16ba3919 | refs/heads/main | 2023-05-22T22:46:30.493943 | 2022-08-27T17:20:08 | 2022-08-27T17:20:08 | 197,164,551 | 9 | 0 | NOASSERTION | 2021-11-16T15:02:05 | 2019-07-16T09:36:22 | R | UTF-8 | R | false | true | 15,618 | rd | FuzzySet.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Set_FuzzySet.R
\name{FuzzySet}
\alias{FuzzySet}
\title{Mathematical Fuzzy Set}
\description{
A general FuzzySet object for mathematical fuzzy sets, inheriting from \code{Set}.
}
\details{
Fuzzy sets generalise standard mathematical sets to al... |
bb6a7b67ffb5a0b2e8ba4b9262c6a5e54c3d64f7 | a49135012e357594bcec2b6bc0fd63f4814f588d | /starup_find.R | 722bdc602839d6f52a54de26a4dfcf87c651cbbd | [] | no_license | DevGra/scrap_startup_sp | 8109605780802e302da54b8bf69b7dea2a50befe | 2a3035f47165694dd31912eb69c443277611fa1f | refs/heads/master | 2020-08-18T20:02:33.385730 | 2019-10-17T16:21:41 | 2019-10-17T16:21:41 | 215,828,444 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 825 | r | starup_find.R | getwd()
setwd("C:\\Users\\cgt\\Desktop\\startup")
library(sqldf)
library(stringr)
library(DescTools)
startup <- read.xlsx("Dados_startups.xlsx")
pipe <- read.xlsx("CGEE empresas_PIPE - resposta.xlsx")
startup_nome <- subset(startup, select = c(nome))
pipe_nome <- subset(pipe, select = c(Nome.da.Empresa))
names(pipe_n... |
c6d7c779dff6b4fd19acdc8da4c74261e74be702 | 2a58920a4906cff62c0ed80a10d23e3aacc485cb | /finance/tp1/TP1.R | 2db29f1f5bfd5584a7854afd9960993fabe78eb0 | [] | no_license | kensekense/unige-spring-2020 | 38c21962d11442697166955b56ac8f110827e29c | 3ca6b52133803f88f77e825cc6eb026db13878a6 | refs/heads/master | 2022-09-06T08:33:59.202914 | 2020-05-23T19:46:07 | 2020-05-23T19:46:07 | 238,730,992 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,154 | r | TP1.R | #define a function to calculate returns on a vector
mret <- function(x) {
sol <- c() #create a list to hold monthly returns
i <- 1
for(val in x){
if(i == 1){
ret <- 0 #first monthly return is 0
sol <- c(sol, ret)
}
#calc the return and append to list
ret <- (x[i]-x[i-1]... |
103812c731b7a597a76c558e9ffd295647f3f5c9 | a06da6adbad285ae75e75666323e33bdd0f02de4 | /aux_output_scripts/OLD/global_vs_local_model_eval.r | f163c63b1f7d43184c1dda3e76fc640176b51395 | [] | no_license | lkaiser7/IS_V2 | 5c3ab012576a935444b854300703ba382e80f942 | ef6d498f644db615dee11af580ea62a96b54bf0b | refs/heads/master | 2023-06-16T23:10:38.880561 | 2023-05-30T16:41:35 | 2023-05-30T16:41:35 | 37,231,310 | 0 | 1 | null | 2022-10-27T18:02:47 | 2015-06-11T01:04:33 | R | UTF-8 | R | false | false | 8,595 | r | global_vs_local_model_eval.r | #wd="D:/projects/Invasives_modeling/results/xfirst round of results/main_results/"
setwd(rootDir)
dir.create("combined_results/model_eval_metric/", showWarnings = F, recursive = T)
#eval_metrics=c("TSS", "ROC", "KAPPA") #
eval_stat = eval_stats[1]
for (eval_stat in eval_stats){ #global_notHI regional_HI nested_HI
gl... |
b51df35c228e4ed7a2729bea3689923c02da9779 | e4be7f8bf65953c73b3b699a81a7d8db749e3e60 | /R/glmtools.R | b7d3788d89223b819e315fd8de5413e64957666d | [
"MIT"
] | permissive | FLARE-forecast/FLAREr | 0833470f9b8e744b4a0782c1a1b50a6a403534d1 | 0c1215688ea80eb7886f3ffe2d847b766b3fb6d0 | refs/heads/master | 2023-08-04T23:43:47.057220 | 2023-08-04T13:34:43 | 2023-08-04T13:34:43 | 292,376,842 | 4 | 8 | MIT | 2023-04-25T13:32:56 | 2020-09-02T19:32:21 | R | UTF-8 | R | false | false | 16,577 | r | glmtools.R | #All functions are from GLMtools package
#We moved them here because GLMtools package
#was not keeping up with R updates
#'@title read in a GLM simulation *.nml file
#'@description
#'read in a GLM simulation *.nml file and create a list. \cr
#'
#'
#'@param nml_file a string with the path to the GLM glm2.nml file, or... |
9694cdf16c1800b95bc60c348181fe1c5ec8dc2a | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/ALSM/examples/CastleBakery.Rd.R | 0af554a5de3919735186aadb5ec802c506487d07 | [] | 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 | 205 | r | CastleBakery.Rd.R | library(ALSM)
### Name: CastleBakery
### Title: Castle Bakery
### Aliases: CastleBakery
### Keywords: datasets
### ** Examples
data(CastleBakery)
## maybe str(CastleBakery) ; plot(CastleBakery) ...
|
0b56af0e75f50aaeec78dc9a55e4cdb11b652dad | 8a7035200119a192e32a1839d55bbe6a1c117d5b | /man/dixon.outliers.Rd | 60219273fd58af22ed36d57e417afd1d75097ad2 | [] | no_license | cran/referenceIntervals | 24a87fd2fa204c0c5583939ee947c8c264a23a3b | 71bb25c6e9c860bd02a73e7802ae436fe9cff7b7 | refs/heads/master | 2022-04-30T13:38:34.513179 | 2022-04-28T21:00:02 | 2022-04-28T21:00:02 | 17,699,107 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,268 | rd | dixon.outliers.Rd | \name{dixon.outliers}
\alias{dixon.outliers}
\title{
Determines outliers using Dixon's Q Test method
}
\description{
This determines outliers of the dataset by calculating Dixon's Q statistic and comparing
it to a standardized table of statistics. This method can only determine outliers for
datasets of size 3 <= n <... |
5539a4b65e6bde89abee052d2cb664754d2f1fb4 | 35bada16c07a9c00921ca07fa3557c35cf851ddf | /MONTECARLO.R | 3f4eeae0db5d50c8389c97fe41e41f6d912ebfee | [] | no_license | aguilarfabiola/estadistica-computacional | 0bb54e11543710fc3fa067aa84ff6a341f51532b | c244ce0eb1794c81d84d2efe8ee3cb312f5f3ff7 | refs/heads/main | 2023-07-22T12:03:22.194848 | 2021-09-06T23:30:46 | 2021-09-06T23:30:46 | 403,782,250 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 726 | r | MONTECARLO.R | # FUNCIÓN DE DENSIDAD DE DISTRIBUCIÓN ERLANG
erlang <- function(x){
(1.5*((1.5*x)^2)*exp(-1.5*x))/2
}
# GENERACIÓN DE NÚMEROS PSEUDOALEATORIOS
u <- runif(100000000,0,1)
# CALCULAR PRIMER MOMENTO
numbs <- c()
m1 <- function(u){
h <- -((u^(-1))-1)*erlang((u^(-1))-1)*(-u^-2)
numbs <- c(numbs, h)
}... |
1da7dfc46c5a12ecae6b84d64bc91d39a4602bd7 | 9600ab5e6ba7b8666596bbacddef1577d184fa9b | /R/mda_helpers.R | 7c260d948e13ea9c593ab2db8b37a5860ee7a4cf | [
"CC0-1.0",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ldecicco-USGS/mda.streams | c22635a9d202c10098b4db3cd3e5fd8f5cc70fac | 9ec6bdba32369a12e2fb03844d67256bf03e6785 | refs/heads/master | 2021-01-21T23:20:40.311104 | 2015-03-05T20:13:10 | 2015-03-05T20:13:10 | 27,842,879 | 0 | 0 | null | 2015-03-05T18:42:22 | 2014-12-10T22:29:48 | R | UTF-8 | R | false | false | 612 | r | mda_helpers.R | #'@title create timeseries pointer
#'@param variable a timeseries name (e.g., \code{wtr})
#'@return a timseries string
#'@export
make_ts_variable <- function(variable){
ts_prefix <- get_ts_prefix()
ts_variable = paste0(ts_prefix, variable)
return(ts_variable)
}
get_ts_prefix <- function(){
ts_prefix = 'ts_'
... |
3d0516b475178daf0990ee374e4c3bf87db59bab | c7004852f749639bca087ce00a8020c6dc357349 | /DataMiningHW4/hierarchial_clustering.R | 16aeb8ab9fa7fa28e05b4bc3b55d539d3185dc73 | [] | no_license | kevinaloys/DataMining | ead69ea8e00de78c5809ccce95114511a417886b | 5207a34dc0294f0b9cfca6b93fcfb2771e81d243 | refs/heads/master | 2021-01-25T08:29:56.334447 | 2014-12-09T21:00:01 | 2014-12-09T21:00:01 | 26,798,446 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 848 | r | hierarchial_clustering.R | # Hierarchial Clustering
# Kevin Aloysius
set.seed(123)
# Loading the data
character <- read.table("az-5000.txt", header = TRUE)
# Removing the first column
char <- character[,-1]
# Applying kmeans
fit <- vector()
for (i in 2:26)
{
output <- kmeans(char, centers = i, iter.max = 26)
}
# Hierarchial Clustering
f... |
dc540c028968d8b552ee2c4595d4ef953251be46 | 28e03d9d35bbc437b720ebe0bd3e45b86760ec19 | /r5.R | 6288d68ac7762c65d2ad3f99861f2776bcfe9346 | [] | no_license | VinayKumar552-coder/assignment- | 0975229393571813b836ee2c66ba225457bb02ac | 1d0b4e0e568f15cf5fc78007826ec55af5e65df5 | refs/heads/master | 2020-06-18T23:25:56.363142 | 2019-07-14T22:02:07 | 2019-07-14T22:02:07 | 196,491,654 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 170 | r | r5.R | MyData <- read.csv(file="/Users/vinaykumarkobbanna/Desktop/yearly_sales.csv",header= TRUE, sep=",")
view(MyData)
boxplot(cust_id,sales_total)
boxplot(sales_total,cust_id) |
9822f9ee7e2f6f6f18a18724ba47a81442ebf962 | 476a565b1974d9cb63112d763d76b16f1ec69142 | /Previous scripts/Foxrabies/A1_Reproject_rabies_data.r | e8b75b9f35a146727076c9cfdb7b58683d700425 | [] | no_license | ce4-peru/covid19 | ee42fc2c375eb398d394ac34820c5a0023864209 | 07e3d6cad692f1ddcb59d5b55fa02c9ec40f0a65 | refs/heads/master | 2021-05-20T09:10:00.719490 | 2020-05-10T04:38:44 | 2020-05-10T04:38:44 | 252,215,739 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,444 | r | A1_Reproject_rabies_data.r | ##'**MRES PROJECT**
##'**FOX RABIES RETREAT IN WESTERN EUROPE**
##'**MICAELA DE LA PUENTE L.**
##'**This script shows reprojection of the data**
### TRANSFORM IT TO A DATA FRAME ###
######################################################
# FIRST SET WORKING DIRECTORY IN RSTUDIO
# i.e. Session > Set Working Directory ... |
da7f248339a1297b4c4969a6a5c63cc4d419af8d | 1bbd922a9e81341c9f81cfba4aa48664aeaa9a95 | /R/selwik.R | 466ce9f9e0c1b9e56a8cce233fe3c169016febc8 | [] | no_license | mlesnoff/rnirs | b2519dee12788132107542c4c097611a73c1b995 | 1398d746df67f0f6d80063366db969998522dc04 | refs/heads/master | 2023-04-15T22:15:33.045477 | 2023-04-07T13:59:18 | 2023-04-07T13:59:18 | 208,553,347 | 18 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,501 | r | selwik.R | selwik <- function(
X, Y, ncomp,
algo = NULL, weights = NULL,
nperm = 50, seed = NULL,
print = TRUE,
...
) {
X <- .matrix(X)
zdim <- dim(X)
n <- zdim[1]
zp <- zdim[2]
Y <- .matrix(Y, row = FALSE, prefix.colnam = "y")
q <- dim(Y)[2]
if(is.null(algo))... |
e6699f9f43e2c918cd46b4a8527c252c993398cc | aaedcedaf17ee3f3c5ec159044342c3112233048 | /GettingData.R | 386e7a156b52b30fc1685947b1e4f2421f819ba2 | [] | no_license | marciorbe/Testes | cbe92405d9e0515e92ae5734072ff631898809a0 | e24cf685dcae17784d5580d90318ccaadc73300a | refs/heads/master | 2021-01-01T06:44:38.927823 | 2014-10-21T20:59:42 | 2014-10-21T20:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,637 | r | GettingData.R | ## Create directorie
if (!file.exists("data")){
dir.create("data")
}
destfile <- "./data/cameras.csv"
## Downloading file
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD"
download.file( fileUrl, destfile = destfile, method = "curl" )
list.files("./data")
## Reading local... |
4386f647254fda59af4a43362fbf6c0788faede7 | 655ee959878fc9fa6f0ffdd7fb956f38936c2072 | /symbolicR/man/symbolic.gsub.Rd | 95edb1bb535477acb015278fd26fafffc15d4d2c | [] | no_license | isabella232/symbolicR | 29b1b28334f8889846156d8fd1effdbec6164e6d | 001707e9a380de37a8f7fe3d2a463cf047733109 | refs/heads/master | 2023-03-16T00:08:39.874076 | 2017-12-13T10:00:47 | 2017-12-13T10:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 601 | rd | symbolic.gsub.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/00symbolic.000general.R
\name{symbolic.gsub}
\alias{symbolic.gsub}
\title{symbolic.gsub}
\usage{
symbolic.gsub(pat, rep, e0)
}
\arguments{
\item{pat}{pattern expression}
\item{rep}{expression as a replacement}
\item{e0}{expression to be ope... |
f419c3fa2369d33186984c9772373ed98f357dc2 | 36cc048d7e233bfc864fe3c91f99819ddab90595 | /app.R | 86d1dba63a38e29a47e37de4f27cac95eef82d86 | [] | no_license | PurityNyakundi/shiny | e987fe0f7cb42481cd2d52bb138a2d43ca9b6725 | e54e93aceab69069ffac0f5f1ef07592002d11c2 | refs/heads/master | 2023-02-28T19:41:36.894902 | 2021-02-12T12:29:02 | 2021-02-12T12:29:02 | 271,760,255 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 355 | r | app.R | library(shiny)
ui<-fluidPage(
wellPanel(sliderInput(inputId = "num",
label = "My label",
value=10,min = 1,max = 100),
plotOutput("hist")
))
server<-function(input,output){
output$hist<-renderPlot({
title = "histogram"
hist(rnorm(input$num),main = title,xlab = "histogram")
})
... |
aee3109235544f0845de029166466c25ddac9ed8 | 417e6f1275e3ee4bfbd5bedfa94b5e5c3546a659 | /rscripts/performanceMetrics.R | 6aa8a40f718fadc017466400fd14c6f854ee6157 | [] | no_license | Delvis/GMML-Talus | c2cbdeaadf065364b10716c0071d72e7764f8816 | abf09273eb3ea67ef1b191e6864785f9a80c107e | refs/heads/master | 2021-01-18T02:58:35.036063 | 2016-01-18T13:33:54 | 2016-01-18T13:33:54 | 39,903,341 | 4 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,260 | r | performanceMetrics.R | # performanceMetrics computes simple metrics for binary classifiers evaluation.
#
# Metrics:
# Overall accuracy
# Kappa
# Sensitivity
# Predictive value
#
# Authors:
#
# João Coelho
# David Navega
#
# Laboratory of Forensic Anthropology
# Department of Life Sciences,
# University o... |
b89cbd85d9b3d497c9b2cf094d52404c5a2c0c98 | 0ecfd68e1413eefac556f14e4dfa541e528b5184 | /code/server-config.R | c11f4d49d68cd339918a6a66b03a86263f2d91a9 | [
"MIT"
] | permissive | HGray384/lrcfs-stats-reference-book | de1bd8a47c6362c59a89caaecfa69f6a2b322e74 | 3e3436f8e9182ad95f7052131a3458e210fe642a | refs/heads/master | 2023-06-04T11:29:11.445001 | 2021-06-22T12:28:58 | 2021-06-22T12:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 568 | r | server-config.R | #This is a server specific configuration file
#Update the SHINY_HOST property to work with development, test and production environments
SHINY_HOST = "http://127.0.0.1:5555" #development
#SHINY_HOST = "https://lrcfs.dundee.ac.uk/apps/interactive-lr" #Production Server
#SHINY_HOST = "https://lrcfs-shiny.test.... |
fffc140e85cc99a583d18ca03d4a7899ac41f67f | 6f6f97554599532e8345d769f96c9b6e9d2cb943 | /httk/R/calc_analytic_css_pbtk.R | 5eb62e7460dcd4dbf61d66e72915e20c9c2c921c | [] | no_license | jrsfeir/CompTox-ExpoCast-httk | 37cbfa4142c261ed79d3141142a613a614b28d38 | bf2f6c300fe2cf0c538c16355c2ec437ca781c55 | refs/heads/main | 2023-06-26T16:56:17.010294 | 2021-05-10T14:53:13 | 2021-05-10T14:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,497 | r | calc_analytic_css_pbtk.R | #'Calculate the analytic steady state concentration for model pbtk.
#'
#'This function calculates the analytic steady state plasma or venous blood
#'concentrations as a result of infusion dosing.
#'
#'@param chem.name Either the chemical name, CAS number, or the parameters must
#' be specified.
#'@param chem.cas Eith... |
d073c777a04b29fdda5c66b843c0296eee046dda | 0f1b6a183d9df5061bca7a8ec089d0324adb8b1c | /cachematrix.R | 0c9762cbcd08269f16ef68fe53afa7b85d22a892 | [] | no_license | markcanete/ProgrammingAssignment2 | 1478f0aca804830d8392b552c5037c2bf4e7e6d8 | dcc0bc604f91587898e6070d203ee5c4ba779dee | refs/heads/master | 2021-08-23T07:30:05.188450 | 2017-12-04T04:23:24 | 2017-12-04T04:23:24 | 112,989,294 | 0 | 0 | null | 2017-12-04T03:19:17 | 2017-12-04T03:19:16 | null | UTF-8 | R | false | false | 1,150 | r | cachematrix.R | # This will Creates a matrix that can cache it's inverse, if the inverse has already been
#calculated before, the Cached inverse is return
#
#
# Returns:
# A matrix with functions to get/set value & get_matrix/set_matrix inverse
makeCacheMatrix <- function(x = matrix()) {
inverse_math <- NULL
... |
7f65390daf3ecf03676337590d8c265b9c6fc82f | 6b5c972cfc1f9e488a1444071f0640dd31351c64 | /R/pcRegression.R | 25752a2bd3f37805896becad3f928213550b7e3b | [] | no_license | chichaumiau/kBET | cbf04dfe5cb378946f8a95c6689675b89d65d493 | 429a7f82e29a83c4410a3eaadfeed24fbb369626 | refs/heads/master | 2021-01-20T05:02:05.333810 | 2017-03-03T09:19:48 | 2017-03-03T09:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,029 | r | pcRegression.R | #' pcRegression
#'
#' @description pcRegression does a linear model fit of principal components and a batch (categorical) variable
#' @param pca.data a list as created by 'prcomp', pcRegression needs $x: the principal components (PCs, correctly: the rotated data) and $sdev: the standard deviations of the PCs)
#' @param... |
27528ed1aa9b80cab5bc13daea1f9e1c5ef66077 | bd8cd68974cbe33217bf1ec07942dc38403f9aaa | /models/functions/fit_rf_plus_cart.R | 107bb3da78800074368b746ccfef7fec304fbe5e | [
"BSD-3-Clause"
] | permissive | nzanl/pilot_clientprofielen_wijkverpleging_2020 | 4c67a1d9d1c6baf61a51bafe4e77574bcedea640 | d70349fd6af7700475a1cf4a839966b08702e875 | refs/heads/master | 2023-01-02T14:38:28.088643 | 2020-10-16T09:08:41 | 2020-10-16T09:08:41 | 304,569,754 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 69 | r | fit_rf_plus_cart.R | # nog niet geimplementeerd
fit_rf_plus_cart <- function(){
}
|
8871888ff8e7a6ea21d14e89adff0aec52f46b8a | 85b01c6070393f012bdd4bf8d6bc36832375434a | /man/u133VsExon.Rd | 3d7d2bbe683f452521db4536264730c7757959f3 | [] | no_license | AEBilgrau/GMCM | 4f0aef2910389e18d461edc2a18a9f3e0e2eebc0 | dce017d7be16c9cdf26565f78162e7dbe0619c73 | refs/heads/master | 2021-11-24T08:48:22.631145 | 2021-11-04T22:28:46 | 2021-11-04T22:28:46 | 15,970,417 | 12 | 2 | null | 2020-01-27T19:25:32 | 2014-01-16T14:41:13 | R | UTF-8 | R | false | true | 1,952 | rd | u133VsExon.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GMCM-package.R
\docType{data}
\name{u133VsExon}
\alias{u133VsExon}
\title{Reproducibility between U133 plus 2 and Exon microarrays}
\format{
The format of the \code{data.frame} is:
\code{'data.frame': 19577 obs. of 2 variables:}\cr
\co... |
150a1bc4ac801b1b6751a690161743c5cd8aaf88 | 6b915ba9db1de8d26bec39589c77fd5d225e1fce | /stanlba/singlelevelmodel/rl_rl_discrim_evaluate_fixed.R | 0fa3ac08b451ed9d025a6a77267cf4e947d8439c | [
"Apache-2.0"
] | permissive | bjsmith/reversallearning | c9179f8cbdfdbbd96405f603e63e4b13dfc233af | 023304731d41c3109bacbfd49d4c850a92353978 | refs/heads/master | 2021-07-09T23:42:22.550367 | 2018-12-08T01:40:54 | 2018-12-08T01:40:54 | 100,329,149 | 0 | 2 | null | 2017-09-05T04:27:41 | 2017-08-15T02:21:25 | R | UTF-8 | R | false | false | 12,761 | r | rl_rl_discrim_evaluate_fixed.R | source("stanlba/lba_rl_joint_setup.R")
source("stanlba/singlelevelmodel/single_level_model_summarize_fast.R")
source("stanlba/singlelevelmodel/lba_rl_joint_v2_evaluate_functions.R")
source("stanlba/singlelevelmodel/lba_rl_joint_v1_functions.R")
source("stanlba/singlelevelmodel/lba_rl_joint_v7_functions.R")
source("stan... |
2c620c64c264fa894c7800201dda0adf67214183 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610055576-test.R | 4ee81e1f4c7c1de93d46a9636fdb83f5a96d411d | [] | 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 | 1,084 | r | 1610055576-test.R | testlist <- list(a = -1040187601L, b = 989855743L, x = c(-1073741825L, -16056321L, -51777L, -1L, -54785L, -16035380L, 483183820L, -859035137L, -1L, -1L, 1886417008L, 1886417008L, 1886417008L, 1886417008L, 1886417008L, -1040187601L, 989855743L, -16318417L, -851982L, -222298113L, -1L, -870527796L, -858993623L, -52993... |
e6e40ceeaa87c2037a13347810be4d2bc5449627 | 829c2a4c9dee2dc51ddba44c10266d65f8911034 | /lib/topicCountryNetwork.R | 974d1c2ff14d0d2513bf05a3aefa7ad9b4a0fd1f | [] | no_license | TwlyY29/tminspector | ccc16421d899740171178b3c81b43104dbefb591 | 59af49ab6aa3cca5fd1726478c4d0c271269f0cd | refs/heads/master | 2020-09-08T17:54:39.090085 | 2019-11-13T09:21:37 | 2019-11-13T09:21:37 | 221,202,113 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 507 | r | topicCountryNetwork.R | topicCountryNetwork <- function(t_min = min(GLB_ALL_YEARS), t_max = max(GLB_ALL_YEARS)){
w <- which(CORPUS$meta$year %in% c(t_min:t_max))
d <- THETA[w,]
colnames(d) <- 1:N_TOPICS
rownames(d) <- CORPUS$meta$doc_id[w]
d <- as.data.frame(as.table(d))
colnames(d) <- c("cntr","topc","weights")
d$cntr <- CORPUS... |
bcf500b51eaab103eca5915446467538420fe474 | f36dd0a74b04145ac996f7b1ba728ad5e73206c7 | /MLR Final Script.R | c924bd0781a0be0dcb093823d376b125c67ec30c | [] | no_license | Yashk-02/Predicting-student-grades-and-Value-of-owner-occupied-home-in-Boston-using-machine-learning | 7fd302f1ea6cafdd9c87d1799df17f65b0b8191a | 0dea8ca53ee85875648087f432b37463c79f1bb5 | refs/heads/master | 2023-01-04T18:16:33.946438 | 2020-10-28T23:21:24 | 2020-10-28T23:21:24 | 295,794,678 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 11,448 | r | MLR Final Script.R | ##install relevant packages at start and corresponding libraries, can take up to 15 minutes to load caret pacakge
install.packages('caret', dependencies = TRUE)
install.packages('xfun', dependencies = TRUE)
install.packages('generics', dependencies = TRUE)
install.packages('gower', dependencies = TRUE)
library... |
fd421fb2512a12b29c69966b893c284339887e8a | 00685ffda63b270414cc9890c72768fbd0f96d87 | /tests/testthat/test_TR001_totvarbulk.R | be61c7c130d0a1dd710385b3c01b846defb6a85a | [
"MIT"
] | permissive | SysBioChalmers/DSAVE-R | 43fb16be548a4f2013db55cd1683c826210d402a | f63f8e6f7e62c08303efba3e8f7458e69ebe5028 | refs/heads/master | 2021-10-26T11:11:14.477823 | 2021-10-19T07:03:11 | 2021-10-19T07:03:11 | 178,033,532 | 2 | 2 | NOASSERTION | 2020-06-29T12:00:02 | 2019-03-27T16:27:53 | R | UTF-8 | R | false | false | 1,392 | r | test_TR001_totvarbulk.R | test_that("TR001 - Total variation in bulk",{
d <- rbind(c(1,1,1,1,2,2,2,2),c(300,300,300,300,300,300,300,300), c(0,0,0,0,0,0,0,0));
s <- as.matrix(d);
rownames(s) = c('A','B','C');
t1vs1 = DSAVEGetTotalVariationFromBulk(s, FALSE, 250, 0.5, rescale = FALSE);
#calculate (each value will be compared with 3 sam... |
e1cf0bbb6b4ec8bdb5f04e3ce822efe04a445bd2 | ba855e045647547b6f704c39fe80fece37311340 | /man/aba.flatten.Rd | c3a744f45d4ec5e79a87167dcb7877f71405657b | [] | no_license | tobyjohnson/gtx | bb9f6a6ea9ec4ec720e16c988580ffc5fbf22573 | 9afa9597a51d0ff44536bc5c8eddd901ab3e867c | refs/heads/master | 2021-01-17T00:47:26.344059 | 2019-08-29T19:34:54 | 2019-08-29T19:34:54 | 29,961,962 | 20 | 12 | null | 2019-09-11T17:33:40 | 2015-01-28T10:18:52 | R | UTF-8 | R | false | true | 595 | rd | aba.flatten.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aba.R
\name{aba.flatten}
\alias{aba.flatten}
\title{\strong{aba.flatten() - Flatten full aba results}}
\usage{
aba.flatten(.data)
}
\arguments{
\item{.data}{\code{\link{aba.query}} results object to filter}
}
\value{
data.frame with input \co... |
abbdf5feed33835a3a2bcccf674d1fe7d7591a20 | b2db48ccdffe5060c8f215d04776332ae6838113 | /code/coef_map.R | 26b79f16f8a4bf3772f7509b62b6fabde676a6cd | [] | no_license | judgelord/dissertation | e5e42759dfab7d9bdf0029cb37cae3abab1f16ad | 2488363f1d546b2d8af515d5f520ce9c520fb679 | refs/heads/master | 2023-05-01T10:53:57.426547 | 2023-04-25T21:30:06 | 2023-04-25T21:30:06 | 152,605,888 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,417 | r | coef_map.R | # coef map to rename vars
cm = c("campaign_TRUE" = "Pressure Campaign",
"campaign_TRUE:presidentObama" ="Pressure Campaign x Obama",
"campaign_TRUE:presidentTrump" = "Pressure Campaign x Trump",
"campaign_TRUE:presidentBush" = "Pressure Campaign x Bush",
"campaign_TRUE:coalition_typePublic:... |
545cfe0249feb622358740f473329e5855df13e0 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/blandr/examples/blandr.draw.Rd.R | ce42e2cff09facfd5fc2c215178f21876b5f05ec | [] | 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 | 749 | r | blandr.draw.Rd.R | library(blandr)
### Name: blandr.draw
### Title: Bland-Altman drawing function for R
### Aliases: blandr.draw
### ** Examples
# Generates two random measurements
measurement1 <- rnorm(100)
measurement2 <- rnorm(100)
# Generates a plot, with no optional arguments
blandr.draw( measurement1 , measurement2 )
# Genera... |
dd6f32849e802086e80811d072f50591538f120c | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Quandl/examples/Quandl.api_key.Rd.R | b58a6cbbabd79739f7eeb35a71d95fc1e9910122 | [] | 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 | 189 | r | Quandl.api_key.Rd.R | library(Quandl)
### Name: Quandl.api_key
### Title: Query or set Quandl API key
### Aliases: Quandl.api_key
### ** Examples
## Not run:
##D Quandl.api_key('foobar')
## End(Not run)
|
6172fc83ef86514b2f43bafd69acd6db3d9db27f | f6de2d8a88b19ec7847de8e19651bec06b3c5640 | /man/geojsonio.Rd | 8382ad3d6603966ebd3b4cd8db451c6b435097f6 | [
"MIT"
] | permissive | mashoedoe/geojsonio | 04988c62765976c85e5440ada9d3610f0e1440d1 | 062e463800a58865b012a79bc955667c5e8c6847 | refs/heads/master | 2020-12-11T03:33:08.190335 | 2015-07-11T20:02:44 | 2015-07-11T20:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 586 | rd | geojsonio.Rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/geojsonio-package.R
\docType{package}
\name{geojsonio}
\alias{geojsonio}
\alias{geojsonio-package}
\title{Convert various data formats to/from GeoJSON or TopoJSON}
\description{
This package focuses mostly on converting lists, data.fr... |
a92224baa5170b12e74f5cc440180c73777f937e | 1f89e9b31c3e19e6a3c47e341cbbbb9eb3d94dcc | /main.R | 558cef1a156fe025f375486ff6808e8c81fc85dc | [
"MIT"
] | permissive | giveMeLife/QAP-MetaHeuristics | 44f84812669506e80d45b7a96464c9eae2f9708a | e4376d7ecf4a8abf5249b9d84c89d58097081e66 | refs/heads/master | 2022-12-11T06:31:09.614424 | 2020-08-30T06:42:50 | 2020-08-30T06:42:50 | 289,588,809 | 5 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,558 | r | main.R | #!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
source("scripts/evolutiveAlgorithm.R")
source("scripts/qap.R")
source("scripts/simulatedAnnealing.R")
file = args[1]
metaheuristic = args[2]
iteration = args[3]
workdir = args[4]
print(args)
my_file = paste0(workdir, "instances/", file)
instancia = readQA... |
04779a00255ec86ac9e2cc0f5667151a38a2b827 | d6dccbcc663fa63794a45a27d057c7d4577e51d5 | /src/r/denoising.r | eabc2171668857d266a2814a202aae6b38e6d89d | [] | no_license | iarkhanhelsky/master-thesis | cbbcfc3c284347c9c4b1f3c2307610e7a64f19bd | 283ddb295f4c88647666772fc8c01458eb1bb29f | refs/heads/master | 2021-01-22T06:37:10.507561 | 2015-05-27T03:24:15 | 2015-05-27T03:25:31 | 30,262,485 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,891 | r | denoising.r | thresholding.hard <- function(x, lambda) {
t <- c(x)
t[abs(t) <= lambda] <- 0
t
}
thresholding.soft <- function(x, lambda) {
t <- c(x)
t[abs(x) <= lambda] <- 0
t[x < -lambda] <- t[x < -lambda] + lambda
t[x > lambda] <- t[x > lambda] - lambda
t
}
dwt.1d <- wavelets::dwt
idwt.1d <- wavelets::idwt
lambd... |
11deacdd1155fe441d92735a8c2c33742b44996d | 906e6bbbda8b4f46a6efaf31abbb318180a9c536 | /R/KL.R | 316dc07ec373f3fe02a9847165b4b2f749f67ec1 | [] | no_license | cran/catR | 6c8dffc1a1027b3883f5ffcd4ec5b3d0f4017fed | 112a2efb6621fed446a5df4b1467e4bfe937ab81 | refs/heads/master | 2022-07-10T15:36:37.953792 | 2022-06-24T07:00:02 | 2022-06-24T07:00:02 | 17,694,983 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 1,786 | r | KL.R | KL <- function (itemBank, item, x, it.given, model=NULL, theta=NULL,lower = -4, upper = 4, nqp = 33,
type = "KL", priorDist="norm", priorPar = c(0, 1), D=1, X=NULL, lik = NULL)
{
if (type != "KL" & type != "KLP")
stop("'type' must be either 'KL' or 'KLP'", call. = FALSE)
if (!is.null(X) & ... |
65487950c8d2ba9893444b363a41fdea4aa1bc6b | 6bf17ed3ca5388fbbca9fa3a60e40e52ca11b4e4 | /server.R | f812bfdf4ec8e74c3d27f15264ee951520072010 | [] | no_license | joebookslevy/Capstone | 7f5180eb79454846a00220571888c043405e2df5 | 672001a5e2179baa4c0b40739a9f131abdf02b54 | refs/heads/master | 2021-01-10T09:54:13.274782 | 2016-01-24T16:14:21 | 2016-01-24T16:14:21 | 49,830,948 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 155 | r | server.R | shinyServer(
function(input, output) {
output$text1<- renderText({
suggest(input$text1)}) ##List of 1-5 predicted words based on data set
}
) |
c60f901471b9189726e7a40311e55ee805110a95 | ff5d10f0cd1d25a6253f18159d57b4ec3f6f5dc4 | /plot5.R | bfca2c593f3629f121482cb1169d6a0d24ca51fe | [] | no_license | sheilazpy/Exdata_Plot2 | f076cfc547a23cfdba40f010bc7243cdba967c8e | 0f8135734530674e76c9e1442b608d2680532b0f | refs/heads/master | 2020-05-19T11:07:11.336961 | 2014-12-07T11:56:54 | 2014-12-07T11:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,123 | r | plot5.R | ## plot5.R -> plot5.png
## Read files
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
## Subsetting data
motorSCC <- SCC[grep("Motor", SCC$Short.Name), 1]
baltimoreNEI <- NEI[NEI$fips %in% c( "24510"), ]
baltimoreMotor <- baltimoreNEI[baltimoreNEI$SCC %in% motorSCC, ]
## Agg... |
614a915a9c4702ce06f201c5b820d39275f4dd20 | cbc8ac3950002bd7996c2c94bf74ea138b52cbad | /scripts/03_hoch_diff_gene.R | 8adab23bbece57d172df2df037a300f657946eed | [
"MIT"
] | permissive | harrislachlan/data | 5f09dda7a6eb0c31c50aa38b69d3b57b848cdaf7 | 9e35d3adc58b644cce0612b2ab6312ce4add0aa4 | refs/heads/main | 2023-02-18T02:29:34.345833 | 2021-01-20T11:39:38 | 2021-01-20T11:39:38 | 310,011,825 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 531 | r | 03_hoch_diff_gene.R | load("hoch_nsc_lineage.RData")
DefaultAssay(hoch_nsc_lineage) <- "RNA"
hoch_nsc_lineage <- NormalizeData(hoch_nsc_lineage, assay = "RNA")
A <- FindMarkers(hoch_nsc_lineage, ident.1 = "nsc", ident.2 = "granule neurons",
min.pct = 0.0, assay = "RNA", logfc.threshold = 0.0)
sig_genes_pvalue <- A$p_val
... |
ab6e565fc8a8cbf7864888cda08c50f393cef02e | e2028416f8b840411bc1b1cf420056515a59c9af | /tests/plan.R | 6f156ed506ce9052f3ef9dfdfa4968e9c2b83421 | [] | no_license | HenrikBengtsson/future.callr | 70fd9b6db231d2309c258cf6ce99233810caf26e | 3c27b32f640954ae5fe7bd258e2f9ba506b278ca | refs/heads/master | 2023-09-04T09:58:53.948772 | 2023-08-09T19:51:02 | 2023-08-09T19:51:02 | 92,703,596 | 62 | 0 | null | null | null | null | UTF-8 | R | false | false | 828 | r | plan.R | source("incl/start,load-only.R")
message("*** plan() ...")
message("*** future::plan(future.callr::callr)")
oplan <- future::plan(future.callr::callr)
print(future::plan())
future::plan(oplan)
print(future::plan())
library("future.callr")
plan(callr)
for (type in c("callr")) {
mprintf("*** plan('%s') ...", type)... |
fbf0d3add32009f9550b1ff22a332ff363628073 | 8d7fab3c3e1139ea0ab27b6913fdbc447d0faac8 | /plot2.R | 2d17fb5d3e635a78e66d6da275f431d0af1cc070 | [] | no_license | johnffarmer/ExData_Plotting1 | 9886df1a4fe79f2fab1b64ed1607b7b42dc99c74 | 31cc27013a8e7eb991d6a6a5168e2d38a1699ea5 | refs/heads/master | 2021-01-23T21:42:41.521871 | 2015-05-10T22:28:38 | 2015-05-10T22:28:38 | 35,383,615 | 0 | 0 | null | 2015-05-10T18:53:47 | 2015-05-10T18:53:46 | null | UTF-8 | R | false | false | 528 | r | plot2.R | household_data <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?",stringsAsFactors=FALSE)
household_data$DateTime <- paste(household_data$Date, household_data$Time)
household_data$DateTime <- strptime(household_data$DateTime, "%d/%m/%Y %H:%M:%S")
filtered_data <- household_data[hou... |
ab6ace22aebe564d9c9e010ff7a70ecd87ecab17 | cfcf2a2002bf6099ed5bbfcfa215f3c83efb14a2 | /OLD/199_RLplotting1.R | cb8ac4826ff571850d3efc0d77e6788a4e8993fb | [] | no_license | griffada/AQUACAT_UKCEH | c07dcbf1ac277cd4759929e3cc2fe121cdc68fb5 | cee49f0fa5a8b3d1fc7dab7f02da4f64648ffc5a | refs/heads/master | 2023-08-16T08:02:51.831710 | 2021-10-22T13:50:48 | 2021-10-22T13:50:48 | 281,631,316 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,281 | r | 199_RLplotting1.R | #~~~~~~~~~~~~~~~~~~~~~~~
# Adam Griffin, 2020-10-16
#
# Function for plotting extracted values in terms of return period.
#
# For aquaCAT, Project 07441.
#
# OUTPUTS: .png plots
#
#~~~~~~~~~~~~~~~~~~~~~~~
library(ncdf4)
library(raster)
library(fields)
library(readr)
library(dplyr)
if(substr(osVersion,... |
3caa092b17fbdebcee89eae689cabd6b55c8a5df | d31602f21f6c627b05a6889b94aab7a07b5ceb9b | /R/cvDeps.R | d47442066d72edafbc808ff3dabe6f50c0315d46 | [
"MIT"
] | permissive | evandeilton/cvforecast | ff7162983e163a5f180deed360074145e142fd4d | d6d934d1eb1e036b472a16c6ea5dafdce0a36111 | refs/heads/master | 2020-04-25T12:26:40.028320 | 2017-05-22T02:17:45 | 2017-05-22T02:17:45 | 37,792,953 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 360 | r | cvDeps.R | #' @aliases cvforecast package-cvforecast
#' @import foreach plyr rkt forecast
#' @importFrom lubridate hour minute second day month quarter year ymd week
#' @importFrom lmtest bptest dwtest
#' @importFrom TSA LB.test
#' @importFrom tseries jarque.bera.test
#' @importFrom xts xts try.xts as.xts
#' @importFrom zoo zoo a... |
76dd3d432b4d496652a97014476da467736125e4 | bdd17429152bfe4b0f3efc3bef1a048dcc7a700c | /Objective Results/PPMI.R | 36bd359571ffdbb993107c2ffcd44915e9815a90 | [] | no_license | sobradob/thesis | 867bb7e60ec7209743c3a44d5cf0f51b0607c831 | 3f01477846fb7b62aeb6bf2312b7585df08f5e7c | refs/heads/master | 2021-09-14T04:32:33.851873 | 2018-05-08T14:47:27 | 2018-05-08T14:47:27 | 108,986,717 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,605 | r | PPMI.R | # PPMI results
# create features for model input
# create test variable
test<- objLog %>% mutate(timestampMs = as.numeric(time), clust = Cluster)
seconds_in_day <- 24*60*60
test<- test %>%
select(time,timestampMs,clust) %>%
mutate( day = strftime(time,"%u"),
month = strftime(time,"%m"),
... |
a2d79cd30e30a7b7bfed2c3f08c4cd5629797d8f | 40b34e9cf5f4dea2a34fc143a67a03f6d4f01c05 | /cubic_spline_test.R | 9a5d9d6e70edf46cf20821f0fc254f224923b554 | [] | no_license | bbbales2/gp | 8f16cdb9a7563307bee781c3902247e76cb17a1a | 663c71fac94d7095078b02141e60a4642e401446 | refs/heads/master | 2021-01-12T02:11:58.617718 | 2018-07-13T20:36:07 | 2018-07-13T20:36:07 | 78,486,789 | 0 | 0 | null | 2017-06-03T18:22:52 | 2017-01-10T01:47:58 | Python | UTF-8 | R | false | false | 304 | r | cubic_spline_test.R | library(tidyverse)
library(ggplot2)
y1 = 5.0
y2 = 2.0
k1 = -5.0
k2 = 3.0
x1 = 1.0
x2 = 1.75
x = seq(x1 - 0.1, x2 + 0.1, length = 100)
t = (x - x1) / (x2 - x1)
a = k1 * (x2 - x1) - (y2 - y1)
b = -k2 * (x2 - x1) + (y2 - y1)
q = (1 - t) * y1 + t * y2 + t * (1 - t) * (a * (1 - t) + b * t)
qplot(x, q)
|
7414d27b7657794edf5aa8d130dcd056ec19d9e8 | ae14b8136a13fbd24a1df5ec0d5c81f2a6a22ffa | /R/illustration.R | 736a6cc7df9b5307af8749bfe6d9dc47b428245e | [] | no_license | cran/startupmsg | 2a755e1abda5c0e53cd184fac6ca284e9dab63a0 | 2646fc1439d17f3f3728b4a0e99df5978cb3fa16 | refs/heads/master | 2021-01-22T09:09:35.561603 | 2019-03-11T16:20:22 | 2019-03-11T16:20:22 | 17,700,108 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,125 | r | illustration.R | #####EXAMPLES:
##note: to avoid misunderstandings: 'SMHandler' stands for /S/tartup/M/essage/Handler/
#mySMHandler <- function(c) {
# pkg <- startupPackage(c)
# npkg <- nchar(pkg)
# linestarter <- paste(":",pkg,"> ", sep ="")
# linestarterN <- paste("\n",linestarter, ... |
b337c333c9cbd5756edfe2dda766271115bc04af | af802742350160ecc98e26d445873043d30e0e17 | /R/multslapmeg.R | af03b8e7b889df477d2444256d817ecceb7cfb82 | [] | no_license | mitra-ep/slapmeg | 9a3de2d781341283262e01e2aabf5cb7593e48ad | 5e4936092988f53288d572491d2e01f49791a168 | refs/heads/master | 2021-07-16T14:07:54.479410 | 2020-09-15T19:36:19 | 2020-09-15T19:36:19 | 207,333,258 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,101 | r | multslapmeg.R | #' @title Testing multiple pathways using SLaPMEG (shared latent process mixed effects model and Globaltest) for
#' longitudinal Omics data
#'
#' @description Run slapmeg simultaneously for several pathways. For each pathway a p-value is calculated based
#' on SLaPMEG prodcedure as in \code{\link{multslapmeg}}.
#' Then... |
4b96811981eef7b1a7eae3499dabc81ccb54b7ae | 6b423163a5210a3f9dbe23673a3af18a0dc59627 | /regression.r | 853bc09fa75af1d27b77bc8fc5cbb690eedee984 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | PsychoCod3r/R | bc27da41d53178788e03e40c5f80d653b210fb56 | 703e54e6b3449d26b3e734f6eeef3653c01d78de | refs/heads/main | 2023-03-24T13:49:26.834188 | 2021-03-13T19:45:14 | 2021-03-13T19:45:14 | 305,809,664 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,074 | r | regression.r | #!/usr/bin/env Rscript
# Command syntax:
# regression.r [--noheader] filename.csv
# CSV file must be in one of two formats:
# independent,dependent
# index,independent,dependent
# CSV header is optional
args <- commandArgs()
h <- TRUE # CSV file has header?
for( arg in args ){
if( arg == "--noheader" ){
... |
761d13e2648d9e1e951fa9d8d07df957b83487b2 | a36ee60ef3673d4af1980f9a5151a68b63ce3cea | /inst/doc/ex1_BackgroundQuestionnaireGeneration.R | 3786d48b6d9afb3a1852a58de8cd2d5f92ef065f | [] | no_license | cran/lsasim | 36c042b64d96e3ae78745874a962b3a9b6c0ab34 | 86d89294245c04db04ccf9ce15a50c70b229bade | refs/heads/master | 2023-03-31T18:30:22.208960 | 2023-03-28T10:10:02 | 2023-03-28T10:10:02 | 82,914,843 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 3,313 | r | ex1_BackgroundQuestionnaireGeneration.R | ## ----setup, include = FALSE, warning = FALSE--------------------------------------------
library(knitr)
options(width = 90, tidy = TRUE, warning = FALSE, message = FALSE)
opts_chunk$set(comment = "", warning = FALSE, message = FALSE,
echo = TRUE, tidy = TRUE)
## ----load-------------------------------... |
14c770a978fa9cf62457f5a356200534b35af92c | 7ee2341bca2bfa888d3497e6489e9f8f51460f23 | /inst/tinytest/test_cube.R | c31ccc08d55e08b5b9f4b3559e72fa749339fa26 | [] | no_license | gdemin/maditr | 4203a11804d5ebc243aeb4394b7f71eb3b34e488 | ea3ee62fdc9392a2bd335fd0695d491cf34f6449 | refs/heads/master | 2022-05-10T18:04:05.927975 | 2022-04-02T14:36:26 | 2022-04-02T14:36:26 | 129,561,860 | 60 | 4 | null | 2019-01-02T23:01:22 | 2018-04-14T23:26:58 | R | UTF-8 | R | false | false | 1,120 | r | test_cube.R | cat("\nContext:","cube, rollup and etc", "\n")
n = 24L
set.seed(25)
DT = data.table(
color = sample(c("green","yellow","red"), n, TRUE),
year = as.Date(sample(paste0(2011:2015,"-01-01"), n, TRUE)),
status = as.factor(sample(c("removed","active","inactive","archived"), n, TRUE)),
amount = sample(1:5, n, ... |
49a54f3fbe4369d7019c4f880d8017afae884d57 | cdda0c172955e5fcaf24c1fd3a531717733b0991 | /pisa.survey.R | ca2d8cb095717c15380e4f260de22a89a62bedf8 | [] | no_license | avnerkantor/openpisa2 | 0ac9d52c43f62ad9d68434418e5739f1d47bf075 | bf9c0dd720cdc9152b538666a02033a0e80175a7 | refs/heads/master | 2021-05-23T07:21:39.024297 | 2020-11-28T17:50:56 | 2020-11-28T17:50:56 | 75,209,547 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 611 | r | pisa.survey.R | updateCheckboxGroupInput(session, "show_survey_vars", "", colnames(surveyAnalyze), selected = c("Country", "subject", "variable", "r.squared", "p.value"), inline=TRUE)
output$surveyTable = DT::renderDataTable(
surveyAnalyze%>%select(input$show_survey_vars),
filter = 'top',
server = TRUE,
rownames= FALSE,
#e... |
51d5508744423ad7cd61664690035b493214902b | 29585dff702209dd446c0ab52ceea046c58e384e | /NPC/R/StudentsT.R | c23ece8dec994596398740405bd7680a7d54ce6e | [] | 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 | 250 | r | StudentsT.R | StudentsT <- function (y, tr, tl, ...) {
## Student's T statistic
d <- mean.default(y[tr==tl]) - mean.default(y[tr!=tl])
se <- sqrt(stats::var(y[tr==tl]) / sum(tr==tl) +
stats::var(y[tr!=tl]) / sum(tr!=tl))
return (d / se)
}
|
773c8857377b652aa3f7125895e6f7ebfdf3b69f | faa4637c4d07b0b7da1dae6e2f58e01e87ed79fe | /EDA.R | fc0aea986247324574a090a34b0a975f29c223b2 | [] | no_license | gracegk/Bops_by_Country | 4d12c1cd9c0f40a0c85629cc5476ece046de7353 | e46a2b669f0cad0b19cf4f598e52f00f2dfea49b | refs/heads/master | 2021-07-13T02:54:14.615757 | 2020-11-03T20:06:08 | 2020-11-03T20:06:08 | 221,054,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,672 | r | EDA.R | source("Setup.R")
library(plotly)
library(ggplot2)
# variables to consider: danceability, speechiness, acousticness, valence, tempo, duration_ms
# irrelevant variables: URL, type, uri, track_href, analysis_url
################################
## how data from different countries look like
# distribution of speechin... |
92b3fe90ec33e0c8a43a35f4f55487c9b5a471a3 | 6bfb71f09b903929c286ab2741c25231c093b473 | /data/mathom_archives/pair_stan/seepairs_esttriads.R~ | 7f59a47ce51a177f3b1f3249f0d7228d038aafde | [] | no_license | stevenlangsford/trianglestairs | ad21f8f3c4c69babb2085bd2d86e04268dd620ce | 3ae1501f2a07b768ca5fe8101df323a4f9921097 | refs/heads/master | 2020-03-24T21:58:35.233140 | 2018-11-01T14:09:31 | 2018-11-01T14:09:31 | 143,060,301 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,958 | seepairs_esttriads.R~ | library(tidyverse)
library(rstan)
rm(list=ls())
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
setwd("..")
source("readData.R")
setwd("pair_stan")
singleppnt.estparams <- function(targdata){
for(i in 1:nrow(targdata)){
##ok, so difference scores are option1-option2, ignoring presenta... | |
f01fac324c03d701497fee286baa6c04a27c1687 | eb4782952de8f1a5f5c716f0485411101aaeafc5 | /R/readtext.R | de5069fc2a71548b9ac9c5f0d4e8fa06da21d700 | [] | no_license | quanteda/readtext | 0518b1746b496b77017d504f491d88529e4e0aea | 647c46510fbc09b605cb46e38873f68ff157b858 | refs/heads/master | 2023-06-09T01:24:38.597751 | 2023-06-03T16:42:07 | 2023-06-03T16:42:07 | 71,951,499 | 71 | 25 | null | 2022-12-01T12:42:45 | 2016-10-26T00:47:47 | R | UTF-8 | R | false | false | 13,863 | r | readtext.R | #' read a text file(s)
#'
#' Read texts and (if any) associated document-level meta-data from one or more source files.
#' The text source files
#' come from the textual component of the files, and the document-level
#' metadata ("docvars") come from either the file contents or filenames.
#' @param file the complete... |
86175e7a2c1b2fe23d7c2d28404ed529c824712c | 61bdffc601f640e1e377836830c347f0f293c81a | /scripts/Figure_Euler_diagram_of_OTUs_by_site.R | c3527afa33ec6d305a368dd1a3fab6cd79c65a94 | [] | no_license | jooolia/RdRp_454_amplicons_Jericho_and_SOG | a5a8c0a18a30d2e7c89f88e2eecc6f9be4e53dae | ffe120a391c123a1b1347f22e1e9e2e4428fd3a1 | refs/heads/master | 2020-04-06T04:36:02.969783 | 2015-01-05T20:01:12 | 2015-01-05T20:01:12 | 26,024,864 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,993 | r | Figure_Euler_diagram_of_OTUs_by_site.R | ## Author: Julia Gustavsen
## Purpose: Generate Euler diagram from normalized OTU data.
## After comments by reviewers I am making suggested changes and adding in a diagram looking at the number of OTUs in each section.
library(Cairo)
AllOTUs_rarefied_by_lowest_Mid <- read.csv(paste("../results/AllOTUs_rarefied_by_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.