Simply escape the quotation marks with backslashes:
paste("modelCheck(var\"",i,"_d.bug\")",sep="")
An alternative is to use single quotes to enclose the string:
paste('modelCheck(var"',i,'_d.bug")',sep="")
More Related Contents:
- Finding unique values in a dataset for market basket analysis in csv file
- Replace values greater than zero with 1 in r
- How to select the rows with maximum values in each group with dplyr? [duplicate]
- Split character column into several binary (0/1) columns
- Why do R objects not print in a function or a “for” loop?
- Workflow for statistical analysis and report writing
- Calculate the Area under a Curve
- Pass column name in data.table using variable [duplicate]
- Grouped bar plot in ggplot
- Putting mathematical symbols and subscripts mixed with regular letters [duplicate]
- Create discrete color bar with varying interval widths and no spacing between legend levels
- Increase distance between text and title on the y-axis
- Creating a comma separated vector
- Detect at least one match between each data frame row and values in vector
- R error “sum not meaningful for factors”
- How to Parse Year + Week Number in R?
- Set default CRAN mirror permanent in R
- Return data subset time frames within another timeframes?
- Read SAS sas7bdat data into R
- Remove extra space and ring at the edge of a polar plot
- Is there an R function to reshape this data from long to wide?
- How to show only part of the plot area of polar ggplot with facet?
- Different legend-keys inside same legend in ggplot2
- Plot two graphs in a same plot
- Replace values in data frame based on other data frame in R
- R stat_smooth all points
- How do you scrape items together so you don’t lose the index?
- Save imported csv data in vector – R
- Obtaining connected components of neighboring values
- error in strsplit when trying to separate by a comma