FsLab is a collection of libraries for data-science. It provides a rapid development environment that lets you write advanced analysis with a few lines of production-quality code.
Questions tagged [fslab]
34 questions
2
votes
1 answer
F# deedle Series How do I get the name of the Key and Series for use in XPlot
I am plotting, using XPLot, a chart of type Table. If I do not specify a Chart.WithLables then the Table uses Column1 and Column2 as headers. My Series was created from a DataFrame (indexed on Column with header name: Date and has a Column with the…

rhscJohn
- 99
- 7
2
votes
1 answer
Compile error for FsLab journal template
I just downloaded the FSlab journal template from fslab.org. when I try to run the tutorial.fsx I get a number of errors in the build.fsx. These errors seem to be specific to the suave library.
The first issue is “open Suave.HTTP.Files”…

eknutsen
- 73
- 4
1
vote
1 answer
Resample and normalize series with Deedle
I have input of raw feed from several sources that don't produce values at static rates and need to resample and normalize it for further processing.
Values are resampled to 500ms using average to aggregate multiple values.
Then forward fill is…

Alex Michel
- 416
- 3
- 13
1
vote
1 answer
Why isn't XPlot.GoogleCharts.Chart.Map producing tooltips?
I'm trying to plot locations on a map with XPlot and googlecharts.chart.map.
I followed the example I found, but the resulting map had no tool tips on the specified locations.
To debug my code I simply attempted to reproduce the example, with the…

H Wheelwright
- 33
- 8
1
vote
0 answers
Can't use SQLite with SqlTypeProvider
I wrote an almost direct copy of FsLab canonical example, but modified it to use a SQLite provider. You can find it here: https://github.com/sergi/FoxStat. The main (and only) script is https://github.com/sergi/FoxStat/blob/master/FoxStats.fsx.
When…

Sergi Mansilla
- 12,495
- 10
- 39
- 48
1
vote
1 answer
RProvider bug in F# on MacOS: cannot reproduce basic example
running RProvider1.1.20 on a Terminal window on MacOS
I try to run the example from
http://bluemountaincapital.github.io/FSharpRProvider/mac-and-linux.html
R.mean([1;2;3;4)]
R.x11()
R.sin(1)
> R.sin(1.0);;
val it : RDotNet.SymbolicExpression = [1]…

Fagui Curtain
- 1,867
- 2
- 19
- 34
1
vote
1 answer
'Invalid term in model formula' when calling R.armaFit
I'm getting this message:
Error in terms.formula(formula, data = data) :
invalid term in model formula
When calling this code:
let data : float[] = // ...
R.eval(R.parse(text="library(fArma)")) |> ignore
let dataset =
namedParams["XX", box…

Lay González
- 2,901
- 21
- 41
1
vote
1 answer
FsPlot for osx sierra
I have got an error message with the following code: (example code from sudipta mukherjee)
#load "./packages/FsPlot.0.6.6/FsPlotBootstrap.fsx"
open FsPlot.Highcharts.Charting
// Logistic Regression
let z = [for i in -10. .. 10. -> (i,1./(1.+exp…

madeinQuant
- 1,721
- 1
- 18
- 29
1
vote
1 answer
Is there a way to emit HTML directly into an FsLab journal from the .fsx file?
I'd like to emit some html (generated from my F# code) into a FsLab journal but cannot seem to find the correct incantation to make it happen.
If I have a function in my code that returns an html snippet is there a way to get this directly into the…

Stewart_R
- 13,764
- 11
- 60
- 106
1
vote
1 answer
FsLab and R Plots from 3rd party R Libraries
Can FsLab/f# formatting handle arbitrary R Visualisation from 3rd party libraries?
I have been trying to include an igraph chart without success.
I can get a (very) simple graph plot to pop up out of fsi by evaluating this:
#load…

Stewart_R
- 13,764
- 11
- 60
- 106
1
vote
1 answer
how to set opacity and line type in FSharp.Charting
I know how to control color, fontsize and gridlines in FSharp.Charting. But is there way to set opacity for a line color and/or change the line type to dashed for example.
#load @"..\..\FSLAB\packages\FsLab\Fslab.fsx"
open FSharp.Charting
open…

s952163
- 6,276
- 4
- 23
- 47
1
vote
1 answer
Plotting Deedle series with FSharp.Charting in FSLAB and compiled exe
When plotting a Deedle DataFrame or Series with FSharp.Charting FSLAB conveniently overloads the various Chart functions to work with Series directly. So I can do Series(x,y) |> Chart.Column for example. However when compiling Deedle and…

s952163
- 6,276
- 4
- 23
- 47
1
vote
1 answer
How do I iterate over a Deedle Series>
I have created a data frame using
// Create a dataframe containing the Open, High, Low, and Close
let ohlc =
cl
|> Frame.sliceCols ["Open"; "High"; "Low"; "Close"; "Volume"]
with the resulting output:
Open High Low …

rhscJohn
- 99
- 7
1
vote
2 answers
F# Deedle GetSlice() error "expects to have type DateTime option"
I am getting an error when trying to use the GetSlice() method.
cl.Rows.GetSlice( DateTime(2014,12,28,20,0,0), DateTime(2014,12,28,23,0,0))
The error is: This expression was expected to have type DateTime option but here has type DateTime. This…

rhscJohn
- 99
- 7
0
votes
0 answers
Is there a particular script to install fsl
This script is what I got from Google. Do I run them in quarts or IDLE?
from __future__ import print_function, division, unicode_literals
import functools as ft
import os.path as op
import subprocess as sp
import textwrap as…

Samia
- 1