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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40a22afb0a1125dd814e682952960294e7f6b562 | ab1b73887d52d6c77922320761e5830e45c5178f | /source/model/rule_base.R | b7d9f06d28bad7af48309c85e65dad46098bbc42 | [] | no_license | ken-nakano/kaggle_titanic | 0934db71301758766a1ee1b763331d038e202702 | ef90928cff423a41fbf5ae7af9b4affddc691de6 | refs/heads/master | 2020-04-21T21:04:28.090165 | 2019-02-25T02:23:59 | 2019-02-25T02:23:59 | 169,867,111 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 680 | r | rule_base.R | library(tidyverse)
library(modelr)
project.root <- Sys.getenv("PROJECT_ROOT")
source(str_c(project.root, "/source/service/prepro.R"))
train_and_predict_rb <- function(X_train, X_valid, Y_train, Y_valid) {
## 学習
train <- cbind(X_train, Y_train)
agg <- train %>%
group_by(Pclass, Sex, age_group) %>%
summar... |
2b9d3a955368b4ef1e03506f191dfee893d1aeca | dc3642ea21337063e725441e3a6a719aa9906484 | /Finance/macd.r | ea953bb9f4a64c5dd29851992689a0d32e589111 | [] | no_license | akmiller01/alexm-util | 9bbcf613384fe9eefd49e26b0c841819b6c0e1a5 | 440198b9811dcc62c3eb531db95abef8dbd2cbc7 | refs/heads/master | 2021-01-18T01:51:53.120742 | 2020-09-03T15:55:13 | 2020-09-03T15:55:13 | 23,363,946 | 0 | 7 | null | null | null | null | UTF-8 | R | false | false | 939 | r | macd.r | #install.packages("ggplot2")
#install.packages("dplyr")
library(ggplot2)
library(plyr)
windows <- TRUE
if(windows){pathpre<-"C:"}else{pathpre<-"~"}
wd <- paste0(pathpre,"/git/alexm-util/Finance/")
setwd(wd)
stock <- "TSLA"
timespan <- "30"
filename <- paste0("data/",stock,"_macd.csv")
command <- paste("node","macd_d... |
31929a877145900d3954c5e6ca39264cf4da05b1 | 22001710e3dbcec99e032b0dfaacfe9918fcaaa8 | /run_analysis.R | ac185c1cfdfcd79beeec9cc2e847a74694942dbf | [] | no_license | Maligit/CleaningData | ebbdf892db82b2eecec45b2e818a0c28907e6ee2 | ef77b374706decc6fb307156db619b495d95ea9b | refs/heads/master | 2021-01-10T19:24:51.896583 | 2014-11-23T21:43:23 | 2014-11-23T21:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,781 | r | run_analysis.R | #This script will download a set of files from the accelerometers from the Samsung Galaxy S smartphone.
#It then coalesces the files into one dataset capturing the mean and std for various subjects on six different types of activities.
#It then produces a long form of tidy dataset
# load packages
library(data.table)
... |
bb88d5aaf1e7e4e96bfb3190301f056e6083d867 | fadbaf1d8d71091884ba864e0b39887f5dd380ea | /LPS2_epi.R | de0c1c156429d35286370f81cf92acfd92d80560 | [] | no_license | ariadnacilleros/TFM | bc27936b04beefc9d59eff823c04b13e1241c384 | 71e1890e55b643d3784a60e59474e3a17d62df4d | refs/heads/master | 2022-11-21T12:13:32.373774 | 2020-07-21T14:12:35 | 2020-07-21T14:12:35 | 279,327,518 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,208 | r | LPS2_epi.R | #########################
#
#STEP:PREPARE .EPI FOR SMR
#
##########################
library(illuminaHumanv4.db)
library(stringr)
NA_LPS2 <- read.table("C:/Users/ariad/OneDrive/Desktop/Illumina_annotation/LPS/NA_LPS2.txt", quote="\"", comment.char="")
phenotype <- read.delim("C:/Users/ariad/OneDrive/Desktop/Il... |
e185600116e44ee186b3be08d6e20c52a7c95329 | 83342cbd4f745ab062953351a2526843b6ebf162 | /R/gammatau.R | b991cadfdbff9e4e3dc6c6cc5f92c5228f39b4a4 | [] | no_license | rtlemos/scallops | 2bec9eaaf1833f21cca494d7ffd839e89ca29c4d | 8a56259689fdaf63a5c7c5bda61c2d807e6a1d0f | refs/heads/master | 2023-04-02T20:55:07.834958 | 2018-09-03T17:43:53 | 2018-09-03T17:43:53 | 141,383,751 | 0 | 2 | null | 2023-03-18T14:29:47 | 2018-07-18T05:08:30 | R | UTF-8 | R | false | false | 7,008 | r | gammatau.R | #' Build basic priors for gamma and tau
#'
#' @param dpc_grid Discrete Process Convolution grid
#' @param precision_diagonal_value Diagonal value for gamma's prior precision matrix
#' @param precision_nearest_neighbor_factor Off-diagonal factor for gamma's prior precision matrix, in (0,1)
#'
#' @return List with prior ... |
494e2469f58b356ee0c72071c2c4495e7632216c | 7e39ca6104d055974719e15a076b6777c8c3f56a | /programs/EDA_uninsured_SAHIE_aggregate_CPS_cty.R | 7acbaab68830562ac9795e15081beda35fd430ab | [] | no_license | Qasim-1develop/flu-SDI-dzBurden-drivers | 00e61a992e75ea500b9d690ef6f25f77f9638def | c66a556c1d5012af3b69c16ba407b3d444ea23be | refs/heads/master | 2022-07-22T16:46:10.612961 | 2018-09-26T14:45:35 | 2018-09-26T14:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,200 | r | EDA_uninsured_SAHIE_aggregate_CPS_cty.R |
## Name: Elizabeth Lee
## Date: 11/16/15
## Function: Plot county-level time series and choropleths for health insurance
## Filenames: SG_covariate_data/Cleaned_Data/clean_HI_SAHIE_aggregate_CPS.csv
## Data Source:
## Notes:
##
## useful commands:
## install.packages("pkg", dependencies=TRUE, lib="/usr/local/lib/R... |
a332a4241e8513d080db6201aaede5f62102e199 | b0d0a890851d4f3f658e3c7d9fd8d14d0bb33f3e | /Supplementary Material/Replication Code/Britain-WAS/code/8b_age_adjustment_bis2_imp3.R | 2ed667a17a8672fb37aedc007aa6b10f3c38de32 | [] | no_license | Juannadie/oep-wealth-inequality-inh-fam-background | 7eff1879c5c7c67f98296804c1f3253a8c43b60c | 9e45ff2002e18c180a94d123448aec071f47aa5f | refs/heads/master | 2023-06-30T14:59:29.829201 | 2021-08-06T22:58:55 | 2021-08-06T22:58:55 | 393,522,711 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,208 | r | 8b_age_adjustment_bis2_imp3.R |
library(Hmisc)
#library(reldist)
library(tidyverse)
library(sjPlot)
library(sjmisc)
library(sjlabelled)
library(snakecase)
options ("scipen"=100, "digits"=6)
#### WE LOAD THE AGGREGATION FROM THE PREVIOUS FILE, ###############
dataukh <- readRDS(file = "data_rds/datauk-new-final-no-cpt-new-data8a-bis2.rds")
#THE... |
e4eafb87d4880d048d56da3d5e177aad8f6296a9 | d3c7fd200a1302f27262e5ec72567a25409c1d20 | /aggregate.R | c3a44e9d90288cf81e6ce11aa6e4a629f6c33716 | [] | no_license | sjackman/stat540-project | b6c7371594dd20509d9c650c357145b22b7938e4 | dd864f46bea6d2558039b02b29350e451bf5687a | refs/heads/master | 2016-09-06T11:40:20.098827 | 2013-04-05T03:30:53 | 2013-04-05T03:30:53 | 8,084,590 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 3,732 | r | aggregate.R | # Aggregate the beta values of the probes for each CpG island.
# Input: 1.) normalized beta-value data sets
# 2.) metadata
# Output: 1.) beta-value AND M-value data sets with CPGI attached
# 2.) beta-value AND M-value CPGI-level data (mean)
setwd('~/UBC Stats/STAT540/Group Project/')
library(IlluminaHum... |
9b57743a29664cd7b5f14af02cb7e9de6aff55be | fb5a4392c02428ef7171e757e9dced834f6b72e1 | /04.co-eQTL.R | 5c7c5b22ce11e47245779be91ee29e35a73d05c1 | [] | no_license | pdicarl3/BiolPsychiatry_2019 | 99d05e44fdf56a3cc109543d4672343725b80ff5 | 82de7fe00e7237b44b6e4b7ebb0957efe9914c69 | refs/heads/master | 2020-04-24T19:52:04.835367 | 2019-07-03T13:59:21 | 2019-07-03T13:59:21 | 172,226,048 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 2,319 | r | 04.co-eQTL.R | #########################################################################################################
### co-eQTL - association between module eigengene and SNP genotypes ####################################
#########################################################################################################
na... |
89d1dff8865c9f477a7a5ade211d93b884bf5454 | 2605ed5c32e799ddfd7b1f739800e35093fbc24e | /R/lib/netdiffuseR/doc/introduction-to-netdiffuser.R | 6706f0827d93f8ac54632a59ab1dcda68065e2cc | [] | no_license | BRICOMATA/Bricomata_ | fcf0e643ff43d2d5ee0eacb3c27e868dec1f0e30 | debde25a4fd9b6329ba65f1172ea9e430586929c | refs/heads/master | 2021-10-16T06:47:43.129087 | 2019-02-08T15:39:01 | 2019-02-08T15:39:01 | 154,360,424 | 1 | 5 | null | null | null | null | UTF-8 | R | false | false | 3,918 | r | introduction-to-netdiffuser.R | ## ----Setup, echo=FALSE---------------------------------------------------
library(knitr)
knitr::opts_chunk$set(fig.width=9, fig.height=6, out.width="600px",fig.align = "center")
## ----Simulating diffnets-------------------------------------------------
library(netdiffuseR)
s <- 11532
set.seed(s)
diffnet_ran <- rdif... |
56811c3021abe466d830c901ccd1e5adea8d25b0 | f3a979438f0ed4305cd01be796cb28f53d3bb538 | /Chapter15/article_plot1.r | 937b8e0a5b8f2e1dad72cbbb369509fe589f8d4a | [] | no_license | scchess/DataMiningApplicationsWithR | 2be6a064106a44c76b4577a5c15a0e065cd89260 | 580f5a9d3c749c2f6d00e437a28cd8705bf6ab76 | refs/heads/master | 2021-06-14T18:21:08.155141 | 2017-01-27T14:38:02 | 2017-01-27T14:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,271 | r | article_plot1.r | #!/usr/bin/Rscript
# Rscript cost k mean
# importations
library(Matrix)
library(cluster)
source("./plot_functions.r")
par(cex=2)
# several variables
filename = "Cluster3_dnssec.txt" # input filename
#filename = "cluster_entry_5min.txt"
output_file = paste( "k_clusters_bin_unbound.txt") # file where to print
... |
90a80449967ebcb16201f58ae93f2134f2b6c8cf | 5f6fca5dcf1331f0f0ecba1af68d062612c9c7d3 | /Projekt_2/IFSpremium/R/SierpinskiCarpet-data.R | b80763048a269daa5d6a261240d42cdcc1a305b0 | [] | no_license | ultramargarine/ProgramowanieWizualizacja2017 | 421666d332c3ff3ffea40b6d12be10537ef41654 | fcfd5b393717ec6ca96919656b44d3c4bcbd7d93 | refs/heads/master | 2021-09-15T09:01:58.860448 | 2018-03-08T22:00:50 | 2018-03-08T22:00:50 | 105,997,439 | 0 | 0 | null | 2018-03-08T21:58:51 | 2017-10-06T11:32:12 | R | UTF-8 | R | false | false | 278 | r | SierpinskiCarpet-data.R | #' Sierpinski carpet fractal.
#'
#' List of contractions for Sierpinski carpet.
#'
#' @docType data
#' @keywords datasets
#' @name SierpinskiCarpet
#' @format An object of class \code{'list'} of length 8.
#' @examples
#' plot(createIFS(SierpinskiCarpet), 5)
"SierpinskiCarpet"
|
dfd192702253ced84d8b0be4f1c8d2a22dca5da9 | a5c335dc2dcb70b72f314b05bff5560789d7cb35 | /man/ftd_prefixes.Rd | 64f821417e5babc0c6e80d672588e05e164f6c7e | [] | no_license | cran/fulltext | 24edf71c4a29b8f201750bdd6f86bf7abce09cba | c48f2efb650512f5d2bc10282f5ba65b8728e670 | refs/heads/master | 2021-06-17T05:05:10.740944 | 2021-06-12T03:10:07 | 2021-06-12T03:10:07 | 40,326,100 | 6 | 5 | null | null | null | null | UTF-8 | R | false | true | 690 | rd | ftd_prefixes.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ftdoi_other.R
\name{ftd_prefixes}
\alias{ftd_prefixes}
\title{Prefixes}
\usage{
ftd_prefixes(id = NULL)
}
\arguments{
\item{id}{(character) a DOI prefix. Default is \code{NULL}, which
gets all}
}
\value{
named list of details of the publisher... |
f41a2b0a76934d751e7f58b5c218d5b7573ae508 | 5df5335b9dc6e3b24d7f73488067cda39e032524 | /cachematrix.R | a11d2da32f04862f3151178f1457c306afb41f5b | [] | no_license | basi4869/ProgrammingAssignment2 | 7eb4ba364fd219db92d83db7e8b0013c75c20145 | 5302aa8c21b1b0c7954fa11967111245ea627e72 | refs/heads/master | 2020-12-25T04:08:55.245693 | 2014-06-20T07:44:35 | 2014-06-20T07:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,123 | r | cachematrix.R | ## make use of cache when computing the inverse of a matrix
## makeCacheMatrix creates a matrix object whose inverse can be cached
makeCacheMatrix <- function(x = matrix()) {
m.inv <- NULL
get <- function() {
return (x)
}
set <- function(y) {
x <<- y
m.inv <<- NULL
}
get.inv <- function() {
... |
04bd1df8e9510d08b90bf04810861e9d3928a959 | 164a4905afb7f7b825f704c44daa00914cc97af2 | /tests/testthat/test-docx-plot.R | d21c3cb4933bbaf1d0eea4e85ece579b2b546824 | [] | no_license | hhy5277/ReporteRs | b8403e5a71f124bf682a9e6fb4b8839a72f8676b | fc1e891ffea15cdbaeb4d727d17205dccca2089e | refs/heads/master | 2020-06-03T18:38:17.477441 | 2018-11-30T14:06:06 | 2018-11-30T14:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,571 | r | test-docx-plot.R | context("docx plot")
library(ggplot2)
dummy_plot <- function(){
plot.new()
points(.5,.5)
}
test_that("[vg] no size generate no error", {
skip_if_not(check_valid_java_version())
doc <- docx( )
doc <- try( addPlot(doc, fun = dummy_plot,
vector.graphic = TRUE), silent = TRUE)
expect_is... |
0cbc1d7fe9afc6062a5278a529ed63e67e43dd35 | 99f6134c198a9c45ebcf6adbcdfebaeb37511318 | /shinytest/tests/utils.test.R | a88fe635b99bb89028ebfa923872286580697651 | [] | no_license | zappingseb/EARL2019 | 3d8cb9d3b48239587fb8387e14b054ef8cc852ae | 53c9d4540c1659d93116ddf727443c2d00682295 | refs/heads/master | 2020-07-13T17:56:35.231798 | 2019-09-12T19:07:26 | 2019-09-12T19:07:26 | 205,126,983 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,598 | r | utils.test.R | get_strings_from_p_html <- function(app_elem){
HTML_in <- XML::htmlTreeParse(app_elem, asText=T, encoding = "UTF-8")
XML::xmlApply(
HTML_in$children$html$children$body,
function(x) XML::xmlValue(x[[1]]))
}
get_code_from_div_p_html <- function(app_elem) {
HTML_in <- XML::htmlTreeParse(app_elem, asText=... |
a980cbafba9f0f505970a92ffc209a81fb2b629d | e92f2ab483b8c925fc15500b602b35dfb0d03a0c | /process_database.R | 16e4b92dd3669173c01873927a11022f9023e587 | [] | no_license | FluentData/weather_data | 384e7cb065abe23e0c0c99579bc751d9405b3e44 | 371b9441c2e7c653cf2f99f58cd1347f00a52e89 | refs/heads/master | 2021-01-17T18:50:45.708935 | 2016-06-19T12:18:26 | 2016-06-19T12:18:26 | 61,478,879 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 892 | r | process_database.R | library(ISDr)
con <- dbConnect(RSQLite::SQLite(), "D:/Weather/ISD_Indiana.sqlite")
dbListTables(con)
errors <- dbReadTable(con, "Download_Errors")
readings <- dbReadTable(con, "Readings")
dbDisconnect(con)
history <- getISDhistory() %>%
mutate(USAF = as.integer(USAF),
WBAN = as.integer(WBAN))
in_stations ... |
babdcddf6fc7629090354757e3ee12760beb45c4 | d618806ca936970fa03bcc1c0be51c6dfba88b39 | /tests/testthat.R | bffb6ab760b83cbfbc203ddd701ce36a15b9e372 | [] | no_license | cormac85/packagerrr2 | 675bef0173a32f81b2ffc229422a317ddf286ea9 | 6bfca40956b2f325e7414cd5136e22cb6492631e | refs/heads/master | 2021-05-12T02:39:57.689962 | 2018-01-15T19:04:49 | 2018-01-15T19:04:49 | 117,594,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 66 | r | testthat.R | library(testthat)
library(packagerrr2)
test_check("packagerrr2")
|
6941f9f91bb7d0b88665df0b9d6294acf55bb5e6 | 2e238ef4214dea849ce796268862256fdf0bc7da | /coastal_ts.R | a9756162df511843e53b2ee95c5293c11403eb74 | [] | no_license | farnazn/coastal_ts | 1f2618498ae24cba29b628a26a83eeb19bd9837a | 7441cfd65ec2ae8d230948d89244fb25957fec27 | refs/heads/master | 2021-05-15T15:09:45.434468 | 2018-01-24T23:24:00 | 2018-01-24T23:24:00 | 107,284,357 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 19,008 | r | coastal_ts.R | ################################################################################
# 1. Setup
################################################################################
pkgs <- c("devtools", "randomForest", "dplyr", "rjags", "arm", "xtable","caret",
"ggplot2","knitr")
cran_no <- pkgs[!pkgs %in% installed.... |
6d38ede45f0e647d03d3c94e69b5a08ddef74a26 | d1bc382da458eece07e01459a903302b8d129919 | /new nb.R | 497cb2b1730599b6a1adee3170ffb99f689d2590 | [] | no_license | 123saaa/Hello | 00f09762363b1ff81c56d0863e393d5d6cfe6e85 | d451bb093691ad4dfaed5283960fa4e5728b54e7 | refs/heads/master | 2022-12-28T10:59:08.458103 | 2020-10-02T03:12:24 | 2020-10-02T03:12:24 | 281,630,664 | 0 | 0 | null | 2020-08-18T06:01:46 | 2020-07-22T09:14:42 | null | UTF-8 | R | false | false | 565 | r | new nb.R | library(caret)
library(rsample)
library(klaR)
nb.features
load(file = "/Users/wangyunxuan/Downloads/caddata (3).RData")
df=as.data.frame(cad.df.balanced)
#head(df)
#which( colnames(df)=="Cath" )
#n<-ncol(df)
#c(1:54)
#c(1:42,44:54)
set.seed(123)
train <- train.df[,c(predictors(nb.features),"Cath")]
test <- test.df[... |
3474e5c5a1ff5ab26440559c430703089c16c2fe | a754951b3c8e53c21463b37c459be7db8445d942 | /plot4.R | 0222274fd9f42ad68462c71f6e293c1159d74f8b | [] | no_license | kcpyeung/ExData_Plotting1 | 054694a4d8c613775b1281f10b61d84763d22449 | a803bca85cf68d87d662a433fedd12d02e908865 | refs/heads/master | 2021-01-24T21:47:52.466576 | 2015-10-10T14:39:49 | 2015-10-11T06:15:27 | 44,011,658 | 0 | 0 | null | 2015-10-10T13:27:43 | 2015-10-10T13:27:42 | null | UTF-8 | R | false | false | 1,049 | r | plot4.R | data <- read.csv("household_power_consumption.txt", sep=";", na.strings="?")
data <- data[as.character(data$Date) == "1/2/2007" | as.character(data$Date) == "2/2/2007", ]
png(filename="plot4.png")
par(mfrow=c(2, 2))
x <- strptime(paste(data[,1], data[, 2]), "%d/%m/%Y %H:%M:%S")
# top left
y <- data[, 3]
plot(x, y,... |
d54e0971c977ce1c63e65057b2c020056a2916a2 | c9e33c4fa8734f0ea069dab3ff487a1f8f4a4eb1 | /man/Berkowitz.Rd | a8d9895708409e00c619ac971390d6f67a07b54e | [] | no_license | mpiktas/acp | 9ae68d8dff87627abeaacdd01d372eb4f6eec377 | 92f0fc787a2a11601a495074d5e36176ddb634ea | refs/heads/master | 2020-05-01T02:06:15.017074 | 2014-12-31T10:21:43 | 2014-12-31T10:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,763 | rd | Berkowitz.Rd | \name{Berkowitz}
\alias{Berkowitz}
\title{Berkowitz test}
\description{Implements Berkowitz test (2001) for density evaluation.}
\usage{
Berkowitz(ydata, yhatdata, rep, ...)
}
\arguments{
\item{ydata}{ a data frame containing the real values of the dependent varible. }
\item{yhatdata}{ a data frame containing the fitte... |
f6d351deac7d24ec09f9ddda528aa94c7e8e3a42 | 917e0bde0b68e7f1bfdb489b68137ebf9b06f704 | /examples/example-yshape.R | db2b0480334db8239398111c5eda5fe4adb48443 | [] | no_license | p-soma/cedarmapper | 331a25e846d511b269b72b266b78e28de2ca268d | a665d326ec241da650a802d3297e565a2ca54191 | refs/heads/master | 2021-06-17T03:58:52.743438 | 2017-05-22T15:33:47 | 2017-05-22T15:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,651 | r | example-yshape.R | #' Y-shaped data example
#' Synthetic x,y data in shape of Y when plotted for testing Mapper output
#'
library(cedar)
testdata = y_data(100)
plot(testdata, main="Our example Y-shaped, x-y data")
cat ("Press [enter] to run Mapper and plot")
line <- readline()
# create graphmapper object, set lense to be the density... |
c7bb52b3fcff6c35fb71bac092dc0738ec47b4d5 | ff7c424aab80e944be984f44578ae0487c2b751b | /evolutionnary_constrainte_dnds_pspn_10000genomes.R | 93b1cfc02eb5bdee3d53c651397794f1bab2efeb | [] | no_license | mmdavid/R_ensembl | 07db96d099c827449519d598be008d53202d0184 | f76d704af3d78849b8bff6e734a52faa3e9ff8d6 | refs/heads/master | 2021-01-10T06:43:38.482971 | 2016-01-13T23:07:59 | 2016-01-13T23:07:59 | 36,760,530 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,131 | r | evolutionnary_constrainte_dnds_pspn_10000genomes.R | #usefull ggplot2 links:
#http://docs.ggplot2.org/0.9.3.1/geom_point.html
#now let's try with the 1000 genomes projects
#pnps_file_1000Gafricanpops contains Ensembl Gene ID, PN, PS, DN and DS (order of the columns). PN and PS is from african pops from the 1000 Genomes project.
pnps_file_1000Gafricanpops<-read.table("p... |
b18e209ce20ffd926296e8018b5ad0ce89f400cd | 81cca83f3254f2a0fbc5835d938473b46b608096 | /RESel_v1.4.6/analyze_dig.R | 7aaf859292769e5ad6f017fef9505130dc42db24 | [] | no_license | mikesovic/RESel | 2e012db9f08734f575c08e702f185dad79ee386a | 32d5193eb1e086440db8f70a75acd94454702574 | refs/heads/main | 2023-08-11T13:50:56.471923 | 2021-09-07T20:02:39 | 2021-09-07T20:02:39 | 404,092,708 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,465 | r | analyze_dig.R | library(tidyverse)
args = commandArgs(trailingOnly=TRUE)
#annotation (bed) file, if present, will need 4 columns, tab delimited and no header
#4 fields: chrom_name, start, end, feature_name
#this is used to check for overlap of the fragments with specific features/positions of interest.
#the name of this file is given... |
4884eb083a0afe43f08666c9501697db540eadbd | 02b1081c868a38735cf46af3fc47bbcd0e71065f | /R/uiModResult.R | 95ba1fa99187c316a5985d89efaf347be440bc4a | [] | no_license | SaJaToGu/bullwhipgame | 806441486b82aae10032f99c5e8b01758ccc20a6 | 88a6ca92f91d77001133144ae8851d7c48f03eb6 | refs/heads/master | 2018-10-23T15:54:42.010448 | 2018-08-20T12:33:57 | 2018-08-20T12:33:57 | 119,365,547 | 0 | 0 | null | 2018-01-29T10:05:37 | 2018-01-29T10:05:37 | null | UTF-8 | R | false | false | 569 | r | uiModResult.R | library(shiny)
library(DT)
#' User Interface Module for Results
#'
#' @param id character, used to identify a namespace
#' other parameters , see \code{shiny::\link[shiny]{tabPanel}}
#' @return a \code{shiny::\link[shiny]{tabPanel}} containing UI elements
#' @export
#'
uiModResult <- function(id,
... |
e89923e9b746978304de78b2663cbfeee2b7bc0a | 983b741705ad1365fd30e114d787bd4f300e292b | /data_misc/thermo_encoding.R | bd13e20bdad38faad3f9a5f59b7199c59b2953dc | [] | no_license | gefero/data_misc | 085f1d260edda616f9d2905f66cc78682850faf0 | e16457cfe67376ac3c8877b820b5e150599feacc | refs/heads/master | 2020-04-08T21:48:29.788144 | 2019-02-11T00:08:58 | 2019-02-11T00:08:58 | 159,759,182 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 610 | r | thermo_encoding.R | ####################################################
############### Thermometer encoding ###############
####################################################
term2<-function(z,name="",media=T){
z<-as.character(z)
z<-model.matrix(~z-1)
z<-1-t(apply(z,1,cumsum))
if(media==TRUE){
... |
5bc98af011f39395f39f6c2608b3aaeb21db6b90 | 635528230f899dda7d1d30d52a62e03b4ed38d0e | /man/slots_cleaned.Rd | 19e922aec80822a35f3beb42ac0552ea30f82471 | [] | no_license | deepanshu88/cowin | 3850498ccfd858ece73e5c3c0cd176b0d292a1f2 | d36335b0570ac4af326b209a4228e4215f4945d9 | refs/heads/main | 2023-05-12T05:37:03.260657 | 2021-06-12T07:17:56 | 2021-06-12T07:17:56 | 365,274,011 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 576 | rd | slots_cleaned.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cowinAPI.R
\name{slots_cleaned}
\alias{slots_cleaned}
\title{Clean Output of slots_district() and slots_pincode()}
\usage{
slots_cleaned(slots.df, age_limit = NULL)
}
\arguments{
\item{slots.df}{Dataframe obtained from slots_district() functi... |
f2bc623ade73ec990725b933c68ac3a7fc66e9d1 | 81828e33db8d84acbda494a2ab8c27f0dee62d58 | /File/Practice.R | adfed6af33640dc7f46acfdfca049ce0a55dd003 | [] | no_license | KSTVCHATTERJEE/R_in_Action | 6363804c9587a6649b03750b2e4f2496080588ad | dc77c782498bc577465b2c7bf22b975cbe23920e | refs/heads/master | 2021-01-22T21:12:48.921682 | 2019-04-09T10:02:22 | 2019-04-09T10:02:22 | 100,679,648 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,493 | r | Practice.R | # R - Practice
#ST33062P
#Question - 1 ----
gender <- c('M','M','F','F','M','M','M','F','M','F','F','M','F','M','F')
systolic <- c(139,125,142,99,101,136,145,100,169,130,125,89,150,152,142)
diastolic <- c(82,85,91,100,104,88,97,70,107,92,95,88,61,78,99)
df1 <- data.frame(gender,systolic,diastolic)
df1
mean(df1$systolic... |
b8f2ff95777ce941855369b9a7610c86ae768ac4 | bf5a581e64ab88975da7f457c23a586d3a2faf44 | /R/generateReport.UI.R | 579f6f7c240e4264328ee38e8ed0d5e551f0d79e | [] | no_license | lockedata/PackageReviewR | efcaeade76b8bf1fede5bfbf1a3ec29d169f76ab | bb6c0246641051ce7ae17c261b14a162143067fa | refs/heads/master | 2021-01-19T11:11:43.880318 | 2018-05-10T06:12:18 | 2018-05-10T06:12:18 | 87,942,894 | 18 | 0 | null | null | null | null | UTF-8 | R | false | false | 458 | r | generateReport.UI.R | #' Generate report via UI
#'
#' @param template An alternative template, if required
#' @param ... Additional arguments to [rmarkdown::render()]
#'
#' @export
#'
#' @examples
#' \dontrun{
#' generateReport.UI()
#' }
generateReport.UI<-function(template=NULL, ...){
if(is.null(template))
template <- system.file("te... |
04f0de26a3327dc47986fd1e1db4eeeab0824872 | ec25b6fd7bbba5626dc0b19719dee3fa0278a3ee | /shap_plot_data.R | 134a3f31fc531e0e35fc6df7d32a4ed3324c09e7 | [] | no_license | psubs/solar_flare | ebf0bee06c52469575c92210f8aa271275e12b16 | 5f9f8a7c3e45428bec47d2fc1b95b53eb5b14ecc | refs/heads/master | 2020-07-17T01:14:10.941522 | 2019-10-03T15:52:44 | 2019-10-03T15:52:44 | 205,910,538 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 23,216 | r | shap_plot_data.R | allcovs<-fread("ieee/allcovsbase.tsv")[,unlist(covs)]
pat<-paste0(allcovs,collapse="|")
global_shap<-function(shapdt, shapcols,abs=TRUE,byvars=NULL){
if(abs){
aggf<-function(x){ mean(abs(x)) }
} else{
aggf<-function(x){ mean(x) }
}
if(!missing(byvars)){
global<-melt(shapdt[,lapply(.SD, fu... |
e0757c9e09270f4b003177fe327634ec3ab39f11 | 2b990f06b7e44ca13de1e87286338b214d63ead3 | /R/plot_calibration.R | 38b0f00db01a243f4968d5183b38ede47afb34ff | [] | no_license | MichalOleszak/footballpredict | 0728ca469d6bd2a6109d1f5b50a41e0b6edf0203 | 4b9249a06425474f4aaeef3bf856bb4ed84efb2a | refs/heads/master | 2020-03-27T05:34:01.123660 | 2019-10-08T22:19:05 | 2019-10-08T22:19:05 | 146,030,790 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,329 | r | plot_calibration.R | plot_calibration <- function(ensemble_preds, games_train = NULL) {
if (is.null(games_train)) {
games_train <- readRDS(file.path(path_data, "games_train.rds"))
}
obs_train <- 1:round(nrow(games_train) * 0.8)
obs_test <- (tail(obs_train, 1) + 1):nrow(games_train)
dat <- ensemble_preds %>%
bind_cols(... |
e068e03cf6295a258571c4f70904ce2c8f2eac85 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/rbmn/examples/arcs4nbn1nbn.Rd.R | 1c2f41ac73ff2ab552126f7a3227631ee30e6ecb | [] | 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 | 198 | r | arcs4nbn1nbn.Rd.R | library(rbmn)
### Name: arcs4nbn1nbn
### Title: returns the list of 'parallel' arcs of a crossed-nbn
### Aliases: arcs4nbn1nbn
### ** Examples
print(arcs4nbn1nbn(rbmn0nbn.01, rbmn0nbn.04));
|
dd47fd615a43da4c2e2376b1da4f6f2a00593b38 | c1140c29282b6135c1c828196d7245972c018de7 | /TwoSimR5/R/GetANewSimulation.r | 6068dfe97b3f8cfd9f15308d2879672b0ca2e8d9 | [] | no_license | lenarcica/SimulationStackForBayesSpike | 467835d2cac63099c357ceb3f29b0e641d806965 | 3a54f517a835a094b60f9fba20efa7b760949e3f | refs/heads/master | 2020-04-15T19:01:25.806506 | 2019-01-09T18:36:48 | 2019-01-09T18:36:48 | 164,934,682 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 45,787 | r | GetANewSimulation.r | ################################################################################
## LookToGetNewSimulation()
## (c) 2009-2018 Alan Lenarcic
##
## As commanded by "AssessFirstTime()" this will look into which Estimators and Simulatiors
## haven't been conducted and uses SimMeData() to get new simulations.
##
##
... |
e0b9a4a89dc678b39ac8a867996e9de3e7e89f16 | 7fdd10a4a052e62efc85023717ae64f8442c9eae | /parse.R | 86cfaa27f898e21487b72f3d38a236297fc01a68 | [
"LicenseRef-scancode-public-domain"
] | permissive | jmoggridge/ottawabeaches | 515d0cddabf7c5df9d07a168d8b6a1d19ec9d0da | 9d1b4f85d76d6919c90dd896d0bab1bc8e4aabf6 | refs/heads/master | 2022-10-05T08:02:57.837431 | 2020-06-04T15:20:10 | 2020-06-04T15:20:10 | 259,743,153 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,573 | r | parse.R | library(tidyverse)
library(lubridate)
# library(rcartocolor)
library(zoo)
setwd("~/Dropbox/R coding/ottawa_beaches")
### CSV data:
# geographic data
# beaches count and beach status data
beaches <- read.csv("data/raw_data/beach_coliforms.csv", strip.white=TRUE)
opens <- read.csv("data/raw_data/beach_status.csv", stri... |
026a29eca863fc13c1da946d8347b4ad4546de50 | 205d6eeaea09cf2855140f159759373520a04b87 | /R/pprofile.R | fece35dbfecb385035661297ac15ed0c23ff58f5 | [
"MIT"
] | permissive | vineetrepository/patprofile | 998d9c3befbc20f484765373c6338770e005cee6 | 214c9838362cbf4374302ac2f78faa323686bb18 | refs/heads/master | 2022-04-23T16:53:28.958254 | 2020-04-17T07:58:02 | 2020-04-17T07:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 237 | r | pprofile.R | #' Patient profile package
#'
#' Patient profile module and submodules for various ADAM datase for plug & play
#' in Novartis Shiny apps.
#'
#' @import shiny
#' @import data.table
#'
#' @name pprofile-pkg
#' @author Renan Sauteraud
NULL
|
72f9bb9276594e6474b9c1cc4bada37c832846f9 | 28c777d15c558f5e09adafa8b513eb58b3911374 | /R1.3/temp.R | 9db931e9a9294f3852af6335e784f6f1fbbbf659 | [] | no_license | nandatascientist/XeevaIDM | 48aee051500584170f1b79f6326c16111a806010 | 74d7aad9ea08cb03f4a77f2f69eb6a7ac119f8e4 | refs/heads/master | 2020-04-09T14:39:18.690464 | 2016-12-01T20:53:46 | 2016-12-01T20:53:46 | 31,968,489 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 308 | r | temp.R |
testinput<-"[12345678]"
returnL3Value<-0
inputText<-gsub("\\[|\\]","",testinput)
if (nchar(inputText)==8){
if(substr(inputText,5,8)!=c("0000")){
returnL3Value<-as.numeric(
paste0(substr(inputText,1,4),"0000"))
}
} |
ba69fb4f6768bb680aedf4a4c49ff26804feacdf | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/data.table/examples/duplicated.Rd.R | f8f473d1e4bd6eac70c1a78ace04a4a63b09a3fc | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,741 | r | duplicated.Rd.R | library(data.table)
### Name: duplicated
### Title: Determine Duplicate Rows
### Aliases: duplicated duplicated.data.table unique unique.data.table
### anyDuplicated anyDuplicated.data.table uniqueN
### Keywords: data
### ** Examples
DT <- data.table(A = rep(1:3, each=4), B = rep(1:4, each=3),
C... |
7349886fd451c190e512d91a7c24afc751f4bb82 | 3d6ae65b66466ec4ff7d222d70509e2ec3113b18 | /man/PICrefine.Rd | 9f21e5c225285fad73a2ee78135fd1e09dc1c326 | [] | no_license | zmzhang/KPIC | efe4d324de288e990ca3f4b1c7c2759981c731aa | 8a7a61ba898f1e8c5ce273a73099ce2d9457c754 | refs/heads/master | 2021-01-20T03:54:11.381311 | 2016-07-26T03:39:01 | 2016-10-24T07:48:54 | 89,603,929 | 2 | 1 | null | 2017-04-27T14:02:07 | 2017-04-27T14:02:07 | null | UTF-8 | R | false | false | 559 | rd | PICrefine.Rd | \name{PICrefine}
\alias{PICrefine}
\title{
Refine the PICs.
}
\description{
Remove unsatisfactory PICs by calculating the Gaussian similarity, sharpness and SNR
}
\usage{
PICrefine(PICs, n = 1)
}
\arguments{
\item{PICs}{
the result of the extracting through getPIC function
}
\item{n}{
a parameter for calculating t... |
290c601337ce03e4aa2951ebc68ffc233fab2f14 | b6e31cfa3c6bb42f2f7f32ab2c49b372149b4924 | /man/Est_regions.Rd | b373d896f234c85938a89b5151def4fd21ed17ef | [] | no_license | marcjwilliams1/Alleloscope | b2b2020b800d1ad2e63154b130ae2626d0a13e61 | dbf1b7773c197affedac540b49ea9c4a3a6c0e20 | refs/heads/main | 2023-08-07T14:30:27.923798 | 2021-09-27T03:06:33 | 2021-09-27T03:06:33 | 394,618,929 | 1 | 0 | null | 2021-08-10T10:57:18 | 2021-08-10T10:57:17 | null | UTF-8 | R | false | true | 1,823 | rd | Est_regions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Est_regions.R
\name{Est_regions}
\alias{Est_regions}
\title{Perform EM iterations on the filtered cells with barcodes, and plot the results for each region.}
\usage{
Est_regions(
Obj_filtered = NULL,
max_nSNP = 30000,
plot_stat = TRUE,
... |
0e20c17028a78365fd594ae529fb5df0e8ad51aa | 19b426c6b55f0bdf799de76d577fe0736549ba6d | /man/gc_list_courses_response.Rd | 8bf4566408d4e4416423753a9789d51ab06cacf8 | [] | no_license | curso-r/googleclassroom | 7b9891d37d8b6ad64107b623bccdd01194fdbade | 60045dc9ca750f3ec917f5879807b937b6988ddc | refs/heads/master | 2022-06-22T16:09:17.051625 | 2020-05-06T22:50:54 | 2020-05-06T22:50:54 | 260,591,170 | 3 | 0 | null | null | null | null | UTF-8 | R | false | true | 576 | rd | gc_list_courses_response.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classroom_objects.R
\name{gc_list_courses_response}
\alias{gc_list_courses_response}
\title{ListCoursesResponse Object}
\usage{
gc_list_courses_response(nextPageToken = NULL, courses = NULL)
}
\arguments{
\item{nextPageToken}{Token identifyin... |
ab90ab6eeb51792319935b6d069cfad42d61164a | 26c37f1bdbcb50846dfa1473accf3853152ed319 | /NaiveBayes.R | 80e0af13a0b03ee10b82c16380758c17dd8851c0 | [] | no_license | sskarkhanis/KaggleGrantsPredictionR | 0da2fd0aa31056e88116ed8cf0d76f042ce931de | 03e049502e49bdaa8e69b2f2e975c2bb27c2000b | refs/heads/master | 2021-01-01T16:51:31.899671 | 2014-09-04T18:11:04 | 2014-09-04T18:11:04 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 593 | r | NaiveBayes.R | library(e1071)
library(pROC)
N<-5 # 5-fold
CV<-generateCV(training_grants,N) # generate the CV-data
results<-list()
auc<-rep(0,N)
# run the crossvalidation
for(cv in seq(N))
{
#train the model
bayes <- naiveBayes(Grant.Status ~ Contract.Value.Group+Age, data = CV[[cv]]$training)
#predict on unseen data
p<-pre... |
587d355c842c480b84ab2029287be315e0ae0c09 | e526a751fb3419c44a0d257c1d79d7844ca9bcd4 | /Rcode/arules_analysis.R | 8d94c11838fdb427e00c849d7ea36f641231c691 | [] | no_license | PeaWagon/cse780-project | eabd650ed3d2e2a0e8854e998696a5b2c7b15c6e | 65c22cfc1a1dc06e510f6416c28813c61a7e9285 | refs/heads/master | 2020-05-04T09:40:37.228802 | 2019-04-02T12:51:41 | 2019-04-02T12:51:41 | 179,073,412 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,633 | r | arules_analysis.R |
# association rules analysis
library(arules)
source("std_lift.R") # professor's code to calculate
# standardised lift
infile <- "../data_processing/drug_data_trimmed_text_len.csv"
d <- read.csv(infile)
# we can consider:
# drugName (1), conditon (2), rating (4), revLenDesc(9)
x <- d[, c(1,2,4,... |
579b636fd43df1f4c1563a48ebae0129ecd81575 | dc60c8532ebe40eb2bdb6342e0d5896078523b48 | /code/004_outlines_inspect_harmonics.r | 0c0813a96bf8257d9111faad9808c7e83a75a454 | [] | no_license | benmarwick/marwick-and-maloney-saa2014 | 9f9f4be835b28c9b4101f4f8b771b645f1db3d53 | fe0df12fecec9c3511e21b4e8882bbf1e46f6f8b | refs/heads/master | 2021-01-22T04:49:30.378010 | 2014-04-23T09:01:54 | 2014-04-23T09:01:54 | 18,430,545 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,497 | r | 004_outlines_inspect_harmonics.r | # determine how many harmonics to use in
# the elliptical fourier analysis
# now just working through http://www.vincentbonhomme.fr/Momocs/vignettes/A-graphical-introduction-to-Momocs.pdf
nb.h = 50 # over estimate harmonics to see what minimum number is ok...
# one method...
# windows() # pops up a new window to hold... |
66b981749023206eb876649902f8b4ed7163c0b2 | 086208ed314b1b2398a80d149a09b42d4da35c1c | /Projects/HCM_SCS_2021_05_TEICHMANN_Convert_litvinukova_file_pt2_Global_HPC.R | 827f708e44706609227f365524b7db48d72458e2 | [] | no_license | vanrooij-lab/scRNAseq-HCM-human | 9505497e055093a5a6b8d0feb07186c8ac2ed405 | 1b27e55e1762a69ef8faef6f0dcf30e108e31cb7 | refs/heads/master | 2023-08-14T13:44:48.798735 | 2023-07-21T12:19:29 | 2023-07-21T12:19:29 | 366,691,443 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,785 | r | HCM_SCS_2021_05_TEICHMANN_Convert_litvinukova_file_pt2_Global_HPC.R |
# This is an edited copy of
# HCM_SCS_2021_05_TEICHMANN_Convert_litvinukova_file_HPC.R
#
# It deals with converting other files from the Litviňuková data set to
# data files I can read.
#
# m.wehrens@hubrecht.eu
# At HPC, e.g.:
# srun --nodes=1 -c 1 --mem=50G --time=2:00:00 --pty bash -i
# R
# etc ..
############... |
d1ca7da50daddf11af23eb88a1ea94bd47f0dc70 | 663aca06846516b68ec31bf53027604e2b41516c | /aveALL_process.R | db6e7bd59dff898e4118c9a122947b1d0d0f60ab | [] | no_license | LiuyangJLU/WGCNA_bestFS | b3dc2c6bdbe45e94426e26c88efd8749e7dc620b | d0277025530a45e231cf98e7becef28da6e09a85 | refs/heads/master | 2020-03-07T00:28:21.438443 | 2018-06-13T01:57:33 | 2018-06-13T01:57:33 | 127,158,070 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,458 | r | aveALL_process.R | #原始脑部数据的处理
#step1:将原始的txt文件写入csv文件,打开文件,删除不必要的行和列
#step2:将数据框的第一列作为列名
#step3:删除第一列
#step4:mode()查看数据类型,如果是list,转换我Numeric()
#eset<-apply(eset,1,function(x){as.numeric(x)})
#使相应的行名等于列名
CRBL_rawset = read.table("E:/R_Code/tissue/BrainTissue/expr_CRBL.txt")
CRBL_csv = write.csv(CRBL_rawset,file="E:/R_Code/tissue/BrainTis... |
82a4e44c0391e5aa6439f987abf0abc8ded2625d | 056a9d1bdf6fc1090c87b013d2ab0953de5cbd29 | /Rcrime.R | 4a589e49a1b05b09adfe6f3e2d251f49b218a286 | [] | no_license | virginiasaulnier/HW1_412 | 04cf10ae2d7d996763b96ec5776d12742d3437fb | f146a5173fb101a4f6a5e339393eb562391dcfe8 | refs/heads/master | 2021-01-18T18:42:33.659116 | 2016-06-22T18:04:50 | 2016-06-22T18:04:50 | 61,148,845 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,725 | r | Rcrime.R |
library(dplyr)
#create a function to read in files, also has ability to skip extra header line, uses headers as column titles and returns data
readin <- function(wd,file,skip){
setwd(wd)
dataframe = readLines(file)
if (skip == "TRUE")
{
dataframe = dataframe[-1]
}
data = read.csv(textConnection(dat... |
624b5cb08bde47ced4a6b2a1f70eedc2ecaa1c38 | 610ba9e0f2469188ce36a0471baeb453a9c031dd | /app.R | 235d108db46566f2b2834b623ec4659df729a755 | [] | no_license | dicicch/DS220Group10 | 57ae11ab00e550b4e757714497cd580a5a7ed5f9 | f789aff1c899bde50e2af308b5c453668d97805a | refs/heads/master | 2020-05-16T13:21:30.691174 | 2019-04-23T20:57:09 | 2019-04-23T20:57:09 | 183,071,430 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,961 | r | app.R | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# Query Structure Reference
#
# query <- '** query **' %>%
# call_neo4j(query, con,
# ... |
92fce769855762c3cdf91bc5d343c8cfaa8b5f31 | 6859b2f6070e639040b89016bf50c72813ae8a1e | /Code/untreaties_download.R | 3da0d3d46b8eda78b267458e2d91d528910407a3 | [] | no_license | kfruge/ehrfruhag_accesspoints | 0ca17f12123e5dc4a60ab99101ca594a0308482f | 36842e2c0ccc6d933c7cea8f2909f75f42c2e63b | refs/heads/master | 2020-03-20T08:15:25.489038 | 2018-06-14T07:05:33 | 2018-06-14T07:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,384 | r | untreaties_download.R | # Author: Kimberly R. Frugé
# File: untreaites_download.R
# Date: 14 June 2018
# Purpose- Download - this file downloads the data from the untreaties repository by Zachary M. Jones (https://github.com/zmjones/untreaties). # Results: This file creates untreaties.csv
setwd("~/Dropbox/ehlfruhag_accesspoints/Data")
l... |
20f103d4efafd1236612b0d9aa81386e5d622e79 | 840d52ada0ecc95c439e74cd563e4404c572143a | /Energy/energy_monthly_average.R | 839edf6f72ae3a91fb39455446fa9cc680b80e53 | [] | no_license | DanTheMinotaur/R-Analysis-Weather-Energy | 8fbb741358c3aa19a4aebcb41bcff2ebfae9bd6b | 5b364cadbb8bfa6d957253092eda32ff3bc77c75 | refs/heads/master | 2022-12-12T06:40:12.263745 | 2019-04-15T23:43:56 | 2019-04-15T23:43:56 | 180,748,582 | 0 | 0 | null | 2022-12-08T04:58:16 | 2019-04-11T08:29:09 | R | UTF-8 | R | false | false | 768 | r | energy_monthly_average.R | # Title : Create groupings of energy_data from eirgide
# Objective : group data in meaningful ways for data visualisations
# Created by: Daniel Devine
# Created on: 13/04/2019
source("./energy_groupings.R")
View(monthly_energy_usage)
colnames(monthly_energy_usage)
# Factor years for display on graph
monthly_ener... |
7037e5e98ad1b6c02c2ffa9345f80615d3ea2e60 | 54d6ea7251681b5a49ab139a0bf332d06da5439a | /plot/Error/PPIC/Kosarak.R | 1128904948b3b117dea3265b1899301818c1ef27 | [] | no_license | wsgan001/MasterThesis-3 | d558b3dcf5b302ef3a4e1e3ffc412ffd67ca29cc | a3dc8797242e3f9b282a8621fced57981fc6bdae | refs/heads/master | 2020-04-07T00:31:18.669699 | 2017-06-03T00:41:58 | 2017-06-03T00:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 950 | r | Kosarak.R |
#DATA
x <- c(0.2, 0.4, 0.6, 0.8, 1.0)
cp4d <- c(262.589, 262.037, 261.587, 256.581, 272.613)
spark1 <- c(108.297, 49.781, 38.638, 32.163, 25.873)
sparkNP <- c(44.389, 34.931, 31.863, 25.149, 20.716)
sparkPPIC <- c(43.858, 34.967, 31.483, 24.314, 19.117)
sparkPPICFix <- c(43.559, 33.130, 30.081, 24.420, 20.054)
#PLOT... |
a341ceb35deada8e167a1bf63e4c5aa5740100ce | 6ee3fb64677ccb66c0f7bb8173ffc36b70868f6d | /src/01-toyline.R | 6ef4dc1bdec923e8e45aca0daab7be619b0cdf71 | [] | no_license | BernhardKonrad/2014-SFU-R | a84b6f250ae55d5fdfee9407298491bc5f373f8c | 181dd129cfd9f63bba96d4d526376121b8cb9e00 | refs/heads/master | 2020-06-02T07:25:23.234051 | 2014-03-01T19:42:02 | 2014-03-01T19:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 230 | r | 01-toyline.R | rm(list=ls())
a <- 15
b <- -12
sigSq <- 0.5
x <- runif(2000)
y <- a + b * x + rnorm(2000, sd = sigSq)
avgX <- mean(x)
write(avgX, "scraps/avgX.txt")
plot(x,y)
abline(a, b, col="red")
dev.print(png, "results/toylinePlot.png")
|
4724f4e18d3974c0641675cee91f8c1df373b3d7 | 05d63cddca66a42c063fefad1ab687867f98e2c5 | /man/bhl_getsubjecttitles-defunct.Rd | 587082654bdfcb51bcd1b9b6ae289e3ef840c705 | [
"MIT"
] | permissive | cran/rbhl | 41783fb4bb0e29a33acb8b720bc21700c45d5277 | 7dc88838844e58455994cc83e602107780e262fa | refs/heads/master | 2021-06-12T00:39:52.208803 | 2021-05-13T03:30:03 | 2021-05-13T03:30:03 | 17,699,055 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 337 | rd | bhl_getsubjecttitles-defunct.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bhl_getsubjecttitles.R
\name{bhl_getsubjecttitles}
\alias{bhl_getsubjecttitles}
\title{Return a list of titles associated with a subject}
\usage{
bhl_getsubjecttitles(...)
}
\description{
Return a list of titles associated with a subject
}
\k... |
f61db1f88483d8be083b60bdc22edd8a7e0bea55 | c36ddf4f524810c12f0dec48350d28476135ee6b | /estimate.R | c4c3dcf9489c87bac63bc8497e544231b585f3e0 | [] | no_license | pnxenopoulos/skellam_soccer | 0a81794492718f508fa0d92261041b445a156ee5 | 0f8a4b2bde963278235c209af6bb836b5774652d | refs/heads/master | 2020-04-13T02:45:44.324789 | 2018-12-31T07:31:59 | 2018-12-31T07:31:59 | 162,911,716 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,032 | r | estimate.R | library(tidyverse)
library(plyr)
skellam.likelihood <- function(row, params) {
mu <- params[1]
h <- params[2]
#params[3] <- -sum(params[4:22])
#params[23] <- -sum(params[24:42])
z <- row$GDiff
lambda1 <- exp(mu + h + params[2 + row$HomeTeam] + params[22 + row$AwayTeam])
lambd... |
ab4f11086dcbb30f952db09fd74d3d4af6769266 | f21e2801678d3d301e11fb28a7de52ca73b66d5b | /lesson 2/lesson 2.R | 13bea63319f5dc6aecd8963b03de7e18506e4476 | [] | no_license | osefatul/Udacity-Data-Analyst | c6d1d91e20144230388e57f2347d63fad5eba670 | 94c31b54430cf5fb20351987106c7a3e22c25f29 | refs/heads/master | 2022-12-12T13:57:01.010899 | 2020-09-01T16:41:16 | 2020-09-01T16:41:16 | 292,031,160 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,248 | r | lesson 2.R | reddit= read.csv('reddit.csv')
summary(reddit)
names(reddit)
head(table(reddit$state))
summary(reddit)
str(reddit)
summary(reddit$age.range)
levels(reddit$age.range)
str(reddit)
#convert a datatype to factor
reddit$age.range= factor(reddit$age.range)
#check the structure of reddit; notice especially a... |
6f3ecf19545189c1f894930df7b988089c5e67ad | 9e8c1f5ac055cbbfd6aae73bca32885bdadcd491 | /Regression/random.R | 749337f00c06b1a490ab0a5d8caf0c35e48b060a | [] | no_license | hughbzhang/SIMR | 682c0a03720933210ed779d13f8b4640f3a83d1f | 9022b2114d139d41738f588ecdb5f951f03220c2 | refs/heads/master | 2021-06-11T20:11:40.144148 | 2016-04-03T07:14:45 | 2016-04-03T07:14:45 | 21,960,479 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 702 | r | random.R | library(kernlab)
CV = matrix(data = 0,7,7)
TRAIN = matrix(data = 0,7,7)
sum = 0;
for (i in 1:100){
random = matrix(data = runif(3000),ncol = 30,nrow = 100)
print(i)
test = random[1:5,]
train = random[6:100,]
Y = c(rep(0,50),rep(1,50))
Y = Y[sample(100)]
if(F){
for(SIGMA in seq(-3,3,by... |
04a4aafd6fbc01c1c015a6be34343ade49563832 | 5a6b954048ef2df667ab9465b477c2257ed1e323 | /ggplot_tutorial.R | 5e557f824eacff699724b40c0ee0097b1da6bd3c | [] | no_license | benchoi93/ACTM-R- | e195e4cc9b2ffaa5b0ba90a19dcd726ef521a242 | 5e1d325e3afb9a6c1085d512e64f73bd295a2515 | refs/heads/master | 2021-04-12T08:58:03.431463 | 2018-03-27T06:31:37 | 2018-03-27T06:31:37 | 126,761,685 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 5,861 | r | ggplot_tutorial.R |
# R + ggplot2 tutorial
a <- 1
b = 1
c -> 1
print(a)
print(b)
print(c)
a == b
a != b
c <- a+b
print(c)
typeof(a)
typeof(b)
typeof(c)
a = as.integer(a)
typeof(a)
################################
# type or storage mode of object
################################
# "logical",
# "integer",
# "double",
# "complex"... |
55ed29cf584d9c9a57f36f622100de84532cb7d5 | a03c8593a2767212e6308872a98cdd37e1ac1694 | /R/fixedvarianceKernGradient.R | 215c4401c79068036b46add183d7e613ea583cb7 | [] | no_license | cran/GPrank | 1362b2e85037660804a7afefac7a7c9ce6c6de80 | a67e15734bd4e8d72a8159453272c526fa374b10 | refs/heads/master | 2021-01-12T13:08:34.932470 | 2018-08-17T14:00:03 | 2018-08-17T14:00:03 | 72,123,173 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 697 | r | fixedvarianceKernGradient.R | #' @title fixedvarianceKernGradient
#'
#' @description
#' Function for computing the gradient of the \code{fixedvariance} kernel.
#' As the parameters of the \code{fixedvariance} kernel are fixed, the
#' gradient equals zero. This function is written to comply with
#' the \code{gptk} package.
#'
#' @param kern GP kern... |
503b4084dd0d70046f0ad8e1c3f32dff056ca8dd | 0a0ae7b243236e823c23bc71b9a0c99625d759a5 | /02 - Build Data Frame - Copy.R | dc727532053445b01ac4d3f06619902112b64c30 | [] | no_license | Jia-Lin/data_science_capstone_project | ff0bdb31182222ffb159e75d63d47267234c414a | 7f43fa73343426192ea3b00a7b59a28201ed6667 | refs/heads/master | 2021-01-10T23:46:10.147500 | 2016-10-09T13:47:36 | 2016-10-09T13:47:36 | 70,405,091 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,000 | r | 02 - Build Data Frame - Copy.R | # 1. Process blog
gram <- readRDS("./training/bigram_blog")
sum <- colSums(gram, na.rm = TRUE)
DF <- data.frame(feature = names(sum), frequency=sum)
gram <- readRDS("./training/trigram_blog")
sum <- colSums(gram, na.rm = TRUE)
DF <- rbind(DF, data.frame(feature = names(sum), frequency=sum))
saveRDS(DF, "./training/blo... |
332d850f62861c9bcc41fec2b593c3976257601d | dea5eb56fb0ef73fc57b354fc4001ef76ee32c59 | /R/ds.glm.R | 2e7699aeb0d5bbb0304a1c0a801e56180fd891bf | [] | no_license | datashield/dsModellingClient | beb48723e8af2d96c574ace3e6e42fe87172f919 | 1b18f86365f163f998c6e90f4853c123c680fe67 | refs/heads/master | 2021-01-10T19:22:52.859131 | 2019-03-09T09:50:09 | 2019-03-09T09:50:09 | 9,456,558 | 0 | 3 | null | 2019-03-09T09:50:10 | 2013-04-15T19:32:25 | R | UTF-8 | R | false | false | 15,365 | r | ds.glm.R | #'
#' @title Runs a combined GLM analysis of non-pooled data
#' @description A function fit generalized linear models
#' @details It enables a parallelized analysis of individual-level data sitting
#' on distinct servers by sending
#' @param formula a character, a formula which describes the model to be fitted
#' @p... |
dc073796ef666f6263580b5b969ed5390a7b0a2c | 023ffb12628a66f4e77a201f5cd54a631afb7927 | /man/ChoosePlots.Rd | 752ef415db56c1dde75223b61aab548a30fa3425 | [] | no_license | fschirr/VirSysMon | 1a36343aa1c7ce09d88da4458371181e451306c0 | 8f3cdbb5001dd9f99f3250eb3b61b8988b04c26a | refs/heads/master | 2020-04-01T21:04:30.566154 | 2016-06-13T15:16:57 | 2016-06-13T15:16:57 | 61,039,594 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 556 | rd | ChoosePlots.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sampling_internal_r_code.R
\name{ChoosePlots}
\alias{ChoosePlots}
\title{Select plots of the dataset.}
\usage{
ChoosePlots(data, num.of.plots)
}
\arguments{
\item{data}{Complete dataset}
\item{num.of.plots}{A number}
}
\value{
chosenplots A ... |
e68a7442b33998f1dd56908641a59493d4018641 | c52caf6775e94a4e74aa6d1d00dba3fa2fdf2ac7 | /2014data.R | 2d68c3b9b97e0e7f616ea83be17feb2b6c624013 | [] | no_license | yamiewoof/CPBLdata | 644ecafe570dd358986b8eef76b483849fa4d478 | 0d7d54400a67ee8dc339f9352ddc697ceb1ed124 | refs/heads/master | 2020-05-09T21:28:41.795118 | 2019-05-01T15:04:46 | 2019-05-01T15:04:46 | 181,444,908 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,416 | r | 2014data.R | #rm(list=ls())
setwd("c:\\baseball")
library(dplyr)
#讀取資料
data2014 <- read.csv("log_process\\logdata\\logdata_2014_corrected.csv",na.strings=c("","NA"),stringsAsFactors = FALSE)
#加上年分
data2014 <- cbind(year = 2014,data2014)
allgames2014 <- data2014 %>% select(1,5:13, 15, 16,18,19)
# allgames2014 <- data... |
8e58c647494c611e0a1b36095f8f80b5419d7764 | e6206fc1b5098534234df1d4d4ce2a12cc5d9bb3 | /R/get-hosp-data.r | 158b4fd095c4655c57b6aa21f6ab6a7f779253be | [
"MIT"
] | permissive | hrbrmstr/cdcfluview | bc37e36cbc588479f50ff30c377f320204fd81a7 | 60ffe50553371148e962daf5559fce8270ce3fdd | refs/heads/master | 2023-09-04T08:52:54.404129 | 2022-11-22T17:49:14 | 2022-11-22T17:49:14 | 29,077,478 | 64 | 24 | NOASSERTION | 2023-05-27T13:35:26 | 2015-01-11T01:26:20 | R | UTF-8 | R | false | false | 4,246 | r | get-hosp-data.r | #' Retrieves influenza hospitalization statistics from the CDC (deprecated)
#'
#' Uses the data source from the
#' \href{https://gis.cdc.gov/GRASP/Fluview/FluHospRates.html}{CDC FluView}
#' and provides influenza hospitalization reporting data as a data frame.
#'
#' @param area one of "\code{flusurvnet}", "\code{eip}",... |
2222cdd945840c2224c1fc536361054b905ce9a2 | 8078d61b576fc31a7ff3c59cf83688042f8660db | /qExponential/man/comp.n.q.pad.Rd | b7fd9ba660d2aa3501f7968b5a27d65d1b590869 | [] | no_license | Alessandra23/q-Exponential-mfmm | ac6704459e5c91e51e9c9a783db022dafc49cde8 | 16789a8653836231908335f890ec236999d009fc | refs/heads/master | 2023-07-12T23:42:13.588015 | 2021-08-17T19:20:07 | 2021-08-17T19:20:07 | 231,951,866 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 312 | rd | comp.n.q.pad.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_comp_n_stand.R
\name{comp.n.q.pad}
\alias{comp.n.q.pad}
\title{Function to create the plot of theta stan comp n}
\usage{
comp.n.q.pad(values, n.values, v.values)
}
\description{
Function to create the plot of theta stan comp n
}
|
523f1c2bad7b952071aa147086bdca876df54df6 | 04a7e4899d9aac6d1dbb0c37a4c45e5edb4f1612 | /man/alert.Rd | f5c27ebda369a6e291ef34d63b025508e016a480 | [
"MIT"
] | permissive | pbs-assess/csasdown | 796ac3b6d30396a10ba482dfd67ec157d7deadba | 85cc4dda03d6513c11350f7f607cce1cacb6bf6a | refs/heads/main | 2023-08-16T17:22:18.050497 | 2023-08-16T00:35:31 | 2023-08-16T00:35:31 | 136,674,837 | 47 | 18 | NOASSERTION | 2023-06-20T01:45:07 | 2018-06-08T23:31:16 | R | UTF-8 | R | false | true | 368 | rd | alert.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{alert}
\alias{alert}
\title{Issue a warning}
\usage{
alert(...)
}
\arguments{
\item{...}{Arguments that make up the message}
}
\description{
Issue a warning
}
\details{
Uses \link[cli:symbol]{cli::symbol} and \code{\link[crayon:... |
b4c1ce84f6a049682e540165f5424e939c79dfab | f2bae7d51a38370043ee35281c89df7bf31b253b | /02_Analyses_ITS1.R | 17597b52c99402f20ab1501961df483e45f7a6bb | [] | no_license | gzahn/Utah_Fires | 31f170c9be80bf7dad5cdc8b2317a400281a2506 | 7501142769816c5b87d68e6467434a448261625e | refs/heads/master | 2022-02-18T05:41:30.606076 | 2022-01-31T17:23:03 | 2022-01-31T17:23:03 | 170,213,972 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 34,440 | r | 02_Analyses_ITS1.R | # ITS Forest Soil Fungi Burn Recovery Exploratory analyses
# Load packages ####
library(phyloseq)
library(tidyverse)
library(vegan)
library(ade4)
library(sf)
library(rnaturalearth)
library(rnaturalearthdata)
library(maps)
library(maptools)
library(tools)
library(ggmap)
library(tools)
library(ggbiplot)
library(microbi... |
b144d62c57fac9ac0a8fdca109d93b44cbc4ffc2 | 57ee3bae6afcd94f0d468cb2a9cbe872e50e020b | /R/h2o-package/man/h2o.downloadCSV.Rd | 6cad24a567a86d78602fad4ff46d9d7032b2dbfb | [
"Apache-2.0"
] | permissive | woobe/h2o | 626b3595251c75ed6d72469b442c467b21cbdeaa | 5a7bbb6d82f6dcc1384dc51dcde227665ce1baf6 | refs/heads/master | 2021-01-24T16:47:36.786749 | 2014-07-28T04:48:02 | 2014-07-28T04:48:02 | 22,338,992 | 1 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,358 | rd | h2o.downloadCSV.Rd | \name{h2o.downloadCSV}
\alias{h2o.downloadCSV}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Download H2O Data to Disk
}
\description{
Download a H2O dataset to a CSV file on local disk.
}
\usage{
h2o.downloadCSV(data, filename, quiet = FALSE)
}
%- maybe also 'usage' for other objec... |
fe9ae5249879b7b198b49a28fddddb1397e615aa | 8a62b8e396a262f4bacdc8db87ea3cf48d93b554 | /run_analysis.R | 6f06395cb9d0244cb5387369747075396c3e3761 | [] | no_license | nimaarvin83/GettingAndCleaningData | a3b0a00e0c38e4bda7937da4526fef945eba8000 | 7ca2bcfad0fae42f7521400e7d714098daa94190 | refs/heads/master | 2021-09-10T10:51:13.741261 | 2018-03-21T04:44:29 | 2018-03-21T04:44:29 | 126,115,434 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,189 | r | run_analysis.R | library(reshape2)
##downloading and unziping the raw data
url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
if (!file.exists("./UCI HAR Dataset.zip")) {
download.file(url,"./UCI HAR Dataset.zip")
}
if (!file.exists("UCI HAR Dataset")) {
unzip("./UCI HAR Dataset... |
d03fa89c572f866bb4da4a28c9175ed5505144fb | dd25fec8c5262b5dd60f4bcd18fa47279bc8b2c3 | /preparing/source/recommend/07recommend.R | 1f9b2f5a38126a888ccacad0bc35bb0ac39ffdf8 | [] | no_license | osj3474/Recommendation-system | a97f1371643f8c093201e0ad8640fe00dbe104e9 | 9f9c77673ac4f95378b73d90266ae26cbc1b3c82 | refs/heads/master | 2022-12-05T00:04:52.565274 | 2020-08-06T03:10:16 | 2020-08-06T03:10:16 | 279,812,379 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 780 | r | 07recommend.R | df <- read.csv("pohang.csv")
m <- df[, -12]
m <- t(m)
m <- m[-1,]
colnames(m) <- paste("i", 1:ncol(m), sep='')
class(m)
View(tt)
tt <- as.data.frame(m)
tt[,c(1:ncol(tt))] <- as.double(unlist(tt[,c(1:ncol(tt))]))
str(tt)
tt[which(tt == 0, arr.ind = TRUE)] <- NA
###
library(recommenderlab)
library(dplyr)
library(tid... |
ce5a80ce770090a5c10f2c3e60fb1daf9d903b0b | 3abf06b894d28b490acc23c2b115181bc7853e77 | /R/plot_decisiontree.r | adacbb3d4944353ea85503f34e1b9cf50f8a6f71 | [] | no_license | cran/specr | 4c5b29a0e2bd91854b01d1ae3c8c42f737fcf46e | 25d5f7931ace474f5b592965814964979907f135 | refs/heads/master | 2023-02-08T06:37:23.073215 | 2023-01-20T12:50:02 | 2023-01-20T12:50:02 | 250,514,715 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,033 | r | plot_decisiontree.r | #' Plot decision tree
#'
#' @description `r lifecycle::badge("deprecated")`
#' This function is deprecated because the new version of specr uses a new analytic framework.
#' In this framework, you can plot a similar figure simply by using the generic \code{plot()}.
#' This function plots a simple decision tree... |
2ea1827f6ee5804cabf435ad120e23f46e29fbdf | 9ed21120bcb596e8065d11744063928724fb1481 | /cesR_demo.R | a6a677e9e76b26c68496c5e1a67c1f1bc24d1a1f | [] | no_license | hodgettsp/cesR_demo | b2ffd5e2a7000d037d267e4f9f81eeddbfa0cc74 | b8ad840af117b589054227842fa781f58707fb7b | refs/heads/main | 2023-02-17T09:41:08.551441 | 2021-01-15T18:33:24 | 2021-01-15T18:33:24 | 329,992,098 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,040 | r | cesR_demo.R | # install cesR package from GitHub repo
devtools::install_github("hodgettsp/cesR")
# load cesR intro R workspace using library()
library(cesR)
# call associated CES survey codes using get_cescodes()
# this function takes no arguments
get_cescodes()
# get a preview of a CES survey dataset by usi... |
2869658b2670e7863fdf9d93d568716e1b5c65b1 | ad8f748aa729abc93294e75c5d6597b2777c2c8c | /man/cmdiff.Rd | 9075c504817edb7dcbe6c30fa2466e7d2e0eb364 | [] | no_license | richardsc/cmocean | 1d655f65676cd214f19c1897de81d02d03583df0 | aa8fd16bfb232ab064598bbafcb189538a44feb9 | refs/heads/master | 2020-05-09T12:14:01.541523 | 2019-04-12T10:49:27 | 2019-04-12T10:49:27 | 181,106,181 | 0 | 0 | null | 2019-04-13T01:35:34 | 2019-04-13T01:35:33 | null | UTF-8 | R | false | true | 695 | rd | cmdiff.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roxy.R
\name{cmdiff}
\alias{cmdiff}
\title{Cmdiff colour palette}
\arguments{
\item{n}{integer giving the number of colours (>= 1) to be produced;
currently it does not make sense to ask for more than 256}
}
\value{
Vector of R colours (\code... |
fa03e8009ff1bcde337ecedd8c2cc1a583393491 | f305ddcebdbc575b5cf6b0509d31006aa5b5c18e | /R/speclib_wavelength.R | 921d0766384b72c043e3b8b5a71a0f673fca0b2b | [] | no_license | keltoskytoi/hsdar | 6f9083f1844e6aa2db534cfa930f17a40be49559 | 8ff148e5aba93be419517385843e0cad7bfe05f1 | refs/heads/master | 2021-07-15T15:08:17.598271 | 2017-10-17T08:31:42 | 2017-10-17T08:31:42 | 111,017,970 | 1 | 0 | null | 2017-11-16T20:19:59 | 2017-11-16T20:19:59 | null | UTF-8 | R | false | false | 288 | r | speclib_wavelength.R | setReplaceMethod("wavelength", signature(object = "Speclib", value = "numeric"),
function(object, value)
{
object@wavelength <- value
return(object)
}
)
setMethod("wavelength", signature(object = "Speclib"),
function(object)
return(object@wavelength)
) |
98eebf1ba345a55aec11102b314fa43176ed87e2 | 0e2859631b841ccdaf020dbdcdd42c5193b77192 | /tests/testthat/test-utils.R | 3679d0aebe07f9c4fbbb98c9444c65d3ddc07ff2 | [
"Apache-2.0"
] | permissive | bcgov/rems | 4f41ccf7588e38bc15e88ed1d6880505eac644cf | 85cbbca54aff440909d9751e7c387adb8fbbba63 | refs/heads/master | 2023-08-17T07:49:23.354561 | 2023-08-10T16:55:46 | 2023-08-10T16:55:46 | 63,990,524 | 20 | 6 | Apache-2.0 | 2023-08-10T16:55:47 | 2016-07-23T00:03:38 | R | UTF-8 | R | false | false | 823 | r | test-utils.R | context("utils")
test_that("set_ems_tz works with all classes", {
datestring <- "2019-11-18"
expected <- as.POSIXct(datestring, tz = "Etc/GMT+8")
expect_equal(set_ems_tz(datestring), expected)
expect_equal(set_ems_tz(as.Date(datestring)), expected)
expect_equal(set_ems_tz(expected), expected)
expect_equal(... |
10f17431645e17961d10f6ca5bb2fe73b94601dc | 29585dff702209dd446c0ab52ceea046c58e384e | /HiDimMaxStable/R/margins.R | 44a001ec30d7bbd9c73d4446c1de6bd47e1f12ed | [] | 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 | 2,722 | r | margins.R |
# Different kinds of margin distributions that are used. The
# distributions must have unit mean
setClass("margin",
slots=list(
name="character",type="character",
d="function",p="function",q="function",
p.min="numeric",p.max="numeric",p.start="numeric"
))
... |
f9a52f6e9da059e320c3ebd0831b2224acf82deb | bf060a4ee1e4d77c4483f9ceeb70ed7ede01c860 | /Stocks 4.R | 9d0b031a487dbf4563e796bb8e944ae517be6b91 | [
"MIT"
] | permissive | Doraflara/financas-r | 599f32bc220c05d0dfb56cc845015e5627ce351b | 0a676de5e1326b177be2b0baf66438a30e0b8a4b | refs/heads/master | 2020-04-28T02:22:19.425110 | 2020-04-13T14:39:30 | 2020-04-13T14:39:30 | 174,895,756 | 19 | 6 | MIT | 2019-05-21T09:19:21 | 2019-03-10T23:55:25 | R | ISO-8859-1 | R | false | false | 7,936 | r | Stocks 4.R | library(tidyverse)
# Parsing of HTML/XML files
library(rvest)
# String manipulation
library(stringr)
# Verbose regular expressions
library(rebus)
# Eases DateTime manipulation
library(lubridate)
# Manipular dados
library(dplyr)
# Uso para unir colunas
library(tidyr)
# Para Gráficos
library... |
516e2aad279aedf8f35e886ede6107f88606fae3 | cf586320910e8f27fe7e9dbe70c5909d550c3d44 | /1_Intro_to_Shiny_materials/Build_UI_scripts_and_images/image_app.R | 1a443f737b1b4ce48fa1cefd89a09e7fdf88620b | [] | no_license | narensahu13/Shiny-Materials | bb757f94e06fe83c466dc169e629a36cbbdf4e87 | b0ad1d3428126b8af2681446e8ea085eaba619e1 | refs/heads/master | 2020-05-16T13:03:32.929982 | 2019-04-23T17:28:05 | 2019-04-23T17:28:05 | 183,063,312 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 325 | r | image_app.R | library(shiny)
# ui layout instruction
ui <- fluidPage(
titlePanel("My Shiny App"),
sidebarLayout(
sidebarPanel(),
mainPanel(
img(src="http://shiny.rstudio.com/tutorial/lesson2/www/bigorb.png", height = 400, width = 400)
)
)
)
server <- function(input, output) {}
shinyApp(ui = ui, server = se... |
ed22d8d2edde401bf3e863dd1fc5c8cd95926b49 | 1a579f8496b6f146deb95de55c7b340851ba317a | /Part_4_Finish-Vectors_and_Begin_Matrices/scripts/System-time-and-redimensioning.R | bf758106191247555789334268007fe60d2fb42c | [] | no_license | mdmmsrhs/Udemy-R-Programming-Course | b22d9f90a42bca8d43a6b7933af4044e0f2cae8f | f8c20585280ebf47ac990b494f171f0ac0ee737a | refs/heads/master | 2021-01-10T07:26:25.795233 | 2016-03-18T16:08:20 | 2016-03-18T16:08:20 | 54,214,498 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,852 | r | System-time-and-redimensioning.R | ##################################################
##### SYSTEM TIME FUNCTION #####
##################################################
##### REDIMENSIONING A VECTOR #####
##################################################
## The system.time() function is a handy tool
## for chec... |
27e74533dcbc81cabeed689ec439f1e99c7aca4f | cc336a29f50450945ac308e3c3a1bf7ce43d8fc7 | /Shannon_moore.R | 093a10322bf02d73a04d0646a78a16c48daa1a18 | [] | no_license | HannahWhite/StabilityDrivers | 5915a7cc02c2e1407f798fe05d895c77382a7818 | de7cd5ca4fa5519f6df2510c3eac5f6f695ee096 | refs/heads/master | 2021-12-07T04:59:04.182809 | 2021-09-30T14:31:06 | 2021-09-30T14:31:06 | 184,769,050 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,235 | r | Shannon_moore.R | ###########################################################################################
### Calculate Shannon diversity of landcover within Moore neighbourhood of focal square ###
###########################################################################################
### Hannah White 27.07.2018
## read ... |
b7e710c52be5fe1cb9c1344a25c7fecfcc415fcb | 862562e3b247cd95321195d91b46bf5d73b9596c | /archive/sim_logger.R | e550db00fbe94eeaffa11e199352ebbfb4d37fe4 | [] | no_license | bsaul/dr | dd6b733dfaf935b83423aaa0431f2ba23ad1c7a6 | 327f3537fcd70b4b62bb3e3b2a9cfa628fcbf3f7 | refs/heads/main | 2023-04-07T09:35:48.876785 | 2018-11-27T15:35:15 | 2018-11-27T15:35:15 | 358,607,789 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 997 | r | sim_logger.R | #------------------------------------------------------------------------------#
# TITLE: Simulation Logger
# AUTHOR: Bradley Saul
# DATE: 5/02/16
# PURPOSE:
#------------------------------------------------------------------------------#
ts <- Sys.time()
# estimation_file <- 'DR_sim_estimation_6'
experimentID ... |
333bb3bb51bb2b5150709dc6b33814fae4c8eee0 | 9dcff6306fb7c38df8d2130f9deb33703afa332d | /code/Trajectory_reconstruction_of_HNSCC_tumor_cells.R | b74f163710a82cb1c4c055388e34b1be5d1b9c46 | [] | no_license | cole-trapnell-lab/pseudospace | a951e1604a74cc3c9e72e8320ce57140d9002bb3 | bae0e5bb5ecee5691842105e02f902ff8f73b7ad | refs/heads/master | 2020-06-17T09:26:22.165737 | 2019-09-04T21:01:13 | 2019-09-04T21:01:13 | 195,880,675 | 10 | 4 | null | null | null | null | UTF-8 | R | false | false | 10,958 | r | Trajectory_reconstruction_of_HNSCC_tumor_cells.R |
###### Load packages ######
# Load necessary packages for single cell RNA-Seq analysis including packages for downstream Gene Ontology Analysis
suppressPackageStartupMessages({
library(devtools)
library(stringr)
library(scales)
library(dtw)
library(monocle)
library(reshape2)
library(GSA)
library(limma)
library(DBI)
li... |
3766ede27f86e5430b34e32cd2a07d3c142107dd | ba3e1a64b6a56469bb89fcb697acf5cbb51a9aca | /bigdata_ai_study/chapter_11/2.R | c35b495931b0b075a68cd3cd06832a56e28279b2 | [] | no_license | himitery/dankook | c5a2df9c989a31c4470212e7f6165ea4292f0b62 | 9f5208c7d9f2001794c67f4f27f45490ea260d4d | refs/heads/master | 2023-06-08T21:23:22.394774 | 2021-06-27T20:00:39 | 2021-06-27T20:00:39 | 330,082,010 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 229 | r | 2.R | model <- lm(formula = Volume ~ Girth, data = trees)
getVolume <- function(Girth) {
return(coef(model)[2] * Girth + coef(model)[1])
}
# Girth == 8.5
getVolume(8.5)
# Girth == 9.0
getVolume(9.0)
# Girth == 9.5
getVolume(9.5)
|
b00ef6d5794435a39c774038f5994eb771194fe2 | 29585dff702209dd446c0ab52ceea046c58e384e | /tergm/R/coef.stergm.R | 01adda1156268464283496b5e77a35f3383a1693 | [] | 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 | 615 | r | coef.stergm.R | # File R/coef.stergm.R in package tergm, part of the Statnet suite
# of packages for network analysis, http://statnet.org .
#
# This software is distributed under the GPL-3 license. It is free,
# open source, and has the attribution requirements (GPL Section 7) at
# http://statnet.org/attribution
#
# Copyright 2... |
4e366236c481c516ebe2e380d084a3271331d0a6 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/Luminescence/examples/report_RLum.Rd.R | be9ff34a3fbf82a5df6a8f3baf9214fb84826eeb | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,921 | r | report_RLum.Rd.R | library(Luminescence)
### Name: report_RLum
### Title: Create a HTML report for (RLum) objects
### Aliases: report_RLum
### ** Examples
## Not run:
##D ## Example: RLum.Results ----
##D
##D # load example data
##D data("ExampleData.DeValues")
##D
##D # apply the MAM-3 age model and save results
##D mam <- calc_... |
16528aa44b68d3f1f83b1180d0c022f3ee297d17 | abb970da8f3fab448d26bdb03fc947e414fdf031 | /netsim/20_connectivity.R | 320231d3f8f4dd0ccb33a9f98f2d5491bdab7e75 | [] | no_license | czarrar/causality_primer | bf7490769f7f1e5de90b45039d7553d2f304827c | e41ccdac47ea930ea5e01bc24d052b0a10f7ac92 | refs/heads/master | 2020-04-26T09:50:20.332272 | 2014-07-21T03:21:22 | 2014-07-21T03:21:22 | 21,718,538 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,241 | r | 20_connectivity.R | #' For now only subject 1
#' Goal here is to compare the accuracy of estimating a connection using NetSim
#' I will compare the regular correlation with a host of partial correlations
#'
#' Let's read in the data.
#+ read
net <- as.matrix(read.table("data/sim01/sub01_net.txt")) # reference
ts <- as.matrix(read.ta... |
d3986ff354ba6918732d99d3ec3e344c1842060b | 8e4aab72095a0fa790f19f6fc426db3979e11ad2 | /metode.R | ec7b307e946b117c89e496ffb8d50dfd04ed9088 | [] | no_license | vsamija/Diplomski_rad_web | 5a5e90528a454c1126d7f0e21a34b6aabc78b1eb | 3fd909aede591752d110e8a6d85a4f32d13c11fe | refs/heads/main | 2023-07-15T19:36:25.276140 | 2021-08-24T08:24:43 | 2021-08-24T08:24:43 | 399,215,201 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 934 | r | metode.R | # Pronalaženje datoteka koje se nalaze u istom direktoriju.
sourceDirectory <- function(path, recursive = FALSE, local = TRUE) {
if (!dir.exists(path)) {
warning(paste(path, "direktorij nije valjan!"))
return(NULL)
}
# Funkcija (local)
if (is.logical(local) && local) { env <- parent.frame() }
# Funkc... |
eab1fb382d6e71f4a2e8a1d0abab449f1b41c9af | 173de58722f7d505f01c9fff6d0dff1dcf7bd605 | /data_collecting_storing_retrieving/module02/Valentine_C_2.R | db3b30f5a1fa35af988111f0570eb07e24332df6 | [] | no_license | clintval/coursework | be69cb65feb6545125f28f071f1ab1229c52372b | 3d3daf1b2d2e7ce007e14ad7091eb4d33432a323 | refs/heads/master | 2021-01-12T07:36:18.423760 | 2017-05-29T20:39:49 | 2017-05-29T20:39:49 | 80,670,673 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,654 | r | Valentine_C_2.R | # Clint Valentine
# 01/21/2017
rm(list = ls())
# If the data.frame already exists then do not load again
if (!exists("data")) {
# Unzip data and process as csv with a header
unzip("AirlineDelays.zip")
data <- read.table("AirlineDelays.txt", header=T, sep=",")
}
TotalNumDelays <- function(Carrier) {
# Computes... |
0b580b662cec9eb7dbc44a0ce863f41f963c9c9c | 9fba50d3c86a4d441967db92d209ef9ee40610d4 | /chapter1/points lines rectangles.R | 992cc0aac9b585cc96610ed79377e28ae8677aee | [] | no_license | data-better/dataviz | ce4241b0497fcb1e06efb6d7d3350bbb4dc8af21 | 04503ded9383cb6173e5c89c45dc085c829cd97b | refs/heads/master | 2020-07-16T11:32:16.099552 | 2019-09-02T05:44:56 | 2019-09-02T05:44:56 | 205,780,580 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,986 | r | points lines rectangles.R | # Chapter 1. Points, Lines, Rectangles
kings <- read.table("chosun kings.txt", header=T)
str(kings)
head(kings)
attach(kings)
median(Life)
median(Period)
windows(height=4.5,width=7.5)
plot(c(0,0),c(28,60),type="n",xlim=c(0,28),ylim=c(-5,65),xlab="순서",ylab="재위기간",main="조선 왕조")
points(1:27,Period,pch=15,col="red")
seg... |
a4d445c6dedd1958725d99d9ab11246e8684c40e | dee6c5bed839c814c08cad5306d44485352ebfc9 | /R/att.R | f621f2b5df0b1e587f4723a492e8bead2042eefc | [] | no_license | ehkennedy/npcausal | 108bc3ce94e2454163ca946335ded2d6ee8cc286 | 56a5ac117a29258b67b94874be662a171b5131f7 | refs/heads/master | 2022-02-27T03:12:28.468368 | 2021-02-25T01:59:18 | 2021-02-25T01:59:18 | 91,638,398 | 73 | 24 | null | 2022-01-31T22:01:11 | 2017-05-18T02:08:13 | R | UTF-8 | R | false | false | 3,475 | r | att.R |
#' @title Estimating average effect of treatment on the treated
#'
#' @description \code{att} is used to estimate the difference in mean outcome among treated subjects had a binary (unconfounded) treatment been withheld.
#'
#' @usage att(y, a, x, nsplits=2, sl.lib=c("SL.earth","SL.gam","SL.glm","SL.glmnet",
#' "SL.g... |
aef661562e09c13be54108dac2d352b6d424d1ed | c6679e02409faf47730541f0696abf2f8d0a05f7 | /man/voice_default_weights.Rd | 0756d8d91592e5580b6285575a6068b00e6e93f6 | [
"MIT"
] | permissive | pmcharrison/voicer | 1d1c9d14556aee91e6e9e53c177407e0d50a674a | 6f08e7066e15bf2ab091649161bcf760351c982a | refs/heads/master | 2021-06-23T07:33:31.530673 | 2020-12-13T13:55:31 | 2020-12-13T13:55:31 | 151,832,740 | 3 | 0 | NOASSERTION | 2019-09-20T10:53:55 | 2018-10-06T11:21:09 | R | UTF-8 | R | false | true | 775 | rd | voice_default_weights.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/voice-opt.R
\docType{data}
\name{voice_default_weights}
\alias{voice_default_weights}
\title{Default weights}
\format{An object of class \code{numeric} of length 12.}
\usage{
voice_default_weights
}
\description{
Provides the default regressi... |
6b2fe1c6f4b928226ac2b80ddd8bd04b4b6d22ec | f05eb7cbaa5f06897bd26f02e868ad4b1a333473 | /london.R | 032905f87c29c8dc9c09e67ceb0fd71b8060f54f | [] | no_license | efarinre/Mentally_green | b959a42f9f7b4204e6f7bff90451aae48f78c470 | 0720f3bb81c8086b8b2da95c1901969fcaf827f0 | refs/heads/main | 2023-07-15T12:15:50.324527 | 2021-08-23T22:10:20 | 2021-08-23T22:10:20 | 398,518,397 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 18,033 | r | london.R | # read in necessary packages
library(plyr)
library(tidyverse)
library(INLA)
library(spdep)
library(SpatialEpi)
library(rgdal)
library(tmap)
library(RSQLite)
library(tmaptools)
library(leaflet)
library(htmltools)
library(htmlwidgets)
library(broom)
library(plotly)
library(geojsonio)
library(mapview)
library(crosstalk... |
e740cd1dbce74b9d81c4f9dfbc37f743885b6957 | e54c3f3d3538c676eff3140f889b8b454ec30324 | /memorymigration/R/PlottingFunctions.R | b05a6f1760f0d47c7ac2bb21c4204c1e0d65d204 | [] | no_license | EliGurarie/memorymigration | acaf4094ba4f580db31bd2b9e25af7bbb8778ca3 | 192d44e030eb73729a7f7c3969cba520ca386177 | refs/heads/master | 2023-08-21T17:09:24.312679 | 2021-09-20T16:49:40 | 2021-09-20T16:49:40 | 327,377,347 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 9,507 | r | PlottingFunctions.R | #' Plot Year List
#'
#' This function plots the migratoriness population distribution over a time period.
#'
#' @param yearlist a list of T x X matrices describing the population
#' distribution for each year after initial population; produced by the runManyYear function
#' @param World List of 5: a population dist... |
e84b647302f952c22f6798dbf5b350b242911f4e | bfa0753fd0b135f884dbdbc0222e670629127f45 | /net.R | 83c44b6e9b6d20af114547842dd8a9afeb7bef6b | [] | no_license | sccmckenzie/cocktail-ingredients | 882171998fed287e7a42e4c913b347db45448fc6 | 85cd0d84131cb9412b2392735302ab99a8f7b6fb | refs/heads/master | 2022-11-20T07:35:31.351204 | 2020-07-12T19:08:15 | 2020-07-12T19:08:15 | 275,653,454 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,835 | r | net.R | generate_net <- function(data, inventory, fulfilled) {
edges1 <- data %>%
select(ingredient, drink) %>%
inner_join(., ., by = "ingredient") %>%
filter(drink.x != drink.y) %>%
rowwise() %>%
mutate(drink = list(sort(c(drink.x, drink.y))),
.keep = "unused") %>%
ungroup() %>%
distin... |
03408f79dcb75a893763be7ea683499923cdda95 | 2c016a008e06fcb55d60e51cce0ba683674c71a9 | /man/lmestSearch.Rd | 5aa266c35f743aade61f0b269e0ac499ff691074 | [] | no_license | cran/LMest | 31dddf3c579ed8c1a4ebedf3c72191ad113e97e7 | c91ca5182c24fa437dba72f4545d2a3266355125 | refs/heads/master | 2023-09-01T08:43:51.610982 | 2023-08-27T14:50:02 | 2023-08-27T15:30:36 | 17,680,242 | 3 | 3 | null | null | null | null | UTF-8 | R | false | false | 5,150 | rd | lmestSearch.Rd | \name{lmestSearch}
\alias{lmestSearch}
\title{Search for the global maximum of the log-likelihood}
\description{
Function that searches for the global maximum of the log-likelihood of different models and selects the optimal number of states.}
\usage{
lmestSearch(responsesFormula = NULL, latentFormula = NULL,
... |
067991e37f8a7401fb37285c03e35d42f83635c3 | d5485e869fd25da9e2256fec0a227bd8d61d6678 | /interactive_heatmap.R | f96295120368bcda66735ad1cf091e393f2cf907 | [] | no_license | jhr9yp/Group-10-SYS-2202 | 873355d39f7308d5e426f0ed2c17f7f77d049f0c | e3b94c37fcb9255127748a1ae0b238d6c8095268 | refs/heads/master | 2021-05-25T16:58:08.962729 | 2020-05-06T03:27:00 | 2020-05-06T03:27:00 | 253,830,998 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,530 | r | interactive_heatmap.R | # NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {
library("shiny")
library("shinyWidgets")
#creating title page (emily)
ui <- fluidPage(
tags$h2("US MAP"),
br(),
dropdown(
#Sub title
tags$h3("Interactive US Map of Various Datasets"),
... |
5df356d29c0bc368911390cbfd4ca23150bc7e5a | 3ad3200f27d58ae8565cdeccc0d0c717ffcd472c | /app/server.R | 202409b11401f98589d632afc3f3198f97b41059 | [] | no_license | uvarc/uva-mos2-ml | e51e6b5dc25a336e8721f6b795274a23773554f1 | 9e5c1fc7365b520c76c82aea1802bdbd769462fc | refs/heads/master | 2021-05-21T04:47:28.824421 | 2021-01-08T21:07:24 | 2021-01-08T21:07:24 | 252,549,676 | 0 | 0 | null | 2020-09-22T13:15:31 | 2020-04-02T19:38:43 | R | UTF-8 | R | false | false | 6,823 | r | server.R | # This is the server logic for a Shiny web application.
# You can find out more about building applications with Shiny here:
# http://shiny.rstudio.com
#
# library(shiny)
# library(caret)
# library(knnGarden)
library(plotly)
library(caret)
set.seed(1)
dataset.model = preProcess(model.training[,c(1:6)], method=c('nzv'))... |
fbddf006d68e74cd857000cf68a278004a6a27f0 | b4b03b1fa76925763db9b913183ebe1745d78fb0 | /plot4.R | ef81c478b4ea7510110a3d047db81707031faaca | [] | no_license | TDELALOY/ExData_Plotting1 | b8d6ee8926a4458efb888fc3e970a0aa95c17282 | d99b653bfabdccac7973187db509146a6b5bdf4a | refs/heads/master | 2021-01-15T13:23:31.581811 | 2015-04-10T21:43:06 | 2015-04-10T21:43:06 | 33,672,803 | 0 | 0 | null | 2015-04-09T14:12:57 | 2015-04-09T14:12:56 | null | UTF-8 | R | false | false | 2,018 | r | plot4.R | ## DATA SCIENCE - COURSERA - T DELALOY
## we will be using the "Individual household electric power consumption Data Set"
## first time
library(data.table)
#define working directory
setwd("C:/Users/I051921/Desktop/Prediction (KXEN)/Coursera")
## Open File
file <- "EXPLORING/household_power_consumption.txt"
data <- ... |
ef2f5a42e8cf51276cdb5ce1913db9f36844c866 | aa9edd29b8e074991387ebdea0068f1e8685f5aa | /code/data_summary_functions.R | 4002a6c9d2e58f5911dc65f66c8298e467f0229c | [
"MIT"
] | permissive | mjarvenpaa/bacterial-colonization-model | db13f53d0a6ca92008eff7effef590c1fdcaffa5 | 474813ec33700e3353132f6a0277716dc8bff5d0 | refs/heads/master | 2021-06-30T02:11:23.340243 | 2019-06-14T13:32:00 | 2019-06-14T13:32:00 | 149,721,623 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,623 | r | data_summary_functions.R | # Functions for computing distances, summaries and the discrepancy needed for the ABC inference.
count.total.number.mutations <- function(pop) {
pop$snp.sets
snp.set.sizes <- unlist(lapply(pop$snp.sets, length))
num.snps.in.strains <- snp.set.sizes[pop$strains]
total.number.mutations <- sum(num.snps.in.s... |
e90b1fae15b6689121b5a74d0730b4cdf4b0106e | cef45d66c5e2166578927c0440eee9f74814446d | /tugas_matlan1.r | ac36a9181df3e3b0e87daf70a766b8e94b97c092 | [] | no_license | difaim/17523193 | 230841aea8ffcd82ce4fd3d578751d60b7aab2e7 | 16e371ca493bbafab520275cfff536b45b440d86 | refs/heads/master | 2020-03-30T08:43:14.969329 | 2018-10-21T12:10:06 | 2018-10-21T12:10:06 | 151,034,470 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 691 | r | tugas_matlan1.r |
"example 1"
f1<-function(x){
result<-x^2-5
return(result)
}
f1(2)
"example 2"
f2<-function(x){
y<-sqrt(x)
return(y)
}
f2(4)
f3<-function(x){
y<-x^3+x^2-6
return(y)
}
f3(1)
f4<-function(a,b){
z<-a*b*(b-a)
return(z)
}
f4(2,1)
f5<-function(m,n){
z<-(sqrt(m)/n)+m-2*n
return(z)
... |
e7705ad573665331d10243171d3e6ceed160a741 | fd2a324a9505ed29e6136a06216edce999fa97a1 | /man/NMixMCMCinity.Rd | c00782e826d6da2ba490292aa52fc0a1ba039ef6 | [] | no_license | cran/mixAK | 995c88ac9b1f70ab2dac51b4fc1347b9b1356eed | adc4c2229d8ad3573e560fd598158e53e5d1da76 | refs/heads/master | 2022-09-27T10:45:02.953514 | 2022-09-19T13:46:13 | 2022-09-19T13:46:13 | 17,697,529 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,886 | rd | NMixMCMCinity.Rd | \name{NMixMCMCinity}
\alias{NMixMCMCinity}
\title{
Initial values of censored observations for the NMixMCMC function
}
\description{
This is a help function for \code{\link{NMixMCMC}} function. If
\code{inity} is not given, it calculates reasonable initial values for
censored observations. If \code{inity} argu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.