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
ef0f7de27e4687a687777588f7482adf7ab5bb66
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/prospectr/examples/movav.Rd.R
44f289b53f37be7661d9650fbf24534c8b1a69d8
[]
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
462
r
movav.Rd.R
library(prospectr) ### Name: movav ### Title: Moving average ### Aliases: movav ### ** Examples data(NIRsoil) wav <- as.numeric(colnames(NIRsoil$spc)) spc <- 1/10^NIRsoil$spc # conversion to reflectance spc <- spc + rnorm(length(spc),0,0.001) # adding some noise matplot(wav,t(spc[1:10,]),type='l',xlab='Wavelength /...
ab1c7f82ec291157478adb2bfa478df9248cb307
917683f603471a3e9c0ddf2244c798e42543456a
/R/proportion.R
c8e985688ef836719fcd2f593072747df0704276
[]
no_license
rramadeu/Paternity-Functions
615aaa9e67dd60fe28e2bd79ea38251a57fa80e9
78c8bca17f405ddd935d688266173ab471148c47
refs/heads/main
2023-04-26T05:36:05.628209
2021-05-27T20:03:56
2021-05-27T20:03:56
356,289,937
0
0
null
2021-04-09T13:59:12
2021-04-09T13:59:12
null
UTF-8
R
false
false
1,765
r
proportion.R
######################################################################### # # Package: # # File: proportion.R # Contains: proportion # # Written by Samuel Beazley # # First version: March-2021 # Last update: 5-Apr-2021 # ######################################################################### #' #' Test parentage of i...
94eb13582c4e55b9fd7529756286f047d6505b8c
6408034915bfada6fa84cc78a1180690f5ced9e7
/scripts/plot_entropy_tile.R
aa74b822b5e63166208ae29cf3078420d77050a0
[]
no_license
pangenome/chromosome_communities
04ad781faebfcf8dfa5bdc9686453deda2c7b408
546645820c37e5984f4e77be5ba1e81021e182e1
refs/heads/main
2023-07-15T17:57:22.955437
2023-06-28T12:51:12
2023-06-28T12:51:12
358,575,774
3
0
null
null
null
null
UTF-8
R
false
false
1,068
r
plot_entropy_tile.R
args <- commandArgs() path_entropy_tsv <- args[6] title <- args[7] x_max <- as.numeric(args[8]) height <- as.numeric(args[9]) library(ggplot2) library(ggforce) x <- read.delim(path_entropy_tsv) x <- x[x$shannon_div_index != -1, ] p <- ggplot(x, aes(x = start + (end - start) / 2, width = end - start, y = query, alph...
4948b95c6f42d95ab11d5948a2d00afbb651c92e
59f69aa5e4aea094ac12357627c55102a5a2d5cd
/Experiment_Design/lmm/pr_lmm.r
9ebecf5c7b37ff5bd48f44a7a776c122772d7a31
[]
no_license
marianaw/Applied_Statistics_assignments
3f27b067c282cfa470f7150b6d6ac7f2b07ee6af
b482ec4980063831e4cea71bfe54684f0b8e7bf2
refs/heads/master
2021-01-20T18:57:49.468318
2017-11-16T04:38:31
2017-11-16T04:38:31
65,623,100
0
0
null
null
null
null
UTF-8
R
false
false
7,889
r
pr_lmm.r
setwd("/home/mariana/Documents/MestriaUNC/Applied_Statistics_assignments/Experiment_Design/lmm/") require(ggplot2) library('nlme') #------------------------------------------------------------------------------------------------ #-------------------------------------- Ejercicio 1 --------------------------------------...
c9af92d62a0484d5126fbe5360400ec5f2dd2504
0d406b4ff1cb7b0975d0c767f503518505859fa6
/R/search-series.R
9d20f034bd9cdaa5aef087dc4826dd23f077db7d
[]
no_license
iverworld/PortfolioSelectionPackage
4ccd98dc4e4f1e5692110c8d6f9a59578a93e237
7e952d0d3201d952724f82aa34677078a72f16f7
refs/heads/master
2020-03-29T20:15:47.401020
2015-11-03T22:32:45
2015-11-03T22:32:45
34,119,410
0
0
null
null
null
null
UTF-8
R
false
false
264
r
search-series.R
#' Search series name from Quandl. #' #' @param keyword String #' @param page Integer, number of pages #' @param source String, the source filtering search_series <- function(keyword, page = 1, source = NULL){ Quandl.search(keyword, page = 1, source=NULL); }
ca0140c0c2c789abb48cd2d649e250a4df0150f0
70020f492cba464adfc0a520ae6cdeb036cb717d
/man/calc_tidy.Rd
84e57d9523c7300aa2246f0bbcd77f970bd62756
[]
no_license
jsm19-tds-demo/simpr
8107083de6f2cbc5a38b8c4aac4f5a20467a3281
ee193068ac4de9aa45d1018e4a1e818e7a98fc8c
refs/heads/master
2020-09-19T18:54:10.114751
2019-11-25T20:37:07
2019-11-25T20:37:07
224,268,635
0
0
null
2019-11-26T19:21:19
2019-11-26T19:21:19
null
UTF-8
R
false
true
536
rd
calc_tidy.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simpr_fxns.R \name{calc_tidy} \alias{calc_tidy} \title{Tidy the simulated model results output into tibble of components (broom analogue)} \usage{ calc_tidy(simpr_mod) } \arguments{ \item{simpr_mod}{simulated model results (output of simpr::f...
96d1ef8ffd469f0bd692efe947470370633e5484
44cf65e7ab4c487535d8ba91086b66b0b9523af6
/data/Newspapers/2000.09.13.editorial.57569.0438.r
d0e6791502bf9ea0de8d2c75155c1a097df65d84
[]
no_license
narcis96/decrypting-alpha
f14a746ca47088ec3182d610bfb68d0d4d3b504e
5c665107017922d0f74106c13d097bfca0516e66
refs/heads/master
2021-08-22T07:27:31.764027
2017-11-29T12:00:20
2017-11-29T12:00:20
111,142,761
0
1
null
null
null
null
UTF-8
R
false
false
4,555
r
2000.09.13.editorial.57569.0438.r
de multa vreme , telespectatorii fideli ai zgomotosului post de televiziune n - au mai avut parte de o seara in care sa fie purtati din chifla in chifla . pentru ca toata Romania vuieste din cauza crimei de la Iasi , PRO TV a zis ca sparge piata daca il aduce in direct , la o ora de maxima audienta , pe autorul emisiu...
23eef49d2203cee405014720cc5ee9523c9b4f8d
205e1e0a2e23f362b7987804ebe8e17a23ac6010
/man/pie_opts.Rd
65142b9f3c0236448b6f1537bde0e5c38914407a
[ "MIT" ]
permissive
dreamRs/apexcharter
97f93ec61d2ad96f8bf2446fe50e2cb22f4824df
11d244e9922a9abe41aee90124224d8f5cababa9
refs/heads/master
2023-06-22T11:11:57.709837
2023-06-14T12:05:06
2023-06-14T12:05:06
142,926,526
135
15
NOASSERTION
2023-03-22T15:30:53
2018-07-30T20:47:09
R
UTF-8
R
false
true
1,433
rd
pie_opts.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apex-options.R \name{pie_opts} \alias{pie_opts} \title{Pie options} \usage{ pie_opts( size = NULL, donut = NULL, customScale = NULL, offsetX = NULL, offsetY = NULL, dataLabels = NULL, ... ) } \arguments{ \item{size}{Numeric. Cus...
31d159c2322ac5a6a62021996b517ae215434c6d
2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0
/fuzzedpackages/yakmoR/R/orthoKMeansPredict.R
4fa9ae67c2b5534e3636a6672722a98902b4351e
[]
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
912
r
orthoKMeansPredict.R
#' orthogonal kmeans prediction function #' #' @param x data to assign clusters #' @param obj an object returned by orthoKMeansTrain #' @param verbose show verbose messages? #' @return a matrix with as many colums as rounds trained #' @examples #' obj = yakmoR::orthoKMeansTrain (x = as.matrix(iris[seq(1,15...
7e307f197019f7e2ab9cfcfc68311e843d2c05e7
83b6cfc21dfb6bab9e2b184b1d9ced973a9aa719
/R/get_features.R
380f80d0847e8d8d1df5843dbef03d5d3cb29240
[]
no_license
sottorivalab/revolver
ee38c07df09da77c5c3359e6f6bd4e583f7bf5f7
3e4de13316b39b65a297cc09415106bd8c12b664
refs/heads/master
2022-03-28T22:59:26.667493
2020-01-12T10:03:17
2020-01-12T10:03:17
258,231,923
1
0
null
2020-04-23T14:27:40
2020-04-23T14:27:39
null
UTF-8
R
false
false
4,392
r
get_features.R
#' Return summary features for the cohort. #' #' @description #' #' Computes a set of summary features for the cohort, in the #' form of a matrix. The fits must be available inside the cohort #' to retrieve some of these features, which are: #' #' \itemize{ #' \item the matrix of driver events with mean CCF or binary...
140e9af68c8af2435555533117060eec3605db90
54d860f5c2f1c799dcf3c75428dc981bfa4d21e8
/Unit 12/NYT NB Classifier/NTY_NB_Classifier/ui.R
bc2292f3e6b60efc6ffd5c2f3befb0b711a5f58f
[]
no_license
BivinSadler/MSDS_6306_Doing-Data-Science
baac443976978e5da1573063f6acd2e2cd299572
896d2b1517ac93e0ae64f537c4b74c8348606f52
refs/heads/Master
2023-09-01T03:11:21.754687
2023-08-17T13:03:30
2023-08-17T13:03:30
202,908,565
37
124
null
2021-06-08T19:12:31
2019-08-17T16:55:01
HTML
UTF-8
R
false
false
877
r
ui.R
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram shinyUI(fluidPage( ...
38e9654720d48e4a3b3066cd62cad674bf343e3a
e707b78faa593cf76b8cc5f13f7bbbe56fcd5862
/man/ggs_caterpillar.Rd
f88d12cd3896a03380062bdebb3a0eb1adf9761b
[]
no_license
jrnold/ggmcmc
39986e8facda5e1e397bbf2c93aec5d427d80b4f
ae6a46ea65c7fdb2f81436d6ea14064666ab7ebe
refs/heads/master
2021-01-17T23:43:40.592484
2012-10-18T04:26:45
2012-10-18T04:26:45
6,309,864
0
1
null
null
null
null
UTF-8
R
false
false
1,173
rd
ggs_caterpillar.Rd
\name{ggs_caterpillar} \alias{ggs_caterpillar} \title{Caterpillar plot with thick and thin CI} \usage{ ggs_caterpillar(D, parameter.family, thick.ci = c(0.05, 0.95), thin.ci = c(0.025, 0.975), line = NA, horizontal = TRUE) } \arguments{ \item{D}{data frame whith the simulations} \item{parameter.family}{N...
cd1ff3f94a545c82f32510b6b401c3256f088926
e73b3595adef874f7473bffdfbd16c3cb04a211b
/man/new_mirvie_learning_curve_cv.Rd
0e91ed411ef1b0743468056a1d4a8bd98aaeb90a
[ "MIT" ]
permissive
mirvie/mirmodels
bf0cf66948e1213e7082c2f37bbb1ef72848a180
afe784a0b3257ed089ce7ffa7b3c367874e3fc68
refs/heads/main
2023-04-13T20:21:38.580623
2022-01-11T22:15:20
2022-01-11T22:15:20
420,176,840
2
0
null
null
null
null
UTF-8
R
false
true
846
rd
new_mirvie_learning_curve_cv.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/learning-curve.R \name{new_mirvie_learning_curve_cv} \alias{new_mirvie_learning_curve_cv} \title{Construct a \code{mirvie_learning_curve} object.} \usage{ new_mirvie_learning_curve_cv(tib) } \arguments{ \item{tib}{A tibble with columns \code{...
0efacdfcfc9e7de8c9b86f43e55087ff028b6764
57ac42a473e68a13e7461c009ba9cb7f499d4726
/cachematrix.R
557346273c3d31749b758c49cd6dec3e2a963c17
[]
no_license
rbgm/ProgrammingAssignment2
74973e26036092a2d32b6070bbc8222e41569033
9bcdeec68b13961d7fb3921876f7a4225cffa87e
refs/heads/master
2021-01-18T05:29:23.534550
2014-10-25T18:34:13
2014-10-25T18:34:13
null
0
0
null
null
null
null
UTF-8
R
false
false
1,567
r
cachematrix.R
## Put comments here that give an overall description of what your ## functions do ## The functions makeCacheMatrix and cacheSolve are intended to show ## how to make use of environment management in R through the implementation ## of a cache functionality to compute the inverse of a matrix ## Write a short comme...
1ad127bd0b6272c6984e46190f850f0aa204eee7
52a1a626f0b4e16c061b7e3f2b960870fc8810cb
/t12_data_integration/data_integration_visualisations.R
16e024df79e8559aed77489e77fdbdc392cbbcb8
[]
no_license
pboesu/moult_phenology
a42acddaa7793e26a16130fbf4cea1ee5118abd8
e9b637f73cb29afdad12bdcfbe6d5ad7922b765c
refs/heads/main
2023-04-16T08:38:22.674392
2023-02-15T17:17:21
2023-02-15T17:17:21
585,987,274
0
0
null
null
null
null
UTF-8
R
false
false
6,974
r
data_integration_visualisations.R
library(dplyr) library(moultmcmc) library(ggplot2) backfits <- lapply(list.files('simulation_outputs/euring', pattern = 'integrated', full.names = T), readRDS) names(backfits) <- stringr::str_extract(list.files('simulation_outputs/euring', pattern = 'integrated', full.names = T), '[0-9]+') reference_level = tibble(pa...
69a3542a56bd346d37ba9f124e29609e003c36f1
2b7bb0a817d293a007c1597b57ad9a083c4c614a
/R/TradeVolumeVol.R
7dd4380aa18b818e22b2b312c34cba098fca6eae
[]
no_license
helenristov/aCompiler
777585a77ada30fbbb750339fd28dfe439d0cf1e
cc0a0146c7dd20c17829190c9eac3e65ad71d940
refs/heads/master
2021-01-23T07:33:51.970028
2018-11-13T03:22:08
2018-11-13T03:22:08
102,508,631
0
1
null
null
null
null
UTF-8
R
false
false
9,696
r
TradeVolumeVol.R
#' #' Adjust Volatility based on Liquidity (Daily Traded Volume) #' #' Calculates Volatility Controllling for Potential Limited Liquidity. #' #' Compares recent daily traded volume to a minimally-accepted daily volume and adjusts volatility if violated. #' #'@param OR_Contracts List of outright contracts to liquidity t...
0e7507fac1649f8592dccf3459c40fbd422fc5f7
109734b597c2d760725a1a050174a5d11b3c1a9b
/man/plot.linnet.Rd
c6a0d550f5dc962512702f2660e7f4fee3c36868
[]
no_license
rubak/spatstat
c293e16b17cfeba3e1a24cd971b313c47ad89906
93e54a8fd8276c9a17123466638c271a8690d12c
refs/heads/master
2020-12-07T00:54:32.178710
2020-11-06T22:51:20
2020-11-06T22:51:20
44,497,738
2
0
null
2020-11-06T22:51:21
2015-10-18T21:40:26
R
UTF-8
R
false
false
1,236
rd
plot.linnet.Rd
\name{plot.linnet} \alias{plot.linnet} \title{ Plot a linear network } \description{ Plots a linear network } \usage{ \method{plot}{linnet}(x, ..., main=NULL, add=FALSE, vertices=FALSE, window=FALSE, do.plot=TRUE) } \arguments{ \item{x}{ Linear n...
aa1b6a095908c7209b742bd85720d055d4471bd3
02fa21dea9505bbec73eafc0b219466c2f97d4a8
/man/bootstrapml.Rd
124f0216c1f09d8d515f66cfe1c21aa52124e5fa
[ "MIT" ]
permissive
JonasMoss/univariateML
56bd6957bab05f71e2cb12fe8c5217b0378ad8fd
2ae9f2e9422c0268ae9a39f9d886d046c6c33824
refs/heads/master
2022-01-27T04:44:12.105751
2022-01-25T13:29:50
2022-01-25T13:29:50
200,917,156
8
6
NOASSERTION
2022-01-23T17:07:15
2019-08-06T20:06:58
R
UTF-8
R
false
true
2,934
rd
bootstrapml.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bootstrap.R \name{bootstrapml} \alias{bootstrapml} \title{Parametric Bootstrap on Distributions Fitted with Maximum Likelihood} \usage{ bootstrapml( object, reps = 1000, map = identity, reducer = stats::quantile, ... ) } \arguments{...
a143df62d7e3aff12f2bf59336aed46e38ffb0c1
c804ec169952554c879540d4241a4068443dd44d
/Rscripts/generate_figures.R
cf68a1265938bebcb29a350cabf7ae98f890ddc6
[]
no_license
akleinhesselink/indirect_effects
69b8060c0b4316259ebb1a24a41a0df9189902e9
2039fc96f5fc0b49d198c18c0693d006c01a721f
refs/heads/master
2019-01-21T17:22:32.749141
2015-08-26T22:20:13
2015-08-26T22:20:13
35,643,323
0
0
null
null
null
null
UTF-8
R
false
false
5,256
r
generate_figures.R
# Generate figures for main text # R-code supporting 'Indirect effects of environmental change in resource competition models' # Written on R version 3.2.1 (2015-06-18) # Author: Andrew R. Kleinhesselink # Contact: arklein@aggiemail.usu.edu # Requires loading the essential_resource_functions.R and the # substituta...
6c89cb2ccd919fcbf0f58309bd4703e8c458d56d
932dba523258a20ba386695ed34a6f91da4688c7
/man/tidy_counts.Rd
dc2d0ddd21ee7f301165fe1421f44f2709ce78b1
[]
no_license
trinker/termco
7f4859a548deb59a6dcaee64f76401e5ff616af7
aaa460e8a4739474f3f242c6b2a16ea99e1304f5
refs/heads/master
2022-01-18T23:43:46.230909
2022-01-05T19:06:43
2022-01-05T19:06:43
39,711,923
27
4
null
2018-02-02T05:57:38
2015-07-26T03:17:09
R
UTF-8
R
false
true
1,586
rd
tidy_counts.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tidy_counts.R \name{tidy_counts} \alias{tidy_counts} \title{Convert `term_count` & `token_count` to Tidy Form} \usage{ tidy_counts(x, ...) } \arguments{ \item{x}{A `term_count` object.} \item{\ldots}{ignored.} } \value{ Returns a tibble with...
6d5ffee5bf7ee6ad0a327ebe2b4dfc55e12b8f69
ddf3a62e275230dfc6930c6f11e8a825a6933e73
/Ejercicio 25.R
d76704a0ba2f27e55d833b6c85f9b16c64459030
[]
no_license
ErickRojas19/R-Ejercicio
5ba97db9ad772c51960012c13d9e65ba85017cf9
b3451dbe49c753389d85d3a24057c92f1533ae11
refs/heads/master
2020-07-27T13:22:07.364475
2019-10-31T19:56:55
2019-10-31T19:56:55
209,104,076
0
0
null
null
null
null
UTF-8
R
false
false
203
r
Ejercicio 25.R
a =as.integer(readline(prompt="Digite 4 digitos: ")) if (a>10000) { break } b = as.integer(a/1000) c = a-(b*1000) d=as.integer(c/100) e =c-(d*100) f = as.integer(e/10) g=e-(f*10) paste(g,f,d,b)
6f66bbf6d9a3eb6bc820b1381ecc8881a330adaa
f7d8d87f13420a57d9191eed1bd187f2673e5147
/man/outbreak_velocity.Rd
0255dd71eccd13a1aae26c204df609b369c1f7a9
[]
no_license
kathryntmorrison/outbreakvelocity
011f530af15aebe28b341ea073a4cb73449258df
3917615cef8d3b10c4ddfe32200eab34b9846bff
refs/heads/master
2021-01-17T12:36:08.269821
2017-07-28T03:55:28
2017-07-28T03:55:28
62,245,446
1
1
null
null
null
null
UTF-8
R
false
true
746
rd
outbreak_velocity.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outbreak_velocity.R \name{outbreak_velocity} \alias{outbreak_velocity} \title{The front-wave velocity} \usage{ outbreak_velocity(ds, max.order = 10, measure = "r2", manual.order = FALSE) } \arguments{ \item{ds}{Dataframe providing the date ...
f6242dcaa326a68b7d97e69d7a2cbf89b1d1e48d
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/BalancedSampling/examples/hlpm.Rd.R
1f5ffa21aa894b9cfd66562384e4c1192efe0832
[]
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
556
r
hlpm.Rd.R
library(BalancedSampling) ### Name: hlpm ### Title: Hierarchical local pivotal method ### Aliases: hlpm ### ** Examples ## Not run: ##D ############ ##D ## Example with two subsamples ##D ############ ##D ##D N = 100; # population size ##D X = cbind(runif(N),runif(N)); # auxiliary variables ##D n = 10; # size of ...
ae148656637fedfbe36623d6b82af6c63a57a23f
da725622bc962b639e1eb6df535b433e4366bcc5
/funding/ui.r
8c3d22d2f4ce840c51b793559f5663a48bf98d21
[]
no_license
bekahdevore/rKW
5649a24e803b88aa51a3e64020b232a23bd459fa
970dcf8dc93d4ec0e5e6a79552e27ddc0f850b91
refs/heads/master
2020-04-15T12:41:49.567456
2017-07-25T16:29:31
2017-07-25T16:29:31
63,880,311
0
1
null
null
null
null
UTF-8
R
false
false
723
r
ui.r
library(shiny) library(shinythemes) library(streamgraph) library(grid) library(gridBase) library(gridExtra) shinyUI(fluidPage( br(), h1("KentuckianaWorks"), theme = shinytheme("united"), # Show a plot of the generated distribution fluidRow( br(), br(), column(12, h3("Funding (in mi...
c3ce84938c3876bed922c59815cf6317dde28a2f
8731ee3a10374614cb3949a9c8edb8f2415788e5
/진보보수_ver12040932.R
b955b21243334d2e83bdab42bee23d7e39fdc49a
[]
no_license
iamhch24/R-Basics
c3c3a981faede712e04794b375a100d9f4e87b66
0eb1113fa7cd2cc3177f439e48310954c24a86c3
refs/heads/main
2023-02-05T14:52:43.131008
2020-12-30T05:18:31
2020-12-30T05:18:31
325,461,352
0
0
null
null
null
null
UTF-8
R
false
false
4,319
r
진보보수_ver12040932.R
library(dplyr) library(ggplot2) # 1. data 수정 data = read.csv("진보보수_기본데이터.csv") data table(is.na(data)) # na 값 확인 # 각 채널의 연령대별 구독자수(명)를 구하고 새 칼럼에 할당하는 과정 data2 = data data2$age_13_17 = data2$total * data2$a_13_17 data2$age_18_24 = data2$total * data2$a_18_24 data2$age_25_34 = data2$total * data2$a_25_34...
e62b9fea393ddc64ea04e040a989bf1dc409219d
2af28e8d57448daa6b4207ba212963a9b2264f8f
/funcoes_v2.R
f0b8c2bad1e98c7983dc5a2cf88c65da6bb0f512
[]
no_license
viniciuskm/Financial_Series
1fac2c1f8d954c07076c263ad7f8ccad2ecccd7f
f1e9e8c64117d0e25041551b64ce8bfed0647584
refs/heads/main
2023-01-21T13:03:23.993399
2020-11-28T11:37:40
2020-11-28T11:37:40
315,301,653
0
1
null
2020-11-26T01:00:09
2020-11-23T12:01:54
HTML
UTF-8
R
false
false
2,920
r
funcoes_v2.R
library(quantmod) importa_retorno <- function(nome){ # COletanto os Bitcoins preco <- getSymbols(nome, auto.assign = F,) # Coletando somente o pre?o adjustado preco_adj <- preco[,ncol(preco)] # preco_adj %>% plot() # Removendo NAs preco_adj <- preco_adj %>% na.locf() # Calculando o log do reto...
bc75c496bfbc15e0ac991c19109dc92adba14f6a
a4bd05fdf74fa9a6172d5902f588b643a75d33c9
/Inference/VI/Berlin/1.preprocessing-berlin.R
d5547d288774d629aca57f8cc33c93785b280610
[]
no_license
Fanfanyang/Projects
53abfd6ee02105aa5cc1b9d04a21a7fcba783375
615c3ca5e751fa699a710a5ec91e743b090d401f
refs/heads/master
2020-03-28T09:50:35.763635
2018-10-29T02:23:05
2018-10-29T02:23:05
148,063,753
1
0
null
null
null
null
UTF-8
R
false
false
3,987
r
1.preprocessing-berlin.R
load("~/Google Drive/Online/Lab/@multi-agent simulation/update/benchmark with berlin dataset/obs.matrix.RData") load("~/Google Drive/Online/Lab/@multi-agent simulation/update/benchmark with berlin dataset/person.state.d.RData") n.row=nrow(person.state.d) n.col=ncol(person.state.d) locations=sort(unique(as.vector(perso...
83daf34c1a1ccff0b0f4b46b0a3dec6262e537c5
6849478a9c7de705de7dc23ded3bc8828b9ade37
/app/server.R
1af2ac07d9f76405bb73b51edc318bc631515f4b
[]
no_license
sunandagarg/shiny_traffic_app
578307112568fcd1c5015203ea91054c17369448
b52d4b653925eb9c86acdd2fa134f28520dbffd6
refs/heads/master
2020-04-06T06:55:50.798594
2014-07-08T10:50:01
2014-07-08T10:50:01
null
0
0
null
null
null
null
UTF-8
R
false
false
1,738
r
server.R
## @knitr server.R ## server.R require(rCharts) require(dplyr) ########Server Code shinyServer(function(input, output) { # Generating the dropdows ------------------------------------------------- ##creating the dynamic dropdown for sites based on selected network output$sitecontrol <- rende...
40305b23a0e086ba56720c4ac7fee069960a9511
740ca7f39bba1f2471efdd816319198c600a9cbd
/man/call_hs_hmrc_ots_with_key_word_search.Rd
199ac3a4607df7e5468c091789708db87b698eb3
[]
no_license
FruzsiG/hmrcwrappER
f4e4492d2ffc189c2e16a6df70d4a52e68ce4ef4
6e7e9e08440680021da6acc76469349882ee2a99
refs/heads/main
2023-06-27T00:21:58.365157
2021-08-05T14:12:43
2021-08-05T14:12:43
318,568,719
0
0
null
null
null
null
UTF-8
R
false
true
1,642
rd
call_hs_hmrc_ots_with_key_word_search.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HMRC_API.R \name{call_hs_hmrc_ots_with_key_word_search} \alias{call_hs_hmrc_ots_with_key_word_search} \title{HMRC OTS query base on key word and HS} \usage{ call_hs_hmrc_ots_with_key_word_search( time_window = NULL, key_word = NULL, fil...
2da1cfae6d9f40b4f456d727d904c26881a0bd91
be99370107699d2d02a39ccc4e79523241925ebc
/Asinara_marzo_R_code.r
c0b6bed12eda7503ccacbc4e169a1a573f08423e
[]
no_license
FedericoTossani/Asinara
186a95d695fafce0e65b6238dbee7e84088f879f
38ea413fbdcfd795c355e7f8ad592c223fd2abd5
refs/heads/main
2023-06-12T10:28:01.125445
2021-07-05T06:56:52
2021-07-05T06:56:52
374,436,760
0
1
null
null
null
null
UTF-8
R
false
false
5,515
r
Asinara_marzo_R_code.r
require(raster) require(rgdal) require(RStoolbox) require(rasterdiv) require(rasterVis) require(ggplot2) require(gridExtra) require(viridis) require(purrr) setwd("/Users/federicotossani/Asinara/L_image_mar") source("/Users/federicotossani/Asinara/spectralrao.r") ### Import p87<-raster("Asi_p193r32_1987.grd") p88<-ras...
99f9b30ea9694d0701038f7013e10f3c867ecb8b
7fc48750caa47f04beb0c6a76d750d497c95aa51
/man/getNodeData.Rd
37aac3e876c3a2800b93bb80c83eeda5862ae6f0
[]
no_license
anna-neufeld/splinetree
bc614ef797de03285ba9059406a441b4d66e1e39
352a5bc29e04ecc12f7c0499830d77004ddabd88
refs/heads/master
2020-03-24T11:34:04.509134
2019-08-26T18:38:00
2019-08-26T18:38:00
142,689,128
4
0
null
null
null
null
UTF-8
R
false
true
1,544
rd
getNodeData.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_useful_fns.R \name{getNodeData} \alias{getNodeData} \title{Retrieve the subset of the data found at a given terminal node} \usage{ getNodeData(tree, node, dataType = "all") } \arguments{ \item{tree}{a model returned from splineTree()} ...
5b565de20cd57da8b236e1765ff499fb6ff50207
d24d4310a57b8c188bbc24348dc1469699a76a61
/oilwine/modal_summary_tab.R
307047a29565ad1b87cd557e27cc6e1be2656338
[]
no_license
jan2nov/oxrep
6932d31f20add8d5b1b381b6a471016f47e51448
b541b30094d7af4318ff2cfcfdb3b03019b12e96
refs/heads/master
2020-03-23T19:39:04.843265
2018-08-05T18:32:57
2018-08-05T18:32:57
141,993,141
0
0
null
null
null
null
UTF-8
R
false
false
4,833
r
modal_summary_tab.R
info_reference <- function(data) { data_return <- paste0(data$author,". ",data$year,". \"",data$title,"\"") %>% as.data.frame(stringsAsFactors=FALSE) row_na <- which(!is.na(data$journal)) data_return[row_na,] <- str_c(data_return[row_na,],paste("",data[row_na,]$journal)) row_na <- which(!is.na(data$issue)) da...
63644396a730f757ba9caa936b4ebf75b5c4d7e2
eb9e60d992409a096fb40a01812331942b603f91
/man/sparseBC-package.Rd
195211d6467e216b4dc1f5e98acec295ddcf67ab
[]
no_license
cran/sparseBC
617a7fb7be6c27a3024e0f408f62927c76213a0b
423615956acb9d8516fbd6d986eeb98ab464c1f7
refs/heads/master
2020-05-29T21:28:45.062936
2019-03-19T04:40:05
2019-03-19T04:40:05
17,699,851
0
0
null
null
null
null
UTF-8
R
false
false
2,969
rd
sparseBC-package.Rd
\name{sparseBC-package} \alias{sparseBC-package} \docType{package} \title{ Fit sparse biclustering and matrix-variate normal biclustering } \description{ This package is called sparseBC, for "Sparse biclustering". It implements two methods:Sparse biclustering and matrix-variate normal biclustering. All are described ...
103dbb532ad4f82aff730142a02ab4dbcb1e3453
41499d1033c02c113ffb5b22e9f7f9d39d085f02
/CallOfData_EdithClarke/Jose/Jose.R
a6c384b428f521eedf09f27ada49b77558fe4fb5
[ "MIT" ]
permissive
rladies/CallOfData_Madrid_2017
3ed78ee0abc0bfdebe6283160cec9566f08ceb91
467684060d182c926465eee24622554a18e03df4
refs/heads/master
2021-01-25T06:44:54.890199
2017-06-15T11:17:25
2017-06-15T11:17:25
93,601,373
2
2
null
null
null
null
UTF-8
R
false
false
4,883
r
Jose.R
library(data.table) oda_per_capita <- data.table::fread("~/call-of-data_2017/data/Banco Mundial/ODA recibida per Capita.csv") View(oda_per_capita) for(cpo in as.character(1960:2015)) { print(cpo) # set(oda_per_capita, j=cpo, value=as.numeric(oda_per_capita[,(cpo), with=FALSE])) } oda_per_capita$"1960" <- as.numeri...
2951e884fe49611d83579186bbc16dfc9b5dd985
502d6b35f42b36119d8c23c05ced2b7abbdd91bd
/run_analysis.R
30b2c54c0631b68f2554666bb3aa2fb7174548cf
[]
no_license
and-ber/GetData_CourseProject
49edb3761918f6794a5789247ce4d244a6af9a3f
ad6fc8ec8a733b6b7f34f7c689f0fef943e439d8
refs/heads/master
2021-01-22T11:41:16.987522
2015-02-10T01:08:17
2015-02-10T01:08:17
30,563,760
0
0
null
null
null
null
UTF-8
R
false
false
3,003
r
run_analysis.R
## The following code loads the data "Human Activity Recognition Using Smartphones Dataset, Version 1.0" ## and does the following: ## 1. Merges the training and the test sets to create one data set ## 2. Assign descriptive activity names to name the activities in the data set, as per file "activity_labels.txt" ## 3. E...
b3bb58bfc529a5134a6e7810d56599f823e075f1
4d9b883d69da5b37f3787ccdff2caa0d3246eef3
/Biochips/Biochips.r
cd50411ca01ac40722e71414792e853846e9699e
[]
no_license
maxkuan/Johnson
41431f5648a220fdad7a6ee1a69c54a16766a830
08f79e2874709dc1b8740734800464835d9bdcb8
refs/heads/master
2020-05-23T21:41:12.923558
2019-12-17T11:45:19
2019-12-17T11:45:19
186,958,535
0
0
null
null
null
null
UTF-8
R
false
false
7,143
r
Biochips.r
#Distance between two sets. #Version:0.1.2 #Last Update:6/26/2019 # # #Packages required: igraph. # #Initialization steps in R: #1. library("igraph") #2. source(file = file.choose()) (e.g. Biochips.r) #3. select pajek network file (e.g. Biochips_Cited_Citing.net) #4. select assignee file (e.g. Biochips_Assignee_Pajek....
221dc78e8e6873389af2350e1c8ee3a2bed18746
598dc3632b10f2a6e3ad3b8d9bc17126cc985757
/man-roxygen/args-data_common.R
804ba5bf40936056b7d490bc061f2741fe6cf89a
[]
no_license
sunfeng98/multinma
7c5e7b701da8bc6ee518ac684fd6e5f2a01775a8
aa6c6e6a12ae1081ffe038410960655d9b765ed5
refs/heads/master
2021-03-23T13:59:02.426405
2019-10-24T14:48:49
2019-10-24T14:48:49
null
0
0
null
null
null
null
UTF-8
R
false
false
463
r
args-data_common.R
#' @param data a data frame #' @param trt column of `data` specifying treatments, coded using integers, #' strings, or factors #' @param trt_ref reference treatment for the network, as a single integer, #' string, or factor. By default takes the first treatment in a "natural" sort #' order. #' @param study column...
c8b722bd40e6242750a047c2fb1fe0b3c1408aff
5b722119d1b1ca9df17a2914a4db2d35f73b5490
/Scripts/environmental_policy/Water-Data-Downloader/gwl_analysis.R
6e39711e7d94f7343cdf4603370cd0c7f08794f8
[ "CC-BY-4.0" ]
permissive
vishalbelsare/Public_Policy
1d459eba9009e7183fa266d3bb9d4dd0d6dacddc
4f57140f85855859ff2e49992f4b7673f1b72857
refs/heads/master
2023-03-29T05:01:10.846030
2021-01-13T21:52:45
2021-01-13T21:52:45
311,356,474
0
0
NOASSERTION
2021-04-04T20:12:17
2020-11-09T14:00:21
null
UTF-8
R
false
false
6,760
r
gwl_analysis.R
library("ggplot2", lib.loc = "/Users/user/Documents/R-packages") library("reshape2", lib.loc = "/Users/user/Documents/R-packages") library("plyr", lib.loc = "/Users/user/Documents/R-packages") library("dplyr", lib.loc = "/Users/user/Documents/R-packages") library("stringr", lib.loc = "/Users/user/Documents/R-packages")...
edb7e6444a291cd71ab1ce2cfc398558e0050071
e13f912dedfcb12756b517a27f566c7b537140ef
/02_ukb/src/03_univariate_analyses/01_hippocampus_gamm/render.R
07f0acfe33e14ca877aed4576cc770878b74bdca
[ "MIT" ]
permissive
Lifebrain/p025_education_brain
db3901ea3d21059a39d81e2f3b764fb19e0e0e92
507cca3514b8ddbf65df7a047dba5bae1295badf
refs/heads/main
2023-07-03T02:06:12.532051
2021-08-03T10:24:29
2021-08-03T10:24:29
323,602,627
0
0
MIT
2020-12-22T12:29:25
2020-12-22T11:09:50
Jupyter Notebook
UTF-8
R
false
false
139
r
render.R
library(rmarkdown) render("UKB_hippo_analyses_GAMM.Rmd","pdf_document") render("UKB_hippo_analyses_GAMM.Rmd","rmarkdown::github_document")
b7cddc1abc49e7bca1fdeff6bf19a918ac434288
36fc4a86af475ce6d33c2aa63afbf23addae3996
/lasso_subtype_coad.R
954a14b4455f296df3dc86d20cc81eedca729d4d
[ "BSD-3-Clause" ]
permissive
jaclyn-taroni/TDMresults
5501b70d99261c4f457d32f6df5b42755460e7c6
1415856a19bf47e6b9e4edb169028b6228ba4b91
refs/heads/master
2021-01-13T06:25:32.981547
2016-05-26T18:42:33
2016-05-26T18:42:33
59,760,406
0
0
null
2016-05-26T15:13:31
2016-05-26T15:13:31
null
UTF-8
R
false
false
14,723
r
lasso_subtype_coad.R
# Author: Jeffrey Thompson # Purpose: Performs multiclass lasso logistic regression to classify cancer subtypes. # Get command line arguments. #args = commandArgs(trailingOnly = T) source("package_loader.R") NFOLDS = 100 NSEEDS = 10 INITIAL_SEED = 2 ACCURACY_PLOT_FILENAME = "coadread_accuracies.pdf" KAPPA_PLOT_FILE...
33fc3301f1faeea2c4c6060051144f13d47d4626
1f1440e7130ef24625b1538b761d468d7fe3cc70
/cachematrix.R
c1858aa433509784165655b147e2ac8b57b4b38d
[]
no_license
efcjunior/ProgrammingAssignment2
f10b4040f4a1539a6716911b0d7cab6fc9bc6492
20077aaca80c50bfcf041ef4b7aae5654157aeb2
refs/heads/master
2021-01-18T12:49:56.898813
2016-09-12T02:17:10
2016-09-12T02:17:10
67,937,584
0
0
null
2016-09-11T15:27:17
2016-09-11T15:27:16
null
UTF-8
R
false
false
1,556
r
cachematrix.R
## These functions calculate the inverse of a matrix and cache the inverse. ## Once the matrix inverse is computed (by calling the "cacheSolve" function), ## the value of the inverse is cached until the values in the matrix are changed. ## makeCacheMatrix creates a special "matrix", which is really a list containing ...
55200cce06d3893bd3e2cfc5516413ea5045a8d8
5c83a208cb5c9a7a7826a77639c36c591879bc9c
/pomegranate_cytospora.R
e25e6b083cbed13c04464e9f3ba34560099bd406
[]
no_license
robchoudhury/pomegranate_cytospora
3dfce3f56fdbb557f903f249823e7105d8d12dc2
baca251af17925ec35ec68596f53b8645d46720f
refs/heads/master
2020-03-27T09:16:11.534991
2018-08-27T17:05:05
2018-08-27T17:05:05
146,326,473
0
0
null
null
null
null
UTF-8
R
false
false
1,416
r
pomegranate_cytospora.R
library(tidyverse) conidia<-read_csv("data/conidia.csv") %>% drop_na(isolate) %>% mutate(lw_ratio=length/width) %>% mutate(isolate=as.factor(isolate)) culture_rate<- read_csv("data/culture_rate.csv") %>% mutate(rate=size/days)%>% mutate(isolate=as.factor(isolate)) pycnidia<- read_csv("data/pycnidia.cs...
0343c3daf735c41e58d5fa85425bdd2162ea0bea
7356b450592781768672f02984072349e6d2fb0e
/project/human-RBP-analysis/find_binding_sites.R
7b623ce83e2a50f20146ac10a188a9a29fdb5691
[]
no_license
bpickett/covid-gene-expression
be330d256a90126e7086595cd6154586f8d47cb0
e6934d00c98c303d5fe39bdf8bb60c7712a0562b
refs/heads/master
2021-05-26T18:00:20.918924
2020-04-07T17:07:20
2020-04-07T17:07:20
null
0
0
null
null
null
null
UTF-8
R
false
false
4,093
r
find_binding_sites.R
############################################## ### Modify this section for your local environment!!### # Set working directory setwd("~/ngc-workspaces/mnt-covid-omics/") # List input data files ## RBPDB exp_table = "rbpdb/RBPDB_v1.3.1_experiments_human_2012-11-21.tdt" protexp_table = "rbpdb/RBPDB_v1.3.1_protExp_hu...
c2fe166498583144162ed97200de755519aa033d
ab9315145932e1d0edcb1b52df1cc3ed078a317c
/scratch_work/master.r
b4e86d9fc09bcc6b15fdcf57783b0ec26252798f
[]
no_license
johnchower/flashreport
cfcbefc1afe5d77da6857ae21323d48ed3a6db96
c23dca38331dc9632c251983a2db59cf95dae664
refs/heads/master
2020-07-28T12:31:42.252620
2017-05-03T16:39:10
2017-05-03T16:39:10
73,411,648
0
0
null
2017-05-03T20:53:11
2016-11-10T18:54:18
R
UTF-8
R
false
false
5,903
r
master.r
library(RPostgreSQL) # Parse arguments optionList <- list( optparse::make_option( opt_str = '--host' , type = 'character' , default = 'localhost' , help = 'Hostname for database connection' ) , optparse::make_option( opt_str = '--port' , type = 'character' , de...
83588147c4f3b09800a6bd3dfe1ea9e7066dc62c
10e2f579a7e84ef8f7186265fb1fc12c9db62bde
/R/kml.R
c2995ae96a7359c83cdea4ed74f8a2ef69e8d159
[]
no_license
cran/plotKML
bddd88464e2fa5b0c981086a4f8a33a4fdbeac37
068aaaf06a1976d202222142a95f2e951da0f604
refs/heads/master
2022-06-30T19:58:42.092133
2022-06-07T13:00:02
2022-06-07T13:00:02
17,698,575
8
8
null
null
null
null
UTF-8
R
false
false
735
r
kml.R
kml.Spatial <- function( obj, folder.name = normalizeFilename(deparse(substitute(obj, env=parent.frame()))), file.name = paste(normalizeFilename(deparse(substitute(obj, env=parent.frame()))), ".kml", sep=""), kmz = get("kmz", envir = plotKML.opts), ... ){ kml_open(folder.name = folder.name, file....
38ca587c62248a8741499f643bba238f3cb27e21
c996829410125ef1f9e5193b0e98ef765661b57a
/tests/testthat/test-morphology.R
7df22899f4c5cab5132c9a064910f98bfe366a9c
[ "MIT" ]
permissive
heavywatal/rtumopp
9602096728611b75013f3bb936969edf3316ac92
f3008188d41674967a573bdf987067aba536ebbb
refs/heads/master
2023-07-08T19:35:07.951377
2023-07-06T14:53:08
2023-07-06T14:53:40
54,698,944
2
1
null
null
null
null
UTF-8
R
false
false
6,395
r
test-morphology.R
test_that("add_surface works", { result = tumopp("-D3 -Chex -N256 -Llinear") surface_df = result$population[[1L]] |> filter_extant() |> add_surface(result$coord, result$dimensions) surface_df |> dplyr::count(surface) |> dplyr::pull(n) |> expect_length(2L) }) test_that("add_phi works", { res...
ec06eb01665c4b076664edaa66bf1dcfe6822784
22ad2af5206643829c70b65a63b331891ed5af8a
/2019_Nature_Communications_Chloropicon_primus/Synteny/vsCHROMOSOMES/R/OLUCIvsMCOMMODA.matrix.R
aeb22180c13811bf98af34c68c0231fd914ae8be
[ "MIT" ]
permissive
PombertLab/Publication_scripts
ef93c8ede6be8ab3d57313ae65eca57478227a1b
0cc4c36a5522525e4a9c7853a755e09af1c3b491
refs/heads/master
2023-06-22T11:13:38.866526
2023-06-14T15:02:45
2023-06-14T15:02:45
56,014,929
3
3
null
null
null
null
UTF-8
R
false
false
1,008
r
OLUCIvsMCOMMODA.matrix.R
#!/usr/bin/Rscript library(ComplexHeatmap) library(RColorBrewer) library(methods) message ("Plotting OLUCIvsMCOMMODA.matrix...") colors <- colorRampPalette(c("white", "blue", "magenta"))(n = 300) ht_global_opt(heatmap_row_names_gp = gpar(fontsize = 8, fontface = "italic"), heatmap_column_names_gp = gpar(fontsize = 8), ...
4ee244003d2ce70cc17f38a3b6e73a7bff485ac7
b4d3e44e7da647defaf290cc219a0011e9bab5f9
/R/compare_apsim_met.R
4f2cf6ec0a6749c9ded90103090b453a74b897f9
[]
no_license
femiguez/apsimx
81313570fbbbb915ba1519ad0cd95ac0d38dc4df
7df3b0a34d273e8035dbe22d457ed3911d07d7bc
refs/heads/master
2023-08-10T13:49:57.777487
2023-05-22T14:53:51
2023-05-22T14:53:51
194,395,452
34
21
null
2023-07-28T15:27:39
2019-06-29T10:54:27
R
UTF-8
R
false
false
28,896
r
compare_apsim_met.R
#' #' @title Compare two or more metfiles #' @name compare_apsim_met #' @rdname compare_apsim_met #' @description Helper function which allows for a simple comparison among \sQuote{met} objects #' @param ... met file objects. Should be of class \sQuote{met} #' @param met.var meteorological variable to use in the compa...
749b63c335202cef01338f85538cab6112a99fcb
ac24b52eeb09b6097e1f1674d1d2f8215f4f82de
/complete01.R
a893325f8f7882b62eb539ff566827db47eb3f28
[]
no_license
politov01/R-examples
d0a31370fb17567dea95d11e5c3ae47bb61da301
e84ade3d43b2e251aa94fe374562ecf86fc747f2
refs/heads/master
2021-01-19T06:48:12.973809
2016-06-24T03:12:11
2016-06-24T03:12:11
61,855,584
0
0
null
null
null
null
UTF-8
R
false
false
1,192
r
complete01.R
complete <- function (directory ="specdata", id = 1:332) { files <- list.files(directory, full.names = 1) #complete_files <- data.frame(id=integer(), nobs=integer()) complete_files <- data.frame(id=NA, nobs=NA) complete_files # id nobs #1 NA NA #for(i in id) { for(i in 1:length(id)) { #complete_files[i, 1] ...
38424d3467f4810903bf5a8f3130761ee0b4dd88
be595da8174d9d8248a43a5e9cdb0b0e835abf01
/src/regression.R
066272967c2c1297d374812570935adf93795ca5
[]
no_license
garlandxie/env_filt_bees
e209bd62871b379684cd843680c696a20d0bf416
da0c3d3e1e2d95db63e3a7b2e5b8501b86b26a16
refs/heads/master
2020-09-26T05:01:10.469863
2020-01-19T19:42:22
2020-01-19T19:42:22
226,171,575
0
0
null
null
null
null
UTF-8
R
false
false
6,742
r
regression.R
# calculating regression models ------------------------------------------------ # author(s): Nicholas Sookhan, Garland Xie # libraries -------------------------------------------------------------------- library(here) # for creating relative file-paths library(dplyr) # for manipulating data library(readr) # fo...
821bde628ec605319965fcaaafe25d196088c107
f4d569066b9766dbf0c59215d616891796653819
/tests/testthat/test-exported-funs.R
316b1b4ea4850e60ddbe2cb307e3501c14276574
[]
no_license
kesimmons/panelPomp
2edef54c2f1a1336bd216041c8dc0d67585633d0
4409ac6c1d518ee2dc14dd30583f8e7b6f4c2165
refs/heads/master
2020-07-03T14:20:20.934581
2016-09-30T16:10:11
2016-09-30T16:10:11
null
0
0
null
null
null
null
UTF-8
R
false
false
1,527
r
test-exported-funs.R
library(panelPomp) context("For now, the context is the name of the function being tested (along with the file it is in)") test_that("functionality X is being implemented as intended", { # When "functionality X is being implemented as intended," then one should ... expect_equal( object = 10, expected = 1...
aec9cac4fdfa078fe708cf38fbcb79bf37dff593
738fbf8ed6e37e7b9b4df850afcba2879715533c
/blackFriday.R
df0a1855d0e083dc868170f1450af6d0b346c9fb
[]
no_license
VIgneshGV91/Black-Friday-sales-Consumer-Behavior-Analysis
c683aee434ce54fffa16154eaee4c8ab484b3d00
62e03d1514057891fd423f187ff997802e8dba28
refs/heads/master
2020-08-07T19:37:41.569147
2019-10-08T06:42:37
2019-10-08T06:42:37
213,566,982
0
1
null
null
null
null
UTF-8
R
false
false
10,342
r
blackFriday.R
setwd("C:/Vignesh/Studies/Fall 2018/Adv Stats IDS 575/Project/Black Friday") BlackFriday <- read.csv(file="BlackFriday.csv", header=TRUE, sep=",") # lets see the structure of dataset str(BlackFriday) nrow(BlackFriday) ncol(BlackFriday) # check the missing values sapply(BlackFriday, function(x) sum(is.na(x))) # check ...
d5f35bd2127f01eee3ff178a6689c34a2c2a446f
a4d25f8c1ed20ca09eb11a819992786cf032f063
/library/ssc/function/coBC.R
8ffdd526f212f3bcf7ef4a0eb231dd1a91ce7a98
[]
no_license
delta0726/r-semi_supervised
93b5290ad9b3785457cd339a6f28c96e910131f0
cd33c812bd4ea285871007d97be31fce5de5ac04
refs/heads/master
2023-02-26T02:01:36.769807
2021-02-04T14:40:19
2021-02-04T14:40:19
335,382,053
0
0
null
null
null
null
UTF-8
R
false
false
404
r
coBC.R
# ********************************************************************************************* # Title : 共訓練モデルのインターフェース # Function : coBCG # Created by: Owner # Created on: 2021/01/26 # URL : https://www.rdocumentation.org/packages/ssc/versions/2.1-0/topics/coBCG # *****************************************...
b8c6f67eead231b78f6c849df427524b6a07c9da
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/LPM/examples/milano.Rd.R
fab841b8fb7afa8528143a3de7b38bb187e9ed2e
[]
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
233
r
milano.Rd.R
library(LPM) ### Name: milano ### Title: Maximum annual rainfall series for different durations ### Aliases: milano ### Keywords: datasets ### ** Examples data(milano) ## maybe str(series.rainfall) ; plot(series.rainfall) ...
75827581007b94c3bf564b5f4ec83c28026a0b22
262b88394d6cfdaafeb40242a1467bd41f9d4fb6
/2021/descriptive statistics.r
04b09ec73617267d7b4823d18b7d99e516131e92
[]
no_license
nabilased/Lecture
a71d8bcd3c34e2108fc1508e2c0c4d2d22e14f2b
f27b737a9b92d21007010955461eea59d17d2968
refs/heads/master
2023-04-08T20:18:04.353757
2021-04-14T04:05:37
2021-04-14T04:05:37
null
0
0
null
null
null
null
UTF-8
R
false
false
587
r
descriptive statistics.r
data <-read.csv("table2.csv") head(data) #Mean result.mean <-mean(data$wage) print(result.mean) #Median result.median <-median(data$wage) print(result.median) #Percentiles result.quantile<-quantile(data$wage) print(result.quantile) #Minimum result.min <-min(data$wage) print(result.min) #Maximum ...
a135c7ab814ef3bd4bb0bc6fce72069c4bde72b1
f8ad4483b3f35fd6183f61bdc871ea8b707c71a3
/motivatedarrows/R/compile.R
2dd66cadb34ae09c54ecf6f77bd84e01c0a8185b
[]
no_license
lupyanlab/motivated-arrows
b954ab357630357c368a1403a8d556ada3a74aa4
b55e292cc341395296b2ffcfd98cc42b70313432
refs/heads/master
2021-01-10T07:42:47.995877
2016-04-03T22:42:04
2016-04-03T22:42:04
45,709,148
0
0
null
null
null
null
UTF-8
R
false
false
407
r
compile.R
#' Load the comma-separated data files in a directory. #' #' @param data_dir The directory of the data files, passed to `file.path`. #' @param regex_key Pattern passed to `list.files`. Matches are loaded. #' @return dplyr::data_frame #' @export compile <- function(data_dir, regex_key = "*") { data_files <- list.file...
fabad0984c6db89b490dd06911b21f5c26caff40
88ae470c5142eb53aeb0226eaeed5f72f7b76c23
/man/View.Rd
c4ae918e1e06b6c94591a8b63563f4fd410e1bb3
[]
no_license
Tim-Holzapfel/enhancedView
516a19adf122108819c74adb5d8aafc55d05418a
9fb6852664003b916ad7da101944ce45b89f6ad8
refs/heads/master
2023-07-31T21:41:26.527085
2021-09-11T23:14:56
2021-09-11T23:14:56
282,852,271
1
0
null
null
null
null
UTF-8
R
false
true
888
rd
View.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/View.R \name{View} \alias{View} \title{Enhanced Data Viewer} \usage{ View( file, pageLength = getOption("enhancedView.pageLength", default = 200), default_view = getOption("enhancedView.default_view", default = FALSE), theme = getOpti...
bf0c3f91a96566dc709b662b2b36a6fb0298f589
7959c075b8d8fd90c423863d6cc51cb29ea517c5
/lab_05.R
031521f22dfe15860ab1a42114497967727becfe
[]
no_license
salientsoph/Rexam
d8373e7bbfc85fc38cc203add6572574b88c7926
0d0b9cb7fc378654c886ca70ba56498770e8b4a8
refs/heads/master
2022-12-24T06:02:13.720153
2020-09-25T14:18:31
2020-09-25T14:18:31
293,553,326
0
0
null
null
null
null
UTF-8
R
false
false
1,733
r
lab_05.R
# 문제1 grade <- sample(1:6, 1) if(grade == 1 | grade == 2 | grade ==3){ cat(grade, "학년은 저학년 입니다") }else{ cat(grade, "학년은 고학년 입니다") } # grade <- sample(1:6, 1) # if(grade >= 1 & grade <= 3){ # if(grade >= 1 && grade <= 3) 위와 동일 # cat(grade, "학년은 저학년 입니다") #}else{ # cat(grade, "학년은 고학년 입니다") #} # 문제2 choice <-...
7870e96270bb89e1789d234431971fc9a637bdd4
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/renpow/examples/data.test100.Rd.R
1cb8725d912c15f5a3c1bfc61887d1199b266b37
[]
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
174
r
data.test100.Rd.R
library(renpow) ### Name: test100 ### Title: Dataset: simple example for 100 data points ### Aliases: test100 ### Keywords: datasets ### ** Examples x100 <- test100$x
fb58c53d41fd2ecd148dfa87c38b3eb9ca7bbf46
b05ff0cb36e1be4f7808b956a0743acc9e0a5d93
/R/presence_absence_boxplots.R
73f806d691bca0e427c155a2e1bd061039c1cf4a
[ "CC0-1.0" ]
permissive
dongmeic/climate-space
b649a7a8e6b8d76048418c6d37f0b1dd50512be7
7e800974e92533d3818967b6281bc7f0e10c3264
refs/heads/master
2021-01-20T02:13:12.143683
2020-04-03T16:47:56
2020-04-03T16:47:56
89,385,878
0
0
null
2020-04-03T16:47:57
2017-04-25T17:01:45
Jupyter Notebook
UTF-8
R
false
false
2,132
r
presence_absence_boxplots.R
# boxplot for host and beetle presence and absence library(ggplot2) library(grid) source("/gpfs/projects/gavingrp/dongmeic/climate-space/R/combine_CRU_Daymet.R") out <- "/gpfs/projects/gavingrp/dongmeic/beetle/output/plots/" setwd(out) indata <- get_data() indata$hosts <- ifelse(indata$beetles==1 & indata$hosts==0, 1, ...
d790173bfa2179ff34e6dce4b7169d9144e76eda
6e9698f08f1a67f3c18937df62885c083025f71a
/run_analysis.R
6e8e249f70fc41093e982037dd5c113eedb6a92d
[]
no_license
chdean/getting-cleaning-data-project
5420d3e9281aff387b9b9477c3d93dc2276de857
ae8abce6b3c63bc68115395409f762fdd6d31e05
refs/heads/master
2021-01-10T13:32:40.112987
2016-04-10T22:50:42
2016-04-10T22:50:42
55,926,362
0
0
null
null
null
null
UTF-8
R
false
false
2,206
r
run_analysis.R
## 1. Merges the training and the test sets to create one data set. ## 2. Extracts only the measurements on the mean and standard ## deviation for each measurement. ## 3. Uses descriptive activity names to name the activities in the ## data set ## 4. Appropriately labels the data set with descriptive variable ## nam...
2d47f29b7b2ccb2ad4c233dfcf1f42bdfcc9ce27
02a9b547caaf419f5163bd6e4421905f28080b79
/applyfunctions.R
d371cf2bddc311e8d873224e82de259cd59812d4
[]
no_license
nunsuch123/RProgramming
b05baeee5059f591bbb0431975f53416698fc991
bff4e74220b6fc086c231658d7a65a82256e49ff
refs/heads/master
2020-05-16T01:37:16.286807
2019-05-10T17:01:29
2019-05-10T17:01:29
29,223,897
0
0
null
null
null
null
UTF-8
R
false
false
276
r
applyfunctions.R
s <- split(iris, iris$Species) lapply(s, function(x) colMeans(x[, c("Sepal.Length","Sepal.Width")])) s <- split(airquality, airquality$Month) sapply(s, function(x) colMeans(x[, c("Ozone", "Solar.R", "Wind")])) apply(iris[1:4], 2, mean) with(mtcars, tapply(mpg, cyl, mean))
016a39a1dcc226488deaccf712eac9db1dd9f161
396df2552224ffcb0294fe6e297b231aa2e59e68
/_working/0143.wvs.R
e6a6c368887bc2004299be1059e021b343075ee9
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
ellisp/blog-source
d072bed980a5074d6c7fac03be3635f70ab5f098
1227f83df23af06da5280214ac7f2e0182be5707
refs/heads/master
2023-09-05T07:04:53.114901
2023-08-27T21:27:55
2023-08-27T21:27:55
122,695,494
17
8
null
2023-08-27T21:15:33
2018-02-24T02:36:45
HTML
UTF-8
R
false
false
12,206
r
0143.wvs.R
library(tidyverse) library(frs) library(data.table) library(odbc) library(viridis) library(ggthemes) library(scales) # correct citation must be used WV6_Data_R_v20180912; . # http://www.worldvaluessurvey.org/WVSDocumentationWV6.jsp wvs <- readRDS("../data/F00007762-WV6_Data_R_v20180912.Rds") # label code from Dav...
f7360825f8f78e9dfe95afb71e66876b15c7bc50
0e51a3076da4e856590c7bde1d3604b519ee1f99
/cachematrix.R
f2f8e8c327ceb5da6371ea46fd9781e746d987cc
[]
no_license
Brennui/ProgrammingAssignment2
31bc3ca414222f544fe630b83d6c11f6e0190d06
7abb5cc0979b422eefb3f57bbbff27586c6ec64f
refs/heads/master
2020-12-26T00:51:35.229574
2015-11-23T01:03:12
2015-11-23T01:03:12
46,646,988
0
0
null
2015-11-22T04:55:52
2015-11-22T04:55:51
null
UTF-8
R
false
false
1,665
r
cachematrix.R
## A matrix may be input into the makeCacheMatrix function, ## Within it are functions that are used to manipulate the matrix ## cacheSolve takes in the makeCacheMatrix (with a inputted matrix) ## It solves for the inverse of the matrix ## makeCacheMatrix takes a matrix as an input. The functions ## within it can load...
0f1f6fbd1bcc0e0d334b55d8664dad0f478147ce
d44475655dbe61df07aca3c6417d53b88f84ee52
/s1~s10/s_test6.R
a4b18bcb9f1c3ffbb4b6f692f8a09feb20650cba
[]
no_license
bjh1646/R_data
ad564701e651e3e88a0bd91621dbb39ecc283efc
dd46c37cdd8070a4ddab1c7f376fde010b170d68
refs/heads/master
2023-08-21T16:05:22.773594
2021-08-29T13:08:46
2021-08-29T13:08:46
392,208,622
0
0
null
null
null
null
UTF-8
R
false
false
235
r
s_test6.R
library(shiny) ui <- fluidPage( numericInput("obs", "Observation:", 10, min=1, max=100), verbatimTextOutput("value") ) server <- function(input, output, session) { output$value = renderText({input$obs}) } shinyApp(ui, server)
ef6e70de80a5d7854c0ca47b63203d4b13bb30bf
1aced36f0193b1cd8f5cc6b180d40b60d08ce994
/inst/network.scripts/insurance.R
93e5b6fbb35b7362f098db74638a92d12df49a47
[]
no_license
gasse/bnlearn-clone-3.1
28ffd5b50ca97ec7fe54fa6037bc4a7757a81315
2bd270be53eafb08e13bdadce448db27442e2978
refs/heads/master
2020-12-24T18:03:29.368563
2013-11-14T16:34:04
2013-11-14T16:34:04
null
0
0
null
null
null
null
UTF-8
R
false
false
67,549
r
insurance.R
n = 20000 AGE = c("Adolescent", "Adult", "Senior") SEC = c("Prole", "Middle", "UpperMiddle", "Wealthy") BOOL = c("True", "False") RISK = c("Psychopath", "Adventurous", "Normal", "Cautious") HOME = c("Secure", "City", "Suburb", "Rural") MIL = c("FiveThou", "TwentyThou", "FiftyThou", "Domino") YEAR = c("Current", "Olde...
031d02e9ca70cb5c60b3ef3fb0f31e694a0c4e7e
0d88818bc32ed3d26629b760dbcb88b2f58d437d
/rankhospital.R
93a5e3cb049f24e32a3f36614819ee3abe03e8a5
[]
no_license
ratiubogdan/ProgrammingAssignment3
cd29ca351ff2f486494736e0ed0ed205a00f4c4d
2954fd7d8f1b421f29f637c7d509467036d888f5
refs/heads/master
2016-09-06T04:37:58.543458
2015-05-27T18:23:39
2015-05-27T18:23:39
36,307,848
0
0
null
null
null
null
UTF-8
R
false
false
1,045
r
rankhospital.R
rankhospital <- function(state, cond, num = "best") { ## Read outcome data outcome <- read.csv("outcome-of-care-measures.csv", stringsAsFactors = F, na.strings = "Not Available") ## Check that state and outcome are valid if (state %in% outcome[,7]) { #nothing } else { stop("invalid state") } ...
d0542a3733546a473611f998051682aea054a935
bca565aa1ece61dbcd89f064c32739aa62ab6c8d
/validation.R
bc944faa60ab1639d70fb42f093a3f435eb3bc27
[]
no_license
drewdahlquist/Intro-to-Statistical-Learning
b98fb40bfa0f86dd021930530a9c04e7234589bd
0813103259e2ddac69a41b75d792a2444234f81f
refs/heads/master
2022-11-24T06:06:55.292995
2020-07-31T04:26:17
2020-07-31T04:26:17
283,941,269
0
0
null
null
null
null
UTF-8
R
false
false
1,444
r
validation.R
require(ISLR) require(boot) ?cv.glm plot(mpg~horsepower,data=Auto) ### Leave-one-out CV glm.fit=glm(mpg~horsepower,data=Auto) #fit linear model cv.glm(Auto,glm.fit)$delta #cross validation, no args for "K" so cv.glm does LOOCV # Write optimized function for LOOCV, from ISL (5.2) loocv=function(fit){ h=lm.influence(f...
479215fd994aa153aef7973febf45cbb906d9266
9c22eb39be49a8107fabd4f3ff94715ee12e5862
/man/harmonise_ids.Rd
22858b70ea5560a97dfe075db63ea06e0bff11ad
[]
no_license
cran/Spectrum
5026b50551668a38f847a8a508b46f6002b19158
a4c7bb0de877d49224977d64314404a2a7cbd1b5
refs/heads/master
2020-04-21T18:13:47.086980
2020-02-10T07:40:02
2020-02-10T07:40:02
169,761,606
0
2
null
null
null
null
UTF-8
R
false
true
643
rd
harmonise_ids.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/core_functions.R \name{harmonise_ids} \alias{harmonise_ids} \title{harmonise_ids: works on a list of similarity matrices to add entries of NA where there are missing observations between views} \usage{ harmonise_ids(l) } \arguments{ \item{l}{...
e80aa57cda326c562d0dcf7fe8269af60bc50b95
f0b8e873e84e9216bacaf3587c3b8e585e1ddf9d
/Documents/ggplot2_p/stackbar.r
165d3fca84965f03017cc48e76d5008b74a0951b
[]
no_license
Waylan49/Self_Learning_ggplot2
f7ed55b34eb905852fae10bc28525da33a0c8d52
daf2a0dd956a523a2a7020c6186ee0502bf63199
refs/heads/master
2023-02-27T17:39:06.777812
2021-02-07T23:45:34
2021-02-07T23:45:34
336,914,973
0
0
null
null
null
null
UTF-8
R
false
false
677
r
stackbar.r
library(scales) data<-data %>% group_by(year) %>% mutate(pos1=cumsum(percentage)-0.5*percentage) ggplot(data)+theme_bw()+ geom_bar(aes(x=year, y=percentage, fill=product), stat="identity", position=position_stack(reverse=TRUE))+ theme(legend.position="bottom", legend.ti...
b75a4da8993275c85564aae368b97c4acc95eab4
3df087ccb93de55ddde9fc02a1805432a9a21343
/man/MomSignal.Rd
d8b1c5cc67e25ad0afc974351ee2f70a13ff815d
[]
no_license
thismely/ExpectedReturns
efc587e92f60cc2bf966a6e477b68025ed5c7806
ba2507aa1572b2a27d2f6639d45f98e5b2533ece
refs/heads/master
2023-07-06T20:13:46.863687
2021-07-11T17:33:30
2021-07-11T17:33:30
null
0
0
null
null
null
null
UTF-8
R
false
true
3,618
rd
MomSignal.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MomSignal.R \name{MomSignal} \alias{MomSignal} \title{Momentum Trading Signal} \usage{ MomSignal(X, lookback, signal, cutoffs, speed = FALSE, ...) } \arguments{ \item{X}{A list of \code{xts} objects, storing assets data. See 'Details'.} \ite...
6ee8d8984db762a9cf6f774ee6184f6fdd0e4e00
4b662cb87656d07ddfd372cbe4b97f6a60a65cf2
/Project_2.R
f68bbaf959a8a10b2dc14197cfcdf7a06f722b82
[]
no_license
kami2020/DARET_Project_2
5360639f0ce011931ec51136e8fcd0974d49de08
652200ea4d5786b5f38742f01af821c234845945
refs/heads/master
2020-04-13T20:47:11.970734
2018-12-28T18:40:08
2018-12-28T18:40:08
163,439,130
0
0
null
null
null
null
UTF-8
R
false
false
3,760
r
Project_2.R
library(readxl) Churn_1_ <- read_excel("D:/Abhyayanam/DARET/Projects/Project 2 - Churn/Churn (1).xls") View(Churn_1_) save.image("D:/Abhyayanam/DARET/Projects/Project 2 - Churn/Project_2.Rdata.RData") pchurn <- Chuurn_1_ head(pchurn,6) sum(is.na(pchurn)) str(pchurn) table(pchurn$Churn) pchurn$Churn <- as.facto...
bb857ec4dcbd5f4aaad1789bfb289bf5ca2706e4
8d60d8ee03e9158ba660e2419f6ed45d1c053e8e
/exposure_result.R
50ec08d6c57b9079f41496c4cd20df3748b07a54
[]
no_license
kyungtakDS/KRM_inha
e73ae4f15fdbedc6445f6afab12a206ac78d3f7a
92488e67b944321297dd3c2b749e6938cab4696e
refs/heads/master
2021-04-24T13:43:57.263846
2020-04-11T12:59:06
2020-04-11T12:59:06
250,124,957
1
1
null
null
null
null
UTF-8
R
false
false
19,649
r
exposure_result.R
#'--- #'title: "Exposure - 총주택,총인구,평균공시지가" #'author: "Kyungtak Kim" #'date: '2020 3 26 ' #'output: github_document #' #' #'--- #+ library, warning=FALSE, message=FALSE library(tidyverse) library(sf) library(tmap) Sys.setenv(Language="En") library(caret) library(knitr) library(leaflet) library(rgdal) library(htmlto...
3d5492c7a8aa80743754677941b7b424cad2ab6f
7b64c0207a7ecdadbd2a85d213f7277945f6233c
/man/stf_download_information.Rd
4b77025b92d25824e68372af492e2f5ed51c61b7
[ "MIT" ]
permissive
jjesusfilho/stf
eca71363b8be224fe9b016dd277a852aab31b8ca
832f6c2369a95e91defd49f159704a3e7b3628f9
refs/heads/master
2023-06-07T07:27:58.415425
2023-05-29T14:45:02
2023-05-29T14:45:02
162,435,941
12
7
null
null
null
null
UTF-8
R
false
true
467
rd
stf_download_information.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stf_download_information.R \name{stf_download_information} \alias{stf_download_information} \title{Download html with information based on incidente} \usage{ stf_download_information(incidente, dir = ".") } \arguments{ \item{incidente}{Incide...
7cde83c1fd03a248a922efc07941b4c1f7c750de
b374514b2333c49c2b1a6b6f86360f6c12c52fc4
/R_Coursera_Programming/week_2/pollutantmean.R
79c047ee101f748040d09e7b0738019519731a9a
[]
no_license
jfnavarro21/datasciencecoursera
13783db94beff413598d6b0c4aebd3685a48f94e
e57ce99e3b09eb6eee289875fef32ff18aa982d3
refs/heads/master
2021-01-10T09:08:57.647207
2016-03-23T02:46:50
2016-03-23T02:46:50
49,966,751
0
0
null
null
null
null
UTF-8
R
false
false
455
r
pollutantmean.R
pollutantmean <- function(directory, pollutant, id = 1:332) { files <- list.files(directory, pattern=".csv", full.names=TRUE) values <- numeric() #Read pollutant data values and append for (i in id) { data <- read.csv(files[i], header=TRUE) values <- c(values, data[[pollutant]]) } #Compute mean ...
89f564e6f6dbebfd347503a6a427fba1945b0007
8a736317e9732b939803d041f2448c125ff49e5f
/tests/testthat/test-examples.R
432e3cedd1f3261b766a97e468c3fac8b97e6049
[]
no_license
mbojan/isnar
f753c9d6a6c2623e7725c2f03035c1f9cc89ba85
56177701d509b267eff845e15514e4cf48e69675
refs/heads/master
2021-06-10T15:32:48.345605
2021-02-17T20:00:40
2021-02-17T20:00:40
19,937,772
8
3
null
2015-04-03T12:41:31
2014-05-19T10:28:23
R
UTF-8
R
false
false
64
r
test-examples.R
context("Testing examples") pdf(NULL) test_examples() dev.off()
898dac7c0b6be81456959ab2a9a9d2a13efe6626
c353229e39ed2709bcc73fc918269ed88a2588ce
/man/af.Rd
405d9d063b79bcd46cc33a8a81c5992ed15bb131
[]
no_license
amytildazhang/annoplots
282236f21fd848fce2e643a147c52201de970f55
865301c0d8a35e85dac6a33f347c0f29f0bce2ba
refs/heads/main
2023-08-14T20:22:35.773416
2021-09-13T23:27:09
2021-09-13T23:27:09
406,158,736
0
0
null
null
null
null
UTF-8
R
false
true
305
rd
af.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annofuns.R \name{af} \alias{af} \title{Internal constructor for annotation functions} \usage{ af(call, env = parent.frame()) } \arguments{ \item{env}{} } \value{ } \description{ Internal constructor for annotation functions }
4728f16f90d09997a3b9f185e688d52a14ad7534
e0296e1c892508c0a116300b2c0d8bb0a01c7677
/MedMast/R/my.forest.R
b2ee1d9a58107ce8edbf481dac0c39761dfc998b
[]
no_license
gullo-p/Kaggle_Competition
b172c77cd3cde86469fd55bf4ab089ef092d07a5
87dabf51efec17319c0e226fd6291a29656d1dff
refs/heads/master
2021-01-10T11:03:00.167714
2016-03-18T01:15:41
2016-03-18T01:15:41
50,145,669
0
0
null
null
null
null
UTF-8
R
false
false
1,166
r
my.forest.R
# ---------------------------------------------------------------------------------------------------- # Random Forest # ---------------------------------------------------------------------------------------------------- #' @title Random forest with ranger #' #' @description This function uses 'ranger' package to per...
ee5fd5ab4acea9cef267d04fd796e5e505f03c8a
8c986ec5ac5812df5e3b132cd4519d1b6b13e102
/labs/Lab11/code/lab11.R
b08135622c0d2925231863f4ecb9cec66cd26cd5
[]
no_license
Sudarshan-UCB/stat-133-fall2017
0c7f343c6f91e8f2205efad17f14d369cf1d66f4
393caa3eecb8d02beee1598c4f24595dc23cb48e
refs/heads/master
2021-01-20T05:20:06.498404
2017-11-19T02:41:52
2017-11-19T02:41:52
101,432,831
0
0
null
null
null
null
UTF-8
R
false
false
5,731
r
lab11.R
#' --- #' title: "Lab11" #' author: Sudarshan Srirangapatanam #' --- #' #' ## Setup #+ setup library(knitr) library(dplyr) library(ggplot2) library(readr) library(shiny) library(stringr) library(RgoogleMaps) library(ggmap) knitr::opts_chunk$set(fig.path = "../images/") #' + `knitr` is used for knitting the document...
8aec7c6e3bed3c0739c848d613b355ff69aabc32
a9d6df331c57214171279e1d6c23a22b1ab21414
/R/rtPCRlist.R
af25bc3d19d6cac7933b83b1a71e3f670fa46aad
[]
no_license
pauloref/rtPCR
53cfb5b5a79fe9e5fe623c602dfb265f88ba0bbe
73d4623487f65e047e7c35c251840ca93f0677e7
refs/heads/master
2020-04-26T04:14:53.217600
2019-03-06T11:20:47
2019-03-06T11:20:47
173,295,364
1
1
null
null
null
null
UTF-8
R
false
false
3,903
r
rtPCRlist.R
#The current file describes the rtPCRlist class type #It is a class that contains a list of rtPCR that can be groupped togethere #The file contains: The class deffinition, the initializer, a constructor to be used by the user, and #a function to access the elements inside #We declare the class rtPCRlist #' @import ...
a7c6b9c1771225da8860b6adf530c05c023e3d1a
c5c6e96ffdc9a52cdf7eba542f64fc149a9d7f4b
/R/explore_diagnostics.R
a96b9b99153fc3961ac3bd5565823fedfd6fd4a1
[ "MIT" ]
permissive
kravitz-eli/prssMixture
e09ac2dc6d3174a445319f5ca8930b9f56039fad
5b50cc7fb74d9d78a0fbe443a603fa96273e53d7
refs/heads/master
2020-12-05T16:16:14.879353
2020-02-07T15:05:46
2020-02-07T15:05:46
232,169,920
0
0
null
null
null
null
UTF-8
R
false
false
2,009
r
explore_diagnostics.R
# See posterior of mixing proportion jags_results_prior_p_mix %>% spread_draws(ind) %>% summarise(mean(ind), median(ind), min(ind), max(ind)) post_weight = jags_results_prior_p_mix %>% spread_draws(weight, ind) %>% pull(weight) ggplot(data.frame(post_weight), aes(x = post_weight)) + geom_histogram(aes(y =.....
cd056507e19ffa7fbf5915f717b08d075bb1c99c
64d76673a801f3ae5eb7ccc2b666ff3c220f990d
/Assignment_11.2.R
aafe229c9be524ac91576a2510256aefc14eaf75
[]
no_license
Tejassingh1010/Assignment-11.2
b07b7971bee4bed0e2cc04ebcae9600b5e05aeb9
2c155f85028e0a77cda397dad7dbbe58fd38ab2b
refs/heads/master
2020-05-24T16:06:26.215199
2019-05-19T15:15:30
2019-05-19T15:15:30
187,348,917
0
0
null
null
null
null
UTF-8
R
false
false
1,331
r
Assignment_11.2.R
str(bank.additional.full) bank<-bank.additional.full #Ques.1.a. Is there any association between Job and default? bank$default<-as.numeric(bank$default) bank$job<-as.numeric(bank$job) cor.test(bank$job,bank$default) cor(bank$job,bank$default) #Ques.1.b.Is there any significant difference in duration of las...
803aa13b47bc0b61175b4bdc4b4f3cbe25aa6f02
8c88c662f1999f86ecacc1688f458074eefc7e1f
/R/Regressions3.R
e99b97582b36575a7d19754ec30cdf250af55335
[]
no_license
cdanko42/Simulations
40b122bd1e6ffa015528c23d9f560c5c0ac181bf
ace6ae16dcc405e839a4398272aa2b4ef3ad882e
refs/heads/master
2023-02-03T15:12:42.991972
2020-12-26T19:47:26
2020-12-26T19:47:26
298,607,763
0
0
null
null
null
null
UTF-8
R
false
false
3,493
r
Regressions3.R
rm(list = ls()) source("DataGen3.R") library(lmtest) library(ivpack) regressions <- function(datmat, exo=1, instrument=1){ r1 <- matrix(0, nrow=nrow(datmat), ncol= ncol(datmat)) r2 <- matrix(0, nrow=nrow(datmat), ncol= ncol(datmat)) r3 <- matrix(0, nrow=nrow(datmat), ncol= ncol(datmat)) r4 <- matrix(0, nrow=nrow(dat...
1f10fe4d58d08172615cf94e84b1c1881bb1ea40
ec07e170b7d4e575ab28ca77257b0005c4937f0c
/scripts/calculate_equilibrium_state.R
e77c90e67bb2b54c9f26071a3601a3e53d8f826e
[ "CC0-1.0" ]
permissive
KamilSJaron/reproductive_mode_TE_dynamics
324e359ca932d09eddde38fc3ed3682b2c93a509
6187ab8e9aed1f5729efb87225cfb8d0e06e3c08
refs/heads/master
2022-03-13T06:17:44.538533
2019-10-02T08:08:55
2019-10-02T08:08:55
112,102,211
3
1
null
null
null
null
UTF-8
R
false
false
325
r
calculate_equilibrium_state.R
getNeq <- function(a, b, u, v){ (sqrt(2 * (a^2 + (u - v))^2) - 2 * a) / (2 * b) } get_b <- function(a, u, v, Neq){ (sqrt(2 * (a^2 + (u - v))^2) - 2 * a) / (2 * Neq) } get_v <- function(a, b, u, Neq){ u - sqrt((Neq^2 * 32 * b^2 / a^2) - a^2) } get_u <- function(a, b, v, Neq){ sqrt((Neq^2 * 32 * b^2 / a^2) - a^2) ...
cdecb2eee7d9ec95de388d77f837ac1c5f044c26
a5af03d50a368612fe04ad742f975f6d5558bfa9
/TO_watermain.R
38621320b756f35534a99d1852711f053c396452
[]
no_license
gridl/TO_Watermain
8b8b611e326ba073ce31a87c35eea1db6be7120d
add101933969ee283ff195985089dab3fd719347
refs/heads/master
2021-08-18T22:13:21.168445
2017-11-24T03:50:28
2017-11-24T03:50:28
null
0
0
null
null
null
null
UTF-8
R
false
false
6,675
r
TO_watermain.R
# Mapping Watermain Breaks in City of Toronto #### # Initialize Session #### cat("\014") rm(list=ls()) cat("\014") Sys.Date() sessionInfo() list.of.packages <- c("readr","readxl","ggplot2","dplyr","magrittr", "viridis","lubridate","grid","gridExtra", "maps","ggmap","cluster...
c6f1a481e257fd489f85044644b0bb3fdd06da29
9622cac6de59b903331fdf2a0b0a2d41fed2ade7
/Bajar_y_subir.R
679b624bcb321380ebc2b27f4dac2fe433dcb1df
[]
no_license
repositoriosdesefa/SEFA_SEFA_Reporta_Residuos
24ebd5fb7ace8522c9ae3d804722b7c75fc3bbd5
59512c6d52f13f248e6140c3546b4719abeb21d2
refs/heads/main
2023-08-17T11:06:22.356585
2021-10-06T20:37:47
2021-10-06T20:37:47
413,791,623
0
0
null
null
null
null
UTF-8
R
false
false
3,433
r
Bajar_y_subir.R
####################################################################- ########## Consultas SQL a bases de Oracle a través de R #########- ############################# By LE ################################- ################ I. Librerías, drivers y directorio ################ # I.1 Librerías # i) RJDBC #i...
76313862a77de34186bc7cba0e10d73b8fad8c5b
f511fd964b9478dd184c50124479f4c5592defe6
/localization.R
2e8669d52e6c15ad8172fe75e5877c40a29c1270
[]
no_license
thartbm/exposureconsequences
08518aa169eaa59259e61a2a7d34cc5f762cb876
4f8667f069aacc750fb54a0491db7817f016c12c
refs/heads/master
2022-02-11T23:23:37.006815
2019-07-14T02:59:38
2019-07-14T02:59:38
115,872,108
0
1
null
null
null
null
UTF-8
R
false
false
33,296
r
localization.R
source('shared.R') # PLOT / FIGURE ------ plotLocalization <- function(classicOnline=FALSE, generateSVG=FALSE, selectPerformance=TRUE, remove15=FALSE, thirdPanel='2x2', points=c(15,25,35,45,55,65,75)) { # thirdPanel= # 'peakCIs' # 'classicOnline' # '2x2' # get the data to plot: exp <- getPointLoc...
b79dde7eb98f34b80bf9b0878141fabcc8053a65
8c7bf42defee862b214d037e5f6629e06f2e9e4e
/R/electromigration.r
b648d1b5fb247bce6132740add764434a982b9d2
[]
no_license
KDB2/amsReliability
2c041e82a8214e34d35df43d8e700677395ee0dd
7ad760b829c7ae14f112044c43173f99a982d4b0
refs/heads/master
2021-01-10T16:40:58.158846
2017-11-23T08:19:21
2017-11-23T08:19:21
43,775,918
0
0
null
2015-10-19T12:22:27
2015-10-06T20:15:35
R
UTF-8
R
false
false
18,310
r
electromigration.r
################################################################################ ### ### ### INFORMATIONS ### ### --------------------------------- ...
2427d406c799132e63a1a524210442d8542cee69
eab78e955aaee69c14d206c8e5bd76cf246a2372
/man/jobs.Rd
7488b74341bb3b888582c92680a0d3ba0fd930d3
[ "MIT" ]
permissive
rstudio/connectapi
3ad96af4e7935035658bf09aa8082cae4c68ffb5
427ac1fe2eb72d45f6048c376ec94b6c545faf8d
refs/heads/main
2023-08-08T11:55:20.698746
2023-07-10T16:36:27
2023-07-10T16:36:27
167,249,814
34
17
NOASSERTION
2023-08-03T13:26:37
2019-01-23T20:32:57
R
UTF-8
R
false
true
1,221
rd
jobs.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/content.R \name{get_jobs} \alias{get_jobs} \alias{get_job} \title{Get Jobs} \usage{ get_jobs(content) get_job(content, key) } \arguments{ \item{content}{A Content object, as returned by \code{content_item()}} \item{key}{The key for a job} }...
07e5d9df1e5aff523fcbf2f3005741b5f6156f0f
8414e92e6f4840b9ac815f2d4386ad4747ffa722
/R/dp.R
fe7f3fed0917c41b5a08c624a000d77a9f0018c8
[]
no_license
krlmlr/deparse
8a7c8c2045e0590df2cd939f0367c832af71bd53
86f10431542dc8a74ee1735107dd03518ed25789
refs/heads/master
2021-01-17T05:09:09.732938
2017-06-22T14:07:50
2017-06-22T14:07:50
65,830,221
10
1
null
2017-06-22T13:31:14
2016-08-16T15:10:18
R
UTF-8
R
false
false
2,152
r
dp.R
#' A nicer deparse #' #' \code{deparse} is a reimplementation of \code{\link[base]{dput}} and related #' functions. It tries its best to produce output that is easy to read #' (for humans), yet produces (almost) identical results to the input #' (for machines). This function is a generic, so other packages can easily #...
e8cb5fd413d199eed7569babdfa0c14e0525f56d
40de17508d3206d2bb905a7ed44068c77efc2386
/wine.R
2c37ba56653e5ece4de5ebdc69d9c59fd0dc2e5d
[]
no_license
priyankaankireddypalli/PCA
eb84706428c42eced5f9d810370e0f3fb351776e
82f3f3ef6b51e8b1aafc046a58e2d5013b77fa22
refs/heads/main
2023-07-29T09:55:05.423950
2021-08-20T04:01:10
2021-08-20T04:01:10
398,149,410
0
0
null
null
null
null
UTF-8
R
false
false
11,878
r
wine.R
# Performing PCA on Wine dataset library(readr) wine <- read.csv('C:\\Users\\WIN10\\Desktop\\LEARNING\\wine.csv') View(wine) # Performing EDA for the dataset # Checking for NA values sum(is.na(wine)) # There are no NA values in our dataset # Plotting histogram for getting the skewness hist(wine$Alcohol,xlab = ...
cf7486fedd19c44cf26331189213080ad3ceabcd
cb66ae3bf5bd2422e70df574340e0d5f5388eb8e
/Unconditional Lorenz Effects.R
9e919ffe9d88c055c9d7d67e917d548e7c68f393
[]
no_license
jvoorheis/MSA_Ineq
779f28947f243495d4c28b6841b56d2c51dc97e6
3dbec52e82d0ae86d6d88c6550aadba4b43cb81a
refs/heads/master
2016-08-02T22:44:29.331869
2013-12-28T07:50:20
2013-12-28T07:50:20
11,228,792
0
1
null
null
null
null
UTF-8
R
false
false
2,199
r
Unconditional Lorenz Effects.R
library(foreign) library(sandwich) library(lmtest) library(reldist) library(ineq) library(ggplot2) CPS.work<-read.dta("/media/john/Shared Linux_Windows Files/MSA Level Inequality/Data/CPS_topcode_MSA_demo_cleaned.dta") CA2011<-subset(CPS.work, CPS.work$year==2011 & CPS.work$statefip=="California") CA2000<-subset(CPS.w...
49ada904568cfc7723765e94be8f63014d4d6068
a60396342c967726b2ce5b87be365cb370d16e38
/R/continret.R
ee96cb7c836dc34f956f2d73edd6ae5cd13b12b6
[]
no_license
kashenfelter/dsetsR
8db72c2921e40f5489a1de8006d55f01b4bae975
1daa9626d0e9f5ea224150b17cf7e1ab2a516876
refs/heads/master
2021-05-29T18:39:52.121320
2015-09-28T22:01:54
2015-09-28T22:01:54
null
0
0
null
null
null
null
UTF-8
R
false
false
686
r
continret.R
#' Continuously compunded returns for a company in Dhaka Stock Exchange #' #' This function returns continuously compunded returns for a company enlisted and traded in the Dhaka Stock Exchange between 2005 #' and 2015. #' #' @param id2 The vector containing closing price for any company #' @return Vector containing the...
eba1c9e3db4a6d568b787f751cb1ad208a0a0905
561149f7ef8b323c59aa3fc7b24c287e39770362
/man/LegoR-package.Rd
d5f8f32bffe8c1ef76b2d97fe7a4f43014f300a6
[ "MIT" ]
permissive
dA505819/LegoR
dff6a1a03a8a2f04bc68ac4f63ede3fe67648742
3abc8d3ed08efeacac22f77190d0dc65f9e50d95
refs/heads/master
2021-02-23T18:32:11.852013
2019-09-30T02:40:36
2019-09-30T02:40:36
null
0
0
null
null
null
null
UTF-8
R
false
true
569
rd
LegoR-package.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LegoR-package.R \docType{package} \name{LegoR-package} \alias{LegoR} \alias{LegoR-package} \title{LegoR: Package to scrape data from shop.lego.com and brickset} \description{ \if{html}{\figure{logo.png}{options: align='right'}} Collects data...
2b83a6df25991284a8a5c4615a92d52b20676eda
95e41d3766d0e3acefe5177f985794fcf7a6ed0d
/R/hmi_imp_roundedcont_2017-12-27.R
aceb52a761d52181e929f9004b2664b6c1b732a7
[]
no_license
matthiasspeidel/hmi
d9717ecb92542269ae261a8a8107fc66760373b8
8edeb644283b36fb2e692baed819d488ff841a42
refs/heads/master
2021-07-11T00:14:15.489711
2020-08-16T18:28:05
2020-08-16T18:28:05
63,349,571
6
2
null
2020-07-30T18:27:22
2016-07-14T15:48:11
R
UTF-8
R
false
false
19,554
r
hmi_imp_roundedcont_2017-12-27.R
#' The function to impute rounded continuous variables #' #' For example the income in surveys is often reported rounded by the respondents. #' See Drechsler, Kiesl and Speidel (2015) for more details. #' @param y A Vector with the variable to impute. #' @param X A data.frame with the fixed effects variables. #' @param...
5abc73712c70a776ee4938eb751b50c8cd493711
ccb7a35f060cb6b03ff1bec980f4c46983d5ef8d
/combined_plots.R
821b783a2707ea96682af6caf90da60b933aeaa1
[]
no_license
PeerChristensen/UrBIOfuture_survey
0816e6db41bf5058da121b99044d66ea2db5e3a5
0e9172f40a3360d999dfae6c2141046bc2cc655d
refs/heads/master
2020-07-23T01:34:32.634762
2019-10-17T07:51:11
2019-10-17T07:51:11
207,402,066
3
0
null
null
null
null
UTF-8
R
false
false
4,997
r
combined_plots.R
# combined plots library(cowplot) library(scales) library(tidyverse) df <- read_csv2("Survey_consolidated_filter_23092019.csv") %>% mutate_if(is.character, ~replace(., grepl("Bachelor/engineer", .), "BA/engineer")) %>% filter(n_complete > 90, company_type == "i") ######### theme_ubf <- fun...
87f973d205c7ef6bb1defbb1fd76ad60e74bd633
fc07c3c93c58252ac6a13cf06a4a325862092c21
/R/RcppExports.R
61658b6c67ab7b9281d26c3f76443db0363ab7cf
[]
no_license
alexkowa/wrswoR
998a2b226da76b115e5ed84d85a00a5862b69d19
a4ea0c1cd3dfb17e14b60a330ac75adb43618cf6
refs/heads/master
2020-03-11T08:09:16.363544
2018-02-02T08:10:25
2018-02-02T08:10:25
null
0
0
null
null
null
null
UTF-8
R
false
false
535
r
RcppExports.R
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 sample_int_crank <- function(n, size, prob) { .Call(`_wrswoR_sample_int_crank`, n, size, prob) } sample_int_ccrank <- function(n, size, prob) { .Call(`_wrswoR_sample_int_ccrank`, n, si...
fc16257837d8f947861809eb11eb2d954bdfd746
9182470bc9ff0562a879b6ea3e4da92e011bf509
/recombination_intepolation.r
62fcd6c46ad147b9c68a84969622f1be0b69661d
[]
no_license
cshukai/genwin_parallel
9c19bcfcb8b3354adb49573418487c9e1f78a5b6
4f8ed6c7bea491327f702deaf86be61bed6e923d
refs/heads/master
2020-05-17T10:35:27.578780
2017-12-09T21:22:49
2017-12-09T21:22:49
183,660,765
0
0
null
null
null
null
UTF-8
R
false
false
1,640
r
recombination_intepolation.r
rec=read.table("GeneticMapFromNam.txt",header=T) fst=read.table("FstTable.txt",header=T) #clean out missing data and correct misplaced start/end colnames(rec)=c("p.rs.","chr","start","end","cM") rec2=NULL for(i in 1:nrow(rec)){ if(!is.na(rec[i,"start"]) && !is.na(rec[i,"end"]) ){ if(rec[i,"start"]<rec[i,"end...
8fcaafca5288b45dd309d054414ef069af04f957
e1b16c8f51275fb7c3ac5c0b1259797db102466e
/R/searchMaxProbMultinom.R
861c8348feb57c7e652fcb44146384cdf0a92758
[]
no_license
cran/Exact
2e40cd661c476ef63ba9d5f60853c01ade003c45
dee64666d46fa2b993bdd0f515a731b981ef26f1
refs/heads/master
2022-10-05T23:27:33.407421
2022-09-25T22:40:02
2022-09-25T22:40:02
17,679,070
0
0
null
null
null
null
UTF-8
R
false
false
1,292
r
searchMaxProbMultinom.R
searchMaxProbMultinom <- function(Tbls, N, prob) { prob[, 3] <- NA nRows <- nrow(prob) # Calculate first record prob[1, 3] <- sum(multinom(Tbls[ , 1], Tbls[ , 2], Tbls[ , 3], N-rowSums(Tbls), p1=prob[1, 1], p2=prob[1, 2])) while (any(is.na(prob[,3]))) { p1uniqu...
14bf45f18c8b3438fc2f2d893d6b2148d0d98b0e
34fd7065357a619bf994bc07fa7f5110e15c8278
/scripts/study_area/fCreateSinglePolygon.R
179ac6d75aea4fd4f4b1f39a180836311694a4b8
[]
no_license
tropileaf/PacificProj
9a1bc6cc641fc5ae67086ab38d84c2704d4f4d51
da5fb2ab3a5dfcb11297ff645fc05f21f7f1a955
refs/heads/main
2023-07-04T05:44:11.782728
2021-08-13T08:29:08
2021-08-13T08:29:08
null
0
0
null
null
null
null
UTF-8
R
false
false
578
r
fCreateSinglePolygon.R
fCreateSinglePolygon <- function (df, res){ library(raster) library(fasterize) # Creating a empty raster rs <- raster(ncol = 360*(1/res), nrow = 180*(1/res)) rs[] <- 1:ncell(rs) crs(rs) <- CRS(longlat) # Fasterize the land object df_rs <- fasterize(df, rs) pol <- as(df_rs, "SpatialPolygo...