Tutorial by Examples: n

Open index.ios.js or index.android.js and delete everything between the <View> </View>. After that, write <Text> Hello World! </Text> and run the emulator. You should see Hello World! written on the screen! Congrats! You've successfully written your first Hello World!
ACID tables are supported since hive 0.14 version. Below table supports UPDATE/DELETE/INSERT Below configuration changes required in hive-site.xml. hive.support.concurrency = true hive.enforce.bucketing = true hive.exec.dynamic.partition.mode = nonstrict hive.txn.manager =org.apache.hadoop...
You can evaluate any valid C# code: int value = await CSharpScript.EvaluateAsync<int>("15 * 89 + 95"); var span = await CSharpScript.EvaluateAsync<TimeSpan>("new DateTime(2016,1,1) - DateTime.Now"); If type is not specified, the result is object: object value = ...
The CustomEvent API allows developers to create custom events and trigger them on DOM nodes, passing data along the way. event = new CustomEvent(typeArg, customEventInit); typeArg - DOMString representing the name of the event. customEventInit - is optional parameters (that will be passed as e ...
# example data DT = as.data.table(mtcars, keep.rownames = TRUE) Editing a column Use the := operator inside j to create new columns or modify existing ones: DT[, mpg_sq := mpg^2] Editing on a subset of rows Use the i argument to subset to rows "where" edits should be made: DT[1:...
It is generally not considered 'best practice' to re-purpose the reserved names of Properties or Methods as the name(s) of your own procedures and variables. Bad Form - While the following is (strictly speaking) legal, working code the re-purposing of the Find method as well as the Row, Column and ...
This sample annotation indicates that the following method is deprecated. @deprecated def anUnusedLegacyMethod(someArg: Any) = { ... } This can also be equivalently written as: @deprecated def anUnusedLegacyMethod(someArg: Any) = { ... }
Basic syntax DT[where, select|update|do, by] syntax is used to work with columns of a data.table. The "where" part is the i argument The "select|update|do" part is the j argument These two arguments are usually passed by position instead of by name. A sequence of steps c...
# example data DT <- data.table(Titanic) Suppose that, for each sex, we want the rows with the highest survival numbers: DT[Survived == "Yes", .SD[ N == max(N) ], by=Sex] # Class Sex Age Survived N # 1: Crew Male Adult Yes 192 # 2: 1st Female Adult Yes...
# example data DT = data.table(iris) DT[, Bin := cut(Sepal.Length, c(4,6,8))] Using .N .N in j stores the number of rows in a subset. When exploring data, .N is handy to... count rows in a group, DT[Species == "setosa", .N] # 50 or count rows in all groups, DT[, .N,...
xml_import_example.info.yml type: module name: XML import example package: Examples description: "This module helps understanding the Batch API and Queue API with an XML import example" core: 8.x xml_import_example.permissions.yml import content from xml: title: 'Import content...
.SD .SD refers to the subset of the data.table for each group, excluding all columns used in by. .SD along with lapply can be used to apply any function to multiple columns by group in a data.table We will continue using the same built-in dataset, mtcars: mtcars = data.table(mtcars) # Let's not ...
There is no built-in to iterate over enumeration. But there are several ways for enum with only consecutive values: enum E { Begin, E1 = Begin, E2, // .. En, End }; for (E e = E::Begin; e != E::End; ++e) { // Do job with e } C++11 with enum clas...
Just as the random forest algorithm may be applied to regression and classification tasks, it can also be extended to survival analysis. In the example below a survival model is fit and used for prediction, scoring, and performance analysis using the package randomForestSRC from CRAN. require(rand...
survival is the most commonly used package for survival analysis in R. Using the built-in lung dataset we can get started with Survival Analysis by fitting a regression model with the survreg() function, creating a curve with survfit(), and plotting predicted survival curves by calling the predict m...
Go to https://www.arduino.cc/en/Main/Software Click the "Windows Installer" link Follow the instructions
To use the Arduino IDE on Windows without needing to install it: Go to https://www.arduino.cc/en/Main/Software Click the "Windows ZIP file for non admin install" link Extract the archive to a folder Open the folder, and double click Arduino.exe
Open a terminal and run: sudo dnf install arduino Open the Arduino application, or type arduino into the terminal
Open a terminal and run: sudo apt-get install arduino Open the Arduino application, or type arduino into the terminal
:set foldmethod={method} sets the fold method for the current window. This determines how folds are manipulated within that window. Valid options for "method" are: manual (folds are manually created and destroyed by the user) indent (folds are created for lines of equal indentation) m...

Page 411 of 1088