How to Clear the Console in R

We can clear the Console in R using Ctrl+l. We can use cat() function to that. We can also clear console in R using graphical method from RStudio or Rgui.

1. Use Ctrl+L to clear the console.

2. Use cat(“\014”) or cat(“f”) to clear the console.

Stop and Start Sybase Replication Server

Replication Server maintains replicated data in multiple databases while ensuring the integrity and consistency of the data. It provides clients using databases in the replication system with local data access, thereby reducing load on the network and centralized computer systems.

Stop Sybase Replication Server.

We can stop replication server using isql utility.

How to withdraw money from Google Adsense Account

Minimum amount to be withdrawn is $100. If it is less than 100 dollars, you cant withdraw.

To withdraw money from Google Adsense Account, please below steps:

1. Sign in to your Google Adsense account to display the Adsense homepage.

Rename table in MySQL

RENAME TABLE is used to change the name of table. We must have ALTER and DROP privileges for the original table, and CREATE and INSERT privileges for the new table.

Differences between length and nchar in R

length(x) will give how many elements are there in a vector.
nchar(x) will give how many letters in each element of x.


Group Scopes in Active Directory

Group Scopes in Active Directory

We have three group scopes in Active Directory

Universal group is a security or distribution group that contains users, groups, and computers from any domain in its forest as members. We can give universal security groups rights and permissions on resources in any domain in the forest.Universal group membership is replicated to all Global Catalogs. This can be beneficial, but has its drawbacks. Universal Groups take up 40 bytes if the groups are from another domain than then user resides in, if the Universal Group and the user resides in the same domain it takes up to 8 bytes in the token.

Installation of r package dplyr

dplyr is R package for data manipulation using the Split Apply Combine Methodology, the next iteration of the very popular plyr package. As per R documentation dplyr is “A Grammar of Data Manipulation”. It’s the next iteration of plyr, focused on tools for working with data frames

> install.packages("dplyr")

Installing package into ‘C:/Users/pinnapav/Documents/R/win-library/3.3’

How to get first and last rows of Data Frame in R

We can get first n rows of Data Frame using head() function and can get last n rows of Data Frame using tail() function.

Syntax of head() and tail() functions:

head(data.frame,number_of_first_rows) tail(data.frame,number_of_last_rows)

Convert List to Vector in R

A list can be converted to a Vector in R. So that the elements of the vector can be used for further manipulation. All arthimetic operations o vectors can be applied after the the list is converted to vectors. We can convert list to vector using unlist() function. It takes list as input and produces vector as output.

Powered by k2schools