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
5092c71adbed4b2bb13bd63d95ca35d0532253bf
9c2f2cacd089553020d1e9f51aa91100d4c2d77f
/R/sigex.specar.r
a265794137ea4900cae92883f185e3f47bd26fcd
[]
no_license
palatej/sigex
a870a9e4015c8d7f1028bd451ec3dd93c7b62fdc
82496b40789390116875da7c3008f62247b44107
refs/heads/master
2020-05-03T03:18:30.375009
2018-10-29T16:25:27
2018-10-29T16:25:27
null
0
0
null
null
null
null
UTF-8
R
false
false
2,121
r
sigex.specar.r
#' plot AR spectrum of input time series #' #' @param data.ts a T x N matrix ts object, #' corresponding to N time series of length T #' @param diff boolean, if TRUE difference the series #' and plot Growth Rate, else in Levels #' @param subseries index between 1 and N, indicating which series #' to examine #' #'...
52f9154e59702580d11d06b689d4d8fc70689330
483a05fd21e1cd199346d5045ae16060057501d2
/man/describe.Rd
6454b81a650d07e321aa3b3a3916cddb1bdf7946
[ "MIT" ]
permissive
TileDB-Inc/TileDB-R
34862c95815a77ba9b925f8d6e24dd362b3c617a
71901f8c9d5de860dbe078a0e708dda8f1b9b407
refs/heads/master
2023-09-04T05:28:09.468320
2023-08-23T13:24:33
2023-08-23T13:24:33
91,851,655
90
20
NOASSERTION
2023-09-14T20:48:10
2017-05-19T23:07:10
R
UTF-8
R
false
true
477
rd
describe.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ArraySchema.R \name{describe} \alias{describe} \title{Describe a TileDB array schema via code to create it} \usage{ describe(arr) } \arguments{ \item{arr}{A TileDB Array object} } \value{ Nothing is returned as the function is invoked for the...
ea92c7fc73df592bf763fe185d78fe3bcc96fc31
f2fda5ab5c19b8af71607a7f2d2d8f4cd3b26bb4
/figs/bayesian-risk/fig-risk.R
80cbadbc2bc94672c749f670c3501e53a2bb34f2
[ "MIT" ]
permissive
rmit-ir/bayesian-shallow
657528666df9900369c3e385673181d828bc9394
f90893a60ffbe3c6ee9f7f3b4420a28a1476aa61
refs/heads/master
2023-03-16T20:25:47.733601
2021-03-20T06:58:06
2021-03-20T06:58:06
322,165,651
1
0
null
null
null
null
UTF-8
R
false
false
3,527
r
fig-risk.R
source("../../R/compute_cis.R", chdir=TRUE) library(brms) library(stringr); library(ggplot2); library(dplyr); library(ggridges) library(cowplot) args = commandArgs(trailingOnly=TRUE) alpha <- as.numeric(args[1]) load(paste0("../../R/risk_comps/filt_", alpha, ".Rdata")) filt_point <- aggregate(urisk ~ system, filt_ag...
6fee1fa06a95ce4c6659e926ab5bc9daf5d257e3
d1894acdd83618a12e9f155584ad788497a7d964
/run_analysis.R
fac68851353d8f036f35de0320036a55e308b948
[]
no_license
wintics/TS_Getting_Cleaning_Data
0084353e4add5d0db11e85419141063d1489f3cc
e0963896b41f1f93c0183efd84bb1371dc46eafe
refs/heads/main
2023-01-02T20:41:56.284014
2020-10-25T09:43:10
2020-10-25T09:43:10
306,884,640
0
0
null
null
null
null
UTF-8
R
false
false
2,419
r
run_analysis.R
########################################## # Assumed, that data files are downloaded and unpacked # working directory for this code is 'UCI HAR Dataset' # ########################################### library(dplyr) # Step 0. Loading data s_test<-read.table("./test/subject_test.txt") X_test<-read.table("./t...
d72f713328b4b98bf15b9c34b18f3391ee58df92
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/spatialwarnings/examples/rspectrum.Rd.R
d67d637df8c0ceada20237286dd605bcadb550a1
[]
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
566
r
rspectrum.Rd.R
library(spatialwarnings) ### Name: rspectrum ### Title: r-spectrum ### Aliases: rspectrum ### ** Examples # Spectrum of white noise rmat <- matrix(runif(100*100) > .5, ncol = 100) spec <- rspectrum(rmat) plot(spec, type = "l") # Add some spatial correlation and compare the two spectra rmat.cor <- rmat for (i in ...
b3cd6097ce4678aac7e296c9d2d8c5a5ddb5da08
3cc3c71740b7453b274808bda5696bd5e77eca59
/R/residuals.heckitrob.R
26f358ce0a540a2792d940d9d00a8eac465cdea8
[]
no_license
cran/ssmrob
197e166e18ded8430d558f068c3e0b66668a3e0d
e91bed9355484de61fc25de0253288aff3dd7a57
refs/heads/master
2023-03-16T15:53:07.223539
2021-08-20T14:00:06
2021-08-20T14:00:06
17,700,091
0
0
null
null
null
null
UTF-8
R
false
false
85
r
residuals.heckitrob.R
residuals.heckitrob <- function(object, ...) { return(resid(object$stage2)) }
03363fdcbe93a5617569279b7782976001196f6c
b93b2d50cf239c6c65060424e5b255322a4bef78
/man/add.timeframe.Rd
6b8ad985d1d9dafc41df521790c96e24bafe6ecf
[]
no_license
LunaSare/phyloch
3c49eb48dd0d36e1b2fd1a8c7d36ff6407f47ef9
73d21686db41630ef39560ef621b1763fc2e9853
refs/heads/master
2020-03-28T06:45:10.176727
2018-11-29T03:02:57
2018-11-29T03:02:57
147,857,428
0
0
null
2018-09-07T17:56:25
2018-09-07T17:56:24
null
UTF-8
R
false
false
1,763
rd
add.timeframe.Rd
\name{add.timeframe} \Rdversion{1.1} \alias{add.timeframe} \title{High-lighting ages in chronograms} \description{This function ...} \usage{ add.timeframe(phy, age, clade = NULL, tips = NULL, ...) } \arguments{ \item{phy}{An object of class \code{phylo}.} \item{age}{A vector of mode \code{"numeric"} giving ...
4e56a8ea908b422384d75e51ea25aac7a2bae792
a845ad855b81eec06afe792f5f18a82a8e1c89d8
/Week 3/R/Cluster1.R
f452e94b6580a688826c6d1696e57113d36dc063
[]
no_license
mwickers1/Statistical-Machine-Learning
a0542d7e8951ba636ef5b48de25deeb6b7a60b42
7af2138a4aaece6e28974132eb3e829e2e31ae09
refs/heads/master
2020-08-08T01:47:10.596237
2019-12-11T16:34:41
2019-12-11T16:34:41
213,664,455
0
0
null
null
null
null
UTF-8
R
false
false
4,505
r
Cluster1.R
# # Clustering examples. kmeans() is in base R, but the rest is in the # "cluster" package. # # First, let's plot by PCs. # state.pr <- prcomp (state.x77, scale=T) plot (state.pr$x[,1], state.pr$x[,2], type = "n") text (state.pr$x[,1], state.pr$x[,2], state.abb) # # library (cluster) # # k-means example. We already kn...
23a12f374848e953efe90f954abba6ce5dc36016
495b8b44ed4f7d2ac023a6dcd39b6c1a49b341dc
/R/has-dims.R
0e111623a76c8924589a733b1b0908c005bd74f5
[]
no_license
cran/assertive.properties
f63ed111e35472517eef0a7f2ce84ff49b41c47c
69d091ea0cbfeb94112c74838adac4fc638f5e1e
refs/heads/master
2022-04-30T00:55:55.308834
2022-04-21T11:40:08
2022-04-21T11:40:08
48,076,805
0
0
null
null
null
null
UTF-8
R
false
false
2,089
r
has-dims.R
#' Does the input have rows/columns? #' #' Checks to see if the input has rows/columns. #' #' @param x Input to check. #' @param .xname Not intended to be used directly. #' @param severity How severe should the consequences of the assertion be? #' Either \code{"stop"}, \code{"warning"}, \code{"message"}, or \code{"no...
b3c5428ed6cc72ae4332c8c215238b37db5c4859
aaf76f929894496b5ba19a4673da2de11e31ed36
/STAD57/Lectures and ALl/material/problem sets/R stuff/PS3.R
626ce48517d29cfd70a36e429018215c7d11c1b6
[]
no_license
MLSaj/SchoolProjects
53923dbf91972c37a7fb541c491299dcc6cb53cd
2190f1b699dbb52d2bfd9b5c924d1644dd82d387
refs/heads/master
2022-06-16T20:15:56.709652
2020-05-11T20:43:02
2020-05-11T20:43:02
263,151,257
0
0
null
null
null
null
UTF-8
R
false
false
519
r
PS3.R
#### 3.7 from text ARMAacf(ar=c(-1.6,-.64), ma=0, 10) ARMAacf(ar=c(.4,.45), ma=0, 10) ARMAacf(ar=c(1.2,-.85), ma=0, 10) #### 3.8 from text phi=.6; theta=.9 AR_1.acf=ARMAacf(ar=phi, lag=25) MA_1.acf=ARMAacf(ma=theta, lag=25) ARMA_1.1.acf=ARMAacf(ar=phi, ma=theta, lag=25) par(mfrow=c(1,3)) plot(AR_1.acf...
767605cb7a777a8b83066f18b8f4ae4af4989f7b
0b7f3a8575e4aa9d75727f605fb3e2dc147b583c
/man/subset.geodata.Rd
d543a61aaba34a172bd3d75100d75b883bb72abf
[]
no_license
cran/geoR
530ade489d2efcd25b9273d935fd43a3e998694b
03850658d4a832f7640b09c6d2ab3dbd58c61e37
refs/heads/master
2023-08-07T23:47:16.050075
2022-08-09T15:00:05
2022-08-09T15:00:05
17,696,346
9
12
null
2023-07-29T17:01:29
2014-03-13T04:50:30
R
UTF-8
R
false
false
1,396
rd
subset.geodata.Rd
\name{subset.geodata} \alias{subset.geodata} %- Also NEED an '\alias' for EACH other topic documented here. \title{Method for subsetting geodata objects} \description{ Subsets a object of the class \code{geodata} by transforming it to a data-frame, using \code{subset} and back transforming to a \code{geodata} obj...
222cc4346967ea4e1e9a19dc49ba23685fc90f8b
c74b97591f44b46c4af7f4b68ac510de04629025
/clust3/clust3-rcode.R
df7d48d7696ef88fbc711f22bd541fd6df34be47
[]
no_license
allatambov/cluster-analysis
ef56882369db39b9b76adc2c884461beda405cb4
d6c6f8329d6d36c6194af0ea4b16e4795833bd46
refs/heads/master
2020-03-11T17:01:30.974466
2018-05-03T14:44:05
2018-05-03T14:44:05
130,135,007
0
1
null
null
null
null
UTF-8
R
false
false
4,200
r
clust3-rcode.R
### cluster analysis 3 ### ### assessing the quality of clustering ### # load data - file reg_elect.csv df <- read.csv(file.choose()) # look View(df) # choose columns that ends with _perc library(dplyr) to_clust <- df %>% select(ends_with("_perc")) # name rows after country names rownames(to_clust) <- df$region # c...
1ac70a8790c61458990d6814da807b1c8b14b860
92e84107be8f732e587734e45ac46c342ef394d6
/run_analysis.R
21ca3ddd82af8170c485db454f8ff0cb22dde8fc
[]
no_license
JorgenUnger/Coursera-Getting-and-Cleaning-Data---Course-Project
0ac36b44a45b03f469084d55cb2004f56dce9b1a
1ac0274fd12b250eab5e8d767f776e34a3c4fd7f
refs/heads/master
2021-01-20T18:04:35.515143
2017-05-10T20:58:14
2017-05-10T20:58:14
90,903,287
0
0
null
null
null
null
UTF-8
R
false
false
3,012
r
run_analysis.R
run_analysis <- function() { library(reshape2) #If folder UCI HAR Dataset not exist then download zip file if it doesent exist. Then unzip file. if(!file.exists("UCI HAR Dataset")){ if(!file.exists("UCI HAR Dataset.zip")) { ...
ec834562dbe576e32aba38d66d5cad426868de8d
ebdbf1a9fa1df3bcc1a180e4ccf51b5327968b68
/R/wgcna.R
3dd59b3af330c704287a36f53b68d1200b745c5c
[ "MIT" ]
permissive
pranavdorbala/proteomicsHF
8396c6309622caaf10b154e3083760d11ef340fb
36124a55afd8ddad655d7a6871172741538622d6
refs/heads/main
2023-06-04T14:27:47.634938
2021-03-08T15:42:22
2021-03-08T15:42:22
339,808,458
1
1
NOASSERTION
2021-06-25T19:28:26
2021-02-17T17:50:43
R
UTF-8
R
false
false
3,852
r
wgcna.R
soft.threshold <- function(data) { soft.threshold <- WGCNA::pickSoftThreshold(wg.data, powerVector = 1:20, networkType = 'unsigned', RsquaredCut = 0.9, verbose = 0) p <- threshold.plot(soft.threshold) return(list(sft = soft.threshold, p = p)) } thr...
10235dd61c7db737043a8380c5ba0c3e470eb538
7db7ca4aea3b8d0557248beb1b4f559e6eb10809
/R/piggy-waypoints.R
9d4d857b579ab463107434bad068be44a3daac3f
[]
no_license
tera-insights/gtBase
aabbbb7ec58bf1beb75879decf35832e628874d9
bfbc7459923456895ab99143a5020bdfdf536720
refs/heads/master
2020-05-22T00:03:44.268580
2017-06-06T14:42:37
2017-06-06T14:42:37
25,822,663
3
0
null
null
null
null
UTF-8
R
false
false
5,057
r
piggy-waypoints.R
Translate.Cache <- function(data) { piggy <- paste0(data$alias, " = CACHE ", data$data$alias, ";\n") c(Translate(data$data), setNames(piggy, data$alias)) } Translate.Compact <- function(data) { piggy <- paste0(data$alias, " = COMPACT ", data$data$alias, ";\n") c(Translate(data$data), setNames(piggy, data$alias...
fcd215e5ddf236e86cb3d36a330cb7384ad1ec70
08e99681e21d756b0f2339b2fd4153dc7ec277ef
/script.R
16387b1c73d4b7e7bf4635255bb2740aa696f61a
[]
no_license
timothymartin76/K_Means_Clustering
56ecda8e4394d9f6eb92118b37e8eb4fdf42f6d5
e3be1ac9a9f7dabee53bd73f71559a71cc2e5b97
refs/heads/master
2021-01-24T21:07:39.079006
2016-02-10T17:28:05
2016-02-10T17:28:05
37,153,401
2
0
null
null
null
null
UTF-8
R
false
false
1,076
r
script.R
##More kmeans clustering require(ggfortify) require(cluster) ##read in agent file mydata<- read.csv("agents.csv") ##perform kmeans clustering m=as.matrix(cbind(mydata$Calls_Handled, mydata$AHT), ncol=2) cl=(kmeans(m,3)) mydata$cluster=factor(cl$cluster) centers=as.data.frame(cl$centers) ##plot in ggplot2 ggplot(d...
4a606d0b8194ee24a8ddb687348e65233e7cb61d
5eac13b1a7d8441a430059b44fdfd10ef8d5fd12
/PlayerID_Scraper.R
8c96f205aa0ffc4fd81e976e1ccecf51f9049ac1
[]
no_license
wrondon23/Baseball-Reference-Scrapers
924666e5f9fb22e8e098718c5ccd33b8d6030ace
112cfe3564be6407ef21f85c3ad0214c14a32792
refs/heads/master
2020-11-29T02:25:29.410217
2016-02-20T18:58:43
2016-02-20T18:58:43
null
0
0
null
null
null
null
UTF-8
R
false
false
1,374
r
PlayerID_Scraper.R
# This scraper builds off the MiLB_Scraper_Batting.R repository by using the baseball-reference minor league reference id URL to scrape each player's major league reference id from their B-R profile. Scrape those files first, then return here to scrape the playerID info. #WARNING: this scrapes from individual player p...
923eb7fe4427ffd44de873dcab6c5781fb99a84f
ba7f71ef4a5d52ff48f7ab49829f2ee4d5cc282e
/man/CDpca.Rd
aa7722b0a9b2e4e1be03dab29ccd185cf8fe7136
[]
no_license
luisrei/new-cdpca
0bd0c06c4ff5a31806e3ad3590ccf60a911f391d
30436e0cb5ab969e90b1d4f8cd2bd7192a9a3feb
refs/heads/master
2020-04-07T17:22:53.628943
2018-11-21T15:31:51
2018-11-21T15:31:51
158,567,531
0
0
null
null
null
null
UTF-8
R
false
true
1,678
rd
CDpca.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CDpca.R \name{CDpca} \alias{CDpca} \title{CDpca} \usage{ CDpca(data, class, fixAtt, nnloads = 0, Q, P, tol, maxit, r) } \arguments{ \item{data}{data frame (numeric).} \item{class}{vector (numeric) or 0, if classes of objects are unknown.} \...
75454c03a1fd14ae5b6437506c1fe1d1a0e4a1cc
1f8f09cefd8ec00b2d68032ebeec74f38d7a072d
/HW4.R
cc3c11df5ebea9ab5bb8655b4166b647752cfaf1
[]
no_license
aliizadi/statistical-inference-course
44934f1415d0672a8a2a86f32551cf7d5739f55f
332e6f8c229eeecd08f08a5691c98d6bf5d32886
refs/heads/main
2023-06-16T09:52:47.585204
2021-07-06T13:33:46
2021-07-06T13:33:46
383,471,829
1
0
null
null
null
null
UTF-8
R
false
false
2,942
r
HW4.R
######## q3 chick_m = Chick$weight[Chick$feed=="meatmeal"] chick_c = Chick$weight[Chick$feed=="casein"] #### a) bootstrap_diff_means <- function(a, b, n_bootstrap=1000){ n_a <- length(a) n_b <- length(b) bootstrap_samples <- c() for(i in 1:n_bootstrap){ bootstrap_a <- sample(1:n_a, n_a, replace=TRUE...
bc938d8505e9568e20c5d2de1f632ba18e526f5b
817712488d5b36c85596e42a0b7178b4a79f95f0
/space_history/r_space/history/wenbenwajue.R
6c76dd442b6ac6c0faddac0de100b1be041f4aad
[]
no_license
TigerZhao007/GitHub
cfa1dcc5589988a18b0f7661e9f72b8088f95ec2
5e08f6a0e4033778f107cc89b422ab107082e4ab
refs/heads/master
2020-10-02T01:25:39.251198
2019-12-12T12:06:25
2019-12-12T12:06:25
null
0
0
null
null
null
null
UTF-8
R
false
false
4,048
r
wenbenwajue.R
# 中文文本挖掘程序 # 调入程序包。 library(rJava) library(Rwordseg) library(wordcloud2) library(tmcn) library(jiebaR) # 简单的分词程序。 segmentCN("这是个中文分词软件。") #分词程序。 segmentCN("这是个中文分词软件。",nosymbol=FALSE) #输出标点符号。 segmentCN("这是个中文分词软件。",nature=TRUE) #输出词性。 # 人名识别功能。 getOption("isNameRecognition") ...
1978f9fb16663fe74ede816b737af57fb5357ed8
dfa24df6e16ccbde5be38539588c1466a59b6fc2
/R/seg_sites_fasta.R
9e13732794231e4ca48800653cf77cd0c9ddfcde
[]
no_license
hmorlon/PANDA
2140e768cebb54d54ab07ea7f5b66c79945121ee
34cdff313b8db213a4e6119e93a4810608cfc32f
refs/heads/master
2023-08-23T14:21:55.066295
2023-08-10T15:08:40
2023-08-10T15:08:40
16,514,123
21
17
null
2022-10-05T14:47:48
2014-02-04T14:28:47
R
UTF-8
R
false
false
145
r
seg_sites_fasta.R
seg_sites_fasta <- function (x) { S <- which(sapply(1:ncol(x), function(i) length(which(!unique(x[,i]) %in% c("-","N","n"))))>1) return(S) }
e6a5502947eeae9f44d97978b914ff9b66b1dd50
88d2c333716d4c1b939459eda4b25360fa1df9d7
/man/ang.out.Rd
f7bc3b9140c5e4b415426b8028abb362a9bf0382
[]
no_license
grundy95/changepoint.geo
77f0dd9b2fa49f5ab4accb4e45139baed3d3eb0e
8249e5be372ee9c2349ba84597fce5e9bc4a46e4
refs/heads/master
2023-03-27T00:57:28.959748
2021-03-25T16:16:19
2021-03-25T16:16:19
211,331,641
5
0
null
2021-03-25T15:11:32
2019-09-27T13:58:53
R
UTF-8
R
false
false
511
rd
ang.out.Rd
\name{ang.out} \alias{ang.out} \alias{ang.out-methods} \title{ Generic Function - ang.out } \description{ Generic Function } \usage{ ang.out(object) } \arguments{ \item{object}{ Object of class cpt.geo. } } \details{ Generic function } \value{ Numeric vector of changepoints in angle measure. } \author{ Thomas...
e62923d6cb7b2a0f6fedfc117872b8f40f4b49df
e8edbb9c53aa6e99e78289f2d68ebeb2699f2a52
/Chapter4.R
39e78e98c3cd0c253a7a1021b13ad654ddecf2ca
[]
no_license
iinatuomainen/IODS-project
77c592a9dacfa37ad9f4bb3681a9afcd9f348a24
b9d6e5c347415f62a6291e7e98ad8db8fef8f196
refs/heads/master
2020-09-01T15:36:35.482733
2019-12-09T14:06:44
2019-12-09T14:06:44
218,994,594
0
0
null
null
null
null
UTF-8
R
false
false
1,742
r
Chapter4.R
library(MASS) data("Boston") str(Boston) dim(Boston) pairs(Boston) summary(Boston) library(corrplot) m <- cor(Boston) corrplot(m, method = "circle") boston_scaled <- scale(Boston) summary(boston_scaled) boston_scaled <- as.data.frame(boston_scaled) summary(boston_scaled$crim) bins <- quantile(boston_scaled$crim) cri...
f1475c055467a31d35317e1ed68fcf1a05fb920d
34cb1d78e4a680a0fb6e6df7defc686149bed189
/R scripts/CopyMetadata.R
fc31797e6fc51b0dc835e9f02bc6f50e795405e3
[ "MIT" ]
permissive
JowehL/Improving-Thermal-Images
7f0c5184dbefca40017da3193b018c5d4993395e
772204fa12d8088c6bd8e5f2fd7aeeb32ac296a2
refs/heads/master
2022-11-11T15:40:43.607451
2020-06-28T21:33:19
2020-06-28T21:33:19
275,670,043
1
1
null
null
null
null
UTF-8
R
false
false
1,025
r
CopyMetadata.R
library("exifr") # Create a function with arguments. new.copy_metadata <- function(image_file, folder_path="", output_path="Output/") { ## Create image path image_ori = paste(folder_path, image_file, sep="") image_cal = paste(output_path, image_file, sep="") output_folder = paste("-o ", output_path,"GPS_metada...
984c2640a0799c2e0719158d2a58a5b9673baca0
83d9e393402aa92dce1a158ac9019e1d0ae5a4c9
/step_selection_analysis.R
58d88c4cfbded3ebcd04533c9d26f1d42cb748b3
[]
no_license
mahle68/global_seascape
74b49231dcaef73ca18711d217c1e63628b76add
de9cecf886c7cd6e47fb9cb625949c53bd8c6da3
refs/heads/master
2022-02-22T16:08:06.655422
2022-01-27T07:33:37
2022-01-27T07:33:37
223,146,833
0
0
null
null
null
null
UTF-8
R
false
false
7,872
r
step_selection_analysis.R
# Scripts for step selection function analysis # This is script 2 of 4 for reproducing the results of Nourani et al 2021, ProcB. # session info is provided at the end of script 4 (all_figures.R) # Elham Nourani, PhD. June. 2021; enourani@ab.mpg.de #----------------------------------------------------------------- #to ...
d3d96a1d34a2c3f5a74eab5e0e337b0afdc920e4
f8019d1e47b1f96f0b648c87ded364a1669faff1
/tests/testthat/test-emojiscape.R
5d7d392c910bb74042b2e8618d153bffadc2b3e9
[ "MIT" ]
permissive
matt-dray/emojiscape
ac37bbd6cf5bc5ba42a9b908f2cd426756de3481
5048606a6837d47d843e630db23e53baa3d761e6
refs/heads/main
2023-06-04T14:25:41.955166
2021-06-26T13:10:41
2021-06-26T13:10:41
379,699,420
2
0
null
null
null
null
UTF-8
R
false
false
514
r
test-emojiscape.R
test_that("error on bad terrain", { expect_error(generate("x")) expect_error(generate(1)) expect_error(get_set("x")) expect_error(get_set(1)) }) test_that("messages on bad grid_size", { terrain <- "ocean" expect_error(generate(terrain, -1)) expect_warning(generate(terrain, 0.1)) }) test_that("data...
fd7b8261aaa8708df1954e552750cef8b136f540
c5faa9a2e350978662624f73725eb7ee02c55cb0
/man/plotSpatial.MicroarrayData.Rd
be9b3ca8c0b9899912ef8e99bea07d8d10b647c0
[]
no_license
HenrikBengtsson/aroma
341cc51ddd8f9c111347207535bfe2a85ea7622a
c0314ea003fb1d99d0db7f314e86059502d175c6
refs/heads/master
2016-09-05T18:24:56.275671
2014-06-19T04:13:11
2014-06-19T04:13:11
null
0
0
null
null
null
null
UTF-8
R
false
false
3,048
rd
plotSpatial.MicroarrayData.Rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % MicroarrayData.PLOT.R % % on Tue Jan 15 18:33:31 2008. % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
98f45cc9b8ed57d797be894fdfcb9c4010f577f8
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/pwr/examples/cohen.ES.Rd.R
d3e939cd602f371f43dfce94233c5004d92489d4
[]
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
444
r
cohen.ES.Rd.R
library(pwr) ### Name: cohen.ES ### Title: Conventional effects size ### Aliases: cohen.ES ### Keywords: htest ### ** Examples ## medium effect size for the correlation test cohen.ES(test="r", size="medium") ## sample size for a medium size effect in the two-sided correlation test ## using the conventional power o...
299a01824eeb68493725c7aa31d398a17c47f961
4713ce417897a95260d61762d170c090b5024859
/data-raw/MLGrawdata.R
a5d328a030c9c0b4ecabb99d92244b4cc0b7dd1f
[]
no_license
nicola-sartori/MLGdata
6a75c470d025271258388b39803fc302a18211c8
2591593f3ccd263e446fd17c387c81d57e4e2fae
refs/heads/master
2022-12-11T14:17:08.662675
2020-09-17T13:39:50
2020-09-17T13:39:50
296,320,209
0
0
null
null
null
null
UTF-8
R
false
false
5,727
r
MLGrawdata.R
# create data objects that are stored in /data directory of the package ######################################################################## # Neonati Neonati <- read.table("./data-raw/birth.dat", col.names=c("peso","durata","fumo")) Neonati$fumo <- factor(Neonati$fumo) levels(Neonati$fumo) <...
8baff7735b908d3852bcafec83dca5f846fe5b3f
7a646632f9daf6f0e83b4076a79140c8e2814b87
/R/res_munge_mer.R
be50f0344696bdd0044cdd7a32c08914b62b208d
[ "MIT" ]
permissive
USAID-OHA-SI/Resurrection
7d01685bb82c163b29f85c251b2bfb4d0c70a250
2ea85356bda4b16cc0663a070f5a303184e55664
refs/heads/master
2020-04-15T22:38:45.422968
2019-02-04T15:37:51
2019-02-04T15:37:51
165,080,831
0
0
null
null
null
null
UTF-8
R
false
false
1,613
r
res_munge_mer.R
# MUNGE MER DATA # Project: Resurection # A.Chafetz, USAID # Purpose: clean up MER data for use # Created: 2019-01-10 # MUNGE ------------------------------------------------------------------- ## MER - beneficiaries ben <- df_mer %>% filter(((indicator %in% c("HTS_TST","HTS_TST_POS") & s...
0e05b31c932a16e9451c538457ccf3a8904e57d5
645b8d1565e25244cb1c8030542bcd77114cb841
/Data-StoryTellingA/apendix.R
94a520a5920f91529ccbcce336155a27cb868fa0
[]
no_license
mahesh122000/R
e649e3dc8181af04d325e4089a935717f811d8f2
1ff933f51191ab1585bdaf0d9013abad4c0f3e4f
refs/heads/master
2021-01-07T05:20:31.455717
2018-03-03T04:10:25
2018-03-03T04:10:25
null
0
0
null
null
null
null
UTF-8
R
false
false
711
r
apendix.R
### 부록: 한국어 형태소 분석 ### install.packages("KoNLP") library(KoNLP) # 사전 설정 useSejongDic() #useSystemDic() # 소설 'B사감과 러브레터'에서 명사 추출하기기 # 소설 파일 읽기 sagam <- file("sagam.txt", encoding = "UTF-8") # 읽은 파일을 한 줄씩 저장. novel <- readLines(sagam) # 한 줄 단위로 분석해서 명사 추출 myungsa <- sapply(novel, extractNoun, USE.NAMES = T) extra...
360afa01a3cc2b0261894e8ebaf19f491b08d108
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/edgarWebR/examples/latest_filings.Rd.R
d67a36ae74ecdaddd1af150287a22ddab4fcb52c
[]
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
142
r
latest_filings.Rd.R
library(edgarWebR) ### Name: latest_filings ### Title: SEC Latest Filings ### Aliases: latest_filings ### ** Examples latest_filings()
d5e0bd11742b780c70a90fe071828344d4cebfd7
175e877985e8e9c47c74488577dca20f046cc7a7
/source.R
116c2b3eab971e777df344207bb45ce8beb10eec
[]
no_license
pkasela/Web-Marketing-Project
f9d3d54a1e43d4839fc590eacb4eaf9067333597
4979ca3620bea9c3773316790e901a2db516f22c
refs/heads/master
2020-06-12T09:39:00.920124
2019-07-05T11:23:05
2019-07-05T11:23:05
194,261,233
2
0
null
null
null
null
UTF-8
R
false
false
4,388
r
source.R
set.seed(12345) setwd('/home/pranav/Desktop/Web-Marketing-Project/') #Nella cartella del codice ci deve essere una cartella con nome "datasets" #contenente le 7 tabelle dei dati #Script preparation as done in class source('Email_Engagement/script_preparation.R') #model using Decisition Trees(DT) and RandomForest(RF) ...
f1daf3d175c9fd886d1ac1830c7fb85d14ede002
df0fc04359afff91abce4887935db2fe03ea8cac
/shiny/server.r
c6440824485943d60b2fa2f976089bc1c68b7a75
[]
no_license
WolfgangGross/Social_Data_Mining
bc5d9d4d067e453ffd1c5307a62c58f15f1ad67b
82ba9badf79629104ccce1bd24aa05d309c5af77
refs/heads/master
2020-06-03T10:07:59.680865
2014-10-28T08:18:06
2014-10-28T08:18:06
null
0
0
null
null
null
null
UTF-8
R
false
false
509
r
server.r
#shiny server library(shiny) library(ggplot2) library(bit64) df1 <- readRDS(file="plot_second.Rda") df2 <- readRDS(file="plot_minute.Rda") df3 <- readRDS(file="plot_hour.Rda") shinyServer( function(input,output){ output$outText <- renderPrint(input$timeInput) output$plot <- renderPlot({ temp <-input$tim...
a29c8a8d0cd2b1134c273295af2f9dcf11cbaaa3
4c3b7f1443db0b3e64a3c92fa364d5910fced314
/cachematrix.R
eb6aad6bf6228ba317aa26009685ed702d72b418
[]
no_license
aksrathore/ProgrammingAssignment2
4889e3f4af1d52cb454ca07a1b0d3a5928c3fb17
a9baebc09f84fb0850e41a9546a049c37d37bce6
refs/heads/master
2021-01-18T06:45:30.780146
2016-02-07T13:05:13
2016-02-07T13:05:13
51,246,395
0
0
null
2016-02-07T12:14:08
2016-02-07T12:14:08
null
UTF-8
R
false
false
1,385
r
cachematrix.R
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function ## Inverse matrices are stored in the memory using scoping rules makeCacheMatrix <- function(x = matrix()) { matrixInverse <- NULL set <- function(y) { x <<- y matrixInverse <-...
bcf70cd463d7a1837e1a1aa255dc8c975061e0e5
246e5b2ac47a2adda553f1704ad758319be568df
/man/image2swf.Rd
df0516a8092ad55cd710177645f97fc257414bf8
[]
no_license
yixuan/R2SWF
1537d098a0883d19eb29b8cd7045dfc1f85cb1c7
ab30bb7df96a5039bd7edfcd5c39f35a3dfbfca3
refs/heads/master
2022-11-25T14:54:20.088634
2022-11-17T05:17:45
2022-11-17T05:17:45
12,831,383
3
1
null
2020-06-22T00:14:47
2013-09-14T15:27:48
C
UTF-8
R
false
true
1,290
rd
image2swf.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xx2swf.R \name{image2swf} \alias{image2swf} \title{Convert bitmap images to SWF} \usage{ image2swf(input, output = "movie.swf", bgColor = "white", interval = 1) } \arguments{ \item{input}{the file names of the images to be converted} \item{o...
bb8e4ea50fbd7d562fefaa1220a7778a4456f6ce
898c7003f627db881ea0d64b5b9c9c620bacec66
/man/rfEwasExampleBetaValues.Rd
1e84f7ec101843fca5c810ed0e95b791d49d22e4
[]
no_license
cran/RefFreeEWAS
e713c9faf8433bc6a004e620b991a48f84e774db
cf44701b7b60234f5c52b3eb56bfc0ed6ee784e7
refs/heads/master
2021-06-01T22:08:44.413495
2018-12-14T05:00:03
2018-12-14T05:00:03
17,693,283
0
1
null
null
null
null
UTF-8
R
false
false
389
rd
rfEwasExampleBetaValues.Rd
\name{rfEwasExampleBetaValues} \alias{rfEwasExampleBetaValues} \docType{data} \alias{rfEwasExampleBetaValues} \title{Simulated mixed-cell DNA methylation data set} \description{1000 CpG sites x 250 subjects. First 250 CpGs are DMRs for the cell types, although the idea is that this would not be known in practice.} \us...
054e11ec6c9af73c5ae93e252de57f4c4ca21b26
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/fda/examples/lmeWinsor.Rd.R
f642185c26133ab9c75e30090fa84da64d9d5fe6
[]
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
381
r
lmeWinsor.Rd.R
library(fda) ### Name: lmeWinsor ### Title: Winsorized Regression with mixed effects ### Aliases: lmeWinsor ### Keywords: models ### ** Examples requireNamespace('nlme') fm1w <- lmeWinsor(distance ~ age, data = nlme::Orthodont, random=~age|Subject) fm1w.1 <- lmeWinsor(distance ~ age, data = nlme::O...
e2bb038ff36ee4bf9ef7b9d074df36be7c5f22ac
e294c658ff4ea61a8ae729fc1735b3e64afd69bd
/Rwanda_Map/scripts/Rwanda_ggplot_quick.R
31fbe45a17a2bc7fce210bbcca4b207724482c6e
[]
no_license
ElliotMeador84/Rwanda_2
ff4179a963e6b1902fc3ece7624b315bc41ae15c
f49b326f5a23c1d1b746095695dd642f453f6391
refs/heads/master
2021-04-28T05:40:14.994501
2018-06-01T15:29:19
2018-06-01T15:29:19
122,182,515
0
0
null
null
null
null
UTF-8
R
false
false
2,941
r
Rwanda_ggplot_quick.R
# Libraries , dasta and functions ------- library(tidyverse) library(RColorBrewer) library(ggrepel) source('C:/R/all_functions.R') # coop_location <- read_csv('data/cleaned_files/Coop_location.csv') # save(coop_location,file = 'data/coop_location.RData') load('Rwanda_Map/data/rwanda.shape_df.RData') load('Rwanda_Map/da...
c064fa022782a7541bb02ef19f078ae08c8775bc
736a4eb05526fe62fe7ae1123ca57fcf8ab40e6e
/Plotting/effect.plot.R
c0969440088426dadd9069f6167c94a253279d00
[]
no_license
ScottZimmerman/ADRD_Trial_Sim
cb4d6b25c402a890bfce6b82feb12278ba8a1395
318cd584cbb1d3025ad8d34f4fc93a130bb190a1
refs/heads/main
2023-01-31T01:06:26.766712
2020-12-16T20:43:08
2020-12-16T20:43:08
319,128,360
0
0
null
null
null
null
UTF-8
R
false
false
2,082
r
effect.plot.R
#' Plots the estimated effect size at different end points #' #' @param inputs list. Contains `months` character vector. List of study end points #' `effect_size` character vector. List of estimated effect sizes at each end point #' `ci_low` character vector. Li...
b5eff21f47830d359f7a402d92339d77da10d6f6
2baed5a8a605c42d1e8ba05a341ac1ef63bcfeb2
/package/R/data.R
e948dffc5816357b8e622235186d27220c207f0c
[ "MIT" ]
permissive
dynverse/dynbenchmark
0c58ef1a9909b589b1cd8b0a0e69c2fa222aeb2b
8dca4eb841b8ce6edfb62d37ff6cfd4c974af339
refs/heads/master
2022-12-08T04:01:13.746186
2022-11-25T08:25:50
2022-11-25T08:25:50
102,579,801
171
40
null
2019-04-07T20:59:59
2017-09-06T07:53:11
R
UTF-8
R
false
false
769
r
data.R
#' Mapping ensembl or entrez ids to symbols #' #' @docType data "id_mapper" #' Common manual labelling #' #' @docType data "labels" #' Metadata on error reasons #' #' @docType data "error_reasons" #' Metadata on topology inference types #' #' @docType data "topinf_types" #' Metadata on prior types #' #' @docType da...
454606d58f10666675c7ae2ff93dd97c140f6cb0
f3e914e8a3ccb1c4d73555321e3eaf52b59f52e0
/R/6.3course.R
c06046608d43d1b68fdfa305f541d291d6704066
[]
no_license
youjia36313/learn_R
08be35ebc032839e8c25466c63ae5a0292069855
674de3d09e0e7dfec2d3e164ffab98e0c40ca597
refs/heads/master
2020-09-15T19:39:00.136679
2019-11-23T06:37:41
2019-11-23T06:37:41
223,541,846
0
0
null
null
null
null
UTF-8
R
false
false
353
r
6.3course.R
n <- 100000 x <- runif(n,-1,1) y <- runif(n,-1,1) count <- 0 for(i in 1:n){ if(x[i]^2+y[i]^2<1){ count <- count+1 } } print(count) 4*count/n n_exp <- 10000 n_sample <- 10 count_1 <- 0 for(i in 1:n_exp){ x <- rnorm(n_sample,0,1) t_0 <- mean(x)/sqrt(var(x)/n_sample) if(abs(t_0)>qt(0.975,n_sample-1)){ count_1 ...
8cf0ecf85d8e24d7726183dd9968b0d16af3fafa
ffdea92d4315e4363dd4ae673a1a6adf82a761b5
/data/genthat_extracted_code/psych/examples/cubits.Rd.R
de74a192698300e031ac7a1dd50010b2d35750d8
[]
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
587
r
cubits.Rd.R
library(psych) ### Name: cubits ### Title: Galton's example of the relationship between height and 'cubit' ### or forearm length ### Aliases: cubits ### Keywords: datasets ### ** Examples data(cubits) cubits heights <- table2df(cubits,labs = c("height","cubit")) ellipses(heights,n=1,main="Galton's co-relation dat...
a77d7222cf47567e773842fca2db3f2b12e6b9d4
51b243709faabb0f7d42017bb804eb3df2d24d5c
/RMSD.R
90edff33a2b251333fa6092a0fcb70647bf3787c
[]
no_license
331065314/Data-Visualization
a2b69b017a1fbe04d809bfb7a5b7a68f5c1b93f9
36188894f052c191fe1d393826bcaf8a0647acd9
refs/heads/master
2020-09-07T00:16:02.657104
2019-04-06T07:17:19
2019-04-06T07:17:19
null
0
0
null
null
null
null
UTF-8
R
false
false
2,141
r
RMSD.R
#=============================================================================# # Author: DoubeeTwT # Function Name : RMSD # Usage: RMSD(n=25000,t=0.002,text_size=15,title_size=25,f=c(...)) # # -n num,number of frames you choose # -t num,interval time...
4904e002ba77d08ae425db20dbf36a7d48ab6b5e
1038d9b180c8e9c591ff4325b4b0a3d45e389816
/hw4.R
f3369f8682da60d0d06b68f03f5647cac76a81d2
[]
no_license
bret-harv/lyman_break_galaxy
53024d77b304c0df3b09a01ec07202cf2baf7b94
52e0d95066ee3679b9d4b1a0f52092c80603247b
refs/heads/master
2020-08-22T14:18:43.347449
2019-10-20T19:17:37
2019-10-20T19:17:37
216,413,546
0
1
null
null
null
null
UTF-8
R
false
false
2,162
r
hw4.R
# Run from the command line via, e.g., # R CMD BATCH --no-save '--args <template spectrum> <data directory>' hw3.R require("astro") rm(list = ls()) args = (commandArgs(trailingOnly=TRUE)) if(length(args) == 2){ template_spectrum = args[1] data_directory = args[2] } else { cat('usage: R CMD BATCH "--args <temp...
06c9717f9facdbb11d9cda827d6dbaa14f53b567
f99ec2ade9dcf8e2cf0e21e50ab78b2396747952
/man/uflist.Rd
dc435d8837e5046297e2ee5ef21d89f58306ea7b
[ "MIT" ]
permissive
kimjoaoun/owdbr
39d46c2f1cd3b5414a1bbec0892bcd22cf183415
bbc696d041936f9689ca44eb9d3b9d8c0e2ad806
refs/heads/master
2021-07-15T01:48:46.232456
2019-08-15T20:30:35
2019-08-15T20:30:35
182,590,699
15
3
NOASSERTION
2019-05-27T02:30:07
2019-04-21T22:59:18
R
UTF-8
R
false
true
1,282
rd
uflist.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uflist.R \name{uflist} \alias{uflist} \title{All the State's UF Codes.} \usage{ uflist(region = NA) } \arguments{ \item{region}{filter the UFs (Units of the Federation or States) by geographical region. If NA, all state are shown. According t...
4fc7c4a8118444fdd62da2049e020fe85cfbb018
44a53114076deadba6bd07b4617aed67b62f0585
/R/RcppExports.R
dbb72c2bce9b5c0f15d536a04a4a635bfd78530e
[]
no_license
Dragon-Dane/longBayes
ddd199f3c4fbcd8aa364b881aeb16c510ea31e11
b80716ed1b1868eedd100b1422d96583708b0630
refs/heads/master
2023-08-09T03:09:49.971016
2018-03-31T12:45:20
2018-03-31T12:45:20
null
0
0
null
null
null
null
UTF-8
R
false
false
2,029
r
RcppExports.R
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 rcpparma_hello_world <- function() { .Call('_longBayes_rcpparma_hello_world', PACKAGE = 'longBayes') } rcpparma_outerproduct <- function(x) { .Call('_longBayes_rcpparma_outerproduct', ...
6d461a8bbb162f76ede1c6ed3707c522a164d318
58bfe374a4376e014629dc3df2a8c74559815010
/finalProy/server.R
f1880eed97eda5ef4b99831fc72d5594c3d8d152
[]
no_license
colombianBP/DevelopingDP
5aa99d19931d6614c4229efdb7c0b637351524a3
2d84a54bb43eba0a4bbdc66e7ad9db6c79b27337
refs/heads/main
2023-06-27T07:18:02.619934
2021-07-15T17:39:54
2021-07-15T17:39:54
386,375,278
0
0
null
null
null
null
UTF-8
R
false
false
1,518
r
server.R
library(shiny) transform2<-function(x){ out="" if (x=="Miles/(US) gallon") { out="mpg" } else if(x=="Number of cylinders"){ out="cyl" } else if(x=="Displacement (cu.in.)"){ out="disp" } else if(x=="Gross horsepower"){ out="hp" } else if(x=="Rear axle ...
c0c51397ceddfbecbc4fe804a0032e72acc34072
a6efc0d1d7f13d65dff45b9872f2da85127ff5c6
/lfp.R
5626fa581399835bf8f19335db2455b380d9315d
[]
no_license
tigerfromlondon/gamma
5686176310073fd49fa58b666eabc217a7a7975d
6789694a270ad91caeea2c4e4a82e03d92353798
refs/heads/master
2021-07-12T20:32:31.088556
2016-11-23T15:58:12
2016-11-23T15:58:12
37,694,161
0
0
null
null
null
null
UTF-8
R
false
false
1,202
r
lfp.R
lfp <- function (filename) { #read libraries etc library(dplyr) #read the lfp table, remake it into nsweepsx12, bind proper names lfptab <- read.csv(filename) r1 <- lfptab[seq(3, nrow(lfptab), 4), ] r2 <- lfptab[seq(4, nrow(lfptab), 4), ] r3 <- l...
2571a2496d1703322b4b08caef89df35a2671801
4e6184920e460006e7aaa0e377fbf3723d41a078
/R/gbif.R
8ce48e7d35cb175a955f93a59034dc54618e3190
[]
no_license
dreamRs/conrappli
ee5fb0502ace498cd04a8f5e872dca9793c3e86b
a8525c63bf33906907796dad12128376b1f14a4c
refs/heads/master
2023-08-31T13:09:24.261571
2023-08-23T13:43:53
2023-08-23T13:43:53
466,046,452
2
0
null
2023-05-22T08:04:29
2022-03-04T08:41:38
R
UTF-8
R
false
false
2,051
r
gbif.R
#' Search species information #' #' @param species_name Character of species names. #' @param match_type Type of match for scientific names found: exact match or above confidence level specified. #' @param confidence_level Confidence level to use for matching scientific names. #' #' @return A `tibble` with info found ...
fd6e9f2d1c32e44b69250626e5d4e93c0556c804
095093d840ce957dc420a7ff010272e4a97cff62
/lib/sig+prediction.R
b3bea574fb79c85cfa10366fbe54d2805461f48e
[]
no_license
YUNLI531/Fall2017-project4-grp8
a5c851c0b48ce54c3c98a7d487b5037a1f8668e5
fcc89ddb7d0ae341ee8f3fa266e9a166afe58e33
refs/heads/master
2020-03-09T03:48:29.003539
2017-12-06T21:36:37
2017-12-06T21:36:37
null
0
0
null
null
null
null
UTF-8
R
false
false
1,573
r
sig+prediction.R
################### web spearman source("./msweb_spearman-copy.R") #source("./function+for+making+prediction.R") load("../output/web.train.matrix.Rdata") data1 = web.train.matrix load("../output/web.sp.sim.Rdata") web.sp.sim = (web.sp.sim - min(web.sp.sim))/(max(web.sp.sim)-min(web.sp.sim)) sim1 = web.sp.sim web.sp.p ...
ed4438c0b3180071d3da92cb1dff3c87cbb409ba
53de60b485e5642bd1cc7634eaa8b7bf04caeb27
/code/SDFBFunctions/man/format_text_and_split.Rd
ef67373d83916b2de75a556a9d9fb846671e4b23
[]
no_license
wallingTACC/sdfb_network
4061ae0fafef695d189fe13b97b14c66863b8ecf
38649a628c1f834767b1c14bdb4402863f5f325a
refs/heads/master
2020-04-05T23:11:51.984616
2017-01-30T17:52:27
2017-01-30T17:52:27
60,351,123
0
1
null
2016-06-03T13:48:46
2016-06-03T13:48:45
R
UTF-8
R
false
false
834
rd
format_text_and_split.Rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/NER_processing.R \name{format_text_and_split} \alias{format_text_and_split} \title{This function does the following: 1. add spaces before punctuation 2. add spaces before/after (), [], {}, as to separate them off => easier to count 3....
ca564ab71d097102e309f0fdfe976e22cbd0bf42
5ffbc2901018132d3a0aea7d640ec04a29dc2127
/R/grplot.R
3e258711734e14f32612644d8c8317a1bba61f51
[]
no_license
dwulff/memnet
7282e437e4c91fde96b816b9be6f25215c8da408
a176590e6560d5ccf361d860eaf11520a0e16fc7
refs/heads/master
2020-04-05T14:11:05.609461
2018-10-31T07:02:12
2018-10-31T07:02:12
94,814,857
1
0
null
null
null
null
UTF-8
R
false
false
22,360
r
grplot.R
# -------------------------------------------------------------------------------------------------------------------- # # # HELPERS # # -------------------------------------------------------------------------------------------------------------------- # # Circles -------- inPi = function(x) (x/360)*(pi*2)...
1ca5c03824511e75939e020c18467a0cc7eebcc9
a0f0fbdb1e7f3e13def6b0b7c549554aca39fce3
/bikeSharing.r
6be471ca6867faf2a9b3420b1bb21d43d5066b44
[]
no_license
git874997967/Kaggle-porject-3
05840c326376808d5bc24d1188bec9eb54160420
413acc4695b1c41fd2f8733b9623710dbd76280f
refs/heads/master
2021-04-30T06:32:12.310236
2018-02-20T19:56:45
2018-02-20T19:56:45
121,446,461
0
0
null
null
null
null
UTF-8
R
false
false
6,661
r
bikeSharing.r
train<-read.csv('train.csv') test<-read.csv('test.csv') test$registered=0#由于测试集没有会员的租车的数量,所以为了下面进行合并,先补充测试集这个变量,并设置为0 test$casual=0#由于测试集没有非会员的租车的数量,所以为了下面进行合并,先补充测试集这个变量,并设置为0 test$count=0#由于测试集没有总租车的数量,所以为了下面进行合并,先补充测试集这个变量,并设置为0 data<-rbind(train,test)#合并数据集,方便进行特征工程 table(is.na(data))#查看是否有空值 #描述分析 ...
94d94ee0b906daa329daf155ba7a8172c892ee97
42ff40e63ba5c362f8067a7503aa7d1aa2263109
/scripts/MismatchRate_ELP.R
028bafe8232ebada8b5c0985944833211159be2d
[]
no_license
mfisher5/PCod-Korea-repo
686820f87625e5a7ea68c97c9286b783199c267e
90324e4431292fda757abb364bcc002dd4117e7e
refs/heads/master
2021-01-01T16:37:52.932264
2018-08-20T23:12:16
2018-08-20T23:12:16
81,503,317
0
0
null
null
null
null
UTF-8
R
false
false
2,420
r
MismatchRate_ELP.R
# This code was written by Eleni and Dan on July 18, 2017 # Function of the code: # This code will compare replicated samples for genotype mismatches. # Genotype mismatch rate is defined as = (number of mismatches)/(number of loci genotyped in both samples being compared) # 1. Reads in a matrix of genotypes. Columns ...
9909d3ff9b701cb5cf9507a1f3eb9217494acef9
a89f82ced9166fd96963897d31100d021698d14b
/app.R
12b45f5672cee82822fbab5e6f4f44c99396452f
[ "MIT" ]
permissive
BriGitBardot/CommunicationMethods
5644ed7ed6db940d1d086e0f3c500c57ea236b0c
3ba65afaae9c8afb5489f2acc5c22312f8a6975d
refs/heads/master
2021-01-22T10:02:31.405617
2016-09-20T17:48:41
2016-09-20T17:48:41
31,183,380
0
0
null
null
null
null
UTF-8
R
false
false
15,188
r
app.R
# define javascript function for responsive sizing of plots jscode <- '$(document).on("shiny:connected", function(e) { var jsWidth = $(window).width(); Shiny.onInputChange("GetScreenWidth",jsWidth); });' # loading the necessary packages into the session library(shiny) library(rCharts) library(plyr) library(RColo...
75ffed2cb26bb82bc5966f381b00d25f0859976a
56ea25a737d282ed49b40ede9ea670f05c41a9ea
/Harris_Matrix/HarrisMatrix_URCode.R
126c2abcbc7ea42cae618872cb59b3af2534c65c
[]
no_license
crystalptacek/Stratigraphy
02972ae6a8e61b5a5f102936e9f90b1cc0c30431
4dc008bdae12535d8ff3b61cf3818938feed12bf
refs/heads/master
2022-03-25T07:38:29.615851
2019-12-09T19:44:46
2019-12-09T19:44:46
null
0
0
null
null
null
null
UTF-8
R
false
false
32,759
r
HarrisMatrix_URCode.R
# Filename: HarrisMatrix_URCode.R # Purpose: Sections 1-5 pull Stratigraphic Information from the Context tables and # gets them into a form that works for ArchEd. There are several data integrity # checks. There is an option to replace individual # contexts with their SG. # Section 6 uses Rgraphviz packag...
6f732dad1309746319409aa3228bb408af59e615
39f4df1f5c2faadbdf366d65ede30aa5edba3497
/R/factors.R
ddd8ca5855fcc8f11faa77409f2a928d8f975d74
[]
no_license
cran/kutils
a19c69b6730548aa849ca841291d95de92dd3863
53ada7e4308f456a0a109955ecfd9122f6263aba
refs/heads/master
2023-07-10T17:11:29.010416
2023-06-26T21:40:02
2023-06-26T21:40:02
77,183,151
0
1
null
null
null
null
UTF-8
R
false
false
2,578
r
factors.R
##' Reverse the levels in a factor ##' ##' Simple literal reversal. Will stop with an error message if x is ##' not a factor (or ordered) variable. ##' ##' Sometimes people want to ##' reverse some levels, excluding others and leaving them at the end ##' of the list. The "eol" argument sets aside some levels and puts ...
c03efde0033f5f068df16b7e9a556a00ac95a1fa
c55995032be21e83cccd79f7bc587ed8ad705e8d
/inst/munge_scripts/target_os_file_processing/target_os_expression_tab2csv.R
e7e3bd38670c27552aadb8a9870184fc9ef88f84
[]
no_license
teamcgc/TARGETCloud
d32339a72093d683d6b15122a1b3db3c0c6e9a93
ae916e4f9104c8a1c7188621d47d3069e7342b55
refs/heads/master
2020-07-28T09:44:48.678109
2016-11-10T23:44:13
2016-11-10T23:44:13
73,414,487
0
0
null
null
null
null
UTF-8
R
false
false
6,111
r
target_os_expression_tab2csv.R
# 1. Merge all RNAseq gene expression files # as one big file in csv format # ==================================================================== rm(list=ls(all=TRUE)) input.files <- list.files(path="target_os_expression", pattern="gene", full.names=TRUE) length(input.files) # ...
e2365f868fdc81af65eaa1cc4eb0f11c8a2cbce0
7a95687ca2dd7172b7265d129aa0cb6d5d40222b
/man/theoretical_power.Rd
2c3d49c3ef3ae43e136a9f6c4d8a5bfb18af14af
[ "MIT" ]
permissive
diff-priv-ht/nonpmRegPkg
5e869d21a876cc7cc6ffe8411cf90d3fb86a84a9
056b53435f2507224c03639047e6a5d044af95f0
refs/heads/master
2023-01-29T18:16:03.154636
2023-01-22T21:16:35
2023-01-22T21:16:35
190,652,076
0
0
null
null
null
null
UTF-8
R
false
true
1,891
rd
theoretical_power.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/theoretical_power.R \name{theoretical_power} \alias{theoretical_power} \title{Theoretical power of our test} \usage{ theoretical_power( theta_0, M, effect_size, epsilon, alpha = 0.05, X = NULL, groups = NULL, n = NULL, d = 1...
b0de2e943245ca5863fb30af9b5ee55d5ee014c9
b161310d2a789e3a296c17c391adac5cc36f4a39
/mcr1mapping.R
79d0ba6d1dadb441c5d482b51c9badf19e2755b9
[]
no_license
christinecho/Disease-and-Flight-Travel-Modelling
94cc7107dfd820129c8cf21537966fa3609ead16
1f93be72f91692ea74f5e4c455ac068aa2705a56
refs/heads/master
2022-03-15T22:17:54.846219
2019-09-04T14:51:17
2019-09-04T14:51:17
201,417,041
0
0
null
null
null
null
UTF-8
R
false
false
684
r
mcr1mapping.R
library(ggplot2) library(ggmap) library(maps) library(ggthemes) library(gganimate) library(animation) # world <- ggplot() + borders("world", colour = "gray85", fill = "gray80") + # theme_map() # map <- ggplot() + geom_point(data = mcr1, aes(x = Longitude, y = Latitude), colour = "red") # map ndm_sorted<-ndm[order(...
891e28fd9a8af392206024c472731d52fbe9258a
5276f0053b33e16406a58bcf4c8293a9d272ee9b
/R/multiplot.R
5ea95def6f376624b74ffb7d528402f1a6d153c5
[]
no_license
madsboending/boending
cf1314019b6270abfadbf6ffbf61bb2d8b204686
0835955394aa5434f3cdbeb9d9079a5de40ef9ad
refs/heads/master
2021-06-25T08:57:08.137547
2016-12-22T09:11:17
2016-12-22T09:11:17
41,782,730
0
0
null
null
null
null
ISO-8859-15
R
false
false
2,105
r
multiplot.R
#' Plot flere diagrammer på én side. #' #' Funktionen gør det muligt at plotte flere diagrammer på samme side. Funktionen er skamløst kopieret fra http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/ #' @param ..., ggplot objects #' @param plotlist, en liste af ggplot objects #' @param cols, antalle...
54081b127751237fb89f89c21beaab5395b46402
57c6013f7a4636911cef6f0868b858ee907864a4
/DNAreadsToBytes.R
10852c12158b401ee3576b0a3725aa76049c0ffe
[]
no_license
jeanlain/DNAreadsToBytes
06f6b31acb20ed4d1b61cb6aeb1c6c8eb2869d8f
1d824ead34c63a2c65565a5d0f0e3c9084b384b1
refs/heads/master
2022-04-13T13:34:03.761675
2020-01-14T15:14:27
2020-01-14T15:14:27
119,713,194
0
0
null
null
null
null
UTF-8
R
false
false
18,121
r
DNAreadsToBytes.R
require(stringi) require(data.table) require(Biostrings) require(matrixStats) options("stringsAsFactors" = F) paths <- commandArgs(T) # path to fasta file input <- paths[1] # output directory outputFolder <- paths[2] if (length(paths) < 3) { huffmanCode <- gsub("//", "/", stri_c(outputFolder, "/View_huff3.cd.ne...
ee2946bcc51c7b69d220f5add2564a0c79238adf
d423ba647fdc41d4aa41167c8ae6824d36c8e428
/Rcode/cod_condicion_hidrica.R
b1610aef3ae3216c537113d1b7b3f7a49cd5619d
[]
no_license
gastonquero/Paper_Fot_Soja
2943b880716050b0bcddbd6d21089e5f21bab445
319fadbaf5cd317c5eb92b157f54c769c563046b
refs/heads/master
2023-08-30T09:31:18.559439
2021-11-12T18:32:22
2021-11-12T18:32:22
381,450,124
0
0
null
null
null
null
UTF-8
R
false
false
11,465
r
cod_condicion_hidrica.R
################################################################################ # Analisis de datos de consumo de agua soja ensayos preliminares # # # # Don Mario 6.8.i y Génesis 5601 ...
b5eaf9841ca981cf1f3df4fb4f243e92d970d1dd
5a5bc9e1b0d59859b4e213b092e19afe232819e1
/R/wind/wind_downscale3.R
cd2dbd7a1e5b157079bd6fef44edfbbb4c0cf134
[]
no_license
jrmosedale/microclimates
bf469e07b688e9342c0a8d767db84ee428e778f3
ae2e61969631506c523bd618c9106a61b00355dd
refs/heads/master
2021-04-30T15:18:19.091728
2018-02-12T11:31:16
2018-02-12T11:31:16
121,236,443
0
0
null
null
null
null
UTF-8
R
false
false
4,482
r
wind_downscale3.R
library(raster) library(rgdal) # # # # # # # # # # # # # # # # # # # # # # # # # Compare model with Culdrose wind data # # # # # # # # # # # # # # # # # # # # # # # read in two files: #(1) Culdrose weather data - some of these data are missing and the impution is a bit dodgy #(2) tic - this is a version that ha...
ad5bec0ec38b4c55ba35c41d6f2c6348387561af
c2dbfb76ced0fec974431508e0dfcb9833d6d8d8
/Caplazi_Isabel_3-22_Inclass.R
7eb7b2d17382481c01e2f8937789f863cb96c0c9
[]
no_license
icaplazi/DataAnalytics2021_Isabel_Caplazi
90cdd89e95f809ab514ca70c964d279e207e7133
eaddfb8672999a45e59cefe289ce7ffbacd30a4c
refs/heads/main
2023-04-21T10:11:57.589842
2021-04-01T13:38:58
2021-04-01T13:38:58
334,179,584
0
0
null
null
null
null
UTF-8
R
false
false
1,314
r
Caplazi_Isabel_3-22_Inclass.R
############# USArrests Data Set ############# data("USArrests") # US arrest data set View(USArrests) # opens data in another tab states = row.names(USArrests) states # reads off state names names(USArrests) # column names in data set apply(USArrests, 2, mean) # applies mean function to each column/row of d...
47cc13d7517d2b6e886319c12d732398afd06200
b253ea9ffd151dbfe884a01592d910d8244b3984
/Scripts/old_scripts/final_functions.R
90f5da3dae45fd6e150e13ffbbfd68bbcf877ba6
[]
no_license
benmbrew/LFS
4d0bb1b6df268813b69c298cc310f1f3fc65a9b6
1384fc1e5a32e15853bfbbf3df62999fbe1b97de
refs/heads/master
2021-03-12T19:08:05.281863
2019-10-03T15:09:48
2019-10-03T15:09:48
47,150,327
1
0
null
null
null
null
UTF-8
R
false
false
216,108
r
final_functions.R
getSubset <- function(model_data) { # homogenize model_data to model_data_resdi feat_names <- colnames(model_data)[10:ncol(model_data)] model_data <- model_data[,c('age_diagnosis', 'age_sample_collection', 'gender', 'type', feat_names)] return(model_data) } process_rg_set <- function(beta, id_map_1, ...
4e06164e34db799055e4216f67236fb6635e45de
9a835c54b337b14a89dfd0dea3489f2f5c77a128
/2016-08-18-shiny/App/global.R
902898f7d0e0fd7a53c3cac909176b45e406ad06
[]
no_license
MonicaGutierrez/useRbog
42ffa186343e8b73f7639e684d697e854926cedf
05a2171d6a0b59925238682e1fd77566a0c7aa2c
refs/heads/master
2021-01-16T20:53:42.099076
2016-09-13T15:55:32
2016-09-13T15:55:32
null
0
0
null
null
null
null
UTF-8
R
false
false
2,725
r
global.R
library(dplyr) library(plyr) library(shiny) df_loader <- function(input){ list_df <- lapply(1:dim(input$datafile)[1], function(number){ path <- input$datafile[[number, 'datapath']] df <- read.csv(path, header = TRUE, sep = ",", dec = ".", stringsAsFactors=FALSE) df <- df [, c("Div","Date"...
88ccaa35dbfb72695f531c394bf102e1f1fe22ab
be531c0f8f2920fb34c57010923c7c1bcff216c4
/airline_fc_assign.R
475dd6c3bd782546895a95696c1d88a3ee1fff50
[]
no_license
SarthakChitre/DS_Forecasting
2510d31481aed0c9783f3d078cae69b7468f3976
ab2f0ed01b09b1f37267997c41267b9ffc90c041
refs/heads/master
2022-12-03T11:32:11.621731
2020-08-11T07:02:52
2020-08-11T07:02:52
285,646,530
1
1
null
null
null
null
UTF-8
R
false
false
4,612
r
airline_fc_assign.R
install.packages("rmarkdown") library(rmarkdown) install.packages("forecast") library(forecast) install.packages("fpp") library(fpp) install.packages("smooth") library(smooth) #read file library(readxl) airlines=read_excel(file.choose()) View(airlines) plot(airlines$Passengers,type = "o") #Creating dummy...
4a7f12e9e880512396ed5fbee6f2005ac19f50a3
13e5cd3f13e6a2bf300c7199dc26f530ac899ba1
/man/get_polymorph_acc.Rd
481ff6ebcadb0c535c212a84eb1f73a099252d42
[ "MIT" ]
permissive
phue/gwaR
cb4c3213c63f6e5eb9c97320d735637573958e97
80718a405c210555d80116a23be421ced1609087
refs/heads/master
2020-08-28T01:06:01.945434
2019-10-25T13:20:54
2019-10-25T13:20:54
null
0
0
null
null
null
null
UTF-8
R
false
true
549
rd
get_polymorph_acc.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GWAS_functions.R \name{get_polymorph_acc} \alias{get_polymorph_acc} \title{Query the 1001genomes API to obtain accession ids that carry a SNP of interest} \usage{ get_polymorph_acc(gwas_table, SNPrank) } \arguments{ \item{gwas_table}{Object r...
ea71d06effa314ea5418f62d6747e8eff14df0e8
2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0
/fuzzedpackages/seqHMM/inst/doc/seqHMM.R
dd458a1c6beed35c75d3593f8cd5655372390598
[]
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
15,579
r
seqHMM.R
## ----setup, include=FALSE, cache=FALSE------------------------------------ library(knitr) opts_chunk$set(concordance = TRUE, tidy = FALSE) options(prompt = "R> ", continue = "+ ", width = 76, useFancyQuotes = FALSE) ## ----settingdata, message=FALSE, cache=FALSE, echo = FALSE, eval = TRUE---- library("seqHM...
2603a6fb0d299acc2a17727e465d441ad9d59c25
cd812e9a7d34e00a26ce8bdcf81b5eb2d43a4a66
/bearing.R
877eff5bc4a058aa6b3199278e59433d87e34fb4
[]
no_license
anniekellner/ch1_landing
e0644f8b97578dbae499530e20658691b100f99b
f71c76e0e40761cc0b6606bacedf560119b2d1da
refs/heads/master
2022-12-07T22:50:23.557591
2022-12-02T22:31:48
2022-12-02T22:31:48
140,736,188
0
0
null
null
null
null
UTF-8
R
false
false
4,052
r
bearing.R
rm(list = ls()) load('all.RData') swim <- subset(all, swim==1) library(adehabitatLT) library(proj4) # project lat/long to grid for adehabitat M <- as.matrix(cbind(swim$gps_lon, swim$gps_lat)) #create a matrix to project xy <- project(M, "+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +ellps=GRS80 ...
8d0ce70f3a70c09bace1f01af9adb9481ae4a4b2
09604199ee820207ac560b698f8d4392b5d3ec70
/Skripte/calcPhageAbundance_wo_pOTU.R
f580561279916ebd3bb31965af4a55a180e461b6
[]
no_license
EllenOldenburg/master_thesis
c7e321173f3af55b8a0256d505e064a544fbbf5e
ca8d42b67efaf3fecceb4ceac1810ae6b7199d49
refs/heads/master
2022-12-31T19:38:55.046805
2020-10-28T12:56:26
2020-10-28T12:56:26
293,061,043
0
0
null
null
null
null
UTF-8
R
false
false
2,491
r
calcPhageAbundance_wo_pOTU.R
############### ## Libraries ## ############### library(plyr) library(data.table) library(readr) library(ggplot2) library(parallel) ########################### ## Protein to organismus ## ########################### #read files data = fread("/mnt/data_scratch/ovidiu/Ellen/MasterThesis/pOTU_readCount/SRR9178536.txt"...
2fdaa12a2894c1bf6056b20892afadaa5ba498be
51e773e0c7294378152bc0610926da06c64d2eec
/app.R
9a15f782845877846af529a59ec799c5a1c86528
[]
no_license
laurin-f/dreiFragezeichenapp
5c84077b19baed894bb1638b9b3e8683d259c9c3
b95c7bb136fce270713ad643770483210ecd36e0
refs/heads/master
2020-05-04T16:51:32.974416
2019-04-03T14:41:02
2019-04-03T14:41:02
179,290,244
0
0
null
null
null
null
UTF-8
R
false
false
6,499
r
app.R
#install packages # packages<-c("shiny","rsconnect","shinyFiles","rdrop2") # for(i in packages){ # if (!i %in% installed.packages()) {install.packages(i)}} #load packages library(rdrop2) library(shiny) library(shinyFiles) #dropboxdir outputDir <- "dreiFragezeichenApp" ############################ #Functions to sav...
a4e190891f963d3271b5645fdfe22a7dd53f609a
3554cabe4cd7eda7abfba04b37dc9a9b41efaf90
/R_Script_Labelling.R
7499a242a9f1d778f7c8f3c4631e5895c5e52ce2
[]
no_license
cschmidtlab/Labelling_R_Script
0f01921ce06e37d708578f0c5c1df38ad9183236
899a7355ecbfccd534c4e473d7597b6d0a76af1a
refs/heads/master
2020-08-23T05:28:43.190980
2020-02-26T11:17:57
2020-02-26T11:17:57
216,553,628
0
0
null
null
null
null
UTF-8
R
false
false
8,840
r
R_Script_Labelling.R
####Evaluation of NHS-Acetate and DEPC labelling for determination of solvent accessible amino acid residues in protein complexes#### #This R script was used to calculate a normalised intensity for each modified site. #For this, MaxQuant output files containing information on the individual modifications #(e.g. acetyl...
b402005759b26bfa4ca1e9cf02281832e6baa591
22989ddedc61cb52110cd8d9a9c454da71337f8b
/man/xrd.Rd
fcc569f9f00a645ab6aa544eff0304ce6a0ad606
[]
no_license
rmatev/readcern
89a5e72284d9ac1e076ee9048529c847f3d2dc7c
22b5ae18e2220dcd3784e02121b7b3997aa3dfde
refs/heads/master
2022-01-07T22:30:52.742927
2019-05-31T22:26:18
2019-05-31T22:26:18
107,023,663
0
0
null
null
null
null
UTF-8
R
false
true
720
rd
xrd.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xrd.r \name{xrd} \alias{xrd} \alias{xrd_command} \title{Open an xrootd connection.} \usage{ xrd(url, decompress = TRUE) xrd_command(url, decompress = TRUE) } \arguments{ \item{url}{URL starting with \code{root://}.} \item{decompress}{Whethe...
15521c78bdabee6dc0b160c09f3d15a2eec3b980
60a99dc425d9edca7b3dec562f5cf6367d9c61ec
/DistatisR/man/GraphDistatisPartial.Rd
9366048701b656a791ab6f09391cd1b789de7def
[]
no_license
LukeMoraglia/ExPosition1
e7718ae848608f1dc3934513c6588f53f2c45a7f
a69da6c5b0f14ef9fd031b98c3b40b34dad5240f
refs/heads/master
2022-12-31T17:45:10.909002
2020-10-22T19:45:49
2020-10-22T19:45:49
255,486,130
0
1
null
2020-10-22T18:08:38
2020-04-14T02:01:12
R
UTF-8
R
false
false
4,034
rd
GraphDistatisPartial.Rd
\name{GraphDistatisPartial} \alias{GraphDistatisPartial} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Plot maps of the factor scores and partial factor scores of the observations for a \acronym{DISTATIS} analysis. } \description{ \code{GraphDistatisPartial} plots maps of the factor scores of...
87c6fbf3a55a05989c351b723e6bb4b8f8bef46a
3710f7ba59bef100b3f4cc7e13cc248fd3fe61c4
/R/utils.R
3d4f2b1547543cfbdc2fdeb04fad5f4575897284
[ "MIT" ]
permissive
aliouneriddle/shiny.semantic
8959828af6c416cffb5ebf5c4d65ce6e0f0cfbff
8f6dd67faaa1464a76911ed37118afe4fd3d6a89
refs/heads/master
2022-11-19T14:00:24.397199
2020-07-03T13:58:25
2020-07-03T13:58:25
null
0
0
null
null
null
null
UTF-8
R
false
false
623
r
utils.R
#' Parse the `shiny_input` value from JSON #' #' @param val value to get from JSON #' #' @return Value of type defined in `shiny_input` #' @export parse_val <- function(val) { jsonlite::fromJSON(ifelse(is.null(val), '""', val)) } #' Check if color is set from Semanti-UI palette #' #' @param color character with colo...
809a8cf6b07c7ac84e581b46cf68a2cb4242228d
ca9f4ade5bd0dec1d9945ec33ec01386323608a9
/R/tagsim.R
9f26449f47e55b355823cbfb8340fdcc2df8b8e2
[]
no_license
AustralianAntarcticDivision/tagsim
b25baf7bc20d26b83a893214b39155d6830e8443
4c80ac8b5da8445ccae8be9678dd8fe6bae84863
refs/heads/master
2020-05-21T07:26:39.095224
2018-04-10T06:34:13
2018-04-10T06:34:13
84,594,946
4
1
null
null
null
null
UTF-8
R
false
false
1,508
r
tagsim.R
#' tagsim: A simple population model for tag-based simulations #' #' A simple population model for tag-based simulations for fisheries based on #' the fisheries operating model written by Philippe Ziegler. #' #' Simulation model #' #' The simulation model is aimed at evaluating tag-based scenarios, however #' scenarios...
25fdb950aa83a5f8c75295653e16c154725d4afa
9f916fe7828f79b3355bc6ff3509ff4b0a62d0b7
/R/data.R
9ab2b857a608861d8e7bee268a875990b3bcb9e6
[ "BSD-3-Clause" ]
permissive
greenelab/ADAGEpath
9b5d44465a09fbed025bbdd793eaed89e7ec17a2
e556970ef334d86ddfbf533acb8753d4ddb93967
refs/heads/master
2023-08-01T00:11:19.677503
2022-05-20T16:48:18
2022-05-20T16:48:18
70,191,632
5
7
BSD-3-Clause
2022-05-20T16:48:19
2016-10-06T20:46:19
R
UTF-8
R
false
false
4,674
r
data.R
#' eADAGE model #' #' The 300-node eADAGE model used in the paper "Unsupervised extraction of #' functional gene expression signatures in the bacterial pathogen Pseudomonas #' aeruginosa with eADAGE" #' #' @format A data frame (tibble) with 5549 rows and 301 variables. The first #' column is geneID that specifies gene ...
12e0186abe0806067d8de509fb74ef6718557dd5
a97dabb75b5120735a54e251fc036b003f273f4e
/common/functions.R
1f6790a58572feefdb91da552cb0ff13e36c262f
[]
no_license
Acanthiza/template
c72b946aa082fc36aa107aca3ec38ebc56ba5f30
6e8414c856872fae4bcacc2efff1ff1f2d0dc01e
refs/heads/master
2021-07-25T19:16:24.173131
2021-07-22T05:20:21
2021-07-22T05:20:21
240,398,151
0
0
null
null
null
null
UTF-8
R
false
false
35,006
r
functions.R
# https://stackoverflow.com/questions/55432420/how-can-i-commit-changes-to-github-from-within-a-r-script # Git add. gitadd <- function(dir = getwd()){ cmd_list <- list( cmd1 = tolower(substr(dir,1,2)), cmd2 = paste("cd",dir), cmd3 = "git add --all" ) cmd <- paste(unlist(cmd_list),co...
acc21c83928a794a5ce20244c845911b0137dbd4
e7c040329363e813d79b64513bb3ffb3b7573617
/pySAHM/Resources/R_Modules/modalDialog.R
d28f401d3720c73225947793ddde72358edf49dd
[]
no_license
jpocom/sahm
800e9c62b401a11334de74cf1b903f9fc20dd886
9b2f764ec1bb6a01077ddd0030e6dcf26fb24867
refs/heads/SAHM_1_1
2021-01-21T03:51:02.865367
2015-04-07T17:14:45
2015-04-07T17:14:45
33,557,074
0
0
null
2015-04-07T17:11:39
2015-04-07T17:11:37
null
UTF-8
R
false
false
3,907
r
modalDialog.R
############################################################################### ## ## Copyright (C) 2010-2012, USGS Fort Collins Science Center. ## All rights reserved. ## Contact: talbertc@usgs.gov ## ## This file is part of the Software for Assisted Habitat Modeling package ## for VisTrails. ## ## "Redistribution an...
87bc4d98e7bbb6d65376a1289362a1111b5f5ba1
75db022357f0aaff30d419c13eafb9dddfce885a
/inst/IP/bycatchCSAS/9.LandingPredFootPrintMaps.r
950d49749c1f937150ce783db4a2ec96beac3a40
[]
no_license
LobsterScience/bio.lobster
d4c553f0f55f561bb9f9cd4fac52c585e9cd16f8
b2af955291cb70c2d994e58fd99d68c6d7907181
refs/heads/master
2023-09-01T00:12:23.064363
2023-08-23T16:34:12
2023-08-23T16:34:12
60,636,005
11
5
null
2017-01-20T14:35:09
2016-06-07T18:18:28
R
UTF-8
R
false
false
2,739
r
9.LandingPredFootPrintMaps.r
require(bio.lobster) require(bio.utilities) require(lubridate) require(devtools) options(stringAsFactors=F) la() load_all('C:/Users/Cooka/Documents/git/bio.utilities') wd = ('C:\\Users\\Cooka\\OneDrive - DFO-MPO\\BycatchLobster') setwd(wd) p = bio.lobster::load.environment() ef = readRDS('results/LandingsPredictedA...
d7bac33a40c1b4d6f3171f20894696ecc7466166
cce3c2bed76e1b7fb2e2128e25560ac2936ea5c8
/C7.R
6d0b98ccff45e163bb9b6a0fff603da076a22bf8
[]
no_license
linusyoung/DAT209x
2b5fec0a6cfc6c3feb53c8292712cfbf01c0e27b
acd6e8e7d802604c381020dda01e0606accfe0b8
refs/heads/master
2021-01-15T08:19:14.879392
2017-08-14T11:17:23
2017-08-14T11:17:23
99,565,075
0
0
null
null
null
null
UTF-8
R
false
false
244
r
C7.R
# CH7 conn_str <- paste( "Driver={SQL Server}", "Server=msedxeus.database.windows.net", "Database=DAT209x01", "uid=Rlogin", "pwd=P@ssw0rd;", sep = ";" ) conn_str conn <- odbcDriverConnect(conn_str) tab <- sqlTables(conn) head(tab)
fec8b05271057441b2aad6b281a92b577770cd33
448ac5074d4401666b5a3f8ea96b8ba80a88aa95
/plot4.R
8b61c9be1122bf039a825c64910b52b627d635e1
[]
no_license
HabileStudio/4w4pa
3f1d0188b3d261062a0706a29a056e73a91565f1
81c54e7f8f1aa642d2740446511d3dffbdd59599
refs/heads/master
2022-12-23T11:35:35.842542
2020-09-16T09:13:10
2020-09-16T09:13:10
295,111,172
0
0
null
null
null
null
UTF-8
R
false
false
989
r
plot4.R
## This first line will likely take a few seconds. Be patient! rawdata <- readRDS("data/summarySCC_PM25.rds") # Reference SCC <- readRDS("data/Source_Classification_Code.rds") # We remove the pollutant column: # a call to unique() shows always the same value "PM25-PRI" data <- rawdata[,-c(3)] # Across the United Stat...
154569ab34aa03a83edd41d53c28d70463efc2e7
4dd00a8544a7aed138d1ab50bab9b283e78824fa
/run_analysis.R
6b185a42dc8b613d4bd6069bce4b5e7e9f71dc7d
[]
no_license
chongyan11/Getting-And-Cleaning-Data
b951f765511351e389e96554caf23f1399440cff
bcb3281ac233453c5fa7f9d68d89758d2f17ee61
refs/heads/master
2020-05-26T13:37:35.930640
2019-05-23T15:02:01
2019-05-23T15:02:01
188,249,802
0
0
null
null
null
null
UTF-8
R
false
false
2,146
r
run_analysis.R
run_analysis <- function() { ## Reading data from datasets provided features <- read.table("UCI HAR Dataset/features.txt", header = FALSE, col.names = c("n", "Feature")) activity_labels <- read.table("UCI HAR Dataset/activity_labels.txt", header = FALSE, col.names = c("Label", "Activity Name")) subject_test <- ...
6ea30184e05f0df7a84229a7f4354a949c7ddeb5
0155e0990ce8fc71651c48d9af7bb38a11779d20
/fss.R
1c1c708dff903e7af66e01899b12d009f9fcccd4
[ "MIT" ]
permissive
goujonpa/SY19TP7
2968adc0f3faf1cc06986bd7354e31160b5c5809
99f016e47ed939b9235b73f485aec59b2ea09ffa
refs/heads/master
2021-01-12T10:23:55.786174
2017-01-15T18:28:12
2017-01-15T18:28:12
76,444,335
0
0
null
null
null
null
UTF-8
R
false
false
116
r
fss.R
# Paul GOUJON & Jo COLINA # UTC - SY19 - TP7 # Facial expression recognition df = cbind(as.data.frame(X), y)
4fa771fa56ef4f209ebb09943a2f8440f8b7c647
75d05fed7d91b13f7bd6f6f352fa258e79347b9b
/R/cryptohash.R
37567280e32f7f0c9e1b8c1d8d78d92d872208c6
[ "MIT" ]
permissive
Protonk/WMUtils
fdd9d207e9a155f996aa882c4bdedf4a8bcb9d24
57f75e11802a72726f8c865f5ec20f09a8ec9fb8
refs/heads/master
2021-01-17T23:23:29.576657
2014-12-03T17:51:48
2014-12-03T17:51:48
null
0
0
null
null
null
null
UTF-8
R
false
false
2,291
r
cryptohash.R
#'@title cryptohash #' #'@description cryptographically hash a character vector, or something coercable into one. #' #'@param x a vector of strings, or an object that can be coerced into a vector of strings. #' #'@param algorithm the hashing algorithm to apply to each string. Options are "md5", "sha1", "sha256", #'and ...
1c889ed1bbda436161233885aa9da8ed6caaf976
3f62979ccc33c036f0904034aedbc3db8b7e85af
/question_eight.R
90facea546fc2091dd18a44600677cd9ccb76fa7
[]
no_license
yaliG/MD-ML_HW1
949b60e249feccb7c78f484215a7e4dd7479f732
d4c6228315417ee21dd66525530fa1464fd46c3b
refs/heads/master
2020-08-08T07:44:46.581800
2019-10-09T00:22:19
2019-10-09T00:22:19
213,782,638
0
0
null
null
null
null
UTF-8
R
false
false
3,193
r
question_eight.R
library(ggplot2) # (1) # read data taxi_data <- readr::read_csv("data/question_five.csv") # 4 scatterplots p <- ggplot(data=taxi_data, aes(x=total_trips, y=total_earnings)) + geom_point() p + ggtitle("Total trips v.s. total earnings") + xlab("Total trips, times") + ylab("Total earnings, dollar") ggsave("question_...
19dee9c9a7361800aaacbd1000152450b86b07a4
284c7b66d6db034a5ccfd34486eaeba8bc2ccaf6
/R/package.r
c09e0dd8c9e4cb13750dcccff2eb4a4db91d66e1
[]
no_license
hadley/helpr
c9967cfabe6d510212a32d83643136b3b85d5507
2eeb174b09493f8d5c4c072772285c100f410a29
refs/heads/master
2021-01-11T04:57:20.128449
2012-04-09T14:34:21
2012-04-09T14:34:21
377,173
23
4
null
null
null
null
UTF-8
R
false
false
9,421
r
package.r
#' Read RDS file #' #' @param ... args sent directly to base's read rds function #' @author Barret Schloerke #' @keywords internal read_rds <- function(...) { rv = R.version if (rv$major == "2" && as.numeric(rv$minor) < 13.1) { base:::.readRDS(...) } else { base:::readRDS(...) } } #' Package informa...
4f02f00c643df74bab49e3f43f82b76abf715c90
8c7db1c12d5662b6b9e139a641024cdefd96ba09
/plot2.R
4b08f6987412979a342a3ec8600e953598f85f57
[]
no_license
kl79/ExData_Plotting1
fdcf845c6377590270f6f76e7e0f5ab2b9d77cd5
d83d34238eadefc0de3d23098cd513d17afaeb44
refs/heads/master
2021-01-16T17:50:20.698735
2015-09-12T17:06:54
2015-09-12T17:06:54
42,358,980
0
0
null
2015-09-12T14:02:27
2015-09-12T14:02:26
null
UTF-8
R
false
false
596
r
plot2.R
makeplot2 <- function() { # read data data <- read.csv("../household_power_consumption.txt", sep=";") subdata <- subset(data, Date == "1/2/2007" | Date == "2/2/2007") ## convert to numeric subdata$Global_active_power <- as.numeric(as.character(subdata$Global_active_power)) ## convert date+time to datetime subd...
087e251cde0835d6c6eecff4ef32511ac4d076fd
af850f1ae16c67d8a97f8495f3990b014c3b7f26
/complete.R
c4ab39dddb1c2cafec11d833e793d89b57a21eef
[]
no_license
2473539347/Data-Learner
e3778a39b642eb11a2759bd76073c69874c315f2
f21ee812ba71af77f452e309647e7ff31e466f61
refs/heads/master
2021-01-13T00:37:13.915403
2016-03-13T11:24:42
2016-03-13T11:24:42
52,871,637
0
0
null
null
null
null
UTF-8
R
false
false
395
r
complete.R
complete<-function(directory,id=1:332){ file<-paste(directory,"/",sep = "") b<-read.massive.csv(file,id) good<-complete.cases(b) bnoNA<-b[good,] n=length(id) nods<-numeric(length = n) nods[1]<-sum(bnoNA$ID==id[1]) if(n>1){ for(i in 2:n){ no...
1665fd2c313aea3e9fa68c8c083e922e74291a61
39cacd6faa29f5736990dcc491fc58f1b5c59cfb
/man/add_binary_decisions.Rd
33668986bdfe388ec2653f6a53c4d47ed9f58194
[]
no_license
l5d1l5/prioritizr
ddf4ef4054cb9e974b2edaf9e9adbb91ff1e2459
f1deca821db7f3809d240e351b5ab9492fe7e711
refs/heads/master
2020-06-26T15:55:45.751296
2017-05-03T22:49:23
2017-05-08T20:19:25
null
0
0
null
null
null
null
UTF-8
R
false
true
2,114
rd
add_binary_decisions.Rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_binary_decisions.R \name{add_binary_decisions} \alias{add_binary_decisions} \alias{add_binary_decisions} \title{Add Binary Decisions} \usage{ add_binary_decisions(x) } \arguments{ \item{x}{\code{\link{ConservationProblem-class}} object.} ...
34fca7b470bb9babac980b396962dfacbe47e1c0
9ef1a637bba8e3d18e8d05ca6a34b53b478e10b3
/util.R
569dc7d102241c6899fa411bf02a4d4db22f94c6
[ "MIT" ]
permissive
bgraf/mt-scripts
3f01e7f02a8d82f28cc864081c34f78d8ec52856
ea76785699ca699cf15f98c7cf3c5ae8b9bf8fc1
refs/heads/master
2021-01-11T09:42:16.078192
2017-02-24T06:46:56
2017-02-24T06:46:56
81,337,598
0
0
null
null
null
null
UTF-8
R
false
false
3,246
r
util.R
library(reshape) library(dplyr) library(ggplot2) library(moments) minObs = 10 width <- 5 height <- 5 widthFull <- 10 heightFull <- 10 width3 <- 3 height3 <- 3 stdGrey <- 'grey90' readDataset <- function() { read.csv('dataset.csv', header=T) } readAgg <- function() { df <- readDataset() aggregate(. ~ Class, ...
6c0fbe932ac2197e7cb917788c5ad992137a52b5
f96a5c7d44e7ea728495ccae1c66ad9a6ce4fc96
/multiWayANOVA/powerWithAndWithoutBlocking.R
03fb150228978310b1f63004ead5333ff7925bf1
[]
no_license
STAT6302/lectures
6ed787958ce1722796005bf3d042496c61642b20
3250462937a5b36483a92713f26ae1f8ee024965
refs/heads/master
2021-05-14T08:49:02.333892
2018-05-01T15:35:27
2018-05-01T15:35:27
116,308,977
0
1
null
null
null
null
UTF-8
R
false
false
1,602
r
powerWithAndWithoutBlocking.R
n = 48 X = matrix(0,nrow=n,ncol=13) colnames(X) = c('mu','A','B','Control','F1','F2','F3','B1','B2','B3','B4','B5','B6') X[,1] = rep(1,n) X[,2] = c(rep(1,n/2),rep(0,n/2)) X[,3] = c(rep(0,n/2),rep(1,n/2)) X[,4] = rep(c(rep(1,n/8),rep(0,n/8),rep(0,n/8),rep(0,n/8)),2) X[,5] = rep(c(rep(0,n/8),rep(1,n/8),rep(0,n/8),rep(0,n...
00f17c6fd647beb01a101a15e72ddef40a66109c
1e5ba5e4557483a9f52584e54cc6812258fa0153
/Scripts/Predictions.R
367c2b8a83ae2e1275ceb63fc7068c9eae26c997
[]
no_license
leticiaamarcal/Predicting-Profitability
1cbfc6e4bb17fad2632e39192895384be1d6823b
99b6b049ad9066f758872cbbe1cfa1acca444800
refs/heads/master
2020-08-19T23:06:15.867526
2019-10-18T07:21:58
2019-10-18T07:21:58
null
0
0
null
null
null
null
UTF-8
R
false
false
1,443
r
Predictions.R
#------------------------------------------------------------------------------------ #Goal: Fazer Predictions #Description: aplicar modelo criado para fazer predictions #Developer: Letícia Marçal #------------------------------------------------------------------------------------ #linkar com o preprocess source("S...
047e05f94acb8736f8a17d255f247c9a14fbcd25
aef5b0480c8c972e4bad075b15942f70479cc584
/reading local files.R
12ae421815dbc82457ab7fbd05d5ac57b1e0961c
[]
no_license
teofizzy/Fizzyshock
c09e052a9e5b0435f794b4af54ae9967e20799c1
6c434c0192880af588eebcc7cba2324f6648769b
refs/heads/main
2023-07-16T21:24:27.094309
2021-08-24T06:19:47
2021-08-24T06:19:47
369,437,671
1
0
null
null
null
null
UTF-8
R
false
false
329
r
reading local files.R
yoh <- if(!file.exists("data")){ dir.create("data") } yoh setwd("C:\Users\hp\Downloads") getwd() read.csv("C:\Users\hp\Documents\R\datasciencecoursera repo\Fizzyshock\Fixed_Speed_Cameras.csv", quote = "") library(xlsx) library(csv) read.xlsx("C:\Users\hp\Downloads\Foreign Trade Summary (Ksh Million) (1).xlsx", header...
c07e57d2f305f888750634c2d1296de82fd493d7
9b67199df14059ab543e777aac16e78a441656ef
/HypothesisFour.R
b0c0395380c0194a9593d06644a5b3dd75db6680
[]
no_license
megzcalvert/AMtoo
608b5bcac2ffd708fc3e3e3c4ab979408bb748d8
4a900df8f3edd3defd31e08f5950cc8b2271295e
refs/heads/master
2021-06-26T03:07:08.958953
2020-10-18T16:20:05
2020-10-18T16:20:05
153,009,441
0
0
null
null
null
null
UTF-8
R
false
false
5,109
r
HypothesisFour.R
rm(list = objects()) ls() library(readr) library(data.table) library(tidyverse) library(janitor) library(tidylog) library(broom) library(Hmisc) library(psych) ##### Set up work space #### #### Theme set custom_theme <- theme_minimal() %+replace% theme( axis.title = element_text( colour = "black", si...
b58fb11c12c5580bdea4b2f7825080ed2ecdeda9
ffe4995426a090251aaf49f1ea4867cfee9df337
/_script/data-design.R
68b96b502fee544bf187f93a0422cb95e92252a4
[]
no_license
therimalaya/PhD-Dissertation
3222144d746a52f6f52d39af1b0c8c5742eef4ef
ada2fa2be3ca81f28545f029544d6b6805d0a195
refs/heads/master
2020-08-13T20:12:06.967860
2019-10-14T11:56:42
2019-10-14T11:56:42
215,030,990
0
0
null
null
null
null
UTF-8
R
false
false
1,948
r
data-design.R
df <- data.frame( id = factor(1:10, levels = 1:10), x = c( paste0("Number of Predictors\n", "p:", "50 and 250"), paste0("Level of Multicollinearity\n", "gamma: 0.2 and 0.9"), paste0("Level of Response Correlation\n", "eta: 0, 0.4, 0.8 and 1.2"), paste0("Position of relevant pr...
baa9d018cdf4d94c6ea48c82519258e7c23bee59
21845f139f8c4dcc3a21b133a9d3e6620eb89bc4
/R/spikeTrainStats.R
d69581003b6529de8f5503eb6316026d0a0ece86
[]
no_license
cran/STAR
257a4e63d61f3a5b664b1fa6770d2383096cddb9
c88668ba8a508206fdc5ef4406b6373c492f2806
refs/heads/master
2021-01-13T01:49:39.256279
2012-10-08T00:00:00
2012-10-08T00:00:00
17,693,622
1
1
null
null
null
null
UTF-8
R
false
false
9,542
r
spikeTrainStats.R
varianceTime <- function (spikeTrain, CI = c(0.95, 0.99), windowSizes) { if (!is.spikeTrain(spikeTrain)) spikeTrain <- as.spikeTrain(spikeTrain) train.l <- length(spikeTrain) lastTime <- spikeTrain[train.l] mean.rate <- train.l/(lastTime - spikeTrain[1]) ...