fix_image_link: Add image url prefix to image column

Description Usage Arguments Value

View source: R/table.R

Description

Add image url prefix to image column

Usage

1
2
3
4
5
6
7
8
9
fix_image_link(
  df,
  df_image_url_col_name = "图片",
  df_image_title_col_name = "SKU",
  image_pattern = ".*.[a-z]+",
  sku_image_url_prefix_1 = getOption("sku_image_url_prefix_1"),
  title_pattern_for_prefix_2 = "^C.*",
  sku_image_url_prefix_2 = getOption("sku_image_url_prefix_2")
)

Arguments

df

a tbl or dataframe

df_image_url_col_name

Column name of image url

df_image_title_col_name

Column name of image title

image_pattern

Only fix image with this pattern; set others to NA_character_

sku_image_url_prefix_1

image url prefix 1

title_pattern_for_prefix_2

When the title column has this pattern, fix with image url prefix 2. Otherwise fix with image url prefix 1.

sku_image_url_prefix_2

image url prefix 2

Value

df


shizidushu/shinycomp documentation built on Sept. 15, 2020, 11:30 a.m.