Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How would you find out the mean of one column with respect to another?



How would you find out the mean of one column with respect to another?..

Answer / Ziaur Rahman

In R, you can use the `aggregate()` function to calculate the mean of a specific column with respect to another. Here's an example: `aggregate(column1 ~ column2, dataframe_name, mean)`, where `column1` is the column for which you want the mean, `column2` is the grouping variable, and `dataframe_name` is the name of your dataframe.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What are R applications of R clustering?

1 Answers  


Which function in r language is used to find out whether the means of 2 groups are equal to each other or not?

1 Answers  


What are r matrices and r matrices functions?

1 Answers  


What is the reshaping of data in R?

1 Answers  


What are applications of recursion?

1 Answers  


Explain What is R?

1 Answers  


How would you join multiple strings together?

1 Answers  


What are Descriptive analysis methods in R?

1 Answers  


Explain tcp/ip applications, services and protocols?

1 Answers  


What is SAS and SPSS in R?

1 Answers  


What is recursion in r?

1 Answers  


how would you build a scatter-plot using plotly?

1 Answers  


Categories