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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57b2fdbfc88844b0d3cae64688c1e6c84d66489b | 34ac695a2de980764e2e95b3e6157dd436318872 | /inst/application/ui/ui_dist_home.R | 9485981315f1269286552ec8214bf72496ab43d5 | [
"MIT"
] | permissive | rsquaredacademy/nse2r | f560eb6e347c4705de21fb298570827d4900a02b | 15a41b20c7919649f151b0e6a241519e11352272 | refs/heads/master | 2023-08-30T17:02:03.385691 | 2022-11-10T15:01:16 | 2022-11-10T15:01:16 | 219,264,577 | 26 | 9 | null | null | null | null | UTF-8 | R | false | false | 1,584 | r | ui_dist_home.R | tabPanel('Market Data', value = 'tab_dist_home',
fluidPage(theme = shinytheme('cerulean'),
includeCSS("mystyle.css"),
fluidRow(
column(12),
br(),
column(12, align = 'center',
h5('Fetch Data from NSE')
),
br(),
br(),
br(),
column(3),
column(4, align = 'left',
h5('Pre Open... |
c42949d490b3b501c944672283d4810df1a1f9a2 | 2c2e81584ab81a45ebc1ce5b42e5ad3988fe889f | /plot1.R | 9dbd0fdf0ef8dc80277ad1f357641f42cbcbba21 | [] | no_license | sumeshv/ExData_Plotting1 | f2730b6b973c15eec04f91d416c0ee6c7649808a | 5909bde60a86bec603f027e66a1278af3360cd97 | refs/heads/master | 2021-01-16T22:00:37.864972 | 2015-03-07T16:50:10 | 2015-03-07T16:50:10 | 30,421,525 | 0 | 0 | null | 2015-02-06T16:29:18 | 2015-02-06T16:29:17 | null | UTF-8 | R | false | false | 990 | r | plot1.R |
#
# The plot1 function creates a png file based on the hist() function.
# The file is created in the work directory by name plot1.png. The function
# takes an argument which specifes the directory where the data file is kept.
# The file name is assumed to be household_power_consumption.txt.
# usage eg: plot1("D:/R/d... |
343a24e503b4092480c6a5354918ef4c29c1ab44 | a7d4b236f9b33180d6325c4f235dfde5d21229c5 | /start_code.R | 1ba2d833323a148e738f04a9f241ee9061dafc4e | [] | no_license | UrszulaCzerwinska/AppliedPredictiveModeling | 9d4bbd9c6a0a7467cc1e8e779e78c48542609821 | 48cefb1086c2a4bd5608c3c7d772de689a5a2779 | refs/heads/master | 2020-05-29T17:25:49.826878 | 2017-03-13T09:31:15 | 2017-03-13T09:31:15 | 82,602,747 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 140 | r | start_code.R | install.packages("AppliedPredictiveModeling")
library(AppliedPredictiveModeling)
help(package=AppliedPredictiveModeling)
scriptLocation()
|
aa1a47f63bc9d3fffbca75d46ba0f7f55c66dc87 | 633cc5b6a3d3b29a95f41268cf9db7f751ceee0f | /quiz1.R | 5321a88cf59be20ba0f6de503d44e668406a4d5a | [] | no_license | FarhadHHridoy/datasciencecoursera | de222b78696727285734d09102c1cb411da90118 | 6617194af4fc6f2435ac000aad4f1c7974abe25f | refs/heads/master | 2022-09-29T06:13:29.098867 | 2020-05-30T03:15:13 | 2020-05-30T03:15:13 | 266,480,996 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 804 | r | quiz1.R | x<-read.csv("hw1_data.csv")
head(x)
#What is the mean of the Ozone column in this dataset? Exclude missing values (coded as NA) from this calculation.
a<-x
d<-a["Ozone"]
s<-is.na(d)
NROW(d[s])#How many missing values are in the Ozone column of this data frame?
mean(d[!s])
#Extract the subset of rows of the data frame... |
8168a0f4624d994909712a575f59ace4f5c212f7 | 7d0a2b8df9f3def8c1e4b57cf8b7a9fe4581c660 | /man/dm_searchM2_logit.Rd | 46887765fa17a143e5ca235bdc8de01b4e485c1f | [
"MIT"
] | permissive | xiaobo199405/dualmarker | 64e1152d71eaca26d5bc4918c20ccca52dcd636c | 5bda3c156b890ff106b777593eade8625ccd6b08 | refs/heads/master | 2023-02-01T13:35:17.798302 | 2020-12-18T13:26:45 | 2020-12-18T13:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,780 | rd | dm_searchM2_logit.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dm_searchM2.R
\name{dm_searchM2_logit}
\alias{dm_searchM2_logit}
\title{search marker2 using logistic regression}
\usage{
dm_searchM2_logit(
data,
response,
response.pos,
response.neg = NULL,
marker1,
m2.candidates,
covariates =... |
072073515f274c8e5a7a9dd75f275f0a9e72bdf3 | ea178de2d1926451fd0549b3d7c95c17804f8230 | /cs573/code/bootstrap.R | a3767ab24bbac76aa436eaaf34fd3db2bb412624 | [] | no_license | jdavis/college-spring-2014 | fe40aebef73b832edf49d426d1938673a170112d | 20d8234b160e0640aadb299dd30ffe3db85fcac8 | refs/heads/master | 2016-09-05T23:10:44.832167 | 2014-05-11T03:22:35 | 2014-05-11T03:22:35 | 15,485,826 | 8 | 13 | null | null | null | null | UTF-8 | R | false | false | 1,921 | r | bootstrap.R | # Bootstrapping the mean
theta <- 1
x <- runif(100,0,theta)
max.boot <- replicate(1e5,mean(sample(x,replace=TRUE)))
sd(max.boot)
# Compare with theoretical formula
sd(x)/sqrt(length(x))
# distribution of the mean
hist((max.boot-mean(x))/(sd(max.boot)),breaks="Scott",freq=FALSE,ylim=c(0,0.4))
xs <- seq(-4,4... |
392036cacb44a27e7238d877a5d1a682a5f95803 | 31325bac0088dbc4725f01794ff72413d5856c64 | /R/simulate_synlik.R | 7082d1e529957b6b08976c1429bce6da4ee943d0 | [] | no_license | mfasiolo/synlik_dev | 6b2bae4f357cbe028050917f5a264e1698fcfe76 | 2508506cffe09e752c6fa221e6431997f739168e | refs/heads/master | 2021-03-27T10:56:50.668629 | 2018-05-30T10:37:00 | 2018-05-30T10:37:00 | 17,673,353 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 4,921 | r | simulate_synlik.R | .simulate.synlik <- function(object,
nsim,
seed = NULL,
param = object@param,
stats = FALSE,
clean = TRUE,
multicore = !is.null(cluster),... |
5d6a17ebe9be9388f78affd70072c389eedd735a | b9e00c7839b512ddf81e24a477a5ba806a49a746 | /server.R | 76e434a1a1759984c17012b5a5548e6e66fbdd65 | [] | no_license | mystatgit/Interest-Calculation-APP | 81fe59e374033e0b8104d1f6876ecc28ae1ded97 | 10d04cca118c85ff8c34d7c562c671636cfcc643 | refs/heads/master | 2020-06-03T16:46:55.730557 | 2015-02-19T17:41:59 | 2015-02-19T17:41:59 | 31,027,914 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 745 | r | server.R | library(shiny)
shinyServer(function(input, output) {
output$sitable<-renderPrint({
si<- (input$principal *input$roi*input$years)/100
amount=input$principal+si
data.frame(Principal = input$principal,
ROI=input$roi,
years=input$years,
SI=si,
... |
62348fc26e31d9f6a3b63484bd3d82cb39414dd7 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/HaploSim/examples/haploListClass.Rd.R | 55c538d20c8e55ca71098177a117cd6f03e08265 | [] | 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 | 271 | r | haploListClass.Rd.R | library(HaploSim)
### Name: haploList-class
### Title: Class "haploList"
### Aliases: haploList-class [,haploList,ANY,missing-method
### c,haploList-method print,haploList-method show,haploList-method
### Keywords: datagen
### ** Examples
showClass("haploList")
|
e7bc89cdf1c946653c2995e2e40c705dab5a6b04 | 30cc5a35d3576a6207f3fa165d1fbc2f1a6f4dd7 | /man/weather_norms_fields.Rd | 52dcf9700dc89e697a2bcf937732da0201b9e772 | [
"MIT"
] | permissive | modernresearchconsulting/aWhere-R-Library | 0a783d3de181bf30046dd475600d78b6881efe68 | 62f06f94a0360b8223620609c6c349b9e45ef6cd | refs/heads/master | 2021-08-19T16:33:11.744449 | 2017-04-05T16:58:48 | 2017-04-05T16:58:48 | 112,121,244 | 0 | 0 | null | 2017-11-26T22:19:28 | 2017-11-26T22:19:27 | null | UTF-8 | R | false | true | 2,495 | rd | weather_norms_fields.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/weather-norms.R
\name{weather_norms_fields}
\alias{weather_norms_fields}
\title{weather_norms_fields}
\usage{
weather_norms_fields(field_id, monthday_start, monthday_end, year_start,
year_end, exclude_years = c())
}
\arguments{
\item{-}{fie... |
444fb7996861b2aae2c0fbbe7581fae838491b61 | e10b530b0f32b9df6e1b168cf8c309abd1f17b93 | /inst/doc/FAQ.R | 5506f2a9287ec80b101d4cef51cf0f7bd1c36010 | [] | no_license | scchess/fitdistrplus | ff7163842c65b545247f0272b5656fb8099ac761 | be968ad860b5f431d8f86b820cf8b47041ab8975 | refs/heads/master | 2021-06-12T23:35:45.883389 | 2017-03-24T13:25:38 | 2017-03-24T13:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 15,080 | r | FAQ.R | ## ----setup, echo=FALSE, message=FALSE, warning=FALSE---------------------
require(fitdistrplus)
set.seed(1234)
options(digits = 3)
## ---- eval=FALSE---------------------------------------------------------
# dgumbel <- function(x, a, b) 1/b*exp((a-x)/b)*exp(-exp((a-x)/b))
# pgumbel <- function(q, a, b) exp(-exp((... |
07586a3e703fea49fc11396a5cb3cb3100bbb3dd | d89fbe824fbe31a1be50131ed4abbbc3ad7b9c3d | /m2/m2_exercise.R | e2e8e44a98310d3ff3fd21f532fe40419c2e61d1 | [] | no_license | lbl1985/RLearning | a2391241eda89f44d6d6b3b40b608152a89c2286 | 0f000b4248941ed06e9f5ad60eb2d13ab7a4d1ae | refs/heads/master | 2020-04-19T04:53:29.932878 | 2016-10-19T06:12:51 | 2016-10-19T06:12:51 | 67,836,316 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,861 | r | m2_exercise.R | setwd("C:/Experiment/R/RLearning/m2")
movies <- read.table(
file = "Movies.txt",
sep = "\t",
header = TRUE,
quote = "\""
)
#peek at data
head(movies)
# Look at column names
names(movies)
#Problem #1: column name is incorrect
names(movies[5])
#Rename variables (i.e. columsn)
names(movies)[5] <- "Critic.Scor... |
bb7317ddc44cb8e6eedeab37eea98942c043d84d | d9f41bcafe2bc5385bd11f845d15dd6c0b9eabae | /Plot1.R | 0868c22c93f7f64161c1d25d45fbe0ff4c6c1a60 | [] | no_license | Harrykoch/ExData_Plotting1 | 2e2c929936575595383d420c9929f4da0ac3fbd9 | f1e13d515b06a5aca9e3084045f803bf678eb1b6 | refs/heads/master | 2021-01-17T14:09:56.318433 | 2014-07-12T14:09:55 | 2014-07-12T14:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 741 | r | Plot1.R | #
#
#
setwd("~/Desktop/Coursera - Exploratory data analysis")
# Plot 1
#================
#
# 1. Read the dataset into a dataframe
# 2. Determine which rows of the frame are of interest and create a new variable
# hhpwc (household power consumption) that will be used for the analysis
# 3. Clean up the intermediate v... |
1ca771a345853892d0217e63f982e2a0a66df606 | c712c674aaa9aeeb406177911ca5ec204d8f46f7 | /man/scoRched.Rd | 792edfc8b9863fdaa2fe687c81951ca390b049e3 | [] | no_license | trinker/tsgames | 736c91dc7731cfc92c5298f5ff9f0da51509f03a | 8914dae55b39630e788b475215647b7ef4c61e82 | refs/heads/master | 2020-12-25T10:42:08.290819 | 2013-06-26T01:17:10 | 2013-06-26T01:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 291 | rd | scoRched.Rd | \name{scoRched}
\alias{scoRched}
\title{Played scoRched}
\usage{
scoRched(fps = 45, mass = 1)
}
\arguments{
\item{fps}{Numeric. Frames per second to update}
\item{mass}{Numeric. The mass of something}
}
\description{
Play scoRched. Then try to not die
}
\author{
Marco Visser
}
|
a2c193e85340f4bddfb509376d53c4c0d30670c6 | 709c16710d7cae612de6c779cafb7199813e0f24 | /AhasHfBkleAmputation/R/PriorOutcomeCovariateBuilder.R | 1d2340fa6d1642b4f21a09b9782a476c5997c7de | [
"Apache-2.0"
] | permissive | OHDSI/StudyProtocols | 87a17fc3c00488b350f9416c584a1d0334d8dfcb | 8de0454c6be4c120ba97d7376907d651327573a4 | refs/heads/master | 2023-04-27T18:59:35.785026 | 2020-02-16T00:32:52 | 2020-02-16T00:32:52 | 27,415,586 | 37 | 41 | null | 2023-04-25T19:55:45 | 2014-12-02T04:49:53 | R | UTF-8 | R | false | false | 6,175 | r | PriorOutcomeCovariateBuilder.R | # Copyright 2018 Observational Health Data Sciences and Informatics
#
# This file is part of AhasHfBkleAmputation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... |
750c4b9e8fb2dc532bb8895b142b7e4c416b5175 | 871b9d64f1630f6e2c64dd5f7e238cf8eadf5000 | /LLB_twitter_stream.R | a1cfe2a9c5ee39c7ccca9657a7fa31d8722a5095 | [] | no_license | akmalirham96/Highway-Traffic-Status-Using-R | 1e0566b1ddaa9b6a5faf55034e5026794261be98 | a6582e777ad2276d28fec455daf655b3d5f2ae37 | refs/heads/master | 2020-04-07T15:50:11.901939 | 2018-11-21T14:26:07 | 2018-11-21T14:26:07 | 158,503,162 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,274 | r | LLB_twitter_stream.R | #Read file
highway <- read.csv(file.choose(),header = T)
str(highway)
#Build Corpus
library(tm)
library(stopwords)
corpus <- iconv(highway$text,to = 'UTF-8', sub = "byte")
corpus <- Corpus(VectorSource(corpus))
#Cleaning text
corpus <- tm_map(corpus, tolower)
inspect(corpus)
#Remove comar
corpus <- tm_map(corpus, ... |
615a921f8e045f42846d7df98b9d4d055bb52264 | 94dcbff4ef2072f5a5ecbb95af1f259f31ad3b20 | /R/misc.utils.R | 9406d71a4718cb6a8a4af23915658a8d796f8a0f | [] | no_license | DistanceDevelopment/WiSP | bf51406076ded020098f4973003eafc05a45d437 | e0e2665d6b3b49ba634944b4bb7303be41620e5a | refs/heads/master | 2021-06-05T02:54:08.957306 | 2020-09-14T20:03:59 | 2020-09-14T20:03:59 | 9,773,511 | 0 | 1 | null | 2020-09-14T09:30:06 | 2013-04-30T15:05:50 | R | WINDOWS-1252 | R | false | false | 6,098 | r | misc.utils.R | calculate.plot.margin <- function(reg.x, reg.y, area.x, area.y)
#-----------------------------------------------------
# description:
# The function calculates the x and y width of the
# outer border of the region that shall be plotted
# later.
# The aim is to calculate the outer mar... |
a662b32d6afae460069aa9faf5021711e27a06ab | 87092bd3c5d1e8c864502f851085ec80bda39705 | /olmar.R | 1a267fe2551fb7159bb955e55fc1717610e4153f | [] | no_license | ngokchaoho/robust-median-mean-reversion | 0c66c964883ecf2ec9f4736f1e267a07dd8feeee | 5cf3fa4e28f1dbd36217441b71254cf7456ed8c0 | refs/heads/master | 2020-04-10T10:40:56.094305 | 2018-11-20T05:57:48 | 2018-11-20T05:57:48 | 160,973,104 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,112 | r | olmar.R | olmar_run <- function(fid,data_matrix)
{
datamatrix1=data_matrix
n = nrow(datamatrix1)
m = ncol(datamatrix1)
cum_ret = 1
cumpro_ret = NULL
daily_ret = NULL
epsilon=10
alpha=0.5
tc=0
sumreturn=1
day_weight = as.matrix(rep(1/m,m))
day_weight_o = as.matrix(rep(0,m))
daily_portfolio = as.vector(re... |
f24cc4698c4ac64e2857e391b308b9e13a80f0c1 | d1e3e2e431d078fdfe92cc01014a0f05fb06a683 | /R Code/HOMER_GO_sorting_and_graphs.R | ed1cc5c6024d6d0197027112cdde48802fb1aaee | [] | no_license | jchap14/R | a6a9eba819f1b4517b6edaa1a42628fecc770f38 | f7c0c8aa0c0ba003a52ee73bca1cd169eecced73 | refs/heads/master | 2021-04-03T10:17:28.136527 | 2018-03-11T06:16:49 | 2018-03-11T06:16:49 | 124,725,145 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 5,466 | r | HOMER_GO_sorting_and_graphs.R | ###########################################################################################
########################## Take HOMER GO output and condense and graph it #################
## set Title to the "enriched terms" file in directory
enriched_terms <- list.files(pattern="*.enriched_terms.txt$")
Title <- gsub("\\.... |
1c7c2e8c3790c549cf8f62676d4d49ca19eaceb5 | b2ce380eab3c91688b7a04b65d2c5afb880947f3 | /cachematrix.R | b139bcfd03b961c3004b111d4b0695c1819735bb | [] | no_license | nowayz44/ProgrammingAssignment2 | 18babc83b1da62cac468a7030f0670727ea30ab0 | da03e32b6353546df9b8d5d5fd2b5de89e7e7735 | refs/heads/master | 2020-12-24T06:13:48.648051 | 2016-11-08T08:37:21 | 2016-11-08T08:37:21 | 73,161,572 | 0 | 0 | null | 2016-11-08T07:43:22 | 2016-11-08T07:43:22 | null | UTF-8 | R | false | false | 1,827 | r | cachematrix.R | # Caching the Inverse of a Matrix
# Using the caching of the Inverse of a Matrix will enable to gain time for the user
# The first function makeCacheMatrix creates a special "vector", which is really a list containing a function to
# 1. set the value of the matrix
# 2. get the value of the matrix
# 3. set the value o... |
100c8f746606111fec2d47bab1f2b208542863c2 | 2682467f8cf36d7427a63d947ff0d945e828170c | /charter2/2장.R | d34c4ed7f8544fe06d19cce47e8a730ba6a3bbf7 | [] | no_license | byeongmu-jo/R-Statistics | ae317b4df2e285892fca02a4689c168a4e05742c | afa5affeee5255d2283004196e31e144f4acf35f | refs/heads/master | 2020-06-05T15:06:20.029661 | 2019-07-19T08:49:52 | 2019-07-19T08:49:52 | 192,467,914 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,073 | r | 2장.R | data <- read.csv("cafedata.csv", stringsAsFactors = F)
class(data)
str(data)
head(data)
dim(data)
data$Coffees <- as.numeric(data$Coffees)
class(data$Coffees)
sort(data$Coffees, decreasing = T)
sort(data$Coffees)
min(data$Coffees, na.rm = T)
max(data$Coffees, na.rm = T)
stem(data$Coffees)
rc <- data$Coffees
weight... |
2f2b1b32950d4f9bab6ac24c114f96682beef010 | aeb58f5f6f35bfe2eae165cd6400b512510e9859 | /Plot 3.R | 2fb046a413eeed91c0e5cde0735a85859b24e030 | [] | no_license | jrmilks74/Exploratory_Data_Analysis_project_2 | 99bd5cfda9211357dbae14189771bedcd5936133 | 063686cf4f6783ec10412e5868ffb02c4c9b33e0 | refs/heads/main | 2023-02-03T20:08:20.116143 | 2020-12-21T00:21:21 | 2020-12-21T00:21:21 | 323,128,681 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 646 | r | Plot 3.R | setwd("~/Desktop/Data_science/Exploratory Data Analysis Week 4 project")
library(ggplot2)
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
head(NEI)
BC <- subset(NEI, fips == "24510")
BC$type = as.factor(BC$type)
BC$year = as.factor(BC$year)
BC_type <- aggregate(Emissions~type + ye... |
b979e6d624c28a59a655b8578f192d50ce5333b9 | ba8fa8ddf56a7a7ba582c06dc72779fac49f2c64 | /man/os_overlay_data.Rd | 71e02e3b3daaf8821562236606d45b12bc7b503e | [
"MIT"
] | permissive | chenpo3725/opensportml | addc85c7bf2aaa9df5cd1f22965c7eb3fa3196fe | 495d107c539360b1a363dce03f6245b09f039392 | refs/heads/master | 2023-03-20T21:30:18.030671 | 2021-01-21T08:18:42 | 2021-01-21T08:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,061 | rd | os_overlay_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{os_overlay_data}
\alias{os_overlay_data}
\title{Generate data suitable for creating a court overlay plot}
\usage{
os_overlay_data(court = "tennis", space = "court", court_ref, crop = TRUE)
}
\arguments{
\item{court}{string: court... |
c43f419ea117f07bdb477ed9ccf03945f8a76365 | 489c839925b3b192fced36810e02f6c00e921a90 | /tests/testthat/test-toJSON-zerovec.R | b55ffcbf8a75cf9affdfac043ff535565d895ceb | [
"MIT"
] | permissive | jeroen/jsonlite | 0dd77b1f7c8d9b2674ea4f12e9623e8c0ddffc27 | 2d527d9e916b0a8020a1dfcd37d19fb647060292 | refs/heads/master | 2023-08-02T06:54:55.429046 | 2023-07-24T20:52:25 | 2023-07-24T20:52:25 | 13,305,534 | 248 | 82 | NOASSERTION | 2023-07-24T20:52:27 | 2013-10-03T18:05:25 | C | UTF-8 | R | false | false | 1,148 | r | test-toJSON-zerovec.R |
test_that("Encoding Factor Objects", {
expect_identical(toJSON(character()), "[]");
expect_identical(toJSON(logical()), "[]");
expect_identical(toJSON(complex()), "[]");
expect_identical(toJSON(complex(), complex="list"), "{\"real\":[],\"imaginary\":[]}");
expect_identical(toJSON(double()), "[]");
expect_... |
8f399b2c48048f991777894bbf756486fe3399f5 | d859174ad3cb31ab87088437cd1f0411a9d7449b | /autonomics.integrate/man/write_correlations.Rd | a03f75447da26876dafb47f828fb5d78df433d45 | [] | no_license | bhagwataditya/autonomics0 | 97c73d0a809aea5b4c9ef2bf3f886614eceb7a3c | c7ca7b69161e5181409c6b1ebcbeede4afde9974 | refs/heads/master | 2023-02-24T21:33:02.717621 | 2021-01-29T16:30:54 | 2021-01-29T16:30:54 | 133,491,102 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 868 | rd | write_correlations.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_correlations.R
\name{write_correlations}
\alias{write_correlations}
\title{Write correlations to file}
\usage{
write_correlations(
cor.dt,
eset1,
eset2,
file,
fvars1 = character(0),
fvars2 = character(0)
)
}
\arguments{
\ite... |
986559e9b2bc5a262660a26cbd99812e9a40dd00 | ad23c9d39337f7c94764d7447dd5c26a2152ad64 | /src/main/resources/plotting_scripts/segmented_exp.R | 4fca7c2f779c5cd825e9ee5095c4e89eab9c3a00 | [] | no_license | junseonghwan/sgmwsmc | ee11454b6cfd820023a5d7fd2dff859df0a36ee9 | a3f304e0e6858e5d97afd760fd820371e92d4f7a | refs/heads/master | 2021-01-21T10:09:28.624569 | 2020-06-04T23:05:24 | 2020-06-04T23:05:24 | 83,387,887 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 3,307 | r | segmented_exp.R | library(dplyr)
library(ggplot2)
d<-read.csv("~/Google Drive/Research/papers/probabilistic-matching/sgmwsmc/output/knot-matching/segmented_simulated_data_exp.csv", header=T)
d$accuracy<-d$prediction/d$total
d$jaccard_accuracy<-d$jaccard/d$num_nodes
#p <- ggplot(d, aes(x=as.factor(board), y=accuracy, fill=I("black"))) +... |
9e3fca53f99ee6a8fc53cf5dfaedf2db94100080 | 2bec5a52ce1fb3266e72f8fbeb5226b025584a16 | /hermiter/man/update_batch.Rd | 77cef50b92f7b550259dc21226a94fa1602310f1 | [] | no_license | akhikolla/InformationHouse | 4e45b11df18dee47519e917fcf0a869a77661fce | c0daab1e3f2827fd08aa5c31127fadae3f001948 | refs/heads/master | 2023-02-12T19:00:20.752555 | 2020-12-31T20:59:23 | 2020-12-31T20:59:23 | 325,589,503 | 9 | 2 | null | null | null | null | UTF-8 | R | false | true | 1,140 | rd | update_batch.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hermite_estimator.R
\name{update_batch}
\alias{update_batch}
\title{Updates the Hermite series based estimator with a batch of data}
\usage{
update_batch(this, x)
}
\arguments{
\item{this}{A hermite_estimator_univar or hermite_estimator_bivar... |
b51788057aa067075ade21fc8b3ffb6965428a8e | b2820746858cf4d36ab88aa4fa94c0c8201ef514 | /02-R/monty_hall/kevin_monty.R | 9d2302a246d4bd9afcb44170e05611a0f53c7d72 | [] | no_license | ml-ai-nlp-ir/gadsdc1 | fa5c1b3b5c7e073ab78c691da02c34daf46e5338 | a41731f1e276f52e9b9fe6d73a5a049d7c7df479 | refs/heads/master | 2021-01-15T14:01:41.147157 | 2015-03-28T04:42:39 | 2015-03-28T04:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,353 | r | kevin_monty.R | ### function: monty()
### argument: numtries = number of simulations to run
### example: monty(50000)
monty <- function(numtries) {
## APPROACH 1: NOT SWITCHING
# create a vector to store the results of not switching
dontswitch <- vector(mode="logical", length=numtries)
for(i in 1:numtri... |
3b04a52da8865d19e1d1504bd603cd035bd9365e | ccd6d2d69e7c1e9680b954b96e96c3bb52c865ec | /R/var_names.R | 92218099e70ab85bdd571d6568494ac62aa67c70 | [] | no_license | jmgirard/sjstats | 3578aa71921d94f9173b93ca108279e353f2a965 | d951c125e8d35cc2ff339472a47b1e56aeb72b9a | refs/heads/master | 2020-05-24T04:39:15.173761 | 2019-04-29T14:17:09 | 2019-04-29T14:17:09 | 187,097,228 | 1 | 0 | null | 2019-05-16T20:30:57 | 2019-05-16T20:30:56 | null | UTF-8 | R | false | false | 1,512 | r | var_names.R | #' @rdname pred_vars
#' @importFrom purrr map_chr
#' @export
var_names <- function(x) {
.Deprecated("insight::clean_names()")
if (is.character(x))
get_vn_helper(x)
else
colnames(model_frame(x))
}
#' @importFrom sjmisc is_empty trim
#' @importFrom purrr map_chr
get_vn_helper <- function(x) {
# return... |
30729bb59a88da18ee7df24fef20545348bff590 | 9b381ed9641d81fc0853a44473d80d93db05422f | /Assignment1_RDD/code/r_code/reference/hansen-replication_BriceGreen.r | 2969f69b36e02dbbe4d551b38d27ef875e26378f | [] | no_license | nfra/CausalInferenceCourseHomework | f56889f41455d71a575e3ef8b0af4a02e53569d5 | b9660468ca08dc30a404b66834a24c4c23fccdbe | refs/heads/master | 2022-09-01T13:08:28.590473 | 2020-05-19T19:51:04 | 2020-05-19T19:51:04 | 242,606,438 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,994 | r | hansen-replication_BriceGreen.r | ###################
# Author: Brice Green
# Last Edited: 2/23/2020
# Summary: Reproduce Chris Hansen's 2013
# AER paper examining drunk driving
###################
pkgs <- c("data.table", # best data package of ALL TIME
"rdrobust", # robust kernel regression for rdd
"rdd", # regression discontinuit... |
83da0f13af0ad6ad123a80f8b065688e1dc65bb9 | df5b20d6f0958f4e2d817cc2d17c1d7397235cf9 | /R/eWrapper.data.R | c9563eb5a3a998fc5fb60a6eed4d8c4d93d01a25 | [] | no_license | joshuaulrich/IBrokers | 95e29522f1f9cd6bd2eb9a615b00c1b29aaa582a | ac8f12cff2f884044061fb458d4902372be881c4 | refs/heads/master | 2023-07-06T13:40:11.976460 | 2023-06-30T15:09:12 | 2023-06-30T15:09:12 | 32,220,781 | 65 | 61 | null | 2023-04-20T15:18:07 | 2015-03-14T16:23:55 | R | UTF-8 | R | false | false | 2,883 | r | eWrapper.data.R | # eWrapper.data is a event wrapper that
# updates an in memory data base of values
# upon new input from the TWS
#
# This is only implemented for realtimeBars callbacks
# at present, but will be extended in the near future
# to include all events
eWrapper.data <- function(n) {
# internally updated data
# .data. <- ... |
29095da44c84a6ff5e3dcc49bb5f9b96311195ee | 02863cfdbd8b8f6cb56b7446368a6aef8b310fdb | /tests/testthat.R | e78435f691a38ba3a3e962cfc42c8471efe1d9ec | [
"Apache-2.0"
] | permissive | gravitytrope/fasstr | cbf6ba7c7a09362fba043286891a005ec77a11d8 | 66fa223a463feec227fba5c186044cdd1c3787a0 | refs/heads/master | 2020-12-20T16:04:51.917662 | 2020-01-21T00:07:05 | 2020-01-21T00:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 71 | r | testthat.R | library(testthat)
library(fasstr)
library(dplyr)
test_check("fasstr")
|
612d67471348c3229d1b4307a3f0bc4b105f8d88 | 0c25351947af94ebec9f6f1785a8d9925c1ab36b | /getData.R | ea17080bacac340122a16e845723c7a46bf4c3a7 | [] | no_license | amchercashin/EDA_CP1_BaseAndGgplot2 | 2cdde281a6da433b63d7cb8df901a9da3272e555 | 7d89a82181015ba4521c2d0633d72974eb0c555d | refs/heads/master | 2016-09-05T19:14:55.417577 | 2014-12-17T11:32:18 | 2014-12-17T11:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 981 | r | getData.R |
#Create dir and download file
if (!file.exists("./data")) {dir.create("./data")}
if (!file.exists("./data/NEIdata.zip")) {download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
, "./data/NEIdata.zip", mode = "wb")}
#Unzip unless already don... |
c513318efc5ae15a8c77095c266b66b5a6f92a34 | 27674239c0da0b7afc6ad9dc2622e084c3f5c004 | /data/longthin.R | 827015bdbccf0c4be42245d47d0319eae7052e44 | [] | no_license | RobinHankin/knotR | 112248605c8a89a21641be35f2363c19db1c3783 | 0a5a6015a51340faa1ee43066d76be8f39adb499 | refs/heads/master | 2023-05-15T03:19:57.311824 | 2023-05-14T09:03:35 | 2023-05-14T09:03:35 | 99,854,849 | 5 | 0 | null | 2017-10-15T04:48:05 | 2017-08-09T21:37:28 | R | UTF-8 | R | false | false | 4,504 | r | longthin.R | `longthin` <-
structure(list(minsymvec = structure(c(-28.5035329158461, -30.6427305021048,
-28.9035709343773, -21.6308687829837, 25.1745791478077, -61.9341949962751,
-75.0995084417725, -23.9080636588711, -28.6448878135769, -28.7626628508933,
-44.1271090946195, -247.416747588595, -268.383683896461, -28.7342881221848,... |
8e464476a50cb5873271f1b4b2e0081a46c3df0b | 9289d9822353467a0cdfe8faa8cd67abf7dc3a03 | /data-raw/fsr_data.R | 674902d6f1e88dcae20a8817d1f9f07f637abd64 | [] | no_license | Tony-Chen-Melbourne/readrba | 0e2424a58ff272142e75d31437f29cd2c5477c89 | 1d70c3a3cc43c24179445795a643107e9ac747df | refs/heads/master | 2022-12-16T20:06:21.595378 | 2020-09-19T11:03:32 | 2020-09-19T11:03:32 | 293,800,782 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 228 | r | fsr_data.R | ## code to prepare `mydataset` dataset goes here
# Data from here: https://www.rba.gov.au/about-rba/history/governors/
library(dplyr)
library(lubridate)
library(magrittr)
usethis::use_data(governor_tenure, overwrite = TRUE)
|
83e095ba93355391a374ef564b2201d2d9c40599 | 67de61805dd839979d8226e17d1316c821f9b1b4 | /R/MxFitFunctionAlgebra.R | a3b8f4715bb57c67afba0cb3911ab0fcf5960a22 | [
"Apache-2.0"
] | permissive | falkcarl/OpenMx | f22ac3e387f6e024eae77b73341e222d532d0794 | ee2940012403fd94258de3ec8bfc8718d3312c20 | refs/heads/master | 2021-01-14T13:39:31.630260 | 2016-01-17T03:08:46 | 2016-01-17T03:08:46 | 49,652,924 | 1 | 0 | null | 2016-01-14T14:41:06 | 2016-01-14T14:41:05 | null | UTF-8 | R | false | false | 5,155 | r | MxFitFunctionAlgebra.R | #
# Copyright 2007-2016 The OpenMx Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
34cebfc2de45b96b1ff0da9f092824a1efc76be6 | 5db2dac679963587ac50ad850ea3a2ccb508465a | /phd-scripts/R/metasim.R | 61864b9b668296c81c6900cee778b4d6677ef3a6 | [
"MIT"
] | permissive | softloud/simeta | be88fe336eeee9610086823adce839493781c0ef | 2a7e979077c57812a7d29c3e23e8c00080e1cb03 | refs/heads/master | 2023-04-16T23:27:16.936986 | 2023-03-25T11:49:23 | 2023-03-25T11:49:23 | 200,359,586 | 2 | 2 | NOASSERTION | 2020-01-28T09:55:16 | 2019-08-03T09:56:12 | HTML | UTF-8 | R | false | false | 1,112 | r | metasim.R | #' one row, one simulations
#'
#' runs on one row, returns coverage probability
#'
#' @param trial_fn the function to repeat
#' @param trials the number of trials per simulation
#' @param ... \code{trial_fn} arguments, i.e., simulation nparameters
#' @inheritParams metatrial
#'
#' @family neet_test_one One neet test ha... |
e93abed84189e7e3c2246af593e4c1781f674915 | 5f9c843d3784b837e73397540881be572be3172a | /R/twitter_termfrequency.R | 987a2a0363c71c059847792c5a6b072c008499cd | [] | no_license | ds10/Personal-Corpus | ebbde2c65f7795a8815fbc2b2a4a39b1b7df153b | 5f009ac29b53a27f69855cdc4b787bf48791b524 | refs/heads/master | 2016-09-06T02:23:40.899466 | 2014-10-16T14:06:48 | 2014-10-16T14:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,041 | r | twitter_termfrequency.R | userTimeline<-userTimeline(me, 3200)
df <- do.call("rbind", lapply(userTimeline, as.data.frame))
tw.df=do.call("rbind",lapply(userTimeline, as.data.frame))
a <- Corpus(VectorSource(tw.df$text)) # create corpus object
a <- tm_map(a, tolower) # convert all text to lower case
a <- tm_map(a, removePunctuation)
a <- tm_ma... |
15ff94c34b9b811baa9ea214f0af37447f7d3902 | 559713216d4fe05838b1450981d8f6a2bd838135 | /profiling/8.Luis_data/8.C.4_collect_pp.R | 1ba3211682e1969f31d7390a25b0aa8abf1a7ee7 | [] | no_license | yangjl/phasing | 6ac18f067c86d225d7351dfb427b6ae56713ce1b | 99a03af55171dac29b51961acb6a044ea237cb3a | refs/heads/master | 2020-04-06T06:58:38.234815 | 2016-06-10T00:40:36 | 2016-06-10T00:40:36 | 38,838,697 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,033 | r | 8.C.4_collect_pp.R | ### Jinliang Yang
### use impute_parent in CJ data
#library(imputeR)
#library(data.table, lib="~/bin/Rlib/")
### updated geno matrix
imp4 <- read.csv("largedata/ip/imp4.csv")
source("lib/get_pp.R")
ppr1 <- get_pp(path="largedata/obs1", pattern=".csv", imp=imp4)
#### to a tab delimited format
newformat <- function(... |
08ad05659bab4aab8141c6fdaa1fbc70e0987e99 | d479524ac5ac93612f847ce5f83656f254143e41 | /MSBA/Optimization/queueSimOpt.R | f124538a14dda2fea4cbe297f8a35c386d465c08 | [] | no_license | yannickheard/Yannicks-Portfolio | 6140cc080a15470e6f5626afe853b90860a30a79 | 6c85ce1cbff4427d5417c73b2a5a1bc8eaa156fd | refs/heads/master | 2023-07-16T08:45:12.182058 | 2021-09-01T00:07:16 | 2021-09-01T00:07:16 | 306,383,359 | 0 | 0 | null | 2021-09-01T00:25:34 | 2020-10-22T15:37:44 | Jupyter Notebook | UTF-8 | R | false | false | 987 | r | queueSimOpt.R | N=1000
#The avg service times from which we need to pick one
avgServiceTimes = seq(3,7,0.1)
#Corresponding Costs
cost = 5*avgServiceTimes^2 - 60*avgServiceTimes +200
AvgWaitTimes = rep(NA,length(avgServiceTimes))
PercentAnnoyed = rep(NA,length(avgServiceTimes))
#Random number generator's seed. Randomly picked and... |
3f385ffd989583d322d0e44703105312b1606144 | 0142f0c7759198ead6ce25967f377f550e4c7bf4 | /man/hatvalues.ddhazard.Rd | f57e6eea5b6287fdc0dcc5b2025532ab686e8b58 | [] | no_license | boennecd/dynamichazard | e155c92c5ca8fe3733e512c45492a4523952673d | 3c5964085e3d3c458710f0b5c60355793188b377 | refs/heads/master | 2022-10-24T06:01:31.111864 | 2022-10-04T21:14:05 | 2022-10-04T21:14:05 | 66,570,932 | 7 | 3 | null | 2017-06-18T11:12:19 | 2016-08-25T15:35:41 | R | UTF-8 | R | false | true | 1,035 | rd | hatvalues.ddhazard.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hatvalues.R
\name{hatvalues.ddhazard}
\alias{hatvalues.ddhazard}
\title{Hat Values for ddhazard Object}
\usage{
\method{hatvalues}{ddhazard}(model, ...)
}
\arguments{
\item{model}{a fit from \code{\link{ddhazard}}.}
\item{...}{not used.}
}
\... |
a69a0a72d2e6f03aeb64459185a8e292efeb7002 | 5a87297f6dbcd7027fa8412018e0dee36a2b42ba | /man/stage_national_data.Rd | 56eca476f7cee9c0ff74a30e3be012bdfee4cd14 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"CC0-1.0"
] | permissive | hydroinfo-gis/nhdplusTools | fce3b719a52f1c00d1b3eb87c1b4522c8f841627 | 48020b1b7aca68c4e4fc641ff3391d12d032e2c2 | refs/heads/master | 2023-02-05T08:38:37.307951 | 2020-12-09T16:43:43 | 2020-12-09T16:43:43 | 321,866,343 | 1 | 0 | CC0-1.0 | 2020-12-16T04:20:12 | 2020-12-16T04:20:11 | null | UTF-8 | R | false | true | 1,548 | rd | stage_national_data.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/subset_nhdplus.R
\name{stage_national_data}
\alias{stage_national_data}
\title{Stage NHDPlus National Data (deprecated)}
\usage{
stage_national_data(
include = c("attribute", "flowline", "catchment"),
output_path = NULL,
nhdplus_data = ... |
b7959eb814d8ee8762a09e15e946c018be85597a | 45458f1f3af18ce80dc3df8adcd167388adfed0a | /tests/testthat.R | 514bd9cde2dc2454d354f810c4057539eb19bfff | [
"MIT"
] | permissive | adam-m-mcelhinney/helpRFunctions | 19ad8c6fe1f75eddbaf4df18436d6b222cdb209e | 9eb16e8c13ad5c0dc108b06b1b1f7bb087870631 | refs/heads/master | 2020-04-23T08:58:44.820860 | 2014-12-16T23:07:09 | 2014-12-16T23:07:09 | 25,843,127 | 0 | 1 | null | 2014-12-19T15:41:10 | 2014-10-27T22:58:15 | R | UTF-8 | R | false | false | 47 | r | testthat.R | library(testthat)
test_check("helpRFunctions") |
e40250c32b7ec089d174b60bb2afd1bb73c26713 | 3d7d2018911ca154da0c12017c968cd100f88256 | /r_programming/project_1/corr.R | 960ad8146089ec61eb88b0737f18e29204dca2ec | [] | no_license | anhnguyendepocen/data_science_coursera | 0e56f295b2647d0e3ba3ab7e20d5ec926222c80c | 4c8e33f278f6c6dcaacd9d7c6d438dff81ed37be | refs/heads/master | 2020-03-18T00:47:00.862327 | 2014-06-06T13:52:35 | 2014-06-06T13:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 860 | r | corr.R | corr <- function(directory, threshold = 1) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'threshold' is a numeric vector of length 1 indicating the
## number of completely observed observations (on all
## variables) required to compute the correlation bet... |
bbe71b5e34bc6334909e6513eb1f5bea74d9c710 | c53e367a5a155cfb1ee3a41e8b0351aeaa8d331d | /timeSeries/unitTests/runit.colCum.R | 6ce9f96c1f19a3c9f782bbfbae0a4a8453ac08a3 | [
"MIT",
"GPL-2.0-only"
] | permissive | solgenomics/R_libs | bcf34e00bf2edef54894f6295c4f38f1e480b3fc | e8cdf30fd5f32babf39c76a01df5f5544062224e | refs/heads/master | 2023-07-08T10:06:04.304775 | 2022-05-09T15:41:26 | 2022-05-09T15:41:26 | 186,859,606 | 0 | 2 | MIT | 2023-03-07T08:59:16 | 2019-05-15T15:57:13 | C++ | UTF-8 | R | false | false | 1,754 | r | runit.colCum.R |
# Rmetrics is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# Rmetrics is distributed in the hope that it will be useful,
# b... |
e474b1230ebf7957ac792d68da178f8b5c2cf27e | 64fa472159285426577d615e3c4fdca622efcb85 | /netAnalysis/scoring/score.R | cf5e12408a43d11f70aecbbef7290f2c214a5036 | [] | no_license | doaa-altarawy/PEAK | f05fcf19d19470a2c9728542ab7d2d8c1ea3ee60 | 3c0e722b3549c2315b5b7ec32e7e01ce3ce4d9c0 | refs/heads/master | 2021-01-17T16:41:41.822353 | 2018-05-29T20:13:59 | 2018-05-29T20:13:59 | 75,315,636 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 808 | r | score.R |
library(PRROC)
A <- read.table("/home/doaa/Dropbox/2_My_Results/EvaluationScripts_Matlab/INPUT/predictions/pred.tsv", sep=",")
B <- read.table("/home/doaa/Dropbox/2_My_Results/EvaluationScripts_Matlab/INPUT/predictions/gold.tsv", sep=",")
pr<-pr.curve(scores.class0 = B[['V2']], scores.class1 = A[['V2']])
--------... |
fd4bcf8327fd863fe1de047b984ab29c6c3fafdb | 988aada9dce03b33f26f8975b34fc0ca1563df7e | /pollutantcorr.R | 8f1ccec451de7ee6adb0c6516868b91f6fb79bb2 | [] | no_license | lbennett04/AirPollution | 4b2cff186e88b021bea7b73ab8c23bd36f256164 | 7a8ab2850159c3dfca070ff75c06c83f88d910f6 | refs/heads/master | 2021-06-16T12:08:48.944364 | 2017-05-05T15:06:30 | 2017-05-05T15:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 673 | r | pollutantcorr.R | #the function below takes in a directory of data files and a threshold for complete cases
#and calculates the correlation between sulfate and nitrate for monitor locations
#where numobs>=threshold.
corr <- function(directory='specdata',threshold=0){
source('pollutantscomplete.R')
completepolls <- complete()
id <... |
d837a5d8b001ae86725e8c0ecd7b16b3fd82e259 | 77d041917ba2a44da3ce27a57dc2ab52c14e4e2f | /jonas/C2.02 slope_graph.R | 69d3835784c9f00d19414065ec7868625d014834 | [] | no_license | calvin-f/quantitative-hci-assignments | 4b5c339f0f4a19806f8df9687caf90504858e4e7 | 86d98d7ef4d8c9e6d645e6c6392ec493c60ef611 | refs/heads/main | 2023-04-29T10:47:45.917888 | 2021-05-25T13:23:37 | 2021-05-25T13:23:37 | 348,293,361 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 955 | r | C2.02 slope_graph.R | # Slope graph
# ===
# Goal:
# Slope graphs are useful to show the trend of the differences between conditions within each participant.
# Add a text to the slopegraph to indicate which participant it is from for each point.
#
# Example output: `goals/C2.02 slope_graph_goal.png`
#
# Functions:
# * mutate(... |
c5a662e143348d730c0b513d24b68ab113c47fe8 | d2625551031207b1dd195abd88dfe92057c0a859 | /load_and_prepare_data.R | 983743dd50bf58540ec5256486b3b4e9ce5ee2a3 | [] | no_license | dionmagnus/ExData_Plotting1 | 6772293c60bf9fd1020ffecb5a01259b265a4215 | 5e4a19bd14f7109c4d9a5aab2e05d5925bb17569 | refs/heads/master | 2021-01-18T06:45:05.388062 | 2016-02-07T13:45:47 | 2016-02-07T13:45:47 | 51,240,018 | 0 | 0 | null | 2016-02-07T07:55:44 | 2016-02-07T07:55:44 | null | UTF-8 | R | false | false | 1,055 | r | load_and_prepare_data.R | #creating the data folder
dataRootDir <- "data"
if(!dir.exists(dataRootDir)) {dir.create(dataRootDir)}
#downloading the datafile
dataZipFile <- "data/household_data.zip"
if(!file.exists(dataZipFile)) {
# loading data
dataUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.... |
fb7aeea556c953ddd017a11d7a51a929c42af8a4 | 776c032b0d34bccb8735d73daf040b96668762fa | /Making_Packages_How-To.r | f0be947b325a34a6f6f23e892d89390c3d23eb5e | [] | no_license | ekortenhoeven-usgs/R-packages | 926f6318fc4c4ba21a2b06b31236cd8c3c65d1ed | 465182250fe1ffcd89c4a7286de1addb7a53948c | refs/heads/master | 2020-12-25T06:24:03.093348 | 2016-06-20T16:45:19 | 2016-06-20T16:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,920 | r | Making_Packages_How-To.r | ##### Create an R package #####
##### Set working directory, create folder, load libraries
## Set working directory (local)
setwd('C:/Users/jmuehlbauer/Documents/R/Custom')
## Load requisite libraries
if('devtools' %in% rownames(installed.packages())==FALSE){install.packages('devtools')}
if('roxygen2' %in% rownames(... |
40d55095876017b8e2d59522ef4b5c1490a84f21 | e08424eb7743323f470775d2cedb893d9d2080db | /package/analogues/R/util.R | b92f47b53aae9d6ff9ac2bf6cfba567ff2782541 | [] | no_license | neojavan/ccafs-analogues | 9ea474537aa5f7e351b163ca27920df9b3240634 | 5faed60c61c3d44d642c76e4ca0f15700175ae22 | refs/heads/master | 2020-05-30T14:53:52.302986 | 2012-04-26T12:47:19 | 2012-04-26T12:47:19 | 39,160,381 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,426 | r | util.R | makeRoll <- function(params) {
# create roll
roll.v <- c()
months <- 1:params$ndivisions
for (i in 1:length(months)) {
roll.v <- c(roll.v,(months[c(i:length(months),0:(i-1))]))
}
roll <- matrix(data=roll.v, ncol=length(months), byrow=T)
# cut roll to the actual growin period
rol... |
e042b43f60dc96a09628cfb2d62f07a70650df18 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/hdme/inst/doc/hdme.R | ddd4789b6e45097ff16887f51f6aa3d3e4764898 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | R | false | false | 7,710 | r | hdme.R | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.width=6
)
## -----------------------------------------------------------------------------
# Load the hdme package
library(hdme)
## ---------------------------------------... |
1e568eb89caaf43b8f90b34b7c0dfda6c96de281 | 356b4537c1b107f265412c1ef1741ad0ad466ddd | /R/tests/testdir_javapredict/runit_DL_javapredict_iris.R | c99f9f8305376373b9fe2322cc12b398e5608ff6 | [
"Apache-2.0"
] | permissive | krishnatray/h2o | 5445285dd078cd9cd32d8ac9a1f0ce76c1a18551 | fa150a604dfeaec0580d361b92e795bedeb5d2ac | refs/heads/master | 2021-01-23T23:20:12.316972 | 2014-07-02T22:14:12 | 2014-07-02T22:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,578 | r | runit_DL_javapredict_iris.R | #----------------------------------------------------------------------
# Purpose: This test exercises the DeepLearning model downloaded as java code
# for the iris data set.
#
# Notes: Assumes unix environment.
# curl, javac, java must be installed.
# java must be at least 1.6.
#-----... |
a3755a8205b2da9d4844367742ef10c2fb903fb9 | fcc8d6b26723f653148390dbadc5b7747102e85d | /Scripts i pdfs-20190114/T1-E05-dcrown.R | fc914aac713cc9956e441c747bc303d8cbebfd96 | [] | no_license | Huguet57/xuleta-pie | 813b7d009e8a752c18bfc9f0c86bc4371e3af4e1 | 893b4db177a8866154fa560145cf1a97e1d5b4f8 | refs/heads/master | 2020-04-16T15:46:02.082429 | 2019-01-16T00:19:00 | 2019-01-16T00:19:00 | 165,713,281 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,765 | r | T1-E05-dcrown.R | setwd("~/Documents/CURS 2018-2019/PIE2")
library(car)
dd <- read.csv2("./Dades/dcrown.csv")
dd$RP<-dd$PB/dd$PT
scatterplotMatrix(dd,smooth=F,diagonal=F)
dd$LDCrown<-log(dd$DCrown)
dd$LRP<-log(dd$RP)
dd$LPT<-log(dd$PT)
dd$LHT<-log(dd$HT)
dd$LA<-log(dd$A)
write("__________________________________________________________... |
9e61cee30113e827c60ef9bae6720b3d760cba00 | 8f16e7d61774f151e7c31aba5d16af8badcae3a0 | /cachematrix.R | 916a13002f0b5abfaaf67fb7174fef04b0f72e9b | [] | no_license | JennyQu0605/ProgrammingAssignment2 | dbe5b71209db5e2cade0a681ca64061ab3c6b23a | b1eae8ba12b1187dbbd369e8932da68e7f7697f7 | refs/heads/master | 2021-01-16T00:22:40.145756 | 2015-09-24T15:01:44 | 2015-09-24T15:01:44 | 43,007,486 | 0 | 0 | null | 2015-09-23T14:50:47 | 2015-09-23T14:50:45 | null | UTF-8 | R | false | false | 1,053 | r | cachematrix.R | ## Put comments here that give an overall description of what your
## functions do
## Creates a vector, which containig four functions to:
## 1. set the value of the matrix
## 2. get the value of the matrix
## 3. set the value of the inverse of the matrix
## 4. get the value of the inverse of the matrix
makeCacheMatr... |
9b0da77fe64bcf71308cfbd2b7a48314943ef2c3 | 8af2bb658adb671bcfef6534cdef27eea9f6b564 | /cancer_evolution/ce2/sim_ccube.r | 13ddb269b6dc2c2e46ac9c9361a202d20c437b16 | [] | no_license | KrisJensen/mphil_compbio | ffd0282d2d2bb2e249ae4217d1acaa2821615c78 | a6aa08d25bd66f5fe7972b8e5f053071e9b5f1c0 | refs/heads/master | 2021-06-28T21:41:34.557380 | 2020-10-07T15:08:49 | 2020-10-07T15:08:49 | 163,220,424 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,639 | r | sim_ccube.r | require('ccube')
require('dplyr')
numSnv <- 500
ccfSet <- c(1, 0.4, 0.6) # true ccf pool
ccfTrue <- sample(ccfSet, numSnv, c(0.5,0.2,0.3), replace = T) # simulate true clusters
purity <- 0.9
cnPoolMaj <- c(1,2,3,4) # a pool of possible major copy numbers
cnPoolMin <- c(0,1,2) # a pool of possible minor copy numbers
cn... |
dc8c7dbfd019f2808cf735a1c6390b62124956d7 | 7cab203dda4ef3d8ddae82fac710ab591fa83289 | /analisis_de_regresion/practica_final/TP_Final-Version1.R | acb4d8ddd20db6511d46e7ffa66ba9c71a01f879 | [] | no_license | jprocha84/Maestria_Estadistica_2019 | c4b2c54dc99c81fd22701bd4ba535dfba1d38628 | 9721eb646812ba79c2d4cb7434dd5369a35deb7f | refs/heads/master | 2020-05-24T10:00:45.001736 | 2019-06-17T22:07:35 | 2019-06-17T22:07:35 | 187,219,291 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 668 | r | TP_Final-Version1.R | library("readxl")
tas_data <- read_excel("Datos_TAS-base1.1.xls")
tas_data$id <- as.factor(tas_data$id)
summary(tas_data)
colMeans(tas_data[,2:5])
attach(tas_data)
plot(tas~edad,main="TAS vs Edad",cex.main=0.8,ylab="TAS",xlab="Edad",
cex.lab=0.8,xlim=c(40,70),ylim=c(100,350), cex.axis=0.8,col="red",cex=0.75, pch... |
94deae35136578377f1520d8881ddcadca41e0e5 | ea805d721a3cdc2db7a75e38a9b212e4e1885778 | /ribiosArg/R/parseFuncs.R | 5ef852facd6e912d908051f239699283fbef886e | [] | no_license | grst/ribios | 28c02c1f89180f79f71f21a00ba8ad8c22be3251 | 430056c85f3365e1bcb5e565153a68489c1dc7b3 | refs/heads/master | 2023-06-01T04:48:20.792749 | 2017-04-10T14:28:23 | 2017-04-10T14:28:23 | 68,606,477 | 0 | 0 | null | 2016-09-19T13:04:00 | 2016-09-19T13:04:00 | null | UTF-8 | R | false | false | 4,046 | r | parseFuncs.R | parseNumVec <- function(str, expLen=2, failVal=c(5,5), sep=",") {
## for cases like 2, 2 (note tht extra blank after the comma)
if(is.null(str))
return(failVal)
str <- paste(str, collapse=sep)
## remove quotings if any
str <- gsub("\"", "", str)
if(length(str)==1) {
str <- strsplit(str, sep)[[1... |
52bd1d9eee6cb0b0c24cbeffdb8727fc9c04f7be | c6ea82baf66f2c14a2a11a3b738cb47fe5d632ac | /plot4.R | 4e10a09ca97b15a2755d0dd3fd08e5ed8ba653fd | [] | no_license | Sapbasu15/Exploratory-Data-Analysis | a446b63479734c24df47eaa37ec0aac43446d815 | 23a5768bb5c200ec669ec6e1f5d6aaa7133536a6 | refs/heads/master | 2021-01-17T10:18:50.150917 | 2015-02-09T12:44:42 | 2015-02-09T12:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,009 | r | plot4.R | require(sqldf)
file <- c("household_power_consumption.txt")
data <- read.csv.sql(file, header = T, sep=";", sql = "select * from file where (Date == '1/2/2007' OR Date == '2/2/2007')" )
data <- na.omit(data)
dtm <- as.POSIXct(paste(data$Date, data$Time), format="%d/%m/%Y %H:%M:%S")
png('plot4.png',width = 480, height =... |
0e901f1a76e264b24bb4013581bfababec5bcd5a | d1670ed594fe1ca0d88368a722d721d50f4643ba | /app_server.R | 1be4e208e7fb6f3fa529fd634fd6bcf80b62bde5 | [
"MIT"
] | permissive | jwc225/airbnb-singapore-visualization | 3d209915e7d0b380a5380ead5e49ba70d791e0e9 | 911199b323cf7d9c0d01ec98514d9f5ee4bdbaa3 | refs/heads/main | 2023-08-26T21:43:44.744937 | 2021-10-24T08:37:52 | 2021-10-24T08:37:52 | 320,154,067 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,711 | r | app_server.R | # Load packages
library("shiny")
library("tidyverse")
library("leaflet")
library("RColorBrewer")
library("batman")
# Read data (set wdir to root)
data_sing <- read.csv("data/singapore_listings.csv")
# Define a server for the application
server <- function(input, output, session) {
##### Interactive Page One #####... |
277fcde5cb471a516d0776d0671ff3ebf7354656 | f876a682c9873b115b720c25f886dfc6e9ca4f79 | /Supervised_unsupervised_classification.R | e575dfcc6bd58551c4b036334c2a4a1d35fea13f | [] | no_license | priyanka9991/Machine-learning-Deep-learning-and-Reinforcement-Learning | 894ae21bf9acdbf1c93d27a509f2f5ba1be09c7a | ddb1a11aa60ee847f4645b76ff34d254d95b335c | refs/heads/main | 2023-08-11T17:58:21.068314 | 2021-10-01T04:58:06 | 2021-10-01T04:58:06 | 381,575,450 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,709 | r | Supervised_unsupervised_classification.R | ###### PRIYANKA VASANTHAKUMARI #####
## Supervised and Unsupervised Classification ##
###### Part 1 - Supervised learning
library(magrittr)
library(tidyverse)
library(caret)
library(MASS)
library(boot)
library(klaR)
load("/Users/priyanka/Documents/Course works/Data Mining /Final Project/class_data.RData")
data <- da... |
586d5d315c6ee68e9555867e7ebb89773ce0cf60 | 04c5806551ee9fa11c02ab90b2e4062f8330606f | /cachematrix.R | 6985e0a2d8d45d86630997d81b97835247ac7846 | [] | no_license | OrenMorav/ProgrammingAssignment2 | 0a29e2100dfe70d8826ea3a34a7894a8e458a1ed | 1e9156a455a0cef02666fa5c221d622bf87c3d03 | refs/heads/master | 2021-01-14T08:50:49.665959 | 2015-06-20T20:22:26 | 2015-06-20T20:22:26 | 37,367,910 | 0 | 0 | null | 2015-06-13T10:47:18 | 2015-06-13T10:47:16 | null | UTF-8 | R | false | false | 1,266 | r | cachematrix.R | ## Implementation of a Cached matrix
## The implementation allows saving the inversion result to object so that upon repeated calls,
## if the data hadn't changed, the value from cache will be returned, saving repeat computations.
## Create a cache matrix object
## input: an inversible matrix
## output: a list of ... |
ba757fc23a5f27359b8a7de00cb97008b9888b3e | 3fc0f5ceb2d4cac7611f75278db5620047d5ef5f | /03-summarize-tables-mssql.R | 85f047d2b0332938d20696785a07f6127946140a | [] | no_license | dbmi-pitt/docker-proteus | a511f38ab34995b36bd4091bcec7e8ca9c70238d | 691fc1946620dcfc9edc655d76f1edca5f8d9c49 | refs/heads/master | 2020-12-12T14:13:51.911117 | 2020-04-08T18:00:06 | 2020-04-08T18:00:06 | 234,147,200 | 2 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,210 | r | 03-summarize-tables-mssql.R | # Load libraries
library(tidyverse)
library(magrittr)
library(dbplyr)
# Source in config and function objects
source('/app/01-functions.R')
# Establish connection to db
conn <- DBI::dbConnect(odbc::odbc(),
Driver = "ODBC Driver 17 for SQL Server",
Server = Sys.getenv("ser... |
a1826e6689002eadb12bf501e7e72bf168570a73 | d5e9b2f409d41d39dcd662545bca5db5422a3466 | /hdimDB/man/checkDb.Rd | 998097a145311a9cf3c1eefe4950c7cecb656e8a | [] | no_license | hawaiiDimensions/db | 09d4c6bd37e065d00e80f0be8e7a78267cbb1ad5 | 0edc09936c69bfd240880cde1ea2b779a6fc7d1f | refs/heads/master | 2021-04-09T17:18:34.491690 | 2017-07-05T19:16:51 | 2017-07-05T19:16:51 | 51,867,693 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 689 | rd | checkDb.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checkDb.R
\name{checkDb}
\alias{checkDb}
\title{Checks Dimensions Database for errors}
\usage{
checkDb(db, match = "index")
}
\arguments{
\item{db}{The database to be checked}
\item{match}{The autocorrection method to be used with misspelled... |
a05d4c7886a6ed5d94954fc009ef94c60dd259ed | db626fd1391e1d349d022d54606bf635e858d5c1 | /Summary/var_imp_graph.R | bd535488938ab6b668e55a7a86a63213ea087cff | [] | no_license | som-shahlab/HTE_SL_Prediction | 4aa0db55fa398f023ae9eef0532352ccb5abd8aa | 600f6d9be5417c536d8e966f6e72da42634eaea9 | refs/heads/master | 2023-08-30T02:11:45.697716 | 2021-11-14T00:40:41 | 2021-11-14T00:40:41 | 408,545,670 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,572 | r | var_imp_graph.R | setwd("C:/Users/cryst/Documents/Stanford Postdoc/NHLBI R01 Aim 2/Analyses Stanford Team/Analysis Results/Tuned Results")
bart_imp_vars <- read.csv("IV_imp_bart.csv")
deepsurv_imp_vars <- read.csv("IV_imp_deepsurv.csv")
gbm_imp_vars <- read.csv("IV_imp_gbm.csv")
sf_imp_vars <- read.csv("IV_imp_sf.csv")
# CVD
vars <- b... |
0179160b580060c3f83e73f0eaaa4f2bed7b0674 | 1169fafd807a7597a4548e75ccdce163cd01f060 | /code/emas.r | 28bcfb32529fc9c258a4ed6841de259d616b7b89 | [] | no_license | ransnit/FinProj | 8bda11f9e4cb58e7e0ff88728ee9ef7e0bd4a4db | 01413b601fbe844874a8b01ab86e4e027c1a9bf2 | refs/heads/master | 2021-01-15T10:42:57.824523 | 2014-12-29T09:09:34 | 2014-12-29T09:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 691 | r | emas.r | source("config.r")
init.ema <- function(l, values)
{
alpha <- 2 / (l+1)
result <- rep(NA, length(values))
result[1] <- values[1]
for (j in 2:length(values))
result[j] <- (1-alpha)*result[j-1] + alpha*values[j]
return (result)
}
init.emstd <- function(l, values, means)
{
stopifnot(length(values)... |
2848155097c504a91f77e85a989cce6be9656cd6 | 362f41415fbc3f859501ec89e143bb02afe8e895 | /scalar-on-image - paper.R | 6756d1cd86b14fc15d7ef7cd45c9714280caaa0f | [] | no_license | royarkaprava/PING | a460d736319cb6e2145af74cb6493c808d852249 | c1ee6713c463559134d64686af4b9db68af68fc8 | refs/heads/master | 2020-04-18T19:16:21.203738 | 2019-01-26T16:14:52 | 2019-01-26T16:14:52 | 167,708,105 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 10,114 | r | scalar-on-image - paper.R | library(mvtnorm)
library(geoR)
library(matrixStats)
library(doParallel)
library(foreach)
library(fields)
registerDoParallel(20)
setwd("/mnt/home/aroy2")
# Transform that to matern parameters
theta2mat <- function(theta,nugget=TRUE){
c(exp(theta[1]),
ifelse(nugget,1/(1+exp(-theta[2])),1),
exp(theta[3]),
... |
17b1d2adf10742a05c1b903b9611bb720152ecea | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/reReg/examples/reReg.Rd.R | 1cc8f969af2ba0f6e8a59c576088a51b29bda413 | [] | 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 | 676 | r | reReg.Rd.R | library(reReg)
### Name: reReg
### Title: Fits Semiparametric Regression Models for Recurrent Event Data
### Aliases: reReg
### ** Examples
## readmission data
data(readmission, package = "frailtypack")
set.seed(123)
## Accelerated Mean Model
(fit <- reReg(reSurv(t.stop, id, event, death) ~ sex + chemo,
... |
cfe9b715066b72ab374dfb2cebd1b9876e08c4ce | cfdbca2e80b393dee23647a41810b7e0827c5359 | /Z Old Tex Files/program R/Conceptos/binomial_convergen_poisson.r | 6f1836683ba7d2f66c8928f20ffb42a9f6989b11 | [] | no_license | cualquiercosa327/2ed-team | 99e1d67f861785ef6ec003901e9869525128178f | cd596e8ff5a657a3c0118763d1cd6a7fbc4bfc69 | refs/heads/master | 2022-01-06T05:38:44.019913 | 2019-06-25T20:54:11 | 2019-06-25T20:54:11 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | R | false | false | 2,646 | r | binomial_convergen_poisson.r | ###############################
#### Para p pequeño ###########
###############################
n1<-10
n2<-50
n3<-100
p1<-0.2
p2<-0.5
p3<-0.8
a11<-dbinom(c(0:n1),n1,p1)
a12<-dbinom(c(0:n1),n1,p2)
a13<-dbinom(c(0:n1),n1,p3)
a21<-dbinom(c(0:n2),n2,p1)
a22<-dbinom(c(0:n2),n2,p2)
a23<-dbinom(c(0:n2),n... |
aff7dda579dcb240a6b735c852e5374a5db0e77b | d3e02276ecbd771fd37379ed487883006fc54cab | /Exercise-3/1/analysis.R | d1315e0843cd0725f2c5f03be374705ea48ce377 | [] | no_license | shotii/Big-Data-Analytics | 08912adfe5ac2f3f6546df763899b078a78edae0 | a83025692e47d55f80c228b90d08f2c6310b4d20 | refs/heads/master | 2021-05-02T09:32:56.796756 | 2017-02-01T21:10:37 | 2017-02-01T21:10:37 | 72,871,379 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,860 | r | analysis.R | library(ggplot2)
data(diamonds)
summary(diamonds)
# Variables for easier access
carat = diamonds$carat
cut = diamonds$cut
color = diamonds$color
clarity = diamonds$clarity
depth = diamonds$depth
price = diamonds$price
volume = diamonds$x * diamonds$y * diamonds$z
table = diamonds$table
maxCorrelation... |
26a08323c7a92797271b391d61123072be91a249 | 6efddb8a3e3055345d36d0fb44dba7d66ca8f87d | /R/utils.R | 5d601bbd75a5ba6543c24732c85c0aa0007e47e1 | [
"MIT"
] | permissive | krzjoa/torch | 9d1a765e76d7d172c5e17d755f9eecaadc5daae4 | e58f322562504a9d503179ca2a1c318e6431cc32 | refs/heads/master | 2021-06-29T15:42:32.360235 | 2020-11-11T21:45:30 | 2020-11-11T21:45:30 | 299,896,062 | 0 | 0 | NOASSERTION | 2020-09-30T11:23:25 | 2020-09-30T11:23:24 | null | UTF-8 | R | false | false | 320 | r | utils.R | nullptr <- function() {
x <- cpp_nullptr()
class(x) <- "nullptr"
x
}
# https://stackoverflow.com/a/27350487/3297472
is_null_external_pointer <- function(pointer) {
a <- attributes(pointer)
attributes(pointer) <- NULL
out <- identical(pointer, methods::new("externalptr"))
attributes(pointer) <- a
out
}
|
4907f1aba63a9d4ba08d52bdf146ed972370487f | 05d086f9121da2dc96a00087d7d6d8789aea8500 | /RushRanch_Preliminary.R | f74877b8b45cec8a7487a3678e6f0c7daddcca60 | [] | no_license | srussell2416/Rush_Ranch | f050bc6763ad799f8f54afd16b5183e3d701e4b1 | ade5ef2599bda5717969e9cbbfd0f275ac56ff8d | refs/heads/master | 2020-08-08T07:24:31.553784 | 2019-10-29T20:52:06 | 2019-10-29T20:52:06 | 213,777,310 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,486 | r | RushRanch_Preliminary.R | #Rush Ranch Exploration
library(tidyverse)
library(lubridate)
library(bigleaf)
data <- read.csv("~/Documents/MS_Thesis/USSrr.csv")
names(data)
data <- data %>%
select(-Year, - Hour) %>%
separate(TIMESTAMP_END, into = c("Year", "Month", "Day", "Hour", "Minute"), sep = c(4, 6, 8, 10)) %>%
mutate(datetime = paste0(... |
8e536c424ade053b990235d7b3c1d19c84b7cf0c | 6eeffc5b83a920bc7f357af3312970fa0a5a84d3 | /R/ols-data-hsb.R | d5b5a2be9d9d9abd951b73796ebc388e1fd09476 | [] | no_license | cran/olsrr | 81fe16ddb7b43e33254a7262283d39e37ce4a533 | 215958dfa67b03943c34a12cf6e3774d628fcda7 | refs/heads/master | 2021-06-24T07:12:32.809254 | 2020-02-10T11:00:02 | 2020-02-10T11:00:02 | 90,952,056 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 25 | r | ols-data-hsb.R | #' Test Data Set
"hsb"
|
13a90e81e45b2531d448ddfb50afc62d2118d601 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/nonfatal_code/digest_gastritis/prepnewdata_545_total_gastritis.R | 7d03286b09a4617f3aacc0b19c481135f658d62a | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,091 | r | prepnewdata_545_total_gastritis.R | ## Gastritis and duodenitis; processing data new in GBD 2019
rm(list=ls())
## Set up working environment
if (Sys.info()["sysname"] == "Linux") {
j <- "FILEPATH_J"
h <- "FILEPATH_H"
l <- "FILEPATH_L"
} else {
j <- "FILEPATH_J"
h <- "FILEPATH_H"
l <- "FILEPATH_L"
}
my.lib <- paste0(h, "R/")
central_fxn <-... |
eb48d93765061e0732aebe466761c3ed7b4ffa1b | 0ff20eb80dec8348c77e57a48f4298515e311352 | /Examples In R/Correl.R | c12bcbfb7a521d6549383163cbe3bffa0c71f365 | [] | no_license | tusharkumar0404/TestRepo | bf58f42dd4c247eebf9a9c7d361099a60e7279c2 | 1350e72edd7150a15156063feb4ca13646b65269 | refs/heads/master | 2021-01-12T04:00:23.808841 | 2018-08-20T13:05:32 | 2018-08-20T13:05:32 | 77,460,419 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,625 | r | Correl.R | ##################################################
# Demonstrate plotting graphs of paired variables
# (X1, X2) where cor(X1, X2) varies in a range
#
# Load the library for multivariate
# normal distribution
library("mvtnorm")
# Square plots
opar <- par(no.readonly=TRUE)
par(pty="s")
par(mfrow=c(2,3))
#############... |
429630a809905c62549146f3d6011e035dc80235 | 8ff609111a7e80b787c1f000259d83d295c03beb | /CV.elastic/divide.data.r | 111729696400b39c26b2f2578a13f5a1b2450364 | [] | no_license | SoyeonKimStat/PROMISE | 71a57eb2558854b22089f5da5505a10c7df5a2f1 | 263f0366aaa31776d3ddd6f44c1d7e6910514052 | refs/heads/master | 2021-08-16T05:25:11.718753 | 2019-07-17T13:07:54 | 2019-07-17T13:07:54 | 91,021,189 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 711 | r | divide.data.r | # train.portion : what percent of data is used for train set
# response variable is in the last column
divide.data <- function(data, train.portion) {
data <- apply(data, 2, as.double)
n <- nrow(data)
ntr <- floor(n*train.portion)
trainid <- sample(seq(n), size = ntr)
ntrainid <- !seq(n)%in%trainid
x... |
c20e74c40d5aeb9969a5386ccc5b2998bf97c097 | a896750e89c4f610b73f59b539b546d6f024af07 | /DESeq2 Script.R | 4f586f51b7d89f72e0fac4ebde5a386c1a024107 | [] | no_license | QIU912/1 | 060a7a983395ab3f4067eac60ad1d42020b245a7 | c00fe4baba9385f47ab436060bead517ab2b7bb4 | refs/heads/main | 2023-04-11T09:57:11.081884 | 2021-04-22T09:41:09 | 2021-04-22T09:41:09 | 298,272,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,045 | r | DESeq2 Script.R | #install.packages("BiocManager")
#BiocManager::install("DESeq2")
#BiocManager::install("GenomeInfoDb")
#BiocManager::install("latticeExtra")
#library(DESeq2)
getwd()
require(DESeq2)
setwd("F:/临时/class/")
data <- read.table("P7vsPAO1.txt", row.names = 1,header = T, na.strings = c("","NA"), skipNul=TRUE)
dim(d... |
e2dd07c8edf4dd257c6f2b96d1c5bf7d2238cb58 | 590653560395302059275ff4bcc9551283a0cd73 | /Reto/Punto1,1.R | ee1893586eec6e1fb39f1c3d39af096f5e46515a | [] | no_license | LuisPenaranda/AnalisisNumerico | 3247251541f992918d90f1e2770a893617ad9b0c | 29b8cc0e55b5320c9d805ed2a6e1619b2d8a4d42 | refs/heads/master | 2020-12-19T05:31:21.748084 | 2020-05-21T13:23:42 | 2020-05-21T13:23:42 | 235,633,644 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 720 | r | Punto1,1.R | # * Luis Peñaranda
# * Diego Gomez
# * Camilo Moreno
horner <- function(coeficientes, x){
y <- coeficientes[1]
i <-0
for(k in coeficientes[2:length(coeficientes)]){
y <- x*y + k
i <- i + 2
}
return(cat("resultado: ",y ,", El numero de operaciones realizadas fueron de: ", i, " siendo ", i/2 , "el n... |
ca8dafba11a1185bba2379393df7ede3e0ec3777 | 0cbcb07d7129ab917d974e59f9cc573dde7cca3d | /R/ehg_dbConnect.R | fee064287626871dffb76e008b48dfae4653595d | [
"MIT"
] | permissive | mmajluta/enhogar | 9d88cf5c0bf0fe570edadde810414f34588b4a94 | f32addfd86d7bd28e8c44c0296f1d68bf7310b01 | refs/heads/main | 2023-03-08T13:48:48.034981 | 2021-02-24T16:41:54 | 2021-02-24T16:56:10 | 341,257,070 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 320 | r | ehg_dbConnect.R | #' Conexión a base de datos
#'
#' `r lifecycle::badge("experimental")`
#'
#' Vea \code{Dmisc::\link[Dmisc:dbConnect]{dbConnect}}
#'
#' @return Conexión a base de datos.
#' @export
#'
#' @examples
#' \dontrun{
#' conn <- ehg_dbConnect()
#' }
ehg_dbConnect <- function(){
Dmisc::dbConnect(db_name = "enhogar")
}
|
f722c6b5a3a960f28698cc8a839888227f76051a | 4273f49c3e1ff875273c10f381e6bd5896da7333 | /R/lunarBand.R | ae3a0cfc448c3860da113f7e59c370dba7b4cd35 | [] | no_license | ChaddFrasier/planetLearn | bb01a07c0400224a7ed6b77f0c624f64e0868c99 | 6ed0c77df311804089b4e0ca1316875be48b2e86 | refs/heads/master | 2022-11-12T18:35:56.423863 | 2020-07-01T22:17:11 | 2020-07-01T22:17:11 | 265,106,314 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 707 | r | lunarBand.R | #' Lunar Data from LROC WAC
#'
#' A dataset containing the DN, phase angle, emission angle, incidence angle, local emission angle, local incidence angle, latitude,
#' longitude, Sun azimuthal direction and scapecraft azimuthal direction.
#'
#' @format A data frame with 4,183,770 rows and 10 features:
#' \describe{
#' ... |
01618918a8f64a03812714066a9ea290d991a487 | a447fd4b189cd1098b165c5c160445b0eec4ad11 | /papers/Osprey/corr_Osprey.R | 6b7af7caeefe2d2b87592a10707826010c6f1353 | [
"MIT"
] | permissive | shui5/SpecVis | 963808de519675945593d2ebeeca9592f63c9a84 | 724f9b68b85948c2bffccb86422bed3aa895ad90 | refs/heads/master | 2023-06-16T10:59:53.591095 | 2021-05-08T19:38:37 | 2021-05-08T19:38:37 | 288,817,142 | 0 | 0 | null | 2020-08-19T19:16:02 | 2020-08-19T19:16:02 | null | UTF-8 | R | false | false | 3,833 | r | corr_Osprey.R | source('functions/dependencies.R')
source('functions/spvs_importResults.R')
source('functions/spvs_Correlation.R')
source('functions/spvs_AddStatsToDataframe.R')
source('functions/spvs_Boxplot.R')
source('functions/spvs_ConcatenateDataFrame.R')
source('functions/spvs_Statistics.R')
dfPhOsp <- spvs_importResults('/Volu... |
73dac174bed9e61df242f5984c0db01a5e328cdb | ed814820a52aa3d29816496eb7c305366d0abe47 | /code/simulation/simulation_manuscript_run.R | 3700eb899652cee8e08f6f9e3615eefd7d1df858 | [] | no_license | DongyueXie/deconference | c96221f9b659ca051e567c5560c6686196b84244 | ae975014687859a7e38ad8fc2d6a11d7da725d5d | refs/heads/master | 2022-03-01T23:05:43.328391 | 2022-02-23T17:28:36 | 2022-02-23T17:28:36 | 253,314,515 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 20,530 | r | simulation_manuscript_run.R | #
# xin_raw <- readRDS("data/pancreas/xin_raw.rds")
# cell_types = c('alpha', 'beta', 'delta', 'gamma')
# K = length(cell_types)
# rm.indi = c("Non T2D 4","Non T2D 7","Non T2D 10","Non T2D 12")
# rm.indi.idx = which(xin_raw$individual%in%rm.indi)
#
# datax.xin = set_data_decon(Y = xin_raw[,-rm.indi.idx],cell_types = ce... |
3fbba3da181fefaa56eb158d5d260a4246a16193 | 810a8f9cb3439bacc4885803dbc1e8251f50a51b | /functions.R | cb3abdee4fc75116f0da770b1937b36b5b62fc3f | [] | no_license | janfait/nmf | cb5e9adaf0b9f69ed741ba1b42fa85cb598c89cf | 2be4b0b0df1858e70ff31cb4d8fefa259d406943 | refs/heads/master | 2020-05-04T20:41:22.040034 | 2014-11-24T11:02:08 | 2014-11-24T11:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 21,510 | r | functions.R | ####################################################################################################
# FAILURE DETECTION
####################################################################################################
# function that returns TRUE if your attempted operation results in an error
# @x whichever object... |
bf2514b9c8bec0e34f61817e75164547616fa657 | ceb26dde1c145989ad9a3b516fec297951b41b3c | /R/choplump.formula.R | 188956932a4e84bcbe9a6137acaca0a551632d3e | [] | no_license | cran/choplump | ecbe66a193bb0ddc20c5ffb4795ab07e4f0bbe76 | 7c20d519796bda4cdd1629c649c5d4f5b2503bbf | refs/heads/master | 2022-05-14T22:01:40.865158 | 2022-05-09T14:50:02 | 2022-05-09T14:50:02 | 17,695,060 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 919 | r | choplump.formula.R | `choplump.formula` <-
function(formula, data, subset, na.action, ...){
## mostly copied from wilcox.test.formula
if (missing(formula) || (length(formula) != 3) || (length(attr(terms(formula[-2]),
"term.labels")) != 1))
stop("'formula' missing or incorrect")
m <- match.call(expand.dot... |
1f776fb8851c67e856621774c07175b444fa83cd | 303ecdc998923dc101dfc42b8dbf42853ce7a7ec | /man/runFAIMS.Rd | 88b40340ef3c8db9c2e0c644f90b63ec96dcc37d | [] | no_license | mattdneal/FAIMSToolkit | 7e2640eb979110c2fca1cad639beb78fb9b25be4 | 751bfba992587bb7e5edba272a3890b088e19e33 | refs/heads/master | 2021-01-11T17:37:52.367113 | 2018-12-01T13:54:33 | 2018-12-01T13:54:33 | 79,808,086 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 1,332 | rd | runFAIMS.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/runFAIMS.R
\name{runFAIMS}
\alias{runFAIMS}
\title{Run a standard analysis given a FAIMS object and class labels}
\usage{
runFAIMS(FAIMSObject, targetValues, models = c("rf", "glmnet",
"svmRadial", "svmLinear", "gbm", "nnet", "glm"),
mode... |
3956489044efb88797ed99697244a708314d9953 | e30ed8ebaf7ea390550593027296dcc587f04698 | /modelTestR/testSmoothModel.R | 0497b15a1f8368f7f3a57e6aed88e348d767043d | [
"MIT"
] | permissive | vdedyukhin/FluMapModel | 93543537452adfc7fe81af70508c2fbf08305cee | 8ba432fb70f4178c1c3a07fd231d99a834ed23fb | refs/heads/master | 2020-06-13T08:30:27.953805 | 2019-05-10T22:36:57 | 2019-05-10T22:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,497 | r | testSmoothModel.R | # testModelTrainR
# script to test incidenceMapR package
library(dbViewR)
library(incidenceMapR)
library(modelTestR)
library(dplyr)
shp <- masterSpatialDB() # census-tract shapefiles
# ggplot build eventually will be replaced by function ggplotSmoothSequential
library(ggplot2)
plotSettings <- ggplot() + theme_bw() ... |
893ece5cbb277feba76bb59ed728daa4228d7dd4 | 29370cadec080cc724c00e372b3381155e233bbc | /HW1/walker_jocelyne_hw1.R | 0947f8b8667d361243222dc24771fc85b59709b8 | [] | no_license | jocelynewalker/SupplyChainAnalytics1 | e61d112114507d91e2c20b3be7e9bac3bbe84038 | 16a41eab76471743e19629e211c388cc7ac56b28 | refs/heads/master | 2023-02-02T23:16:53.301185 | 2020-12-15T04:47:09 | 2020-12-15T04:47:09 | 321,555,004 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 361 | r | walker_jocelyne_hw1.R | #1
A = matrix(c(1,7,9,3,2,8,5,3,0),nrow=3,ncol=3)
#2
x <- rnorm(10)
mean(x)
var(x)
y <- rnorm(10)
mean(y)
var(y)
#3
set.seed(2567)
x <- rnorm(10)
mean(x)
var(x)
set.seed(2567)
y <- rnorm(10)
mean(y)
var(y)
#4
e <- exp(1)
y = e^(-x/8)*sin(x)
x = seq(1,20, by=1)
plot(x,y)
#5
B <- matrix(10:25,4,4)
B[c(2,3,4),c(2,4)]
#6
A... |
be163b0458be86da667245f9a89a5c13b113f6e3 | 3ba4cd64b22d83c89e567fc0124bc6bc754511f6 | /code/贵州省县区区划/figure.R | 6d64de5bdb76bef525485b842f3f52aeeaebf6e1 | [] | no_license | pfan8/R_Study | 4f589c887450bd6c497762740776cdc4a9915826 | d13d7677eb4142ae737c43df52340df7cf60d8be | refs/heads/master | 2020-03-10T12:42:04.902454 | 2018-04-13T10:32:35 | 2018-04-13T10:32:35 | 129,383,731 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 191 | r | figure.R | library(RColorBrewer)
library(spData)
library(Matrix)
library(spdep)
library(maptools)
library(rgdal)
rob.shp=readOGR(".\\R\\贵州省县区区划\\2017县界.shp")
plot(rob.shp,axes = TRUE)
|
8fecc1b0ab11cddcfcd1ed84b270f3084bb11f72 | b4c1bc98a83dc8f4ad492911faca4c709c146288 | /R/ithim_setup_baseline_scenario.R | 21e95c231a6486b78c7198012e34e2acb8679ae7 | [] | no_license | danielgils/ITHIM-R | facd3e74e3b4cdea279245372e3f2ec3bcb35cc0 | 7e306f0aea3e6ea21521104206a0281e5882af13 | refs/heads/master | 2023-09-05T05:33:00.779268 | 2021-11-10T10:07:42 | 2021-11-10T10:07:42 | 277,875,917 | 0 | 0 | null | 2020-07-07T17:04:21 | 2020-07-07T17:04:20 | null | UTF-8 | R | false | false | 1,064 | r | ithim_setup_baseline_scenario.R | #' Set up baseline scenario data frame
#'
#' Create scenario by adding distance categories and scenario=baseline column to trip set data frame
#'
#' @param trip_set data frame of trips
#'
#' @return trip_set as baseline scenario
#'
#' @export
ithim_setup_baseline_scenario <- function(trip_set){
##?? do we need a... |
df0cf3454328ea78dff2986f2780b4ae6db191f5 | fa1218bd0d9de845695f85c260140545a335a3dc | /R/exasol.R | 283fbad1174de40764de8c60094a48daa5306172 | [] | no_license | fxcebx/r-exasol | 421df98fae236b4ade1c3659e785931bc86a1256 | c25b40d413349e6e737912288f63ccb5996f00e7 | refs/heads/master | 2021-01-18T03:26:24.842337 | 2015-12-21T14:41:11 | 2015-12-21T14:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,107 | r | exasol.R | #' @docType package
#' @name exasol-package
#' @aliases exasol
#' @useDynLib exasol, .registration = TRUE, .fixes = "C_"
#' @exportPattern ^[[:alpha:]]+
#' @import RODBC
#'
#' @title EXASolution R Package
#'
#' @description The EXASolution R Package offers functionality to interact with
#' the EXASolution database ou... |
69256e8d48a45b76d6ed2f89a1f939b6fbae848e | 645ff6a53c2093037c7154cdd87714942385ffd4 | /R/delete.R | cd32ed2cde32e8fe8e61e2e5c966456994d269af | [
"MIT"
] | permissive | 1havran/solrium | 04c6754d14509e0e46e50d39f074d17b190eb050 | a30015c1d1a28fc7293d67854c12d8f3fc99fad0 | refs/heads/master | 2021-01-01T06:09:13.350637 | 2017-02-01T19:44:27 | 2017-02-01T19:44:27 | 97,371,390 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,286 | r | delete.R | #' Delete documents by ID or query
#'
#' @name delete
#' @param ids Document IDs, one or more in a vector or list
#' @param name (character) A collection or core name. Required.
#' @param query Query to use to delete documents
#' @param commit (logical) If \code{TRUE}, documents immediately searchable.
#' Deafult: \cod... |
ac8ea0096836c057aed4c99114f79328550a3ee8 | ec048a600a5d6693f8925b6552c24d3597b22a01 | /inst/unitTests/test_DoparParam.R | 3705222659002836f1b89fc867deb666f5304222 | [] | no_license | Bioconductor/BiocParallel | 532510accf92487b0e19040d67e0b46aadbc4948 | ce0be51cf06c501e203f6ed743aa04821a7beded | refs/heads/devel | 2023-07-26T09:40:20.761793 | 2023-07-07T17:01:32 | 2023-07-07T17:02:06 | 6,694,227 | 56 | 33 | null | 2023-08-16T20:05:09 | 2012-11-14T20:16:37 | R | UTF-8 | R | false | false | 2,720 | r | test_DoparParam.R | message("Testing DoparParam")
test_DoparParam_orchestration_error <- function() {
test <-
requireNamespace("foreach", quietly = TRUE) &&
requireNamespace("doParallel", quietly = TRUE)
if (!test)
DEACTIVATED("'foreach' or 'doParallel' not available")
if (identical(.Platform$OS.type,... |
b7ef0a36e2ea4deea0b2de435003f6202e19da26 | c8b9d55207fc4e8e2e7c39cb4c074455b3e2c5fa | /man/scDIFtest-Methods.Rd | 82c7ff2b0f78b96ff38af79cf6ece3cfc0144504 | [] | no_license | cran/scDIFtest | b0f93999632cc5cc68e15e0ea9123a68e34efd38 | f5d4bb89b988e04aaf5a890ef160c9e15508a25b | refs/heads/master | 2022-11-19T03:23:38.521332 | 2020-07-02T06:20:03 | 2020-07-02T06:20:03 | 276,706,923 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 2,328 | rd | scDIFtest-Methods.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scDIFtest-Methods.R
\name{scDIFtest-Methods}
\alias{scDIFtest-Methods}
\alias{print.scDIFtest}
\alias{summary.scDIFtest}
\alias{plot.scDIFtest}
\title{Methods for the scDIFtest-class}
\usage{
\method{print}{scDIFtest}(x, item_selection = NULL... |
3fd4ac10188a7bab75472b2ad67af878e8726d3a | 867b7fb3466aabe7bc8c5eded17a643ae077e5df | /ServerFiles/generate.R | 54e7e855c99867f4d93957e33413388aa532ed89 | [] | no_license | kdaust/PortfolioSensitivity | 7c2b1e059be5d85373d1c11a47a95e7c857b40ec | f7c79fea352a0e50c81fd025eeb378c3acb04c58 | refs/heads/main | 2023-07-12T06:09:19.936553 | 2021-08-19T21:00:01 | 2021-08-19T21:00:01 | 394,799,890 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,311 | r | generate.R | observeEvent(input$generate_results, priority = 100, {
# On generate click, we are taking a snapshot of the current points
# and calculating results. All relevant results will be stored in the
# userdata environment for further reuse. User has the ability to update
# results on demand instead of on app state ch... |
b480a2b4d66da9a3099a618922466e3c61882e60 | 140fb0b962691c7fbf071587e2b950ce3da121be | /Code/integration_analysis/01F_OraScoresSEEP.R | 0e80fcc01578874b4ca00bd2d92d21f6c8d25f02 | [] | no_license | davidbmorse/SEEP | cb0f8d33ca01a741db50ebf21e0f56ab3c5bb372 | 357645a6beb428e4c091f45f278c5cdb4d4d3745 | refs/heads/main | 2023-04-09T10:55:01.267306 | 2023-03-24T02:53:21 | 2023-03-24T02:53:21 | 305,464,980 | 0 | 0 | null | 2020-10-31T16:15:55 | 2020-10-19T17:38:20 | R | UTF-8 | R | false | false | 1,622 | r | 01F_OraScoresSEEP.R | rm(list=ls())
setwd("C://PROJECTS/P2022/SEEP_Manuscript")
library(tidyverse); library(dplyr); library(Seurat); library(UCell)
# data
data("SEEP_ORA")
#data("SEEP_Regions")
data("SS2trans_Regions")
iso = isoSEEP_ref
DefaultAssay(iso) = "RNA"
iso$Regions = factor(iso$DA_regions_layer)
Idents(iso) = iso$Regions
colo2=g... |
eae59c8dbb27e54a7bb838eb4c7a3da917bec6b9 | 446373433355171cdb65266ac3b24d03e884bb5d | /R/grass7_i_tasscap.R | ee94bceed0d19f85f5dd988cbe36a3cb55b8d1b4 | [
"MIT"
] | permissive | VB6Hobbyst7/r_package_qgis | 233a49cbdb590ebc5b38d197cd38441888c8a6f3 | 8a5130ad98c4405085a09913b535a94b4a2a4fc3 | refs/heads/master | 2023-06-27T11:52:21.538634 | 2021-08-01T01:05:01 | 2021-08-01T01:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,071 | r | grass7_i_tasscap.R | ##' QGIS Algorithm provided by GRASS i.tasscap (grass7:i.tasscap)
##'
##' @title QGIS algorithm i.tasscap
##'
##' @param input `multilayer` - Input rasters. Landsat4-7: bands 1,2,3,4,5,7; Landsat8: bands 2,3,4,5,6,7; MODIS: bands 1,2,3,4,5,6,7. .
##' @param sensor `enum` of `("landsat4_tm", "landsat5_tm", "landsat7_et... |
80d7822ffcdd13bbacd443b3d7c4f5ed2afeca2b | 48f50fb1adc9ef70f6eb46f8cb679f68a58d61a2 | /shiny_charts_maps/app.R | 83d3fce8179ba893e1040fe70944490dab85e7de | [] | no_license | meb2308/p8105_maternity_leave_nyc | 6b4e4031aef63ac03560668ba5b89f2dc63e1669 | ec34f9b20ad7d3d201d57b2ed81a71b795721f70 | refs/heads/main | 2023-01-20T13:00:07.728921 | 2020-12-01T19:09:25 | 2020-12-01T19:09:25 | 310,341,969 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 158 | r | app.R |
library(shiny)
library(plotly)
dataset <- charts_df
ui <- fluidPage(
)
server = function(input, output) {
}
shinyApp(ui = ui, server = server)
|
321ffb056740e7ee07dbe82c9c38623a2694bb92 | 34420dcc928bc282159b0680a87a674f493f87ce | /R/theme_shrub.R | 2672a1d73404cb8f785abb76fd3176fa06fa1b23 | [] | no_license | gndaskalova/TeamShrubR | 42f7ccbd4a40b94eca7c50139095758cdeb8a2a9 | 1f4f4e806168181c7c8e3cbd4506ba4d105a32dd | refs/heads/master | 2021-01-21T05:20:10.802727 | 2017-03-03T12:08:19 | 2017-03-03T12:08:19 | 83,169,941 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 1,129 | r | theme_shrub.R | #' A ggplot2 function
#'
#' This function allows you to quickly use a pre-customised theme, no angled x axis labels.
#' @param theme Makes the theme
#' @keywords theme
#' @export
#' @examples
#' ggplot() + geom_point(...) + theme_QHI()
theme_shrub <- function(){
theme_bw() +
theme(axis.text = element_text(size =... |
b3018ff7ae69f16043b3980a3ba60502340830a6 | 76b42d15696eb2ca18412e99a064798a21c4b277 | /06_clustering/kmeans.r | baf7f2a02f72e460b864ea434db6e2531cd2dfc3 | [
"MIT"
] | permissive | dipanwita2019/ml_projects | 5afab1a2f46120a2b7a95378d11053562664e646 | 8791d5e3b79472cdd109feacf106934276b80b15 | refs/heads/master | 2023-08-06T18:57:53.861647 | 2021-09-17T04:42:39 | 2021-09-17T04:42:39 | 263,816,994 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 394 | r | kmeans.r |
# Reading in data
ds = read.csv('Mall_Customers.csv')
X = ds[4:5]
# Finding k
wcss = vector()
for (i in 1:10)
wcss[i] =sum(kmeans(X, i)$withinss)
plot(1:10, wcss, type = 'b', main=paste("Elbow method"), xlab = 'number clusters' )
# Clustering
kmeans = kmeans(X, 5)
y_kmeans = kmeans$cluster
# Visualising the c... |
22cecd56c60734efc8a4675328062c995a4dccae | 9f3eb8261116f0f6abb142cf89abed8dffb9519e | /time.R | ff708177f4e357ab1cfe4c06b2a6a5cc8ee36d21 | [] | no_license | kokatoo/R-examples | fb8ff172e68a018491dad3f3ee2fa00622c1ea27 | 9d6ae7fdf3c86f225c7a45d764ea353ddaec0a2f | refs/heads/master | 2021-01-19T10:21:13.735226 | 2013-09-03T11:23:24 | 2013-09-03T11:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 96 | r | time.R | ##---- Time Interval
time.span <- as.numeric(difftime(max.time, min.time, units="secs")
#----
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.