You want exists()
:
R> exists("somethingUnknown")
[1] FALSE
R> somethingUnknown <- 42
R> exists("somethingUnknown")
[1] TRUE
R>
More Related Contents:
- R not finding package even after package installation
- Can’t change fonts in ggplot/geom_text
- Add color to boxplot – “Continuous value supplied to discrete scale” error
- Grid in an R plot
- Save ggplot within a function
- Data input via shinyTable in R shiny application
- Deleting every n-th row in a dataframe
- ggplot: Order bars in faceted bar chart per facet
- How to plot a heat map on a spatial map
- Sequence length encoding using R
- How to convert certain columns only to numeric?
- How to write contents of help to a file from within R?
- R: How to save lists into csv?
- How to expand axis asymmetrically with ggplot2 without setting limits manually?
- annotate boxplot in ggplot2
- R issue with rounding milliseconds
- ggplot2: Flip axes and maintain aspect ratio of data
- Calculate monthly average of ts object
- How to pass aes parameters of ggplot to function
- Replacing negative values in a model (system of ODEs) with zero
- Increase space between bars in ggplot
- Convert a printed message into a character vector
- dplyr – Group by and select TOP x %
- Plot a line chart with conditional colors depending on values
- Is there a _fast_ way to run a rolling regression inside data.table?
- Saving and loading a model in R
- Manually Downloading and Installing Packages in R
- R Function for returning ALL factors
- date format in tooltip of ggplotly
- R text file and text mining…how to load data