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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96210da13a158bd5f8fb86407c65b29c125018a6 | 92626a21f23ab35e82cb439255e10cde2a7047c1 | /tests/testthat/test-TPCfunctions.R | 20bd1356021e61a1c6342f9098d1679380d9a556 | [
"MIT"
] | permissive | ArchiYujie/TrenchR | 04630ddd078eca187a517c0c98e59065b3054a74 | f45c2f0b54eab4ce578c0b3b631f9d93058ba731 | refs/heads/master | 2023-07-16T22:25:21.419072 | 2021-08-26T21:30:12 | 2021-08-26T21:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 713 | r | test-TPCfunctions.R | context("TPCfunctions")
expect_similar <- function(input, expected) {
eval(bquote(expect_lt(abs(input - expected), 0.01)))
}
test_that("TPC function works as expected", {
expect_equal(max(TPC(T=0:60, Topt=30, CTmin=10, CTmax=40)),1)
expect_equal(min(TPC(T=0:60, Topt=30, CTmin=10, CTmax=40)),0)
expect_equal(le... |
a71b5129475623b8335d59339a609574dd08b5d4 | 9aafde089eb3d8bba05aec912e61fbd9fb84bd49 | /codeml_files/newick_trees_processed/5868_0/rinput.R | 6f983a3763874c1532063402795dc7ebbd5dcc7a | [] | no_license | DaniBoo/cyanobacteria_project | 6a816bb0ccf285842b61bfd3612c176f5877a1fb | be08ff723284b0c38f9c758d3e250c664bbfbf3b | refs/heads/master | 2021-01-25T05:28:00.686474 | 2013-03-23T15:09:39 | 2013-03-23T15:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 135 | r | rinput.R | library(ape)
testtree <- read.tree("5868_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5868_0_unrooted.txt") |
49ec95c0b55a578bb34474e15af6a3939a64dfca | a8e8000b370d54c2f6a097ee59876827f4daafbe | /study/datatime.R | 6c41aec9c0c64d21e2822dbd1113593fe6d8d413 | [] | no_license | weidaoming/R | 142be073ebdf097740ae5a02a7e75308a06e30d1 | 5048ca1d46025ba41d03b00049a17b309e8dfedc | refs/heads/master | 2021-07-12T10:47:27.552074 | 2017-10-18T07:09:09 | 2017-10-18T07:09:09 | null | 0 | 0 | null | null | null | null | GB18030 | R | false | false | 439 | r | datatime.R | #日期与时间
x <-date()
x
class(x)
class(date())
x2 <- Sys.Date()
x2
class(x2)
x3<-as.Date("2017-01-01")
x3
class(x3)
weekdays(x3)
months(x3)
quarters(x3)
julian(x3)
x4<-as.Date("2017-02-20")
x3 <- as.Date("2013-03-18")
x4-x3
as.numeric(x4-x3)
#time
x <- Sys.time()
x
class(x)
p<-as.POSIXlt(x)
p
class(p)
names(unclass(p))
p$m... |
fc57144a227229b4f19201a8538da1cae31f8424 | 99315b85d37870a5da01f33ddd0b50be7838c9e7 | /WAPIWrapper/WAPIWrapperR/WindR/man/w.weqs.Rd | 1bee7376573f1832dcf4b0584d765e7921e2110a | [] | no_license | WindQuant/ThirdParty | 7e4932a5abbcf2374beb551dcddef14bf27b627c | c53334109c2e97a938d62b131531010fb265e516 | refs/heads/master | 2020-06-04T20:01:31.490944 | 2015-12-04T02:18:35 | 2015-12-04T02:18:35 | 27,526,077 | 22 | 12 | null | 2015-12-03T13:06:06 | 2014-12-04T06:06:46 | C++ | UTF-8 | R | false | false | 633 | rd | w.weqs.Rd | \name{w.weqs}
\alias{w.weqs}
\title{
Retrieve stocks by custom filter.
}
\description{
wset is used to retrieve stocks by custom filter.\cr
To show the guide dialog, please input w.menu("weqs").\cr
data <- w.wset(filtername,...)\cr
\cr
Description:\cr
filtername the filter's name.\cr
\cr
... |
9f45dd3afff444e909270db496694c474cc63e42 | 302cfb5a0c87ed3f1c9cc1b9a045aa42f49500bf | /man/ESEA.Main.Rd | 85a441dd1d334e77862f1637fc7899a505f658af | [
"Apache-2.0"
] | permissive | hanjunwei-lab/ESEA | ee4f18be7c0f43cfce4377b632f350dd1ec40d00 | e428d4137a52d4c9078d1e61a3f4817de85efafe | refs/heads/master | 2022-11-10T14:19:33.761782 | 2020-06-30T13:13:20 | 2020-06-30T13:13:20 | 275,342,928 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,288 | rd | ESEA.Main.Rd | \name{ESEA.Main}
\alias{ESEA.Main}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Identify dysregulated pathways based on edge set enrichment analysis}
\description{
A edge-centric method to identify dysregulated pathways by investigating the changes of biological relationships of pathways in t... |
edf33df429b12145805bf1ace9a3a4bac5c6c820 | d9d04d53288e4cb5801cfe1e35f9d7b6e3154fb8 | /ACTIVIDAD 4/Actividad 3.R | 5f4dde3cfb1433ad9eaf93f7344820f9f81ec6a6 | [] | no_license | yerayb/Visualizacion-Rstudio | 187618fcea1d56c41f7df371708c6ba27bfa3347 | 4908f4664eddbd1752557ef35827516bc89c0ad7 | refs/heads/master | 2022-11-14T13:07:09.427681 | 2020-06-26T19:33:54 | 2020-06-26T19:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,735 | r | Actividad 3.R | ####################################################################
# Configurando el entorno de trabajo
####################################################################
rm(list=ls())
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
getwd()
dir()
graphics.off()
cat("\014")
#############################... |
0ff4d8c55566797b6611d8f06b3d42c706603275 | b653662e7003da49fdf36429d813fc57ea501c4f | /Mushroom_HC_clust.R | 9928fbddd04d427b51b664a11a635070fe5f4c30 | [] | no_license | mahi941333/Analysis-Of-mushroom-dataset | dfe13fa396e6e30ae0b2b64b8d0f37ebd2a2b769 | 5359915d9e56ed6d459b3e64768988272810d3d8 | refs/heads/master | 2020-04-03T09:40:14.802672 | 2018-10-29T08:04:18 | 2018-10-29T08:04:18 | 155,172,570 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,195 | r | Mushroom_HC_clust.R | install.packages("klaR")
install.packages('cba')
library(klaR)
library(cba)
Mushrooms= read.csv("Mushroom.csv")
str(Mushrooms)
X=Mushrooms[-1]
#Checking missing values
Index= apply(Mushrooms, 2, function(variable) any(is.na(variable) | is.infinite(variable)))
colnames(Mushrooms)[Index]
table(Mushrooms$Cla... |
09ddd44620b4d02a6c5f2c56d1453cef63243d43 | 882384720aaad106f30d2893574483ec664c6ca9 | /weicheng/couponExploration.R | 3a7ddf719e3f9456756405d7392c1aecc821a1ad | [] | no_license | imouzon/dmc2015 | deb1bfb5a25955b289726e48723b7e736f71f8b6 | 8a1aa31a7a917501a9a1b5a96c313685591a31b7 | refs/heads/master | 2020-12-24T19:17:58.268371 | 2015-06-29T11:36:59 | 2015-06-29T11:36:59 | 33,014,468 | 0 | 3 | null | null | null | null | UTF-8 | R | false | false | 6,047 | r | couponExploration.R | train = read.csv("./data/mc2015_train_simple.csv",
stringsAsFactors=FALSE, header=TRUE)
class = read.csv("./data/mc2015_test_simple.csv",
stringsAsFactors=FALSE, header=TRUE)
## nCoupon[i]Used = the number of times a coupon in column i is
## used in the training set alone
## pCoupon[i]Used = the proportion of ... |
7a82166d36798a4fad479dd0269c776c0c25d333 | f1c2f21f599a3588dfe35ca0384c167402157395 | /man/find.names.Rd | ad432df73ac2d86b614b621a0d4316777d8fe168 | [] | no_license | SathishN/griffun | 91c03d84004e499a6030b510192d9d04acd387d0 | 199fae5a9a1ab8b4f6436585811ea3f7db6d06d9 | refs/heads/master | 2020-06-03T19:43:28.678531 | 2014-11-11T17:37:46 | 2014-11-11T17:37:46 | 27,498,150 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 430 | rd | find.names.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{find.names}
\alias{find.names}
\title{Find location of given names in all names}
\usage{
find.names(find.names, all.names)
}
\arguments{
\item{find.names}{find names of columns}
\item{all.names}{all names}
}
\value{
nothing
}
\description{
Find location of giv... |
2ef4d3c93fb439d91d88b7d20d557897be9902b9 | 272df57d6e1feffffc4775e5c2c2f18ed51f35f9 | /R/VariableSelection/EaaMutualInfo.R | e1ab097da2e5bb3e9675e4ac3cd869707c535592 | [] | no_license | eulertech/backup | d0fc7e5b5989f2f782154e65107277ade39c1d29 | 9ff48f61cfd4e0c5994ad3dabab3987255cea953 | refs/heads/master | 2021-04-26T23:00:40.526364 | 2019-01-23T18:24:15 | 2019-01-23T18:24:15 | 72,011,630 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,097 | r | EaaMutualInfo.R | # This function takes a data frame and returns a mutual information coefficient for each variable
# You can also specify the number of bins you want your data discretized into
# Input: dataframe with columns as variables and target as first column
# Output dataframe with mutual information for each variable
# Author: L... |
dce9fb482a287a94b49dcf351417cae784a4ad46 | 0d392aa46ecc2069dfa828002dbc38180d37d515 | /shiny-market-basket/app.R | 6c0f7130f7d92cc0b8dcd5ce47b8d5b3583f7cd0 | [
"MIT"
] | permissive | nimeshchaturvedi/shiny-market-basket | 1c70537b940c8f6376ab3fd84ae28128047df8fb | 1d92a08c8b74c8f0b835b006d86f3110005f3835 | refs/heads/master | 2021-05-31T17:50:42.706697 | 2016-06-07T03:25:48 | 2016-06-07T03:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,471 | r | app.R | # shiny market basket - quick and dirty tool for market basket analysis
# using Apriori rule search.
library(shinydashboard)
library(dplyr)
library(magrittr)
library(arules)
data("Groceries")
ui <- dashboardPage(skin="yellow",
dashboardHeader(title = "Market Basket"),
dashboardSidebar(
fileInput("file1","... |
deedeb9db75bbfa1fe9700527d646838ed339949 | 649bebd8319980ff66e2138a22b3b51db8e361f7 | /getoldEC2info.r | 4f573a88d09caa5fc929ae8d7e0cfead414acb46 | [] | no_license | ryoogata/getAWSinfo | 4d14e9ea84742cbb8d189d2d16bccd5be1c1002f | 42daca7b11d20fa0b1a32a2786ed9b2e2a11e1cc | refs/heads/master | 2021-01-10T18:32:10.625917 | 2015-09-20T15:54:46 | 2015-09-20T15:54:46 | 42,399,669 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,464 | r | getoldEC2info.r | require(XML)
require(stringr)
# Web 上から情報を取得
theURL <- "http://aws.amazon.com/ec2/previous-generation/"
# ページの 7 個目のテーブルに EC2 の一覧があるのでそれを取得
oldtable <- readHTMLTable(theURL, which = 7, header = TRUE, stringsAsFactors = FALSE)
# vCPU, Memory (GiB) の列を数値化
oldtable$"vCPU" <- as.numeric(oldtable$"vCPU")
oldtable$"Memory... |
875d1e1203b497a8e04beb958f4143b713fd960b | 03beb8f841ede21339b41caa120169074e8d498c | /mono_therapy_models/testing_nn.R | 8b495f7e2ff225043fcb50440916b9b4cf8fa70e | [] | no_license | edwinyi/tensor_gp | 3d65a13e209610ce6627147fa51282d537b698e3 | 23d6ab25a5525ae237423838dbccb75508b240a6 | refs/heads/master | 2020-06-10T01:30:21.270507 | 2017-02-28T00:20:54 | 2017-02-28T00:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 811 | r | testing_nn.R | library(rstan)
data = iris[1:100,]
data[,1:4] = scale(data[,1:4])
data[,5] = as.integer(data[,5])-1
N = 80
Nt = nrow(data)-N
train_ind = sample(100,N)
test_ind = setdiff(1:100, train_ind)
yt = data[test_ind,5]
stan.dat=list(
num_nodes=10,
num_middle_layers=3,
d=4,
N=N,
Nt=Nt,
X=data[train_ind,1:4],... |
b19c203c06f311d1fe575e4228a79de701f497f5 | eafcbacd06361d83a8da71ae86968f723177570f | /code/R Process Tools/RDFtoExcel.R | 0c55742195b1a290a41fe3416143ea67b93d2a46 | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | usbr/RW-RDF-Process-Plot | a6edd4a0172294424d90a1456907be2b9baffc8c | 943ff620ef5b96fa30f9c830cfc0853a1420ec62 | refs/heads/master | 2023-08-17T10:22:15.871190 | 2023-08-04T21:15:48 | 2023-08-04T21:15:48 | 144,192,835 | 0 | 1 | null | 2022-03-24T14:41:14 | 2018-08-09T19:04:22 | HTML | UTF-8 | R | false | false | 2,843 | r | RDFtoExcel.R | # Input -----------------------------------
## rdf to excel exe
### MyPC
rdf2excel <- "C:/Users/cfelletter/Documents/Tools/RdfToExcel/RdfToExcelExecutable.exe"
### BA
rdf2excel <- "C:/Program Files/CADSWES/RdfToExcel/RdfToExcelExecutable.exe"
## file paths
# ### CRSS - MTOM
# folderpath <- "Z:/felletter/CRSS_MTOM_... |
4a61cc1d0ddd476dfffb4aa501cf97429f0b4aab | 53851868e25801999033fe8d7c3150b73e7dde65 | /R/UKHEI/weightedAdjacencyMatrix.r | ef1bfa6a89aa76c2b06270910b6f0e8bcaefe0b3 | [] | no_license | xuzhikethinker/PRG | bb7e75d27f9da7611d3c26f10bb083ec69025487 | 25b971f6e65ef13f80d3a56732e4bb6d4502bb55 | refs/heads/master | 2016-09-06T02:27:18.042949 | 2013-03-27T18:17:53 | 2013-03-27T18:17:53 | 9,262,600 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 856 | r | weightedAdjacencyMatrix.r | # calculate distance average weighted by number of papers excluding internal ones
weightedAdjacencyRank <- function(adjMat, distMatrix, instToComm){
adjMatNSL <- adjMat -diag(adjMat) # this is adjacency ,matrix with zeros on diagonal
distAmNSL <- distMatrix * adjMatNSL
cAmNSL <- instToComm %*% adjMatNSL %*% t(ins... |
283deb48f7bc2fc0d663daebf42c839991160aa4 | 06cdfccf8d44f11742fec1162afdfe2421c22302 | /man/generate_acceptable_data_cpp.Rd | e29318cc20a4688db96578d00b979cd5bd29e311 | [
"MIT"
] | permissive | lgaborini/rdirdirgamma | 06feabefb12a42d0496818ecc9a0f70f7ccc1c5c | f3087f0a81c9e4b08ff56efcc260873eaa16232d | refs/heads/master | 2023-04-18T00:18:29.380512 | 2021-03-05T18:06:26 | 2021-03-05T18:06:26 | 290,997,800 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,478 | rd | generate_acceptable_data_cpp.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{generate_acceptable_data_cpp}
\alias{generate_acceptable_data_cpp}
\title{Generate data that is accepted by ABC.}
\usage{
generate_acceptable_data_cpp(
n_sample,
m_sample,
alpha_0,
beta_0,
nu_0,
mtx_obs,
summ... |
3702dbacd87569908d58b7c0bebdf0ad3b40a250 | f57ab85483c112fc67fa8d2c5886a7cb3a8e995c | /tests/testthat/test_guess.R | fd1354b1522a065d2fabd4de58e4139e4c324d66 | [] | no_license | wintercmin/rio | 7ada15885d92e4300002debf9aa500a99a26652f | d013436b77dd14893a5896c8b9cc9b3b2b309a07 | refs/heads/master | 2021-01-16T21:31:23.046864 | 2015-03-18T09:03:32 | 2015-03-18T09:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 247 | r | test_guess.R | context("Get File Extension")
test_that("File extension converted correctly", {
expect_that(get_ext("hello.csv"), equals("csv"))
expect_that(get_ext("hello.CSV"), equals("csv"))
expect_that(get_ext("hello.sav.CSV"), equals("csv"))
})
|
e9d979f8233e6c8c1a22a88339b08e61226cae90 | 2bda11429539681c8247baec5b481cf0208c56e2 | /man/iexdata.Rd | 1eed2cad89ae30eb3fe63325286e5efa8b589178 | [] | no_license | RakhithJK/stockapp | 786e7ee6d9181ab63b0234fb9b1d9c67eee73f89 | 0f985a0e37c4fe5f2c62549479af89d41e5da5ec | refs/heads/master | 2022-11-09T00:37:41.638781 | 2020-07-02T19:12:27 | 2020-07-02T19:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 495 | rd | iexdata.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iexdata.R
\name{iexdata}
\alias{iexdata}
\title{IEX data}
\usage{
iexdata(ticker, from = NULL, to = NULL)
}
\arguments{
\item{ticker}{stock ticker symbol. E.g. "GOOG".}
\item{from}{start date. Either string or date object.}
\item{to}{end da... |
f6fe5a8dded04f1eaf118ffee07813309a702945 | 012259a4ab7ac234a73f09bdf39754e9887b8928 | /man/inference_plot.Rd | fc4d32751cc71b6f757fac3531bba5d83bebd773 | [] | no_license | AngelosPsy/multifear | 66485c0e428b6002152d3feafff3c3977942a52c | 3dec34a0c72506a550a2f8115e4ecbd4bdf622d0 | refs/heads/master | 2022-02-12T16:08:33.224525 | 2022-02-01T16:45:37 | 2022-02-01T16:45:37 | 245,685,847 | 2 | 1 | null | 2021-11-17T20:10:02 | 2020-03-07T18:38:31 | R | UTF-8 | R | false | true | 1,439 | rd | inference_plot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/inference_plot.R
\name{inference_plot}
\alias{inference_plot}
\title{inference_plot}
\usage{
inference_plot(
data,
alpha_level = 0.05,
add_line = TRUE,
na.rm = FALSE,
framework = "Both",
col = c("gray45", "maroon4", "brown1"),
r... |
95cd1fce13065dab73102adb6a39e1f4ee263490 | 12eab6d1208f29f6a4210cee0a712e8304240814 | /mrds/man/histline.Rd | d0e409538bb70f147094be60b00e91bac66ee49d | [] | no_license | jlaake/mrds | c8920ffdd91c411f2bfb91a15abd786f8b0b1d0e | 64bb11a5682a2fd56611cef9860be476ea5f14be | refs/heads/master | 2021-01-18T06:25:57.563386 | 2013-12-18T19:13:48 | 2013-12-18T19:13:48 | 2,009,699 | 1 | 2 | null | null | null | null | UTF-8 | R | false | false | 1,019 | rd | histline.Rd | \name{histline}
\alias{histline}
\title{Plot histogram line}
\usage{
histline(height, breaks, lineonly = FALSE, outline = FALSE, fill = FALSE,
ylim = range(height), xlab = "x", ylab = "y", det.plot = FALSE, ...)
}
\arguments{
\item{height}{heights of histogram bars}
\item{breaks}{cutpoints for x}
\item{lineon... |
bfd4fd811b5433a1e947d81e8d800b3b855f3579 | 58b5653f2c3e582a3de4aa5059b33282e000e8cc | /man/Poisson.Rd | 1b51924e72166b20d8687427e7a00eb0840d9e21 | [] | no_license | hayate0304/Rsymbulate | 539c158af6d758ccf5254c5feaf440be26419089 | 3fc7fd0ca0e9c476e4da0f8382787ac5bbddd010 | refs/heads/master | 2020-03-25T18:57:41.909510 | 2019-01-24T04:47:27 | 2019-01-24T04:47:27 | 144,058,208 | 1 | 0 | null | null | null | null | UTF-8 | R | false | true | 363 | rd | Poisson.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/distributions.R
\name{Poisson}
\alias{Poisson}
\title{Defines a probability space for a Poisson distribution.}
\usage{
Poisson(lam)
}
\arguments{
\item{lam}{(float): rate parameter for the Poisson distribution}
}
\description{
Defines a proba... |
585a1ff61a07b90703bd531fa67be80b6154031f | d5f19cf29c8c3607adaec502ba28af078bf60aab | /man/SQLServerDriver-class.Rd | cb405a8b6365f2fd551bcf0241254ee13dd2736a | [] | no_license | mnel/RSQLServer | 749e960b519723cc622483d10de58ffa76403d69 | 3fe72ae20d880c436a1276f8ab522b1a27255ab6 | refs/heads/master | 2020-12-26T03:34:39.423955 | 2014-10-10T21:47:21 | 2014-10-10T21:47:21 | 25,183,262 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,405 | rd | SQLServerDriver-class.Rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{class}
\name{SQLServerDriver-class}
\alias{SQLServer}
\alias{SQLServerDriver-class}
\title{An S4 class to represent a SQL Server driver}
\usage{
SQLServer(identifier.quote = "[")
}
\arguments{
\item{identifier.quote}{quote character for a SQL Server identifi... |
f5d542fab6acf17f0c42c0e6a513d77346f6590a | 631b7fb4b4aff7f03a17d393b606449a681ee027 | /plot4.R | 1c4cc241ec4432d7e1f61a2d3aacd62c3602c30c | [] | no_license | rofeld/ExData_Prjoj2 | ee1f484a5e4110188db99c1498b79ba3fd97baef | 9a337a991f139cfa247d2c9d753aec79838bce7d | refs/heads/master | 2020-05-19T22:31:21.567393 | 2014-07-19T00:55:45 | 2014-07-19T00:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 739 | r | plot4.R | cur_dir = "C:/dev/R/Coursera/Proj2" #working directory where .rds files are located
setwd(cur_dir)
## This first line will likely take a few seconds. Be patient!
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
coal_indx <- SCC[grep("coal", SCC$"Short.Name", ignore.case=T),"SCC"]... |
6e90e318c926642e16c1788888bc6ab0ca38df57 | d0a73e5ee95b54efb416d2afdb4b2c48a410738d | /HW_1.R | 243f92b2447a1e7c4912e95daea49cdbbfb0ec3d | [] | no_license | PankoAliaksandr/Project-WU-Minimum_Variance_Optimization | cc9e7cc0c74fddcd74b8c3eacb6a4198092f16cd | 3d7134efc19ceeb57625246d278eeee0914737aa | refs/heads/master | 2022-02-22T04:03:29.523001 | 2019-09-23T13:42:30 | 2019-09-23T13:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 16,278 | r | HW_1.R | # Assignment 1: Minimum Variance Portfolios
# Glossary:
# PC - The Principal Component Estimator
# SAC - Shrinkage Towards the Average-Correlation Estimator
library(zoo)
library(matlib)
library(matrixcalc)
library(quadprog)
library(ggplot2)
library(reshape2)
# Constants
number_of_stocks <- 500
number... |
e0a14e936270a44a625908bca0c1cf6a6aa92ead | ecee7073a403ff4d40a3ebc7050c51bbfa5a1247 | /functions.R | 894e5c842cbf46733cae4f2a8162b56b1befaf56 | [] | no_license | arietma/ibf-uganda | 3c50ad2d9894d2138fa1db8135f87de12b5f536c | 5d2db93152dafbc4606bce4684df937d0112010f | refs/heads/main | 2023-01-20T19:36:43.509368 | 2020-11-26T12:10:29 | 2020-11-26T12:10:29 | 309,714,988 | 0 | 1 | null | 2020-11-26T12:10:31 | 2020-11-03T14:39:34 | R | UTF-8 | R | false | false | 1,121 | r | functions.R |
terra_extract_part <- function(raster, polygon, n) {
x <- ceiling(nlyr(terra_s) / n)
for (j in 1:n){
cat(sprintf("%d/%d\n", j, n))
terra_part <- terra::subset(terra_s, (x * (j - 1) + 1):min((x * j), nlyr(terra_s)))
terra_sub <- terra::extract(terra_part, terraUganda[i,], fun=sum)
if (j == 1){
... |
52361a1557d68719693211b08607a2985f3c81c2 | 3687e29bd71d62e992ff064ee6b888dbeee31c21 | /source/lncDifferentiaExxpression.R | 8fad16c9bb4a637b887d0d1b166456479387bfe1 | [] | no_license | HongyuanWu/lncRNA-2 | 1d93de0928c3f9524d91b88fe74dfa2edd6104e4 | e49abf45e4d9621b4e26b74fd6c944ea60fb1750 | refs/heads/master | 2022-09-28T17:44:43.206149 | 2020-06-02T15:43:37 | 2020-06-02T15:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,429 | r | lncDifferentiaExxpression.R | library("DESeq2")
library("pheatmap")
library("tidyverse")
library("RColorBrewer")
# Input matrixes creation
data <- read.table(file = "data/SCells_LncRNA_s1_CombinedSamples.txt", header = TRUE)
timepoints <- c("Day_16_D","Day_30_D","Day_60_D","Day_16_N","Day_30_N","Day_60_N")
colnames(data)[7:12] <- timepoints
rowna... |
1236da7421179a2c8e144a8e73af93c0b779ee16 | f081d9af62b6cab758afb4ad1b9f06e2193e73c4 | /R/sheets_share.R | 0a8d7de70d64bdb6936e39e16509a9a7bcfeebb7 | [
"MIT"
] | permissive | MarkEdmondson1234/googlesheets4 | 540c08ae4158a414179c140d4033d31160d0f7ec | 23e462476641995302275e24892158b10374c963 | refs/heads/master | 2020-12-03T07:34:27.657702 | 2020-01-01T17:24:48 | 2020-01-01T17:24:48 | 231,243,893 | 2 | 0 | NOASSERTION | 2020-01-01T17:23:12 | 2020-01-01T17:23:11 | null | UTF-8 | R | false | false | 1,124 | r | sheets_share.R | # currently just for development
# I'm generally auth'd as:
# * as a service acct (which means I can't look at anything in the browser)
# * with Drive and Sheets scope
# * with googlesheets4 and googledrive
# so this is helpful for quickly granting anyone or myself specifically
# permission to read or write a Sheet ... |
b57a5b1efdd84803c6b7ce108e16c7764f249124 | 08dd5387de20250425f56b4a114e05df1ceff315 | /bin/significance/getSignificance.R | 2b3bca3c65a289e4bbed72b179c7060e7e9e8e11 | [] | no_license | ahmadassaf/graph-sampling | e7ba56e4cbb86aeabdf7eb272be6384552e53247 | 3a6e3a4fca6778e4938f2de1eb74b41d0c0e2f96 | refs/heads/master | 2021-08-09T01:46:31.681419 | 2021-06-08T23:33:05 | 2021-06-08T23:33:05 | 23,197,721 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,883 | r | getSignificance.R | library(pwr)
samplePower = .80
sampleSigLevel = 0.05 #alpha / significance level
sampleType = "paired"
sampleAlternative = "two.sided"
datasetName = "swdf"
dataset = read.csv(paste(datasetName, ".csv", sep=""),header=TRUE, sep="\t")
randomSampleSig <- c(0, 0, 0)
freqBaselineSig <- c(0,0,0)
randomSampleN <- c(0,0,0... |
93dd0eda367cd10403264f5f13fb360c2d59a523 | e1d4541a03df3b5ce94dae89111712601db3f12d | /data_cleaning/visualize_data.R | 0852865a2ec1d2fe63b9eda1c6b3dfea01e6356c | [] | no_license | svteichman/wages | f2f48d473176e67c0ede934fe41a9313658d9ddb | 0f5ee033220d42f82cc9727f99f79eee3c2a9571 | refs/heads/main | 2023-06-16T14:21:42.753234 | 2021-07-17T18:30:14 | 2021-07-17T18:30:14 | 380,072,819 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 6,781 | r | visualize_data.R | library(tidyverse)
library(xtable)
load(file = "wave3to5_filt.rda")
load(file = "stan_dat.rda")
# visualize r and s by sector ----
# make jobs array
N <- stan_dat$N
K <- stan_dat$K
time <- stan_dat$T
sec <- grep("sec", names(wave3to5_filt))
job <- array(data = NA, dim = c(time,N))
job <- data.frame(matrix(nrow = N, ... |
ffab0e167d5b131ec70ef366045e4fe58f00bf23 | 859b798db974af7d3784d3cb11957a5c9f78bcb4 | /leafcutter/setup.R | 88189a59d275d495e455fcc5316fec550881e2bc | [] | no_license | sanderslab/splicing-pipeline-containers | 63892e858e5cc4bde70c55d28d057f710fdd562f | eb00ef8759b167936189e6e4ba1c7e7e69120331 | refs/heads/main | 2023-06-18T20:25:06.100148 | 2021-07-16T22:32:14 | 2021-07-16T22:32:14 | 386,777,730 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 206 | r | setup.R | install.packages("devtools", repos='http://cran.us.r-project.org')
devtools::install_github("davidaknowles/leafcutter/leafcutter")
library(leafcutter)
args <- commandArgs(trailingOnly=TRUE)
print(args)
|
c09583df78d0f66d5877a869d4cb4dc803f2740a | cfc1510ad69d06c239c7fd7ecffa02b27b878609 | /man/stat_brace.Rd | a0871d0f5d14db02f1e229139e1297dccc5d7d7c | [
"MIT"
] | permissive | RoyalTS/ggbrace | 1d29b0e3b21bb61cc221b66c0c65b2e7634f00cd | 4333d133a5fb876523bb833e8a544d797d627d61 | refs/heads/main | 2023-04-09T23:44:57.326633 | 2021-04-04T11:31:54 | 2021-04-04T11:31:54 | 354,616,103 | 0 | 0 | MIT | 2021-04-04T18:20:15 | 2021-04-04T18:20:14 | null | UTF-8 | R | false | true | 2,658 | rd | stat_brace.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stat_brace.R
\name{stat_brace}
\alias{stat_brace}
\title{create curly braces as a layer in ggplot}
\usage{
stat_brace(
mapping = NULL,
data = NULL,
rotate = 0,
textsize = 5,
distance = NULL,
outerstart = NULL,
width = NULL,
mi... |
c6cdd9db6f0392184f5c4791453b4235037ff2eb | 55ed849c4d5dc38eb2c5071f962272fafca4e3c2 | /R_KoNLP.R | 3e07940731cf34b78c56d968c7ba906d891ba782 | [] | no_license | ljh468/R_console | 133838bbbd6a89dbddc4167757d46b566c7618ec | 969060ff35af908bc5c7765ab8e2043e7c5e55ce | refs/heads/master | 2023-01-30T15:52:37.710206 | 2020-12-07T11:37:06 | 2020-12-07T11:37:06 | 299,467,249 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 659 | r | R_KoNLP.R | .libPaths()
setwd()
getwd()
Sys.setenv(JAVA_HOME='C:/Java/jdk1.8.0_191')
install.packages("multilinguer")
install.packages("rJava")
install.packages("memoise")
install.packages("KoNLP")
library(multilinguer)
library(rJava)
library(memoise)
library(KoNLP)
remotes::install_github('haven-jeon/KoNLP',upgrade = "never", ... |
9593cd554f66b39965c4ce03b57b2db4b3ec1ba0 | 744b5597ce50a99c7633d59d609502ab709b8a9e | /run_analysis.R | f00308d6632542667a28fe858d49c0addf4cc8d0 | [] | no_license | stepsutt/CleaningDataProject | 3f7e242e7e6574af642eb31e43b4a9cb66afc7f1 | 34af291a429b5b3de2354feed429e66c3d68b70b | refs/heads/master | 2016-09-06T00:58:47.076495 | 2014-08-24T20:58:39 | 2014-08-24T20:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,377 | r | run_analysis.R | ##create directory for project data if it does not exist
if (!file.exists("proj")) {
dir.create("proj")
}
##Download the zip file
pfileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
if (!file.exists("proj/projdata.zip")) {
download.file(pfileURL,"proj/projdata.z... |
48f76202dff49f2ec41c222b2e133c8ad322857b | 8474e5591c6e2564895bde0522424f7cb60c90d1 | /man/tile_by_regions.Rd | 93115965a39c935ccd6c8d2f1d8faaf2a5827a3f | [] | no_license | ajpatel2007/methylSig | 398504ffe01d51c806098ee9da2751e09d260f65 | cb469678e2e4b5c3569d0927675d698dbe0f8f01 | refs/heads/master | 2022-04-14T04:20:20.587995 | 2020-03-25T18:38:33 | 2020-03-25T18:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 959 | rd | tile_by_regions.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tile_by_regions.R
\name{tile_by_regions}
\alias{tile_by_regions}
\title{Group cytosine / CpG level data into regions based on genomic regions}
\usage{
tile_by_regions(bs, gr)
}
\arguments{
\item{bs}{a \code{BSseq} object.}
\item{gr}{a \code{... |
16d973c1127e5389b5915f54a0dfcc9794a75a9a | a5003e5db33ee4f306438b45e80808162169d8ad | /R/list_portals.R | 6b2631037d42e8b2bc8788918c3304bf40e8a32f | [
"MIT"
] | permissive | Tutuchan/fodr | 0efb7f0b97a56278ea3e6bc6039a2c9bc12b9a56 | 5810a74aaa0606b166dc66a4444a2fbd6fc4c77f | refs/heads/master | 2021-01-22T13:41:42.546404 | 2019-01-03T12:03:02 | 2019-01-03T12:03:02 | 59,779,584 | 23 | 6 | MIT | 2019-06-27T07:29:57 | 2016-05-26T20:00:39 | R | UTF-8 | R | false | false | 156 | r | list_portals.R | #' list the available portals
#'
#' This function displays a data.frame of the available portals.
#'
#' @export
list_portals <- function(){
portals()
}
|
e7b4c12f6fee786a11ae618d9040f0c7337d9d74 | 3c634d9af741cf8862aa5c560a55c2f984dadfec | /man/demographicModeling.Rd | 56b8205306bad95016e4c44c28dec36644bbfc0d | [] | no_license | dlandy/demographicModeling | 9943e1e590940b9e2f7db7cf5a0ea0b7420d79d4 | 87ddd5d78e2c1031accda8792805a04162fbaed8 | refs/heads/master | 2021-09-14T03:26:33.925414 | 2018-05-07T16:35:03 | 2018-05-07T16:35:03 | 117,877,907 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,164 | rd | demographicModeling.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/demographicModeling-package.r
\docType{package}
\name{demographicModeling}
\alias{demographicModeling}
\alias{demographicModeling-package}
\title{demographicModeling.}
\description{
This package provides a number of tools we have found useful... |
457e446a21f364bef20efd82a2dc4502db63b229 | dc79a2186fcacfeb2aef0c1f096da8a835bd5a69 | /worddatabse.R | 0f955acf1ba9b86f4f474e9f98b2ee6e02d24fea | [] | no_license | gaka444/BIG5 | 56b676e1fdb5c627d234f59650b53337402eb122 | 23b1d6acaa0ccf973f41a8c4a64dc49dc4ab8866 | refs/heads/master | 2021-01-25T00:03:55.971622 | 2018-04-11T17:50:49 | 2018-04-11T17:50:49 | 123,288,564 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 631 | r | worddatabse.R | #After downloading the hui.lui.pos and hui.lui.neg, mention below the location of the file
extra.words = scan('C:/Users/acerpc/Documents/Big5/extraversion.txt', what='character', comment.char=';')
agree.words = scan('C:/Users/acerpc/Documents/Big5/agreeableness.txt', what='character', comment.char=';')
open.words... |
67349fe8ed9db1568e321eb811fa7f5c1feb32de | db10b0336f082c09393a39ee5de99e7aaa05014d | /man/dbR6_send_transaction.Rd | 4c7a4913994c38b8e038281c39619b60db5d8d61 | [] | no_license | leandroroser/dbR6 | 8709c4977f59ed8c22bbcb63e78db1119c7d19f1 | f722a08ab2930bd4be0bbd50cf5a08b117980fe1 | refs/heads/master | 2021-09-14T21:46:30.801292 | 2018-05-20T08:51:06 | 2018-05-20T08:51:06 | 112,393,261 | 1 | 0 | null | 2018-01-18T15:58:47 | 2017-11-28T21:50:04 | R | UTF-8 | R | false | true | 285 | rd | dbR6_send_transaction.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dbR6_send_transaction.R
\name{dbR6_send_transaction}
\alias{dbR6_send_transaction}
\title{dbR6_send_transaction}
\usage{
dbR6_send_transaction(...)
}
\description{
dbR6_send_transaction
}
\keyword{internal}
|
2e926a3b6d566a6e8e06caa371179cf75ca19ae3 | 3a904aa24a78bcc7fcfb7c7853ffb7a7785c8d82 | /man/CPRD/ARCHIVE/TEST_CASES/codeToRun.R | e44a750db068e43b1e19fd0c38e4053b1ca64aba | [
"Apache-2.0"
] | permissive | OHDSI/ETL-CDMBuilder | 18226c5e1ee3ef6833967b94600da2d2b48c6371 | a32893602210c4b5e08bdbff9a4762218907d342 | refs/heads/master | 2023-04-27T22:48:10.942050 | 2022-04-26T18:50:50 | 2022-04-26T18:50:50 | 27,511,076 | 47 | 43 | Apache-2.0 | 2023-04-16T00:30:08 | 2014-12-03T22:33:40 | C# | UTF-8 | R | false | false | 4,156 | r | codeToRun.R | # Establish Extended Type and Connection strings
#=============================
detach("package:CPRDTesting", unload=TRUE)
library(CPRDTesting)
source_schema <- "CDM_CPRD_TESTING_RAW.dbo"
cdm_schema <- "CDM_CPRD_TESTING_CDM.dbo"
cdmDatabaseSchema = strsplit(source_schema, '[.]')[[1]][1]
pw <- NULL
dbms <- "sql serv... |
6cb9d6f51887e3dc66e12f89d179ca8de508b06f | dfcee24a721f03c8b87401942704185ebf327e5a | /man/predicts.Rd | c649a967d88fd049a09e26d78afd441131fe9848 | [] | no_license | benjaminschlegel/glm.predict | 104967d6705e262a40638f38fc1357d52f7d6fbe | 026526eb3b43001f05566a1ff3bed09bfe548c5f | refs/heads/master | 2023-02-26T16:16:58.860243 | 2023-02-09T07:26:10 | 2023-02-09T07:26:10 | 42,925,027 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 4,153 | rd | predicts.Rd | \name{predicts}
\alias{predicts}
\title{
predicted values and discrete change
}
\description{
The function calculates the predicted values and the difference of
a range of cases with the confidence interval. It can be used for any
glm, polr or multinom model.
}
\usage{
predicts(model, values, position = NULL, sim.coun... |
35da3e6ed96fa7d873372ddbffb88697acf41b75 | 00b4b71076641c11a74848e2f3a27c6c824044bd | /cachematrix.R | 6e82fca5c0cd35aa4bd6c118968ece5012b343a7 | [] | no_license | larspijnappel/ProgrammingAssignment2 | 9599379f60222ac1ab4a72ea7ab5595b662fe747 | f810afecd6dd10a17b7275238a288c4ae0302962 | refs/heads/master | 2020-12-25T00:19:35.848733 | 2015-08-19T22:52:56 | 2015-08-19T22:52:56 | 40,563,313 | 0 | 0 | null | 2015-08-11T20:21:22 | 2015-08-11T20:21:22 | null | UTF-8 | R | false | false | 4,832 | r | cachematrix.R | ## ===================================================================================
## Calling the makeCacheMatrix function results in an object in the calling environment, which provides the
## following 'object-oriented style' functionality:
## - perform a solve() function on a new matrix once
## - sto... |
fd6d3380034af57b9b48598fad71730c0d052613 | 0500ba15e741ce1c84bfd397f0f3b43af8cb5ffb | /cran/paws.compute/man/ec2_delete_transit_gateway_connect_peer.Rd | e058d80b2edbe513a64d8ab30f9d1f77961cd10b | [
"Apache-2.0"
] | permissive | paws-r/paws | 196d42a2b9aca0e551a51ea5e6f34daca739591b | a689da2aee079391e100060524f6b973130f4e40 | refs/heads/main | 2023-08-18T00:33:48.538539 | 2023-08-09T09:31:24 | 2023-08-09T09:31:24 | 154,419,943 | 293 | 45 | NOASSERTION | 2023-09-14T15:31:32 | 2018-10-24T01:28:47 | R | UTF-8 | R | false | true | 882 | rd | ec2_delete_transit_gateway_connect_peer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ec2_operations.R
\name{ec2_delete_transit_gateway_connect_peer}
\alias{ec2_delete_transit_gateway_connect_peer}
\title{Deletes the specified Connect peer}
\usage{
ec2_delete_transit_gateway_connect_peer(
TransitGatewayConnectPeerId,
DryRu... |
a908366ab02c153d54aca56d66bd3d849b95e054 | b33735d157848984bc57288b41ce2bded79e2710 | /R/TimeDiscretization.R | ebce6ee34b190f4805e6ad979dad1ce9be4af267 | [] | no_license | bachirtadde/CInLPN | 9a00a0cabf5af34ba8403b17d81763db6067b990 | bb51492aa116635c4bf70afd29de7bdd58de15a5 | refs/heads/master | 2023-06-30T15:21:04.684650 | 2023-06-20T14:31:49 | 2023-06-20T14:31:49 | 163,929,733 | 2 | 1 | null | 2021-03-28T14:58:25 | 2019-01-03T06:00:38 | R | UTF-8 | R | false | false | 5,868 | r | TimeDiscretization.R | #' function that return 1 for a vector without observation after/during discretization
#'
#' @param x a vector
#'
#' @return a binary
AnyObsByLine <- function(x){
d<-0
len <-length(na.omit(x))
if(len == 0){
d <- 1
}
return(d)
}
#==========================================================================... |
4dda2746e4085a794e49f793c6f2c4297a953c84 | 39afffbc7573ae2483a759391bfa7bb4d2b14c76 | /cachematrix.R | c5e29958972b67d677438c99274f9e9e7f2f0153 | [] | no_license | Valentino92/ProgrammingAssignment2 | 8b6d390fa4e85569d45d8a10c4ef71fc74fd0e47 | d83a30dfedd0d23225b1fcf5abbf94add534caa6 | refs/heads/master | 2018-01-14T05:32:42.020676 | 2015-11-21T21:33:01 | 2015-11-21T21:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,161 | r | cachematrix.R | ## This function creates a CacheMatrix object that could calculate the inverse
## of the matrix passed by parameter x
# create the object and its function (setter and getter)
makeCacheMatrix <- function(x = matrix()) {
inverseMatrix <- NULL
set <- function(y) {
x <<- y
inverseMatrix <<- NULL # if the matrix ... |
d0b6997b9215aee9a7d342e63b2c0399717f8884 | 0078f47d0ecdebed9aff28834516402d0343fdec | /R-Codes/mkr_btw21karten.R | ad2c7c0bce425236b70cfa0e5186419e1b288108 | [] | no_license | StatistikVolker/BTW21 | 6f182894c0116c9a00400affe9fdf80325a6d393 | 7542f51161e8debb74928bd9f65e25b6ed476f50 | refs/heads/main | 2023-08-12T17:53:34.916655 | 2021-10-07T18:28:16 | 2021-10-07T18:28:16 | 412,388,068 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 13,448 | r | mkr_btw21karten.R | # mkr_btw21karten.r
# ---------------------------------------------------------------------------
# Verzerrte Wahlkreiskarten:
# ---------------------------------------------------------------------------
# --------------------------------------------------------------------------------
mkr.btw21karten <- functi... |
7f51aeb3b7be20b17e70be835953021303ff62ba | f7471ac611cb87fba70fe065da96649f02ae040d | /evaluationScriptsPVModels/step3_extractPeaks_BICCN_mouse_NEMO_ArchRProject.r | 45f58a2b3f7083b64a9d4131b6c304cc27eedec7 | [] | no_license | pfenninglab/TACIT | c90515f905f3e9cadcb8db9a6dc296bdd283abd9 | 4238c9304f9062496b1e54fcf16ef141de3fa809 | refs/heads/main | 2023-08-27T18:11:51.410002 | 2023-06-04T20:13:30 | 2023-06-04T20:13:30 | 411,869,107 | 8 | 1 | null | 2022-10-19T00:49:57 | 2021-09-30T00:22:35 | Shell | UTF-8 | R | false | false | 949 | r | step3_extractPeaks_BICCN_mouse_NEMO_ArchRProject.r | suppressMessages(library(ArchR))
options(stringsAsFactors = F)
##################################
### set Arrow File parameters ####
addArchRThreads(threads = 1)
addArchRGenome("mm10")
proj = loadArchRProject("ArchR_BICCN_mouse_NEMO_snATAC-Seq")
#########################
# extract IDR peak set
cellTypes ... |
1b159e95dbe273b0cb3a3212f88ab84753880a74 | 75356478ad057032878ad6dfcd20958f183eecd6 | /man/bas_plot.Rd | 549ca8ab3b3ce2d68bcf4d7c9bdb7f4a2ab2e978 | [
"MIT"
] | permissive | DongshengBai/sciliantifig | d75ebe1ec6b3fdf532442c9569f8e7905083c645 | bfadc5432433170f0e165c854dca6de75b643918 | refs/heads/master | 2022-03-12T17:44:27.544173 | 2019-09-20T01:50:10 | 2019-09-20T01:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 401 | rd | bas_plot.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{bas_plot}
\alias{bas_plot}
\title{Beautified version of summary plot for BAS}
\usage{
bas_plot(x, top.models = 20)
}
\arguments{
\item{x}{A BAS model object.}
\item{top.models}{The number of top models to include in the plot.}
... |
bd46238a8019ac3b5163c6032566d4212cb2cd59 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/DiagrammeR/examples/delete_graph_actions.Rd.R | fb323ae0332bcfeecf7896b04f61f3d146710f7a | [] | no_license | surayaaramli/typeRrh | d257ac8905c49123f4ccd4e377ee3dfc84d1636c | 66e6996f31961bc8b9aafe1a6a6098327b66bf71 | refs/heads/master | 2023-05-05T04:05:31.617869 | 2019-04-25T22:10:06 | 2019-04-25T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,279 | r | delete_graph_actions.Rd.R | library(DiagrammeR)
### Name: delete_graph_actions
### Title: Delete one or more graph actions stored within a graph object
### Aliases: delete_graph_actions
### ** Examples
# Create a random graph using the
# `add_gnm_graph()` function
graph <-
create_graph() %>%
add_gnm_graph(
n = 5,
m = 8,
set_se... |
a9fd1d98c39c2f5c815e25829b660d4576fce7ce | c9d7e4f0fcc61eb7c5215fdffced4b9db3c34d7e | /man/line_qid.Rd | 65844f17645884ec41096dc2e88fdbb3ca05e7be | [
"Apache-2.0"
] | permissive | turgut090/Cirq | 091424a209295d0478459dcaa80a6d74384f9690 | cfa48055034a83655e56fb9a6c9f0499dd48d710 | refs/heads/master | 2022-10-06T04:37:32.333261 | 2020-06-07T06:06:11 | 2020-06-07T06:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,004 | rd | line_qid.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Devices.R
\name{line_qid}
\alias{line_qid}
\title{Line Qid}
\usage{
line_qid(x, dimension)
}
\arguments{
\item{x}{The x coordinate.}
\item{dimension}{The dimension of the qid, e.g. the number of quantum levels.}
}
\value{
initialized line qi... |
6054014fecd7aa9bcf9221602d321d56382b2c62 | 5d690f159266b2c0f163e26fcfb9f9e17a0dc541 | /rangeModelMetadata/man/rmmFamilies.Rd | 22992f25dde2ca2076a4c2c6f173b90a25657107 | [] | no_license | albrizre/spatstat.revdep | 3a83ab87085895712d7109c813dcc8acb55493e9 | b6fc1e73985b0b7ed57d21cbebb9ca4627183108 | refs/heads/main | 2023-03-05T14:47:16.628700 | 2021-02-20T01:05:54 | 2021-02-20T01:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 306 | rd | rmmFamilies.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{rmmFamilies}
\alias{rmmFamilies}
\title{Print supported family names for rmm objects}
\usage{
rmmFamilies()
}
\description{
Used to see options to for specifying an rmm object template
}
\examples{
rmmFamilies()
}
|
d495b5baaa56c9a1fe1b09fc9ecdf13f9ad4f6d8 | d4900aec988678febffdfbed490f784c562a2bec | /man/a_layer.Rd | 77cca50ee79dfcc7e26f78dc1357d53bf51064ef | [] | no_license | vivekktiwari/animint2 | d64883c9f18c606fb3d5f34e457b5cb896d9d291 | 9a2ff243da6d97eb6b62a82ed81bbdb7ae55b554 | refs/heads/master | 2021-09-20T21:50:48.979177 | 2018-08-15T22:21:37 | 2018-08-15T22:21:37 | 117,336,879 | 0 | 0 | null | 2018-08-15T12:07:24 | 2018-01-13T11:07:03 | R | UTF-8 | R | false | true | 2,825 | rd | a_layer.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/layer.r
\name{a_layer}
\alias{a_layer}
\title{Create a new layer}
\usage{
a_layer(a_geom = NULL, a_stat = NULL, data = NULL, mapping = NULL,
a_position = NULL, params = list(), inherit.a_aes = TRUE,
subset = NULL, show.legend = NA)
}
\arg... |
9d30fefbf0634e7418da6d6540547e39f744388e | 6918faba19e3f3de6b50fa454af760b6879bb0cc | /plot2.R | 55c1e5d3cdc7f565cd110e7f232569cb724ae3ef | [] | no_license | stephanvdw89/datasciencecoursera | aa6091f192a55f7402498b06c5651b57c63312e1 | 547b09a0b011de7255a6b04204bf586b5d43dd9e | refs/heads/master | 2021-01-22T02:34:11.044686 | 2015-10-10T08:01:50 | 2015-10-10T08:01:50 | 25,726,377 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 773 | r | plot2.R |
#Exploratory Data Analysis
#Create Plot 2
data <- read.csv("C:\\Users\\stephanvdw\\Documents\\R\\Data\\RCourse_ED\\household_power_consumption.txt" , sep=";" , header=T)
data[,1] <- as.Date(strptime(data[,1],format="%d/%m/%Y"))
data$DateTime <- as.POSIXct(paste(data$Date,as.character(data$Time)))
data.sub1 <- d... |
0fdc573de7e6c821f39fcc56ebb291b1ea83e8d4 | cdb8630afd0afbf0bee54c5b0c52f12e8ae2b56c | /BayesBD/R/plotBD.R | 0d1742b5a9ba0dd8ffdd421a8860ee67644ed4c9 | [] | no_license | HaoWang47/GSOC-BayesBD | 5ceed79a73f626beb69efdcd9fc8adee75f215b0 | a3ca0980c8fc2acb305f6906b300fe645da8d51b | refs/heads/master | 2021-06-22T20:30:23.159987 | 2017-08-24T22:43:01 | 2017-08-24T22:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,019 | r | plotBD.R | plotBD =
function (fitted.image, plot.type)
{
is.string <- function(input) {
is.character(input) & length(input) == 1
}
if(is.string(fitted.image$image)){
if(substr(fitted.image$image,start = nchar(fitted.image$image)-2,stop = nchar(fitted.image$image))=="jpg"){
img = readJPEG(fitted.image$im... |
25d20d70b312ab44741f1ea8049da72c50f19622 | df05978d15fbbc08fd2f72b5c24d6118bfc1c6d2 | /Rfunctions/01_accessing_cleaning.R | 22da4408b92ef5330ad3bc65420eed29aae48adc | [] | no_license | SrivastavaLab/cesabfunctionalwebsdata | 54b286aed4989eef36aec956f738a305ec49d1d0 | c9b9e8fcafa6f43f4971b2ab37a9830cf17c5a67 | refs/heads/master | 2021-01-19T21:51:27.068980 | 2019-02-06T20:04:59 | 2019-02-06T20:04:59 | 61,402,349 | 1 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,663 | r | 01_accessing_cleaning.R | # accessing -----------------------------------------------------
## Getting the abundance matrix for each site requires querying its precise dataset ID
## this convenience function creates a named vector of all the datasets and downloads them all
## can be slow
get_all_abundances <- function(.dats){
## might need... |
ab2ff9197797f1098892222b2a0ced773550be93 | 5daf55051f6012da5b35af5c5759a06e6ada88c2 | /text_mining/wine_reviews_text_mining.R | 6cec2f629ddd8b8ac4ea0ac6f965e0aff609b63c | [] | no_license | DerrickStuckey/gwu-data-mining | 349b157a845fab255a6435982e0400f794ec36e1 | 472f2e81b4f1f4511a81a187aca129ef6856d5c4 | refs/heads/master | 2023-04-29T13:21:42.481160 | 2023-04-20T20:28:05 | 2023-04-20T20:28:05 | 222,146,440 | 1 | 4 | null | null | null | null | UTF-8 | R | false | false | 6,354 | r | wine_reviews_text_mining.R | # install.packages("tm")
# install.packages("lsa")
library(tidyverse)
library(forecast) # for accuracy() function
library(tm) # general text mining tools
library(lsa) # concept extraction
library(caret) # for confusionMatrix()
# from https://www.kaggle.com/zynicide/wine-reviews
wine.reviews <- read_csv("./data/wine-r... |
21818745b8699df316813eb8852192ba59415549 | 26d9e1219dc151e2d27dae1e38f3ff0ed938b967 | /man/round_facet_border.Rd | 4f7c5eb941100e3bd3afce59aef6ba03d22ae2f6 | [] | no_license | ZhonghuiGai/ggfacet | 36a3a3cc0d6a7ad403fa8656c84e7066e8546461 | 5dfbd2d6e2e638902b43fd31bc811aa4459f955e | refs/heads/main | 2023-08-25T14:50:10.240215 | 2021-10-16T12:36:08 | 2021-10-16T12:36:08 | 414,873,558 | 0 | 1 | null | null | null | null | UTF-8 | R | false | true | 604 | rd | round_facet_border.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/round_facet_border.R
\name{round_facet_border}
\alias{round_facet_border}
\title{Round rectangle border of facet. A swap function of ggfun}
\usage{
round_facet_border(p, r = 0.2)
}
\arguments{
\item{r}{the radius of the rounded corners, a \co... |
3dffa09d149fabe9d6d2549f8835d506b8a2f0e0 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/AER/examples/ChinaIncome.Rd.R | b862b9379955a9c6d3bd5774dd496f6091106425 | [] | 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 | 189 | r | ChinaIncome.Rd.R | library(AER)
### Name: ChinaIncome
### Title: Chinese Real National Income Data
### Aliases: ChinaIncome
### Keywords: datasets
### ** Examples
data("ChinaIncome")
plot(ChinaIncome)
|
268af2d375f967a0489e20a90a53eee200dd1b4c | bab0ce3c8a81762101b3af466d018f5425ab7fcc | /quantile-score.R | a09c710f160e5961254c8526b434e921644e5cf0 | [
"MIT"
] | permissive | signaturescience/random-walks | 1f0e6f5127e1ffdba76283fc6340d66dea1a79b6 | 853f96aae54b2985d1c55ef9be5da341d945081a | refs/heads/master | 2023-01-22T22:02:08.643403 | 2020-12-07T07:28:36 | 2020-12-07T07:28:36 | 319,381,303 | 0 | 0 | null | 2020-12-07T16:39:00 | 2020-12-07T16:38:59 | null | UTF-8 | R | false | false | 2,684 | r | quantile-score.R | #!/usr/bin/env Rscript
# Setup environment
suppressPackageStartupMessages(library(tidyverse))
source("covidhub-common.R")
ddt <- Sys.getenv("ddt")
targ_dir <- file.path("hopkins", ddt)
output_dir <- "forecasts"
datf <- load_hopkins(targ_dir) %>% rename(true_value = "value")
forecast_paths <- dir(output_dir, full.name... |
695d7798acfa4bdb3fdc257041baa8d5c61469d8 | c262aa9d1819623e627386fd43e61e0d988d405a | /pipeline/scripts/11-runSumAdducts.R | c4cad6f74f016b24275b3874c68e518d0270a810 | [
"MIT"
] | permissive | UMCUGenetics/DIMS | bf818ebefd272f2b4726b9db26b6326a5070911f | dd98c1e4fb3cf8fbe0a08761b6583e7930696e21 | refs/heads/master | 2023-08-08T03:11:34.213700 | 2023-03-28T09:23:11 | 2023-03-28T09:23:11 | 175,600,531 | 1 | 3 | MIT | 2023-08-25T15:27:21 | 2019-03-14T10:34:21 | R | UTF-8 | R | false | false | 3,479 | r | 11-runSumAdducts.R | #!/usr/bin/Rscript
.libPaths(new = "/hpc/local/CentOS7/dbg_mz/R_libs/3.2.2")
# load required packages
# none
# define parameters
cmd_args <- commandArgs(trailingOnly = TRUE)
for (arg in cmd_args) cat(" ", arg, "\n", sep="")
file <- cmd_args[1]
outdir <- cmd_args[2]
scanmode <- cmd_args[3]
adducts <- cmd_args[4]... |
fcb30c7bb5eb0124788b0bde2a8be5ce6e5f05c2 | 937b0de304e1728c13b6b2a86c11eae6dc4c8f6c | /doc/hello-foofactors.R | 9bafd93f43b4441c7bf40526e85e7068bc3cf96d | [] | no_license | STAT545-UBC-hw-2018-19/hw07-ziqiangt | 183853f13d5b969f9bd1ff67d3f6646aa6ce6480 | ef88da6a55536d2238e2c2dab48c6368f4054751 | refs/heads/master | 2020-04-05T18:43:35.344686 | 2018-11-13T03:40:44 | 2018-11-13T03:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,370 | r | hello-foofactors.R | ## ------------------------------------------------------------------------
library(foofactors)
a <- factor(c("character", "hits", "your", "eyeballs"))
b <- factor(c("but", "integer", "where it", "counts"))
## ------------------------------------------------------------------------
c(a, b)
## ------------------------... |
4d47c2ad59dc26772830f01e8de8a108d5c4052d | b7b0dc0e8130ae721148f02140c60fe491e07626 | /Explorartory Data Analysis (EDA).R | c2b62840101b1b0f917a7e28cb2dffda1df759e6 | [] | no_license | Yogi5693/Exploratory-Data-Analysis-EDA- | 00fe20e5fea162ec0c3ca1e0501c41e461fbc9a6 | 50d56196deb90b78e38abcc49650862be87d9fc8 | refs/heads/master | 2022-10-12T15:13:03.009351 | 2020-06-01T05:18:43 | 2020-06-01T05:18:43 | 268,430,756 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,792 | r | Explorartory Data Analysis (EDA).R | ##################### Exploratory Data Analysis ##############################################
# Data Exploratory
# Data Preparation
# Spliting Data into Train nd Test data using Random sampling
setwd("C:\\Users\\Home\\Desktop\\Dataset\\data sheets")
cr<-read.csv("Credit.csv",na.strings = c("",NA))
library(d... |
e03dcab23f5a8107c3e1614d591cbaf55aa4d232 | f99b364b656241b684998af32d8c3874718cf4c0 | /Day9/Day9.R | 1d15ad92e1de8538b53f9127443f71c0015ec6d3 | [] | no_license | RossiLorenzo/advent_code_2017 | 533315c09b6a368cf1e37f1ff3392e5149c07deb | 7af5730c67dec2bd4130e0c865384a7238efcd4a | refs/heads/master | 2021-08-31T14:20:22.474229 | 2017-12-21T16:52:12 | 2017-12-21T16:52:12 | 112,747,369 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 767 | r | Day9.R | library(stringr)
input = readLines("Day9/Input9_1.txt")
###################### PART 1 ######################
# Pre-cleaning from garbage
input_clean = str_replace_all(input, "\\!\\!", "")
input_clean = str_replace_all(input_clean, "\\!.", "")
input_clean = str_replace_all(input_clean, "\\<[^\\>]*\\>", "")
# Find level... |
b4de05ee2b183906a3295a6ecc37ac3b305d37fa | b55db886e7b1f561cc81c9caafdad5d7d632aa1e | /data-raw/public_transport_waedi.R | e3a10c44483f9e7a4fccddf8d15cd4e81258ad28 | [] | no_license | arc2r/arc2r | b0a3c2d07e2fed32f3716daccaf586344c0e1a4f | 7d964b55c6b3b62f53d4af9e33bcd65727d01cc7 | refs/heads/master | 2023-03-09T04:45:34.568766 | 2021-03-03T09:20:56 | 2021-03-03T09:20:56 | 332,980,536 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 255 | r | public_transport_waedi.R |
public_transport_waedi <- raster::raster("data-raw/public_transport_waedi/publicTransport_waedi.tif")
# //todo add readAll
public_transport_waedi <- raster::readAll(public_transport_waedi)
usethis::use_data(public_transport_waedi, overwrite = TRUE)
|
c905274f02c79e95e3a0fbd7ef234c221133100f | 90e2a130e06f9ad3dae97aae2270e8fe0e05fdc4 | /R/CoNI_functions.R | 31e5efb506b7f7658cef2802fb4be7b610c1be96 | [] | no_license | cran/CoNI | a844cb0c0118dbeeae2ccb5fd920fd8c952501d7 | 2636841a46ef404112e4241c0216d18e94569c17 | refs/heads/master | 2023-08-15T04:06:38.538008 | 2021-09-30T08:10:02 | 2021-09-30T08:10:02 | 412,122,297 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 112,445 | r | CoNI_functions.R | #CoNI Functions
#' Correlation guided Network Integration
#' @description CoNI is the main function of Correlation guided Network Integration (CoNI). Input data should come from two sources (e.g., gene expression and metabolite expression), and it should come from the same samples. It calculates all pairwise correlati... |
aef4665be3ee9d9d11db4959532a5fe9c33d36c5 | 1427b6faa8b70925f74e9d6c7c18955b00b40413 | /R/germanpolls.R | 61974e340dcadf8c714e89a7285cc6ece10935ee | [] | no_license | cutterkom/germanpolls | 8e0d5a92542bafee87173155e3b9bb5df20e643d | e555496add0eb2eefab77f5c96f7ac9781d5c21f | refs/heads/master | 2021-01-11T10:18:58.299049 | 2020-04-02T11:44:30 | 2020-04-02T11:44:30 | 72,452,729 | 4 | 1 | null | null | null | null | UTF-8 | R | false | false | 929 | r | germanpolls.R | #' Get data of German polls from wahlrecht.de.
#'
#' This is the main function to parse XML files from Wahlrecht.de to extract polling data.
#' It catches all XML elements that can be found.
#' Not all regions have XML available, their data can't be accessed with this function.
#' @param region string, all available ... |
6f3501d64579dd9427b3d3c8aa035dbe9c430f55 | 976f789338e38f9db135a9555af998b545ea5fd2 | /11-7-19 74 ptsIFN and SLICC.R | 89efcdb10fd8d399ba5d933f9689bb0feb99bf11 | [] | no_license | aamarnani/Lupus-Machine-learning | ea331e9be4f307792a4e7baf4b6f9293993766d3 | f103299096bff14600fe8b3d1dfd22fbc02243f2 | refs/heads/master | 2020-09-06T08:43:36.008899 | 2019-11-08T03:39:01 | 2019-11-08T03:39:01 | 220,378,031 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 8,222 | r | 11-7-19 74 ptsIFN and SLICC.R | #11-7-19_74 patients _ IFN genes and score and SLICC total score not high vs low
#0-2 is labeled as 1 and >=3 as 2
# Data read in off of biowulf
# Read Data
setwd("/data/amarnanian/Data Files Wd")
data <- read.csv("/spin1/USERS1/amarnanian/Data Files Wd/11-7-19 74 patients for R cleaned.csv", header = TRUE,
... |
e7a408d1703636fc37773ab70961c6d5ac0bd174 | adf7edc04f43e6cfd876774b0a95b7952f31677c | /model/solveTrial.R | 7e4d7955385d6dc84d5686b4d8e760b2e8a32564 | [
"MIT"
] | permissive | timothykinyanjui/Household-Regression | b8fb2fb00fd414e646c8c894fba76876f600a4eb | 417b6434dcf354097ceb48474818cade864fc65b | refs/heads/master | 2020-12-13T05:29:48.758163 | 2020-01-16T13:31:05 | 2020-01-16T13:31:05 | 234,324,130 | 0 | 1 | null | null | null | null | UTF-8 | R | false | false | 584 | r | solveTrial.R | # Script checks if the solution is achievalbe with the matrix computed
# Clear the workspace
rm(list = ls())
# Set up the data
n = matrix(c(1,1,1,1),nrow = 1)
B = matrix(c(0.7,0.6,0.5,0.3),nrow = 1)
scale = 8.7
beta = matrix(0.0327,nrow = 4,ncol = 4)
# Load relevant functions and packages
source("finalSizeProbGen.R"... |
88f1a95d606c13f1c076ad2dae3efe0d916908e9 | 9d3e3c3950c4101bc863a90e69606d7c7d03a4e9 | /Bloom/03_merge_02_Step/d_merge_blooms.R | 084e596a8cbf6c1ac26cb3d4e0bfc59f1a902b5c | [
"MIT"
] | permissive | HNoorazar/Ag | ca6eb5a72ac7ea74e4fe982e70e148d5ad6c6fee | 24fea71e9740de7eb01782fa102ad79491257b58 | refs/heads/main | 2023-09-03T18:14:12.241300 | 2023-08-23T00:03:40 | 2023-08-23T00:03:40 | 146,382,473 | 3 | 6 | null | 2019-09-23T16:45:37 | 2018-08-28T02:44:37 | R | UTF-8 | R | false | false | 3,115 | r | d_merge_blooms.R | .libPaths("/data/hydro/R_libs35")
.libPaths()
library(data.table)
library(dplyr)
source_1 = "/home/hnoorazar/bloom_codes/bloom_core.R"
source(source_1)
options(digit=9)
options(digits=9)
start_time <- Sys.time()
###############################################################
# in directory
bloom_base <- "/data/hydro/... |
ec310a9be126aa2b4edaae70242266951d7e1b4a | c8cc118d8194c69c1b6ad664d2118ffeb05a613e | /codes/_old_scripts/Fitting_models.R | 27730e992ea25b8f507d09331ec3a7fdc9fe8443 | [] | no_license | CIAT-DAPA/sfs_project | d0147e439b2a33fca83fdac98130dba75b45479b | bf149165b42ae60642353959d52bae48874dc4ab | refs/heads/master | 2021-01-20T13:35:11.540168 | 2020-04-08T19:44:14 | 2020-04-08T19:44:14 | 82,695,845 | 0 | 2 | null | null | null | null | UTF-8 | R | false | false | 11,131 | r | Fitting_models.R | # Fitting models for sustainable food systems project
# Implemented by: H. Achicanoy, P. Alvarez & L. Lamotte
# CIAT, 2017
# R options
g <- gc(reset = T); rm(list = ls()); options(warn = -1); options(scipen = 999)
OSys <- Sys.info(); OSys <- OSys[names(OSys)=="sysname"]
if(OSys == "Linux"){
wk_dir <- "/mnt/workspace... |
dd580a3ecb9abe0e4b1d8f66cc869a74acc7e71a | 2195c8ecffc27de3461974f8cea350313dcdb969 | /cachematrix.R | 22e015e1f8200746cdc8e09aa5a238aff8d7c595 | [] | no_license | tbudurovych/ProgrammingAssignment2 | bd7368e353b09cdff2daf26e656d367f83089ecb | 7e44d628b301a31c68dd43d6aac3aa6157f32b60 | refs/heads/master | 2021-01-21T07:25:57.403977 | 2014-09-16T09:22:36 | 2014-09-16T09:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,092 | r | cachematrix.R | ## Functions below allow computing of the matrix's inverse
## and caching the result for subsequent calls
## Function takes a matrix as an input and returns a special
## cached matrix structure (list)
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
## setter of matrix
set <- function(y){
x <<... |
d2a4f4979e951ac71423894fc375dd6b5714bd99 | 6b579170717f7671b1b06f6e814a602d127c601b | /R/kappa4al.R | ae46c2aefc92a362249ef958c76b7171bbe77763 | [] | no_license | mtloots/alR | d8e699c7dadaf9a7abff4db0a21b46522319a069 | 1fc6a3b30ee177b0e22dcdb5ecebae6bfc567091 | refs/heads/master | 2021-04-22T06:46:51.423304 | 2018-03-15T09:25:14 | 2018-03-15T09:25:14 | 59,803,019 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 7,514 | r | kappa4al.R | #' Sigmoidal curve fitting.
#'
#' A framework for arc length fitting of the four-parameter kappa sigmoidal function.
#'
#' @param formula An LHS ~ RHS formula, specifying the linear model to be estimated.
#' @param data A data.frame which contains the variables in \code{formula}.
#' @param lower A vector of lower const... |
9068a8068cd01a27f64957f5ee435c498c5f44ea | 5e20ff0c89ef4ab6399472e45d729a34bbd4e840 | /plot1.R | aeb87c10adfdcf027c4e715f13633ceb83350d17 | [] | no_license | tr3010/ExData_Courseproject_2 | 0f68138ae36d70231ab7cd3603b0c3c5789c6899 | 19a81eff1fef01001204ab3fb47e49affd1a914a | refs/heads/master | 2021-01-19T18:11:30.093483 | 2014-07-26T02:48:02 | 2014-07-26T02:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 481 | r | plot1.R | # Read data files
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Have total PM2.5 emissions in the US decreased from 1999 to
# 2008?
total.emissions <- aggregate(Emissions ~ year, NEI, sum)
png('plot1.png')
barplot(height=total.emissions$Emissions, names.arg=total.emissions$y... |
7375b597150ac75ca0b569270b673266f50ecc97 | 7bb21189354bf72b2e8aeeb9f0e4340e69ed2913 | /man/plot.Patterns.Rd | fea0a002bbeabda1a54cafcc0417ebfbaaa86dea | [] | no_license | elvanceyhan/pcds | 16371849188f98138933afd2e68a46167f674923 | 00331843a0670e7cd9a62b7bca70df06d4629212 | refs/heads/master | 2023-07-02T10:03:48.702073 | 2023-06-16T15:50:46 | 2023-06-16T15:50:46 | 218,353,699 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 1,144 | rd | plot.Patterns.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClassFunctions.R
\name{plot.Patterns}
\alias{plot.Patterns}
\title{Plot a \code{Patterns} \code{object}}
\usage{
\method{plot}{Patterns}(x, asp = NA, xlab = "x", ylab = "y", ...)
}
\arguments{
\item{x}{Object of class \code{Patterns}.}
\item... |
ced3d7887b67050aeb0792f6c6fa3895f4622b5d | ca17e23492efd1a8cf1af9ad9d950c62d0364e94 | /R/global_local_tests.R | 5766f946e74ad09f5a1c9eb79d0a042c1b7a7371 | [] | no_license | thibautjombart/adegenet | a8b7f535510687dbf29c81f6da96eeacb442344e | bb8b9e89674adf55993d7d5abc5995485b38b8c9 | refs/heads/master | 2023-02-07T11:36:19.650854 | 2023-01-28T00:12:40 | 2023-01-28T00:12:40 | 31,032,458 | 169 | 70 | null | 2023-01-28T00:12:41 | 2015-02-19T19:25:14 | R | UTF-8 | R | false | false | 1,963 | r | global_local_tests.R | ########################################
#
# Tests for global and local structures
#
# Thibaut Jombart 2007
# t.jombart@imperial.ac.uk
#
########################################
###############
# global.rtest
###############
global.rtest <- function(X, listw, k=1, nperm=499){
if (!inherits(listw, "listw")) stop("o... |
475499957e9b6b95ce610afdbdd9267dba32bad2 | 794d8361259d4a057abe2409dc735d67e4a3b902 | /plot1.R | afe0d1d6a459f0b759647caec5f8bfd88d971a30 | [] | no_license | hkdevgit/ExData_Plotting1 | 64370ecb0092a117e964110fe5f78f31c2e18d5c | e1e94112eef6545a3c6940c11047e5523d8beae5 | refs/heads/master | 2020-12-01T01:10:39.153224 | 2015-02-08T18:47:04 | 2015-02-08T18:47:04 | 30,468,975 | 0 | 0 | null | 2015-02-07T20:23:37 | 2015-02-07T20:23:36 | null | UTF-8 | R | false | false | 789 | r | plot1.R | ## The following function reads in energy consumption data from
## UC Irvin Machine Learning data set to plot a histogram of the
## Global_active_power for the 2nd day of February 2007
plot1 <- function()
{
## Read data table as string, not factors.
## (60 mins/h * 24 hr/day * 90 days) = 129600 samples
Data <- ... |
1811db688f241513ca9bc74d43e3dc69d66c35cb | 81b906cf46e8033d2c3d33e00b639855bbbb4a3b | /man/mod_colors.Rd | c1c45bfe887ea60786dd75dd91a98ef1d426b3cd | [] | no_license | csbl-usp/CEMiTool | f865e36a5e544b7bce5719afc822e2b669412c59 | 194342d0ed46d8e8432afd2972ac7e8b341802d0 | refs/heads/master | 2022-12-06T13:14:59.838066 | 2022-10-17T20:25:11 | 2022-10-17T20:25:11 | 76,597,565 | 24 | 9 | null | null | null | null | UTF-8 | R | false | true | 766 | rd | mod_colors.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cemitool.R
\name{mod_colors}
\alias{mod_colors}
\alias{mod_colors,CEMiTool-method}
\alias{mod_colors<-}
\alias{mod_colors<-,CEMiTool,character-method}
\title{Retrieve and set mod_colors attribute}
\usage{
mod_colors(cem)
\S4method{mod_colors... |
862504e3ca56dea5d8c2c1f542967530766ad1a9 | 56ad167c5911c6c300157c7cfff35432b983b7b9 | /tests/testthat.R | ded96953a3dfbb21f49dc34f6e113fbfc42db48e | [
"MIT"
] | permissive | schochastics/graphlayouts | 95d3cabe2802aef0da56f7a9b74e4bf188da064e | 7782674ea39d78629a69a934974b179fc6bb079a | refs/heads/main | 2023-07-15T09:03:29.493573 | 2023-06-30T08:02:53 | 2023-06-30T08:02:53 | 148,535,149 | 227 | 16 | NOASSERTION | 2023-04-29T08:06:40 | 2018-09-12T20:03:02 | R | UTF-8 | R | false | false | 68 | r | testthat.R | library(testthat)
library(graphlayouts)
test_check("graphlayouts")
|
29acb917ef0ea310b374db53bc760521d93c2939 | 1df94173dc9d57962bdc9f046533e4f4f87e04dd | /Nigeria/DHS/1_variables_scripts/fever/med_fever_raw.R | 164adf473d42a2bf90ad30514dfafd4c99a0298e | [
"MIT"
] | permissive | numalariamodeling/hbhi-dhs | 151b12be77e326a796ffadded3e248a021ad47bb | e9db197868dbcc4a74f290cacf70d3914451bfaf | refs/heads/master | 2023-05-31T14:21:08.885388 | 2023-05-22T21:23:07 | 2023-05-22T21:23:07 | 253,842,546 | 0 | 4 | null | null | null | null | UTF-8 | R | false | false | 7,417 | r | med_fever_raw.R |
look_for(NGAfiles[[11]], "fever")
table(NGAfiles[[2]]$h32z) #1990
table(NGAfiles[[5]]$h32z) #2003
table(NGAfiles[[8]]$h32z) #2008
table(NGAfiles[[11]]$h32z)#2010
table(NGAfiles[[14]]$h32z)#2013
table(NGAfiles[[17]]$h32z)#2015
table(NGAfiles[[20]]$h32z)#2018
# list for 1990, 2003, 2008, 2010, 2013, 2015, 2018
h32z.l... |
69edaa9dfea8433bec0b5751a96a154fdc3d7879 | 1f2429c4ee1ae623374f6d3fbecbc056b4ac5526 | /man/validate_single_pos_num.Rd | e46482213d469ea97c9d81b3794bc73c453254ef | [
"BSD-2-Clause"
] | permissive | nsh87/receptormarker | 1c47d9a6c461b41afd0a9d30fe7cddffd20e7ffd | 4f2c1e9e45b2c94da2c4a56f639b9ef1c1fec6dd | refs/heads/master | 2022-08-31T04:25:05.025729 | 2022-08-21T19:34:06 | 2022-08-21T19:34:06 | 35,985,771 | 4 | 9 | BSD-2-Clause | 2021-11-30T21:08:12 | 2015-05-21T02:18:12 | JavaScript | UTF-8 | R | false | true | 427 | rd | validate_single_pos_num.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/arg_validation.R
\name{validate_single_pos_num}
\alias{validate_single_pos_num}
\title{Validate than an argument is a single, positive integer}
\usage{
validate_single_pos_num(n)
}
\arguments{
\item{n}{An item to be checked.}
}
\description{
... |
d214dc9cc23be18ee0a3abc3df1f9568e9151329 | 5df9be8f44a4ea1e5f61cd0f42191ba1429c20e3 | /R/zzz.R | f1980cae665b0eca36c8841f899000030ab85f64 | [] | no_license | ggPMXdevelopment/ggPMX | 27310d945aed122bf259e95c5c0300011b3e37fc | ee65d769ee832779dd0fa5696138df407132734a | refs/heads/master | 2023-08-03T19:41:11.837005 | 2023-05-31T20:53:19 | 2023-05-31T20:53:19 | 181,708,751 | 38 | 12 | null | 2023-07-28T17:47:36 | 2019-04-16T14:41:37 | R | UTF-8 | R | false | false | 146 | r | zzz.R | .onLoad <- function(libname = find.package("ggPMX"), pkgname = "ggPMX") {
pmxOptions(template_dir = file.path(libname, pkgname, "templates"))
}
|
3b8c135145eac62548e328ae751a20f9a0b5311e | fd6c335873f46f710c11c5eff98db316c77536b7 | /man/PortfolioOptimProjection.Rd | 2af6db7669ed92ae9f6b1e554b2ac745d175d20f | [] | no_license | cran/PortfolioOptim | 005b67bda2c0f06873715ca9bb7b0761df2845bf | cea7d0899e2aecac33c62be4efbd72c749e4ebaf | refs/heads/master | 2021-01-19T22:41:18.803895 | 2019-02-07T11:53:25 | 2019-02-07T11:53:25 | 88,845,114 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 4,708 | rd | PortfolioOptimProjection.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PortfolioOptimProjection.R
\name{PortfolioOptimProjection}
\alias{PortfolioOptimProjection}
\title{Portfolio optimization which finds an optimal portfolio with the smallest distance to a benchmark.}
\usage{
PortfolioOptimProjection (dat, port... |
dfa2fc4dd55d013e4230368c1bc3b209f2522023 | 1b345edeca73e114498f9ae6291e2c33411a01bc | /chapter 06/06_01 anytime.R | 0d9b4ee1f254a39e5e8e3e4c18152d49e1dc04b2 | [] | no_license | mnr/R-for-Data-Science-dates-and-times | 8e11c29058f166eb62a598b3145e9be6df44b6c3 | 1c136ac075d371274656becaa18d2b187a7f3444 | refs/heads/master | 2021-06-13T08:36:56.956839 | 2021-04-09T00:12:44 | 2021-04-09T00:12:44 | 173,846,477 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 746 | r | 06_01 anytime.R | # anytime package
install.packages("anytime")
library(anytime)
# incoming ----------------------------------------------------------------
anydate(20190426 + 0:2)
anydate("2019_04_26")
anytime("20190426 0938")
anytime("March 14, 2015")
savethistime <- anytime("20190426 0938", tz = "EST")
class(anytime("20190426 09... |
a28a79608d742275a350344b4425ec5ef17ca377 | 0a906cf8b1b7da2aea87de958e3662870df49727 | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610382595-test.R | 2be5222e0c9f61280cf630ddabd38cfb342eaff8 | [] | no_license | akhikolla/updated-only-Issues | a85c887f0e1aae8a8dc358717d55b21678d04660 | 7d74489dfc7ddfec3955ae7891f15e920cad2e0c | refs/heads/master | 2023-04-13T08:22:15.699449 | 2021-04-21T16:25:35 | 2021-04-21T16:25:35 | 360,232,775 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 545 | r | 1610382595-test.R | testlist <- list(rates = numeric(0), thresholds = numeric(0), x = c(1.42943178999697e-101, 4.07221237780293e-308, 0, 0, 0, 0, 0, 0, 4.77830972673648e-299, 2.82755217285071e-110, 7.2911220195564e-304, 0, 0, 0, 0, 0, -5.17539190460651e+245, 0, 0, 0, 7.29112200597562e-304, 7.06389330511216e-304, 0, 0, 0, 0, 0, 0, 0, 0... |
0e8f49d90ab5dace81bcca6c187361a0fc398365 | fcb9c08efecacc63018c388fcb847e58aa07f087 | /man/norm_run.Rd | b8b779ab5d8b0f628aa9346834f14b73d2cd7a92 | [
"MIT"
] | permissive | yuliasidi/m2imp | 52957a3580385d5f9a29e85579b4f124ae9d874e | 857f43522906c43306d49bcd4649d2cf44901343 | refs/heads/master | 2020-07-13T05:51:33.835388 | 2020-01-14T21:14:16 | 2020-01-14T21:14:16 | 205,009,061 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 821 | rd | norm_run.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/norm_run.R
\name{norm_run}
\alias{norm_run}
\title{Runs MI via norm package}
\usage{
norm_run(dt_in, num_m = 5, i, n_iter, chain = c("one", "multiple"))
}
\arguments{
\item{dt_in}{tibble, to be imputed}
\item{num_m}{numeric, Default: 5, numb... |
1155ac26fe0e5813ecf0b85f37d4877b77553bf3 | f2de3eb978554261d4edaba16782ebe0f12d9031 | /man/rmfi_write_array.Rd | 3ac356e589d68272159102b66b9892b1458caf64 | [] | no_license | rogiersbart/RMODFLOW | 540a02cf0ccc89423cac0742be51b36c0d4098e5 | 2da3f1e23f0df058e56a4b30cb46a304e9a757e7 | refs/heads/master | 2023-03-22T15:51:58.860817 | 2022-12-26T19:09:23 | 2022-12-26T19:09:23 | 17,342,744 | 34 | 9 | null | 2021-08-19T20:56:08 | 2014-03-02T17:36:45 | R | UTF-8 | R | false | true | 1,332 | rd | rmfi_write_array.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internals.R
\name{rmfi_write_array}
\alias{rmfi_write_array}
\title{Write modflow array
Internal function used in the write_* functions for writing array datasets}
\usage{
rmfi_write_array(
array,
file,
cnstnt = 1,
iprn = -1,
append... |
5c5219f1ce17942222c4d72f29c6e1ebc042cc98 | ffdea92d4315e4363dd4ae673a1a6adf82a761b5 | /data/genthat_extracted_code/bayesmeta/examples/normalmixture.Rd.R | c2b753cd4b9c107490f388fc4664d16b7ec153a6 | [] | 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 | 3,856 | r | normalmixture.Rd.R | library(bayesmeta)
### Name: normalmixture
### Title: Compute normal mixtures
### Aliases: normalmixture
### Keywords: distribution
### ** Examples
##################################################################
# compare half-normal mixing distributions with different scales:
nm05 <- normalmixture(cdf=function(... |
9b0db8a8c3ac8f4bbbf5c9b0c70dd90b492dd293 | 3870838ffbe0cde6fb869dcce9c5044b250c5c22 | /misc_scripts/gen_geno_for_multi_snp_simulation/sampling_genes.R | ebd2380443728253c565cb6ea0d66935a4708ab8 | [
"MIT"
] | permissive | liangyy/mixqtl-pipeline | d6f9baf9db9ee260bc6bafd29773361e8d58b33e | 556c983a2e5bb3feaf21a88a72c4a77c98df179d | refs/heads/master | 2023-02-19T07:53:47.135434 | 2020-05-27T02:50:54 | 2020-05-27T02:50:54 | 191,611,597 | 3 | 0 | null | null | null | null | UTF-8 | R | false | false | 913 | r | sampling_genes.R | # ARGV1: input gene model file (no header)
# ARGV2: cis window size
# ARGV3: output file name
# ARGV4: number of genes selected
## 'formatted-gene-model.gencode.v32lift37.basic.annotation.txt.gz'
set.seed(1)
library(dplyr)
args = commandArgs(trailingOnly=TRUE)
win_size = as.numeric(args[2])
n = as.numeric(args[4])
... |
b0498e7306d32b5fa13384655f0749cdc7261f41 | 6b793edcb3856fb39a00861c5068e42f34883d8c | /R/gdc_token.R | e8ba96b001ed85c014259ac517c808e4d24ab487 | [] | no_license | Bioconductor/GenomicDataCommons | 348e1879607e51dccd218229aa76746806386e17 | 007c2917f40412a3272dae41d6438ac5df284972 | refs/heads/devel | 2023-05-26T09:48:51.999727 | 2023-05-25T12:56:22 | 2023-05-25T12:56:22 | 60,694,062 | 87 | 30 | null | 2023-01-18T16:06:36 | 2016-06-08T11:51:11 | R | UTF-8 | R | false | false | 2,008 | r | gdc_token.R | #' return a gdc token from file or environment
#'
#' The GDC requires an auth token for downloading
#' data that are "controlled access". For example,
#' BAM files for human datasets, germline variant calls,
#' and SNP array raw data all are protected as "controlled
#' access". For these files, a GDC access token is ... |
e6dd5d7cb99987c2df8dac8013963a3e8b42e60f | f36702723c3116da6a73af47bbb3e8adafe0ee53 | /CNC/Coding_calc.R | d2f3e67b30993541248cd19e6050dcddd280387d | [] | no_license | statsarah/Capstone_TE_Vfischeri | 384b0708bc05278a68ed2e6ce6cdd326b6b79996 | 47e4b41c834da2b396367228b6483d76ef30ab27 | refs/heads/master | 2021-06-19T20:36:55.738754 | 2017-08-02T03:27:55 | 2017-08-02T03:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,203 | r | Coding_calc.R | ###############################################
# Coding and Non-coding regions of the genome #
###############################################
Ch1Gene<-read.table("Ch1Gene.txt",sep="\t", h=T, quote="")
Ch2Gene<-read.table("Ch2Gene.txt",sep="\t", h=T, quote="")
PlsmGene<-read.table("PlsmGene.txt",sep="\t", h=T, quote="... |
5540c02d6990bb4bc28686125b781906ea8addd9 | bb42db4ee05bada96202f032e1ec121da0f6b952 | /Sock-Predict/ui.R | a8dbb0c3a57fb6d3202e4a4a3dff4464b03d7582 | [] | no_license | Yen-HuaChen/Code-Sample | 0a11f930c10d24cf66610e75c8587b5c0cf30be0 | 59a495b528dcf6e3f875a5108280aecadaf59217 | refs/heads/master | 2020-05-21T05:08:33.334534 | 2017-04-26T20:13:57 | 2017-04-26T20:13:57 | 84,575,027 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 14,140 | r | ui.R | library(shiny)
library(dplyr)
library(parallel)
shinyApp(
ui = fluidPage(
titlePanel("Socks"),
# input number of simulations
sidebarPanel(
numericInput(
"n_sims",
"Number of simulations to run:",
value = 10000,
min = 1000,
max = 1e6
),
hr(),
... |
74cdc8838b6935bc31a9aad801443f55532aa1c7 | 479b2de10a86a2bc30a65f82ed4a2649061c7749 | /DPobs/cde/main.r | a6db54bbfcd9b2944f1c05c339f8c19cf409f0bb | [] | no_license | iagomosqueira/deepfishman | 33e54c39d50a4716f238b17cf0f9042f1f019488 | ae2a7fb0a32815fb11cd7c052d3c5e365aea11bd | refs/heads/master | 2021-01-10T21:33:17.487090 | 2012-05-21T13:34:59 | 2012-05-21T13:34:59 | 33,233,828 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,375 | r | main.r | # The main loop
# Load the preconditioned stock
# Set parameters (obs error, srr error, nyrs etc)
# Loop over years and run fowards
# Calc the performance stats
#*******************************************************************************
rm(list=ls())
library(FLCore)
library(FLash)
library(FLAssess)
l... |
c7b5b2504b2f5211a7217ee58b2c5f9373fdd768 | fb30081730db2b779841e67bb2fbbd69d9117379 | /CAMM/man/calc_pool.Rd | 3c6f1060bafe5d8c32441b227295bdd7bc281068 | [] | no_license | jescoyle/CAMM | 0095f995c07d633a5d1bb14bc8843e74a561024a | 1f2625b4359304dd1d5c7a1fab069e4afe7baee9 | refs/heads/master | 2020-04-05T19:02:31.417719 | 2016-08-31T17:29:52 | 2016-08-31T17:29:52 | 49,738,912 | 0 | 0 | null | null | null | null | UTF-8 | R | false | true | 875 | rd | calc_pool.Rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calc_pool.r
\name{calc_pool}
\alias{calc_pool}
\title{Calculate species pool}
\usage{
calc_pool(comm, topo_names, partner)
}
\arguments{
\item{comm}{(required) metacommunity matrix indicating which
association is present in microsite of each... |
d69795b0f1359e9c7bdc54757240ef17901e86d4 | 80b653809974fb05b8732bbff9fd8ff8518640d4 | /10월 30일 _tm_워드클라우딩/TM_Lab04_RTextMining_Corpus.r | e20985fe6ca40763032f6874bc21a3b5e8eb15df | [] | no_license | namu2018/text-mining | ecb10f69aa06e4fda19fe74336889a1e4fb351e9 | f995e9b379c18d51c1c15b1c1bc64d866e3fb974 | refs/heads/master | 2020-04-03T14:33:04.981141 | 2019-02-18T01:07:15 | 2019-02-18T01:07:15 | 155,325,913 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,426 | r | TM_Lab04_RTextMining_Corpus.r | ## Lab04_말뭉치(Corpus) 생성, 전처리
# 01. 텍스트 마이닝 패키지 불러오기(tm) - KoNLP
# 02. 데이터 줄단위 불러오기 - readLines
# 03. 텍스트에서 말뭉치(Corpus)로 변환 -
# VectorSource(벡터->데이터소스), DirSource(디렉터리->데이터소스)...,
# 04. corpus 로 변환하여 저장 후, 전처리
# Corpus, VCorpus
# 05. 전처리가 후, 문서 내용 확인
# tm_map( tolower )
#
# 06. 불용어 처리 수행
# stopword... |
7b622aaaff64301cbbe041837747e1e478cc4999 | 82d10a973ab97bad89ebd240347fe0809fb0350d | /R/plan.R | 05ab5927944336560307d5bc7c97cb2ec9a12ba1 | [] | no_license | MilesMcBain/drake_make | 48fb428c532368e73a5408c29067280756cf6c96 | 0ccb2dc12af88d15dc79cb221efb9157fd696171 | refs/heads/master | 2022-11-26T13:21:08.489530 | 2020-08-09T10:56:22 | 2020-08-09T10:56:22 | 285,987,239 | 2 | 0 | null | null | null | null | UTF-8 | R | false | false | 400 | r | plan.R | the_plan <-
drake_plan(
words = readLines(file_in("inputs/words.txt")),
histogram_data = make_historgram_data(words),
histogram_plot = qplot(Length,
Freq,
data = histogram_data),
report = target(
command = {
rmarkdown::render(k... |
93f292bb7e80eecf0135730fefa1aeed9576861d | ccbcaf18e9655c6ad5c71d29956c9761457e6425 | /Week 4/run_analysis.R | edf7249d9758747b8cc9cd526b4f18db4918f8ba | [] | no_license | marthur3/Getting-and-Cleaning-Data | 3a4d1d5f76b181dca3a136f629ca724b9ba5fbab | e6abd18958b2728ff91e6511c64964cf1fd29e74 | refs/heads/master | 2020-03-26T20:23:06.068880 | 2018-08-19T17:49:39 | 2018-08-19T17:49:39 | 145,320,744 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 3,294 | r | run_analysis.R | library(tidyverse)
library(data.table)
# setwd("~/GitHub/Getting and Cleaning Data/Week 4")
# wd <- "C:/Users/Michael A/Documents/GitHub/Getting and Cleaning Data/Week 4"
# fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
# zippedFileName <- "wearables_data.zip"
#
# ... |
3a1f22f73f9a47ca1fdfcfa4550cec08d64363da | d44517cbe4b2fd0839e8c19a0848a577a1659c86 | /quiz2.R | 26b2b44a7289e95befa1020077f961ca1d394a51 | [] | no_license | gridl/R | 7bfe0b8da9a3843ba8a8b0a88bee06ba794ed701 | 4a5d638d60a90b32f5b4f9c3c31d1faa37ede09d | refs/heads/master | 2021-05-08T20:39:32.392688 | 2015-06-29T02:10:09 | 2015-06-29T02:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 666 | r | quiz2.R | library(datasets)
data(iris)
?iris
# There will be an object called 'iris' in your workspace.
# In this dataset, what is the mean of 'Sepal.Length' for
# the species virginica?
s<-split(iris,iris$Species)
answer<- apply(s$virginica[,1:4],2,mean)
library(datasets)
data(mtcars)
x<-matrix(rnorm(200),20,1... |
a1ba9e7f7b26832c9e9fccb47f9baf9c1f6db998 | c9e0c41b6e838d5d91c81cd1800e513ec53cd5ab | /R/libgladeManuals.R | 20eeee0cc0c7d6b9979f3c908b5ac441aa0b3b23 | [] | no_license | cran/RGtk2.10 | 3eb71086e637163c34e372c7c742922b079209e3 | 75aacd92d4b2db7d0942a3a6bc62105163b35c5e | refs/heads/master | 2021-01-22T23:26:26.975959 | 2007-05-05T00:00:00 | 2007-05-05T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,389 | r | libgladeManuals.R | # reason: just wanted to add default for size parameter, for convenience
gladeXMLNewFromBuffer <-
function(buffer, size = nchar(buffer), root = "NULL", domain = "NULL")
{
buffer <- as.character(buffer)
size <- as.integer(size)
if (!is.null( root )) root <- as.character(root)
if (!is.null... |
3a9d025716541e08b45830b8fc23a25ad7516559 | 5bf67929c39c37f425fb5e85a16ca82077be0b68 | /R/utils.R | c85647ea350682b4df66fbc004fc30bbc03a4919 | [] | no_license | FontierZoe/Ma-reconstruction-mammire | 6ff454768365085c9b85e2d4f7b8631be465498b | e6421f9860480eccd2f7f7f25f3fc666ecfe0b94 | refs/heads/main | 2023-06-30T12:41:53.448533 | 2021-07-28T15:20:17 | 2021-07-28T15:20:17 | 391,101,511 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 1,316 | r | utils.R | #### Fonctions pour les graphes de reconstruction#####
# Fontier Zoé #
COLORS_CODE<-c()
LABEL_CODE<-c("dedoublement du sein restant"="Dedoublement du sein restant",
"dermopigmentation"="Plaque aréolo mamelonnaire par dermopigmentation",
"grand dorsal"= "Muscle du grand dorsal",
... |
9be8531d338525e02a039c0a35b65ae350e51203 | 63322f7ce9eca510117d7559640ea18b2833496e | /functions.R | f627a2fe574c0d39f2db33c613d5a673e353292b | [] | no_license | iositan/R_Programming | 60ce1df94b433fb269e472c21620600c2b16bc2d | 51d8d62a68f6903c09eda39390520259a9b69a4b | refs/heads/master | 2016-09-05T19:04:39.700801 | 2014-07-26T20:50:24 | 2014-07-26T20:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 878 | r | functions.R | add2 <- function(x,y) {
x+y
}
above10 <- function(x) {
use <- x > 10
x[use]
}
above <- function(x, n = 10) {
use <- x > n
x[use]
}
columnean <- function(y, removeNA = T) {
# no of columns
nc <- ncol(y)
# an empty vector
means <- numeric(nc)
for (i in 1:nc) {
means[i] <- me... |
6255472a68d957eedba3f65b240cec7ae6bb9c65 | 2f44cd9955606c4784840822bf0e63e0444a367c | /data/WoS/col_specs.R | 962657ae2329adb2979f2e067b20d1053a48455e | [] | no_license | kleinlennart/literature-review | 07dcefddd2fd7bb402541ee9f751b9b2bd88b4d8 | c0ea0de754026b519ec3c8e89c82ba578f0856b1 | refs/heads/master | 2023-04-02T19:51:17.132934 | 2021-04-06T21:08:29 | 2021-04-06T21:08:29 | 355,305,387 | 0 | 0 | null | null | null | null | UTF-8 | R | false | false | 2,167 | r | col_specs.R | col_specs <- cols(
Title = col_character(),
Authors = col_character(),
`Corporate Authors` = col_character(),
Editors = col_character(),
`Book Editors` = col_character(),
`Source Title` = col_character(),
`Publication Date` = col_character(),
`Publication Year` = col_character(),
Volume = col_characte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.