# Raised Power of the column in R

Raised power of the column in R is calculated using ‘^’ operator. Let’s see how to calculate power of a column in R with example

First let’s create the dataframe

```df1 = data.frame( Name = c('George','Andrea', 'Micheal','Maggie','Ravi','Xien','Jalpa'),
Mathematics1_score=c(45,78,44,89,66,49,72),
Science_score=c(56,52,45,88,33,90,47))
```

df1 will be #### Raised power of 2 to the column in R

Power of the column Grade_score is calculated using ^() function as shown below. We used power of 2 in this example

```## Raised Power of 2

df1
```

So the resultant dataframe will be #### Raised power of 3 to the column in R

Power of the column Grade_score is calculated using ^() function as shown below. We used power of 3 in this example

```## Raised Power of 3

df1
```

So the resultant dataframe will be ## Author

• With close to 10 years on Experience in data science and machine learning Have extensively worked on programming languages like R, Python (Pandas), SAS, Pyspark.