I'd like to use this: http://rstudio-pubs-static.s3.amazonaws.com/5548_c3b680696b084e5db17eecf8c079a3c1.html
but I need list filter like this: http://rcharts.io/icontrols/#.Vbs9WZP1GlM
any idea how to do this?
Related
For example, I have the code below:
dat_name = "first"
I would like to create a dataset named "first_box" and I would like to use dat_name already referenced above to do that. I would like to do something like:
'dat_name'_box <- 1
The code above throws an error. Can someone know how I can achieve what I trying to do.. that way I can reuse the code and not have to rename the dataframe let's say I would like to create something like "second_box" next.
You can use assign.
dat_name = "first"
var_name = paste0(dat_name, "_box")
assign(var_name, 1)
Then you'll get:
print(first_box)
[1] 1
Hy, is there a similar way to
soup.findAll('div', class_="cities")
only to with the data-sort attribute?
I don´t know like
soup.findAll('td', data-sort_="citiesVillage")
i like to find only the rows with a specific data-sort name.
thanks.
Try this:
soup.findAll('td', attrs={'data-sort': 'citiesVillage'})
Say, for example, I want to bind a key "ctrl+d" to duplicate current line in LightTable. For that, to emulate duplication of the current line, I want to run a series of actions like [:editor.select-line :editor.copy :editor.selection.clear :editor.new-line-indent :editor.line-start :editor.paste]
How do I achieve this?
Note: I am aware of the :editor.sublime.duplicateLine tag which duplicates the line, but this is just the example. In general, I want to map a shortcut to a sequence of tags/tasks.
http://lighttable.com/
Are you trying to bind the key? You seem to have most of it set. Just open up user.keymap (ctrl-space "user keymap") and add this:
[:editor "ctrl+d" :editor.select-line
:editor.copy
:editor.selection.clear
:editor.new-line-indent
:editor.line-start
:editor.paste]
There is no requirement that you put it on separate lines like that of course.
Or are you asking for something more complicated?
We have the data abc,xyz,ijk,zya. I cannot use Like In function in Report Studio for multiple values. I am writing Street Name like ('abc'),Street Name like ('xyz'),Street Name like ('ijk'),Street Name like ('zya'). Is there any way i can implement Street Name in ('abc','xyz','ijk','zya'). Any other function we have in Cognos to implement like above. Like In is not working.
The only way I know how to get around this is to explicitly list out each individual search separated with ´or´. For example:
[DataItem] like ('abc') or
[DataItem] like ('ijk') or
[DataItem] like ('xyz')
If you have the keyword data in an excel spreadsheet starting in A1, you can use the below formula to speed up the process, then just copy and paste it into a filter.
="[DataItem] like ('"&A1&"')"
Sounds probably more complicated than what I want to achieve :) Since I do a lot of formatting to my plots I want to wrap this all in a function. However some formatting and setting of parameters is done before the plotn call and adding the legend and icon as well as formatting them is done after the plot call. So I basically want a function like:
myFormattedPlots<-function(plotFunctionName, plotFunctionParameters...)
The parameters list depends of course on the function..but I image something like this:
myFormattedPlots<-function("plot.xts",MyXTSTimeSeries){
par(xpd=FALSE)
...
plot.xts(MyXTSTimeSeries)
grid.raster(logo,x=c(0.05),y=c(0.02),width=0.05,height=0.03)
}
How can I achieve that?
You can give the function instead of its name in R. It would be that easy on your example:
myFormattedPlots<-function(func,MyXTSTimeSeries){
par(xpd=FALSE)
func(MyXTSTimeSeries)
grid.raster(logo,x=c(0.05),y=c(0.02),width=0.05,height=0.03)
}
myFormattedPlots(plot.xts, your.time.series)