Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cocoVisR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stephanie Wegscheidl
cocoVisR
Commits
d88a581e
Commit
d88a581e
authored
Jul 21, 2018
by
Stephanie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data view of coconut.json works, looking good, cocoquest.json has to be 2-Dimensional --> error
parent
f06cdde1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
dashboard/server.R
dashboard/server.R
+24
-10
No files found.
dashboard/server.R
View file @
d88a581e
...
...
@@ -9,19 +9,33 @@
library
(
shiny
)
library
(
jsonlite
)
#
library(DT)
library
(
DT
)
server
<-
function
(
input
,
output
)
{
set.seed
(
122
)
output
$
file1
<-
renderDataTable
({
inFile
<-
input
$
file1
if
(
is.null
(
inFile
))
return
(
NULL
)
inFile
<-
input
$
file1
if
(
is.null
(
inFile
))
return
(
NULL
)
json_data_coco
<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
coconut.df
<-
json_data_coco
[[
"data"
]]
json_data_coco
<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
coconut.df
<-
json_data_coco
[[
"data"
]]
datatable
(
cbind
(
coconut.df
),
options
=
list
(
searching
=
TRUE
,
autoWidth
=
TRUE
,
rownames
=
FALSE
,
scroller
=
TRUE
,
scrollX
=
TRUE
,
scrollY
=
"500px"
,
fixedHeader
=
TRUE
,
class
=
'cell-border stripe'
)
)
#coconut.df$timestamp <- anytime((as.numeric(coconut.df$timestamp)/1000))
...
...
@@ -33,11 +47,11 @@ server <- function(input, output) {
inFile
<-
input
$
file2
if
(
is.null
(
inFile
))
return
(
NULL
)
scrollX
=
TRUE
json_data_quest
<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
print
(
"json_data_quest "
)
print
(
json_data_quest
)
json_data_quest
<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
#json_data <-map()
#print(json_for_from)
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment