Skip to content

Instantly share code, notes, and snippets.

View BojanKomazec's full-sized avatar
💭
DevOps Now!

Bojan Komazec BojanKomazec

💭
DevOps Now!
View GitHub Profile
donkey@donkey-ferrari:~/dev/csharp/dotnet-core/Demo$ dotnet add package Newtonsoft.Json
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
Writing /tmp/tmppw4eMT.tmp
info : Adding PackageReference for package 'Newtonsoft.Json' into project '/home/donkey/dev/csharp/dotnet-core/Demo/Demo.csproj'.
log : Restoring packages for /home/donkey/dev/csharp/dotnet-core/Demo/Demo.csproj...
info : GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json
info : OK https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json 538ms
info : GET https://api.nuget.org/v3-flatcontainer/newtonsoft.json/10.0.2/newtonsoft.json.10.0.2.nupkg
> data[, "Account Balance"]
Account Balance
1 1
2 1
3 2
4 1
5 1
6 1
[1000 rows x 1 column]
> v <- c(1, 2, 3)
> for (i in v) print (i)
[1] 1
[1] 2
[1] 3
> v <- c(1, '2', 3)
> for (i in v) print (i)
> s1 <- "United"
> s2 <- "Kingdom"
> s1+s2
Error in s1 + s2 : non-numeric argument to binary operator
> paste(s1, s2)
[1] "United Kingdom"
> paste0(s1, s2)
> s <- "This is a string"
> s
[1] "This is a string"
> n <- 123
> n
[1] 123
> s = "This is a new version of the string"
> s
[1] "This is a new version of the string"
> n = 456
> summary(data)
Creditability Account Balance Duration of Credit (month) Payment Status of Previous Credit Purpose Credit Amount
Min. :0.0000 Min. :1.000 Min. : 4.0 Min. :0.000 Min. : 0.000 Min. : 250
1st Qu.:0.0000 1st Qu.:1.000 1st Qu.:12.0 1st Qu.:2.000 1st Qu.: 1.000 1st Qu.: 1359
Median :1.0000 Median :2.000 Median :18.0 Median :2.000 Median : 2.000 Median : 2304
Mean :0.6988 Mean :2.577 Mean :20.9 Mean :2.545 Mean : 2.828 Mean : 3271
3rd Qu.:1.0000 3rd Qu.:4.000 3rd Qu.:24.0 3rd Qu.:4.000 3rd Qu.: 3.000 3rd Qu.: 3958
Max. :1.0000 Max. :4.000 Max. :72.0 Max. :4.000 Max. :10.000 Max. :18424
NA's :4
> head(data, n = 4)
Creditability Account Balance Duration of Credit (month) Payment Status of Previous Credit Purpose Credit Amount
1 1 1 18 4 2 1049
2 1 1 9 4 0 2799
3 1 2 12 2 9 841
4 1 1 12 4 0 2122
> head(data)
Creditability Account Balance Duration of Credit (month) Payment Status of Previous Credit Purpose Credit Amount
1 1 1 18 4 2 1049
2 1 1 9 4 0 2799
3 1 2 12 2 9 841
4 1 1 12 4 0 2122
5 1 1 12 4 0 2171
6 1 1 10 4 0 2241
{
"runtimeOptions": {
"framework": {
"name": "Microsoft.NETCore.App",
"version": "1.1.1"
}
}
}
{
"runtimeOptions": {
"additionalProbingPaths": [
"/home/bojan/.nuget/packages"
]
}
}