{"id":107382,"date":"2022-12-24T18:22:45","date_gmt":"2022-12-24T18:22:45","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2022\/12\/24\/r-fieldwork-10-database-management-and-modeling-general-exercises-create-a-text\/"},"modified":"2022-12-24T18:22:45","modified_gmt":"2022-12-24T18:22:45","slug":"r-fieldwork-10-database-management-and-modeling-general-exercises-create-a-text","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2022\/12\/24\/r-fieldwork-10-database-management-and-modeling-general-exercises-create-a-text\/","title":{"rendered":"R Fieldwork #10 Database Management and Modeling General exercises Create a text"},"content":{"rendered":"<p>R Fieldwork #10<\/p>\n<p> Database Management and Modeling<\/p>\n<p> General exercises<\/p>\n<p> Create a text vector called Months with names of the 12 months of the year. <\/p>\n<p> Create a numeric vector Summer, with Calendar month index positions for the summer months (inclusive, with 4 elements in all). <\/p>\n<p> Print out the positions to show which months they refer to.<\/p>\n<p> E-commerce Data for Exercises <\/p>\n<p> The data set comprises responses to intercept surveys asked when users visited the site, along with data about each user\u2019s site activity such as number of pages visited and whether a sale was completed. Identifying details for the site and customers have been removed but the observations otherwise are actual data. <\/p>\n<p> We will load the data set first, and then explain a few of its observations. To load the data from CSV format, use the following command (or load ecommerce-data.csv from a local location if you have downloaded it, as noted in Section 1.6.3). <\/p>\n<p> ecomm.df &lt;- read.csv(&quot;https:\/\/goo.gl\/hzRyFd&quot;) <\/p>\n<p> summary(ecomm.df) <\/p>\n<p> How many observations and variables are in the e-commerce data set? <\/p>\n<p> Compute a frequency table for the country of origin for site visits. After the United States, which country had the most visitors? <\/p>\n<p> Compute a two-way frequency table for the intent to purchase (intentWasPlanningToBuy), broken out by user profile. <\/p>\n<p> What are the proportions of parents who intended to purchase? the proportions of teachers who did? For each one, omit observations for whom the intent is unknown (blank). <\/p>\n<p> Among US states (recorded in the variable region), which state had the most visitors and how many? <\/p>\n<p> Draw a histogram for the number of visits to the site (behavNumVisits). <\/p>\n<p> Draw a horizontal boxplot for the number of site visits. Interpret results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>R Fieldwork #10 Database Management and Modeling General exercises Create a text vector called Months with names of the 12 months of the year. Create a numeric vector Summer, with Calendar month index positions for the summer months (inclusive, with 4 elements in all). Print out the positions to show which months they refer to. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-107382","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/107382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=107382"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/107382\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=107382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=107382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=107382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}