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
8ca8151152d6f9a4bfb89c513d3ae40425fdc841
147c883844e11f737c11602e9e605250b35d163c
/R/calculatePreferenceSystemConsistency.R
49674fb445fa0a2b74330a99259c8cb887bd0e47
[]
no_license
florianfendt/dips
be31f80950fa12d3d12ce4e13045fa42ab2a4288
1856f07c7abe4667c63744186348d47929351943
refs/heads/master
2021-04-09T11:12:04.899527
2018-08-03T11:53:46
2018-08-03T11:53:46
124,410,781
0
0
null
null
null
null
UTF-8
R
false
false
3,535
r
calculatePreferenceSystemConsistency.R
#' @title Calculate Preference System Consistency #' @description #' Calculates the granularity up to which the #' given Preference System is consistent.\cr #' Throws an error if computation fails. #' @template arg_ps #' @template arg_showinfo #' @return [\code{ConsistencyResult}] With entries:\cr #' opt.val: O...
11de05068f1b611c672db8f106750de6644c51aa
12c4f31e81f1cb0ac3234b3cb25adaeb98cd42e4
/BuildBook.R
b9819ee5f69fd040a6dc943269ed495248a2971f
[ "MIT" ]
permissive
juchiyu/MultivarBook
dd1f9abb672b63ba8c352cdf538dbce8ffc0594e
3fae162495c76e6967e7b36e21a3a3bb6cdcc09a
refs/heads/master
2020-09-09T02:40:15.980792
2020-02-04T07:40:12
2020-02-04T07:40:12
221,320,688
3
2
MIT
2020-01-14T17:12:35
2019-11-12T22:02:47
HTML
UTF-8
R
false
false
96
r
BuildBook.R
# Run this line to build the book bookdown::render_book("00-00-index.Rmd", "bookdown::gitbook")
356b12ad194036bd0eeb29db7483de45773649ce
cecf7913ef5829f1fef0a38b2720b929a0a173e8
/global.R
b457355f18b416149eb5cfca10f9a6cfc8372013
[]
no_license
ashten28/ranchi
5af242f6f10869cef6fa2b7ea6353d64a5e270b7
8bf03911ef96e37997c9bd2d624bd819813a3def
refs/heads/master
2023-02-09T18:43:13.782920
2020-12-27T16:09:58
2020-12-27T16:09:58
242,119,192
0
0
null
null
null
null
UTF-8
R
false
false
872
r
global.R
# Author: Ashten Anthony # Email : ashten.anthony@nmg-group.com options(shiny.launch.browser = TRUE) # r packages to load library(dplyr) library(stringr) library(shiny) library(scales) library(shinydashboard) library(shinythemes) library(shinyWidgets) library(shinyjs) library(googledrive) library(googlesheets4) # th...
41b44f83dcbe7fdbd65fcb2bd825655c2d97bb9d
5390b30d1f233b024479c7e5199a39ccab75db24
/man/tie.Rd
c2873ca71b892b4dcc48db6bf23a4bf5faf54910
[]
no_license
TilburgNetworkGroup/remstats
65d5c6046612bc6b954a61f8e78f8471887400c9
19799f91a9906312e89ba7fe58bef33e49a6b6f1
refs/heads/master
2023-07-19T18:21:13.674451
2023-07-13T14:11:23
2023-07-13T14:11:23
248,442,585
4
1
null
2023-09-05T08:36:29
2020-03-19T07:54:52
R
UTF-8
R
false
true
1,705
rd
tie.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/effects.R \name{tie} \alias{tie} \title{tie} \usage{ tie(x, variableName = NULL, scaling = c("none", "std")) } \arguments{ \item{x}{a matrix with attribute information, rows and columns should refer to actors in the edgelist} \item{variableN...
8c509929eeda423e90c510f3b9295f9abcf1d498
0aad896cc54cb251019af757bc4eecae99d05e53
/IBEX35.R
bd2055f243615f72b2663040eb5302503217e406
[]
no_license
rytakahas/DMwR
ff975bba121bcdc46e3091f87fec53fbab16ea85
fc69a81bb57cb1029b8097a52b382b0a186ea0ac
refs/heads/master
2021-01-10T03:54:28.636814
2016-03-11T22:20:57
2016-03-11T22:20:57
53,037,798
0
0
null
null
null
null
UTF-8
R
false
false
18,475
r
IBEX35.R
# TODO: Add comment # # http://www.dcc.fc.up.pt/~ltorgo/DataMiningWithR/ # ############################################################################### library(DMwR) library(xts) x1 <- xts(rnorm(100), seq(as.POSIXct("2000-01-01"), len = 100, by = "day")) x1[1:5] x2 <- xts(rnorm(100), seq(as.POSIXct("2000-01-01 ...
3c3395f5256bb22efb3f9a39cfebd075ce995632
bc73b51699fb07f7dc81ea189cfbc2e086ffa794
/man/getShapleyPredictionResponse.Rd
054e759a742a76d6e62d750ff76d228686cfbc93
[]
no_license
redichh/ShapleyR
ec6c8bfac9925ac6bdc89110c8ba48072bf5278c
a977c041519e19f9b7f230e47c79235b3194d4f0
refs/heads/master
2021-07-06T04:58:19.363784
2019-03-05T22:55:16
2019-03-05T22:55:16
113,659,609
29
10
null
2019-03-05T22:55:17
2017-12-09T10:02:17
R
UTF-8
R
false
true
392
rd
getShapleyPredictionResponse.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getters.R \name{getShapleyPredictionResponse} \alias{getShapleyPredictionResponse} \title{Getter function for a shapley object.} \usage{ getShapleyPredictionResponse(shapley.list) } \arguments{ \item{shapley.list}{A shapley object.} } \descri...
3eef7bbc986603c93910100bbeffb82e04286f92
5eca3fb0e511160771fab5cb8bc68c239fdc707f
/man/dfToMap.Rd
1dd857cf241fc144f3ffd27763e63bc7b6e6f0ee
[]
no_license
kelly-jamrog/fredMaps
71c7b78b6c77864435e72ce9eb6e5e70acd6bf7f
7f5f680b89222a6cfd457447e88aa57e4bd7971a
refs/heads/master
2020-04-11T11:00:19.254693
2018-12-14T05:06:19
2018-12-14T05:06:19
161,733,601
0
0
null
null
null
null
UTF-8
R
false
true
491
rd
dfToMap.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfToMap.R \name{dfToMap} \alias{dfToMap} \title{Data Frame to Map} \usage{ dfToMap(map.df, fill = NULL) } \arguments{ \item{map.df}{The directory containing the shapefile} \item{fill}{The column to be used as the fill} } \value{ A ggplot2 ob...
e23caed6328fc773c26a8eb94d5f7d93ded271e6
4ae5c00b3152c24a2de6cd93ef512aa663eb6882
/methods.R
1b22941123194f3b37dc14f1b7da2640a1a50430
[]
no_license
svkucheryavski/rpcagui
d69082202d53ddea0e21be23014aec1af3258936
72002ac5e07fa00707b7903942c3fcd86c328c1e
refs/heads/master
2021-01-25T06:17:54.504521
2017-06-07T12:06:14
2017-06-07T12:06:14
93,547,983
0
0
null
null
null
null
UTF-8
R
false
false
2,290
r
methods.R
getModel = function(project, input, P) { T = project$data %*% P expvar = rep(0, ncol(P)) totvar = sum(project$data^2) for (i in 1:ncol(P)) { xx = T[, i, drop = F] %*% t(P[, i, drop = F]) expvar[i] = sum(xx^2) / totvar } model = list(P = P, T = T, expvar = expvar) model } getP = function(project, ...
3ca3eaed8949c40cad2c23a23a7eb9218ef24423
e25aa8717cccfbc951c398dae9e6eb12a2619c92
/functions.R
e5d76c6c4e94a1c613ddbb8f5b5ebc709b28a65d
[ "MIT" ]
permissive
paulsharpeY/ab-meta
e1e8f31bbc4cf75fb5515552b3d2af6c0e9cf4f6
f762302ccf9db08600423cc0d1d9d3f2a904f025
refs/heads/main
2023-05-28T22:15:08.906478
2021-06-12T19:58:15
2021-06-12T19:58:15
373,577,289
0
0
null
null
null
null
UTF-8
R
false
false
9,231
r
functions.R
# meta-analysis functions # If SMD, calculate pooled SD as per Cochrane Handbook, which in 6.3.1, says to use Hedge's g # Standardized Mean Difference (SMD, Cohen's d) # https://training.cochrane.org/handbook/current/chapter-06#section-6-5-1 # I don't think https://training.cochrane.org/handbook/current/chapter-23#sec...
f6aa54f64a5bf3e3e23c9415a116cfc7cb77185f
d4ae1c925add14251620f7fa4b92d52573185829
/SNU/R/Visualization/Exercise/(170818) Skillcraft.R
3742ae98eedeb840f0614021de7c586e2c7ae279
[]
no_license
kookoowaa/Repository
eef9dce70f51696e35cec6dc6a5d4ce5ba28c6d7
26f9016e65dbbc6a9669a8a85d377d70ca8a9057
refs/heads/master
2023-03-08T01:36:29.524788
2023-02-21T16:11:43
2023-02-21T16:11:43
102,667,024
0
0
null
null
null
null
UTF-8
R
false
false
4,332
r
(170818) Skillcraft.R
library('reshape2') library('dplyr') library('gridExtra') game_skill = read.csv('./data/wk2/SkillCraft1_Dataset.csv') head(game_skill) str(game_skill) narm_gs = game_skill[game_skill$TotalHours != '?',] narm_gs$Age = as.integer(as.character(narm_gs$Age)) narm_gs$HoursPerWeek = as.integer(as.character(narm_gs$HoursPer...
c304ac1c97af06dade4eaa4a17cdd2d2b0f95992
02f053ce70b065724d4a02619fb402adcc0ec997
/analysis/boot/boot1083.R
78f6892a6e2f3630698beca34abbf53d058e6d57
[]
no_license
patperry/interaction-proc
27950482929240bba55c7d0f2f8c5235d770feea
cf8dfd6b5e1d0684bc1e67e012bf8b8a3e2225a4
refs/heads/master
2021-01-01T06:11:47.125853
2012-12-04T20:01:42
2012-12-04T20:01:42
673,564
1
3
null
null
null
null
UTF-8
R
false
false
3,758
r
boot1083.R
seed <- 1083 log.wt <- 0.0 penalty <- 2.8115950178536287e-8 intervals.send <- c() intervals.recv <- c(56, 112, 225, 450, 900, 1800, 3600, 7200, 14400, 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600, 29491200, 58982400) dev.null <- 358759.0022669336 df.null <- 35567 dev.resid <- 225263...
312221710d13d94092bd0a87f8f1bdff36aef6ed
b1ea57ec8310183190bf951baa61a03ac63da994
/plot1.R
d5bd2e287ba529180c82a2ff3d182396dccb8243
[]
no_license
Karlovik/ExData_Plotting1
b9ce53e669892b3f063690d7b5439f83ca90de1d
a3d838371decc769f87126717a31b6433e44d87c
refs/heads/master
2020-12-03T09:23:55.714440
2015-07-11T14:49:35
2015-07-11T14:49:35
38,878,079
0
0
null
2015-07-10T11:55:57
2015-07-10T11:55:57
null
UTF-8
R
false
false
552
r
plot1.R
graphics.off() electric=read.table("household_power_consumption.txt",sep=";",head=TRUE) electric$Date=as.Date(strptime(electric$Date,format="%d/%m/%Y")) electricity=subset(electric,electric$Date>="2007-02-01"&electric$Date<="2007-02-02") electricity$Global_active_power=as.numeric(as.character(electricity$Global_active_...
6ecd6b385113b3ab6c4d86ce24d25ef9c943249e
5d159cd8f4de6b6678a34701f47bc32bfe7d2473
/Logistic regression for text analysis.R
2239968a42bfaa28e56704942908a6c62a5cbb6c
[]
no_license
v4leriya/RateMyProfessor
4c2ae42d8dfd1903f04ed9d554fcf69eee706919
2b6a4ee3de7b17546e462e173e2afeb4a08e2b07
refs/heads/master
2022-12-26T12:48:23.331693
2020-10-11T18:07:26
2020-10-11T18:07:26
299,160,634
1
0
null
null
null
null
WINDOWS-1250
R
false
false
3,164
r
Logistic regression for text analysis.R
#Load the required libraries library(caTools) library(ROCR) library(tm) library(SnowballC) library(rpart) library(rpart.plot) library(tidyverse) # Part 1--------------------------------------------------------------------------------------------- #read in csv file rmp=read.csv(file=”RateMyProfessor_Sample data.csv) ...
20cab104be6d4ba02ca32ae65a3615dbbaf1b24f
f50242a598a5b993fc91701390f54133aed0ef76
/code/lec5b.R
62de9a2f14ee17c727df33504a812f3da54d0da6
[]
no_license
ecotyper/advanced-spatial-statistics-2021
bd1febee1767c5f93636f52154cf60facf2c0b79
78a010f21ee0e8dc8eb6aed1506d20ca45c14f5e
refs/heads/master
2023-05-05T07:26:17.451980
2021-03-12T18:45:43
2021-03-12T18:45:43
null
0
0
null
null
null
null
UTF-8
R
false
false
3,304
r
lec5b.R
##Predictive process example rm(list=ls()) library(MBA) library(fields) library(spBayes) ##Simulated some data rmvn <- function(n, mu=0, V = matrix(1)){ p <- length(mu) if(any(is.na(match(dim(V),p)))) stop("Dimension problem!") D <- chol(V) t(matrix(rnorm(n*p), ncol=p)%*%D + rep(mu,rep(n,p))) } set.seed(1...
f8a6accfeb8c506bc268547465f9979581907812
c9e05757720a37c8e7141a5a9a108efd38e71df8
/R/layout.R
18b302c859880059da8745d3ad1206308d959e2b
[]
no_license
xiangpin/ggtree
50a075e211bc40df9563f49f4b845f6586ff5d90
b51cece3bcd1093f41c36570a47c5c1441f8c3c7
refs/heads/master
2023-09-04T04:35:28.008649
2023-08-11T03:41:24
2023-08-11T03:41:24
196,019,544
0
0
null
2019-09-06T13:35:08
2019-07-09T13:58:01
R
UTF-8
R
false
false
3,691
r
layout.R
##' rotate circular tree in a certain angle ##' ##' ##' @title rotate_tree ##' @param treeview tree view in circular layout ##' @param angle the angle of rotation ##' @return updated tree view ##' @export ##' @examples ##' tree <- rtree(15) ##' p <- ggtree(tree) + geom_tiplab() ##' p2 <- open_tree(p, 180) ##' rotate_t...
a0d17d0101b574068391e3605a62f4c5ec6e1f00
d6003b28f81c59cc8731583fb930bb82f4365eac
/R/util.character.R
d34fefd93403b927544f5c728f08f26612e4ad14
[]
no_license
cran/CHNOSZ
79616d683d9af7e16674cf08c7912c5f438c45d9
6c61dcecdbce300a990341f5370552b63ec42647
refs/heads/master
2023-03-24T08:33:38.797654
2023-03-13T16:10:32
2023-03-13T16:10:32
17,678,274
4
0
null
null
null
null
UTF-8
R
false
false
2,245
r
util.character.R
# CHNOSZ/util.character.R # Functions to work with character objects ### Unexported functions ### # Join the elements of a character object into a character object of length 1 (a string) c2s <- function(x, sep=' ') { # Make a string out of a character vector if(length(x) %in% c(0,1)) return(x) s <- paste(x,coll...
3ee1f3e6336ccdea7f9a46fc13d145e98298ff14
f38e7d1550ffe3628d958675a58263648b50caed
/server.R
dc041da603e8bbb63fff3f8c14ab3248becc15a2
[]
no_license
jhooge/BayesianSampleSize
466662e98c1b045934cb4007554df6ae7e0c797a
6706db075b8de89310ca294b710b49bfaf5b9f99
refs/heads/master
2021-01-23T10:35:09.297577
2017-07-31T14:19:59
2017-07-31T14:19:59
93,073,210
0
0
null
null
null
null
UTF-8
R
false
false
23,977
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(reshape2) library(ggplot2) library(plotly) betaMode <- function(alpha, beta) { return((alpha - 1)/(alpha+beta-2)) } betaMean <- functio...
d36206537e3adf09cbf64ece73922f64bf16e7bc
fffafd2ff14a6c1b1df23a48790566a71bbf7b36
/Summary_statistics_complete_case.R
bbe0bc5b8521a93c9c7ca2491ae0b91b3f0cd8df
[]
no_license
Ciarrah/tchr_rprtng_ccrcy
6eaf93710483dfd761b6c4cce668b3ed63abf786
ee3a17cf5661838cd0f773af92824ae295301041
refs/heads/main
2021-06-22T19:59:39.997422
2021-01-28T14:39:46
2021-01-28T14:39:46
185,997,218
0
0
null
null
null
null
UTF-8
R
false
false
1,848
r
Summary_statistics_complete_case.R
# SUMMARY STATISTICS table(data_raw$sex) round((table(data_raw$sex)/nrow(data_raw))*100,2) summary(data_raw.ks2$AvTA) round(sd(data_raw.ks2$AvTA),2) summary(data_raw.ks3$AvTA) round(sd(data_raw.ks3$AvTA),2) mean(data_raw$mnth_dlvry) sd(data_raw$mnth_dlvry) length(which(data_raw$ks2_Av>0)) data_raw$k...
1fdc338005639df1e7b9246f655860089062e846
400b384715f5f02ef43118f792d9eb73de314b2b
/tests/testthat/test-calc_pve.R
57f9ad6634774285d23c5a4eab2e2e5f99c32fc7
[]
no_license
yassato/rNeighborQTL
8d250721fee767f96dd115324321a1c18ba67e1c
f3c54151f794fa0c9c213c9f0834b8e51aa4d6a4
refs/heads/master
2023-04-28T02:43:01.742030
2021-05-11T08:06:03
2021-05-11T08:06:03
253,141,548
0
0
null
null
null
null
UTF-8
R
false
false
3,346
r
test-calc_pve.R
context("calc_pve") #load data colkas <- qtl::read.cross(format="csvs",dir="./",genfile="ColKas_geno.csv",phefile = "ColKas_pheno.csv", na.strings = c("_"), estimate.map=TRUE, crosstype = "riself") colkas <- colkas[1:2,1:50] colkas_genoprob <- qtl::calc.genoprob(colkas, step=4) x <- co...
40a9dd30b37331f8f7523c9063396f661ba3db1d
95a27e35d9246630e835386eb04d18786209d278
/SVM - Kernels - letters dataset.R
e1819e62db64e9c3652f6c1e330bdd0a6bc852ee
[]
no_license
ApurwaLoya/Data-Science
b05109ada4b400162bab1b33681e563aa94e3ee9
e14a4ae375f099d4abd60711e2b0e64f5b4326fe
refs/heads/master
2022-12-28T18:41:26.474913
2020-10-17T12:31:42
2020-10-17T12:31:42
254,518,691
0
1
null
2020-10-01T05:35:05
2020-04-10T01:46:09
R
UTF-8
R
false
false
1,126
r
SVM - Kernels - letters dataset.R
#####Support Vector Machines ------------------- ## Optical Character Recognition ---- letterdata<-read.csv("E:\\Data Science\\Class\\letterdata.csv") # divide into training and test data letters_train <- letterdata[1:16000, ] letters_test <- letterdata[16001:20000, ] ##Training a model on the data ---- # begi...
dd813696a03f2c11d51b6bdc21fc94830fa766c0
cf26b183b4a36144637938283813abd4a23cb303
/man/isIrreducible.Rd
9171645df077d686334b4157a714dca8bb29a3f5
[]
no_license
cran/popdemo
5312fbff68852f6cbb602ac1b1abae05e8879719
2f6b882b1b0851d1942c5892071c956a5457a6a0
refs/heads/master
2023-03-16T02:09:54.158218
2021-11-16T13:20:02
2021-11-16T13:20:02
17,719,255
0
1
null
null
null
null
UTF-8
R
false
true
1,374
rd
isIrreducible.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isIrreducible.R \name{isIrreducible} \alias{isIrreducible} \title{Determine reducibility of a matrix} \usage{ isIrreducible(A) } \arguments{ \item{A}{a square, non-negative numeric matrix of any dimension.} } \value{ \code{TRUE} (...
670372b3f4b752790fb3a174dec7af11efdeea36
84e7b589d3d8b05e52e927dc7ce77b79515e71fa
/ch01 - 기초/03. 산술연산.r
98a76a9580463eef7fc52aea6c880532a54a7826
[ "MIT" ]
permissive
Lee-changyul/Rstudy_Lee
d1e0f28190de74643d5c0a14f178b41250db7860
837a88d6cb4c0e223b42ca18dc5a469051b48533
refs/heads/main
2023-06-29T20:21:10.968106
2021-08-02T01:48:00
2021-08-02T01:48:00
325,493,003
0
0
null
null
null
null
UTF-8
R
false
false
133
r
03. 산술연산.r
# 산술연산 tot1 <- -5 tot2 <- 10 tot1+tot2 tot1-tot2 tot1*tot2 tot1/tot2 tot1^tot2 # 마지막 것은 제곱 **로 해도 됨
5222ab3858a4cb70c091f75ff01998ccd821686e
0f96b45966da3fd162b7d1810f413d23da242139
/PackageCH/man/get_frequency.Rd
e1af99e949c654f6cbd024997cb8dd5b499b9f93
[]
no_license
duvaneljulien/PackageCH
0e281ba39edb0fd87678e96341f391661a7b57f8
9c127f8c5a0a33918cee76e3413a6b9fdade4328
refs/heads/master
2020-05-07T22:14:09.540087
2015-01-15T03:30:26
2015-01-15T03:30:26
29,278,853
0
0
null
null
null
null
UTF-8
R
false
false
365
rd
get_frequency.Rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{get_frequency} \alias{get_frequency} \title{Get frequency of minor allele} \usage{ get_frequency(G, snp) } \arguments{ \item{G}{genomic matrix} \item{snp}{a snp (index)} } \value{ frequency of the minor allele } \description{ Get frequency of the minor allele ...
bac9a57cdafaa3fef146d89a9e3ca3e33e4707d8
375ad9d11429898879d8d041c6beba145b70482a
/tests/testthat.R
0acd497b86b4bc1ec34d295aaf2be80b0c8ea12a
[ "MIT" ]
permissive
LiYingWang/signatselect
d502485ba4d2c33dca0a541c7442a54348f25d8e
3ae3c71b2ad2a538acc7405f7a966d9ec0f4849c
refs/heads/master
2020-11-26T20:02:16.774709
2019-12-03T20:47:36
2019-12-03T20:47:36
null
0
0
null
null
null
null
UTF-8
R
false
false
68
r
testthat.R
library(testthat) library(signatselect) test_check("signatselect")
c0282097bd56288b6c5068132573ffa84a6ed884
78d291e32990ae26a021f752d34a8caabf03cdd8
/man/nz_internal_migration_summary.Rd
607166e0e2dbf05372fb2236ad2941bafb58301f
[]
no_license
nacnudus/nzmigration
3e5bc96fa8e2e73e389a9a95a00e9956febbfc66
d920b6cb025c42eccbf70cc24d12acb1a026bd4a
refs/heads/master
2021-08-08T09:02:57.483169
2017-11-10T01:57:58
2017-11-10T01:57:58
110,188,205
0
0
null
null
null
null
UTF-8
R
false
true
1,421
rd
nz_internal_migration_summary.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nz_internal_migration_summary.R \docType{data} \name{nz_internal_migration_summary} \alias{nz_internal_migration_summary} \title{New Zealand Internal Migration Summary Statistics 2013} \format{A data frame with 351972 rows and 11 variables. ...
a05e4080ecccbe827c741f1465a254002d123247
118f768abfa3d6a66cf2c93c9388460bb73cc848
/MinimumRemoval-50.R
92c1cce085273a34bff9ae6e03f47ecfd1d445fd
[]
no_license
joshmeek-old/RWeka-Naive-Bayes-10-Fold-Cross-Validation
5fd69e6f7ffde0e20244a331af29cec5bf0c217c
926b1118a7a93e6b00426fb318c6ca1268183e18
refs/heads/master
2021-05-30T10:25:58.246959
2015-10-20T04:15:27
2015-10-20T04:15:27
null
0
0
null
null
null
null
UTF-8
R
false
false
328
r
MinimumRemoval-50.R
csv_data <- read.csv("~/anomalies/Processed_Data_50.csv") colnames(csv_data) data <- csv_data for(i in 1:length(data[, 1])) { minimum <- min(as.numeric(data[i, 54:103])) for(k in 54:103) { if(as.numeric(data[i, k]) == minimum) data[i, k] <- '?' } } write.csv(data, "~/anomalies/Processed_Data_5...
1ce3fe79177b738f8ceec213d26a29cc3b774a4f
7cf661ab76d10b8f36cdf0a8e5bd087030594cf0
/scripts/gwsca_biallelic_vcf.R
952b356f40e5516117a5101ab06fc41a89608075
[]
no_license
spflanagan/SCA
22326ed442260c5839e2406ef6463c6b6090681e
3ccbb84eebc3f908bcd96b3476bc7a99eb51853f
refs/heads/master
2020-04-12T01:20:55.415391
2018-05-09T23:24:07
2018-05-09T23:24:07
51,270,799
1
0
null
null
null
null
UTF-8
R
false
false
4,821
r
gwsca_biallelic_vcf.R
#Try doing gwsca_biallelic_vcf here. source("E:/ubuntushare/SCA/scripts/plotting_functions.R") setwd("E:/ubuntushare/SCA/results/biallelic") calc.fst<-function(x,y){ #x is one row of a vcf file if(x[1]==y[1] & x[2]==y[2]){ chr=x[1] pos=x[2] x<-unlist(x[3:length(x)]) x<-factor(x[x!="./."]) y<-unlist(y[3:length(y...
bfd16cd0f6a308d471a8a148c4b746171fd183c2
361f26a1727992a13c23dad72fb89efd5a1265d3
/code/sem_2018_density_exp.R
69342447cb517cc937d85a8452781dd5d08355a2
[]
no_license
aekendig/microstegium-bipolaris
111c91dcc0740d13fd08e46a65df4ad63244c2c5
fce94d4d481bf6320adec296c8fbd50690805a65
refs/heads/master
2023-03-02T15:53:23.999028
2023-02-25T17:20:25
2023-02-25T17:20:25
175,024,595
1
0
null
null
null
null
UTF-8
R
false
false
43,905
r
sem_2018_density_exp.R
##### info #### # file: sem_2018_density_exp # author: Amy Kendig # date last edited: 1/21/21 # goal: fit SEM to focal plot-level data #### set up #### # clear all existing data rm(list=ls()) # load packages library(tidyverse) library(lavaan) library(GGally) library(lavaan.survey) library(semPower) library(lavaanP...
1748b6b95395d719e07f5966ae653eca85c779df
f2778192f431b0c3dfcd070cd12033c4831ac485
/ManureSelection.R
8751e225592ecb5537bc4f1c819bf07bd2d3b267
[]
no_license
MathotM/ValidationCode
4e7c9b7d50ecb69107ad35a85e6b772e3bcbd55f
d0033ddebd40a8be3ac76f2f18b9c0e1863850b5
refs/heads/master
2020-03-20T00:41:57.498111
2018-06-14T14:37:52
2018-06-14T14:37:52
137,053,044
0
1
null
2018-06-14T14:37:53
2018-06-12T10:02:38
R
UTF-8
R
false
false
3,399
r
ManureSelection.R
# # function for selection in Manure Data and selection on time basis ManureSelection<-function( PathRawDataManureAmount=PathRawDataManureAmount, PathRawDataTemperature=PathRawDataTemperature, PathRawDataAnalysis=PathRawDataAnalysis, ...
db2b34257a6163fa58756c76b955b1b218ea1ad8
375e98a79ccefec3d226edbb3cb8e03e8e3b01a2
/man/combination_palette.Rd
f8c5db651128e836bca084f7d35e7cead70f3fb9
[ "MIT" ]
permissive
sekingsley/MicrobiomeR
e1325c519e34bcbc32bf75cab0a65a4f0df07a67
dfc8f67d88f7a9dfaa15753a369df73ccc948396
refs/heads/master
2022-12-01T13:29:05.960005
2019-08-30T20:35:06
2019-08-30T20:35:06
null
0
0
null
null
null
null
UTF-8
R
false
true
2,849
rd
combination_palette.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/palettes.R \name{combination_palette} \alias{combination_palette} \title{Combine Color Palettes} \usage{ combination_palette(...) } \arguments{ \item{...}{You can use any name for your arguments, but the values must be a named list. The list ...
c947ace1f8a65c8e501f8426fe8d5c84c4161f0d
4a5693eb7b8d7e2327a730ee019da04557544d7f
/src/webPage/fig97.r
c6451b46d8a439e3c5c6b3649fc3d3b883ce83be
[]
no_license
cuzaheta/antiCharts
0424e4f9707a18a5ed123ec6a87f2a50e22c2ed2
fa6bfdb7b4dedcd99bcb6422f87bdbb039a27c6d
refs/heads/master
2020-06-28T04:10:31.651671
2019-08-02T00:46:53
2019-08-02T00:53:01
200,139,276
0
0
null
null
null
null
UTF-8
R
false
false
1,430
r
fig97.r
##### R-code for making Figure 9.7. It reads data from "soil.dat" dat <- matrix(scan("soil.dat"),189,6,byrow=T) id <- dat[,1] x1 <- dat[,2] x2 <- dat[,3] x3 <- dat[,4] x4 <- dat[,5] x5 <- dat[,6] postscript("fig97.ps",width=6.5,height=7,horizontal=F) par(mfrow=c(3,2),mar=c(4,4,2,2))...
d6b8e9e0e066466c277db57680514673c0b32391
b022e68f0139455784d95133deb4cf8f487142ce
/R/GLVmix.R
0eb968f1f1f3dba84978a1f982c9ded2bed1b362
[]
no_license
cran/REBayes
1e311610a28f37509d2da28f81385b17e84b4bbf
e26237baf78f2dc4bb776ae29a2ddfce68963435
refs/heads/master
2022-05-13T04:13:53.603760
2022-03-22T17:20:02
2022-03-22T17:20:02
17,681,954
4
2
null
null
null
null
UTF-8
R
false
false
3,181
r
GLVmix.R
#' NPMLE of Gaussian Location-Scale Mixture Model #' #' A Kiefer-Wolfowitz procedure for ML estimation of a Gaussian model with #' possibly dependent mean and variance components. This version differs from #' \code{WGLVmix} in that it doesn't assume the data is in longitudinal form. #' This version assumes a general bi...
57ae371215d9c854ca54aae1b2f7cae97f1ec3cf
4b54dd2d3e036ec5a43d52b4d6c77f21f2ce6bee
/man/compute_projection.Rd
2c6d7a8403a3ba43acce918787d4faa31fe9c64f
[ "Apache-2.0" ]
permissive
mitre/earthtools
b3639db4c34e334d595d09d7fd2adf4b176582e6
1a755b32b7a66aa1829668feebf959308a181dbb
refs/heads/master
2023-08-23T02:14:57.755600
2019-01-04T18:30:28
2019-01-04T18:30:28
117,014,541
4
1
Apache-2.0
2018-10-16T12:54:05
2018-01-10T21:44:45
R
UTF-8
R
false
true
3,333
rd
compute_projection.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/projection.R \name{compute_projection} \alias{compute_projection} \alias{compute_projection.data.frame} \alias{compute_projection.numeric} \title{compute location of coordinates after great circle projection} \usage{ compute_projection(x, ......
f0792283eaed9326d9d80d01bdb7f5acaa3b8b3e
e06b022ffe0db9df44b131b3b71361c710d0655f
/Codes R/My codes for week 2/cyclo_order(useless).R
bc2e853d8207d5c4f62048bb51c1b561b0021251
[]
no_license
rodrigodealexandre/Bioinformatics-Algorithms
551a1219e46d657fb11625c081cdbd4c641cc33e
86127d1b594404176e99d5ef542c2b3f6c58d2ab
refs/heads/master
2020-12-25T18:23:33.625343
2014-12-11T02:16:34
2014-12-11T02:16:34
null
0
0
null
null
null
null
UTF-8
R
false
false
1,073
r
cyclo_order(useless).R
#------------------------------------------------- setwd("D:/Dropbox/Courses/Coursera Courses/Bioinformatics Algorithms (Part 1)/Bioinformatics-Algorithms/Codes R/My codes for week 2") pep_mass <- read.table("integer_mass_table.txt") source("mass_spectrum.R") cyclo_order <-function(spectrum){ if(length(spectrum) ...
b4355fa9f517dc192ac3668356d07443b224a4fe
dd39cf7fc295196fcba0897eae1119d64a7c744e
/NewFunction.R
ca5f9f942145dc2a42840798612dd2a5ebc26ed7
[]
no_license
HannahPye96/Hello_World
cc3dce7a292e335e9d02580ab17b559dd60dcc98
03ac4e3d229d17cdf2a9488014074dcc5c9bc529
refs/heads/master
2020-03-29T02:34:43.165488
2018-09-19T12:31:56
2018-09-19T12:31:56
149,443,949
0
0
null
2018-09-19T12:31:57
2018-09-19T12:00:35
R
UTF-8
R
false
false
95
r
NewFunction.R
invlogit = function(x){exp(x)/(exp(x)+1)} # this is an ironically-clever edit to this function
7fe4512a29cc872447fe1635e332fc0ddea262ee
006a9f1f60379f29d959a7f2ec8e66a833816406
/test_process/Step_1_to_7_IsoDeconvMM.R
e603d840a066ca5749adafa6fb45caa2a061eb8f
[]
no_license
Sun-lab/deconvolution
3f35c7fdc539a613973944fc1cc3252210acba1b
4fb77b8e0f90d137e5f33823e0bbd3666488c9fc
refs/heads/master
2021-01-04T04:20:02.688749
2020-02-24T19:02:00
2020-02-24T19:02:00
240,384,122
0
0
null
2020-02-13T22:57:00
2020-02-13T22:57:00
null
UTF-8
R
false
false
9,803
r
Step_1_to_7_IsoDeconvMM.R
## Running of actual IsoDeconvMM R package # Required Libraries: library(gtools) # library(IsoDeconvMM) # source("https://bioconductor.org/biocLite.R") # biocLite("cummeRbund") library(cummeRbund) # Had to downgrade to RSQ-lite v 1.1-2 --> ? library(alabama) library(stringr) prequel = "/home/hheiling_unc_edu/IsoDecon...
d35324d57ec44fa36d79a2cb2be1af529a2eea42
9aafde089eb3d8bba05aec912e61fbd9fb84bd49
/codeml_files/newick_trees_processed/4648_0/rinput.R
8ea4931f9f842d1d04652ab650e69c218680ebe9
[]
no_license
DaniBoo/cyanobacteria_project
6a816bb0ccf285842b61bfd3612c176f5877a1fb
be08ff723284b0c38f9c758d3e250c664bbfbf3b
refs/heads/master
2021-01-25T05:28:00.686474
2013-03-23T15:09:39
2013-03-23T15:09:39
null
0
0
null
null
null
null
UTF-8
R
false
false
135
r
rinput.R
library(ape) testtree <- read.tree("4648_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="4648_0_unrooted.txt")
1e58e726a7691dc11b29e037261aaec0e529e160
17fdd34b68df267b8262d532adddba733879b0b8
/man/dot-gc.Rd
c21b3fe1247bf34fd69b6266616168572d6cac84
[]
no_license
kevinmhadi/khtools
f0b57e0be0014084f2f194465ab4a924fe502268
85d64808f8decd71f30510ccd18f38986031be74
refs/heads/master
2023-07-19T21:50:22.341824
2023-07-19T01:46:03
2023-07-19T01:46:03
235,495,453
0
3
null
null
null
null
UTF-8
R
false
true
295
rd
dot-gc.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/package.R \name{.gc} \alias{.gc} \title{.gc} \usage{ .gc(df, ptrn, invert = F, ignore.case = FALSE, exact = FALSE) } \arguments{ \item{df}{data frame} \item{ptrn}{pattern} } \description{ .gc } \author{ Kevin Hadi }
bbde84e90c0684c04452b0e7c3d2a5c714a4492d
c60126c5e91b1c6dced262d8026d9da4af9e18f6
/man/new_eval.Rd
b47081d0727ece5c4c73e92184daada0fe99d9a7
[ "MIT" ]
permissive
davidallen02/pamngr
3a36dd78903121c426b216fc96ed3e699ea4ac74
cf89491132ca73c84d8b33ae6ac309303254b5af
refs/heads/master
2023-07-15T06:14:23.118482
2021-09-01T21:34:02
2021-09-01T21:34:02
237,082,991
1
0
null
null
null
null
UTF-8
R
false
true
362
rd
new_eval.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/new-eval.R \name{new_eval} \alias{new_eval} \title{Create a new eval from template} \usage{ new_eval(ticker, date = Sys.Date()) } \arguments{ \item{ticker}{an equity security} \item{date}{the eval date} } \value{ a markdown document } \descr...
a5c05cbd2cd744355d346d49fac24554efa083a2
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/LearnBayes/examples/pbetap.Rd.R
e29558895dd0daab47e5c52120aebb1f7e603dc3
[]
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
214
r
pbetap.Rd.R
library(LearnBayes) ### Name: pbetap ### Title: Predictive distribution for a binomial sample with a beta prior ### Aliases: pbetap ### Keywords: models ### ** Examples ab=c(3,12) n=10 s=0:10 pbetap(ab,n,s)
7280fe1ebab575cd52c7c2ac3d39fb6a1d8bfe8d
ecc8c9fdab4d52cb5dd8a815bf56f91373555b5e
/man/GeomTimelineLabel.Rd
8e24b0a3a91a6ac87a3e099aa9e781c0f1ed3cc8
[]
no_license
hnasko/capstone_earthquake
b2447d9f28ae38d94531512820ba4d66ccc9de02
70e9e1637e43f696c09064c70c9b9b601803ce5f
refs/heads/master
2020-05-26T16:07:41.262233
2019-05-23T21:27:04
2019-05-23T21:27:04
188,298,451
0
0
null
null
null
null
UTF-8
R
false
true
800
rd
GeomTimelineLabel.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom_timeline_label.R \docType{data} \name{GeomTimelineLabel} \alias{GeomTimelineLabel} \title{Create a geom for adding a text annotation to a time line plot} \format{An object of class \code{GeomTimelineLabel} (inherits from \code{Geom}, \co...
5cd1af0d42f11813ddde0005b2b5fbcebfa0ac28
e4c2b22457b46077a7ef3f1115b11b44430379f7
/ui.R
7b0a3cd12e7574c9a05c1649d267a44523bb7f91
[]
no_license
jlranaliticas/ShinyCOVIDData
8456a180f3c1b42571f18a66a011f13f855ad5be
5036a7f345b3460258b7706688652354cddf0a84
refs/heads/main
2023-03-22T13:30:18.553645
2021-03-20T16:05:22
2021-03-20T16:05:22
349,771,940
2
0
null
null
null
null
UTF-8
R
false
false
1,695
r
ui.R
# ui.R - GA COVID-19 State Analysis # shinyUI(fluidPage( # Application title titlePanel("U.S. State of Georgia COVID-19 County Data"), navbarPage("Georgia COVID-19 Data", tabPanel("Map View", wellPanel( h5("Filter COVID-19 Data using...
37c6302b668d228ce552f84f0556f5116fd3265f
c8e98d5c23dc30a92d464364f95d6c08e9a078e1
/server.R
928b98a81dc622cac87355b195daa4fa5f7b5194
[]
no_license
danmaclean/multi_candiSNP
386e4ea600daae8fca0cbb3e18abd92380fc3de6
051e7869d77f9db3824ffb6e60cb0210d7cf71b4
refs/heads/master
2021-01-21T14:11:31.999148
2016-07-12T15:25:38
2016-07-12T15:25:38
59,308,244
0
0
null
null
null
null
UTF-8
R
false
false
4,334
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 # # TODO: # Allele Freq Range Slider - DONE # Colour by: Change, Effect, Is_CTGA, Is_synonymous - DONE. # Shape by: Tag - DONE # only call filedata if values ent...
f023de0a9ae6b1c500e2bcea825678c3b20d0bad
6e54e5de8202a9b6e4bbf19f856f366f998558eb
/plot1.R
ab20f552ddf869d1dff3c7eeaacffad5fa4ef154
[]
no_license
klootpik/ExData_Plotting1
e6e794947ce42e25747d4d764a150f087b17ae85
7dd3f6c5aa14400eba6dc5a02af26726b1ab60a9
refs/heads/master
2020-12-04T11:52:53.484944
2020-01-04T11:54:32
2020-01-04T11:54:32
231,754,703
0
0
null
2020-01-04T11:52:15
2020-01-04T11:52:14
null
UTF-8
R
false
false
2,143
r
plot1.R
library(data.table) getwd() destfile <- "./week1/Dataset.zip" outDir <- "./week1/uitgepakt" urlie <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" if(!dir.exists("week1")) { dir.create("week1") } download.file(urlie, destfile) unzip(destfile, exdir=outDir) ...
24f28d2ca5f0254059649708488823c005a7512e
73c9b3c52db44bca119ecd3585ff38db1e9c05b1
/man/Solve.Rd
28343943c708fbdc55dc751d10a24aedf3c9bbec
[]
no_license
friendly/matlib
a360f4f975ae351ce1a5298c7697b460c4ba8dcd
13bb6ef45f9832d4bc96e70acc5e879e5f0c5c90
refs/heads/master
2023-08-30T13:23:26.679177
2023-08-25T17:29:23
2023-08-25T17:29:23
45,190,492
72
19
null
2023-03-16T19:30:18
2015-10-29T15:01:24
R
UTF-8
R
false
true
2,579
rd
Solve.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Solve.R \name{Solve} \alias{Solve} \title{Solve and Display Solutions for Systems of Linear Simultaneous Equations} \usage{ Solve( A, b = rep(0, nrow(A)), vars, verbose = FALSE, simplify = TRUE, fractions = FALSE, ... ) } \argum...
4d92bd5bff3476f592fc36ecbb08e89ee7ca1017
1ee37f82a6d81f2fd23c766bed4e124ab299af0e
/choyongsang_homework_week8.R
d5f6737f2e9c25912d247ae64e854483c24c2865
[]
no_license
MyChoYS/R_ADsp_basic
c592ed28fd9d409bc81c5de8405833ccf406e218
33ae7d1a6639dc88daa566818f747b41a6233373
refs/heads/master
2023-02-17T09:36:47.169240
2021-01-18T04:30:03
2021-01-18T04:30:03
326,630,110
1
0
null
null
null
null
UTF-8
R
false
false
2,777
r
choyongsang_homework_week8.R
# Analysis of economic information # Week 8 # homework until Oct 28 # question 0 # Print your name and student number by using print() function print("12142139 choyongsang") # question 1 mtcars <- mtcars View(mtcars) ??mtcars # Subset cases where the number of cylinders (cyl) is 8 (Don't use subset function) # and ...
138c0c91233f613cd4ab08d755db0ffc847baa16
7d5d8492c2d88b88bdc57e3c32db038a7e7e7924
/robustness/glam-utils/calibrate.R
8f915f671b7a5d2b6ec901fb67a61b9a4d283b0d
[]
no_license
CIAT-DAPA/dapa-climate-change
80ab6318d660a010efcd4ad942664c57431c8cce
2480332e9d61a862fe5aeacf6f82ef0a1febe8d4
refs/heads/master
2023-08-17T04:14:49.626909
2023-08-15T00:39:58
2023-08-15T00:39:58
39,960,256
15
17
null
null
null
null
UTF-8
R
false
false
15,532
r
calibrate.R
#Julian Ramirez-Villegas #UoL / CCAFS / CIAT #Feb 2014 #borrows from PhD script called "glam-optimise-functions.R" ############################################################################################## ####### function to calibrate GLAM (for as many grid cells as provided), each one individually ##############...
f5bbdfbb82c128b59a89707ca57a8aa830a45ecc
5326bb95528c8eefc6bb9675e82829b607fb1fec
/plot3.R
8ea450a61a3ec16fd4e7dfc71dafa5585ac07277
[]
no_license
rainaz/ExData_Plotting1
ef836a98b4c5c702051c99f396ec991158a2ed36
27092f91088ccb08cef26a10d05fd1470a252686
refs/heads/master
2021-01-17T20:19:24.556234
2014-05-11T03:14:49
2014-05-11T03:14:49
null
0
0
null
null
null
null
UTF-8
R
false
false
787
r
plot3.R
if(!exists('household_power_consumption.txt')){ unzip('exdata-data-household_power_consumption.zip') } d <- read.csv2('household_power_consumption.txt', stringsAsFactor=FALSE) d <- subset(d, as.Date(d$Date, "%d/%m/%Y") == as.Date("2007-02-01") | as.Date(d$Date, "%d/%m/%Y") == as.Date("2007-02-02") ) t ...
79f299ca7e61beeb64a3a2173e0b061ef1e19edc
e5fc120f866933943a29c796c7c607dc2690cab3
/analysis/ipm/validation/ipm_noseedl_glm_validation.R
13e7f0823ecdc9009452af47f71704a9c226d70a
[]
no_license
AldoCompagnoni/lupine
e07054e7e382590d5fa022a23e024dfec80c80b2
afc41a2b66c785957db25583f25431bb519dc7ec
refs/heads/master
2021-06-23T04:50:30.617943
2021-06-11T13:00:59
2021-06-11T13:00:59
185,047,698
0
0
null
null
null
null
UTF-8
R
false
false
25,489
r
ipm_noseedl_glm_validation.R
# Hyper-simplified IPM for validation # I compare observed lambda to deterministic lambda # only for sites BS, NB, and DR rm(list=ls()) options(stringsAsFactors = F) library(dplyr) library(tidyr) library(ggplot2) library(readxl) library(testthat) library(bbmle) source('analysis/vital_rates/plot_binned_prop.R') # forma...
1ea1dbff888437d23bc7158bc255f5ce567d8640
b429e3f69e229130d64b6e4c3c4e8493295f223b
/scripts/simulation_misspecified1.R
88e7025c81eda199013e7dd9e82ecbcf4167ed6f
[]
no_license
quanvu17/deepspat_multivar
110bca3a8a16166dcd21ef522b0d506bccccbd8e
86123973790c85ea18a4827f60f11d87569579c5
refs/heads/master
2023-02-25T18:39:37.963131
2021-01-27T00:05:32
2021-01-27T00:05:32
254,308,536
0
1
null
null
null
null
UTF-8
R
false
false
4,806
r
simulation_misspecified1.R
# Reproducible code for "Modeling Nonstationary and Asymmetric # Multivariate Spatial Covariances via Deformations" # Copyright (c) 2020 Quan Vu # Author: Quan Vu, quanv (at) uow.edu.au # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as p...
29c65aeb964f07108349ae2595194d187151536a
7eb031dee3c31a700ab29888a1193dd60f6c093a
/R/real.data.experiment.fn.R
a6a3bc88159d184c5f02fadf3fb0126d09ea9633
[]
no_license
adalisan/OmnibusEmbed
1fb2e008d13db049dd079b17ba3dc322f720bd2f
61e6016eb4d1168a20037ed67dd87a062f1f5588
refs/heads/master
2020-12-03T05:08:46.070760
2017-07-11T00:17:36
2017-07-11T00:17:36
95,339,144
0
0
null
null
null
null
UTF-8
R
false
false
15,371
r
real.data.experiment.fn.R
#' Title #' #' @param Diss.E #' @param Diss.F #' @param m #' @param d #' @param oos #' @param separability.entries.w #' @param wt.equalize #' @param assume.matched.for.oos #' @param oos.use.imputed #' @param pom.config #' @param w.vals #' @param size #' @param jack.rep.count #' @param verbose #' #' @return #' @export #...
b51d1df041d22ec7c2c984d31b3902d4f64af38e
ee788a605dfd2b054cb4dc5d769728babfb5dd92
/man/TextReuseTextDocument-accessors.Rd
34633225fb72b27641ad4e12e1cb5d51e5b8efd5
[ "MIT" ]
permissive
felipegonzalez/textreuse
e49236ef00cf1a4a33bfbbeb28d40f2e078658da
789fcdae7aa76ca9c207bc0ed41ff0dcf20feb5a
refs/heads/master
2021-05-16T16:10:41.929945
2018-02-01T16:16:59
2018-02-01T16:16:59
119,786,401
0
0
null
2018-02-01T05:17:04
2018-02-01T05:17:04
null
UTF-8
R
false
true
713
rd
TextReuseTextDocument-accessors.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TextReuseTextDocument.R \name{TextReuseTextDocument-accessors} \alias{TextReuseTextDocument-accessors} \alias{hashes} \alias{hashes<-} \alias{minhashes} \alias{minhashes<-} \alias{tokens} \alias{tokens<-} \title{Accessors for TextReuse object...
1eeab4f290e69b831d1112636c1bb63ff3679d75
bfc4dde4eac32663f768e75edde091d20676308f
/R/print.mitml.testConstraints.R
1ac3dcfdb7b28ebbb9126089cf3c3d9cfa3d0cf5
[]
no_license
simongrund1/mitml
f33b4fda8e929a8652146ca7bcd8011d34f9ebc6
4f1e20daccf45da1ee157b3e2e78d7b250fd8203
refs/heads/master
2023-03-21T09:20:56.636023
2023-03-10T15:42:30
2023-03-10T15:42:30
68,100,636
28
9
null
2021-10-05T09:25:07
2016-09-13T11:01:02
R
UTF-8
R
false
false
1,587
r
print.mitml.testConstraints.R
print.mitml.testConstraints <- function(x, digits = 3, sci.limit = 5, ...){ # print method for MI estimates cll <- x$call test <- x$test constraints <- x$constraints method <- x$method m <- x$m adj.df <- x$adj.df df.com <- x$df.com # print header cat("\nCall:\n", paste(deparse(cll)), sep...
4341bea4343e7e955541e557b69294151b2edf86
bcce8dcb8fb272b7a5bbfa226dd877b53212413b
/predict-admission/explore/investigate-models-new.R
0c5352593f9458cfe153baaa476846c2d8e94979
[ "BSD-3-Clause" ]
permissive
joefarrington/EDcrowding
b04eb9e3c328f7ab2d251e70eb5a6427a4a5566b
59e664da4ff3db9a21bde89d1e909ea3d829f8ed
refs/heads/master
2023-05-05T13:59:37.230430
2021-05-05T18:20:14
2021-05-05T18:20:14
null
0
0
null
null
null
null
UTF-8
R
false
false
9,533
r
investigate-models-new.R
# Create functions -------------------------------------------------------- madcap = function(pred){ # ref to MADCAP section in Model Evaluation.docx pred[, truth := as.numeric(truth)] pred[, truth := if_else(truth == 2, 0, truth)] new_pred = pred[order(pred$prob.1),] # step 1 L = nrow(new_pred) ...
78d7f7ae63fa7abaf7ad5462f908493bbc9cb25a
13e0b0c688fae191e7369959b2ae56ab2d3106f7
/man/compute_laurent.Rd
84d52c5610c2e6c1e564954661d482ce15157a1c
[]
no_license
cran/slim
855c4a3486b3caf04fea91aa8ee5377e6e71efb2
0684337ee2008e939554676bca0b1d16bf34d951
refs/heads/master
2020-12-24T12:01:43.998162
2017-05-15T05:39:33
2017-05-15T05:39:33
73,098,208
0
0
null
null
null
null
UTF-8
R
false
true
753
rd
compute_laurent.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/slim.R \name{compute_laurent} \alias{compute_laurent} \title{Laurent Expansion of Inverse of Linear Matrix Function} \usage{ compute_laurent(V, zapsmall = TRUE) } \arguments{ \item{V}{for some integer m >= 1, an array of dimension (m, m, 2), ...
a7280aadb7f503fc56ac654c1f392764bda5ad49
98c75b9b5b62a0eb351360e686c3d83959e26006
/category_subsampling/0_trial/code/functions_ss_plot.R
296302fe9ba6064edb5a830389c7c82d43bfeda8
[]
no_license
weigcdsb/sub-sampling
8e570c1f969833cfda1bf142e3c6b309ae188746
dbd4a538085029e9aa8683fba2205f49199f42d9
refs/heads/master
2023-03-22T22:47:29.078121
2021-03-24T01:09:53
2021-03-24T01:09:53
307,103,256
0
0
null
null
null
null
UTF-8
R
false
false
7,186
r
functions_ss_plot.R
################################# #### common functions weighted.MLE <- function(X, y, ssp, maxIter = 1000){ beta <- rep(0, ncol(X)) update <- Inf iter <- 0 while((sum(update^2) > 1e-6)& (iter < maxIter)){ eta <- X %*% beta prob <- c(exp(eta)/(1 + exp(eta))) OP <- t(X) %*% (prob * (1 - prob)* X/ ...
803b9e4d5f72d3d8430677cfc65fcd25d30c9e6c
cb5a28b5c2e21f9eef15cbbe802db5c802a5e81f
/code/schedR/R/summaryStats.R
f6c14f97be18cde0890e6c152eff46283fb285af
[]
no_license
johnjosephhorton/sched
96f50b255daa5546e66e26a6b22a74ed1f942e5b
a5066c4ff1d123c77450b9688a8f5a377e1539c5
refs/heads/master
2021-01-13T16:31:48.438858
2017-01-19T05:07:20
2017-01-19T05:07:20
44,535,334
0
0
null
null
null
null
UTF-8
R
false
false
1,714
r
summaryStats.R
#' Return a dataframe of summary stats by year, conditional upon working #' #' Return a dataframe of summary stats by year #' #' @return data.frame #' @export summaryStats <- function(){ data("df_act_work") df_act_work <- data.table(subset(df_act_work, work)) df_act_work$id <- with(df_act_work, as.nu...
0ddcca4a3054998c12685145e80b19fa90e16dbb
5fdcdc5f734696f363f58a0cfc5e0a960cee8859
/man/GeneExampleData.Rd
82c4eb1471c9a7eae3cb87b533623d181e2a9377
[]
no_license
lengning/EBSeqHMM
4411d43582afc1c0e14306ce2aaa6e3e80250ef6
6b6efdb7faea6283cfe1710dfd8087ce2aa15319
refs/heads/master
2021-01-21T21:43:32.107304
2016-03-21T16:10:00
2016-03-21T16:10:00
31,791,187
1
0
null
null
null
null
UTF-8
R
false
false
718
rd
GeneExampleData.Rd
\name{GeneExampleData} \alias{GeneExampleData} \docType{data} \title{ Simulated gene level data set with 5 ordered conditions } \description{ 'GeneExampleData' gives the gene level simulated data with 5 ordered conditions, triplicates for each condition. The data set was simulated following the Negative Binomial dis...
99ae69d2d0522b732c2f68872e1355e551ceff53
8375d88db0ec7f04d04dd79385754ec831d03ee8
/R/PMDA.coxph.R
093f76dc9385f0b84b6d1c1b129fa40d4a9bb203
[]
no_license
cran/MIICD
4346c8879f4049253ad6dce6061ff78f53ba86b3
4d9c804c12352edf4d18028091ad09b9bde259a4
refs/heads/master
2021-01-15T15:47:54.639481
2017-05-27T15:20:01
2017-05-27T15:20:01
19,073,304
0
0
null
null
null
null
UTF-8
R
false
false
4,061
r
PMDA.coxph.R
PMDA.coxph <- function(formula , data , k , m ){ #function parameters prep<-preproc.coxph( data , m ) data_int <- prep$data2 data_fix <-prep$data1 or<-prep$or I<-prep$I mm<-model.matrix(formula , data) nc<-sapply(sapply(strsplit( as.character(formula)[2] , '\\+' ) , function(x) gsub(" " , "", x) ...
b56826c9d4844449ccc81c64b7ed8f1ec74b5ac5
8f6257bdc76982b9c699a467d01358a00ff3b3dd
/cachematrix.R
f05ea5c38835b354190cfbdac8a07e3c7d915ed0
[]
no_license
cmukhtmu/ProgrammingAssignment2
a12cb91ab3976580c952c92ad771a15ae8bb22fc
ae8fb642f307d1c7c03c4021f41ee2bc6469f69f
refs/heads/master
2020-04-14T22:28:19.489006
2019-01-05T00:19:03
2019-01-05T00:19:03
164,163,947
0
0
null
2019-01-05T00:19:05
2019-01-04T23:15:52
R
UTF-8
R
false
false
1,183
r
cachematrix.R
## Functions in this program allows us to create a special kind of matrix. ## This special kind of matrix can cache itself. ## The second function allows us to calculate inverse of this special matrix. ## Once inverse is calculated, the 2nd function calls one of the sub-functions of 1st function to get/set the cached...
99cb4886acdfd7160e00933e782f27e5cda7af95
cdaef8cecedebdba8da7a4d14a918ed247af9685
/capstonefinal.R
f0bccf1280891c418f521aec7f8e48c6f504f71e
[]
no_license
VamshiKanderao420/VamshiKanderao
456a2dd54083817fe0939811c06d715dfe4cdd9d
1547f48fdbea4fb8aff69e838af35e2ee3032cc0
refs/heads/master
2020-07-09T16:57:36.374535
2019-08-28T13:09:59
2019-08-28T13:09:59
204,027,715
0
0
null
null
null
null
UTF-8
R
false
false
45,879
r
capstonefinal.R
# clear the list # rm(list = ls()) # libraries required library(shiny) library(RSQLite) library(shinythemes) library(shinydashboard) library(DT) library(DBI) library(dbplyr) library(dplyr) library(tidyverse) library(ggplot2) library(rmarkdown) library(rJava) library(...
4b3a9674c15ab2aa350baa709e6cb222e77f23c3
0dab3522081b5089b96945d431720b8dd004b193
/carte_reg_dom.R
119a6b84c6b52fb19cfe5b095a8c65bbca4c9de1
[]
no_license
slevu/carte_listeria
0b79a0b2758e8c4796edf32744e7d05a961d7fb1
94ffe0929ad2050fa76c457cb883481ea9c4333b
refs/heads/master
2022-12-09T22:51:45.173561
2020-08-27T14:02:18
2020-08-27T14:02:18
290,785,216
0
0
null
null
null
null
UTF-8
R
false
false
2,825
r
carte_reg_dom.R
## Carte avec deux labels colorés par région carte <- function(FNSHP = "extdata/Region_France_DOM_simplifie_2016.shp", dat = read.csv2("mockdata.csv"), nozero = TRUE, colvalue1 = "red", colvalue2 = "green4", justvalue1 = "left", justvalue2 = "right...
6c117eab0336443debbf004f89a21b071efa2f0f
7b74f00cd80694634e6925067aaeb6572b09aef8
/2020/Assignment-2020/Individual/FE8828-Xu Chong/Assignment2/SecretaryProblem.R
61103a3649501b7366f7b098068e37e9dc72d557
[]
no_license
leafyoung/fe8828
64c3c52f1587a8e55ef404e8cedacbb28dd10f3f
ccd569c1caed8baae8680731d4ff89699405b0f9
refs/heads/master
2023-01-13T00:08:13.213027
2020-11-08T14:08:10
2020-11-08T14:08:10
107,782,106
1
0
null
null
null
null
UTF-8
R
false
false
1,168
r
SecretaryProblem.R
make_choice <- function(N, split_number) { input_list <- sample(1:N, N, replace=FALSE) eval_group <- input_list[1:split_number] selc_group <- input_list[-(1:split_number)] best <- max(eval_group) for (i in selc_group) { if (i>best) { return(i) } } return(0) } make_choice_repeat <- fun...
812658da2ad9998bbd966b789205844d996e5d1d
ad6dc61037b50bf1e5ab7358264ae950ce75cfa9
/Week11/text_classification.R
c5bda48c8e1d2e1a7979f724e20f96a12168106d
[]
no_license
steviep42/INFO550
0cb2a3df74d99727f0487a1ef86cf90aac2392a2
a050910cace12e727ea822677285bfc0fa51fa44
refs/heads/master
2021-01-21T13:11:46.743545
2016-04-27T21:10:31
2016-04-27T21:10:31
52,405,574
0
1
null
null
null
null
UTF-8
R
false
false
4,407
r
text_classification.R
### # mtcars knn primer # We want to predict what cars are automatic or manual based on # other attributes from the data percent <- ceiling(nrow(mtcars)*0.80) train.idx <- sample(1:nrow(mtcars),percent,F) train.mtcars <- mtcars[train.idx,] test.mtcars <- mtcars[-train.idx,] preds <- knn(train.mtcars[,-9],test.m...
530dfe354ac376e43c0a99e319ab62bbe65b5edd
9dd4f25e7a7c4209ce16729b91a888eb4839260d
/read_data.R
25cf921f0978b6cb55712b2989b038ecb4b05ccf
[]
no_license
tobiasziegler/ExData_Plotting1
24185211ba182ae3c85c588f54e10cfe76540020
631fb56fdef38581c09209cf5f4a8e33c7fd1e06
refs/heads/master
2021-01-18T18:07:12.186473
2015-04-11T10:07:19
2015-04-11T10:07:19
33,764,754
0
0
null
2015-04-11T06:02:17
2015-04-11T06:02:16
null
UTF-8
R
false
false
1,044
r
read_data.R
# Reads the data, downloading it if required. # Returns only the subset of data to be used in the plotting exercises. read_data <- function() { lclData <- "data/Household_power_consumption.txt" if(!file.exists(lclData)) { download_data() } hpc_data <- read.table(lclData, header = TRUE, sep = ";", na.strings...
9c5b6e529e90c0b9825f2be97c504b0bf64afaff
1c9dc6b031f967801c894344893285542a7becae
/man/load_files.Rd
bb00b1a40e232439d751146480fea710b9747b7e
[ "MIT" ]
permissive
Mattlk13/aceR
0a67f1fbc197781bd3417b4da63b02429b16a797
c9c11f9bfd60df6c24ce5fff6a8e2b04aebade5a
refs/heads/master
2022-06-30T03:13:27.428067
2022-06-20T20:38:31
2022-06-20T20:38:31
147,976,156
0
0
MIT
2020-06-30T16:20:36
2018-09-08T23:04:05
R
UTF-8
R
false
true
900
rd
load_files.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read-generic.R \name{load_files} \alias{load_files} \title{Load all files in a directory as a data frame} \usage{ load_files(path = ".", verbose = FALSE, ...) } \arguments{ \item{path}{a character vector of full path names; the default co...
f8a1b24c8fdb512b2bbce343701f4ade7bbd1bd2
7a5931a74f2e8d8342fb3d6daba1a45029f6ed33
/r_code/correlationPlot.R
0a679ba93793e78d32d5106dc9186f02933c482d
[]
no_license
nesl/netcar
a9fee0d6130e1f228ddc579cd849227638bbca14
144559e6c4ce1417ffb620a2b5fb5f362e3f7348
refs/heads/master
2021-01-22T04:49:34.546685
2007-05-16T17:57:06
2007-05-16T17:57:06
12,227,596
0
0
null
null
null
null
UTF-8
R
false
false
1,125
r
correlationPlot.R
correlationPlot = function(validEvents) { source("calibrate.R") source("binData.R") source("markData.R") maxTime = 600 eventFile = "event.log" d1 = calibrate("1.log", -1) d2 = calibrate("2.log", -1) d3 = calibrate("3.log", -1) # create t...
4d732121d4ce2de10653308541631d5135844c66
0be7bb63022754d44b5d272309109f63d7862727
/p/vus/vubad.r
c4f72f92fba7a353e1c3a8c8830efbdea6deee34
[]
no_license
rust11/rust
dbb3f68d2b8eea6a5de064f644e203fa2cacd8b2
8d347f1415da38b679cbafe2eb0ae0332c0ff0ee
refs/heads/master
2023-03-10T06:35:41.453764
2023-03-08T18:26:00
2023-03-08T18:26:00
32,439,492
13
2
null
2022-08-12T04:10:56
2015-03-18T05:18:25
R
UTF-8
R
false
false
989
r
vubad.r
file vubad - bad blocks include rid:rider include vub:vumod include rid:rtbad include rid:rtcla code cm_dir - bad block directory ipt := cmAspc[3] proc cm_dir is spc : * char = ipt.Pnam fil : * FILE cla : * rtTcla bad : * bdTbad sta : WORD = 0 lim : WORD = 0 nam : int = 0 log : int = cmVopt & cmLOG_ ex...
f4796e3839be212d3a9efbf3890bffa26a99f8c7
c0d01a4fbd349421ca2aee4a9091e14092054704
/code/TS_analysis_ESM.R
8f2f607924b94760917560dcdab2c5cca5cb7db0
[]
no_license
lslbastos/BR_SIHSUS_StrokeSeasonality_2009_2018
320b70cdb81319bc8cfa167cb5cedc5a3f42a54d
715971da9ee2acdc11624adab8b245a646ef8b02
refs/heads/main
2023-07-04T19:25:09.849203
2021-08-26T14:48:07
2021-08-26T14:48:07
315,141,818
1
0
null
null
null
null
UTF-8
R
false
false
2,238
r
TS_analysis_ESM.R
# Libraries --------------------------------------------------------------- library(tidyverse) library(ggfortify) # library(seastests) # library(forecast) # Input data -------------------------------------------------------------- df_stroke_series_month <- read_csv("input/files/aih_stroke_2009_2018_month.csv") %>% ...
542a35893a6a97dc6b589bcfb322eb2d6a8dc35c
e0592e443c2f47d1332b37fdd13c063d4aa0359b
/tests/testthat.R
721d0d2fb588d337239c31d96a0b2806129efe66
[]
no_license
abifromr/apihelpers
1b308059deaf9978dfc3ec149dd65cb969f019ce
34e2156ed0107be3a7da7ef32e58888b46378711
refs/heads/master
2021-08-19T18:03:10.932107
2020-05-20T05:20:12
2020-05-20T05:20:12
184,191,083
0
0
null
null
null
null
UTF-8
R
false
false
64
r
testthat.R
library(testthat) library(apihelpers) test_check("apihelpers")
170d1e7b792be3490f1e9aca5c09d159a86211ad
47c9165cc535c495176c1fc70a60eed66bcdbbaf
/forecast/data/gas.R
13b828493660b9f72c90ce38ce211040666930e5
[]
no_license
cran/forecasting
5494260769c6ff530798629d8a4847cbf95bb5b5
a8f4142627b791448edb1a4df55bf6747ce8785c
refs/heads/master
2020-04-26T09:35:36.000252
2009-08-30T00:00:00
2009-08-30T00:00:00
null
0
0
null
null
null
null
UTF-8
R
false
false
3,272
r
gas.R
gas<-ts(c(1709, 1646, 1794, 1878, 2173, 2321, 2468, 2416, 2184, 2121, 1962, 1825, 1751, 1688, 1920, 1941, 2311, 2279, 2638, 2448, 2279, 2163, 1941, 1878, 1773, 1688, 1783, 1984, 2290, 2511, 2712, 2522, 2342, 2195, 1931, 1910, 1730, 1688, 1899, 1994, 2342, 2553, 2712, 2627, 2363, 2311, 2026, 1910, 1762, 1815, ...
fa41bfbc91cc90e88606f808a1284a132bf81422
8eea125de70bd5268a39e2f4f767e10f6b6b6007
/plot4.R
ff486a5cf123169666c11a28ef23c985543b2596
[]
no_license
logo403/ExData_Plotting1
9ef6918e611d934884de740548359fe67be77f95
ee9ad452719510a843b2ad3b211c4bf150199ac3
refs/heads/master
2021-01-14T09:42:05.078791
2015-10-08T02:27:09
2015-10-08T02:27:09
43,795,649
0
0
null
2015-10-07T04:48:04
2015-10-07T04:48:03
null
UTF-8
R
false
false
1,599
r
plot4.R
# plot 4 library(lubridate) library(dplyr) setwd("C:/Users/logo403/Documents/R/work/dataexploratory/project1/") Url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(Url, destfile = "power.zip") #To read the date directly from the file class <- c("character","cha...
0431932b787d0c9cd368969be0e3ab14768264fb
cc30a83a5d911dd895f89e427118f6647cacbe74
/plot3.R
5c0d0fd4b06d8d529682727a1079139cf7ed4b49
[]
no_license
alejoxps/ExData_Plotting1
4772ebcfaa0438ffa4ccf122f8a40485fc9f7eb4
42ea2616bec8ce7e6aeab8f571bbcd092e86ac88
refs/heads/master
2020-12-13T12:52:32.886234
2014-05-11T22:18:00
2014-05-11T22:18:00
null
0
0
null
null
null
null
UTF-8
R
false
false
1,084
r
plot3.R
#reading data h_p_c <- read.table("household_power_consumption.txt", sep=";",dec=".",header=TRUE,stringsAsFactors=FALSE) h_p_c_sub = subset(h_p_c, as.Date(Date, "%d/%m/%Y") =='2007-02-01'|as.Date(Date, "%d/%m/%Y") == '2007-02-02') #Set Graphic device png(filename = "plot3.png", width = 480, height = 480, units = "p...
58111fdcff8dfcd2d2e945af49566f202cdf7537
49274f1e603427e17419a480910df649680a02fc
/inst/create_r.R
25c031d8a766133101464629172818ef77e81e12
[]
no_license
t-arae/prtclmisc
da7b21d9122f5b1a75565f9da1faad4b9e219555
08203daa321f63524562d33cca81db976febb1b6
refs/heads/master
2021-07-12T06:57:15.555934
2020-08-25T07:28:21
2020-08-25T07:28:21
195,718,678
0
0
null
null
null
null
UTF-8
R
false
false
2,176
r
create_r.R
### unitsパッケージのヘルパー関数を定義するRファイルを作成。 ### 濃度計算を楽に行うため。 # install.packages("units") library(units) library(tidyverse) g_family <- c("kg", "g", "mg", "ug", "ng", "pg") template <- read_lines("inst/template.txt") g_functions <- map(g_family, ~ str_replace_all(template, "unit_is_here", .x)) %>% map2(g_family, ~ str_...
b635e5cb10fe48a16c9e6a04ddfa63accecf9a00
85d9ea52729abc548471d35357d9317e2eca8d81
/man/am.checky.Rd
2bb9469ba698aaaf693b3e1ef1c2f7297d858ccf
[]
no_license
ameshkoff/amfeat
57666f6bdda30d8e3ca0a639847427b47d71a8cb
d9a3d4749468a9b591ff37f00bf2af7e96a4f473
refs/heads/master
2021-01-19T00:25:39.058343
2016-11-25T14:24:14
2016-11-25T14:24:14
73,109,233
0
0
null
null
null
null
UTF-8
R
false
true
1,241
rd
am.checky.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/am.checky.r \name{am.checky} \alias{am.checky} \title{Correlations between dependent variable (Y) and every independent variable} \usage{ am.checky(ds, ds.list, ds.y, corr.type = "spearman", cl.number = 1, out.file = "") } \arguments{ \item...
30b522495614fcc91249fe9df210e847bd198912
e78dc2f685859e31d2e33bd14e46772669c6d678
/cachematrix.R
b6537f608a73e0f01c0f71679164a7dc2119f9b5
[]
no_license
retropc66/ProgrammingAssignment2
5e96468e02d28a6fed41462a7f60448ee156fc23
0895feeea313cbc4fcbb9c76f05b64df1b4f84b3
refs/heads/master
2020-12-24T15:58:09.840298
2015-08-21T20:06:05
2015-08-21T20:06:05
40,490,364
0
0
null
2015-08-10T15:32:28
2015-08-10T15:32:27
null
UTF-8
R
false
false
1,215
r
cachematrix.R
## These functions create an object to store a matrix and to calculate and ## cache its inverse matrix. When the inverse matrix is calculated for the first ## time, it is stored in the object, and can be recalled rather than recalculated ## the next time its value is required. ## makeCacheMatrix instantiates an object...
62d23ca7bd46b2807205d12d1aecf953b0315db4
5072cf394a8dd2bcae7f05556344751485651abc
/man/scatterplotDL.Rd
050eb3abe634915510c2295d2285bd03fd43b741
[]
no_license
cran/oaPlots
838a858dcf4e606cfcdb3d28e63c34e524dfd0eb
46714ee30c71efc8ddbdaf0309212be8b0d43163
refs/heads/master
2016-08-11T15:21:15.248062
2015-11-30T14:51:34
2015-11-30T14:51:34
48,085,147
0
0
null
null
null
null
UTF-8
R
false
false
1,523
rd
scatterplotDL.Rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/densityLegend.R \name{scatterplotDL} \alias{scatterplotDL} \title{Plot a base-graphics scatterplot with accompanying density legend} \usage{ scatterplotDL(x, y, colorVar, colorPalette, side = "right", proportion = 0.3, legendTitle =...
67b4912f2b8c0332c0fef6334a7165a0f12eaf61
29585dff702209dd446c0ab52ceea046c58e384e
/TAM/R/tam.latreg.R
7a0712b94b32d6d69f27917cd635d87aa315d8f0
[]
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
17,740
r
tam.latreg.R
################################################################### # latent regression tam.latreg <- function( like , theta=NULL , Y=NULL , group=NULL , formulaY = NULL , dataY = NULL , beta.fixed = NULL , beta.inits = NULL , variance.fixed = NULL , variance.inits = NULL , est.variance = TR...
09e83d63411754929e0afcdd819c4868998a16c1
6a28ba69be875841ddc9e71ca6af5956110efcb2
/Numerical_Methods_In_Finance_And_Economics:_A_Matlab-Based_Introduction_by_Paolo_Brandimarte/CH8/EX8.14/Page_459_AsianMCGeoCV.R
3847f459b4d6eea05f684a1e85c98808243ed301
[]
permissive
FOSSEE/R_TBC_Uploads
1ea929010b46babb1842b3efe0ed34be0deea3c0
8ab94daf80307aee399c246682cb79ccf6e9c282
refs/heads/master
2023-04-15T04:36:13.331525
2023-03-15T18:39:42
2023-03-15T18:39:42
212,745,783
0
3
MIT
2019-10-04T06:57:33
2019-10-04T05:57:19
null
UTF-8
R
false
false
2,112
r
Page_459_AsianMCGeoCV.R
require(OptionPricing) require(fBasics) require(fOptions) require(varbvs) require(lmom) GeometricAsian<-function(S0,K,r,T,sigma,delta,NSamples){ dT = T/NSamples nu = r - sigma^2/2-delta a = log(S0)+nu*dT+0.5*nu*(T-dT) b = sigma^2*dT + sigma^2*(T-dT)*(2*NSamples-1)/6/NSamples x = (a-log(K)+b)/sqrt(b)...
fda7beb7c6236af3fce438d243e181df30d350bc
504447c2284e6fc4c959c9b1c3859ffe14d43f7b
/forecast_pckg.R
fc3e9429fa3e14cd64a99b7aef6245edace8e91c
[]
no_license
miladdoostan/Uber-Search-Time-Series-Forecasting
c4642f9c0618c9ade70c01da8f8e53ce0acc5a03
3216287f727ff6adf93c5eebeb078b172072fc68
refs/heads/master
2020-04-05T02:09:06.506316
2018-11-16T17:26:58
2018-11-16T17:26:58
156,465,844
3
2
null
null
null
null
UTF-8
R
false
false
248
r
forecast_pckg.R
# Necessary packages that should be installed for conducting the forecast job install.packages('fpp2') install.packages('xts') install.packages('data.table') install.packages('ggpubr') install.packages('seasonal') install.packages('repr')
23f7d56930f3fbcff7bbdf9e3e513d511cb4a1e7
738ed648f537dd49a0ce27b13230cc0c1cc82d18
/service_pmml_openscoring/modeling.R
f7b0d18f2774066a392cfee905dd186f0a4702a1
[]
no_license
biwa7636/mlaas
300d651c13ac6c8e4c0244e50fbb2ba11a2787e8
2169cb439c7557835a2e198176eff6c95c92439a
refs/heads/master
2021-01-19T05:14:23.857902
2016-06-30T15:53:53
2016-06-30T15:53:53
62,154,715
0
0
null
null
null
null
UTF-8
R
false
false
119
r
modeling.R
library(e1071) library(pmml) data("iris") model <- svm(data=iris, Species ~ .) p <- pmml(model) saveXML(p, "iris.xml")
d70564c2e15441dc81d11cc7e20c354570208eb7
77157987168fc6a0827df2ecdd55104813be77b1
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615840681-test.R
ed932da489e82439229ddd1189d99d67d8c0f9c9
[]
no_license
akhikolla/updatedatatype-list2
e8758b374f9a18fd3ef07664f1150e14a2e4c3d8
a3a519440e02d89640c75207c73c1456cf86487d
refs/heads/master
2023-03-21T13:17:13.762823
2021-03-20T15:46:49
2021-03-20T15:46:49
349,766,184
0
0
null
null
null
null
UTF-8
R
false
false
217
r
1615840681-test.R
testlist <- list(m = NULL, repetitions = 14L, in_m = structure(2.99939362779126e-241, .Dim = c(1L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_beta_interleaved_matrices,testlist) str(result)
6f9edcbf3ac038e2fc167c30bc918d2b15e18ff4
964e8158ec7aebb48e7fb5d789673a41e607e45b
/R/class_clv_pnbd_staticcov.R
93851e4c81f6426e12ca0074ece0b3f5dd6a6ccc
[]
no_license
lazycrazyowl/CLVTools
c8b3b2e08664923326d8155af70942eb0b89cf84
2ffe72f8ad751b04a1962ec3edf4c8ee75766717
refs/heads/master
2022-11-16T01:11:13.550308
2020-06-25T17:39:14
2020-06-25T17:39:14
null
0
0
null
null
null
null
UTF-8
R
false
false
1,113
r
class_clv_pnbd_staticcov.R
#' @templateVar name_model_full Pareto/NBD #' @templateVar name_class_clvmodel clv.model.pnbd.static.cov #' @template template_class_clvfittedmodels_staticcov #' #' @template template_slot_pnbdcbs #' #' @seealso \link{clv.fitted.static.cov-class}, \link{clv.model.pnbd.static.cov-class}, \link{clv.pnbd-class}, \link{clv...
e9b9b8e86e019d909dbb40da1aa30a5cf62b3c8f
5a4cbe8227f52ec315ae7351c8f7793aad70b521
/test_source/global.r
255b19f22bdf998222a83a53f28868dc21f2eaa1
[]
no_license
DrRoad/fdk
199584cd3442b3d898efb4722a33dae0a25188d2
31db3f727c834b2d0dcc7c03bcaca53ee5775591
refs/heads/master
2023-05-11T16:18:56.351151
2021-05-14T10:11:43
2021-05-14T10:11:43
null
0
0
null
null
null
null
UTF-8
R
false
false
1,139
r
global.r
# GLOBAL #### source_conf = list(source = "oc" , date_cycle = "2021-05-01" , db = list("full_sales" , "full_forecast" , "regressor" #, "forecast_item_info" ) ...
13897d743a3532279df90615d3466cdb140cc723
806fedb9f7be2fffeb350badb7fa7699ba092dd3
/src/prep/prep_acs.R
f596a22503f25ba5c422916013e1c37135546a9d
[]
no_license
gopalpenny/climateviews
5c6455f3398dcbd1dcc541a0a147b9dea6f7ea09
7c290705dd6f473bebc6bc264689fd75a1dcda2e
refs/heads/master
2020-12-21T10:43:14.845610
2020-02-01T01:38:14
2020-02-01T01:38:14
236,407,612
0
0
null
null
null
null
UTF-8
R
false
false
453
r
prep_acs.R
# https://cran.r-project.org/web/packages/tidycensus/tidycensus.pdf # vignette: https://walkerke.github.io/tidycensus/articles/basic-usage.html v18 <- tidycensus::load_variables(2018, "acs5", cache = TRUE) v18 %>% filter(grepl("TOTAL POPULATION COVERAGE RATE",concept)) v18_female <- v18 %>% filter(grepl("[Ff]emale",la...
587443ed991fde6ed2bcdac173afefaffb074a01
67dc617e4cf6730f4231c87578e85bbca9dd4d4a
/man/nneighb.Rd
b29535eeee1e17430fb69135dc39b3948bf9a7f2
[]
no_license
cran/kdtools
f5ed74d2aac44842fee6ce6c7714ac6f16b72576
177d3966d4342c6296a03fd187a527589fe8e59c
refs/heads/master
2021-11-19T11:06:07.446362
2021-10-08T07:30:02
2021-10-08T07:30:02
128,370,836
0
0
null
null
null
null
UTF-8
R
false
true
2,059
rd
nneighb.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kdtools.R \name{kd_nearest_neighbors} \alias{kd_nearest_neighbors} \alias{kd_nearest_neighbors.matrix} \alias{kd_nearest_neighbors.arrayvec} \alias{kd_nearest_neighbors.data.frame} \alias{kd_nn_indices} \alias{kd_nn_indices.arrayvec} \alias{k...
f61285c9a876ececfbab5d1ecedf09ac42642827
fff7d4bd3016abe13e448fcf8a62acdf09c66bf7
/Agosto-Diciembre 2022/funciones/probar funciones.R
d4e635a30897aedc3244798796277f6793a3aa26
[]
no_license
rpizarrog/probabilidad-y-estad-stica
205193d69ac003fc0855b317b3f6b4d2224143c7
c392c49a6eb9f24a21a41f9a88cfd9179c3d738d
refs/heads/master
2023-05-29T23:09:21.081697
2023-05-29T15:50:53
2023-05-29T15:50:53
100,639,325
2
3
null
2017-08-18T17:05:22
2017-08-17T19:43:46
HTML
UTF-8
R
false
false
833
r
probar funciones.R
# Función que muestra un saludo f_saludo1 <- function() { print("Hola saludos") } f_saludo2 <- function(nombre) { paste("Hola", nombre, "como estás") } f_promedio <- function(numeros) { print(sum(numeros) / length(numeros)) } f_saludo3 <- function(nombre, edad) { paste("Hola", nombre, "como e...
95de37151e51362f317ea5eabe95f4fc1b392d53
0d74c6026340636cb7a73da2b53fe9a80cd4d5a5
/SupportingDocs/Examples/Version05/ex17/ex17.R
914b015735980ac49baea74a95d66ad3def4cb19
[]
no_license
simsem/simsem
941875bec2bbb898f7e90914dc04b3da146954b9
f2038cca482158ec854a248fa2c54043b1320dc7
refs/heads/master
2023-05-27T07:13:55.754257
2023-05-12T11:56:45
2023-05-12T11:56:45
4,298,998
42
23
null
2015-06-02T03:50:52
2012-05-11T16:11:35
R
UTF-8
R
false
false
3,416
r
ex17.R
library(simsem) popModel <- " f1 =~ 1*y1 + 1*y2 + 1*y3 + con1*y2 + con2*y3 f2 =~ 1*y4 + 1*y5 + 1*y6 + con3*y5 + con4*y6 f3 =~ 1*y7 + 1*y8 + 1*y9 + con5*y8 + con6*y9 f4 =~ 1*y10 + 1*y11 + 1*y12 + con1*y11 + con2*y12 f5 =~ 1*y13 + 1*y14 + 1*y15 + con3*y14 + con4*y15 f6 =~ 1*y16 + 1*y17 + 1*y18 + con5*y17 + con6*y18 f7 =...
1ddce8b53df6a16b9230ab5a5e7d6a05c8ef261a
f37e28e6a95d3e455317341d166d4dc1ce0d7a25
/R/print.summary.swim.R
ac9f9dd79a3d65c4c4254b7e105b1898a3cc8f65
[]
no_license
kimwhoriskey/swim
ff41ea8be6c25098700732782f894fbf807fa781
c612fdd7404a433ae6271758f0e36d57cdb7907e
refs/heads/master
2021-07-25T00:03:59.435303
2020-03-21T03:23:56
2020-03-21T03:23:56
248,900,088
0
0
null
null
null
null
UTF-8
R
false
false
373
r
print.summary.swim.R
#prints the output from the summary of the swim object #' @export print.summary.swim <- function(x){ cat("Hidden Markov Movement Model:\n") cat("\n Time to fit: \n") print(x[[1]]) cat("\n Confidence Intervals: \n") print(round(x[[2]][9:18,-2], 7)) # cat("\nWald Tests: \n") # # printCoefm...
0b8e78e577068febcfed9f343b95e7269b5404cb
4e6396b61d67aeb1d26d5a25616e63dc236f4454
/MA7_maok.R
6aab78c58db86d0c316a249614a7be8fe8dd04ca
[]
no_license
ctejeda86/merger-table
7aec096647f49962b102850f1e026a93c5b2051b
712239e81395ab5b071764568a9eac56e005d5c8
refs/heads/master
2020-09-12T05:52:06.605354
2019-11-18T00:29:05
2019-11-18T00:29:05
222,331,800
0
0
null
null
null
null
UTF-8
R
false
false
2,670
r
MA7_maok.R
getwd() setwd("C:/Users/HP/Documents/Termo/MA7") library(dplyr) ##guardar bmv como csv y cambiar nombre a porcentaje bmv<-read.csv("bmv.csv",stringsAsFactors = FALSE) colnames(bmv)[13]<-"VARPORC" ##guardar ma7 economática ma7_econ<-read.csv("ma7_econ.csv",stringsAsFactors = FALSE) ma7_econ<-select(ma7_econ,-Tip...
f4a2f7694101a751a4e195189f60f0f84d807a11
d6d7024184d97504457b03cb622906a15305e0ad
/src/RCodeBase/7. IncrementalSpends.R
62aa61cdc6e9074774c4906cdce48b023f6b2d79
[]
no_license
ssandipansamanta/marketing_campaign_effectiveness
b137e607cf52e90072ecd5eaa7657414ba5ee25e
0bf9ddb7a77467407f6cdb338890b95b3fbe7b8e
refs/heads/master
2020-04-17T23:57:26.388909
2019-01-27T18:24:07
2019-01-27T18:24:07
null
0
0
null
null
null
null
UTF-8
R
false
false
1,412
r
7. IncrementalSpends.R
IncrementalSpend <- function(InputData,groupbyLevel1,groupbyLevel2){ IncTotalSpend <- InputData[,.(TotalSpend = sum(Spend,na.rm = TRUE)), by = groupbyLevel1] IncAvgSpend <- IncTotalSpend[,.(ActualSpend = sum(TotalSpend,na.rm = TRUE), AvgSpend = mean(TotalSpend,na.rm = TRUE), ...
62298139d9c078efb659e9b346c2ea0aefe74292
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/CHNOSZ/tests/test-util.list.R
39a525efe0c7aae8c5473be55eb455786b09c2c4
[]
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
348
r
test-util.list.R
context("util.list") test_that("which.pmax() properly applies attributes, and also works for lists of length 1", { testlist <- list(a=matrix(c(1,2,3,4)), b=matrix(c(4,3,2,1))) testattr <- attributes(testlist[[1]]) expect_equal(attributes(which.pmax(testlist)), testattr) expect_equal(as.numeric(which.pmax(testl...
cf8e26ae34069e95ed90cc42dea1537eff5da136
316516337da2ca6d86b7da32e14149728177f1e4
/R/insample_sim_hh1.R
88219cccf74f96c26983205b132b4dab4e67e31d
[]
no_license
swihart/wfpca
7f208bb895dfb9b9dfd57723fac7fb92031135e3
4814cdf4648a9d9631df1e705858512f2e84d143
refs/heads/master
2020-05-19T08:11:38.442105
2015-07-08T16:21:45
2015-07-08T16:21:45
23,965,545
1
0
null
null
null
null
UTF-8
R
false
false
36,514
r
insample_sim_hh1.R
#' Hopkins Hybrid 1: Run a simulation and then perform prediction. Based on insample_sim(). Censoring is #' fabricated a la the SES of the Growth data. We will make a _hh2 to do a more realistic censoring. #' #' This function comes after many months of running readme_sim and talks with Bryan Lau on #' what we need t...
eb50c80d7a75f384f12de238eae7da836248bbca
ca9d8611fd0612b75df5420c28e9a6d3a21eb630
/man/plot_ndfa.Rd
6a82623231f9faae66a635b46a65a28301d593d9
[]
no_license
cran/pooling
f949c18d80469acf5a4e93444ec2a5f2dc8d1394
7f00174fbc6b2a994c4b2fcf9cb13c15852395b1
refs/heads/master
2020-03-13T13:35:14.926732
2020-02-13T05:10:03
2020-02-13T05:10:03
131,141,814
0
0
null
null
null
null
UTF-8
R
false
true
2,054
rd
plot_ndfa.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_ndfa.R \name{plot_ndfa} \alias{plot_ndfa} \title{Plot Log-OR vs. X for Normal Discriminant Function Approach} \usage{ plot_ndfa(estimates, varcov = NULL, xrange, xname = "X", cvals = NULL, set_labels = NULL, set_panels = TRUE) ...
b1b7721f0162807a84fa313f199b67e84241d721
e3c9185a5485ad64adeb93bf6b1a4144b78fcddd
/man/test_ghost_csv.Rd
c2a3fa37be346938694bc65715a24c0ebc6ad92b
[]
no_license
cran/Ghost
fba034fb25bed2d524d2d8127872cc5fbbe24c6c
f5d953c07c768fd9778d5e8554f0dd21771f436f
refs/heads/master
2022-04-22T04:09:01.554367
2020-03-25T15:50:05
2020-03-25T15:50:05
250,132,659
0
0
null
null
null
null
UTF-8
R
false
false
260
rd
test_ghost_csv.Rd
\name{test_ghost_csv} \alias{test_ghost_csv} \docType{data} \title{ A simple .csv file to use in the reconstruct function. } \description{A simple .csv file to use in the reconstruct function. } \usage{data("test_ghost_csv")} \keyword{internal}
d92532b589651aacf0b6bb1c967fd4462ebfa0fb
f02e02d6d797a7da2879b04022d088024798187d
/Advanced R Programming/lab05/lab05_result/tests/testthat.R
57ddfacc6ebcef0e563b4b68483fb660e0cc91af
[ "MIT" ]
permissive
lennartsc/MSc-Statistics-and-Machine-Learning
aa0d920955f12daf79c01d3233fc6381d5923672
57905f689db794ca9bfe4775859106942d80456a
refs/heads/master
2023-05-26T23:48:08.461875
2020-07-07T10:16:57
2020-07-07T10:16:57
214,446,376
0
0
null
null
null
null
UTF-8
R
false
false
54
r
testthat.R
library(testthat) library(rLab5) test_check("rLab5")
a5d5b478de33b01f5bc58423e62368c862ae946d
29ac020305d01a8caea77929e5859a5aaf707ac3
/lab11-shiny-apps/app3.R
08777453a9f6432037c3cba0fcb1e1b0208dd672
[]
no_license
yhed10/stat133-fall-2018
8fa769239acaeec06853ed76865daf41b3835cb9
03443922c409a59fd2ec2ec191fd65c04c2d82dd
refs/heads/master
2020-03-31T02:12:33.129387
2018-12-05T22:05:07
2018-12-05T22:05:07
151,683,019
0
0
null
null
null
null
UTF-8
R
false
false
2,385
r
app3.R
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( # Application title tit...
5739c56b4b061058dcb53b60ad711186a4d676c0
1add06860b78f44735db2994e4f3900b7918dd44
/man/hammingDist.Rd
2b03e55ccdcb1ebb821955492ec66be4559798b4
[ "MIT" ]
permissive
ABohynDOE/mldoeR
34906ba6b226f653df32aba78859e98b43258e15
44116e985001a858bf39b0cde530e3513999b619
refs/heads/master
2023-08-21T13:49:53.661924
2021-10-05T09:53:04
2021-10-05T09:53:04
395,269,267
0
0
null
null
null
null
UTF-8
R
false
true
527
rd
hammingDist.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{hammingDist} \alias{hammingDist} \title{Hamming distance between two vectors} \usage{ hammingDist(a, b) } \arguments{ \item{a}{first vector} \item{b}{second vector} } \value{ Hamming distance between \code{a} and \code{b}...
667d99c8501efb5a8aaf617ab2b998b7bfcc7fd7
f0cf9bdb92ba3df4a780f143daee5603f4c4dd0f
/Second/CienciaDeDatos/ProyectoFinal/gray.R
8a0a7cb01a941774044ec4bc8ad791fadf8b8844
[ "MIT" ]
permissive
fou-foo/MCE
b321abaa53479e428989d2f847bdc9c5dc7c225e
a279ed86fa31f89b0233257313ff3f72da9aab92
refs/heads/master
2021-06-05T21:33:27.121270
2020-11-15T02:27:04
2020-11-15T02:27:04
98,847,993
0
0
null
null
null
null
UTF-8
R
false
false
3,442
r
gray.R
setwd('C:\\Users\\fou-f\\Desktop\\MCE\\Second\\AnalisisNumericoYOptimizacion\\ProyectoFinal') library(Rcpp) #libreria para codigo c++ library(RcppEigen) #libreria para codigo c++ library(RSpectra) #libreria para lanczos library(imager) #libreria para leer imagenes library(rtiff) library(abind) sourceCpp('W1.cpp'...
56f85e775e46b86c0b7e41488bbc9f1b92d47c1b
8dd4d96e9a642727540bab3c9a277f220153f33b
/week4/rankhospital.R
3f24066ab71f846600dc0ef9aba88b342c89596f
[]
no_license
MarkSinke/datasciencecoursera
4af42380d5a80431d986c95ecdbf0bff43e825f6
ea2569e0c5ee6ec19cb9abfe25ed46b92e6937f6
refs/heads/master
2021-01-15T21:14:49.433771
2014-07-25T21:25:38
2014-07-25T21:25:38
null
0
0
null
null
null
null
UTF-8
R
false
false
810
r
rankhospital.R
rankhospital <- function(state, outcome, num = "best") { colNo <- switch(outcome, "heart attack" = 11, "heart failure" = 17, "pneumonia" = 23) if (!is.numeric(colNo)) { stop("invalid outcome") } fullData <- read.csv("outcome-of-care-measures.csv", colClasses = "character") fullData[, co...