Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created March 20, 2019 18:35
Show Gist options
  • Select an option

  • Save idontgetoutmuch/abe68ba37e3135d54a69b5d96bdf28ee to your computer and use it in GitHub Desktop.

Select an option

Save idontgetoutmuch/abe68ba37e3135d54a69b5d96bdf28ee to your computer and use it in GitHub Desktop.
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE QuasiQuotes #-}
module Main (main) where
import qualified Language.R as R
import Language.R.QQ
main = do
let temps10 :: [Double]
temps10 = [22.0,22.0,23.0,23.0,23.0,23.0,23.0,24.0,24.0,24.0]
tods10 :: [Double]
tods10 = [6704.0,6709.0,6715.0,6727.0,6732.0,6736.0,6742.0,6750.0,6757.0,6759.0]
R.runRegion $ do
df <- [r| data.frame(time = tods10_hs, val = temps10_hs) |]
return ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment