Post Your Answer
6 years ago in Big Data , Data Analysis By Mehak Chaudhary
R language for data analysis
I want to conduct research in big data analysis. My guide suggested me to use R language for data analysis and data visualisation process. But I have never used R language. Can someone please tell me some basic syntax in R language?
All Answers (3 Answers In All)
By Parul Singh Answered 6 years ago
# Create a vector of numbers
numbers = c(1, 2, 3, 4, 5)
print(numbers)
# Create a vector of letters
ltrs = c(‘a’, ‘b’, ‘c’, ‘d’, ‘e’)
# Concatenate both
mixed_vec = c(numbers, ltrs)
print(mixed_vec)
Reply to Parul Singh
By Krishan Pancholi Answered 6 years ago
1. Use, memory.size() to change R’s allocation limit.
2. sample() randomly reorders the elements passed as the first argument.
3. read.table can read a variety of basic data formats into tables or “data frames”.
Visit https://www.w3schools.in/r/basic-syntax/ to learn about all the basic syntaxes used in R language.
Reply to Krishan Pancholi
Reply to Mehak Chaudhary
Related Questions