KitDocumentation

Focus

Often, we perform consecutive operations on the same piece of data / dataframe. Because of this, Arctic Fox assumes that the most likely target is the most recently assigned dataframe. Sometimes though, we do wish to shift the target from the previously used dataframe to a different dataframe. Hence, the Focus kit, which specifies which dataframe to use for subsequent kits. Furthermore, if you are uncertain of the available variables, use the ? input and Focus will list the possible targets for you to select.

Options

focus: Specifies the dataframe or variable to focus on for the following seeds. The option tag does not need to be specified, the 1st unspecified option will be used as the focus.

Examples

Example 1 - Set Focus to Previously Loaded Dataframe

When working with multiple dataframes, it is often necessary to switch the focus from one to another. The Focus kit allows you to explicitly tell Arctic Fox which dataframe to apply subsequent transformations to. In this example, we load and modify two separate dataframes and then use Focus to return attention to appleStockDf so further kits act on it.
#> Focus appleStockDf
AFLEFT 
# Setting focus to appleStockDf AFRIGHT

Example 2 - Get List of Variables for Focus Selection

If you are unsure which dataframes or variables are currently available, the Focus kit can help. By using Focus with a question mark (?), you will active the guide which will show candidate variables to focus on. This makes it easier to select the correct target for subsequent operations.
#> Focus ?
AFLEFT  AFRIGHT

Example 3 - Get List of Variables for Focus Selection

If you are unsure which dataframes or variables are currently available, the Focus kit can help. By using Focus with a question mark (?), you will active the guide which will show candidate variables to focus on. This makes it easier to select the correct target for subsequent operations.
#> @@@@@ Focus ?
AFLEFT #***Focus: Often, we perform consecutive operations on the same piece of data / dataframe. Because of this, Arctic Fox assumes that the most likely target is the most recently assigned dataframe. Sometimes though, we do wish to shift the target from the previously used dataframe to a different dataframe. Hence, the Focus kit, which specifies which dataframe to use for subsequent kits. Furthermore, if you are uncertain of the available variables, use the ? input and Focus will list the possible targets for you to select.
#***
#***Please select which variable to make the Focus:
#***- appleStockDf #> `select appleStockDf
#***- bankTransactionsDf #> `select bankTransactionsDf
#***- appleStockDfQuantile #> `select appleStockDfQuantile
#***- appleStockDfQuantile0 #> `select appleStockDfQuantile0
#***- appleStockDfQuantile1 #> `select appleStockDfQuantile1
#***- appleStockDfQuantile2 #> `select appleStockDfQuantile2
#***- appleStockDfQuantile3 #> `select appleStockDfQuantile3
#***- weatherDf #> `select weatherDf
#***- pizzeriasDf #> `select pizzeriasDf
 AFRIGHT