How to scrape an html hidden table - r

I am trying to scrape some tables from here: https://www.adfg.alaska.gov/index.cfm?adfg=commercialbyareapws.harvestbydistrict However, the tables are not visible until I manually select them from the dropdown (see snapshot below). I need to download a few different tables from 221,222,223,226,227 and 228.
I need to download these tables using R and save them as data.frames or as Excel files.
Any suggestion on how to go about this?
UPDATE: Here is the snapshot of the inspect network option.

Related

Randomly display files in survey block in Qualtrics

I am attempting to randomly loop through ~1400 mp4 files in a Qualtrics survey. Each respondent would see one of these files. I understand how to do this for images, using a Loop and Merge and:
img src="https://survey.qualtrics.com/ControlPanel/Graphic.php?IM=${lm://Field/1}"
However, the Field/1 links to the Qualtrics IDs that are in the image library and mp4's are in the files library. I do not know where to find those.
It is a little bit of a pain, but first click one of the files and View it. The URL at the top will have the ID at the very end. Go back to your list and open the inspect tool. Search for the ID. The first one you find is a large list of text. They are all in there.

Avoid Flexdashboard pages in same project share objects

I have two reports made in flexdashboards inside the same project.
The only difference is the data source and data wrangling is the same for both. Object names are same because code is really a copy (the only different lines are for data load, filtered by country).
Every chunk has this option to force fresh data always.
r cache=FALSE
Accessing my flexdashboard
Germany.Rmd
renders ok
But if I open the other flexdashboard
France.Rmd
the data and charts are from Germany.
I suppose the objects (df, plot..) having the same name are conflicting even with no cache.
Is there any way of solving this issue to avoid creating a project for every country?

Cognos table inside table cell

I have a report that displays a table of information inside a cell of another table. When the report is exported to excel there are blank rows above and below the table, the report looks fine when in HTML. I cannot have these as they throw errors when being imported into another application. How can I make it so that the table is one cell and no extra lines these?
Include that data in the outer list. If you are using Cognos as an ETL tool (something it is NOT good at) you'll want to flatten the output. Any formatting will cause you trouble downstream.
Excel format is probably not the best solution. You'll want to send your report to Excel Data or CSV.

R:Correlation-Plot - Not able to render correlation-plot across tables in Power BI desktop app

I have installed R in power-bi desktop application which automatically imports various visualization charts in power-bi app. Among them, I want to use correlation-plot but its rendering blank chart.
Detailed description is given below:
Problem Statement: I want to render correlation-plot among actual_qty(from table d_masters) and cp, cpk(from table m_data), Refer inline images for better understanding (Blurred out some part of sensitive data in images).
Database used: Azure SQL
Query Mode: Direct query
Relationships among SQL tables are shown below:
I am able to render correlation-plot using single table(correlation between cp and cpk from table 'm_data'). Graph and exported data from correlation plot are given below:
When I select multiple tables which have many to many relationships based on foreign-key then it won't render correlation-plot. Also if I export correlation-plot data then it gives valid data but doesn't render correlation-plot.
Please guide me what else I need to do. Thanks in advance!
Please check you table relation is correct .
1) one to many
2) many to many

ASP.NET Reporting - Do any tools allow the generation of a composite report from parts of other reports

Let's say I have 10 reports, each of which contain 1 or more tables and charts.
I want to allow a user to select a bar chart from report 1, a grid and pie chart from report 2, a grid from report 3 etc to create a composite report.
I think I have a solution in Telerik whereby I combine multiple reports together, as sub-reports, and hide all elements (tables, charts) except the ones that the user wants to include. If all elements are placed inside min-sized panels then white space should disappear as elements are hidden. I've done a quick test using this method and it appears to work.
My question is, is this the best way to approach the requirment? Are there better approaches with other tools such as Crystal Reports, ActiveReports and DevExpress?
Jules
Are you trying to combine these report at run time? In ActiveReports, these 3 reports can be run separately and then all the three of them can be combined to create one report document or individual pages from these can be combined together to create another report document. This document can then be viewed in any of the viewers, printed or exported to pdf and excel and such.
At design time, it is doable but is not worth it. Will need some code to make sure that the layout is first created correctly based on user selection of certain kind of report and then you will have to make sure that correct data is getting fed prior to running the report.

Resources