Is it possible in R, to list a set of certain possible values for a given equation? For example:

Fora, b, and c with the formula a^3 + b^2 = c.

How can this be tested for all combinations of a and b such that a and b are less than 1000 and c to satisfy the formula and check if the variables are also valid inputs? Apr 30, 2019 322 views

## 1 answer to this question.

Use expand.grid to get all possible combinations and then subset the ones you require:

```vals <- expand.grid(x=seq(1000), y=seq(1000))
subset(vals, a^3 + b^2 == 108)
#      a  b
# 8003 3  9
# 9002 2 10``` answered Apr 30, 2019 by
• 10,590 points

## Selecting only p-value and r.squared value from linear regression result

You can use the \$ symbol to ...READ MORE

## Steps to evaluate Linear Regression in R

These are sequential steps which need to ...READ MORE

## How can I create log linear models in R language?

By using the loglm () function  READ MORE

## Predict weight when height is given using linear regression in R

You can try something like this: # The ...READ MORE

+1 vote

## R programming: Linear programming problems

The documentation for the lp package provides ...READ MORE

+1 vote

## How to segment documents into phrases in text mining using R?

You can do this in R using ...READ MORE

+1 vote