id stringlengths 40 40 | repo_name stringlengths 5 110 | path stringlengths 2 233 | content stringlengths 0 1.03M ⌀ | size int32 0 60M ⌀ | license stringclasses 15
values |
|---|---|---|---|---|---|
5d99502cd971de519a1d29a9f59babb40b9ebf97 | mdespriee/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | bOOm-X/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | jianran/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | witgo/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | shaneknapp/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | minixalpha/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | mike0sv/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | BryanCutler/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | lvdongr/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | chuckchen/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | brad-kaiser/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | panfengfeng/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | MLnick/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | actuaryzhang/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | apache/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | WeichenXu123/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | aokolnychyi/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | esi-mineset/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | alunarbeach/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | hvanhovell/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | ConeyLiu/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | tejasapatil/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | lxsmnv/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | UndeadBaneGitHub/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | nilsgrabbert/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | akopich/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | shuangshuangwang/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | publicRoman/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | Aegeaner/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | WindCanDie/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | liutang123/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
5d99502cd971de519a1d29a9f59babb40b9ebf97 | map222/spark | examples/src/main/r/ml/randomForest.R | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 1,977 | apache-2.0 |
0043cf1875fd4c982856c695183b1b76acd59697 | ecor/ncdf4df | inst/examples/RollMeteoPrec.R | # TODO: Add comment
#
# Author: ecor
###############################################################################
## 3 hour-rolled Precipitation
rm(list=ls())
library(ncdf4df)
library(ggplot2)
ncname <- system.file("trentino/data/trentino_hourlyweatherdata_v2.nc",package="ncdf4df")
nc <- nc_open(ncname)
meteoPre... | 2,689 | gpl-2.0 |
0da24640bcba81dd64c6be1a8c2e2388302ede2b | ColumbusCollaboratory/electron-quick-start | R-Portable-Mac/library/robustbase/doc/fastMcd-kmini.R | ### R code from vignette source 'fastMcd-kmini.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: init
###################################################
# set margins for plots
options(SweaveHooks=list(fig=function() par(mar=c(3,3,1.4,0.7),
... | 756 | cc0-1.0 |
8bfa3ae0e42caaac6c53476e58bacd5887edf961 | gmaubach/R-Project-Utilities | t_create_variable.R | #-------------------------------------------------------------------------------
# Module : t_create_variable.R
# Author : Georg Maubach
# Date : 2016-04-26
# Update : 2016-07-21
# Description : Create variables on the fly
# Source System : R 3.3.0 (64 Bit)
# Target System : R 3.3... | 4,021 | gpl-2.0 |
e4ca0cb83269cc00f37fc564450249e6f3fb01c3 | pauEscarcia/BigData-Zacatecas | section2/2.1 Bar Charts/Data Format.R | mm.counts <- c(12,6,8,10,6,7)
names(mm.counts) <- c("blue","brown","green","orange",
"red","yellow")
mm.counts
mm.colors <- c("blue","brown","green","orange","red","yellow")
getwd()
setwd("/home/pauescarcia/Documentos/BigDataZacatecas/BigData-Zacatecas/section2/2.1 Bar Charts")
mm.df <- read.csv("... | 487 | cc0-1.0 |
ff37b0e64d23112cfd72b1c4a5859343ac72437f | bjsmith/reversallearning | nate_files/Misc/plot_model.R | library(magrittr)
plot_model <- function(x, single = T, compute_auc = T) {
parVals <- rstan::extract(x$fit)
# for_plot <- NULL
# for_plot$subjID <- reshape2::melt(apply(parVals$p_subjID, c(2,3), mean, na.rm=T))[,3]
# for_plot$cor_res <- reshape2::melt(apply(parVals$p_cor_res, c(2,3), mean, na.rm=T))[,3]
# ... | 3,679 | apache-2.0 |
1c8e760d0799489c4543511d69fca778332a2a46 | happynotes/PIHM.AnalysisR | R/goQ.R | #' PIHM Analysis project.
#' Developed by Lele Shu( lele.shu at gmail.com lzs157 at psu.edu )
#' Created by Wed Apr 15 20:25:45 EDT 2015
#' Current version is for PIHM-MF or PIHM v2.4;
#'
#'
#' @param inpath
#' @param outpath
#' @param resultpath For saving image file.
#' @param ifplot If plot and save imag... | 4,289 | gpl-2.0 |
ce3500f6b0029e081f9e29d7003aca0c1cb5d548 | JanMarvin/rstudio | src/cpp/session/modules/SessionTutorial.R | #
# SessionTutorial.R
#
# Copyright (C) 2020 by RStudio, PBC
#
# Unless you have received this program directly from RStudio pursuant
# to the terms of a commercial license agreement with RStudio, then
# this program is licensed to you under the terms of version 3 of the
# GNU Affero General Public License. This progra... | 9,184 | agpl-3.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | elkingtonmcb/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | rowhit/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | vbelakov/h2o | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | eg-zhang/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | h2oai/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | woobe/h2o | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | h2oai/h2o | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | 111t8e/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | calvingit21/h2o-2 | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
d9a627469c43ab4b868c2d76784c45b70b753692 | 100star/h2o | R/tests/testdir_javapredict/runit_DRF_javapredict_30kcat.R | #----------------------------------------------------------------------
# Purpose: This test exercises the RF model downloaded as java code
# for the dhisttest data set. It checks whether the generated
# java correctly splits categorical predictors into non-
# contiguous groups at each no... | 1,529 | apache-2.0 |
ea72060f2bc868b583e2fa24342730e43f6aa9d7 | dengyishuo/fPortfolio | R/weightsSlider.R |
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be use... | 5,251 | gpl-2.0 |
b6d83dafef4b0b6afb0fd3cba73d6a2777814b41 | richelbilderbeek/nLTT | tests/testthat/test-nltt_plot.R | context("nltt_plot")
test_that("use", {
testthat::expect_silent(nltt_plot(ape::rcoal(10)))
testthat::expect_silent(nltt_lines(ape::rcoal(10)))
})
test_that("abuse", {
testthat::expect_error(
nltt_plot("not a phylogeny"),
"phylogeny must be of class 'phylo'"
)
testthat::expect_error(
nltt_lines(... | 389 | gpl-2.0 |
e1655769d2d072c19e3c8a727fa792c27ca6d37c | langcog/turn_taking | analysis/E2/6-boredom.hypoth.R | # library(grid)
# library(ggplot2)
# library(bootstrap)
# library(lme4)
# library(stringr)
# library(plotrix)
# library(reshape)
# library(plyr)
# library(car)
# library(gridExtra)
# library(scales)
# library(Hmisc)
# library(moments)
rm(list = ls())
source("0-helper.R")
library(data.table)
library(bit64)
##########... | 12,034 | gpl-2.0 |
022107e29f0acbc12d452ae7ee2e5919cb57eb9f | rmccoy7541/tripolar_mitosis | tripolar_mitosis.R | library(data.table)
library(dplyr)
library(ggplot2)
library(ggsci)
library(ggjoy)
library(gridExtra)
library(RCurl)
library(pscl)
# import the data
URL <- "https://raw.githubusercontent.com/rmccoy7541/aneuploidy-analysis/master/data/aaa3337-McCoy-SM.table_S2.csv"
data <- fread(URL, sep = ",", header = T, na.strings =... | 30,592 | mit |
0cb774dbfebf84517df8567ae69383d66db5dc2b | mridulkthomas/Cleaning-and-clustering-SFCM-data | 01. Training_random_forest_biovolume_estimation.R | ## Quantifying cell densities and biovolumes of phytoplankton communities and functional
## groups using scanning flow cytometry, machine learning and unsupervised clustering
## Mridul K. Thomas, Simone Fontana, Marta Reyes & Francesco Pomati
#
## Code designed to be used with the dataset available at 10.5281/zeno... | 2,386 | mit |
794836e7b605555eb3063f41850869ff65173a20 | cboettig/socialR | R/twitter.R | #twitter.R
tweet <- function(comment="", tags="", mention=NULL){
tags <- format_tags(tags)
hashtags <- gsub("(\\b\\w.)", "\\#\\1", tags, perl=TRUE)
if(!is.null(mention)){
msg <- paste("@", mention, " ", comment, " ", hashtags, sep="")
} else {
msg <- paste(comment, " ", hashtags, sep="")
}
msg <- gsub... | 2,345 | cc0-1.0 |
76ad08337fdfe23ec296a74a29e4a80213bd23ad | Aasish-Agarwal/ExData_Project2 | plot1.R | # #############################################################################
# Objective
# Have total emissions from PM2.5 decreased in the United States from 1999 to 2008?
# Using the base plotting system, make a plot showing the total PM2.5 emission
# from all sources for each of the years 1999, 2002, 2005... | 2,585 | gpl-2.0 |
63a43bb8cbdd78e82eaade7ec296215aa4cd1a54 | ecor/blockmatrix | R/methods.blockmatrix.R | NULL
#'
#'\code{Math} and \code{Ops} group of S3 methods for \code{blockmatrix} object
#'
#' @param x,e1,e2 \code{blockmatrix} objects
#' @param as.blockmatrix logical value. If \code{TRUE} (Default), the output is a \code{blockmatrix} object
#' @param ... further arguments
#'
#' @export
#' @rdname Math
#' @meth... | 1,794 | gpl-3.0 |
2f28e306003971266844cbc4fb6e2ba34872d95d | ARCCSS-extremes/climpact2 | pcic_packages/climdex.pcic.ncdf/R/orig/ncdf.R | #' climdex.pcic.ncdf, a package to calculate Climdex indices from NetCDF files.
#'
#' This package implements code to facilitate computation of Climdex indices
#' from NetCDF input files.
#'
#' The Climdex climate extremes indices have historically been calculated using
#' Fortran code. This has a number of problems:... | 81,646 | gpl-3.0 |
78a1a1f86758a4f3bca48f056698242109a67699 | mattwatts/marxan.io | revision34/mxptest/server.R | # marxan.io
library(shiny)
require(sp)
require(maptools)
require(PBSmapping)
require(foreign)
require(sqldf)
require(vegan)
require(labdsv)
require(xtable)
library(foreach)
library(doMC)
library(rhandsontable)
library(iptools)
library(png)
library(rjson)
options(rgl.useNULL=TRUE)
library(shinyRGL)
library(rgl)
regis... | 15,287 | agpl-3.0 |
2f28e306003971266844cbc4fb6e2ba34872d95d | pacificclimate/climdex.pcic.ncdf | R/ncdf.R | #' climdex.pcic.ncdf, a package to calculate Climdex indices from NetCDF files.
#'
#' This package implements code to facilitate computation of Climdex indices
#' from NetCDF input files.
#'
#' The Climdex climate extremes indices have historically been calculated using
#' Fortran code. This has a number of problems:... | 81,646 | gpl-3.0 |
9c5916ed2e94777596c9cf8e698cbc9c9ade6e0d | grishagin/Illumina_BeadArray | v5-3/dependencies/_code_FUNCTION#11_top.tables-v2-1.R | #Illumina BeadArray data analysis
#Prepare Top Tables
top.tables<-function(fit2Eb,
contrastsMatrix,
LOGFC,
PVALUE,
sortBY){
#which columns from contrasts matrix to look at
contrastsMatrix.colnames<-colnames(con... | 2,100 | gpl-2.0 |
595c3b1e00d83df2caeda90717bd251f7163af3b | robertzk/s3mpi | R/s3normalize.R | ## The roxygen documentation here is pretty thorough. In effect, if
## we wish to use s3mpi to store C, Java, etc. objects that are
## needed for our R code to run, we can do something like:
##
## ```r
## obj <- list(atomic_vector = 1:10, external_object = ptr_to_c_object)
## attr(obj, "s3mpi.serialize") <- list(
## ... | 3,472 | mit |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | krlmlr/cxxr | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
631429a66af2a03a5ba5657689d1878211f768bb | feralindia/CWC | Discharge/stn_003.R | ## updated 2017-07-08 NOT TO BE USED
## NOTE: THIS SCRIPT IS NOT USEABLE AS OF NOW. NEEDS TO BE FIXED
## Aghnashini wlr_003 Saimane Weir
##-- define constants
stn.no <- "003"
ar.cat <- 0000.060 ## This needs to be updated
catch.type <- "Saimane"
wlr.path <- "~/CurrProj/CWC/Data/Aghnashini/wlr/csv/"
wlr.flnm <- "wlr_0... | 1,090 | gpl-3.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | cxxr-devel/cxxr | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | SurajGupta/r-source | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
ea09efd5ce9c1a51d58f942731e00917846d27fe | igraph/xdata-igraph | tools/arpack_check2.R |
# R
library(igraph)
callback <- function(x, extra) {
y <- extra %*% x
}
residual <- function(A, v, lambda) {
sum(abs( A %*% v - lambda * v )^2)
}
arp <- function(M, sym=TRUE, which="LM", nev=1, maxiter=300, ...) {
res <- arpack(callback, extra=M, sym=sym,
options=list(n=nrow(M), nev=nev, ncv=... | 1,119 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | rho-devel/rho | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | kmillar/cxxr | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
ea09efd5ce9c1a51d58f942731e00917846d27fe | janschulz/igraph | tools/arpack_check2.R |
# R
library(igraph)
callback <- function(x, extra) {
y <- extra %*% x
}
residual <- function(A, v, lambda) {
sum(abs( A %*% v - lambda * v )^2)
}
arp <- function(M, sym=TRUE, which="LM", nev=1, maxiter=300, ...) {
res <- arpack(callback, extra=M, sym=sym,
options=list(n=nrow(M), nev=nev, ncv=... | 1,119 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | ArunChauhan/cxxr | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | kmillar/rho | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
927731cd8ca60207fc3448f3d4b11be9755a1b49 | jimhester/r-source | src/library/base/R/library.R | # File src/library/base/R/library.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 37,616 | gpl-2.0 |
a3c4e6acc0ff85ba40f2fea85dbff18165af45ac | lpantano/scripts_hsph | glasgow/sv/make_plot.R | df = read.table("~/repos/pipelines/glasgow/sv/res/lumpy.tsv", header=T)
df$chrom = factor(df$chrom, levels=c(1:22,"X","Y"))
library(ggplot2)
ggplot(df, aes(y=counts, x=chrom, fill=sample)) +
geom_bar(stat = "identity", position = "dodge") +
facet_wrap(~sv, nrow=3)
library(dplyr)
df %>% group_by(sample, sv) %>% su... | 347 | mit |
f9330082bc2501bd2bab97672fe1bf7c6ac18295 | Wilfred/ESS | test/styles/GNU.R |
### Function declarations
## 1
{
fun <- function(argument1,
argument2) {
body
}
}
## 2
{
function(
argument1,
argument2
)
{
body
}
}
## 3
function(argument_fun(sub_argument1,
sub_argument2),
argument) {}
## 4
funct... | 10,540 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | jbrowne6/RandomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | srisatish/randomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | fuentesdt/randomForestDbgSrc | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
d50de6715cbabb832f098b90f8fb6c4740c31674 | calvinwhealton/R_tables_to_LaTeX | func_write_df_latex.R | # funciton for writing dataframe into LaTeX tables----
write_latex_df <- function(df # dataframe
, name_tex # name for LaTeX table
, name_var=NULL # names of variables
, caption=NULL # caption for table, long caption... | 2,506 | mit |
78baeb698af1a63002bc4690947b392b52a41693 | 478996606/randomForest2 | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | ahvigil/randomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | edfall/randomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | jmb2547/randomForestBLB | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | swager/randomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | cran/randomForest | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
78baeb698af1a63002bc4690947b392b52a41693 | ynnyz/randomForestyz | R/rfImpute.R | rfImpute <- function(x, ...)
UseMethod("rfImpute")
rfImpute.formula <- function(x, data, ..., subset) {
if (!inherits(x, "formula"))
stop("method is only for formula objects")
call <- match.call()
m <- match.call(expand.dots = FALSE)
names(m)[2] <- "formula"
if (is.matrix(eval(m$data, p... | 2,032 | gpl-2.0 |
e34bc9f7d945755eb746c49cde6590277eb6d7b8 | bjsmith/reversallearning | rl_behav_analysis_learning_old.R | #install.packages("R.matlab")
library(R.matlab)
#install.packages('data.table')
library(data.table)
#install.packages('ggplot2')
library(ggplot2)
#install.packages("tidyr")
library('tidyr')
#install.packages("corrplot")
library(corrplot)
for (condition in c(
"reward"#,
#"punishment"
)){
#condition<-"reward"
... | 24,261 | apache-2.0 |
0842827cc718fab014bd328a509918e24714c6a9 | kosukeimai/FindIt | R/summary.CausalANOVA.R | #' Summarizing CausalANOVA output
#' @param object An object from \code{CausalANOVA}
#' @param digit the number of digits
#' @param verbose report additional summary results
#' @param verbose.full report full summary results
#' @param ... Other parameters
#' @method summary CausalANOVA
#' @export
summary.CausalANOVA <-... | 9,924 | gpl-2.0 |
ba6cfb33ee16cbc2914ff3707002b3b73fa38a15 | environmentalinformatics-marburg/Rainfall | R/createSubset.R | #' Create a training subset from data
#' @param predictors Either a data.frame with each column is one predictor and each
#' row represents one pixel. Or (if only one scene is used for training)
#' a RasterStack with one Raster is one Predictor Variable.
#' @param response A vector of either Rainfall area or rainfall ... | 2,112 | gpl-3.0 |
dfffd72e9ca7c7ff8f4e926f501839cfcd0be33c | felixjff/GAS-Models | Mix-Measurement GAS/Empirical Analysis/Logit_2Normal_1Fn_1Fl - SMC.R | #### Purpose: Determine the effect of the scaling matrix on the generated factors and success series.
### Identity Matrix ###
#Time-series
tobs <- unique(DM_1C[DateQtr > 2003]$DateQtr)
#Cross-section
cobs <- matrix(data = 0, nrow = length(tobs), ncol = 1)
for(i in 1:length(tobs)){
cobs[i] <- nrow(DM_1C[DateQtr == ... | 8,744 | mit |
7703eb8ca5f43d291a6f3c6e1cf4434aab65509c | mlammens/Biostats | data/Logan_Examples/Chapter4/Data/Sampling.R | ###################################################
### chunk number 1: Sampling_SetDir
###################################################
setwd("Sampling/Data")
###################################################
### chunk number 2: Sample1
###################################################
sample(1:37, 5, replace... | 7,392 | mit |
7b7393909884ea8a9917be1f48724ceee7e8bd70 | bcgov/groundwater_levels | 04_output.R | # Copyright 2018 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 15,392 | apache-2.0 |
153fe52d2fc5b6b66bc82db4d3ce28a53867d5ed | UdK-VPT/Open_eQuarter | stat/stat_corr/present_roof_uvalue_AVG_by_building_age_lookup.R | # OeQ autogenerated lookup function: U-Values of Roof Constructions in correlation to year of construction, based on the source data of the survey for the "German Building Typology developed by the "Institut für Wohnen und Umwelt", Darmstadt/Germany, 2011-2013
present_roof_uvalue_AVG_by_building_age_lookup<-function(xi... | 2,887 | gpl-2.0 |
3b9dfc03486974585b9536809e4fac9727833809 | remi-daigle/BC_connectivity | R/infomap.R | #### IMPORTANT TO DO: ####
# install Infomap (http://www.mapequation.org/code.html#Installation)
# change path below to appropriate directory
infomap_wd <- "C:/Users/Remi-Work/Documents/Infomap/"
old_wd <- getwd()
setwd(infomap_wd)
for(t in c("Future","Present",c(1998:2007),c(2098:2107))){
for(pld in seq(1,120,7))... | 1,144 | mit |
078416f98297b7272a0983096b31cc6681abd256 | youdar/Exploratory_Data_Analysis_project1 | work_doc.R | # read few line to see data
library("sqldf")
library("tcltk")
setwd("C:/Users/youva_000/OneDrive/Education/Data/Exploratory Data Analysis/work/project_1")
# install.packages("sqldf")
a<-read.csv("household_power_consumption.txt",nrows=5,sep=';')
summary(a)
a<-read.csv.sql("household_power_consumption.txt",sep=';',sql=... | 383 | mit |
4fe239d565d3008b68288bc6118b213114624a5f | jpritikin/OpenMx | inst/models/passing/twoLocusLikelihood.R | #
# Copyright 2007-2018 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 1,784 | apache-2.0 |
3cd6cfb17304cd05ae59716f51f1703bcc647845 | josephguillaume/mar-under-uncertainty | analysis.R | if(!require("ggplot2")) install.packages("ggplot2")
library(ggplot2)
library(scales)
source("functions.R")
source("NPV.R")
ranges <- read.csv("cost_benefit_par_ranges.csv",stringsAsFactors=FALSE)
################################################################################
## Fig 1
## define scenarios to use
##... | 2,898 | gpl-3.0 |
bd433f6b30843791d602fdfdbdba07e8115a55d8 | elahi/sbs_analysis | 4_plot_data/07_plot_intertidal_air_exposure.R | ################################################################################
##' @title Plotting duration of air exposure along an intertidal gradient
##'
##' @author Robin Elahi
##' @contact elahi.robin@gmail.com
##'
##' @date 2016-09-16
##'
##' @log
#############################################################... | 775 | mit |
a68397602c8cf97f3b48f000f3b0c16d0865321a | rgorman/syntacto_stylistics | R_files/freq_table_lists/list_10-22-06_0141PM.R | null | 3,660,168 | cc0-1.0 |
6266e154370700f6bfc4fade3ce957ba9cda6b9d | ajsmit/Intro_R_Workshop | workshops/Rhodes_2017/Day_2.R | # Day_2.R
# A script that shows us how to create and edit ggplot figures
# Robert
# September 5th, 2017
# Load libraries ----------------------------------------------------------
library(tidyverse)
library(gridExtra)
# Load data ---------------------------------------------------------------
ChickWeight <- datas... | 3,723 | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.