Skip to content

Instantly share code, notes, and snippets.

View ottov's full-sized avatar

Otto Valladares ottov

  • University of Pennsylvania
  • Philadelphia, PA
View GitHub Profile
@benjamin-chan
benjamin-chan / R.nanorc
Last active April 27, 2025 14:56
R syntax highlighting for nano editor
################################################################################
#
# R.nanorc -- nano syntax-highlighting file for R
#
# Origin: This file is part of the pkgutils package for R.
#
# Usage: This file should be placed in a directory such as /usr/share/nano/ (on
# Ubuntu 12.04). That nano uses syntax highlighting at all might need to be
# enabled separately.
@ivannp
ivannp / e1071.R
Created December 1, 2012 03:18
Back-testing SVM with e1071
svmComputeOneForecast = function(
id,
data,
response,
startPoints,
endPoints,
len,
history=500,
trace=FALSE,
kernel="radial",