How to solve the following expression:

```8 x 8
8 x 88
8 x 888
8 x 8888
8 x 88888```

I am to use R programming to do the computation. But is there a way I can use R code for this computation with a single R expression that has no commas and braces (i.e. the use of , and {}).

Anyway to do this via vectorization, without using condition statements (if, while, for)? Oct 29, 2018 25 views

## 1 answer to this question.

The sequence of ones:

```cumsum(10^(0:4))
##      1    11   111  1111 11111```

Eights:

```8 * cumsum(10^(0:4))
##      8    88   888  8888 88888```

Times eight:

``` 8 * 8 * cumsum(10^(0:4))
##      64    704   7104  71104 711104``` answered Oct 29, 2018 by
• 10,040 points

## How to evaluate expression given as a string in R?

The eval() function evaluates an expression, but "5+5" is a string, ...READ MORE

## R programming Web Scraping

Try something like this: library(rvest) library(rvest) library(tidy ...READ MORE

## Difference between factor and as.factor in R programming

Hey @Ali, as.factor is a wrapper for ...READ MORE

## By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

## How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

## In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

## How to create a list of Data frames?

Basically all we have to do is ...READ MORE