in Education by
I have the following data frame empid <- c(1:4) empname <- c("Sam","Rob","Max","John") empdept <- c("Sales","Marketing","HR","R & D") emp.data <- data.frame(empid,empname,empdept) stdid <- c(1:4) stdname <- c("Alex","Mary","Jim","Jerry") stdsection <- c("Eco","Sci","Soc","Pol") std.data <- data.frame(stdid,stdname,stddept) How can I make a list of these data frames? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
In R programming, we can directly use the 'list()' function to add data frames to a new list. In your case, Mylist <- list(emp.data,std.data) The above statement will add the two data frames 'emp.data' and 'std.data' to a list called Mylist. You can access the elements in the above list by using the following code Mylist[[1]] , Mylist[[2]] and so on. If you want to explore more in R programming then watch this R programming tutorial for beginner:

Related questions

0 votes
    using python 3.8 and the spyder IDE the code is given here which I us to detect the faces from the recorded ... object cap.release() Select the correct answer from above options...
asked Jan 9, 2022 in Education by JackTerrance
0 votes
    How to sort a data.table using vector of multiple columns in R? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I am new to Apache Spark, and I just learned that Spark supports three types of cluster: Standalone - meaning Spark ... should I go to? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    I am using exit(), quit(), os._exit(), sys.exit() to stop script execution, and I am confused which ... use to stop script execution? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    How can I reverse a str object in Python? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I need to move all my work from my branch to another branch, but I'm not sure what is the best solution ... changes on the new branch? Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    What should I do after 12th to become a software engineer? Select the correct answer from above options...
asked Jan 11, 2022 in Education by JackTerrance
0 votes
    Constraint checking can be disabled in existing _______________ and _____________ constraints so that any data you ... Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    When you select “Existing guests only” for SharePoint, how can you add a guest to an environment? Is this through the B2B option?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    I have code that at one place ends up with a list of data frames which I really want to convert ... starting with (this is grossly simplified for illustration): listOfDataFrames...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    If you have an existing package that doesn't have an .Rproj file, you can use devtools for the use_rstudio ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    ________ add new variables/columns or transform existing variables. (a) mutate (b) add (c) apped (d) ... Operations of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    ________ add new variables/columns or transform existing variables. (a) mutate (b) add (c) apped (d) ... Analysis of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    ________ level plotting functions that add elements to an existing plot. (a) High (b) Low (c) Medium (d) ... Networks of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
...