how do you rectify this code error on these tables Error in `group_by()`: ! Must group by
Question:
how do you rectify this code error on these tables Error in `group_by()`: ! Must group by variables found in `.data`. ✖ Column `Feedback` is not found. Run `rlang::last_trace()` to see where the error occurred. > # Print the sentiment analysis results > print(sentiment_data) Error: object 'sentiment_data' not found
able 2: Customer Feedback Data
Feedback | Sentiment Score |
The service was excellent and the prices were reasonable. | 0.85 |
The selection was good, but the restaurant was not very clean. | 0.65 |
The quality of the products was poor and the staff was unhelpful. | -0.75 |
Source: Customer Survey Analysis (2023)
Table 3 presents the correlation results for key customer service attributes.
Table 3: Correlation Matrix of Customer Feedback Keywords
Quality | Service | Price | Selection | Cleanliness | Atmosphere | Convenience | Location | Staff | Wait Time |
Quality | 1.00 | 0.45 | -0.23 | 0.57 | 0.38 | 0.32 | 0.24 | 0.15 | 0.18 | -0.05 |
Service | 0.45 | 1.00 | 0.12 | 0.65 | 0.51 | 0.46 | 0.39 | 0.28 | 0.62 | 0.21 |
Price | -0.23 | 0.12 | 1.00 | -0.35 | -0.26 | -0.15 | -0.20 | -0.31 | -0.08 | 0.13 |
Selection | 0.57 | 0.65 | -0.35 | 1.00 | 0.43 | 0.38 | 0.31 | 0.12 | 0.23 | -0.10 |
Cleanliness | 0.38 | 0.51 | -0.26 | 0.43 | 1.00 | 0.49 | 0.36 | 0.21 | 0.29 | -0.05 |
Atmosphere | 0.32 | 0.46 | -0.15 | 0.38 | 0.49 | 1.00 | 0.27 | 0.18 | 0.25 | -0.08 |
Convenience | 0.24 | 0.39 | -0.20 | 0.31 | 0.36 | 0.27 | 1.00 | 0.34 | 0.21 | -0.15 |
Location | 0.15 | 0.28 | -0.09 | 0.22 | 0.15 | 0.18 | 0.30 | 1.00 | 0.18 | -0.13 |
Staff | 0.18 | 0.62 | -0.08 | 0.23 | 0.29 | 0.25 | 0.21 | 0.18 | 1.00 | 0.12 |
Wait Time | -0.05 | 0.21 | 0.13 | -0.10 | -0.05 | -0.08 | -0.15 | -0.13 | 0.12 | 1.00 |
Source: Customer Survey Analysis (2023)
Note: The values in the table represent the Pearson correlation coefficient between the corresponding pairs of feedback keywords.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill