DSF Gourav-2
DSF Gourav-2
Step 4: After downloading, you will get a file named “RStudio-1.x.xxxx.exe” in your
Downloads folder.
Step 5: Double-click the installer, and install the software.
Step 6: Test the R Studio installation
# Element-wise AND
x & y # Returns: TRUE FALSE FALSE
# Element-wise OR
x | y # Returns: TRUE TRUE TRUE
# display
print(data)
Example 2: R program to create with 4 columns and group with subjects and get the average
(mean).
R
return(x)
}
x[x < lower_bound | x > upper_bound] <- median(x, na.rm = TRUE) # Replace outliers
with median
return(x)
}