"with" argument in scale() in R -


i'm trying understand how clusters in r. i'm following this blog post, don't understand argument with in code.

head(water_data)          v1    v2  v3  v4  v5  v6  v7   v8  v9  v10 v11 v12 v13  v14 v15  v16 v17 v18 v19 1: d-1/3/90 44101 1.5 7.8 182 407 166 66.3 4.5 2110 7.9 197 228 70.2 5.5 2120 7.9 119 280 2: d-2/3/90 39024 3.0 7.7 182 443 214 69.2 6.5 2660 7.7 197 244 75.4 7.7 2570 7.6 119 474 3: d-4/3/90 32229 5.0 7.6 182 528 186 69.9 3.4 1666 7.7 197 220 72.7 4.5 1594 7.7 119 272 4: d-5/3/90 35023 3.5 7.9 205 588 192 65.6 4.5 2430 7.8 236 268 73.1 8.5 2280 7.8 158 376 5: d-6/3/90 36924 1.5 8.0 242 496 176 64.8 4.0 2110 7.9 197 236 57.6 4.5 2020 7.8 119 372 6: d-7/3/90 38572 3.0 7.8 202 372 186 68.8 4.5 1644 7.8 197 248 66.1 8.5 1762 7.7 150 460    v20  v21 v22  v23 v24 v25 v26 v27  v28  v29  v30  v31  v32  v33  v34  v35  v36  v37  v38 1:  94 72.3 0.3 2010 7.3  18  84  21 81.0 0.02 2000 39.6 58.8 95.5 85.4 70.0 90.2 79.4 87.3 2:  96 79.2 0.4 2700 7.5  18  91  17 94.1 0.00 2590 39.6 60.7 94.8 85.4 80.8 90.2 79.5 92.1 3:  92 78.3 0.2 1742 7.6  18 128  21 81.0 0.05 1888 39.6 58.2 95.6 85.4 52.9 90.2 75.8 88.7 4:  96 77.1 0.4 2060 7.6  20 104  20 96.7 0.00 1840 33.1 64.2 95.3 87.3 72.3 90.2 82.3 89.6 5:  88 68.2 0.2 2250 7.6  19 108  22 65.9 0.02 2120 39.6 62.7 95.6 85.4 71.0 92.1 78.2 87.5 6: 100 76.0 0.3 1768 7.5  20 100  28 82.1 0.00 1764 39.6 59.7 96.5 86.7 78.3 90.1 73.1 84.9      v39 1:  99.6 2: 100.0 3:  98.5 4: 100.0 5:  99.5 6: 100.0 

he uses when scaling data using scale().

#scale variables scaled_wd <- scale(water_data[,-c("v1"),with=f]) 

i tried ?scale can't find argument.

what missing?

with not argument scale. argument regarding data.table object being used store data in question. specifically, with used allow use quoted names select columns in data table. data.table additional package on top of base r, , things cannot regular data frames. suggest checking out cheat sheet linked here.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -