codes2kind: Differentiate the R code

Description Usage Arguments Value Examples

View source: R/makeValidCode.R

Description

Differentiate the R code

Usage

1
codes2kind(vcodes)

Arguments

vcodes

A character vector to differentiate

Value

A character vector indicating whether the code returns text or plot

Examples

1
2
3
require(tidyverse)
temp <-c("iris %>% group_by(Species) %>% summarize_all(mean)","table1")
codes2kind(temp)

Example output

Loading required package: tidyverse
Loading tidyverse: ggplot2
Loading tidyverse: tibble
Loading tidyverse: tidyr
Loading tidyverse: readr
Loading tidyverse: purrr
Loading tidyverse: dplyr
Conflicts with tidy packages ---------------------------------------------------
filter(): dplyr, stats
lag():    dplyr, stats
[1] "text" "text"

dplyrAssist documentation built on May 2, 2019, 4:04 p.m.